I am using a PXFmini and Pi Zero W. I have followed the directions in the docs ( http://docs.erlerobotics.com/brains/erle-brain-3/getting_started/wifi_client ) to the best of my knowledge to get my wifi to connect to my Pi. As far as I understand, I need WiFi connection in order to install ArduPilot following these instructions ( http://docs.erlerobotics.com/brains/erle-brain-3/sofware/apm#update-key ).
The first thing I did was the following,
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
and I entered in my network ssid and password - yes, I verified that the password is indeed correct. When I have done this with my RPi 3 running NOOBS and then rebooted, I haven't had any problem with internet connection on the RPi 3.
When I run
sudo ifconfig I see that the IP address assigned to the pi is 10.0.0.1. I can't putty into my Pi at this point from my laptop when connected to my Wifi, but if I click on the Pi's hotspot I can. When I select wifi networks on my laptop I could see the following:
Next I followed these instructions from the Docs to enable the WiFi on my Pi. What I did was:
wpa_passphrase Erle-Robotics 12345 > erle.conf
sudo mv erle.conf /etc/wpa_supplicant/
sudo edit /etc/network/interfaces
Question: Is there anything I actually need to edit after executing the
sudo edit /etc/network/interfaces command? Or is that simply something I run? Also, I believe I have a static IP address, because after each reboot I get the 10.0.0.1 address. Do I need to do something different in this case?
The reason I know that the WiFi isn't working with my Pi, is because when I run the command
curl packages.erlerobotics.com/keys/deploy | sudo bash and
sudo apt-get update I see the following:
Then I read in the forum about some issues with the hostapd. So I quit SSH on my laptop, and ran the following from my keyboard and monitor plugged into the Pi.
I have tried the
sudo service hostapd stop and also,
update-rc.d hostapd disable. In both cases, the WiFi still doesn't connect to my Pi.
With the hostapd disabled, I have tried pinging google.com, but get the message, "unknown host google.com". Also, when I try and run
sudo apt-get update I am still getting the same errors to connect to the internet to download the updates.
I have read every forum about this issue that other people have had, and I have tried to track down the issue from solutions provided by other members, but to no avail. I am sure I am simply missing something simple. Or doing something in the wrong order. I have documented what I have done and in the order I did it, so hopefully an advanced user will see my mistake!
Thanks so much for any and all help.