1.URL
http://124.223.60.234:8080/system/asset/command/queryDownlinkCommandList
or Server in US
https://cloud.aovx.com/prod/system/asset/command/queryDownlinkCommandList
2.Request parameters
2.1.Request headers
Add token in Headers: After successful login verification, the corresponding tokenId in user login response data
2.2.Parameters example
{
"ids":["1957EE0C69614AB3B3AF2755103B0AB6"],
"startTime":"2023-02-02 00:00:00",
"endTime":"2023-02-03 00:00:00",
"pageNum":1,
"pageSize":20
}
2.3.Parameters description
Field | Data type | description | required |
---|---|---|---|
ids | List | Set of unique device identifiers in the system | Y |
startTime | String | start time(UTC) | Y |
endTime | String | end time(UTC) | Y |
pageNum | int | Paging query for current page number, default 1 | Y |
pageSize | int | Paging query displays the number of items per page, default 20 | Y |
3.Response content
3.1.Response example
{
"code": 200,
"message": "Operation succeeded",
"data": {
"total": 7,
"size": 1,
"data": [
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"strMsgId": "0x8105",
"msgFlowId": 6,
"encryptType": 0,
"params": "{\"36\":\"xxxxxxxxxxxxx\"}",
"offline": 0,
"sendTime": "2023-02-02T09:20:39.591680Z",
"commandContent": "7e8105000e34405019042500062478787878787878787878787878cc7e",
"status": 0,
"replyMessageIdStr": null,
"replyMsgFlowId": null,
"replyContent": null,
"replyDateTime": null
},
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"strMsgId": "0x8105",
"msgFlowId": 5,
"encryptType": 0,
"params": "{\"35\":{\"CHANNEL\":\"1\",\"MODE\":\"0\"}}",
"offline": 0,
"sendTime": "2023-02-02T09:17:07.014446Z",
"commandContent": "7e81050004344050190425000523312c30977e",
"status": 0,
"replyMessageIdStr": null,
"replyMsgFlowId": null,
"replyContent": null,
"replyDateTime": null
},
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"strMsgId": "0x8105",
"msgFlowId": 4,
"encryptType": 0,
"params": "{\"33\":1}",
"offline": 0,
"sendTime": "2023-02-02T09:11:19.095638Z",
"commandContent": "7e81050002344050190425000421318e7e",
"status": 0,
"replyMessageIdStr": null,
"replyMsgFlowId": null,
"replyContent": null,
"replyDateTime": null
},
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"strMsgId": "0x8105",
"msgFlowId": 3,
"encryptType": 0,
"params": "{\"32\":{\"PROTOCOL\":\"0\",\"VERSION\":\"xxxxxxxxxxxxx\",\"MODE\":\"0\",\"TYPE\":\"0\",\"URL\":\"http://47.112.122.222:8080/xxxxx.bin\"}}",
"offline": 0,
"sendTime": "2023-02-02T09:04:30.218242Z",
"commandContent": "7e81050040344050190425000320303b303b787878787878787878787878783b303b687474703a2f2f34372e3131322e3132322e3232323a383038302f78787878782e62696e3b313233343536977e",
"status": 0,
"replyMessageIdStr": null,
"replyMsgFlowId": null,
"replyContent": null,
"replyDateTime": null
},
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"strMsgId": "0x8105",
"msgFlowId": 2,
"encryptType": 0,
"params": "{\"32\":{\"PROTOCOL\":\"0\",\"VERSION\":\"xxxxxxxxxxxxx\",\"MODE\":\"0\",\"TYPE\":\"0\",\"URL\":\"http://47.112.122.222:8080/xxxxx.bin\"}}",
"offline": 0,
"sendTime": "2023-02-02T09:04:14.462575Z",
"commandContent": "7e81050040344050190425000220303b303b787878787878787878787878783b303b687474703a2f2f34372e3131322e3132322e3232323a383038302f78787878782e62696e3b313233343536967e",
"status": 0,
"replyMessageIdStr": null,
"replyMsgFlowId": null,
"replyContent": null,
"replyDateTime": null
},
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"strMsgId": "0x8103",
"msgFlowId": 1,
"encryptType": 0,
"params": "{\"16\":\"test\",\"17\":\"test\",\"18\":\"123456\",\"19\":\"47.112.122.222\",\"24\":\"6608\"}",
"offline": 0,
"sendTime": "2023-02-02T08:54:54.477690Z",
"commandContent": "7e8103003a3440501904250001050000001004746573740000001104746573740000001206313233343536000000130e34372e3131322e3132322e3232320000001804000019d0667e",
"status": 0,
"replyMessageIdStr": null,
"replyMsgFlowId": null,
"replyContent": null,
"replyDateTime": null
},
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"strMsgId": "0x8103",
"msgFlowId": 1,
"encryptType": 0,
"params": "{\"1\":\"10\"}",
"offline": 0,
"sendTime": "2023-02-02T08:34:14.344Z",
"commandContent": "7e8103000a34405019042500010100000001040000000a9b7e",
"status": 0,
"replyMessageIdStr": null,
"replyMsgFlowId": null,
"replyContent": null,
"replyDateTime": null
}
]
}
}
3.2.Response description
Field | Data type | description |
---|---|---|
code | int | Return code |
message | String | Return message |
data | object | Response data |
Response data description
Field | Data type | description |
---|---|---|
total | String | Total number of paged queries |
size | String | How many pages are there for pagination query |
data | object | Result set per page |
Per page data description
Field | Data type | description |
---|---|---|
terminalId | String | Unique identification of device in the system |
terminalNum | String | Device number |
strMsgId | String | Command Message ID |
msgFlowId | int | Command serial number |
encryptType | Integer | Whether to encrypt (0: not encrypted; 1: encrypted) |
params | String | Parameters send by the platform |
offline | Integer | Whether to send offline (0: real-time sending; 1: offline sending) |
sendTime | String | send time(UTC) |
commandContent | String | Send command content |
status | Integer | Command response status (0: not answered; 1: answered) |
replyMessageIdStr | String | Response Message ID |
replyMsgFlowId | Integer | Response serial number |
replyContent | String | Response content |
replyDateTime | String | Response time |
作者:admin 创建时间:2023-04-25 11:50
最后编辑:admin 更新时间:2024-12-27 19:48
最后编辑:admin 更新时间:2024-12-27 19:48