bitcraze / crazyflie-clients-python

Host applications and library for Crazyflie written in Python.
Other
310 stars 475 forks source link

Cfclient does not detect the Crazyflie USB dongle #654

Closed m-cetin closed 1 year ago

m-cetin commented 1 year ago

Hi,

I'm using Crazyradio PA USB dongle on a Windows 10 machine and I installed the newest drivers, so the device manager shows it correctly:

image

I installed the cfclient with python 3.7 over the documented way. The client looks like it starts correctly, but I cannot select any interface. When I press on "scan" the crazyradio dongle starts blinking red pretty fast. Afterwards I still cannot detect any devices. This is the "debug" output:

Cfclient
Cfclient version: 2022.12.post20+0dd24f1
System: win32
Python: 3.9.0
Qt: 5.15.2
PyQt: 5.15.9

Interface status
radio: Crazyradio version 0.53
UsbCdc: No information available
udp: None
prrt: No information available
cpx: None

Input readers
PySDL2 (0 devices connected)

Input devices
None

Crazyflie
Connected: None
Firmware: None

Decks found

Sensors found

Sensors tests

This is the powershell output:

cfclient
UserWarning: Using SDL2 binaries from pysdl2-dll 2.24.0
INFO:cfclient.gui:Disabling STL printouts
INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Could not initialize [linuxjsdev]: Only supported on Linux
INFO:cfclient.utils.input.inputreaders:Successfully initialized [pysdl2]
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 c:\temp\crazyflie-clients-python\src\cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [C:\Users\lens\AppData\Local\Bitcraze\cfclient/config.json]
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.utils.zmq_led_driver:ZMQ led disabled in config file
INFO:cfclient.utils.zmq_param:ZMQ param disabled in config file
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tabs.QualisysTab:Switching Flight Mode to: FlightModeStates.DISCONNECTED
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for toolbox_areas
INFO:cfclient.ui.tab_toolbox:No config found for open_toolboxes
INFO:cfclient.ui.tab_toolbox:No config found for open_toolboxes
INFO:cfclient.utils.input.inputreaders.pysdl2:Looking for devices
INFO:cfclient.utils.input.inputreaders.pysdl2:Found 0 devices
INFO:cfclient.ui.tabs.QualisysTab:Exception during qtm discovery: 'QRTDiscoveryProtocol' object has no attribute 'error_received'
INFO:cflib.drivers.cfusb:Looking for devices....
WARNING:cflib.crtp.usbdriver:Exception while scanning for Crazyflie USB: 'NoneType' object has no attribute 'bcdDevice'
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
knmcguire commented 1 year ago

Hi!

Just to confirm, you went through these installation instructions properly and installed the windows usb drivers through zadig right?

I haven't seen this in windows 11 btw

krichardsson commented 1 year ago

Hi @m-cetin ! Has this issue been resolved or is it still a problem?

knmcguire commented 1 year ago

closing due to unknown state of the issue.

If there is anything that is unclear to you @m-cetin, please make a post in discussions: https://github.com/orgs/bitcraze/discussions