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
posta un mese fa129 visualizzazioni
1 Risposta
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
con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande