rkaczorek / astroberry-server

Astroberry Server is a ready to use system for Raspberry Pi for controlling all your astronomy equipment
GNU General Public License v3.0
275 stars 19 forks source link

Unable to connect to Wifi hotspot with Android phone #60

Open AmiSMB opened 4 years ago

AmiSMB commented 4 years ago

I have Astroberry 2.0.1 on a Raspberry Pi 3b but am finding that I can connect to the wifi hotspot with Windows 10, Mac OS X 10.14.6 and Ubuntu 19.10 but not on the device that I wish to use when out which is a Samsung Galaxy S10 on Android 10. I can see the astroberry wifi hotspot and correctly entered in the password as I have on the other devices and it tries to connect for quite a while but ends up with an error unable to connect.

All I see in /var/log/syslog when Android connects and then fails:-

astroberry wpa_supplicant[341]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0

rkaczorek commented 4 years ago

AFAIK it is related to wpa_supplicant version provided by official raspbian buster version (v2.7). The latest version of wpa_supplicant is v2.9, which apparently solves the issue. See https://raspberrypi.stackexchange.com/questions/107188/android-wont-connect-to-raspi-access-point

AmiSMB commented 4 years ago

I have made the following script to build and install the latest wpa_supplicant on a Raspberry Pi running Astroberry.

Scp the attached file wpa.txt to Astroberry and the ssh in. Do the following commands: mv wpa.txt wpa.sh chmod +x wpa.sh ./wpa.sh

It now works great now for me and I hope this helps someone else in the same situation.

wpa.txt

drakth commented 3 years ago

I have made the following script to build and install the latest wpa_supplicant on a Raspberry Pi running Astroberry.

Scp the attached file wpa.txt to Astroberry and the ssh in. Do the following commands: mv wpa.txt wpa.sh chmod +x wpa.sh ./wpa.sh

It now works great now for me and I hope this helps someone else in the same situation.

wpa.txt

Thank you so much, this worked perfectly!

Agwising commented 2 years ago

Where do i find the wpa.sh file?

rkaczorek commented 2 years ago

It's attached to the post above

Agwising commented 2 years ago

I can only see wpa.txt

Agwising commented 2 years ago

I think i got it. Just SCP the wpa.txt then run the commands as described. However i would still need to connect the Astroberry to the internet via ethernet since sudo apt-get update will run

Agwising commented 2 years ago

Still not detecting my hotspot. I noticed that the wpa supplicant files are installed to the same folder where i scp the wpa.txt. which is Documents in this case. Is this ok or should i transfer these files?