Hello all,
I have a new device that lets me turn off and on an ac
device. This device conects to my computer through
(of course) USB interface. I am running linux
2.4.20-8. when I run /proc/bus/usb/devices it
outputs:
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 18
Spd=1.5 MxCh= 0
D: Ver= 1.0a Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8
#Cfgs= 2
P: Vendor=05e1 ProdID=0003 Rev= 0.00
S: Manufacturer=Wonderland
S: Product=Wonderland USB
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00
Driver=hid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
E: Ad=01(O) Atr=03(Int.) MxPS= 8 Ivl=10ms
C: #Ifs= 1 Cfg#= 2 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00
Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
E: Ad=01(O) Atr=03(Int.) MxPS= 8 Ivl=10ms
Here is my question, please, please help me. I know
that Cls=03( HID ) means it is using a human
interface device driver, it is at /dev/usb/hiddev0.
When I open it and try to write to it and read from
it, it hangs i.e it waits forever for a read. (Note: I
am trying to write my own program to send and receive
commands to this device.) Does the 2nd "D" line
Cls=ff(vend.) mean I need a vendor specific driver
along with the hid driver?? If not then shouldn't a
simple fd = open("/dev/usb/hiddev0") ... work. Maybe
a simple explination on how hid driver works. Please
help.
Thanks
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users