[VERO 4K] Wireless not connecting during boot

I bought a new Vero 4K+ to replace my old Vero 4K. I configured the Vero4K+ beforehand using wireless without problem. Also booted several times, wireless always came up correctly.
Now I replaced my old Vero 4K and switched the Vero 4K+ to wired. All still OK.

Now I want to reuse the old Vero4K in my study, and want it operating on Wifi instead of wired as it always has done. So I set the wired connection to disabled and configured the Wifi connection. All went smooth. Until I reboot.
The network won’t come up during boot, and I have to go to MyOSMC - Network - Wireless to explicitly connect to the Wifi. Which then always works without problem.

dmesg show me during boot that it fails connecting to wlan:

[   10.409943] wl_run_escan: LEGACY_SCAN sync ID: 0, bssidx: 0
[   10.658225] Connecting with 8c:3b:ad:ef:ef:7b ssid "sichowifi", len (9) channel=36

[   10.662709] dhd_dbg_start_pkt_monitor, 1724
[   20.104930] connect failed event=0 e->status 1 e->reason 0 
[   20.105579] CFG80211-ERROR) wl_bss_connect_done : Report connect result - connection failed

connman logging shows no sign of trying to connect during startup:

aug 31 21:44:10 osmc systemd[1]: Starting Connman connection service...
aug 31 21:44:10 osmc systemd[1]: Started Connman connection service.
aug 31 21:44:10 osmc connmand[2349]: Connection Manager version 1.36
aug 31 21:44:10 osmc connmand[2349]: Checking loopback interface settings
aug 31 21:44:10 osmc connmand[2349]: System hostname is osmc
aug 31 21:44:10 osmc connmand[2349]: System domainname is osmc.tv
aug 31 21:44:10 osmc connmand[2349]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536
aug 31 21:44:10 osmc connmand[2349]: lo {newlink} index 1 operstate 0 <UNKNOWN>
aug 31 21:44:10 osmc connmand[2349]: eth0 {create} index 2 type 1 <ETHER>
aug 31 21:44:10 osmc connmand[2349]: eth0 {update} flags 4098 <DOWN>
aug 31 21:44:10 osmc connmand[2349]: eth0 {newlink} index 2 address C4:4E:AC:0A:EE:40 mtu 1500
aug 31 21:44:10 osmc connmand[2349]: eth0 {newlink} index 2 operstate 2 <DOWN>
aug 31 21:44:10 osmc connmand[2349]: Adding interface eth0 [ ethernet ]
aug 31 21:44:10 osmc connmand[2349]: wlan0 {create} index 3 type 1 <ETHER>
aug 31 21:44:10 osmc connmand[2349]: wlan0 {update} flags 4098 <DOWN>
aug 31 21:44:10 osmc connmand[2349]: wlan0 {newlink} index 3 address 44:2C:05:9D:6B:7C mtu 1500
aug 31 21:44:10 osmc connmand[2349]: wlan0 {newlink} index 3 operstate 2 <DOWN>
aug 31 21:44:10 osmc connmand[2349]: Adding interface wlan0 [ wifi ]
aug 31 21:44:10 osmc connmand[2349]: Unit connman-vpn.service not found.
aug 31 21:44:11 osmc connmand[2349]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
aug 31 21:44:11 osmc connmand[2349]: wlan0 {newlink} index 3 address 44:2C:05:9D:6B:7C mtu 1500
aug 31 21:44:11 osmc connmand[2349]: wlan0 {newlink} index 3 operstate 0 <UNKNOWN>
aug 31 21:44:11 osmc connmand[2349]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
aug 31 21:44:11 osmc connmand[2349]: wlan0 {update} flags 102403 <UP,LOWER_UP>
aug 31 21:44:11 osmc connmand[2349]: wlan0 {newlink} index 3 address 44:2C:05:9D:6B:7C mtu 1500
aug 31 21:44:11 osmc connmand[2349]: wlan0 {newlink} index 3 operstate 5 <DORMANT>
aug 31 21:44:11 osmc connmand[2349]: wlan0 {newlink} index 3 address 44:2C:05:9D:6B:7C mtu 1500
aug 31 21:44:11 osmc connmand[2349]: wlan0 {newlink} index 3 operstate 5 <DORMANT>
aug 31 21:44:12 osmc connmand[2349]: ipconfig state 2 ipconfig method 1
aug 31 21:44:21 osmc connmand[2349]: ipconfig state 7 ipconfig method 1
aug 31 21:44:21 osmc connmand[2349]: ipconfig state 7 ipconfig method 1

Any idea why my Vero 4K+ can connect to the wireless effortlessly during boot, while my Vero 4K is consistently unable to do so, to exactly the same wireless router, during boot ? (connecting manually using MyOSMC always works (without having to re-enter the WPA2 key, so it is correctly stored))

Did you by any chance configure WiFi via the installer?

That’s broken and will be fixed in a near future update. For now it’s best to setup WiFi on the device itself

Cheers

Sam

I don’t know :slight_smile: … Possibly yes, but I installed this old Vero 4K many years ago, and never actually used the wireless functionality, but I can imagine that I did configure it initially during install.

Can that be ‘undone’ without re-installing it?

As it is (also?) configured in MyOSMC proven by the fact that I can connect with the Wifi without re-entering the PSK. I also already tried ‘forgetting’ the network, and again configuring it. But it still won’t connect during boot.

Hi,

If you are happy with using the commandline. You could try creating a config file, which should work on boot. Assuming dhcp, please advise if that is not the case.

/var/lib/connman/wifi.config:

[service_wifi]                          
Type=wifi                                          
IPv4=dhcp                                                
Name=*SSID*                     
Passphrase=*WIFIPASSWORD*

Thanks Tom.