<< Click to Display Table of Contents >>
Commands may now be sent to the drivers to affect their operation. The exact list of commands depends on the driver itself, however all drivers support altering of timeout and retries.
The driver commands are currently set in SETTINGS.INI as follows:
In the section:
[COMMS]
entries of the form:
Command1=string
are entered for each port.
The string command is made of one or more sets of key and value pairs separated by a semicolon. For example, a key of "T " and a value of " 3 " would be written as:
T=3
Where more than one pair is specified, the semicolon is used, for example:
T=3;R=2
Note: there must be no spaces in the command.
Common Commands.
T controls timeout length in 1/10 of a second. For example, T=3 would set the timeout to 300ms.
R controls the number of retries in the event of an error. For example, R=2 would instruct the driver to make two more tries to get a parameter, in addition to the original request.
Actual example:
[COMMS]
Command1=T=3;R=2
Command2=T=6;R=1
In this example, the driver on COM1: has a shorter timeout and a larger retry count than the driver on COM2: