Features
2 lines, 16 LCD English characters per line display
+5V power supply
Standard RS232C interface, baud rate: 9,600, n, 8, 1.
Black shell
Input with a decimal point(F3 to the decimal point, marking change)
Communications interface
1. Communication protocol RS232C
2.USB power supply
Command
1. Keyboard operating mode:
1.1: no encryption works are sent using a single method
that is, each time you press a key on the keypad, and immediately sent to the host,
Keypad does not exist in the buffer or wait for the host sending the command to enter, the Enter key ends input.
1.2: keyboard opens automatically after power-on.
Available control command switch keyboards.
1.3 keyboard LCD backlight open after power-on, never closes.
1.4 keyboard press the LCD display, controlled by the host computer.
Keyboard commands
2.1:0x80 liquid crystal display "WELCOME"
2.2:0x81 liquid crystal display "TRY AGAIN"
2.3:0x82 liquid crystal display "ENTER PASSWORD",
2.4:0x83 liquid crystal display "WELCOME",
2.5:0x89 asks for the host command,for the host asked whether there was a small keyboard, when the pad receives this command, the answer ' OK enter ',
that is,;0x4f,0x4b,0x0d.
2.6:0x8A open password keyboard, press enter (power-on default).
2.7:0x8B turn off password keyboard key nothing happens.
LCD password
3.1 clear LCD display commands
Clear LCD displays first lines:
Format ESC c 0
HEX: 1b 43 30
Clear LCD display second line:
Format: ESC c 1
HEX: 1B 43 31
Display commands
3.2.1: in the first line of the LCD display:
Format: ESC s-0 BYTE[0..15]
HEX: 1B 53 30 BYTE[0..15]
3.2.2: in the second line of the LCD display (with no input prompts Flash):
Format: ESC s 1 BYTE[0..15]
HEX: 1B 53 31 BYTE[0..15]
3.2.3: in the second line of the LCD display (with input prompts Flash):
Format: ESC s 2 BYTE[0..15]BYTE2
HEX: 1B 53 32 BYTE[0..15] BYTE2
BYTE2: enter the location of the prompt
(BYTE2=5 in the LCD of the 5th for the input prompt, Flash)
for example, to display 123.67 the transfer digital is the first line:
HEX: 1B 53 30 20 20 20 20 20 20 20 20 20 20 31 32 33 2E 36 37
Tip: to display the data length is 16 bytes, less than 16 bytes with spaces added.
Note: the LCD is two lines of 16 characters LCD.
Display string cannot be longer than 16 characters.
Key value comparison table
key |
Standard ASCII code |
key |
Standard ASCII code |
0 |
0x30 |
8 |
0x38 |
1 |
0x31 |
9 |
0x39 |
2 |
0x32 |
enter |
0x0d |
3 |
0x33 |
clear |
0x08 |
4 |
0x34 |
F1 |
0x41 |
5 |
0x35 |
F2 |
0x42 |
6 |
0x36 |
F3 |
0x2E |
7 |
0x36 |
|
|