usb hid

Thanks in Advance
I am using keil HID example to make a usb hid device for sending data using interrupt transfer. My device is able to send data to pc .i am able to check data that i sent to PC using device monitor studio but when i try to read data on my own made usb host application it shows timeout error . My host application is also able to send data to my device that can also be check on same software device monitor studio .but when i check in my software there is no interrupt on endpoint 1.
can anybody help me in that case

Parents
  • Really not enough information to give a good reply. Are you sending a full packet? That is if you have defined a packet as 64 bytes(the default) in your descriptor file but you are sending less than 64 bytes the HID driver in the PC waits for additional data until time out. If you send less than a full packet you must send a Zero Length Packet to tell the HID driver that the short data packet is complete. Search on ZLP in this forum and at http://www.lvr.com.
    Bradford

Reply
  • Really not enough information to give a good reply. Are you sending a full packet? That is if you have defined a packet as 64 bytes(the default) in your descriptor file but you are sending less than 64 bytes the HID driver in the PC waits for additional data until time out. If you send less than a full packet you must send a Zero Length Packet to tell the HID driver that the short data packet is complete. Search on ZLP in this forum and at http://www.lvr.com.
    Bradford

Children
More questions in this forum