Hi @osde8info let me ask couple of clarification questions and re-iterate on couple of messages on this thread.
First of all, I see the device as offline now. Could you please clarify your / deviceâs timezone? What time is it in UTC when you say midnight?
On our side, I see that device was connected to balena VPN aronud 21:00 UTC yesterday. Itâd be good to know when our support team could connect to the device to check its logs.
Next, is the app running on OPi any different than the app that other RPi devices are running? Have you applied any specific network / connection configuration to the OPi?
Could you copy paste the contents of the files under /etc/NetworkManager/system-connections/?
I also wonder what the NetworkManager logs look like. Could you run journalctl -a -u NetworkManager and grab the output?
Do you have another OPi with the same setup? Do you experience the same issues on another OPi?
Doing some quick search online, I got the impression that OPi does not have reliable WiFi connection in general. So perhaps itâs better for you to pick another hardware for your IoT deployment.
Finally, what do you think about my colleagueâs earlier suggestion?
another workaround may be to wire up a watchdog type script to run periodically on the device, checking for network connectivity and manually reconnecting if detected offline.
Itâd be good to know if you could successfully force a wifi reconnect via a script when the device goes offline (before that midnight reset).
@osde8info thanks for the clarification. I have couple of more suggestion to help with troubleshooting.
Could you please enable persistent logging from Device Configuration menu?
This will allow the device to keep the logs across reboots. So we could investigate what went wrong before the reboot potentially fixes the issue.
Next, could you also run Device Health Checks and Device Diagnostics from the Diagnostics menu?
Itâd be great if you could send us the Device Diagnostics output.
Thanks @osde8info. I took a look at the logs just now but there is no logs about the earlier disconnect or issues because of the reboot. I donât see anything obvious right now. The wifi network connection looks good with full signal strength. There is nothing out of ordinary in the deviceâs NetworkManager configuration.
Could you reproduce the issue again now with the router restart?
With the persistent logging enabled, we will check the logs again.
this is proving impossible to debug as we seem to be losing lots of lots as soon as wifi disconnects
# journalctl -a -u NetworkManager
-- Logs begin at Fri 2020-04-17 10:50:17 UTC, end at Fri 2020-04-17 11:45:53 UTC. --
Apr 17 11:31:57 e19fbba NetworkManager[646]: <info> [1587123117.7141] manager: (resin-vpn): new Tun device (/org/freedesktop/NetworkManager/Devices/9)
send me your postal address and i will send you the OPI
obviously you can keep it or throw it away i have no further interest in it my primary concern was a flaw in the balena wifi stack but i dont have any further resources to prove or disprove this
Thank you for the new information that you sent. Iâve taken this up with our product team. Considering what has been discussed so far, as well as other online discussions, it seems that the WiFi chip on the Orange Pi Zero presents many problems, see e.g.
and
Since this is outside of our control, it would not be of much use if youâd ship your own device to us, and thereâs unfortunately not really something further we can do to assist you in this regard. Balena on this device has also been a community supported OS only (see here for an explanation of what this entails).
We hope that youâll have success with the other device types, and that youâll have a great experience with running them on balena! Please let us know if you encounter any other problems.
sure but i would just like to point out i have seen none of the wifi problems linked to the ONLY problem i have had with wifi is the balena wifi stack FAILING to RECONNECT after a wifi outage
@osde8info Thereâs one more thing you can try, which is to download the latest balenaOS image from the staging server, and testing the device with that image. Thereâs a good chance that that might not solve the problem, but it might be worth a shot.