Difference between CONFIG_PDN_DEFAULT_APN and command AT+CGDCONT

Hi everyone,

I'm developing on nrf9160DK. I would like to know if there is any difference between setting the APN through the CONFIG_PDN_DEFAULT_APN in prj.conf file or by sending the AT command +CGDCONT. I'm noticing some difference in terms of connection velocity but i really don't know if there is a difference in terms of modem internal functionalities. Is there a possibility that the modem stores the APN when i set it trought CONFIG_PDN_DEFAULT_APN?
Thanks in advance.

Salvo

  • Hello Salvo,

    I would like to know if there is any difference between setting the APN through the CONFIG_PDN_DEFAULT_APN in prj.conf file or by sending the AT command +CGDCONT.

    No, there is not really a difference.

    Is there a possibility that the modem stores the APN when i set it trought CONFIG_PDN_DEFAULT_APN?

    CONFIG_PDN_DEFAULT_APN is an input to pdn_ctx_configure(), which in the end will use AT+CGDCONT to write the PDP Context to the modem.

    I'm noticing some difference in terms of connection velocity but i really don't know if there is a difference in terms of modem internal functionalities.

    The connection velocity is most likely related to the surroundings, yes.

    Regards,

    Markus

     

Related