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.

45 questions
144
votes
10 answers

Is there an equivalent of lsusb for OS X

This question seems to be all over google, but the answers all point to using System Profiler. That's nice, but with System Profiler all you get is something that looks like this: DasKeyboard: Product ID: 0x1919 …
Ted Middleton
  • 6,859
  • 10
  • 51
  • 71
7
votes
1 answer

Differentiate multiple USB devices having same Vendor and Product ID

I am writing an application which allows a Linux machine to connect to internet over usb modem. I have multiple usb modems having same vendor and product ID; I cannot differentiate them using lsusb which gives vendor and product ID. Also giving IDs…
denizeren
  • 934
  • 8
  • 20
4
votes
0 answers

How to get USB information by using "lsusb -v" in ADB shell?

I can use lsusb -v command to pull the data about a USB Webcam and I can see all supported formats and resolutions in Terminal (Linux). But I am using an Android device too and I want to connect USB Webcam to that device and to see supported…
ilkercavuss
  • 66
  • 1
  • 4
3
votes
2 answers

Linux shell get device id from user input

I am working on an install script for a program that needs the device id from lsusb in it's configuration so I was thinking of doing the following: $usblist=(lsusb) #put the list into a array for each line. #use the array to give the user a…
Martinn Roelofse
  • 423
  • 2
  • 4
  • 13
3
votes
2 answers

Cross-compile using go build CGO_ENABLED - warning: libudev.so.1 not found

I am trying to cross-compile a Golang application for a Raspberry Pi with CGO_ENABLED=1 due to a libusb dependency During compilation I get the error: arm-linux-gnueabihf/bin/ld: warning: libudev.so.1, needed by…
Joseph Roberts
  • 569
  • 3
  • 10
  • 29
3
votes
1 answer

How to Find the dev path in which usb device is connected?

I have connected two data cards in my server. One is connected in port dev/ttyUSB2. I want to find the other's port. There are four ports ttyUSB0, ttyUSB1, ttyUSB2, ttyUSB3. I already tried lsusb -vv and found out this: Bus 001 Device 005: ID…
Bikash Dash
  • 163
  • 6
  • 13
3
votes
1 answer

lsusb: only 1 endpoint available

I am trying to communicate with a device (that has no linux driver) via libusb. I have written a lot of the basic code and used USB snooping software on windows (for which there is a driver) to find out the codes I need to send to it. However, only…
UnknownFury
  • 304
  • 1
  • 12
3
votes
1 answer

USB Vendor and Product ID to Device Binding

I have a USB VID and PID for an attached device on GNU / Linux. 045e:0084, for example. I want the binding so I grep the output of lsusb for the VID:PID and massage it into a format acceptable for udevadm lookup. Finally, I take the basename of the…
Stephen Niedzielski
  • 2,497
  • 1
  • 28
  • 34
3
votes
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
  • 338,112
  • 86
  • 474
  • 445
2
votes
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
  • 23
  • 3
2
votes
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
  • 21
  • 2
2
votes
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
  • 920
  • 2
  • 11
  • 36
2
votes
0 answers

kinect not connecting even though powered

I'm trying to use a kinect xbox360 with ubuntu 12.04 (and eventually ROS). The kinect is plugged in and powered on (blinking green light). When running lsusb, I do not see the expected three Microsoft devices Bus 002 Device 009: ID 045e:02ae…
slow_one
  • 113
  • 1
  • 4
  • 13
2
votes
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
  • 141
  • 1
  • 7
2
votes
1 answer

Use iSerialNumber USB device descriptor to uniquely identify GoPro Camera

The field I'm interested is iSerial from the output of: lsusb -d : -v Example output of a non-unique iSerialNumber: Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 …
Boggio
  • 1,128
  • 11
  • 16
1
2 3