Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands126
A776 (B780) Programming Guide A776-PG00001 C 12/09
This command returns the state of occupancy of available ash 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
st
m (type) byte, 2
nd
n index byte followed by a 2 byte CRC in Lo Hi order of the data string in that storage
space.
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 ash is statically divided into logo, character set, and user data types. Change of the divisions is
possible via ash erasure and ash
allocation commands.
If the communication protocol is RS-232C – Xon/Xo, then “X symbol substitution response” should be congured with
the setting communications parameters command (US STX , 1F 02).
Flash download
These commands are used to load rmware 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 three ways to enter the download mode.
1. Powering the printer up with DIP Switch 1 up.
2. While the printer is running normally, send the command, “Switch to ash download mode”
(1B 5B 7D) to leave normal operation and enter the download mode.
3. If the ash 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 o and then on to reboot or the application must send a command
to cancel download mode and reboot. DIP switch 1 must in UP position during reboot to return to normal printer
operation.
When each ash 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 ash memory to query
the state of the rmware, calculate the rmware CRC and other functions.
Switch to ash download mode
ASCII ESC [ }
Hexadecimal 1B 5B 7D
Decimal 27 91 125
Puts the printer in ash download mode in preparation to receive commands controlling the downloading of objects into
ash memory. When this command is received, the printer leaves normal operation and can no longer print transactions
until the reboot the printer command (1D FF) is received or the printer is rebooted.
This command does not aect the current communication parameters. Once the printer is in ash download mode, this
command is no longer available.
Related information
See entering ash download mode elsewhere in this book to put the printer in ash download mode using the
conguration menu.