Epson TM-T20II-i Device Data Notification Users Manual - Page 19

Request and Response, Request (Device Use Rights Acquisition Result Notification)

Page 19 highlights

Chapter 3 Request and Response 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) Input Device TM Intelligent Printer 1 : Device Use Rights Acquisition Web server 2 : HTTP Request OK (Device Use Rights Acquisition Result Notification) 2.1 : Create XML from a HTTP Response (Device Control) database or other system 3 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 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). Parameter ID Data Value The ID set with WebConfig (p. 17) ePOS-Device XML format Header POST /Test_DeviceData.php HTTP/1.1 Host: 192.168.192.10 Content-Type: application/x-www-form-urlencoded Content-Length: xxx ID=&Data=local_printerOK 1 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. 19

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

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)
POST /Test_DeviceData.php HTTP/1.1
Host: 192.168.192.10
Content-Type: application/x-www-form-urlencoded
Content-Length: xxx
ID=&Data=<open_device><device_id>local_printer</device_id><code>OK</code>
<data_id>1</data_id></open_device>
Header