[arm-allstar] Switching WIFI Conncetions Via DTMF

Stephen Cook va3kxp.maillist at gmail.com
Tue Jun 21 08:04:33 EDT 2022


I have used the instructions in https://hamvoip.org/howto/ChangingWirelessAccessPoints.pdf successfully.

Stephen
ve3pc

Sent from my iPad Air

> On Jun 21, 2022, at 08:01, Anthony (N2KI) via ARM-allstar <arm-allstar at hamvoip.org> wrote:
> 
> Thank you Patrick.  I will check out the command lines on my system for
> exactly the reasons you mentioned.
> 
> Regards,
> 
> Anthony (N2KI)
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> On Tue, Jun 21, 2022 at 12:41 AM "Patrick Perdue via ARM-allstar" <
>> arm-allstar at hamvoip.org> wrote:
>> 
>> 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
>> _______________________________________________
>> 
>> 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
> _______________________________________________
> 
> 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