Académique Documents
Professionnel Documents
Culture Documents
Page 1 4/19/2013
1 NOTES.
The JRE used to create these directions was jre-1_5_0_10. Honeywell JavaPOS driver now is compatible with JavaPOS1.7, JavaPOS1.8, JavaPOS1.9 and JavaPOS1.10
4 How to use RS232 scanner with JavaPOS Driver 4.1 Configuring the Scanner via barcodes
Scan the bar codes on the next page, in the sequence given, to configure the scanner. (Note: if you have a Stratos scanner, use one of the bar codes on page 3, instead of the ones on the other pages.)
Page 2 4/19/2013
JavaPOS configuration bar codes: (scan in order, left column, then right column)
Recall Defaults
9 9 9 9 9 8
Enable RS232
4 1 5 5 5 4
If you have a Stratos Scanner/scale, scan ONE of the following bar codes to configure your scanner:
Page 3 4/19/2013
Scanning the following bar code will configure a single-cable Stratos for Metrologic OPOS/JPOS Single Cable RS232 Mode English.
JPOS English
9 9 9 9 5 8
Scanning the following bar code will configure a single-cable Stratos for Metrologic OPOS/JPOS Single Cable RS232 Mode Metric.
JPOS Metric
9 9 9 9 5 7
Page 4 4/19/2013
3. Modify the jpos.xml based on your JavaPos version/Scanner model/COM PORT. 4. Sample jpos.xml file content
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE JposEntries PUBLIC "-//JavaPOS//DTD//EN" "jpos/res/jcl.dtd"> <JposEntries> <!--Saved by JavaPOS jpos.config/loader (JCL) version 2.2.0 on 8/13/07 4:29 PM--> <JposEntry logicalName="MetroScannerRS232"> <creation factoryClass="com.honeywell.javapos.so.MetroScannerServiceFactory" serviceClass="com.honeywell.javapos.so.MetroScanRS232v19"/> <vendor name="Honeywell Scanning and Mobility" url="http://www.honeywellaidc.com"/> <jpos category="Scanner" version="1.7"/> <product description="Honeywell bar code scanner" name="Focus/1690" url="http://www.honeywellaidc.com"/> <!--Other non JavaPOS required property (mostly vendor properties and bus specific properties i.e. RS232 )--> <prop name="portName" type="String" value="COM1"/> <prop name="Interface" type="String" value="RS232"/> <prop name="dataBits" type="String" value="8"/> <prop name="Model" type="String" value="Focus/1690"/> <prop name="parity" type="String" value="None"/> <prop name="flowControl" type="String" value="None"/> <prop name="stopBits" type="String" value="1"/> <prop name="deviceBus" type="String" value="RS232"/> <prop name="baudRate" type="String" value="9600"/> <prop name=USBSerial type=String value=no/> <prop name=ConnectionDetectRS232 type=String value=true/> <!above property is used to enable checkHealth(), and direction(BELL) commands --> </JposEntry> </JposEntries>
5 How to use IBM OEM USB scanner with JavaPOS Driver 5.1 Configuring the Scanner via barcodes
Scan the bar codes below, in the sequence given, to configure the scanner to HID mode. JavaPOS configuration bar codes: (scan in order, left column, then right column)
Recall Defaults
9 9 9 9 9 8
FSUSB
3. Modify the jpos.xml based on your JavaPos version/Scanner model/Interface. 4. Sample jpos.xml file content
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE JposEntries PUBLIC "-//JavaPOS//DTD//EN" "jpos/res/jcl.dtd"> <JposEntries> <!--Saved by JavaPOS jpos.config/loader (JCL) version 2.2.0 on 8/13/07 4:29 PM--> <JposEntry logicalName="MetroScannerFSUSB"> <creation factoryClass="com.honeywell.javapos.so.MetroScannerServiceFactory" serviceClass="com.honeywell.javapos.so.MetroScanFUSBv19"/> <vendor name="Honeywell Scanning and Mobility" url="http://www.honeywellaidc.com"/> <jpos category="Scanner" version="1.7"/> <product description="Honeywell bar code scanner" name="Focus/1690" url="http://www.honeywellaidc.com"/> <!--Other non JavaPOS required property (mostly vendor properties and bus specific properties i.e. RS232 )--> <prop name="hasScale" type="String" value="0"/> <prop name="model" type="String" value="Focus/1690"/> <prop name="interface" type="String" value="Full Speed USB"/> <prop name="productID" type="String" value="0x0009"/> </JposEntry> </JposEntries>
Page 6 4/19/2013
6 How to use USB Serial scanner with java pos driver 6.1 Configuring the Scanner via barcode
Scan following barcode to send the scanner in USB Serial interface
3. Modify the jpos.xml based on your JavaPos version/Scanner model/COM PORT. 4. Sample jpos.xml file content shown below.
Page 7 4/19/2013
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE JposEntries PUBLIC "-//JavaPOS//DTD//EN" "jpos/res/jcl.dtd"> <JposEntries> <!--Saved by JavaPOS jpos.config/loader (JCL) version 2.2.0 on 8/13/07 4:29 PM--> <JposEntry logicalName="MetroScannerRS232"> <creation factoryClass="com.honeywell.javapos.so.MetroScannerServiceFactory" serviceClass="com.honeywell.javapos.so.MetroScanRS232v19"/> <vendor name="Honeywell Scanning and Mobility" url="http://www.honeywellaidc.com"/> <jpos category="Scanner" version="1.7"/> <product description="Honeywell bar code scanner" name="Focus/1690" url="http://www.honeywellaidc.com"/> <!--Other non JavaPOS required property (mostly vendor properties and bus specific properties i.e. RS232 )--> <prop name="portName" type="String" value="COM1"/> <prop name="Interface" type="String" value="RS232"/> <prop name="dataBits" type="String" value="8"/> <prop name="Model" type="String" value="Focus/1690"/> <prop name="parity" type="String" value="None"/> <prop name="flowControl" type="String" value="None"/> <prop name="stopBits" type="String" value="1"/> <prop name="deviceBus" type="String" value="RS232"/> <prop name="baudRate" type="String" value="9600"/> <prop name=USBSerial type=String value=no/> </JposEntry> </JposEntries>
Eaample code for using Bell command in an application: try { String ret[] = new String[1]; Scanner.DirectIO(30,null,ret); } catch(Exception e){} For using checkHealth() method following is an example: try{ Scanner.checkHealth(JposConst.JPOS_CH_INTERNAL); Scanner.getCheckHealthText(); } catch(Exception e){} checkHealth() method should be called after OPEN,CLAIM,Enabeling the device. getCheckHealthText(); can be called after OPEN method call. Call to Scanner.DirectIO can be made after OPEN call. However Bell will not ring so one will have to call OPEN, CLAIM methods to actually hear the bell.
Page 8 4/19/2013
Following is the example to enable extended ascii characters <prop name="EnableExtendedASCII" type="String" value="True"/> Following is the example to disable extended ascii characters <prop name="EnableExtendedASCII" type="String" value="False"/>
Also to support Check Health / BEL Functionality we need to have the above entry in jpos.xml. The scanner should be configured to support response to I Command. Also to support BEL command you need to configure the scanner as shown in figure 9.0. To enable Check Health/BEL Command One needs to do the following sequence of steps:
Page 9 4/19/2013
Metro Set->Operation ->Host Control-> Check Support beep on BEL and Transmit Metrologic on I Check box.
figure 9.0
Page 10
4/19/2013
11 Enable Logging
Instructions to use "logfile" tag to enable logging for the data received from the scanner. eg. Entry : <prop name="logfile" type="String" value="c:\LogFolder\JPOS.txt"/> Above entry tells the JPOS driver to send logging data to file JPOS.txt in directory c:\LogFolder. If LogFolder does not exit in C:\ drive then it will get created. Eg. Entry : <prop name="logfile" type="String" value="JPOS.txt"/> If only file name is specified as value then a file by the name of JPOS.txt will be created in the current folder. If "logfile" entry is not present in jpos.xml or its value is empty string, JPOS Driver will not log any data.
Page 11
4/19/2013