Select Error Correction Level For Qr Code; Store Symbol Data For Qr Code - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

80
Chapter 4: Programming Commands

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.
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.
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
Characters it is possible to specify
"0" ~ "9"
"0"~"9", "A"~ "Z", SP, $, %, *, +, -, ., /, :
Shift JIS value (Shift value from JISX0208)
00h ~ FFh
A798-PG00001D
Recovery Capacity%
7
15
25
30
Revision D 10/13

Advertisement

Table of Contents
loading

Table of Contents