
TReX User Manual v2.14 Firmware
*CUST_FIELD=5:12,0,””,,MSG<CR>
To make more robust, further checks on the input can be made in this case to look for ‘-’
characters (at index 9 and 11):
•
Set match field 6, start at index 9 for a length of 1 character. If the “-” string is not
matched, the entire message will be considered invalid and discarded.
*CUST_FIELD=6:9,1,”-”,,MATCH<CR>
•
Set match field 7, start at index 11 for a length of 1 character. If the “-” string is not
matched, the entire message will be considered invalid and discarded.
*CUST_FIELD=7:11,1,”-”,,MATCH<CR>
•
Say how many fields are in use. UNUSED ignores all following fields.
Note that field 9 and 10 in this example do not need to be set to UNUSED, but only done here
to reduce confusion.
*CUST_FIELD=8:0,0,””,,UNUSED<CR>
*CUST_FIELD=9:0,0,””,,UNUSED<CR>
*CUST_FIELD=10:0,0,””,,UNUSED<CR>
Full Example of Minimum Configuration:
If default fields are configured (setting cap code, level etc.), then for the same input of:
ET1234567-1-TEST<CR>
The very least configuration required to transmit is (ignoring all parameters except the message
payload to transmit):
•
Set match field 1, start index 12. Length is 0 so the MSG is parsed until the first non
printable character is seen. This field is parsed into the MSG field that is transmitted.
*CUST_FIELD=1:12,0,””,,MSG<CR>
*CUST_FIELD=2:0,0,””,,UNUSED<CR>
© WTE Limited, 2018 – Christchurch New Zealand
Page 94 of 158