QR Code: Transmit the size information of the symbol data in the symbol storage area

This command allows the printer to transmit the size information for the encoded QR Code symbol data in the symbol storage area.

ASCII

GS ( k pL pH cn fn m

Hexadecimal

1D 28 6B pL pH cn fn m

Decimal

29 40 107 pL pH cn fn m

Values of pL,pH

pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn, and [parameters]). (pL + pH × 256) = 3 So (pL = 3, pH = 0)

Value of cn

49

Value of fn

82

Value of m

48

Description

Hex

Decimal

Data

Header

37

55

1 byte

Identifier

36

54

1 byte

Horizontal size

30–39

48–57

1–5 bytes

Separator

1F

31

1 byte

Vertical Size

30–39

48–57

1–5 bytes

Separator

1F

31

1 byte

Fixed Value

31

49

1 byte

Separator

1F

31

1 byte

Other information

30 or 31

48 or 49

1 byte

NULL

00

0

1 byte

Note:  From the table above, Other information represents the possibility of printing the QR Code.

Other Information

0x30 - Printing is possible

0x31 - Printing is impossible

Horizontal and vertical sizes are specified as ASCII value of received byte. They can be obtained by following equations:

Horizontal size = Number of cells in Horizontal Direction × Symbol size specified by the command 1D 28 6B 03 00 31 43 n.

Vertical size = Number of cells in Vertical Direction × Symbol size specified by the command 1D 28 6B 03 00 31 43 n.

Example:  If Symbol size is specified as 10 by the command of 1D 28 6B 03 00 31 43 n and number of pixel in horizontal direction is 21, then horizontal size will be 10 * 21=210. So the output of the printer will be 37 36 32 31 30 1f 32 31 30 1f 31 1f 30 00.