Project

General

Profile

How to see which adapter is which USB device in TVHeadend or Ubuntu terminal

Added by Chris Koster about 7 years ago

Hi,

I have 7 USB DVB-C devices of which one of them is isn't working correctly. I'm trying to find out which one it is without enabling/disabling them one by one. In TVHeadend it is only list as /dev/dvb/adapter0(-6) and the device chipset is shown. Now I have different devices using the same chipset. I know of lsusb to list usb devices and lsdvb to list dvb devices. lsusb gives me the actual device name but not which dvb adapter it is. lsdvb shows me all the adapters but not the device name (eg: Technisat Cablestar, Terratec etc).

Is there one command to see all info, or multiple commands which still enables me to see what device is which adapter?

Any help is appreciated :)


Replies (4)

RE: How to see which adapter is which USB device in TVHeadend or Ubuntu terminal - Added by Anthony Thomas about 7 years ago

ls /sys/bus/usb/devices/*

That will give you all USB devices

cat /sys/bus/usb/devices/*/product

That should give you devices names in the order of the list above.

RE: How to see which adapter is which USB device in TVHeadend or Ubuntu terminal - Added by Em Smith about 7 years ago

If you've recently rebooted then:

dmesg | grep adapter

This gives output such as:

usb 2-2: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))
usb 6-2: DVB: registering adapter 1 frontend 0 (Realtek RTL2832 (DVB-T))
usb 6-2: DVB: registering adapter 1 frontend 1 (Panasonic MN88473)
...
usb 2-3: DVB: registering adapter 6 frontend 0 (Afatech AF9033 (DVB-T))
...

So you can see some of my cards are on different hubs and two of them are next to each other on 2-2 and 2-3.

You can run the command line tools to scan a card to see which one is returning bad channel locks such as

dvbv5-scan -a 1 ...other args based on country...

RE: How to see which adapter is which USB device in TVHeadend or Ubuntu terminal - Added by Chris Koster about 7 years ago

Thanks guys, both answers where very helpful. I have successfully found the faulty adapter. Thumbs up! Kind regards, Chris

RE: How to see which adapter is which USB device in TVHeadend or Ubuntu terminal - Added by saen acro about 7 years ago

Some devices support i2c call to turn on/off led on devices.

More information for devices can be taken by unique id/mac address (except copy/paste devices)
/sys/devices/ is very interesting place
exact location can be seen in device "Read-Only info"
and
https://www.mythtv.org/wiki/Device_Filenames_and_udev#Example_DVB_device_rule_file_.28for_the_digital_side_of_the_Hauppauge_HVR-1950_device.29

    (1-4/4)