LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-02-2012, 04:27 PM   #1
rgarr
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 07-04-2012, 11:29 AM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
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?
 
Old 07-04-2012, 11:58 AM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failed to setup dm-crypt key mapping for device /dev/sda2 fat_boy Red Hat 4 12-05-2011 11:45 PM
[SOLVED] Help identifying a USB device Simon_6162 Programming 2 08-11-2011 09:01 AM
How to find the /dev/Device mapping for NFS file system in RHEL srithi Linux - Newbie 2 06-20-2010 08:27 AM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration