Views:


Summarized by AI

🧾 Description 

 

This article provides the host mesage commands that can be sent to handheld scanners

 

 

6.3.1 Cursor Control

ESC [ n A Up n rows, no scroll
ESC [ n B Down n rows, no scroll
ESC [ n C Right n columns
ESC [ n D Left n columns
ESC [ G CR
ESC [ r ; c H Move to row r, column c
(ESC[1;1H is the upper left character position of the display)
ESC D Down 1 row, with scroll
ESC E CR and cursor down 1 row with scroll
ESC M Up 1 row and scroll

NOTES:
• Since CR is used as the message terminator, you must use ESC [ G or ESC E to print a CR.
• The cursor row position is not affected by the currently selected font. The display always has 4 rows, so when writing with the large font, actually two rows are written to: the current one and the one below it. You will need two ESC E commands to step from one row to the next when using the large font.
• The cursor column position is affected by the currently selected font. Therefore, column 6 is 36 pixels from the left border only if you last selected the 6x8 font; otherwise it could be 48 or 72 pixels from the left border.


6.3.2 Font Selection

ESC [ 0 m Normal mode
ESC [ 7 m Reverse mode
ESC # 4 Large font: subsequent characters are written on the current row and the row below it using the 12x16 font which allows for two rows of eight characters on the display.
ESC # 5 Normal font: subsequent characters are written using the 6x8 font, which allows for four rows of sixteen characters on the display.
ESC # 7 Medium font: subsequent characters are written using the 8x8 font, which allows for four rows of twelve characters on the display.


6.3.3 Clearing Display

ESC [ 0 K From cursor position to end of line inclusive
ESC [ 1 K From beginning of line to cursor position (not inclusive)
ESC [ 2 K Entire line
ESC [ 0 J From cursor position to end of display inclusive
ESC [ 1 J From beginning of display to cursor position (not inclusive)
ESC [ 2 J Entire display; moves cursor to upper left corner on display


6.3.4 LED and Beeper Control

ESC [ 0 q Emit short High tone + short delay
ESC [ 1 q Emit short Low tone + short delay
ESC [ 2 q Emit long Low tone + short delay
ESC [ 3 q Emit good read tone
ESC [ 4 q Emit bad tx tone
ESC [ 5 q Wait 100 ms
ESC [ 6 q Turn on the green LED
ESC [ 7 q Turn off the green LED
ESC [ 8 q Turn on the red LED
ESC [ 9 q Turn off the red LED
The LED control escape sequences are intended to activate the LEDs for short periods of time and can be used in combination with the Beeper. The LED and Beeper will be controlled by the system after the entire command sequence is interpreted.

Example:
ESC [ 6 q ESC [ 3 q ESC [ 7 q Turns on the green LED, emits a good read tone, and
turns off the green LED.
ESC [ 6 q ESC [ 5 q ESC [ 7 q Turns on the green LED for 100 ms and then turns off
the green LED.


6.3.5 Setting RTC

ESC [ 0 p d d m m y y Set date to day, month, year ESC [ 1 p h h m m Set time to hours, minutes; seconds are
automatically set to 00.
 

Note: Refer to product reference guide for any recent update messages strings.

Add a comment