Hi Nordic,
I'm using following development kit for my project on nRF9160 NBIOT+GPS:
ncs 1.9.1
mfw 1.3.2
eSIM from China Mobile
Assets Tracker v2 sample
My eSIM is able to register on internet and connect to self-mqtt server, and I had it connect to nRF Cloud once, but then it won't re-connect again (always shown nrf_cloud_evt_connecting at least twice and never get into nrf_cloud_evt_connected). Sometimes it works and most of time it doesn't.
I wonder if it's the problem of legacy_pco set up, which I have not yet including it in my config file (not sure if it's necessary).
Here is setting for my config file, please inform me if there is any changes need to be made in order to get eSIM from China Mobile connect to nRF Cloud stably.
# RTT,CONSOLE,LOG CONFIG_LOG=y CONFIG_LOG_DEFAULT_LEVEL=4 CONFIG_LOG_MODE_OVERFLOW=y CONFIG_LOG_PRINTK=y CONFIG_LOG_PRINTK_MAX_STRING_LENGTH=256 CONFIG_LOG_BUFFER_SIZE=4096 CONFIG_LOG_STRDUP_BUF_COUNT=64 CONFIG_LOG_STRDUP_MAX_STRING=64 CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1024 CONFIG_CONSOLE=y CONFIG_USE_SEGGER_RTT=y CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096 CONFIG_RTT_CONSOLE=y CONFIG_UART_CONSOLE=n CONFIG_NEWLIB_LIBC=y CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y # Modem library CONFIG_NRF_MODEM_LIB=y # LTE link control CONFIG_LTE_LINK_CONTROL=y CONFIG_LTE_AUTO_INIT_AND_CONNECT=n CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y #CONFIG_LTE_EDRX_REQ=y #CONFIG_LTE_PSM_REQ_RPTAU="00101000" #CONFIG_LTE_PSM_REQ_RAT="00000011" # Networking CONFIG_NETWORKING=y CONFIG_NET_SOCKETS_OFFLOAD=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POSIX_NAMES=y CONFIG_NET_SOCKETS_SOCKOPT_TLS=y # Disable native network stack to save some memory CONFIG_NET_NATIVE=n # Device power management CONFIG_PM_DEVICE=y # Memory CONFIG_MAIN_STACK_SIZE=4096 CONFIG_HEAP_MEM_POOL_SIZE=16384 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096 # nRFCloud, A-GPS CONFIG_CLOUD_API=y CONFIG_NRF_CLOUD_MQTT=y CONFIG_NRF_CLOUD_AGPS=y CONFIG_NRF_CLOUD_LOG_LEVEL_INF=y CONFIG_DATE_TIME=y CONFIG_MODEM_INFO=y CONFIG_MODEM_INFO_ADD_DATE_TIME=n CONFIG_AT_MONITOR=y CONFIG_MODEM_JWT=y
This is log running NBIOT (China Mobile) connect to nRF Cloud
*** Booting Zephyr OS build v2.7.99-ncs1-1 *** nrf9160 demo - nrf9160dk_nrf9160 AT%%XMAGPIO=1,1,1,2,4,882,960,7,1574,1577 OK AT%%XCOEX0=1,1,1565,1586 OK *** IMEI(AT+CGSN): 351516175516681 OK Connecting to LTE network. This may take a few minutes... [00:00:02.757,965] [0m<dbg> at_monitor.at_monitor_task: AT notif: +CEREG: 2,"3A36","0DE51A0F",9 [0m [00:00:02.757,995] [0m<dbg> at_monitor.at_monitor_task: Dispatching to 0x190c5[0m [00:00:03.415,618] [0m<dbg> at_monitor.at_monitor_task: AT notif: +CSCON: 1 [0m [00:00:03.415,618] [0m<dbg> at_monitor.at_monitor_task: Dispatching to 0x18c4d[0m RRC mode: Connected, previous Idle mode hold time = 3 s [00:00:04.755,737] [0m<dbg> at_monitor.at_monitor_task: AT notif: +CEREG: 1,"3A36","0DE51A0F",9,,,"11100000","11100000" [0m [00:00:04.755,767] [0m<dbg> at_monitor.at_monitor_task: Dispatching to 0x190c5[0m Network registration status: Connected - home network Connected to LTE network (use 3 s) *** IMSI(AT+CIMI): 460081108717923 OK *** XCCID(AT%XICCID): %XICCID: 898604911022D0007932 OK [00:00:04.758,758] [1;33m<wrn> date_time: getaddrinfo, error: -2[0m [00:00:04.758,972] [1;33m<wrn> date_time: getaddrinfo, error: -2[0m [00:00:04.758,972] [1;33m<wrn> date_time: Did not get time from any NTP server[0m DATE_TIME_NOT_OBTAINED [00:00:04.784,667] [0m<dbg> at_monitor.at_monitor_task: AT notif: %XTIME: "23","32700230349423","00" [0m [00:00:04.784,759] [0m<dbg> at_monitor.at_monitor_task: Dispatching to 0x1ac15[0m DATE_TIME OBTAINED Requested A-GPS data: ephe 0xffffffff, alm 0xffffffff, data_flags 0x3b agps_connect ################## CLOUD_EVT_CONNECTING, status = 0 ################## CLOUD_EVT_CONNECTING, status = -3 DATE_TIME OBTAINED GNSS_EVT_BLOCKED Tracking: 0 Using: 0 Unhealthy: 0, Seconds since last fix: 1 GNSS operation blocked by LTE Tracking: 0 Using: 0 Unhealthy: 0, Seconds since last fix: 2 GNSS operation blocked by LTE Tracking: 0 Using: 0 Unhealthy: 0, Seconds since last fix: 3 GNSS operation blocked by LTE Tracking: 0 Using: 0 Unhealthy: 0, Seconds since last fix: 4 GNSS operation blocked by LTE
Please assist, thanks