is low latency communication possible?
Posted: Sun Jan 25, 2009 12:43 pm
Hello everybody,
I'm trying to find out a way to make a low latency read-compute-write solution over usb.
.. i mean.. i'd like to be able to read some sensors (low amount of data..4-16 bytes) from an usb device, then do some (quick) computation on the computer side, and then send some result back to the usb device (also low amount of data)... what's important is that the time between sensor read and getting the reply in the usb device is as short as possible.
which should be the fastest method ? using an interrupt-in interrupt-out pair ? or maybe tricking the control endpoint to carry some little data?
which would be the lowest latency possible? (i'd need something like 1ms or less in an ideal world)
does HID or PID devices offer a lower latency in any way ?
thanks,
mihai
I'm trying to find out a way to make a low latency read-compute-write solution over usb.
.. i mean.. i'd like to be able to read some sensors (low amount of data..4-16 bytes) from an usb device, then do some (quick) computation on the computer side, and then send some result back to the usb device (also low amount of data)... what's important is that the time between sensor read and getting the reply in the usb device is as short as possible.
which should be the fastest method ? using an interrupt-in interrupt-out pair ? or maybe tricking the control endpoint to carry some little data?
which would be the lowest latency possible? (i'd need something like 1ms or less in an ideal world)
does HID or PID devices offer a lower latency in any way ?
thanks,
mihai