Epson TM-H6000IV-DT ePOS-Device XML Users Manual

Epson TM-H6000IV-DT Manual

Epson TM-H6000IV-DT manual content summary:

  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 1
    ePOS-Device XML User's Manual Overview Describes the features and development environment. Building Environment Describes environment building for ePOS-Device Service I/F. Programming Guide Describes how to write programs in Web application development. ePOS-Device XML Describes the ePOS-Device XML.
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 2
    with Seiko Epson Corporation's operating and maintenance instructions. • Seiko Epson Corporation shall not be liable against any damages or problems arising systems. The system is compatible with all types of EPSON POS printers (excluding the TM-C100) and displays. Moreover, its flexibility makes
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 3
    For Safety Key to Symbols The symbols in this manual are identified by their level of importance, as defined extremely high reliability/safety such as aerospace equipment, main communication equipment, nuclear power control equipment, or medical equipment related to direct medical care etc, please
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 4
    . The TM-Intelligent series in this manual is a generic term for the TM-DT series and TM-i series. The TM-DT series is a generic term for the following printers.  TM-T88V-DT  TM-T70II-DT  TM-H6000IV-DT The TM-i series is a generic term for the following printers.  TM-T88V-i (TM-i firmware
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 5
    16 TM-Intelligent ...16 TM Printer ...17 Customer Display...17 Peripheral Device ...18 ■ Contents in the Package 19 Manual...19 Sample Program ...19 Download ...19 ■ Restrictions ...20 Building Environment 21 ■ Updating the ePOS-Device 21 TM-DT Series ...21 TM-i Series...22 ■ Workflow ...23 TM-DT
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 6
    Guide 33 ■ Programming Flow ...33 If Reconnecting to the TM-Intelligent when the Network was Cut Off 34 Programming flow for the Communication Box 35 ■ Service ■ Message Data for Printers 70 print ...70 onxmlresult ...70 ■ Message Data for Hybrid Printers 71 lock
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 7
    micreject ...76 micrcleaning ...76 onreceive ...77 ■ Printer Control XML ...79 ...79 ...81 ...84 Customer Display Control XML 124 ...124 ...125 ...126 ...128 ...129 ...130 <
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 8
    147 onDeviceData event (Input Device That Can Run with a HID Driver 147 onDeviceData event (Serial Communication Device 147 Any event ...148 Sample ...150 Flow of environment construction for TM-DT Series 151 Flow of environment construction for TM-i Series 153 Installing Java SE Development
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 9
    Printer specifications...187 TM-H6000IV-DT/ TM-H6000IV ...187 TM-T70II-DT/ TM-T70II ...189 TM-T88V-DT/ TM-T88V-i/ TM-T88V...191 TM-T20II-i...193 TM-T70-i/ TM-T70 ...195 TM-T82II-i/ TM-T82II ...197 TM-L90 ...199 TM-P60II ...201 TM-P60II with Peeler ...203 TM-P80...205 TM-T20 ...207 TM-T20II...209 TM
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 10
    10
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 11
    TM-DT Socket I/F ePOS-Device Service I/F Request Response /Event Device Control Script Local Printer Serial Communication Device Customer Display Key Input Device Network Printer devices (including this product's printer) connected to TM-Intelligent using XML. Application in devices
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 12
    sent and received between web applications. For details, refer to How to Use the Communication Box(p.13). ❏ You can shut down the TM-DT from the application. * (message data for device hub terminal) * TM-DT series is supported only. System Configuration Example System with Application Installed in
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 13
    Chapter 1 Overview How to Use the Communication Box The Communication Box is a virtual data space that is provided by the ePOS-Device Service I/F for sending and receiving data between applications. It is provided in ePOS-Device Ver. 2.5 and later. The ePOS-Device is providing a virtual space and
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 14
    Example of data processing using the Communication Box App1 App2 1 The TM-Intelligent receives the barcode data scanned by the scanner. 2 The ePOS-Device Service I/F notifies App2 of the barcode data. 3 App2 acquires the barcode data and converts it to POS data. 4 App2 sends the display data to the
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 15
    Structure of the Communication Box Chapter 1 Overview App1 -App1 -App2 -App1 -App2 1 App2 The ePOS-Device Service I/F manages Communication Boxes with Box IDs (BoxID in the figure above). Data can be sent and received between applications belonging to the
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 16
    / Android / Windows / Linux / MacOS Application Terminal Devices that allow socket communication as connected to a network (Example: Smartphones, tablet computers, personal computers) TM-Intelligent TM-DT Series ❏ TM-T88V-DT ❏ TM-T70II-DT ❏ TM-H6000IV-DT TM-i Series ❏ TM-T88V-i (TM-i firmware Ver
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 17
    TM Printer Besides a TM-Intelligent printer, the TM printers below can be controlled. TM Printer TM-T20II-i TM-T70-i (TM-i firmware Ver.4.0 or later) TM-T82II-i TM-T88V-i (TM-i firmware Ver.4.0 or later) TM-H6000IV TM-L90 TM-P60II TM-P60II Peeler TM-P80 TM-T20 TM-T20II TM-T70 TM-T70II TM-T82II TM-
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 18
    level equivalent to serial communication devices * TM-DT Series ✔ TM-i Series - * Will require separate installation of a serial-USB conversion driver.  Serial-USB conversion drivers with certain specifications may not be usable. With the TM-DT Series, a peripheral device can be used
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 19
    Manual (This Document) ❏ TM-T88V-DT Technical Reference Guide ❏ TM-T70II-DT Technical Reference Guide ❏ TM-H6000IV-DT Technical Reference Guide ❏ TM-T88V-i (TM-i Firmware Ver.4.0 or later) Technical Reference Guide ❏ TM-T70-i (TM-i Firmware Ver.4.0 or later) Technical Reference Guide 1 ❏ TM
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 20
    keyboard are restricted. For the key codes that can be obtained, refer to List of KeyCode(p.185). ❏ Device control script files cannot be registered in a TM-i Series printer. ❏ Serial communication devices cannot be used with a TM-i Series printer with the specification of "without Serial port". 20
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 21
    -Device functions. TM-DT Series Confirming the ePOS-Device version You can confirm the version of the ePOS-Device on the EPSON TMNet WebConfig title Epson website and save it in your local environment. • File name: ePOS-Device System Update Package For more information about the update method, refer
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 22
    support ePOS-Device. Confirming the TM-i Firmware version and the ePOS-Device version There are the following two ways of checking the TM-i Firmware version. ❏ Checking [Firmware] and [ePOS-Device] in the status sheet Firmware X.XX ePOS-Device X.XX Model ❏ Checking via EPSON
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 23
    the Windows network settings with TM-DT  Installing TMNet WinConfig in an external device (Windows computer) to be used for configuration 2. Connection of Device to TM-DT 2 Connect a device to TM-DT. For the devices that can be connected, refer to Operating Environment (p.16). (Though TM-DT has
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 24
    to Operating Environment (p.16). 2. Network Settings Configure the system and TM-i network settings. These settings can be made via the following. For details, refer to the Technical Reference Guide of each TM-i.  EPSON TMNet WebConfig  EpsonNet Config  Easy Kitting 3."Registration of Device" on
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 25
    sure that the TM-DT's power is turned on. 3 Start EPSON TMNet WebConfig from TM-DT]/webconfig/ • Check the IP address of TM-DT with the status sheet. For checking method of the status sheet, refer to Technical Reference Guide of each TM-DT. • If the Windows Security screen appears while using EPSON
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 26
    4 TMNet WebConfig starts. Click [Web Service Settings] - [Add/delete]. 5 The "Control Script" screen appears. Click [Browse] under [Control Script to be registered] and select the device control script to be registered. 6
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 27
    the Web browser. http://[IP address of TM-DT]/webconfig/ • Check the IP address of TM-DT with the status sheet. For checking method of the status sheet, refer to Technical Reference Guide of each TM-DT. • If the Windows Security screen appears while using EPSON TMNet WebConfig, enter your user name
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 28
    3 EPSON TMNet WebConfig starts. From [Web Service Settings] - [Device registration], click an applicable item according to the device type to be registered. Item Printer Customer Display Key input device Serial communication device Other Description Used to set a TM printer to be controlled by TM
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 29
    Chapter 2 Building Environment ❏ Key Input Device Register the connected key input device in the following procedure: 1. Set the following items and click [Add]. Item Device ID Device name Control Script Description Enter the device ID (any character string). Select the device name of the key
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 30
    the network computer's web browser: http://[IP address of TM-i]/webconfig/ • Check the IP address of TM-i with the status sheet. For checking method of the status sheet, refer to Technical Reference Guide of each TM-i.  When accessing EPSON TMNet WebConfig, you are promoted to enter user name and
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 31
    each device appears. Register the connected device into TM-i. ❏ Printer  Confirm that the local printer is registered using the following procedure: 1. Confirm that "TM-i" is registered for the device ID "local_printer" in [Registered printers]. 2. Click [Test printing]. Check that printing can be
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 32
    ❏ Serial Communication Device The device ID of the customer display is fixed to "local_display". Register the connected serial communication device in the following procedure: 1. Select [Use]. 2. Set the following items for the connected serial communication device and click [Add]. Item
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 33
    Chapter 3 Programming Guide Programming Guide This chapter describes how to write programs in 7 : Execution result 8: close_device message Cut connection ePOS-Device Service I/F and Socket I/F communication 9.1 : Response() 10 : disconnect message() Disconnection of TCP/IP connection 8.1 : Cmd
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 34
    Network was Cut Off If network communication with the TM-Intelligent is cut off, the client application will reconnect 2 : connect message(client_id=0001) Establish a communication path to ePOS-Device Service I/F 3 : open_device message(buffer=true) Response(data_id=1) 4.1 : device_data message
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 35
    Chapter 3 Programming Guide Programming flow for the Communication Box The following indicates the basic from the native application 2 : connect message() Establishes communication path with ePOS-Device Service I/F 3 : open_commbox message 1 : Establishment of TCP/IP connection() TCP connection
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 36
    Application A ePOS-Device Application B 5 : close_commbox message 5.1 : Deletes Application A from members [2/2] 5.3 : Response() 5 : close_commbox message 5.1 : Deletes Application B from members 5.2 : Ends the Communication Box 6 : disconnect message() Disconnection of TCP/IP connection
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 37
    Chapter 3 Programming Guide If automatically reconnecting the network If network communication with the TM-Intelligent was reconnected, the : connect message(client_id=0001) Establishes communication path with ePOS-Device Service I/F 3 : open_commbox message() 1 : Establishment of TCP/IP
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 38
    Service Interface Specifications To enable control using ePOS-Device XML, use the following interface: Transport layer TCP Port No. 8009 Format The format and description of
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 39
    Chapter 3 Programming Guide Communication Data Example Examples of communication data between the application and ePOS-Device are as shown below, where the NULL character is indicated as "\0". Applications
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 40
    Applications sock3514555410 sock3514555411 3 keyboard01 "\0" ePOS-Device keyboard01 <
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 41
    Applications sock3514555411 Chapter 3 Programming Guide ePOS-Device Description Disconnection of connection 3 41
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 42
    Communication Box Message Example Application A  Opens the Communication Box 1 box1 member1 "\0" ePOS-Device 1 box1 OK
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 43
    Chapter 3 Programming Guide Application A ePOS-Device 2 onreceive box1 member1 send_message 2 "\0" <
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 44
    Application A  Closes the Communication Box 3 box1 "\0" ePOS-Device 3 box1 OK 3 "\0" <
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 45
    This is an XML for request messages from the application to the TM-Intelligent and response messages from the TM-Intelligent to the application. ❏ Message Data for Communication Box (p. 46) ePOS-Device Service I/F Cut off communication route with 51 ePOS-Device Service I/F
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 46
    used with each TM intelligent printer are as in the table below. * Serial devices cannot be used with a TM-i Series printer with the specification of "without a Serial port". Device type Value for element Description TM-DT Series TM-i
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 47
    with a TM-i Series printer with the specification of "without a Serial port". Device type Value for element Description TM-DT Series TM-i Series data and setting data to ✔ slip printers - 74  endorsecancel Cancels the paper insert wait ✔ status during endorse printing
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 48
    * Serial devices cannot be used with a TM-i Series printer with the specification of "without a Serial port". Device type Value for element Description TM-DT Series TM-i Series Page onkeypress  Input character strings from ✔ ✔ 134 the POS keyboard setprefix
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 49
    Sub-element Data type data string Description Connection information For details, refer to the data below. (Returned only when the connection is Description ID of the connected client Version of the connected TM-Intelligent ❏ Example 4 1234567890
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 50
    network communication with the TM-Intelligent. Request Requests confirmation of reconnection to the TM-Intelligent. Sub-element Data Data type code string Description Confirmation result for reconnection. For details, refer to the code below. ❏ code Element value "OK" "CLIENT_NOT_FOUND"
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 51
    XML Closes the TCP connection with the TM-Intelligent. Request Requests that the TM-Intelligent close the connection. Sub-element Data type data string Description Client information to close the connection. For details, refer to the data below. ❏ data Sub-element client_id
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 52
    TM-Intelligent. The information is set with EPSON TMNet WebConfig. Request Requests the administrator information from the TM-Intelligent. information For details, refer to the code below. Administrator information Only returned if successfully acquired. For details, refer to the data below.
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 53
    ❏ Example Normal OK Administrator A Counter1&Counter2 Error "PARAM_ERROR" Chapter 4 ePOS-Device XML 4 53
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 54
    Box. Sub-element sequence data Data type string string Description Sequence number Information of the Communication Box to open. For details, refer to the data below. ❏ data Sub-element box_id member_id Data type string string ❏ Example Description Identifier of the Communication Box to
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 55
    string string data_id string Description The sequence number designated with the request. Information of the Communication Box open result. For details, refer to the data below. ID for identifying the sent data. ❏ data Sub-element box_id code Data type string string Description Identifier
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 56
    type string string data_id string Description The sequence number designated with the request. Information of the Communication Box close result. For details, refer to the data below. ID for identifying the sent data. ❏ data Sub-element box_id code Data type string string  code Element value
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 57
    number The data used for communication between applications using the Communication Box. Contents are defined for each communication purpose. For details, refer to Message Data for Communication Box (p.46). Response Returns the communication result of the Communication Box and notification of data
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 58
    device ID designated with EPSON TMNet WebConfig. The customer display is "local_display". For details, refer to the data below. ❏ data Sub-element Data type type string buffer string Description Specifies the device category name.  "type_dt": Device hub terminal (TM-DT) (in ePOS-Device
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 59
    . Sub-element device_id code Data type string string data_id int Description The device ID designated with the request. The processing result. For details, refer to the code below. If "true" is designated for of the message, the sent data ID is set. If "false" is
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 60
    Closes the opened device. Request Designates the device to close. Sub-element Data type device_id string Description The device ID designated with EPSON TMNet WebConfig. The customer display is "local_display". ❏ Example local_display 60
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 61
    . Sub-element device_id code Data type string string data_id int Description The device ID designated with the request. The processing result. For details, refer to the code below. If "true" is designated for of the message, the sent data ID is set. If "false" is
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 62
    string data_id int Description Fixed as 0 Device ID where the data occurred Data that occurred. Contents are defined for each device type. For details, refer to Message Data for Each Device (p.46). If "true" is designated for of the message, the sent data ID is set. If
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 63
    if an error is in the device control message. Displays the error that occurred using a code. For details, refer to the following. The details of errors based on the driver are designated when a "DRIVER_ERROR" occurs. If "true" is designated for of the message, the sent data
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 64
    transfer history of the Communication Box to the ePOS-Device Service I/F. Sub-element Data type box_id string Description Identifier of whose transfer history was acquired Result of the sent data. For details, refer to the code below. Acquired transfer history. Notifies the same
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 65
    member1 4 send_message2 member1 send_message 10 65
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 66
    string count string Description Identifier of the Communication Box that forwarded the message Forward result of the message. For details, refer to the code below. The number of clients that attempted to forward a message. ❏ code Element value "OK" "NOT_OPENED" "MEMBER_NOT_FOUND" "SYSTEM_ERROR
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 67
    Chapter 4 ePOS-Device XML onreceive Acquires the data forwarded to the Communication Box. Response Returns the message transfer result. Sub-element box_id Data type string sender_id receiver_id string string message string Description Identifier of the Communication Box that
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 68
    . • If sending this message data, use EPSON TMNet WebConfig to perform shutdown settings for the TM-DT.  ([Settings]-[System settings]-[Shutdown settings]-[ePOS-Device]) shutdown Request Shuts down the power source of the device hub terminal (TM-DT). Sub-element Data type password
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 69
    Chapter 4 ePOS-Device XML Message Data for the Barcode Scanner ondata Response Returns the scan data from the barcode scanner to the application. Sub-element Data type input string Description Scan data string received. Character strings in received data Escape processing is
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 70
    . 1,000 to 60,000 (whole numbers) Designates the data to print. For details, refer to Printer Control XML (p.79). ❏ Example print 10000
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 71
    Message Data for Hybrid Printers • Cannot be used with TM-i Series. • Available with ePOS-Device Ver.2.5 or later. Chapter 4 ePOS unlock, the next port cannot be locked for about five minutes until the ePOS-Device Service I/F unlocks the port.  The onreceive (p.77) message returns '
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 72
    (whole numbers) Designates the data to print. For details, refer to Printer Control XML (p.79). ❏ Example local_printer
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 73
    timeout int printdata string Description Specifies the timeout time (ms) for the paper insert wait status. 60,000 to 900,000 (whole numbers) Designates the data to print. For details, refer to Printer Control XML (p.79). ❏ Example local_printer
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 74
    to the 40cplmode below. Specifies the timeout time (ms) for the paper insert wait status. 60,000 to 900,000 (whole numbers) Designates the data to print. For details, refer to Printer Control XML (p.79). ❏ 40cplmode true false Element value ❏ Example Description Enables the 40cpl mode. Disables
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 75
    the operation to perform when unreadable characters are detected. For details, refer to the ignoreerror below. Specifies the MICR font to read. For details, refer to the font below. Specifies the timeout time (ms) for the paper insert wait status. 60,000 to 900,000 (whole numbers) ❏ ignoreerror
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 76
    cleaning sheet to clean the MICR mechanism. Sub-element Data type timeout int Description Specifies the timeout time (ms) for the paper insert wait status. 60,000 to 900,000 (whole numbers) ❏ Example local_printer micrcleaning
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 77
    the method that returns an event. For details, refer to the code below. Hybrid printer status. For details, refer to the status below. Receives MICR reading data An autocutter error occurred A mechanical error occurred No paper in roll paper end sensor An unrecoverable error occurred  (During
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 78
    " Description No response from the TM printer Printing is successfully completed Status of the 3rd pin of the drawer kick-out connector = "H" Offline The cover is open Paper is being fed by a paper feed switch operation Waiting to be brought back online The paper feed switch is being pressed (ON
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 79
    This chapter explains the XML document that controls printers. For printer message data, refer to Message Data for Printers (p.70). This is the XML document sent from the application to printers. It requests that the printer execute the designated function. contains the
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 80
    mode Sub-element Subelement Function Printer's print mode Page Prints text Paper feed ● ● Example with a text tag added as a sub-element --> Hello world!! 80
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 81
    "EPTR_MECHANICAL" A mechanical error occurred "EPTR_REC_EMPTY" No paper in roll paper end sensor "EPTR_UNRECOVERABLE" An unrecoverable error occurred "SchemaError" The request document contains a syntax error "DeviceNotFound" "PrintSystemError" The printer with the specified device ID does
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 82
    " "0x80000000" Description No response from the TM printer Printing is successfully completed  Status of the 3rd pin of the drawer kick-out connector = "H"  Battery offline status Offline The cover is open Paper is being fed by a paper feed switch operation Waiting to be brought back online The
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 83
    acquired in a decimal expression from the following values. Status of power Attribute value 0x30XX 0x31XX Description The AC adapter is connected The status=""/>
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 84
    content, execute line feed or paper feed. In page mode, characters are laid out in the current print position with the reference point being the character baseline dot (Printer specifications (p.187)). Entity Reference To write symbols required for printer control such as horizontal tab, line
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 85
    ● ▲ 88 reverse Inversion of black and white ● ▲ ▲ ▲ 88 parts of characters ul underline ● ● ● ▲ 88 em Emphasized printing ● ● ● ● ● ▲ ▲ 88 align Alignment ● ● ● ▲ 89 rotate linespc Rotated printing ● ● ● ● 89 Per-line paper feed amount ● ● ● ▲ 89 4 85
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 86
    for South Asia model.) English (ANK) Characters not installed in a printer cannot be printed. For printable character code, refer to the Technical Reference Guide of your printer. Depending on language specification, a part of characters is printed as follows. Language Japanese Korean Simplified
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 87
    Chapter 4 ePOS-Device XML  font : Specifies the character font. Attribute value "font_a" (default) "font_b" "font_c" "special_a" "special_b" Font A Font B Font C Special font A Special font B Description When Japanese is specified, characters in Shift-JIS can be printed.  smooth : Sets
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 88
    one element at the same time, priority is given to the scale specification for the height attribute.  reverse : Sets the inversion of black and white parts of characters. Attribute value "true" or "1" "false" or "0" (default) Description Specifies the inversion of black and white
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 89
    the barcode and symbol elements.  linespc : (Default : "30") Specifies the per-line paper feed amount in dots. Example 4 To print a character string based on the following settings: Hello, World! 89
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 90
    . Feeds to the cutting position. Feeds to the top of the current label. Feeds to the top of the next label. • When the per-line paper feed amount is 30 dots, up to 240 lines can be specified. • The standard mode retains the line feed space separate from the line feed
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 91
    Chapter 4 ePOS-Device XML Example Hello World
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 92
    image. (Data type xs:base64Binary) Raster graphics refer to data generated by horizontally scanning the pixels of a multiple of 8 that does not exceed the printer paper width for the width attribute value. • Page mode does not support printing in multiple tones. Multiple tone graphics can only
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 93
    Chapter 4 ePOS-Device XML  align : Specifies the print position. Attribute value "left" (default) "center" "right" Description Alignment to the left Alignment to the center Alignment to the right • In page mode, even if align is specified, it is disabled. • For the standard mode, specify the
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 94
    not support printing in multiple tones. Multiple tone graphics can only be printed in standard mode. • Using model-dedicated utility or logo registration utility (TMFLogo), register a logo in the printer in advance. • In page mode, a logo is laid out in the current print position with the reference
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 95
    compliant with the barcode standard are made, or if the barcode becomes larger than the printer's print area. And an error response will not be returned, either. • In a barcode is laid out in the current print position with the reference point being its bottom left dot (except for HRI). Barcode Type
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 96
    Barcode type CODE128 GS1-128 GS1 DataBar Omnidirectional GS1 DataBar Truncated GS1 DataBar Limited GS1 DataBar Expanded Barcode data specification procedure Specify a start character (CODE A, CODE B, CODE C). A stop character is automatically added. A check digit is automatically calculated and
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 97
    Chapter 4 ePOS-Device XML To specify binary data that cannot be represented by character strings, use the following escape sequences. \xnn \\ String Control code Back slash Description Attribute  type : (Required attribute) Specifies the barcode type. Attribute value Description "upc_a"
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 98
     align : Specifies the print position. Attribute value "left" (default) "center" "right" Description Alignment to the left Alignment to the center Alignment to the right The align attribute set in this element also applies to the align attribute in each of the text, image, logo, and symbol
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 99
    the 2D-code standard are made, or if the 2D-code becomes larger than the printer's print area. And an error response will not be returned, either. • In mode, a 2D-code is laid out in the current print position with the reference point being its top left dot. 2D-Code Type The following 2D-codes can
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 100
    In Mode 3 Postal code (1 to 6 pieces of data convertible by Code Set A)  GS:(\x1d)  ISO country code (1- to 3-digit number)  GS:(\x1d)  Service class code (1- to 3-digit number) Convert the character string to the string in UTF-8, apply the escape sequence, and then encode the string. Specify
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 101
    Chapter 4 ePOS-Device XML Attribute  type : (Required attribute) Specifies the 2D-code type. Attribute value Type "pdf417_standard" Standard PDF417 "pdf417_truncated" Truncated PDF417 "qrcode_model_1" QR Code Model 1 "qrcode_model_2" QR Code Model 2 "maxicode_mode_2" MaxiCode Mode 2
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 102
     level : Specifies the error correction level. Attribute value "level_0" "level_1" (default) "level_2" "level_3" "level_4" "level_5" "level_6" "level_7" "level_8" "level_l" "level_m" "level_q" "level_h" Integer from "5" to "95" "default" Description PDF417 error correction level 0 PDF417 error
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 103
    Chapter 4 ePOS-Device XML  size : 2D-Code PDF417 QR Code MaxiCode 2-dimentional GS1 DataBar (Expanded Stacked) (Others) Aztec Code DataMatrix size="0" Default Ignored size="0" (auto) Ignored Ignored Description Specifies the number of code words for each row Specifies the maximum width for
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 104
    Draws horizontal lines. Not available in page mode. Attribute  x1 :  x2 : (Required attribute) Specifies the draw start position of the horizontal line (in dots). (Required attribute) Specifies the draw end position of the horizontal line (in dots).  style : (Optional attribute)
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 105
    Chapter 4 ePOS-Device XML Starts to draw vertical lines. Not available in page mode. A vertical line is drawn up to the end position specified by the vline-end element (p. 106). Use this element together with the vline-end element. Attribute  x:  style : (Required attribute)
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 106
    Ends to draw vertical lines. Not available in page mode. Use this element together with the vline-begin element (p. 105). Attribute  x:  style : (Required attribute) Specifies the end position of the horizontal line (in dots). (Optional attribute) Specifies the line type.
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 107
    following elements can be used. Element Prints text Paper feed Prints a raster image Prints a NV logo Prints a barcode Prints a 2D-code Sets a print area Sets a print direction Sets a print
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 108
    absolute origin point is a dot diagonally above the top left corner of the printable area. Absolute origin point Origin point(x,y) Width Height Print area Paper Specify the print area according to the print content. If print data extends beyond the print area, the print result is such that the
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 109
    Chapter 4 ePOS-Device XML Specifies the page mode print direction. Specifies the print direction and rotates the print area. Following the rotation of the print area, the start point of the print area moves. Use this element inside the page element. Attribute  dir : (Required
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 110
    , Default "21") Specifies the origin of the vertical axis (in dots). Specify the print start position (coordinates) according to the content to be printed. Refer to the following.  To print a character string:  Specify the left end of the baseline for the first character. This can be omitted for
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 111
    Draws a line in page mode. Diagonal lines cannot be drawn. Use this element inside the page element. Chapter 4 ePOS-Device XML Attribute  x1:  y1 : (Required attribute) Specifies the drawing start position of the horizontal line (in dots). (Required attribute) Specifies the drawing
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 112
    Draws a rectangle in page mode. • Use this element inside the page element. • Not available in standard mode. Use the hline, vline-begin, and vline-end elements instead. Attribute  x1:  y1 : (Required attribute) Specifies the drawing start position of the horizontal line (in dots).
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 113
    to "when at the top of a line". Attribute  type : (Optional attribute) Specifies the paper cut type. Attribute value "no_feed" "feed" (default) "reserve" Description Cut without feeding (The paper is cut without being fed.) Feed cut (The paper is fed to the cut position and then is cut.) Cut
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 114
    Outputs signals to the drawer kick connector. Depending on the model, a buzzer can be sounded. • Not available in page mode. • The drawer and the buzzer cannot be used together. Attribute  drawer : (Optional attribute) Specifies the drawer kick connector. Attribute value "drawer_1" (
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 115
    This element is not available if the printer is not provided with the buzzer. Attribute sound pattern "paper_end" Pattern when there is no paper "pattern_1" Pattern 1 (in ePOS-Device Ver in ePOS-Device Ver.2.2 and later) "pattern_10" Pattern 10 (in ePOS-Device Ver.2.2 and later)  repeat :
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 116
     cycle : (in ePOS-Device Ver.2.2 and later) Specifies the buzzer sounding cycle (in units of milliseconds) "cycle" is enabled by any of "pattern_1" to "pattern_10" for the buzzer pattern. Example 116
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 117
    Chapter 4 ePOS-Device XML Insert the ESC / POS command. ESC / POS command is specified in hexadecimal encoding. For information about ESC/POS commands, see the ESC/POS Command Reference.  You can view the ESC/POS Command Reference from https://reference.epson-biz.com/. 4 117
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 118
    from 290 to 600. Specifies paper height (in units of 0.1mm). Paper Type Receipt  (without black mark) Receipt (with black mark) Die-cut label  (without black mark) Die-cut label (with black mark) Valid value range "0 "0" (auto) "284" to "1550" (manual) Description Setup not necessary Distance
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 119
    Distance from the top of black mark to the cutting position  offset-label : Specifies label bottom position (sd) per 0.1mm unit. Paper Type Valid value range Description 4 Receipt  "0" (without black mark) Receipt (with black mark) "0" Setup not necessary Die-cut label  "0" (without
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 120
    Detailed description See below for the parameters that can be specified for each type of paper, and the positions for those parameters. Mark sf sa sb se sc sd Parameter width height margin_top margin_bottom offset_cut offset_label sf Receipt
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 121
    (p. 79) to use this element. Example Resets the printer. (in ePOS-Device Ver.2.2 and later) Cannot be written in the tag. Other printing commands in the print document are ignored. 4 Example
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 122
    out limit for requests in milliseconds. 1,000 to 60,000 (whole numbers) Specifies the customer display control XML. For details, refer to Customer Display Control XML (p.124). ❏ Example display 10000
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 123
    . Sub-element Data type resultdata string Description Receives the response from the data sent to the customer display. For details, refer to (p.125). ❏ Example onxmlresult 4 123
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 124
    that controls the customer display. For customer display message data, refer to Message Data for the Message Data for the Customer Display namespace. Find the namespace below. http://www.epson-pos.com/schemas/2012/09/epos-display Sub-element Sub-element
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 125
    "EDSP_NOT_FOUND" Could not find the error code "EDSP_NOT_OPEN" Failed to open the device "EDSP_INVALID_WINDOW" An unregistered window was designated "EDSP_SYSTEM_ERROR" An unexpected error occurred "EDSP_SCHEMA_ERROR" The XML structure is invalid "EX_BADPORT" An error occurred
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 126
    is not designated, and number is designated, the current window is moved to the designated window. Attribute ❏ number  Designates the target window number. Attribute value "1" "2" "3" "4" Window 1 Window 2 Window 3 Window 4 Description ❏x  Designates the x coordinate (1 to 20) in a whole
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 127
    ="10" height="2" scrollmode="v_scroll"/>
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 128
    top left --> Carrots \100 Welcome!! Carrots, $1 128
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 129
    Moves to the top right Moves to the bottom left Moves to the bottom right ❏ type 4  Designates the cursor location in the current window. Attribute value "none" "underline" Description Does not display the cursor Displays using an underline format ❏ Example
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 130
    Controls screen blinking. Blinking is repeated at the interval designated by interval. The actual blinking interval is rounded up in 50 ms units. For example, if interval is 1 to 50, the actual interval is 50 ms, if 51 to 100, then 100 ms. Attribute ❏ interval  Designates the interval
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 131
    Controls the customer display brightness. Attribute ❏ value  Designate brightness in percentage. Attribute value "20" "40" "60" "100" Brightness 20% Brightness 40% Brightness 60% Brightness 100% ❏ Example
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 132
    the marquee. Attribute value "walk" (Default) "place" Description Displays the string from the right end of the window. Displays the string from the left end of the window. ❏ repeat  Designates the number of times to repeat the display. Attribute value "0" (Default) "1" to "127"(whole number
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 133
    local time managed by the TM-Intelligent's OS is displayed. ❏ Example Clears the display of the current window. If a window does not exist, the whole see the ESC/POS Command Reference.  You can view the ESC/POS Command Reference from https://reference.epson-biz.com/. ❏ Example <
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 134
    Sub-element Data type keycode int ascii string Description Receives the key code decimals input with the POS keyboard. For key code details, refer to the List of KeyCode (p.185) Receives the characters created by key codes. Characters converted into symbols and capital letters from holding down
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 135
    Data type keycode int Description Designates the key code decimals to determine the start of the character string. For key code details, refer to the List of KeyCode (p.185). ❏ Example setprefix 49 50 51
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 136
    character string or the Enter key. Receives the key code that determined the start of the character string. For key code details, refer to the List of KeyCode (p.185). Character strings in received data Escape processing is performed for the following character strings. Character string before
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 137
    an MSR. Sub-element Data type keycode int Description Sets the keycode for determining the beginning when card information is received. For key code details, refer to the List of KeyCode (p.185). ❏ Example setMSRPrefix 52 4 137
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 138
    track2 Expiration date of JIS1 track2 Surname First name Middle name/initial Title Service code Desired data of JIS1track1 Desired data of JIS1track2 Character strings in received ❏ Example B4205296141577006^EPSON/TARO ^160410100000 00573000000 9999296999977006
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 139
    Chapter 4 ePOS-Device XML Message Data for the Serial Device This message data cannot be used with a TM-i Series printer with the specification of "without a Serial port". sendcommand Request Sends commands to the serial device. Sub-element Data type command string ❏ Example
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 140
    from the serial device to the application. Sub-element Data type status string data string Description Data reception status For details, refer to the status below. Hexadecimal expressed character string for the data string ❏ status Element value "SUCCESS" ❏ Example Description Successfully
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 141
    ClientConnection 5 Device When "open_device" message (p.58) is sent, an object is created so that the ePOS- Device Service I/F on TM-DT can use the device control script supported by the requested device. The device can be controlled with the created object. Device Control Script Object The
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 142
    registered when using WebConfig for device setting.) ❏ The part before the first dot "." of the file name input device that can run with an HID driver. Specify this to use a serial communication receive data generated in the device. For details, refer to Device Control Script Name object (p.144). ❏
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 143
    Chapter 5 Device Control Script Configuration Example of Device Control Script exports.Keyboard_Generic = Keyboard_Generic; function Keyboard_Generic(clientConn, deviceConn){ this.DEVICE_TYPE = 'type_keyboard'; this.DEVICE_GROUP = 'group_hid'; this.clientConn = clientConn; this.deviceConn =
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 144
    List of Device Control Script API The device control script API provides the following objects: ❏ ClientConnection object (p.144) ❏ DeviceConnection object (p.144) ❏ Device control script name object (p.144) ClientConnection object Element API Method send Description Page Sends data to a
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 145
    Chapter 5 Device Control Script ClientConnection Object The object passed to the first parameter of the constructor of the device control script. send Sends data to a device object that can run with a browser. Syntax send(event, data); Parameter  event  data :Object type : (String)
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 146
    the device control script. send Sends data to a serial communication device. No data is sent when an input device that can run with an HID driver is used. Syntax send(data); Parameter  data :Object type : (Buffer) Specifies the data to be sent to the device. 146
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 147
    Name Object onDeviceData event (Input Device That Can Run with a HID Driver) The event used to receive the data detected from a key input  keycode  ascii :Object type :(Number) Receives a keycode. For details, refer to List of KeyCode (p.185). :Object type : (String) Receives a character
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 148
    Any event The event used to receive the API execution results of the device object that can run with a browser. Syntax Name specified with callEvent(data); Parameter  data :Object type : (Object) Receives the object specified with callEvent of the device object. 148
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 149
    Chapter 6 Sample Program Sample Program This chapter describes the sample program. A sample program for an Android/ iOS environment is provided in the ePOS-Device XML. Outline The sample program provides the function to scan data with the barcode scanner and print this data. 6
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 150
    Building Environment for Android Environment Device ❏ TM-Intelligent  TM-DT Series  TM-i Series (TM-i firmware Ver.4.0 or later) ❏ Barcode Scanner Execution environment This section explains the following environments. Information such as the webpage URLs and versions of files to
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 151
    Chapter 6 Sample Program Flow of environment construction for TM-DT Series The following illustrates the flow of constructing the environment for the sample program. If the Windows Security screen appears while using EPSON TMNet WebConfig, enter your user name and password. The default values are as
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 152
    7. Connection of barcode scanner to TM-DT Connect a barcode scanner to TM-DT. 8. Setting the Barcode Scanner (p.170) Register the barcode scanner to be connected into TM-DT. Make registration using an EPSON TMNet WebConfig. 152
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 153
    Chapter 6 Sample Program Flow of environment construction for TM-i Series The following illustrates the flow of constructing the environment for the sample program. If the Windows Security screen appears while using EPSON TMNet WebConfig, enter your user name and password. The default values are as
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 154
    7. Network Settings Make the network settings for the TM-i, using EPSON TMNet WebConfig. 8. Setting the Barcode Scanner (p.170) Register the barcode scanner to be connected into TM-i. Make registration using an EPSON TMNet WebConfig. 154
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 155
    ). Downloading JDK 1 Access the following URL and download Java SE 6 JDK. http://www.oracle.com/technetwork/java/javase/downloads/index.html 2 The Java SE Downloads window appears. Select [Accept License Agreement] and select the file to be installed. Save the file to a desired location. (In this
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 156
    to install and click the [Next] button. To change the installation destination, click the [Change] button and change the destination. (In this manual, the default destination is used.) 3 Installation starts. 4 When installation completes, the following window appears. Click the [Finish] button. 156
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 157
    and set up Eclipse. Downloading Eclipse Access the following URL and download Eclipse. Save the file to a desired location. (In this manual, download and set up Eclipse Classic) http://www.eclipse.org/downloads/ Installing Eclipse and Configuring Initial Settings 1 Extract the downloaded file to
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 158
    Setting Proxy for Eclipse Use this operation when proxy setting is required for Internet connection. If not required, this operation is unnecessary. 1 Select [Window] - [Preferences]. 2 Select [General]-[Network Connections] from the left column. Set the proxy and click the [OK] button. 158
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 159
    . Create Android Virtual Device. Downloading Android SDK Manager Access the following URL and download Android SDK Manager. (In this manual, download the installer for Windows.) http://developer.android.com/sdk/index.html Installing Android SDK Manager 1 Start the downloaded file. The following
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 160
    3 Specify the user destination. Click the [Next] button. (In this manual, the default settings are used.) 4 Specify the Install location destination. Click the [Next] button. (In this manual, the default settings are used.) 5 Specify the name to be registered to Start Menu. Click the [Install]
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 161
    6 When installation completes, click the [Next] button. Chapter 6 Sample Program 7 Clear the [Start SDK Manager] checkbox. Click the [Finish] button. 6 161
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 162
    SDK Manager. [Start]-[All Programs]-[Android SDK Tools]-[SDK Manager] On Windows Vista or later, it is required to run Android SDK Manager the proxy setting is required, select [Tools]-[Options]. 3 The proxy setting window appears. Set the proxy and click the [Close] button. 4 Select the version
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 163
    Chapter 6 Sample Program 5 Select [Accept All] and click the [Install] button. Installation of Virtual Device starts. 6 163
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 164
    ) Plugin. To execute this operation, the computer must be connected to the Internet. If the proxy setting is required for Internet connection, refer to Setting Proxy for Eclipse (p.158). 1 Start Eclipse. Select [Help]-[Install New Software]. 2 Click the [Add] button. 3 Enter [Name] and [Location
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 165
    Chapter 6 Sample Program 4 Select the [Developer Tools] checkbox and click the [Next] button. 5 Confirm the plugin to be installed, and click the [Next] button. 6 After confirming the terms of the license agreement, select the [I accept...] checkbox and click the [Finish] button. 6 165
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 166
    the [OK] button. 8 Click the [Yes] button to restart Eclipse. 9 Select [Window] - [Preferences]. 10Select [Android] from the left column. Click the [Browse...] button to display the Android folder where SDK Manager is installed. (In this manual, display "C:\Program Files\Android\android-sdk".) 166
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 167
    Chapter 6 Sample Program 11Click the [Apply] button. Confirm that the installed package is displayed. 6 167
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 168
    Importing the Sample Program Import the sample program to Eclipse. 1 Extract ePOS-Device_Sample_XML_Vx.x.x.zip, and save it to any folder. 2 Start Eclipse. Select [File]-[Import]. 3 Select [General]-[Existing Projects into Workspace]. Click the [Next] button. 168
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 169
    Chapter 6 Sample Program 4 Click the [Browse...] button to display the saved sample program. Select the [Copy projects into workspace] checkbox and click the [Finish] button. 5 Confirm that the application has been properly imported. 6 169
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 170
    address for TM-DT is 192.168.192.168.  http://[IP address of TM-DT]/webconfig/ • Check the IP address of TM-DT with the status sheet. For checking method of the status sheet, refer to Technical Reference Guide of each TM-DT. 4 EPSON TMNet WebConfig starts. Select [Web Service Settings] - [Device
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 171
    sheet, refer to Technical Reference Guide of each TM-i.  When accessing EPSON TMNet WebConfig, you are promoted to enter user name and password of EPSON TMNet WebConfig. The default is shown below. User name: epson Password: epson 4 EPSON TMNet WebConfig starts. Select [Web Service Settings
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 172
    Building Environment for iOS Environment Device ❏ TM-Intelligent  TM-DT Series  TM-i Series (TM-i firmware Ver.4.0 or later) ❏ Barcode Scanner Execution environment This section explains the following environments. Information such as the webpage URLs and versions of files to
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 173
    values are as follows: User name : epson Password : epson 1. Network Settings Configure the system and TM-DT network settings. For the TM-DT network settings, use either of the following procedures:  Configuring the Windows network settings with TM-DT  Installing TMNet WinConfig in an external
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 174
    Connect a barcode scanner to TM-i. 2. Network Settings Make the network settings for the TM-i, using EPSON TMNet WebConfig. 3. Setting the Barcode Scanner (p.175) Register the barcode scanner to be connected into TM-DT. Make registration using an EPSON TMNet WebConfig. 4. Setting the Sample Program
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 175
    XML into TM-Intelligent. Configure the settings using EPSON TMNet WebConfig. TM-DT Series [4] [3] [5] Configure the settings in the following procedure: 1 Make sure that the barcode scanner is connected to the TM-DT. 2 Make sure that the TM-DT's power is turned on. 3 Start EPSON TMNet WebConfig
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 176
    sheet, refer to Technical Reference Guide of each TM-i.  When accessing EPSON TMNet WebConfig, you are promoted to enter user name and password of EPSON TMNet WebConfig. The default is shown below. User name: epson Password: epson 4 EPSON TMNet WebConfig starts. Select [Web Service Settings
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 177
    Chapter 6 Sample Program Setting the Sample Program Configure the settings in the following procedure: 1 Expand ePOS-Device_Sample_XML_Vx.x.x.zip. 2 Start XCode and open the [ePOS-DeviceXMLSample.xcodeproj] project file. 3 When the project is opened, the project settings and source files will be
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 178
    Executing Sample Program The iOS can be run with iOS Simulator. Androiod You can execute the sample program using the following methods. ❏ Executing with an emulator(p.178) ❏ Executing with an Android device(p.181) Executing with an emulator Execute the program using the following procedure. 1 Start
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 179
    Chapter 6 Sample Program 2 Select the name of the virtual device to create and the OS version of the virtual device. Input any value for [Name], and make selections for [Target] and [CPU/ ABI]. Then click the [Create AVD] button. 3 The created virtual device is displayed. 4 Click the button to run
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 180
    5 For the initial startup, the window to confirm the execution type appears. Select [Android Application] and click the [OK] button. 6 The emulator starts and the application is executed. 180
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 181
    , see the site at the following URL. http://developer.android.com/tools/extras/oem-usb.html If you are unable to find an ADB USB driver for the device you are using at the site linked to above, search the website of the manufacturer of your device. 2 Make the following settings
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 182
    5 Click the Run button in Eclipse.  If it is being run for the first time, the following window will appear. Select [Android Application], and click the [OK] button. 6 The sample application is installed and run on the Android device. 182
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 183
    procedure. 1 Perform application settings. Chapter 6 Sample Program Set as follows. Setting Item IP Address DeviceID Printer DeviceID Scanner Description Input the TM-Intelligent's IP address. Input "local_printer". Input "local_scanner". 2 Click or tap [connect]. 3 Confirm that "Connect to
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 184
    5 If the barcode is properly scanned, the scan result is displayed in [OnData]. 6 Click or tap [print] to print the scan result. 7 If it is printed properly, "Print success" is displayed on the bottom of the screen. 184
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 185
    Appendix Appendix List of KeyCode Key KeyCode (Decimal) Backspace 8 Tab 9 Enter 13 Shift 16 Ctrl 17 Alt 18 Caps Lock 20 Esc 27 Space 32 PgUp 33 PgDn 34 End 35 Home 36 ! 37 # 38 ! 39 $ 40 Insert 45 Delete 46 Numbers on the keyboard 0 48 1 49 2 50 3
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 186
    Key KeyCode (Decimal) Alphabets on the keyboard Q 81 R 82 S 83 T 84 U 85 V 86 W 87 X 88 Y 89 Z 90 Numeric keypad * 106 + 107 / 109 Function key F1 112 F2 113 F3 114 F4 115 F5 116 Key Function key F6 F7 F8 F9 F10 F11 F12 Caps Lock KeyCode (Decimal) 117 118
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 187
    Printer specifications TM-H6000IV-DT/ TM-H6000IV information about what character codes can be printed, refer to the user's manual that came with the printer. ANK:  42 characters ANK:  image Monochrome image Not supported Monochrome image, Gray scale image Not supported UPC-A, UPC-E, EAN13
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 188
    Supported Buzzer Not supported Paper layout setting Not supported Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported MICR Supported Slip Not supported - Not supported Endorsement
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 189
    TM-T70II-DT/ TM-T70II 80mm Interface Ethernet, Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width 576 dots Font Font A, Font B For more information about what character codes can be printed, refer to the user's manual that came with the printer xxx> Not supported Page Mode
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 190
    Paper layout setting Forced transmission mode Recovery from an error Reset Command Not supported Supported Supported Supported Supported 80mm 190
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 191
    Appendix TM-T88V-DT/ TM-T88V-i/ TM-T88V Interface Resolution Print Width Font Characters in a Line Font A Font B For more information about what character codes can be printed, refer to the user's manual that came with the printer. ANK: 42 characters ANK: 30 characters ANK: 56 characters
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 192
    Line Rectangle Not supported Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Optional (Pattern A to E, Error, Paper end, Stop) Paper layout setting Not supported Forced transmission mode Supported Recovery from an error
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 193
    Appendix TM-T20II-i 80mm Interface Ethernet, Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width (42 Column Mode) 576 dots (546 dots) Font For more information about what character codes can be printed, refer to the user's manual that came with the printer. Characters in a Line
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 194
    Paper Cut Drawer Kick-Out Buzzer Paper layout setting Forced transmission mode Recovery from an error Reset Command Cut, Feed cut Supported Optional Not supported Supported Supported Supported Supported 80mm 194
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 195
    Paper layout setting Forced transmission mode Recovery from an error 80mm Ethernet, Wireless LAN 180 dpi x 180 dpi (W x H) 512 dots For more information about what character codes can be printed, refer to the technical reference guide that came with the printer. ANK
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 196
    Reset Command Supported Supported 80mm 196
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 197
    Appendix TM-T82II-i/ TM-T82II 80mm Interface Ethernet, Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width (42 Column Mode) 576 dots (546 dots) Font For more information about what character codes can be printed, refer to the user's manual that came with the printer. Characters
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 198
    Paper Cut Drawer Kick-Out Buzzer Paper layout setting Forced transmission mode Recovery from an error Reset Command Cut, Feed cut Supported Optional Not supported Supported Supported Supported Supported 80mm 198
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 199
    Appendix TM-L90 Receipt Die-cut label Interface Ethernet, Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width 256 to 576 dots 224 to 560 dots Font For more information about what character codes can be printed, refer to the user's manual that came with the printer. Characters
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 200
    dots x 738 dots (W x H) Page Mode Line Rectangle Not supported Paper Cut Cut, Feed cut Drawer Kick-Out Supported Buzzer Supported via Drawer Kick-Out Paper layout setting Not supported (With automatic setup mode) Forced transmission mode
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 201
    TM refer to the user's manual that came with the printer . ANK: 35 characters, ANK: 36 characters ANK: 42 characters ANK: 43 characters ANK: 52 characters ANK: 54 characters ANK: 12 dots x 24 dots (W x H) ANK: 10 Symbology not supported) Not supported 420 x
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 202
    Kick-Out Buzzer Paper layout setting Forced transmission mode Recovery from an error Reset Command Receipt 58mm Cut, Feed cut Not supported Supported(Pattern 1 to 10, Stop) Not supported Supported Supported Supported Supported Receipt 60mm 202
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 203
    about what character codes can be printed, refer to the user's manual that came with the printer. ANK: 35 characters, ANK: 36 characters ,  GS1 DataBar Expanded Stacked, Aztec Code, DataMatrix (Composite Symbology not supported) Not supported 420 x 1200 dots (W x H) 432 x 1200 dots (W x
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 204
    mode Recovery from an error Reset Command Receipt 58mm Receipt 60mm Supported (Only for solid line) Feed cut (Feeds paper to cutting position) Not supported Supported(Pattern 1 to 10, Stop) Supported Supported Supported Supported Supported Die-cut label 204
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 205
    Appendix TM-P80 80mm Interface Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width 576 dots Font For more information about what character codes can be printed, refer to the user's manual that came with the printer. Characters in a Line Font A ANK: 48 characters Font B ANK:
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 206
    Forced transmission mode Recovery from an error Reset Command Supported Supported Supported Supported 80mm 206
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 207
    line> Rectangle Paper Cut Drawer Kick-Out Buzzer 58mm 80mm Ethernet 203 dpi x 203 dpi (W x H) 420 dots 576 dots Font A, Font B For more information about what character codes can be printed, refer to the user's manual that came with the printer. ANK: 35
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 208
    Paper layout setting Forced transmission mode Recovery from an error Reset Command 58mm Not supported Supported Supported Supported Supported 80mm 208
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 209
    TM-T20II 58mm 80mm Interface Ethernet, Wireless LAN Resolution 203 dpi x 203 dpi (W x H) Print Width (42 Column Mode) 420 dots (378 dots) 576 dots (546 dots) Font For more information about what character codes can be printed, refer to the user's manual that came with the printer
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 210
    Paper Cut Drawer Kick-Out Buzzer Paper layout setting Forced transmission mode Recovery from an error Reset Command 58mm Cut, Feed cut Supported Optional Not supported Supported Supported Supported Supported 80mm 210
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 211
    the memory switch setting utility.) Barcode UPC-A, UPC-E, EAN13, JAN13, EAN8, JAN8, CODE39, ITF, CODABAR, CODE93, CODE128, GS1-128 2D-Code PDF417, QR Code Ruled Line , Not supported Page Mode Line Rectangle Not supported Paper Cut
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 212
    Paper layout setting Forced transmission mode Recovery from an error Reset Command 80mm Not supported Supported Supported Supported Supported 58mm 212
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 213
    Appendix TM-T90 58mm 60mm 80mm Interface Ethernet, Wireless LAN Resolution 180 dpi x 180 dpi (W x H) Print Width 360 dots 384 dots 512 dots Font For more information about what character codes can be printed, refer to the technical reference guide that came with the printer.
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 214
    Out Buzzer Paper layout setting Forced transmission mode Recovery from an error Reset Command 58mm 60mm Not supported Cut, Feed cut Supported Supported via Drawer Kick-Out Not supported Supported Supported Supported Supported 80mm 214
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 215
    Appendix TM-U220 76mm 70mm 58mm Interface Ethernet, Wireless LAN Resolution 80 dpi x 72 dpi (W x H) Print Width 200 dots 180 dots 150 dots Font Font A, Font B For more information about what character codes can be printed, refer to the user's manual that came with the printer.
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 216
    Recovery from an error Reset Command 76mm Not supported Supported Supported 70mm 58mm 216
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 217
    setting function of TM-L90 Setting Paper Width It sets the paper width with memory switch setting mode. 1 Turn the printer's power off and set the receipt paper. 2 While the cover is opened, turn the power on while pressing the FEED button. 3 After confirming the ERROR LED lights up, press the FEED
  • Epson TM-H6000IV-DT | ePOS-Device XML Users Manual - Page 218
    218
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218

ePOS-Device XML
User’s Manual
M00055604
Rev.E
Overview
Building Environment
Programming Guide
ePOS-Device XML
Device Control Script
Describes the features and development environment.
Describes environment building for ePOS-Device
Service I/F.
Describes how to write programs in Web application
development.
Describes the ePOS-Device XML.
Describes the device control script.
Sample Program
Describes the sample program.
Appendix