0、条件
已知官网:https://www.t3go.cn
1、可以拿到以下服务端数据:
Json代码
{"msgHdr":{"protVer":1,"deviceID":"020101190100010034","timestamp":1576813888773,"srvType":"DATA_COLL","msgID":"REPORT_COLL_DATA","transID":1576813888774346149,"respTopicID":0,"isAck":false,"needAck":false},"dataLst":[{"condID":10001,"list":[{"canID":8000001,"dataUnit":[{"timestamp":1576813888770,"data":{"latitude":0,"longitude":0,"direction":0,"accuracy":0,"altitude":0,"engineCtrlMode":0}}]},{"canID":355,"dataUnit":[{"timestamp":1576813888770,"data":"4E207D0000000FA0"}]},{"canID":407,"dataUnit":[{"timestamp":1576813888770,"data":"0002EE003F840000"}]},{"canID":629,"dataUnit":[{"timestamp":1576813888770,"data":"0000030001400000"}]},{"canID":1283,"dataUnit":[{"timestamp":1576813888770,"data":"2000000000000000"}]},{"canID":1347,"dataUnit":[{"timestamp":1576813888770,"data":"0000000000000000"}]},{"canID":1363,"dataUnit":[{"timestamp":1576813888770,"data":"0000000000010000"}]},{"canID":803,"dataUnit":[{"timestamp":1576813888770,"data":"3C3C3C3C46464600"}]},{"canID":819,"dataUnit":[{"timestamp":1576813888770,"data":"0000000000000000"}]},{"canID":1379,"dataUnit":[{"timestamp":1576813888770,"data":"0C401E000000003C"}]},{"canID":839,"dataUnit":[{"timestamp":1576813888770,"data":"03FFFFFFFFFF2248"}]},{"canID":1094,"dataUnit":[{"timestamp":1576813888770,"data":"0000000000000000"}]},{"canID":1298,"dataUnit":[{"timestamp":1576813888770,"data":"0000000000000000"}]},{"canID":1107,"dataUnit":[{"timestamp":1576813888770,"data":"0000000000000000"}]},{"canID":1123,"dataUnit":[{"timestamp":1576813888770,"data":"0DFC5F010E015601"}]},{"canID":1139,"dataUnit":[{"timestamp":1576813888770,"data":"0001010001010000"}]},{"canID":1155,"dataUnit":[{"timestamp":1576813888770,"data":"0000000001010101"}]},{"canID":1171,"dataUnit":[{"timestamp":1576813888770,"data":"07FC000000000000"}]},{"canID":1299,"dataUnit":[{"timestamp":1576813888770,"data":"01FFFC8000000000"}]},{"canID":896,"dataUnit":[{"timestamp":1576813888770,"data":"0000000000006600"}]}]}]}
>>>SELECT FROM_UNIXTIME(1576813888773/1000);
=>2019-12-20 11:51:28.7730
2、可以拿到客户端数据
Json代码
{
"msgHdr":{
"isAck":true,
"transID":1576842484767358335,
"needAck":false,
"protVer":1,
"msgID":"AIBOX_LOGIN",
"respTopicID":0,
"srvType":"DEVICE_MGMT",
"deviceID":"030201191100010286",
"timestamp":1576813684767
},
"resultCode":0
}
>>> SELECT FROM_UNIXTIME(1576813684767/1000);
2019-12-20 11:48:04.7670
Json代码
{
"msgHdr":{
"isAck":false,
"transID":1576813683233283072,
"needAck":true,
"protVer":1,
"msgID":"SET_COLL_COND",
"respTopicID":12,
"srvType":"DATA_COLL",
"deviceID":"010102191069035355",
"timestamp":1576813683233
},
"ver":10,
"condLst":[
{
"condID":10001,
"canIDs":[
8000001,
355,
407,
629,
1283,
1347,
1363,
803,
819,
1379,
839,
1094,
1298,
1107,
1123,
1139,
1155,
1171,
1299,
1008,
896
],
"collMod":1,
"collCycle":3,
"reportCycle":3
}
]
}
网友评论