lte_lc: Failed to set functional mode. Please check XSYSTEMMODE nrf9160

I'm checking the function by uploading the code to the pcb that uploaded the nrf9160 chip.

I checked that the network communication is normal on the previous 9160dk board.

As a result of uploading the code to the custom board and trying again, it has been confirmed that there is a problem with the modem as shown below.

[00:01:21.507,904] <err> lte_lc: Failed to subscribe to CEREG notifications, error: 65536
[00:01:21.507,904] <err> lte_lc: Failed to enable notifications, error: -14
[00:01:21.507,904] <err> nrf_modem_lib_netif: lte_lc_func_mode_set, error: -14
[00:01:21.507,934] <inf> NRFX_EXAMPLE: conn_mgr_all_if_connect, error: -14
[00:01:31.515,136] <err> nrf_modem_lib_netif: Modem error: 0xfff, PC: 0x0
[00:01:31.515,167] <err> lte_lc: Failed to set functional mode. Please check XSYSTEMMODE.
[00:01:31.515,167] <err> nrf_modem_lib_netif: lte_lc_func_mode_set, error: -14
Fatal error received from the connectivity layer
getaddrinfo() failed, err -11
[00:01:33.515,350] <err> lte_lc: Failed to set functional mode. Please check XSYSTEMMODE.
[00:01:33.515,380] <err> nrf_modem_lib_netif: lte_lc_func_mode_set, error: -14
[00:01:33.515,411] <inf> NRFX_EXAMPLE: conn_mgr_all_if_disconnect, error: -14

I don't know how to change the uart pin and see if the modem's firmware is the problem.

It would be nice if you could give me some advice.

Thank you.

  • As is states in the bottom, there is no network available. We need to figure out why this is. What modem FW are you running on your device?

    park jae wan said:

    and i try command that AT+CGSN=1 

    +CGSN: "350916069243163"

    Ok, thanks for confirming. Just needed to verify that your device has a IMEI programmed. 

    Can you please use the Cellular: AT Client sample  and issue the same AT commands? You can use AT+CGMR

    The AT monitor sample does not provide any good answers other than there is no network.

    Does your device show in Cellular Monitor in the nRF Connect for Desktop? If possible, can you connect to your device by "selecting device". Afterwards you open serial terminal to see terminal output and click on start in Cellular Monitor. After doing so you can click on "Refresh dashboard". What do you get in the terminal?

    Here is my output from AT client running on my DK

    *** Booting nRF Connect SDK v3.5.99-ncs1 ***
    The AT host sample started
    Ready
    > AT+CFUN=1
    OK
    > AT%XCONNSTAT=1
    OK
    > AT%XCONNSTAT?
    %XCONNSTAT: 0,0,0,0,0,0
    OK
    > AT+CMEE=1
    OK
    > AT%XSIM=1
    OK
    > AT+CEREG=5
    OK
    > AT%MDMEV=1
    OK
    > AT%CESQ=1
    OK
    > AT+CGSN=1
    +CGSN: "351901936411325"
    OK
    > AT+CGMM
    nRF9160-SICA
    OK
    > AT+CEMODE?
    +CEMODE: 2
    OK
    > AT+CMEE?
    +CMEE: 1
    OK
    > AT+CNEC?
    +CNEC: 0
    OK
    > AT+CGEREP?
    +CGEREP: 0,0
    OK
    > AT+CIND=1,1,1
    OK
    > AT+COPS=3,2
    OK
    > AT+CGDCONT?
    OK
    > AT+CGACT?
    OK
    > AT+CESQ
    +CESQ: 99,99,255,255,255,255
    OK
    > AT%XSIM?
    %XSIM: 0
    OK
    > AT+CPIN?
    +CME ERROR: 13
    > AT+CIMI
    +CME ERROR: 0
    > AT+CNEC=24
    OK
    > AT+CEER
    OK
    > AT+CGEREP=1
    OK
    > AT%XPOFWARN=1,30
    OK
    > AT%XVBATLVL=1
    OK
    > AT+CGMI
    Nordic Semiconductor ASA
    OK
    > AT+CGMR
    mfw_nrf9160_1.3.7
    OK
    > AT+CGSN
    351901936411325
    OK
    > AT%XMODEMUUID
    %XMODEMUUID: e7a1c54a-b07c-4512-9c3e-8ecbbfe2641d
    OK
    > AT%XDATAPRFL?
    %XDATAPRFL: 2
    OK
    > AT+CEREG?
    +CEREG: 5,4
    OK
    > AT+CFUN?
    +CFUN: 1
    OK
    > AT%CESQ=1
    OK
    > AT+CSCON=1
    OK
    > AT+CSCON?
    +CSCON: 1,0
    OK
    > AT+CPAS
    +CPAS: 0
    OK
    > AT+CEDRXRDP
    +CEDRXRDP: 0
    OK
    > AT%XTIME=1
    OK
    > AT%CONEVAL
    %CONEVAL: 1
    OK
    > AT%XCBAND=?
    %XCBAND: (1,2,3,4,5,8,12,13,18,19,20,25,26,28,66)
    OK
    > AT%XCBAND
    %XCBAND: 0
    OK
    > AT%HWVERSION
    %HWVERSION: nRF9160 SICA B1A
    OK
    > AT%XMODEMTRACE=1,2
    OK
    > AT%XSYSTEMMODE?
    %XSYSTEMMODE: 1,1,1,3
    OK
    > AT%XICCID
    +CME ERROR: 0
    > AT%XEMPR?
    %XEMPR: 
    OK
    > AT+CGDCONT?
    OK
    > AT+COPS?
    +COPS: 0
    OK
    > AT%XMONITOR
    %XMONITOR: 4
    OK
    > AT+CPINR="SIM PIN"
    +CEREG: 90
    %XSIM: 0,9

  • The confirmation is delayed. I'm sorry.

    I tried to operate all the AT commands you uploaded.
    The results are shown below

    It doesn't seem to be a big problem. Can some other things be a factor that can cause problems?

    OK
    OK
    OK
    %XCONNSTAT: 0,0,0,0,0,0
    OK
    OK
    OK
    OK
    OK
    OK
    %CESQ: 55,2,17,2
    +CGSN: "350916069243163"
    OK
    nRF9160-SICA
    OK
    +CEMODE: 2
    OK
    +CMEE: 1
    OK
    +CNEC: 0
    OK
    +CGEREP: 0,0
    OK
    OK
    OK
    +CGDCONT: 0,"IP","globaldata.iot","10.155.56.192",0,0
    OK
    %CESQ: 55,2,12,1
    +CGACT: 0,1
    OK
    +CESQ: 99,99,255,255,14,56
    OK
    %XSIM: 1
    OK
    +CPIN: READY
    OK
    204080743141593
    OK
    %CESQ: 55,2,17,2
    OK
    +CEER: "EMM 18"
    OK
    OK
    OK
    OK
    %CESQ: 54,2,12,1
    Nordic Semiconductor ASA
    OK
    %CESQ: 55,2,17,2
    mfw_nrf9160_1.3.7
    OK
    350916069243163
    OK
    %XMODEMUUID: e7a1c54a-b07c-4512-9c3e-8ecbbfe2641d
    OK
    %XDATAPRFL: 2
    OK
    +CEREG: 5,5,"20CF","031ACC09",7,,,"11100000","11100000"
    OK
    %CESQ: 54,2,12,1
    +CFUN: 1
    OK
    OK
    OK
    +CSCON: 1,0
    OK
    +CPAS: 0
    OK
    +CEDRXRDP: 0
    OK
    OK
    %CESQ: 55,2,18,2
    %CONEVAL: 0,0,7,51,16,29,"031ACC09","45006",30,2600,5,0,0,3,1,8,107
    OK
    %XCBAND: (1,2,3,4,5,8,12,13,18,19,20,25,26,28,66)
    OK
    %CESQ: 54,2,12,1
    %XCBAND: 5
    OK
    %CESQ: 54,2,17,2
    %HWVERSION: nRF9160 SICA B1A
    OK
    OK
    %XSYSTEMMODE: 1,1,1,3
    OK
    %XICCID: 8931681011103482494F
    OK
    %XEMPR:
    OK
    +CGDCONT: 0,"IP","globaldata.iot","10.155.56.192",0,0
    OK
    +COPS: 0,2,"45006",7
    OK
    %CESQ: 53,2,12,1
    %XMONITOR: 5,"LG U+","LG U+","45006","20CF",7,5,"031ACC09",30,2600,53,31,"","11100000","11100000","01001001"
    OK
    +CPINR: "SIM PIN",3
    OK

    Have a great day!
Related