# "Connection Lost" only on Tablet

**URL:** <https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721>\
**Category:** Dashboard\
**Created:** [18 December 2020 18:40 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721 "2020-12-18T18:40:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![corin.corvus](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@corin.corvus](https://discourse.nodered.org/u/corin.corvus)\
**Post date:** [18 December 2020 18:40 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/1 "2020-12-18T18:40:05Z")

</div>

Hi,

i use my old Asus P027 Tablet for Smart Home Center in my Floor.

Before i completely changed to Node-red, i used Openhab Dashboard. It worked fine.

Now i use Node-red Dashboard for a while and only on my Tablet i have "Connection Lost" and reload the Dashboard.  
Video: [https://www.youtube.com/watch?v=NA4hd1asmGg](https://www.youtube.com/watch?v=NA4hd1asmGg)

Any Idea?  
On the Browser of my PC and Smartphone i didnt have this Problem. Browser is Firefox.

Specs:

| Model | P027 |
| --- | --- |
| Android version | 6.0; WW\_ZenPad-13.6.4.3-20160725; SDK23 |
| CPU | 6 cores; AArch64 Processor rev 2 (aarch64) mt8173; Max: 1703,0 MHz; Min: 507,0 MHz |
| Display | 2048 x 1536; DPI: 320; Evaluated Size: 8,0" |
| Touch screen | Multitouch 10 points |
| GPU | PowerVR Rogue GX6250; Imagination Technologies; OpenGL ES-CM 1.1; OpenGL ES 3.1 build 1.5@3830101 |
| RAM | 4096 MB (3921 MB available) |
| Flash | 64 GB (58.242 GB actual); 2 GB (1.874 GB actual) (see memory map tab) |

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [19 December 2020 07:11 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/2 "2020-12-19T07:11:46Z")

</div>

Which WiFi are you using?

2.4gig or 5gig?

I notice the WiFi signal strength isn't exactly 100%.

No, not the cause, but it won't be helping.

Oh, something else:  
Can you check the load on the tablet? How hard the processor is working.  
If the flow has a bit of bad stuff in it causing a high load, that can contribute to this happening too.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [19 December 2020 09:23 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/3 "2020-12-19T09:23:36Z")

</div>

You have some charts in there. Can you try testing it without those charts (or without updating the charts) ?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [19 December 2020 09:34 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/4 "2020-12-19T09:34:03Z")

</div>

At least 2 charts I can see are configured for 24 hours. And there is 4 and 5 datasets per chart. It really depends what is the rate of input for chart but you can calculate the count of data-points you r charts needs to be handle. At some point there is limit. And that limit is what you see - The connection lost.

It is discussed here in forum many times and there is many advises given how to handle this situation.  
Do search in forum in therms of slow/unresponsive dashboard with charts.  
Basically what you'll need to do is to reduce data-points for charts. Many ways to do it. And it depends what is the meaningful readout you are expecting.

---

<div class="post-metadata">

**Author:** ![corin.corvus](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@corin.corvus](https://discourse.nodered.org/u/corin.corvus)\
**Post date:** [19 December 2020 10:14 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/5 "2020-12-19T10:14:59Z")

</div>

Hey,

move the Charts to another Tab solve the Problem. How many points are Max?

Other Devices dont have Problems with the Charts, incl.Mmy Smartphone.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [19 December 2020 10:32 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/6 "2020-12-19T10:32:11Z")

</div>

> [@corin.corvus](#):
>
> How many points are Max?

There is no direct answer to that question. It is combination of device capabilities, browser, other things the device/browser needs to do at same time, the page set up and many many more things.  
But if you'll do the calculations based on the device you are seeing the connection lost, then that is definitely max for that device in current conditions.

> [@corin.corvus](#):
>
> move the Charts to another Tab

Yes, that helps to get your main page responsive and not to fall into that trouble, but will the page/tab with charts be better? Probably not.

The charts in node-red are plain charts. Unlike for example [grafana](https://grafana.com/) where a lot of optimizations is done under the hood by default, you have no need to even think about such problems. Well, you can kill the browser with them too, but that's another story. But for raw chart libraries the data optimization is left for user to figure out.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 December 2020 11:19 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/7 "2020-12-19T11:19:14Z")

</div>

> [@corin.corvus](#):
>
> How many points are Max?

There is no real max - but send more than is required and you will slow things down.

The issue is sending more points than the size of your chart.

E.g.,

- your screen = 2048 x 1536; DPI: 320; Evaluated Size: 8,0"
- your chart is approx 1/3rd of the screen wide
- therefore 2048 / 3 = 683 pixels wide  
therefore, there is no point in sending 10000 points to a chart that only has 683 pixels on screen.

---

<div class="post-metadata">

**Author:** ![corin.corvus](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@corin.corvus](https://discourse.nodered.org/u/corin.corvus)\
**Post date:** [21 December 2020 10:27 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/8 "2020-12-21T10:27:55Z")

</div>

No i mean, the main Tab is fine now. Now i deleted the moved charts and the backup Tab.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 December 2020 11:01 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/9 "2020-12-21T11:01:03Z")

</div>

You are just overloading the device with too much data to handle in the charts. As has been suggested, reduce the update rate to the charts so that the total number of samples across the chart is not much more than the number of pixels.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 January 2021 11:01 UTC](https://discourse.nodered.org/t/connection-lost-only-on-tablet/37721/10 "2021-01-04T11:01:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
