Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wakaama-dev] DTLS/socket problem after reconnecting to mobile network

Henrik,

According to section 8.3 of the LWM2M TS:
At some point in time the LwM2M Client wakes up again and transmits a registration update message. Note: During the time the LwM2M Client has been sleeping the IP address assigned to it may have been released and / or existing NAT bindings may have been released. If this is the case, then the client needs to re-run the DTLS handshake with the LwM2M Server since an IP address and/or port number change will destroy the existing security context. For performance and efficiency reasons it is RECOMMENDED to utilize the DTLS session resumption.

Have you re-run the DTLS handshake?

Regards,
Scott

-----Original Message-----
From: wakaama-dev-bounces@xxxxxxxxxxx <wakaama-dev-bounces@xxxxxxxxxxx> On Behalf Of Henrik A
Sent: Friday, May 25, 2018 2:59 AM
To: wakaama-dev@xxxxxxxxxxx
Subject: [wakaama-dev] DTLS/socket problem after reconnecting to mobile network

Hello,

Working on a product with lwm2m that connects to a server using modem.
The connection to the server is using coaps (DTLS). We are using wakaama as lwm2m client.

We are using a modem that draws quite a lot of power. To improve our battery life we need to set the modem in low power mode between data transmissions. To set the modem in low power mode the modem needs to release it's data context and close the socket (in the modem).

This seems to mess up things for us. When sending data again after waking the modem from low power mode we don't see any update on the lwm2m server.

Is that anything we need to call in wakaama to get this to work?
We don't want wakaama to deregister from the server. Ideally we just want to pick up our current DLTS session and continue where we were.

But I assume that might be a problem since we get a new ip-address from the network when waking up the modem from low power mode.

Thanks,

   Henrik



_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_wakaama-2Ddev&d=DwIGaQ&c=OcDDp6KEkFclA8bLDeiWXQ&r=7-O0XTMEtMproxOYYl7CoPn5J4JUWVsvQI5fKWLeZho&m=6Du_JEdjUlysdEIl_CE1CWTAdzMR3a5NsykD_b_dvUM&s=FiU39OMPET-R1G31Mw6vuiyp13s-Bnq5iqyK1OaueGA&e=


Back to the top