S0 Meter with LAN interface

Moderator: leecollings

Post Reply
User avatar
andreo
Posts: 42
Joined: Friday 07 August 2015 21:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: Anna Paulowna, Netherlands
Contact:

S0 Meter with LAN interface

Post by andreo »

Hi,

Does anyone know which serial settings are required for the S0 Meter with LAN interface? I am currently using a S0PCM-5 module via SER2NET but am receiving invalid data, the interface is set to 9600N81, I have also applied 9600E71, but without success.

Thank you in advance for your help
Spoiler: show
2024-01-03 21:50:42.193 Error: S0 pulsteller: trying to connect to 192.168.178.48:2000
2024-01-03 21:50:42.219 Error: S0 pulsteller: Invalid Data received! ����������
2024-01-03 21:50:42.219 Error: S0 pulsteller: Invalid Data received! ser2net port telnet,tcp,192.168.178.48,2000 device serialdev, /dev/ttyACM0, 9600n81,local [,9600N81,CLOCAL] (Debian GNU/Linux)
Latest version of Domoticz and more running on Docker|Raspberry Pi 4-B 8GB Bookworm|RF-Link|Klik Aan Klik Uit|Nefit easy|ESPeasy|P1 power meter|S0PCM-5 through Ser2Net|Alecto WS5500|FrtizBox|Satel Integra|Solis
Greetz Andre.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: S0 Meter with LAN interface

Post by waltervl »

You have to look in the documentation of your S0 meter device as that is talking serial with ser2net.
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
andreo
Posts: 42
Joined: Friday 07 August 2015 21:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: Anna Paulowna, Netherlands
Contact:

Re: S0 Meter with LAN interface

Post by andreo »

the settings of the serial port are as follows according to the specification: 9600 baud rate, Even parity, 7 Data bits, 1 Stop bit.
I used these settings in ser2net and if I log in with Putty to the IP address and the correct port, the following data appears

ID:32206:I:10:M1:0:0:M2:0:0:M3:0:0:M4:0:0:M5:0:0
ID:32206:I:10:M1:0:0:M2:0:0:M3:0:0:M4:0:0:M5:0:0

For the first time Domoticz shows a connection

2024-01-04 01:12:47.843 Status: S0 pulsteller: connected to: 192.168.178.48:2000

However, after setting the mode of the pulse counter, an error occurs

2024-01-04 01:16:00.622 Status: S0 pulsteller: TCP/IP Worker stopped...
2024-01-04 01:16:00.632 Status: S0 pulsteller: connected to: 192.168.178.48:2000
2024-01-04 01:16:00.624 Error: S0 pulsteller: trying to connect to 192.168.178.48:2000
Latest version of Domoticz and more running on Docker|Raspberry Pi 4-B 8GB Bookworm|RF-Link|Klik Aan Klik Uit|Nefit easy|ESPeasy|P1 power meter|S0PCM-5 through Ser2Net|Alecto WS5500|FrtizBox|Satel Integra|Solis
Greetz Andre.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: S0 Meter with LAN interface

Post by waltervl »

What do you mean with setting the mode of the pulse counter? Your setup seems correct, you are receiving the pulse telegrams.
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
andreo
Posts: 42
Joined: Friday 07 August 2015 21:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: Anna Paulowna, Netherlands
Contact:

Re: S0 Meter with LAN interface

Post by andreo »

Under the setup/hardware tab, select the pulse meter. There is a button here where you can adjust the settings of the individual inputs. After pressing the Set Mode button, the error message appears.
Latest version of Domoticz and more running on Docker|Raspberry Pi 4-B 8GB Bookworm|RF-Link|Klik Aan Klik Uit|Nefit easy|ESPeasy|P1 power meter|S0PCM-5 through Ser2Net|Alecto WS5500|FrtizBox|Satel Integra|Solis
Greetz Andre.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: S0 Meter with LAN interface

Post by waltervl »

Do you have something connected to the S0meter that is giving pulses? As that is needed to have the domoticz devices created. See the wiki https://www.domoticz.com/wiki/S0Meter
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
andreo
Posts: 42
Joined: Friday 07 August 2015 21:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Location: Anna Paulowna, Netherlands
Contact:

Re: S0 Meter with LAN interface

Post by andreo »

@waltervl thanks for the hint. After applying pulses to the various inputs, I suddenly see the values ​​coming in, I will continue testing whether everything works now.
Latest version of Domoticz and more running on Docker|Raspberry Pi 4-B 8GB Bookworm|RF-Link|Klik Aan Klik Uit|Nefit easy|ESPeasy|P1 power meter|S0PCM-5 through Ser2Net|Alecto WS5500|FrtizBox|Satel Integra|Solis
Greetz Andre.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests