Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6637

Troubleshooting • Pi Zero unable to connect to a Pi 5 access point

$
0
0
Hello everybody,

This is an "interesting" one, as I've been banging my head against the desk for days now trying to connect two RPis on Raspbian Bookworm via wifi. I want to control a slideshow using a remote keyboard connected to a Raspberry Pi Zero, communicating with a Raspberry Pi 5 configured as an access point, where the slideshows also occurs. No Internet access needed, it's a closed system. Since the machines could be up to 20 meters apart, I can't reliably use Bluetooth, so it has to be wifi.

The AP is launched this way, which gives the choice of 2.4 GHz or 5 GHz according to my laptop wifi parnel:

Code:

carousel:~# nmcli d wifi hotspot ifname wlan0 ssid Carousel password carouselDevice 'wlan0' successfully activated with '54117bca-d3d1-47d2-8867-dd53a26c8cb7'.
The Pi Zero connects to my wifi router, using either the desktop interface or nmcli. No problem. I have set up an access point on my Pi 5, and I can connect to it with almost anything, like my phone or my Ubuntu 20.04 laptop. No problem.

Code:

pi@pi0:~ $ sudo nmcli d wifi con Router password routerpasswordDevice 'wlan0' successfully activated with '9376c688-6ebb-425b-98f8-32df72ed5ff5'.
But the Pi Zero doesn't want to connect.

Code:

pi@pi0:~ $ sudo nmcli d wifi con Carousel password carouselError: Connection activation failed: Secrets were required, but not provided.
I've been scouring the Internet, I've tried various solutions, various utilities, but none worked. When a connection was initiated, it always failed with the same message. The --ask-password option – ditto. I've tried messing with the configuration files themselves, in /etc/NetworkManager and other, more mysterious places. If I can use a password file (a few "solutions" talk about it), I need to know its format and the directives to use, and this is hard to come by. I have strace'd the nmcli process, and I see something coming from dbus, but I don't know the origin. I have reinstalled the Raspbian image. I have tried setting up an open AP without any security since I don't care: the RPi5 is not connected, and there's nothing valuable on the machine itself apart from pictures – but it seems impossible with nmcli which apparently wants security no matter what.

Any idea?

Statistics: Posted by jzu — Thu Nov 07, 2024 3:54 pm



Viewing all articles
Browse latest Browse all 6637

Trending Articles