Eclipse.org Eclipse.org device.xml Arcom Io

device.xml sample

Arcom Io Attributes Elements XML Reference
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2004, 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="ArcomIoDevice" packagebase="org.eclipse.soda.dk">
        <description>Arcom IO Relay 8 in 8</description>
        <provider>Eclipse.org</provider>
        <version>1.1.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>


id element
"ArcomIoDevice" <device>
"FullFilter" <filter>
"GetInputRequest" <command>
"GetInputRequestMessage" <message>
"GetOutputRequest" <command>
"GetOutputRequestMessage" <message>
"Input" <measurement>
"InputReport" <signal>
"InputReportMessage" <message>
"Output" <measurement>
"OutputReport" <signal>
"OutputReportMessage" <message>
"SetAllOutputs" <command>
"SetAllOutputsMessage" <message>
"SetPin0" <command>
"SetPin0Message" <message>
"SetPin1" <command>
"SetPin1Message" <message>
"SetPin2" <command>
"SetPin2Message" <message>
"SetPin3" <command>
"SetPin3Message" <message>
"SetPin4" <command>
"SetPin4Message" <message>
"SetPin5" <command>
"SetPin5Message" <message>
"SetPin6" <command>
"SetPin6Message" <message>
"SetPin7" <command>
"SetPin7Message" <message>
"StandardFilter" <filter>
element id
<command> "GetInputRequest"
"GetOutputRequest"
"SetAllOutputs"
"SetPin0"
"SetPin1"
"SetPin2"
"SetPin3"
"SetPin4"
"SetPin5"
"SetPin6"
"SetPin7"
<device> "ArcomIoDevice"
<filter> "FullFilter"
"StandardFilter"
<measurement> "Input"
"Output"
<message> "GetInputRequestMessage"
"GetOutputRequestMessage"
"InputReportMessage"
"OutputReportMessage"
"SetAllOutputsMessage"
"SetPin0Message"
"SetPin1Message"
"SetPin2Message"
"SetPin3Message"
"SetPin4Message"
"SetPin5Message"
"SetPin6Message"
"SetPin7Message"
<signal> "InputReport"
"OutputReport"

Bugzilla: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=OHF&component=DeviceKit
CVS File:
  org.eclipse.ohf
    plugins
      org.eclipse.soda.dk
        org.eclipse.soda.dk.arcom.io
          org.eclipse.soda.dk.arcom.io.device
            dk
              device.xml
Tag(s) Timestamp Revision Comment
V1_2_0_2008_10_31 .. V1_2_0_2008_09_30 2008-09-29 1.8
Eclipse3_3 .. V1_1_0_2008_01_22 2008-01-18 1.7
V1_1_0_2008_01_12 .. V1_1_0_2008_01_11 2008-01-11 1.6
V1_1_0_2008_01_03 2007-12-07 1.4
V1_1_0_2007_12_03 .. V1_1_0_2007_10_05 2007-09-29 1.3
Baseline_2007_09_27 2007-09-27 1.1 received approval from eclipse IP to check into CVS

Copyright (c) 2008 IBM. See license in Legal section. 2008-11-06 Arcom Io XML Reference 1.2.0