Closed RickerStem closed 2 years ago
Some pictures
Changing wifi can be problematic because the /etc/wpa_supplicant/wpa_supplicant.conf keeps information about old wifi networks. I believe the simplest way is to delete old wifi line in this file. See some infos here: https://github.com/CongducPham/LowCostLoRaGw/blob/master/gw_full_latest/README.md#make-your-gateway-a-wifi-client
Hi,
Thank you for your quick response,
Indeed the wpa_supplicant.conf file was filled with different network settings. I tried to keep only 1 network and then rebooted. But that didn't work. Also tried to remove all the network settings and reboot, also didn't work. after clearing all the network settings and configuring the wifi through your admin web interface, it says it's connected in the WiFi tab, but it's not saying online at the top of the page. also, the test internet connection button still says offline. If I run "iwgetid" it says that I'm connected with "myWiFiSSID" and it shows up in my router and I'm able to ping it?. (I'm also not able to browse the web..)
When running your prepare_wifi_client.sh script I get the following errors. Is this normal?
So still not able to switch to another wifi.
Rick
I will try to test this evening. I havent' touch the wifi client part for a while as we are mainly using ethernet dhcp.
Well, I tested the wifi and it seems to work fine.
The web interface shows that the gw is acting as wifi client and it is online through the wifi connection.
I have only 1 wifi network indicated in /etc/wpa_supplicant/wpa_supplicant.conf
RaspAP can show the information. but actually has some issue to scan other wifi networks.
That's really strange, which raspberry version are you using? (does this maybe matter?) I'm using the Pi 3 Model B V1.2. Also are you able to easily switch to another network? And does it still works?
Thanks for testing!
I also noticed that it connects to my hotspot when it's booting up? and after a few seconds, it disappears (see video) . Also, some raspberry are really slow with booting up and are hanging a while on raspi-config.service?
systemd-analyze blame show 6 minutes for networking service... strange..
Wifi on RPI can be problematic. It has been reported that when wifi signal is lost then the RPI has some difficulty reconnecting. I'm using an RPI3 B so sale configuration than yours.
Indeed a bit problematic.
I'm now running your gateway on the same Raspberry, but now on the newest version of Raspberry OS. Everything is working correctly at first glance, it's now easy to switch from WiFi SSID.
Thank you for your time and testing!
Going to set up multiple WiFi gateways and add around 30+ Lora sensors!
Great to hear. regards,
Hi there!
First what a great project! We are already using an ethernet gateway for around 2 years now! We want to expand with some more gateways, but we want to connect them over Wifi. The issue is we can only connect to a Wifi access point with a fresh image? So only with a fresh clean install, we are able to connect to a Wifi access point. But if we change the SSID we want to connect to it doesn't work? It just says:
"Gateway is normally configured as WiFi client. Connected to: "OurOldConfiguredWiFiAccespoint". Use RaspAP to manage WiFi networks"
So it doesn't switch.. Also sometimes it just says .... Connected to: "Nothing Between The Quotes" ......
Also in RaspAP it says wlan down? and it shows an unknown wifi access point (can't do anything with it)
So only it only works the first time changing the wifi settings, if we want to change the settings it just doesn't work anymore :(
We tried all kind of things:
We're a little bit lost, maybe somebody has suggestions?
Thanks in advance!
Rick