Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Can NSCL be SCL of another NSCL(NSCL to NSCL)
Can NSCL be SCL of another NSCL [message #1395783] Mon, 07 July 2014 11:49 Go to next message
Prem Vaithilingam is currently offline Prem VaithilingamFriend
Messages: 4
Registered: July 2014
Junior Member
Hi,

Can NSCL get registered to another NSCL as one of the SCL?

Thanks,
Prem
Re: Can NSCL be SCL of another NSCL [message #1396414 is a reply to message #1395783] Tue, 08 July 2014 09:09 Go to previous messageGo to next message
Hao XU is currently offline Hao XUFriend
Messages: 18
Registered: June 2014
Junior Member
Yes, this is done through interface mIm. If you want to know if OM2M support this, I don't know.
Re: Can NSCL be SCL of another NSCL [message #1396441 is a reply to message #1396414] Tue, 08 July 2014 09:45 Go to previous message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Hao is right.

OM2M supports NSCL-to-NSCL communication.
You can test this by locally starting NSCL1 (id=nscl1, port=8080)and NSCL2 (id=nscl2, port=9090)
Then, making a manual registration between NSCL1 and NSCL2 using the following requests (You can test this using a simple rest client https://wiki.eclipse.org/OM2M/REST_API):

//Request 1: Register NSCL2 to NSCL1

POST http://127.0.0.1:8080/om2m/nscl1/scls

<om2m:scl xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" sclId="nscl2">
<om2m:pocs>
<reference>http://127.0.0.1:9090/om2m</reference>
</om2m:pocs>
<om2m:link>nscl2</om2m:link>
<om2m:mgmtProtocolType>OMA DM</om2m:mgmtProtocolType>
</om2m:scl>

// Request 2: Register NSCL1 to NSCL2

POST http://127.0.0.1:9090/om2m/nscl2/scls

<om2m:scl xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" sclId="ncl1">
<om2m:pocs>
<reference>http://127.0.0.1:8080/om2m</reference>
</om2m:pocs>
<om2m:link>nscl1</om2m:link>
<om2m:mgmtProtocolType>OMA DM</om2m:mgmtProtocolType>
</om2m:scl>

Of course these two requests can be automatized using a script.

You can now check the re-targeting mechanism between NSCL1 and NSCL2 using the web interface (browse resources).

Hope this can help.

[Updated on: Tue, 08 July 2014 09:48]

Report message to a moderator

Previous Topic:Zigbee IPU plugin
Next Topic:Registration of a new Gateway Application
Goto Forum:
  


Current Time: Thu Mar 28 14:53:05 GMT 2024

Powered by FUDForum. Page generated in 0.04388 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top