Hey everyone,
This is my first USB project and I'm not quite sure where to go at this
point. I've already asked around the libusb forum for help to get started
with various information, docs , etc... I've now successfully analyzed my
snoopyPro logs. I also have charted out and verified (with the docs ...
not programming) the HID Usage Pages printed out to me with the lsusb -vvv
and the libhid libraries installed.
(see attached)
Now the question is how I take this information and write it into code.
I'm using the Python Bindings.
Any help would be appreciated.
Thanks
Christopher
Initialization.log (HID-Device ONLY)
1) SELECT_CONFIGURATION
InterfaceHandle = 0x8272e008
EndpointAddress = 0x00000083
Interval = 0x00000001
PipeType = 0x00000003 (UsbdPipeTypeInterrupt)
PipeHandle = 0x8272e024
2) TransferFlags = 00000000, "set Idle" (via a Request = 0000000a , Value = 0,
Index = 3 (hid) ) [OUT] [Class Interface] [SET IDLE]
TransferBufferLength, TransferBuffer and TransferBufferMDL all =
00000000
3) through some unknown pipe handle 825616c8, another "set idle" (TransferFlags
= 0000000a) is sent with a SetupPacket [OUT] [Control Transfer] [SET IDLE]
SetupPacket = 00000000: 21 0a 00 00 03 00 00 00
4) From Interface 0 ... TransferBuffer= 82822418 [Get Descriptor From Interface]
5) through same uknnown pipe handle 825616c8, "set protocol" (TransferFlags =
0000000b) is sent with a multiline TransferBufferMDL and SetupPacket [IN]
[Control Transfer]
SetupPacket = 00000000: 81 06 00 22 03 00 dc 00
... then a bunch of FilterDispatchPnp and FdoHookDispatchPnp lines ...
6) through HID endpoint (0x83), "get protocol" (TransferFlags = 00000003),
buffer 828fef00, TransferBufferMDL=00000000 [IN] [Interrupt Transfer]
7) through HID endpoint (0x83), "get protocol" (TransferFlags = 00000003),
buffer 828f7af0, TransferBufferMDL=00000000 [IN] [Interrupt Transfer]
8) TransferFlags = 00000000, "set report"( via a Request = 00000009, Value=304,
Index = 3) [OUT] [Class Interface] [SET REPORT]
9) through some unknown pipe handle 825616c8, another "set idle" is sent with a
SetupPacket [OUT] [Control Transfer] [SET IDLE]
TransferBuffer = 82764200
TransferBufferMDL = 827c7d00
SetupPacket = 00000000: 21 09 04 03 03 00 09 00
10)TransferFlags = 00000000, "set report"( via a Request = 00000009, Value=304,
Index = 3) [OUT] [Class Interface] [SET REPORT]
11) through some unknown pipe handle 825616c8, another "set idle" is sent with
a SetupPacket [OUT] [Control Transfer] [SET IDLE]
(same as #9)
12) through HID endpoint (0x83), "get protocol" (TransferFlags = 00000003),
buffer 828fef00, TransferBufferMDL=8258e5d0 00000000:03 83 34 00 43 00 00 00
[IN] [Interrupt Transfer]
(same as #6)
13) same as #12 but TransferBufferMDL = 00000000 [IN] [Interrupt Transfer]
14) TransferFlags = 00000000, "set report"( via a Request = 00000009,
Value=304, Index = 3) [OUT] [Class Interface] [SET REPORT]
(same as #8)
15) through some unknown pipe handle 825616c8, another "set idle"
(TransferFlags = 0000000a) is sent with a SetupPacket [OUT] [Control Transfer]
[SET IDLE]
(same as #9 and #11)
16) TransferFlags = 00000000, "set report"( via a Request = 00000009,
Value=304, Index = 3) [OUT] [Class Interface] [SET REPORT]
17) through some unknown pipe handle 825616c8, another "set idle" is sent with
a SetupPacket [OUT] [Control Transfer] [SET IDLE]
(same as #9, #11 and #15)
18) through HID endpoint (0x83), "get protocol" (TransferFlags = 00000003),
buffer 828f7af0, TransferBufferMDL=827f43e0 00000000:03 83 34 00 43 00 00 00
[IN] [Interrupt Transfer]_______________________________________________
libhid-discuss mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss