8.5 HAIM Device Model
8.5.1 HAIM Light Device Creation
Interoperability Test Description
| Identifier: | TD_M2M_NH_102 |
| Objective: | AE1 creates a HAIM Light Device Model |
| Configuration: | M2M_CFG_10 |
| References: | oneM2M TS-0023 <a href="#_ref_14">[14]</a>, clause 5.5.27 |
Pre-test conditions:
AE1 has created an application resource <AE> on registrar CSE
Test Sequence
| Step | RP | Type | Description |
|---|---|---|---|
| 1 | Stimulus | AE1 sends a request to create a <flexContainer> for deviceLight | |
| 2 | Mca |
PRO Check Primitive | • op = 1 (Create) • to = {CSEBaseName}/URI of <AE1> resource • fr = AE-ID • rqi = (token-string) • ty = 28 (flexContainer) • pc = Serialized representation of <flexContainer> resource with proper containerDefinition |
| 3 | IOP Check | Check if possible that the <flexContainer> resource is created in registrar CSE | |
| 4 | Mca |
PRO Check Primitive | • rsc = 2001 (CREATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 5 | IOP Check | AE indicates successful operation | |
| 6 | Stimulus | AE1 sends a request to create a <flexContainer> for binarySwitch | |
| 7 | Mca |
PRO Check Primitive | • op = 1 (Create) • to = {CSEBaseName}/URI of <AE1> resource/resource name of deviceLight • fr = AE-ID • rqi = (token-string) • ty = 28 (flexContainer) • pc = Serialized representation of <flexContainer> resource with proper containerDefinition |
| 8 | IOP Check | Check if possible that the <flexContainer> resource is created in registrar CSE | |
| 9 | Mca |
PRO Check Primitive | • rsc = 2001 (CREATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 10 | IOP Check | AE indicates successful operation |
NOTE:
Optional: Repeat steps 5-10 for additional deviceLight Modules
8.5.2 HAIM Light Device Status Read
Interoperability Test Description
| Identifier: | TD_M2M_NH_103 |
| Objective: | AE2 reads the status of a HAIM Light Device Model |
| Configuration: | M2M_CFG_10 |
| References: | oneM2M TS-0023 <a href="#_ref_14">[14]</a>, clauses 5.5.27, 5.3.12 |
Pre-test conditions:
AE2 has created an application resource <AE> on registrar CSE
AE1 has created a HAIM Light Device model
Test Sequence
| Step | RP | Type | Description |
|---|---|---|---|
| 1 | Stimulus | AE2 sends a request to retrieve a <flexContainer> for binarySwitch | |
| 2 | Mca |
PRO Check Primitive | • op = 2 (Retrieve) • to = {CSEBaseName}/URI of <deviceLight> resource/binarySwitch • fr = AE-ID • rqi = (token-string) |
| 3 | Mca |
PRO Check Primitive | • rsc = 2000 (OK) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 4 | IOP Check | AE2 indicates successful operation |
NOTE:
Optional: Repeat steps 1-4 for additional deviceLight Modules
8.5.3 HAIM Light Device Update
Interoperability Test Description
| Identifier: | TD_M2M_NH_104 |
| Objective: | AE2 turns the binarySwitch of a HAIM Light Device Model "ON" or "OFF" |
| Configuration: | M2M_CFG_10 |
| References: | oneM2M TS-0023 <a href="#_ref_14">[14]</a>, clause 5.5.27 |
Pre-test conditions:
AE2 has created an application resource <AE> on registrar CSE
AE1 has created a HAIM Light Device model
Test Sequence
| Step | RP | Type | Description |
|---|---|---|---|
| 1 | Stimulus | AE2 sends a request to create a <flexContainer> for deviceLight | |
| 2 | Mca |
PRO Check Primitive | • op = 3 (Update) • to = {CSEBaseName}/ URI of <deviceLight> resource/binarySwitch • fr = AE-ID • rqi = (token-string) • pc = Serialized representation of <flexContainer> resource with new value for powerState |
| 3 | IOP Check | Check if possible that the <flexContainer> resource is updates in registrar CSE | |
| 4 | Mca |
PRO Check Primitive | • rsc = 2004 (UPDATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 5 | IOP Check | AE indicates successful operation |
NOTE:
Optional: Repeat steps 1-5 for additional device states and settings
8.5.4 HAIM Light Device Toggle Action
Interoperability Test Description
| Identifier: | TD_M2M_NH_105 |
| Objective: | AE2 toggles the state of a HAIM Light Device Model |
| Configuration: | M2M_CFG_10 |
| References: | oneM2M TS-0023 <a href="#_ref_14">[14]</a>, clause 5.5.27 |
Pre-test conditions:
AE2 has created an application resource <AE> on registrar CSE
AE1 has created a HAIM Light Device model
Test Sequence
| Step | RP | Type | Description |
|---|---|---|---|
| 1 | Stimulus | AE2 sends a request to create a <flexContainer> for deviceLight | |
| 2 | Mca |
PRO Check Primitive | • op = 3 (Update) • to = {CSEBaseName}/ URI of <deviceLight> resource/binarySwitch/toggle • fr = AE-ID • rqi = (token-string) • pc = Serialized representation of <flexContainer> resource for toggle action |
| 3 | IOP Check | Check if possible that the <flexContainer> resource is updates in registrar CSE | |
| 4 | Mca |
PRO Check Primitive | • rsc = 2004 (UPDATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 5 | IOP Check | AE2 indicates successful operation. Check that the powerState of the binarySwitch is updated |
NOTE:
Optional: Repeat steps 1-5 for additional device states and settings
8.5.5 HAIM Power Outlet SubDevice Create
Interoperability Test Description
| Identifier: | TD_M2M_NH_160 |
| Objective: | AE1 creates a Power Outlet SubDevice Model |
| Configuration: | M2M_CFG_10 |
| References: | oneM2M TS-0023 <a href="#_ref_14">[14]</a>, clause 5.4.1.2 |
Pre-test conditions:
AE1 has created an application resource <AE> on registrar CSE
AE1 has created a <flexContainer> for deviceSmartPlug
Test Sequence
| Step | RP | Type | Description |
|---|---|---|---|
| 1 | Stimulus | AE1 sends a request to create a <flexContainer> for subDevicePowerOutlet | |
| 2 | Mca |
PRO Check Primitive | • op = 1 (Create) • to = {CSEBaseName}/URI of <AE1> resource/resource name of deviceSmartPlug • fr = AE-ID • rqi = (token-string) • ty = 28 (flexContainer) • pc = Serialized representation of <flexContainer> resource with proper containerDefinition |
| 3 | IOP Check | Check if possible that the <flexContainer> resource is created in registrar CSE | |
| 4 | Mca |
PRO Check Primitive | • rsc = 2001 (CREATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 5 | IOP Check | AE indicates successful operation | |
| 6 | Stimulus | AE1 sends a request to create a <flexContainer> for binarySwitch | |
| 7 | Mca |
PRO Check Primitive | • op = 1 (Create) • to = {CSEBaseName}/URI of <AE1> resource/resource name of subDevicePowerOutlet • fr = AE-ID • rqi = (token-string) • ty = 28 (flexContainer) • pc = Serialized representation of <flexContainer> resource with proper containerDefinition |
| 8 | IOP Check | Check if possible that the <flexContainer> resource is created in registrar CSE | |
| 9 | Mca |
PRO Check Primitive | • rsc = 2001 (CREATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 10 | IOP Check | AE indicates successful operation |
NOTE:
Optional: Repeat steps 6-10 for additional subDevicePowerOutlet Modules
8.5.6 HAIM Toggle Action Create
Interoperability Test Description
| Identifier: | TD_M2M_NH_161 |
| Objective: | AE1 creates a Toggle Action Model |
| Configuration: | M2M_CFG_10 |
| References: | oneM2M TS-0023 <a href="#_ref_14">[14]</a>, clause 5.3.1.12 |
Pre-test conditions:
AE1 has created an application resource <AE> on registrar CSE
AE1 has created a <flexContainer> for deviceSmartPlug
AE1 has created a <flexContainer> for binarySwtich as a child of deviceSmartPlug
Test Sequence
| Step | RP | Type | Description |
|---|---|---|---|
| 1 | Stimulus | AE1 sends a request to create a <flexContainer> for Toggle | |
| 2 | Mca |
PRO Check Primitive | • op = 1 (Create) • to = {CSEBaseName}/URI of <AE1> resource/resource name of binarySwtich • fr = AE-ID • rqi = (token-string) • ty = 28 (flexContainer) • pc = Serialized representation of <flexContainer> resource with proper containerDefinition |
| 3 | IOP Check | Check if possible that the <flexContainer> resource is created in registrar CSE | |
| 4 | Mca |
PRO Check Primitive | • rsc = 2001 (CREATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of <flexContainer> resource |
| 5 | IOP Check | AE indicates successful operation |
8.5.7 HAIM Device Properties Create
Interoperability Test Description
| Identifier: | TD_M2M_NH_162 |
| Objective: | AE1 creates Device Properties Model |
| Configuration: | M2M_CFG_10 |
| References: | oneM2M TS-0023 <a href="#_ref_14">[14]</a>, clause 6.2.5 |
Pre-test conditions:
AE1 has created an application resource <AE> on registrar CSE
AE1 has created a <flexContainer> for deviceLight
AE1 has created a <node> resource
| Step | RP | Type | Description |
|---|---|---|---|
| 1 | Stimulus | AE1 sends a request to create a [deviceInfo] resource | |
| 2 | Mca |
PRO Check Primitive | • op = 1 (Create) • to = {CSEBaseName}/URI of <node> resource/ • fr = AE-ID • rqi = (token-string) • ty = 13 (mgmtObj) • pc = Serialized representation of [deviceInfo] resource with with properties set as attributes of the resource |
| 3 | IOP Check | Check if possible that the [deviceInfo] resource is created in registrar CSE | |
| 4 | Mca |
PRO Check Primitive | • rsc = 2001 (CREATED) • rqi = (token-string) same as received in request message • pc = Serialized representation of [deviceInfo] resource |
| 5 | IOP Check | AE indicates successful operation |