Cellular IoT devices cannot stay connected to AWS

0

Cellular IoT devices keep reconnecting to AWS. The cellular provider indicates that the problem is not the cellular network because their logs show the devices connected for upwards of 16 hours at a time. When the devices are at other locations, they stay connected for several hours. Even at the trial site, the first device stayed up for over an hour. All subsequent devices stayed up less than ten minutes. MQTT Keep Alive is 1200 seconds. We have an application level keep alive of 10 minutes. Exported Iot Console logs available. Working on Cloudwatch logs

MarkM
已提问 1 个月前128 查看次数
1 回答
0

Reconnections, or TCP session timeouts, via mobile network operators (MNOs) can be challenging. Most use some for of carrier grade NAT that will manage connections from the mobile device to the public Internet. You can get a better indication of which side (client or IoT server) disconnected from the CloudWatch logs.

One thing to test is to reduce the device's MQTT keepalive to a lower value and monitor. While each MNO is different, and can be different depending where the are deployed, I would start with a value of 270-290 seconds, which is just under 5 minutes--a common value seen for expiring inactive TCP sessions.

AWS
Gavin_A
已回答 1 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容