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

libusb Error #10

Closed
binary42 opened this issue Jan 7, 2016 · 1 comment
Closed

libusb Error #10

binary42 opened this issue Jan 7, 2016 · 1 comment

Comments

@binary42
Copy link

binary42 commented Jan 7, 2016

Greetings. Given the following description of our attempt at setting up the Guidance SDK, we have failed to get beyond:

llibusb_get_device_list ret = 10 !!!
Waiting for board ready...
Error: e_stereo_cali_not_ready at 149,main.cpp

----Procedure Used----

DJI Guidance Troubleshooting Notes

Below is my entire process for building and running the USB example code that ships with the DJI Guidance SDK. The steps I follow come from the Developer Guide.

The following was performed on a brand new installation of Ubuntu 14.04.

Installing libusb

I download and extract Version 1.0.9 from the libusb website. I extract the files into my /home directory. I then go into the new directory containing the libusb files and install libusb like so:

$ cd ~/libusb-1.0.9/
$ ./configure
$ make
$ sudo make install

Installing Other Dependencies

I install g++ and libopencv-dev:

$ sudo apt-get install g++
$ sudo apt-get install libopencv-dev

Getting the Guidance SDK

I clone the Guidance SDK repository to my /home directory:

$ cd
$ git clone https://github.com/dji-sdk/Guidance-SDK.git

I then copy the appropriate .so file to both /usr/local/lib and the directory containing the USB example code. The .so files are located in ~/Guidance-SDK/so. I'm using an x64 machine, so I use the x64 .so:

$ cd ~/Guidance-SDK/so/x64/
$ sudo cp libDJI_guidance.so /usr/local/lib
$ cp libDJI_guidance.so ~/Guidance-SDK/examples/usb_example/DJI_guidance_example/

Building the USB Example Code

$ cd ~/Guidance-SDK/examples/usb_example/DJI_guidance_example/
$ make

Setting Device Rules (Optional)

I set the following device rule per DJI's instructions. This allows me to use the DJI Guidance without sudo:

$ sudo sh -c 'echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"fff0\", ATTR{idProduct}==\"d009\", MODE=\"0666\"" > /etc/udev/rules.d/51-guidance.rules'

Running the USB Example Code

After building the USB example code, I power on the DJI Guidance using a power supply giving 12.2 volts. After the green lights on the Guidance come on, I plug it in via USB and try to run the following:

sudo ./guidance_example

Each time, I get the following output:

llibusb_get_device_list ret = 10 !!!
Waiting for board ready...
Error: e_stereo_cali_not_ready at 149,main.cpp

Any help would be greatly appreciated

Regards

@tangketan
Copy link
Contributor

Sorry for the late reply. It is likely that your Guidance's firmware version isn't correct. The SDK is for 1.3.7. Please use Guidance Assistant software to update your Guidance to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants