mqtt连接机场后,每秒有几十条消息
已完成几个现象。
1. 重复的消息,下面的消息一秒内收到4次,bid/tid都是不一样的。
thing/product/XXX/state
{
"bid": "4d4853e7-1aeb-4058-bdff-64826f583258",
"data": {
"psdk_ui_resource": []
},
"tid": "ce68f23a-b1f8-4bd6-8ae3-1d3551210fa5",
"timestamp": 1724743739679,
"gateway": "XXX"
2. 重复的消息。一秒钟收到几十条。
thing/product/XXX/state
2024-08-27.15:29:01,247 DEBUG devmaster:109 {
"bid": "baad2e16-36bf-4070-8f8f-b40c69ff89cb",
"data": {
"dongle_infos": []
},
"tid": "72c08781-9aec-4ece-959e-549b932c91de",
"timestamp": 1724743739646,
"gateway": "XXX"
}
-
部分版本信息
{
"tid": "57a35de9-ec50-4baf-86e0-b73b34f5e72d",
"bid": "e2142f21-1efe-4ac1-aa51-f2a97460f6ad",
"timestamp": 1724732223102,
"data": {
"firmware_version": "10.01.1607",
"compatible_status": 0,
"firmware_upgrade_status": 0
},
"gateway": "XXX"
}{
"tid": "9789b188-77fd-4c5a-ba74-c5281c8ef4e9",
"bid": "3a43eca3-935b-4537-9094-3983c5ee5678",
"timestamp": 1724739147047,
"method": "update_topo",
"data": {
"domain": "3",
"type": 2,
"sub_type": 0,
"device_secret": "XXX",
"nonce": "XXX",
"thing_version": "1.3.0",
"sub_devices": [
{
"sn": "XXX",
"domain": "0",
"type": 91,
"sub_type": 0,
"index": "A",
"device_secret": "XXX",
"nonce": "XXX",
"thing_version": "1.3.0"
}
]
}
} -
找到了,飞机也是10.01.1607。没有负载。
thing/product/飞机sn/state
2024-08-27.17:22:47,427 DEBUG devmaster:109 {
"tid": "8e984f7a-0405-4a71-99a7-dd48ef76eb4d",
"bid": "006bc7f9-83ad-4291-a779-46ba397101e4",
"timestamp": 1724750567317,
"data": {
"firmware_version": "10.01.1607",
"compatible_status": 0,
"firmware_upgrade_status": 0
},
"gateway": "网关sn"
} -
感谢这么晚还在回复。
重启后,就是回复了几个requests的消息。譬如:storage_config_get,config,airport_bind_status。然后就开始接收osd/state。因为只在测试通信是否正常,所以没有主动发起消息。
我的疑问是,即使上面几个requests的消息,回复的格式或内容有问题。会导致机场的异常吗。
另外,我看到requests主题的config方法有规律的每25秒收到一次,storage_config_get方法每5秒收到一次。
我检查我的回复,好像也是正常的,bid和tid是原请求的内容
Topic: thing/product/——————/requests_reply
2024-08-27.17:11:02,452 DEBUG devmaster:119 {
"bid": "2da2201b-89b7-4f98-ba2a-2dd9b4b393cb",
"data": {
"output": {
"bucket": "————",
"credentials": {
"access_key_id": "STS.————————————————",
"access_key_secret": "————————————",
"expire": 3600,
"security_token": "————————"
},
"endpoint": "https://oss-cn-shenzhen.aliyuncs.com",
"object_key_prefix": null,
"provider": "ali",
"region": "cn-shenzhen"
},
"result": 0
},
"method": "storage_config_get",
"need_reply": 0,
"tid": "46ae3ff4-0827-4466-9e90-f10c7543c9b6",
"timestamp": 1724749862451,
"gateway": "——————"
} -
尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 未涉及到媒体上传storage_config_get可以先不用回,只关注上云时序即可。 config应该只需要在上云的时候请求一次,重复请求需要看下回复的消息是否正确。 相关文档地址:https://developer.dji.com/doc/cloud-api-tutorial/cn/feature-set/dock-feature-set/dock-access-to-cloud.html 希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持 -
config固定27秒收到一次,state就更恐怖了,一秒几十条到几百条。
"bid": "b971c661-8b36-4774-9850-92936d017f31",
"timestamp": 1724816958925,
"method": "config",
--
"bid": "d0afa6a7-1bc9-4619-8694-d9f6d127c017",
"timestamp": 1724816995545,
"method": "config",
--
"bid": "d0afa6a7-1bc9-4619-8694-d9f6d127c017",
"timestamp": 1724816995613,
"method": "config",
--
"bid": "eb56f774-9de9-4c64-92d0-7c7541bb5026",
"timestamp": 1724817023640,
"method": "config",
--
"bid": "eb56f774-9de9-4c64-92d0-7c7541bb5026",
"timestamp": 1724817023720,
"method": "config",
--
"bid": "00575112-1ed6-42ce-8323-8551e536853d",
"timestamp": 1724817050388,
"method": "config",
--
"bid": "00575112-1ed6-42ce-8323-8551e536853d",
"timestamp": 1724817050471,
"method": "config",
--
"bid": "3fc9c1be-2473-429b-814f-c6b48432b241",
"timestamp": 1724817077210,
"method": "config",
请先登录再写评论。
评论
34 条评论