This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220S: Wi-Fi forum

Part Number: CC3220S
Other Parts Discussed in Thread: TIDC-01005

Hi, 

My customer is testing using the CC3220SF_LAUNCHXL and the TIDC-01005 to connect to Amazon Web Servers.

However, it is not connected and an MQTT error occurs.

First, My customer downloaded Amazon FreeRTOS and create certification key from the AWS. 

The Amazon FreeRTOS using the AWS-generated key was well connected with the AWS.

And then my customer ran the smart lock example with this key, but it didn't connect.

An error occurred as in the log attached below.

Ti_smartLock_211126.log
378 114444 [iot_thread] [INFO] Publish to the MQTT topic KeyWDoorLockWifi/example/topic.
379 114444 [iot_thread] [INFO] Attempt to receive publish message from broker.
380 114673 [iot_thread] [INFO] Packet received. ReceivedBytes=2.
381 114673 [iot_thread] [INFO] Ack packet deserialized with result: MQTTSuccess.
382 114673 [iot_thread] [INFO] State record updated. New state=MQTTPublishDone.
383 114674 [iot_thread] [INFO] PUBACK received for packet Id 4.
384 114714 [iot_thread] [INFO] Packet received. ReceivedBytes=47.
385 114715 [iot_thread] [INFO] De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.
386 114715 [iot_thread] [INFO] State record updated. New state=MQTTPubAckSend.
387 114715 [iot_thread] [INFO] Incoming QoS : 1

388 114715 [iot_thread] [INFO] Incoming Publish Topic Name: KeyWDoorLockWifi/example/topic matches subscribed topic.Incoming Publish Message : Hello World!
389 115214 [iot_thread] [INFO] Keeping Connection Idle...
390 117214 [iot_thread] [INFO] Publish to
**** Starting control thread loop ****
[MQTT Thread] MQTT Client library initialized successfully
[Network Interface] Device came up in Station mode
[Network Thread] Getting device UDID!
[Network Interface] Device came up in Station mode
	
	 *************************************************

	 CC3220S  Wi-Fi E-Lock Demo Example Ver: 1.0.0
	
	 *************************************************

	 CHIP: 0x31000019
	 MAC:  2.0.0.0
	 PHY:  2.2.0.6
	 NWP:  3.7.0.1
	 ROM:  0
	 HOST: 3.0.1.46
	 MAC address: e4:15:f6:66:e4:eb
	
	 *************************************************

[Network Thread] Subscription Topic 1: /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[Network Thread] Subscription Topic 2: /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[Network Thread] Publish Topic 1: /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockState

[Network Thread] Profile does not exist
[Network Thread] Using hard-coded profile for connection.
[Network Interface] Device came up in Station mode
Device disconnected from the AP on an ERROR..!!
[WLAN EVENT] STA Connected to the AP: KeyW_2F , BSSID: 24:4b:fe:37:f7:40
[NETAPP EVENT] IP Acquired: IP=192.168.50.216 , Gateway=192.168.50.1
[Network Thread] Device has connected to KeyW_2F
	 [MQTT Thread] Connection to broker failed, Error code: -456
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[Network Thread] Profile does not exist
[Network Thread] Using hard-coded profile for connection.
[Network Interface] Device came up in Station mode
[WLAN EVENT] STA Connected to the AP: KeyW_2F , BSSID: 24:4b:fe:37:f7:40
[NETAPP EVENT] IP Acquired: IP=192.168.50.216 , Gateway=192.168.50.1
[MQTT Thread] MQTT Client library initialized successfully
[Network Thread] Device has connected to KeyW_2F
Device disconnected from the AP on an ERROR..!!
	 [MQTT Thread] Connection to broker failed, Error code: -2006
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[Network Thread] Profile does not exist
[Network Thread] Using hard-coded profile for connection.
[Network Interface] Device came up in Station mode
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -2006
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[WLAN EVENT] STA Connected to the AP: KeyW_2F , BSSID: 24:4b:fe:37:f7:40
[NETAPP EVENT] IP Acquired: IP=192.168.50.216 , Gateway=192.168.50.1
[MQTT Thread] MQTT Client library initialized successfully
[Network Thread] Device has connected to KeyW_2F
	 [MQTT Thread] Connection to broker failed, Error code: -456
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -456
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -456
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -456
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -456
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -456
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -460
BRIDGE DISCONNECTION

[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -460
BRIDGE DISCONNECTION

	 [MQTT Thread] Queue is full, throw first msg and send the new one
[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -460
BRIDGE DISCONNECTION

	 [MQTT Thread] Queue is full, throw first msg and send the new one
[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -460
BRIDGE DISCONNECTION

	 [MQTT Thread] Queue is full, throw first msg and send the new one
[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -460
BRIDGE DISCONNECTION

	 [MQTT Thread] Queue is full, throw first msg and send the new one
[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted
[MQTT Thread] MQTT Client library initialized successfully
	 [MQTT Thread] Connection to broker failed, Error code: -460
BRIDGE DISCONNECTION

	 [MQTT Thread] Queue is full, throw first msg and send the new one
[MQTT Thread] Unsubscribed from the topic /Broker/To/cc32xx/doorLock
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockControl
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockStatus
[MQTT Thread] Unsubscribed from the topic /cc3220/doorLock/ac918480459ed9d3a45f21bfbe17d56/LockOTA
[MQTT Thread] MQTT Client Handle deleted

What is problem?

  • Hi SY,

    The first error code returned is error: -456 -- bad CA file. This usually refers to an incorrect include path to the certificate or the wrong certificate was provided. Is the customer using the MQTT_Client example? How was the certificate provided to the example?

    Thanks,
    Jacob