遥控器上 和飞机 反复断链又重新连接上了
Completed代码修改点:在registerApp的各个回调函数中增加日志记录。
无人机:MINI3 PRO
问题现象:
1、使用遥控器DJI RC-N1正常。
2、使用遥控器DJI RC PRO异常,日志记录反复回调onProductDisconnect和onProductConnect。 从onProductDisconnect到onProductConnect中间间隔2ms。
从onProductDisconnect到下一次onProductDisconnect,中间间隔大约5~6s。
有时候使用大疆官方DJI FLY也存在此问题,有时候没有。但是自己开发的APP上是必现的。有什么原因导致他周期性的断链么?
-
Logcat里面的日志:反复记录,不知道是否有关系。
2023-08-03 14:34:39.461 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:85) KeyConnection:false
2023-08-03 14:34:39.461 6462-6462/com.dji.sampleV5.aircraft I/RTKStartServiceHelper: (observerRTKNoduleAvailable$lambda-3:86) fcConnected=false
2023-08-03 14:34:39.462 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:85) KeyConnection:null
2023-08-03 14:34:39.474 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:85) KeyConnection:false
2023-08-03 14:34:39.475 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:85) KeyConnection:null
2023-08-03 14:34:39.476 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/DefaultLayoutActivity@1dea532: (onCameraSourceUpdated:312) PORTSIDE CAMERA_LENS_DEFAULT
2023-08-03 14:34:39.481 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:92) KeyProductType:UNRECOGNIZED
2023-08-03 14:34:39.497 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:92) KeyProductType:null-------------
2023-08-03 14:34:39.586 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (_init_$lambda-1:58) isNetworkAvailable true
2023-08-03 14:34:39.587 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:92) KeyProductType:DJI_MINI_3_PRO
2023-08-03 14:34:39.611 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/DefaultLayoutActivity@1dea532: (updateFPVWidgetSource:253) [{"physicalDeviceCategory":"CAMERA","physicalDevicePosition":"PORTSIDE","physicalDeviceType":{"co_b":"DJI_MINI_3_PRO"},"streamId":-1}]
2023-08-03 14:34:39.612 6462-6462/com.dji.sampleV5.aircraft I/DJIV5/MSDKInfoVm@251c069: (invoke:85) KeyConnection:true
2023-08-03 14:34:39.612 6462-6462/com.dji.sampleV5.aircraft I/RTKStartServiceHelper: (observerRTKNoduleAvailable$lambda-3:86) fcConnected=true
2023-08-03 14:34:39.612 6462-6462/com.dji.sampleV5.aircraft I/RTKStartServiceHelper: (startRtkService:113) startRtkService
2023-08-03 14:34:39.612 6462-6462/com.dji.sampleV5.aircraft E/RTKStartServiceHelper: (startRtkService:119) don not need start rtk Service!
Please sign in to leave a comment.
Comments
4 comments