关于物联网:IoT-设备定位服务设备管理类

53次阅读

共计 2505 个字符,预计需要花费 7 分钟才能阅读完成。

传送门:5 个视频解说,30 个场景案例汇总

阿里云 IoT 企业物联网平台提供基于 GPS,挪动基站、WiFi 热点等信息来进行设施定位的辅助服务,厂商能够依据设施理论状况抉择不同定位计划。

GPS 定位计划

参考文档  https://help.aliyun.com/docum…
设施采纳 GPS 定位时物模型 -地理位置属性 阐明

设施端上报数据示例

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 热点定位计划

物模型 -事件 阐明

设施通过 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"
}

蜂窝基站定位计划

物模型 -事件 阐明

非 CDMA 基站,设施上报数据示例:

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 基站,设施上报数据示例:

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"
}

云端业务零碎获取设施地位 API
业务零碎调用 QueryDevicePropertyData 查问 IoT 设施的地位

业务零碎通过 QueryDevicePropertyData API 查问具体设施的地位信息
CommonRequest request = new CommonRequest();
request.setSysMethod(MethodType.POST);
request.setSysDomain("iot.cn-shanghai.aliyuncs.com");
request.setSysVersion("2018-01-20");
request.setSysAction("QueryDevicePropertyData");
request.putQueryParameter("RegionId", "cn-shanghai");
request.putQueryParameter("StartTime", "1618330349204");
request.putQueryParameter("Identifier", "GeoLocation");
request.putQueryParameter("Asc", "0");
request.putQueryParameter("EndTime", "1629330349204");
request.putQueryParameter("PageSize", "10");
request.putQueryParameter("IotInstanceId", "iot-068a03kg");
request.putQueryParameter("ProductKey", "g7palBDnzmT");
request.putQueryParameter("DeviceName", "dk003");
CommonResponse response = client.getCommonResponse(request);

返回值:

{
  "RequestId": "C56790F8-AC96-492C-BA86-D7F57F090795",
  "Data": {
    "NextValid": false,
    "NextTime": 1619330564810,
    "List": {
      "PropertyInfo": [
        {"Value": "{\"altitude\":0,\"CoordinateSystem\":2,\"latitude\":39.9932251,\"longitude\":116.4727718}",
          "Time": 1619330564811
        }
      ]
    }
  },
  "Code": "","Success": true
}

设施天文公布大盘

物联网平台产品介绍详情:https://www.aliyun.com/produc…

              阿里云物联网平台客户交换群

正文完
 0