nrf9160 Custom Board connecting to network using the AT Client but not the Basic Networking Example

Hi,

I have a custom board based on nrf9160. When I run the AT Client with the following commands, it connects to the internet

> AT+CFUN?
+CFUN: 0
OK
> AT+CEREG=5
OK
> AT%XSYSTEMMODE=1,1,1,0
OK
> AT+CFUN=1
OK
+CEREG: 2,"9C40","01B2120D",9
+CEREG: 1,"9C40","01B2120D",9,,,"00000011","00100110"
+CEREG: 2
+CEREG: 1,"9C40","01B2120D",9,,,"00000011","00100110"

The problem comes when I run the Basic Networking Example. It takes time and then fails to connect to the internet. I have attached the output below. Please assist 




[Sec Thread] Secure image initializing!
Booting TF-M v2.0.0
*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***

nRF9160 Basic Networking Example (hello_board)
Modem FW Ver: mfw_nrf9160_1.3.6
IMEI: 350457791634270
SIM ICCID: 89254900000008155820
Waiting for network... +CEREG: 4
Failed to connect to the LTE network, err -116

  • Hi,

    Can you enable some more logging, so that we can get more details about what is happening?

    CONFIG_LOG=y

    CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y

    Best regards,

    Didrik

  • Hi Didrik, 

    Thanks for you response. I have enabled more logging, please see the logs below.

    Kind Regards,

    Isaiah

    [Sec Thread] Secure image initializing!
    Booting TF-M v2.0.0
    *** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
    
    nRF9160 Basic Networking Example (hello_board)
    [00:00:00.619,934] <dbg> lte_lc: lte_lc_system_mode_set: System mode set to 4, preference 0
    [00:00:00.619,995] <dbg> lte_lc: lte_lc_psm_param_set: RPTAU set to 00000011
    [00:00:00.620,025] <dbg> lte_lc: lte_lc_psm_param_set: RAT set to 00100001
    [00:00:00.620,086] <dbg> lte_lc: on_modem_init: PSM configs set from string: tau=00000011, rat=00100001
    [00:00:00.620,147] <dbg> lte_lc: lte_lc_psm_req: enable=0, tau=00000011, rat=00100001
    Modem FW Ver: mfw_nrf9160_1.3.6
    IMEI: 350457791634270
    SIM ICCID: 89254900000008155820
    Waiting for network... +CEREG: 4
    [00:01:05.471,282] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 4
    [00:01:05.471,405] <dbg> lte_lc: parse_cereg: Network registration status: 4
    [00:01:05.471,435] <dbg> lte_lc: parse_cereg: LTE mode not found, error code: -22
    [00:01:05.471,496] <dbg> lte_lc: event_handler_list_dispatch: Dispatching event: type=0
    [00:01:05.471,527] <dbg> lte_lc: event_handler_list_dispatch:  - handler=0x0001330D
    [00:01:05.471,557] <dbg> lte_lc: event_handler_list_dispatch: Done
    [00:01:05.471,588] <dbg> lte_lc: event_handler_list_dispatch: Dispatching event: type=4
    [00:01:05.471,588] <dbg> lte_lc: event_handler_list_dispatch:  - handler=0x0001330D
    [00:01:05.471,618] <dbg> lte_lc: event_handler_list_dispatch: Done
    [00:10:01.963,043] <inf> lte_lc: Network connection attempt timed out
    Failed to connect to the LTE network, err -116

  • Unfortunately, that didn't help as much as I had hoped.

    Which SDK version are you using?

    If you are not using NCS v2.6.0, could you try that?

    I assume you are using the same power supply and SIM card when you use the basic networking example and the at_client?

    Also, can you try to set CONFIG_LTE_NETWORK_MODE_NBIOT=y?

  • Also, can you try to set CONFIG_LTE_NETWORK_MODE_NBIOT=y?

    Hi Didrik, 

    This solved the problem. Thank you 

Related