Genovation, Inc.
41
MiniTermPro
‘s’ – 73h – Scanner/GPIO Mode (v6.00 and later)
In order to save battery power, the MiniTerm can be ordered with a scanner that
automatically shuts off once a card is read. In order to turn the scanner back on,
the scanner control signal must be turned off then on again. The unit also
supports a trigger switch for turning the scanner on and off manually. This
command sets the operating conditions of the scanner. Alternatively, the pin
controlling the scanner can be used as an output control pin for some other
purpose.
Parameter definitions:
o
0x00 – GPIO pin low. Scanner off.
o
0x01 – GPIO pin high. Not used with auto-off scanner.
o
0x02 – Scanner on via trigger switch, off via trigger switch or card scan.
o
0x03 – Scanner on via trigger switch, off via card scan.
o
0x04 – Scanner on via command from host, off via card scan.
Example: Assume the following sequence of events has occurred: the scanner is
in mode 4, the user scanned a card and the scanner has turned off. Now under
host control you want to turn the scanner back on again. You must issue
commands 0x00 and 0x04.
Scanner off:
Prefix Command Type
Param
ASCII:
@
s
^@
Dec:
64
115
0
Hex:
40h
73h
00h
Scanner on again:
Prefix Command Type
Param
ASCII:
@
s
^D
Dec:
64
115
4
Hex:
40h
73h
04h
You may also use ASCII values 0x30 (‘0’) to 0x39 (‘9’) for the parameter.