01-23-2021, 02:22 PM
(01-20-2021, 06:52 PM)abhiroopd Wrote: I switched from Volumio actually, and it was working fine there, and I just verified the password once again.
When I go to raspi-config, system options -> wireless LAN, I get the following error message:
Code:Could not communicate with wpa_supplicant. There was an error running option S1 Wireless LAN
And then I tried the following commands -
Code:pi@moode:~ $ sudo killall wpa_supplicant
pi@moode:~ $ sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: Failed to initialize driver interface
If you used rasps-config or ssh commands to alter system or network settings then the config that moOde needs to see is prolly broken.
The way to troubleshoot WiFi adapter issues is to first start with a FRESH image then try the following:
1. Plug in Ethernet cable and WiFi adapter.
2. Power up the system
3. Menu, Configure, Network
4. Enter SSID and password then SAVE
5. Power off
6. Unplug Ethernet cable
7. Power up the system
8. Wait several minutes for system startup and either successful WiFi connection, AP mode startup or no WiFi
9. Plug in Ethernet cable
Then connect via SSH and do the following
1. Check syslog for wlan related errors
Code:
cat /var/log/syslog | grep wlan
2. Verify that the moOde generated wpa_supplicant.conf file is valid. It should look like below with your SSID and a numeric WPA pre-shared key. This key should exactly match the output of the following command:
Code:
wpa_passphrase "SSID" "password"
Code:
pi@rp3:~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="xxxxxxxx"
scan_ssid=1
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}