libusb0-dll:err
Posted: Wed Dec 30, 2015 9:30 am
Hello,
I have Crazyflie 2.0 setup on Windows 7 64bit using client and its working fine. I tried running through python client and it's also working fine.
But when I try to run the example ramp.py it says
I am not getting how to resolve this as the python client from source is working fine and connecting but when running ramp or any other example same error is occurring.
Below is the whole error statement It is able to scan the crazyflie but not connecting
I have Crazyflie 2.0 setup on Windows 7 64bit using client and its working fine. I tried running through python client and it's also working fine.
But when I try to run the example ramp.py it says
Code: Select all
[b]Connection to radio://0/80/250K failed: Couldn't load link driver: [Errno None] b'libusb0-dll:err [set_configuration] could not set config 1: win error: The parameter is incorrect.\r\n'[/b]
Below is the whole error statement It is able to scan the crazyflie but not connecting
Code: Select all
Scanning interfaces for Crazyflies...
Crazyflies found:
radio://0/80/250K
ERROR:cflib.crazyflie:Couldn't load link driver: [Errno None] b'libusb0-dll:err [set_configuration] could not set config 1: win error: The parameter is incorrect.\r\n'
Traceback (most recent call last):
File "../lib\cflib\crazyflie\__init__.py", line 218, in open_link
link_uri, self._link_quality_cb, self._link_error_cb)
File "../lib\cflib\crtp\__init__.py", line 91, in get_link_driver
instance.connect(uri, link_quality_callback, link_error_callback)
File "../lib\cflib\crtp\radiodriver.py", line 116, in connect
self.cradio = Crazyradio(devid=int(uri_data.group(1)))
File "../lib\cflib\drivers\crazyradio.py", line 122, in __init__
self.dev.set_configuration(1)
File "D:\Python34\lib\site-packages\usb\core.py", line 554, in set_configuration
self._ctx.managed_set_configuration(self, configuration)
File "D:\Python34\lib\site-packages\usb\core.py", line 92, in managed_set_configuration
self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
File "D:\Python34\lib\site-packages\usb\backend\libusb0.py", line 440, in set_configuration
_check(_lib.usb_set_configuration(dev_handle, config_value))
File "D:\Python34\lib\site-packages\usb\backend\libusb0.py", line 387, in _check
raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] b'libusb0-dll:err [set_configuration] could not set config 1: win error: The parameter is incorrect.\r\n'