Hello,
However, I am now busy reading the digital meter (Belgium) which was installed this year with a PIC. I would like to activate a relay if there is a surplus of injected current.
However, it is not very clear to me to read the value of the current injected current (1-0:2.7.0). So that I use " if .... end if " to program a relay to be energized upon current injection. I use a 16f877a, where the RXD of the RJ12 connector is inverted by a 74LS04 and is thus connected to the RX input of the PIC. The RTS of the RJ12 connector is connected to the GND. RJ12 connector is connected to the smart meter, and this smart meter is also already activated to enable reading. The serial_SW_baudrate is set to 9600 and serial_SW_invert = true. The 16f877a is connected with a crystal.
I would like the current injected stream in a byte (8 bit unsigned value 0 to 255). The injected power is passed on by the meter in Kwh.
Can someone help me to read this value?
Hi Filip,
It looks like you are trying to decode a (what we call) "smart meter". Looking at your mail it is a meter that conforms to the DSMR (Dutch Smart Meter Requirements). If so, I think a PIC is not directly the best choise. DSMR is rather complex, and timing is critical. Reading your mail I think it might be too complex for you.
I suggest you start your decoding efforts with a thorough study of the requirements (https://www.netbeheernederland.nl/publicatie/dsmr-502-p1-companion-standard) and when you want to decode them I suggest you use more capable hardware like a Raspberry Pi.
A RPi 1A will suffice, even that is way more powerfull than a PIC and far easier to debug.
RPi examples can be found on the internet. I have never seen anyone using a PIC for this.
regards,
JH.
ps. I don't know what DSMR version your meter is running, but current versions (>=4.0) run at 115200 baud.
jh.
Hello Filip,
Hi Filip,
It looks like you are trying to decode a (what we call) "smart
meter". Looking at your mail it is a meter that conforms to the
DSMR (Dutch Smart Meter Requirements). If so, I think a PIC is not
directly the best choise. DSMR is rather complex, and timing is
critical. Reading your mail I think it might be too complex for
you.
I suggest you start your decoding efforts with a thorough study
of the requirements
(https://www.netbeheernederland.nl/publicatie/dsmr-502-p1-companion-standard)
and when you want to decode them I suggest you use more capable
hardware like a Raspberry Pi.
A RPi 1A will suffice, even that is way more powerfull than a PIC
and far easier to debug.
RPi examples can be found on the internet. I have never seen
anyone using a PIC for this.
regards,
JH.
ps. I don't know what DSMR version your meter is running, but current versions (>=4.0) run at 115200 baud.
jh.
To view this discussion visit https://groups.google.com/d/msgid/jallist/GVXP195MB163758C5E4F9CAC740997569E65E2%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.