Hello,
I wired up my recently ordered emonTx v3.4 (running the firmware it came with) to a raspberry Pi 2 running emoncms.
It is wired exactly according to the image in this guide:
https://openenergymonitor.org/forum-archive/node/3884.html
As I am using an AC-AC adapter for voltage measuring and power is supplied directly by the RPi, i removed JP2.
I tried to read out the serial data on " /dev/ttyAMA0" using a simple python script and there is definitely some data coming in every 10 seconds, when the emonTx is connected.
I also made sure, the Serial interface is enabled and not being used by the linux terminal. using “raspi-config”
This is my interfacer configuration. I commented out the [[RFM2Pi]] configuration, as it was using the same serial device.
[interfacers]
### This interfacer manages the EmonTx3 ESP format serial
[[SerialDirect]]
Type = EmonHubSerialInterfacer
[[[init_settings]]]
com_port = /dev/ttyAMA0
com_baud = 9600
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
#[[RFM2Pi]]
# Type = EmonHubJeeInterfacer
# [[[init_settings]]]
# com_port = /dev/ttyAMA0
# com_baud = 38400 # 9600 for old RFM12Pi
# [[[runtimesettings]]]
# pubchannels = ToEmonCMS,
# subchannels = ToRFM12,
Looking at the logfile, the only lines related to the serial connection ar those:
2020-04-04 01:58:03,841 INFO MainThread Creating EmonHubSerialInterfacer 'SerialDirect'
2020-04-04 01:58:03,846 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 9600 bits/s
2020-04-04 01:58:03,847 DEBUG MainThread Setting SerialDirect pubchannels: ['ToEmonCMS']
So I think everything sould be setup correctly, but there are no inputs created when i look at http://127.0.0.1/input/view
Does somebody have an idea of what could be going on?
Are there any disadvantages, when I go to the noRF firmware (it seems quiet old)
Update:
Using the serial monitor of arduino IDE, I see values like this coming in: