DIY cheap USB-cable to read P1 port of Dutch smart meter

Moderator: leecollings

martijndutch
Posts: 1
Joined: Wednesday 13 March 2019 17:30
Target OS: Linux
Domoticz version:
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by martijndutch »

Hoi,

Ik heb een 340 chip gebruikt met een runner up weerstand. Ik krijg nu consistente rommel binnen. Elk telegram ziet er zo uit

&L&&fLM=gifLfsF:^>>>>*&F:"VR"^ZJVgifLfsF6^>>>>*>F&::VR"^ZJVgifLfsF:^>>>>>>F>>>VR"^ZJVgifLfsF6^>>>>>>F>>>VR"^ZJV&sfLLfSffsfMfff&M=gifLffsfMffS*.VR"ZJVgifLffsfMffsfffMI%M=&sfLLff3&fMff&f&M=&sfLLffS^>>>>:ZJVgifLLLy=gifLffffsfMfff&&M=gifLffffsfMffff&M=&sfLLfS&fsfMM=gifLfffsfM&ffSfM%M=gifL&FfsfMfffMiSVgifL&ffsfMffS*.VR"ZJVgifLfffsfMffsfffMI%M=&SfLffSfsfMf&&M=&SfLLfSfsfM&f&f&&&&Lf&f&&&fLf&&&f&f&f&&&&&fLM=&SfLff3fSfM&L&&&&&f&ffL%MMfffff3&&fM&M=o_2.L=hJJy>>>..2:6JVJVgif1f3fs^*>ZJV&sfLfsfsfM&L&&&&&ff&f&%M=&sfLLfSfSfMf&f&&&&&f&f&f&&&fL&&f&fL&

Er zijn wel kleine verschillen wat logisch is. Waar zit mn fout..
bortek
Posts: 3
Joined: Sunday 24 January 2021 18:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by bortek »

Hi

It's been almost 2 years since the last post here. I just want to quick ask a question.

I am going to receive Landis E360 meter in a few days and want to verify that it can actually receive the data from P1 port. I want to do it before I connect my other doungles based ESP8266 or ESP32 boards. So I want sort of verify that the port is enabled and can received the data.

Therefore I want to connect to Raspberry Pi because I think it is the simplest way to test via a wired connection.


Can you someone please share the wiring diagram using RJ12 (6pin) P1 port to the Pi and what commands shall I use to check the incoming data on the serial interface?
hokanp
Posts: 2
Joined: Saturday 20 November 2021 16:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by hokanp »

Hi
I have this https://www.sossolutions.nl/slimme-mete ... spberry-pi I have installed the software and that is up and running.
I do not get any data from my Landis Gyr E360.
Logfile:
2021-11-20 16:57:19,257,"ERROR","parseSerBuffer: p1 bericht verworpen wegens fout."
2021-11-20 16:57:19,256,"WARNING","recordSanityOk: Gefaald op actueel geleverd vermogen format (2.7.0) (lengte), waarde was 0000.000"
2021-11-20 16:57:19,254,"WARNING","recordSanityOk: Gefaald op actueel verbruikt vermogen format (1.7.0) (lengte), waarde was 0001.438"
2021-11-20 16:57:19,253,"WARNING","recordSanityOk: Gefaald op piek/dag format (2.8.2) (lengte), waarde was 999999999999"
2021-11-20 16:57:19,251,"WARNING","recordSanityOk: Gefaald op dal/nacht format (2.8.1) (lengte), waarde was 999999999999"
2021-11-20 16:57:19,250,"WARNING","recordSanityOk: Gefaald op piek/dag format (1.8.2) (lengte), waarde was 999999999999"
2021-11-20 16:57:19,248,"WARNING","recordSanityOk: Gefaald op dal/nacht format (1.8.1) (lengte), waarde was 999999999999"
2021-11-20 16:57:19,246,"WARNING","recordSanityOk: Gefaald op tariefcode, verwachte P of D, waarde was 999999999999"
2021-11-20 16:57:19,245,"WARNING","recordSanityOk: Gefaald op piek/dag voor geleverde energie(2.8.2), waarde was 999999999999"
2021-11-20 16:57:19,244,"WARNING","recordSanityOk: Gefaald op dal/nacht voor geleverde energie(2.8.1), waarde was 999999999999"
2021-11-20 16:57:19,242,"WARNING","recordSanityOk: Gefaald op piek/dag voor verbruikte energie(1.8.2), waarde was 999999999999"
2021-11-20 16:57:19,240,"WARNING","recordSanityOk: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"

2021-11-09 20:57:56,339,"INFO","main_prod: P1 poort instelling baudrate=115200 bytesize=8 pariteit=N stopbits=1"
2021-11-09 20:57:56,331,"INFO","checkSerial: serial port /dev/ttyUSB0 succesvol geopend."
2021-11-09 20:57:56,107,"INFO","main_prod: database tabel: faseinformatie succesvol geopend."
2021-11-09 20:57:56,104,"INFO","main_prod: database tabel watermeter succesvol geopend."
2021-11-09 20:57:56,103,"INFO","main_prod: database tabel temperatuur succesvol geopend."
2021-11-09 20:57:56,102,"INFO","main_prod: database tabel config succesvol geopend."
2021-11-09 20:57:56,029,"INFO","main_prod: database tabel: status succesvol geopend."
2021-11-09 20:57:55,949,"INFO","main_prod: database bestand e_serial gedefragmenteerd."
2021-11-09 20:57:55,945,"INFO","main_prod: database tabel: e_serial succesvol geopend."
2021-11-09 20:57:55,484,"INFO","Start van programma."

What can be the problem?
Best regards
hokanp
Posts: 2
Joined: Saturday 20 November 2021 16:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by hokanp »

I have now updated to the latest verson for the P1.
I now have; Seriële device in gebruik: /dev/ttyUSB1
But I still get errors.

2021-11-20 17:58:18,292,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:58:18,291,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:58:09,211,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:58:09,210,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:57:58,929,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:57:58,928,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:57:54,787,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:57:54,786,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:57:47,516,"INFO","check_serial: serial port /dev/ttyUSB1 succesvol geopend."
2021-11-20 17:57:47,455,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:46,405,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:45,361,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:44,309,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:43,257,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:42,231,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:41,180,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:40,128,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:39,073,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:38,022,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:36,969,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:35,932,"WARNING","main_prod: fout bij het wachten op seriele gegevens. Error=(5, 'Input/output error')"
2021-11-20 17:57:28,241,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:57:28,240,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:57:19,192,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:57:19,191,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:57:08,892,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:57:08,892,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:56:58,740,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:56:58,739,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:56:48,571,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:56:48,570,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:56:38,382,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:56:38,381,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:56:28,218,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:56:28,217,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:56:19,150,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:56:19,149,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:56:08,901,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:56:08,900,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:55:58,708,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:55:58,707,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
2021-11-20 17:54:40,482,"ERROR","update_data_set: p1 bericht verworpen wegens fout."
2021-11-20 17:54:40,481,"WARNING","record_sanity_check: Gefaald op dal/nacht voor verbruikte energie(1.8.1), waarde was 999999999999"
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by EddyG »

First post is about /dev/ttyUSB0 second post is about /dev/ttyUSB1
Which is it?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by waltervl »

What do you see if you use the following command to see the telegram from your smart meter. It should give readable information.
Change /dev/ttyUSB0 to /dev/ttyUSB1 if needed

Code: Select all

sudo cu -l /dev/ttyUSB0 -s 115200
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by FireWizard »

In addition to @waltervl 's suggestion stop domoticz before you apply the cu command.

Code: Select all

sudo service domoticz stop
Regards
Zero
Posts: 1
Joined: Friday 29 September 2023 18:22
Target OS: -
Domoticz version:
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by Zero »

FYI, I used an Otronic USB-to-Serial adapter with a 16pins CH340G but it did not invert the P1 signal automatically. Therefor I made a little hole in the heat-shrink and connected pin 15 (R232) with pin 16 (Vcc). Problem solved.
repnescasb
Posts: 1
Joined: Sunday 11 February 2024 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by repnescasb »

Hi all,
I tried making this cable but got no output using either `screen` or python (with the two baud rates and 7/8 bits) for my Iskra AM550 meter.
I thought I didn't have a 10k ohm resistor so I tried with both 15k and 7.5k (two 15k in parallel). This should still be fine, right? After reconnecting the plug a couple of times the transistor died -- twice, as in it would break down and start conducting. I'm not sure what happened, only thing I can think of is reverse voltage, but I think I connected everything correctly. Anyone has an idea?
Oh, and the USB-UART chip I used is a CP2101, is that a problem?
Last edited by repnescasb on Sunday 11 February 2024 1:30, edited 4 times in total.
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: DIY cheap USB-cable to read P1 port of Dutch smart meter

Post by HvdW »

slimme-meter-kabel-met-weerstand.jpeg
slimme-meter-kabel-met-weerstand.jpeg (27.81 KiB) Viewed 1131 times
Bugs bug me.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest