flash crazyradio firmware failed

Discussions and questions about the Crazyradio
Post Reply
chuhao
Beginner
Posts: 24
Joined: Sat Apr 29, 2017 6:25 am

flash crazyradio firmware failed

Post by chuhao » Sat Apr 29, 2017 7:03 am

Hi

I was trying to flash crazyradio firmware. There is problem to enter radio bootloader.

I tried

Code: Select all

python usbtools/launchBootloader.py 
It shows,
Traceback (most recent call last):
File "usbtools/launchBootloader.py", line 27, in <module>
import usb
ImportError: No module named usb
If I check usb device by

Code: Select all

 dmesg
It shows,
[51179.290917] usb 3-9: USB disconnect, device number 13
[51201.754938] usb 3-6: new full-speed USB device number 14 using xhci_hcd
[51201.885172] usb 3-6: New USB device found, idVendor=1915, idProduct=7777
[51201.885175] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=29
[51201.885177] usb 3-6: Product: Crazyradio PA USB Dongle
[51201.885178] usb 3-6: Manufacturer: Bitcraze
[51201.885179] usb 3-6: SerialNumber: 0B42EF16C2
Is says this usb device is disconnected. There must be something wrong with usb connection.
I tried different usb port on my pc but still can't solve it.


Any advice appreciated.
Chuhao
Last edited by chuhao on Sun Apr 30, 2017 2:41 pm, edited 1 time in total.

chuhao
Beginner
Posts: 24
Joined: Sat Apr 29, 2017 6:25 am

Re: flash crazyradio firmware failed

Post by chuhao » Sun Apr 30, 2017 7:17 am

Besides, when crazeflie client python is opened. There isn't radio option in "select interface" tab. Even if scanned several times, there isn't radio showed.

arnaud
Bitcraze
Posts: 1222
Joined: Tue Feb 06, 2007 12:36 pm

Re: flash crazyradio firmware failed

Post by arnaud » Tue May 02, 2017 6:55 am

Hi,

you are missing the python usb package, on debian/ubuntu you can install it with 'sudo apt-get install python-usb'.

Why are you trying to flash the Crazyradio firmware? Your dmesg shows that the radio is working correctly (after disconnect, the radio connects and enumerate correctly).

You only need to flash the Crazyradio if you want to develop its internal firmware and you must be aware that there is a risk to lock your radio by reflashing it, to unlock it you would then need an SPI programmer.

arnaud
Bitcraze
Posts: 1222
Joined: Tue Feb 06, 2007 12:36 pm

Re: flash crazyradio firmware failed

Post by arnaud » Tue May 02, 2017 6:58 am

As for the client, is your Crazyflie switched-ON?

To find if the scann is happening you can look at the Crazyradio LED: when pushing scann on the client interface you should see the RED LED lighting up.

If it does not work it could be a right problem. See the cflib repos to fix access right problems: https://github.com/bitcraze/crazyflie-lib-python#linux

chuhao
Beginner
Posts: 24
Joined: Sat Apr 29, 2017 6:25 am

Re: flash crazyradio firmware failed

Post by chuhao » Tue May 02, 2017 8:16 am

Hi Arnaud

I solved the firmware flashing problem. Its been flashed successful. But it still cannot found crazyradio device.
In crazyflie client, there is no radio option,
radionotshow.png
I turned on one crazeflie, it still not showing the radio option.

Enter "dmesg" command, it shows,
[ 4836.197739] usb 3-5: USB disconnect, device number 11
[ 4836.437688] usb 3-5: new full-speed USB device number 12 using xhci_hcd
[ 4836.567225] usb 3-5: New USB device found, idVendor=1915, idProduct=0101
[ 4836.567227] usb 3-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4836.567228] usb 3-5: Product: nRF24LU1P-F32 BOOT LDR
[ 4836.567229] usb 3-5: Manufacturer: Nordic Semiconductor
[ 4883.531380] usb 3-5: USB disconnect, device number 12
[ 4886.332996] usb 3-5: new full-speed USB device number 13 using xhci_hcd
[ 4886.463173] usb 3-5: New USB device found, idVendor=1915, idProduct=7777
[ 4886.463175] usb 3-5: New USB device strings: Mfr=1, Product=2, SerialNumber=29
[ 4886.463176] usb 3-5: Product: Crazyradio USB Dongle
[ 4886.463177] usb 3-5: Manufacturer: Bitcraze
[ 4886.463178] usb 3-5: SerialNumber: 08EB90FDD3

arnaud
Bitcraze
Posts: 1222
Joined: Tue Feb 06, 2007 12:36 pm

Re: flash crazyradio firmware failed

Post by arnaud » Tue May 02, 2017 10:16 am

There should not be any radio option unless a Crazyflie is detected by the scann procedure.

Does the red LED light up when you press the "scann" button?

Can you copy-paste the text related to the radio in help/about/debug. For me it says:

Code: Select all

Interface status
radio: Crazyradio version 0.53

chuhao
Beginner
Posts: 24
Joined: Sat Apr 29, 2017 6:25 am

Re: flash crazyradio firmware failed

Post by chuhao » Tue May 02, 2017 11:20 am

do you have full address for doc "help/about/debug" ? I'll try to find it.

Besides, I just temperarily solved it.
Everytime I run "crazyflie_client", I run it in root mode. Also, I launch "lps_node_ros" is root mode. And it'll be fine.
I think this problem is caused by root permission problem.

Do you know how to better solve it?
Maybe find device name and change its permission.

arnaud
Bitcraze
Posts: 1222
Joined: Tue Feb 06, 2007 12:36 pm

Re: flash crazyradio firmware failed

Post by arnaud » Tue May 02, 2017 11:42 am

So you are having the access right problem I was talking about earlier. Follow the linux documentation there and you will be able to use Crazyradio from your user, without sudo: https://github.com/bitcraze/crazyflie-lib-python#linux.

As for the about box, I was meaning the menu help, submenu about, and tab debug, in the Crazyflie client graphical interface.

Post Reply