Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OPI zero and lite connection loss after 5 hrs

Featured Replies

I want to use an OPI zero (armbian 5.31) to log data from a smart meter to influxdb.

 

Everything works, but after 5 hrs i cant ssh into the pi - also, no data is written to the db.

The pi has heatsinks and the temperature is around 53°C.

 

Now i tried it without the logging and after 5 hrs, the pi was again not reachable (i dont know, if it crashed or only the connection went down).

Last try was with a pi lite which showed the same behavior. 

 

What could be the problem? 

Connection over wifi? Opi zero's wifi cas crash the whole pi... 

  • Author

yes, connection is over wifi - besides a reboot, is there a better way to solve it?

 

Can you recommend an usb wifi adapter?

Wifi module of opi0 has some stability isseus. You can try to set 'powermanagement on'. Seems that it works better. Would be nice if you can give a feedback if it works. Cause I only tested it on one device at the moment. :)

53 minutes ago, chwe said:

You can try to set 'powermanagement on'.

I think Chwe meant powermangement off

No, on! With powermanagement off i loss connectivity after 5-12h... Seems that it's more stable with powermanagement on. Ping is anyway shity, so doesn't improve something if you have powermanagement off.. ;)

  • Author

Do you mean the wifi powermanagement?

This is off by default on my pi...i've changed it to on now.

root@opi: iw wlan0 set power_save on

Any recommendation about a reliable usb wifi adapter?

 

 

I have 16 zero running 24/7 the only way they stay "online" is with it set to off. Otherwise they drop off after a few hours of inactivity.

  • Author
5 minutes ago, Bubba said:

I have 16 zero running 24/7 the only way they stay "online" is with it set to off. Otherwise they drop off after a few hours of inactivity.

Could you tell me more about your setup? Which os, version etc, so that i can also try to setup a stable pi0?

Interesting, my OPi crashes with power management off after a few hours. Ok, the setup is a little bit different, it get's pinged every then seconds and it sends data via mqtt every minute. Do you have the rev. 1.4 or 1.1? 

There are some claimings that rev. 1.4 improves wifi. Maybe a 'false advertising', maybe it works now better with power management on.

 

There is 10 1.1 and 6 1.4

They all run the older kernel.

I found code on the forum which kills all but one core, and slows down the ram, made them "stable"

Not able to get to it now, only access to zeros is from the local network at the NOCs

 Will check my notes when I go back to town

 

I saw no wifi improvement between the two versions.

The wifi is only used by 1 or 2 people standing 10 feet or less from the zero and the files are small.

  • Author

Mine is rev 1.4.

 

It is already running only on one core with 960Mhz max. (i dont need the performance for the logging and wanted to reduce heat)

Dram speed i left unchanged.

  • Author

I've found the problem:

There is something wrong with the dhcp process between the pi and dnsmasq (on openwrt). After the initial lease, somehow the pi cant renew the ip address afterwards.

A manual "dhclient -r; dhclient" works, so as a workaround i putted the commands in a little script...

 

Uptime is now 4 days (with wifi powermanagement "on")

Thanks for the help!

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.