Page 1 of 1
S0 Meter with LAN interface
Posted: Wednesday 03 January 2024 22:27
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)
Re: S0 Meter with LAN interface
Posted: Wednesday 03 January 2024 23:27
by waltervl
You have to look in the documentation of your S0 meter device as that is talking serial with ser2net.
Re: S0 Meter with LAN interface
Posted: Thursday 04 January 2024 1:20
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

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

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
Re: S0 Meter with LAN interface
Posted: Thursday 04 January 2024 7:16
by waltervl
What do you mean with setting the mode of the pulse counter? Your setup seems correct, you are receiving the pulse telegrams.
Re: S0 Meter with LAN interface
Posted: Thursday 04 January 2024 19:06
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.
Re: S0 Meter with LAN interface
Posted: Thursday 04 January 2024 19:15
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
Re: S0 Meter with LAN interface
Posted: Thursday 04 January 2024 20:28
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.