M210 (v1) OSDK: DJI USB device connection failed
2168 4 2020-8-20
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_4A2fZy4Otbfn
lvl.1
Flight distance : 83438 ft
Switzerland
Offline

Dear Support team
My goal is to run the samples of the OSDK, but I struggle with the USB connection.
Setup:
  • M210 (v1)
  • OSDK 3.9
  • Ubuntu 20.04

My problem: When I run: ./camera-stream-callback-sample UserConfig.txt
The DJI device is discovered, but the attempt to open it fails, see picture.

What I tried:

- granted permissions for UART: sudo usermod -a -G dialout $USER
- added UDEV file according to: https://developer.dji.com/onboard-sdk/documentation/development-workflow/environment-setup.html

Any other hint? Thank you very much!






failed to open DJI USB device

failed to open DJI USB device
camera-stream-callback-sample.png
2020-8-20
Use props
djiuser_4A2fZy4Otbfn
lvl.1
Flight distance : 83438 ft
Switzerland
Offline

Figured it out after 4 hours :/

The instructions of this official (!) page is wrong: https://developer.dji.com/onboard-sdk/documentation/quickstart/development-environment.html

The command there is: SUBSYSTEM=="usb", ATTRS {idVendor} =="2ca3", MODE ="0666"

However, the correct command is: SUBSYSTEM=="usb", ATTRS{idVendor} =="2ca3", MODE ="0666"

So, the space between ATTRS and {idVendor} is wrong. Leaving this here in case someone else runs into that problem.

@DJI, please fix this, thx!
2020-8-21
Use props
GonzaloCarballo
New

Uruguay
Offline

Hola, alguien probó instalar el dji simulator en ubuntu? Les pregunto porque yo no he podido, ni siquiera con wine. Es la primera vez que entro a un foro. Saludos.
2020-8-30
Use props
djiuser_4A2fZy4Otbfn
lvl.1
Flight distance : 83438 ft
Switzerland
Offline

GonzaloCarballo Posted at 8-30 15:13
Hola, alguien probó instalar el dji simulator en ubuntu? Les pregunto porque yo no he podido, ni siquiera con wine. Es la primera vez que entro a un foro. Saludos.

DJI's Assistant 2 is only available for Mac or Windows...thus if you want to run it under Linux, you would need a virtual machine. Cheers
2020-8-31
Use props
A J
Captain
Flight distance : 13926112 ft
  • >>>
United Kingdom
Offline

djiuser_4A2fZy4Otbfn Posted at 8-21 03:36
Figured it out after 4 hours :/

The instructions of this official (!) page is wrong: https://developer.dji.com/onboard-sdk/documentation/quickstart/development-environment.html

Thanks for sharing
2020-9-23
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules