Set Data Parsing Mode For Qr Code; Select Error Correction Level For Qr Code; Store Symbol Data For Qr Code - CognitiveTPG A799II Programming Manual

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

Advertisement

Set data parsing mode for QR Code

ASCII
GS ( k ETX NUL 1 D m
Hexadecimal
1D 28 6B 03 00 31 44 m
Decimal
29 40 107 3 49 68 m
Value of m:
30h = Manual Mode
31h = Auto Mode (default)
This command specifies which method of data parsing to use. Auto mode will try to determine the best encoding scheme to
use to encode the data based off of the values in the buffer. This mode may not encode the data as desired (data intended to
be encoded as one type may be encoded as another due to overlap between the two).
Manual mode allows for more control, as the data can be broken into blocks (up to 200) that are each assigned a type using a
leading byte, with each block separated by a comma (0x2C). See store symbol data for QR Code for more details.

Select error correction level for QR Code

ASCII
GS ( k ETX NUL 1 E n
Hexadecimal
1D 28 6B 03 00 31 45 n
Decimal
29 40 107 03 00 49 69 n
Value of n:
Function
30h
Selects Error correction level L
31h
Selects Error correction level M
32h
Selects Error correction level Q
33h
Selects Error correction level H
Note: QR code employs Reed-Solomon error correction to generate a series of error correction code words.

Store symbol data for QR Code

ASCII
GS ( k qL qH 1 P 0 f1 . . . fk
Hexadecimal
1D 28 6B qL qH 31 50 30 f1....fk
Decimal
29 40 107 qL qH 49 80 48 f1 . . . fk
This command stores the QR code symbol data (f1... fk) in the symbol storage area, which is located in RAM in font memory
(command is ignored if no memory is free).
qL and qH:
04h < (qL+ qH x 100h) < 1BB4; 0h < qL < FF; 0h < qH < 1B
f: 0h < f < FF
k = (qL + qH x 100h) – 03h
Note:
k bytes of f1...fk are processed as symbol data.
when using manual mode, data size must also account for the leading type byte, the delimiters (0x2C), and any
headers (if using binary blocks)
It is possible to encode to a QR code as follows. Be sure not to include anything except the following in the f1...fk
data:
Category of data
Numerical Mode data
Alphanumeric Mode data
Kanji Mode data
8-bit Byte Mode data
*Binary data require a 4-byte field following the type byte to specify length of data block
Continued ...
Characters it is possible to specify
"0" ~ "9"
"0"~"9", "A"~ "Z", SP, $, %, *, +, -, ., /, :
Shift JIS value (Shift value from JISX0208)
00h ~ FFh
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
Recovery Capacity%
7
15
25
30
Type byte (Manual mode)
'N' (0x4E)
'A' (0x41)
'K' (0x4B)
'B' (0x42)*
107

Advertisement

Table of Contents
loading

Table of Contents