I am mostly finished with the device file for the Riden RD6006. Intermittently I am still getting Rx Timeout at the default baud rate of 115200 (see below). Do you have any suggestions that would help this issue, see attached device file for the current settings
I have uploaded a new .jar file with a answer timeout, this timeout is from the end of transmission until it receives the first byte of the answer. If nothing is received within the timeout it will retransmit the request.
The setting is:
#answerTimeout 20
The value 20 is probably a good value, you will have to check the log, and you have to that at both 115200 and 9600 baud. What you must look for is duplicate "Tx: xx xx xx xx" (i.e. when the same Tx is repeated without any Rx in between). If they occur regulary your timeout is too short.
The main 1 second message timeout is still active (#readingDelay) and if the communication time is above that the message will fail. That timeout applies to the "values?" command.
When working with timeouts it may be a good idea to change a line in the TextControllerDebug.bat file to:
java -jar TestController.jar debugTime %1 %2 %3 %4 %5 %6 %7 %8 %9
The you will get time stamps on each debug line and can see exactly how fast things are running.