Eclipse.org Eclipse.org dkml Arcom Io

<dkml> examples

Arcom Io Attributes Elements XML Reference
<dkml> example from the adapter_test.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2006, 2009 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="ArcomIoAdapterTest" packagebase="org.eclipse.soda.dk">
        <description>Arcom Io Adapter Test</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <adapter idref="org.eclipse.soda.dk.arcom.io.adapter/dk/adapter.xml#ArcomIoAdapter"/>
        <testcase/>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </adaptertest>
</dkml>



<dkml> example from the adapter.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2006, 2009 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="ArcomIoAdapter" packagebase="org.eclipse.soda.dk">
        <description>Arcom Io Adapter</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
<!-- Protocol Specification             -->

        <spec id="Specification"/>
        <device idref="org.eclipse.soda.dk.arcom.io.device/dk/device.xml#ArcomIoDevice"/>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </adapter>
</dkml>



<dkml> example from the device_test.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2004, 2009 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="ArcomIoDeviceTest" packagebase="org.eclipse.soda.dk">
        <description>Arcom IO Relay 8 in 8 Test</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <device idref="org.eclipse.soda.dk.arcom.io.device/dk/device.xml#ArcomIoDevice"/>
        <testcase/>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </devicetest>
</dkml>



<dkml> example from the device.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2004, 2009 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="ArcomIoDevice" packagebase="org.eclipse.soda.dk">
        <description>Arcom IO Relay 8 in 8</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <commandreceived>0</commandreceived>
<!--     Output                -->

        <command id="SetAllOutputs">
            <description>Set All Outputs</description>
            <message id="SetAllOutputsMessage">
                <bytes format="hex">01,00</bytes>
                <parameter type="byte">
                    <offset>8</offset>
                    <length>8</length>
                </parameter>
                <filter id="FullFilter">
                    <bytes format="hex">FF</bytes>
                </filter>
            </message>
        </command>
        <command id="SetPin0">
            <description>Set Pin 0</description>
            <message id="SetPin0Message">
                <bytes format="hex">21,00</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter id="StandardFilter">
                    <bytes format="hex">EF,FF</bytes>
                </filter>
            </message>
        </command>
        <command id="SetPin1">
            <description>Set Pin 1</description>
            <message id="SetPin1Message">
                <bytes format="hex">21,01</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter idref="StandardFilter"/>
            </message>
        </command>
        <command id="SetPin2">
            <description>Set Pin 2</description>
            <message id="SetPin2Message">
                <bytes format="hex">21,02</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter idref="StandardFilter"/>
            </message>
        </command>
        <command id="SetPin3">
            <description>Set Pin 3</description>
            <message id="SetPin3Message">
                <bytes format="hex">21,03</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter idref="StandardFilter"/>
            </message>
        </command>
        <command id="SetPin4">
            <description>Set Pin 4</description>
            <message id="SetPin4Message">
                <bytes format="hex">21,04</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter idref="StandardFilter"/>
            </message>
        </command>
        <command id="SetPin5">
            <description>Set Pin 5</description>
            <message id="SetPin5Message">
                <bytes format="hex">21,05</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter idref="StandardFilter"/>
            </message>
        </command>
        <command id="SetPin6">
            <description>Set Pin 6</description>
            <message id="SetPin6Message">
                <bytes format="hex">21,06</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter idref="StandardFilter"/>
            </message>
        </command>
        <command id="SetPin7">
            <description>Set Pin 7</description>
            <message id="SetPin7Message">
                <bytes format="hex">21,07</bytes>
                <parameter type="boolean">
                    <offset>3</offset>
                    <length>1</length>
                </parameter>
                <filter idref="StandardFilter"/>
            </message>
        </command>
        <command id="GetOutputRequest">
            <description>Get the states of all the output pins</description>
            <message id="GetOutputRequestMessage">
                <bytes format="hex">17</bytes>
            </message>
        </command>
        <signal id="OutputReport">
            <message id="OutputReportMessage">
                <bytes format="hex">71,00</bytes>
                <parameter type="byte">
                    <offset>8</offset>
                    <length>8</length>
                </parameter>
                <filter idref="FullFilter"/>
            </message>
        </signal>
        <measurement id="Output">
            <description>Maintain the output pins.</description>
            <readcommand idref="GetOutputRequest"/>
            <writecommand idref="SetAllOutputs"/>
            <signal idref="OutputReport"/>
        </measurement>
<!--     Input                -->

        <command id="GetInputRequest">
            <description>Get the states of all the input pins</description>
            <message id="GetInputRequestMessage">
                <bytes format="hex">18</bytes>
            </message>
        </command>
        <signal id="InputReport">
            <message id="InputReportMessage">
                <bytes format="hex">81,00</bytes>
                <parameter type="byte">
                    <offset>8</offset>
                    <length>8</length>
                </parameter>
                <filter idref="FullFilter"/>
            </message>
        </signal>
        <measurement id="Input">
            <description>Maintain the input.</description>
            <readcommand idref="GetInputRequest"/>
            <signal idref="InputReport"/>
        </measurement>
<!--     Define the transport service to be used by this device             -->

        <transport idref="org.eclipse.soda.dk.arcom.io.transport/dk/transport.xml#ArcomIoTransport"/>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </device>
</dkml>



<dkml> example from the profile_test.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2007, 2009 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="ArcomIoGpioProfileTest" packagebase="org.eclipse.soda.dk">
        <description>Arcom Io Profile Test</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <profile idref="org.eclipse.soda.dk.arcom.io.gpio.profile/dk/profile.xml#ArcomIoGpioProfile"/>
        <testcase/>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </profiletest>
</dkml>



<dkml> example from the profile.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2007, 2009 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="ArcomIoGpioProfile" packagebase="org.eclipse.soda.dk">
        <description>Arcom Io Profile</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
<!-- Protocol Specification      -->

        <spec id="Specification"/>
        <profileparent>
            <profileref idref="org.eclipse.soda.dk.gpio.profile/dk/profile.xml#GpioProfile"/>
        </profileparent>
        <adapter idref="org.eclipse.soda.dk.arcom.io.adapter/dk/adapter.xml#ArcomIoAdapter"/>
        <device idref="org.eclipse.soda.dk.arcom.io.device/dk/device.xml#ArcomIoDevice">
            <signalref idref="InputReport"/>
            <commandref idref="GetInputRequest"/>
            <commandref idref="SetAllOutputs"/>
        </device>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </profile>
</dkml>



<dkml> example from the transport_test.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2004, 2009 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="ArcomIoTransportTest" packagebase="org.eclipse.soda.dk">
        <description>Arcom IO AIM104 Relay 8in8 board Test</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <send id="TestAllPins">
<!-- turn on all pins, the turn all off      -->

            <message id="SetPinAllOnMessage">
                <bytes format="hex">01,ff</bytes>
            </message>
            <message id="GetOutputState">
                <bytes format="hex">17</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPinAllOffMessage">
                <bytes format="hex">01,00</bytes>
            </message>
            <message idref="GetOutputState"/>
            <sleep>2000</sleep>
        </send>
        <send id="TestGroups">
<!-- turn on only 1st 4 pins, turn on only 2nd 4, turn on only pins 2 & 6, turn off all      -->

            <message id="SetPins1Thru4AllOnMessage">
                <bytes format="hex">01,f</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPins5Thru8AllOnMessage">
                <bytes format="hex">01,f0</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin2AllOnMessage">
                <bytes format="hex">01,44</bytes>
            </message>
            <sleep>2000</sleep>
            <message idref="SetPinAllOffMessage"/>
            <sleep>2000</sleep>
        </send>
        <send id="TestSinglePins">
<!-- turn on then off each pin      -->

            <message id="SetPin0OnMessage">
                <bytes format="hex">31,00</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin0OffMessage">
                <bytes format="hex">21,00</bytes>
            </message>
            <message id="SetPin1OnMessage">
                <bytes format="hex">31,01</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin1OffMessage">
                <bytes format="hex">21,01</bytes>
            </message>
            <message id="SetPin2OnMessage">
                <bytes format="hex">31,02</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin2OffMessage">
                <bytes format="hex">21,02</bytes>
            </message>
            <message id="SetPin3OnMessage">
                <bytes format="hex">31,03</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin3OffMessage">
                <bytes format="hex">21,03</bytes>
            </message>
            <message id="SetPin4OnMessage">
                <bytes format="hex">31,04</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin4OffMessage">
                <bytes format="hex">21,04</bytes>
            </message>
            <message id="SetPin5OnMessage">
                <bytes format="hex">31,05</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin5OffMessage">
                <bytes format="hex">21,05</bytes>
            </message>
            <message id="SetPin6OnMessage">
                <bytes format="hex">31,06</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin6OffMessage">
                <bytes format="hex">21,06</bytes>
            </message>
            <message id="SetPin7OnMessage">
                <bytes format="hex">31,07</bytes>
            </message>
            <sleep>2000</sleep>
            <message id="SetPin7OffMessage">
                <bytes format="hex">21,07</bytes>
            </message>
        </send>
        <send id="TestAdditivePins">
<!-- turn on pins in this pattern:                  0, 0&1, 1&2, 2&3, 3&4, 4&5, 5&6, 6&7, 7, all off      -->

            <message idref="SetPin0OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin1OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin0OffMessage"/>
            <message idref="SetPin2OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin1OffMessage"/>
            <message idref="SetPin3OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin2OffMessage"/>
            <message idref="SetPin4OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin3OffMessage"/>
            <message idref="SetPin5OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin4OffMessage"/>
            <message idref="SetPin6OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin5OffMessage"/>
            <message idref="SetPin7OnMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin6OffMessage"/>
            <sleep>2000</sleep>
            <message idref="SetPin7OffMessage"/>
        </send>
        <send id="TestInput">
            <message id="GetInput">
                <bytes format="hex">18</bytes>
            </message>
            <sleep>2000</sleep>
            <message idref="GetInput"/>
            <sleep>2000</sleep>
            <message idref="GetInput"/>
            <sleep>2000</sleep>
            <message idref="GetInput"/>
            <sleep>2000</sleep>
        </send>
        <transport idref="org.eclipse.soda.dk.arcom.io.transport/dk/transport.xml#ArcomIoTransport"/>
        <testcase/>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </transporttest>
</dkml>



<dkml> example from the transport.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2004, 2009 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="ArcomIoTransport" packagebase="org.eclipse.soda.dk">
        <description>Arcom IO AIM104 Relay 8in8 board</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <customparameter name="pollingRate" type="int" defaultvalue="250" access="true"/>
        <exportservice>org.eclipse.soda.dk.digital.io.transport.service.DigitalIoTransportService</exportservice>
        <randomaccessfile>
            <name>0</name>
            <mode>rw</mode>
            <path>/dev/arcom/aim104/relay8</path>
        </randomaccessfile>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </transport>
</dkml>




Copyright (c) 2010 IBM. See license in Legal section. 2010-01-22 Arcom Io XML Reference 1.2.0