[CLOSED] How to get HID-data working with interrupt-in?
Posted: Sun Jul 03, 2011 9:50 pm
After quite some trial and errors I was able to modify HID-data so it works for my purpose.
What I does:
It reads in serial data and stores them in a buffer.
For now, the PC has to do polling to fetch the data.
During the fetching time, all incoming serial data is lost.
Because of that I would like to switch to interrupt-in instead polling.
This way, the serial data could let the device know when there is the right time to send the data to the PC.
AFAIK there is no real "sending to PC", the PC still has to fetch it itself. But the device could send an interrupt, so the PC knows when it is a good time for fetching.
There are other project which seem to do it that way, like RemoteSensor, but I am not able to adapt it for my purpose.
If somebody could guide me how to implement HID-data to use interrupt-in, that would help me a lot.
What I does:
It reads in serial data and stores them in a buffer.
For now, the PC has to do polling to fetch the data.
During the fetching time, all incoming serial data is lost.
Because of that I would like to switch to interrupt-in instead polling.
This way, the serial data could let the device know when there is the right time to send the data to the PC.
AFAIK there is no real "sending to PC", the PC still has to fetch it itself. But the device could send an interrupt, so the PC knows when it is a good time for fetching.
There are other project which seem to do it that way, like RemoteSensor, but I am not able to adapt it for my purpose.
If somebody could guide me how to implement HID-data to use interrupt-in, that would help me a lot.