dji-sdk / Onboard-SDK

DJI Onboard SDK Official Repository
https://github.com/dji-sdk/Onboard-SDK
Other
915 stars 632 forks source link

16062 segmentation fault (core dumped) #831

Open huynhtnhut97 opened 3 years ago

huynhtnhut97 commented 3 years ago

Dear author,

I am working on the M210 RTK and using Onboard SDK 4.1.0. I successfully compiled the code. However, I encounter the following error when i tried to run it. `╰─$ bin/camera-stream-callback-sample UserConfig.txt /dev/ttyACM0 139 ↵ Please enter the type of camera stream you want to view (M210 V2) m: Main Camera f: FPV Camera m argv[1] = UserConfig.txt Find the target ttyACM device , path:/dev/ttyACM0 Read App ID User Configuration read successfully.

Set ACM device:/dev/ttyACM0 [2105065.056]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 095XF4200201KC [2105065.056]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.3.10.18 [2105065.056]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version. [2105065.056]ERRORLOG/1 @ functionalSetUp, L298: Only support M210 V2 series and M300!

[2105065.056]STATUS/1 @ activate, L1329: version 0x3030A12

[1] 16005 segmentation fault (core dumped) bin/camera-stream-callback-sample UserConfig.txt /dev/ttyACM0 ` I have followed the instruction from official site and properly connect TX2 to the drone. According to the illustration, the connection is correct, however, it fail to set up functions. Though I am using M210 RTK, it failed to set up some functions.

dji-dev commented 3 years ago

Agent comment from DJI SDK in Zendesk ticket #54544:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev commented 3 years ago

Agent comment from kyle.cai in Zendesk ticket #54544:

Dear developer ,

Thank you for contacting DJI.

OSDK 4.1 only support M210/RTK v2 and M300

For M210 /RTK (v1), version 3.9 is recommanded.​

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team
inline-477794858.png

°°°

huynhtnhut97 commented 3 years ago

Agent comment from kyle.cai in Zendesk ticket #54544:Dear developer ,

Thank you for contacting DJI.

OSDK 4.1 only support M210/RTK v2 and M300

For M210 /RTK (v1), version 3.9 is recommanded.​

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Teaminline-477794858.png

°°°

Thanks. I got version 3.9. However, i encounter this error. `./djiosdk-telemetry-sample UserConfig.txt UserConfig.txt /dev/ttyACM0 255 ↵ argv[1] = UserConfig.txt argv[2] = UserConfig.txt Find the target ttyACM device , path:/dev/ttyACM0 Read App ID User Configuration read successfully.

Set ACM device:/dev/ttyACM0

STATUS/1 @ init, L56: Attempting to open device /dev/ttyUSB0 with baudrate 230400...

STATUS/1 @ init, L66: ...Serial started successfully.

STATUS/1 @ parseDroneVersionInfo, L762: Device Serial No. = 095XF4200201KC

STATUS/1 @ parseDroneVersionInfo, L764: Hardware = PM410

STATUS/1 @ parseDroneVersionInfo, L765: Firmware = 3.3.10.18

ERRORLOG/1 @ initVirtualRC, L1188: Virtual RC is not supported on this platform!

STATUS/1 @ activate, L1398: version 0x3030A12

STATUS/1 @ getErrorCodeMessage, L752: activate ERRORLOG/1 @ getCommonErrorCodeMessage, L822: UNKNOWN_ACK_ERROR_CODE

ERRORLOG/1 @ activate, L1424: Failed to activate please retry SET 0x0 ID 0x0 code 0xFFFF

STATUS/1 @ getErrorCodeMessage, L752: initVehicle ERRORLOG/1 @ getCommonErrorCodeMessage, L822: UNKNOWN_ACK_ERROR_CODE

STATUS/1 @ getErrorCodeMessage, L752: reset ERRORLOG/1 @ getCommonErrorCodeMessage, L822: UNKNOWN_ACK_ERROR_CODE Vehicle not initialized, exiting. ` Do you know how to fix it? Thanks.