Page 1 of 3

Wifi connection dropped

Posted: Wed Jan 09, 2019 3:30 pm
by FunFair
For a while now I noticed that sometimes the wifi connection stops working and Toon does not reconnect to the network.
It does not happen very often and I don't see a patern. I am running Firmware 4.22.
Restarting the Wifi router does not fix the problem.

When I reset Toon the unit will reconnect to the Wifi just fine.
If I go into the settings and reconnect to Wifi it will take a while but eventually connects.
I have my router set with a fixed DHCP binding for my Toon and it will receive this IP adres.

Anyone with the same problem? Or any idea how to fix? Maybe an automatic reboot if the unit can't ping my router or something?

Re: Wifi connection dropped

Posted: Wed Jan 09, 2019 3:59 pm
by TheHogNL
This is a common issue also often reported by normal Toon users. Haven't seen it myself.
Try to debug it using the console cable. When plugging in the UTP cable you will probably can't find out the reason why, so you must use the console connection to debug this. Would be very nice if we could propose a solution for this.

BTW: Are you sure you didn't change anything in your network/wifi?

Re: Wifi connection dropped

Posted: Thu Jan 10, 2019 8:25 pm
by FunFair
No I haven't changed anything in my own network.
But I am not sure if it's not my router screwing up, because my Domoticz had problems switching some of my wifi switches aswell.
For now I set up a ping to my Toon with a notification so at least I get triggered when the connection is gone.

Re: Wifi connection dropped

Posted: Sat Jan 26, 2019 1:31 pm
by FunFair
Currently testing this script that pings my router every 5 minutes. If it doesn't ping then the network interface will be restarted.

Create file check_network in /usr/bin/ with contents:

Code: Select all

#!/bin/bash

ROUTER_IP=192.168.0.254
( ! ping -c1 $ROUTER_IP >/dev/null 2>&1 ) && /etc/init.d/networking restart  >/dev/null 2>&1
make sure the file is executable with "chmod +x check_network"


Setup Crontab (crontab -e)

Code: Select all

*/5 * * * * /usr/bin/check_network
I'll post results when I have them. I'm not sure if a network restart is enough or I should reboot the whole unit.
My domoticz will report a dropped ping every 60 seconds, so checking every 5 minutes should give me a good indication if it works or not.

If I change the 'router IP' to a non used adress the script seems to run fine. Connection to it drops and after a while working again.

Re: Wifi connection dropped

Posted: Fri Jun 07, 2019 7:38 pm
by FunFair
FunFair wrote:Currently testing this script that pings my router every 5 minutes. If it doesn't ping then the network interface will be restarted.

Create file check_network in /usr/bin/ with contents:

Code: Select all

#!/bin/bash

ROUTER_IP=192.168.0.254
( ! ping -c1 $ROUTER_IP >/dev/null 2>&1 ) && /etc/init.d/networking restart  >/dev/null 2>&1
make sure the file is executable with "chmod +x check_network"


Setup Crontab (crontab -e)

Code: Select all

*/5 * * * * /usr/bin/check_network
I'll post results when I have them. I'm not sure if a network restart is enough or I should reboot the whole unit.
My domoticz will report a dropped ping every 60 seconds, so checking every 5 minutes should give me a good indication if it works or not.

If I change the 'router IP' to a non used adress the script seems to run fine. Connection to it drops and after a while working again.
Changed ISP.. router on different IP... Toon kept disconnecting from WiFi every 5 minutes.
Took me 5 hours to remember I had this script running... doh! :roll:

Re: Wifi connection dropped

Posted: Fri Jun 07, 2019 8:33 pm
by TheHogNL
You can make it smarter for the next router swap :)

Code: Select all

ROUTER_IP=$(/sbin/ip route | awk '/default/ { print $3 }')
( ! ping -c1 $ROUTER_IP >/dev/null 2>&1 ) && /etc/init.d/networking restart  >/dev/null 2>&1

Re: Wifi connection dropped

Posted: Sun Sep 15, 2019 7:41 pm
by Vibestar
Wellicht kan ik hier mijn vraag kwijt!
Bij mij is het sinds kort dat de wifi dropped. Eerder deze zomer is me dat niet opgevallen. Vreemde is dat nieuws en weer berichten wel doorkomen.

IP adres staat op 0.0.0.0 , is wel verbonden met service center en het icoontje van de wifi staat ook op verbinding. Kan hem lokaal alleen niet vinden. Vreemd!! Iemand enig idee?

Heb nog niet zo lang een modem van Ziggo die zowel 2,4 als 5 ghz door elkaar doet.

Re: Wifi connection dropped

Posted: Mon Sep 16, 2019 1:49 am
by SDeath
Ook ik heb de laatste tijd veel connection issues.
Verliest de verbinding binnen een paar dagen. Rebooten en alles werkt weer.
Ook het script (met TheHogNl aanpassing) hierboven helpt niet.
Er kont geen werkende verbinding.
Het WiFi icoontje is ook niet meer zichtbaar en het IP is 0.0.0.0.
Intern is er niets verandert aan het netwerp.
Vaste MAC reservering voor vast IP in de router.
Las wel op het Eneco forum dat TheHogNL bugs had ontdekt in DHCP script die niet draaien doordat ze naar een subdir zijn verplaatst.
Is dat al opgelost in huidige firmware versies?
Weet uit m’n hoofd niet op welke versie ik zit maar volgens mij de een na laatste versie, degene die niet is teruggetrokken.

Re: Wifi connection dropped

Posted: Mon Sep 16, 2019 8:59 am
by Vibestar
Bij mij lijkt het inderdaad na een update te zijn gebeurd. Daarvoor heb ik het nooit gemerkt. Maar ja in de zomer gebruik ik hem dan ook niet zo vaak. Verdere apps uit de Toon Store lijken gewoon te werken.

Re: Wifi connection dropped

Posted: Mon Sep 16, 2019 11:38 am
by SDeath
Ik zit op versie 5.9.6, en de hele Toon verliest de verbinding en komt pas weer online als ik hem opnieuw opstart.
Geen enkele app die internet nodig heeft werkt dan nog.
Is nu sinds een aantal maanden zo denk ik.

Re: Wifi connection dropped

Posted: Mon Sep 16, 2019 1:54 pm
by mAiden
Ik ga dit vanavond is even nakijken. Heb 1 Toon1 die ook deze issue's vertonen, misschien dat ik iets uit een log kan trekken of een debug kan draaien waardoor ik samen met TheHogNL kan kijken waar het mis gaat :)

Re: Wifi connection dropped

Posted: Mon Sep 16, 2019 8:09 pm
by TheHogNL
Kunnen jullie de symptomen even exact beschrijven? De toonstore, werkt ie dan wel? (die haalt namelijk van internet een lijst van apps). En dan werkt dus lokaal verbinden niet? Ik werk alleen nog maar veel met de toon2 en alleen een toon1 voor heel af en toe eens wat testen. Ik heb het op een toon2 nog niet mee gemaakt en de toon1 dus te weinig om het te zien denk ik.

Re: Wifi connection dropped

Posted: Mon Sep 16, 2019 8:27 pm
by Toonz
ToonStore laat gewoon de oude lijst met Apps zien als de verbinding is weggevallen. Je zou alleen geen nieuwe Apps moeten kunnen installeren op dat moment....

Re: Wifi connection dropped

Posted: Tue Sep 17, 2019 2:39 pm
by SDeath
Heb hem nu een paar dagen terug opnieuw opgestart, dus nu werkt alles nog.
Zal zodra hij weer uitvalt nog wat dingen proberen.
In iedergeval:
- mySolar app geeft geen aantallen meer weer.
- Afvalkalender haalt geen nieuwe gegevens meer op.
- IP adres 0.0.0.0.
- Geen verbinding met Service Centre staat er dan volgens mij.
- Toon1 heeft een MAC adres reservering voor vast IP in mijn router met DHCP leasetijd van 1 dag.

Re: Wifi connection dropped

Posted: Thu Sep 19, 2019 8:54 pm
by Vibestar
Ik zit op softwareversie 5.9.6

In mijn geval gebeurd het volgende:

Het icoontje van de wifi is zichtbaar in de topbar.
Als ik daar op druk staat er:

Wifi netwerk: ZiggoMS (mijn ssid)
Status: Verbonden met Service Center
IP adres: 0.0.0.0

De rest staat uit. Extern kan ik de TOON niet benaderen. Niet met Domoticz of met de mobiel app.

Ik druk dan op het potloodje bij Wifi netwerk. Daar staat mijn ssid met een groen vinkje er voor. Als ik daar op druk krijg ik meteen menu om WPA2-PSK in te vullen. Die vul ik in en meteen is ie weer verbonden.

Soms valt ie na 10 minuten weg soms duurt het langer. Dan staat ie weer op 0.0.0.0