Emonhub died

That’s to be expected, emonhub has no control over the reset line of the rfm2pi mcu so restarting emonhub or indeed rebooting the os will not reset the rfm2pi, that’s a HW limitation.

If your rfm gets stuck eg a brownout, and I am referring to the rfm module onboard the rfm device rather than the whole device. You can “bring the RFM card back to life” by simply changing an rfm runtimesetting in emonhub.conf eg change the base id, group of freq, then save, then change it back and save. This causes the rfm2pi FW to reinitialise the rfm module after applying the change of settings.

For other “reset” situations, somewhere buried on the forums is a little script I wrote to pulse the reset pin (gpio4 pin 7) by running rfm2pi_reset from the commandline but I doubt it’s included on the image.

[edit] Here ya go I just searched for “reset_rfm2pi” and found this

[edit2] A little more info. The script used to be downloadable from the old oem forum. Looking at the post referenced ( RFM12PI receiver goes hard down sometimes) within the script from that linked post above, I’ve posted this code a couple of times

sudo wget -O /usr/bin/reset_rfm2pi http://openenergymonitor.org/emon/sites/default/files/reset_rfm2pi.txt
sudo chmod +x /usr/bin/reset_rfm2pi

which was an easy way to download and install the reset script to avoid the need for power cycling (no longer available on the url), I wonder if it’s still out there somewhere or perhaps we can put it in useful scripts or something?

1 Like