Open peterspijker opened 3 years ago
I have been fiddling a bit more, and after swapping some USB-connections on the Raspberry Pi I seem to be able to retrieve some data from the SDM120:
ubuntu@ubuntu:~/smartmeter$ SDM120C/sdm120c /dev/ttyUSB0 -P N
Voltage: 235.30 V
Current: 0.31 A
Power: 0.00 W
Active Apparent Power: 70.59 VA
Reactive Apparent Power: -70.51 VAR
Power Factor: -0.05
Phase Angle: 0.00 Degree
Frequency: 50.00 Hz
Import Active Energy: 6576848 Wh
Export Active Energy: 0 Wh
Total Active Energy: 6576848 Wh
Import Reactive Energy: 1974940 VARh
Export Reactive Energy: 1492504 VARh
Total Reactive Energy: 3467444 VARh
OK
But when I change the baud rate (from the default 2400) it errors in NOK. Any idea why this happens?
Hello, have you changed default speed from 2400 to 9600 using parametr -r, after putting meter in programming mode (push front button for 3 sec). If not, this is the cause
I am trying to communicate with my SDM120-modbus. I am pretty sure I have wired everything correctly (B to 9 and A to 10), but somehow I cannot talk to the SDM120. This is the output I am getting:
The USB-modbus-RS485 device is located on /dev/ttyUSB2 (I checked this with dmesg). Any help would be appreciated!