Programming
0705
TTPM3 Printer/Encoder–Technical Manual
49
!S P n1 n2
21 53 20 50 20 n1
Hex
33 83 32 80 32 n1 Decimal
Parameter-setting data Enquiry
This command requests information about the setting of parameter n1. The reply is the
parameter value stored in flash PROM or any parameter value temporarily set by other
commands.
n1
Parameter number to start from, as decimal digit(s)
n2
Number of parameters to read out
The parameter names are listed on page 59.
EXAMPLE:
!S P 1 1<CR><LF>
Recalls the setting of parameter 1 (baudrate)
!S P 1 4<CR><LF>
Recalls the setting of parameter 1 to 4
!S P<CR><LF>
Recalls the setting of all parameters
!S P 0 1<CR><LF>
Parameter number 0 reflects the No. of parameters stored in the
printer. So If you send
!S P 0 1
to the printer and get a 14 as
reply you know that there are 14 parameters that you can read out.
– Parameter number 255 contains a checksum calculated as the sum of all parameters
from parameter 1 to the parameter number given by parameter 0.
!H F
21 48 20 53
Hex
33 72 32 83
decimal
Load firmware
A utility program for loading firmware is available on the Swecoin web site (The
TTP Editor). If you want to make remote upgrading of firmware possible though your
ticketing system you should implement the
!H F
command.
EXAMPLE:
!C<CR><LF>
Prepares the printer for incoming data
!H F<CR><LF>
Tells the printer that the binary to come is a firmware file
Delay 100 ms Here you should have a delay of 100 ms before sending the firmware file
to the printer port.
Binary file
Firmware file with the version you intend to upgrade to.
After burning the new firmware into the Flash PROM, the printer will make a reset.