Skip to content

hosp-get: empty version string #2

@connorimes

Description

@connorimes

After the Smart Power was running for an extended period (maybe several weeks), hosp-get prints an empty string for the version requested from the device. If the read request had outright failed, we should have gotten an error, so perhaps the request returned an empty (null-terminated) string?

Version: 
On: 1
Started: 1
Millivolts: 4989
Milliamps: 0
Milliwatts: 0
Milliwatt-hours: 1173560

Other requests, like for data, seem to be unaffected.

Neither start/stop nor on/off cycling helped. Only after cycling power to the Smart Power device (unplugging and replugging in the power cable) did I get the expected string response again:

Version: SMART POWER V3.0
On: 0
Started: 0
Millivolts: 4989
Milliamps: 0
Milliwatts: 0
Milliwatt-hours: 0

It's possible this is a bug in the Smart Power firmware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions