[arm-allstar] Switching WIFI Conncetions Via DTMF

Patrick Perdue borrisinabox at gmail.com
Tue Jun 21 00:33:50 EDT 2022


Yes to both, though I have done the second, I don't remember how. It 
involves writing a script to shut down the current connection, feeding 
another configuration file to wpa_supplicant with only the network you 
want to use, then running enabling the new connection, then attaching 
that command to DTMF. Duplicate for as many networks as you want to 
manually select.

It is possible to prioritize WiFi networks in the WPA_Supplicant file, 
though I have gotten this wrong many times.

nano /etc/wpa_supplicant/wpa_supplicant_custom-wlan0.conf

network={
     ssid="wifi_A"
     psk="HashOfA"
     priority=1
}
network={
    ssid="wifi_B"
    psk="HashOfB"
    priority=2

NOTE:

This is what got me. The highest number is tried first. You might think 
that priority=1 would get preference over priority=2, but this is not 
how it works. Thus, it will attempt to connect to wifi_B in this example 
before wifi_A.

I currently have a configuration that prioritizes my phone's hotspot 
connection over my home network such that if the internet goes down, I 
can easily switch my HamVoIP nodes to my hotspot without the need to 
take down my home WiFi, which would be a complicated process due to 
having multiple access points, and would also break things on the 
network internally even if the internet connection isn't working.

Right now, all of my nodes are hardwired, and the internet connection 
almost never goes down, so it's only been used in practice once.

73

N2DYI


On 6/20/2022 7:56 PM, "Anthony (N2KI) via ARM-allstar" wrote:

> Is there a way to prioritize which WIFI  connection the node will associate
> with?  If not
> is there a way to switch the WIFI connection using DTMF touch tones?
> Thanks!
>
> Regards,
>
> Anthony (N2KI)
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org


More information about the ARM-allstar mailing list