No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0323.xml 111KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Internet of Things - Sensor Data</title>
  10. <abstract>
  11. Note: This specification has been retracted by the author; new
  12. implementations are not recommended.
  13. This specification provides the common framework for sensor data
  14. interchange over XMPP networks.
  15. </abstract>
  16. &LEGALNOTICE;
  17. <number>0323</number>
  18. <status>Retracted</status>
  19. <type>Standards Track</type>
  20. <sig>Standards</sig>
  21. <approver>Council</approver>
  22. <dependencies>
  23. <spec>XMPP Core</spec>
  24. <spec>XEP-0001</spec>
  25. <spec>XEP-0030</spec>
  26. </dependencies>
  27. <supersedes/>
  28. <supersededby/>
  29. <shortname>sensor-data</shortname>
  30. &peterwaher;
  31. <revision>
  32. <version>0.6</version>
  33. <date>2017-05-20</date>
  34. <initials>XEP Editor: ssw</initials>
  35. <remark>Mark XEP as retracted by the author.</remark>
  36. </revision>
  37. <revision>
  38. <version>0.5</version>
  39. <date>2015-11-09</date>
  40. <initials>pw</initials>
  41. <remark>
  42. <p>Updated contact information.</p>
  43. <p>Updated example JIDs to example.org</p>
  44. </remark>
  45. </revision>
  46. <revision>
  47. <version>0.4</version>
  48. <date>2015-03-02</date>
  49. <initials>pw</initials>
  50. <remark>
  51. <p>
  52. Added '<strong>cancel</strong>' and '<strong>cancelled</strong>' elements to the XML schema.
  53. These elements where previously available in <link url='#cancelreadout'>use cases</link>, but not documented in the XML schema.
  54. </p>
  55. </remark>
  56. </revision>
  57. <revision>
  58. <version>0.3</version>
  59. <date>2014-04-07</date>
  60. <initials>pw</initials>
  61. <remark>
  62. <p>
  63. Updated IQ-error stanzas for <link url='#readoutrejected'>readout rejections</link> to make them compliant with RFC-6120.
  64. </p>
  65. <p>
  66. The element <strong>rejected</strong> is no longer used and has been removed.
  67. </p>
  68. <p>
  69. Harmonization of data types between XEP-0323 and XEP-0325. This has resulted in the addition of the following new field types: <strong>date</strong>,
  70. <strong>int</strong>, <strong>long</strong> and <strong>time</strong>. The <strong>timeSpan</strong> type has been renamed <strong>duration</strong>.
  71. </p>
  72. <p>
  73. The term Field Status Value has been renamed <link url='#fieldqosvalues'>Field Quality of Service Value</link>, to make it clearer.
  74. </p>
  75. <p>
  76. Added a <link url='#fieldqosvalues'>inProgress</link> field quality of service value.
  77. </p>
  78. <p>
  79. Added a section giving an example of the <link url='#estimatesvsreadouts'>difference between estimates and normally read values</link>.
  80. </p>
  81. <p>
  82. A new field attribute named <link url='#control'>writable</link> has been added. It can be used to inform clients that the corresponding value can be controlled
  83. using XEP-0325.
  84. </p>
  85. <p>Added anchors to all second level subsections.</p>
  86. </remark>
  87. </revision>
  88. <revision>
  89. <version>0.2</version>
  90. <date>2014-03-10</date>
  91. <initials>pw</initials>
  92. <remark>
  93. <p>Changed the id attrobutes of IQ stanzas, to highlight they are different from sequence numbers used in requests.</p>
  94. <p>Fixed links to documents with new numbers.</p>
  95. <p>Changed namespace urn:xmpp:sn to urn:xmpp:iot:sensordata</p>
  96. </remark>
  97. </revision>
  98. <revision>
  99. <version>0.1</version>
  100. <date>2013-04-16</date>
  101. <initials>psa</initials>
  102. <remark>
  103. <p>Initial published version approved by the XMPP Council.</p>
  104. </remark>
  105. </revision>
  106. <revision>
  107. <version>0.0.5</version>
  108. <date>2013-04-01</date>
  109. <initials>pw</initials>
  110. <remark>
  111. <p>Added resource information of original called to their corresponding JIDs.</p>
  112. <p>Changed the return type of a rejected message.</p>
  113. <p>Made images inline.</p>
  114. <p>Converted the glossary into a definition list.</p>
  115. </remark>
  116. </revision>
  117. <revision>
  118. <version>0.0.4</version>
  119. <date>2013-03-18</date>
  120. <initials>pw</initials>
  121. <remark>
  122. <p>Added information about how to read sensors from large subsystems.</p>
  123. <p>Added support for client/device provisioning tokens.</p>
  124. </remark>
  125. </revision>
  126. <revision>
  127. <version>0.0.3</version>
  128. <date>2013-03-11</date>
  129. <initials>pw</initials>
  130. <remark>
  131. <p>Changed time point to timestamp everywhere.</p>
  132. <p>Corrected some errors in the text.</p>
  133. <p>Made the accepted response optional.</p>
  134. </remark>
  135. </revision>
  136. <revision>
  137. <version>0.0.2</version>
  138. <date>2013-03-09</date>
  139. <initials>pw</initials>
  140. <remark>
  141. <p>Corrected some errors in XML examples.</p>
  142. <p>English corrected.</p>
  143. <p>
  144. Added <strong>errors</strong> elements to the <strong>rejected</strong> element.
  145. </p>
  146. <p>
  147. Added <strong>cancel</strong> command with corresponding <strong>cancelled</strong> response.
  148. </p>
  149. </remark>
  150. </revision>
  151. <revision>
  152. <version>0.0.1</version>
  153. <date>2013-03-07</date>
  154. <initials>pw</initials>
  155. <remark>
  156. <p>First draft.</p>
  157. </remark>
  158. </revision>
  159. </header>
  160. <section1 topic='Introduction' anchor='intro'>
  161. <p>
  162. This XEP provides the underlying architecture, basic operations and data structures for sensor data communication over XMPP networks. It includes a hardware abstraction model, removing any
  163. technical detail implemented in underlying technologies.
  164. </p>
  165. <p>
  166. Note has to be taken, that these XEP's are designed for implementation in sensors, many of which have very limited amount of memory (both RAM and ROM) or resources (processing power).
  167. Therefore, simplicity is of utmost importance. Furthermore, sensor networks can become huge, easily with millions of devices in peer-to-peer networks.
  168. </p>
  169. <p>
  170. 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:
  171. </p>
  172. <table caption='Internet of Things XEPs'>
  173. <tr>
  174. <th>XEP</th>
  175. <th>Description</th>
  176. </tr>
  177. <tr>
  178. <td>xep-0000-IoT-BatteryPoweredSensors</td>
  179. <td>Defines how to handle the peculiars related to battery powered devices, and other devices intermittently available on the network.</td>
  180. </tr>
  181. <tr>
  182. <td>xep-0000-IoT-Events</td>
  183. <td>Defines how sensors send events, how event subscription, hysteresis levels, etc., are configured.</td>
  184. </tr>
  185. <tr>
  186. <td>xep-0000-IoT-Interoperability</td>
  187. <td>Defines guidelines for how to achieve interoperability in sensor networks, publishing interoperability interfaces for different types of devices.</td>
  188. </tr>
  189. <tr>
  190. <td>xep-0000-IoT-Multicast</td>
  191. <td>Defines how sensor data can be multicast in efficient ways.</td>
  192. </tr>
  193. <tr>
  194. <td>xep-0000-IoT-PubSub</td>
  195. <td>Defines how efficient publication of sensor data can be made in sensor networks.</td>
  196. </tr>
  197. <tr>
  198. <td>xep-0000-IoT-Chat</td>
  199. <td>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.</td>
  200. </tr>
  201. <tr>
  202. <td>XEP-0322</td>
  203. <td>
  204. 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
  205. in all sensor network implementations where memory and packet size is an issue.
  206. </td>
  207. </tr>
  208. <tr>
  209. <td>XEP-0323</td>
  210. <td>
  211. This specification. Provides the underlying architecture, basic operations and data structures for sensor data communication over XMPP networks.
  212. It includes a hardware abstraction model, removing any technical detail implemented in underlying technologies. This XEP is used by all other sensor network XEPs.
  213. </td>
  214. </tr>
  215. <tr>
  216. <td>XEP-0324</td>
  217. <td>Defines how provisioning, the management of access privileges, etc., can be efficiently and easily implemented.</td>
  218. </tr>
  219. <tr>
  220. <td>XEP-0325</td>
  221. <td>Defines how to control actuators and other devices in Internet of Things.</td>
  222. </tr>
  223. <tr>
  224. <td>XEP-0326</td>
  225. <td>Defines how to handle architectures containing concentrators or servers handling multiple sensors.</td>
  226. </tr>
  227. <tr>
  228. <td>XEP-0331</td>
  229. <td>Defines extensions for how color parameters can be handled, based on &xep0004;</td>
  230. </tr>
  231. <tr>
  232. <td>XEP-0336</td>
  233. <td>Defines extensions for how dynamic forms can be created, based on &xep0004;, &xep0122;, &xep0137; and &xep0141;.</td>
  234. </tr>
  235. <tr>
  236. <td>XEP-0347</td>
  237. <td>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.</td>
  238. </tr>
  239. </table>
  240. </section1>
  241. <section1 topic='Glossary' anchor='glossary'>
  242. <p>The following table lists common terms and corresponding descriptions.</p>
  243. <dl>
  244. <di>
  245. <dt>Actuator</dt>
  246. <dd>Device containing at least one configurable property or output that can and should be controlled by some other entity or device.</dd>
  247. </di>
  248. <di>
  249. <dt>Computed Value</dt>
  250. <dd>A value that is computed instead of measured.</dd>
  251. </di>
  252. <di>
  253. <dt>Concentrator</dt>
  254. <dd>Device managing a set of devices which it publishes on the XMPP network.</dd>
  255. </di>
  256. <di>
  257. <dt>Field</dt>
  258. <dd>
  259. One item of sensor data. Contains information about: Node, Field Name, Value, Precision, Unit, Value Type, Status, Timestamp, Localization information, etc.
  260. Fields should be unique within the triple (Node ID, Field Name, Timestamp).
  261. </dd>
  262. </di>
  263. <di>
  264. <dt>Field Name</dt>
  265. <dd>Name of a field of sensor data. Examples: Energy, Volume, Flow, Power, etc.</dd>
  266. </di>
  267. <di>
  268. <dt>Field Type</dt>
  269. <dd>What type of value the field represents. Examples: Momentary Value, Status Value, Identification Value, Calculated Value, Peak Value, Historical Value, etc.</dd>
  270. </di>
  271. <di>
  272. <dt>Historical Value</dt>
  273. <dd>A value stored in memory from a previous timestamp.</dd>
  274. </di>
  275. <di>
  276. <dt>Identification Value</dt>
  277. <dd>A value that can be used for identification. (Serial numbers, meter IDs, locations, names, etc.)</dd>
  278. </di>
  279. <di>
  280. <dt>Localization information</dt>
  281. <dd>Optional information for a field, allowing the sensor to control how the information should be presented to human viewers.</dd>
  282. </di>
  283. <di>
  284. <dt>Meter</dt>
  285. <dd>A device possible containing multiple sensors, used in metering applications. Examples: Electricity meter, Water Meter, Heat Meter, Cooling Meter, etc.</dd>
  286. </di>
  287. <di>
  288. <dt>Momentary Value</dt>
  289. <dd>A momentary value represents a value measured at the time of the read-out.</dd>
  290. </di>
  291. <di>
  292. <dt>Node</dt>
  293. <dd>
  294. Graphs contain nodes and edges between nodes. In Internet of Things, sensors, actuators, meters, devices, gateways, etc., are often depicted as nodes whereas links between sensors (friendships)
  295. are depicted as edges. In abstract terms, it's easier to talk about a Node, rather than list different possible node types (sensors, actuators, meters, devices, gateways, etc.).
  296. Each Node has a Node ID.
  297. </dd>
  298. </di>
  299. <di>
  300. <dt>Node ID</dt>
  301. <dd>
  302. An ID uniquely identifying a node within its corresponding context. If a globally unique ID is desired, an architecture should be used using a universally accepted
  303. ID scheme.
  304. </dd>
  305. </di>
  306. <di>
  307. <dt>Parameter</dt>
  308. <dd>
  309. Readable and/or writable property on a node/device. The XEP-0326 &xep0326; deals with reading and writing parameters
  310. on nodes/devices. Fields are not parameters, and parameters are not fields.
  311. </dd>
  312. </di>
  313. <di>
  314. <dt>Peak Value</dt>
  315. <dd>A maximum or minimum value during a given period.</dd>
  316. </di>
  317. <di>
  318. <dt>Precision</dt>
  319. <dd>
  320. In physics, precision determines the number of digits of precision. In sensor networks however, this definition is not easily applicable. Instead, precision
  321. determines, for example, the number of decimals of precision, or power of precision. Example: 123.200 MWh contains 3 decimals of precision. All entities parsing and
  322. delivering field information in sensor networks should always retain the number of decimals in a message.
  323. </dd>
  324. </di>
  325. <di>
  326. <dt>Sensor</dt>
  327. <dd>
  328. Device measuring at least one digital value (0 or 1) or analog value (value with precision and physical unit). Examples: Temperature sensor, pressure sensor, etc.
  329. Sensor values are reported as fields during read-out. Each sensor has a unique Node ID.
  330. </dd>
  331. </di>
  332. <di>
  333. <dt>SN</dt>
  334. <dd>Sensor Network. A network consisting, but not limited to sensors, where transport and use of sensor data is of primary concern. A sensor network may contain actuators, network applications, monitors, services, etc.</dd>
  335. </di>
  336. <di>
  337. <dt>Status Value</dt>
  338. <dd>A value displaying status information about something.</dd>
  339. </di>
  340. <di>
  341. <dt>Timestamp</dt>
  342. <dd>Timestamp of value, when the value was sampled or recorded.</dd>
  343. </di>
  344. <di>
  345. <dt>Token</dt>
  346. <dd>
  347. A client, device or user can get a token from a provisioning server. These tokens can be included in requests to other entities in the network, so these entities can validate
  348. access rights with the provisioning server.
  349. </dd>
  350. </di>
  351. <di>
  352. <dt>Unit</dt>
  353. <dd>Physical unit of value. Example: MWh, l/s, etc.</dd>
  354. </di>
  355. <di>
  356. <dt>Value</dt>
  357. <dd>A field value.</dd>
  358. </di>
  359. <di>
  360. <dt>Value Status</dt>
  361. <dd>Status of field value. Contains important status information for Quality of Service purposes. Examples: Ok, Error, Warning, Time Shifted, Missing, Signed, etc.</dd>
  362. </di>
  363. <di>
  364. <dt>Value Type</dt>
  365. <dd>Can be numeric, string, boolean, Date &amp; Time, Time Span or Enumeration.</dd>
  366. </di>
  367. <di>
  368. <dt>WSN</dt>
  369. <dd>Wireless Sensor Network, a sensor network including wireless devices.</dd>
  370. </di>
  371. <di>
  372. <dt>XMPP Client</dt>
  373. <dd>Application connected to an XMPP network, having a JID. Note that sensors, as well as applications requesting sensor data can be XMPP clients.</dd>
  374. </di>
  375. </dl>
  376. </section1>
  377. <section1 topic='Use Cases' anchor='usecases'>
  378. <p>
  379. The most common use case for a sensor network application is meter read-out. It's performed using a request and response mechanism, as is shown in the following diagram.
  380. </p>
  381. <p>
  382. <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhAAAAFhCAIAAACu9AQnAAAbaUlEQVR4nO3d267ltn3HcT6TBxl49CRtBujEbs2XKArMhRsbQW3oAZoY9ZUbzEXTAXTpuPFVA8STgxO7kU9jJz57POMkPo2B1QsdSJEURa61tCiK3w8MeO+1JYrS6M+fuLS3ljgAABBApO4AACAPBAYAIIgKDAEAgIsjMC6dVgjAvwuAtAiMbPDvAiAtAiMb/LsASIvAyAb/LgDSIjCywb8LgLRODIy2rkRVt+qFRk7vqMsmuktWm0tLT7Zxhg7EMTvQvTRuf9yTRo7fdD8P38cDaQFgA9YIjPGFuKF/ts2FZYUVGCd2IIbdgWkP1DfjV40kLQDkKCQw1AXzMMwNr1RS+gJj/GZswWzA36aaLajvu8G5a7kZW1FDdmAHtFeqbnNm4/61jAVUB8wEGb/vWq1JCwC5CgiMyRB8OOhjYltXwg4M8w0hdZ2vBmWzbUebauGhAXtMd88wljvg3VzfuKPb1qGwO+Cccw2BEf1GGWkBYDviZhjm+Ot5S0p742U6hnevmVMM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t+fAAACcEYEBAAhCYAAAghAYAIAgew6M3ewIcBmUDPwIDAA9SgZ+ew4MAMAZERgAgCAEBgAgCIEBAAhCYAAAghAYAIAgBAYAIAiBAQAIQmAAAIIQGACAIAQGACAIgQEACEJgAACCEBgAgCAEBgAgCIEBAAhCYAAAghAYAIAgBAYAIAiBAQAIQmAAAIIQGACAIO7AAADAZgYGAAAeBAYAIMj/AxpDdQADlfNCAAAAAElFTkSuQmCC'/>
  383. </p>
  384. <p>
  385. The read-out request is started by the client sending a <strong>req</strong> request to the device. Here, the client selects a sequence number <strong>seqnr</strong>.
  386. It should be unique among requests made by the client. The device will use this sequence numbers in all messages sent back to the client.
  387. </p>
  388. <p>
  389. The request also contains a set of <strong>field types</strong> that very roughly determine what the client wants to read. What the client actually will return will be determined by
  390. a lot of other factors, such as make and model of device, any provisioning rules provided, etc. This parameter just gives a hint on what kind of data is desired. It is implicit in the request
  391. by the context what kind of data is requested. Examples of field types are: Momentary values, peak values, historical values, computed values, status values, identification values, etc.
  392. </p>
  393. <p>
  394. If reading historical values, the client can also specify an optional time range using the <strong>from</strong> and <strong>to</strong> parameter values, giving the device a hint on
  395. how much data to return.
  396. </p>
  397. <p>
  398. If the client wants the read-out to be performed at a given point in time, the client can define this using the optional parameter <strong>when</strong>.
  399. </p>
  400. <p>
  401. There's an optional parameter <strong>ids</strong> that the client can provide, listing a set of <strong>Node IDs</strong>. If omitted, the request includes all sensors or devices
  402. managed by the current JID. But, if the JID is controlled by a system, device or concentrator managing various devices, the <strong>ids</strong> parameter restricts the read-out to
  403. specific individuals.
  404. </p>
  405. <p>
  406. <strong>Note:</strong> The device is not required to follow the hints given by the client. These are suggestions the client can use to minimize its effort to perform the read-out.
  407. The client MUST make sure the response is filtered according to original requirements by the client after the read-out response has been received.
  408. </p>
  409. <p>
  410. If the device accepts the client request, it sends an <strong>accepted</strong> response back to the client. The device also has to determine if the read-out is commenced directly,
  411. or if it is to be queued for later processing. Note that the request can be queued for several reasons. The device can be busy, and queues it until it is ready to process the request.
  412. It can also queue the request if the client has requested it to be executed at a given time. If the request is queued, the device informs the client of this using the <strong>queued</strong>
  413. attribute. Note however, that the device will process the request when it can. There's no guarantee that the device will be able to process the request exactly when the client requests it.
  414. </p>
  415. <p>
  416. <strong>Note:</strong> The <strong>accepted</strong> message can be omitted if the device already has the response and is ready to send it. If the client receives field data or a
  417. <strong>done</strong> message before receiving an <strong>accepted</strong> message, the client can assume the device accepted the request and omitted sending an <strong>accepted</strong>
  418. element.
  419. </p>
  420. <p>
  421. If the request was queued, the device will send a message informing the client when the read-out is begun. This is done using a <strong>started</strong> message, using the same
  422. <strong>seqnr</strong> used in the original request.
  423. </p>
  424. <p>
  425. <strong>Note:</strong> Sending a <strong>started</strong> element should be omitted by the device if the request is not queued on the device. If the <strong>queued</strong> attribute
  426. is omitted in the response, or has the value <strong>false</strong>, the client must not assume the device will send a <strong>started</strong> element.
  427. </p>
  428. <p>
  429. During the read-out, the device sends partial results back to the client using the same <strong>seqnr</strong> as used in the request, using a <strong>fields</strong> message.
  430. These messages will contain a sequence of fields read out of the device. The client is required to filter this list according to original specifications, as the device is not required
  431. to do this filtering for the client.
  432. </p>
  433. <p>
  434. When read-out is complete, the device will send a <strong>done</strong> message to the client with the same <strong>seqnr</strong> as in the original request. Since the sender
  435. of messages in the device at the time of sending might not be aware of if there are more messages to send or not, the device can send this message separately as is shown in the
  436. diagram. If the device however, knows the last message containing fields is the last, it can set a <strong>done</strong> attribute in the message, to skip this last message.
  437. </p>
  438. <p>
  439. <strong>Note:</strong> There is no guarantee that the device will send a corresponding <strong>started</strong> and <strong>fields</strong> element, even though the request was
  440. accepted. The device might lose power during the process and forget the request. The client should always be aware of that devices may not respond in time, and take appropriate action
  441. accordingly (for instance, implementing a retry mechanism).
  442. </p>
  443. <p>
  444. If a failure occurs while performing the read-out, a <strong>failure</strong> message is sent, instead of a corresponding <strong>fields</strong> message, as is shown in the following diagram.
  445. Apart from notifying the client that a failure to perform the read-out, or part thereof, has occurred, it also provides a list of errors that the device encountered while trying. Note that
  446. multiple <strong>fields</strong> and <strong>failure</strong> messages can be sent back to the client during the read-out.
  447. </p>
  448. <p>
  449. <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhAAAAGCCAIAAAA+JG0LAAAfDklEQVR4nO3da6/txH3H8XlNHAVx/EraIJVAy7yJqtJ5QBMUFeQX0ASVRzTiQVMkP0xoeNRI4eQemsXtQMI1wIHcuETafWCPZzwzHs9/LXv5Mt+PkNh7ba/x2Nv/+XmWz7bVDQAAGdTaHQAA7AOBAQDIYgNDAQAQEwmMa6cVlsQvFMAsCIzj4xcKYBYExvHxCwUwCwLj+PiFApgFgXF8/EIBzOLCwDjVlarqk32h0cMr6roRdyloc2rpwTpm6IDMRAei62+0ajex/2IxpAWAuSwRGP0LsqF/tM2JZVUwXl/YAYmJDkxZODBICwAzygmMU111p8tmbDOvVFqnAqP/pm/BbyDdpj1Zt9+3g3PbctO3YofszA44r1Tt6vzG0+/yFhjrwMjGhjOMcO2NbvumqvoU6YngVwsAs8gIjGAEtGfVp7pSYWD4H8jY83w7LPptR9q0C5sGwlE1foI/3YHk6rrGI90eCYPxDoyEaW5geNsf2YFjSAsAs5PNMPzxN/GRVKMHEwN/DPXPusM23aa7cTI3MKY7ENmEoPGJbtuxfPIjqWCKkRsYXcOxnmT9UgFgRjmBYSROzwfLOCOxPzp7LU3OMOwwPXhl0PToeJ3ogO1BuDrzSuoCyPDt6cCIzE/igTHcNCcwRJdiSAsAC8kIjLzrDZ3gEsLwI3j3Q3ylug/pnXP1YZv2zNoZOfu32XlE8hpGvAOR1YWNB++K7Ip0B9xFnI2N/CupYO2DT5/C/k/8OgFgdpIZxjEt/y+prqiw3x2AqyIwjhMYhf3iAFwbgXEQ/NYALI3AOAJ+ZQCugMDYPX5fAK6DwNg3flkAriYeGNiLlQ4bACVSzDAAADkIDABAFgIDAJCFwAAAZCEwAABZCAwAQBYCAwCQhcAAAGQhMAAAWQgMAEAWAgMAkIXAAAB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  450. </p>
  451. <p>
  452. The device can also reject a read-out request. Reasons for rejecting a request may be missing privileges defined by provisioning rules, etc. It's not part of this XEP
  453. to define such rules. A separate XEP (&xep0324;) defines an architecture for how such provisioning can be easily implemented.
  454. </p>
  455. <p>
  456. A rejection response is shown in the following diagram.
  457. </p>
  458. <p>
  459. <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZ0AAADjCAIAAADR4l7wAAAOtElEQVR4nO3d244Uxx3H8XomkBHbT5IYKRgS+iWiSFw4NrICmgeIjcIVsbiIg9SXNjFXsWTWZxMPBy/YYMDAgk8YLE0u+lTdVd3TM9Mz0/2r70crebenp6q6av6/qeldCzMDAC1m2wMAgJ6RawDUlLlmAGDkPLm26VDFlrDWkESuBY21hiRyLWisNSSRa0FjrSGJXAsaaw1JK+badBKZaDItDyRx9ZcScbLwkJw2551d6aOHASxmyQEk8aJjq3e0MkINqtaRa8WBxRKqsc055xonVlYcwCI2NgC3o9UQahDWJdemkyjbe+Qlmh+J4rgt14ofihbqDbS3WW59yp/T0k5bTopWyoLvOADrSJR2V2+8/Vm1ExYfQGW/5nZUXnuczPwdrYBQg7YOuVYp1NnM3jpMJ5Fp/RxanFUPpnrbnjbLk/MG3Ojxb5fmD6C1u6xxz7CdqVh6APZUtD1afNPffo1Qg7zF9mv1Km35HJrElW1WKT1W37C5bdpNZ9XdNdfmD8BzCU7jc4ZdRu4yA7BzrXV4lUVYPdcINYSgS67lWjY7lXOswGioUncD1LCBKtOkcqTSdOPtrZYB1PZB3sbb7o21bKMWHYD3Jlyl/doELY9QQyA65Fq3e2EZ5+5SGT92C/kWJYqiys6n2ma5kbESoHhauSlqvb3lH4CnO7dx51meqVh2AP77a7Vn+jqK7f1g9ZtuKw3IW2S/pmn9vzP1WvzvPFYU2LIiaOTaNnIt3XttMNYCW1OEjlzTx4IiNOSaOFYTASLXlLGUCBO5Jot1RLD8uQYBW3pFAdtn2K8BEEOuAVBDrgFQQ64BUEOuAVBDrgFQQ64BUEOu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PyJ+T6stZ2WZG9aB9/V+YI1j0Hf2NLj67+tsAyFkvEh14YpiU19b1JmUEOuuY9U2zPljqkh11rvrzUPqcNI6uP37Nf8Z3rur7lhlMTVJPb1OFss11qurpK3zn7NM7Y4Yb+2YeTasFn1kN/mippyzb7hZIpPf+WuId9BFC3YuWb8N5lah1Tvru2h2u2qssfmM90rrY6genVuO86MtX8Sr/fVfHW+yyzvr9Vu/XF/bRvItbbWBjkVQ33rn21uaAv20+X0JF5j8Ax3yci1EehlkUzVWge8lKEWSRJ33/P10NkCk7DlGRvqvbXZjFwbhVUWyTTYzMiBrSDXRmCJRWqKM3INISDXRqC2SHMzCwC5NnTGybW5azZ31bd7RcBakWsjsESu2c8l1xAacm0EVsk1uxFyDYEg10agl1yzWxvvVABdkGsj0G+uAfJUa4RcA8KlWiPkGhAu1Roh14BwqdYIuQaES7VGyDUgXKo1Ip5rLbY9WGD7yLURUF0kYE1US4ZcA8KlWjJqucYHT6A71ZKRyjUAmJFrAPSQawDUKOeazIUAmyFTMuQagIxMyZBrADIyJUOuAcjIlAy5BiAjUzLkGoCMTMmQawAyMiWjnGsAwkSuAVBDrgFQQ64BUKOcazIXAmyGTMmQawAyMiVDrgHIyJQMuQYgI1My5BqAjEzJkGsAMjIlQ64ByMiUjHKuAQgTuQZADbkGQA25BkCNcq7JXAiwGTIlQ64ByMiUDLkGICNTMuQagIxMyZBrADIyJUOuAcjIlAy5BiAjUzLKuQYgTOQaADXkGgA15BoANeQaADXkGgA15BoANeQaADXkGgA15BoANeQaADXkGgA15BoANeQaADXkGgA15BoANeQaADXkGgA15BoANeQaADXkGgA15BoANeQaADX+XAOAUavnGgBoINcAqPk/SfDfMMCR1PQAAAAASUVORK5CYII='/>
  460. </p>
  461. <p>
  462. If a read-out has been queued, the client can cancel the queued read-out request sending a <strong>cancel</strong> command to the device. If a reading has begin and the client
  463. sends a <strong>cancel</strong> command to the device, the device can choose if the read-out should be cancelled or completed.
  464. </p>
  465. <p>
  466. <strong>Note:</strong> Remember that the <strong>seqnr</strong> value used in this command is unique only to the client making the request. The device can receive requests
  467. from multiple clients, and must make sure it differs between <strong>seqnr</strong> values from different clients. Different clients are assumed to have different values
  468. in the corresponding <strong>from</strong> attributes.
  469. </p>
  470. <p>
  471. <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZ0AAAEiCAIAAACtIZhVAAAUDklEQVR4nO3d267cVh3H8fVMjYgSPwkQiZBC1ksgpFwUGiFa+QGAil4VlAsgki9LoVcg0Q2l0ICbpjuBnpMmAXpKpeHCXl5HH2aPPTP+r+9Hudjjba+D1/x/s8ZpFbUBAFnUoQcAADMj1wBIY3NNAcDKJXJt36GKo8HqQwByDR5WHwKQa/Cw+hCAXIOH1YcA5Bo8rD4E2DHX6rJQRVnbA5X2/1JCV1sPKWpz7GyvjxkGsJ1wAM2hhfqvtGruTffDyNC2uJMbQg1SLJFr3YGt62rrq+qyCKJjhgFsIx7AptL2yKT42cKSuUaoQYwpuWa3H6ZIzJFC66Fc6150LYQNDLdp9172dZMYTctV14pNlokDcI4UTXdh48NXBSfYAaSzJJ5vpZXSWntXd/M1rUUDSORa/yDj1elHqEGSCbkWbQ3sHqUuCxXnWvgt0Ja6u5Xx2060aU82DcTRk96vjQ9gsLu28cSw411SNIDhPZJtoNIqaNTrxQyybwDuDRid2hhCDcJst18LY2Lge2ilvW2WFewynFzz23Sbbmt2aq6NDyAxhajxkWHbyJ2Sa9GGbSBG3akEA4hybdLUpr0DADGm5JoxZUfg7Gi6X6Yr1t9/9GygbJp4R7yme5+vDQzAjiDuzhwZSgX/cm8A3j1xIjLY8MUZ7bU5MOye/ZrX/9T9GqEGkSbk2rRnYa3o8ZaNH7cFs80oisLb+fht2s1ImxzdOUXh1Ldyk2XiABLdxY1HVyVuRTQA/zQnu/z5Jh7n2fnGjyGd+9b3fG3C6vSsPSDMNvs1mZb/O9NjldlCIyPkWqa5ltkqIy/kWo5YYshGrmWH9YV45FpeWFzkgFzLCCuLTKRzDSId6D0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ijWYWAHLt2Kko10bXbHTVDzsjYFHk2gqcIdfca8k15IZcW4Fdcs1thFxDJsi1FZgl19zW1nsrgCnItRWYN9cA8aTWCLkG5EtqjZBrQL6k1gi5BuRLao2Qa0C+pNYIuQbkS2qNCM+1AYceLHB45NoKSF0kYCFSS4ZcA/IltWSk5RpfPIHppJaMqFwLiJkIsB9iSoZcA9ASUzLkGoCWmJIh1wC0xJQMuQagJaZkyDUALTElIznXAOSJXAMgDbkGQBpyDYA0knNNzESA/RBTMuQagJaYkiHXALTElAy5BqAlpmTINQAtMSVDrgFoiSkZcg1AS0zJSM41AHki1wBIQ64BkIZcAyCN5FwTMxFgP8SUDLkGoCWmZMg1AC0xJUOuAWiJKRlyDUBLTMlIzjUAeSLXAEhDrgGQhlwDIA25BkAacg2ANOQaAGnINQDSkGsApCHXAEhDrgGQhlwDIA25BkAacg2ANOQaAGnINQDSkGsApCHXAEhDrgGQhlwDIA25BkAacg2ANOlcA4BVC3MNAGQg1wBI838U0F7fe3WaXgAAAABJRU5ErkJggg=='/>
  472. </p>
  473. <section2 topic='Request Read-out of momentary values' anchor='readmomentary'>
  474. <p>
  475. The client that wishes to receive momentary values from the sensor initiates the request using the <strong>req</strong> element sent to the device.
  476. </p>
  477. <example caption='Read-out request of momentary values from a device'>
  478. <![CDATA[
  479. <iq type='get'
  480. from='client@example.org/amr'
  481. to='device@example.org'
  482. id='S0001'>
  483. <req xmlns='urn:xmpp:iot:sensordata' seqnr='1' momentary='true'/>
  484. </iq>]]>
  485. </example>
  486. <p>
  487. When the device has received and accepted the request, it responds as follows:
  488. </p>
  489. <example caption='Read-out request accepted by device'>
  490. <![CDATA[
  491. <iq type='result'
  492. from='device@example.org'
  493. to='client@example.org/amr'
  494. id='S0001'>
  495. <accepted xmlns='urn:xmpp:iot:sensordata' seqnr='1'/>
  496. </iq>]]>
  497. </example>
  498. <p>
  499. When read-out is complete, the response is sent as follows:
  500. </p>
  501. <example caption='Momentary read-out response'>
  502. <![CDATA[
  503. <message from='device@example.org'
  504. to='client@example.org/amr'>
  505. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='1' done='true'>
  506. <node nodeId='Device01'>
  507. <timestamp value='2013-03-07T16:24:30'>
  508. <numeric name='Temperature' momentary='true' automaticReadout='true' value='23.4' unit='°C'/>
  509. </timestamp>
  510. </node>
  511. </fields>
  512. </message>]]>
  513. </example>
  514. </section2>
  515. <section2 topic='Read-out failure' anchor='readoutfailure'>
  516. <p>
  517. If instead a read-out could not be performed, the communication sequence might look as follows:
  518. </p>
  519. <example caption='Momentary read-out failure'>
  520. <![CDATA[
  521. <iq type='get'
  522. from='client@example.org/amr'
  523. to='device@example.org'
  524. id='S0002'>
  525. <req xmlns='urn:xmpp:iot:sensordata' seqnr='2' momentary='true'/>
  526. </iq>
  527. <iq type='result'
  528. from='device@example.org'
  529. to='client@example.org/amr'
  530. id='S0002'>
  531. <accepted xmlns='urn:xmpp:iot:sensordata' seqnr='2'/>
  532. </iq>
  533. <message from='device@example.org'
  534. to='client@example.org/amr'>
  535. <failure xmlns='urn:xmpp:iot:sensordata' seqnr='2' done='true'>
  536. <error nodeId='Device01' timestamp='2013-03-07T17:13:30'>Timeout.</error>
  537. </failure>
  538. </message>]]>
  539. </example>
  540. </section2>
  541. <section2 topic='Read-out rejected' anchor='readoutrejected'>
  542. <p>
  543. If for some reason, the device rejects the read-out request, the communication sequence might look as follows:
  544. </p>
  545. <example caption='Momentary read-out rejected'>
  546. <![CDATA[
  547. <iq type='get'
  548. from='client@example.org/amr'
  549. to='device@example.org'
  550. id='S0003'>
  551. <req xmlns='urn:xmpp:iot:sensordata' seqnr='3' momentary='true'/>
  552. </iq>
  553. <iq type='error'
  554. from='device@example.org'
  555. to='client@example.org/amr'
  556. id='S0003'>
  557. <error type='cancel'>
  558. <forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  559. <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' xml:lang='en'>Access denied.</text>
  560. </error>
  561. </iq>]]>
  562. </example>
  563. <p>
  564. Depending on the reason for rejecting the request, different XMPP errors can be returned, according to the description in the following table. The table also
  565. lists recommended error type for each error. Any custom error message is returned in a <strong>text</strong> element, as in the example above.
  566. </p>
  567. <table caption='XMPP Errors when rejecting a readout request'>
  568. <tr>
  569. <th>Error Type</th>
  570. <th>Error Element</th>
  571. <th>Namespace</th>
  572. <th>Description</th>
  573. </tr>
  574. <tr>
  575. <td>cancel</td>
  576. <td>forbidden</td>
  577. <td>urn:ietf:params:xml:ns:xmpp-stanzas</td>
  578. <td>If the caller lacks privileges to perform the action.</td>
  579. </tr>
  580. <tr>
  581. <td>cancel</td>
  582. <td>item-not-found</td>
  583. <td>urn:ietf:params:xml:ns:xmpp-stanzas</td>
  584. <td>If an item or data source could not be found.</td>
  585. </tr>
  586. <tr>
  587. <td>modify</td>
  588. <td>bad-request</td>
  589. <td>urn:ietf:params:xml:ns:xmpp-stanzas</td>
  590. <td>If the request was malformed. Examples can include trying to read a device behind a concentrator, without including node information.</td>
  591. </tr>
  592. </table>
  593. </section2>
  594. <section2 topic='Read-out all' anchor='readall'>
  595. <p>
  596. The following example shows a communication sequence when a client reads out all available information from a sensor at a given point in time:
  597. </p>
  598. <example caption='Scheduled read-out of device with multiple responses'>
  599. <![CDATA[
  600. <iq type='get'
  601. from='client@example.org/amr'
  602. to='device@example.org'
  603. id='S0004'>
  604. <req xmlns='urn:xmpp:iot:sensordata' seqnr='4' all='true' when='2013-03-07T19:00:00'/>
  605. </iq>
  606. <iq type='result'
  607. from='device@example.org'
  608. to='client@example.org/amr'
  609. id='S0004'>
  610. <accepted xmlns='urn:xmpp:iot:sensordata' seqnr='4' queued='true'/>
  611. </iq>
  612. <message from='device@example.org'
  613. to='client@example.org/amr'>
  614. <started xmlns='urn:xmpp:iot:sensordata' seqnr='4'/>
  615. </message>
  616. <message from='device@example.org'
  617. to='client@example.org/amr'>
  618. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='4'>
  619. <node nodeId='Device01'>
  620. <timestamp value='2013-03-07T19:00:00'>
  621. <numeric name='Temperature' momentary='true' automaticReadout='true' value='23.4' unit='°C'/>
  622. <numeric name='Runtime' status='true' automaticReadout='true' value='12345' unit='h'/>
  623. <string name='Device ID' identification='true' automaticReadout='true' value='Device01'/>
  624. </timestamp>
  625. </node>
  626. </fields>
  627. </message>
  628. <message from='device@example.org'
  629. to='client@example.org/amr'>
  630. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='4'>
  631. <node nodeId='Device01'>
  632. <timestamp value='2013-03-07T19:00:00'>
  633. <numeric name='Temperature, Max' peak='true' automaticReadout='true' value='25.9' unit='°C'/>
  634. <numeric name='Temperature, Min' peak='true' automaticReadout='true' value='18.7' unit='°C'/>
  635. <numeric name='Temperature, Mean' computed='true' automaticReadout='true' value='22.5' unit='°C'/>
  636. </timestamp>
  637. </node>
  638. </fields>
  639. </message>
  640. <message from='device@example.org'
  641. to='client@example.org/amr'>
  642. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='4'>
  643. <node nodeId='Device01'>
  644. <timestamp value='2013-03-07T18:00:00'>
  645. <numeric name='Temperature' historicalHour='true' automaticReadout='true' value='24.5' unit='°C'/>
  646. </timestamp>
  647. <timestamp value='2013-03-07T17:00:00'>
  648. <numeric name='Temperature' historicalHour='true' automaticReadout='true' value='25.1' unit='°C'/>
  649. </timestamp>
  650. <timestamp value='2013-03-07T16:00:00'>
  651. <numeric name='Temperature' historicalHour='true' automaticReadout='true' value='25.2' unit='°C'/>
  652. </timestamp>
  653. ...
  654. <timestamp value='2013-03-07T00:00:00'>
  655. <numeric name='Temperature' historicalHour='true' historicalDay='true' automaticReadout='true' value='25.2' unit='°C'/>
  656. </timestamp>
  657. </node>
  658. </fields>
  659. </message>
  660. <message from='device@example.org'
  661. to='client@example.org/amr'>
  662. <done xmlns='urn:xmpp:iot:sensordata' seqnr='4'/>
  663. </message>]]>
  664. </example>
  665. </section2>
  666. <section2 topic='Read-out of multiple devices' anchor='readmulti'>
  667. <p>
  668. The following example shows how a client reads a subset of multiple sensors behind a device with a single JID.
  669. </p>
  670. <example caption='Read-out of multiple devices'>
  671. <![CDATA[
  672. <iq type='get'
  673. from='client@example.org/amr'
  674. to='device@example.org'
  675. id='S0005'>
  676. <req xmlns='urn:xmpp:iot:sensordata' seqnr='5' momentary='true'>
  677. <node nodeId='Device02'/>
  678. <node nodeId='Device03'/>
  679. </req>
  680. </iq>
  681. <iq type='result'
  682. from='device@example.org'
  683. to='client@example.org/amr'
  684. id='S0005'>
  685. <accepted xmlns='urn:xmpp:iot:sensordata' seqnr='5'/>
  686. </iq>
  687. <message from='device@example.org'
  688. to='client@example.org/amr'>
  689. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='5'>
  690. <node nodeId='Device02'>
  691. <timestamp value='2013-03-07T19:31:15'>
  692. <numeric name='Temperature' momentary='true' automaticReadout='true' value='23.4' unit='°C'/>
  693. </timestamp>
  694. </node>
  695. </fields>
  696. </message>
  697. <message from='device@example.org'
  698. to='client@example.org/amr'>
  699. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='5' done='true'>
  700. <node nodeId='Device03'>
  701. <timestamp value='2013-03-07T19:31:16'>
  702. <numeric name='Temperature' momentary='true' automaticReadout='true' value='22.8' unit='°C'/>
  703. </timestamp>
  704. </node>
  705. </fields>
  706. </message>]]>
  707. </example>
  708. </section2>
  709. <section2 topic='Read-out of specific fields' anchor='readfields'>
  710. <p>
  711. The <strong>req</strong> element can take <strong>field</strong> sub elements, with which the client can specify which fields it is interested in.
  712. If not provided, the client is assumed to return all matching fields, regardless of field name. However, the <strong>field</strong> elements in the
  713. request object can be used as a hint which fields should be returned.
  714. </p>
  715. <p>
  716. <strong>Note:</strong> the device is not required to adhere to the field limits expressed by these <strong>field</strong> elements. They are considered
  717. a hint the device can use to limit bandwidth.
  718. </p>
  719. <p>
  720. The following example shows how a client can read specific fields in a device.
  721. </p>
  722. <example caption='Read-out of multiple devices'>
  723. <![CDATA[
  724. <iq type='get'
  725. from='client@example.org/amr'
  726. to='device@example.org'
  727. id='S0006'>
  728. <req xmlns='urn:xmpp:iot:sensordata' seqnr='6' momentary='true'>
  729. <node nodeId='Device04'/>
  730. <field name='Energy'/>
  731. <field name='Power'/>
  732. </req>
  733. </iq>
  734. <iq type='result'
  735. from='device@example.org'
  736. to='client@example.org/amr'
  737. id='S0006'>
  738. <accepted xmlns='urn:xmpp:iot:sensordata' seqnr='6'/>
  739. </iq>
  740. <message from='device@example.org'
  741. to='client@example.org/amr'>
  742. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='6' done='true'>
  743. <node nodeId='Device04'>
  744. <timestamp value='2013-03-07T22:03:15'>
  745. <numeric name='Energy' momentary='true' automaticReadout='true' value='12345.67' unit='MWh'/>
  746. <numeric name='Power' momentary='true' automaticReadout='true' value='239.4' unit='W'/>
  747. </timestamp>
  748. </node>
  749. </fields>
  750. </message>]]>
  751. </example>
  752. </section2>
  753. <section2 topic="Cancelling a scheduled read-out request" anchor="cancelreadout">
  754. <p>
  755. The following example shows how the client cancels a scheduled read-out:
  756. </p>
  757. <example caption='Scheduled read-out of device with multiple responses'>
  758. <![CDATA[
  759. <iq type='get'
  760. from='client@example.org/amr'
  761. to='device@example.org'
  762. id='S0007'>
  763. <req xmlns='urn:xmpp:iot:sensordata' seqnr='8' all='true' when='2013-03-09T23:30:00'/>
  764. </iq>
  765. <iq type='result'
  766. from='device@example.org'
  767. to='client@example.org/amr'
  768. id='S0007'>
  769. <accepted xmlns='urn:xmpp:iot:sensordata' seqnr='8' queued='true'/>
  770. </iq>
  771. <iq type='get'
  772. from='client@example.org/amr'
  773. to='device@example.org'
  774. id='S0008'>
  775. <cancel xmlns='urn:xmpp:iot:sensordata' seqnr='8'/>
  776. </iq>
  777. <iq type='result'
  778. from='device@example.org'
  779. to='client@example.org/amr'
  780. id='S0008'>
  781. <cancelled xmlns='urn:xmpp:iot:sensordata' seqnr='8'/>
  782. </iq>]]>
  783. </example>
  784. </section2>
  785. </section1>
  786. <section1 topic='Determining Support' anchor='support'>
  787. <p>If an entity supports the protocol specified herein, it MUST advertise that fact by returning a feature of "urn:xmpp:iot:sensordata" in response to &xep0030; information requests.</p>
  788. <example caption="Service discovery information request">
  789. <![CDATA[
  790. <iq type='get'
  791. from='client@example.org/amr'
  792. to='device@example.org'
  793. id='disco1'>
  794. <query xmlns='http://jabber.org/protocol/disco#info'/>
  795. </iq>]]>
  796. </example>
  797. <example caption="Service discovery information response">
  798. <![CDATA[
  799. <iq type='result'
  800. from='device@example.org'
  801. to='client@example.org/amr'
  802. id='disco1'>
  803. <query xmlns='http://jabber.org/protocol/disco#info'>
  804. ...
  805. <feature var='urn:xmpp:iot:sensordata'/>
  806. ...
  807. </query>
  808. </iq>]]>
  809. </example>
  810. <p>
  811. 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
  812. in &xep0115;. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.
  813. </p>
  814. </section1>
  815. <section1 topic='Implementation Notes' anchor='impl'>
  816. <section2 topic='String lengths' anchor='stringlengths'>
  817. <p>
  818. As noticed, a conscious effort has been made not to shorten element and attribute names. This is to make sure, XML is maintained readable. Packet size is not deemed to be
  819. affected negatively by this for two reasons:
  820. </p>
  821. <ul>
  822. <li>
  823. For sensors with limited memory, or where package size is important, &xep0322; is supposed to be used.
  824. EXI compresses strings as normalized index values, making the string appear only once in the packet. Therefore, shortening string length doesn't affect packet
  825. size much. Element and attribute names in known namespaces are furthermore only encoded by index in schema, not by name.
  826. </li>
  827. <li>If limited memory or package size is not a consideration, readability and ease of implementation is preferred to short messages.</li>
  828. </ul>
  829. </section2>
  830. <section2 topic='Enumerations vs. Strings' anchor='enumsvsstrings'>
  831. <p>
  832. This protocol has avoided the use of enumerations for data types such as units, field names, etc., and instead use strings. The reasons for this are:
  833. </p>
  834. <ul>
  835. <li>Enumerations would unnecessarily restrict the use of the protocol to field names and units listed in the protocol.</li>
  836. <li>It would be very difficult to try to create a complete set of field names and units that would suit all applications.</li>
  837. <li>Leaving these values as strings would let developers the liberty to use units as they desire.</li>
  838. <li>If EXI is used for compression, the use of strings will only increase payload slightly, with only one copy of each distinct value used.</li>
  839. <li>If EXI is not used, this does not affect packet size.</li>
  840. </ul>
  841. <p>
  842. However, some things need to be taken into account:
  843. </p>
  844. <ul>
  845. <li>Since free strings are used, XML validation cannot be used to secure correct names are used.</li>
  846. <li>xep-0000-IoT-Interoperability lists recommendations on how field names and units should be used in order to achieve maximum interoperability in SN.</li>
  847. <li>Consumers of sensor data need to include unit conversion algorithms.</li>
  848. </ul>
  849. </section2>
  850. <section2 topic='Asynchronous feedback' anchor='asynchfeedback'>
  851. <p>
  852. Since some applications require real-time feedback (or as real-time as possible), and read-out might in certain cases take a long time, the device has the option
  853. to send multiple <strong>fields</strong> messages during read-out. The client is responsible for collecting all such messages until either a <strong>done</strong> message
  854. is sent, or a corresponding <strong>done</strong> attribute is available in one of the messages received. Only the device knows how many (if any) messages are sent in
  855. response to a read-out request.
  856. </p>
  857. </section2>
  858. <section2 topic='Field Value Data Types' anchor='fieldvaluetypes'>
  859. <p>
  860. There are different types of values that can be reported from a device. The following table lists the various types:
  861. </p>
  862. <table caption='Field Value Data Types'>
  863. <tr>
  864. <th>Element</th>
  865. <th>Description</th>
  866. </tr>
  867. <tr>
  868. <td>boolean</td>
  869. <td>Represents a boolean value that can be either true or false.</td>
  870. </tr>
  871. <tr>
  872. <td>date</td>
  873. <td>
  874. Represents a date value. The value must be encoded using the xs:date data type.
  875. </td>
  876. </tr>
  877. <tr>
  878. <td>dateTime</td>
  879. <td>
  880. Represents a date and optional time value. The value must be encoded using the xs:dateTime data type. This includes date, an optional time and optional time zone information.
  881. If time zone is not available, it is supposed to be undefined.
  882. </td>
  883. </tr>
  884. <tr>
  885. <td>duration</td>
  886. <td>Represents a duration value. The value must be encoded using the xs:duration data type.</td>
  887. </tr>
  888. <tr>
  889. <td>enum</td>
  890. <td>
  891. Represents an enumeration value. What differs this value from a string value, is that it apart from the enumeration value (which is a string value),
  892. also contains a data type, which consumers can use to interpret its value. This specification does not assume knowledge of any particular enumeration
  893. data types.
  894. </td>
  895. </tr>
  896. <tr>
  897. <td>int</td>
  898. <td>
  899. Represents a 32-bit integer value. It contains an arbitrary 32-bit integer value. This field value data type can be seen as a subtype of the more generic numeric
  900. field value data type. It has its own element, to make it harmonous to 32-bit integer control parameters, as defined in XEP-0325. It is also simpler to report and
  901. compress, since it does not use floating point precision and a unit.
  902. </td>
  903. </tr>
  904. <tr>
  905. <td>long</td>
  906. <td>
  907. Represents a 64-bit integer value. It contains an arbitrary 64-bit integer value. This field value data type can be seen as a subtype of the more generic numeric
  908. field value data type. It has its own element, to make it harmonous to 64-bit integer control parameters, as defined in XEP-0325. It is also simpler to report and
  909. compress, since it does not use floating point precision and a unit.
  910. </td>
  911. </tr>
  912. <tr>
  913. <td>numeric</td>
  914. <td>
  915. Represents a numerical value. Numerical values contain, apart from a numerical number, also an implicit precision (number of decimals) and an
  916. optional unit. All parties in the communication chain should retain the number of decimals used, since this contains information that is important
  917. in the interpretation of a value. For example, 10 °C is different from 10.0 °C, and very different from 10.00 °C. If a sensor delivers the value
  918. 10 °C you can assume it probably lies between 9.5 °C and 10.5 °C. But if a sensor delivers 10.00 °C, it is probably very exact (if calibrated correctly).
  919. </td>
  920. </tr>
  921. <tr>
  922. <td>string</td>
  923. <td>Represents a string value. It contains an arbitrary string value.</td>
  924. </tr>
  925. <tr>
  926. <td>time</td>
  927. <td>Represents a time value. The value must be encoded using the xs:time data type.</td>
  928. </tr>
  929. </table>
  930. </section2>
  931. <section2 topic='Harmonization with XEP-0325 (Control)' anchor='harmonization'>
  932. <p>
  933. When representing control parameters as momentary field values, it is important to note the similarities and differences between XEP-0323 (this document) and XEP-0325 (Control):
  934. </p>
  935. <p>
  936. The <strong>enum</strong> field value data type is not available in XEP-0325 (Control). Instead enumeration valued parameters are represented as <strong>string</strong> control
  937. parameters, while the control form explicitly lists available options for the parameter. Options are not available in XEP-0323, since it would not be practical to list all options
  938. every time the corresponding parameter was read out. Instead, the <strong>enum</strong> element contains a data type attribute, that can be used to identify the type of the enumeration.
  939. </p>
  940. <p>
  941. The <strong>numeric</strong> field value data type is not available in XEP-0325 (Control). The reason is that a controller is not assumed to understand unit conversion. Any
  942. floating-point valued control parameters are represented by <strong>double</strong> control parameters, which lack a unit attribute. They are assumed to have the same unit as
  943. the corresponding <strong>numeric</strong> field value. On the other hand, floating point valued control parameters without units, are reported using the <strong>numeric</strong>
  944. field element, but leaving the unit blank.
  945. </p>
  946. <p>
  947. Control pameters of type <strong>color</strong> have no corresponding field value data type. The color value must be represented in another way, and is implementation specific.
  948. Possibilities include representing the color as a string, using a specific pattern (for instance RRGGBBAA), or report it using multiple fields, one for each component for instance.
  949. </p>
  950. <p>
  951. The <strong>boolean</strong>, <strong>date</strong>, <strong>dateTime</strong>, <strong>duration</strong>, <strong>int</strong>, <strong>long</strong>, <strong>string</strong>
  952. and <strong>time</strong> field value data types correspond to control parameters having the same types and same element names.
  953. </p>
  954. </section2>
  955. <section2 topic='Field Types' anchor='fieldtypes'>
  956. <p>
  957. There are different types of fields, apart from types of values a field can have. These types are conceptual types, similar to categories. They are not exclusive,
  958. and can be combined.
  959. </p>
  960. <p>
  961. If requesting multiple field types in a request, the device must interpret this as a union of the corresponding field types and return at least all field values
  962. that contain at least one of the requested field types. Example: If requesting momentary values and historical values, devices must return both its momentary values
  963. and its historical values.
  964. </p>
  965. <p>
  966. But, when a device reports a field having multiple field types, the client should interpret this as the intersection of the corresponding field types, i.e. the corresponding
  967. field has all corresponding field types. Example: A field marked as both a status value and as a historical value is in fact a historical status value.
  968. </p>
  969. <p>
  970. The following table lists the different field types specified in this document:
  971. </p>
  972. <table caption='Field Types'>
  973. <tr>
  974. <th>Field Type</th>
  975. <th>Description</th>
  976. </tr>
  977. <tr>
  978. <td>computed</td>
  979. <td>A value that is computed instead of measured.</td>
  980. </tr>
  981. <tr>
  982. <td>historical*</td>
  983. <td>A value stored in memory from a previous timestamp. The suffix is used to determine period, as shown below.</td>
  984. </tr>
  985. <tr>
  986. <td>historicalSecond</td>
  987. <td>A value stored at a second shift (milliseconds = 0).</td>
  988. </tr>
  989. <tr>
  990. <td>historicalMinute</td>
  991. <td>A value stored at a minute shift (seconds=milliseconds=0). Are also second values.</td>
  992. </tr>
  993. <tr>
  994. <td>historicalHour</td>
  995. <td>A value stored at a hour shift (minutes=seconds=milliseconds=0). Are also minute and second values.</td>
  996. </tr>
  997. <tr>
  998. <td>historicalDay</td>
  999. <td>A value stored at a day shift (hours=minutes=seconds=milliseconds=0). Are also hour, minute and second values.</td>
  1000. </tr>
  1001. <tr>
  1002. <td>historicalWeek</td>
  1003. <td>A value stored at a week shift (Monday, hours=minutes=seconds=milliseconds=0). Are also day, hour, minute and second values.</td>
  1004. </tr>
  1005. <tr>
  1006. <td>historicalMonth</td>
  1007. <td>A value stored at a month shift (day=1, hours=minutes=seconds=milliseconds=0). Are also day, hour, minute and second values.</td>
  1008. </tr>
  1009. <tr>
  1010. <td>historicalQuarter</td>
  1011. <td>A value stored at a quarter year shift (Month=Jan, Apr, Jul, Oct, day=1, hours=minutes=seconds=milliseconds=0). Are also month, day, hour, minute and second values.</td>
  1012. </tr>
  1013. <tr>
  1014. <td>historicalYear</td>
  1015. <td>A value stored at a year shift (Month=Jan, day=1, hours=minutes=seconds=milliseconds=0). Are also quarter, month, day, hour, minute and second values.</td>
  1016. </tr>
  1017. <tr>
  1018. <td>historicalOther</td>
  1019. <td>If period if historical value is not important in the request or by the device.</td>
  1020. </tr>
  1021. <tr>
  1022. <td>identity</td>
  1023. <td>A value that can be used for identification. (Serial numbers, meter IDs, locations, names, addresses, etc.)</td>
  1024. </tr>
  1025. <tr>
  1026. <td>momentary</td>
  1027. <td>A momentary value represents a value measured at the time of the read-out. Examples: Energy, Volume, Power, Flow, Temperature, Pressure, etc.</td>
  1028. </tr>
  1029. <tr>
  1030. <td>peak</td>
  1031. <td>A maximum or minimum value during a given period. Examples "Temperature, Max", "Temperature, Min", etc.</td>
  1032. </tr>
  1033. <tr>
  1034. <td>status</td>
  1035. <td>A value displaying status information about something. Examples: Health, Battery life time, Runtime, Expected life time, Signal strength, Signal quality, etc. </td>
  1036. </tr>
  1037. </table>
  1038. <p>
  1039. There are two field type attributes that can be used in requests to simplify read-out:
  1040. </p>
  1041. <table caption='Special Field Types available in read-out requests'>
  1042. <tr>
  1043. <th>Field Type</th>
  1044. <th>Description</th>
  1045. </tr>
  1046. <tr>
  1047. <td>all</td>
  1048. <td>Reads all types of fields. It is the same as explicitly setting all field type attributes to true.</td>
  1049. </tr>
  1050. <tr>
  1051. <td>historical</td>
  1052. <td>If period of historical values is not important, this attribute can be set to include all types of historical values.</td>
  1053. </tr>
  1054. </table>
  1055. <p>
  1056. <strong>Note:</strong> The reason for including different predefined time periods for historical values is that these periods are common in certain
  1057. applications. However, the client is not restricted to these in any way. The client can always just ask for historical values, and do
  1058. filtering as necessary to read out the interval desired.
  1059. </p>
  1060. <p>
  1061. Also, devices are not required to include logic to parse and figure out what historical values are actually desired by the client. If too
  1062. complicated for the device to handle, it is free to report all historical values. However, the device should limit the historical values
  1063. to any interval requested, and should try to limit itself to the field types requested. Information in the request element are seen as hints
  1064. that the device can use to optimize any communication required by the operation.
  1065. </p>
  1066. </section2>
  1067. <section2 topic='Field Quality of Service Values' anchor='fieldqosvalues'>
  1068. <p>
  1069. In applications where quality of service is important, a field must always be accompanied with a corresponding quality of service flag. Devices should
  1070. set these accordingly. If no quality of service flag is set on a field, the client can assume <strong>automaticReadout</strong> is true.
  1071. </p>
  1072. <p>
  1073. Note that quality of service flags are not exclusive. Many of them can be logically be combined. Some also imply an order of importance. This should be kept in mind
  1074. when trying to overwrite existing values with read values: An estimate should not overwrite an automatic read-out, an automatic read-out not a signed value, and a signed value
  1075. not an invoiced value, etc.
  1076. </p>
  1077. <p>
  1078. Available quality of service flags, in order of importance:
  1079. </p>
  1080. <table caption='Quality of Service Flags'>
  1081. <tr>
  1082. <th>QoS Flag</th>
  1083. <th>Description</th>
  1084. </tr>
  1085. <tr>
  1086. <td>missing</td>
  1087. <td>Value is missing</td>
  1088. </tr>
  1089. <tr>
  1090. <td>inProgress</td>
  1091. <td>Value is in progress to be measured or calculated. The value is to be considered as unsure and not final. Read again later to retrieve the correct value. It is more reliable than a missing value, but less reliable than an estimate.</td>
  1092. </tr>
  1093. <tr>
  1094. <td>automaticEstimate</td>
  1095. <td>An estimate of the value has been done automatically. Considered more reliable than a value in progress.</td>
  1096. </tr>
  1097. <tr>
  1098. <td>manualEstimate</td>
  1099. <td>The value has manually been estimated. Considered more reliable than an automatic estimate.</td>
  1100. </tr>
  1101. <tr>
  1102. <td>manualReadout</td>
  1103. <td>Value has been manually read. Considered more reliable than a manual estimate.</td>
  1104. </tr>
  1105. <tr>
  1106. <td>automaticReadout</td>
  1107. <td>Value has been automatically read. Considered more reliable than a manually read value.</td>
  1108. </tr>
  1109. <tr>
  1110. <td>timeOffset</td>
  1111. <td>The time was offset more than allowed and corrected during the measurement period.</td>
  1112. </tr>
  1113. <tr>
  1114. <td>warning</td>
  1115. <td>A warning was logged during the measurement period.</td>
  1116. </tr>
  1117. <tr>
  1118. <td>error</td>
  1119. <td>An error was logged during the measurement period.</td>
  1120. </tr>
  1121. <tr>
  1122. <td>signed</td>
  1123. <td>
  1124. The value has been signed by an operator. Considered more reliable than an automatically read value. Note that the signed quality of service flag can be used to overwrite
  1125. existing values of higher importance. Example signed + invoiced can be considered more reliable than only invoiced, etc.
  1126. </td>
  1127. </tr>
  1128. <tr>
  1129. <td>invoiced</td>
  1130. <td>The value has been invoiced by an operator. Considered more reliable than a signed value.</td>
  1131. </tr>
  1132. <tr>
  1133. <td>endOfSeries</td>
  1134. <td>The value has been marked as an end point in a series. This can be used for instance to mark the change of tenant in an apartment.</td>
  1135. </tr>
  1136. <tr>
  1137. <td>powerFailure</td>
  1138. <td>The device recorded a power failure during the measurement period.</td>
  1139. </tr>
  1140. <tr>
  1141. <td>invoiceConfirmed</td>
  1142. <td>The value has been invoiced by an operator and confirmed by the recipient. Considered more reliable than an invoiced value.</td>
  1143. </tr>
  1144. </table>
  1145. <section3 topic='Estimates vs. Readouts' anchor='estimatesvsreadouts'>
  1146. <p>
  1147. A note on the difference between estimates and readouts. There are many cases where a proper value in a sensor or meter cannot be sensed correctly, and
  1148. only estimated. As an example: Consider a water meter calculating the flow of water passing vane generating pulses as the wheel turns. The frequency of pulses
  1149. correspond to the flow of water, or inversely, the time between pulses correspond inversely to the flow of water. But what happens when the flow slows down
  1150. and pulses are not received? How can the meter differ between zero flow, and a little flow until a pulse is received?
  1151. </p>
  1152. <p>
  1153. What a meter can do is estimate a flow value that would correspond to the inverse of the time passed since last received pulse. This estimate would slowly
  1154. decrease to zero if no flow is available, but would be correct if a pulse finally would be received, thus causing a smoother measurement of the flow.
  1155. However, the value reported would not be an actual measurement or readout, but an estimate of the value.
  1156. </p>
  1157. <p>
  1158. It's important that such estimates are flagged as such, so that readers know the value is not a measurement but an estimate. Consider an application that monitors
  1159. water meters to detect leakage. If a water meter always measures flow, and never decreases to zero flow, it might be logically assumed there's a leakage or
  1160. bad valves somewhere. However, if meters as described above are used, flow might perhaps never reach zero, simply because it reports a value that's inversely
  1161. proportional to the time passed since last pulse. It might be close to zero over long periods of time, but never reach zero. To avoid the application generating
  1162. leakage alarms in case such meters were used, the application can be made to ignore estimates and only monitor values that have been correctly measured.
  1163. </p>
  1164. </section3>
  1165. </section2>
  1166. <section2 topic='Subnodes and supernodes' anchor='subsupernodes'>
  1167. <p>
  1168. This document does not go into detail on how devices are ordered behind a JID. Some of the examples have assumed a single device lies behind a JID, others
  1169. that multiple devices exist behind a JID. Also, no order or structure of devices has been assumed.
  1170. </p>
  1171. <p>
  1172. But it can be mentioned that it is assumed that if a client requests a read-out of a supernode, it implies the read-out of all its subnodes. Therefore, the
  1173. client cannot expect read-out to be limited to the devices listed explicitly in a request, as nodes implicitly implied, as descendant nodes of the selected nodes,
  1174. can also be included.
  1175. </p>
  1176. <p>
  1177. More information about how multiple devices behind a JID can be handled, is described in the XEP-0326
  1178. <link url='http://xmpp.org/extensions/xep-0326.html'>Internet of Things - Concentrators</link>.
  1179. </p>
  1180. </section2>
  1181. <section2 topic='Reading devices from large subsystems' anchor='largesubsystems'>
  1182. <p>
  1183. All examples in this document have been simplified examples where a few devices containing a few fields have been read. However, in many cases large subsystems with
  1184. very many sensors containing many fields have to be read, as is documented in <link url='http://xmpp.org/extensions/xep-0326.html'>Internet of Things - Concentrators</link>.
  1185. In such cases, a node may have to be specified using two or perhaps even three ID's: a <strong>sourceId</strong> identifying the data source controlling the device, a possible
  1186. <strong>cacheType</strong> narrowing down the search to a specific kind of node, and the common <strong>nodeId</strong>. For more information about this, see
  1187. <link url='http://xmpp.org/extensions/xep-0326.html'>Internet of Things - Concentrators</link>.
  1188. </p>
  1189. <p>
  1190. <strong>Note:</strong> For cases where the <strong>nodeId</strong> is sufficient to uniquely identify the node, it is sufficient to provide this attribute in the request.
  1191. If there is ambiguity in the request, the receptor must treat the request as a request with a set of nodes, all with the corresponding <strong>nodeId</strong> as requested.
  1192. </p>
  1193. </section2>
  1194. <section2 topic='Reading controllable parameter values' anchor='control'>
  1195. <p>
  1196. If reading field values from a device that also supports control through &xep0325;, the device can report current control parameter values as momentary or status field values,
  1197. using field names corresponding to its control parameter names. However, such values would probably only correspond to a subset of all data read out. To help the reader
  1198. to know what fields correspond to controllable parameters, the optional <strong>writable</strong> attribute can be used in responsens. If this attribute is available, it
  1199. tells the client if the field corresponds to a control parameter with the same name on the device. If the attribute is not available, no deduction can be made if a control
  1200. parameter with the same name exists or not on the device.
  1201. </p>
  1202. </section2>
  1203. </section1>
  1204. <section1 topic='Internationalization Considerations' anchor='i18n'>
  1205. <section2 topic='Time Zones' anchor='timezones'>
  1206. <p>
  1207. All timestamps and dateTime values use the XML data type xs:dateTime to specify values. These values include a date, an optional time and an optional time zone.
  1208. </p>
  1209. <p>
  1210. <strong>Note:</strong> If time zone is not available, it is supposed to be undefined. The client reading the sensor that reports fields without time zone information
  1211. should assume the sensor has the same time zone as the client, if not explicitly configured otherwise on the client side.
  1212. </p>
  1213. <p>
  1214. If devices report time zone, this information should be propagated throughout the system. Otherwise, comparing timestamps from different time zones will be impossible.
  1215. </p>
  1216. </section2>
  1217. <section2 topic='Localized strings' anchor='localization'>
  1218. <p>
  1219. This specification allows for localization of field names in meter data read-out. This is performed by assigning each localizable string a <strong>String ID</strong>
  1220. which should be unique within a given <strong>Language Module</strong>. A <strong>Language Module</strong> can be any string, including URI's or namespace names.
  1221. The XEP <link url='xep-0000-IoT-Interoperability.html'>xep-0000-IoT-Interoperability</link> details how such localizations can be made in an interoperable way.
  1222. </p>
  1223. <p>
  1224. <strong>Note:</strong> Localization of strings are for human consumption only. Machines should use the unlocalized strings in program logic.
  1225. </p>
  1226. <p>
  1227. The following example shows how a device can report localized field information that can be presented to end users without systems being preprogrammed
  1228. to recognize the device. Language modules can be aggregated by operators after installation, or installed as a pluggable module after the main installation,
  1229. if localization is desired.
  1230. </p>
  1231. <example caption='Localized field names'>
  1232. <![CDATA[
  1233. <iq type='get'
  1234. from='client@example.org/amr'
  1235. to='device@example.org'
  1236. id='S0009'>
  1237. <req xmlns='urn:xmpp:iot:sensordata' seqnr='7' all='true'/>
  1238. </iq>
  1239. <iq type='result'
  1240. from='device@example.org'
  1241. to='client@example.org/amr'
  1242. id='S0009'>
  1243. <accepted xmlns='urn:xmpp:iot:sensordata' seqnr='7'/>
  1244. </iq>
  1245. <message from='device@example.org'
  1246. to='client@example.org/amr'>
  1247. <fields xmlns='urn:xmpp:iot:sensordata' seqnr='7' done='true'>
  1248. <node nodeId='Device05'>
  1249. <timestamp value='2013-03-07T22:20:45'>
  1250. <numeric name='Temperature' momentary='true' automaticReadout='true'
  1251. value='23.4' unit='°C' module='Whatchamacallit' stringIds='1'/>
  1252. <numeric name='Temperature, Min' momentary='true' automaticReadout='true'
  1253. value='23.4' unit='°C' module='Whatchamacallit' stringIds='1,2'/>
  1254. <numeric name='Temperature, Max' momentary='true' automaticReadout='true'
  1255. value='23.4' unit='°C' module='Whatchamacallit' stringIds='1,3'/>
  1256. <numeric name='Temperature, Mean' momentary='true' automaticReadout='true'
  1257. value='23.4' unit='°C' module='Whatchamacallit' stringIds='1,4'/>
  1258. </timestamp>
  1259. </node>
  1260. </fields>
  1261. </message>]]>
  1262. </example>
  1263. <p>
  1264. The above example defines a language module called <strong>Watchamacallit</strong>. In this language module it defines four strings, with IDs 1-4. A system might store these as follows,
  1265. where the system replaces all <strong>%N%</strong> with a conceptual n:th parameter. (It's up to the system to define these strings, any syntax and how to handle input and output.). In
  1266. this example, we will assume <strong>%0%</strong> means any previous output, and <strong>%1%</strong> any seed value provided. (See below).
  1267. </p>
  1268. <table caption='Example string IDs'>
  1269. <tr>
  1270. <th>ID</th>
  1271. <th>String</th>
  1272. </tr>
  1273. <tr>
  1274. <td>1</td>
  1275. <td>Temperature</td>
  1276. </tr>
  1277. <tr>
  1278. <td>2</td>
  1279. <td>%0%, Min</td>
  1280. </tr>
  1281. <tr>
  1282. <td>3</td>
  1283. <td>%0%, Max</td>
  1284. </tr>
  1285. <tr>
  1286. <td>4</td>
  1287. <td>%0%, Mean</td>
  1288. </tr>
  1289. </table>
  1290. <p>
  1291. So, when the client reads the field name <strong>Temperature, Min</strong>, it knows that the field name is the composition of the string <strong>Temperature</strong>, and
  1292. the string <strong>%0%, Min</strong>, where it will replace <strong>%0%</strong> with the output of the previous step, in this case <strong>Temperature</strong>.
  1293. These strings can later be localized to different languages by operators of the system, and values presented when reading the device, can be done in a language
  1294. different from the one used by the sensor.
  1295. </p>
  1296. <p>
  1297. <strong>Note:</strong> The XEP <link url='xep-0000-IoT-Interoperability.html'>xep-0000-IoT-Interoperability</link> details how such localizations can be made in an interoperable way.
  1298. </p>
  1299. <p>
  1300. The <strong>stringIds</strong> attribute merits some further explanation. The value of this attribute must match the following regular expression:
  1301. </p>
  1302. <code>
  1303. ^\d+([|]\w+([.]\w+)*([|][^,]*)?)?(,\d+([|]\w+([.]\w+)*([|][^,]*)?)?)*$
  1304. </code>
  1305. <p>
  1306. This basically means, it's of the format: ID_1[|[Module_1][|Seed_1]][...[,ID_n[|[Module_n][|Seed_n]]]]
  1307. </p>
  1308. <p>
  1309. Where brackets [] mean the contents inside is optional, <strong>ID_i</strong> is an integer representing the string ID in a language module. <strong>Module_i</strong>
  1310. is optional and allows for specifying a module for <strong>ID_i</strong>, if different from the module defined in the <strong>module</strong> attribute. <strong>Seed_i</strong>
  1311. allows for seeding the generation of the localized string with a value. This might come in handy when generating strings like <strong>Input 5</strong>, where you don't want to
  1312. create localized strings for every input there is.
  1313. </p>
  1314. <p>
  1315. Why such a complicated syntax? The reason is the following: Most localized strings are simple numbers, without the need of specifying modules and seeds. This makes
  1316. it very efficient to store it as an attribute instead of having to create subelements for every localized field. It's an exception to the rule, to need multiple steps
  1317. or seeds in the generation of localized strings. Therefore, attributes is an efficient means to specify localization. However, in the general case, a single string ID
  1318. is not sufficient and multiple steps are required, some seeded.
  1319. </p>
  1320. <table caption='stringIds Examples'>
  1321. <tr>
  1322. <th>stringIds</th>
  1323. <th>New Parts</th>
  1324. <th>Result</th>
  1325. </tr>
  1326. <tr>
  1327. <td>1</td>
  1328. <td>1="Temperature"</td>
  1329. <td>Temperature</td>
  1330. </tr>
  1331. <tr>
  1332. <td>1,2</td>
  1333. <td>2="%0%, Max"</td>
  1334. <td>Temperature, Max</td>
  1335. </tr>
  1336. <tr>
  1337. <td>1,1|MathModule</td>
  1338. <td>1 in module "MathModule"="sum(%0%)"</td>
  1339. <td>sum(Temperature)</td>
  1340. </tr>
  1341. <tr>
  1342. <td>3||A1</td>
  1343. <td>3="Input %1%"</td>
  1344. <td>Input A1</td>
  1345. </tr>
  1346. <tr>
  1347. <td>4||A1,2</td>
  1348. <td>4="Entrance %1%"</td>
  1349. <td>Entrance A1, Max</td>
  1350. </tr>
  1351. <tr>
  1352. <td>4||A1,5||3</td>
  1353. <td>5="%0%, Floor %1%"</td>
  1354. <td>Entrance A1, Floor 3</td>
  1355. </tr>
  1356. </table>
  1357. </section2>
  1358. </section1>
  1359. <section1 topic='Security Considerations' anchor='security'>
  1360. <p>
  1361. This document has not touched upon security in sensor networks. There are mainly three concerns that implementers of sensor networks need to consider:
  1362. </p>
  1363. <ul>
  1364. <li>
  1365. Communication should be restricted to friends as long as possible. Approved friendships provide a mechanism of limiting sensor information to authorized and authenticated users.
  1366. However, there are cases where multicast messages may want to go outside of recognized friendships. More information about such use cases, see the
  1367. XEP <link url='xep-0000-IoT-Multicast.html'>xep-0000-IoT-Multicast</link>.
  1368. </li>
  1369. <li>
  1370. Sensors may have very limited user interfaces. Even though installation of sensor networks is beyond the scope of this document, a simple installation scheme may include a
  1371. single LED on the sensor that lights up for a time after receiving a friendship request. If a user presses a button on the device while the LED is lit, the friendship request
  1372. is acknowledged, and communication is authorized.
  1373. </li>
  1374. <li>
  1375. More advanced access rights, privileges, automatic friendship recognition, etc., may be managed by a third party. How to implement more advanced provisioning and detailed
  1376. access rights to sensor information is detailed in the XEP-0324 <link url='http://xmpp.org/extensions/xep-0324.html'>Internet of Things - Provisioning</link>. In short, a device, service or user can get a
  1377. <strong>deviceToken</strong>, <strong>serviceToken</strong> and <strong>userToken</strong> respectivelly from a provisioning server. The service or device then uses these tokens
  1378. in all readout requests and the device being read out can in turn use these tokens to validate access rights with the provisioning server.
  1379. </li>
  1380. </ul>
  1381. </section1>
  1382. <section1 topic='IANA Considerations' anchor='iana'>
  1383. <p>This document requires no interaction with &IANA;.</p>
  1384. </section1>
  1385. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  1386. <p>
  1387. The <link url="#schema">protocol schema</link> needs to be added to the list of <link url="http://xmpp.org/resources/schemas/">XMPP protocol schemas</link>.
  1388. </p>
  1389. </section1>
  1390. <section1 topic='XML Schema' anchor='schema'>
  1391. <code>
  1392. <![CDATA[
  1393. <?xml version='1.0' encoding='UTF-8'?>
  1394. <xs:schema
  1395. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  1396. targetNamespace='urn:xmpp:iot:sensordata'
  1397. xmlns='urn:xmpp:iot:sensordata'
  1398. elementFormDefault='qualified'>
  1399. <xs:element name='req'>
  1400. <xs:complexType>
  1401. <xs:choice minOccurs='0' maxOccurs='unbounded'>
  1402. <xs:element name='node'>
  1403. <xs:complexType>
  1404. <xs:attribute name='nodeId' type='xs:string' use='required'/>
  1405. <xs:attribute name='sourceId' type='xs:string' use='optional'/>
  1406. <xs:attribute name='cacheType' type='xs:string' use='optional'/>
  1407. </xs:complexType>
  1408. </xs:element>
  1409. <xs:element name='field'>
  1410. <xs:complexType>
  1411. <xs:attribute name='name' type='xs:string' use='required'/>
  1412. </xs:complexType>
  1413. </xs:element>
  1414. </xs:choice>
  1415. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1416. <xs:attributeGroup ref='fieldTypes'/>
  1417. <xs:attribute name='all' type='xs:boolean' use='optional' default='false'/>
  1418. <xs:attribute name='historical' type='xs:boolean' use='optional' default='false'/>
  1419. <xs:attribute name='from' type='xs:dateTime' use='optional'/>
  1420. <xs:attribute name='to' type='xs:dateTime' use='optional'/>
  1421. <xs:attribute name='when' type='xs:dateTime' use='optional'/>
  1422. <xs:attribute name='serviceToken' type='xs:string' use='optional'/>
  1423. <xs:attribute name='deviceToken' type='xs:string' use='optional'/>
  1424. <xs:attribute name='userToken' type='xs:string' use='optional'/>
  1425. </xs:complexType>
  1426. </xs:element>
  1427. <xs:attributeGroup name='fieldTypes'>
  1428. <xs:attribute name='momentary' type='xs:boolean' use='optional' default='false'/>
  1429. <xs:attribute name='peak' type='xs:boolean' use='optional' default='false'/>
  1430. <xs:attribute name='status' type='xs:boolean' use='optional' default='false'/>
  1431. <xs:attribute name='computed' type='xs:boolean' use='optional' default='false'/>
  1432. <xs:attribute name='identity' type='xs:boolean' use='optional' default='false'/>
  1433. <xs:attribute name='historicalSecond' type='xs:boolean' use='optional' default='false'/>
  1434. <xs:attribute name='historicalMinute' type='xs:boolean' use='optional' default='false'/>
  1435. <xs:attribute name='historicalHour' type='xs:boolean' use='optional' default='false'/>
  1436. <xs:attribute name='historicalDay' type='xs:boolean' use='optional' default='false'/>
  1437. <xs:attribute name='historicalWeek' type='xs:boolean' use='optional' default='false'/>
  1438. <xs:attribute name='historicalMonth' type='xs:boolean' use='optional' default='false'/>
  1439. <xs:attribute name='historicalQuarter' type='xs:boolean' use='optional' default='false'/>
  1440. <xs:attribute name='historicalYear' type='xs:boolean' use='optional' default='false'/>
  1441. <xs:attribute name='historicalOther' type='xs:boolean' use='optional' default='false'/>
  1442. </xs:attributeGroup>
  1443. <xs:element name='accepted'>
  1444. <xs:complexType>
  1445. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1446. <xs:attribute name='queued' type='xs:boolean' use='optional' default='false'/>
  1447. </xs:complexType>
  1448. </xs:element>
  1449. <xs:element name='started'>
  1450. <xs:complexType>
  1451. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1452. </xs:complexType>
  1453. </xs:element>
  1454. <xs:element name='cancel'>
  1455. <xs:complexType>
  1456. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1457. </xs:complexType>
  1458. </xs:element>
  1459. <xs:element name='cancelled'>
  1460. <xs:complexType>
  1461. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1462. </xs:complexType>
  1463. </xs:element>
  1464. <xs:element name='fields'>
  1465. <xs:complexType>
  1466. <xs:sequence minOccurs='0' maxOccurs='unbounded'>
  1467. <xs:element name='node'>
  1468. <xs:complexType>
  1469. <xs:sequence minOccurs='0' maxOccurs='unbounded'>
  1470. <xs:element name='timestamp'>
  1471. <xs:complexType>
  1472. <xs:choice minOccurs='0' maxOccurs='unbounded'>
  1473. <xs:element name='boolean' type='boolean'/>
  1474. <xs:element name='date' type='date'/>
  1475. <xs:element name='dateTime' type='dateTime'/>
  1476. <xs:element name='duration' type='duration'/>
  1477. <xs:element name='enum' type='enum'/>
  1478. <xs:element name='int' type='int'/>
  1479. <xs:element name='long' type='long'/>
  1480. <xs:element name='numeric' type='numeric'/>
  1481. <xs:element name='string' type='string'/>
  1482. <xs:element name='time' type='time'/>
  1483. </xs:choice>
  1484. <xs:attribute name='value' type='xs:dateTime' use='required'/>
  1485. </xs:complexType>
  1486. </xs:element>
  1487. </xs:sequence>
  1488. <xs:attribute name='nodeId' type='xs:string' use='required'/>
  1489. <xs:attribute name='sourceId' type='xs:string' use='optional'/>
  1490. <xs:attribute name='cacheType' type='xs:string' use='optional'/>
  1491. </xs:complexType>
  1492. </xs:element>
  1493. </xs:sequence>
  1494. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1495. <xs:attribute name='done' type='xs:boolean' use='optional' default='false'/>
  1496. </xs:complexType>
  1497. </xs:element>
  1498. <xs:element name='failure'>
  1499. <xs:complexType>
  1500. <xs:sequence minOccurs='0' maxOccurs='unbounded'>
  1501. <xs:element name='error'>
  1502. <xs:complexType>
  1503. <xs:simpleContent>
  1504. <xs:extension base='xs:string'>
  1505. <xs:attribute name='nodeId' type='xs:string' use='required'/>
  1506. <xs:attribute name='sourceId' type='xs:string' use='optional'/>
  1507. <xs:attribute name='cacheType' type='xs:string' use='optional'/>
  1508. <xs:attribute name='timestamp' type='xs:string' use='required'/>
  1509. </xs:extension>
  1510. </xs:simpleContent>
  1511. </xs:complexType>
  1512. </xs:element>
  1513. </xs:sequence>
  1514. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1515. <xs:attribute name='done' type='xs:boolean' use='optional' default='false'/>
  1516. </xs:complexType>
  1517. </xs:element>
  1518. <xs:element name='done'>
  1519. <xs:complexType>
  1520. <xs:attribute name='seqnr' type='xs:int' use='required'/>
  1521. </xs:complexType>
  1522. </xs:element>
  1523. <xs:complexType name='field' abstract='true'>
  1524. <xs:attribute name="name" type="xs:string" use="required"/>
  1525. <xs:attributeGroup ref='fieldTypes'/>
  1526. <xs:attributeGroup ref='fieldQoS'/>
  1527. <xs:attribute name="module" type="xs:string" use="optional"/>
  1528. <xs:attribute name="stringIds" type="StringIds" use="optional"/>
  1529. <xs:attribute name="writable" type="xs:boolean" use="optional"/>
  1530. </xs:complexType>
  1531. <xs:simpleType name="StringIds">
  1532. <xs:restriction base="xs:string">
  1533. <xs:pattern value="^\d+([|]\w+([.]\w+)*([|][^,]*)?)?(,\d+([|]\w+([.]\w+)*([|][^,]*)?)?)*$"/>
  1534. </xs:restriction>
  1535. </xs:simpleType>
  1536. <xs:attributeGroup name='fieldQoS'>
  1537. <xs:attribute name='missing' type='xs:boolean' use='optional' default='false'/>
  1538. <xs:attribute name='inProgress' type='xs:boolean' use='optional' default='false'/>
  1539. <xs:attribute name='automaticEstimate' type='xs:boolean' use='optional' default='false'/>
  1540. <xs:attribute name='manualEstimate' type='xs:boolean' use='optional' default='false'/>
  1541. <xs:attribute name='manualReadout' type='xs:boolean' use='optional' default='false'/>
  1542. <xs:attribute name='automaticReadout' type='xs:boolean' use='optional' default='false'/>
  1543. <xs:attribute name='timeOffset' type='xs:boolean' use='optional' default='false'/>
  1544. <xs:attribute name='warning' type='xs:boolean' use='optional' default='false'/>
  1545. <xs:attribute name='error' type='xs:boolean' use='optional' default='false'/>
  1546. <xs:attribute name='signed' type='xs:boolean' use='optional' default='false'/>
  1547. <xs:attribute name='invoiced' type='xs:boolean' use='optional' default='false'/>
  1548. <xs:attribute name='endOfSeries' type='xs:boolean' use='optional' default='false'/>
  1549. <xs:attribute name='powerFailure' type='xs:boolean' use='optional' default='false'/>
  1550. <xs:attribute name='invoiceConfirmed' type='xs:boolean' use='optional' default='false'/>
  1551. </xs:attributeGroup>
  1552. <xs:complexType name='numeric'>
  1553. <xs:complexContent>
  1554. <xs:extension base='field'>
  1555. <xs:attribute name="value" type="xs:double" use="required"/>
  1556. <xs:attribute name="unit" type="xs:string" use="required"/>
  1557. </xs:extension>
  1558. </xs:complexContent>
  1559. </xs:complexType>
  1560. <xs:complexType name='string'>
  1561. <xs:complexContent>
  1562. <xs:extension base='field'>
  1563. <xs:attribute name="value" type="xs:string" use="required"/>
  1564. </xs:extension>
  1565. </xs:complexContent>
  1566. </xs:complexType>
  1567. <xs:complexType name='boolean'>
  1568. <xs:complexContent>
  1569. <xs:extension base='field'>
  1570. <xs:attribute name="value" type="xs:boolean" use="required"/>
  1571. </xs:extension>
  1572. </xs:complexContent>
  1573. </xs:complexType>
  1574. <xs:complexType name='date'>
  1575. <xs:complexContent>
  1576. <xs:extension base='field'>
  1577. <xs:attribute name="value" type="xs:date" use="required"/>
  1578. </xs:extension>
  1579. </xs:complexContent>
  1580. </xs:complexType>
  1581. <xs:complexType name='dateTime'>
  1582. <xs:complexContent>
  1583. <xs:extension base='field'>
  1584. <xs:attribute name="value" type="xs:dateTime" use="required"/>
  1585. </xs:extension>
  1586. </xs:complexContent>
  1587. </xs:complexType>
  1588. <xs:complexType name='duration'>
  1589. <xs:complexContent>
  1590. <xs:extension base='field'>
  1591. <xs:attribute name="value" type="xs:duration" use="required"/>
  1592. </xs:extension>
  1593. </xs:complexContent>
  1594. </xs:complexType>
  1595. <xs:complexType name='enum'>
  1596. <xs:complexContent>
  1597. <xs:extension base='field'>
  1598. <xs:attribute name="value" type="xs:string" use="required"/>
  1599. <xs:attribute name="dataType" type="xs:string" use="required"/>
  1600. </xs:extension>
  1601. </xs:complexContent>
  1602. </xs:complexType>
  1603. <xs:complexType name='int'>
  1604. <xs:complexContent>
  1605. <xs:extension base='field'>
  1606. <xs:attribute name="value" type="xs:int" use="required"/>
  1607. </xs:extension>
  1608. </xs:complexContent>
  1609. </xs:complexType>
  1610. <xs:complexType name='long'>
  1611. <xs:complexContent>
  1612. <xs:extension base='field'>
  1613. <xs:attribute name="value" type="xs:long" use="required"/>
  1614. </xs:extension>
  1615. </xs:complexContent>
  1616. </xs:complexType>
  1617. <xs:complexType name='time'>
  1618. <xs:complexContent>
  1619. <xs:extension base='field'>
  1620. <xs:attribute name="value" type="xs:time" use="required"/>
  1621. </xs:extension>
  1622. </xs:complexContent>
  1623. </xs:complexType>
  1624. </xs:schema>]]>
  1625. </code>
  1626. </section1>
  1627. <section1 topic='For more information' anchor='moreinfo'>
  1628. <p>
  1629. For more information, please see the following resources:
  1630. </p>
  1631. <ul>
  1632. <li>
  1633. <p>
  1634. The <link url='http://wiki.xmpp.org/web/Tech_pages/SensorNetworks'>Sensor Network section of the XMPP Wiki</link> contains further information about the
  1635. use of the sensor network XEPs, links to implementations, discussions, etc.
  1636. </p>
  1637. </li>
  1638. <li>
  1639. <p>
  1640. The XEP's and related projects are also available on <link url='https://github.com/joachimlindborg/'>github</link>, thanks to Joachim Lindborg.
  1641. </p>
  1642. </li>
  1643. <li>
  1644. <p>
  1645. A presentation giving an overview of all extensions related to Internet of Things can be found here:
  1646. <link url='http://prezi.com/esosntqhewhs/iot-xmpp/'>http://prezi.com/esosntqhewhs/iot-xmpp/</link>.
  1647. </p>
  1648. </li>
  1649. </ul>
  1650. </section1>
  1651. <section1 topic='Acknowledgements' anchor='ack'>
  1652. <p>Thanks to Flemon Ghobrial, Joachim Lindborg, Karin Forsell, Tina Beckman, Kevin Smith and Tobias Markmann for all valuable feedback.</p>
  1653. </section1>
  1654. </xep>