This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

POLLHUP message in asset_tracker

I am using  asset_tracker as the basic program and basically it is running fine and sending data to the RF connect web page.

However approximately every 30 minutes I get the POLLHUP signal. at that point it executes the following code

LOG_ERR("Socket error: POLLHUP");
LOG_ERR("Connection was closed by the cloud.");
error_handler(ERROR_CLOUD, -EIO);
return;

this does a system reboot. Is there anyway to stop this from happening? if not is there a way to gracefully reconnect in asset_tracker without a system reboot. It is quite annoying and I am sure our customers would want this removed. I appreciate any help you can give. this is quite repeatable ~30 minutes forever.

Parents
  • Didrik

    I found that the original asset_tracker was sending sensor data to the cloud every 30 seconds. I am sending sensor data to the cloud every 15 minutes (system requirement). I did try to send sensor data every 30 seconds and the system ran for 2 hours with no POLLHUP.

    I changed the MQTT_KEEP_ALIVE to 60 seconds and ran for ~24 hours with no POLLHUP seen. I am going to keep the board running and add additional boards to test if this fixes the problem.

Reply
  • Didrik

    I found that the original asset_tracker was sending sensor data to the cloud every 30 seconds. I am sending sensor data to the cloud every 15 minutes (system requirement). I did try to send sensor data every 30 seconds and the system ran for 2 hours with no POLLHUP.

    I changed the MQTT_KEEP_ALIVE to 60 seconds and ran for ~24 hours with no POLLHUP seen. I am going to keep the board running and add additional boards to test if this fixes the problem.

Children
No Data
Related