Page 1 of 1

usb communication problem

Posted: Thu May 31, 2018 12:36 pm
by arix
Hello !
we know the cf can communicate by usb. USB_DM USB_DP and USB_ID. I want to only use USB_DM and USB_DP to communticate with my pi. It have any problem ? If it must need usb otg usb_id? or have ways to slove it only with usb_dm and usb_dp?
Thank you !

Re: usb communication problem

Posted: Thu May 31, 2018 1:53 pm
by arnaud
You should be able to get only ground/DM/DP and it should work fine, you do not need USB_ID. We have tried that on a prototype and it worked.

Re: usb communication problem

Posted: Thu May 31, 2018 2:16 pm
by arix
arnaud wrote: Thu May 31, 2018 1:53 pm You should be able to get only ground/DM/DP and it should work fine, you do not need USB_ID. We have tried that on a prototype and it worked.
I know how to solve it otg means only same GND.

Re: usb communication problem

Posted: Fri Jun 01, 2018 2:25 pm
by arix
arnaud wrote: Thu May 31, 2018 1:53 pm You should be able to get only ground/DM/DP and it should work fine, you do not need USB_ID. We have tried that on a prototype and it worked.
I have tried using same gnd but also can't get communicated with pi....
I use nanopi duo and it has dp and dm pin . It so small so i want to use it to control cf ..
I have install pyusb libusb and rules for cf . But it also can't have link with pi .

Code: Select all

pi@NanoPi-Duo:~/bitcraze-raspberry-pi$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
could you help where i need to change or what i need to do to solve it .

Thank you very much .

Re: usb communication problem

Posted: Mon Jun 04, 2018 10:54 am
by arnaud
Did you connect DP/DM and GND?

One way to debug USB problems is to look at the output of "dmesg", the raspi should try to enumerate the device as a full speed USB device when you connect it.

Re: usb communication problem

Posted: Tue Jun 05, 2018 8:07 am
by arix
arnaud wrote: Mon Jun 04, 2018 10:54 am Did you connect DP/DM and GND?

One way to debug USB problems is to look at the output of "dmesg", the raspi should try to enumerate the device as a full speed USB device when you connect it.
I have solve it, it because the problem with img what i used .

Code: Select all

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0483:5740 STMicroelectronics STM32F407
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
i facing some new problem .
the crazyflie-lib-python should pip install -e path/to/cflib, but when i input it,it will be path/to/cflib should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+. And i tried pip install -e cflib, it will be Directory 'cflib' is not installable. File 'setup.py' not found.So i don't understand how to install cflib.
So i copy cflib to examples . and when i python scan.py , it be No handlers could be found for logger "cflib.crtp.usbdriver".
I have sudo ./setup_linux.sh. and apt install python-usb and libusb.
so i want know what's wrong with me .
Thank you !

Re: usb communication problem

Posted: Mon Jun 11, 2018 3:07 pm
by arix
Have sloved!

Re: usb communication problem

Posted: Wed Apr 29, 2020 11:36 pm
by Duendelina
Hi,

I am trying to connect to CrazyFlie hardware as part of my master thesis and I am struggling to fix the issue 'No handlers could be found for logger "cflib.crtp.usbdriver"'.
I got this error when I run my program in executable format, created with PyInstaller. When I run the program from PyCharm it runs smoothly and detects the CrazyFlie radio without any problems.
Could you please tell me how you fixed the error 'No handlers could be found for logger "cflib.crtp.usbdriver"''?
Is something that I am missing as hidden import in the PyInstaller?
Thank you in advance

Kind regards

Re: usb communication problem

Posted: Thu Apr 30, 2020 7:59 am
by kimberly
Hi!

The thread are that you are answering is quite an old thread and it does not seem to be related to your problem. Please start a new thread and also specify which version of the library you are using and with operating system this is all running in.