P1 smart meter USB (fluvius, Belgian)) not found

Moderator: leecollings

Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Hiy Guys,

I tried several things but I cant seem to found my meter. (elek and gas)

The P1-port is connected on my Pi with a P1-USB cable.
When i connect, 2 leds blink in the usb-part of the cable.

actif: yes
I selected the right USB-port on the pi
Time-out: disabled
baudrate: 115200
CRC :on

Any ideas? Do I have to program some software on the pi?

Thank you verry much!
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by FireWizard »

Hi,

Which Domoticz software version do you run on your Rasberry Pi?

Regards
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by waaren »

Mathiasdb wrote: Wednesday 04 December 2019 18:41 I tried several things but I cant seem to found my meter. (elek and gas)
The P1-port is connected on my Pi with a P1-USB cable.
Can you check if the PI does get some data from the meter ?

stop domoticz to free up the port

Code: Select all

sudo chmod 666 /dev/ttyUSB-P1  # or any other port name where your P1 meter is connected to
sudo cu -l /dev/ttyUSB-P1 -s 115200 --parity=none -E q
should show something like
Spoiler: show

Code: Select all

1-3:0.2.8(42)
0-0:1.0.0(191204185652W)
0-0:96.1.1(4530303235313030303234363334313135)
1-0:1.8.1(008597.845*kWh)
1-0:1.8.2(006133.007*kWh)
1-0:2.8.1(003767.681*kWh)
1-0:2.8.2(008687.654*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.383*kW)
1-0:2.7.0(00.000*kW)
0-0:96.7.21(00010)
0-0:96.7.9(00005)
1-0:99.97.0(2)(0-0:96.7.19)(190603143454S)(0000000193*s)(000101000001W)(2147483647*s)
1-0:32.32.0(00000)
1-0:32.36.0(00000)
0-0:96.13.1()
0-0:96.13.0()
1-0:31.7.0(004*A)
1-0:21.7.0(00.383*kW)
1-0:22.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303032333430313938393636393135)
0-1:24.2.1(191204180000W)(02917.773*m3)
!E623
/KFM5KAIFA-METER
If you want to stop the cu command use [esc]q or sudo pkill cu from another terminal window
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Hi FireWizard,

The PI runs Domoticz V4.10717
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by FireWizard »

Hi,

My next question would have been, what waaren has written above.
Please check it.
Do not forget to stop Domoticz, so that the port will be released.

Belgian gasmeter is supported from version 4.11256 (thanks waaren for your wiki).
Electricity is ok with v 4.10717.
Lets try to get the electricity first.
Afterwards you can upgrade

Regards
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Hi,

I stopt domoticz,
I did dmesg to find the port name: usb 1-1.3: FTDI USB serial device converter now attached to ttyUSB0
So the port is ttyUSB0, i assume.

I tried the code.
sudo chmod 666 /dev/ttyUSB0 : no reaction noticeble on the pi (that's a good sign?)
sudo cu -l /dev/ttyUSB0 -s 115200 --parity=none -E q: Sudo cu: command not found

What dit i do wrong?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by waaren »

Mathiasdb wrote: Wednesday 04 December 2019 21:40 sudo cu -l /dev/ttyUSB0 -s 115200 --parity=none -E q: Sudo cu: command not found
On most linux type of systems not all available tools are installed. On your system cu does not seem to be installed.
on the CLI do

Code: Select all

sudo apt update     # get latest information on available packages
sudo apt install cu  # download and install the cu tool
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Hi,

I installed de cu.
When i trie the code "sudo cu -l /dev/ttyUSB0 -s 115200 --parity=none -E q" now,
The pi answers "connected"

one step closer :)
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Maybe I have a problem with the DSMR-version.

Witch code I have tu use to change the DSMR-version?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by waaren »

Mathiasdb wrote: Thursday 05 December 2019 21:24 Maybe I have a problem with the DSMR-version.

Witch code I have tu use to change the DSMR-version?
Even with another DSMR version you should see something if connected to the right port. Maybe if you change baudrate / parity ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

I'm sure its DSMR5 , so baudrate should be 115200?
I changed de parity to "even", are there other options?
the pi respondend again "connected"
is it normal I'm blocked after this? I have to abbord the sesion and start again with putty.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by waaren »

Mathiasdb wrote: Thursday 05 December 2019 21:57 is it normal I'm blocked after this? I have to abbord the sesion and start again with putty.
See one of previous posts..
If you want to stop the cu command use [esc]q or sudo pkill cu from another terminal window
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

okay, thanks,
ropske
Posts: 483
Joined: Tuesday 12 August 2014 5:37
Target OS: Raspberry Pi / ODroid
Domoticz version: V3_8394
Location: Rumbeke,Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by ropske »

you are not receiving data you mean?
i'm also reading out my data from P1 smart meter from Fluvius(Belgium)

But you need to ask Fluvius te open the port (can be done by their website, and standard, the port is closed)

They can open it from distance.
If you need more help about this, ask me
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Hi Ropske,

I already did that. I opend the port also online with the slider button.
Normally this is not the problem.

Thank you for your advice!

How can I be shure i recieve data? Control with laptop,...?
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by FireWizard »

Hi,

In Belgium, they have started to roll out Smart Meters from approx spring 2019.

They have decided to use the DSMR 5.0.2 specification.
This specification (if you want more background) you can find at:
https://www.netbeheernederland.nl/_uplo ... fce1f1.pdf

As you will see in this specification in chapter 6.1 (page 15). they use 1 start bit, 8 data bits, no parity bit and 1 stop bit (8N1).
The transfer speed is fixed to 115200.
So testing the communication with other parameters is a waste of time.
So the correct command for cu is:
sudo cu -l /dev/ttyUSB0 -s 115200 --parity=none -E q" now
Due to Belgian legislation, regarding the temperature compensation of the Gas meter, they have created a Belgian extension to the Dutch Smart Meter Requirements.
The links to these requirements you can find at: https://github.com/domoticz/domoticz/issues/3677

In The Netherlands, the P1 port is enabled by default. This is not the case in Belgium.
You have to make a request. See: https://www.dialoog.be/digitale-meter/d ... -meter.pdf.
The last 2 sentences under "Wat doet het? " will tell you that.

The fact that, if you use cu and it says "connected", tells you that you have used the correct command, but the smart meter does not send any data.
Even, if your communication parameters are incorrect, you should see something unreadable.

It can have the following causes:

1.You are connected to the wrong USB.
I assume, you have checked that and that the device is /dev/ttyUSB0.
However after a reboot it may change.
See: https://www.domoticz.com/wiki/PersistentUSBDevices OR https://www.domoticz.com/wiki/Assign_fi ... o_USB_port

2. Your P1 Smart Meter port is not activated, yet. Did you receive any confirmation?

3. You did not mention the smart meter type.

Some smart meters require a resistor, as the output is "open collector". (My Landis & Gyr E350 needed it too)
The following document may be helpful: http://domoticx.com/p1-poort-slimme-meter-hardware/

A lot of non functioning communication has been caused by bad cables, also types that looked good.

The best way to check that your communication is ok, is to use an older type laptop, that still has a serial port.
If needed you can solder a resistor in the DB9 connector and to check the communication with a terminal program (e.g. Putty)
If not you have to use your serial/USB converter.

If you have a gas meter connected, you will not see it, if you use the latest stable version v4.10717.
The Belgian gas meter is supported since V4.11284 (September 5th). So I suggest, that, if you have a gas meter, you upgrade Domoticz to the latest beta, as soon as you have communication.

Please post your results,

Regards
Last edited by FireWizard on Sunday 08 December 2019 18:10, edited 1 time in total.
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Hi FireWizard,

The type is Siconia.

I followed all the steps above without any results.

Normally the P1-port is available ( I did the stuff i had to do to open it by fluvius)
But i do doubt that the meter is sending any data.
Unfortunitly, I do not have a pc with a serial port available.

I tried in the passed to use the Benext gateway to read the P1 port, Also without any results.

The cable I use is new. It should be okay.

I really start to think that de P1 port just doesn't works.

Thank you verry much for your help.
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by FireWizard »

Hi,

Your type Siconia is made by Sagemcom.
Have you seen this (Dutch) thread?
https://gathering.tweakers.net/forum/li ... es/1792159
And this:
http://www.smartmeterdashboard.nl/blog/ ... immemeters.

But for sure it is essential that the port is enabled.

Regards
ropske
Posts: 483
Joined: Tuesday 12 August 2014 5:37
Target OS: Raspberry Pi / ODroid
Domoticz version: V3_8394
Location: Rumbeke,Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by ropske »

your cable is the correct one? and it is plugged in into P1 instead of S1?
Mathiasdb
Posts: 21
Joined: Wednesday 04 December 2019 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.02
Location: Laarne, Belgium
Contact:

Re: P1 smart meter USB (fluvius, Belgian)) not found

Post by Mathiasdb »

Hi Ropske,

I have the FTDI Ltd FT232 Serial (UART) IC cable from robbshop.

I hope this is the right one?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest