M300 RTK飞机,MSDK 4.15开发,平板通过USB连接到遥控器,SDK回调问题
Completed在遥控器再开机情况下,启动我的软件的话,会出现以下两种情况:
第一种是只有注册成功,启动连接设备后没有连接成功回调,也没有任何下文了。
第二种情况就是有连接成功回调,但是立马又会来一个断开连接的回调。请问这种情况怎么处理
第三种情况就是连接上,一段时间后,突然连接就断开,Android设备和遥控器一直都是使用USB线连接,没有动过
下面截图就i是,连接上飞行,一段时间后,突然连接就断开,Android设备和遥控器一直都是使用USB线连接,没有动过
-
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报错如上
Please sign in to leave a comment.
Comments
3 comments