Closed eelaix closed 3 years ago
HI @eelaix,
In your logs, it looks like the subscribe acknowledgment is received and the callback invoked around line 1177. Then, roughly 90 seconds later, line 1210 shows that the server sends a close-notify since 1.5 times the 60 second keep alive interval has elapsed. It looks like mbedtls is getting blocked on a receive call after the SUBACK is received.
What hardware/network stack are you using?
HI @eelaix,
In your logs, it looks like the subscribe acknowledgment is received and the callback invoked around line 1177. Then, roughly 90 seconds later, line 1210 shows that the server sends a close-notify since 1.5 times the 60 second keep alive interval has elapsed. It looks like mbedtls is getting blocked on a receive call after the SUBACK is received.
What hardware/network stack are you using?
Hi, thanks for your reply.
My hardware is based on STM32H750 MCU , and I configured both with RMII eth and UART LTE module,
when I using RMII ETH everything runs ok,
but when I change to UART LTE (software is X-CUBE-CELLULAR 6.0.0) shows this.
NOW, I am trying to run under FreeRTOS-Cellular API and MQTT-AGENT, I am trying this solution to avoid this problem.
HI @eelaix,
In your logs, it looks like the subscribe acknowledgment is received and the callback invoked around line 1177. Then, roughly 90 seconds later, line 1210 shows that the server sends a close-notify since 1.5 times the 60 second keep alive interval has elapsed. It looks like mbedtls is getting blocked on a receive call after the SUBACK is received.
What hardware/network stack are you using?
Hi, @muneebahmed10 When I integration CELLULAR API WITH FreeRTOS 2021.07, I have found the SecureSocket abstraction library (202007, Branches->feature/cellular) does not work, is there any solution ?
here is the log of secure socket library output: (blocked at the end)
9 19286 [iot_thread] [INFO ][xDEMO][19286] SIM card is READY
19 24475 [iot_thread] [INFO ][xDEMO][24475] State Machine Change oldState = REGISTERED, newState = CONNECTED ,trigger = PDN_ACTIVE
21 28451 [iot_thread] [INFO ][xDEMO][28451] Successfully initialized the demo. Network type for the demo: 8
22 28451 [iot_thread] [DEBUG][xnIOT][28451] Creating command queue.
23 28451 [iot_thread] [INFO ][xnIOT][28451] Creating a TLS connection to xxxx.ats.iot.cn-north-1.amazonaws.com.cn:8883.
24 28451 [iot_thread] [DEBUG][SeSkt][28451] Created CELLULAR Socket 0x2400e7c8.
25 29171 [iot_thread] [DEBUG][SeSkt][29170] Ip address 52.81.xxx.xx port 8883
26 29250 [iot_thread] [DEBUG][SeSkt][29250] Socket open callback on Socket 0x2400e7c8 604000680 5.
27 30789 [iot_thread] [DEBUG][SeSkt][30789] prvNetworkSend expect 168 write 168
28 30912 [iot_thread] [DEBUG][SeSkt][30912] Data ready on Socket 0x2400e7c8
29 30936 [iot_thread] [DEBUG][SeSkt][30936] prvNetworkRecv expect 5 read 5
30 30960 [iot_thread] [DEBUG][SeSkt][30960] prvNetworkRecv expect 91 read 91
31 30980 [iot_thread] [DEBUG][SeSkt][30979] prvNetworkRecv expect 5 read 5
The Code blocked at Line 1177 when execute MQTT_Subscribe success and blocked at prvWaitForPacket function
return code is -0x7880
Log Output