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
질문됨 한 달 전129회 조회
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
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠