Hi,
Since upgrading to the latest version of Nano SD yesterday (3.9 build 1918) I am getting frequent system messages "disconnected from WLAN or internet, reconnect issued". Sometimes the nano reconnects after 5 minutes on its own, other times it hasn't reconnected after an hour, so I reboot the nano and it reconnects after the reboot.
I had switched off my router and turned it back on which doesn't seem to make a difference.
I am sure it is an issue with my wifi, although nothing else appears to be affected. Has anyone else got similar issues? Sure its just a coincidence that it only started after upgrading to latest version.
Paul
Disconnect from WLAN
Moderator: Mattk
- ConligWX
- Platinum Boarder
- Posts: 329
- Joined: Wed Nov 14, 2018 12:48 pm
- Location: Conlig, Co. Down, UK
- Contact:
Re: Disconnect from WLAN
Paul I have mentioned this in the past.
viewtopic.php?f=56&t=13370
Meteobridge runs a script
/home/meteohub/test5.sh
part of the test5 checks for google.de and meteobridge.com
I have ran both ping checks constantly - in a SSH session on the NANO, and proved that this ping fails quiet often in my setup. why I do not know.
I have swapped google.de and mb.com for my ISPs DNS servers which respond without issue.
I have even logged onto the NANO for over 24hours with web/ssh and the connection does not drop, yet the test5m fails.
Yes it could be some sort of DNS issue. however, I have ran this command on multiple devices both linux/Windows on ethernet and wifi. none experience this time out at all, i'm guessing either my setup or some buggy code is the culprit.
changing the ping to a more local server using IP seems to fix the issue for me.
only issue is once you have changed, if you reboot the test5m script is overwritten and you have to do it again.
viewtopic.php?f=56&t=13370
Meteobridge runs a script
/home/meteohub/test5.sh
part of the test5 checks for google.de and meteobridge.com
Code: Select all
# on VoCore2 check WLAN still operational
#
if [ "${hw}" = "VoCore2" ]
then
ping -q -c 1 "www.google.de" 2>/dev/null
if [ $? -ne 0 ]
then
ping -q -c 1 "meteobridge.com" 2>/dev/null
if [ $? -ne 0 ]
then
echo "system (`date '+%d.%m.%Y %H:%M:%S'`): Disconnected from WLAN or Internet, reconnect issued." >>$LOGFILE
/etc/wireless/mt7628/init 2>/dev/null
fi
fi
fi
I have swapped google.de and mb.com for my ISPs DNS servers which respond without issue.
Code: Select all
# on VoCore2 check WLAN still operational
#
if [ "${hw}" = "VoCore2" ]
then
ping -q -c 1 "194.168.4.100" 2>/dev/null
if [ $? -ne 0 ]
then
ping -q -c 1 "194.168.8.100" 2>/dev/null
if [ $? -ne 0 ]
then
echo "system (`date '+%d.%m.%Y %H:%M:%S'`): Disconnected from WLAN or Internet, reconnect issued." >>$LOGFILE
/etc/wireless/mt7628/init 2>/dev/null
fi
fi
fi
Yes it could be some sort of DNS issue. however, I have ran this command on multiple devices both linux/Windows on ethernet and wifi. none experience this time out at all, i'm guessing either my setup or some buggy code is the culprit.
changing the ping to a more local server using IP seems to fix the issue for me.
only issue is once you have changed, if you reboot the test5m script is overwritten and you have to do it again.
Regards Simon
https://www.conligwx.org/pws
https://www.conligwx.org/pws