-
Notifications
You must be signed in to change notification settings - Fork 408
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
Sleep Mode MAX_TRANSMISS_WAIT #1397
Comments
The CoAP MAX_TRANSMISS_WAIT and other low-level timing are not negotiated between the client and the server. |
Okay thank you |
(:warning: Long Answer :sweat_smile:) About LWM2M specification : AFIAK there is nothing in LWM2M specification which clearly defines when the server must consider a client off-line (sleeping). The specifications says LWM2Mv1.1.1@transport§6.5. Queue Mode Operation for client :
And for server :
Using Note It exists an LWM2M Object called CoAP Config (ID 500). If a client implements this object and use MAX_TRANSMIT_WAIT to go to sleep , we could imagine that server use it to calculate the There is also some discussion about a server could say to the device that there is nothing more to send, see OpenMobileAlliance/OMA_LwM2M_for_Developers#524 About Leshan behavior : How it behaves at Leshan Server Side :
To summarize ideas about how to manage this : Do nothing as this is OK if client goes to sleep sooner. OR If all clients use same time to sleep, just change the default static value. OR If you only have ~2 or ~3 different time to sleep in your fleet :
OR If All clients have different timeout :
To finally answer to the question :
FMPOV, there is no bug neither at Leshan nor Anjay side.
I'm not sure to get you, what do you propose ? |
without checking, I think your answer contains more words than the specification paragraph on queue mode 😂 |
Yep this is an answer for @Earthworn but also mainly a way to summarize all about what I found on this topic for my future self 😁 |
Thank you. I m not an anjay developer. I just evaluate the Anjay zephyr Client on nrf9160dk with the leshan server. I proposed to send you the logging information of my application but this isn't neccessary because it is not an bug. And you explained the issue pretty well. Sorry for my bad English. I have to agree with jvermillard. There are not many Information about the Queue Mode in the specification. In the beginning i thought i missed an paragraph. |
You're welcome. I understand you don't need a concrete solution for this. So we can re-close this. (Feel free to re-open or to comment more if needed) |
Version(s)
v2.0.0-M10
Which components
server
Tested With
anjay zephyr client
What happened
Hi,
I m Using the Anjay Zephyr Client on nrf9160DK.
If i use Queue Mode and change the default coap MAX_TRANSMISS_WAIT (93 s) value to 21 s the Leshan Server still shows that the Client enters sleep mode after 93s. I can see on client side, that the client enters sleep Mode after 21s. Not sure if the client does not give the correct information to the leshan server or if the leshan server just always work with the default value. So i m not sure if this is an leshan or Anjay bug. The log does not give any information if the MAX_TRANSMISS_WAIT is transfered. If you need it i can send it to you
Best regards Levi
The text was updated successfully, but these errors were encountered: