Author Topic: WiFi  (Read 19350 times)

peter.seddon

Re: WiFi
« Reply #15 on: September 25, 2019, 01:37:17 pm »
It's running on Pi 3B not + though so has built in WiFi.

The whole script of the /etc_org/wpa_supplicant/wpa_supplicant.conf is as follows

Country=GB
contrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="MYSSID"
        psk="MYPSK"
}

When I run my hub manager I can see a MAC address connected but with no IP address so I think something is missing.
Also the name ognpaw is missing.

Works perfectly on Ethernet though.
« Last Edit: September 25, 2019, 02:53:41 pm by peter.seddon »
Peter S
G-DDLA

Paul_Sengupta

Re: WiFi
« Reply #16 on: September 25, 2019, 03:45:01 pm »
You can check on the PI by using "sudo ifconfig" (I think!) or "ifconfig -a" or something. You can see if you then have an IP address allocated to your PI on the wlan0 network.

You can reset an interface like so:

sudo ifdown wlan0
sudo ifup wlan0

(again, I think, I'm not at my PI at the moment to try it)

Make sure you don't have the ethernet cable plugged in when trying to Wifi connection.

peter.seddon

Re: WiFi
« Reply #17 on: September 25, 2019, 05:18:25 pm »
Tried ifconfig and there is no IP address. I powered up my other PI running Debian desk top and this does show an IP address.
Peter S
G-DDLA

peter.seddon

Re: WiFi
« Reply #18 on: September 27, 2019, 11:52:27 am »
You don't half make life difficult. I've finally after a few hours digging cured the problem The file dhcpcd.org.conf disables wlan0 with a line at the end of the script "denyinterfaces wlan0" remove this and all works fine.
Peter S
G-DDLA

Paul_Sengupta

Re: WiFi
« Reply #19 on: September 27, 2019, 12:53:58 pm »
Ah, great!

I don't remember doing that with mine. Curious.

Paul_Sengupta

Re: WiFi
« Reply #20 on: December 12, 2019, 07:21:53 pm »
This was the extra bit for the static IP address.

I edited the /etc_org/dhcpcd.conf file and included this:

interface wlan0

static ip_address=192.168.1.252/24
static routers=192.168.1.254
static domain_name_servers=192.168.1.254

This time it had the deny interfaces thing in it and I had to delete that first.

Admin

Re: WiFi
« Reply #21 on: December 12, 2019, 10:03:28 pm »
Hi Paul
Actually there is a simpler method
Travelling at the moment, will document on return
In fact it will be embedded into normal setup procedure for ease of use

Thx
Lee

Paul_Sengupta

Re: WiFi
« Reply #22 on: January 05, 2020, 11:30:23 pm »
Right, been playing around tonight. When I updated the software, it overwrote my WLAN configuration again. It did this as I had two WLANs in the /etc/wpa_supplicant/wpa_supplicant.conf file, and it only took the one - the wrong one for my current router!

Having set it all up again, I didn't have to edit the /etc/wpa_supplicant/wpa_supplicant.conf file as the configuration script now does that for you and you enter it as part of the initial configuration. However, I still wanted my static IP address, which the re-install overwrote. I changed my /etc/dhcpcd.conf (/etc_org/dhcpcd.conf) file but it still didn't play ball. I had to go back and edit the /etc/network/interfaces (/etc_org/network/interfaces) file and change

iface wlan0 inet dhcp

to

iface wlan0 inet manual

Phew.

Paul_Sengupta

Re: WiFi
« Reply #23 on: January 18, 2020, 02:15:34 am »
Right, just had a look. I think a recent update overwrote my /etc/dhcpcd.conf file which stopped Wifi from working.

I've just set it back.

peter.seddon

Re: WiFi
« Reply #24 on: January 19, 2020, 04:48:04 pm »
Right, just had a look. I think a recent update overwrote my /etc/dhcpcd.conf file which stopped Wifi from working.

I've just set it back.

The latest update also wiped the WiFi settings from EGNL also, this is not good. I think the same has happened to Firbank too.
OK so I've just done a little digging and found that the file dhcpcd.conf in the etc_org directory has been over written and contains the line at the end of the file denyinterfaces wlan0 which prevent the pi getting an address from the router. This can only have been done when it updated to the latest version on Saturday as the pi is on a timer that only switches it on on Sat and Sun to conserve 3G data costs, also the password was also reset to the default. The pi works OK without this line in the conf file.
« Last Edit: January 19, 2020, 05:05:08 pm by peter.seddon »
Peter S
G-DDLA

Admin

Re: WiFi
« Reply #25 on: January 19, 2020, 05:28:54 pm »
Peter I added the ability to configure the wlan interface using the normal setup script
$ cd rtlsdr-ogn
$ ./PilotAware-OGN.config.sh

I thought I emailed you - did I not inform you, apologies if not ?
Basically run this script and it prompts as follows

Do you want to setup WiFi wlan0 [y/N]: y
OK Lets setup the WiFi
WiFi SSID: mywifissid
WiFi PASSWORD: mywifipassword
....

Thx
Lee

peter.seddon

Re: WiFi
« Reply #26 on: January 19, 2020, 10:28:34 pm »
Cheers for the info I'll get them both set up ASAP.
Peter S
G-DDLA

Ian Melville

Re: WiFi
« Reply #27 on: January 20, 2020, 11:01:33 pm »
Can these WiFi settings be retained during future upgrades?


Admin

Re: WiFi
« Reply #28 on: January 20, 2020, 11:13:51 pm »
If you use the config script, they are retained
Thx
Lee

Ian Melville

Re: WiFi
« Reply #29 on: January 21, 2020, 12:47:26 am »
Good to hear Lee. Thinking of upgrading PWThame to WiFi.