This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

China Telecom IOT SIM can"t connect the nrf cloud.

Hi!

I'm trying to run Asset-Tracker routine with 9160dk to connect to the NRF cloud(ncs1.3.0). The China Telecom can't connect the nrf cloud, China Mobile can connect normally.

I'm in Shenzhen, China. The NB-IoT work here. The serial port displays an error say Failed to connect to cloud, error -3. LED 1 and LED 4 blinking: Communication error with the nRF Cloud.

[00:00:14.686,309] <inf> asset_tracker: Connected to LTE network.
[00:00:14.692,871] <inf> asset_tracker: Connecting to cloud, attempt 1 of 8
[00:00:14.700,286] <inf> asset_tracker: Cloud connection request sent.
[00:00:14.707,244] <inf> asset_tracker: Connection response timeout is set to 30 seconds.
[00:00:14.715,942] <inf> asset_tracker: CLOUD_EVT_CONNECTING
[00:00:38.738,586] <dbg> nrf_cloud_transport.nct_connect: getaddrinfo failed -11
[00:00:38.746,368] <inf> asset_tracker: CLOUD_EVT_CONNECTING
[00:00:38.752,471] <err> asset_tracker: Failed to connect to cloud, error -3
[00:00:38.760,192] <err> asset_tracker: Network error, check cloud configuration
[00:00:38.768,249] <err> asset_tracker: Device will reboot in 300 seconds
[00:00:38.775,726] <err> asset_tracker: LTE link disconnect

Error -3 is Network problems.

/**@brief Cloud connect results. */
enum cloud_connect_result {
	CLOUD_CONNECT_RES_SUCCESS = 0,

	CLOUD_CONNECT_RES_ERR_NOT_INITD = -1,
	CLOUD_CONNECT_RES_ERR_INVALID_PARAM = -2,
	CLOUD_CONNECT_RES_ERR_NETWORK = -3,
	CLOUD_CONNECT_RES_ERR_BACKEND = -4,
	CLOUD_CONNECT_RES_ERR_MISC = -5,
	CLOUD_CONNECT_RES_ERR_NO_MEM = -6,
	/* Invalid private key */
	CLOUD_CONNECT_RES_ERR_PRV_KEY = -7,
	/* Invalid CA or client cert */
	CLOUD_CONNECT_RES_ERR_CERT = -8,
	/* Other cert issue */
	CLOUD_CONNECT_RES_ERR_CERT_MISC = -9,
	/* Timeout, SIM card may be out of data */
	CLOUD_CONNECT_RES_ERR_TIMEOUT_NO_DATA = -10,
	CLOUD_CONNECT_RES_ERR_ALREADY_CONNECTED = -11,
};

Here is my pri.conf. I changed  LTE link control. 

# LTE link control
CONFIG_POWER_OPTIMIZATION_ENABLE=n
CONFIG_LTE_LINK_CONTROL=y
#CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=y
CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y
CONFIG_LTE_NETWORK_MODE_NBIOT=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y
CONFIG_LTE_LEGACY_PCO_MODE=y
CONFIG_LTE_PSM_REQ_RPTAU="00000110"
CONFIG_LTE_PSM_REQ_RAT="00000010"

I'm not sure why this is happening. How to solve this problem?

Thanks!

Parents Reply Children
Related