Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnBoard SDK 3.8/3.8.1 not working in Ubuntu 16.04 (M210 RTK V2 and Zenmuse X4S) #442

Open
alejodosr opened this issue Jun 4, 2019 · 2 comments

Comments

@alejodosr
Copy link

@alejodosr alejodosr commented Jun 4, 2019

I have successfully executed all the OSDK 3.8/3.8.1 samples regarding telemetry, FPV camera, etc. with an M210 RTK V2 (Frimware 1.0.0450) and a Zenmuse X4S. However, I have tested OSDK 3.8 and 3.8.1 in Ubuntu 16.04 and I have not succeed with your pre-made main camera samples (in this case, the camera-stream-callback-sample for retrieving the main camera image).

Please, mind that your platform is very expensive and it is compromising our business, since your API is not properly working while it is saying it is fully compatible.

The problem is that the camera-stream-callback-sample is not working. It is giving the following error:

Please enter the type of camera stream you want to view
m: Main Camera
f: FPV  Camera
m
Read App ID
User Configuration read successfully. 


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

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

STATUS/1 @ parseDroneVersionInfo, L727: Device Serial No. = 1DADG3E00100TW

STATUS/1 @ parseDroneVersionInfo, L729: Hardware = PM420

STATUS/1 @ parseDroneVersionInfo, L730: Firmware = 3.4.3.31

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

STATUS/1 @ init, L49: Looking for USB device...

STATUS/1 @ init, L65: Found 13 USB devices, identifying DJI device...

STATUS/1 @ init, L83: Found a DJI device...

STATUS/1 @ init, L96: Attempting to open DJI USB device...

STATUS/1 @ init, L134: ...DJI USB device started successfully.

STATUS/1 @ activate, L1313: version 0x304031F

STATUS/1 @ activate, L1326: 
STATUS/1 @ verify, L244: Verify subscription successful.
STATUS/1 @ initGimbal, L890: Checking if gimbal is connected ...
STATUS/1 @ startPackage, L350: Start package 0 result: 0.
STATUS/1 @ startPackage, L352: Package 0 info: freq=50, nTopics=1.

STATUS/1 @ removePackage, L468: Remove package 0 successful.
STATUS/1 @ init, L55: Attempting to open device  with baudrate 230400...

ERRORLOG/1 @ _serialOpen, L175: cannot open device 

ERRORLOG/1 @ init, L60: ...Failed to start serial

STATUS/1 @ keep_camera_x5s_state, L44: Sending heart beat

ERRORLOG/1 @ sendData, L189: Port closed
STATUS/1 Connect to MAIN_CAMERA successful

STATUS/1 All components for decoding initialized ...

STATUS/1 User callback thread created successfully!

STATUS/1 **** MAIN_CAMERA data reading thread start! ****

STATUS/1 ****** Decoder Callback Thread Start ******

ERRORLOG/1 @ sendData, L189: 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 
STATUS/1 @ keep_camera_x5s_state, L44: 
ERRORLOG/1 @ sendData, L189: 

Any help?

@dji-sdk

This comment has been minimized.

Copy link

@dji-sdk dji-sdk bot commented Jun 4, 2019

Hi, there are two options for you to ask for help:

  1. Post your issues on StackOverflow: https://stackoverflow.com/questions/tagged/dji-sdk, the community can help you.

  2. Report your issues to dev@dji.com, as it's our official channel for developers to request DJI Developer Support now.

For DJI Developer Support, we have the following three tiers:

  • Standard

This free support is available to anyone reaching out to dev@dji.com. There is no guarantee for response time.

  • Preferred

    This support comes with Pro membership for 99 USD per year. You can purchase it on DJI Developer Website. These requests have priority over Standard ones. Starting today, Preferred questions will be replied to within 2 to 5 business days (Monday – Friday).

  • Premium

    This one-time ticket is considered high-priority and costs 499 USD per issue. You can purchase it on DJI Developer Website after you become the Pro membership developer. Starting today, Premium questions will be replied to within 1 business day (Monday – Friday). This may include communication with DJI SDK engineers, but will not involve face-to-face interaction. Time limitations apply, and please keep in mind that one question is permitted per ticket. We will do our best to resolve your issue, but there some situations demand deeper engineering efforts.

@alejodosr

This comment has been minimized.

Copy link
Author

@alejodosr alejodosr commented Jun 11, 2019

Solution: In Ubuntu 16.04 and OSDK 3.8.1 with M210 RTK V2 (all the checklist met and the RC turned on) the sample has to be called like this:

./camera-stream-callback-sample UserConfig.txt /dev/ttyACM0

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.