Thank you for the is list - I need to run through this listā¦
āFirst update the existing setup to 9.9.4.ā - I have Version low-write 9.8.31 | 2018.06.21 - so I need to update. Should I use āemonpi Updateā or āemonBase Updateā button? Iām not clear what each does this instance. Alternative I could ssh and then a ā.shā?
Similarly the line āUpdate EmonCMS system (image is not on latest).ā - does that also use āemonpi Updateā or āemonBase Updateā button? etcā¦
Updating emonPi sketch:
If you do want to change the firmware, itās best to compile the Arduino sketch on your PC then transfer the .hex to the emonPi and upload directly from the RaspberryPi using avrdude. Emonhub will need to be stopped to free up the serial port. See example script to upload .hex emonpi/update at master Ā· openenergymonitor/emonpi Ā· GitHub
Not updating the emonPi sketch: EmonPi AC-AC input - #13 by pb66
āIf you use the āupdate RFM69Piā button rather than the āupdate emonPiā button it will update in exactly the same way but when it tries to upload the firmware at the wrong upload baud it will fail and the existing firmware will remain intact. This works as the 16MHz emonPi has a different bootloader to all the 8MHz RFM2Pi type devices.ā
If you have an emonPi with a totally stock sketch you are best using āupdate emonpiā to keep up to date.
If you have an emonPi with a modified sketch you are best using āupdate emonbaseā to avoid overwriting.
If you have an emonBase and you know your RFM2Pi or RFM69Pi is rfm69 based and has a totally stock sketch you are best using āupdate emonBaseā to keep it updated
If you have an emonBase with a rfm69 based RFM2Pi or RFM69Pi running a modified sketch OR if you have a rfm12 based RFM2Pi OR you are unsure what RFM2Pi you have you should use āupdate emonpiā to avoid over-writing the firmware.
Aside from the firmware differences, there is no difference, both buttons fully update the emonSD used in both the emonPi and emonBases. There is no emonHub update button, emonhub is updated along with emoncms and other softwares in that same emonSD update.
This was discussed in great length already, and thereās a link to the discussion in Glynās first post in this thread. Have a read through that discussion - the argument has already been lost
Iāve not been able to revive a couple of inputs - i.e. those from Robinās Mk2 pv diverter. The standard emontx and emonth nodes have been picked up and are updating, but not these additional ones. The imported backup file has these nodes (basically node ā12ā and ā13ā) listed in inputs, but null values. The log file shows an error:
2018-11-14 00:44:16.296|ERROR|phpmqtt_input.php|ErrorException: Undefined index: nodeid in /var/www/emoncms/Modules/input/input_model.php:206
but Iām on the edge of my knowledge hereā¦do I need to edit the script on the diverter (which I presume is still transmitting the data with the same format) or do I need to try and find these nodes in the php script?
I think that error just means that the firmware upload tool could not connect to the emonpi board, did you share the details of your system? Is it an emonpi?
Thatās nothing to worry about. The FW updated successfully this strace error happens when avrdude finishes. Itās due to our modified avrdude with āauto resetā to auto toggle a GPIO pin on a RasPi to reset the AVR controller.:
I did try and track this message down in the past but didnāt manage to fix it. Agree it would be best if the error wasnāt there! But nothing to worry about.
If you are referring to the emonPi, you will need to open up the enclosure and insert the SD card into the RaspberryPi. See this overview video showing the inside of the emonPi:
New Micro SD arrived today (16GB ? iso 8GB). Sorry for this silly question, just want to make sure. I assume I do a backup. Remove the old SD then insert the new SD and then do an āImport Backupā.
The base emonSD image is 8GB, we have expanded the data partition to fill the 16GB card. One of the main reasons for this is at 16GB cards are now cheaper and easier to source than 8GB! Economics of scale I guess. No harm in having more storage space.
Correct, before you remove the old card update your old emonPi then run an export using the backup module. Once done, download the compressed backup file.
Then once your up and running with the new image perform an import.
Pi Model B gen 1 EmonHub with old RFM12B radio runing emonSD-07Nov16 image
EmonTX v3 with old firmware
The emonSD-30Oct18 image didnāt boot on the old Pi 1, but I booted it on a Pi 3 where I was able to make the changes to /boot/config.txt suggested (three items to comment out) and it booted okay to login. I reverted emonhub.conf to 9600 baud for the radio, then I got stuck as Iām not able to pick up my feeds. Itās not a big deal ā Iām well overdue to update my hardware, Iāll go back to emonSD-07Nov16 until I figure it out.
2018-12-02 18:35:12,539 INFO MainThread EmonHub emonHub emon-pi variant v2.1.1
2018-12-02 18:35:12,543 INFO MainThread Opening hubā¦
2018-12-02 18:35:12,579 INFO MainThread Logging level set to DEBUG
2018-12-02 18:35:12,583 INFO MainThread Creating EmonHubJeeInterfacer āRFM2Piā
2018-12-02 18:35:12,649 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 9600 bits/s 2018-12-02 18:35:14,656 WARNING MainThread Device communication error - check settings
2018-12-02 18:35:14,661 INFO MainThread Setting RFM2Pi frequency: 433 (4b)
2018-12-02 18:35:15,666 INFO MainThread Setting RFM2Pi group: 210 (210g)
2018-12-02 18:35:16,671 INFO MainThread Setting RFM2Pi quiet: 0 (0q)