LEAPS MQTT 连接器
本章描述 LEAPS MQTT 连接器的特定信息. 上行链路主题中的 Pan ID(网络 ID)是可选的,可以通过调整配置设置来排除.
上行链路
主题 |
描述 |
---|---|
{prefix}/{panId}/gateway/uplink/status/{deviceId} |
网关状态信息.
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/gateway/uplink/status/deca1e1cef720714
{
"present": true,
"downlink": true,
"uwb":"CONNECTED"
"origins": [
{
"id": "4096",
"hop_level": 0
}
],
"profile": {
"sfn_range": 1440,
"microseconds_per_sf": 100000,
"microseconds_per_slot": 500,
"update_rate_default": 120,
"node_signup_optional": true,
"latency": 2,
"max_buffer_size_downlink": 1024
},
"timestamp": "1681398574409278"
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/gateway/uplink/config/{deviceId} |
设备配置信息.
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/gateway/uplink/config/deca1e1cef720714
{
"label": "DWC81B",
"uwb_mode": "UWB_MODE_ACTIVE",
"ble": false,
"leds": true,
"fw_update": true,
"anchor": {
"initiator": false,
"location": {
"x": 5.51,
"y": 7.01,
"z": 2.51,
"quality": 100
},
"routing": "ROUTING_OFF",
"bridge": true
},
"inet": {
"ip": [
{
"addr": "10.0.0.249",
"mask": "255.255.255.0",
"gateway": "10.0.0.1"
}
],
"iface": "WIFI",
"tls": "OFF",
"dhcp": true,
"mac_filter": false,
"server": {
"host": "10.0.0.35",
"port": 7777
}
},
"wifi": {
"ssid": "LEAPS",
"password": "Lpass",
"region": "EUROPE"
},
"mac": [
{
"addr": "a1:f7:63:73:c8:1b",
"type": "MUTABLE_DEFAULT",
"iface": "UWB"
},
{
"addr": "00:00:00:00:00:00",
"type": "EMPTY",
"iface": "BLE"
},
{
"addr": "02:04:25:30:31:31",
"type": "MUTABLE_DEFAULT",
"iface": "ETHERNET"
},
{
"addr": "f8:f0:05:76:11:f3",
"type": "MUTABLE_DEFAULT",
"iface": "WIFI"
}
],
"timestamp": "1685324882484362"
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/node/uplink/status/{deviceId} |
设备状态. 本主题为只读.
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/node/uplink/status/d20a
{
"present": true,
"downlink": true,
"timestamp": "1681395639299056"
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/node/uplink/config/{deviceId} |
设备配置信息.
Refer to @Todo: will be correct soon
示例1:
topic: leaps/0001/node/uplink/config/0f07
{
"label": "DW0F07",
"uwb_mode": "UWB_MODE_ACTIVE",
"ble": true,
"leds": true,
"fw_update": true,
"anchor": {
"initiator": true,
"location": {
"x": 0,
"y": 0,
"z": 0,
"quality": 0
},
"routing": "ROUTING_OFF"
},
"timestamp": "1681395435098551"
}
示例2:
topic: leaps/0001/node/uplink/config/4439
{
"label": "ID4439",
"uwb_mode": "UWB_MODE_ACTIVE",
"ble": true,
"leds": true,
"fw_update": false,
"tag": {
"location_engine": true,
"low_power": false,
"stationary_detection": false,
"update_rate_nominal": 1,
"update_rate_stationary": 10
},
"timestamp": "1685521957332504"
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/node/uplink/data/{deviceId}
或
{prefix}/{panId}/gateway/uplink/data/{deviceId}
|
示例:
topic: leaps/0001/node/uplink/data/0f07
或
topic: leaps/1234/gateway/uplink/data/deca1d45c870c485
{
"data": "ASNFZ4mrze8=",
"timestamp": "1681396647102782"
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/node/uplink/service/{deviceId}
或
{prefix}/{panId}/gateway/uplink/service/{deviceId}
|
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/node/uplink/service/0f07
或
topic: leaps/1234/gateway/uplink/service/deca1d45c870c485
{
"type": "TLV_API_ACK",
"data": "QAEARgJexA==",
"timestamp": "1679495457581967"
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/node/uplink/location/{deviceId} |
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/node/uplink/location/0012
{
"location": {
"x": 3.10048366,
"y": -0.51273495,
"z": 0.867216647,
"quality": 46,
"statistics": {
"sd_x":0.0756242275,
"sd_y":0.0554805398,
"sd_z":0,
"r95":0.178031936,
"x_err":"NaN",
"y_err":"NaN",
"z_err":"NaN",
"toa": [
{
"anchor_id":39392,
"sd_toa":0.103431724
},
{
"anchor_id":39390,
"sd_toa":0.127849624
},
{
"anchor_id":39386,
"sd_toa":2.77350712
},
{
"anchor_id":39384,
"sd_toa":0
}
]
}
},
"timestamp": "1681481433825962"
}
|
下行链路
主题 |
描述 |
---|---|
{prefix}/{panId}/gateway/downlink/config/{deviceId} |
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/gateway/downlink/config/DECAFA9FC2B38B86
{
"label": "DW590F-nWIFI",
"uwb_mode": "UWB_MODE_ACTIVE",
"ble": false,
"leds": true,
"fw_update": true,
"anchor": {
"initiator": false,
"location": {
"x": -2,
"y": 1,
"z": 1,
"quality": 100
},
"routing": "ROUTING_OFF",
"bridge": true
},
"inet": {
"ip": [
{
"addr": "10.0.0.130",
"mask": "255.255.255.0",
"gateway": "10.0.0.1"
}
],
"dns": [
"8.8.8.8"
],
"iface": "ETHERNET",
"tls": "OFF",
"dhcp": true,
"mac_filter": false,
"server": {
"host": "10.0.0.35",
"port": 7777
}
},
"wifi": {
"ssid": "LEAPS",
"password": "mypass",
"region": "ASIA"
}
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/gateway/downlink/service/{deviceId}
或
{prefix}/{panId}/node/downlink/service/{deviceId}
|
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/gateway/downlink/service/DECAFA9FC2B38B86
或
topic: leaps/0001/node/downlink/service/0f07
{
"data": "CAA=",
"type": "TLV_API_CMD"
}
{
"data": "hQQHAAX/",
"type": "TLV_API_CMD"
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/gateway/downlink/data/{deviceId}
或
{prefix}/{panId}/node/downlink/data/{deviceId}
|
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/gateway/downlink/data/DECAFA9FC2B38B86
或
topic: leaps/0001/node/downlink/data/0f07
{
"data": "QUJDREVGR0hJSktMTU5PUFFSU1Q=",
"overwrite": true
}
{
"data": "QUJDREVGR0hJSktMTU5PUFFSU1Q="
}
|
主题 |
描述 |
---|---|
{prefix}/{panId}/node/downlink/config/{deviceId} |
Refer to @Todo: will be correct soon
示例:
topic: leaps/0001/node/downlink/config/0f07
{
"label": "DW0F07",
"uwb_mode": "UWB_MODE_ACTIVE",
"ble": true,
"leds": true,
"fw_update": true,
"anchor": {
"initiator": true,
"location": {
"x": 0,
"y": 0,
"z": 0,
"quality": 0
},
"routing": "ROUTING_OFF"
}
}
|