Skip to content

Commit

Permalink
drivers: modem: sara-r4: fix APN setting for U2 modem
Browse files Browse the repository at this point in the history
usage of AT+UPSD command per UBX-17003787(R15) command reference is:
AT+UPSD=<profile_id>, <param_tag>, <param_val>

For AT+UPSD=0, 1, "<value>": we are setting value to MCCMNO, which
is technically incorrect.  <param_tag> of 1 means:

1: APN - <param_val> defines the APN text string, e.g.
"apn.provider.com"; the maximum length is 99. The factory-programmed
value is an empty string.

Let's use APN here instead.  This fixes a +CME ERROR: 113 when
connecting with U2 modem.

Fixes: zephyrproject-rtos#22689

Signed-off-by: Michael Scott <mike@foundries.io>
  • Loading branch information
mike-scott committed Feb 10, 2020
1 parent 5a7f073 commit ba9234b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/modem/ublox-sara-r4.c
Expand Up @@ -753,7 +753,7 @@ static void modem_reset(void)
#if defined(CONFIG_MODEM_UBLOX_SARA_U2)
/* set the APN */
SETUP_CMD_NOHANDLE("AT+UPSD=0,1,\""
CONFIG_MODEM_UBLOX_SARA_R4_MANUAL_MCCMNO "\""),
CONFIG_MODEM_UBLOX_SARA_R4_APN "\""),
/* set dynamic IP */
SETUP_CMD_NOHANDLE("AT+UPSD=0,7,\"0.0.0.0\""),
/* activate the GPRS connection */
Expand Down

0 comments on commit ba9234b

Please sign in to comment.