M-S Cash Drawer A794 User Manual

Page 141

Advertising
background image

Chapter 6: Programming Information

A794 Owner’s Guide

December 1999

136

Return Boot Sector Firmware Part Number

ASCII

GS NULL

Hexadecimal

1D 00

Decimal

29 0

Returns ACK (Hex 06) + 12 bytes ASCII string describing the Flash Memory Boot sector
Firmware part number. Ex : 189-1234567A

Exceptions

Available only in Download Mode.

Return Segment Number Status of Flash Memory

ASCII

GS SOH

Hexadecimal

1D 01

Decimal

29 1

Returns the size of the Flash used. There may be 4, 8, or 16 sectors (64K each) in Flash
Memory. This command assures that the firmware to be downloaded is the appropriate
size for Flash Memory. The value returned is the maximum sector number that can be
accepted by the Select Sector to Download (1D 02 nn) command.

Exceptions

Available only in Download Mode.

Select Flash Memory Sector to Download

ASCII

GS STX nn

Hexadecimal

1D 02 nn

Decimal

29 2 nn

Value of n:

the Flash sector to which the next download operation applies

Range of n:

0

Selects the Flash sector (nn) for which the next download operation applies. The values
of the possible sector are restricted, depending upon the Flash part type. The printer
transmits an ACK if the sector number is acceptable or an NAK if the sector number is
not acceptable. Sector numbers start at 0.

Exceptions

Available only in Download Mode.

Get Firmware CRC

ASCII

GS ACK

Hexadecimal

1D 06

Decimal

29 6

Causes the printer to calculate the CRC for the currently selected sector and transmits
the result. This is performed normally after downloading a sector to verify that the
downloaded firmware is correct. The printer also calculates the CRC for each sector
during power up and halts the program if any sector is erroneous.

The printer transmits ACK if the calculated CRC is correct for the selected sector; NAK
if the CRC is incorrect or if no sector is selected.

Advertising