Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUniquely identify a device in om2m
https://www.eclipse.org/forums/index.php/mv/msg/795605/1402385/#msg_1402385
Thank's for your help.
Hady]]>hady delabe2014-07-17T00:14:44-00:00Re: Uniquely identify a device in om2m
https://www.eclipse.org/forums/index.php/mv/msg/795605/1402670/#msg_1402670
As Implemented in OM2M, the ID can be specified in the XML representation when you want to create your resource (not a collection resource (scls, applications, containers, etc.)), and the identification (for some important resources) is as follow:
Application resource: the ID is optional in the creation request.
appId attribute in the XML: if the ID is Unique, the resource is created. Otherwise, you will get a 409 error with "ApplicationId Conflit" message.
appId attribute not in the XML: the ID will be generated dynamically (APP_RandomNumber)
Container resource: the ID is optional in the creation request.
id attribute in the XML: if the ID is Unique, the resource is created. Otherwise, an other ID will be generated (CONT_RandomNumber).
id attribute not in the XML: the ID will be generated dynamically (CONT_RandomNumber)
ContentInstance resource: the ID is optional in the creation request.
id attribute in the XML: if the ID is Unique, the resource is created. Otherwise, an other ID will be generated (CI_RandomNumber).
id attribute not in the XML: the ID will be generated dynamically (CI_RandomNumber)
Hope that will be helpful.
Regards.
---
Yassine
]]>Yassine Banouar2014-07-17T10:19:33-00:00Re: Uniquely identify a device in om2m
https://www.eclipse.org/forums/index.php/mv/msg/795605/1402969/#msg_1402969
Thank you for your response, in fact I have a platform that is an aggregator of connected objects I consider the platform as an application resource (GA) and thus has a unique identifier.
By against my devices are not real resource in the sense om2m I store a list of devices and I would like to identify, devices being considered like attachedDevices
in the NSCL. Is this possible? Thank you.
Hady]]>hady delabe2014-07-18T23:37:45-00:00Re: Uniquely identify a device in om2m
https://www.eclipse.org/forums/index.php/mv/msg/795605/1402993/#msg_1402993
I will try to give a scenario implemented in OM2M.
In our case for instance, we provided a PhidgetIPU (Interworking Proxy Unit) to allowing interaction with this devices' Technology. It creates all resources for the interfaceKit 8/8/8 (8: Analog Inputs and 8: Digital Inputs (for sensors), 8: Outputs (for actuation)):
Application resource is related to an Interface.
Two Containers: DESCRIPTOR, which contains a ContentInstance for all procedures to interact with your devices (switch ON/OFF, get the LastValue from DB or Device, etc.), and DATA container, where your device's values are stored (by default to the last ten values).
All these IDs (for applications, containers) are specified in the PhidgetIPU.
So maybe for your scenario, to interact with your devices, you can create an IPU for them, which will discover and create the corresponding resources for your devices, and specify the corresponding.
The IPU Lamp Sample is also based on the same procedure (that you already know).
Regards
-------
Yassine]]>Yassine Banouar2014-07-19T15:18:07-00:00Re: Uniquely identify a device in om2m
https://www.eclipse.org/forums/index.php/mv/msg/795605/1403159/#msg_1403159
I see better, Thank you for your responses, I'm going to see about that.