Page 1 of 1
Trouble Connecting to Crazyflie
Posted: Sun Feb 14, 2016 10:51 pm
by amckit
Hello, I purchased the crazyflie a while ago and am having issues getting a solid connection. Here's the information for what I'm using:
Mac running the Bitcraze VM 0.6 on virtual box (yes, I've used "update all projects").
Crazyflie radio dongle
Crazyflie 2.0
logitech attack 3
For a while I was getting the no callback which I saw in another topic really isn't too much of an issue.
My firmware on the crazyflie is also completely up to date.
I have also used another topic to find the best radio channel for my location and set it to that.
I tend to get one of two errors, either no callback and it doesn't display updated flight data/battery level).
WARNING:cflib.crazyflie:Got packet on header (15,3) but no callback to handle it
Or, I get a link eror callback saying I don't get an ack (assuming this means the dongle doesn't acknowledge)?
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/2/2M]
INFO:cflib.crazyflie:We are connected[radio://0/2/2M], request connection setup
WARNING:cflib.crazyflie:Got link error callback [Dongle communication error (ackStatus==None)] in state [1]
INFO:cflib.crazyflie:Callback->Connected failed to [radio://0/2/2M]: Dongle communication error (ackStatus==None)
Any help would be great,
Thanks
Re: Trouble Connecting to Crazyflie
Posted: Sat Feb 20, 2016 5:28 pm
by amckit
Anyone have any ideas on this? I would really like to try to get it working.
Thanks
Re: Trouble Connecting to Crazyflie
Posted: Sun Feb 21, 2016 2:56 am
by chad
amckit wrote:Anyone have any ideas on this? I would really like to try to get it working.
Thanks
Hi amckit,
What firmware are you running on your CF2? Did you build it in the VM or download it from GitHub? What branch is your client repository on in the VM? Check it with:
Code: Select all
cd ~/projects/crazyflie-clients-python
git branch
While you're at it, you might want to check the firmware branch as well:
Code: Select all
cd ~/projects/crazyflie-firmware
git branch
Finally, there's been another release of both the firmware and the client so, if you haven't run a git pull, you might want to. Also, flash
the latest firmware release and see if things have changed. We can diagnose further then.
Re: Trouble Connecting to Crazyflie
Posted: Sun Feb 21, 2016 7:47 pm
by amckit
I started the updating process and used the "update all projects". Now I'm stuck because the crazyflie client will no longer open. When I click it, a terminal comes up for a split second then goes away. Has anyone else run into this?
Re: Trouble Connecting to Crazyflie
Posted: Sun Feb 21, 2016 7:53 pm
by chad
amckit wrote:I started the updating process and used the "update all projects". Now I'm stuck because the crazyflie client will no longer open. When I click it, a terminal comes up for a split second then goes away. Has anyone else run into this?
Yes, unfortunately, a few people have. It's related to the client now needing Python 3.
Here's the synopsis with possible solutions.
Re: Trouble Connecting to Crazyflie
Posted: Mon Feb 22, 2016 4:34 pm
by amckit
Thank you for your help, I am starting to make progress. I updated my VM to version .8. I also updated all firmware and my crazyflie to the more recent one. The radio now connects easily without throwing any errors, however I don't believe it is connected properly. There is a link quality but no battery indication and if I tilt the crazyflie, none of the flight data is updated.
Here's my terminal output when connecting:
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/2/1M]
INFO:cflib.crazyflie:We are connected[radio://0/2/1M], request connection setup
INFO:root:Has safelink: False
INFO:cflib.crazyflie:Resending for pattern (93, 5)
INFO:cflib.crazyflie:Resending for pattern (93, 5)
INFO:cflib.crazyflie:Resending for pattern (93, 5)
INFO:cflib.crazyflie:Callback->Connected to [radio://0/2/1M]
INFO:cflib.crazyflie.toc:TOC for port [5] found in cache
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.mem:Requesting number of memories
INFO:cflib.crazyflie.mem:2 memories found
INFO:cflib.crazyflie.mem:Requesting first id
INFO:cflib.crazyflie.mem:Requesting information about memory 1
INFO:cflib.crazyflie.mem:Memory: id=1, type=LED driver, size=24
INFO:cflib.crazyflie.mem:Done getting all the memories, start reading the OWs
INFO:cflib.crazyflie:Memories finished updating
INFO:cflib.crazyflie.toc:TOC for port [2] found in cache
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/2/1M]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cflib.crazyflie.mem:Writing new chunk of 24bytes at 0x0
INFO:cflib.crazyflie.mem:Updating content of memory 0
INFO:cflib.crazyflie.mem:Requesting new chunk of 16bytes at 0x0
INFO:cfclient.ui.tabs.LEDTab:Memory: id=1, type=LED driver, size=24
INFO:cflib.crazyflie.mem:WRITE: Mem=1, addr=0x0, status=0x0
INFO:cflib.crazyflie.mem:This write request is done
INFO:cflib.crazyflie.mem:Write to LED driver done
INFO:cfclient.ui.main:LED write done callback
INFO:cflib.crazyflie.mem:READ: Mem=0, addr=0x0, status=0x0, data=(48, 120, 66, 67, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 231)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 0
INFO:cflib.crazyflie.mem:Got new data: bytearray(b'0xBC\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\xe7')
INFO:cflib.crazyflie.mem:Requesting new chunk of 5bytes at 0x10
INFO:cflib.crazyflie.log:Have successfully started logging for id=15
INFO:cflib.crazyflie.mem:READ: Mem=0, addr=0x10, status=0x0, data=(231, 231, 231, 231, 180)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 0
INFO:cflib.crazyflie.mem:{'version': 1, 'radio_channel': 2, 'radio_speed': 1, 'radio_address': 996028180455, 'pitch_trim': 0.0, 'roll_trim': 0.0}
INFO:cflib.crazyflie.log:Have successfully started logging for id=17
INFO:cflib.crazyflie.log:Have successfully started logging for id=18
INFO:cflib.crazyflie.log:Have successfully started logging for id=19
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.HMC5883L]: 1
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.MS5611]: 1
INFO:cflib.crazyflie.log:Have successfully started logging for id=20
INFO:cflib.crazyflie.log:Have successfully started logging for id=21
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
Also not sure if it has anything to do with it, but when I connect the crazyflie to my iphone, it connects and the green LED blinks fast but there is no thrust from the controls.
Thanks
Re: Trouble Connecting to Crazyflie
Posted: Mon May 23, 2016 10:27 pm
by amckit
It's been quite a while. Still having issues where I can connect to my crazyflie either from iphone or the virtual box but there is no response to controls or thrust. Updated the firmware through the iphone app and still having issues. Any help would be awesome.