NRF Location example finds cells but cannot connect on Custom nrf9160 board

Hi all,

I have a custom board that closely follows the nrf9160-DK board, apart from the fact that I have not serial communication with the nrf9160 module. I am trying to run the same code on both devices (a modified version of the location example). On both devices I get LTE Cell Change event at some point after boot, however while the DK is able to establish an LTEM connection (Registered Roaming), the custom board is not able to do so even though both boards are able to identified the LTE Cell with the same ID. 

Looking at the difference between the logs, I can see that the custom device does not triggers PDN_EVENT_ACTIVATED event.

One difference between the two device was that I did onboard the nrf9160DK one nrfcloud while I can't do that for the custom board. Also these two board are using the simcards from the same provider.

Am I missing a step in bringing up the custom device or would that be related to the LTE link strength which I attempted to read without much success using 

lte_lc_conn_eval_params_get().

Left - Custom Board, Right - nrf9160 DK

Using the modem shell example (over RTT) I get a similar result:

 Where the DK is able to establish a connection (RCC Connected) but the custom board is stuck on searching.

Left - Custom Board, Right - nrf9160 DK:

Parents
  • Hi,

    Are you using the same SIM card on both the custom board and the DK, or just different SIM cards from the same provider?

    Can you try to swap the SIM cards in the DK and the custom board?

    Can you set CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y so that we can see the full +CEREG notification?

    My hypothesis is that the SIM card in the custom board is not activated, or has the wrong subscription, so that when the custom board tries to connect to the network, it gets rejected.

    Best regards,

    Didrik

  • Hello Didrik, 

    Are you using the same SIM card on both the custom board and the DK, or just different SIM cards from the same provider?

    Can you try to swap the SIM cards in the DK and the custom board?

    Thank you for the quick reply. I tried swapping the sim cards around, but still no luck, am seeing the same behaviour. 

    Can you set CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y so that we can see the full +CEREG notification?

    My hypothesis is that the SIM card in the custom board is not activated, or has the wrong subscription, so that when the custom board tries to connect to the network, it gets rejected.

    Best regards,

    I have attached the logs with CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y, 

    1. Custom Board

    SEGGER J-Link V7.80d - Real time terminal output
    SEGGER J-Link ARM V9.2, SN=59201843
    Process: JLink.exe
    *** Booting Zephyr OS build v3.3.99-ncs1 ***
    Device pwmleds not found
    1 LEDs Found
    Location sample started
    
    location_converstion test 1 51.019131: 51° 1' 8.9"N
    location_converstion test 2 -51.037731: 51° 2' 15.8"S
    location_converstion test 3 -1.626585: 1° 37' 35.7"W
    location_converstion test 3 10.626885: 10° 37' 36.8"E
    [00:00:00.647,338] <inf> nrf_modem_lib_trace: Trace thread ready
    [00:00:00.655,059] <inf> nrf_modem_lib_trace: Trace level override: 2
    Modem Battery Voltage: 3743
    Modem FW Version: nrf9160_1.3.5
    Device IMEI: 35265*************
    [00:00:00.694,793] <dbg> lte_lc: init_and_config: System mode (7) and preference (0) are already configured
    [00:00:00.696,716] <dbg> lte_lc_helpers: event_handler_list_append_handler: Handler already registered. Nothing to do
    [00:00:00.746,093] <dbg> lte_lc: lte_lc_func_mode_set: CFUN monitor callback: 0x1ea65
    at_scanf_int failed
    SIM is not initialized
     Cause:
    No Specific Cause
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:01:23.759,063] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"4301","01B51278",7
    
    [00:01:23.759,857] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:01:23.760,437] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:01:23.760,986] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:01:23.761,566] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:23.762,603] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Searching..
    [00:01:23.763,397] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:23.763,916] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:01:23.764,526] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:23.765,106] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=28643960
    tac=17153
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:01:23.766,540] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:23.767,089] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:01:23.767,669] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:23.768,280] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: LTEM
    [00:01:23.769,012] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:02:13.817,138] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:02:13.817,779] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:02:13.818,328] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:02:13.818,939] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:02:13.819,549] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:02:13.820,129] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:02:13.821,441] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:02:13.821,960] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:02:13.822,540] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:02:13.823,150] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:02:13.823,852] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:04:14.895,935] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"AE45","00525C15",9
    
    [00:04:14.896,728] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:04:14.897,308] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 9
    [00:04:14.897,827] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:04:14.898,437] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:04:14.899,047] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=5397525
    tac=44613
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:04:14.900,451] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:04:14.900,970] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:04:14.901,580] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:04:14.902,160] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NBIOT
    [00:04:14.902,923] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,26
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,27
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,26
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,20
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,19
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,19
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,19
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,27,441,1526,16,272,1526,16
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,441,1526,21
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,441,1526,18
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,28,441,1526,17
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,29,441,1526,16
    OK
    
    Waiting for LTE connection
    [00:07:35.232,116] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:07:35.232,788] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:07:35.233,367] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:07:35.233,947] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:07:35.234,558] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:35.235,137] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:07:35.236,450] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:07:35.236,968] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:07:35.237,548] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:35.238,128] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:07:35.238,861] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:07:40.110,382] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"AE43","00525916",9
    
    [00:07:40.111,175] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:07:40.111,755] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 9
    [00:07:40.112,274] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:07:40.112,854] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:40.113,464] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=5396758
    tac=44611
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:07:40.114,837] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:07:40.115,356] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:07:40.115,936] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:40.116,516] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NBIOT
    [00:07:40.117,248] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 441,1526,21
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 441,1526,14
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 441,1526,17
    OK
    
    [00:08:54.023,712] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"AE45","00525C16",9
    
    [00:08:54.024,475] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:08:54.025,054] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 9
    [00:08:54.025,573] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:08:54.026,153] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:08:54.026,733] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=5397526
    tac=44613
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:08:54.028,137] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:00.965,332] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:10:00.965,972] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:10:00.966,552] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:10:00.967,163] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:10:00.967,742] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:00.968,353] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:10:00.969,696] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:00.970,214] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:10:00.970,794] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:00.971,405] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:10:00.972,137] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:01.447,296] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"4301","01B51278",7
    
    [00:10:01.448,059] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:10:01.448,638] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:10:01.449,157] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:10:01.449,768] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:01.450,347] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=28643960
    tac=17153
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:10:01.451,751] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:01.452,270] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:10:01.452,850] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:01.453,430] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: LTEM
    [00:10:01.454,162] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:51.497,467] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:10:51.498,107] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:10:51.498,687] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:10:51.499,298] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:10:51.499,908] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:51.500,518] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:10:51.501,892] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:51.502,410] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:10:51.502,990] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:51.503,601] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:10:51.504,333] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:53.774,017] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 4
    
    [00:10:53.774,658] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 4
    [00:10:53.775,238] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:10:53.775,817] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:10:53.776,428] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:53.777,008] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Registration Unknown
    [00:10:53.777,801] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done

    2. nrf9160dk: 

    SEGGER J-Link V7.80d - Real time terminal output
    J-Link OB-K22-NordicSemi compiled Nov  7 2022 16:21:34 V1.0, SN=960041224
    Process: JLink.exe
    *** Booting Zephyr OS build v3.3.99-ncs1 ***
    Device pwmleds not found
    1 LEDs Found
    Location sample started
    
    location_converstion test 1 51.019131: 51° 1' 8.9"N
    location_converstion test 2 -51.037731: 51° 2' 15.8"S
    location_converstion test 3 -1.626585: 1° 37' 35.7"W
    location_converstion test 3 10.626885: 10° 37' 36.8"E
    [00:00:00.602,294] <inf> nrf_modem_lib_trace: Trace thread ready
    [00:00:00.610,382] <inf> nrf_modem_lib_trace: Trace level override: 2
    Modem Battery Voltage: 4930
    Modem FW Version: nrf9160_1.3.4
    Device IMEI: 351*************
    [00:00:00.646,911] <dbg> lte_lc: init_and_config: System mode (7) and preference (0) configured
    [00:00:00.649,047] <dbg> lte_lc_helpers: event_handler_list_append_handler: Handler already registered. Nothing to do
    [00:00:00.695,983] <dbg> lte_lc: lte_lc_func_mode_set: CFUN monitor callback: 0x1ea65
    at_scanf_int failed
    SIM is not initialized
     Cause:
    No Specific Cause
    Waiting for LTE connection
    LTE connection fLTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:01:24.512,512] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"4301","01B51278",7
    
    [00:01:24.513,336] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:01:24.513,916] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:01:24.514,465] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:01:24.515,075] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.516,113] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Searching..
    [00:01:24.516,906] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:24.517,456] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:01:24.518,035] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.518,646] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=28643960
    tac=17153
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:01:24.520,080] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:24.520,599] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:01:24.521,209] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.521,820] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: LTEM
    [00:01:24.522,552] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:24.541,320] <dbg> lte_lc: at_handler_cscon: +CSCON notification
    [00:01:24.541,961] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=3
    [00:01:24.542,541] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.543,151] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: RRC updates info event: Is Connected
    
    [00:01:24.544,006] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    Neighbouring Cells: OK
    
    PDP context 0 activated
    PDP context 0 error, PDN type IPv4 only allowed
    [00:01:26.823,455] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 5,"4301","01B51278",7,,,"11100000","11100000"
    
    [00:01:26.824,462] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 5
    [00:01:26.825,042] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:01:26.825,592] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:01:26.826,202] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:26.826,843] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Registered Roaming
    [00:01:26.827,697] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:26.829,193] <dbg> lte_lc_helpers: parse_psm: TAU: 10800 sec, active time: -1 sec
    [00:01:26.829,803] <dbg> lte_lc: lte_lc_psm_get: TAU: 10800 sec, active time: -1 sec
    [00:01:26.830,444] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=1
    [00:01:26.831,054] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:26.831,665] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: PSM updates info event
    
    [00:01:26.832,397] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    DT: Obtained NTP
    
    unix-time: 1695044350001
    date-time: 2023-09-18T13:39:10.00
    [00:01:39.781,555] <dbg> lte_lc: at_handler_cscon: +CSCON notification
    [00:01:39.782,165] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=3
    [00:01:39.782,775] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:39.783,355] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: RRC updates info event: Is Idle
    
    [00:01:39.784,149] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done

Reply
  • Hello Didrik, 

    Are you using the same SIM card on both the custom board and the DK, or just different SIM cards from the same provider?

    Can you try to swap the SIM cards in the DK and the custom board?

    Thank you for the quick reply. I tried swapping the sim cards around, but still no luck, am seeing the same behaviour. 

    Can you set CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y so that we can see the full +CEREG notification?

    My hypothesis is that the SIM card in the custom board is not activated, or has the wrong subscription, so that when the custom board tries to connect to the network, it gets rejected.

    Best regards,

    I have attached the logs with CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y, 

    1. Custom Board

    SEGGER J-Link V7.80d - Real time terminal output
    SEGGER J-Link ARM V9.2, SN=59201843
    Process: JLink.exe
    *** Booting Zephyr OS build v3.3.99-ncs1 ***
    Device pwmleds not found
    1 LEDs Found
    Location sample started
    
    location_converstion test 1 51.019131: 51° 1' 8.9"N
    location_converstion test 2 -51.037731: 51° 2' 15.8"S
    location_converstion test 3 -1.626585: 1° 37' 35.7"W
    location_converstion test 3 10.626885: 10° 37' 36.8"E
    [00:00:00.647,338] <inf> nrf_modem_lib_trace: Trace thread ready
    [00:00:00.655,059] <inf> nrf_modem_lib_trace: Trace level override: 2
    Modem Battery Voltage: 3743
    Modem FW Version: nrf9160_1.3.5
    Device IMEI: 35265*************
    [00:00:00.694,793] <dbg> lte_lc: init_and_config: System mode (7) and preference (0) are already configured
    [00:00:00.696,716] <dbg> lte_lc_helpers: event_handler_list_append_handler: Handler already registered. Nothing to do
    [00:00:00.746,093] <dbg> lte_lc: lte_lc_func_mode_set: CFUN monitor callback: 0x1ea65
    at_scanf_int failed
    SIM is not initialized
     Cause:
    No Specific Cause
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:01:23.759,063] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"4301","01B51278",7
    
    [00:01:23.759,857] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:01:23.760,437] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:01:23.760,986] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:01:23.761,566] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:23.762,603] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Searching..
    [00:01:23.763,397] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:23.763,916] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:01:23.764,526] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:23.765,106] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=28643960
    tac=17153
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:01:23.766,540] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:23.767,089] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:01:23.767,669] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:23.768,280] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: LTEM
    [00:01:23.769,012] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:02:13.817,138] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:02:13.817,779] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:02:13.818,328] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:02:13.818,939] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:02:13.819,549] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:02:13.820,129] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:02:13.821,441] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:02:13.821,960] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:02:13.822,540] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:02:13.823,150] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:02:13.823,852] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:04:14.895,935] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"AE45","00525C15",9
    
    [00:04:14.896,728] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:04:14.897,308] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 9
    [00:04:14.897,827] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:04:14.898,437] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:04:14.899,047] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=5397525
    tac=44613
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:04:14.900,451] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:04:14.900,970] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:04:14.901,580] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:04:14.902,160] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NBIOT
    [00:04:14.902,923] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,26
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,27
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,26
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,20
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,19
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,19
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,272,1526,19
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,27,441,1526,16,272,1526,16
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,441,1526,21
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,30,441,1526,18
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,28,441,1526,17
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 270,1526,29,441,1526,16
    OK
    
    Waiting for LTE connection
    [00:07:35.232,116] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:07:35.232,788] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:07:35.233,367] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:07:35.233,947] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:07:35.234,558] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:35.235,137] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:07:35.236,450] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:07:35.236,968] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:07:35.237,548] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:35.238,128] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:07:35.238,861] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:07:40.110,382] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"AE43","00525916",9
    
    [00:07:40.111,175] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:07:40.111,755] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 9
    [00:07:40.112,274] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:07:40.112,854] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:40.113,464] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=5396758
    tac=44611
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:07:40.114,837] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:07:40.115,356] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:07:40.115,936] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:07:40.116,516] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NBIOT
    [00:07:40.117,248] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 441,1526,21
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 441,1526,14
    OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: %NBRGRSRP: 441,1526,17
    OK
    
    [00:08:54.023,712] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"AE45","00525C16",9
    
    [00:08:54.024,475] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:08:54.025,054] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 9
    [00:08:54.025,573] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:08:54.026,153] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:08:54.026,733] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=5397526
    tac=44613
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:08:54.028,137] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:00.965,332] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:10:00.965,972] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:10:00.966,552] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:10:00.967,163] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:10:00.967,742] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:00.968,353] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:10:00.969,696] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:00.970,214] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:10:00.970,794] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:00.971,405] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:10:00.972,137] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:01.447,296] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"4301","01B51278",7
    
    [00:10:01.448,059] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:10:01.448,638] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:10:01.449,157] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:10:01.449,768] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:01.450,347] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=28643960
    tac=17153
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:10:01.451,751] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:01.452,270] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:10:01.452,850] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:01.453,430] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: LTEM
    [00:10:01.454,162] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:51.497,467] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2
    
    [00:10:51.498,107] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:10:51.498,687] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:10:51.499,298] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:10:51.499,908] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:51.500,518] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=-1
    tac=-1
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:10:51.501,892] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:51.502,410] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:10:51.502,990] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:51.503,601] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: NONE
    [00:10:51.504,333] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:10:53.774,017] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 4
    
    [00:10:53.774,658] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 4
    [00:10:53.775,238] <dbg> lte_lc_helpers: parse_cereg: LTE mode not found, error code: -22
    [00:10:53.775,817] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:10:53.776,428] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:10:53.777,008] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Registration Unknown
    [00:10:53.777,801] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done

    2. nrf9160dk: 

    SEGGER J-Link V7.80d - Real time terminal output
    J-Link OB-K22-NordicSemi compiled Nov  7 2022 16:21:34 V1.0, SN=960041224
    Process: JLink.exe
    *** Booting Zephyr OS build v3.3.99-ncs1 ***
    Device pwmleds not found
    1 LEDs Found
    Location sample started
    
    location_converstion test 1 51.019131: 51° 1' 8.9"N
    location_converstion test 2 -51.037731: 51° 2' 15.8"S
    location_converstion test 3 -1.626585: 1° 37' 35.7"W
    location_converstion test 3 10.626885: 10° 37' 36.8"E
    [00:00:00.602,294] <inf> nrf_modem_lib_trace: Trace thread ready
    [00:00:00.610,382] <inf> nrf_modem_lib_trace: Trace level override: 2
    Modem Battery Voltage: 4930
    Modem FW Version: nrf9160_1.3.4
    Device IMEI: 351*************
    [00:00:00.646,911] <dbg> lte_lc: init_and_config: System mode (7) and preference (0) configured
    [00:00:00.649,047] <dbg> lte_lc_helpers: event_handler_list_append_handler: Handler already registered. Nothing to do
    [00:00:00.695,983] <dbg> lte_lc: lte_lc_func_mode_set: CFUN monitor callback: 0x1ea65
    at_scanf_int failed
    SIM is not initialized
     Cause:
    No Specific Cause
    Waiting for LTE connection
    LTE connection fLTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    LTE connection failed, error: -11
    Neighbouring Cells: OK
    
    Waiting for LTE connection
    [00:01:24.512,512] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 2,"4301","01B51278",7
    
    [00:01:24.513,336] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 2
    [00:01:24.513,916] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:01:24.514,465] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:01:24.515,075] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.516,113] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Searching..
    [00:01:24.516,906] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:24.517,456] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=4
    [00:01:24.518,035] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.518,646] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE cell changed:
    mcc=0
    mnc=0
    id=28643960
    tac=17153
    earfcn=0
    timing_advance=0
    measurement_time=0
    phys_cell_id=0
    rsrp=0
    rsrq=0
    
    [00:01:24.520,080] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:24.520,599] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=5
    [00:01:24.521,209] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.521,820] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE Mode update: LTEM
    [00:01:24.522,552] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:24.541,320] <dbg> lte_lc: at_handler_cscon: +CSCON notification
    [00:01:24.541,961] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=3
    [00:01:24.542,541] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:24.543,151] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: RRC updates info event: Is Connected
    
    [00:01:24.544,006] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    Neighbouring Cells: OK
    
    PDP context 0 activated
    PDP context 0 error, PDN type IPv4 only allowed
    [00:01:26.823,455] <dbg> lte_lc: at_handler_cereg: +CEREG notification: +CEREG: 5,"4301","01B51278",7,,,"11100000","11100000"
    
    [00:01:26.824,462] <dbg> lte_lc_helpers: parse_cereg: Network registration status: 5
    [00:01:26.825,042] <dbg> lte_lc_helpers: parse_cereg: LTE mode: 7
    [00:01:26.825,592] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=0
    [00:01:26.826,202] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:26.826,843] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: NW Reg Status: Registered Roaming
    [00:01:26.827,697] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    [00:01:26.829,193] <dbg> lte_lc_helpers: parse_psm: TAU: 10800 sec, active time: -1 sec
    [00:01:26.829,803] <dbg> lte_lc: lte_lc_psm_get: TAU: 10800 sec, active time: -1 sec
    [00:01:26.830,444] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=1
    [00:01:26.831,054] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:26.831,665] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: PSM updates info event
    
    [00:01:26.832,397] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done
    DT: Obtained NTP
    
    unix-time: 1695044350001
    date-time: 2023-09-18T13:39:10.00
    [00:01:39.781,555] <dbg> lte_lc: at_handler_cscon: +CSCON notification
    [00:01:39.782,165] <dbg> lte_lc_helpers: event_handler_list_dispatch: Dispatching event: type=3
    [00:01:39.782,775] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x0001EC0D
    [00:01:39.783,355] <dbg> lte_lc_helpers: event_handler_list_dispatch:  - handler=0x00013289
    LTE: RRC updates info event: Is Idle
    
    [00:01:39.784,149] <dbg> lte_lc_helpers: event_handler_list_dispatch: Done

Children
Related