EmonTx - RJ45 - Analogic/Pulse/Data?

Hello,

I intend to read the Teleinfo output of French electricity meters.
Some English info about what it is is available here: Teleinfo - Domoticz

I read from this post that it seems possible with EmonCMS: Emoncms dashboard & electric meter Linky (France)

All I need is a couple or resistances and an opto-isolator. as we can see on the first scheme in there: http://www.magdiblog.fr/gpio/teleinfo-edf-suivi-conso-de-votre-compteur-electrique/

But this set-up is used to be plugged into the GPIO slot of a Raspberry.
I’d like to use the RJ45 input of the EmonTx.

So my questions are:

  • Is the RJ45 input only for analogical sensors (such as the DS18B20) and pulse sensors (such as the Optical Utility Meter LED Pulse Sensor), as detailed in EmonTx V3.4 - OpenEnergyMonitor Wiki . Or can I use it for serial data sets ?
  • Is the RJ45 connection which is on the EmonTx provides a GND, a 3.3V and a data wire?
  • Will I have to update the Arduino in the EmonTx in order to send the data to my EmonBase, or can I do the process of the data sets directly in the EmonBase?

Thank you

1 Like

Hi there, I’m still investigating to understand the inputs and outputs of the EmonTx

When I look at this schematic…

…I see that there are:

  • 6 input/output in J4-J5-J6 rail
  • 8 input/output in the RJ45 slot (but don’t know if they are all connected to something

Then I try to match these entries with this table…

…But I’m a bit lost as I don’t manage to identify every input/output of the RJ45 and the rail

Then, when I see this picture…

…I see numbers from 1 to 8, but the captions have 9 lines.

I noticed that @Bill.Thomson, @Robert.Wall, @Mary201 were the last editors of the EmonTx wiki page. Would you have some hints for me?

1 Like

I would advise you download the full circuit diagram from emontx3/hardware at master · openenergymonitor/emontx3 · GitHub
Get both the PCB layout and the Schematic - be certain to download the raw file, not the screen view. You will also need to download and install Eagle CAD (free!). It is painful the first time, but you then have the drawings used for manufacture.

The RJ45 pin-out picture is wrong. Here is one I did earlier:

On the screw terminal block, the connections are
1 - (nearest corner of pcb) +5 V
2 - 3.3 V
3 - GND
4 - IRQ1 / D3
5 - ADC5 / D19
6 - D5

1 Like

Thank you @Robert.Wall for your help. And thank you @Mary201 for having updated the page there: EmonTx V3.4 - OpenEnergyMonitor Wiki

Then I understand that the D5 (Dig 5) is connected to the PD5(T1) on the ATMega. It can be connected either with the RJ45 port (pin #4)or the 6 pin port (pin #6)

So I believe I have to connect the RX data wire to the D5:


And then update the sketch of the board to read the serial data on the PD5(T1), and send it through the 433MHz.
Is that correct?

In theory, that should work.

From the link about the Teleinfo output, I think the meter is sending the reading as a serial data stream.

What will your emonTx be doing in addition to receiving this stream of data?

The problem I foresee is, the serial data stream must be accurately read and interpreted by the emonTx, and that means that the emonTx can do very little else while that is happening.

Do you have a sketch for the Atmel 328P that will read the Teleinfo data, or are you planning to develop one?

Do you mean that the EmonTx won’t be able to deal with other inputs or sending data to the 433MHz, because of the resources needed to compute the serial data ?

Some people already did that work. I mean, part of it.
(Sorry, parts of the texts are in French in the link below, but schematics and codes are in English).
In here: http://www.domotique-info.fr/2014/05/recuperer-teleinformation-arduino/ they use the serial port of a Arduino (and we can’t use the EmonTx’s one, which is used for the antenna)
In here: Arduino/teleinfo_rf.ino at master · Sirus10/Arduino · GitHub they read the serial data set on an Arduino Nano and send it to the serial port to a 433MHz antenna (full post there with schematics: Téléinfo EDF Arduino sans fil avec RFXCOM | Domotic and stupid geek stuff)

So I would like to adapt some of these codes to make it work within the EmonTx.
Actually, I don’t mind using Python on the EmonCMS side to decode everything I can.
I prefer not to change anything in the EmonTx but I’m not sure that’s possible…

I am assuming that you will merge the Teleinfo sketch and our emonTx sketch, and you can use the serial data port - see below.

I think that if you use the “Discrete Sample” sketch, and if it is necessary to tell the meter to send data, or if the meter sends the data automatically but there are big gaps between messages, then I think it will be easy. But if there are no gaps, you will need to modify the Teleinfo part to discard the data while the “emon” part is working.

But if you use the new “Continuous Monitoring” sketch, there is a real possibility that the processor will not be able to receive the data and do the “emon” measurements at the same time. The only way you will find out is by doing it. If that is the case, then doing the Teleinfo in a separate Arduino Nano will be the easy way.

I think it is possible to use the serial port for both for the programmer to upload your sketch, then by changing the connection to use your opto-coupler. But I do not know exactly how you manage the change.

I do not know if it is possible to receive the serial data using a normal digital input instead of the dedicated RX port. See https://www.arduino.cc/en/Reference/SoftwareSerial which seems to say it might be possible, using the interrupt (pulse counting) pin on the emonTx.

1 Like