We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I am useing a AT91SAM7 microcontroller with Keil Realview compiler and USB HID. My code is based on the example code of the Atmel SAM7-EK Board.
Does anybody know what to do, when the uController has no data to send and get's a request from the host to send something. When the PC has noting to send I do not get an SAM7-uC USB interrupt for the Interrupt In Endpoint. However for the HID Interrupt Out Endpoint I get interrupts all the time. If I do not send any data when I get the interrupt the communication Device to Host doesn't work properly because if I reply a few times with some data and then stop to reply and then read the data from the host input buffer of the PC using the visual C++ V6 HID USB api it reports some error. If I send the same data all the time on a request it works. I could send some dummy data if I have nothing to send but that fills the PCs HID report input buffer and if it doesn't respond quickly enough data gets lost.
So now what to do?