|
|
dkml | Barcode Reader |
<dkml> examples |
Barcode Reader Attributes Elements XML Reference |
<dkml> example from the adapter_test.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<adaptertest id="BarcodeReaderAdapterTest" packagebase="org.eclipse.soda.dk">
<description>Standard Barcode Reader Test</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<adapter idref="org.eclipse.soda.dk.barcode.reader.adapter/dk/adapter.xml#BarcodeReaderAdapter"/>
<testcase/>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</adaptertest>
</dkml>
<dkml> example from the adapter.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<adapter id="BarcodeReaderAdapter" packagebase="org.eclipse.soda.dk"
executionenvironments="OSGi/Minimum-1.1">
<description>Standard Barcode Reader</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<incubation>true</incubation>
<!-- Protocol Specification -->
<spec id="Specification"/>
<device idref="org.eclipse.soda.dk.barcode.reader.device/dk/device.xml#BarcodeReaderDevice"/>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</adapter>
</dkml>
<dkml> example from the device_test.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<devicetest id="BarcodeReaderDeviceTest" packagebase="org.eclipse.soda.dk">
<description>Standard Barcode Reader Test</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<device idref="org.eclipse.soda.dk.barcode.reader.device/dk/device.xml#BarcodeReaderDevice"/>
<testcase/>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</devicetest>
</dkml>
<dkml> example from the device.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<device id="BarcodeReaderDevice" packagebase="org.eclipse.soda.dk"
executionenvironments="OSGi/Minimum-1.1">
<description>Standard Barcode Reader</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<incubation>true</incubation>
<!-- Protocol Specification -->
<spec id="Specification"/>
<!-- Protocol Section -->
<protocol/>
<signal id="BarcodeReport" type="Map"
implementation="org.eclipse.soda.dk.barcode.reader.device.signal.BarcodeReaderDeviceSignal">
<message id="BarcodeMessage">
<ascii>0</ascii>
<parameter type="string">
<insert/>
<offset>0</offset>
<length>0</length>
</parameter>
<filter id="FilterAll">
<bytes format="hex">00</bytes>
</filter>
</message>
</signal>
<transport idref="org.eclipse.soda.dk.barcode.reader.transport/dk/transport.xml#BarcodeReaderTransport"/>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</device>
</dkml>
<dkml> example from the profile_test.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<profiletest id="BarcodeReaderInventoryProfileTest"
packagebase="org.eclipse.soda.dk">
<description>Barcode Reader Profile Test</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<profile idref="org.eclipse.soda.dk.barcode.reader.inventory.profile/dk/profile.xml#BarcodeReaderInventoryProfile"/>
<testcase/>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</profiletest>
</dkml>
<dkml> example from the profile.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<profile id="BarcodeReaderInventoryProfile"
packagebase="org.eclipse.soda.dk">
<description>Barcode Reader Profile</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<incubation>true</incubation>
<!-- Protocol Specification -->
<spec id="Specification"/>
<profileparent>
<profileref idref="org.eclipse.soda.dk.rfid.inventory.profile/dk/profile.xml#RfidInventoryProfile"/>
</profileparent>
<adapter idref="org.eclipse.soda.dk.barcode.reader.adapter/dk/adapter.xml#BarcodeReaderAdapter"/>
<device idref="org.eclipse.soda.dk.barcode.reader.device/dk/device.xml#BarcodeReaderDevice">
<signalref idref="BarcodeReport"/>
</device>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</profile>
</dkml>
<dkml> example from the transport_test.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<transporttest id="BarcodeReaderTransportTest" packagebase="org.eclipse.soda.dk">
<description>Standard Barcode Reader Test</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<transport idref="org.eclipse.soda.dk.barcode.reader.transport/dk/transport.xml#BarcodeReaderTransport"/>
<testcase/>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</transporttest>
</dkml>
<dkml> example from the transport.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<transport id="BarcodeReaderTransport" packagebase="org.eclipse.soda.dk"
executionenvironments="OSGi/Minimum-1.1">
<description>Standard Barcode Reader</description>
<provider>Eclipse.org</provider>
<version>1.1.0</version>
<vendor>IBM</vendor>
<incubation>true</incubation>
<!-- Protocol Specification -->
<spec id="Specification"/>
<customparameter name="MessageMinimumSize" type="int" defaultvalue="1" access="true"/>
<serial>
<baudrate>9600</baudrate>
<comport>1</comport>
<databits>8</databits>
<parity>none</parity>
<readintervaltimeout>50</readintervaltimeout>
<readtotaltimeout>1000</readtotaltimeout>
<stopbits>1</stopbits>
<writetotaltimeout>100</writetotaltimeout>
</serial>
<tcpip>
<host>localhost</host>
<remoteport>8901</remoteport>
</tcpip>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</transport>
</dkml>
| Copyright (c) 2008 IBM. See license in Legal section. | 2008-07-29 | Barcode Reader XML Reference 1.1.0 |