Repository navigation
feat(connector): Creality HALOT read-only driver with unqualified writes - #966
Merged
Merged
Conversation
(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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.halot/control-driver.ts, but only for pairs inHALOT_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 byPRINT_ENDorPRINT_GENERAL, never byPRINT_STOP, whose meaning differs between sources. An unconfirmed write blocks every later write to that printer until the Connector restarts.packages/sim-tools/src/halot-simulator.ts; teststests/node/halot-protocol.test.ts,tests/node/halot-runtime.test.ts; journeytests/journey/halot.spec.tscovers status, loss and recovery, and test-only signed control.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 touchesprusa/config.ts.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:
Validated locally on this head:
playwright.journey.config.tsagainst the simulator.tests/node/signalling-websocket-boundary.test.ts, fails the same way on main with this local install.tests/node/farm-route-authorization.test.ts, which needstypescript-astfrom chore(deps): update dependency typescript to v7 #503; the localnode_modulespredates it.Refs #668