×

INDI Library v1.9.8 Released (29 Sep 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Cannot Connect to Astroberry VAP

  • Posts: 12
  • Thank you received: 0
I just don't know how to build a new Astroberry image with the v2.9 supplicant. It's odd that the folks who manage Astroberry haven't done this already. Samsung devices are very popular and the Wi-Fi hotspot needs to work with those devices.
2 years 8 months ago #50822

Please Log in or Create an account to join the conversation.

  • Posts: 1942
  • Thank you received: 418
Astroberry depends on the Raspbian Buster Linux distribution and it is that distribution that determines the versions of the software available on it. It is far from easy to update any core software on a distribution since there are a LOT of dependencies that need to be satisfied.
Note that connecting with a mobile phone to the wifi of a Raspberry Pi is not a very common thing to do so from that persopective it makes sense that this latest version isn't available in Raspbian yet.
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
2 years 8 months ago #50825

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 12
That's why I've said that no easy solution.
Note, that Astroberry is just a package over the Raspbian distribution, and wpa supplicant is part of Raspbian, not Astroberry.
The best we can hope that Raspbian will be upgraded soon.
2 years 8 months ago #50832

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375

Official Raspbian Buster system from Raspberry Foundation (see www.raspberrypi.org/downloads/raspbian/) provides wpa_supplicant version 2.7. This means that the issue impacts all Raspberry Pi users who use official system, not just Astroberry users.
Astroberry is built on top of Raspbian Buster so we are impacted as well. The only solution is to manually upgrade version of wpa_supplicant to the latest 2.9.
However version 2.9 is marked unstable/experimental so it is not available in stable repositories yet. It must be compiled from sources located on the official site w1.fi/releases/wpa_supplicant-2.9.tar.gz

This will take some time wpa_supplicant is promoted to stable. As soon as it is you will receive it with regular updates and the issue will be solved for you and all the other users.

In the meantime, can anybody compile and package version 2.9 from the sources?
--
Radek Kaczorek
Astroberry Server | Orion CT8 | Askar FRA 400 | NEQ6 (hypermod) | Atik 460EX | ASI 1600 | ASI 120MM | Atik EFW2
2 years 8 months ago #50889

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 12
I have managed to compile wpa_supplicant 2.9 from source, and indeed it has solved the problem.

It is not hard to compile, anyone can do that. Here are the steps needed:

1. Download the source from the link from Kaczorek's post: w1.fi/releases/wpa_supplicant-2.9.tar.gz

2. Extract the source:
$ tar xvzf Downloads/wpa_supplicant-2.9.tar.gz
That creates a directory wpa_supplicant-2.9

3. Go to the build directory wpa_supplicant-2.9/wpa_supplicant
$ cd wpa_supplicant-2.9/wpa_supplicant

4. Create a .config file.
I've used the one I've found at the end of this thread: raspberrypi.stackexchange.com/questions/...o-raspi-access-point
For your convenience I attach it to the post.
You have to rename it to .config, but the forum does not allow me to upload it by that name:
$ mv config.txt .config
Of course you can change the values in it as you wish, or make one for yourself based on the provided defconfig file.

5. You will need the development package for dbus and netlink socket, so install them:
$ sudo apt install libdbus-1-dev libnl-genl-3-dev

6. Compile the source
$ make
After successful compilation you will get 3 binaries: wpa_supplicant, wpa_cli and wpa_passphrase

7. Install th enew binaries

The original .deb package install wpa_supplican and wpa_cli in /sbin while wpa_passphrase is in /usr/bin. You can simple overwrite them is you wish, but I rather like to keep them, and install the new ones in /usr/local:
$ sudo cp -a wpa_supplicant /usr/local/sbin/
$ sudo cp -a wpa_cli /usr/local/sbin/
$ sudo cp -a wpa_passphrase /usr/local/bin/
Since the /usr/local directories is earlier in $PATH than the system directories, these ones will shadow the originals when called from command line.

8. Update systemd
For the wpa_supplicant service unfortunately the path is hardcoded in the systemd service file, so if you just do what I did, you have to update it:
$ sudoedit /lib/systemd/system/wpa_supplicant.service
On the ExecStart line change
ExecStart=/sbin/wpa_supplicant
to
ExecStart=/usr/local/sbin/wpa_supplicant

Refresh systemd:
$ systemctl daemon-reload
$ systemctl restart wpa_supplicant
It is better to do that from the console or through ethernet connection, since the WiFi will disconnect and reconnect, if it was successful.
You can alternatively simple reboot your RPI, but be prepared that if something is wrong with the new wpa_supplicant or you made a mistake in the systemd config, WiFi will not work.

If something gone wrong, you can check the wpa_supplicant service status with:
$ systemctl status wpa_supplicant
This will tell you if for example you misspelled the path.

9. Connect from your Samsung phone!
The following user(s) said Thank You: Radek Kaczorek, Jorge Restrepo, Bill Richards, Yossi
2 years 7 months ago #52158
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
This is awesome - I just followed these steps and tested it out. It works great! Thanks for taking the time to sort this out and for posting such clear and complete instructions.
2 years 7 months ago #52182

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 12
I'm glad it helped someone.
2 years 7 months ago #52198

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 2
Thanks for taking the time to explained this. I was having problems with astroberry hotspot and this saved the day.
2 years 5 months ago #55030

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
I am running with Astroberry Server release 2.0.4 and cant connect Android (Samsung Galaxy ) to its hotspot.
is it the same issue as mentioned here? if yes, what should be the right solution these days?

Thanks,
11 months 1 week ago #78707

Please Log in or Create an account to join the conversation.

  • Posts: 102
  • Thank you received: 21
The situation has not changed much:

Raspian buster has become oldstable, but still is on 2.7.
bullseye has become stable and is on 2.9.
Astroberry is still based on buster.

So still the advice is to install wpasupplicant 2.9 by hand following these steps: www.indilib.org/forum/astroberry/6229-ca....html?start=12#52158
11 months 1 week ago #78717

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 12
Hmm, that is a pity.
Buster is seriously outdated. Not only the wpa supplicant has problem, but libraw too. The version in Buster does not support CR3, the raw format used by Canon cameras since a few years. So you need to compile libraw, Kstars, EKOS and the gphoto indi driver too from source to support any semi modern Canon camera.
11 months 1 week ago #78720

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
If is causing issues with Cannon, I am wondering if these, old libraryes could be also a reason for the following issue i am facing with Sony DSLR?? - github.com/indilib/indi-3rdparty/issues/...suecomment-987876032

And thank you for help, i will make the manual updates ...
Last edit: 11 months 1 week ago by Yossi.
11 months 1 week ago #78723

Please Log in or Create an account to join the conversation.

Moderators: Radek Kaczorek
Time to create page: 0.877 seconds