User manual

Scale Direct IO Commands
User Manual
25
Scale Direct IO Commands
The scale supports a number of Direct IO commands that allow access to
the commands available on the OEM/IBM USB interface which are not
directly supported by UPOS. Applications may utilize the Direct IO com-
mands by acc
essing the Direct IO Method with the appropriate argum
ents,
as detailed below. For a complete list of
commands and implementation
details, see DR90000351, Datalogic UPOS DirectIO Commands (available at
www.datalogic.com).
Table 6. OEM/IBM USB Direct IO Scale Commands
Scale Command Cmd int[] data Object object
Reset 21 None None
Enable extended status 22 Output: 3 byte status Output: Status string
Disable extended status 23 Output: 2 byte status
Output: Status string
Configure scale 24 Output: 2 or 3 byte status
Input: Configuration string
Output: Status string
Report configuration 25 Output: 2 or 3 byte status Output: Configuration string
Scanner and Device Service Configuration
For the JavaPOS device services to work properly with a Datalogic scanner, it
is crucial that interface-specific configuration items in the device service
and scanner match. This restriction does not apply for the OEM USB inter-
face, as there are no user-configurable items specific to this interface.
Howev
er, the RS-232 Standard and RS-232 Single Cable have many config-
uration items that must be coordinated. The listing below for
each of these
interfaces describes the specific items and their relationships.
Scanner configuration is controlled throug
h the scanner’s configuration file,
which is loaded into the scanner at the factory. Specific configuration items
can be changed by using special programming label barcodes available in
the product manual.
Device Service configuration is controlled through the jpos.xml file, accessi-
ble in the Program
files\D
atalogic\JavaPOS directory under Windows.
Default values are shown in the table below. These values can be edited
using the JER Editor to conform to the scanner values.
Table 7
Scanner configuration item JavaPOS XML configuration item
Baud rate Baudrate
Parity Parity
Data bits Databits
Stop bits Stopbits
. RS-232 Standard Configuration