Can't set Wifi country (could not communicate to wpa_supplicant)

All the topics related to QLC+ on the Raspberry Pi
Post Reply
fear3ck
Posts: 3
Joined: Sun Aug 12, 2018 4:54 pm
Real Name: Julian

Hello there!
I'm using QLC+ on my Raspberry Pi 3+. It runs well, but I'm not able to activate the wifi bc I can't set my country ... Error: "could not communicate with wpa_supplicant"
I already tried :

-expanding the filesystem option
-manually writing and creating a wpa_supplicant
-choosing another SD-Card

I also tried it with a clean Raspian Stretch Image - Wifi works perfectly, I assume it has something to be with the image (2018_06_27).

I am the only one with that Problem or did I overread something? Sorry if there's already a topic.

Thank you!
psyka
Posts: 51
Joined: Tue Feb 16, 2016 1:47 pm
Real Name: Jérôme

Hi.

I have the same problem.
If anyone have an answer :)

Regard
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Hi, what is "wifi bc" ?
I just checked the sources and the RPi version overwrites /etc/wpa_supplicant/wpa_supplicant.conf
Only when you make a change to the network configuration though.

Can you point me to the relevant documentation where country setting is explained ?
The RPi image is based on vanilla Raspbian Stretch, so if it works with the original one, it has to work with my image too.

Have you tried doing a
sudo apt-get upgrade
or
sudo apt-get dist-upgrade
janosvitok
Posts: 1274
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

Autocorrect in my head assumes bc=because. I'm not fan of those shortcuts though...
janosvitok
Posts: 1274
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

Guys, can you post good and bad wpa_supplicant.conf?
psyka
Posts: 51
Joined: Tue Feb 16, 2016 1:47 pm
Real Name: Jérôme

Hi :)

I take some photo of the manipulation.
Even after sudo apt-get upgrade and sudo apt-get dist-upgrade -- > no WIFI

I don't know what to do now.

Raspberry Pi 3 model B+ rev 1.3.
Attachments
Incomplete upgrade
Incomplete upgrade
IMG_2774.jpg
IMG_2773.jpg
shad
Posts: 3
Joined: Thu Feb 09, 2017 5:09 am
Real Name: Shad Rydalch

I had the same issue. Save a ssid and password in the web page: Configuration > System > network configuration, apply changes, and reboot. Then try sudo raspi-config to set the wifi county.

raspi-config only updates an existing /etc/wpa_supplicant/wpa_supplicant.conf file. It will not create the file.

When the web page writes wpa_supplicant.conf it is missing the county line which is needed for the new raspberry 3B+ with 5GHz wifi. So, once the web page creates wpa_supplicant.conf, raspi-config can add the county.

Or edit wpa_supplicant.conf and add your county.

Either way wpa_supplicant.conf will need to look something like this:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
scan_ssid=1
ssid="ssid"
psk="password"
}
djcflo
Posts: 2
Joined: Mon Nov 26, 2018 6:57 pm
Real Name: coleman

I found success in doing it in two places (using a Rpi 3B+)

over SSH, or on the unit via command lin type in

Code: Select all

sudo nano /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
hit enter to open text editor. it's a blank document. paste in

Code: Select all

ctrl_interface=/run/wpa_supplicant
update_config=1
country=US
control X to quit, Y to save, enter to get back to command line
sudo shutdown -h now

2nd place we have to do it:
type in

Code: Select all

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
hit enter

in document, directly under ctrl_interface add

Code: Select all

country=US
populate the fields with your home network info

Code: Select all

ssid=”home wifi name”
psk=”home wifi password”
control X to quit, Y to save, enter to get back to command line

sudo reboot
Post Reply