in reply to Timing issue while accessing serial port
I don't know how many bytes the response contains or how the receiver decides that it has not received a "timely reponse" - I mean if the "reponse" takes say 8 characters just to send, then how is that judged against the allowed "20 character" (20 ms) response time? You may have a lot less than 20ms to start your response.
I can't test your code, but some parts do seem rather weird... what is this usleep() stuff in a blocking loop about? Why?
I think that this $PortObj method may be being misused?
I saw a recent question about this.$gotit = $PortObj->lookfor(100); #blocking read
What other stuff is running on this Windows machine?
Numbers like 116 ms are a looonnnng time, can you explain more how you calculated that? A process running under Normal priority in a blocking loop that essentially goes to the OS, should under usual circumstances be able to easily process your requirements.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Timing issue while accessing serial port
by vrn (Initiate) on Feb 02, 2011 at 06:21 UTC |