ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Discussions about all things Bitcraze
Post Reply
xpnimi
Beginner
Posts: 3
Joined: Mon Jan 21, 2019 4:06 pm

ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Post by xpnimi » Mon Jan 21, 2019 4:15 pm

I just installed osx 10.14 Mojave and installed the python client with brew as described here (https://github.com/bitcraze/crazyflie-clients-python)

I also have an Crazyradio PA

the client starts and opens the GUI when I search and connect to the crazyflie I get the following error in the terminal

Code: Select all

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]
ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/cflib/crazyflie/__init__.py", line 396, in run
    cb.callback(pk)
  File "/usr/local/lib/python3.7/site-packages/cflib/crazyflie/platformservice.py", line 113, in _crt_service_callback
    if pk.data[:18].decode('utf8') == 'Bitcraze Crazyflie':
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 6: invalid start byte
I don't have any idea what's wrong!

xpnimi
Beginner
Posts: 3
Joined: Mon Jan 21, 2019 4:06 pm

Re: ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Post by xpnimi » Sat Jan 26, 2019 4:31 pm

never mind,

now it seems to work. Maybe I had to restart the system.

Error is still in the terminal log though.

Code: Select all

ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/cflib/crazyflie/__init__.py", line 396, in run
    cb.callback(pk)
  File "/usr/local/lib/python3.7/site-packages/cflib/crazyflie/platformservice.py", line 113, in _crt_service_callback
    if pk.data[:18].decode('utf8') == 'Bitcraze Crazyflie':
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 6: invalid start byte

arnaud
Bitcraze
Posts: 1939
Joined: Tue Feb 06, 2007 12:36 pm

Re: ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Post by arnaud » Mon Feb 04, 2019 8:47 am

Hi, have you upgraded your Crazyflie to the latest release? Updating the Crazyflie should make this message disappear.

xpnimi
Beginner
Posts: 3
Joined: Mon Jan 21, 2019 4:06 pm

Re: ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Post by xpnimi » Mon Feb 04, 2019 10:57 am

Do you mean firmware? Actually no, the Crazyflie is probably 2 - 3 Years old. Do you have link which describes the process of flashing the firmware on OSX?

I do have another issue with the crazyflie since I updated to osx mojave. The controlls are very different and I am not able to fly the crazyflie as I used to. Might that issue have to do something with the firmware as well?

I am not a professional developer - so a good link to an article on upgrading the firmware would be very much appreciated.

arnaud
Bitcraze
Posts: 1939
Joined: Tue Feb 06, 2007 12:36 pm

Re: ERROR:cflib.crazyflie:Exception while doing callback on port [15]

Post by arnaud » Mon Feb 04, 2019 12:28 pm

The getting started with Crazyflie 2.0 guide has a section about updating the Crazyflie firmware: https://www.bitcraze.io/getting-started ... #latest-fw

As for the control, could you describe about how different the control are? Updating to Mojave should not have any effect on the client.

Post Reply