PX4-Autopilot: Firmware broken on Crazyflie 2.0 hardware
Describe the bug
The crazyflie 2.0 platform, using the latest Firmware, does not communicate with QGC through USB nor through the PA radio.
To Reproduce Steps to reproduce the behavior:
- Install latest master or 1.9.0beta Firmware in Crazyflie 2.0 hardware
- Connect to QGC using USB or the PA radio (with cfbridge)
- “Waiting for connection” is displayed on QGC indefinitely
Expected behavior QGC should display vehicle status and parameters
Log Files
Using cflib 1.6.0 and cfbridge from https://github.com/dennisss/cfbridge
Output of cfbridge with latest firmware (or 1.9.0beta) [nothing shows up on QGC]
Scanning interfaces for Crazyflies...
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.radiodriver.RadioDriver'>
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.serialdriver.SerialDriver'>
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.udpdriver.UdpDriver'>
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.usbdriver.UsbDriver'>
INFO:cflib.drivers.cfusb:Looking for devices....
Crazyflies found:
radio://0/80/2M
DEBUG:cflib.crazyflie:Adding callback on port [6] to [<bound method Localization._incoming of <cflib.crazyflie.localization.Localization object at 0x10b8c0550>>]
DEBUG:cflib.crazyflie:Adding callback on port [5] to [<bound method Log._new_packet_cb of <cflib.crazyflie.log.Log object at 0x10b8c0668>>]
DEBUG:cflib.crazyflie:Adding callback on port [0] to [<bound method Console.incoming of <cflib.crazyflie.console.Console object at 0x10b8c0710>>]
DEBUG:cflib.crazyflie:Adding callback on port [2] to [<bound method _ParamUpdater._new_packet_cb of <_ParamUpdater(Thread-2, initial daemon)>>]
DEBUG:cflib.crazyflie:Adding callback on port [4] to [<bound method Memory._new_packet_cb of <cflib.crazyflie.mem.Memory object at 0x10b8c09b0>>]
Connecting to radio://0/80/2M
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/2M]
INFO:cflib.crazyflie:We are connected[radio://0/80/2M], request connection setup
DEBUG:cflib.crazyflie:Sending packet and expecting the (93, 5) pattern back
waiting to receive message
INFO:cflib.crazyflie:Resending for pattern (93, 5)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (93, 5)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (93, 5)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (93, 5)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/2M]
DEBUG:cflib.crazyflie:Looking for pattern match on (93, 5) vs (255, 1, 35)
DEBUG:cflib.crazyflie:Looking for pattern match on (93, 5) vs (255, 1, 35)
DEBUG:cflib.crazyflie:Looking for pattern match on (93, 5) vs (93, 5, 103, 0)
DEBUG:cflib.crazyflie:Found new longest match (93, 5)
DEBUG:cflib.crazyflie.log:Logging reset, continue with TOC download
DEBUG:cflib.crazyflie.toc:[5]: Start fetching...
DEBUG:cflib.crazyflie:Adding callback on port [5] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10b8dc208>>]
DEBUG:cflib.crazyflie.toc:[5]: Got TOC CRC, 0 items and crc=0x00000000
DEBUG:cflib.crazyflie.toc:Requesting index 0 on port 5
DEBUG:cflib.crazyflie.toc:Added element [0]
WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory
DEBUG:cflib.crazyflie:Removing callback on port [5] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10b8dc208>>]
DEBUG:cflib.crazyflie.toc:[5]: Done!
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.mem:Requesting number of memories
INFO:cflib.crazyflie.mem:0 memories found
INFO:cflib.crazyflie:Memories finished updating
DEBUG:cflib.crazyflie.toc:[2]: Start fetching...
DEBUG:cflib.crazyflie:Adding callback on port [2] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10b8dc208>>]
DEBUG:cflib.crazyflie.toc:[2]: Got TOC CRC, 0 items and crc=0x00000000
DEBUG:cflib.crazyflie.toc:Requesting index 0 on port 2
DEBUG:cflib.crazyflie.toc:Added element [0]
WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory
DEBUG:cflib.crazyflie:Removing callback on port [2] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10b8dc208>>]
DEBUG:cflib.crazyflie.toc:[2]: Done!
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/2M]
Connected to radio://0/80/2M
DEBUG:cflib.crazyflie.param:Requesting request to update param [0]
DEBUG:cflib.crazyflie.param:Updated parameter [.]
Output of cfbridge with 1.9.0alpha [QGC displays vehicle status as usual]
Scanning interfaces for Crazyflies...
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.radiodriver.RadioDriver'>
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.serialdriver.SerialDriver'>
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.udpdriver.UdpDriver'>
DEBUG:cflib.crtp:Scanning: <class 'cflib.crtp.usbdriver.UsbDriver'>
INFO:cflib.drivers.cfusb:Looking for devices....
Crazyflies found:
radio://0/2/2M
DEBUG:cflib.crazyflie:Adding callback on port [6] to [<bound method Localization._incoming of <cflib.crazyflie.localization.Localization object at 0x10e15e0b8>>]
DEBUG:cflib.crazyflie:Adding callback on port [5] to [<bound method Log._new_packet_cb of <cflib.crazyflie.log.Log object at 0x10e15e438>>]
DEBUG:cflib.crazyflie:Adding callback on port [0] to [<bound method Console.incoming of <cflib.crazyflie.console.Console object at 0x10e15e550>>]
DEBUG:cflib.crazyflie:Adding callback on port [2] to [<bound method _ParamUpdater._new_packet_cb of <_ParamUpdater(Thread-2, initial daemon)>>]
DEBUG:cflib.crazyflie:Adding callback on port [4] to [<bound method Memory._new_packet_cb of <cflib.crazyflie.mem.Memory object at 0x10e15e828>>]
Connecting to radio://0/80/2M
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/2M]
INFO:cflib.crazyflie:We are connected[radio://0/80/2M], request connection setup
DEBUG:cflib.crazyflie:Sending packet and expecting the (93, 5) pattern back
waiting to receive message
INFO:cflib.crazyflie:Resending for pattern (93, 5)
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
INFO:cflib.crazyflie:Resending for pattern (93, 5)
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/2M]
DEBUG:cflib.crazyflie:We want to resend and the pattern is there
DEBUG:cflib.crazyflie:Looking for pattern match on (93, 5) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (93, 5) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (93, 5) vs (93, 5, 63, 0)
DEBUG:cflib.crazyflie:Found new longest match (93, 5)
DEBUG:cflib.crazyflie.log:Logging reset, continue with TOC download
DEBUG:cflib.crazyflie.toc:[5]: Start fetching...
DEBUG:cflib.crazyflie:Adding callback on port [5] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10e179320>>]
DEBUG:cflib.crazyflie:Sending packet and expecting the (92, 1) pattern back
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 1) vs (93, 5, 63, 0)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 1) vs (93, 5, 63, 0)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 1) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 1) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 1) vs (92, 1, 0, 0, 0, 0, 0, 0, 0)
DEBUG:cflib.crazyflie:Found new longest match (92, 1)
DEBUG:cflib.crazyflie.toc:[5]: Got TOC CRC, 0 items and crc=0x00000000
DEBUG:cflib.crazyflie.toc:Requesting index 0 on port 5
DEBUG:cflib.crazyflie:Sending packet and expecting the (92, 0, 0) pattern back
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 0, 0) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 0, 0) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 0, 0) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 0, 0) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (92, 0, 0) vs (92, 0, 0, 1, 0, 0)
DEBUG:cflib.crazyflie:Found new longest match (92, 0, 0)
DEBUG:cflib.crazyflie.toc:Added element [0]
WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory
DEBUG:cflib.crazyflie:Removing callback on port [5] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10e179320>>]
DEBUG:cflib.crazyflie.toc:[5]: Done!
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.mem:Requesting number of memories
DEBUG:cflib.crazyflie:Sending packet and expecting the (76, 1) pattern back
DEBUG:cflib.crazyflie:Looking for pattern match on (76, 1) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (76, 1) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (76, 1) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (76, 1) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (76, 1) vs (76, 1, 0)
DEBUG:cflib.crazyflie:Found new longest match (76, 1)
INFO:cflib.crazyflie.mem:0 memories found
INFO:cflib.crazyflie:Memories finished updating
DEBUG:cflib.crazyflie.toc:[2]: Start fetching...
DEBUG:cflib.crazyflie:Adding callback on port [2] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10e064860>>]
DEBUG:cflib.crazyflie:Sending packet and expecting the (44, 1) pattern back
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 1) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 1) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 1) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 1) vs (44, 1, 0, 0, 0, 0, 0, 0, 0)
DEBUG:cflib.crazyflie:Found new longest match (44, 1)
DEBUG:cflib.crazyflie.toc:[2]: Got TOC CRC, 0 items and crc=0x00000000
DEBUG:cflib.crazyflie.toc:Requesting index 0 on port 2
DEBUG:cflib.crazyflie:Sending packet and expecting the (44, 0, 0) pattern back
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 0, 0) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 0, 0) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 0, 0) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 0, 0) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (44, 0, 0) vs (44, 0, 0, 0, 0, 0, 0, 0, 0)
DEBUG:cflib.crazyflie:Found new longest match (44, 0, 0)
DEBUG:cflib.crazyflie.toc:Added element [0]
WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory
DEBUG:cflib.crazyflie:Removing callback on port [2] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher object at 0x10e064860>>]
DEBUG:cflib.crazyflie.toc:[2]: Done!
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/2M]
Connected to radio://0/80/2M
DEBUG:cflib.crazyflie.param:Requesting request to update param [0]
DEBUG:cflib.crazyflie:Sending packet and expecting the (45, 0) pattern back
DEBUG:cflib.crazyflie:Looking for pattern match on (45, 0) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (45, 0) vs (255, 1, 45)
DEBUG:cflib.crazyflie:Looking for pattern match on (45, 0) vs (255, 1, 44)
DEBUG:cflib.crazyflie:Looking for pattern match on (45, 0) vs (45, 0, 0)
DEBUG:cflib.crazyflie:Found new longest match (45, 0)
DEBUG:cflib.crazyflie.param:Updated parameter [.]
received 21 bytes from ('127.0.0.1', 14550)
waiting to receive message
received 13 bytes from ('127.0.0.1', 14550)
waiting to receive message
received 43 bytes from ('127.0.0.1', 14550)
waiting to receive message
received 19 bytes from ('127.0.0.1', 14550)
waiting to receive message
received 19 bytes from ('127.0.0.1', 14550)
(...)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (8 by maintainers)
Sorry, I don’t have a serial console now. I could try that when I have time.