Page 2 of 4

Re: Problem with the Crazyflie

Posted: Wed May 29, 2013 10:19 am
by Liveunderwater
Yes, now I get the same error in the console everytime I connect.

Re: Problem with the Crazyflie

Posted: Wed May 29, 2013 12:09 pm
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.

Re: Problem with the Crazyflie

Posted: Wed May 29, 2013 3:03 pm
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]

Re: Problem with the Crazyflie

Posted: Wed May 29, 2013 3:36 pm
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?

Re: Problem with the Crazyflie

Posted: Wed May 29, 2013 5:58 pm
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$ 

Re: Problem with the Crazyflie

Posted: Thu May 30, 2013 8:33 am
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.

Re: Problem with the Crazyflie

Posted: Thu May 30, 2013 2:44 pm
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


Re: Problem with the Crazyflie

Posted: Fri May 31, 2013 8:02 am
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...

Re: Problem with the Crazyflie

Posted: Fri May 31, 2013 9:18 am
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.

Re: Problem with the Crazyflie

Posted: Fri May 31, 2013 12:13 pm
by KOschi
yeah i can try my desktop computer when i am home. Im posting my results then.