Skip to content

Add dc_output and dc_power_out properties to C1000 (Gen 1)#37

Open
oldake wants to merge 1 commit into
flip-dots:mainfrom
oldake:add-c1000-dc-output
Open

Add dc_output and dc_power_out properties to C1000 (Gen 1)#37
oldake wants to merge 1 commit into
flip-dots:mainfrom
oldake:add-c1000-dc-output

Conversation

@oldake

@oldake oldake commented Jun 20, 2026

Copy link
Copy Markdown

What's missing

The C1000 class has turn_dc_on() / turn_dc_off() but no dc_output status property, making it impossible to read back DC output state without calling the private _parse_int("b2", ...) directly.

C1000G2 already defines dc_output and dc_power_out from the b2 telemetry parameter. This PR adds the same two properties to the Gen 1 class.

Empirical confirmation

Tested on a real C1000 Gen 1 (A1761, firmware 1.6.6).

With DC output physically on, raw telemetry b2 was 020100:

  • byte 1 = 01PortStatus.OUTPUT

dc_power_out (byte 2+) read 0 in this sample — the output was enabled but at standby with no load, so the value is plausible but not confirmed under active draw. Byte offsets mirror the Gen 2 mapping exactly.

Note on Gen 2

C1000G2 has dc_output/dc_power_out but is missing turn_dc_on/off. Those control methods exist in Gen 1 (CMD_DC_OUTPUT = "404b"). I don't have Gen 2 hardware to test, but flagging it in case someone else can confirm.

The C1000 class has turn_dc_on/off control methods but no corresponding
status property, requiring callers to use the private _parse_int("b2")
directly. The C1000G2 class already defines dc_output and dc_power_out
from the same b2 parameter; this adds the same two properties to Gen 1.

Confirmed on real C1000 Gen 1 hardware (A1761, firmware 1.6.6):
b2 telemetry was 020100 with DC output on — byte 1 = 0x01 = PortStatus.OUTPUT.
@flip-dots

Copy link
Copy Markdown
Owner

Looks fine to me, I am happy to merge it but you need to update the docs first for the DC power out and port status so they reflect the new capability.

As a side note the reason why I did not implement this for the C1000(X) originally despite owning one is because its DC output is broken, I can send the command to turn the output on and off and it does respond but it won't actually output any power, its output light just blinks then turns off after a while.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants