正在上传图片(0/1)

有没有调试过osdk usb的小伙伴

 0
手机看帖 5 1383
RT
芯片F405,M300飞机,
例程里的SOF ID DM DP VBUS都有配置,M300OSDK接口却只有DM DP,请问剩余的三个脚是没有作用吗。
我自己使用了F405 主机USB驱动,只处理了DM DP脚,发现USB无法连接飞机
评论
上传
你需要登录之后才能回帖    登录 | 注册
张小龙  DJI FPV认证用户 2020-7-9 3#
另外三根线不不需要连接
张小龙  DJI FPV认证用户 2020-7-9 4#
建议把接线图发出来看看,还有log
楼主   2020-7-10 5#
接线是按照你之前发的帖子,如何制作osdk转接板接的。
我自己画的板子使用f405芯片,板子做从机接入电脑验证过了,硬件没有问题。
合入osdk后调试usb部分usb可以建立连接,
但是log显示:
[19:05:02.707] [2.777]STATUS/1 <a class="nopicture" rel="noopener" href="https://bbs.dji.com/home.php?mod=space&uid=287976&uuid=51812999320462" target="_blank">@</a> DJI::OSDK::Vehicle::parseDroneVersionInfo, L1157: Device Serial No. = 1ZNDH3L0011253
[2.795]STATUS/1 @ DJI::OSDK::Vehicle::parseDroneVersionInfo, L1159: Firmware = 3.4.8.44
[2.811]STATUS/1 @ DJI::OSDK::Vehicle::functionalSetUp, L315: Shake hand with drone successfully by getting drone version.
[19:05:02.769] [2.836]STATUS/1 @ DJI::OSDK::Vehicle::activate, L1349: osdk policy file updating(1) ......
[19:05:03.763] [3.835]STATUS/1 @ DJI::OSDK::Vehicle::sendHeartbeatToFCTask, L1483: OSDK send heart beat to fc task created.
[19:05:05.825] [5.896]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:06.788] [6.854][module_command]-[Info]-[OsdkCommand_SendPoll:838]Command async send retry:1 3
[19:05:06.850] [6.919]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[6.937][module_protocol]-[Warn]-[OsdkProtocol_sdkUnpack:372]Unpack error:unknown ack session id
[6.955][module_channel]-[Info]-[OsdkChannel_RecvProcess:668]protocol unpack error
[19:05:07.354] [7.425][module_command]-[Info]-[OsdkCommand_SendPoll:838]Command async send retry:2 2
[19:05:07.385] [7.455]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:08.388] [8.455]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:09.426] [9.498]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[9.516]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:09.795] [9.861][module_command]-[Info]-[OsdkCommand_SendPoll:838]Command async send retry:1 2
[19:05:10.479] [10.540]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:10.968] [11.039][module_command]-[Info]-[OsdkCommand_SendPoll:838]Command async send retry:2 2
楼主   2020-7-10 6#
<div class="quote"><blockquote><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&amp;goto=findpost&amp;pid=3642509&amp;ptid=248566" target="_blank"><span class="customName">张小龙</span><span class="customShow"></span><span class="customTime">7-9 19:39</span></a>
<span class="customSpan">建议把接线图发出来看看,还有log</span></blockquote></div>RT   在四楼
张小龙  DJI FPV认证用户 2020-7-20 7#
<div class="quote"><blockquote><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&amp;goto=findpost&amp;pid=3643737&amp;ptid=248566" target="_blank"><span class="customName">郝呵呵</span><span class="customShow"></span><span class="customTime">7-10 16:25</span></a>
<span class="customSpan">接线是按照你之前发的帖子,如何制作osdk转接板接的。
我自己画的板子使用f405芯片,板子做从机接入电脑验证过了,硬件没有问题。
合入osdk后调试usb部分usb可以建立连接,
但是log显示:
[19:05:02.707] [2.777]STATUS/1 @ DJI::OSDK::Vehicle::parseDroneVersionInfo, L1157: Device Serial No. = 1ZNDH3L0011253
[2.795]STATUS/1 @ DJI::OSDK::Vehicle::parseDroneVersionInfo, L1159: Firmware = 3.4.8.44
[2.811]STATUS/1 @ DJI::OSDK::Vehicle::functionalSetUp, L315: Shake hand with drone successfully by getting drone version.
[19:05:02.769] [2.836]STATUS/1 @ DJI::OSDK::Vehicle::activate, L1349: osdk policy file updating(1) ......
[19:05:03.763] [3.835]STATUS/1 @ DJI::OSDK::Vehicle::sendHeartbeatToFCTask, L1483: OSDK send heart beat to fc task created.
[19:05:05.825] [5.896]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:06.788] [6.854][module_command]--[OsdkCommand_SendPoll:838]Command async send retry:1 3
[19:05:06.850] [6.919]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[6.937][module_protocol]-[Warn]-[OsdkProtocol_sdkUnpack:372]Unpack error:unknown ack session id
[6.955][module_channel]--[OsdkChannel_RecvProcess:668]protocol unpack error
[19:05:07.354] [7.425][module_command]--[OsdkCommand_SendPoll:838]Command async send retry:2 2
[19:05:07.385] [7.455]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:08.388] [8.455]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:09.426] [9.498]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[9.516]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:09.795] [9.861][module_command]--[OsdkCommand_SendPoll:838]Command async send retry:1 2
[19:05:10.479] [10.540]STATUS/1 @ DJI::OSDK::Vehicle::fcLostConnectCallBack, L1439: OSDK lost connection with Drone!
[19:05:10.968] [11.039][module_command]--[OsdkCommand_SendPoll:838]Command async send retry:2 2</span></blockquote></div>从LOG上来看就是USB没有跟M300通信成功造成lost问题,建议还是把实际的硬件连接图发出来看看。
收藏 点赞 评论
分享至:
回复:
上传
取消 评论
快速回复 返回顶部 返回列表