<termtable> is defined as:
typedef struct {
char id[8];
// terminal ID
= fixed 8 characters
string
char online;
// ‘R’ /’ L’
= remote / local
char echo;
// ‘N’ /’ F’ =echo on / echo off
char autolf;
// ‘N’ / ‘F’ =autoLF / no autoLF
char mode;
// ‘C’ /’ B’ =character / block mode
char linepage;
// ‘L’ /’ P’ / ‘B’ = block defined as
line / page / both
char lineterm;
// line mode terminator character
char pageterm;
// page mode terminator character
} termtable;
The new terminal control table takes effect immediately after the command has
been successfully received.
20.
Device Configuration ( ESC V )
Format:
?
STX ESC ‘V’ <devtable> CS1 CS2 ADDR
?
STX ESC ‘V’ <retcode> CS1 CS2 ETX
;<retcode>=00H success
; 01H error
Description: The command sets configuration of PT600 device control table.
<devtable> is defined as:
typedef struct {
char scanner_type;
// ‘P’ /‘A’/‘D’ = Pen/Auto/Disable
char lcd_backlit; // ‘N’ / ‘F’ = LCD backlight ON /OFF
char buzzer;
// ‘N’ /‘F’ = Buzzer ON /OFF
char reserved;
char beepvol;
// ‘0’ /‘5’ /‘9’
= Vol.
Low/Medium/High
char serial_port; // ‘N’ /‘F’ = RS232 port Enable/Disable
char auto_off;
// ‘0’ = disable auto-off
// ‘1’ ~ ‘9’ auto-off timer (1~9
minutes)
char reserved;
} devtable;
The new device control table takes effect immediately after the command has
been successfully received.
Содержание PT600
Страница 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Страница 7: ......
Страница 16: ......
Страница 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Страница 57: ......
Страница 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...