Tx4 CT6 not sending Energy data

How do i get my Tx4 with a new 6CT expansion to create inputs and feeds for E6-12? Here’s the options when i select “initialize”


Also, the Tx4 doesnt seem to actually be sending energy data since i switched to the 12CT firmware (emon_DB_12CT lowpowerlabs v 1.2.0), although it’s sending power data.

(i did reset all energy to zero as i changed the order of the inputs, but that was a few hours ago)

On the Inputs page, is your emonTx4 appearing as TWO nodes, the original one has the data for CT1 - CT6, the second will have the data for CT7 - CT12?

Is everything correct in the nodeID definition in emonhub.conf for CTs 7 - 12?

No, there’s a single entry in devices.

I’ve not made any changes to the config file because the documentation says

  1. Configure emonHub to decode the emon_DB_12CT radio packet .
    If you have the latest version of emonhub with autoconf enabled, it will automatically populate the node decoder configuration below. If you have an older system with autoconf disabled, follow the following manual steps:

(emphasis added)

There is nothing under [nodes] in my config file, and autoconf = 1 is set under [hub]. Here’s all my component versions - i rebuilt it a few weeks ago so i assume it’s a relatively new version!

Components: Emoncms Core v11.6.10 | App v3.0.1 | EmonHub Config v2.1.5 | Dashboard v2.4.1 | Device v2.2.6 | Graph v2.2.4 | Network Setup v1.0.5 | Backup v2.3.4 | Network v3.1.6 | Postprocess v2.4.7 | Sync v3.2.0 | Usefulscripts v2.3.11 | EmonScripts v1.8.7 | RFM2Pi v1.4.2 | Avrdude-rpi v1.0.3 | EmonPiLCD v2.0.1 | Emonhub v2.7.1

I think @TrystanLea will have to sort this out, because it’s not done what it should have done. Autoconf has been problematical since it appeared.

if i want to manually set it up, do i just add this to [nodes]? My Tx4 is connected via USB.

[[28]]
    nodename = emonTx4_28
    [[[rx]]]
        names = MSG, Vrms1, Vrms2, Vrms3, P1, P2, P3, P4, P5, P6, E1, E2, E3, E4, E5, E6, pulse, Analog
        datacodes = L, h, h, h, h, h, h, h, h, h, l, l, l, l, l, l, L, H
        scales = 1.0, 0.01, 0.01, 0.01, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0
        units = n, V, V, V, W, W, W, W, W, W, Wh, Wh, Wh, Wh, Wh, Wh, p, n

[[29]]
    nodename = emonTx4_29
    [[[rx]]]
        names = MSG, Vrms2, Vrms3, P7, P8, P9, P10, P11, P12, E7, E8, E9, E10, E11, E12, digPulse, anaPulse
        datacodes = L, h, h, h, h, h, h, h, h, l, l, l, l, l, l, L, L
        scales = 1.0, 0.01, 0.01, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0
        units = n, V, V, W, W, W, W, W, W, Wh, Wh, Wh, Wh, Wh, Wh, p, p

the Tx4 seems to be working fine.

oading configuration, list (l) command sent:

firmware = emon_DB_12CT
version = 1.2.0

hardware = emonTx4
voltage = 1phase
Loaded EEPROM config
vCal = 101.30
iCal1 = 20.00, iLead1 = 3.20
iCal2 = 50.00, iLead2 = 3.20
iCal3 = 20.00, iLead3 = 3.20
iCal4 = 20.00, iLead4 = 3.20
iCal5 = 20.00, iLead5 = 3.20
iCal6 = 50.00, iLead6 = 3.20
iCal7 = 20.00, iLead7 = 3.20
iCal8 = 20.00, iLead8 = 3.20
iCal9 = 50.00, iLead9 = 3.20
iCal10 = 50.00, iLead10 = 3.20
iCal11 = 20.00, iLead11 = 3.20
iCal12 = 20.00, iLead12 = 3.20
pulse = off
RF = off
datalog = 9.80
json = off
vrefa = 1.0297
MSG:1,V1:239.13,F:50.44,P1:1,P2:15,P3:91,P4:97,P5:1,P6:124,P7:155,P8:156,P9:141,P10:0,P11:0,P12:9

Those look ok to me, and you’ll need to turn autoconf off to prevent further issues.

1 Like

Hello @mnbf9rca as you have the emonTx4 connected via USB and have the radio turned off you do not need to configure emonHub nodes. The serial data comes through already decoded and bypasses that part of emonHub.

It looks like the inputs are appearing as expected. The energy values are not printed over the serial connection, it only prints the 12 power values, voltage and frequency. This was configured this way to support use of the emonTx4 with the EmonESP WiFi module which struggled with very long serial messages.

MSG:1,V1:239.13,F:50.44,P1:1,P2:15,P3:91,P4:97,P5:1,P6:124,P7:155,P8:156,P9:141,P10:0,P11:0,P12:9

One option if you want to use the energy registers, is to enable the radio and receive the data that way, it will transmit two data packets as @Robert.Wall describes and include the energy registers.

1 Like

An alternative, as you don’t use an ESP WiFi device, would be to edit the sketch in the emonTx4 to send everything you want via the USB port. What you need to do should be obvious, but if not I can give you the details.

2 Likes

thanks both. I much prefer the USB connectivity as i find it more reliable, so i used the Power to kWh process to log to a new feed E[1-12]. I prefer not to have to change too much config as no matter how much i write it down, i’ll forget and then when i need to rebuild it in a few years (e.g. my cheap SD card failed this january after 2 years) i lose track of what’s what.

If you edited your emonTx4 sketch, you wouldn’t need to add the power to kWh process. And the sketch has nothing to do with the SD card, so it will survive a failure.