USB HID command
Posted: Wed Jan 30, 2013 2:29 pm
Hi, i been messing with the HID on usb and i tryed lot of way to switch the device (mouse or keyboard) to report protocol or to simply set the idle to something else than 0 butit always fail... the device stop responding
by alot of way i mean various config of the packet.
what i do is to send on the config pipe the fallowing command:
Set_Idle: dw 0x0a21,0x0200,0x0001, 0x0000
i tryed to switch the data, changed them to diferent value used 00 instead of 21(the usb hid pdf suggest 0x21 but some source i found use 00)
i am wondering if any of you could give me some hint on the way it should be done. currently mouse and kb work in boot protocol but it's not very accurate (click or key doesnt always get reported or are reported only on raise wich make the report containing 0 instead of the key value)
note that bochs will always report a result on poll when my test pc awnser with a nack if there is no change
thx
by alot of way i mean various config of the packet.
what i do is to send on the config pipe the fallowing command:
Set_Idle: dw 0x0a21,0x0200,0x0001, 0x0000
i tryed to switch the data, changed them to diferent value used 00 instead of 21(the usb hid pdf suggest 0x21 but some source i found use 00)
i am wondering if any of you could give me some hint on the way it should be done. currently mouse and kb work in boot protocol but it's not very accurate (click or key doesnt always get reported or are reported only on raise wich make the report containing 0 instead of the key value)
note that bochs will always report a result on poll when my test pc awnser with a nack if there is no change
thx