From 27748b38dbbc2076656b2aedff893a298e18a19b Mon Sep 17 00:00:00 2001
From: "Matthew A. Miller" Initial published version approved by the XMPP Council. First draft. Namespace in dynamic form examples has been changed to urn:xmpp:xdata:dynamic. Added the following node query events: title, status, beginSection and endSection. Updated the schema to more strictly validate references to x-data forms. Updated attribute names so queries and responses are consistent. Updated the language. Added section about how to determine support. Corrected language and examples. Node Query command type added. Fixed links to documents with new numbers. Changed namespace urn:xmpp:sn to urn:xmpp:iot Initial published version approved by the XMPP Council. First draft.
@@ -75,7 +96,81 @@
+ Sensor networks contains many different architectures and use cases. For this reason, the sensor network standards have been divided into multiple XEPs according to the following table:
+
Even though there are technologies available in forms of XEPs that solve parts of the above mentioned problem, they do not provide sufficient support. The following paragraphs will
take the time to list why different technologies are not applicable.
@@ -83,7 +178,7 @@
This XEP defines tree structures for nodes in different data sources. &xep0060; defines a model where a tree structure of nodes is published and users can browse this
- tree structure. Furthermore, it allows the possibility to publish items on these nodes as well as syndicalization of this information.
+ tree structure. Furthermore, it allows the possibility to publish items on these nodes as well as syndication of this information.
This XEP also defines data sources (in a tree structure). These data sources contain nodes. &xep0248; defines a structure called a node collection, a structure that
@@ -98,7 +193,7 @@
- XEP-0248 defines the concept of node collections and syndicalization of information from nodes in these collections. But XEP-0248 is not used in this specification.
+ XEP-0248 defines the concept of node collections and syndication of information from nodes in these collections. But XEP-0248 is not used in this specification.
There are multiple reasons:
- Sensor networks contains many different architectures and use cases. For this reason, the sensor network standards have been divided into multiple XEPs according to the following table:
- The following table lists common terms and corresponding descriptions.
@@ -404,14 +430,14 @@
from='client@clayster.com/client'
to='subsystem@clayster.com'
id='1'>
-
A concentrator without databases, but still contain a rich interface for handling masses of nodes may present itself as follows:
A client can subscribe to changes made in a data source. It does this by sending the subscribe command to the concentrator,
as is shown in the following example:
@@ -685,14 +723,14 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='57'>
-
@@ -714,20 +752,23 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='60'>
-
- The subscribe command has a set of optional attributes, one for each event type available, and with the same names, that the
+ The subscribe command has a set of optional attributes, one for each event type available, and with the same names (nodeAdded,
+ nodeUpdated, nodeStatusChanged, nodeRemoved, nodeMovedUp and nodeMovedDown), that the
client can use to subscribe to individual events, but not to others. They have the default value of true implying that if not provided, the
- default action is to subscribe to those events.
+ default action is to subscribe to those events. The attributes parameters and messages can also be used to specify
+ if node parameters and node messages respectively should be available in event messages. The default value for the these later attributes is false, implying
+ that normal events do not include node parameter and node message information.
The following example shows how a client can subscribe to a set of events only:
@@ -738,7 +779,7 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='61'>
-
@@ -764,14 +805,14 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='58'>
-
@@ -791,7 +832,7 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='62'>
-
+ If during a subscription request the concentrator is not able to fulfill the request of retrieving previous events using the getEventsSince attribute,
+ perhaps the attribute stretches too far back, or includes too many records, the concentrator can return an error message using a response code of NotImplemented.
+ In this case, the subscription must not be made.
+
+ When receiving such an error from the concentrator, the client must make a decision if it should download the data source again, or keep the data source as is, and
+ subscribing again without the getEventsSince attribute.
+
- This commands lets the client get information from multiple nodes at once.
+ This command lets the client get information from multiple nodes at once.
- This commands lets the client get information from multiple nodes at once, including node parameters.
+ This command lets the client get information from multiple nodes at once, including node parameters.
+ Note: It is assumed the client already knows the node type of the node, so the response must not contain the type of the node, only
+ its base classes and any implemented interfaces.
+
- This commands returns the root node of a data source (in case the source is a tree-shaped data source) or the root nodes of a data source (in case the
+ This command returns the root node of a data source (in case the source is a tree-shaped data source) or the nodes of a data source (in case the
source is flat).
- This commands returns the root node of a data source (in case the source is a tree-shaped data source) or the root nodes of a data source (in case the
+ This command returns the root node of a data source (in case the source is a tree-shaped data source) or the root nodes of a data source (in case the
source is flat), and also returns the parameters for the corresponding nodes.
- This commands returns the child nodes of a node in a data source.
+ This command returns the child nodes of a node in a data source.
- This commands returns the child nodes of a node in a data source, and also returns the parameters for the corresponding nodes.
+ This command returns the child nodes of a node in a data source, and also returns the parameters for the corresponding nodes.
This command returns a list of available indices in a data source. Indices can be used for efficient node look-up.
@@ -1643,14 +1716,14 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='54'>
-
@@ -1667,7 +1740,7 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='55'>
-
@@ -1690,13 +1763,13 @@
To move a set of nodes downwards among its siblings is done using the command moveNodesDown, as is shown in the following example:
@@ -1735,19 +1808,19 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='28'>
-
- Read-only parameters will be returned with the readOnly element, as defined in xep-0000-DynamicForms.
+ Read-only parameters will be returned with the readOnly element, as defined in XEP-0336.
Clients SHOULD support this extension if using this command. However, the server MUST NOT change parameters in a node that are read-only, even if clients happen
to try to set them.
After editing the form, the client uses the setNodeParametersAfterEdit command to set the parameters in the node. Note that it is possible to
set the same parameters (or a sub-set of the same parameters) to a different node using this command, without the need to get new form parameters. However, after the first
- successful set operation, any form session used for dynamic validation during edit will not be available on the server any more.
+ successful set operation, any form session used for dynamic validation during edit will not be available on the server anymore and must be ignored by the server.
As the result attribute is FormError, the server maintains any parameter form resources related to the form, and features such as
dynamic validation of the contents of the form will still be available until the parameters have been successfully set, the operation has been
- explicitly cancelled or a form session time-out has occurred. See xep-0000-DynamicForms
+ explicitly cancelled or a form session time-out has occurred. See XEP-0336
+
+
+
+
+ XEP
+ Description
+
+
+ xep-0000-IoT-BatteryPoweredSensors
+ Defines how to handle the peculiars related to battery powered devices, and other devices intermittently available on the network.
+
+
+ xep-0000-IoT-Discovery
+ Defines the peculiars of sensor discovery in sensor networks. Apart from discovering sensors by JID, it also defines how to discover sensors based on location, etc.
+
+
+ xep-0000-IoT-Events
+ Defines how sensors send events, how event subscription, hysteresis levels, etc., are configured.
+
+
+ xep-0000-IoT-Interoperability
+ Defines guidelines for how to achieve interoperability in sensor networks, publishing interoperability interfaces for different types of devices.
+
+
+ xep-0000-IoT-Multicast
+ Defines how sensor data can be multicast in efficient ways.
+
+
+ xep-0000-IoT-PubSub
+ Defines how efficient publication of sensor data can be made in sensor networks.
+
+
+ xep-0000-IoT-Chat
+ Defines how human-to-machine interfaces should be constructed using chat messages to be user friendly, automatable and consistent with other IoT extensions and possible underlying architecture.
+
+
+ XEP-0322
+
+ Defines how to EXI can be used in XMPP to achieve efficient compression of data. Albeit not a sensor network specific XEP, this XEP should be considered
+ in all sensor network implementations where memory and packet size is an issue.
+
+
+
+ XEP-0323
+
+ Provides the underlying architecture, basic operations and data structures for sensor data communication over XMPP networks.
+ It includes a hardware abstraction model, removing any technical detail implemented in underlying technologies. This XEP is used by all other sensor network XEPs.
+
+
+
+ XEP-0324
+ Defines how provisioning, the management of access privileges, etc., can be efficiently and easily implemented.
+
+
+ XEP-0325
+ Defines how to control actuators and other devices in Internet of Things.
+
+
+ XEP-0326
+ This specification. Defines how to handle architectures containing concentrators or servers handling multiple sensors.
+
+
+ XEP-0331
+ Defines extensions for how color parameters can be handled, based on &xep0004;
+
+
+ XEP-0336
+ Defines extensions for how dynamic forms can be created, based on &xep0004;, &xep0122;, &xep0137; and &xep0141;.
+
-
-
- XEP
- Description
-
-
- XEP-0000-ColorParameter
- Defines extensions for how color parameters can be handled, based on &xep0004;
-
-
- XEP-0000-DynamicForms
- Defines extensions for how dynamic forms can be created, based on &xep0004;, &xep0122;, &xep0137; and &xep0141;.
-
-
- exi
-
- Defines how to EXI can be used in XMPP to achieve efficient compression of data. Albeit not a sensor network specific XEP, this XEP should be considered
- in all sensor network implementations where memory and packet size is an issue.
-
-
-
- xep-0000-SN-BatteryPoweredSensors
- Defines how to handle the peculiars related to battery powered devices, and other devices intermittently available on the network.
-
-
- xep-0000-SN-Concentrators
- This specification. Defines how to handle architectures containing concentrators or servers handling multiple sensors.
-
-
- xep-0000-SN-Control
- Defines how to control actuators and other devices in sensor networks.
-
-
- xep-0000-SN-Discovery
- Defines the peculiars of sensor discovery in sensor networks. Apart from discovering sensors by JID, it also defines how to discover sensors based on location, etc.
-
-
- xep-0000-SN-Events
- Defines how sensors send events, how event subscription, hysteresis levels, etc., are configured.
-
-
- xep-0000-SN-Interoperability
- Defines guidelines for how to achieve interoperability in sensor networks, publishing interoperability interfaces for different types of devices.
-
-
- xep-0000-SN-Multicast
- Defines how sensor data can be multicast in efficient ways.
-
-
- sensor-network-provisioning
- Defines how provisioning, the management of access privileges, etc., can be efficiently and easily implemented.
-
-
- xep-0000-SN-PubSub
- Defines how efficient publication of sensor data can be made in sensor networks.
-
-
- sensor-data
-
- Provides the underlying architecture, basic operations and data structures for sensor data communication over XMPP networks.
- It includes a hardware abstraction model, removing any technical detail implemented in underlying technologies. This XEP is used by all other sensor network XEPs.
-
-
-
+
+
Makes it possible to layout parameters into pages and sections.
-
XEP-0000-ColorParameter
+ XEP-0331
Defines extensions for how color parameters can be handled.
-
xep-0000-DynamicForms
+ XEP-0336
Makes it possible to create dynamic forms, with server-side validation and forms that change dynamically depending on input.
Important: A parameter that exists in multiple nodes, but has different parameter values among the nodes, will be marked with the - notSame element, according to xep-0000-DynamicForms. Clients using this command MUST - support the extensions defined in xep-0000-DynamicForms. + notSame element, according to XEP-0336. Clients using this command MUST + support the extensions defined in XEP-0336.
Important: A parameter that exists in multiple nodes, but has different parameter values among the nodes, will be marked with the - notSame element, according to xep-0000-DynamicForms. Such parameters MUST NOT be sent back to the server + notSame element, according to XEP-0336. Such parameters MUST NOT be sent back to the server unless they have explicitly been edited or signed by the end-user. The value sent back to the server will be set in all nodes.
@@ -2185,13 +2258,13 @@ The following example shows how the server responds when the client tries to set invalid parameters to a set of nodes. The response contains detailed information about why, information which the client can use to inform the user (if any) of what went wrong. -As the result attribute is FormError, the server maintains any parameter form resources related to the form, and features such as dynamic validation of the contents of the form will still be available until the parameters have been successfully set, the operation has been - explicitly cancelled or a form session time-out has occurred. See xep-0000-DynamicForms - xep-0000-DynamicForms.html for more information. + explicitly cancelled or a form session time-out has occurred. See XEP-0336 for more information.
-
Each node in the concentrator has a state. This state is a dynamic run-time state, and therefore not presented as a more static property.
This state can be any of the following values, in order of increasing importance:
@@ -2292,23 +2364,24 @@
getNodesFromIndices
-
As the result attribute is FormError, the server maintains any parameter form resources related to the form, and features such as dynamic validation of the contents of the form will still be available until the parameters have been successfully set, the operation has been - explicitly cancelled or a form session time-out has occurred. See xep-0000-DynamicForms - xep-0000-DynamicForms.html for more information. + explicitly cancelled or a form session time-out has occurred. See XEP-0336 for more information.
@@ -2544,14 +2620,14 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='41'>
-
- There are two types of commands available: Simple and Parameterized. Simple commands take no parameters, and - are therefore simpler to execute. Parameterized commands require the client to get a set of parameters for the corresponding command before it - can be executed. For more information about command attributes, see Node Commands. + There are three types of commands available: Simple, Parameterized and Query. Simple commands + take no parameters, and are therefore simpler to execute. Parameterized commands require the client to get a set of parameters for the corresponding + command before it can be executed. Query commands also require a set of parameters to be executed, but return a response after (or during) execution + in an asynchronous fashion. Queries can also be aborted during execution. A Query with an empty parameter set is considered to be a simple query, not requiring a + parameter dialog to be shown. +
++ For more information about command attributes, see Node Commands.
- To execute a parameterized command on the node, the client first needs to get (and edit) a set of parameters for the command. Getting a set of parameters for a + To execute a parameterized command or a query on the node, the client first needs to get (and edit) a set of parameters for the command. Getting a set of parameters for a parameterized command is done as follows:
+ Executing a Node Query also requires the client to get a set of parameters for the query. This is done in the same way as for parametrized commands, + as is shown in the following example: +
++ Executing the query is then done by sending the executeNodeQuery command to the concentrator, but including the edited form parameters, + as is shown in the following example: +
++ After the successful execution of a query command, a sequence of query events will follow. These events will include a queryId + attribute to identify to which query the corresponding events correspond. See section about Query Events + for more information about this. +
++ Note: Queries with no visible parameters in the command parameter form need not display a parameter form to the user before being executed. + However, if a confirmation question is defined for the command, such a confirmation question should always be presented to the user (if possible) before + executing the command. +
++ If an error occurs during the reception of a query or if the server rejects the execution of a query, the server returns a response code different from + OK. If the response code is FormError, the server maintains any parameter form resources related to the form, and features such as + dynamic validation of the contents of the form will still be available until the parameters have been successfully set, the operation has been + explicitly cancelled or a form session time-out has occurred. See XEP-0336 for more information. +
++ One a query has been accepted and started running, the client can abort it using the abortNodeQuery command, as is shown in the + following example. +
++ Note: The execution of a query is an asynchronous process, with a small delay between the compilation and transmission of + query events and the reception of them by a client. A client may thinkt a query is still active when asking + to abort it, when the query might actually have been finished and removed on the query side. Therefore, clients should be aware of this + when receiving NotFound responses from a concentrator, that the query might already have been finished. +
+
Using the command getCommonNodeCommands, the client can receive commands that are common for a set of nodes,
@@ -2746,7 +2998,7 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='48'>
-
- The following example shows the execution of a parameterized command on multiple nodes that fail on some nodes but are executed on others. + The following example shows the execution of a parameterized command on multiple nodes that fail on some nodes but are executed on others. Note that + individual error messages can be provided as error attribute messages for each node that fails in the corresponding result + element.
+ Executing a Node Query on multiple nodes also requires the client to get a set of parameters for the query common to all nodes. + This is done in the same way as for parametrized commands, as is shown in the following example: +
++ Executing the query is then done by sending the executeCommonNodeQuery command to the concentrator, but including the edited form parameters, + as is shown in the following example: +
++ After the successful execution of a query command, a sequence of query events will follow. These events will include a queryId + attribute to identify to which query the corresponding events correspond. They will also include node reference attributes so the receptor can + distinguish information from different nodes in the query. See section about Query Events + for more information about this. +
++ Note: Queries with no visible parameters in the command parameter form need not display a parameter form to the user before being executed. + However, if a confirmation question is defined for the command, such a confirmation question should always be presented to the user (if possible) before + executing the command. +
++ If an error occurs during the execution of a common query or if the server rejects the execution of a common query, the server returns a response code different from + OK. If the response code is FormError, the server maintains any parameter form resources related to the form, and features such as + dynamic validation of the contents of the form will still be available until the parameters have been successfully set, the operation has been + explicitly cancelled or a form session time-out has occurred. See XEP-0336 for more information. +
++ When executing a query on multiple nodes, it might happen that the query is rejected on some nodes, but not on others, even though + any parameters are validated beforehand. Therefore, the client needs to check any result elements in the response, even though the + response code is OK. +
++ The following example shows the execution of a query on multiple nodes that fail on some nodes but are executed on others. Note that + individual error messages can be provided as error attribute messages for each node that fails in the corresponding result + element. +
++ To abort a query common to a set of nodes you use the abortCommonNodeQuery command, as is shown in the following example: +
++ Note: The execution of a query is an asynchronous process, with a small delay between the compilation and transmission of + query events and the reception of them by a client. A client may thinkt a query is still active when asking + to abort it, when the query might actually have been finished and removed on the query side. Therefore, clients should be aware of this + when receiving NotFound responses from a concentrator, that the query might already have been finished. In the case of + aborting queries on multiple nodes, servers must ignore nodes where the query has already finished executing. +
++ Query events are sent as a response to executing queries on nodes. They are reported asynchronously from the concentrator to the client executing the query. Each + event is wrapped in a queryProgress element within a message sent from the concentrator to the client. Each such queryProgress + element can include any number of query events, and the client must process them in the order they appear in the message. +
++ Each queryProgress element contains a queryId attribute identifying the query to which the events correspond. They also contain + sourceId, nodeId and an optional cacheType to identify from which node in a concentrator the events originated. +
++ Note: A queryProgress element can only contain events from a single query executed on a single node. If a query is executed on + multiple nodes, events resulting from different nodes will be sent in different messages. +
++ The following subsections describe each query event in turn. +
++ This event is sent when the query is started on a node. It is sent using a queryStarted event element. This element does not take any + attributes. +
++ This event is sent when the query is done on a node. It is sent using a queryDone event element. This element does not take any + attributes. +
++ This event is sent when the query has been aborted on a node. It is sent using a queryAborted event element. This element does not take any + attributes. +
++ A query result can consist of zero or more data tables. Each data table consists of a set of columns and records containing value items for the these + columns. A new table is identified by a query event named newTable. a newTable event contains a sequence of + column events each identifying a column in the table. +
++ For more information about column definitions, see Table Column definitions in query results. +
++ A set of records in an open table is reported using the newRecords query event. +
++ For more information about records, see Record Item definitions in query results. +
++ This event is sent when the query is done with a table. It is sent using a tableDone event element. The query must not send any more records + to a table that has been closed using this query event. +
++ Some queries may want to return other types of data than tables, like images, graphs, etc. These may be combined with table information or not. + A query returns such an object using the newObject query event. Each object is MIME encoded, and the MIME Type is sent in the + contentType attribute. The object itself is Base-64 encoded. +
++ During the processing of a query, the query might want to report a message of some kind. This is done using the queryMessage + query event. +
++ For more information about query messages, see Message definitions in query results. +
++ Enables the executing process of the query to set a custom title for the result. Note that the result only has one title. +
++ Permits the executing process to report the current status. This can change a lot during execution and values should not be persisted, like + query messages. Instead, they can be displayed in a status bar, just to give the end-user feedback of the status of a long-running query. +
++ Starts a new section in the query result. In large query results, sections can be used to format the result using an intuitive disposition + in a visually appealing way. Nested sections should be interepreted as sub-sections. Tables and objects started or reported within a section + belong in that section, and should be listed sequentially in the order they are reported to the client. +
++ Note that the use of sections in a query result is optional. Tables and objects received outside the scope of sections should be placed + in a default section by the client. +
++ Closes the current section or sub-section. Tables inside closed sections can still be open and receive fields. Tables are closed using the + tableDone query event. +
+
@@ -3036,16 +3778,18 @@
-
+ If a node is added to a parent where order of nodes is important, the attributes afterNodeId and also optionally + afterNodeCacheType used to identify the node after which the new node should be inserted. +
+
@@ -3072,7 +3829,7 @@
-
@@ -3090,16 +3847,18 @@
-
@@ -3194,7 +3955,7 @@
-
@@ -3224,18 +3985,18 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='64'>
-
Once the parameter form has been filled out, a database readout can be started using the startDatabaseReadout command.
- Data read from the concentrator will follow the same flow of sensor data as that described in sensor-data
-
The following diagram shows the flow of messages when requesting a readout from a database:
-
+
The following example shows a startDatabaseReadout request:
@@ -3509,7 +4268,7 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='66'>
-
@@ -3662,7 +4421,7 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='68'>
-
- A client can cancel a database read-out using the cancel read-out command,
- as described in sensor-data.
+ A client can cancel a database read-out using the cancel read-out command,
+ as described in Internet of Things - Sensor Data.
If an entity supports the protocol specified herein, it MUST advertise that fact by returning a feature of "urn:xmpp:iot:concentrators" in response to &xep0030; information requests.
+ In order for an application to determine whether an entity supports this protocol, where possible it SHOULD use the dynamic, presence-based profile of service discovery defined
+ in &xep0115;. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.
+
@@ -3749,39 +4537,39 @@
- (*) See sensor-data for more information about how to read nodes.
+ (*) See Internet of Things - Sensor Data for more information about how to read nodes.
- (**) See xep-0000-SN-Control for more information about how to configure nodes.
+ (**) See Internet of Things - Control for more information about how to control nodes.
(***) Note that cacheType is optional. In some data sources it might be necessary to include a cache type to allow for IDs that are not unique
@@ -3970,7 +4758,7 @@
from='client@clayster.com/client'
to='concentrator@clayster.com'
id='69'>
-
+ Table columns in query results can have the following attributes:
+
+ Records contain arrays of items, each item correspond to a specific column with the same ordinal index. Each item is specified together with its type.
+ This, so receptors can integrate the result with type information if necessary. The following different type elements are available:
+
+ Messages in query results contain apart from a message text, also contain some classification on what the message is using two attributes: The
+ type attribute gives a rough idea about the type of message and level the importance of the message.
+
+ Many commands exist in single and batch versions. Large concentrators require efficient ways to manage sets of nodes simultaneously, while for small
+ concentrators, it is sufficient to manage nodes one at a time.
+
+ A concentrator is not required to implement both sets of commands if not desired. However, it must report which commands it supports in the
+ getCapabilities command. A caller can then adapt its calls based on what commands are supported.
+
+ If a caller wants to call the single item version of a command, but the concentrator only supports the batch version, it should call the batch version, but
+ only include the single node in the list of nodes.
+
+ On the other hand, if the caller wants to perform an operation on a set of nodes, but the concentrator only supports the single item version of the command,
+ it needs to manually perform the operation on each node separately, unless failing the request is an option.
+
For concentrators to be interoperable in sensor networks, they need to adhere to rules and guidelines described in the
- xep-0000-SN-Interoperability document.
+ xep-0000-IoT-Interoperability document.
- The sensor-network-provisioning document describes how trust can be delegated to trusted provisioning servers
- that can be used to restrict access to and privileges in a network.
-
- If a concentrator has a trusted relationship with a provisioning server, external or internal, the provisioning server must be used to guarantee that the
- concetrator only allows access according to rules defiend by the provisioning server. In order to do this, it's important that clients always provide
- available tokens (userToken, serviceToken and deviceToken) to the concentrator so that it can forward this
- information to the provisioning server.
-
- The following subsections show different examples of how such an integration can be performed.
-
- This section shows how a provisioning server can be used to restrict access to data sources to users allowed to access those data sources.
-
-
-
- Notice the following:
-
- This section shows how a provisioning server can be used to restrict access to node parameters that users allowed to access and edit.
-
-
-
- This section shows how a provisioning server can be used to restrict access to node commands to users allowed to access those commands.
-
-
-
- In addition to rules noted above, also notice the following:
-
+ The Internet of Things - Provisioning document describes how trust can be delegated to trusted provisioning servers
+ that can be used to restrict access to and privileges in a network.
+
+ If a concentrator has a trusted relationship with a provisioning server, external or internal, the provisioning server must be used to guarantee that the
+ concentrator only allows access according to rules defined by the provisioning server. In order to do this, it's important that clients always provide
+ available tokens (userToken, serviceToken and deviceToken) to the concentrator so that it can forward this
+ information to the provisioning server.
+
+ The following subsections show different examples of how such an integration can be performed.
+
+ This section shows how a provisioning server can be used to restrict access to data sources to users allowed to access those data sources.
+
+
+
+ Notice the following:
+
+ This section shows how a provisioning server can be used to restrict access to node parameters that users allowed to access and edit.
+
+
+
+ This section shows how a provisioning server can be used to restrict access to node commands to users allowed to access those commands.
+
+
+
+ In addition to rules noted above, also notice the following:
+ This document requires no interaction with &IANA;. This document requires no interaction with &IANA;. REQUIRED.
+ The protocol schema needs to be added to the list of XMPP protocol schemas.
+
+ For more information, please see the following resources:
+
+ The Sensor Network section of the XMPP Wiki contains further information about the
+ use of the sensor network XEPs, links to implementations, discussions, etc.
+
+ The XEP's and related projects are also available on github, thanks to Joachim Lindborg.
+
+ A presentation giving an overview of all extensions related to Internet of Things can be found here:
+ http://prezi.com/esosntqhewhs/iot-xmpp/.
+ Thanks to Joachim Lindborg and Karin Forsell for all valuable feedback. Thanks to Joachim Lindborg, Karin Forsell, Tina Beckman and Klaudiusz Staniek for all valuable feedback.Description
-
id
+ nodeId
required
-
+
The ID of the node in the data source.
displayName
optional
-
+
If provided, a string presentable to users. If localization is supported and a correct language attribute was provided, this string will be localized.
nodeType
optional
-
+
A string representing the type of the node.
localId
optional
-
+
If provided, an ID for the node, but unique locally between siblings.
logId
optional
-
+
If provided, an ID for the node, as it would appear or be used in system logs.
cacheType
optional
-
+
Used to uniquely identify the node in sources where the ID of the node is not sufficient. Example: In a spatial ordering different nodes may represent
countries, regions, cities, areas, streets, buildings and apartments in the same source. However, the ID of each node would depend on what type of node it
represents. It might be valid to have a region, city and/or area with the same ID. So, to these circumstances, a Cache Type of Country, Region, City, Area,
@@ -3790,13 +4578,13 @@
state
required
-
+
Current overall state of the node.
hasChildren
required
-
+
If the node has children or not.
@@ -3816,10 +4604,10 @@
If the node can be read. (*)
-
isConfigurable
+ isControllable
optional
false
- If the node can be configured. (**)
+ If the node can be controlled. (**)
hasCommands
@@ -3830,27 +4618,27 @@
parentId
optional
-
+
The node ID of the parent node. If not available, the node is considered a root node.
parentCacheType
optional
-
+
The Cache Type of the parent node.
lastChanged
optional
-
+
When the node was last changed. Can be used by clients to synchronize content between the concentrator and itself.
Description
-
@@ -4101,6 +4889,178 @@
More information can be found in the id
+ command
required
ID of the command. Used to identify the command.
+
+
+
+ Attribute
+ Use
+ Description
+
+
+ columnId
+ Required
+ ID of column
+
+
+ header
+ Optional
+ If provided, a localized name to be displayed instead of the column ID.
+
+
+ alignment
+ Optional
+ Alignment of contents in the column. If provided, the client does not need to guess alignment from the type of data reported.
+
+
+ nrDecimals
+ Optional
+ If floating point data is presented in the column and a fixed number of decimals is desired, this attribute is used to fix the number of decimals used.
+
+
+ dataSourceId
+ Optional
+ If contents of columns contains references to nodes in a data source, this attribute defines the data source ID.
+
+
+ cacheTypeName
+ Optional
+ If contents of columns contains references to nodes in a data source, this attribute defines the cache type.
+
+
+ fgColor
+ Optional
+ If presentation of this column should be done using a specific foreground color.
+
+
+ bgColor
+ Optional
+ If presentation of this column should be done using a specific background color.
+
+
+
+
+ Element
+ Contents
+
+
+ boolean
+ A boolean value, corresponding to the xs:boolean data type.
+
+
+ color
+ A color value. These are strings containing 6 case-insensitive hexadecimal digits of the form RRGGBB, where RR=Red component, GG=Green component, BB=Blue component.
+
+
+ dateTime
+ A Date & Time value, corresponding to the xs:dateTime data type.
+
+
+ double
+ A floating-point value, corresponding to the xs:double data type.
+
+
+ duration
+ A duration value, corresponding to the xs:duration data type.
+
+
+ int
+ A 32-bit integer value, corresponding to the xs:int data type.
+
+
+ long
+ A 64-bit value, corresponding to the xs:long data type.
+
+
+ string
+ A string value, corresponding to the xs:string data type.
+
+
+ time
+ A time value, corresponding to the xs:time data type.
+
+
+ base64
+ A base-64 encoded object. The object is MIME encoded, and the attribute contentType contains the MIME Type which includes information on how to decode the value.
+
+
+ void
+ Contains no information. This represents a NULL value.
+
+
+
+
+ Type
+ Description
+
+
+ Information
+ Information message
+
+
+ Warning
+ Message contains a warning. The situation could turn into an error if consideration or action is not taken.
+
+
+ Error
+ Message contains an error. The error message describes the error, and the error has been handled correctly by the device performing the query.
+
+
+ Exception
+ Message contains an exception message. An unforseen and perhaps an unhandled event has occurred during the execution of the query.
+
+
+
+
+ Level
+ Description
+
+
+ Minor
+ Minor event. Message describes common tasks.
+
+
+ Medium
+ Medium event. Message might describe a state change, something has been updated, or important information.
+
+
+ Major
+ Major event. Message might describe architectural change or vital information.
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+