ubuntu - how i Get usb number port from connected device via python -


I know that the witch device wants to connect the USB port in Ubuntu with a kiss ... for example when I use Bluetooth dongle I wnat know that Bluetooth connected to witch usb port ...

when I

tail -f / var / log / messages < / P>

The USB port number can be viewed as:

27 July 20:51:58 Smart-installer kernel: [711.363300] USB 1-1.2: new USB device miss Smartphone installer kernel: [711.363331] USB 1-1.2: new USB device strings: MFR = 0, product = 0, serial number = 0

i lsusb -t I'm getting the port but I also want the device number and -t that USB 1-1.2 Programming via Python

Get me some data

< P> You can either use PyusB (application T-USB package in Ubuntu and Debian), or go through the / sys / bus / usb / devices themselves, all the information in plain text.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -