UB-E02 Technical Reference Guide 10Base-T/100Base-TX Ethernet Interface board EPSON English 404999001
UB-E02 Technical Reference Guide CAUTIONS ❏ This document shall apply only to the product(s) identified herein. ❏ No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Seiko Epson Corporation. ❏ The contents of this document are subject to change without notice. Please contact us for the latest information.
Revision Information Revision Page Altered Items and Contents Rev. A ii Rev.
UB-E02 Technical Reference Guide About This Guide This guide is intended to provide all information necessary for system planning, design, installation and application of the UB-E02 for designers and developers of POS systems. Contents of the Guide The configuration of the guide is as follows: Chapter 1, “System Preparation” Supported operating system, network protocols, TM printers, and other limitations. Chapter 2, “Installation” Gives information on how to install and use the UB-E02.
EMC and Safety Standards Applied Product Name: Model Name: UB-E02 M155B The following standards are applied only to the interface boards that are so labeled. (EMC is tested using the EPSON power supplies and TM series printers.) Europe: CE marking North America: EMI: FCC/ICES-003 Class A Japan: EMC: VCCI Class A Oceania: EMC: AS/NZS 3548, CISPR22 Class B WARNING The connection of a non-shielded interface cable to this board will invalidate the EMC standards of this device.
UB-E02 Technical Reference Guide CAUTION: Connecting an outdoor overhead LAN cable directly to your product Connecting an outdoor overhead LAN cable directly to your product may lead to lightning damage. If you need to connect such a cable to your product, the cable must be protected against an electrical surge between the cable and your product. You should avoid connecting your product to a non-surge protected outdoor overhead LAN cable.
Safety Precautions This section presents important information to ensure safe and effective use of this product. Please read this section carefully and store it in an accessible location. CAUTION: ❏ Be careful to avoid dropping conductive objects such as paper clips on the circuit board, as they could short circuit connections and cause damage from excessive current. ❏ This product should only be connected to the devices specified in this guide.
UB-E02 Technical Reference Guide Introduction The UB-E02 is the 10Base-T/100Base-TX Ethernet interface board designed for the EPSON® TM printers. The board lets you connect your EPSON printer directly to your network and use it as a kitchen printer. Operating Environments Supported Operating Systems ❏ Microsoft® Windows® 95, Windows® 98 Second Edition, Windows® 2000 Professional, and Windows®XP Professional ❏ Windows NT® 4.
Supported TM Printers The following printers can use the UB-E02. (The TM-J8000, TM-T285, and RP-U420 cannot use the UB-E02. For new models, please ask your dealer.) ❏ TM-U200 Series ❏ TM-U210 Series ❏ TM-U230 ❏ TM-U325 ❏ TM-U590 ❏ TM-U675 ❏ TM-T88/T88II/T88III ❏ TM-T90 ❏ TM-H5000/H5000II ❏ TM-H6000/H6000II ❏ TM-J2000/J2100 ❏ TM-J7000/J7100 ❏ TM-J7500/J7600 ❏ TM-L90 viii Rev.
UB-E02 Technical Reference Guide How to Use this Guide Installation Overview Be sure to read Chapter 1, “System Preparation,” before using the product. Perform the following steps to install and configure the UB-E02. See the indicated chapters for detailed information. 1. Install the UB-E02 in your printer. See Chapter 2. 2. Install the TCP/IP protocol in your operating system, if necessary. See Chapter 5. 3. Set the functions of the UB-E02. See Chapter 5. 4.
Contents Chapter 1 System Preparation Supported Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Supported Network Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Supported TM Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
UB-E02 Technical Reference Guide Chapter 5 Specifications Printer Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Line Display Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xii Contents Rev.
UB-E02 Technical Reference Guide Chapter 1 System Preparation 1.1 Supported Operating Systems ❏ Microsoft Windows 95, Windows 98 Second Edition, Windows 2000 Professional, and Windows XP Professional ❏ Windows NT 4.0 1.2 Supported Network Protocols ❏ LPR ❏ Socket printing (port 9100 for OPOS) 1.3 Supported TM Printers The following printers can use the UB-E02.
The following printers cannot use the UB-E02. ❏ TM-J8000, TM-T285, RP-U420 1.4 Other Limitations Be sure to note the following: ❏ When the UB-E02 is installed, the display module connector (DM-D) of the TM printer cannot be used. CAUTION: Do not connect the Ethernet connector cable to the display module connector (DM-D) or the drawer kick-out connector. 1-2 System Preparation Rev.
UB-E02 Technical Reference Guide Chapter 2 Installation 2.1 Installation Precautions WARNING ❏ Before installing, disconnect the Power Unit from the TM Printer (as well as turning the power switch off). Even when the power switch is off, voltage is still present at some points on the circuit board. Changing components while the Power Unit is connected can cause damage to the UB-E02 and the printer. ❏ A grounded wrist strap should be worn during installation, to avoid damage from static electricity.
2.2 Unpacking ❏ UB-E02 ❏ UB-E02 User’s Manual 2.3 Part Names Power supply connector of the printer 10BASE-T/100BASE-TX LED (green) LED (yellow) Ethernet interface connector Switch Drawer kick-out connector of the printer Note: This photograph shows the TM-T88III printer with the UB-E02 installed. 2.4 Functions The switch and LEDs of the UB-E02 provide you with important information on operation and status of the UB-E02. 2.4.
UB-E02 Technical Reference Guide 2.5 UB-E02 Installation CAUTION: Before installing the UB-E02, be sure to set the DIP switches or Memory switches as shown in the table below. For other models, please ask your dealer.
remove screw remove screw 3. Tighten the screws. If you have removed an interface circuit board that was already installed, fix the UB-E02 using the removed screws. 4. Plug the twist pair cable into the 10BASE-T/100BASE-TX Ethernet connector of the UB-E02 until it clicks. CAUTION: Be sure not to connect a telephone line, display module connector, or drawer kick-out connector cable to the 10BASE-T/100BASE-TX Ethernet connector of the UB-E02.
UB-E02 Technical Reference Guide Note: When initializing the UB-E02 by turning off the power and then turning it back on or by resetting the printer, there is a waiting time until the network starts operating. During this time, all the communicating functions of the network do not work. The waiting time is: When the IP address setting is Manual (Fixed): approximately 6 seconds When the IP address setting is Auto: approximately 13 seconds (It can be longer, depending on the reply time of the host.) Rev.
7. Print a status sheet to check whether the UB-E02 is installed correctly by holding the switch down for more than 3 seconds when the printer is ready for printing. The version of the UB-E02 and its settings are printed. See “UB-E02 Status Sheet Printing” on page 7 of this chapter. Switch 2-6 Installation Rev.
UB-E02 Technical Reference Guide 2.6 Initializing UB-E02 All the parameters of internal settings for the UB-E02 can be set to the factory default values. Follow the steps below: 1. Turn off the printer power. Be sure to confirm that the LED lights are off. 2. Turn on the printer power while pressing the switch of the UB-E02 and hold the switch until the factory default values are printed. 3. After "Resetting to Factory Default!" is printed, release the switch. 4.
2.8 FAQ 2.8.1 Q1. The printer does not operate correctly. ("Serial interface" is printed by the self test for the printer.) 2.8.1.1 A1. For TM-T90, TM-L90, TM-J2000, TM-J2100, TM-J7000, TM-J7100, TM-J7500, and TM-J7600, set the #25 pin reset signal of the Memory switch set to disabled. For other models, use the printer with the #31 pin reset signal of the DIP switch for parallel interface enabled.
UB-E02 Technical Reference Guide 2.8.3.1 A3. When the auto setting is set for IP address acquisition without a DHCP server, starting up the printer takes about one minute. During this time, the self test for the printer is not performed. Set the manual setting for IP address acquisition where the DHCP server is not available. Rev.
2-10 Installation Rev.
UB-E02 Technical Reference Guide Chapter 3 Utilities 3.1 Setting the IP Address To use the UB-E02 with TCP/IP, you first need to set its IP address. You can set the IP address by using the EPSON TMNet WinConfig or arp/ping command. arp/ping command UB-E02 Refer to page 3-11 Setting IP address EPSON TMNet WinConfig Web Config Win Config Refer to page 3-20 Refer to page 3-13 setting Refer to Page 3-1 UB-E02 Setting functions Set up for printing, referring to the OPOS/APD manual. 3.1.
Windows 95 1. Double-click the Network icon in the Control Panel; then check whether TCP/IP is in the list of installed network components on the Configuration menu. If it is already installed, click Cancel and skip to the Installing TMNet WinConfig section. If TCP/IP is not in the list, click Add. 2. Select Protocol and click Add. 3-2 Utilities Rev.
UB-E02 Technical Reference Guide 3. Select Microsoft from the list of manufacturers and TCP/IP from the Network protocols list. Then click OK. 4. Double-click TCP/IP on the Configuration menu to open the TCP/IP Properties dialog box. Make necessary settings, such as the IP address and subnet mask. Ask your network administrator for the settings such as the IP address. Note: After the TCP/IP is installed, restart your computer and move on to the Installing EPSON TMNet WinConfig section. Rev.
Windows NT 4.0 1. Double-click the Network icon in the Control Panel to check whether the TCP/IP Protocol is installed. If it is already installed, click Cancel and skip to the Installing TMNet WinConfig section. If the component is not installed, click Add. . 2. Select the TCP/IP protocol and click OK. 3-4 Utilities Rev.
UB-E02 Technical Reference Guide 3. If you continue installing the TCP/IP protocol, the TCP/IP Configuration dialog box appears, and you can set the IP address. Ask your network administrator for your IP address. Note: To check the IP address which has already been assigned, click the Protocols tab in the Network dialog box, select TCP/IP Protocol, and then click the Properties button. 4. When the installation is complete, check items such as the IP address to make sure they have been entered correctly.
2. Click Properties and check whether the Internet Protocol (TCP/IP) check box is checked. If not, click the check box. Note: After the TCP/IP is installed, restart your computer and move on to the Installing EPSON TMNet WinConfig section. 3.1.1.2 Installing EPSON TMNet WinConfig Note: After the EPSON TMNet WinConfig is installed, if you add or remove protocols or services, the EPSON TMNet WinConfig might not work correctly. In this case, uninstall the EPSON TMNet WinConfig and reinstall it.
UB-E02 Technical Reference Guide Installation with Windows 95 1. Unzip the file and start Setup.exe. 2. Install the EPSON TMNet WinConfig, following the instructions shown on your display. 3. When the installation is finished, click a check box, if necessary and then click Finish. Rev.
3.1.1.3 Setting with the EPSON TMNet WinConfig CAUTION: Because the same IP address is set for all UB-E02 units in the factory, do not connect more than one UB-E02 whose IP address is not changed from the factory setting. When you set the IP address, connect the UB-E02 to the network and set the IP address one by one. Be sure not to turn off the printer or send printing data to the printer while setting. Do not use the same IP address as that of other network devices or PCs. Windows 95 1.
UB-E02 Technical Reference Guide CAUTION: When you cannot check the MAC address on the label on the UB-E02 that is installed on the printer, be sure to finish the TM Net WinConfig by clicking Close from the Device tab; then turn off the printer and remove the UB-E02 to check it. 4. Double-click the TCP/IP tab. 5. You can acquire the IP address by Auto or Manual setting. ❏ Auto setting: Acquire the IP address, subnet mask, and default gate way from DHCP server. A DHCP server is required.
Note: To confirm the current setting, print out the status sheet. Press down the switch more than 3 seconds in the printable state; then the status sheet is printed out. 6. Click the OK button. 7. Click the OK button again to be sure. 8. Enter the password set in the print server; then click OK. If the password is not set, just click OK without entering the password. CAUTION: After clicking OK, you must not turn off the printer while the new settings are being sent to the UB-E02. 9.
UB-E02 Technical Reference Guide 3.1.2 Setting the IP Address Using the arp/ping Command You can set the IP Address using the arp/ping command. This way of setting is available with the host, which is in the same segment as that of the UB-E02. CAUTION: When setting the IP address of the UB-E02, do not use the same IP addresses as that of other network devices or PCs. Here is an example of setting the IP address to 192.168.100.201.
4. Set the IP address to the UB-E02 using the ping command. • Example: ping 192.168.100.201 5. If the ping command is successful, the message “Reply From 192.168.100.201: Bytes=32Time<10ms TTL=255” is shown. (The time indication will vary.) 6. Check if the IP address shown is 192.168.100.201. Now, setting the IP address is complete. Next, set the default gateway and Subnet mask for the UB-E02, referring to the EPSON TMNet WebConfig Functions. 3-12 Utilities Rev.
UB-E02 Technical Reference Guide 3.2 EPSON TMNet WinConfig Functions This section describes the functions, including options of the EPSON TMNet WinConfig. The main dialog box is shown below. . Item Explanation Tree view The tree structure indicates the printer list. It consists of [All], which indicates everything and [NEW], which indicates the printers newly added. Item You can change the order by clicking on an item.
3.2.1 Menu Bar The table shows each item and its function. Menu Sub Menus Explanation Device Setting Start the setting of the UB-E02 selected Launch Browser Start up the TMNet WebConfig Close Applications Close the TMNet WinConfig Indication Update Find the printers and update the list to show the latest information. Tool Time-out setting Set the time-out for data transmission and reception to 2 to 120 seconds. Find option Set the IP find option.
UB-E02 Technical Reference Guide Search Options If you want to show and set a UB-E02 that is controlled by TCP/IP and is outside the local network, input the specific address in the Search Options to find that UB-E02. The settings and values stored are effective after executing Update in Indication menu or restarting the EPSON TMNet WinConfig. Item Explanation Enabling a specific address search Search for the UB-E02 which is outside the network. IP address Input an IP address to be searched (0 ∼255).
3.2.1.2 Settings Printer You can set the printer name. This also shows printer information. Item Explanation Printer name Set the printer name. Model name Shows the printer model name. Printer ID Shows the printer ID. Printer type Shows the printer type. Version Shows the ROM version. 3-16 Utilities Rev.
UB-E02 Technical Reference Guide Print server You can set administrator information. This also shows the printer server information Item Explanation Administrator name Shows the administrator name. MAC address Set the administrator name. Hardware version Shows the version of the UB-E02. Software version Shows the version of the UB-E02. Rev.
TCP/IP You can set the TCP/IP. Item Explanation Get IP address Auto or Manual is selectable for the UB-E02. Set by PING Check the box if the setting of the UB-E02 by arg/ping is permitted. Subnet mask Set the subnet mask of the IP address. Default gateway Set the gateway. IP address Set the IP address for the UB-E02. 3-18 Utilities Rev.
UB-E02 Technical Reference Guide Password The EPSON TMNet WinConfig can set a password to protect the UB-E02 settings. The screen shown below appears when you click OK or Return to Default. ❏ When you set the password the first time or you change the password, click the Change button. No password is registered until you set one. ❏ When you click the Change button, the screen shown below appears. Input the password (up to 20 single-byte alphanumeric characters) and then click OK.
3.3 EPSON TMNet WebConfig Functions This section explains each function of the EPSON TMNet WebConfig. Note: Launch a browser and input the IP address of the UB-E02. Be sure not to launch the EPSON TMNet WinConfig at the same time. Address: http://(IP address of the UB-E02)/ Note: Be sure to use Microsoft Internet Explorer 5.0 or later. 3.3.1 Opening Screen 3-20 Utilities Rev.
UB-E02 Technical Reference Guide Item Information Configuration Network Configuration Option Rev. A Explanation General Show the UB-E02 information. TCP/IP Show the TCP/IP information of the UB-E02. SNMP Show the SNMP information of the UB-E02. TCP/IP Set the TCP/IP of the UB-E02. Community Set the community. IP Trap 1 Set the IP trap 1. IP Trap 2 Set the IP trap 2. Administrator Set the banner on the opening screen. Password Set the password to protect the network settings.
3.3.2 Protocol Information and Settings 3.3.2.1 General Information Item Interface card Printer 3-22 Utilities Explanation Administrator name Shows the administrator name. Location/Person Shows the location or user name. Model name Shows the name of the interface card. MAC address Shows the MAC address of the UB-E02. Software version Shows the software version of the UB-E02. Hardware version Shows the hardware version of the UB-E02. Printer ID Shows the printer ID.
UB-E02 Technical Reference Guide 3.3.2.2 TCP/IP Information Item Explanation Get IP Address Shows the method of setting the IP address. Set using Automatic Private IP Addressing (APIPA) Shows the APIPA setting. Set using PING Shows the settings of prohibition and permission by the arp/ping command for the UB-E02. IP Address Shows the IP address. Subnet Mask Shows the subnet mask of the IP address. Default Gateway Shows the default gateway. Rev.
3.3.2.3 SNMP Information Item Community IP Trap 3-24 Utilities Explanation Read Only Shows he Read Community information. Read/Write Shows the Read/Write Community information. Trap 1 Shows the Trap 1 information. Address Shows the Trap 1 Address. Community Name Shows the Trap 1 Community Name. Trap 2 Shows the Trap 2 information. Address Shows the Trap 2 Address. Community Name Shows the trap 2 Community Name. Rev.
UB-E02 Technical Reference Guide 3.3.2.4 TCP/IP Setting Item Explanation Get IP Address Select the method of acquiring the IP address. Set using Automatic Private IP Addressing (APIPA) Set APIPA able/disable. Set using PING Select when the setting of the UB-E02 by arp/ping is permitted. IP Address Set the IP address of the UB-E02. Subnet Mask Set the subnet mask of the IP address. Default Gateway Set the default gateway. Rev.
3.3.2.5 SNMP Communication Setting Item Explanation Community Read Only The setting is fixed to “Public.” Read/Write Set the Read/Write Community Name (up to 16 characters). 3-26 Utilities Rev.
UB-E02 Technical Reference Guide 3.3.2.6 SNMP IP Trap 1 Setting Item Explanation Trap Set Trap 1. Address Set the Trap 1 Address. Community Name Set the Trap 1 Community Name. Rev.
3.3.2.7 SNMP IP Trap 2 Setting Item Explanation Trap Set Trap 2. Address Set the Trap 2 Address. Community Name Set the Trap 2 Community Name. 3-28 Utilities Rev.
UB-E02 Technical Reference Guide 3.3.2.8 Administrator Setting Item Explanation Administrator Name Set the administrator name. Location/Person Set the location or user name. Rev.
3.3.2.9 Password Setting Item Explanation Old Password Input the old password. New Password Input the new password. Re-input Password Re-input the new password. 3-30 Utilities Rev.
UB-E02 Technical Reference Guide 3.3.2.10 Reset Item Explanation Reset Resets the UB-E02 to its status when the power was turned on. Factory Default Returns to the factory default settings. Rev.
3.3.2.11 Advanced Item Explanation Physical Layer Setting Set the communication method. 3-32 Utilities Rev.
UB-E02 Technical Reference Guide Chapter 4 Programming Samples This chapter describes the following: ❏ Method of printing to the UB-E02 ❏ Direct printing by PORT9100 ❏ Commands sent to a TM printer when the power is on ❏ Monitoring of the ASB status ❏ The rights of printing ❏ Time-out for connection ❏ Printer operation by UDP commands Rev.
4.1 Method of Printing to the UB-E02 The UB-E02 has lpr protocol as its general print protocol. It is easy to print by using the lpr protocol because the printing is also supported by the operating system. However, the command statuses sent by the printer are ignored because the printing by lpr applies only to the output of the printer. The UB-E02 supports direct printing by TCP PORT9100.
UB-E02 Technical Reference Guide 4.2 Direct Printing by PORT9100 4.2.1 For Windows Console The program is a sample of printing “EPSON UB-E02” to a TM printer with the UB-E02 from the Windows shell, through the ethernet connection. /* TCP9100 programming sample for win32 * HOW TO BUILD * cl wtcp.cpp wsock32.lib */ #include #include
/* send data */ send(sock, "EPSON\n", 6, 0); /* gracefully close */ shutdown(sock, 1);/* SD_SEND */ while (1) { char buf[64]; int n = recv(sock, buf, 64, 0); if (n = SOCKET_ERROR || n == 0) break; } shutdown(sock, 2);/* SD_BOTH */ /* close socket */ closesocket(sock); return 0; } 4-4 Programming Samples Rev.
UB-E02 Technical Reference Guide 4.2.2 For Linux The program is a sample of printing “EPSON UB-E02” to a TM printer with the UB-E02 from Linux, through the ethernet connection. /* TCP00 programming sample for LINUX * HOW TO BUILD * cc ltcp.c */ #include #include
4.3 Commands Sent to a TM Printer When the Power is On When the power is turned on, the UB-E02 transmits the following commands to the TM printer and maintains the statuses. The UB-E02 acquires printer information by GS I and monitors the printer status through the TMNet WebConfig using the GS a 255 command.
UB-E02 Technical Reference Guide 4.7 Printer Operation by the UDP Commands By using the UDP commands, the following information can be received in order to recover from abnormal operations and errors. Function Code Packet Function 03-0000 Q Acquires basic information 03-0010 Q Acquires status 03-0011 C Off-line forced transmission 03-0012 C Reset 03-0013 C Buffer flash 03-0016 C Clears connection time-out timer 4.7.
4.7.2 03-0000 Retrieving Basic Information 4.7.2.1 Reply data Off-set Size Description 14 1 Interface type 15 1 Communication method with TM printer 16 1 Printer ID acquired during a power-on 17 1 Printer type ID acquired during a power-on 18 1 Printer ROM version acquired during a power-on 19 n Printer name character string (128 bytes) 4.7.3 03-0010 Retrieving Status 4.7.3.
UB-E02 Technical Reference Guide 4.7.4 03-0011 Forced Transmission Transmission is done, regardless of the flow control between the TM printer and the UB-E02. 4.7.4.1 Set-up data Off-set Size Description 14 1 Flow control 0: With flow control 1: No flow control (forced transmission) 15 2 Data length (n: maximum: 255) 17 n Data length (maximum: 255) 4.7.4.2 Reply data Off-set Size Description 14 1 Result 0: Normal Except for 0: Failure 15 2 Data length 17 n Data string 4.7.
4.7.6 03-0013 Buffer Flash 4.7.6.1 Reply data Off-set Size Description 14 1 Result 0: Normal Except for 0: Failure ❏ This clears only the buffer of the UB-E02 and cannot clear the receive buffer of the printer. 4.7.7 03-0016 Clearing Connection Time-Out Timer Regularly send commands clearing the connection time-out timer to avoid time-out when data is not sent for a certain period of time. 4.7.7.1 Set-up data None 4.7.7.
UB-E02 Technical Reference Guide 4.7.8 Programming Sample 4.7.8.1 For Windows Console /* UDP3289 programming sample for win32 * HOW TO BUILD * cc wudp.cpp wsock32.lib */ #include #include
buf[11] = 0x00; buf[12] = 0x00; // Parameter length buf[13] = 0x00; /* send a packet */ i = sendto(sock, buf, 14, 0, (struct sockaddr*)&addr, sizeof(addr)); /* receive packet */ fromlen = sizeof(addr); len = recvfrom(sock, buf, MAXBUF, 0, (struct sockaddr*)&addr, &fromlen); /* print receive packet */ if (len) { if ((buf[10] == 0x00) && (buf[11] == 0x00)) for (i = 0; i < len; i++) printf("%3d:%02Xh\n", i, buf[i] & 0xff); } /* close socket */ closesocket(sock); return 0; } 4-12 Programming Samples Rev.
UB-E02 Technical Reference Guide 4.7.8.2 For Linux /* UDP3289 programming sample for LINUX * HOW TO BUILD * cc ludp.c */ #include #include
buf[13] = 0x00; /* send packet */ i = sendto(sock, buf, 14, 0, (struct sockaddr*)&addr, sizeof(addr)); /* receive packet */ fromlen = sizeof(addr); len = recvfrom(sock, buf, MAXBUF, 0, (struct sockaddr*)&addr, &fromlen); /* print receive packet */ if (len) { if ((buf[10] == 0x00) && (buf[11] == 0x00)) for (i = 0; i < len; i++) printf("%3d:%02Xh\n", i, buf[i] & 0xff); } /* close socket */ close(sock); return 0; } 4-14 Programming Samples Rev.
UB-E02 Technical Reference Guide Chapter 5 Specifications The UB-E02 can be installed in the TM-series printers as an interface board to provide 10 Base-T/100 Base-TX communications. EPSON PRINTER WITH UB-E02 EPSON PRINTER Ethernet (10Base-T/100Base-TX) Host PC 5.1 Printer Connection The interface board can be installed in TM-series printers that support the universal interface board system. 5.2 Line Display Connection When the UB-E02 is connected, the DM connector on the TM unit cannot be used.
5.3.2 Printing Functions ❏ Printing by standard protocols (printing of network objects through a device driver ❏ Socket printing by unique socket communications (port 9100 for OPOS) ❏ Supports OPOS/Unimini/JavaPOS 5.3.
UB-E02 Technical Reference Guide 5.4.3 External appearance and connector locations 10BASE-T Ethernet interface connector LED (green) LED (red) Switch 5.5 Software Specifications 5.5.1 Basic Communications Protocols Protocol Application IP, ARP, ICMP, UDP, TCP Basic communications protocols for various functions (used by the following higher-level protocols) 5.5.
5.5.3 Status Inquiry and Setting Protocols Protocol Application HTTP Display module status and make settings by Web browser. SNMP Acquire and set module settings or printer status by custom or general purpose MIB tool. ENPC Acquire and set module settings or printer status by custom setup utility. 5.5.3.1 HTTP ❏ Port number: 80 ❏ User name: EPSON ❏ Password: None ❏ Maximum simultaneous connections: 1 ❏ HTTP version: HTTP/1.1 5.5.3.
UB-E02 Technical Reference Guide ❏ PDU support Get Request Get Next Request Set Request Get Response Trap ❏ Server port number 161 ❏ Trap sending port number 162 5.5.3.3 ENPC ❏ Protocol: UDP/IP ❏ UDP port number: 3289 ❏ Compatible packet types: Probe Initialize Query Setup Notify 5.5.4 Automatic IP Address Assignment Protocols The UB-E02 supports the DHCP and APIPA protocols for automatic IP address assignment.
5.5.4.2 IP Address Assignment by APIPA ❏ Item to acquire: IP Address ❏ Range of address: 169.254.1.0 to 169.254.254.255 Any IP address in the above range that is not used in the same network is assigned. However, communication over the router is not possible when the IP address is set by APIPA. 5.5.4.3 Manual Setting The UB-E02 operates in accordance with the IP address stored in the internal parameter settings. 5-6 Specifications Rev.
UB-E02 Technical Reference Guide 5.5.5 Internal Settings 5.5.5.1 Item List Exclusive utility HTTP Initial value Ref Setting Ref Setting Ref IP address 192.168.192.168 o o o o o Subnet mask 255.255.255.0 o o o o o Gateway address 0.0.0.
5.5.5.2 Internal Parameter Setting Methods 1. Using the exclusive utility. 2. Using a browser 3. Using arp and ping commands (only to set IP address) 5.5.5.3 Setting with Exclusive utility Settings cannot be made by the specified application software when the ENPC protocol is used. A dedicated utility which can set miscellaneous with the ENPC protocol is provided by EPSON. 5.5.5.4 Setting with Browser Setting can be made by an HTTP browser when connected to the module.
UB-E02 Technical Reference Guide 5.5.6 Initializing To initialize the UB-E02 when the power is turned on or reset, the standby period is required for 10 seconds. During this period. All network functions do not work. The waiting time is: When the IP address setting is Manual (Fixed): When the IP address setting is Auto: approximately 6 seconds approximately 13 seconds (It can be longer, depending on the reply time of the host.) 5.5.
5.6 Environmental Specifications Temperature:0 to 50° C {32 to 122° F} Humidity:10 to 90% RH (non-condensing) 5.7 Storage Conditions Temperature: -10 to 50° C {14 to 122° F} ❏ Humidity:10 to 90% RH (non-condensing) 5.
UB-E02 Technical Reference Guide Appendix A Definitions A ASB— Auto Status Back: The feature that allows the printer to send the status information back to the host computer automatically. ARP —Address Resolution Protocol: Protocol which converts IP address to Ethernet address. D Domain—A group of computers administered together. DHCP—Dynamic Host Configuration Protocol: Protocol which administers IP addresses, which operates on the UDP, in the whole network system together.
TCP/IP—Name given to the suite of protocols (including but not limited to TCP and IP) that govern the transmission and services of a network. The TCP indicates a transport layer and the IP indicates an internet layer. TCP port—A logical connection point in the software on a TCP/IP host. U UDP—User Datagram Protocol: a connectionless type of a protocol which is suitable for transferring small packets. A-2 Definitions Rev.
EPSON SEIKO EPSON CORPORATION Printed in Japan