mbmd: SDM120C CRC checksum error

I try to read data from my SDM120C. with /mbmd scan -a /dev/ttyUSB0 -b 2400 2020/08/05 21:53:15 config: creating RTU connection for /dev/ttyUSB0 (2400baud, 8N1) 2020/08/05 21:53:15 starting bus scan on /dev/ttyUSB0 2020/08/05 21:53:15 device 1: SDM type device found, VoltageL1: 230.80 2020/08/05 21:53:15 device 2: SDM type device found, VoltageL1: 229.75 device 1 is the SDM120c. Device 2 is a 630 and can be read perfectly. but ./mbmd run -a /dev/ttyUSB0 -d sdm:1 -b 2400 -v 2020/08/05 21:54:08 mbmd 0.12 (0d6f45f) 2020/08/05 21:54:08 config: creating RTU connection for /dev/ttyUSB0 (2400baud, 8N1) 2020/08/05 21:54:08 config: declared device SDM:1.0 2020/08/05 21:54:08 httpd: starting api at 0.0.0.0:8080 2020/08/05 21:54:08 initialized device SDM1-1: {SDM SDM Eastron SDM630 0} 2020/08/05 21:54:08 device SDM1-1 did not respond (1/3) 2020/08/05 21:54:09 device SDM1-1 did not respond (2/3) 2020/08/05 21:54:11 device SDM1-1 did not respond (3/3) Says no response.

SOme parameters which I take wrong? with

sdm120c -a1 -PN -S1 /dev/ttyUSB0
Voltage: 230.50 V

I can read at least the Voltage.

THanks in advance.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

now the 009d3fe https://github.com/volkszaehler/mbmd/commit/009d3fe8c8efbd2b6f56b2f30f5906db76bc6f60 works, more swap space was needed.


2020/08/07 11:17:40 mbmd 009d3fe (009d3fe)

2020/08/07 11:17:40 config: creating RTU connection for /dev/ttyUSB0
(2400baud, 8N1)

2020/08/07 11:17:40 config: declared device SDM220:1.0

2020/08/07 11:17:40 httpd: starting api at 0.0.0.0:8080

2020/08/07 11:17:40 initialized device SDM2201-1: {SDM220 SDM220 Eastron
SDM220    0}

2020/08/07 11:17:40 modbus: send 01 04 00 48 00 02 f1 dd

2020/08/07 11:17:40 modbus: recv 01 04 04 41 16 5a 1d f4 d5

2020/08/07 11:17:40 modbus: send 01 04 00 4a 00 02 50 1d

2020/08/07 11:17:40 modbus: recv 01 04 04 00 00 00 00 fb 84

2020/08/07 11:17:40 modbus: send 01 04 01 56 00 02 90 27

2020/08/07 11:17:41 modbus: recv 01 04 04 41 16 5a 1d f4 d5

2020/08/07 11:17:41 modbus: send 01 04 01 58 00 02 f1 e4

2020/08/07 11:17:41 modbus: recv 01 04 04 3f 82 b0 21 e2 e0

2020/08/07 11:17:41 device SDM2201-1 did not respond (1/3): read failed:
modbus: response crc '57570' does not match expected '24802'

2020/08/07 11:17:42 modbus: send 01 04 01 58 00 02 f1 e4

2020/08/07 11:17:42 modbus: recv 01 04 04 3f 82 b0 21 e2 60

2020/08/07 11:17:42 modbus: send 01 04 00 4c 00 02 b0 1c

2020/08/07 11:17:42 modbus: recv 01 04 04 3d cc cc cd a2 82

2020/08/07 11:17:42 modbus: send 01 04 00 4e 00 02 11 dc

2020/08/07 11:17:42 modbus: recv 01 04 04 3f 6b c6 a8 d4 52

2020/08/07 11:17:42 modbus: send 01 04 00 00 00 02 71 cb

2020/08/07 11:17:42 modbus: recv 01 04 04 43 64 99 9a 45 e4

2020/08/07 11:17:42 modbus: send 01 04 00 06 00 02 91 ca

2020/08/07 11:17:43 modbus: recv 01 04 04 00 00 00 00 fb fc

2020/08/07 11:17:43 device SDM2201-1 did not respond (2/3): read failed:
modbus: response crc '64763' does not match expected '34043'

```

Am Fr., 7. Aug. 2020 um 12:05 Uhr schrieb andig <notifications@github.com>:

> with 009d3fe
> <https://github.com/volkszaehler/mbmd/commit/009d3fe8c8efbd2b6f56b2f30f5906db76bc6f60>
> make build freezes at
>
> Could you please retry 11c627c
> <https://github.com/volkszaehler/mbmd/commit/11c627cda760270028d817115420d82b9ee3cde8>?
> It does compile for me:
>
> ❯ make
>
> rm -rf dist/
>
> go install github.com/alvaroloes/enumer
>
> go install github.com/mjibson/esc
>
> Generating embedded assets
>
> go generate ./...
>
> golangci-lint run
>
> Running testsuite
>
> go test ./...
>
> ?       github.com/volkszaehler/mbmd    [no test files]
>
> ?       github.com/volkszaehler/mbmd/cmd        [no test files]
>
> ?       github.com/volkszaehler/mbmd/meters     [no test files]
>
> ok      github.com/volkszaehler/mbmd/meters/rs485       (cached)
>
> ?       github.com/volkszaehler/mbmd/meters/sunspec     [no test files]
>
> ok      github.com/volkszaehler/mbmd/server     (cached)
>
> Version: 11c627c 2020-08-07_10:00:37
>
> go build -v -ldflags '-X "github.com/volkszaehler/mbmd/server.Version=11c627c" -X "github.com/volkszaehler/mbmd/server.Commit=11c627c"'
>
>
> If the older commits don't work I can only repeat my suggestion to git
> bisect or PM at cpuidle@gmx.de for physical device access for testing.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/volkszaehler/mbmd/issues/144#issuecomment-670440166>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/APMIS6UJBHBCFHNPMHMFKELR7PGWPANCNFSM4PV4OMIA>
> .
>