Skip to content

feat(connector): Creality HALOT read-only driver with unqualified writes - #966

Merged
bloodf merged 6 commits into
mainfrom
orq/tp2nlu/ship-11
Nov 26, 2026
Merged

bloodf merged 6 commits into
mainfrom
orq/tp2nlu/ship-11

Conversation

@bloodf

@bloodf bloodf commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Full Review: merge approved at 2b63485; merging once the required checks are green on that head.

Creality HALOT resin driver (#668): HALOT-MAGE PRO, HALOT-MAGE S, HALOT-X1 and HALOT-X1 Max.

  • New packages/connector/src/halot/ backend speaking the HALOT LAN protocol (port 18188). It polls status every second: state, file name, layers, progress and remaining time. It requires the {"version":"1"} reply before it sends the password token, so a printer that speaks something else yields no reading. Set-up is by IP address in the runtime file; there is no discovery and no browser set-up form.
  • Writes: pause/resume and stop exist in halot/control-driver.ts, but only for pairs in HALOT_QUALIFIED_WRITES, which ships empty and cannot be changed from the runtime file or the wire. With a test-only qualification, a write is sent once, only from the matching state and for the job seen at preparation, and is confirmed by status. A stop is confirmed only by PRINT_END or PRINT_GENERAL, never by PRINT_STOP, whose meaning differs between sources. An unconfirmed write blocks every later write to that printer until the Connector restarts.
  • Not implemented: upload, start, print settings, camera, temperatures and resin level, with reasons in the evidence doc.
  • Simulator packages/sim-tools/src/halot-simulator.ts; tests tests/node/halot-protocol.test.ts, tests/node/halot-runtime.test.ts; journey tests/journey/halot.spec.ts covers status, loss and recovery, and test-only signed control.
  • Wiring: config/runtime.ts, control/printer-binding.ts, runtime/agent.ts, collect.ts, farm-snapshot-provider.ts, pause-control.ts, pause-driver-router.ts, farm-protocol/src/state.ts, plus the fleet catalog in the web app. Also touches prusa/config.ts.
  • Protocol and sources: docs/protocols/halot.md; per-model evidence and gaps: docs/fullfarmmanager/evidence/halot.md. Facts only, no third-party code.

Known limits, stated in the evidence doc:

  • No reply identifies the model, serial or firmware, so the model is what the owner declares; a wrong address with the same password would show under the declared model.
  • The password token is reversible by anyone watching the LAN.
  • HALOT-X1 and X1 Max rest on vendor-only evidence.
  • All models are unqualified until owner hardware runs.

Validated locally on this head:

  • HALOT journey: 3/3 passed with playwright.journey.config.ts against the simulator.
  • Unit check: 1987 of 1991 node tests pass. The one failing file, tests/node/signalling-websocket-boundary.test.ts, fails the same way on main with this local install.
  • Typecheck errors are limited to tests/node/farm-route-authorization.test.ts, which needs typescript-ast from chore(deps): update dependency typescript to v7 #503; the local node_modules predates it.
  • CI installs fresh. The host's required checks must pass on this head before merging.

Refs #668

(cherry picked from commit e9636db678f1bdec7fe09d279c5d45daa440d721)
(cherry picked from commit 1335a36bcb4bd2d41f9a432a8b96df9a5101ae8f)
(cherry picked from commit 5f339c0691a3cd0513d22ea48b1fe3ac284bec08)
(cherry picked from commit 403fa041932937bdd4c4e7f271122ac0c1c6f4d2)
(cherry picked from commit 81bf9378d4e8314ed7572c45a8ec5da88ffe735e)
(cherry picked from commit ac6d63015d02fa2879dc8326a0e005640a54ca5c)
@bloodf
bloodf merged commit fd5dc06 into main Nov 26, 2026
7 checks passed
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