Select your printer model

Parameters are refined by the selected printer.

<device_data>


Sends and receives data to and from a device and controls various devices.

Sends device control commands as well as print or display data in requests, acquires device control result, events which occurred, and input data from devices in responses, and notifies the application of the responses.

Request

Element

Data type

Description

sequence

string

Specifies an arbitrary figure used to identify the request message upon a transmission error.

device_id

string

Specifies an opened device ID.

data

string

Specifies data to control the device.

Sample program

 
<device_data>
	<sequence>123</sequence>
	<device_id>poskeyboard001</device_id>
	<data>
		<type>setprefix</type>
		<keycodes array="true">49</keycodes>
		<keycodes>50</keycodes>
		<keycodes>51</keycodes>
		<keycodes>52</keycodes>
	</data>
</device_data>

Response

Element

Data type

Description

sequence

string

Fixed to "0”

device_id

string

Device ID which generated data

data

string

Generated data

data_id

int

One of the following values is set depending on the value set in <buffer> of the <open_device> message.

  • true: ID of sent data
  • false: Null string

Sample program

 
<device_data>
	<sequence>0</sequence>
	<device_id>poskeyboard001</device_id>
	<data>
		<type>onstring</type>
		<input>&amp;2398749238429</input>
		<prefix>49</prefix>
	</data>
	<data_id>2</data_id>
</device_data>

Supplementary explanation

  • The figure specified in the child element sequence will be passed to sequence of the <error> message when a transmission error occurs.
  • The contents of the data element are defined for each device type. Refer to Device Messages for details.
  • When specifying DeviceHubTerminal in the child element type of data, specify local_dt in device_id.
  • When specifying CustomerDisplay in the child element type of data, specify local_display in device_id.
  • When specifying storage in the child element type of data, specify local_TSE in device_id.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ePOS-Device XML includes patented or patent pending functions. The contents must not be disclosed to third parties.


ePOS-Device XML

Jump to the top