Skip to content

feat(connector): read-only Kobra 4 and Kobra S1 Max with gated LAN control - #963

Merged
bloodf merged 5 commits into
mainfrom
orq/tp2nlu/ship-9
Nov 26, 2026
Merged

bloodf merged 5 commits into
mainfrom
orq/tp2nlu/ship-9

Conversation

@bloodf

@bloodf bloodf commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Anycubic FDM models (#668):

  • Kobra 4 (modelId 20028) and Kobra S1 Max (20029) get real read-only status in the Connector: state, progress, nozzle and bed temperature, remaining time and the detail feed; S1 Max also chamber temperature, chamber light and chamber fan. Idle (free, no project) reports progress 0 so the printer is not shown offline. Nothing is published to the printer.
  • Writes (pause, resume, cancel, extruder and bed temperature, part fan; chamber light on the S1 Max only) go through a new LAN control driver (anycubic/lan-control-driver.ts) and only for exact (modelId, firmware) pairs in ANYCUBIC_QUALIFIED_WRITES, which ships empty and cannot be changed from the CLI. For a qualified pair the router reads the firmware at start-up and the driver re-checks it on every attempt; each command is sent once, confirmed only by a later report, otherwise it ends uncertain and is not resent. Temperature and fan are refused while idle; a Kobra 4 bed target above 100 °C is refused.
  • Refused even when qualified: start print, file list and upload, and camera, with reasons in the evidence doc.
  • Kobra 3 Max V2 stays unsupported: no source gives its LAN modelId or identity strings, and 20026 (Kobra 3 Max) is not assumed to cover it.
  • The existing Kobra 3 (20024) path is unchanged and does not read the new list.
  • Simulator: anycubic-simulator.ts can present 20028 and 20029. New tests: tests/node/anycubic-models.test.ts and the journey tests/journey/anycubic-models.spec.ts (with a test-only qualification helper). The shared vendor harness takes a model choice; its default Kobra 3 setup, including the camera, is unchanged.
  • Sources and per-model facts: docs/fullfarmmanager/evidence/anycubic-fdm-models.md (owner reference bloodf/kobracontrol plus community references; facts only, no code taken).

Runtime wiring touched: runtime/agent.ts, pause-control.ts, pause-driver-router.ts, farm-snapshot-provider.ts, anycubic-collection.ts, printer-detail-session.ts.

All models stay unqualified until owner hardware runs. Tests use loopback simulators only. Validated with lint, typecheck, unit, node, PostgreSQL, Go, RTSP and build checks on the merged head. The host's required checks must pass on this head before merging.

Refs #668

Model ids 20028 and 20029 get per-model report rules, a detail feed,
simulator support and journeys with connection loss and recovery.
Commands exist only behind an Anycubic qualification list that ships
empty. Start, files and camera stay refused for them. "Kobra 3 Max V2"
stays unsupported: no source gives its LAN model id.

Fixes the farm snapshot refusing Anycubic chamber readings.

Evidence: docs/fullfarmmanager/evidence/anycubic-fdm-models.md
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.

1 participant