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

Response (Input Data from Input Device

Page 22 highlights

Response (Input Data from Input Device) Input Device TM Intelligent Printer 1 : Data input occurs Web server 1.1 : HTTP Request (Input Data) HTTP Response (Device Control) 1.1.1 : Create XML from a database or other system The Web server application creates response data as shown below to a HTTP request (Input Data) 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). HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: xxx local_keyboard print 10000 . . \0 local_display display 10000 . . \0 * For the tag, be sure to end the message with "\0". When no device control is required, refer to "Response to Disable Device Control" (p.24). 22

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

22
Response (Input Data from Input Device)
The Web server application creates response data as shown below to a HTTP request (Input Data) 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)
.
TM Intelligent Printer
Input Device
Web server
1 : Data input occurs
1.1 : HTTP Request
(Input Data)
1.1.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>print</type>
<Timeout>10000</Timeout>
<printdata>
.
.
</epos-print>
</printdata>
</data>
</device_data>\0
<device_data>
<device_id>local_display</device_id>
<data>
<type>display</type>
<Timeout>10000</Timeout>
<displaydata>
.
.
</epos-print>
</displaydata>
</data>
</device_data>\0
* For the <device_data> tag, be sure to end the message with "\0".