Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Auto-config wifi setup issues
#14
(10-12-2023, 05:57 PM)TheOldPresbyope Wrote: {@avsfan19 

OK, I finally got some time this morning to think about your problem. 

While working with the WiFi station and AP modes should be the same irrespective of the RPi model---assuming it can access an appropriate WiFI transceiver---I ran the following exercises on an RPi2B with an outboard CanaKit USB-WiFi transceiver to try more or less to replicate your situation..

_____

First, let's see what happens with no moodecfg.ini file. Flash a fresh moOde 8.3.6 image to a uSD card using the Raspberry Pi Imager (in which settings I enabled SSH and set the default username and password).

Insert the card in the RPi2B and power up. Wait an insufferably long time (I forgot how slow the RPi2B is plus there's a timeout looking for the Ethernet connection which isn't there) and finally an AP with SSID "Moode" shows up on my laptop as an available WiFi Network.
By default, this AP requires the password "moodeaudio". This is a holdover from the good old days (sorry it isn't better documented) and basically is necessary because the Raspberry Pi Imager has no way to deal with AP-mode parameters in situ.

Connect to this network and now you can open moOde's WebUI at IP address 172.24.1.1.


Opening the Network Configuration panel, one gets the popup notice "An Access Point password needs to be set." which reinforces the new security emphasis. At this point, you can set your desired AP SSID "Speakers" and your selected AP password. Save the Access Point settings and reboot. All should be as you want it.

_____

Referring back to the Network Configuration panel, note that either before or after changing the AP SSID and AP password, the Network SSID setting is "None (Activates AP mode)". That's the same as the default setting in /boot/moodecfg.ini.default so let's try it in our second test.

As before, use Raspberry Pi Imager to flash a fresh image of moOde 8.3.6 to a uSD card. This time though---and before booting the card on the RPi2B---copy over the /boot/moodecfg.ini.default file to boot/moodecfg.ini. Leave wlanssid = "None (activates AP mode)" as is but make the desired AP settings under [Network (apd0)]. Save the file  and then boot the card on the RPi2B. Shazam! After waiting interminably again, your moOde player should have come up in AP mode with the new SSID/pw.

_____

Finally, try again with a fresh image and this time with your moodecfg.ini file which contains the line wlanssid="". Again, after waiting an insufferably long time, the moOde player should come up in AP mode with SSID "Speakers". The only salient difference I notice is that in the WebUI under Network Configuration, the Network SSID setting is "Nothing selected". Easily changed to "None (Activates AP mode)" if it bothers you.

_____

Sorry for the long-winded response but I figured TMI is better than TLI (too little information). Smile

Regards,
Kent

PS - note that Tim's response contained a trivial typo. The file is /var/log/moode_autocfg.log

Woah, thanks so much for the detailed and quick reply! The first option of booting up the Pi with a fresh, un-edited image, then inputting "moodeaudio" as the password worked. Then I was able to configure the AP as needed and set up the WiFi connection. Still not sure why editing the AP network settings in the moodecfg.ini file then pasting to the sd card didn't work for me, as it sounds like it worked ok for you. But regardless, everything seems to be working great now. 

Thanks again to you and Tim for the quick help.
Reply


Messages In This Thread
Auto-config wifi setup issues - by avsfan19 - 10-11-2023, 01:22 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-11-2023, 01:39 PM
RE: Auto-config wifi setup issues - by avsfan19 - 10-11-2023, 05:57 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-11-2023, 06:09 PM
RE: Auto-config wifi setup issues - by avsfan19 - 10-13-2023, 01:28 AM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 08:52 PM
RE: Auto-config wifi setup issues - by Nutul - 10-12-2023, 09:23 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 09:52 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 10:31 PM
RE: Auto-config wifi setup issues - by Tim Curtis - 10-12-2023, 11:19 PM

Forum Jump: