With the latest stable release of Emoncms core v10.2.4 its now possible to upload the latest EmonTxV3CM firmware to an EmonTx straight from an emonPi/emonBase via the Update Firmware tool on the Emoncms Admin page.
1. Connect the EmonTx to the emonPi using a USB to UART cable:
2. Navigate to Admin > Updates > UPDATE FIRMWARE ONLY, select the second item in the drop down menu for the serial port, it should be ttyUSB0. Select EmonTxV3CM from the firmware drop down menu. Click ‘Upload Firmware’:
I think this is a great addition. However, I think it needs to be broken out of the ‘Full Update’ as there is a distinct possibility of using it incorrectly.
I’d also suggest the ability to select a custom hex or one of the different sketches (e.g. 3Ph).
As a first step I was thinking it could be extended to cover a wider range of firmwares, E.g discreet EmonTX, 3ph, emonPiCM, EmonTH etc. I agree that it could be broken out.
The 3-phase sketch has so many possible permutations - about 3.5 million on the #defines alone - that it’s not practical to publish a pre-compiled version.
Thanks @TrystanLea very useful tool. Can I ask what is probably a stupid question. If I updated my EmonTX with this tool, do I need to do anything to the optional wifi module in order to get it to work? I just get a constant flashing light on the ESP8266 board.
Shouldn’t need to do anything. A mostly on, constant flashing light on the ESP board indicates that it is trying to connect to a WiFi network. If you click the boot button it should go back into access point mode I think and you can reconfigure…
It depends on what you updated your emonTx from. The3-phase sketch must communicate at 9600 baud or slower. That might mean the ESP8266 needs its speed changing to match. It’s all in the documentation.