IoT 设备定位服务:GPS,移动基站、WiFi

简介: IoT企业物联网平台提供基于GPS,移动基站、WiFi热点的定位服务

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


阿里云IoT企业物联网平台提供基于GPS,移动基站、WiFi热点等信息来进行设备定位的辅助服务,厂商可以根据设备实际情况选择不同定位方案。

image.png

image.png

GPS定位方案

参考文档  https://help.aliyun.com/document_detail/108675.html


设备采用GPS定位时物模型-地理位置属性说明

image.png

设备端上报数据示例

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

image.png

WiFi热点定位方案

物模型-事件说明

image.png

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


image.png

蜂窝基站定位方案

物模型-事件说明

image.png

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

image.png

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
}

设备地理发布大盘

image.png

相关文章
|
3月前
|
Android开发 Python
Python封装ADB获取Android设备wifi地址的方法
Python封装ADB获取Android设备wifi地址的方法
61 0
|
4月前
|
传感器 物联网 网络架构
ENS、IoT设备、X86、ARM
ENS(Enterprise Name Service)是企业名称服务,是一种为物联网设备提供命名和寻址服务的技术。ENS通过为物联网设备分配唯一的名称和地址,使得物联网设备可以被网络中的其他设备和服务所识别和访问。 IoT设备(Internet of Things device)是连接到互联网的物理设备,可以收集和共享数据,用于监测、控制和优化各种业务流程和操作。IoT设备包括各种传感器、执行器、网关和路由器等。
40 2
|
2月前
|
网络协议 物联网 5G
K3S 系列文章 -5G IoT 网关设备 POD 访问报错 DNS 'i/o timeout' 分析与解决
K3S 系列文章 -5G IoT 网关设备 POD 访问报错 DNS 'i/o timeout' 分析与解决
|
7月前
|
传感器 监控 数据可视化
手把手教你用IoT设备监控家庭环境数据
本实验带您体验如何通过六合一传感器(温度、湿度、二氧化碳、PM2.5、PM10、甲醛)实现家庭环境数据实时采集,并搭建可视化大屏实时监控。
300 0
|
7月前
|
网络协议 物联网 大数据
|
7月前
|
安全 物联网 网络性能优化
|
7月前
|
网络协议 物联网 网络性能优化
|
7月前
|
安全 物联网 物联网安全
|
7月前
|
弹性计算 负载均衡 网络协议
|
7月前
|
消息中间件 监控 安全