Questions tagged [lsusb]

lsusb is a utility for displaying information about all USB buses in the system and all devices connected to them. To make use of all the features of this program, you need to have Linux kernel 2.3.15 or newer which supports the /proc/bus/usb interface.

36 questions
1
vote
1 answer

How can I link the result of lsusb devices to /dev/ttyUSB*

I have the vendor and product code of a USB product: 0403:6001 I would like to know how can I link easily the result of lsusb command with the determination of a device on /dev/ttyUSB* lsusb give me Bus 001 Device 004: ID 065a:a001 First device…
N. Hiblot
  • 13
  • 2
1
vote
1 answer

How to read Binary Device Object Store (BOS) descriptor of USB Device on Linux

I need to programmatically read device descriptors of a USB device plugged into a Linux system (Ubuntu 18.04). I can read most of the descriptors I need (iSerial, iProduct, etc) by parsing lsusb output, or by reading directly from the usbfs files at…
mofahead
  • 11
  • 1
1
vote
0 answers

How to deactivate a specific USB port on Android device

I'd like to power on and off a USB device in Android. I know the method on Linux and it is pretty straightforward (see https://loginroot.com/power-off-and-on-usb-device-in-linux-ubuntu/). Unfortunately the command lsusb -t does not work on Android…
Trabool
  • 119
  • 2
1
vote
1 answer

Can a usb 3 port come in black color?

I have some doubts about one of my (new) laptop's usb ports regarding whether it is usb 2 or 3. The port color is black, while it is reported that usb 3 come in blue. From ubuntu 14, I checked with lsusb and I got bcdUSB 3.00 which…
Courier
  • 888
  • 2
  • 11
  • 30
1
vote
0 answers

libusb_interrupt_transfer ends with LIBUSB_ERROR_IO

Writting to the device with libusb_interrupt_transfer(...), ends with LIBUSB_ERROR_IO all the time. Libusb version: libusb-1.0.4 STM32F103 code - st example for hid devices Checked: Endpoint in code is set to as in lsusb : 0x81 in usbmon I can see…
pholat
  • 385
  • 2
  • 18
1
vote
1 answer

Obtaining information about /dev/usb/lp* devices

I have a problem obtaining information about /dev/usb/lp* devices. The lsusb command gives me USB bus and device IDs, and a name of the device but I can't figure out how to get it to tell me the name of the corresponding /dev/usb/lp* device. I don't…
EndruPL
  • 121
  • 7
1
vote
3 answers

hot to put a delimiter into output of "lsusb"

I have an "lsusb" output as below: khalemi@hpx:/opt$ lsusb -d 0c2e:0200 Bus 002 Device 004: ID 0c2e:0200 Metrologic Instruments Metrologic Scanner Bus 002 Device 006: ID 0c2e:0200 Metrologic Instruments Metrologic Scanner Q) How can I use "sed" to…
MKhalemi
  • 35
  • 6
1
vote
2 answers

AWK error - syntax error at or near grep

I need to create a script to unbind/bind all usb in one linux machine. For this I need to run: lsusb -t wich returns: root@lsdg7sd-fc:~# lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/10p, 12M |__ Port 4: Dev 2, If 0,…
Juano7894
  • 463
  • 1
  • 7
  • 16
1
vote
1 answer

Product Id of usb device changes automatically

I am using 2 usb camera in an archlinux system. Everything was running smooth for a very long time but recently a very strange thing started happening. One of the camera's product id changes suddenly. When I see the output in lsusb. lsusb Bus 002…
Gaurav Kumar
  • 153
  • 8
1
vote
1 answer

Trace HID device traffic on Linux

I'm rewriting software for a HID device reader to allow Linux support and I'm having a bit of trouble debugging it. On Windows, I use a tool called Busdog, which lets you pick a device and log the write/read reports. It manages this by installing…
Andy E
  • 311,406
  • 78
  • 462
  • 440
0
votes
0 answers

Ubuntu failing to load Realsense 2 Camera Nodelet

I am trying to run an Intel Reaslsense D435 camera on my computer through ROS. Whenever I enter roslaunch realsense2_camera rs_camera.launch to start the camera, I get this [ 0.000012] [00002aa7] libusb: debug [libusb_init] created default context […
0
votes
2 answers

Creating a bash script that logs the output of 'watch lsusb' into an empty file

I have an embedded Linux system (running Ubuntu 10) on a microprocessor that has an onboard USB hub (specifically a BeagleBone Black). I made a simple bash script that's supposed to run a command, watch lsusb; and as that runs, my program needs to…
Taylor
  • 1
  • 1
0
votes
0 answers

I am getting error "unable to initialize libusb: -99" on executing lsusb command on WSL2 Ubuntu app on my Windows

I am getting errror "unable to initialize libusb: -99" on executing lsusb command on WSL2 Ubuntu app on my Windows 10 . Please help. I am basically trying to flash Zephyr as simple Hello world application on my reel_board by connecting reel_board…
0
votes
1 answer

Check USB device ID and connected port from C application

I need to be able to identify a plugged USB device (USB3 and/or USB2) and which port is connected to in the hub from a C program. I'm working on a embedded Linux system Yocto based. I'm able to get this info from the command line with lsusb. E.g.…
joe
  • 175
  • 1
  • 12
0
votes
1 answer

How to list all the USB devices (printers) connected on yocto?

I am trying to get a USB printer to work with an embedded system using yocto. I have the cups package added to the yocto image. The lpstat command returns that no default destination is available. I am trying to see if my printer gets listed via…
Vysh
  • 668
  • 1
  • 6
  • 14