M300 RTK飞机,MSDK 4.15开发,平板通过USB连接到遥控器,SDK回调问题

已完成

评论

3 条评论

  • DJI Developer Support
    1. 第一种这样的情况,退出到桌面,杀掉app再点开就会有回调了。 2. 我遇到过这种情况,不过是app装在遥控器里,退出到桌面,杀掉app再点开。 3. 我其实比较怀疑你的USB线有问题。
    0
    评论操作 固定链接
  • sheng

    11-15 15:37:10.942 1874 1986 W System.err: at libcore.io.BlockGuardOs.write(BlockGuardOs.java:319)
    11-15 15:37:10.943 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:496)
    11-15 15:37:10.943 1874 1986 W System.err: ... 7 more
    11-15 15:37:11.945 1874 1986 W System.err: java.io.IOException: write failed: ENODEV (No such device)
    11-15 15:37:11.946 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:501)
    11-15 15:37:11.946 1874 1986 W System.err: at java.io.FileOutputStream.write(FileOutputStream.java:316)
    11-15 15:37:11.946 1874 1986 W System.err: at dji.midware.usb.P3.UsbAccessoryService.sendmessage()
    11-15 15:37:11.946 1874 1986 W System.err: at dji.midware.data.manager.P3.ServiceManager.sendmessage()
    11-15 15:37:11.946 1874 1986 W System.err: at dji.midware.data.manager.P3.bko$nhf.handleMessage()
    11-15 15:37:11.947 1874 1986 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    11-15 15:37:11.947 1874 1986 W System.err: at android.os.Looper.loop(Looper.java:154)
    11-15 15:37:11.947 1874 1986 W System.err: at android.os.HandlerThread.run(HandlerThread.java:61)
    11-15 15:37:11.947 1874 1986 W System.err: Caused by: android.system.ErrnoException: write failed: ENODEV (No such device)
    11-15 15:37:11.948 1874 1986 W System.err: at libcore.io.Posix.writeBytes(Native Method)
    11-15 15:37:11.948 1874 1986 W System.err: at libcore.io.Posix.write(Posix.java:273)
    11-15 15:37:11.948 1874 1986 W System.err: at libcore.io.BlockGuardOs.write(BlockGuardOs.java:319)
    11-15 15:37:11.948 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:496)
    11-15 15:37:11.948 1874 1986 W System.err: ... 7 more
    11-15 15:37:12.499 1874 1982 E gfd : receive msg MSG_RETRY_DETECT_ENABLE_TIMEOUT
    11-15 15:37:12.951 1874 1986 W System.err: java.io.IOException: write failed: ENODEV (No such device)
    11-15 15:37:12.951 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:501)
    11-15 15:37:12.952 1874 1986 W System.err: at java.io.FileOutputStream.write(FileOutputStream.java:316)
    11-15 15:37:12.952 1874 1986 W System.err: at dji.midware.usb.P3.UsbAccessoryService.sendmessage()
    11-15 15:37:12.952 1874 1986 W System.err: at dji.midware.data.manager.P3.ServiceManager.sendmessage()
    11-15 15:37:12.952 1874 1986 W System.err: at dji.midware.data.manager.P3.bko$nhf.handleMessage()
    11-15 15:37:12.952 1874 1986 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    11-15 15:37:12.952 1874 1986 W System.err: at android.os.Looper.loop(Looper.java:154)
    11-15 15:37:12.952 1874 1986 W System.err: at android.os.HandlerThread.run(HandlerThread.java:61)
    11-15 15:37:12.953 1874 1986 W System.err: Caused by: android.system.ErrnoException: write failed: ENODEV (No such device)
    11-15 15:37:12.953 1874 1986 W System.err: at libcore.io.Posix.writeBytes(Native Method)
    11-15 15:37:12.953 1874 1986 W System.err: at libcore.io.Posix.write(Posix.java:273)
    11-15 15:37:12.953 1874 1986 W System.err: at libcore.io.BlockGuardOs.write(BlockGuardOs.java:319)
    11-15 15:37:12.953 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:496)
    11-15 15:37:12.954 1874 1986 W System.err: ... 7 more
    11-15 15:37:13.956 1874 1986 W System.err: java.io.IOException: write failed: ENODEV (No such device)
    11-15 15:37:13.957 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:501)
    11-15 15:37:13.957 1874 1986 W System.err: at java.io.FileOutputStream.write(FileOutputStream.java:316)
    11-15 15:37:13.957 1874 1986 W System.err: at dji.midware.usb.P3.UsbAccessoryService.sendmessage()
    11-15 15:37:13.957 1874 1986 W System.err: at dji.midware.data.manager.P3.ServiceManager.sendmessage()
    11-15 15:37:13.957 1874 1986 W System.err: at dji.midware.data.manager.P3.bko$nhf.handleMessage()
    11-15 15:37:13.958 1874 1986 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    11-15 15:37:13.958 1874 1986 W System.err: at android.os.Looper.loop(Looper.java:154)
    11-15 15:37:13.958 1874 1986 W System.err: at android.os.HandlerThread.run(HandlerThread.java:61)
    11-15 15:37:13.958 1874 1986 W System.err: Caused by: android.system.ErrnoException: write failed: ENODEV (No such device)
    11-15 15:37:13.959 1874 1986 W System.err: at libcore.io.Posix.writeBytes(Native Method)
    11-15 15:37:13.959 1874 1986 W System.err: at libcore.io.Posix.write(Posix.java:273)
    11-15 15:37:13.959 1874 1986 W System.err: at libcore.io.BlockGuardOs.write(BlockGuardOs.java:319)
    11-15 15:37:13.959 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:496)
    11-15 15:37:13.959 1874 1986 W System.err: ... 7 more
    11-15 15:37:14.954 1874 2138 D MachineOrderUtils: [, , 0]:循环获取机场状态:doorStatus:MachineStatus(status=1, msg=舱门已经打开)---platformStatus:MachineStatus(status=3, msg=平台已上升)---xStatus:MachineStatus(status=1, msg=X轴推
    杆已经打开)---yStatus:MachineStatus(status=1, msg=Y轴推杆已经打开)
    11-15 15:37:14.961 1874 1986 W System.err: java.io.IOException: write failed: ENODEV (No such device)
    11-15 15:37:14.961 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:501)
    11-15 15:37:14.962 1874 1986 W System.err: at java.io.FileOutputStream.write(FileOutputStream.java:316)
    11-15 15:37:14.962 1874 1986 W System.err: at dji.midware.usb.P3.UsbAccessoryService.sendmessage()
    11-15 15:37:14.962 1874 1986 W System.err: at dji.midware.data.manager.P3.ServiceManager.sendmessage()
    11-15 15:37:14.962 1874 1986 W System.err: at dji.midware.data.manager.P3.bko$nhf.handleMessage()
    11-15 15:37:14.962 1874 1986 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
    11-15 15:37:14.962 1874 1986 W System.err: at android.os.Looper.loop(Looper.java:154)
    11-15 15:37:14.962 1874 1986 W System.err: at android.os.HandlerThread.run(HandlerThread.java:61)
    11-15 15:37:14.962 1874 1986 W System.err: Caused by: android.system.ErrnoException: write failed: ENODEV (No such device)
    11-15 15:37:14.962 1874 1986 W System.err: at libcore.io.Posix.writeBytes(Native Method)
    11-15 15:37:14.962 1874 1986 W System.err: at libcore.io.Posix.write(Posix.java:273)
    11-15 15:37:14.962 1874 1986 W System.err: at libcore.io.BlockGuardOs.write(BlockGuardOs.java:319)
    11-15 15:37:14.962 1874 1986 W System.err: at libcore.io.IoBridge.write(IoBridge.java:496)
    11-15 15:37:14.962 1874 1986 W System.err: ... 7 more

     

    注册成功,没有任何回调,sdk报错如上

    0
    评论操作 固定链接
  • sheng

    经常出现和遥控器连接断开,logcat错误日志提示connectClose,这是什么情况,应该怎么解决呢?

    0
    评论操作 固定链接

请先登录再写评论。