Datalogic Browser disconnect after some time

Hello,
we connection problem with datalogic browser. The problem we have is that the webpage gives error after some time after the device sleeps ( Memor 10 and Memor 11 )
it gives some error numbers like:

Has anybody an idea how to solve this problem? And there is any config to force the page to refresh automatically? like every 20 seconds

Thanks

Best regards,
André Silva

Hello @Andre_Silva

To address the connection problems when devices wake from sleep, implementing an automatic refresh mechanism may help maintain the connection, here are some some methods retrieved from some articles on the Internet:

Method 1: Using Meta Tag

Add this meta refresh tag to your HTML head:

<meta http-equiv="refresh" content="20">

This refreshes the entire page every 20 seconds. However, it has some downsides:

  • The refresh of the entire page can interrupt user experience
  • If a user is in the middle of filling out a form, they’ll lose their progress
  • It’s not very user-friendly as it gives no warning before refresh

Method 2: JavaScript Refresh

Add this JavaScript to automatically reload the page:

// Continuous refresh every 20 seconds
setInterval(function() {
    location.reload();
}, 20000);

It uses JavaScript to reload the entire page every 20 seconds. It has similar advantages and disadvantages as Method 1, but with JavaScript you at least have the option to add conditions (e.g., don’t refresh if a form is being filled out).

Method 3: AJAX Partial Content Update

For a smoother experience that may be less affected by sleep/wake cycles:

setInterval(function() {
    fetch('your-data-endpoint')
        .then(response => response.text())
        .then(data => {
            document.getElementById('content-to-refresh').innerHTML = data;
        })
        .catch(error => {
            console.error('Error:', error);
            // Optionally force a full page reload on error
            location.reload();
        });
}, 20000);

Instead of reloading the entire page, this method only updates a specific element. This is more user-friendly as it doesn’t interrupt the user experience as much. It uses the Fetch API which is well-supported in modern browsers.

Additional Recommendations

  1. Check if updating the Datalogic browser to the latest version resolves these issues. You can easily update it through Scan2Deploy / Scan&Print / Mobility Suite Update
  2. Consider adjusting device sleep settings to minimize disconnection problems

Browser error codes

At the same time, here are the meanings of the error codes you are receiving:

-2 = Server or proxy hostname lookup failed
-6 = Failed to connect to the server
-8 = Connection timed out

It looks like based on these codes the browser is not blocking the webpage in waiting for the connection. Looking at the Wi-Fi icons in the first two screen shots (and the lack of a Wi-Fi icon in the last) it seems more likely that you have a problem with reconnecting the Wi-Fi.

For this type of problem, the first recommendation is to also update the device’s firmware to the latest version available.
The latest FWs of Memor 10 and Memor 11 can be downloaded here:

If the problem is not resolved, please contact us directly by opening a Ticket and explicitly referring to this post at this link:

Simone Callegari
Mobile Products L3 Specialist - SW Engineer | Datalogic