Crazyflie link establishes but not connected -> Firmware Upgrade - Connected but not flying

Firmware/software/electronics
Post Reply
Dinesh Kumar
Beginner
Posts: 7
Joined: Tue Oct 27, 2015 4:19 pm

Crazyflie link establishes but not connected -> Firmware Upgrade - Connected but not flying

Post by Dinesh Kumar » Sun Jan 24, 2016 3:27 pm

Hi,

i've been trying hard to get TOC logs from crazyflie, but upgraded the client to recent one, tried lots of code. its been so long but still i am not able to reach that state.
finally reached a state where copter is able to link, but not connected. becacuse of which i can't add logconfig to crazyflie.

Code: Select all

 
 self.crazyflie = Crazyflie() # creating without rw_cache and ro_cache
 self.crazyflie.connected.add_callback(self._connected)
 
Any other things needed? Am i missing something? Any help is appreciated.

My Code is available in https://github.com/dineshkumar-cse/Elatecopter (Keyboard controlled quadcopter)
Last edited by Dinesh Kumar on Tue Jan 26, 2016 2:07 pm, edited 3 times in total.

chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Crazyflie link establishes but not connected!

Post by chad » Mon Jan 25, 2016 1:23 am

For keyboard control, did you happen to have a look at this thread?

It may also be easier to accomplish what you're trying to do by using the ZMQ server backend...
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.

Dinesh Kumar
Beginner
Posts: 7
Joined: Tue Oct 27, 2015 4:19 pm

Re: Crazyflie link establishes but not connected!

Post by Dinesh Kumar » Tue Jan 26, 2016 7:30 am

Hi Chad, Thats for windows! i am using MAC :)

So if i use link alone (not connected) callback (in recent crazyflie client) i am able to control the copter without any issues. only thing is getting the TOC (Log Data).

The thing which i am not sure is, do i need to update my cf-firmware since, i've upgraded the client?
Or is there anything changed in API, because

Code: Select all

crazyflie.connected
callback works perfectly with older cfclient-2013.4.2.

I've tried the zmq,
But it stops at the same place where it issues command "cmd": "connect".

Code: Select all

print("Connecting to {} ...".format(connect_cmd["uri"]), end=' ')
and the zmq server is streaming data as follows,

Code: Select all

INFO:cflib.crazyflie:Resending for pattern (76, 1)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (76, 1)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (76, 1)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (76, 1)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (76, 1)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (76, 1)
....
I was trying to flash the crazyflie-firmware but make PLATFORM=CF1 fails!!!

Code: Select all

           Prerequisite `/Users/dineshkumar/Documents/Learn/CrazyFlie/Installers/Firmware/gcc-arm-none-eabi-4_9-2015q3/lib/gcc/arm-none-eabi/4.9.3/include/stdarg.h' is older than target `configblockflash.o'.
          No need to remake target `configblockflash.o'; using VPATH name `bin/configblockflash.o'.
         Finished prerequisites of target file `cf1.elf'.
        Must remake target `cf1.elf'.

Dinesh Kumar
Beginner
Posts: 7
Joined: Tue Oct 27, 2015 4:19 pm

Re: Crazyflie link establishes but not connected!

Post by Dinesh Kumar » Tue Jan 26, 2016 10:53 am

SomeHow i managed to flash recent crazyradio firmware 'cradio-0.53.bin' by crazyflie-client-python/bin/cloader followed this https://wiki.bitcraze.io/doc:crazyflie: ... ader:index.
also tried crazyflie1-2015.08.1.bin, and my make PLATFORM=CF1 -> cf1.bin from crazyradio-firmware.

After that, I am able to connect to crazyflie, but IT DOESN'T FLY!

How can i fix this? is it possible to figure out whether cradio or cflie flash is an issue?

More Information:

Code: Select all


$ system_profiler SPUSBDataType # gives info 

        Crazyradio USB Dongle:
          Product ID: 0x7777
          Vendor ID: 0x1915  (Nordic Semiconductor ASA)
          Version: 0.53
          Serial Number: E764385A1D
          Speed: Up to 12 Mb/sec
          Manufacturer: Bitcraze
          Location ID: 0x14100000 / 1
          Current Available (mA): 500
          Current Required (mA): 100
But flashing gives verification success.

Code: Select all

python usbtools/nrfbootload.py flash ../build/cradio-0.53.bin                          [16:52:57]
Found nRF24LU1 bootloader version 18.0
Flashing:
  Flashing 5795 bytes...
Flashing done!
Verifying:
  Reading ../build/cradio-0.53.bin...
  Reading 5795 bytes from the flash...
Verification succeded!
Connecting Crazyradio only Red Led Blinks!!! Please Help.

chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Crazyflie link establishes but not connected!

Post by chad » Tue Jan 26, 2016 2:51 pm

Dinesh Kumar wrote:Hi Chad, Thats for windows! i am using MAC :)
There is something that works with Linux though (and possibly OS X). Also, I was hoping you might see this part of thread where the OP contends digital control is exceptionally hard to fly with...
Dinesh Kumar wrote:I was trying to flash the crazyflie-firmware but make PLATFORM=CF1 fails!!!

Code: Select all

           Prerequisite `/Users/dineshkumar/Documents/Learn/CrazyFlie/Installers/Firmware/gcc-arm-none-eabi-4_9-2015q3/lib/gcc/arm-none-eabi/4.9.3/include/stdarg.h' is older than target `configblockflash.o'.
[...]
        Must remake target `cf1.elf'.
You should be using gcc-arm-none-eabi-4_9-2014q4. See if that makes a difference. I've seen newer versions of the arm stack cause problems in the past. Also, do you 'make clean' before 'make all PLATFORM=CF1'?
Dinesh Kumar wrote:SomeHow i managed to flash recent crazyradio firmware 'cradio-0.53.bin' by crazyflie-client-python/bin/cloader followed this https://wiki.bitcraze.io/doc:crazyflie: ... ader:index.
I don't think the Crazyradio need updating. It works well with the factory flashed firmware it's on.
Dinesh Kumar wrote:The thing which i am not sure is, do i need to update my cf-firmware since, i've upgraded the client?
It's certainly a good idea to run the latest Crazyflie firmware with the latest client even though there is backward compatibility (to some extent).

Have you tried flashing the latest released firmware to your Crazyflie and using the latest available client on the "develop" branch? It is often easier to isolate an issue if you start with a known good state. You've got a lot of moving parts here. Get an established base with the latest client and Crazyflie firmware and go from there...
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.

Dinesh Kumar
Beginner
Posts: 7
Joined: Tue Oct 27, 2015 4:19 pm

Re: Crazyflie link establishes but not connected -> Firmware Upgrade - Connected but not flying

Post by Dinesh Kumar » Sun Jan 31, 2016 5:56 am

Finally, its Working. :D

I've flashed the crazyflie with the recent build, and crazyradio with recent version "cradio-0.53.bin". The issue was in crazyradio, and once i flashed it works. I am able to log the gyroscope and accelerometer values.

Thank chad.

chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Crazyflie link establishes but not connected -> Firmware Upgrade - Connected but not flying

Post by chad » Mon Feb 01, 2016 3:33 pm

Dinesh Kumar wrote:Finally, its Working. :D

I've flashed the crazyflie with the recent build, and crazyradio with recent version "cradio-0.53.bin". The issue was in crazyradio, and once i flashed it works. I am able to log the gyroscope and accelerometer values.

Thank chad.
Congratulations! I'm glad you got it working!! :D
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