===================== COMMAND PACKET FORMAT ===================== AA55 CMD LEN D[0] D[1] .. D[LEN-1] FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | | | | | | | | | | | | | +- Footer | | | +----+---------+------- Data payload | | +--------------------------- Length of data payload | +------------------------------- Comannd code +------------------------------------ Header Note 1: All values (except footer) in a data packet must be in hexadecimal format. Note 2: In the following presentation of the configuration description, value with 0x prefix means the value is in hexadecimal format. Otherwise, it means the value is in decimal format. Do not add 0x in your data packet. It is only for presentation purpose. Note 3: The default comport setting is 9600, 8-bit, 1 stop bit, no parity, no hardware flow control (CTS/RTS is off) Note 4: Number of configuration commands (CFG) = 18 entries Number of exception commands (EXC) = 16 entries Number of control commands (CTL) = 5 entries (Not stored in EEPROM) Number of transaction/exception logging => 5 entries with internal eeprom 511 entries min (with external 24LC256 eeprom chip) 8191 entries max (with external 24LC1026 x 4 eeprom daughter board) Current firmware version: V3.8 Date code: LC, DEC-2013 === STV Display Offset === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x02 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 X_Off 3-60 21 (0x15) x offset ; D1 Y_Off 0-255 58 (0x3A) y offset ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 02 02 15 3A FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === STV Display Attribute === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x03 ; LEN = 4 (0x04) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Char_Brightness 0-7 7 (0x07) 0: full black, 7: full white ; D1 Background_Brightness 0-7 1 (0x01) 0: full black, 7: full white ; D2 Background_ON 0-2 1 (0x01) OFF/*char only/ON ; D3 Char_Size 0-2 0 (0x00) *small/medium/large ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 D2 D3 ;--------------------------------------------------------------------------------------------------- AA55 03 04 07 02 01 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Text Transparent Mode === (For Revsion R03 & R04 board only) ;--------------------------------------------------------------------------------------------------- ; CMD = 0x04 ; LEN = 1 (0x01) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Transparent_ON 0-1 1 (0x01) OFF/*ON ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 ;--------------------------------------------------------------------------------------------------- AA55 04 01 01 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === STV Print Text Control === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x11 ; LEN = 9 (0x08) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; 0 Num_Display_Line 1-10 10 (0x0A) number of lines ; 1 Num_Character 10-40 40 (0x28) number of characters per line ; 2 Scroll_Timer 0-255 2 (0x02) 1: 128ms ; 3 Clear_Timer 0-255 156 (0x9c) 1: 128ms (default 20 sec) ; 4 Except_Timer 0-255 19 (0x13) 1: 128ms (default 2.5 sec) ; 5 Scroll_Mode 0-1 1 (0x01) with scroll timer/*without timer ; 6 Clear_Mode 0-1 0 (0x00) *with screen clear timer/continuous ; 7 Exception_Mode 0-1 1 (0x01) with exception timer/*without timer ; 8 Line_Mode_Formatting 0-4 3 (0x03) 0: no formatting ; 1: left justified ; 2: right justified ; 3: *fit string into one line ; 4: fit string into two lines ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 D2 D3 D4 D5 D6 D7 D8 ;--------------------------------------------------------------------------------------------------- AA55 11 09 0A 28 02 9C 13 01 00 01 03 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Startup String, V3.4 only === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x12 ; LEN = 20 (0x14) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; 0-19 Startup_Str 21-char "VITEZ TOV-340" ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0-D22 ;--------------------------------------------------------------------------------------------------- AA55 12 18 "VITEZ TOV-340" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Skip number of chars at the beginning of every line, V3.4 only === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x13 ; LEN = 1 (0x01) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; 0 Skip_Num_Char 0-10 0 Number of chars to skip ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 ;--------------------------------------------------------------------------------------------------- AA55 13 01 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Transaction Exceptions === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x20 - 2F or 0x2n, where n is the index of an exception. ; LEN = 19 (0x13) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Exception_Enable 0-1 1 (0x01) disable/enable ; D1 String_Match 0-1 1 (0x01) ignore/matching ; D2 Value_Compare_Operator 0-4 0 (0x00) none/less/greater/negative/equal ; D3-D6 Price_Value 4-byte value see below price value in BCD format, xx_xx_xx.xx ; D7-D18 Sting 11-byte str see below maximum 11 chars ; ; Note: Exception 0x2F (last exception) is reserved for drawer monitoring if drawer monitoring ; is enable (see ALARM1). This exception string must match the "last" string when a ; sale transaction is tendered, e.g. "CASH". ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 D2 D3-D4-D5-D6 D7-D18 ;--------------------------------------------------------------------------------------------------- AA55 20 13 01 01 00 00 00 00 00 "Void" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 21 13 01 01 00 00 00 00 00 "NOSALE" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 22 13 01 01 00 00 00 00 00 "Refund" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 23 13 01 01 00 00 00 00 00 "COUPON" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 24 13 01 01 00 00 00 00 00 "PAID OUT" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 25 13 01 01 00 00 00 00 00 "RETURN" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 26 13 01 01 00 00 00 00 00 "CANCEL" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 27 13 01 01 00 00 00 00 00 "Non-sale" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 28 13 01 01 00 00 00 00 00 "VOID" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 29 13 00 01 00 00 00 00 00 "" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 2A 13 00 01 00 00 00 00 00 "" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 2B 13 00 01 00 00 00 00 00 "" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 2C 13 00 01 00 00 00 00 00 "" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 2D 13 00 01 00 00 00 00 00 "" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 2E 13 00 01 00 00 00 00 00 "" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX AA55 2F 13 00 01 00 00 00 00 00 "" FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Alarm Output 1-2 === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x30 ; LEN = 10 (0x0A) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; --ALARM1-- ; D0 Enable 0-1 1 (0x01) OFF/*ON ; D1 Exception_Trigger_Src 0-4 1 (0x01) none/*all/1st half/2nd half/drawer string ; D2 Input_Trigger_Src 0-4 1 (0x01) none/*all/INP1/INP2/INP1_DRAWER ; D3 Output_Level 0-1 0 (0x00) *LOW/HIGH ; D4 Output_Active_Time 0-255 8 (0x08) 1: 128ms (default 2 secs). 0xff = forever ; (switch off alarm by toggling the CLS key) ; --ALARM2-- ; D5 Enable 0-1 0 (0x01) OFF/ON ; D6 Exception_Trigger_Src 0-3 3 (0x03) none/*all/1st half/2nd half ; D7 Input_Trigger_Src 0-3 3 (0x03) none/*all/INP1/INP2 ; D8 Output_Level 0-1 0 (0x01) *LOW/HIGH ; D9 Output_Active_Time 0-255 8 (0x08) 1: 128ms (default 2 secs). 0xff = forever ; (switch off alarm by toggling the CLS key) ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 ;--------------------------------------------------------------------------------------------------- AA55 30 0A 01 01 01 00 08 00 03 03 00 08 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX == Drawer Timer== ;--------------------------------------------------------------------------------------------------- ; CMD = 0x31 ; LEN = 1 (0x01) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Drawer_timeout 0-255 30 (0x1E) 1: 1.024 sec (default 30 sec) ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 ;--------------------------------------------------------------------------------------------------- AA55 31 01 1E FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Input Trigger Level 1-2 == ;--------------------------------------------------------------------------------------------------- ; CMD = 0x40 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 INP1_Level 0-1 0 (0x00) *LOW/HIGH ; D1 INP2_Level 0-1 0 (0x00) *LOW/HIGH ; ; Note: LOW means contact closed. HIGH means contact open. ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 40 02 00 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === COM1 (ECR port) for firmware version V3.2 or higher ==== ;--------------------------------------------------------------------------------------------------- ; CMD = 0x50 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Parity | Baudrate 0-8 2 (0x02) 2K4/4K8/*9K6/14k4/19K2/28K8/38K4/57K6/115K2 ; Note1: 0x00-0x08, 8-bit data, no parity ; Note2: 0x10-0x18, 8-bit data + parity ; Note3: 0x20-0x28, 7-bit data + parity (V3.8 and above) ; Note4: parity can be even or odd ; Note5: Not supported RS232 settings ; a. 7-bit data, no parity ; b. 2 stop bits ; ; D1 Autobaud | SW_Flow 0-1 0 (0x00) D1 Autobaud SW_Flow (XON/XOFF) ; --------------------------------------- ; *0x00 No No ; 0x01 No Yes ; 0x10 Yes No ; 0x11 Yes Yes ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 50 02 02 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === COM2 (PROG port), for firmware version V3.2 or higher ==== ;--------------------------------------------------------------------------------------------------- ; CMD = 0x60 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Parity | Baudrate 0-8 2 (0x02) 2K4/4K8/*9K6/14k4/19K2/28K8/38K4/57K6/115K2 ; Note1: 0x00-0x08, 8-bit data, no parity ; Note2: 0x10-0x18, 8-bit data + parity ; Note3: parity can be even or odd ; ; D1 Software_Flow_Cntl 0-1 1 (0x01) NO/*YES, software flow control (XON/XOFF) ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 60 02 02 01 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === COM1 (ECR port), for firmware version V3.1 or lower ==== ;--------------------------------------------------------------------------------------------------- ; CMD = 0x50 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Parity | Baudrate 0-6 2 (0x02) 2K4/4K8/*9K6/19K2/28K8/38K4/57K6 ; Note1: 0x00-0x06, no parity (8-bit mode) ; Note2: 0x10-0x16, with parity (9-bit mode). ; 9-bit mode accepts both odd and even ; parity bit. ; ; D1 SW_Flow_Cntl 0-1 0 (0x00) *NO/YES, software flow control (XON/XOFF) ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 50 02 02 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === COM2 (PROG port), for firmware version V3.1 or lower ==== ;--------------------------------------------------------------------------------------------------- ; CMD = 0x60 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Parity | Baudrate 0-6 2 (0x02) 2K4/4K8/*9K6/19K2/28K8/38K4/57K6 ; Note1: 0x00-0x06, no parity (8-bit mode) ; Note2: 0x10-0x16, with parity (9-bit mode). ; 9-bit mode accepts both odd and even ; parity bit. ; ; D1 Software_Flow_Cntl 0-1 1 (0x01) NO/*YES, software flow control (XON/XOFF) ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 60 02 02 01 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Buzzer Volume === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x70 ; LEN = 1 ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Buzzer_Volume 0-96 64 (0x40) Note: 0x00 = buzzer off ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 ;--------------------------------------------------------------------------------------------------- AA55 70 01 40 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Force Carriage-return (CR) === (CR is inserted when the max number of character is reached for a line) ;--------------------------------------------------------------------------------------------------- ; CMD = 0x71 ; LEN = 1 (0x01) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 CR_Enable 0-1 0 (0x00) disable/*enable ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 ;--------------------------------------------------------------------------------------------------- AA55 71 01 01 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Alternate Currency Symbol, FW V3.7 and later === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x72 ; LEN = 1 (0x01) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; 0 currency_id 0x00-0x02 0 (0x00) *0x00 = Pound ; 0x01 = Euro ; 0x02 = Yen ;--------------------------------------------------------------------------------------------------- AA55 72 01 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Minimum Number of Characters per Line, FW V3.7 and later === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x73 ; LEN = 1 (0x01) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; 0 line_min_chars 0x00-0x0A 0 (0x00) *0x00 = don't care ; 0x01-0x0A = min chars per line ; (excluding spaces). Otherwise ; ignore the whole lines ;--------------------------------------------------------------------------------------------------- AA55 73 01 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Printer Type and Emulation === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x80 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Printer_type_emu 0-1 0 (0x00) *emulation/filter ; *0: emulation for TM-U88, SP1300 ; 1: filter for TM-U88, SPR270, UP-360 ; TM-U210A ;--------------------------------------------------------------------------------------------------- ; NOTE: Remove jumper P10 (tx pin of COM1) if external printer is connected on the same cable ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 ;--------------------------------------------------------------------------------------------------- AA55 80 01 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Exception/Transaction Logging and COM2 printing === ;--------------------------------------------------------------------------------------------------- ; CMD = 0x90 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; D0 Exception_Trans_Log 0-2 0 (0x00) *disable/enable_exception/enable_trans ; Note: disable will clear logs history ; ; D1 COM2_Print_Source 0-2 1 (0x01) 0: disable ; 1: *exception ; 2: COM1->COM2 pass thru ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 90 02 00 01 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Device ID, for V3.6 and later=== ;--------------------------------------------------------------------------------------------------- ; CMD = 0x14 ; LEN = 2 (0x02) ;--------------------------------------------------------------------------------------------------- ; Data Field Description Value Default Meaning/*Default ;--------------------------------------------------------------------------------------------------- ; 0 ID (high byte) 0x00-0xff 0x00 ; 1 ID (low byte) 0x00-0xff 0x01 ;--------------------------------------------------------------------------------------------------- ; CMD LEN D0 D1 ;--------------------------------------------------------------------------------------------------- AA55 14 02 00 01 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === OTHER COMMANDS (CTL commands. For data request or data setting not write to EEPROM) === Upload all settings : AA55 F0 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Upload exception/transaction logs : AA55 E0 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Upload and clear exception/transaction logs : AA55 E1 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /* for V3.6 and later */ *Set time : AA55 A0 06 HH MM SS DD MM YY FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX /* HH and etc in BCD format */ *Show current time : AA55 A1 00 FFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Note *: if real-time-clock is present