PC client does not respond.

Post here to get support
Post Reply
ChuchuZhang
Beginner
Posts: 4
Joined: Wed Jun 17, 2015 12:12 am

PC client does not respond.

Post by ChuchuZhang »

We have a crazyflie 2.0 and we develop it with VM.
When we connect the drone with our PC client using crazyradio PA, the flight data does not always update. It sometimes works fine but it freezes for most of time. We already updated the firmware of Crazyfile, Crazyradio and have the latest version of PC client. We use a mac pro with USB 3.0 port.
Here are the logs from terminal and I attach a screen shot of the client to this thread

Code: Select all

INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Advanced
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Advanced
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/250K]
INFO:cflib.crazyflie:We are connected[radio://0/80/250K], request connection setup
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/250K]
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=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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=1
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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
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=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=1
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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
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=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
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=6
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:Memory: id=0, type=I2C, size=8191
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]
INFO:cflib.crazyflie.mem:Updating content of memory 0
INFO:cflib.crazyflie.mem:Requesting new chunk of 16bytes at 0x0
INFO:cflib.crazyflie.mem:READ: Mem=0, addr=0x0, status=0x0, data=(48, 120, 66, 67, 1, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 231)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 0
INFO:cflib.crazyflie.mem:Got new data: 0xBCP
INFO:cflib.crazyflie.mem:{'radio_channel': 80, 'roll_trim': 0.0, 'pitch_trim': 0.0, 'radio_speed': 0}
INFO:cflib.crazyflie.log:Have successfully started logging for id=1
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.mem:1 memories found
INFO:cflib.crazyflie.mem:Done getting all the memories, start reading the OWs
INFO:cflib.crazyflie.mem:READ: Mem=0, addr=0x0, status=0x0, data=(48, 120, 66, 67, 1, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 231)
INFO:cflib.crazyflie.log:Have successfully started logging for id=1
INFO:cflib.crazyflie.log:Have successfully started logging for id=3
INFO:cflib.crazyflie.log:Have successfully started logging for id=4
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.HMC5883L]: 1
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.MS5611]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=5
INFO:cflib.crazyflie.log:Have successfully started logging for id=6
INFO:cflib.crazyflie.log:Have successfully started logging for id=5
INFO:cflib.crazyflie.log:Have successfully started logging for id=6
Attachments
screenshot.png
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: PC client does not respond.

Post by tobias »

Can you try to switch to a higher on-air radio data rate in the config. Try with 1Mbit first the 2Mbit. Also try a different channel if it doesn't help.
ChuchuZhang
Beginner
Posts: 4
Joined: Wed Jun 17, 2015 12:12 am

Re: PC client does not respond.

Post by ChuchuZhang »

Thanks! Now I can connect to the PC client and I try to run ramp.py. However, ramp.py does not seem to work. Sometimes I get the following message from terminal and the program stops. The propellers do not spin at all.

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyflie-clients-python/examples$ python ramp.py
Scanning interfaces for Crazyflies...
Crazyflies found:
radio://0/28/250K
radio://0/48/250K
radio://0/77/250K
radio://0/80/250K
Connecting to radio://0/80/250K
Sometimes I get an exception:

Code: Select all

Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
  File "../lib/cflib/crazyflie/__init__.py", line 357, in run
  File "../lib/cflib/crtp/radiodriver.py", line 158, in receive_packet
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: PC client does not respond.

Post by marcus »

Hi,

Does the motors ramp up? If not then try to update to the latest version of the client (pull it from GitHub). There's a change where we first have to send 0 to unlock the thrust in the Crazyflie, if you don't have this line the example will not work.

The message you are getting is an error when the program is finishing.
ChuchuZhang
Beginner
Posts: 4
Joined: Wed Jun 17, 2015 12:12 am

Re: PC client does not respond.

Post by ChuchuZhang »

It seems that it is a hardware problem. After repairing the board, it works fine. Thanks!
Post Reply