Skip to content

No Smartmeter found #16

@tdwesten

Description

@tdwesten

Hi Ruud, Thanks for building this package!

I have a problem finding our smartmeter. When I use your example code this is the output;

[2020-05-09T13:15:25.853Z] DEBUG MODE ENABLED
[2020-05-09T13:15:27.816Z] Available serial ports with possible configurations:
[
    {
        "port": "/dev/ttyAMA0",
        "baudRate": 115200,
        "parity": "none",
        "dataBits": 8,
        "stopBits": 1
    },
    {
        "port": "/dev/ttyAMA0",
        "baudRate": 115200,
        "parity": "even",
        "dataBits": 7,
        "stopBits": 1
    },
    {
        "port": "/dev/ttyUSB0",
        "baudRate": 115200,
        "parity": "none",
        "dataBits": 8,
        "stopBits": 1
    },
    {
        "port": "/dev/ttyUSB0",
        "baudRate": 115200,
        "parity": "even",
        "dataBits": 7,
        "stopBits": 1
    }
]
[2020-05-09T13:15:27.834Z] Trying to connect to Smart Meter via port: /dev/ttyAMA0 (BaudRate: 115200, Parity: none, Databits: 8Stopbits: 1)
[2020-05-09T13:15:27.910Z] Smart Meter not found yet, trying another port / configuration...
[2020-05-09T13:15:27.913Z] Trying to connect to Smart Meter via port: /dev/ttyAMA0 (BaudRate: 115200, Parity: even, Databits: 7Stopbits: 1)
[2020-05-09T13:15:27.929Z] Smart Meter not found yet, trying another port / configuration...
[2020-05-09T13:15:27.932Z] Trying to connect to Smart Meter via port: /dev/ttyUSB0 (BaudRate: 115200, Parity: none, Databits: 8Stopbits: 1)
[2020-05-09T13:15:27.959Z] Serial connection established
[2020-05-09T13:15:57.950Z] Smart Meter not found yet, trying another port / configuration...
[2020-05-09T13:15:57.954Z] Trying to connect to Smart Meter via port: /dev/ttyUSB0 (BaudRate: 115200, Parity: even, Databits: 7Stopbits: 1)
Could not find a Smart Meter

When I use ls -l /dev/ttyUSB* i got this, I think this mean there is a USB connected;
crw-rw---- 1 root dialout 188, 0 May 9 14:07 /dev/ttyUSB0

And when I connect via cu -l /dev/ttyUSB0 -s 9600 --parity=none i can "read" the smartmeter;

Connected.
/XMX5XMXABCE100108053

0-0:96.1.1(4B414145303031343131373232313133)
1-0:1.8.1(03432.896*kWh)
1-0:1.8.2(03492.086*kWh)
1-0:2.8.1(02243.242*kWh)
1-0:2.8.2(05196.924*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(0000.00*kW)
1-0:2.7.0(0001.34*kW)
0-0:96.13.1()
0-0:96.13.0()
0-1:96.1.0(3238303131303038333237303137303133)
0-1:24.1.0(03)
0-1:24.3.0(200509150000)(08)(60)(1)(0-1:24.2.0)(m3)
(05933.694)
!

I hope this makes sense ;) and hopefully you have any tips how to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions