Skip to content

Comments

drivers: Add eth008 digital output#1821

Open
Fomys wants to merge 1 commit intolabgrid-project:masterfrom
Fomys:master
Open

drivers: Add eth008 digital output#1821
Fomys wants to merge 1 commit intolabgrid-project:masterfrom
Fomys:master

Conversation

@Fomys
Copy link

@Fomys Fomys commented Feb 18, 2026

Eth008 is technically not a power supply controler, it is a simple relay board. To allow using it as a digital output, implement the proper digital output driver and resource.

This PR implement:

  • a proper digital output driver and resource.
  • use the TCP protocol instead of the HTTP API because current implementation is broken at least with first eth008 revision

I did not remove the existing HTTP implementation for power driver to avoid breaking existing configuration, but I think it could be replaced by a DigitalOutputPowerDriver + Eth008DigitalOutputDriver

Description

Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated
  • Add a section on how to use the feature to doc/usage.rst
  • Add a section on how to use the feature to doc/development.rst
  • PR has been tested
  • Man pages have been regenerated

Copy link
Member

@jluebbe jluebbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good otherwise.

Eth008 is technically not a power supply controler, it is a simple relay
board. To allow using it as a digital output, implement the proper digital
output driver and resource.

In addition, the HTTP implementation of eth008 power driver seems broken
with older revision of board. The driver expect a reply like `<text>
0000000`, but with my board (older revision) the reply is only `<text> 0`.
the io.cgi?relay is also not documented in both older and newer revision.

I switched to the TCP API, tested with my own board. According to
documentation the protocol is the same on the two eth008 revision.

Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
@jluebbe jluebbe self-requested a review February 19, 2026 09:09
@Fomys
Copy link
Author

Fomys commented Feb 19, 2026

I just force-pushed to fix the ruff issue, but the change don't appear here. What should I do?

@jluebbe
Copy link
Member

jluebbe commented Feb 19, 2026

You shouldn't (need to) fix unrelated ruff issues in this PR. We'll take a look.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants