I have a 'duino that receives speed info from another 'duino via serial.
I need to detect a loss of comms, so I just send a value which has 1 added to it each time, so the receiving 'duino can tell when a 'block' of data goes missing.
I'd like to do this 'better', using serial timeout if it can be done, the 'duino that receives the values via serial will have to request the values, thats no problem.
So can I call a function on a serial timeout, and can I reset the timeout period?
I need to detect a loss of comms, so I just send a value which has 1 added to it each time, so the receiving 'duino can tell when a 'block' of data goes missing.
I'd like to do this 'better', using serial timeout if it can be done, the 'duino that receives the values via serial will have to request the values, thats no problem.
So can I call a function on a serial timeout, and can I reset the timeout period?