How to know current network mode?

Hello Team Nordic,

We know that %XSYSTEMMODE command is used to set specific LTE mode. I am also using CONFIG_LTE_NETWORK_USE_FALLBACK.

I have a SIM card which connects to both LTE-M and NB-IoT.

How to find out which network mode SIM is connected to at regular interval? Can %XSYSTEMMODE values change automatically as network mode changes?

Thank you,

Aakash.

  • Hello Aakash! 

    Can %XSYSTEMMODE values change automatically as network mode changes?

    No, the System Mode %XSYSTEMMODE can only be changed when modem is off. As described in the documentation:

    • This command is allowed only before activating the modem using the CFUN=1 command. If the mode needs to be changed, do the following:
      • Power off the modem using the CFUN=0 command
      • Power off the modem using the CFUN=0 command or set it to flight mode using the CFUN=4 command. (modem FW v1.3.x)
    • Operator configurations can override values set by the user.

    To see the current network information you can issue the Network registration status notification +CEREG read command -" AT+CEREG? "

    Kind regards,
    Øyvind

  • Hi Øyvind,

    Thank you. This command will help us to find which network operator we are connected to.

    Also, we found following command can get us the current system mode: lte_lc_system_mode_get();

    Kind regards,

    Aakash.

Related