I am trying to use emonupload to change the AVR software for direct serial output.
My setup is a RPi 3, Nov16 release of emonpi SW, EmonTXv3.4.1 (dated March 2015) with RF69 module.
When I first ran emonupload it updated itself and created all the firmware folders and copies of latest firmwares.
I initially tried with direct wired connection from the ISP connection on the Emontx to the GPIO header of the Rpi and can see the serial output of the emontx when using option ‘s’ of emonupload but it wouldnt program a new firmware because it couldnt find a valid usb port.
So I connected a CP2102 usb-serial converter (NOT the openenergy one) between the Rpi and emontx ISP port and got a similar result.
In both cases, when running the firmware upload option (x) I get the following output:
emonTx 3-phase Upload
sudo avrdude -p atmega328p -c avrispmkII -P usb -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m -U flash:w:bootloaders/optiboot_atmega328.hex:i -Ulock:w:0x0f:m
avrdude-original: usbdev_open(): did not find any USB device “usb” (0x03eb:0x2104)
avrdude-original done. Thank you.
As a secondary observation of the emonupload program I notice that everytime I run it, it downloads the same firmware images, ie:
Testing internet connection…
Internet connection detected
Already up-to-date: emonUpload
Already up-to-date. repos/openenergymonitor-emonth2
Already up-to-date. repos/openenergymonitor-emonth
Already up-to-date. repos/openenergymonitor-emonpi
Already up-to-date. repos/openenergymonitor-emontxfirmware
Already up-to-date. repos/openenergymonitor-emontx-3phase
Latest openenergymonitor/emonth2firmware: V3.2.1
_ Downloading: firmware.hex Bytes: 49118 49118 [100.00%]_
Latest openenergymonitor/emonthfirmware: V2.6.0
_ Downloading: emonTH_latest.hex Bytes: 36885 36885 [100.00%]_
Latest openenergymonitor/emonpifirmware: V2.8.2
_ Downloading: firmware.hex Bytes: 50356 50356 [100.00%]_
Latest openenergymonitor/emontxfirmwarefirmware: V2.6.0
_ Downloading: firmware.hex Bytes: 53912 53912 [100.00%]_
Latest openenergymonitor/emontx-3phasefirmware: V0.9.4
_ Downloading: firmware.hex Bytes: 38022_