IoT device positioning service: GPS, mobile base station, WiFi
Portal: 5 video presentations, 30 scene cases
Alibaba Cloud IoT enterprise Internet of Things platform provides auxiliary services for device positioning based on GPS, mobile base stations, WiFi hotspots and other information. Manufacturers can choose different positioning schemes according to the actual situation of the device.
GPS positioning scheme
Reference Documents https://help.aliyun.com/document_detail/108675.html
Time object model for equipment using GPS positioning - Description of geographical location attributes
Example of reported data on the device side
Topic:
/sys/{productKey}/{deviceName}/thing/event/property/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"GeoLocation":{
"value":{
"Longitude":115.2334,
"Latitude":39.4563,
"Altitude":235,
"CoordinateSystem":2
}
}
},
"method":"thing.event.property.post"
}
WiFi hotspot location scheme
Physical model - event description
Example of device location communication through WiFi:
Topic:
/sys/{productKey}/{deviceName}/thing/event/LocationInfo/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"mmac":"4c:48:da:26:ea:d9,-56,iot",
"macs":"4c:48:da:26:ea:d8,-56,iot|e6:a4:71:6e:45:83,-58,iot-LV4mshO"
},
"method":"thing.event.LocationInfo.post"
}
Cellular Base Station Positioning Scheme
Physical model - event description
For non CDMA base stations, the device reports data for example:
Topic:
/sys/{productKey}/{deviceName}/thing/event/LocationInfo/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"imei":"352315052834187",
"smac":"E0:DB:55:E4:C7:49",
"cdma":"0",
"bts":"460,01,40977,2205409,-65",
"nearbts":"460,01,40977,2205409,-65|460,01,40 977,2205409,-65|460,01,40977,2205409,-65"
},
"method":"thing.event.LocationInfo.post"
}
CDMA base station, equipment report data example:
Topic:
/sys/{productKey}/{deviceName}/thing/event/LocationInfo/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"imei":"0000",
"smac":"E0:DB:55:E4:C7:49",
"cdma":"1",
"bts":"13824,1,1838,1674723,575739,-52"
},
"method":"thing.event.LocationInfo.post"
}
Cloud business system obtains device location API
The business system calls QueryDevicePropertyData to query the location of IoT devices
The business system queries the location information of specific devices through QueryDevicePropertyData API
CommonRequest request = new CommonRequest();
1:request.setSysMethod(MethodType.POST);
2:request.setSysDomain("iot.cn-shanghai.aliyuncs.com");
3:request.setSysVersion("2018-01-20");
4:request.setSysAction("QueryDevicePropertyData");
5:request. putQueryParameter("RegionId", "cn-shanghai");
6:request. putQueryParameter("StartTime", "1618330349204");
7:request. putQueryParameter("Identifier", "GeoLocation");
8:request. putQueryParameter("Asc", "0");
9:request. putQueryParameter("EndTime", "1629330349204");
10:request. putQueryParameter("PageSize", "10");
11:request. putQueryParameter("IotInstanceId", "iot-068a03kg");
12:request. putQueryParameter("ProductKey", "g7palBDnzmT");
13:request. putQueryParameter("DeviceName", "dk003");
CommonResponse response = client.getCommonResponse(request);
Return value:
{
"RequestId": "C56790F8-AC96-492C-BA86-D7F57F090795",
"Data": {
"NextValid": false,
"NextTime": 1619330564810,
"List": {
"PropertyInfo": [
{
"Value": "
"Time": 1619330564811
}
]
}
},
"Code": "",
"Success": true
}
Equipment geography release marke.
Alibaba Cloud IoT enterprise Internet of Things platform provides auxiliary services for device positioning based on GPS, mobile base stations, WiFi hotspots and other information. Manufacturers can choose different positioning schemes according to the actual situation of the device.
GPS positioning scheme
Reference Documents https://help.aliyun.com/document_detail/108675.html
Time object model for equipment using GPS positioning - Description of geographical location attributes
Example of reported data on the device side
Topic:
/sys/{productKey}/{deviceName}/thing/event/property/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"GeoLocation":{
"value":{
"Longitude":115.2334,
"Latitude":39.4563,
"Altitude":235,
"CoordinateSystem":2
}
}
},
"method":"thing.event.property.post"
}
WiFi hotspot location scheme
Physical model - event description
Example of device location communication through WiFi:
Topic:
/sys/{productKey}/{deviceName}/thing/event/LocationInfo/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"mmac":"4c:48:da:26:ea:d9,-56,iot",
"macs":"4c:48:da:26:ea:d8,-56,iot|e6:a4:71:6e:45:83,-58,iot-LV4mshO"
},
"method":"thing.event.LocationInfo.post"
}
Cellular Base Station Positioning Scheme
Physical model - event description
For non CDMA base stations, the device reports data for example:
Topic:
/sys/{productKey}/{deviceName}/thing/event/LocationInfo/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"imei":"352315052834187",
"smac":"E0:DB:55:E4:C7:49",
"cdma":"0",
"bts":"460,01,40977,2205409,-65",
"nearbts":"460,01,40977,2205409,-65|460,01,40 977,2205409,-65|460,01,40977,2205409,-65"
},
"method":"thing.event.LocationInfo.post"
}
CDMA base station, equipment report data example:
Topic:
/sys/{productKey}/{deviceName}/thing/event/LocationInfo/post
Payload:
{
"id":"123",
"version":"1.0",
"params":{
"imei":"0000",
"smac":"E0:DB:55:E4:C7:49",
"cdma":"1",
"bts":"13824,1,1838,1674723,575739,-52"
},
"method":"thing.event.LocationInfo.post"
}
Cloud business system obtains device location API
The business system calls QueryDevicePropertyData to query the location of IoT devices
The business system queries the location information of specific devices through QueryDevicePropertyData API
CommonRequest request = new CommonRequest();
1:request.setSysMethod(MethodType.POST);
2:request.setSysDomain("iot.cn-shanghai.aliyuncs.com");
3:request.setSysVersion("2018-01-20");
4:request.setSysAction("QueryDevicePropertyData");
5:request. putQueryParameter("RegionId", "cn-shanghai");
6:request. putQueryParameter("StartTime", "1618330349204");
7:request. putQueryParameter("Identifier", "GeoLocation");
8:request. putQueryParameter("Asc", "0");
9:request. putQueryParameter("EndTime", "1629330349204");
10:request. putQueryParameter("PageSize", "10");
11:request. putQueryParameter("IotInstanceId", "iot-068a03kg");
12:request. putQueryParameter("ProductKey", "g7palBDnzmT");
13:request. putQueryParameter("DeviceName", "dk003");
CommonResponse response = client.getCommonResponse(request);
Return value:
{
"RequestId": "C56790F8-AC96-492C-BA86-D7F57F090795",
"Data": {
"NextValid": false,
"NextTime": 1619330564810,
"List": {
"PropertyInfo": [
{
"Value": "
"Time": 1619330564811
}
]
}
},
"Code": "",
"Success": true
}
Equipment geography release marke.
Related Articles
-
A detailed explanation of Hadoop core architecture HDFS
Knowledge Base Team
-
What Does IOT Mean
Knowledge Base Team
-
6 Optional Technologies for Data Storage
Knowledge Base Team
-
What Is Blockchain Technology
Knowledge Base Team
Explore More Special Offers
-
Short Message Service(SMS) & Mail Service
50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00