EspenT
Posts: 2
Joined: Thu Jun 15, 2017 7:41 am

Zero W, No Wifi

Thu Jun 15, 2017 7:49 am

Hi

I´m trying to set up a headless Raspberry zero w with Jessie lite (04.10) but it does not connect to any of the wifi networks i have tried.

My current spa_suppicant conf looks like this.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=NO

network={
ssid=“test”
psk=“abcdefgh”
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
id_str=“home”
}

network={
ssid=“NEP-GUEST”
psk=“xxxxxxxx”
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
id_str=“work”
}


In syslog i get numerous errors.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Successfully initialized wpa_supplicant
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 7: failed to parse ssid '“test”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 7: failed to parse ssid '“test”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 8: Invalid PSK '“abcdefgh”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 8: failed to parse psk '“abcdefgh”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 14: failed to parse id_str '“home”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 14: failed to parse id_str '“home”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 15: failed to parse network block.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 18: failed to parse ssid '“NEP-GUEST”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 18: failed to parse ssid '“NEP-GUEST”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 19: Invalid PSK '“xxxxxxxx”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 19: failed to parse psk '“xxxxxxxx”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 25: failed to parse id_str '“work”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 25: failed to parse id_str '“work”'.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Line 26: failed to parse network block.
Apr 10 09:58:44 raspberrypi wpa_supplicant[369]: Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.

Any suggestions ?

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Zero W, No Wifi

Thu Jun 15, 2017 9:04 am

It appears you are using the wrong leading double quotes.

Code: Select all

change this
ssid=“test”
to this
ssid="test”
and all the other leading double quotes.

EspenT
Posts: 2
Joined: Thu Jun 15, 2017 7:41 am

Re: Zero W, No Wifi

Thu Jun 15, 2017 10:20 am

SurferTim wrote:It appears you are using the wrong leading double quotes.

Code: Select all

change this
ssid=“test”
to this
ssid="test”
and all the other leading double quotes.
Thank you. I used MacOS TextEdit :oops: to edit the file. Apparently it automatically changes all quotes to "curly quotes" :o Including the ones in your post. Used VI and replaced the quotes and the Pi is connected to WiFi :D

Return to “Troubleshooting”