Epson TM-T88V-i with VGA or COM User manual

Category
Print & Scan
Type
User manual

This manual is also suitable for

Device Data Notification
User’s Manual
M00084500
Rev.A
Overview
Sample Program
Request and Response
Describes the operating environment and system config-
uration for Device Data Notification.
Describes how to use the sample program and how to
configure the system.
Describes the requests and responses in Device Data
Notification.
2
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 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 is a registered trademark of Seiko Epson Corporation.
Exceed Your Vision is a registered trademark or trademark of Seiko Epson Corporation.
Windows
and Internet Explorer
are either registered trademarks or trademarks of Microsoft Corporation in
the United States and other countries.
All other trademarks are the property of their respective owners and used for identification purpose only.
© Seiko Epson Corporation 2014. All rights reserved.
3
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.
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.
Provides information that must be observed to avoid damage to your equipment or a
malfunction.
Provides important information and useful tips.
4
About this Manual
Aim of the Manual
This manual presents information that is necessary information for using the TM-Intelligent.
The TM-Intelligent series in this manual is a generic term for the TM-i series.
The TM-i series in this manual is a generic term for the following printers.
Manual Content
The manual is made up of the following sections:
TM-T88V-i TM-T70-i TM-T20II-i TM-T82II-i TM-T83II-i
Chapter 1 Overview
Chapter 2 Sample Program
Chapter 3 Request and Response
5
Contents
For Safety .............................................................................................................................. 3
Key to Symbols ....................................................................................................................................... 3
Restriction of Use .................................................................................................................. 3
About this Manual................................................................................................................ 4
Aim of the Manual ................................................................................................................................. 4
Manual Content .................................................................................................................................... 4
Contents................................................................................................................................ 5
Overview ........................................................................................7
Overview of Device Data Notification ............................................................................... 7
Operating Environment ....................................................................................................... 8
How to Access the Web server ............................................................................................................ 8
TM Intelligent Printer............................................................................................................................... 8
Input Device ........................................................................................................................................... 8
Control Device ....................................................................................................................................... 9
Contents In the Package................................................................................................... 10
Manual.................................................................................................................................................. 10
Sample Program .................................................................................................................................. 10
Download ............................................................................................................................................. 10
Sample Program ..........................................................................11
Overview............................................................................................................................. 11
Hardware Configuration ..................................................................................................................... 11
File Configuration................................................................................................................................. 12
Printing Result ....................................................................................................................................... 12
Program Flow........................................................................................................................................ 13
Environment Settings.......................................................................................................... 14
Sample Program Configuration ......................................................................................................... 15
TM Intelligent Printer Settings .............................................................................................................. 16
Execution of Sample Program .......................................................................................... 18
6
Request and Response ...............................................................19
Request (Device Use Rights Acquisition Result Notification).......................................... 19
Response (Device Use Rights Acquisition Result Notification)....................................... 20
Request (Input Data from Input Device) .......................................................................... 21
Response (Input Data from Input Device) ....................................................................... 22
Request (Device Control Execution Result) ..................................................................... 23
Response (Device Control Execution Result) .................................................................. 24
Response to Disable Device Control................................................................................ 24
7
Chapter 1 Overview
1
Overview
This chapter provides the overview of Device Data Notification.
Overview of Device Data Notification
Device Data Notification is a function used to post the data input from the input device that is connected
to the TM intelligent printer to the designated URL of the Web server. The Web server application performs
device control, such as printing and displaying information on the customer display, by including print data
in ePOS-Device XML format and device control into the response to a request from the TM intelligent printer.
1 : When a data input occurs, for example, when an operator reads a barcode with the barcode reader,
the input device sends the input data to the TM intelligent printer.
2 : The TM intelligent printer formats the input data received from the input device and sends the data to
the Web server application (POST).
3 : Triggered by the input data, the Web server application generates device control data in ePOS-Device
XML format from database or other system and returns a response to the request from the TM intelligent
printer.
4 : The TM intelligent printer sends the device control data to the device.
5 : The TM intelligent printer sends the result of device control to the Web server.
2
3
4
5
1
Web server
Application
TM Intelligent Printer
Input Device
Device Control
8
Operating Environment
How to Access the Web server
TM Intelligent Printer
TM-T88V-i (TM-i firmware Ver.4.1 or later)
TM-T70-i (TM-i firmware Ver.4.1 or later)
TM-T20II-i (TM-i firmware Ver.4.1 or later)
TM-T82II-i (TM-i firmware Ver.4.1 or later)
TM-T83II-i (TM-i firmware Ver.4.1 or later)
Input Device
The following devices can be designated as the input device for Device Data Notification:
Key input device (keyboard, barcode scanner, etc.)
Serial communication device
Communication box in the TM intelligent printer
How to access TM-i
Proxy server
Proxy authentication
Digest authentication
HTTPS communication
HTTPS communication with server authentication
For details about how to check the version of TM-i Firmware, refer to the Technical Reference
Guide for each printer.
9
Chapter 1 Overview
1
Control Device
The following devices can be designated as the control device for Device Data Notification:
Main printer of the TM intelligent printer
TM printer
*
Customer display
Serial communication device
Communication box in the TM intelligent printer
*
: Available TM printers are different depending on the TM-i Firmware version in the TM intelligent printer.
For details, refer to Technical Reference Guide for each printer.
The device designated as the input device or control device is locked with exclusive lock by
Device Data Notification. Therefore, the designated device cannot be controlled by ePOS-
Device SDK or ePOS-Device XML.
10
Contents In the Package
Manual
Device Data Notification User's Manual (This Document)
Technical Reference Guide for each printer
ePOS-Device XML User's manual
Sample Program
Download
For customers in North America, go to the following web site:
http://www.epsonexpert.com/ and follow the on-screen instructions.
For customers in other countries, go to the following web site:
https://download.epson-biz.com/?service=pos
File name Description
DDN_Sample_Vxxx.zip Sample program for Device Data Notification
Test_DeviceData.php Sample program file
README.txt Readme file
11
Chapter 2 Sample Program
2
Sample Program
This chapter describes how to use the sample program for Device Data Notification.
Overview
The sample program that uses PHP can be registered to the Web server and be operated.
When a barcode is read with the scanner, the TM intelligent printer sends a request containing barcode
data to the sample program in the Web server. The sample program sends response data containing print
data in ePOS-Device format and display data. The main printer of the TM intelligent printer prints a coupon
and displays a message on the customer display.
Hardware Configuration
The system configuration of the sample program is as shown below.
Web Server
Router
TM Intelligent Printer
Scanner
Customer display (Use of the customer display is optional.)
The figure below also shows IP address examples for the network settings.
TM Intelligent Printer
(TM-T88V-i)
[192.168.192.20]
Customer display
[local_display]
Scanner
[local_scanner]
Web Server
[192.168.192.10]
12
File Configuration
Printing Result
File Name Description
Test_DeviceData.php
The server returns a response containing print data when the
printer sends a request.
Coupon
Lunch
10% OFF
Expiration Date : 11/11/2014
1111111111111
2 2 2 2 2 2 2 2 2 2 2 2 2
Discount Coupon
13
Chapter 2 Sample Program
2
Program Flow
The flow from the initial display to the print completion of the sample program is as shown below.
3. Returning the print data/customer display data to the printer
2. Sending the data read with the scanner to the Web server
1. Reading a barcode with the scanner
4. Printing the data and displaying a message on the customer display
5. Sending the print result/customer display result to the Web server
14
Environment Settings
The environment setting flow of the sample program is as shown below.
1. Router Settings
Set information such as SSID, IP address, DHCP and allocated IP address. For details, see
the manual for each device.
1. Web Server Configuration
Configure IIS and XAMPP in the computer.
2. Sample Program Configuration (p.15)
Save the sample program files in the computer.
2. Web Server Settings
3. Network Settings
Configure the network settings such as IP address to the computer.
3. TM Printer Network Settings
Configure the network settings such as IP address to the TM printer to be connected.
Configure the network settings such as IP address to the printer by using EPSON TMNet
WebConfig from a Web browser on the setup computer.
For the configuration procedure, refer to the Technical Reference Guide for each TM
printer.
15
Chapter 2 Sample Program
2
Sample Program Configuration
Save the sample program files to the Web server.
Save the files directly under the following folders:
Environment Folder Saved File
IIS inetpub\wwwroot
Test_print.php
XAMPP xampp\htdocs
4. TM Intelligent Printer Settings (p.16)
1. IP Address Setting
Set the IP address.
For details on how to set, refer to Technical Reference Guide for each printer.
4. Device Data Notification Settings (p.17)
Configure the Device Data Notification settings.
3. Register the Devices (p.16)
Register the scanner and customer display.
2. Register the TM Printers
Register the TM printer to be used for printing. Not required for the sample program.
16
TM Intelligent Printer Settings
Register the Devices
Register the scanner and customer display using EPSON TMNet WebConfig.
1
Turn off the TM intelligent printer and connect the scanner and customer display.
Then, turn on the TM intelligent printer.
2
Start the Web browser on the setup computer and enter as follows:
http://[IP address of the TM-i]/webconfig/
3
EPSON TMNet WebConfig starts.
4
Register the scanner.
Select [configuration] - [Web Service Settings] - [Device Admin] - [Device Registration]
- [Key Input Device].
5
The “Key Input Device” screen appears.
Set the following items and click [Apply].
6
The scanner is added to the registered key input devices.
Click [Operating test] and check whether the registered scanner operates
properly.
7
Register the customer display.
Select [configuration] - [Web Service Settings] - [Device Admin] - [Device Registration]
- [Customer Display].
8
The "Customer Display" screen appears. Set the following items and click [Apply].
Item
Description
Device ID Set the device ID. Enter "local_scanner".
Device name
Confirm that the connected scanner is selected.
Control script Set the control script. Select "Scanner_Generic.js".
Item Description
Customer Display Select [Use].
Communication
settings
Communication
speed (bps)
Set the communication speed.
Select the communication speed according to the
customer display.
Data bit
Set the data bit.
Select the data bit according to the customer display.
Parity
Set the parity.
Select the parity according to the customer display.
Brightness setting Set the brightness. Select the brightness as desired.
17
Chapter 2 Sample Program
2
9
The customer display is registered.
Click [Test display] and check whether the registered customer display operates
properly.
Device Data Notification Settings
Configure the Device Data Notification settings using EPSON TMNet WebConfig as follows:
1
EPSON TMNet WebConfig starts.
Select [configuration] - [Web Service Settings] - [Server Access] - [Device Data Notification].
2
The "Device Data Notification" screen appears. Set the following items and click
[Apply].
The device ID of the customer display is "local_display".
Item Description
settings
Device Data Notification
Select [Enable].
Server Access
ID
Set this item to use HTTP digest authentication or to identify
the main printer from the server.
Not required for the sample program.
Password
Set this item to use HTTP digest authentication.
Not required for the sample program.
URL
Enter the URL of the Device Data Notification destination
(sample program). Enter as follows:
http://[IP address of the Web server]/Test_DeviceData.php
After entry, check whether the URL is correct. Click [Access
Test].
Server
Authentication
Set this item to perform server authentication with the
registered certificate during access with https.
Not required for the sample program.
Box ID
Specify the box ID of the communication box to be
controlled by the Device Data Notification function.
To use the communication box by the Device Data
Notification function, set the member ID for sending data to
the communication box as ""(null).
Not required for the sample program.
POST Error
Print Message
To print an error message when POST to the server fails,
select [Enable].
Message Text
Enter the character string to be printed when POST to the
server fails.
Text Attributes
Set the character decoration for message. Select the
character decoration to be used. The following decorations
are available:
Bold /Underline /Double width /Double height /Reverse
black and white /Upside down
Cut
To cut the paper after printing an error message, select
[Enable].
18
Execution of Sample Program
1
Confirm that Device Data Notification is enabled using EPSON TMNet WebConfig.
2
Read a barcode using the scanner connected to the TM intelligent printer.
3
To the request from the TM intelligent printer, print data is returned as a response
and a coupon is printed from the printer. A message is displayed on the customer
display.
Capture Device
Device
Select the device to be used.
For the sample program, select the following items:
local_printer
local_display
local_scanner
Item Description
19
Chapter 3 Request and Response
3
Request and Response
This chapter describes data inputs from the input device, requests from the TM intelligent printer, and
responses from the Web server.
Request (Device Use Rights Acquisition Result Notification)
When the TM intelligent printer is turned on, or when the Device Data Notification settings are changed with
EPSON TMNet WebConfig, the TM intelligent printer executes <open_device> in ePOS-Device XML to
enable the device designated as the input/control device, formats the result in ePOS-Device XML format,
and sends a HTTP POST request as shown below.
The format of request message is URL-encoded form data (application/x-www-form-urlencoded). Set the
sending destination according to "Device Data Notification" (p. 17).
TM intelligent printer sends one HTTP request (Device Use Rights Acquisition Result Notification) to the Web
server for each device. Therefore, when multiple devices are set as the target device for Device Data
Notification, multiple HTTP requests (Device Use Rights Acquisition Result Notification) are sent to the Web
server.
Parameter Value
ID The ID set with WebConfig (p. 17)
Data ePOS-Device XML format
OK
TM Intelligent Printer
Input Device
Web server
1 : Device Use Rights Acquisition
2 : HTTP Request
(Device Use Rights Acquisition
Result Notification)
2.1 : Create XML from a
database or
other system
HTTP Response
(Device Control)
20
Response (Device Use Rights Acquisition Result Notification)
The Web server application creates response data as shown below to a HTTP request (Device Use Rights
Acquisition Result Notification) and returns it to the TM intelligent printer. This data contains device control
data.
The format of response message is ePOS-Device XML(text/xml).
When no device control is required, refer to "Response to Disable Device Control" (p.24).
OK
TM Intelligent Printer
Input Device
Web server
1 : Device Use Rights Acquisition
2 : HTTP Request
(Device Use Rights Acquisition
Result Notification)
2.1 : Create XML from a
database or
other system
HTTP Response
(Device Control)
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: xxx
<device_data>
<device_id>local_keyboard</device_id>
<data>
<type>setprefix</type>
.
.
</data>
</device_data>\0
* For the <device_data> tag, be sure to end the message with "\0".
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24

Epson TM-T88V-i with VGA or COM User manual

Category
Print & Scan
Type
User manual
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI