Crazy radio on USB3 'detects' hundreds crazyflies...

Post here to get support
ApolluX
Beginner
Posts: 10
Joined: Sun May 26, 2013 3:32 pm

Crazy radio on USB3 'detects' hundreds crazyflies...

Post by ApolluX »

Hi,

I noticed the following behavior which I expect to be related to the crazy radio on an usb3 port. The connect dialog lists hundreds of crazyflies which obviously aren't there.
radio.png
Crazyradio version 0.51

Any ideas on how to solve this?
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by marcus »

Wow :shock: Never seen that before....

What OS are you running on? What version of the cfclient are you using?

/Marcus
ApolluX
Beginner
Posts: 10
Joined: Sun May 26, 2013 3:32 pm

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by ApolluX »

I run Arch linux. Kernel currently is at 3.9.4-1. Client is up to date with the bitbucket repository at changeset: 138:e12126fb11b8.

I'm happy to provide any additional information, or do some debugging. Not sure where to start though.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by marcus »

Is this something that suddenly started happening or has it always been like this?

Since version 0.50 the scanning is done in the Crazyradio firmware in order to make it faster (the command is sent here). What you could do is to print the touple created at this row to check that it's actually the radio that is reporting all of these devices and not a bug in the client.

/Marcus
atomicdog
Expert
Posts: 105
Joined: Tue Mar 12, 2013 2:50 am
Location: San Diego

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by atomicdog »

Do you have special firmware on the crazyflie?
6-DOF CF | wireless xbox 360 controller
ApolluX
Beginner
Posts: 10
Joined: Sun May 26, 2013 3:32 pm

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by ApolluX »

marcus wrote:Is this something that suddenly started happening or has it always been like this?

Since version 0.50 the scanning is done in the Crazyradio firmware in order to make it faster (the command is sent here). What you could do is to print the touple created at this row to check that it's actually the radio that is reporting all of these devices and not a bug in the client.

/Marcus
I 've only got the crazyflie or about a week or so. I had to update the crazyradio to 0.51 to get the radio recognized on a usb3 port in the first place. From the moment the radio was 'working' it had this output in the connect dialog.

Below the output of the cfclient after pressing the connect button (did not press 'scan' in the connect dialog still that function was called 3 times)

Code: Select all

output: Info: Using config path:  /home/andre/workspace/crazyflie/crazyflie-pc-client/lib/../conf
Info: sys.path= ['/home/andre/workspace/crazyflie/crazyflie-pc-client/lib', '/home/andre/workspace/crazyflie/crazyflie-pc-client/lib/../conf', '/home/andre/workspace/crazyflie/crazyflie-pc-client/bin', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/PIL', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/setuptools-0.6c11.egg-info']
INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.config:Dist config read from /home/andre/workspace/crazyflie/crazyflie-pc-client/lib/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/andre/workspace/crazyflie/crazyflie-pc-client/lib/../conf/config.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1_linux.json]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Normal
INFO:cflib.crtp.radiodriver:v0.51 dongle with serial N/A found
tuple len 64
(64, 249, 120, 165, 0, 136, 255, 255, 192, 244, 120, 165, 0, 136, 255, 255, 208, 244, 120, 165, 0, 136, 255, 255, 208, 244, 120, 165, 0, 136, 255, 255, 0, 179, 52, 119, 0, 136, 255, 255, 224, 139, 2, 79, 1, 136, 255, 255, 176, 187, 164, 31, 0, 136, 255, 255, 208, 187, 164, 31, 0, 136, 255, 255)
tuple len 64
(128, 204, 147, 56, 1, 136, 255, 255, 131, 204, 4, 0, 208, 24, 1, 0, 125, 37, 156, 0, 1, 0, 0, 0, 0, 1, 16, 0, 0, 0, 173, 222, 0, 2, 32, 0, 0, 0, 173, 222, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 16, 0, 0, 0, 173, 222, 0, 2, 32, 0, 0, 0, 173, 222)
tuple len 64
(64, 249, 120, 165, 0, 136, 255, 255, 0, 249, 120, 165, 0, 136, 255, 255, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 152, 154, 111, 61, 1, 136, 255, 255, 24, 68, 14, 66, 1, 136, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
atomicdog wrote:Do you have special firmware on the crazyflie?
No, latest stable.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by marcus »

Thanks for the info. It's the dongle that is returning very strange values....

The three tuples for 250K/1M/2M and they contain the channels the firmware has found a Crazyflie on. Do you get the same result (i.e lots of channels) when your Crazyflie is off as well?
ApolluX
Beginner
Posts: 10
Joined: Sun May 26, 2013 3:32 pm

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by ApolluX »

yes, I get the same result if the crazyflie is powered off.

Maybe good to mention that I have a different PC (Linux Mint 13) on which I don't get this behavior (i.e. works as expected). That is on usb2, hence my suspicion that it is related to usb3.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by marcus »

Ok. Thanks for all the info. What kernel version are you running on your Mint?

I've created a new issue for this. Since there's lots of people using the 0.51 version with USB3 and we haven't seen this before I'm thinking it might have something to do with the kernel version as well. I've only tested on 3.8.* so far and our VM is 3.5.*.
ApolluX
Beginner
Posts: 10
Joined: Sun May 26, 2013 3:32 pm

Re: Crazy radio on USB3 'detects' hundreds crazyflies...

Post by ApolluX »

marcus wrote:Ok. Thanks for all the info. What kernel version are you running on your Mint?
kernel: 3.2.0-41

If you need any additional information, please let me know.
Post Reply