Re: crazyradio PA not recongized
Posted: Mon Mar 13, 2017 6:03 pm
by kenjichanhkg
OK, when I unplug & plug it in, sometime I can connect to the copter.
But very quickly ~10-30 seconds, it disconnects, and even when it's connected, I feel it's really lag/not very responsive.
And every time, I had to re-plug the dongle to get it work again.
here is some log when it disconnected very quickly after connected
It caught a USBError execption
INFO:cfclient.gui:Disabling STL printouts
INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Successfully initialized [linuxjsdev]
INFO:cfclient.utils.input.inputreaders:Could not initialize [pysdl2]: No SDL2 support on Linux
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['leapmotion', 'wiimote', 'zmqpull']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk')
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid'
INFO:cfclient.utils.config:Dist config read from /home/bitcraze/projects/crazyflie-clients-python/src/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/bitcraze/.config/cfclient/config.json]
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.utils.zmq_param:Biding ZMQ for parameters at tcp://*:1213
INFO:cfclient.utils.zmq_led_driver:Biding ZMQ for LED driverat tcp://*:1214
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cfclient.ui.main:Auto reconnect enabled: True
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
(python3:4787): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed
(python3:4787): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed
INFO:cfclient.utils.input:Selected MUX: Normal
INFO:cfclient.ui.main:Role of Sony Computer Entertainment Wireless Controller is Device
INFO:cfclient.utils.input.mux:Adding device Sony Computer Entertainment Wireless Controller to MUX Normal
INFO:cflib.drivers.cfusb:Looking for devices....
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:Resending for pattern (93, 5)
INFO:cflib.crazyflie:Resending for pattern (93, 5)
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/250K]
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=9
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=9
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=9
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=9
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=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
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=5
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=3
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=6
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=7
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=4
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=9
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=6
INFO:cflib.crazyflie:Resending for pattern (93, 5)
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=5
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:3 memories found
INFO:cflib.crazyflie.mem:Requesting first id
INFO:cflib.crazyflie.mem:Requesting information about memory 1
INFO:cflib.crazyflie.mem:Memory: id=1, type=LED driver, size=24
INFO:cflib.crazyflie.mem:Requesting information about memory 2
INFO:cflib.crazyflie.mem:Done getting all the memories, start reading the OWs
INFO:cflib.crazyflie.mem:Updating content of memory 2
INFO:cflib.crazyflie.mem:Requesting new chunk of 11bytes at 0x0
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x0, status=0x0, data=(235, 0, 160, 0, 0, 188, 2, 157, 0, 9, 1)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 2
INFO:cflib.crazyflie.mem:Requesting new chunk of 12bytes at 0x8
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x8, status=0x0, data=(0, 9, 1, 4, 98, 99, 81, 105, 2, 1, 66, 198)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 2
INFO:cflib.crazyflie.mem:OW 0DD8381300000057 (BC:02): {'Board name': 'bcQi', 'Board revision': 'B'}
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:Writing new chunk of 24bytes at 0x0
INFO:cflib.crazyflie.mem:Updating content of memory 0
INFO:cflib.crazyflie.mem:Requesting new chunk of 16bytes at 0x0
INFO:cfclient.ui.tabs.LEDTab:Memory: id=1, type=LED driver, size=24
INFO:cflib.crazyflie.mem:WRITE: Mem=1, addr=0x0, status=0x0
INFO:cflib.crazyflie.mem:This write request is done
INFO:cflib.crazyflie.mem:Write to LED driver done
INFO:cfclient.ui.main:LED write done callback
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: bytearray(b'0xBC\x01P\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe7')
INFO:cflib.crazyflie.mem:Requesting new chunk of 5bytes at 0x10
INFO:cflib.crazyflie.log:Have successfully started logging for id=1
INFO:cflib.crazyflie.mem:READ: Mem=0, addr=0x10, status=0x0, data=(231, 231, 231, 231, 1)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 0
INFO:cflib.crazyflie.mem:{'version': 1, 'radio_speed': 0, 'pitch_trim': 0.0, 'radio_address': 996028180455, 'radio_channel': 80, 'roll_trim': 0.0}
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.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=7
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.MS5611]: 1
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.HMC5883L]: 1
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=8
INFO:cflib.crazyflie.log:Have successfully started logging for id=9
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
WARNING:cflib.crazyflie:Got link error callback [RadioDriver: Could not send packet to copter] in state [2]
INFO:cflib.crtp.radiodriver:Dongle reported ACK status == None
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/80/250K]
INFO:cflib.crazyflie:Callback->Connection lost to [radio://0/80/250K]: RadioDriver: Could not send packet to copter
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/250K]
ERROR:cflib.crazyflie:Couldn't load link driver: [Errno 110] Operation timed out
Traceback (most recent call last):
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 218, in open_link
link_uri, self._link_quality_cb, self._link_error_cb)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
instance.connect(uri, link_quality_callback, link_error_callback)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 188, in connect
address)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 98, in __init__
_RadioManager._radios[self._devid] = _SharedRadio(self._devid)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 67, in __init__
self.radio = Crazyradio(devid=devid)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 143, in __init__
self.set_data_rate(self.DR_2MPS)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 189, in set_data_rate
_send_vendor_setup(self.handle, SET_DATA_RATE, datarate, 0, ())
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 302, in _send_vendor_setup
wIndex=index, timeout=1000, data_or_wLength=data)
File "/usr/local/lib/python3.4/dist-packages/usb/core.py", line 971, in ctrl_transfer
self.__get_timeout(timeout))
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb1.py", line 819, in ctrl_transfer
timeout))
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb1.py", line 552, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
INFO:cflib.crazyflie:Callback->Connected failed to [radio://0/80/250K]: Couldn't load link driver: [Errno 110] Operation timed out
Traceback (most recent call last):
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 218, in open_link
link_uri, self._link_quality_cb, self._link_error_cb)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
instance.connect(uri, link_quality_callback, link_error_callback)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 188, in connect
address)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 98, in __init__
_RadioManager._radios[self._devid] = _SharedRadio(self._devid)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 67, in __init__
self.radio = Crazyradio(devid=devid)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 143, in __init__
self.set_data_rate(self.DR_2MPS)
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 189, in set_data_rate
_send_vendor_setup(self.handle, SET_DATA_RATE, datarate, 0, ())
File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 302, in _send_vendor_setup
wIndex=index, timeout=1000, data_or_wLength=data)
File "/usr/local/lib/python3.4/dist-packages/usb/core.py", line 971, in ctrl_transfer
self.__get_timeout(timeout))
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb1.py", line 819, in ctrl_transfer
timeout))
File "/usr/local/lib/python3.4/dist-packages/usb/backend/libusb1.py", line 552, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/80/250K]
^C===== 2017.03.13 14:03:29 =====
Traceback (most recent call last):
File "/home/bitcraze/projects/crazyflie-clients-python/src/cfclient/ui/tabs/locopositioning_tab.py", line 548, in _update_graphics
self._plot_yz.update(anchors, self._position, self._display_mode)
File "/home/bitcraze/projects/crazyflie-clients-python/src/cfclient/ui/tabs/locopositioning_tab.py", line 144, in update
display_mode)
File "/home/bitcraze/projects/crazyflie-clients-python/src/cfclient/ui/tabs/locopositioning_tab.py", line 174, in _plot_anchor
symbolSize=size)
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 630, in plot
item = PlotDataItem(*args, **kargs)
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/graphicsItems/PlotDataItem.py", line 176, in __init__
self.setData(*args, **kargs)
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/graphicsItems/PlotDataItem.py", line 460, in setData
self.updateItems()
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/graphicsItems/PlotDataItem.py", line 492, in updateItems
self.scatter.setData(x=x, y=y, **scatterArgs)
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/graphicsItems/ScatterPlotItem.py", line 297, in setData
self.addPoints(*args, **kargs)
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/graphicsItems/ScatterPlotItem.py", line 389, in addPoints
setMethod(kargs[k], update=False, dataSet=newData, mask=kargs.get('mask', None))
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/graphicsItems/ScatterPlotItem.py", line 462, in setBrush
self.opts['brush'] = fn.mkBrush(*args, **kargs)
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/functions.py", line 244, in mkBrush
return QtGui.QBrush(mkColor(color))
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/functions.py", line 221, in mkColor
args = [0 if np.isnan(a) or np.isinf(a) else a for a in args]
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph/functions.py", line 221, in <listcomp>
args = [0 if np.isnan(a) or np.isinf(a) else a for a in args]
Thanks,
Kenji
Re: crazyradio PA not recongized
Posted: Tue Mar 14, 2017 8:50 am
by kenjichanhkg
yes, and I tried the same thing in native windows, same result.
At first, I saw the battery level dropped dramatically when I thrust. I thought it's maybe because my battery is low (but actually 80%), then I fully charged it, and the same result.
and how can I choose other channels? as in windows, all I can see from the list is radio://0/80/250K.
Do I need to change some config file or source code?
In VirtualBox, I "sometime" see other channels (45,77,85,99), but all other channels are unstable.
BTW, I couldn't get my PS4 controller working with the crazyflie client in windows, but ok in Virtualbox
I'm using
http://ds4windows.com/ in windows for my PS4 controller.
Thanks!