Skip to content

Commit bebfd87

Browse files
emillindqdkalowsk
authored andcommitted
modem_cellular: lara_r6: disable modem's own LWM2M client
U-blox LARA-R6 LWM2M client is enabled by default. Not only causes this the modem to connect to U-blox's server on its own, it also for some reason causes the modem to reply "Destination unreachable" to DNS answers from DNS requests that we send Signed-off-by: Emil Lindqvist <emil@lindq.gr>
1 parent 2339c7c commit bebfd87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/modem/modem_cellular.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,6 +2287,13 @@ MODEM_CHAT_SCRIPT_DEFINE(u_blox_lara_r6_set_baudrate_chat_script,
22872287
* which works well
22882288
*/
22892289
MODEM_CHAT_SCRIPT_CMDS_DEFINE(u_blox_lara_r6_init_chat_script_cmds,
2290+
2291+
/* U-blox LARA-R6 LWM2M client is enabled by default. Not only causes
2292+
* this the modem to connect to U-blox's server on its own, it also
2293+
* for some reason causes the modem to reply "Destination
2294+
* unreachable" to DNS answers from DNS requests that we send
2295+
*/
2296+
MODEM_CHAT_SCRIPT_CMD_RESP_MULT("AT+ULWM2M=1", allow_match),
22902297
MODEM_CHAT_SCRIPT_CMD_RESP("AT+CFUN=4", ok_match),
22912298
MODEM_CHAT_SCRIPT_CMD_RESP("AT+CMEE=1", ok_match),
22922299
MODEM_CHAT_SCRIPT_CMD_RESP("AT+CREG=1", ok_match),

0 commit comments

Comments
 (0)