NRF9160: PDN Library, default APN error

Hello,

i am trying to set a default apn to a project with the NRF9160 and the NRF Connect SDK 2.4.2.  For this i added the following entries to the prj.conf:

CONFIG_PDN=y
CONFIG_PDN_DEFAULTS_OVERRIDE=y
CONFIG_PDN_DEFAULT_APN="telstra.m2m"

But after startup i got the following error messages and the APN seems not to be set:

[00:00:00.608,917] <err> pdn: Failed to configure CID 0, err, 65536
[00:00:00.608,947] <err> pdn: Failed to configure default CID, err -8

From what i can see in the pdn.c file the error is, that the nrf_modem_at_printf call returns -1, which means the modem_lib is not initalised ? But the pdn lib seem to be automatically startet with the NRF_MODEM_LIB_ON_INIT macro.

Other Issue tell about setting CONFIG_PDN_SYS_INIT to n and manually initing the libabry, but that seems to be an old config entry which is not available on NRF Connect SDK 2.4.2 anymore ?

Any help is appreciated,

kind regards,

Dominik

Related