Crazyflie 2.0 connects but does not communicate

Post here to get support
Post Reply
xarvh
Beginner
Posts: 8
Joined: Tue Oct 27, 2015 8:39 pm

Crazyflie 2.0 connects but does not communicate

Post by xarvh »

It used to work, now when I connect (PA or Bluetooth it's the same) it just does not power any motor or send attitude data.

I noticed that a couple of times I power it up, but only M2 turns on.
Most other times the boot sequence runs normally, the motors turn in sequence, then the CF stays idle (M2 and M3 led on, M1 blinking red).

When I connect, either with bluetooth or PA, M4 starts blinking green very fast.
Sometimes I can control the motors and get the attitude data, sometimes it shuts off as soon as the motors move, most of the times it just does nothing even if it is nominally connected.

I tried with different batteries, and measured the voltage where the battery connector is soldered to the board, I get slightly more than 4V.
Any clue would be much appreciated.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Crazyflie 2.0 connects but does not communicate

Post by marcus »

Hi,

Could you copy-paste the console (from the client) when you're having issues?
xarvh
Beginner
Posts: 8
Joined: Tue Oct 27, 2015 8:39 pm

Re: Crazyflie 2.0 connects but does not communicate

Post by xarvh »

Thank you.

Code: Select all

IMU: LPS25H I2C connection [OK].
EXPBRD: Found 0 memories.
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
LPS25H: Self test [OK].
OW: Found 0.
SYS: Free heap: 6048 bytes
30 78 42 43 0 50 0 0 0 0 0 0 0 0 0 7D 
Status 0
IMU: LPS25H I2C connection [OK].
EXPBRD: Found 0 memories.
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
LPS25H: Self test [OK].
OW: Found 0.
SYS: Free heap: 6048 bytes
30 78 42 43 0 50 0 0 0 0 0 0 0 0 0 7D 
Status 0
The first time I connected it it actually worked.
Then I turned it of, back on again, connected again, and this time it was just not responding.
I have the impression that it works only when it has been off for a while.
xarvh
Beginner
Posts: 8
Joined: Tue Oct 27, 2015 8:39 pm

Re: Crazyflie 2.0 connects but does not communicate

Post by xarvh »

Any clues? I have 300$ worth of brick.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Crazyflie 2.0 connects but does not communicate

Post by chad »

Do you have latest firmware flashed and running latest cfclient?
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
xarvh
Beginner
Posts: 8
Joined: Tue Oct 27, 2015 8:39 pm

Re: Crazyflie 2.0 connects but does not communicate

Post by xarvh »

Thank you, I tried updating cfclient but 2016.02 fails to build (I added an Issue https://github.com/bitcraze/crazyflie-c ... issues/241 ) and cfclient 2015.09 fails to run.

Since it used to work and I never even tried to re-flash it, I think that this is a hardware issue, not a software one, and I worry that trying to reflash it would only brick it further.
xarvh
Beginner
Posts: 8
Joined: Tue Oct 27, 2015 8:39 pm

Re: Crazyflie 2.0 connects but does not communicate

Post by xarvh »

I managed to run cfclient 2016.02, but the behavior remains the same: after a day or so without using it initially connects and runs normally, then it shuts down suddenly; it can be turned on again, and the connection is apparently successful (green LED and all), but no actual communication happens.

This is the console:

Code: Select all

30 78 42 43 0 50 0 0 0 0 0 0 0 0 0 7D 
Status 0
And this is cfclient stdout/stderr:

Code: Select all

INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.input.inputreaders:Found readers: ['pysdl2', 'linuxjsdev']
INFO:cfclient.utils.input.inputreaders:Could not initialize [pysdl2]: No SDL2 support on Linux
INFO:cfclient.utils.input.inputreaders:Successfully initialized [linuxjsdev]
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['wiimote', 'leapmotion', 'zmqpull']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid'
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk.Leap')
INFO:cfclient.utils.config:Dist config read from /home/nw/.usr/crazyflie-clients-python/src/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/nw/.usr/crazyflie-clients-python/src/../conf/config.json]
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.utils.zmq_param:Biding ZMQ for parameters at tcp://*:1213
INFO:cfclient.utils.zmq_led_driver:Biding ZMQ for LED driverat tcp://*:1214
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cfclient.utils.input:Selected MUX: Normal
INFO:cfclient.ui.main:Role of Microsoft X-Box 360 pad is Device
INFO:cfclient.utils.input.mux:Adding device Microsoft X-Box 360 pad to MUX Normal
INFO:cflib.drivers.cfusb:Looking for devices....
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/80/250K]
INFO:cflib.crazyflie:We are connected[radio://0/80/250K], 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:Resending for pattern (93, 5)
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/250K]
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=2
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=2
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
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:1 memories found
INFO:cflib.crazyflie.mem:Requesting first id
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/80/250K]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
===== 2016.03.22 21:03:28 =====
INFO:cflib.crazyflie.log:Have successfully started logging for id=2
Traceback (most recent call last):
  File "/home/nw/.usr/crazyflie-clients-python/src/cfclient/ui/main.py", line 539, in _connected
    mem = self.cf.mem.get_mems(MemoryElement.TYPE_DRIVER_LED)[0]
IndexError: tuple index out of range
INFO:cflib.crazyflie.mem:Updating content of memory 0
INFO:cflib.crazyflie.mem:Requesting new chunk of 16bytes at 0x0
===== 2016.03.22 21:03:28 =====
Traceback (most recent call last):
  File "/home/nw/.usr/crazyflie-clients-python/src/cfclient/ui/tabs/LEDTab.py", line 146, in _connected
    MemoryElement.TYPE_DRIVER_LED)[0]
IndexError: tuple index out of range
WARNING:cflib.crazyflie.toc:Unable to find variable [gps.lat]
WARNING:cflib.crazyflie.log:gps.lat not in TOC, this block cannot be used!
===== 2016.03.22 21:03:28 =====
Traceback (most recent call last):
  File "/home/nw/.usr/crazyflie-clients-python/src/cfclient/ui/tabs/GpsTab.py", line 130, in _connected
    self._cf.log.add_config(lg)
  File "/usr/local/lib/python3.4/dist-packages/cflib-0.1.0-py3.4.egg/cflib/crazyflie/log.py", line 413, in add_config
KeyError: 'Variable gps.lat not in TOC'
INFO:cflib.crazyflie.mem:READ: Mem=0, addr=0x0, status=0x0, data=(48, 120, 66, 67, 0, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 0
INFO:cflib.crazyflie.mem:Got new data: bytearray(b'0xBC\x00P\x00\x00\x00\x00\x00\x00\x00\x00\x00}')
INFO:cflib.crazyflie.log:Have successfully started logging for id=3
INFO:cflib.crazyflie.log:Have successfully started logging for id=4
INFO:cflib.crazyflie:Resending for pattern (45, 37)
INFO:cflib.crazyflie:Resending for pattern (45, 20)
INFO:cflib.crazyflie:Resending for pattern (45, 7)
INFO:cflib.crazyflie:Resending for pattern (45, 9)
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.MS5611]: 1
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.HMC5883L]: 1
INFO:cflib.crazyflie.log:Have successfully started logging for id=6
INFO:cflib.crazyflie.log:Have successfully started logging for id=7
INFO:cflib.crazyflie:Resending for pattern (45, 18)
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/80/250K]
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/80/250K]
INFO:cfclient.utils.config:Config file saved to [/home/nw/.usr/crazyflie-clients-python/src/../conf/config.json]
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Crazyflie 2.0 connects but does not communicate

Post by arnaud »

Hi xarvh,

Have you tried flashing the latest firmware? there is no risk doing so (if it fails you can just try again) and it is a known bug that old firmware will have problem connecting to new clients.

/Arnaud
xarvh
Beginner
Posts: 8
Joined: Tue Oct 27, 2015 8:39 pm

Re: Crazyflie 2.0 connects but does not communicate

Post by xarvh »

Flashed latest firmware, now it works.
I could cry.
@chad, @arnaud thank you so much! =D
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Crazyflie 2.0 connects but does not communicate

Post by chad »

Glad to hear that resolved the problem!! Happy flying.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Post Reply