UB-E04 TRG en Revd
UB-E04 TRG en Revd
UB-E04 TRG en Revd
Product Overview
This chapter explains features.
Set up
This chapter explains how to connect the
UB-E04 to the TM printer and use it.
Application Development
Information
This chapter explains necessary information
when you develop applications.
Programming Samples
This chapter explains information for
programming.
Product Specifications
This chapter explains product specifications.
Appendix
This chapter explains network parameters
and a comparison of the UB-E03 and UB-E04.
M00091203
Rev. D
Cautions
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.
While every precaution has been taken in the preparation of this document, Seiko Epson Corporation
assumes no responsibility for errors or omissions.
Neither is any liability assumed for damages resulting from the use of the information contained herein.
Neither Seiko Epson Corporation nor its affiliates shall be liable to the purchaser of this product or third
parties for damages, losses, costs, or expenses incurred by the purchaser or third parties as a result of:
accident, misuse, or abuse of this product or unauthorized modifications, repairs, or alterations to this
product, or (excluding the U.S.) failure to strictly comply with Seiko Epson Corporation’s operating and
maintenance instructions.
Seiko Epson Corporation shall not be liable against any damages or problems arising from the use of any
options or any consumable products other than those designated as Original EPSON Products or EPSON
Approved Products by Seiko Epson Corporation.
Trademarks
EPSON, EXCEED YOUR VISION, and ESC/POS are registered trademarks of Seiko Epson Corporation.
Wi-Fi®, WPA™ and WPA2™ are either registered trademarks or trademarks of Wi-Fi Alliance®.
IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used under license.
Android™ is a trademark of Google LLC.
Microsoft® and Windows® are registered trademarks of Microsoft Corporation in the United States, Japan,
and other countries.
All other trademarks are the property of their respective owners and used for identification purpose only.
2
For Safety
Key to Symbols
The symbols in this manual are identified by their level of importance, as defined below. Read the following
carefully before handling the product.
3
Warnings
To avoid risk of electric shock, do not set up this product or handle cables during a
WARNING thunderstorm.
Never insert or disconnect the power plug with wet hands.
Doing so may result in severe shock.
Handle the power cable with care.
Improper handling may lead to fire or electric shock.
* Do not modify or attempt to repair the cable.
* Do not place any heavy object on top of the cable.
* Avoid excessive bending, twisting, and pulling.
* Do not place the cable near heating equipment.
* Check that the plug is clean before plugging it in.
* Be sure to push the plug all the way in.
Be sure to use the specified power source.
Connection to an improper power source may cause fire or shock.
Do not place multiple loads on the power outlet.
Overloading the outlet may lead to fire.
Shut down your equipment immediately if it produces smoke, a strange odor, or
unusual noise.
Continued use may lead to fire. Immediately unplug the equipment and contact
qualified service personnel.
Never attempt to repair this product yourself. Improper repair work can be
dangerous
Never disassemble or modify this product.
Tampering with this product may result in injury or fire.
Do not allow foreign matter to fall into the equipment.
Penetration by foreign objects may lead to fire.
If water or other liquid spills into this equipment, do not continue to use it. Unplug
the power cord immediately and contact qualified service personnel.
Continued use may lead to fire.
Do not use aerosol sprayers containing flammable gas inside or around this
product.
The gas may stagnate and ignite, causing a fire.
4
Cautions
Connecting an outdoor over head LAN cable directly to your product may lead to
CAUTION 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.
Do not connect cables in ways other than those mentioned in this manual.
Doing so may cause product faults or a fire.
Be sure to set this equipment on a firm, stable, horizontal surface.
The product may break or cause injury if it falls.
Do not install the product in a location with excessive humidity or dust.
Excessive humidity and dust may cause equipment damage or fire.
To ensure safety, unplug this product before leaving it unused for an extended
period.
Product Servicing
This product cannot be serviced at the component level. In case of a fault, replace the UB-E04 itself.
Restriction of Use
When this product is used for applications requiring high reliability/safety such as transportation devices
related to aviation, rail, marine, automotive etc.; disaster prevention devices; various safety devices etc.; or
functional/precision devices etc., you should use this product only after giving consideration to including
fail-safes and redundancies into your design to maintain safety and total system reliability.
Because this product was not intended for use in applications requiring 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 make your own judgment on this product’s
suitability after a full evaluation.
5
To prevent the Wireless LAN unit from being removed accidentally by some external force, be sure to
attach the connector cover to TM printers where a connector cover can be installed.
Wireless LAN connections using the Wireless LAN unit have not been confirmed to operate with all
wireless LAN devices, and operation with all wireless LAN devices cannot be guaranteed. Thoroughly
research the specifications of the wireless LAN device you want to connect before using it.
Wireless LAN operations may not be able to connect properly depending on the radio waves of the
surroundings. In particular, wireless LAN operations in ad hoc mode may not connect properly
depending on the combination of the device to be connected. Therefore, be sure to thoroughly check
and evaluate the device before using it.
The UB-E04 cannot use wired LAN and wireless LAN at the same time. If using the wireless LAN, do so
without connecting a LAN cable.
6
Communication data can be received by stealth
A third party may intentionally intercept the radio waves to illicitly read your transmission information,
including the print data output to the printer, e-mail contents, and personal information such as passwords
and credit card numbers.
Illegal access
A third person can access the network and cause damage such as the following:
Stealing of personal information and confidential information (Information leaks)
Stealing the identity of a certain person to transmit illicit information (Identity theft)
Replacing intercepted information and transmitting it (Falsification)
Inserting a computer virus to destroy data or the system (Destruction)
Security Settings
The wireless LAN card and access point have a security settings function to deal with these problems. You
can reduce the possibility these problems will occur by performing security settings before use.
Even with security settings, there is a possibility the security can be breached using
particular methods.
We recommend that you have full understanding regarding security problems and
perform security settings at your own judgment and liability.
Security settings are performed immediately after purchase (Initial setting: WPA2-PSK).
Limitations
You cannot stop the transmission of radio waves. If you need to stop the transmission of radio waves,
turn off the TM printer.
The following limitations exist when using ad hoc mode.
The authentication type cannot be set to WPA2-PSK or WPA2-Enterprise.
When you print the status sheet, even if there is not a device to connect to nearby, the Link Status is
shown as Connect.
The channels that can be set vary by country.
7
About this Manual
Manual Content
The manual is made up of the following sections:
Chapter 1 Product Overview
Chapter 2 Set up
Chapter 6 Appendix
8
Contents
Q For Safety..................................................................................................................3
Key to Symbols............................................................................................................................................................... 3
Warnings .......................................................................................................................................................................... 4
Cautions............................................................................................................................................................................ 5
Q Product Servicing.....................................................................................................5
Q Restriction of Use .....................................................................................................5
Q Wireless LAN Connection ........................................................................................5
Cautions for Use............................................................................................................................................................. 5
Cautions about Interference ..................................................................................................................................... 6
Cautions about Security ............................................................................................................................................. 6
Q About this Manual....................................................................................................8
Aim of the Manual ........................................................................................................................................................ 8
Manual Content ............................................................................................................................................................. 8
Q Contents....................................................................................................................9
Product Overview............................................................................. 13
Q Features ................................................................................................................. 13
Q Parts Name and Function ..................................................................................... 14
LAN connector .............................................................................................................................................................14
LED....................................................................................................................................................................................14
USB Type-A Connector (For connecting Wireless LAN unit) ........................................................................16
Push button...................................................................................................................................................................16
Set up ................................................................................................ 17
Q Set up methods ..................................................................................................... 17
Q Flow of Setup......................................................................................................... 18
Q Printing the status sheet (Check Settings).......................................................... 19
Q Set up using EpsonNet Config ............................................................................. 20
Q Set up using EpsonNet Config (Web version) ..................................................... 21
Q Set up using arp/ping commands........................................................................ 23
Q Initializing.............................................................................................................. 24
Q EpsonNet Config (Web version) ........................................................................... 25
Information Menu.......................................................................................................................................................25
Configuration Menu...................................................................................................................................................26
Optional Menu .............................................................................................................................................................29
Q MAC Address Confirmation .................................................................................. 31
9
Application Development Information .......................................... 33
Q Controlling the Printer ..........................................................................................33
ePOS-Print XML ........................................................................................................................................................... 33
Q Software .................................................................................................................33
Development Kit......................................................................................................................................................... 33
Utilities............................................................................................................................................................................ 33
Others ............................................................................................................................................................................. 34
Downloads .................................................................................................................................................................... 34
Troubleshooting............................................................................... 39
Q No Communication ................................................................................................39
Q Print results are not normal ..................................................................................39
10
Appendix........................................................................................... 47
Q Ethernet and Wireless LAN Shared Settings and Browsable Items................... 47
Q Ethernet Settings and Browsable Items.............................................................. 48
Q Wireless LAN Settings and Browsable Items....................................................... 48
Q UB-E03 and UB-E04............................................................................................... 49
11
12
Chapter 1 Product Overview
Product Overview
This chapter describes the features of this product, as well as the parts name and function of each part.
Features
The UB-E04 is an Ethernet interface board for Epson TM printers.
The features of the UB-E04 are as follows:
Ethernet 1
• 10Base-T, 100Base-TX Ethernet
• Full duplex/half-duplex (Supports auto negotiation)
• Supports Auto-MDIX
Wireless LAN
• You can connect an optional Wireless LAN unit (OT-WL01/OT-WL02/OT-WL06) to the USB Type-A
connector to support wireless LAN.
• It is IEEE802.11a/b/g/n/ac*1 (2.4 GHz band or 5 GHz band) compliant.
• It supports infrastructure mode and 802.11 ad hoc mode*2.
• It also supports WEP (64/128 bit)*2, WPA2-PSK, and WPA2-Enterprise.
Do not connect a device other than the Wireless LAN unit to the USB Type-A
connector.
The combinations of optional wireless LAN unit and firmware version you can use
with this product are as follows.
Wireless LAN Cable Set Firmware Version
CAUTION OT-WL01 earlier than 02.00
OT-WL02 01.10, or 02.10 or later
OT-WL06 01.20 or later, or 02.10 or later
You can perform a firmware update by using the UB-E04 Network Firmware
Updater if using a Windows computer. For details, see "Utilities" on page 33.
Network Function
• It supports TCP/IP protocol.
• It supports DHCP and APIPA.
• It supports ENPC and SNMP. You can use ENPC and SNMP to acquire the printer status.
• It supports IPv4.
13
Setting
• The settings utility, EpsonNet Config, is available. Please download it from the Epson Web site and use it.
• You can use your Web browser to access EpsonNet Config (Web version) to browse and set network
parameters.
• You can use the push button to initialize the current network parameters or print settings.
Others
• It supports the XML print function (ePOS-Print) via HTTP/HTTPS communication.
• It is equipped with a CPU low-power consumption mode.
• It supports IEEE802.3az (Energy Efficient Ethernet: EEE).
LAN connector
LAN connector
You can connect a LAN cable (RJ45 plug) to the LAN connector. When connecting the LAN cable, insert it all
the way until you hear the click.
Do not insert a customer display cable, drawer kick cable, or a general public circuit
CAUTION cable into the LAN connector.
LED
The two LEDs light up in the following situations. However, both are off during the CPU low-power
consumption mode.
14
Chapter 1 Product Overview
15
USB Type-A Connector (For connecting Wireless LAN unit)
You can connect an optional Wireless LAN unit to the USB Type-A connector.
Push button
The push button has the following functions.
Press the push button with a thin object such as a tweezers.
Setting initialization
While holding the push button, turn the printer's power on and continue to hold the push button until the
initialization start message is printed (approx. 10 seconds) to restore all settings to their factory default.
After turning the printer's power on, it can take about 15 to 20 seconds until the UB-E04
functions are enabled. If printing the status sheet, turn the printer on and wait for 20
seconds or longer, then press the push button.
However, in case of the initial bootup after the setting initialization, it may take about 1
minute longer for the initial setting until the bootup.
16
Chapter 2 Set up
Set up
The following explains the procedure for network settings (set up) in order to connect the product to your
network.
For the set up of the optional Wireless LAN unit, see the Wireless LAN unit's manual.
Set up methods
There are three methods for set up.
2
This method involves installing the network configuration tool, EpsonNet Config, on your computer for
setting.
As it does not require any settings in advance to allow set up, you can easily perform set up using a
computer already connected to the network.
To download EpsonNet Config, see "Downloads" on page 34.
17
Flow of Setup
Method 1 Method 2 Method 3
Set up using EpsonNet Change network settings Use arp/ping command to set
Config on setting computer printer IP address
18
Chapter 2 Set up
Push button
2
Example status sheet
After turning the printer's power on, it can take about 15 to 20 seconds until the UB-E04
functions are enabled. Do not start pushing the push button during this time.
19
Set up using EpsonNet Config
Execute EpsonNet Config, select the target printer from the displayed device list, then check and
change the settings.
If the printer is still set to factory defaults, the printer's MAC address is listed up, even if the computer
does not have the same network address.
Download EpsonNet Config from the Epson website.
1 Connect the printer to the same network as the computer where you installed
EpsonNet Config.
4 Change the printer's settings based on the network setting information you
received from the network administrator.
Select an item from the menu and change the setting.
For details about EpsonNet Config, see the manual (operation guide) installed together with
the tool or the online help.
20
Chapter 2 Set up
By factory default, all UB-E04 devices are set to the same IP address (192.168.192.168).
If setting multiple printers for which the IP address has not been changed, turn on one
printer at a time and perform settings. If the power is on for multiple printers on a single
network, they will compete for the IP address and you cannot perform set up.
1 Connect the setting computer and the printer to the same network.
2 Perform network settings on the computer so that it is in the same segment as the
2
printer's IP address.
Subnet mask: Same subnet mask as the printer
IP address: Same segment (same network address) as the printer, different host address
Check the values set in the printer on the status sheet.
E.g.) Printer Setting computer
Subnet mask 255.255.255.0 255.255.255.0
IP address 192.168.192.168 192.168.192.2
3 Start up your Web browser and input the printer's IP address into the address field.
E.g.) http://192.168.192.168
Under initial settings, when you access EpsonNet Config (Web version) from your browser, an
authentication warning message may be displayed.
You can check the firmware version using the printer's status sheet.
You can check the serial number using the printer's self-test or on the manufacturing nameplate
attached to the printer.
The password can be changed in [Password] in the [Optional] setting menu.
21
5 Change the settings based on the network setting information you received from
the network administrator.
Select an item from [Configuration] and change the setting.
7 Click the [Reset] button on the Web page displayed after sending.
The sent contents are enabled.
Depending on the changes, such as the IP address, the connection with the setting computer may be
cut and the EpsonNet Config window may not be displayed. To reconnect, you need to set the net-
work settings of the setting computer to the same network segment as the printer for which settings
were changed.
22
Chapter 2 Set up
1 Delete the IP address you want to set to the printer from the ARP table.
arp -d (IP address)
E.g.) arp -d 192.168.0.10
2 Add the printer's MAC address and the IP address you want to set to the ARP table.
arp -s (IP address) (MAC address)
E.g.) arp -s 192.168.0.10 00-26-AB-7B-00-00
Use EpsonNet Config or EpsonNet Config (Web version) for settings other than the IP address.
23
Initializing
If you become unable to connect to the UB-E04, you can use the following procedure to initialize
settings and restore the device to factory default.
Push button
3 Continue to hold the push button until the initialization start message below is
printed (approx. 10 seconds).
After about 20 seconds, a message notifying the completion of the reset is printed.
24
Chapter 2 Set up
Information Menu
On the Information menu, you can check the following settings. For the details of each protocol or the
settings other than the Information menu, check the Configuration menu.
Basic Information
You can check the items below.
(Administrator name, installation location, interface card model number, MAC address, hardware
version, software version, connected printer name, wireless connection channel, wireless transmission
speed, MAC address of the wireless connection access point, wireless radio wave strength, printer 2
status)
TCP/IP
You can confirm TCP/IP protocol IP address settings.
SNMP
You can confirm SNMP protocol settings.
Bonjour
You can confirm Bonjour protocol settings.
Time Setting
You can confirm SNTP protocol time server settings.
Timeout
You can confirm LPR/Port9100 protocol Timeout duration settings.
ePOS-Print
You can check the ePOS-Print version.
25
Configuration Menu
On the Configuration menu, you can check and set the following items.
Items that can be set vary depending on the type of wireless LAN unit you are using.
Ethernet
You can check and set the communication standard.
(Auto / 10Base-T Half Duplex / 10Base-T Full Duplex / 100Base-TX Half Duplex / 100Base-TX Full Duplex)
Wireless
This is required when using the Wireless LAN unit. You can check and set the following wireless
settings.
• Settings of wireless transmission standards (Auto / 802.11b/g/n)
• Network mode settings (Infrastructure / Ad hoc)
• SSID name input
• Channel setting *Used only in ad hoc mode.
• Encryption code setting (WPA2-PSK / WPA2-Enterprise / WPA-PSK (AES) / WEP (128bit) /
WEP (64 bit) / None)
• WPA Pre-Shared Key setting *WPA wireless password setting
• Default WEP Key selection (Key 1 / 2 / 3 / 4)
• WEP key1 to 4 setting *WEP wireless password setting
• Authentication algorithm setting (OpenSystem / Shared key / Auto)
• Power saving function settings (Disable/Enable)
*If using "WPA2-Enterprise" in the above encryption method, the following settings are required.
• EAP authentication setting (EAP-TLS / PEAP-TLS / PEAP-MSCHAPv2)
• Client-signed certificate (Client-Signed Certificate1 / Client-Signed Certificate2 / Client-Signed
Certificate3)
• User ID input
• Password input
• Server authentication setting (Disable / Enable)
• Server ID input
• CA-signed certificate setting (CA Certificate1 / CA Certificate2 / CA Certificate3 / CA Certificate4 /
CA Certificate5 / CA Certificate6 / CA Certificate7 / CA Certificate8 / CA Certificate9 /
CA Certificate10)
• Anonymous Name -input alias used when establishing communication with RADIUS server
•Encryption strength setting
(Low: AES256-SHA / DES-CBC3-SHA / AES128-SHA / RC4-SHA)
26
Chapter 2 Set up
Security
SSL/TLS
You can check and set the SSL/TLS.
• Selection of the server certificate type
(Selfsigned Certificate / CA signed Certificate1 / CA signed Certificate2 / CA signed Certificate3)
• Encryption strength setting (Medium / Low / High)
• Setting for automatic redirect from HTTP to HTTPS (Enable / Disable)
• Confirmation of each certificate
Authentication
Certificate List
You can check the following items for certificates.
2
• Self-signed certificate setting
• CA signed certificate settings 1 to 3
• CA certificate settings 1 to 10
Certificate Import
You can check and set the following items for certificate imports.
• File format settings (PEM / DER Certification / Password Protection PKCS#12 Certificate)
• File name input
• Password input
* If you import and select an invalid certificate, you will no longer be able to start up EpsonNet Config
(Web version).
In that case, use EpsonNet Config to select a certificate other than the invalid one (for example, a
Selfsigned Certificate), and import the correct certificate with EpsonNet Config (Web version) again.
TCP/IP
IP v4 Address
This sets the IP address when setting the manual.
• Setting for IP address acquisition method (Manual / Auto)
• IP address setting
• Subnet mask address setting
• Default gateway address setting
• APIPA setting (Enable / Disable)
• ARP+Ping setting (Enable / Disable)
DNS/DDNS
This sets the DNS server address (IPv4).
• Setting for automatic acquisition of the DNS server address (Disable / Enable)
27
• DNS server address setting
This sets the host name and domain name.
• Setting for automatic acquisition of the host name and domain name (Disable / Enable)
• Host name input
• Domain name input
• Setting of the function for registering the network I/F address in the DNS server (Disable / Enable)
SNMP
Community
This sets the community name used in notifications. You can set up to 32 ASCII characters.
• Read Only community name fixed as "public" *Cannot be changed
• Read/Write community name input
IP Trap
This sets the IP trap.
IP Trap1
• Trap setting (Disable / Enable)
• Trap address setting
• Community name input
IP Trap2
• Trap setting (Disable / Enable)
• Trap address setting
• Community name input
Bonjour
This sets Bonjour.
• Bonjour setting (Disable / Enable)
• Name input for when using Bonjour*
• Printer name setting for when using Bonjour*
• Installation location input
* You can use upper and lower case alphabet characters, numerals and hyphens, however, only use
upper and lower case alphabet characters for the initial character.
Time Setting
You can check and set the time server.
• Use of time server (Disable / Enable)
• Time server address setting
• Time setting for refresh interval (Can be set between 1 min to 10,080 min) - Default is 60 min.
• Confirmation of time server status (Invalid / Success / Synchronize / Failure)
• Error setting
28
Chapter 2 Set up
Timeout
This sets the timeout time for printing.
• LPR time-out setting - Default is 90 sec.
• RAW (Port9100) time-out setting - Default is 90 sec.
ePOS-Print
You can check and set ePOS-Print.
• Version confirmation
• ePOS-Print setting (Disable / Enable)
• Device ID setting
• Printer type setting (Thermal(180dpi) / Thermal(203dpi) / Impact / Impact(24pin))
• Setting for character code table type
(Page 0)
(Page 0, 2, 16)
2
(Page 0-5, 16-19 (GB2312))
(Page 0-5, 16-19)
(Page 0-5, 16-19, 20-21, 26)
(Page 0-5, 16-19, 20-21, 26, 30-31)
(Page 0-5, 16-19, 20-21, 26, 30-31, 11-15, 32-53)
Advanced Settings
You can check and set the port type and power-saving settings.
• Ethernet Port Type setting (Auto / MDI / MDI-X)
• Energy Efficient Ethernet setting (Disable / Enable)
• Standby setting (Disable / Enable)
Advanced Settings are supported only on firmware version 1.07 and later.
Optional Menu
In the Optional Menu, you can check and set the following items.
Administrator Information
You can set the administrator information. You can set up to 255 ASCII characters.
• Administrator name setting
This is different from the user name used in password authentication. (The user name is fixed to
"epson".)
• Installation location setting
29
Reset
This resets the UB-E04 or returns the network settings to default settings.
Execute the reset when you want to immediately enable settings you changed with EpsonNet Config
(Web
version). However, if you executed [Reset] after executing [Send] on each setting page, this reset is not
required.
This returns the network settings to default settings. This may cause the printer to become unable to
communicate with the web browser.
If a wireless LAN unit is connected, the wireless LAN unit is also reset or returned to default
settings.
Password
This sets the password for EpsonNet Config (Web version). You can set up to 20 ASCII characters
(alphanumeric symbols).
The default setting for the password varies depending on the firmware version.
Firmware version Password
Before 1.25/2.10 to 2.14 "epson"
1.25 to 1.99/2.15 to 2.99 Product serial number (10 alphanumeric characters, case sensitive)
You can check the firmware version using the printer's status sheet.
You can check the serial number using the printer's self-test or on the manufacturing nameplate
attached to the printer.
30
Chapter 2 Set up
31
32
Chapter 3 Application Development Information
ePOS-Print XML
ePOS-Print XML is the Epson original control command system for POS printers defined in XML. With
ePOS-Print XML commands, you can print in environments where http communication is available and
from OS applications. For detailed information about ePOS-Print XML, see the ePOS-Print XML User's
Manual.
To use ePOS-Print XML or SDK for JavaScript, set ePOS-Print to Enable in EpsonNet Config
(Web Version) beforehand. For details about EpsonNet Config (Web Version), see
"EpsonNet Config (Web version)" on page 25.
Software 3
The following software is provided for application development.
Development Kit
Manual Description
ePOS-Print SDK This is a developer kit to control applications, native applications for smart
devices, and printers. This includes libraries, manuals, and sample programs.
for Android
for iOS
for JavaScript
Utilities
33
Software Description Operating environments
UB-E04 Network Firmware This tool allows you to update the firm- Windows
Updater ware for the UB-E04.
Others
Manual Description
ePOS-Print XML User's Manual Describes ePOS-Print XML statements. This manual comes with sample
programs.
Downloads
You can obtain software and manuals from one of the following URLs.
For customers in North America, go to the following web site and follow the on-screen instructions.
www.epson.com/support/
For customers in other countries and regions, go to the following web site:
www.epson-biz.com/
34
Chapter 4 Programming Samples
Programming Samples
This chapter describes information related to programming a TM printer on which the wireless LAN system
is set up.
Printing to a TM printer
The UB-E04 is equipped with LPR protocol as a general printing protocol. It is easy to print by using LPR
because the printing is also supported by the operating system.
However, the command statuses sent by the printer are ignored because the printing by protocols applies
only to output of the printer.
The UB-E04 supports direct printing via the TCP PORT9100. It is possible to control the printer directly by an
application with the ESC/POS commands through writing and reading to the TCP PORT9100.
LPR 4
Host UB-E04 TM printer
TCP PORT9100
35
Direct printing by PORT9100
For Windows Console
The following program is a sample of printing "EPSON UB-E04" to a TM printer with the UB-E04 from the
Windows shell, through the Ethernet connection.
if (argc != 2) {
printf("usage: wtcp <IP_ADDRESS>\n");
exit(1);
}
/* Create socket */
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) {
fprintf(stderr, "Error socket(): %d\n", WSAGetLastError());
exit(1);
}
/* connect */
if (connect(sock, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
fprintf(stderr, "Error connect(): %d\n", WSAGetLastError());
exit(1);
}
printf("connected\n");
/* send data */
send(sock, "EPSON UB-E04\n", 13, 0);
/* gracefully close */
shutdown(sock, 1); /* SD_SEND*/
while(1) {
n = recv(sock, buf, 64, 0);
if (n == SOCKET_ERROR || n == 0 ) {
break;
}
}
shutdown(sock, 2); /*SD_BOTH*/
/* close socket */
closesocket(sock);
return 0;
}
36
Chapter 4 Programming Samples
For Linux
The following program is a sample of printing "EPSON UB-E04" to a TM printer with the UB-E04 from the
Linux shell, through the Ethernet connection.
if (argc != 2) {
printf("usage: ltcp <ip address>\n");
exit(1);
}
/* create socket */
sock = socket(AF_INET, SOCK_STREAM, 0);
if (sock < 0) {
perror("socket()");
exit(1);
}
4
/* connect */
if (connect(sock, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
perror("connect()");
}
printf("connected\n");
/* send data */
send(sock, "EPSON UB-E04\n", 13, 0);
/* close socket */
close(sock);
return 0;
}
37
Monitoring of the ASB Status
The ASB status function of the printer is used for the UB‐E04 to monitor the state of the printer. Therefore,
when the transmission data from the application includes the command to nullify the ASB status function,
the UB‐E04 cannot control the state of the printer.
Take care not to transmit the command to nullify the ASB status function to monitor the state of the printer
correctly by the UB‐E04. Or retransmit the command that makes the ASB status function effective.
In an environment where multiple connection requests occur, if the printing host does not close the
connection and leaves it open even after printing is finished, or the connection is cut off due to some error
without performing close processing, then all other connection requests will not be processed until the
connection time-out occurs.
Arrange the application so that the connection is closed immediately after printing is completed.
You can set the connection time-out using the network configuration tool (EpsonNet Config).
The default is 90 sec.
38
Chapter 5 Troubleshooting
Troubleshooting
This chapter describes the measures for finding and resolving problems.
See the printer Technical Reference Guide for problems related to printing and the printer.
No Communication
Cause Recovery Procedure
Printer cannot recognize UB- If the memory switch or DIP switch of the printer has the "Reset signal to pin
E04. 25" or "Reset signal to pin 31" function, set that function to "Use".
Receive buffer capacity is too Set the receive buffer capacity of the printer setting to "Large".
small
5
39
40
Chapter 6 Product Specifications
Product Specifications
This chapter describes the specifications of the UB-E04.
Software Specifications
Supported Protocols
The UB-E04 supports the following protocols.
Protocol Explanation
IP, ARP, ICMP, UDP, TCP Basic transmission protocols for various functions. (They are used by the
various following higher protocols.)
DHCP, APIPA Protocols used to automatically set information such as the IP address.
Printing Protocols
The UB-E04 uses the following printing protocols.
• LPR: Transfers print data.
6
Port number 515
Maximum simultaneous 6
connections
Number of connections that 1 (Other users must wait until the printing has completed.)
can print
41
• TCP Socket Port: Transfers printing data and printer status by direct socket communications (bi-
directional).
Maximum simultaneous 6
connections
Number of connections that can 1 (Other users must wait until the printing has completed.)
print
DHCP Demands the assignments of the IP address, the subnet mask and the
1
getaway address to the DHCP server and sets them.
Protocol UDP/IP
42
Chapter 6 Product Specifications
Supported PDU type Get Request, Get Next Request, Get Response, Set Request, Trap
Community Each community name can be set with 32 ASCII characters or less.
• ENPC The network configuration tool (EpsonNet Config) and the dedicated driver
software (such as OPOS/APD) use this to acquire and set the TM printer status.
Protocol UDP/IP
• HTTP/HTTPS EpsonNet Config (Web version) uses HTTP/HTTPS protocol on the dedicated Web page
for acquiring and changing the UB-E04's network parameters.
*The default setting for the password varies depending on the firmware version.
Firmware version Password
Before 1.25/2.10 to 2.14 "epson"
1.25 to 1.99/2.15 to 2.99 Product serial number (10 alphanumeric characters, case sensitive)
You can check the firmware version using the printer's status sheet.
You can check the serial number using the printer's self-test or on the manufacturing nameplate 6
attached to the printer.
A password specified by using EpsonNet Config (Web version) can also be used for EpsonNet Config.
43
System Bootup Time
The UB‐E04 requires some bootup time for initializing the system after power‐on or system reset.
The network communication functions are unavailable during system bootup. The required bootup time is
as follows.
When setting the IP address in the Manual mode: Approximately 15 seconds
When setting the IP address automatically with the DHCP server: Approximately 20 seconds
(The value may vary, depending on the response time of the DHCP server.)
In case of after factory shipment or the initial bootup after the setting initialization, it may
take about 1 minute longer for the initial setting until the bootup.
Supported TM Printers
The UB-E04 can be used in combination with the following TM printers.
TM-T88V, TM-T88IV, TM-T70II, TM-L90, TM-U220, TM-U330, TM-H6000IV, TM-H2000
Inquire with your dealer regarding new TM printers not listed above.
Environmental Specifications
Item Specifications
Limitations
The UB-E04 has the following limitations. For limitations on TM printers, see Technical Reference Guides for
TM printers.
TM Printer Settings
• Set the printer receive buffer capacity to "Large".
Communication
• When printing a high volume of data such as graphics, the print speed may be slower.
• For cautions regarding wireless LAN communication, see "Wireless LAN Connection" on page 5.
44
Chapter 6 Product Specifications
45
46
Appendix
Appendix
The following indicates the defaults for the UB-E04 network parameters, if they can be displayed and set
using EpsonNet Config / EpsonNet Config (Web version), and if they are displayed on the status sheet.
47
• Page 0-5, 16-19
• Page 0-5, 16-19, 20-21, 26
• Page 0-5, 16-19, 20-21, 26, 30-31
• Page 0-5, 16-19, 20-21, 26, 30-31, 11-15, 32-53
48
Appendix
UB-E03 UB-E04
10Base-T, 100Base-TX
Communication mode
Communication Full duplex, Half duplex, Auto duplex
function
Communication protocols IP, ARP, ICMP, UDP, TCP, LPR, TCP Socket Port
Automatic IP Address
DHCP, APIPA
Assignment Protocols
Password-protected internal
None Yes
settings
49