AWS Cloud Disconnection

We have been testing our application which is adapted from asset tracker v2 and we noticed that the LTE connection sometimes drops momentarily which causes a cloud disconnect. LTE reconnects fine, but the cloud connection often gets stuck attempting to reconnect and timing out. After resetting it then reconnects just fine.

 

We have tested with the asset tracker v2 (without our changes) for sdk v1.7.1 and 1.5.1 and have found a similar issue. This is tested on the devkit. Is this a known issue? 

Parents
  • Hello Daniel,

    Is this a known issue? 

    I discussed this with our software development team and got the following feedback:

    Its likely that the internal connection thread in the AWS library hangs on the internal MQTT socket (on poll). This can occur if the underlying MQTT library closes the socket while the connection thread in AWS still polls on the socket. The problem usually goes away when the timeout on poll (defaults to the MQTT keepalive time) expires (breaking out of poll). After this, subsequent connection attempts should succeed. For AWS, this timeout defaults to 1200 seconds.

    Do you have to perform a reset even after MQTT keepalive timeout?

    Regards,

    Markus

Reply
  • Hello Daniel,

    Is this a known issue? 

    I discussed this with our software development team and got the following feedback:

    Its likely that the internal connection thread in the AWS library hangs on the internal MQTT socket (on poll). This can occur if the underlying MQTT library closes the socket while the connection thread in AWS still polls on the socket. The problem usually goes away when the timeout on poll (defaults to the MQTT keepalive time) expires (breaking out of poll). After this, subsequent connection attempts should succeed. For AWS, this timeout defaults to 1200 seconds.

    Do you have to perform a reset even after MQTT keepalive timeout?

    Regards,

    Markus

Children
No Data
Related