Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Question of onlineStatus and IP
icon7.gif  Question of onlineStatus and IP [message #1693343] Thu, 23 April 2015 12:00 Go to next message
David Zheng is currently offline David ZhengFriend
Messages: 11
Registered: April 2015
Junior Member
Hi, I am new to this amazing platform.
So if these are stupid questions, please forgive me Razz

I've tested this platform by running NSCL in host A, running GSCL in host B.
Both Host A&B have public IP address.

Q1.
I found that the "onlineStatus" would not update !?
I terminate the NSCL first, and then See the resource tree of GSCL. I can still see the nscl, and its onlineStatus value is still "ONLINE".
When I click the button of "nscl", sometimes it shows "Timeout" on the top of the page, but sometimes it just crush!
Is this the bug? or Is just my operating mistake?

Q2.
Can GSCL run on the Non-public IP host?
I try to run GSCL on the host under the NAT which is using private IP (like 192.168.0.10) . But the things look like NSCL can't not communicate to GSCL. I know the reason is that the NSCL would try to connect GSCL by the private IP.
So I just want to discuss about "Is that possible to run GSCL using Non-public IP"

Q3.
How do I add/change/delete the login account/password ?

Thanks!!
Re: Question of onlineStatus and IP [message #1693513 is a reply to message #1693343] Fri, 24 April 2015 16:06 Go to previous message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
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
Previous Topic:OM2M available plugins
Next Topic:data type of content instance
Goto Forum:
  


Current Time: Thu Sep 26 10:00:15 GMT 2024

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

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

Back to the top