Appendix C ~ Serial Commands | 21 |
Appendix C: Serial Commands
The GT1524 accepts serial commands through the serial port. The commands in this manual pertain only to the GT1524.
Conventions
The following typographic conventions are used in this document to describe the different serial commands. Use the Command structure section and the examples as a guide when creating your serial commands.
Convention Description
<X> | Parameters enclosed in < > indicate a mandatory parameter. |
[X]Parameters enclosed in [ ] indicate an optional parameter.
Parameters separated by a - indicate a range between the values. | |
4,7,9 | Parameters separated by a , indicate a list of available values. |
MREF | Words in uppercase bold indicate command text. |
Command structure
Commands can be either UPPERCASE or lowercase. Also, extra spaces or tabs between arguments in text commands are allowed. Return values are always in uppercase. In order for a command to be recognized by the serial port, the command must be terminated by a carriage return.
The structure of serial commands is as follows: COMMAND [X] [X]
COMMAND is the command text
[X] [X] represents any additional options in the order that they appear in the command descriptions that follow
Error codes
Error 1 (Future)
Error 2 Could not extract a command from the string received
Error 3 Serial overrun
Error 4 Reserved
Error 5 Invalid parameter
Error 6 Unrecognized command