# Device online with LAN but not using WIFI

**URL:** <https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298>\
**Category:** Product support\
**Tags:** raspberrypi3, wifi\
**Created:** [March 4, 2020, 5:26pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298 "2020-03-04T17:26:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 4, 2020, 5:26pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/1 "2020-03-04T17:26:59Z")

</div>

Hi,  
I’ve followed this tutorial [https://www.balena.io/blog/deploy-a-digital-signage-application-with-screenly-and-resin/](https://www.balena.io/blog/deploy-a-digital-signage-application-with-screenly-and-resin/) and all is running using LAN, but the wifi is not working, if I disconnect LAN cable the device it’s offline even after a phisical reboot.

I’ve checked the resin-wifi file and ssid and pass is correct…

Any advice here?

---

<div class="post-metadata">

**Author:** ![Ereski](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Ereski](https://forums.balena.io/u/Ereski)\
**Post date:** [March 4, 2020, 5:32pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/2 "2020-03-04T17:32:38Z")

</div>

Hi,

What OS version are you using? How did you configure the OS image before flashing? What device are you using? You could also enable support access to the device and share the UUID with us so we can take a look?

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 7:16am UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/4 "2020-03-05T07:16:13Z")

</div>

Hi!!  
thanks a lot for your quick answer.

OS: balenaOS 2.47.0+rev1  
UUID: 3b575bf21ad5afc36918d549be964a5f  
Support access granted

---

<div class="post-metadata">

**Author:** ![afitzek](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/afitzek/32/359_2.png) [@afitzek](https://forums.balena.io/u/afitzek)\
**Post date:** [March 5, 2020, 8:34am UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/6 "2020-03-05T08:34:37Z")

</div>

Hi,

The configured wifi network is not in range. You can see the available wifi network by running `nmcli d wifi list` in the host os. Depending on the raspberry pi version it might not support a 5GHz network (in case your network is 5GHz). Also you might have to check the WiFi channels, there can be regional differences for some special channels.

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 9:40am UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/8 "2020-03-05T09:40:29Z")

</div>

The channel affects or it’s explicit in the resin-wifi ?  
I mean, what I should have to take in account about the channels?

---

<div class="post-metadata">

**Author:** ![afitzek](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/afitzek/32/359_2.png) [@afitzek](https://forums.balena.io/u/afitzek)\
**Post date:** [March 5, 2020, 10:39am UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/9 "2020-03-05T10:39:00Z")

</div>

Hi,

Sorry I might not have been clear enough in my last answer. : ) I meant that the channels of the WiFi network (the AP) should be compatible with the settings and HW of the device. Depending on the country these can be different or blocked because of local regulation. See [https://en.wikipedia.org/wiki/List\_of\_WLAN\_channels#2.4\_GHz\_(802.11b/g/n/ax)](https://en.wikipedia.org/wiki/List_of_WLAN_channels#2.4_GHz_(802.11b/g/n/ax)) for more info. With `iw phy0 info` you should be able to see the available channels on the device.

Also you don’t have to disconnect the ethernet to debug the WiFi connectivity. You can check if a WiFi connection can be established using `nmcli` in the webterminal, while the device is connected through ethernet.

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 10:56am UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/11 "2020-03-05T10:56:19Z")

</div>

Hi!  
To know that I can check the WIFI connection while device is connected to the LAN is a very good info!!

Despite this…still…nothing. I’m using the best wifi signal according:  
nmcli d wifi list

But the nmcli shows wlan: disconnected

BTW: all wifi’s in this place are in 2,4Ghz band

---

<div class="post-metadata">

**Author:** ![JSReds](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jsreds/32/2929_2.png) [@JSReds](https://forums.balena.io/u/JSReds)\
**Post date:** [March 5, 2020, 11:15am UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/13 "2020-03-05T11:15:19Z")

</div>

Hi!  
would it be possibile to setup an hotspot with your mobile phone to make other tests to see if the problem is in the device or in the OS or maybe in the network you are trying to reach

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 11:50am UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/14 "2020-03-05T11:50:23Z")

</div>

I’ll try

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 1:16pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/16 "2020-03-05T13:16:01Z")

</div>

Ok, I have a hotspot activated as you can see in the picture. But nmcli d wifi list command doesn’t show the wifi. I attach the image too

 ![available-wifis](https://global.discourse-cdn.com/balena/original/2X/b/bb9f77718b4bb57dfe5a7335e086a91387d1a215.png) ![hotspot](https://global.discourse-cdn.com/balena/original/2X/9/955459711cfed199b77aba14fe87ef896cce4dfd.png)

---

<div class="post-metadata">

**Author:** ![JSReds](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jsreds/32/2929_2.png) [@JSReds](https://forums.balena.io/u/JSReds)\
**Post date:** [March 5, 2020, 1:25pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/18 "2020-03-05T13:25:11Z")

</div>

Thank you for the test made, it looks strange that the device can finds some and not others. Could you please give us the output of `dmesg` and `journalctl -u NetworkManager --no-pager` to see if there are some errors please ?

---

<div class="post-metadata">

**Author:** ![JSReds](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jsreds/32/2929_2.png) [@JSReds](https://forums.balena.io/u/JSReds)\
**Post date:** [March 5, 2020, 1:31pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/21 "2020-03-05T13:31:18Z")

</div>

Would you by chance have a usb wifi dongle to try test with ?

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 1:39pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/22 "2020-03-05T13:39:40Z")

</div>

[dmesg.log](https://forums.balena.io/uploads/short-url/4UFpBwkPyUuLk99wh6MjRpWme46.log) (251.0 KB) Here you have the outputs  
[NetworkManager.log](https://forums.balena.io/uploads/short-url/DyaeiFmWvyN1xCNeXs2LV7wyMl.log) (374.5 KB)

Unfortunately I don’t have a usb wifi…

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 1:47pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/25 "2020-03-05T13:47:47Z")

</div>

I found an error:  
Mar 05 06:49:21 3b575bf NetworkManager[794]: [1583390961.7982] keyfile: load: “/etc/NetworkManager/system-connections/resin-wifi-01”: failed to load connection: invalid connection: 802-11-wireless-security.key-mgmt: ‘wpa2-psk’ is not a valid value for the property

This info is different from resin file on /mnt/boot/

I rewrite it both and reboot…but nothing

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 1:52pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/27 "2020-03-05T13:52:04Z")

</div>

Well…it seems I could connect to the wifi using this:  
nmcli d wifi connect my\_wifi password

I will have to do it every time?

---

<div class="post-metadata">

**Author:** ![JSReds](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jsreds/32/2929_2.png) [@JSReds](https://forums.balena.io/u/JSReds)\
**Post date:** [March 5, 2020, 2:00pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/29 "2020-03-05T14:00:11Z")

</div>

You shouldn’t need to do that every time. I would ask you to share your connection file if possibile. Meanwhile to check the auto connection you can add `autoconnect=true` to the [connection] section of your connection file in /mnt/boot/system-connection/resin-wifi-02

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 2:18pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/30 "2020-03-05T14:18:23Z")

</div>

id=resin-wifi-01  
type=wifi  
autoconnect=true

[wifi]  
hidden=true  
mode=infrastructure  
ssid=Espai20Maig

[ipv4]  
method=auto

[ipv6]  
addr-gen-mode=stable-privacy  
method=auto

[wifi-security]  
auth-alg=open  
key-mgmt=wpa-psk  
psk=m4r14n40-2020  
~  
~  
~

---

<div class="post-metadata">

**Author:** ![JSReds](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jsreds/32/2929_2.png) [@JSReds](https://forums.balena.io/u/JSReds)\
**Post date:** [March 5, 2020, 2:34pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/33 "2020-03-05T14:34:08Z")

</div>

The connection file looks correct besides missing the first [connection] bit but I assume that was miss pasted. I would recommend you to try to reboot and see if the connection comes up again, it really should, if not I’ll need to see the NM logs again. May I also ask you the device type ?

---

<div class="post-metadata">

**Author:** ![pinxe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pinxe/32/1773_2.png) [@pinxe](https://forums.balena.io/u/pinxe)\
**Post date:** [March 5, 2020, 2:46pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/34 "2020-03-05T14:46:16Z")

</div>

Yes sorry, I forgot [connection], but it’s in my file, as you assumed was a PASTE fail… 😉

I’ve just rebooted and it connects…many thanks, I’ll check again all tomorrow.

BTW the device is a RPI3

---

<div class="post-metadata">

**Author:** ![JSReds](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jsreds/32/2929_2.png) [@JSReds](https://forums.balena.io/u/JSReds)\
**Post date:** [March 5, 2020, 3:01pm UTC](https://forums.balena.io/t/device-online-with-lan-but-not-using-wifi/72298/36 "2020-03-05T15:01:53Z")

</div>

Perfect. let us know if you have any other problems
