[SOLVED] Problem with the Crazyflie

Post here to get support
Liveunderwater
Beginner
Posts: 3
Joined: Tue May 21, 2013 11:29 pm

Re: Problem with the Crazyflie

Post by Liveunderwater »

Yes, now I get the same error in the console everytime I connect.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Problem with the Crazyflie

Post by tobias »

@liveunderwarter
I interpret it that you are able to find the Crazyflie when you press connect button e.g. "radio://0/10/250k" turns up? And when you try to connect to it you get the error in the console?
It looks like some firmware and cf-client incompatibility but the strange thing is that you can't connect to the bootloader which you managed before? That makes me think there is a HW problem so try pressing on the radio chip (the chip located closest to the blue antenna) when connecting. It might be a bad solder or crack in the solder on the radio chip.
KOschi
Beginner
Posts: 20
Joined: Thu May 16, 2013 4:49 pm

Re: Problem with the Crazyflie

Post by KOschi »

Here is the Output from the Console when the Fly connects.

Code: Select all

SYS: Crazyflie is up and running!
SYS: Build 26:5f65b66e004d(Production-V2)CLEAN
SYS: I am 0x8713352554568549671FF50 and I have 128KB of flash!
IMU: MPU6050 I2C connection[OK].
IMU: HMC5883L I2C connection[FAIL]
IMU: MS5611 I2C connection[FAIL]
MPU6050: Self test[OK]
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Problem with the Crazyflie

Post by marcus »

KOschi wrote:Here is the Output from the Console when the Fly connects.

Code: Select all

SYS: Crazyflie is up and running!
SYS: Build 26:5f65b66e004d(Production-V2)CLEAN
SYS: I am 0x8713352554568549671FF50 and I have 128KB of flash!
IMU: MPU6050 I2C connection[OK].
IMU: HMC5883L I2C connection[FAIL]
IMU: MS5611 I2C connection[FAIL]
MPU6050: Self test[OK]
Sorry, I was a bit unclear. Could you paste the text from the windows terminal that the application launches in instead?
KOschi
Beginner
Posts: 20
Joined: Thu May 16, 2013 4:49 pm

Re: Problem with the Crazyflie

Post by KOschi »

ok got it now.

Code: Select all

bitcraze@bitcraze-ubuntu:~$ cd ~/projects/crazyflie-pc-client/cfclient/
bitcraze@bitcraze-ubuntu:~/projects/crazyflie-pc-client/cfclient$ python cfclient.py
INFO:__main__:Disabling STL printouts
INFO:utils.input:Parsing [Koschi_1.json]
INFO:utils.input:Parsing [Generic_OS_X.json]
INFO:utils.input:Parsing [PS3_Mode_2.json]
INFO:utils.input:Parsing [PS3_Mode_1.json]
INFO:utils.logconfigreader:Parsing [battery.json]
INFO:utils.logconfigreader:Parsing [memlogtest.json]
INFO:utils.logconfigreader:Parsing [mem_and_toc.json]
INFO:utils.logconfigreader:Parsing [imu_gyro.json]
INFO:utils.logconfigreader:Parsing [imu_acc.json]
INFO:utils.logconfigreader:Parsing [stabalizer.json]
INFO:ui.tabs.FlightTab:Changed flightmode to Crazy :)
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/10/250K]
INFO:cflib.crazyflie:We are connected[radio://0/10/250K], request connection setup
INFO:cflib.crazyflie:Callback->Connected to [radio://0/10/250K]
INFO:cflib.crazyflie:Log TOC finished updating
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/10/250K]
WARNING:cflib.crazyflie.toc:Unable to find variable [sys.battery]
WARNING:cflib.crazyflie.log:Log: sys.battery not in TOC, this block cannot be used!
WARNING:ui.main:Could not setup loggingblock!
WARNING:cflib.crazyflie.toc:Unable to find variable [sys.battery]
WARNING:cflib.crazyflie.log:Log: sys.battery not in TOC, this block cannot be used!
WARNING:ui.main:Could not setup loggingblock!
WARNING:cflib.crazyflie.toc:Unable to find variable [stabalizer.roll]
WARNING:cflib.crazyflie.log:Log: stabalizer.roll not in TOC, this block cannot be used!
WARNING:ui.tabs.FlightTab:Could not setup logconfiguration after connection!
WARNING:cflib.crazyflie.toc:Unable to find variable [sys.battery]
WARNING:cflib.crazyflie.log:Log: sys.battery not in TOC, this block cannot be used!
WARNING:ui.tabs.PlotTab:Could not setup log configuration!
WARNING:cflib.crazyflie.toc:Unable to find variable [imu.acc_x]
WARNING:cflib.crazyflie.log:Log: imu.acc_x not in TOC, this block cannot be used!
WARNING:ui.tabs.PlotTab:Could not setup log configuration!
WARNING:cflib.crazyflie.toc:Unable to find variable [imu.acc_x]
WARNING:cflib.crazyflie.log:Log: imu.acc_x not in TOC, this block cannot be used!
WARNING:ui.tabs.PlotTab:Could not setup log configuration!
WARNING:cflib.crazyflie.toc:Unable to find variable [imu.gyro_x]
WARNING:cflib.crazyflie.log:Log: imu.gyro_x not in TOC, this block cannot be used!
WARNING:ui.tabs.PlotTab:Could not setup log configuration!
WARNING:cflib.crazyflie.toc:Unable to find variable [imu.acc_x]
WARNING:cflib.crazyflie.log:Log: imu.acc_x not in TOC, this block cannot be used!
WARNING:ui.tabs.PlotTab:Could not setup log configuration!
WARNING:cflib.crazyflie.toc:Unable to find variable [stabalizer.roll]
WARNING:cflib.crazyflie.log:Log: stabalizer.roll not in TOC, this block cannot be used!
WARNING:ui.tabs.PlotTab:Could not setup log configuration!
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/10/250K]
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/10/250K]
bitcraze@bitcraze-ubuntu:~/projects/crazyflie-pc-client/cfclient$ 
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Problem with the Crazyflie

Post by marcus »

Great, thanks.

Could you paste the text from the windows terminal when you try to update the firmware? Just click Initate cold boot and power on the Crazyflie.
KOschi
Beginner
Posts: 20
Joined: Thu May 16, 2013 4:49 pm

Re: Problem with the Crazyflie

Post by KOschi »

Here we go, thats all whats happening:

Code: Select all

bitcraze@bitcraze-ubuntu:~/projects/crazyflie-pc-client/cfclient$ python cfclient.py
INFO:__main__:Disabling STL printouts
INFO:utils.input:Parsing [Koschi_1.json]
INFO:utils.input:Parsing [Generic_OS_X.json]
INFO:utils.input:Parsing [PS3_Mode_2.json]
INFO:utils.input:Parsing [PS3_Mode_1.json]
INFO:utils.logconfigreader:Parsing [battery.json]
INFO:utils.logconfigreader:Parsing [memlogtest.json]
INFO:utils.logconfigreader:Parsing [mem_and_toc.json]
INFO:utils.logconfigreader:Parsing [imu_gyro.json]
INFO:utils.logconfigreader:Parsing [imu_acc.json]
INFO:utils.logconfigreader:Parsing [stabalizer.json]
INFO:ui.tabs.FlightTab:Changed flightmode to Crazy :)
Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-pc-client/cfclient/ui/tabs/ServiceTab.py", line 244, in initiateColdBoot
    if self.loader.coldBoot():
  File "../cflib/bootloader/cloader.py", line 149, in coldBoot
    if self.updateInfo():
  File "../cflib/bootloader/cloader.py", line 171, in updateInfo
    cpuid = struct.unpack("B"*12, pk.data[10:])
struct.error: unpack requires a string argument of length 12

tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Problem with the Crazyflie

Post by tobias »

This is very strange.

Code: Select all

File "../cflib/bootloader/cloader.py", line 171, in updateInfo
    cpuid = struct.unpack("B"*12, pk.data[10:])
struct.error: unpack requires a string argument of length 12
It indicates that it managed to connect to the bootloader but doesn't get the right information back. Since there been no changes to the bootloader I don't see how this could happen...
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Problem with the Crazyflie

Post by tobias »

KOschi, do you have access to any other operating system or maybe other computer? It might be an issue with the VMware usb backend so we would like to take that out of the picture.
KOschi
Beginner
Posts: 20
Joined: Thu May 16, 2013 4:49 pm

Re: Problem with the Crazyflie

Post by KOschi »

yeah i can try my desktop computer when i am home. Im posting my results then.
Post Reply