Page 1 of 5

Reading the P1 port of a NTA8130 Dutch Smart Meter

Posted: Fri Feb 25, 2011 11:30 am
by eDsuB
Because I am participatring in a pilot I now have a 'genuine' Dutch Smart Meter that is conform the NTA8130 standard and that has a so-called P1 port for local use.

I am planning to build an interface cable (between the meter an a computer) to collect the data from that port in order to store/analyze/visualize my energy consumption.
There is lots of info on the net about the protocol and also a little bit on the technical (electrical) characteristics of this P1 port.

Is there anyone who is allready working on such an interface cable?

(I noticed some students presented a more complicated solution on the same subject this week, but I want something that is very simple hardware-wise and do the work in software: hanze.nl/home/Over+de+Hanzehogeschool/N ... um=twitter )

Re: Reading the P1 port of a NTA8130 Dutch Smart Meter

Posted: Fri Feb 25, 2011 11:33 pm
by Verkenner
Hi eDsub,

Participating in the same (interesting) pilot in Hoogkerk.

Perhaps you can start with reading the doc's about the interface (Dutch Smart Meter Requirements).
The website: http://www.energiened.nl/Content/Public ... tionID=363
The manual: http://www.energiened.nl/_upload/bestel ... l%20P2.PDF

Now Enexis can provide you a back-wards meter for free. ;-)

To be cont.
Best regards, Verkenner

Re: Reading the P1 port of a NTA8130 Dutch Smart Meter

Posted: Sat Feb 26, 2011 1:57 am
by eDsuB
I think I know these docs (mobile now) but there is not much info on the electrical / hardware spec of the interface.
I think i am goimg to try a serial TTL to USB cable for reading by putting the req line 'high' an then analyzing the data feed...

Joost

Reading the P1 port Next step

Posted: Mon Feb 28, 2011 8:45 am
by Verkenner
P1 is RJ-11 RS485 port
IEC 62056-21 in Mode D 9600 bd

To be cont.
Verkenner

Re: Reading the P1 port of a NTA8130

Posted: Mon Feb 28, 2011 11:16 am
by eDsuB
A bit off-topic (as this thread is about a DIY solution for reading the P1) but nevertheless interesting:
This appars to me as the first (soon!) commercially available solution to do something with P1 metering data
http://www.domoticaforum.eu/viewtopic.p ... uby#p45239

Re: Reading the P1 port Next step

Posted: Mon Feb 28, 2011 11:28 am
by eDsuB
Verkenner wrote:P1 is RJ-11 RS485 port
IEC 62056-21 in Mode D 9600 bd

To be cont.
Verkenner
mm I notice you have investigated some more.
I guess this (affordable) type of converter-cable should be able to do the trick:
cgi.ebay.nl/RS485-RS-485-RS422-RS-422-S ... 3282wt_915
Just connect a RJ11 properly to the terminals and off we go?

Re: Reading the P1 port of a NTA8130 Dutch Smart Meter

Posted: Mon Feb 28, 2011 1:21 pm
by Henk
Yes a "slimme meter adapter" has been developed - it will connect to a P1 meter and transmit the data to the Quby display by Zwave technology ..
This module is not commercial available and is being used in energy management projects by a number of Dutch energy providers (like Enexis)

Henk

Next step II

Posted: Mon Feb 28, 2011 8:40 pm
by Verkenner
Joost, look at this .PDF.

http://www.alectryon.nl/dataloggers/atl ... Manual.pdf
Page 2 and 4

But it's the software that makes it. ;-)

To be cont.

Verkenner

Re: Next step II

Posted: Tue Mar 01, 2011 6:56 pm
by eDsuB
Verkenner wrote:Joost, look at this .PDF.

http://www.alectryon.nl/dataloggers/atl ... Manual.pdf
Page 2 and 4

But it's the software that makes it. ;-)

To be cont.

Verkenner
Looks interesting, but I IF the P1 is a 'simple' RS485 then any RS485 to USB cable would do.
But I an still not sure if the P1 uses the RS485 bus-strucure. The P1 has a simple setup: Put the Requestline high and the meter will start sending its data on the dataline. That sounds much simpler than RS485... This made me think at first of a simple RS232 TTL to USB convertercable

Step III: Discovering P1

Posted: Sat Mar 12, 2011 11:45 pm
by Verkenner
Hi Joost, did some investigation.

You need a converter-cable USB<--> TTL (3.3 volt not 5 volt)
Doc: http://docs-europe.electrocomponents.co ... e8ee81.pdf

E.g.:
http://nl.rs-online.com/web/search/sear ... um=0429284

http://www.rs232-converters.com/single_ ... verter.htm (cable and driver)
http://www.superdroidrobots.com/shop/it ... itemid=795

http://www.tme.eu/en/katalog/?art=TTL-2 ... ers%3D1%26
http://www.dontronics-shop.com/ftdi-ttl ... cable.html

http://microcontrollershop.com/product_ ... 1e1b398b42

So you get an extra COM-port (serial) in Windows.

The P1 is a RJ12 connector. You need 3 wires:
PIN 2: R-in/out Request input from the PC
PIN 3: Ground
PIN 5: D-in/out Data out the meter

Read the electricitymeter with the command (9600 bd): /XXXZ Ident Cr LF CR LF Data ! CR LF
Data transfer is requested with the request line and by software initiated every ten seconds

The Metering System transmits the data message immediately following the activation through the Request signal.
A series of blocks containing the following are sent: / X X X 5 Identification CR LF CR LF Data ! CR LF
An acknowledgement signal from the metering system is not provided.

To be cont. ;-)

RGRDS, Verkenner

Re: Reading the P1 port of a NTA8130 Dutch Smart Meter

Posted: Mon Mar 14, 2011 8:28 pm
by eDsuB
Because I was not sure about the correct voltage I allready ordered a USB to TTL converter. It supplies both 3.3v and 5v on the TTL side.
Via a software driver I will get a virtual com port that I can read.

The p1 companion standard specifies a voltage level of "aprox. 5V", so I guess 5V it has to be. Where did you find the 3.3V spec?

Step IV reading the KWH-Meter

Posted: Mon Mar 14, 2011 9:16 pm
by Verkenner
I tested, and it worked ;-)

Joost: This is the telegram

!
/ACE5ACE4KGPRS

0-0:96.1.0*255(0505514284290517)
1-0:1.8.0*255(006066.388*kWh)
1-0:1.8.1*255(003918.196*kWh)
1-0:1.8.2*255(002148.192*kWh)
1-0:2.8.0*255(000905.811*kWh)
1-0:2.8.1*255(000496.123*kWh)
1-0:2.8.2*255(000409.688*kWh)
0-0:96.14.0*255(02)
1-0:15.7.0*255(000110*W)
0-0:17.0.0*255(0100*A)
0-0:96.3.10*255(1)
!

I want to install the new Smart meter next week.
For electricity and natural gas. Yes.

After that the most difficult step: reading the data into HomeSeer.

Regards, Verkenner

Re: Reading the P1 port of a NTA8130 Dutch Smart Meter

Posted: Tue Mar 15, 2011 6:33 pm
by eDsuB
Nice result.

Did you use 3.3v or 5V to get this?
How did you trigger the data (ie. what did you put on the request line)?
Is this trelegram exactly what you received on the COM port?
The first string seems different from the P1 protocol definition as specified ion the P1 companion guide.
Based on the IEC62056-61 protocol standard also the use of brackets in the rest of the data records appears 'strange' to me, the same counts for the specified unit identifier (kWh, W, A which is allready denoted by the record identifier) and the use of the asterisk (I would expect a dot there).
Also I am missing some other record-identifiers (eg. 0-0:42.0.0.255, 0-0:96.14.0.255, ....)

Re: Reading the P1 port of a NTA8130 Dutch Smart Meter

Posted: Tue Mar 15, 2011 6:44 pm
by eDsuB
hmm, forget that last posting. I just noticed I had an old p1 Companion standard.
Based on version 3.0 of the "Dutch Smart Meter Requirements v3 0 final P1.doc" a valid telegram would be:

Code: Select all

/ISk5\2MT382-1000
0-0:96.1.1(4B384547303034303436333935353037)
1-0:1.8.1(12345.678*kWh)
1-0:1.8.2(12345.678*kWh)
1-0:2.8.1(12345.678*kWh)
1-0:2.8.2(12345.678*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(001.19*kW)
1-0:2.7.0(000.00*kW)
0-0:17.0.0(016*A)
0-0:96.3.10(1)
0-0:96.13.1(303132333435363738)
0-0:96.13.0(303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F
303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F
303132333435363738393A3B3C3D3E3F
0-1:96.1.0(3232323241424344313233343536373839)
0-1:24.1.0(03)
0-1:24.3.0(090212160000)(00)(60)(1)(0-1:24.2.1)(m3)
(00000.000)
0-1:24.4.0(1)
!
Please let me know if you used the 3.3V or 5V voltage level.
And how you did trigger the meter (via request line) to start sending its telegrams.

The P1 port of the electricitymeter

Posted: Tue Mar 15, 2011 8:54 pm
by Verkenner
I used a USB-cable: TTL-232R-3V3
It's strange, but I did not send a request.
Every 10 sec automaticly a telegram arrives in my terminal program om my PC.
The electricitymeter is a Itron ACE4000 GTMM.

Verkenner