Beruflich Dokumente
Kultur Dokumente
00
User's Manual
Rev. A
CAUTIONS
1. 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.
2. The contents of this document are subject to change without notice. Please contact us for the latest
information.
3. While every precaution has taken in the preparation of this document, Seiko Epson Corporation assumes no
responsibility for errors or omissions.
4. Neither is any liability assumed for damages resulting from the use of the information contained herein.
5. 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.
6. 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.
Copyright(C) SEIKO EPSON CORPORATION 2004-2008. All rights reserved.
Trademarks
Microsoft, Windows, Windows Server and Windows Vista are registered trademarks of
Microsoft Corporation in the U.S.A. and other countries.
Contents
CAUTIONS ......................................................................................................................................1
Trademarks ......................................................................................................................................1
1. Overview..............................................................................................................................................1
1.1 About EPSON TMCOMUSB Serial Emulation Driver................................................................1
1.2 Automatic device assignment function.........................................................................................1
2. Operating Environment......................................................................................................................2
3. Installation Procedure ........................................................................................................................3
3.1. Installation ...................................................................................................................................3
3.2 Silent installation..........................................................................................................................4
3.3. Files to be installed ......................................................................................................................6
4. Uninstallation Procedure ...................................................................................................................7
4.1 Uninstallation from the control panel ..........................................................................................7
4.2 Uninstallation by Wizard..............................................................................................................7
4.3 Silent uninstallation .....................................................................................................................8
5. Assignment of Devices to COM Ports.................................................................................................9
5.1. Launch procedure.........................................................................................................................9
5.2 How to interpret the components displayed on the window and their functions .......................9
5.3 Automatic device assignment .....................................................................................................10
5.4 Manual device assignment..........................................................................................................12
5.5 Mixed use of automatic and manual device assignment ...........................................................13
6. Usable Windows APIs .......................................................................................................................14
6.1 List of supported Win32 API.......................................................................................................14
6.2 Serial communication settings and flow control ........................................................................15
6.3 Reception of scanned images ......................................................................................................15
6.4 Calling CloseHandle API during waiting event.........................................................................16
7. Troubleshooting.................................................................................................................................17
7.1 When the port information of TMCOMUSB is corrupt .............................................................17
7.2 When conflict occurs with a COM port used by another driver ................................................17
7.3 Error codes during silent installation ........................................................................................17
8. Restrictions .......................................................................................................................................18
8.1 Restrictions on the emulation driver..........................................................................................18
8.2 Restrictions on COM assignment ...............................................................................................18
8.3 Restrictions on the installer/uninstaller ....................................................................................18
9.TMCOMUSB Revision History .........................................................................................................19
1. Overview
1.1 About EPSON TMCOMUSB Serial Emulation Driver
This driver is a serial-USB conversion driver to make an EPSON TM/BA/EU printer and DM-D Customer
display connected via USB accessible from a POS application through virtual COM ports.
Without making changes in the POS application that controlled devices connected through serial interfaces,
devices connected via USB can be directly controlled with ESC/POS commands.
Example:
COM3 was specified in advance.
PC
POS application
COM3
assigned.
TMCOMUSB
3When Printer A and Printer B are connected at the same time, the first
recognized printer is assigned. When the printer assigned to the port
is disconnected, the other printer will be assigned to that port.
Printer A
Printer B
Replaced
3Note that you can replace the printer even when COM3 is open
during the operation of a POS application.
The automatic device assignment function is available for a single printer and a single Customer display. If
you want to use multiple printers simultaneously, use COM Assignment Tool that comes with
TMCOMUSB Ver.2.00 to perform port assignment.
Rev. A
2. Operating Environment
Supported
operation
systems
Supported
models
USB
environment controller
USB
Use the Microsoft driver stack (standard driver stack on the OS).
driver
Also use the latest Microsoft USB driver stack as much as possible.
stack
Operation is not guaranteed when using any USB driver stack provided by a third
party.
When connection is made via USB 2.0 High Speed, check the file version of the
usbehci.sys of the Microsoft USB driver stack.
USB
5.00.2195.6709 or later
5.1.2600.1243 or later
5.2.3790.1830 or later
6.0.6000.16386 or later
number of
peripherals
to
be
connected
Operating
Applications that controlled an EPSON POS printer with the serial interface with ESC/POS.
application
* TMCOMUSB cannot be supported to controll via OPOS, Java POS, Advanced Printer Driver,
and J9000 Driver. TMCOMUSB cannnot be used together with any of these unsupported
drivers or exclusive drivers for the TM-C100, TM-C600, and TM-S1000 in a single computer.
For example, in a PC where TM-S1000 is running, TM-T88IV cannot be operated through
TMCOMUSB.
Rev. A
3. Installation Procedure
Administrator privileges are required to install TMCOMUSB. For Windows 2000/XP/Server 2003, log in as
a user with administrator privileges. For Windows Vista, it is necessary to upgrade the user status to
administrator privileges when the UAC (User Account Control) dialog box appears.
3.1. Installation
1Check that the devices are not connected to the PC.
2When
TMCOMUSB200aPackageE.exe
is
executed
and
the
license
is
agreed
upon,
TMCOMUSB200aE.exe is generated. Copy that file to the PC to install the driver into.
3Launch TMCOMUSB200aE.exe.
Follow the instructions on the Wizard window to install the TMCOMUSB driver, COM Assignment Tool,
and User's Manual.
4COM port settings
At the end of TMCOMUSB installation, the following window appears:
Rev. A
TMCOMUSB200aPackageE.exe
is
executed
and
the
license
is
agreed
upon,
TMCOMUSB200aE.exe is generated. Copy that file to the PC you want to install the driver into, or
embed it into the installer of an application.
3Execute the installer of TMCOMUSB with any of the following startup options:
TMCOMUSB200aE.exe s1 -TM:COM3
Rev. A
Description
-s1
it does not
does not
-TM:COMx
Specify the TM printer port for automatic device assignment. COM1 to COM32 can
be specified.
- When not using the automatic device assignment function, do not specify the -TM
option. In the above case, make the port settings by using COM Assignment Tool
after installation of TMCOMUSB.
-DM:COMx
-Specify the Customer display port for automatic device assignment. COM1 to
COM32 can be specified.
- When
- You cannot specify the same port number as the one assigned to the TM.
-l
Does not create a log file when installation ends with an error.
-m
Rev. A
Filename
C:Program FilesEPSONTMCOMUSB
(Changeable)
ReadMeE.txt
TMCOMUSB200_User'sManual.pdf
For Win2000
C:WINNTsystem32drivers
For WinXPServer2003Vista
C:Windowssystem32drivers
Shortcut
StartPrograms EPSON TMCOMUSB Serial Emulation Driver
Rev. A
4. Uninstallation Procedure
Administrator privileges are required to uninstall TMCOMUSB. For Windows 2000/XP/Server 2003, log in
as a user with administrator privileges. For Windows Vista, it is necessary to upgrade the user status to
administrator privileges when the UAC (User Account Control) dialog box appears.
Rev. A
2Select Delete EPSON TMCOMUSB Serial Emulation Driver Ver.2.00 and press the Next button.
TMCOMUSB200aE.exe u1
The startup options related to uninstallation are as follows:
Startup options
Description
-u1
-u2
-l
Does not create a log file when uninstallation ends with an error.
-m
For the error codes of the installer, see 7.3 Error codes during silent installation.
Rev. A
5.2 How to interpret the components displayed on the window and their
functions
*
Performs simple printing. This button lets you check device connection.
Delete button
Exit button
[Menu functions]
Port Settings - "Delete All
Rev. A
Lets you restore the setting of all COM ports to the initial COM port settings.
View - "Refresh
View - "Advanced
Help - "Version Information Lets you display the version information of TMCOMUSB.
* With Windows Vista, the column header of the list view is not shown on this screen.
5) Check that the specified device has been assigned to the port.
6) Select a port you want to assign a Customer display to and press the Change Settings button.
Rev. A
7) Select Automatic device assignment and Customer display port and press OK button.
8) Check that the specified device has been assigned to the port and exit COM Assignment Tool.
9) Device connection
1When using a Customer display, connect the modular cable of the Customer display to the TM printer
and keep the power switch of the Customer display turned ON.
2Connect the TM printer to the PC and power ON the TM printer.
3The device can be used by opening the specified port.
10) Device connection check
When COM Assignment Tool is launched, the TM printer/Customer display icons of the port IDs for
which automatic device assignment is specified will be enabled and the serial numbers of the devices will
be displayed. Select an assigned port, press the Test Print button, and perform test printing to check the
device connection.
Rev. A
<Caution>
- Even if the automatic device assignment function is used, when new devices are connected, they are
temporarily assigned to new ports, such as COM6 and COM7, as shown in the following figure; after that,
the ports will be automatically changed to COM4 and COM5, for which automatic device assignment was
specified before. Note that COM6 and COM7 will remain as unavailable ports. Then, more ports will
become also unavailable each time a new device is connected. If all the ports up to COM32 become
unavailable, it is not possible to connect a new device any more. In such a case, take the following
procedure:
<Procedure>
Rev. A
2) To change the port, select an empty port and press the Change Settings button.
Select a device to be assigned to the above port from the list and press the OK button.
3) To use the same port after device replacement, delete in advance the assignment of that port made before
replacement.
1Delete the assignment of the port made before replacement.
2Replace the device and power ON the device replaced with it. The TM printer and Customer display will
be assigned to empty ports.
3Select the port that was assigned before replacement and press the Change Settings button.
Select the device after replacement and press the OK button.
Rev. A
Remarks
CreateFile
- : unsupported
WriteFile
ReadFile
CloseHandle
GetOverlappedResult
Communication API
Remarks
BuildCommDCB
BuildCommDCBAndTimeouts
ClearCommBreak
ClearCommError
CommConfigDialog
EscapeCommFunction
GetCommConfig
GetCommMask
GetCommModemStatus
GetCommProperties
GetCommState
GetCommTimeouts
GetDefaultCommConfig
PurgeComm
SetCommBreak
SetCommConfig
SetCommMask
Rev. A
SetCommState
SetCommTimeouts
SetDefaultCommConfig
SetupComm
TransmitCommChar
WaitCommEvent
= FALSE;
fOutxDsrFlow
= FALSE;
fDtrControl
= DTR_CONTROL_DISABLE;
fDsrSensitivity
= FALSE;
fTXContinueOnXoff = FALSE;
fOutX
= FALSE;
fInX
= FALSE;
fErrorChar
= FALSE;
fNull
= FALSE;
fRtsControl
= RTS_CONTROL_DISABLE;
ReadIntervalTimeout = MAXDWORD,
ReadTotalTimeoutMultiplier = MAXDWORD,
ReadTotalTimeoutConstant = 500,
WriteTotalTimeoutConstant = 0,
WriteTotalTimeoutConstant = 2000,
Rev. A
7. Troubleshooting
7.1 When the port information of TMCOMUSB is corrupt
If EPSON COM Emulation USB Port (COMx) is deleted from Device Manager or if NONE is specified in
the port settings by using the COM Assignment Tool of the past TMCOMUSB, the registry information of
TMCOMUSB may lose integrity. Delete a port with error symbol or restore its initial state by using COM
Assignment Tool, and perform the re-assignment of the device to a port. (Refer to <Caution> of "5.3
Automatic Device Assignment")
7.2 When conflict occurs with a COM port used by another driver
Re-assign the device to an empty port, or either change the COM settings of or uninstall another driver.
Conditions
Normal termination.
101
102
103
104
105
The installer was launched while TMCOMUSB was using COM ports.
106
The same COM port was specified for -TM:COM[xx] and -DM:COM[xx].
107
A port was specified for-DM:COM[xx] when nothing was specified for -TM:COM[xx].
108
When the installer was launched with the -s1 or -s3 option specified, TMCOMUSB of new
version was already installed.
200
Installation failed.
207
Conflict occurred between COM ports, and the automatic assignment of the device to the TM
printer failed.
208
Conflict occurred between COM ports, and the automatic assignment of the device to the
Customer display failed.
Rev. A
300
Uninstallation failed.
1001
8. Restrictions
8.1 Restrictions on the emulation driver
1
When serial I/F is replaced with COMUSB I/F in any of the following conditions, applications need to
be changed.
- For control, when ESC = n is used to switch between the printer and the Customer display
- When using H6000II+UB-U01III/ U 02 III /U03II during reception of image data
- When ESC/POS commands are used to change the communication settings dedicated to serial I/F
In an environment where TMCOMUSB is installed, tools provided by EPSON cannot be used even if
USB I/F is specified for their communication settings. Specify serial ports.
During printing, do not power OFF/ON the printer, or do not remove or connect any cable. In
addition, do not forcibly terminate an application during printing. Doing so could make the system
unstable.
After powering OFF the printer, wait until the driver is unloaded (for approx. 5 seconds) and then
power ON the printer. If the power is turned ON immediately, communication with the printer may
fail. In such a case, power OFF the printer again, wait for approx. 5 seconds, and power ON the
printer.
While devices are running, due to restrictions on the OS side, it may become impossible to turn the
PC into standby or hibernation mode normally. Terminate the print application or power OFF the
devices, and then turn the PC into standby/hibernation mode.
There may be a conflict between the ports assigned to devices or the driver of another manufacturer
and the ports used by TMCOMUSB. In the event of COM port conflict, re-assign COM ports to be
used by TMCOMUSB through COM Assignment Tool.
Do not delete EPSON COM Emulation USB Port (COMx) from Device Manager. If it has been
deleted, you need to launch COM Assignment Tool and delete the assignment of the COM ports
concerned.
For operation of the installer of TMCOMUSB, it is necessary that Internet Explorer Version 4.0 or
over and Windows Installer Version 2.0 or over should be installed.
The installer can run without problems on operation systems supported by TMCOMUSB because
these modules have already been installed there.
If you downgrade the version of TMCOMUSB Ver.2.00 to Ver1.xx, uninstall the installed Ver.2.00
and then install a Ver.1.xx If you don't uninstall Ver.1.xx, the system becomes unstable.
If you mistakenly install Ver. 1.xx on a computer where Ver. 2.00 is already installed, start the
Ver.2.00 installer and execute "Repair EPSON TMCOMUSB Serial Emulation Driver Ver.2.00."
Rev. A
Description
2.00a
1.30a
Added a note regarding the improvement of the scanned data reception performance to the
attached document.
(The content regarding the driver itself is the same as Ver1.30)
1.30
1.00
Rev. A