Can't Connect

Post here to get support
jbc
Beginner
Posts: 5
Joined: Thu May 23, 2013 9:26 pm

Can't Connect

Post by jbc »

I've installed the client app on both a MacAir and a Linux (12.04 LTS Ubuntu) laptop and I can't connect to the device?! The Mac client runs pretty slowly and I see a few exceptions, but it does run, just never connects. The ubuntu client runs the debug test for the UI very nicely with no observable errors (Mac runs it too but slower), but neither are connecting to my crazyflie... it's connected, blinking red, while the blue and green lights stay lit. This doesn't change (I've left it alone for upwards of 5 minutes without any noticeable change on either platform)....

Any trouble shooting ideas??
atomicdog
Expert
Posts: 105
Joined: Tue Mar 12, 2013 2:50 am
Location: San Diego

Re: Can't Connect

Post by atomicdog »

Do you see the CF in the connect dialog box, or just the debug one?
6-DOF CF | wireless xbox 360 controller
codybuell
Beginner
Posts: 5
Joined: Thu May 23, 2013 9:57 pm

Re: Can't Connect

Post by codybuell »

Had to run cfclient as sudo on Ubuntu to get the Crazyradio to connect. Help --> About --> Debug should show you the connection status with the Crazyradio...
jbc
Beginner
Posts: 5
Joined: Thu May 23, 2013 9:26 pm

Re: Can't Connect

Post by jbc »

All I saw was the debug connection, which I could run just fine, but I never saw the device. I did run the cfclient as sudo on my ubuntu box but that gave me the same result (in case I had installed the udev fix incorrectly)..
codybuell
Beginner
Posts: 5
Joined: Thu May 23, 2013 9:57 pm

Re: Can't Connect

Post by codybuell »

So here's what I had to do on Ubuntu (after setting up the udev fix):

- Verify the Crazyradio is connected by going to Help --> About --> Debug.
At this point I could only see the debug connection.

- Then, with the Crazyflie off, go to Crazyflie --> Bootloader --> Initiate Bootloader Cold Boot, then within 5 seconds turn on the Crazyflie.
It took a second but eventually showed that the Crazyflie was connected to the bootloader.

- Click on Cancel Bootloading and close the bootloader window. From this point on I was able to see the Crazyflie listed when clicking on Connect from cfclient.

Still cannot get the Crazyradio to connect on OSX though. Hope that helps.
jbc
Beginner
Posts: 5
Joined: Thu May 23, 2013 9:26 pm

Re: Can't Connect

Post by jbc »

Alright, so when I go to Help -> About -> Debug I get the message "Can not find crazyradio dongle", so that certainly seems to be the issue.. On Mac the debug info doesn't even come up, so I'm going to punt on that for now. So, I'll keep digging. The dongle is plugged in over USB and I see the lights come up (and then turn off, perhaps they should be one) but it appears the radio is my issue..
atomicdog
Expert
Posts: 105
Joined: Tue Mar 12, 2013 2:50 am
Location: San Diego

Re: Can't Connect

Post by atomicdog »

jbc wrote:Alright, so when I go to Help -> About -> Debug I get the message "Can not find crazyradio dongle", so that certainly seems to be the issue.. On Mac the debug info doesn't even come up, so I'm going to punt on that for now. So, I'll keep digging. The dongle is plugged in over USB and I see the lights come up (and then turn off, perhaps they should be one) but it appears the radio is my issue..
Did you install the driver, or are you using the bitcraze VM which already has the driver installed?
6-DOF CF | wireless xbox 360 controller
jbc
Beginner
Posts: 5
Joined: Thu May 23, 2013 9:26 pm

Re: Can't Connect

Post by jbc »

So I installed libusb, pyusb and those, am I missing something??? The only other item I've noticed is that the red/green lights stay on when I plug the dongle into my mac USB, but only flash when in the ubuntu.. Both are native machines.. I didn't see any link for a "driver" but maybe I missed something?? Thanks!
atomicdog
Expert
Posts: 105
Joined: Tue Mar 12, 2013 2:50 am
Location: San Diego

Re: Can't Connect

Post by atomicdog »

jbc wrote:So I installed libusb, pyusb and those, am I missing something??? The only other item I've noticed is that the red/green lights stay on when I plug the dongle into my mac USB, but only flash when in the ubuntu.. Both are native machines.. I didn't see any link for a "driver" but maybe I missed something?? Thanks!
I assumed Linux would need a special driver like Windows but I don't see one either.

So the Crazyflie actually responds to the Crazyradio being plugged in?
6-DOF CF | wireless xbox 360 controller
jbc
Beginner
Posts: 5
Joined: Thu May 23, 2013 9:26 pm

Re: Can't Connect

Post by jbc »

Right, so what I'm trying to do is use the libusb python bindings to find the device... You see the "findDevice" function here https://bitbucket.org/bitcraze/crazyfli ... zyradio.py but I'm using the one that shipped with the libs (so _findDevice) and that doesn't give me anything when I plug in the radio dongle..
Post Reply