Hi,
I am regularly loosing the WiFi connection with as only solutions:
1. Reboot the system
or
2. Unplug and plug the WiFi dongle
All attempts to put the wlan0 interface down and up doesn't solve the problem
Is it a way to ensure the WiFi reconfigure it-self if the WiFi signal was lost for a while?
Thanks in advance
Robert
Here some configuration details
[17:02:41] openhabian@HA_Broker2:~$ cat /etc/debian_version
9.9
[17:03:32] openhabian@HA_Broker2:~$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
[17:04:27] openhabian@HA_Broker2:~$ /opt/vc/bin/vcgencmd version
Mar 27 2019 15:46:32
Copyright (c) 2012 Broadcom
version 2e98b31d18547962e564bdf88e57b3df7085c29b (clean) (release) (start_cd)
[17:08:26] openhabian@HA_Broker2:~$ cat /sys/firmware/devicetree/base/model
Raspberry Pi 2 Model B Rev 1.1[17:09:22] openhabian@HA_Broker2:~$
[17:11:15] openhabian@HA_Broker2:~$ lsusb
Bus 001 Device 007: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 004: ID 07ab:fc88 Freecom Technologies
Bus 001 Device 006: ID 6901:2701
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[17:13:51] openhabian@HA_Broker2:~$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:c2:ff:6d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 28712 bytes 4663517 (4.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28712 bytes 4663517 (4.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.252 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::4e51:3708:f1ac:98b prefixlen 64 scopeid 0x20<link>
inet6 2a02:1811:437:e700:7101:11cb:e58d:303d prefixlen 64 scopeid 0x0<global>
ether 1c:bf:ce:3c:dd:03 txqueuelen 1000 (Ethernet)
RX packets 883 bytes 143781 (140.4 KiB)
RX errors 0 dropped 81 overruns 0 frame 0
TX packets 341 bytes 58722 (57.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[17:16:48] openhabian@HA_Broker2:~$ sudo more /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=BE
network={
ssid="HomeT"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="xxxxxx"
}