Epson TM-H6000IV-DT ePOS-Device XML Users Manual - Page 39
Communication Data Example
View all Epson TM-H6000IV-DT manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 39 highlights
Chapter 3 Programming Guide Communication Data Example Examples of communication data between the application and ePOS-Device are as shown below, where the NULL character is indicated as "\0". Applications ePOS-Device Description Establishment of TCP/IP connection sock3514555410 2 "\0" Establishment of connection "\0" Acquisition of OK the administrator information. ep-admin Counter01 keyboard01 "\0" Device open 3 type_keyboard true "\0" keyboard01 OK 1 "\0" keyboard01 setprefix 49 50 51 "\0" Device control 39
39
Chapter 3
Programming Guide
3
Communication Data Example
Examples of communication data between the application and ePOS-Device are as shown below, where
the NULL character is indicated as "\0".
Applications
ePOS-Device
Description
Establishment of TCP/IP connection
Establishment
of connection
<connect>
<data>
<client_id>sock3514555410
</client_id>
<protocol_version>2
</protocol_version>
</data>
</connect>"\0"
<admin_info></admin_info>"\0"
Acquisition of
the
administrator
information.
<admin_info>
<code>OK</code>
<data>
<admin_name>ep-admin</admin_name>
<location>Counter01</location>
</data>
</admin_info>"\0"
<open_device>
<device_id>keyboard01</device_id>
<data>
<type>type_keyboard</type>
<buffer>true</buffer>
</data>
</open_device>"\0"
Device open
<open_device>
<device_id>keyboard01</device_id>
<code>OK</code>
<data_id>1</data_id>
</open_device>"\0"
<device_data>
<device_id>keyboard01</device_id>
<data>
<type>setprefix</type>
<keycode>49</keycode>
<keycode>50</keycode>
<keycode>51</keycode>
</data>
</device_data>"\0"
Device control