moebius Posted August 22, 2017 Posted August 22, 2017 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?
chwe Posted August 22, 2017 Posted August 22, 2017 Connection over wifi? Opi zero's wifi cas crash the whole pi...
moebius Posted August 22, 2017 Author Posted August 22, 2017 yes, connection is over wifi - besides a reboot, is there a better way to solve it? Can you recommend an usb wifi adapter?
chwe Posted August 22, 2017 Posted August 22, 2017 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.
Bubba Posted August 22, 2017 Posted August 22, 2017 53 minutes ago, chwe said: You can try to set 'powermanagement on'. I think Chwe meant powermangement off
chwe Posted August 22, 2017 Posted August 22, 2017 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..
moebius Posted August 22, 2017 Author Posted August 22, 2017 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?
chwe Posted August 22, 2017 Posted August 22, 2017 I recommend the google custom search... better search results than with the built in search engine.
Bubba Posted August 22, 2017 Posted August 22, 2017 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.
moebius Posted August 22, 2017 Author Posted August 22, 2017 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?
chwe Posted August 22, 2017 Posted August 22, 2017 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.
Bubba Posted August 22, 2017 Posted August 22, 2017 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
Bubba Posted August 22, 2017 Posted August 22, 2017 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.
moebius Posted August 22, 2017 Author Posted August 22, 2017 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.
moebius Posted August 28, 2017 Author Posted August 28, 2017 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!
Recommended Posts