OpenMobileAlliance / lwm2m-registry

This is a public repository dedicated to store and register new LwM2M Objects
http://www.openmobilealliance.org/wp/OMNA/LwM2M/LwM2MRegistry.html
50 stars 67 forks source link
iot leshan lwm2m objects oma wakaama

LwM2M Registry

This public repository is dedicated to store and register new LwM2M Objects and Reusable Resources.

Registration Process

Companies that would like to register a new Object or Reusable Resource should follow these steps:

  1. Create an Issue
  2. The Maintainer will create a new branch based on the Issue
  3. Create a new Object or revise an existing one
  4. Create a Pull Request

The steps are described below. Please contact helpdesk@omaorg.org in case you encounter any problem during the submission

1. Create an Issue

2. New branch

3. Create a new Object

Note: OMA provides an Editor tool called OMA LwM2M Editor / Validator. The editor facilitates the creation of a valid OMA LwM2M Object.

4. Create a Pull Request

The following section describes these steps in detail.

4.1 Update the DDF.xml file

Example of a placeholder in the DDF.xml file for e.g., Object ID = 0, version 1.0

    <Item>        
        <ObjectID>0</ObjectID>
        <!-- Integer, this number is allocated by the Maintainer -->
        <!-- ObjecID also called ObjID-->

        <URN>urn:oma:lwm2m:oma:0</URN>
        <!-- URN of the object 
             for other versions than v1.0 the URN must include the version, e.g., for v1.1 the URN is urn:oma:lwm2m:oma:0:1.1 -->
        <Name>LWM2M Security</Name>
        <!-- Name of the object -->

        <Description>Object description</Description>
        <!-- Description of the Object -->

        <Owner>Test WG</Owner>
        <!-- Name of the organization that has registered the object -->

        <Source>0</Source>
        <!-- Type of Object: 
             0 = defined by OMA, 
             1 = defined by external Standards Development Organizations, 
             2 = private or individual -->

        <Ver>1.0</Ver>
        <!-- Version of the object -->

        <DDF>version_history/0-1_0.xml</DDF>
        <!-- URL to the xml file describing the Object 
             latest version the filename is stored in the root as ObjID.xml
             Previous versions of the file are stored in the version_history folder as ObjID-X_Y.xml, where X.Y is the Object Version.-->

        <Vorto></Vorto>
        <!-- VOID- Link that opens the Object in the Vorto environment -->

        <DDFLink>1</DDFLink>
        <!-- 0 => if link to object should not be visible, 
             1 => if object should be visible (default) -->

        <TS>http://www.openmobilealliance.org/release/LightweightM2M/V1_0_2-20180209-A/OMA-TS-LightweightM2M-V1_0_2-20180209-A.pdf</TS>
        <!-- URL to the TS of the object, not visible, not used -->

        <TSLink>1</TSLink>
        <!-- 0 => if link to TS should not be visible, 
             1 => if link to TS should be visible (default) -->
    </Item>

4.2 Update or create a new ObjID.xml file

4.3 Add a new ObjID-X_Y.xml file to the version_history folder

4.4 Update the Common.xml file (if adding new Reusable Resources)

Example of Reusable Resource placeholder

      <Item ID="4000">
        <!-- Resource ID of the reusable resource 
             The Maintainer allocates reusable Resource IDs; this is one of the reasons to raise an Issue in the first place -->

        <Name>ObjectInstanceHandle</Name>
        <!-- Name of the reusable resource -->

        <Operations>R</Operations>
        <!-- Allowed Operation on the reusable resource-->

        <Type>Objlnk</Type>
        <!-- Type of the reusable resource -->

        <RangeEnumeration></RangeEnumeration>
        <!-- Range/Enumeration of the reusable resource
             A range is expressed with (..),e.g., from 0 to 10, it is expressed as; `(0..10)`
          -->

        <Units></Units>
        <!-- Unit of the reusable resource 
             Please note the units expressed in this element MUST comply with the units defined in the SenML Registry -->

        <Submitter>OMA</Submitter>
        <!-- Name of the organization that has registered the object -->

        <Description><![CDATA[Reusable Resource Description]]></Description>
        <!-- Description of the reusable resource -->

        <TS></TS>
        <!-- Link to the technical specification (word, pdf etc.) -->

        <TSLink>0</TSLink>
        <!--    0 => if link to TS should not be visible, 1 => if link to TS should be visible (default) -->
      </Item>

5. Auto-validation