-
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
Dealing with RESPONSE_MATCHING parameter on device (reverse engineering) #1471
Comments
Which version of Leshan are you using ? Take a look at https://github.com/eclipse-leshan/leshan/wiki/LWM2M-Devices-with-Dynamic-IP Note that since 2.0.0-M11 there is this bug #1421 which should be fixed by #1463 If this is still not clear with documentation above, do not hesitate to ask questions. |
It probably doesn't because for DTLS
I see you are using sync API, for production it's strongly recommended to use te async API. |
Let me know if we can close the issue. |
This totally solved the issue, I used 1.1.0 version with "setUpdateRegistrationOnNotification(true);". But now we have got another problem. We compiled a jar in our project, this jar in Windows works good (5683 in the firewall), but when we run that jar in Linux, with the 5683 port opened on UFW, the connection cannot be finished. The devices can achieve to the server but the server cannot send packets to the devices, the packets never acheive the device. Any experience about this? |
Not really, but reading you I understand this is more network config issue.
2 remarks :
|
This is a difference at IP layer, I don't think this could be related to your issue.
But did you see the packet for your response when you use tcpdump on your server ? |
Should we close this issue ? |
I close it but feel free to reopen if needed. |
Question
Scenario:
1 device that connects under LWM2M protocol
1 back running leshan library (we have got the code)
1 back running with unknow software and unknow code
Behaviour:
We running leshan server with this parameter:
When the device does the registration process then we observe the /19/0/0 endpoint. When we touch the device, this sends a message to the server that is observed by the /19/0/0 observation, is this action we send a command to the device with this code:
All this works OK, but at 2-3 minutes when device is not touched, if you touch the device again, the device make the registration process again and the observation to the /19/0/0 needs to be done again to send commands because the previous observation is obsolete.
The log says this when the device connects again with the server after 2-3 minutes without interaction:
(and then, the device does the de-registration and registration process again, and the, we need to reobservate the /19/0/0.
In other hand, if we use the parameter RELAXED:
The re-registration process is not done, but the sent command (ref_server.send) never achieves the device (the port of the device changed).
We dont know if the device uses DTLS, we think that we need to put the corrects parameters at the time to launch the leshan server. We have got another backend with unknow code that works without this re-registration or re-observation issues.
The text was updated successfully, but these errors were encountered: