Eclipse.org Eclipse.org protocol Device Kit

XML Element 

<protocol> element

Device Kit Attributes Elements XML Reference
New  The protocol tag is used to denote the interface to a hardware protocol. The command tags denote the actions that are supported by the hardware protocol. The signals tags denote the events that are supported by the hardware protocol. The measurement tags denote the properties supported by the hardware protocol. Use the transportprotocol tag to specify the protocol?s transport. You can specify the Open Services Gateway Initiative (OSGi) protocol and transport class implementation with the transportprotocol tag.

Release: New 1.1.0

Examples: protocol examples


NameDescriptionUse
Element <protocol> elements
<description>Description of the protocol.0 to unbounded
<deprecated>Specifies that the contents of this element should be marked as deprecated.0 to 1
<spec>Hardware specification documentation for this protocol.0 to unbounded
<specreference>Specification reference for this protocol.0 to unbounded

Sibling NameSibling Description
Element <protocol> element siblings
<dkml>Specifies the root element of a Device Kit &lt;b&gt;D&lt;/b&gt;evice &lt;b&gt;K&lt;/b&gt;it &lt;b&gt;L&lt;/b&gt;anguage (dkml) document.
<filter>
<message>
<parameter>
<block>New Defines a block.
<constantblock>New Defines a constant block.
<reserveblock>New Defines a reserve block.
<versionblock>New Defines a version block.
<idblock>New Defines a id block.
<identifierblock>New Defines a identifierblock block.
<typeblock>New Defines a type block.
<countblock>New Defines a count block.
<lengthblock>New Defines a length in bits block. The contents of the block is the length in bits.
<sizeblock>New Defines a length in bytes block. The contents of the block is the length in bytes(each byte is 8 bits).
<segmentlengthblock>New Defines a segment length in bits block. The contents of the block is the length in bits.
<segmentsizeblock>New Defines a segment length in bytes block. The contents of the block is the length in bytes(each byte is 8 bits).
<messagelengthblock>New Defines a message length in bits block. The contents of the block is the length in bits.
<messagesizeblock>New Defines a message length in bytes block. The contents of the block is the length in bytes(each byte is 8 bits).
<bytesparameter>New Defines a bytes parameter.
<bitsparameter>New Defines a bits parameter.
<multiparameter>New Defines a multiple parameter.
<variablelengthparameter>New Defines a variable length parameter.
<listparameter>New Defines a list parameter.
<mapparameter>New Defines a map parameter.
<arrayparameter>New Defines a array parameter.
<utf8stringparameter>New Defines a UTF-8 string parameter.
<stringparameter>New Defines a string parameter.
<booleanparameter>New Defines a binary boolean parameter. Normally, a boolean parameter length should not be longer than 1 bit.
<numberparameter>
<integerparameter>New Defines a binary integer parameter. An integer parameter length should not be longer than 32 bits (4 bytes).
<unsignedintegerparameter>New Defines a binary unsigned integer parameter. An unsigned integer parameter length should not be longer than 32 bits (4 bytes).
<longparameter>New Defines a binary long parameter. An long parameter length should not be longer than 64 bits (8 bytes).
<unsignedlongparameter>New Defines a binary unsigned long parameter. An unsigned long parameter length should not be longer than 64 bits (8 bytes).
<shortparameter>New Defines a binary short parameter. An short parameter length should not be longer than 16 bits (2 bytes).
<unsignedshortparameter>New Defines a binary unsigned short parameter. An unsigned short parameter length should not be longer than 16 bits (2 bytes).
<byteparameter>New Defines a binary byte parameter. An byte parameter length should not be longer than 8 bits (1 byte).
<unsignedbyteparameter>New Defines a binary unsigned byte parameter. An unsigned byte parameter length should not be longer than 8 bits (1 byte).
<floatparameter>New Defines a binary IEEE 754 floating-point single 32 bit parameter. The float parameter length should be 32 bits (4 bytes).
<doubleparameter>New Defines a binary IEEE 754 floating-point double 64 bit parameter. The double parameter length should be 64 bits (8 bytes).
<segment>
<parametersegment>
<singleparametersegment>
<choicesegment>
<transport>
<transporttest>
<receiver>New Defines a receiver transport.
<value>

Element NameElement Description
Element <protocol> element tree
<dkml>Specifies the root element of a Device Kit &lt;b&gt;D&lt;/b&gt;evice &lt;b&gt;K&lt;/b&gt;it &lt;b&gt;L&lt;/b&gt;anguage (dkml) document.

Copyright (c) 2008 IBM. See license in Legal section. 2008-09-10 Device Kit XML Reference 1.1.0