Repository navigation
Machine: Digitone II development link, stage one (read-only diagnostics over USB MIDI) - #1763
prodbysmolec wants to merge 29 commits into
Conversation
…SB MIDI SysEx Development bases (base.json's dev) observe stock's SysEx router at 0x4012197a (core-dn2 0.3's ev_sysex site) and answer the Analog Rytm MKII link's ident and mem requests from ev_tick through stock's sysex_send on USB. A host (tools/dn2_link.py) with a test of its frames, LINK.md, the goal row and a changelog entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chine/digitone-ii-link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The status byte of stock's USB MIDI receive parser, 0x445090ac on OS 1.12, reads 0xF0 while a SysEx message arrives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Thanks for the Digitone II link work. Two things before this can go further:
- GitGuardian flagged one possible secret in this pull request. Please open its details, check what it found, and remove it from the commits if it is real. If it is a false positive (for example a test byte pattern), say so here.
- Please merge the current
maininto your branch and runnpm run pr:readyuntil it says Ready, so the pull request shows only your link change. This one belongs on the cumulative base pull request #1767, so the checks will also need to be green after that merge.
See https://github.com/repeat98/modwerk/blob/main/docs/DEVELOPER_WORKFLOW.md#make-it-mergeable for the steps.
|
The screen reader can accept the wrong chunk. In Please advance the sequence per request and check the echoed address and exact decoded length before accepting a chunk. A host test with a delayed previous reply and one with a short reply would cover both cases without a unit. |
…chine/digitone-ii-link
…m reply only for its address and exact length A late reply to the previous chunk or a short reply could reach the screen decoder. Host tests cover both without a unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t: bootdiag gets its own request With mem gone, bootdiag (0x25) sends the gate's 15 words and the two marks the base itself writes; the host reads them with one request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nto the loader: ident sends the modules' test value itself Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
To let you review the whole interface in one place: the later PRs now build on it. Each was merged down the stack and pushed, and none of them reads memory at an address a client names.
The site's client ( |
|
Thanks, this is the interface I asked for: Two things before this goes into
|
|
One more thing, and this one is on me: I just merged |
…chine/digitone-ii-link # Conflicts: # src/engine/elektron/dn2-link.ts
|
Thanks for the merge. One more thing for this PR: the site's client still has the old The unit run on the top head and the description update from my last comment are still open. After that, please carry the base merge up through #1820, #1821, #1842 and #2003. For you: I pushed |
The unit refuses 0x21 since the link became bounded, so mem, MEM_MAX, read() and the readLog that read through them are gone, with their tests. repeat98#1820 brings the log back through log OFF (0x24). The fake unit now refuses every command link.c does not serve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Where the stack stands: the code review points on #1763, #1817, #1820, #1821 and #1842 are all answered now. Thanks for the quick round this morning. What's left is the unit session and the descriptions. The checklist below gathers every case my comments asked for, so one sitting covers the whole stack, plus #2003 and #1819. I pushed to two of your branches. Please pull before you work on them:
My Next step (yours, on the unit): the session below. Then put its record, with the package's SHA-256, on each PR, refresh the descriptions, and mark them ready. I merge them down in order: #1763 → #1817 → #1820 → #1821, then #1842. One unit session: the checklistA. The dev package of #1842's head. It carries #1763, #1817, #1820 and #1821. Note its SHA-256 first. For the refusals, the CLI has no raw request, so send one through the tool's own #1763, the link:
#1817, keys:
#1820, diagnostics:
#1821, RAM boot:
#1842, loader:
B. #2003, Voice Spread, on the plain base (no link, as the page builds it)
C. #1819, installing from the page
|
|
Where the stack stands: the code points from my last round are answered. Holding back the link's key events at UPGRADE OS NOW? (#1817) and letting only ramboot's own marked YES through (#1821) are what the prompt needs, and it's good you caught the release case on the unit. What's left is the unit session and the descriptions, then I merge the five down in order. Three additions to the unit session:
The rest stands as before: one session on #1842's head |
Thirty requests a tick for ten seconds, with stock refusing every other send: the link answers at most PER_TICK a tick, queues no more than its ring, drops and counts the rest, never retries a refused send, waits while stock is mid-SysEx on USB, and answers again once the host stops. Stock's own waits below sysex_send stay a unit test (repeat98#2441, repeat98#2356). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
New on the stack: a host test for a host that keeps asking and never reads (#2441, the TX point in #2356). Not run on a unit; the unit session is still to come.
Heads and checks
|
|
Where the stack stands (#1763, #1817, #1820, #1821, #1842): the code is done from my side. The new host test for a host that never reads, and the one-slot upload flood on #1842, cover the TX point from #2356. Thanks. Two things are still open, both already on the thread: the one unit session and the refreshed descriptions. Nothing has run on a unit since the bounded interface, so none of it has been tried with a Digitone II making sound yet. Below are four small additions so that one sitting finishes it. After that I merge the five in order, then #1819.
Next step: yours, on the unit. Then mark #1842 ready. #1846 and #1819 stay where my 26 November comments left them. I have nothing new on either. Generated by Claude Code |
…chine/digitone-ii-link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 19 November records come from builds that still read through mem (review on repeat98#1763, 1 December). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Unit session, first part (5 December): everything that needs no person at the unit has run on my Digitone II and passed, on #1842's pushed head. One real bug turned up and is fixed (below). The cases that need a person's YES or NO, a key press or listening run in a second sitting tomorrow on the same image. Then come the record, Heads: #1763 Image: dev package
Tomorrow, with a person:
I keep every case where a failure could start a flash for a sitting with a person at the unit. One host-tool finding, not in the package
|
|
@prodbysmolec, thanks, this is a big step for the stack. What works: the first part of the session ran on your Digitone II on the heads I see now (#1763 What's still open: nothing broken. Nobody has listened yet, and the cases at UPGRADE OS NOW? need a person, so you're right to keep them for your second sitting. Who acts: you, on the unit, on the same image. Next step: that sitting, then the records and the descriptions (as asked on 26 November and 1 December, plus a row for the late case in #1817's table). Then I merge #1763 → #1817 → #1820 → #1821 → #1842, then #1819. Three small things for that last step:
What I checked
Generated by Claude Code |
…r not (measured on a unit) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…INK.md and GOAL.md One record for both sittings on the stack's development package a158dc91 (.syx 436b2afe), built from repeat98#1842 at 5a9aa01: the test procedure's fixed steps first, each run or not run with why (the runner has no Digitone II steps yet), then each PR's cases. Listening and the large flood's audio stay open. The link row and LINK.md now point at it; the 19 November run stays as history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at a late event costs a person The link's events stay held back at UPGRADE OS NOW? however late stock dispatches them; after the link has given up an event, a person's press of the same key can be held back once, so their first YES may do nothing (repeat98#1763 review, 5 December). The link row points at the new record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er on 5 December Over the unit's USB audio, with 250,000 foreign SysEx sent while a pattern played, every trig interval stayed 0.48 to 0.52 s before, during and after the flood, so the sound and the sequencer go on while the UI stands still. The developer listened to Voice Spread chords on this package and said it sounded good. The sound during the RAM boot's CRC at UPGRADE OS NOW? and during a loader trial stays open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
base/digitone-ii-next), which already holds Machine: Digitone II base for OS 1.12 (from the Digitakt II base) #1760.dev,machine:base --dev, as the Rytm's link):base/link.sobserves stock's SysEx router at 0x4012197a (the site core-dn2 0.3'sev_sysexuses; the replacedlea SYSEX_TABLE,a3is checked by SHA-256 like every site) and passes the message (a1), length (d1) and source (d2) tolink.c, then restores every register and lets stock route as before.link.ckeeps the link's own messages from USB in a ring and answers them fromev_tickthrough stock'ssysex_send(0x401236d2, port 2), in the Rytm link's wire format. The unit chooses what each request returns, and no request names an address:ident(link version, received, dropped, ticks) andscreen OFF(screen 0copies the 128x64 frame on the screen and sends its first 128 bytes;screen 128toscreen 896send the rest of that copy, each with the copy's number). Every other command, the earliermem(0x21) included, is refused with status 2; a part before anyscreen 0, or an offset past the frame or between parts, with status 4. No keys, remote YES or RAM boot yet. A host (sdk/machines/digitone-ii/tools/dn2_link.py:identandscreen, which reads the eight parts, checks they are one copy and prints the frame or writes a PNG) with tests of its frames and the screen layout; the site's client (dn2-link.ts) speaks the same two requests, and its test checksmem's refusal;dn2_link_host.ccompileslink.cfor the host and checks every refusal; the link waits a tick while stock's USB MIDI parser is mid-SysEx (0x445090ac);LINK.md, the goal row, the base README and a changelog entry.npm run pr:ready(Ready). On my own stock 1.12 with the reviewed toolchain:npm run machine:base -- digitone-ii --devbuilt the development package7b14964a…then (.run 4,712, .bss 3,572 bytes; 15 sites; the codegen check passes); linked withhello-marker-dn2and verified (sections 2, 4, 5, 7 and 8 byte for byte, the in-place depack, 1.9 MB container under the unit's limit). The release variant is unchanged (7a60d82e…). This head alone now builds3b7b9836…(.run 4,820, .bss 4,604 bytes; 15 sites).a158dc917c68d70c61d895085da9f6451dafa6c54ee198a27a50dd061a641583(HELLO base44f30887…,.syx436b2afe93075f937142da2face861bc140b7611729f3e868c1f95afbdabfb1b), built from Digitone II: the runtime loader in the development base, over the link #1842 at5a9aa0137afterbase/digitone-ii-nextwas merged up, so it carries this branch; Digitone II: the runtime loader in the development base, over the link #1842's last head rebuilds the same SHA-256 (record, both sittings):identanswered,screen --pngread a whole frame,screen 128before any part 0 andscreen 64came back with status 4, and the oldmem(0x21) with status 2. A host sent 67,992 requests in 60 s (about 1,130 a second) without reading, while the pattern played: the link dropped 60,784, answered four a tick, the UI tick kept about 29.4 a second, andidentandscreenanswered normally afterwards. macOS's USB MIDI driver still drains the endpoint, so this shows the link's load, not USB back-pressure. A host that floods at full USB speed stands stock's UI still, whoever the SysEx is for (the edge case table). Listening: the developer listened to Voice Spread chords on this package linked with Voice Spread and said it sounded good; this stack changes no sound path. Over the unit's USB audio, 250,000 foreign SysEx sent while a pattern played left every trig interval at 0.48 to 0.52 s before, during and after the flood, so the sound and the sequencer go on while the UI stands still (later the same day, on a RAM-booted development base with a store fix, Fix: Digitone II base: module project data follows the working state #2684, and the same link). Earlier, on 19 November: development base 3ef5b3f0 with hello-marker-dn2 (.syxf580bf70; the first build, 7b14964a, before the mid-SysEx wait, too), my Digitone II on OS 1.12, flashed with Transfer:identanswered every request (received counted up, dropped 0, ticks rising),mem 0x47f00000 64returned the start of the package's.runas built with its relocation filled in,screenshowed the unit's screen as it was (pattern A01, UNTITLED, 120.0, the SYN 4 page), and requests out of range came back with status 4 (record). Not tested: a request while other SysEx runs on USB, a request over DIN, long sessions.Edge cases
identrepeatedly on the unitscreenmust refuse a part out of range, and the oldmemmust be gonescreen 128before any part 0,screen 64,mem(0x21), on the unit, 5 Decemberscreenon the unit (19 November),screen --png(5 December)ident, 5 DecemberLINK.mdsays what is not ported yet (keys, remote YES, RAM boot), and since the unit session that a SysEx flood at full USB speed stands stock's UI still, whoever it is for.🤖 Generated with Claude Code