CRC-16 codes on terminal commands
If CRC-16 on mode is set using the Terminal
command, all terminal commands need a CRC-16. A semi-colon is used to indicate start of the CRC-16 in 4-byte character, for example open 0;233A
. The CRC-16 is calculated either from the start of a new line or after a [STX] up to but not including the semi-colon. ETX can follow the CRC-16 if required.
To find the valid CRC-16 for a command, type the command and then type: ;????. For example, typing open 0;????
gives the response [CRLF]CRC>233A<CRC[CRLF] so 233A is the CRC-16.
The CRC-16 is not case sensitive.
Make sure the terminal software sends [CR] and not [CRLF] for the command-line termination.
The table below gives some commonly used CRC-16 codes.
Terminal command |
CRC-16 |
---|---|
open 0 | 233A |
close | D94E |
status | 7CE5 |
password | EB85 |
terminal 0 (this command will remove CRC-16 checking) |
B576 |
defaults | 7D8E |
serial | 7FCE |