Huawei: panic: runtime error: index out of range [3] with length 2 #3222
Unanswered
olloESP
asked this question in
Q&A Hausinstallation
Replies: 3 comments 12 replies
-
Bitte Sufu benutzen. Fehler in der Modbuskommunikation vom Huawei. Schön wäre auch Posting lesbar zu formatieren ;) /cc @RTTTC |
Beta Was this translation helpful? Give feedback.
1 reply
-
Dass die Kommunikation mit dem Huawei nicht einfach ist, habe ich schon verstanden. Blöd nur, wenn deswegen der EVCC komplett abschmiert. Mit einem Check der übergebenen Daten, könnte man das ja abfangen?!? Übrigens gibt es hier neue Erkenntnisse dazu... |
Beta Was this translation helpful? Give feedback.
11 replies
-
Should be solved #2994 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hallo,
bei meiner Installation (v0.90 Docker Container auf Synology) kommt es häufiger zu einem Crash mit der genannten Fehlermeldung. Das liegt wahrscheinlich daran, dass die Kommunikation zu meinem Huawei WR recht "wacklich" ist und manchmal unplausible Daten gesendet werden - extrem große Zahlen für den Verbrauch. Das wird bei der Konvertierung nicht abgefangen?!
panic: runtime error: index out of range [3] with length 2 goroutine 119 [running]: encoding/binary.bigEndian.Uint32(...) /usr/local/go/src/encoding/binary/binary.go:112 github.com/volkszaehler/mbmd/meters/rs485.RTUInt32ToFloat64({0xc0001a3569?, 0xc000ac1ac8?, 0xe700eb?}) /go/pkg/mod/github.com/volkszaehler/[email protected]/meters/rs485/transform.go:65 +0x3b github.com/evcc-io/evcc/provider.(*Modbus).floatGetter(0xc000a94c00) /build/provider/modbus.go:171 +0x52b github.com/evcc-io/evcc/meter.(*Meter).CurrentPower(0xc000ac1b10?) /build/meter/meter.go:122 +0x1a github.com/evcc-io/evcc/core.(*Site).updateMeter.func1() /build/core/site.go:242 +0x2b github.com/avast/retry-go/v3.Do(0xc000a58440, {0x2b39ee0, 0x2, 0xc0002704a0?}) /go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:107 +0x12c github.com/evcc-io/evcc/core.(*Site).updateMeters(0xc0005de900) /build/core/site.go:299 +0x618 github.com/evcc-io/evcc/core.(*Site).sitePower(0xc0005de900, 0x0) /build/core/site.go:341 +0x65 github.com/evcc-io/evcc/core.(*Site).update(0xc0005de900, {0x1e96480, 0xc000364380}) /build/core/site.go:406 +0x12f github.com/evcc-io/evcc/core.(*Site).Run(0xc0005de900, 0xc0006e6ba0, 0x2540be400) /build/core/site.go:490 +0x1ea github.com/evcc-io/evcc/cmd.run.func1() /build/cmd/root.go:263 +0x31 created by github.com/evcc-io/evcc/cmd.run /build/cmd/root.go:262 +0x12e5
Danke!
Beta Was this translation helpful? Give feedback.
All reactions