Configuring wifi for several hidden ssids

I am running a RPi3 with IQaudio DAC+ hat which is being used as a music renderer.

I have this working with a wifi connection to an hidden SSID by setting up the wpa_supplicant.conf with the details of this SSID and password included in the configuration file.

I now need to move the device so that it connects to a different hidden SSID.

Is there any easy way to move back and forth between the two locations or do I have to edit the .conf file each time. I am only able to work using ssh in an headless setup.

Hi,

https://manpages.debian.org/testing/connman/connman-service.config.5.en.html

A quick google search has led to believe (I’ve not tested, but it may be worth trying), you can create multiple .config files in /var/lib/connman/ for each connection. In theory it should just connect to the available hidden ssid.

Thanks Tom.

You can also use connmanctl from the command line:

connmanctl
scan wifi
agent on
services
connect wifi_b827xxxxxxxx_hidden_managed_psk

then enter the hidden SSID and passphrase. I belive it’ll be stored by connman, along with the other SSID. Type exit, quit or ctrl-d to quit.

1 Like

Just goes to show how pointless hidden SSID are anyway… :wink:

1 Like

Just connect to both networks and ConnMan should roam.

Many thanks Sam. Will give it a shot.

1 Like

Let me know how it goes.

Hi Sam et al. Working from cli I looked for connmanctl. It is not installed. I have no idea why not as history of this device has been primarily to keep my music playing at home.
Am I due some sort of upgrade or an installation of new app. Please advise.

Further to the above I checked my system and it seemed reasonably up to date. Here is my last upgrade. Not sure about the error on the last lines.

Blockquote
abr@IQaudio-DAC-2:/ $ sudo apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
libntfs-3g883 libssl1.1 ntfs-3g openssl rpi-eeprom
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,450 kB of archives.
After this operation, 503 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:2 Index of /debian buster/main armhf rpi-eeprom armhf 12.12-1 [833 kB]
Get:1 Index of /raspbian/raspbian buster/main armhf ntfs-3g armhf 1:2017.3.23AR.3-3+deb10u1 [378 kB]
Get:3 Index of /raspbian/raspbian buster/main armhf libntfs-3g883 armhf 1:2017.3.23AR.3-3+deb10u1 [168 kB]
Get:4 Index of /raspbian/raspbian buster/main armhf libssl1.1 armhf 1.1.1d-0+deb10u7 [1,263 kB]
Get:4 Index of /raspbian/raspbian buster/main armhf libssl1.1 armhf 1.1.1d-0+deb10u7 [1,263 kB]
Fetched 3,450 kB in 32s (108 kB/s)
Reading changelogs… Done
Preconfiguring packages …
(Reading database … 42119 files and directories currently installed.)
Preparing to unpack …/ntfs-3g_1%3a2017.3.23AR.3-3+deb10u1_armhf.deb …
Unpacking ntfs-3g (1:2017.3.23AR.3-3+deb10u1) over (1:2017.3.23AR.3-3) …
Preparing to unpack …/libntfs-3g883_1%3a2017.3.23AR.3-3+deb10u1_armhf.deb …
Unpacking libntfs-3g883 (1:2017.3.23AR.3-3+deb10u1) over (1:2017.3.23AR.3-3) …
Preparing to unpack …/libssl1.1_1.1.1d-0+deb10u7_armhf.deb …
Unpacking libssl1.1:armhf (1.1.1d-0+deb10u7) over (1.1.1d-0+deb10u6+rpt1) …
Preparing to unpack …/openssl_1.1.1d-0+deb10u7_armhf.deb …
Unpacking openssl (1.1.1d-0+deb10u7) over (1.1.1d-0+deb10u6+rpt1) …
Preparing to unpack …/rpi-eeprom_12.12-1_armhf.deb …
Unpacking rpi-eeprom (12.12-1) over (12.11-1) …
Setting up libssl1.1:armhf (1.1.1d-0+deb10u7) …
Setting up libntfs-3g883 (1:2017.3.23AR.3-3+deb10u1) …
Setting up ntfs-3g (1:2017.3.23AR.3-3+deb10u1) …
Setting up rpi-eeprom (12.12-1) …
Setting up openssl (1.1.1d-0+deb10u7) …
Processing triggers for libc-bin (2.28-10+rpt2+rpi1) …
Processing triggers for man-db (2.8.5-2) …
Processing triggers for initramfs-tools (0.133+deb10u1) …
W: http://mirror.mythic-beasts.com/raspbian/raspbian/pool/main/o/openssl/libssl1.1_1.1.1d-0+deb10u7_armhf.deb: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy. (man 5 apt.conf)
abr@IQaudio-DAC-2:/ $

Blockquote
Does this look right?

Tried to install connman and it has stalled during installation and I no longer am able to access the device. Seems like it is no longer connected.
Ooops!

Some time later and I still have no working device but I do have

Error /net/connman/technology/wifi: No carrier

Several google threads later and all I have found “install networkmanager!!!”

How can I reverse out of this mess please?

This doesn’t look like a typical OSMC installation.

Get:1 Index of /raspbian/raspbian buster/main armhf ntfs-3g armhf 1:2017.3.23AR.3-3+deb10u1 [378 kB]
...
Preparing to unpack …/rpi-eeprom_12.12-1_armhf.deb …
Unpacking rpi-eeprom (12.12-1) over (12.11-1) …

Are you running Raspbian Raspberry Pi OS?

Yes as far as I can tell from my notes.

Raspbian to SD card then took it from there.
Sudo raspi-config for initial setup.
set hostname=IQaudio-DAC-1, ssh enabled, locale en-GB UTF-8,
Initial network set for DHCP and on my home network getting IP; rebooting gives login for pi.
Then downloaded and installed lesbonscomptes upmpcli Rpi security key and repo list and after updating and upgrading installed mpd and then upmpdcli and sc2mpd.

OSMC is not the same as Raspbian / Raspberry Pi OS. For example, RaspiOS doesn’t use connman, as you found.

Questions related to RaspiOS would better be directed to the RaspiOS forum: Raspberry Pi Forums - Index page

1 Like

Expletive deleted OK thanks, will go there.