LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Need help identifying USB device -> /dev/hiddev* mapping (CentOS 6.2 64-Bit) (https://www.linuxquestions.org/questions/linux-hardware-18/need-help-identifying-usb-device-dev-hiddev%2A-mapping-centos-6-2-64-bit-4175414506/)

rgarr 07-02-2012 04:27 PM

Need help identifying USB device -> /dev/hiddev* mapping (CentOS 6.2 64-Bit)
 
Hi guys/gals,

I searched but couldn't come up with anything but will continue searching as well.

Anyway, I am trying to configure apcupsd and am having some issues identifying which /dev/hiddev* file is which UPS (I have 3).

The devices show up in dmesg and it looks like they are going to be hiddev96, hiddev97 and hiddev98. But these files don't exist, only hiddev0, hiddev1 and hiddev2. That is to be expected (I think anyway...I believe it is essentially running mknod for me, right?). But, how do I know which device maps to which 'hiddev*' file?

From /proc/bus/usb/devices I can clearly see the SerialNumber, but how can I identify which one of those devices in /proc/bus/usb/devices maps to which /dev/hiddev* file? Is there something I am overlooking?

I guess I could make a rule in /etc/udev/50-persistent.rules as suggested in the manual for apcupsd, but I would still like to know how to identify devices in a situation like this.

Here is 'cat /proc/bus/usb/devices'
Code:

T:  Bus=01 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#=  5 Spd=1.5  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=051d ProdID=0002 Rev= 0.06
S:  Manufacturer=American Power Conversion
S:  Product=Smart-UPS 1500 RM FW:667.18.D USB FW:7.4
S:  SerialNumber=AS0930122
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 30mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=  6 Ivl=100ms

T:  Bus=01 Lev=02 Prnt=03 Port=01 Cnt=02 Dev#=  6 Spd=1.5  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=051d ProdID=0002 Rev= 0.06
S:  Manufacturer=American Power Conversion
S:  Product=Smart-UPS 1500 RM FW:667.18.D USB FW:7.4
S:  SerialNumber=AS0930123
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 30mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=  6 Ivl=100ms

T:  Bus=01 Lev=02 Prnt=03 Port=03 Cnt=03 Dev#=  7 Spd=1.5  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=051d ProdID=0002 Rev= 0.06
S:  Manufacturer=American Power Conversion
S:  Product=Smart-UPS 1500 RM FW:667.18.D USB FW:7.3
S:  SerialNumber=AS0804224
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 30mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=  6 Ivl=100ms

Here is 'lsusb' for the appropriate devices
Code:

Bus 001 Device 005: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 001 Device 006: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 001 Device 007: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

And here is 'dmesg | grep hidd'
Code:

usbcore: registered new interface driver hiddev
generic-usb 0003:051D:0002.0001: hiddev96,hidraw0: USB HID v1.10 Device [American Power Conversion Smart-UPS 1500 RM FW:667.18.D USB FW:7.4] on usb-0000:00:1d.7-4.1/input0
generic-usb 0003:051D:0002.0002: hiddev97,hidraw1: USB HID v1.10 Device [American Power Conversion Smart-UPS 1500 RM FW:667.18.D USB FW:7.4] on usb-0000:00:1d.7-4.2/input0
generic-usb 0003:051D:0002.0003: hiddev98,hidraw2: USB HID v1.10 Device [American Power Conversion Smart-UPS 1500 RM FW:667.18.D USB FW:7.3] on usb-0000:00:1d.7-4.4/input0

Thanks in advance, it is much appreciated.

jefro 07-04-2012 11:29 AM

I think it goofed and called the UPS a HID when it wasn't. Maybe there is a menu on the USP or some control on it that can while in windows control features?

qlue 07-04-2012 11:58 AM

What is in /dev/hiddev directory? (is there a directory like that or similar?)


All times are GMT -5. The time now is 12:59 PM.