×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Cannot Connect to Astroberry VAP

  • 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.
4 years 1 month 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?
4 years 1 month 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
4 years 5 days 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.
4 years 5 days 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.
4 years 5 days 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.
3 years 10 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,
2 years 4 months ago #78707

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

  • Posts: 104
  • 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
2 years 4 months 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.
2 years 4 months 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: 2 years 4 months ago by Yossi.
2 years 4 months ago #78723

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

  • Posts: 90
  • Thank you received: 12
Outdated libraries may cause all sorts of problems, for sure. But as far as I understand, these are a separate issue, with gphoto. I'm not sure if it was fixed upstream. What I was referring to is an issue (or rather a new feature) in libraw, which was  fixed (or one can say added) in upstream years ago, we were just waiting for the Raspbian to be updated. This finally happened, so atroberry should be updated too. I understand that this is a lot of work, but it has to be done as soon as possible, since it could fix a lot of issues outstanding since years.
The following user(s) said Thank You: Yossi
2 years 4 months ago #78726

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

  • Posts: 10
  • Thank you received: 0
wpa-supplicant 2.9 DOES NOT BUILD on a raspberry pi 4b using the config file suggested. The error message is:

/usr/bin/ld:.config: file format not recognized; treating as linker script
/usr/bin/ld:.config:3: syntax error
collect2: error: ld returned 1 exit status
make: *** No rule to make target 'ctrl_iface_unix', needed by 'wpa_supplicant'. Stop.

Building also fails using the default config file and the Android.config file because ssl cannot be found.
1 year 6 months ago #86901

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

Moderators: Radek Kaczorek
Time to create page: 1.183 seconds