wifi builder

Help setting up WiFi
Post Reply
User avatar
AA1PR
Posts: 11
Joined: Thu Jun 25, 2020 5:00 am

wifi builder

Post by AA1PR »

Ive used the wifi builder tool and created 2 files I need to drag & drop in the boot folder accessing my pi-star via winscp
is there any specific location or folder in there where it needs to go
I tried dropping them in the whole boot folder & it wouldnt allow such
all permission were set correctly from what I know playing with allstar

also on a side not if I go into my pi-star and goto wifi
why cant I add a second wifi connection with out having to connect to it, (like say Im home but adding work wifi info)
this makes no sense

please advise

mike
KE7FNS
Pi-Star Team
Posts: 1823
Joined: Wed Apr 17, 2019 11:11 pm

Re: wifi builder

Post by KE7FNS »

AA1PR wrote: Mon Dec 28, 2020 2:24 pm Ive used the wifi builder tool and created 2 files I need to drag & drop in the boot folder accessing my pi-star via winscp
You can only drop one wpa_supplicant.conf file at a time, any previous settings will be completely overwritten when you drop the second one. If you have two different networks you need to manually add the network={ } section of the second one into the first one with a standard text editor. Also change the priority if the two networks are within range of each other.

winscp has issues with things because the system is read only and needs to be read write to write files. In order to use it you have to connect with winscp and ssh into the RPi and run "rpi-rw", it is a pain. I wish winscp would allow a command to be run at connection, but it doesn't. You also need root access to write to /boot in Linux.

I recommend just using the computer you used to write the image and add the 2nd network, and then copy the file to the SD card. You should see a FAT32 partion named boot, just place the file there. Insert the SD card into the RPi and power it on.
AA1PR wrote: Mon Dec 28, 2020 2:24 pm is there any specific location or folder in there where it needs to go
I tried dropping them in the whole boot folder & it wouldnt allow such
all permission were set correctly from what I know playing with allstar
In windows it is a FAT32 partion named boot. In windows you can't see the Linux partion on the SD card unless you have some Linux tools installed in Windows 10.

In Linux it is mounted as /boot
AA1PR wrote: Mon Dec 28, 2020 2:24 pm also on a side not if I go into my pi-star and goto wifi
why cant I add a second wifi connection with out having to connect to it, (like say Im home but adding work wifi info)
this makes no sense
Shrug, because it wasn't programmed to do that.

I think it is easy for people to compare what other devices can do and forget that those devices have millions of people working on the programming, we only have one.

Perhaps you could put a suggestion into the suggestion area of the forum, or maybe even write the PHP code to make it possible and suggest that through github.
viewforum.php?f=24
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:
User avatar
AA1PR
Posts: 11
Joined: Thu Jun 25, 2020 5:00 am

Re: wifi builder

Post by AA1PR »

Sir,
many thanks for all your hard work
its definitely a learning curve
Ill do 1 at a time then

73
KE7FNS
Pi-Star Team
Posts: 1823
Joined: Wed Apr 17, 2019 11:11 pm

Re: wifi builder

Post by KE7FNS »

AA1PR wrote: Mon Dec 28, 2020 9:41 pm many thanks for all your hard work
I'm just a end user like yourself. I do however have experience with some specific things that you were trying to do, like running into write permissions while using winscp.
AA1PR wrote: Mon Dec 28, 2020 9:41 pm its definitely a learning curve
Ill do 1 at a time then
When it boils down to things it is just Linux.

When you say you'll do one at a time, I think that means one wpa_supplicant file at a time which is going to cause you grief. The way it is setup when you drop a file all the old wifi settings are wiped out and replaced, and that wpa_supplicant file is deleted from the /boot partition once it is used. The settings are moved to the OS area where they need to be for future reboots. So you'll constantly have to place a wpa_supplicant file on the SD card every time you change networks. Thats just not feasible.

What I would recommend is just opening the 2nd wpa_supplicant file you created and copy the section:

Code: Select all

network={

ssid=blah2
psk=blah2
priority=99
}
Then paste that into the 1st file after the one that is there. So it looks like this.

Code: Select all

network={

ssid=blah1
psk=blah1
priority=100
}

network={

ssid=blah2
psk=blah2
priority=99
}
Then it will scan for both networks and whenever one of those networks is within range it will connect to it. If both are in range it will use the priority.

One of the issues with Raspbian (the OS that the RPi runs) has though is it doesn't auto connect to wifi hotspots so if you go out of range of one, and get in range of the other it won't reconnect, like you are familar with on other devices.

It will require a reboot when you get to your second area, but on reboot it will detect it and connect to it. Its just one of those annoyances.

Hope that helps.
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:
User avatar
AA1PR
Posts: 11
Joined: Thu Jun 25, 2020 5:00 am

Re: wifi builder

Post by AA1PR »

Sir, thank you I understand & can do all of this
KE7FNS wrote: Mon Dec 28, 2020 11:53 pm
AA1PR wrote: Mon Dec 28, 2020 9:41 pm many thanks for all your hard work
I'm just a end user like yourself. I do however have experience with some specific things that you were trying to do, like running into write permissions while using winscp.
AA1PR wrote: Mon Dec 28, 2020 9:41 pm its definitely a learning curve
Ill do 1 at a time then
When it boils down to things it is just Linux.

When you say you'll do one at a time, I think that means one wpa_supplicant file at a time which is going to cause you grief. The way it is setup when you drop a file all the old wifi settings are wiped out and replaced, and that wpa_supplicant file is deleted from the /boot partition once it is used. The settings are moved to the OS area where they need to be for future reboots. So you'll constantly have to place a wpa_supplicant file on the SD card every time you change networks. Thats just not feasible.

What I would recommend is just opening the 2nd wpa_supplicant file you created and copy the section:

Code: Select all

network={

ssid=blah2
psk=blah2
priority=99
}
Then paste that into the 1st file after the one that is there. So it looks like this.

Code: Select all

network={

ssid=blah1
psk=blah1
priority=100
}

network={

ssid=blah2
psk=blah2
priority=99
}
Then it will scan for both networks and whenever one of those networks is within range it will connect to it. If both are in range it will use the priority.

One of the issues with Raspbian (the OS that the RPi runs) has though is it doesn't auto connect to wifi hotspots so if you go out of range of one, and get in range of the other it won't reconnect, like you are familar with on other devices.

It will require a reboot when you get to your second area, but on reboot it will detect it and connect to it. Its just one of those annoyances.

Hope that helps.
Post Reply