Community
OpenEnergyMonitor

OpenEnergyMonitor Community

How to restore deleted Inputs or start from Scratch

Tags: #<Tag:0x00007f1be258b100>

Hi, I wonder if anyone could advise what to do next, please?

I have an emonBase with emonpiRelease: emonSD-24Jul20 and 3 EmonTx’s

The relevant emonhub config section is below.

[[15]]
    nodename = emontx3cm15
    [[[rx]]]
       names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
       datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
       scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
       units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
       whitening = 1

[[16]]
    nodename = emontx3cm16
    [[[rx]]]
       names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
       datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
       scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
       units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
       whitening = 1

[[17]]
    nodename = emontx3cm17
    [[[rx]]]
       names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
       datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
       scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
       units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
       whitening = 1

When I set it up initially, all three nodes appeared on the input tab and were collecting data. Then after a day or two, two of the inputs stopped updating. I tried powering the EmonTx off and restarting the emonbase, but they wouldn’t update. The I tried deleting the three nodes (emontx3cm15,emontx3cm16,emontx3cm17) in the hope that restarting the Emonhub would simply start everything from scratch. Unfortunately they remain deleted and I’m not sure how to restore them.

I have no idea why the inputs stopped.

Everything seems to be running OK:

SERVICES
emonhub
Active Running
emoncms_mqtt
Active Running
feedwriter
Active Running - sleep 300s 0 feed points pending write
service-runner
Active Running
emonPiLCD
Failed Failed
redis-server
Active Running
mosquitto
Active Running
demandshaper
Active Running

Is there a simple way to restore the inputs or start from scratch?

Thanks!

Hello @Rhod_J, it sounds like either an issue on the EmonTx unit’s themselves or in a piece of software called emonhub that is running on your emonBase. Could you check the Emonhub Log under the Setup menu in emoncms? Do you see any values coming in from the 3 EmonTx’s or any errors printed?

Did you buy all three EmonTx units at the same time? When did you buy them? Do you see a flashing LED on the EmonTx units? it should flash briefly every 10s.

Hi, Thanks for your reply.

Yes, I bought them all the same time last November, but only recently have had time to set them up.

I can’t see any flashing lights on the EmonTX.

I can see Emonhub Log updated from Node 16 up until last night. I think I may have somehow deleted the log before this as it only goes back as far as 2020-10-18 16:17:05

I did change the node ID’s on the EmonTX using the serial connector on initial set up, and it seemed to work fine for a couple of days.

Did you save the changed NodeId’s to the EEPROM? It might be worth connecting the serial adapter to the EmonTx’s again to see that they are reporting the nodeid correctly.

It’s also possible to update the EmonTx firmware now by connecting the EmonTx via the serial adapter to the emonBase/emonPi and selecting the EmonTx serial port and firmware in the Admin > Update > Firmware section.

I think we missed out the flashing LED on one of the older variants of the EmonTxCM firmware so it might be worth doing a firmware update this way. Make sure the emonBase is up to date before you try updating the EmonTx’s.

OK, I’ve plugged the serial connection into the EmonBase and the EmonTX and clicked update firmware only with EmonTXV3CM selected.

I Get:


EUID: 1000

openenergymonitor_dir: /opt/openenergymonitor

type: firmware

firmware: emontxv3cm

then a number of these:

avrdude-original: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00

avrdude-original: stk500_recv(): programmer is not responding

then

avrdude-original done.  Thank you.

strace: |autoreset: Broken pipe
Flashing EmonTxV3CM with V 2.0.0  done

though when I use the Arduinio IDE program it doesn’t look as though the software version has changed? The Node ID’s appear to be correct.

emonTx V3.4 EmonLibCM Continuous Monitoring V1.20

OpenEnergyMonitor.org

RFM69CW Node: 16 Freq: 433MHz Group: 210

emonTx V3.4 EmonLibCM Continuous Monitoring V1.20

OpenEnergyMonitor.org

RFM69CW Node: 15 Freq: 433MHz Group: 210

emonTx V3.4 EmonLibCM Continuous Monitoring V1.20

OpenEnergyMonitor.org

RFM69CW Node: 17 Freq: 433MHz Group: 210

I’ll try plugging it in again to see if anything has changed.

Edit - formatted text. BT, Moderator.

OK, that seems to have worked.

2020-10-19 16:37:07,975 INFO MQTT Publishing: emonhub/rx/15/values 2,244.25,123,0,0,0,0,0,0,0,300,300,300,1,-66
2020-10-19 16:37:09,447 INFO MQTT Publishing: emonhub/rx/16/values 2,245.82,116,0,0,0,0,0,0,0,300,300,300,1,-62
2020-10-19 16:37:11,092 INFO MQTT Publishing: emonhub/rx/17/values 2,243.63,121,0,0,0,0,0,0,0,300,300,300,1,-67

All three nodes are collecting data. There’s still no flashing on any EmonTX though?

Thanks for your help!

There should be two serial ports listed in the dropdown before the firmware selection. Select the second port listed not ttyAMA0.

OK, Used ttyUSB0.

Updated firmware OK. Renamed Nodes using Arduino IDE, Confirmed firmware updated to v2.0.

The lights are now flashing and the feeds are being updated.

Again, thanks!

I’d forgotten you had added that.