prj.conf for 2 different SIM

We have a product that needs to support two different customers with two different SIM.  One of the SIM requires the following four extra lines in the prj.conf in order to work.

CONFIG_PDN=y
CONFIG_PDN_DEFAULTS_OVERRIDE=y
CONFIG_PDN_LEGACY_PCO=y
CONFIG_PDN_DEFAULT_APN="nbiot"

The rest of the firmware is identical regardless of the SIM.  For production, it is less confusing for our contract manufacturer to program just one firmware image into all nRF9160.  Is it possible to setup these 4 configuration during run time with AT commands or other methods?  Or, can we have two firmware image in the nRF9160 and then select which one to run upon detecting what SIM is being used?

Thank you,

Floyd

Parents
  • Out solution have single firmware image that always includes the PDN library and legacy-PCO support, but no built-in APN. On startup, the application reads the SIM’s IMSI/CCID and then dynamically configures the network context using either direct AT commands (e.g. AT+CGDCONT) or the Zephyr PDN API. This means our contract manufacturer only ever needs to program one image, and each device will auto-select the correct APN/PCO for the customer’s SIM without any manual intervention

Reply
  • Out solution have single firmware image that always includes the PDN library and legacy-PCO support, but no built-in APN. On startup, the application reads the SIM’s IMSI/CCID and then dynamically configures the network context using either direct AT commands (e.g. AT+CGDCONT) or the Zephyr PDN API. This means our contract manufacturer only ever needs to program one image, and each device will auto-select the correct APN/PCO for the customer’s SIM without any manual intervention

Children
Related