LWM2M_Device-v1_0_1.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. FILE INFORMATION
  4. OMA Permanent Document
  5. File: OMA-SUP-XML_LWM2M_Device-V1_0_1-20170704-A
  6. Type: xml
  7. Public Reachable Information
  8. Path: http://www.openmobilealliance.org/tech/profiles
  9. Name: LWM2M_Device-v1_0_1.xml
  10. NORMATIVE INFORMATION
  11. Information about this file can be found in the latest revision of
  12. OMA-TS-LightweightM2M-V1_0_1
  13. This is available at http://www.openmobilealliance.org/
  14. Send comments to technical-comments@mail.openmobilealliance.org
  15. CHANGE HISTORY
  16. 08022017 Status changed to Approved by TP, TP Ref # OMA-TP-2017-0009-INP_LightweightM2M-V1_0_ERP_for_Final_Approval
  17. 04072017 Status changed to Approved by TP, TP Ref # OMA-TP-2017-0029R01-INP_LightweightM2M_V1.0.1_ERP_for_Final_Approval_Notification
  18. LEGAL DISCLAIMER
  19. Copyright 2017 Open Mobile Alliance All rights reserved.
  20. Redistribution and use in source and binary forms, with or without
  21. modification, are permitted provided that the following conditions
  22. are met:
  23. 1. Redistributions of source code must retain the above copyright
  24. notice, this list of conditions and the following disclaimer.
  25. 2. Redistributions in binary form must reproduce the above copyright
  26. notice, this list of conditions and the following disclaimer in the
  27. documentation and/or other materials provided with the distribution.
  28. 3. Neither the name of the copyright holder nor the names of its
  29. contributors may be used to endorse or promote products derived
  30. from this software without specific prior written permission.
  31. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  32. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  33. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  34. FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  35. COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  36. INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  37. BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  38. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  39. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  40. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  41. ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  42. POSSIBILITY OF SUCH DAMAGE.
  43. The above license is used as a license under copyright only. Please
  44. reference the OMA IPR Policy for patent licensing terms:
  45. http://www.openmobilealliance.org/ipr.html
  46. -->
  47. <LWM2M xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://openmobilealliance.org/tech/profiles/LWM2M.xsd">
  48. <Object ObjectType="MODefinition">
  49. <Name>Device</Name>
  50. <Description1><![CDATA[This LwM2M Object provides a range of device related information which can be queried by the LwM2M Server, and a device reboot and factory reset function.]]></Description1>
  51. <ObjectID>3</ObjectID>
  52. <ObjectURN>urn:oma:lwm2m:oma:3</ObjectURN>
  53. <MultipleInstances>Single</MultipleInstances>
  54. <Mandatory>Mandatory</Mandatory>
  55. <Resources>
  56. <Item ID="0">
  57. <Name>Manufacturer</Name>
  58. <Operations>R</Operations>
  59. <MultipleInstances>Single</MultipleInstances>
  60. <Mandatory>Optional</Mandatory>
  61. <Type>String</Type>
  62. <RangeEnumeration></RangeEnumeration>
  63. <Units></Units>
  64. <Description><![CDATA[Human readable manufacturer name]]></Description>
  65. </Item>
  66. <Item ID="1">
  67. <Name>Model Number</Name>
  68. <Operations>R</Operations>
  69. <MultipleInstances>Single</MultipleInstances>
  70. <Mandatory>Optional</Mandatory>
  71. <Type>String</Type>
  72. <RangeEnumeration></RangeEnumeration>
  73. <Units></Units>
  74. <Description><![CDATA[A model identifier (manufacturer specified string)]]></Description>
  75. </Item>
  76. <Item ID="2">
  77. <Name>Serial Number</Name>
  78. <Operations>R</Operations>
  79. <MultipleInstances>Single</MultipleInstances>
  80. <Mandatory>Optional</Mandatory>
  81. <Type>String</Type>
  82. <RangeEnumeration></RangeEnumeration>
  83. <Units></Units>
  84. <Description><![CDATA[Serial Number]]></Description>
  85. </Item>
  86. <Item ID="3">
  87. <Name>Firmware Version</Name>
  88. <Operations>R</Operations>
  89. <MultipleInstances>Single</MultipleInstances>
  90. <Mandatory>Optional</Mandatory>
  91. <Type>String</Type>
  92. <RangeEnumeration></RangeEnumeration>
  93. <Units></Units>
  94. <Description><![CDATA[Current firmware version of the Device.The Firmware Management function could rely on this resource.]]></Description>
  95. </Item>
  96. <Item ID="4">
  97. <Name>Reboot</Name>
  98. <Operations>E</Operations>
  99. <MultipleInstances>Single</MultipleInstances>
  100. <Mandatory>Mandatory</Mandatory>
  101. <Type></Type>
  102. <RangeEnumeration></RangeEnumeration>
  103. <Units></Units>
  104. <Description><![CDATA[Reboot the LwM2M Device to restore the Device from unexpected firmware failure.]]></Description>
  105. </Item>
  106. <Item ID="5">
  107. <Name>Factory Reset</Name>
  108. <Operations>E</Operations>
  109. <MultipleInstances>Single</MultipleInstances>
  110. <Mandatory>Optional</Mandatory>
  111. <Type></Type>
  112. <RangeEnumeration></RangeEnumeration>
  113. <Units></Units>
  114. <Description><![CDATA[Perform factory reset of the LwM2M Device to make the LwM2M Device to go through initial deployment sequence where provisioning and bootstrap sequence is performed. This requires client ensuring post factory reset to have minimal information to allow it to carry out one of the bootstrap methods specified in section 5.2.3.
  115. When this Resource is executed, “De-register” operation MAY be sent to the LwM2M Server(s) before factory reset of the LwM2M Device.]]></Description>
  116. </Item>
  117. <Item ID="6">
  118. <Name>Available Power Sources</Name>
  119. <Operations>R</Operations>
  120. <MultipleInstances>Multiple</MultipleInstances>
  121. <Mandatory>Optional</Mandatory>
  122. <Type>Integer</Type>
  123. <RangeEnumeration>0-7</RangeEnumeration>
  124. <Units></Units>
  125. <Description><![CDATA[0 – DC power
  126. 1 – Internal Battery
  127. 2 – External Battery
  128. 4 – Power over Ethernet
  129. 5 – USB
  130. 6 – AC (Mains) power
  131. 7 – Solar
  132. The same Resource Instance ID MUST be used to associate a given Power Source (Resource ID:6) with its Present Voltage (Resource ID:7) and its Present Current (Resource ID:8)]]></Description>
  133. </Item>
  134. <Item ID="7">
  135. <Name>Power Source Voltage</Name>
  136. <Operations>R</Operations>
  137. <MultipleInstances>Multiple</MultipleInstances>
  138. <Mandatory>Optional</Mandatory>
  139. <Type>Integer</Type>
  140. <RangeEnumeration></RangeEnumeration>
  141. <Units>mV</Units>
  142. <Description><![CDATA[Present voltage for each Available Power Sources Resource Instance.]]></Description>
  143. </Item>
  144. <Item ID="8">
  145. <Name>Power Source Current</Name>
  146. <Operations>R</Operations>
  147. <MultipleInstances>Multiple</MultipleInstances>
  148. <Mandatory>Optional</Mandatory>
  149. <Type>Integer</Type>
  150. <RangeEnumeration></RangeEnumeration>
  151. <Units>mA</Units>
  152. <Description><![CDATA[Present current for each Available Power Source.]]></Description>
  153. </Item>
  154. <Item ID="9">
  155. <Name>Battery Level</Name>
  156. <Operations>R</Operations>
  157. <MultipleInstances>Single</MultipleInstances>
  158. <Mandatory>Optional</Mandatory>
  159. <Type>Integer</Type>
  160. <RangeEnumeration>0-100</RangeEnumeration>
  161. <Units>%</Units>
  162. <Description><![CDATA[Contains the current battery level as a percentage (with a range from 0 to 100). This value is only valid for the Device internal Battery if present (one Available Power Sources Resource Instance is 1).]]></Description>
  163. </Item>
  164. <Item ID="10">
  165. <Name>Memory Free</Name>
  166. <Operations>R</Operations>
  167. <MultipleInstances>Single</MultipleInstances>
  168. <Mandatory>Optional</Mandatory>
  169. <Type>Integer</Type>
  170. <RangeEnumeration></RangeEnumeration>
  171. <Units>KB</Units>
  172. <Description><![CDATA[Estimated current available amount of storage space which can store data and software in the LwM2M Device (expressed in kilobytes).]]></Description>
  173. </Item>
  174. <Item ID="11">
  175. <Name>Error Code</Name>
  176. <Operations>R</Operations>
  177. <MultipleInstances>Multiple</MultipleInstances>
  178. <Mandatory>Mandatory</Mandatory>
  179. <Type>Integer</Type>
  180. <RangeEnumeration>0-8</RangeEnumeration>
  181. <Units></Units>
  182. <Description><![CDATA[0=No error
  183. 1=Low battery power
  184. 2=External power supply off
  185. 3=GPS module failure
  186. 4=Low received signal strength
  187. 5=Out of memory
  188. 6=SMS failure
  189. 7=IP connectivity failure
  190. 8=Peripheral malfunction
  191. When the single Device Object Instance is initiated, there is only one error code Resource Instance whose value is equal to 0 that means no error. When the first error happens, the LwM2M Client changes error code Resource Instance to any non-zero value to indicate the error type. When any other error happens, a new error code Resource Instance is created. When an error associated with a Resource Instance is no longer present, that Resource Instance is deleted. When the single existing error is no longer present, the LwM2M Client returns to the original no error state where Instance 0 has value 0.
  192. This error code Resource MAY be observed by the LwM2M Server. How to deal with LwM2M Client’s error report depends on the policy of the LwM2M Server.]]></Description>
  193. </Item>
  194. <Item ID="12">
  195. <Name>Reset Error Code</Name>
  196. <Operations>E</Operations>
  197. <MultipleInstances>Single</MultipleInstances>
  198. <Mandatory>Optional</Mandatory>
  199. <Type></Type>
  200. <RangeEnumeration></RangeEnumeration>
  201. <Units></Units>
  202. <Description><![CDATA[Delete all error code Resource Instances and create only one zero-value error code that implies no error, then re-evaluate all error conditions and update and create Resources Instances to capture all current error conditions.]]></Description>
  203. </Item>
  204. <Item ID="13">
  205. <Name>Current Time</Name>
  206. <Operations>RW</Operations>
  207. <MultipleInstances>Single</MultipleInstances>
  208. <Mandatory>Optional</Mandatory>
  209. <Type>Time</Type>
  210. <RangeEnumeration></RangeEnumeration>
  211. <Units></Units>
  212. <Description><![CDATA[Current UNIX time of the LwM2M Client.
  213. The LwM2M Client should be responsible to increase this time value as every second elapses.
  214. The LwM2M Server is able to write this Resource to make the LwM2M Client synchronized with the LwM2M Server.]]></Description>
  215. </Item>
  216. <Item ID="14">
  217. <Name>UTC Offset</Name>
  218. <Operations>RW</Operations>
  219. <MultipleInstances>Single</MultipleInstances>
  220. <Mandatory>Optional</Mandatory>
  221. <Type>String</Type>
  222. <RangeEnumeration></RangeEnumeration>
  223. <Units></Units>
  224. <Description><![CDATA[Indicates the UTC offset currently in effect for this LwM2M Device. UTC+X [ISO 8601].]]></Description>
  225. </Item>
  226. <Item ID="15">
  227. <Name>Timezone</Name>
  228. <Operations>RW</Operations>
  229. <MultipleInstances>Single</MultipleInstances>
  230. <Mandatory>Optional</Mandatory>
  231. <Type>String</Type>
  232. <RangeEnumeration></RangeEnumeration>
  233. <Units></Units>
  234. <Description><![CDATA[Indicates in which time zone the LwM2M Device is located, in IANA Timezone (TZ) database format.]]></Description>
  235. </Item>
  236. <Item ID="16">
  237. <Name>Supported Binding and Modes</Name>
  238. <Operations>R</Operations>
  239. <MultipleInstances>Single</MultipleInstances>
  240. <Mandatory>Mandatory</Mandatory>
  241. <Type>String</Type>
  242. <RangeEnumeration></RangeEnumeration>
  243. <Units></Units>
  244. <Description><![CDATA[Indicates which bindings and modes are supported in the LwM2M Client. The possible values of Resource are combination of "U" or "UQ" and "S" or "SQ".]]></Description>
  245. </Item>
  246. <Item ID="17"><Name>Device Type</Name>
  247. <Operations>R</Operations>
  248. <MultipleInstances>Single</MultipleInstances>
  249. <Mandatory>Optional</Mandatory>
  250. <Type>String</Type>
  251. <RangeEnumeration></RangeEnumeration>
  252. <Units></Units>
  253. <Description><![CDATA[Type of the device (manufacturer specified string: e.g., smart meters / dev Class…)]]></Description>
  254. </Item>
  255. <Item ID="18"><Name>Hardware Version</Name>
  256. <Operations>R</Operations>
  257. <MultipleInstances>Single</MultipleInstances>
  258. <Mandatory>Optional</Mandatory>
  259. <Type>String</Type>
  260. <RangeEnumeration></RangeEnumeration>
  261. <Units></Units>
  262. <Description><![CDATA[Current hardware version of the device]]></Description>
  263. </Item>
  264. <Item ID="19"><Name>Software Version</Name>
  265. <Operations>R</Operations>
  266. <MultipleInstances>Single</MultipleInstances>
  267. <Mandatory>Optional</Mandatory>
  268. <Type>String</Type>
  269. <RangeEnumeration></RangeEnumeration>
  270. <Units></Units>
  271. <Description><![CDATA[Current software version of the device (manufacturer specified string). On elaborated LwM2M device, SW could be split in 2 parts: a firmware one and a higher level software on top.
  272. Both pieces of Software are together managed by LwM2M Firmware Update Object (Object ID 5)]]></Description>
  273. </Item>
  274. <Item ID="20"><Name>Battery Status</Name>
  275. <Operations>R</Operations>
  276. <MultipleInstances>Single</MultipleInstances>
  277. <Mandatory>Optional</Mandatory>
  278. <Type>Integer</Type>
  279. <RangeEnumeration>0-6</RangeEnumeration>
  280. <Units></Units>
  281. <Description><![CDATA[This value is only valid for the Device Internal Battery if present (one Available Power Sources Resource Instance value is 1).
  282. Battery
  283. Status Meaning Description
  284. 0 Normal The battery is operating normally and not on power.
  285. 1 Charging The battery is currently charging.
  286. 2 Charge Complete The battery is fully charged and still on power.
  287. 3 Damaged The battery has some problem.
  288. 4 Low Battery The battery is low on charge.
  289. 5 Not Installed The battery is not installed.
  290. 6 Unknown The battery information is not available.]]></Description>
  291. </Item>
  292. <Item ID="21"><Name>Memory Total</Name>
  293. <Operations>R</Operations>
  294. <MultipleInstances>Single</MultipleInstances>
  295. <Mandatory>Optional</Mandatory>
  296. <Type>Integer</Type>
  297. <RangeEnumeration></RangeEnumeration>
  298. <Units></Units>
  299. <Description><![CDATA[Total amount of storage space which can store data and software in the LwM2M Device (expressed in kilobytes).]]></Description>
  300. </Item>
  301. <Item ID="22"><Name>ExtDevInfo</Name>
  302. <Operations>R</Operations>
  303. <MultipleInstances>Multiple</MultipleInstances>
  304. <Mandatory>Optional</Mandatory>
  305. <Type>Objlnk</Type>
  306. <RangeEnumeration></RangeEnumeration>
  307. <Units></Units>
  308. <Description><![CDATA[Reference to external “Device” object instance containing information. For example, such an external device can be a Host Device, which is a device into which the Device containing the LwM2M client is embedded. This Resource may be used to retrieve information about the Host Device.]]></Description>
  309. </Item></Resources>
  310. <Description2></Description2>
  311. </Object>
  312. </LWM2M>