timing response speed of serial device

Posted by dario frongi on Stack Overflow See other posts from Stack Overflow or by dario frongi
Published on 2012-09-18T09:34:29Z Indexed on 2012/09/18 9:37 UTC
Read the original article Hit count: 124

Filed under:

I comunicate with a serial device via bluetooth. i send it pid and it responds to me with a data response. i comunicate with him with serial comunicatione one request-response. i want to measure how many response i receive in one second. i think that i have to know the moment when i do the request and the moment whene i receive the response and do the difference. The result(called delta) is the time-to response of device. in the end i have to do 1000ms/delta.

how can calculate it ?

© Stack Overflow or respective owner

Related posts about java