Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


DSMR (P1) telegram over TCP

Tested with DSMR v2.2 meter, Raspbian GNU/Linux 11 (bullseye)

  • Connect serial to DSMR with a level shifter
  • Test serial connection
    stty -F /dev/ttyAMA0 9600 cs7 -cstopb parenb
    cat /dev/serial0
  • Install ser2net
    apt install ser2net
  • Configure in /etc/ser2net.yaml
    connection: &con0
        accepter: tcp,23
        enable: on
          max-connections: 10
          telnet-brk-on-sync: true
        connector: serialdev,
  • This configuration did not open port 23 at reboot. It seems the service starts before the network is available and that didn't work. Edit the ser2net.service file
    systemctl edit ser2net.service
    # Add the following lines:
  • Restart ser2net
raspberry_pi_dsmr_p1_ser2net.txt · Last modified: 2022/10/08 19:15 by admin