Reading the P1 port of a NTA8130 Dutch Smart Meter

Forum about Smart meters for Energy, Gas and Water and all related
eDsuB
Starting Member
Starting Member
Posts: 33
Joined: Mon Jan 11, 2010 1:25 pm
Contact:

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

Post by eDsuB »

You did NOT send a request?
What did you connect to the requestline of P1?
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

No request for telegram

Post by Verkenner »

Yes, I did NOT send a request. ;-)
The telegram is comming automatic every 10 sec.

GRTZ, Verkenner
Best regards, Verkenner
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

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

Post by Verkenner »

Placed the smart meters. See picture.
2 smart electricity (both fully NTA complaint) and 1 natural gas meter.
The gasmeter is connected with a yellow cable to the right electricity meter.
The right electricity meter has a GPRS (SIMM) connection to Enexis.

(Please note: Not every smart meter is smart (e.g. Oxxio))
So not all meters can be read out with P1.

RGDS, Verkenner
Attachments
Smart metering 2011.jpg
Smart metering 2011.jpg (54.49 KiB) Viewed 20613 times
Best regards, Verkenner
eDsuB
Starting Member
Starting Member
Posts: 33
Joined: Mon Jan 11, 2010 1:25 pm
Contact:

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

Post by eDsuB »

I received my Serial-USB converter, soldered the wire and mounted a RJ11 connector.
Good News is that I receive data every 10 seconds.
Bad News is that the data is not readable, which points in the direction of wrong connection settings.
I tried it at 9600baud and various settings of parity, stopbits and handshake.
Can you tell what connection settings you used?
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

Exploring P1

Post by Verkenner »

Hi J.

First install the FTDI driver (You did already I suppose).
Find the lastest drvrs here: http://www.ftdichip.com/FTDrivers.htm

Settings in Hyperterminal: 9k6, 8 data, no par, 1 stop, no handshaking

When that does not work then: 9k6, 7, E, 1

I hope it's not a problem with the power 3V3 resp. 5 volt.
If it does not work then you can try my cable. TTL-232RG-VIP-WE (www.ftdichip.com) We will find out !

Or Autodetection ;-)
Best regards, Verkenner
eDsuB
Starting Member
Starting Member
Posts: 33
Joined: Mon Jan 11, 2010 1:25 pm
Contact:

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

Post by eDsuB »

I will try, but if I remember correctly I tried your fist suggestion (9600/8/n/1/n) wich is more or less a default for Hyperterminal.
Maybe the codepage used is different.
My USB-Serial adapter is a different one than you have. Mine is a CP2102 based and supports both 3.3V and 5V signal levels.
http://cgi.ebay.nl/ws/eBayISAPI.dll?Vie ... 0393339984
I installed the appropiate drivers.
The fact that I do receive data indicates that the physical connection is ok.
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

Beating the P1 ;-)

Post by Verkenner »

After installing the driver and connecting the cable the OS creates a com-port.
That COM-port 's of course the channel your terminal program communicates with.

Indeed when you receive some characters the hardware probably is oké.
You're near the solution.
Otherwise we change cables to test.

SUC6 !
Best regards, Verkenner
eDsuB
Starting Member
Starting Member
Posts: 33
Joined: Mon Jan 11, 2010 1:25 pm
Contact:

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

Post by eDsuB »

I seem to be lost
Not getting any further. No matter how I change settings for the COM port, I keep receiving 'garbage'.
My P1 DOES send correct telegrams because the pilot energiemanagement.nl interface does read it correctly.(I am participating in that pilot) .

Did you configure anything special in the data logger.
Do you receive a readable telegram when using Hyperterminal?

This is a dump of one telegram 10-second sequence I receive (in hex):

Code: Select all

28 1b 56 0a 65 d4 52 d5 64 8f 93 	)Ö½å=(.V.eÔRÕd“
5a f2 f6 96 56 d6 e5 bd 56 fb 8b 8d 93 a3 9d b4 	Zòö–VÖå½Vû‹“£´
f2 bb f6 97 27 66 b2 d9 96 f6 96 f6 96 56 96 f6 	ò»ö—'f²Ù–ö–ö–V–ö
96 96 96 d6 92 d6 99 9d 66 96 76 92 d6 92 f6 d6 	–––Ö’Ö™f–v’Ö’öÖ
29 d6 9d 69 b6 9d b4 64 eb 5e 9f 9f 97 27 c9 cb 	)֝i¶´dë^ŸŸ—'ÉË
93 97 95 21 f1 68 29 d6 9d 69 b6 9d b4 64 db 5e 	“—•!ñh)֝i¶´dÛ^
9f 9f 99 9f 8d a3 99 91 64 25 21 f1 68 29 d6 9d 	ŸŸ™Ÿ£™‘d%!ñh)֝
69 b6 9b b4 64 eb 5e 9f 9f 9f 8f c9 9b 99 9b 95 	i¶›´dë^ŸŸŸÉ›™›•
21 f1 68 29 d6 9d 69 b6 9b b4 64 db 5e 9f 9f 9f 	!ñh)֝i¶›´dÛ^ŸŸŸ
93 8d a3 9d 27 b2 95 21 f1 68 29 d6 9f a5 9f 8b 	“£'²•!ñh)ÖŸ¥Ÿ‹
8d 93 a3 9d c9 fb af 9f 9f 9f 9d 2b 39 bd 52 fb 	“£Éû¯ŸŸŸ+9½Rû
8b 9d b4 32 fb af 9f 9f 9f 9f a3 91 c9 25 21 d1 	‹´2û¯ŸŸŸŸ£‘É%!Ñ
29 d6 9d 69 b6 9b b4 32 fb af 9f 9f 9f 9f a3 9f 	)֝i¶›´2û¯ŸŸŸŸ£Ÿ
9f ab 0a 14 2b 39 bd 56 fb 8b 9d 24 b4 36 fb af 	Ÿ«..+9½Vû‹$´6û¯
9f 8d 8d 8d a3 9f 9f ab 0a 14 2b 39 bd 56 fb 8b 	Ÿ£ŸŸ«..+9½Vû‹
8d 93 a3 99 a3 9d f6 eb 5a ca d6 9f a5 9f 8b 8d 	“£™£öëZÊÖŸ¥Ÿ‹
93 a3 9d 66 b4 f2 6b 29 d6 9f a5 9f 8b 8d 93 a3 	“£f´òk)ÖŸ¥Ÿ‹“£
9d 66 b4 f6 6b 29 d6 bd e5 3d                   	f´ök)Ö½å=
Another telegram in decimal:

Code: Select all

040 027 086 010 101 212 082 213 100 143 147 090 242 246 150 086 	(.V.eÔRÕd“Zòö–V
214 229 189 086 251 139 141 147 163 157 180 242 187 246 151 039 	Öå½Vû‹“£´ò»ö—'
102 178 217 150 246 150 246 150 086 150 246 150 150 150 214 146 	f²Ù–ö–ö–V–ö–––Ö’
214 153 157 102 150 118 146 214 146 246 214 041 214 157 105 182 	Ö™f–v’Ö’öÖ)֝i¶
157 180 100 235 094 159 159 151 039 201 187 050 141 171 010 020 	´dë^ŸŸ—'É»2«..
161 165 214 157 105 182 157 180 100 219 094 159 159 153 159 141 	¡¥Öi¶´dÛ^ŸŸ™Ÿ
163 153 145 100 037 033 241 104 041 214 157 105 182 155 180 100 	£™‘d%!ñh)֝i¶›´d
235 094 159 159 159 143 201 155 153 155 149 033 241 104 041 214 	ë^ŸŸŸÉ›™›•!ñh)Ö
157 105 182 155 180 100 219 094 159 159 159 147 141 163 157 039 	i¶›´dÛ^ŸŸŸ“£'
178 149 033 241 104 041 214 159 165 159 139 141 147 163 157 201 	²•!ñh)ÖŸ¥Ÿ‹“£É
251 175 159 159 159 157 043 057 189 082 251 139 157 180 050 251 	û¯ŸŸŸ+9½Rû‹´2û
175 159 159 159 159 163 143 039 149 033 209 041 214 157 105 182 	¯ŸŸŸŸ£'•!Ñ)֝i¶
155 180 050 251 175 159 159 159 159 163 159 159 171 010 020 043 	›´2û¯ŸŸŸŸ£ŸŸ«..+
057 189 086 251 139 157 036 180 054 251 175 159 141 141 141 163 	9½Vû‹$´6û¯Ÿ£
159 159 171 010 020 043 057 189 086 251 139 141 147 163 153 163 	ŸŸ«..+9½Vû‹“£™£
157 246 235 090 202 214 159 165 159 139 141 147 163 157 102 180 	öëZÊÖŸ¥Ÿ‹“£f´
242 107 041 214 159 165 159 139 141 147 163 157 102 180 246 107 	òk)ÖŸ¥Ÿ‹“£f´ök
041 214 189 229 061                                             	)Ö½å=
eDsuB
Starting Member
Starting Member
Posts: 33
Joined: Mon Jan 11, 2010 1:25 pm
Contact:

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

Post by eDsuB »

Few minutes ago I read that a felow-researcher succeeded in getting readable telegrams out of his Kamstrup meter from Enexis using this cable:
http://www.ftdichip.com/Support/Documen ... CABLES.pdf

He uses the 5v cable. According to the P1 Companion Guide it should also be 5V. But with your Itron Meter you succeeded with the 3.3V cable.
Better reading of the specs of my convertermodule learns that mine supports 5V as input and 3.3V as output. The output (as seen from the USB module) is in our case irrelevant, so my cable should be ok....but until now it isnt. Well, just carrying on with finding right settings.
eDsuB
Starting Member
Starting Member
Posts: 33
Joined: Mon Jan 11, 2010 1:25 pm
Contact:

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

Post by eDsuB »

I ordered a new (FTDI 5V) converter cable. Just have to wait until it arrives.
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

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

Post by Verkenner »

Did the same.

RS-Online does not to sell because they do not want to sell to individuals ever sinds march 2011 (I paid already but they cancelled it. Hubris).

w'll have to wait.

To be cont.
Verkenner
Best regards, Verkenner
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

Reading the P1 port of a Smart Meter

Post by Verkenner »

Hi J, just received a message from EnergyICT-support.

• P1 poort (RJ-11 aansluiting, NIET de optische poort) conform de NTA standaard : als de REQUEST pin actief is op de RJ11 zal de P1 data iedere 10 sec. uitgezonden worden.
• Nummering van de RJ-11 poort (van links naar rechts) conform NTA standaard (Request pin zit uiterst links)
• Settingen van de seriele verbinding (#databits, parity, start- en stopbits, acsi/ansi, etc)? Conform NTA standaard 9K6, 7E1
• Ieder terminal programma kan gebruikt worden om de RAW DATA te tonen.
• Conversie kabel tussen de PC en KWH-meter (USB <-> TTL). De spanning wordt bepaald door de NTA standaard (request voltage tussen 4 en 5,5 V), 5 volt is oke.

And this:
In de DSMR 3.0 standaard is de mark / space spanning gedefinieerd op het OMGEKEERDE niveau als normaal gangbaar. (logic "0" = 5V)
Dat kan verklaren dat je vreemde karakters krijgt. Vermoedelijk kan je via de FTDI driver wel de polariteit van de RX data omkeren.
Zo niet dan moet aanvullende electronica bijgebouwd worden om het niveau om te keren.

It's a Smart meter but a Stupid protocol ;-)

Regards, Verkenner
Best regards, Verkenner
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

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

Post by Verkenner »

J, see this. That's our future ;-)

http://www.energie-zaehler.com/epages/6 ... dl-cockpit

Regards, Verkenner
Best regards, Verkenner
Verkenner
Member
Member
Posts: 338
Joined: Tue May 27, 2008 6:14 pm
Location: Netherlands

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

Post by Verkenner »

Received new 5V cables.

Found out how to Invert RXd.
You can configure the inverted RXD by FT_PROG, see below figure.

Download the FT_Prog from below link:
ftdichip.com/Support/Utilities/FT_Prog_ ... _v1.12.zip

User manual:
ftdichip.com/Support/Documents/AppNotes ... T_PROG.pdf

Piece of Cake ;-)

Regards, Verkenner
Attachments
Invert the RXd in the driver
Invert the RXd in the driver
Invert RXD.jpg (123.93 KiB) Viewed 20482 times
Best regards, Verkenner
eDsuB
Starting Member
Starting Member
Posts: 33
Joined: Mon Jan 11, 2010 1:25 pm
Contact:

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

Post by eDsuB »

Wow, this might very well solve issues that a lot of people have when trying to interface with P1.

I think I found a SiLabs equivalent tot FT_PROG for the CP210x USB converter-chips. It is covered in the AN223SW application note (at the silabs.com website: http://www.silabs.com/support/pages/sup ... SB+to+UART )

Also this inverting being neccesary on the RXD implies that officially it is also needed for TXD. Because we did not invert in the first place, to the P1 our TXD is 'high' by default. And thus the P1 starts sending telegrams every 10s 'automatically'. Does that make sense?
So the solution to get a working p1 interface is:
-Make sure the RXD signal is inverted (logic "0" = 5V)
-Make sure the TXD signal is not inverted (logic "1" = 5V)

I will report back my (and those of some colleagues') results.
Post Reply

Return to “Smart Metering Forum”