-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registration validity timespan after Lifetime replacement. #185
Comments
From my point of view: response a |
May understanding of the lifetime is, that the client informs the server of his lifetime. |
DM WG to provide a clarification. |
For the case, when more LWM2M servers are considered, the lifetime may be written by an other LWM2M server. Therefore I think, the client MUST sent his update registration to the server and therefore this establishes the new lifetime at the server. Wire this to a special resource in the data mangement interface will make it more complex. |
Section 5.3 clearly describes , the following Feedback provided by Device Management Working Group. In the example provided as soon as "t" is set by LwM2M server then client should use this as its new set limit for lifetime timer.. Further sequences use "t" for any actions TICKET TO BE CLOSED |
I still belief, that a server will adjust his "session lifetime" only by messages from the registration interface. Anything else (wiring registration interface with device management messages) will make implementations complex! And I don't know, how the message flow should look like, when two LWM2M servers are connected to the same device and one LWM2M Server update the lifetime of the other. |
Note that if the lifetime resource value is modified, the Client must send a Registration Update message to the Server as per section 5.3.2:
Table 9:
|
Hi David,
your absolutely right! I wrote this also above. And therefore I think, the server should use that "register update" to update the used lifetime and not "couple/wire up" the data management interface with the registration interface. |
Sorry, I don't get your point. |
As far as I understand the above clarification: 1/ Server sends a Write /1/x/1 [new value] |
My point was, that the original question above, explicitly states:
This would therefore either be a) or b) So, if the TS says:
Then a) is chosen and therefore the sequence from @dnav (that I also agree, to be the right one) is changed to the sequence I specified above (step 3 and 4 exchanged). with a), I don't understand, how multiple LWM2M server should implement that, if one server writes to the lifetime of the other. |
The TS states that:
Any other point is implementation dependant. |
Features: - Added custom Attribute "con" that may be used to enforce sending Confirmable Notifications for observed entities. - Added new chapter of the Tutorial about Executable Resources. - Added documentation subsection about relation LwM2M Discover and Attribute Storage. Improvements: - Removed dependency to Boost.Python in tests, and migrated to pybind11 instead (included as a submodule). - Implemented sending Update after Lifetime Resource has changed (OpenMobileAlliance/OMA_LwM2M_for_Developers#185) - Implemented proper Bootstrap Server Account purge logic (OpenMobileAlliance/OMA_LwM2M_for_Developers#195) - Improved handling of CoAP Ping messages - they no longer produce error messages in the logs. - Added more NULL-assertions in the example demo client. - Enabled scan-build in make check by default. - Bumped all copyright years. Bugfixes: - Fixed dead URLs in the documentation. - Fixed segfault when Bootstrap Discover was performed on a non-existing Object. - Fixed various minor issues found by the static analysis tools. - Fixed various compilation issues when compiled on older Android platforms.
Features: - Added custom Attribute "con" that may be used to enforce sending Confirmable Notifications for observed entities. - Added new chapter of the Tutorial about Executable Resources. - Added documentation subsection about relation LwM2M Discover and Attribute Storage. Improvements: - Removed dependency to Boost.Python in tests, and migrated to pybind11 instead (included as a submodule). - Implemented sending Update after Lifetime Resource has changed (OpenMobileAlliance/OMA_LwM2M_for_Developers#185) - Implemented proper Bootstrap Server Account purge logic (OpenMobileAlliance/OMA_LwM2M_for_Developers#195) - Improved handling of CoAP Ping messages - they no longer produce error messages in the logs. - Documented ANJAY_ERR_* constants. - Added more NULL-assertions in the example demo client. - Enabled scan-build in make check by default. - Bumped all copyright years. Bugfixes: - Fixed dead URLs in the documentation. - Fixed segfault when Bootstrap Discover was performed on a non-existing Object. - Fixed various minor issues found by the static analysis tools. - Fixed various compilation issues when compiled on older Android platforms.
The following content is referring to the
OMA-TS-LightweightM2M-V1_0-20170113
.During registration, LwM2M Client informs the LwM2M Server about its
Lifetime, and before "Lifetime" seconds expires, the registration is valid.
Specification however, does not discuss how setting Lifetime at arbitrary point in time
affects the timespan of LwM2M Client's registration validity. Namely, it is not clear
when exactly the LwM2M Server should consider Client's registration as expired.
For example:
t
, performs Write on its Instance,setting lifetime to 1.
Below an image to make this crystal clear:
Now, we have to determine at which point the registration in fact expires:
a) Would it expire after
t + 1
, if the Client haven't send the Update?b) Would it expire after old expiration deadline?
c) Something else happens?
The text was updated successfully, but these errors were encountered: