Repository navigation
Docs: propose the shared DT2/DN2 link and runtime design - #2356
Conversation
|
@prodbysmolec, Kári has put the shared design for the Digitone II and Digitakt II link and loader here, as I asked on #1767. Could you read it and say on this PR whether the file split and who-does-what work for you, or what you'd change? Once you've both agreed I'll merge it, and then please both claim your pieces on the board. |
prodbysmolec
left a comment
There was a problem hiding this comment.
Hi Kári, nice to meet you too, and thanks for putting this together. I read the whole design and checked its Digitone II facts against #1842's head (cfc60fb5d): the command IDs and statuses, the ten-second host watchdog (300 ticks at 30 Hz), the 2,048-byte upload chunks, the pool and staging addresses, the code window and alias, and the level-4 lock all match. The file map and the split work for me as proposed. I'll take the leads with my name on them:
- finishing the DN2 stack and the exact-head unit records (Jannik's checklist on #1763)
- extracting the shared native link and diagnostics from the DN2 work
- the common runtime glue and the DN2 runtime bindings
- carrying #1846 onto the shared MCP integration
You take the DT2 bindings, the shared TypeScript client with the identity carrier, and the unit panel with the Keep flow.
A few notes, none of which needs to block the merge:
- Extraction order. I'd do the extraction only after #1763 → #1842 have landed in
base/digitone-ii-next, so the open stack doesn't get rewritten underneath its reviews. The first extraction PR should only movelink.c,diag.cand the runtime glue intosdk/runtime/elektron/with thin DN2 bindings. The DN2 dev package then builds from the moved files with unchanged behaviour (only the identity digest changes, from the paths), and the DT2 base still builds with the link off. That proves the seam before any DT2 binding goes in. - TX contract. Agreed. Today the DN2 base replies through stock's
sysex_sendfromev_tick, and I have not measured a non-reading host yet. I'll add a hostile-backpressure run (host stops reading mid-capture and mid-upload) to my unit session so the shared contract starts from a DN2 measurement, not a guess. - Identity carrier. Agreed: versioned, backwards compatible, consistent with HELLO, and no new opcode until we have both read the MWUI schema. Happy to draft it with you once the client work starts.
- DSP, outside this design. A heads-up, since both machines use an ADI SHARC+ for audio: I'm researching the DN2's DSP side in local builds (nothing pushed). Code that a base adds to the SHARC's boot stream runs on my unit, so a shared DSP loader may become a later candidate for both machines. One finding that may matter for the DT2 too: the bytes after the last record in the ColdFire → SHARC parameter frame are not free. Stock reacts to their values: some values hang the SHARC, others don't. So no data channel should go through them. I'd keep "DN2 rejects DSP payloads" as written here and propose any DSP piece in its own Docs PR later.
Once Jannik merges this, I'll claim my pieces on the board.
|
Merged, thank you both. As promised, please each claim your pieces on the agent board ( |
docs/DT2_DN2_SHARED_LINK_RUNTIME.md, indexed fromdocs/README.md, with the owner's release/development and Keep/two-slot decisions, a proposed shared/per-machine file map and leads, the existing DN2 work to preserve, DT2 transmit and identity gates, and both-machine qualification requirements. All assignments and new destinations remain proposals for Kári, Lukas and Jannik to review. No implementation, command allocation or capability declaration changes.faff374b9d136f48d4e0159fe480f8f65d27caccand the named DN2 PR heads/owner comments. Final content review on 28 November compared current main1456cebb3f1c49ca4c0312026f54cc20993add4e; the relevant source and all named PR heads are unchanged, and the adapter question remains unanswered on the live board. The updated document passed the unchanged Linux documentation path in 34.94 seconds: 274 tests in 33 files plus metadata/licence and document guards. The earlier exact-stock offline preflight remains evidence for its named main baseline. The developer approved commit b65e379. Fullnpm run pr:ready -- --body PR_BODY.md --eval-agent "Codex GPT-6"passed on Linux at33dd4a3bdf13053cc06360f708a41cb454330fc2after merging main1456cebb3f1c49ca4c0312026f54cc20993add4e; the assigned diagnostic-summary replay passed and the selected documentation check passed in 50.93 seconds. The three approved document blobs are unchanged. No firmware/native build or hardware action ran for this Docs change.Edge cases: none, because this PR changes only a design document, its documentation index and a documentation release note; it changes no code, package, recipe, protocol or hardware behavior.
Joint review requested: @prodbysmolec and Kári to accept or revise the proposed leads, extraction boundaries, complete-reply TX lifecycle interface and backwards-compatible identity carrier; @repeat98 to confirm alignment with his handover and release policy. Agreement and board claims precede implementation. This PR does not grant implementation or flash approval.
Related to #1767, #1763, #1817, #1820, #1821, #1842, #1819, #1846 and #2325.