
Chapter 3: Programming Commands88
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)
Thiscommandspecieswhichmethodofdataparsingtouse.Automodewilltrytodeterminethebestencodingscheme
tousetoencodethedatabasedoffofthevaluesinthebuffer.Thismodemaynotencodethedataasdesired(dataintended
tobeencodedasonetypemaybeencodedasanotherduetooverlapbetweenthetwo).
Manualmodeallowsformorecontrol,asthedatacanbebrokenintoblocks(upto200)thatareeachassignedatypeusing
aleadingbyte,witheachblockseparatedbyacomma(0x2C).SeestoresymboldataforQRCodeformoredetails.
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 Recovery Capacity%
30h Selects Error correction level L 7
31h Selects Error correction level M 15
32h Selects Error correction level Q 25
33h Selects Error correction level H 30
Note:QRcodeemploysReed-Solomonerrorcorrectiontogenerateaseriesoferrorcorrectioncodewords.
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
ThiscommandstorestheQRcodesymboldata(f1...fk)inthesymbolstoragearea,whichislocatedinRAMinfont
memory(commandisignoredifnomemoryisfree).
qLandqH: 04h<(qL+qHx100h)<1BB4;0h<qL<FF;0h<qH<1B
f:0h<f<FF
k=(qL+qHx100h)–03h
Note:
• kbytesoff1…fkareprocessedassymboldata.
• whenusingmanualmode,datasizemustalsoaccountfortheleadingtypebyte,thedelimiters(0x2C),andany
headers(ifusingbinaryblocks)
• ItispossibletoencodetoaQRcodeasfollows.Besurenottoincludeanythingexceptthefollowinginthef1…
fkdata:
Categoryofdata Charactersitispossibletospecify Typebyte(Manualmode)
NumericalModedata “0”~“9” ‘N’(0x4E)
AlphanumericModedata “0”~“9”,“A”~“Z”,SP,$,%,*,+,-,.,/,: ‘A’(0x41)
KanjiModedata ShiftJISvalue(ShiftvaluefromJISX0208) ‘K’(0x4B)
8-bitByteModedata 00h~FFh ‘B’(0x42)*
*Binarydatarequirea4-byteeldfollowingthetypebytetospecifylengthofdatablock
Continued ...
Comentarios a estos manuales