Lock Permanent Font Flash Area; Flash Download - CognitiveTPG A799II Programming Manual

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

Advertisement

Note: When a specific item request is made, a returned CRC value of 0 0 indicates that no item is stored at that index.
There is a practically negligible possibility that a valid object will have a 0 0 CRC; if this is of concern, applications
should check the object downloaded byte sequence to verify that this is not the case (as well as store the CRC as an "ID"
for the object if needed later for return value comparisons).
This command returns the state of occupancy of available flash storage and user RAM. The printer response for each item
is a 4 byte header, 0x1D 0x97 nL nH (number of bytes that follow in the response) and for each item a 4 byte structure: 1
m (type) byte, 2
n index byte followed by a 2 byte CRC in Lo Hi order of the data string in that storage space.
nd
The return for m = 0–2 is the header and one 4-byte item giving remaining storage space in the CRC position in
Lo Hi order: 1D 97 4 0 m 0 fL fH, where f is the kBytes of storage remaining. Note that RAM storage space is not content
typed, while available flash is statically divided into logo, character set, and user data types. Change of the divisions is
possible via flash erasure and flash allocation commands.

Lock permanent font flash area

ASCII
GS 0xF0 0x10 n
Hexadecimal
1D F0 10 n
Decimal
29 240 16 n
Value of n:
n = 0x00
lock permanent font flash (default)
n = 0x01
unlock permanent font flash to erase or delete
This command allows or prevents the permanent font area to be erased.
Note: This only affects the 1D 40 33 commands and downloading a font to permanet font area when a font already exists
with the same ID.

Flash download

These commands are used to load firmware into the printer.
The commands are listed in numerical order according to their hexadecimal codes. Each command is described and the
hexadecimal, decimal, and ASCII codes are listed.
There are two ways to enter the download mode.
1. While the printer is running normally, send the command, "Switch to flash download mode" (1B 5B 7D) to leave
normal operation and enter the download mode.
2. If the flash if found corrupted during level 0 diagnostics the download mode is automatically entered after the printer
has reset.
The printer never goes directly from the download mode to normal printer operation. To return to normal printer operation
either the operator must turn the power off and then on to reboot or the application must send a command to cancel
download mode and reboot.
When each flash download command is received, the printer returns either ACK or NAK to the host computer when each
command is received:
• ACK (hexadecimal 06)
Sent when the printer has received a host transmission and has completed the request successfully.
• NAK (hexadecimal 15)
Sent when a request is unsuccessful.
Communicates to the printer information downloaded from applications. Data is downloaded to flash memory to query the
state of the firmware, calculate the firmware CRC and other functions.
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
131
st

Advertisement

Table of Contents
loading

Table of Contents