usb communication problem

Post here to get support
Post Reply
arix
Member
Posts: 40
Joined: Fri Sep 01, 2017 1:45 am

usb communication problem

Post by arix » Thu May 31, 2018 12:36 pm

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 !

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

Re: usb communication problem

Post by arnaud » 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.

arix
Member
Posts: 40
Joined: Fri Sep 01, 2017 1:45 am

Re: usb communication problem

Post by arix » Thu May 31, 2018 2:16 pm

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.

arix
Member
Posts: 40
Joined: Fri Sep 01, 2017 1:45 am

Re: usb communication problem

Post by arix » Fri Jun 01, 2018 2:25 pm

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 .

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

Re: usb communication problem

Post by arnaud » 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.

arix
Member
Posts: 40
Joined: Fri Sep 01, 2017 1:45 am

Re: usb communication problem

Post by arix » Tue Jun 05, 2018 8:07 am

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 !

arix
Member
Posts: 40
Joined: Fri Sep 01, 2017 1:45 am

Re: usb communication problem

Post by arix » Mon Jun 11, 2018 3:07 pm

Have sloved!

Post Reply