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.

LAUNCHXL-CC3235SF: MQTT publish function hangs

Part Number: LAUNCHXL-CC3235SF
Other Parts Discussed in Thread: CC3235SF

Tool/software:

Hi 

We're using the latest SDK and running the MQTT client example. In order to check the stability, we use a 3 second period timer to trigger the publishing  function, Sometime (randomly) the publishing function hangs and does not return, and application reecives the "MQTT_EVENT_SERVER_DISCONNECT" event. Regarding this issue, it seems to happen only on the ASUS AP, and when we connect to another AP, this issue does not seem to occur. 

Environment : local network (no internet).

                       broker(PC)  <-> AP <-> CC3235SFLP

Software :  simplelink_cc32xx_sdk_7_10_00_13 ,  CCS 12.2

Hardware : CC3235SF LP

We also use wireshark to capture packets on the broker side. You can check the wireshark file on the following link.

Do you have any suggestions for us?

https://drive.google.com/file/d/1HxZqK-JpDQJqMzHMxId4uM9xfRfLg6QE/view?usp=sharing

172.16.42.150 -> CC3235SF LP

172.16.120.106 -> broker

Thanks.

BR

Trevor

  • Hi 

    Add more information about the timestamp from pcapng (5582.436095410), which is 31:08 UTC (only minutes/seconds are shown). We also compared the UART log from LP, the MQTT publishing time is also 31:08, and the function return time is about 334mS.

    Then check the next packet. The pcapng timestamp is 5592.955422433, which is 31:19 UTC. The UART log shows that the MQTT publishing time is 31:11 and the function return time is about 7731mS. So it looks like this packet was blocked on the LP side for about 7 seconds.

    Then check the last packet, the timestamp is 5663.001636720 from pcapng, which is UTC time 32:29. But the UART log shows that the MQTT publishing time is 31:22, and the function no longer returns.

    Thanks.

    BR

    Trevor

  • Does TI have any suggestions for the MQTT publish function that blocks for more than 7 seconds or never retruns?

    Thanks.

    BR

    Trevor