Send Printer Software Version; Real Time Commands - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

94
Chapter 4: Programming Commands
Flash memory user sector status (n = 4 or n = 52)
Bit Off/On Hex Decimal
0
1
2
Off
00
0
On
04
4
3
Off
00
0
On
08
8
4
Off
00
0
5
Off
00
00
On
20
32
6
Off
00
0
7
Notes
If the data transmitted from the printer after outputting this command to the printer is "0xx1xx10"(x = 0 or 1), process the
data as a normal status.
Exceptions
When n is out of the specified range, the command is ignored.

Send printer software version

ASCII
US V
Hexadecimal
1F 56
Decimal
31 86
The printer returns 8 bytes containing the loader and flash software version. The first 4 bytes returned are an ASCII string
for the loader version.
The second 4 bytes are an ASCII string for the flash version. Example: For 1.234.56 (8 bytes), the loader version is 1.23
and the flash version is 4.56.

Real time commands

The real time commands provide an application interface to the printer even when the printer is not handling other
commands (RS-232C communication interface only):
• Real time status transmission: GS (Hex 1D) sequence and DLE (Hex 10) sequence
• Real time request to printer: GS (Hex 1D) sequence and DLE (Hex 10) sequence
• Real time printer status transmission
The batch mode printer status commands are placed in the printer's data buffer as they are received and handled by the
firmware in the order in which they were received. If the paper exhausts while printing data that was in the buffer ahead
of the status command, the printer goes busy at the RS-232C interface and suspends processing the data in the buffer until
paper is reloaded. This is true for all error conditions: knife home error, thermal printhead overheat, etc. In addition, there
is no way to restart the printer after a paper jam or other error, when using batch mode status commands.
The real time commands are implemented in two ways in order to overcome the limitations of batch mode status
commands. Both implementations offer the same functionality; which one you choose depends on the current usage of
your application.
Status for transmit status
Undefined. Fixed to off.
Undefined. Fixed to off.
User data storage write successful
User data storage write failed, specified area not erased.
Flash logo area adequate, definition stored
Flash logo area not adequate
Not used. Fixed to off.
No thermal user-defined characters
written to flash.
Thermal user-defined characters written to flash.
Not used. Fixed to off.
Undefined.
A799-2PG0001B 4/2016

Advertisement

Table of Contents
loading

Table of Contents