I see nothing wrong with that wpa_supplicant.conf file (other than you shouldn't be hiding your SSID). In fact, I copied and pasted it into Notepad, added my network info, saved it to a freshly imaged Raspbian Stretch micro SD card, and booted it in my Pi Zero W. It works as expected.
Generally problems like this are in the formatting or encoding of the file. Things like hidden control characters or curly quotes, which are sometimes introduced by the editor used, will invalidate the file. However, you say it works in Jessie, so... ¯\_(ツ)_/¯
Try this Raspbian Lite image I have pre-configured for USB Gadget mode.
to write it to your card and copy your wpa_supplicant.conf file to the FAT32 "boot" partition.
Unplug your power supply from the Pi Zero W and connect a normal micro USB data cable to the data port on your Pi Zero W (leave nothing connected to the power port). Insert the micro SD card and plug the other end of the micro USB cable into a USB port on your main (Windows/Mac/linux) PC.
The Pi Zero W will start to boot and after a minute or two a new USB Ethernet/RNDIS Gadget network adapter will get installed.
If you have a MacOS or Linux PC you should then be able to SSH into [email protected]
For Windows you will need to install an mDNS/Zeroconf network service, and the simplest way to do that is to install Apple's Bonjour print service
(then you'll be able to SSH into [email protected]
With fully up to date Windows 10 you can SSH from cmd.exe or Windows Power Shell. Otherwise install and use the PuTTY
Once you are logged in to your Pi0W, try the following commands.
Code: Select all
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
The first will show you the contents of the wpa_supplicant.conf file (see if that is the same as your file).
The second will show if WLAN0 has a valid IP address (you should be able to SSH into that IP as well).
The third command will display the model and version of your Pi (if it doesn't say it's a Pi Zero W, something is wrong).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?