I set up a few rpis in our production hall to scan barcode. Unfortunately wifi isn't very stable. When a raspberry loses the wlan connection it doesn't reconnect automatically.
We also have a few android smartphone which do the job pretty well. Seems they are able to reconnect automatically.
Any idea how to handle this?
Tryed to set a static ip and 'wlan0' in /etc/network/interfaces to ifup over a cron job like mentioned here. Couldn't get the wlan connection work via ifup.
auto wlan0
What type of wifi card is it? I have discovered that certain broadcom cards that are in Dell laptops are not compatible with linux. Once I replaced them with intel cards all was well.
First I'd be happy to properly set up wlan so I can ifup/ifdown.
The commands 'ifup wlan0' and 'ifdown wlan0' seem to work but I can't ping any server.
I would recommend that you perform some commands, but I cannot guarantee that they can remedy your problem, but I have researched again with part of what would suggest regarding connectivity.
At the moment I am with a lot of work but I gathered some websites that talk about this point you mentioned:
You don’t have a solution, you have a kludge which worked around the problem.
Ubuntu Mate normally uses Network Manager to manage networking. I don’t use static addresses, so have never explored this under Network Manager, but am sure it would be possible.
What you have in /etc/network/interfaces is a version of Debian networking, and not a reliable version. This can be improved if you use wpa-roam, but even if you get this going it is not as robust as Network Manager.
There are other network managers (Rasbpian used dhcpcd, which is quite robust, but lacks full support in Ubuntu), but I suggest you investigate Network Manager.
That’s my dmesg when it happens:
[17184.889487] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[17184.889500] brcmfmac: brcmf_fill_bss_param: Failed to get bss info (-110)
[17187.449506] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[17197.529474] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[17200.093210] smsc95xx 1-1.1:1.0 enxb827eb3903b8: hardware isn’t capable of remote wakeup
[17206.393571] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[17206.397577] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[17206.397595] brcmfmac: power management disabled
[17206.405940] IPv6: ADDRCONF(NETDEV_UP): enxb827eb5903b8: link is not ready
[17206.490672] smsc95xx 1-1.1:1.0 enxb827eb3903b8: hardware isn’t capable of remote wakeup
[17206.490787] IPv6: ADDRCONF(NETDEV_UP): enxb827eb5903b8: link is not ready
[17206.730628] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[17234.062008] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready