|
Re: Question of onlineStatus and IP [message #1693513 is a reply to message #1693343] |
Fri, 24 April 2015 16:06 |
Mahdi Ben Alaya Messages: 229 Registered: November 2013 |
Senior Member |
|
|
Hello David,
You raised relevant issues. I will try be clear and precise:
Q1.
The SCL state update feature is not yet implemented. So it is normal that the "onlineStatus" field is not modified.
However, your client will receive a HTTP error message when trying to access to the down NSCL. You can try it using a REST client.
Remember that when you shut down the NSCL, you stop all its plugins including the one providing the web interface.
So, technically, only the web interface of the GSCL stills alive which is locally accessible via 127.0.0.1:8181.
Q2.
The NSCL cannot access directly to the private GSCL do the well known NAT traversing issue (http://en.wikipedia.org/wiki/NAT_traversal)
The SmartM2M standard defined a solution for NAT traversing based on the long polling mechanism using a new resource called "CommunicationChannel".
Here, the gateway will act always as a client asking for the "CommunicationChannel" resource, and will receive request coming from the server as response.
We are also experimenting other mechanisms like:
http://en.wikipedia.org/wiki/NAT_traversal#Techniques
http://fr.wikipedia.org/wiki/Simple_Traversal_of_UDP_through_NATs
Q3.
First, you can configure the default admin password on the config.ini file
Second, you can manage access right using the AccessRight resource.
Any resource contains the AccessRightID tag pointing to an AccessRight resource where the permission are defined.
For each AccessRight, you can add a set of permissions containing the list of holders (pass1:admin1, pass2:admin2) and flags (read, create, delete, etc.)
You can also set set of selfPermissions containing the list of holders and flags authorized to modify the AccessRight resource itself.
After starting the NSCL, you can take a look at the already created AR_ADMIN resource structure on the AccessRights collection .
Check this wiki to see the complete AccessRight representation: https://wiki.eclipse.org/OM2M/AccessRight.
Thank you for your comment,
Hope this can help
Mahdi
|
|
|
Powered by
FUDForum. Page generated in 0.03340 seconds