Skip to content

[huawei-sun2000] Driver issue on 1.0.0 #72

Open

Description

@goranklang

Device make, model and firmware

192.168.68.123

Sanitized FTW driver diagnostics

## FTW driver diagnostics

- Driver: `huawei-sun2000`
- Driver version: `1.0.0`
- Source: `bundled`
- FTW version: `v1.10.5`
- Host API: `1`
- Runtime ABI: `gopher-lua-source-v1`
- Device make: `Huawei`
- Health: `offline`
- Last error: present; omitted here for privacy

## Test steps

1. Opened the driver Diagnose view.
2. Checked current health and telemetry.
3. Add the steps that reproduce the issue, without IP addresses, serial numbers, credentials, site IDs, raw config, or logs.

What happened?

Can’t connect to the unit. I know Sourseful had some problems with this to. Think it was that the timeout was Done to early. It work with Sourceful

Steps to reproduce

No connection

Expected result

Not Connecting

Privacy check

  • I removed IP addresses, serial numbers, credentials, site IDs, raw config, logs and private documents.

Activity

  1. frahlg commented on Aug 5, 2026

    @frahlg
    Member

    Thanks for reporting this. A couple of things worth flagging before this is actionable:

    The diagnostics show a very old driver. Driver version: 1.0.0, Source: bundled — but the current huawei catalog driver in this repo is at 2.1.1, with several read-stability fixes since 1.0.0 (bounded register probing so a register that doesn't answer stops being retried instead of failing every poll — see drivers/tests/test_absent_register_settles.py and the CHANGELOG). bundled means this device is reading from FTW's local recovery snapshot rather than the live catalog channel, and that snapshot only moves when someone re-pins BUNDLED_SOURCE.json on the FTW side — this repository merging a fix doesn't reach it automatically (see AGENTS.md, "Where a driver change has to land"). So it's possible this is already fixed upstream and just hasn't reached this installation.

    The report itself doesn't have enough to reproduce. "Can't connect", "no connection", and a redacted last error don't point at a specific register, timeout value, or failure mode — and "Sourceful had some problems with this too... It work with Sourceful" is ambiguous about what's being compared to what. To actually look into this, it would help to know:

    • The actual (redacted-of-secrets) Last error text from the Diagnose view — is it a TCP connect timeout, a connection refused, or a Modbus exception on a specific register?
    • Whether this SUN2000 has an embedded Modbus TCP dongle or an SDongle, and whether Modbus TCP is enabled on it (Huawei's inverters ship with it off in some configs)
    • Whether anything else on the network can reach port 502 on the inverter (rules out a network/firewall issue rather than a driver one)

    Not merging or changing anything here — this needs more detail from the reporter before it's a driver bug rather than a config/connectivity question.


    Generated by Claude Code

  2. frahlg commented on Aug 7, 2026

    @frahlg
    Member

    Nu finns en konkret retest-build:

    • FTW v1.16.1-beta.10 är publicerad.
    • Den bundlar device-drivers commit cf8894c.
    • I den pinnen är Huawei SUN2000-drivern 2.1.1, inte bundled 1.0.0 som diagnosen ovan visar.

    Uppdatera till v1.16.1-beta.10 och kör Diagnose igen. Om den fortfarande blir offline, lägg in den exakta men sanerade Last error-texten samt om port 502 går att nå och om enheten kör embedded Modbus TCP eller SDongle. Då vet vi om 2.1.1 löste den gamla read/timeout-vägen eller om detta är ett separat anslutningsfel.

    Jag lämnar issuet öppet tills det finns ett resultat från hårdvaran.

  3. goranklang commented on Aug 7, 2026

    @goranklang
    Author
  4. frahlg commented on Aug 7, 2026

    @frahlg
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions