Skip to content

Machine: Digitone II development link, stage one (read-only diagnostics over USB MIDI) - #1763

Open
prodbysmolec wants to merge 29 commits into
repeat98:base/digitone-ii-nextfrom
prodbysmolec:machine/digitone-ii-link
Open

prodbysmolec wants to merge 29 commits into
repeat98:base/digitone-ii-nextfrom
prodbysmolec:machine/digitone-ii-link

Conversation

@prodbysmolec

@prodbysmolec prodbysmolec commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator
  • What was wrong or hard: Piece 4 of the Digitone II goal: the Digitone II had no USB link, so neither an agent nor the page could read anything from a unit. The recipe says to extend the Rytm's SysEx link rather than design a new one. It changes the Digitone II base's development variant, so it goes to the cumulative base draft Digitone II base (cumulative): the Digitakt II base for OS 1.12 #1767 (base/digitone-ii-next), which already holds Machine: Digitone II base for OS 1.12 (from the Digitakt II base) #1760.
  • What this changes: Stage one, read-only, development bases only (base.json's dev, machine:base --dev, as the Rytm's link): base/link.s observes stock's SysEx router at 0x4012197a (the site core-dn2 0.3's ev_sysex uses; the replaced lea SYSEX_TABLE,a3 is checked by SHA-256 like every site) and passes the message (a1), length (d1) and source (d2) to link.c, then restores every register and lets stock route as before. link.c keeps the link's own messages from USB in a ring and answers them from ev_tick through stock's sysex_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) and screen OFF (screen 0 copies the 128x64 frame on the screen and sends its first 128 bytes; screen 128 to screen 896 send the rest of that copy, each with the copy's number). Every other command, the earlier mem (0x21) included, is refused with status 2; a part before any screen 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: ident and screen, 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 checks mem's refusal; dn2_link_host.c compiles link.c for 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.
  • How I checked it: npm run pr:ready (Ready). On my own stock 1.12 with the reviewed toolchain: npm run machine:base -- digitone-ii --dev built the development package 7b14964a… then (.run 4,712, .bss 3,572 bytes; 15 sites; the codegen check passes); linked with hello-marker-dn2 and 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 builds 3b7b9836… (.run 4,820, .bss 4,604 bytes; 15 sites).
  • Tested on a unit: on 5 December 2026, the stack's development package a158dc917c68d70c61d895085da9f6451dafa6c54ee198a27a50dd061a641583 (HELLO base 44f30887…, .syx 436b2afe93075f937142da2face861bc140b7611729f3e868c1f95afbdabfb1b), built from Digitone II: the runtime loader in the development base, over the link #1842 at 5a9aa0137 after base/digitone-ii-next was 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): ident answered, screen --png read a whole frame, screen 128 before any part 0 and screen 64 came back with status 4, and the old mem (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, and ident and screen answered 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 (.syx f580bf70; the first build, 7b14964a, before the mid-SysEx wait, too), my Digitone II on OS 1.12, flashed with Transfer: ident answered every request (received counted up, dropped 0, ticks rising), mem 0x47f00000 64 returned the start of the package's .run as built with its relocation filled in, screen showed 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
Case Why this change makes it a risk How run Result
Requests answered and counted the link must not drop or miss requests ident repeatedly on the unit pass: received counts every request, dropped 0
Out-of-range reads screen must refuse a part out of range, and the old mem must be gone screen 128 before any part 0, screen 64, mem (0x21), on the unit, 5 December pass: status 4, 4 and 2
The screen the frame pointer and layout must be right screen on the unit (19 November), screen --png (5 December) pass: the screen as shown; a whole frame
A host that sends without reading the ring must drop, not hold up stock 60 s of link requests with no input port open, the pattern playing, 5 December pass: 60,784 of 67,992 dropped, four answered a tick, UI tick about 29.4 a second
A host that floods at full USB speed stock's MIDI task takes every SysEx before the UI runs 3.5 million requests in 30 s (about 29,000 a second), the pattern playing; then a control of 250,000 SysEx the link ignores and 250,000 ident, 5 December the Mac's MIDI driver delivered all; the UI stood still 96 s (FREEZE, 144,831 frames). The control: 6.7 s ignored, 6.8 s link requests, so it is stock's MIDI task, not the link. Audio, measured on a 250,000 control (not on the 3.5 million run): the trigs stayed 0.48 to 0.52 s apart before, during and after, so the sound and the sequencer go on while the UI stands still; after the 3.5 million run the developer said the pattern ran in time again
A link message from MIDI DIN the link must ignore it not run not run: no DIN sender at the time
A request while other SysEx arrives on USB the wait for stock's parser not run not run: one cable cannot interleave two SysEx
  • What the guides lacked or got wrong, and where I fixed it: LINK.md says 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

prodbysmolec and others added 2 commits November 19, 2026 03:03
…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>
@prodbysmolec
prodbysmolec changed the base branch from main to base/digitone-ii-next November 19, 2026 08:40
prodbysmolec and others added 3 commits November 19, 2026 20:32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gitguardian

gitguardian Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

️✅ 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.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 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.

prodbysmolec and others added 2 commits November 19, 2026 20:38
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>
@prodbysmolec
prodbysmolec marked this pull request as draft November 19, 2026 20:07
prodbysmolec and others added 4 commits November 19, 2026 21:13
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>
@prodbysmolec
prodbysmolec marked this pull request as ready for review November 19, 2026 20:19
prodbysmolec and others added 3 commits November 19, 2026 21:21
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the Digitone II link work. Two things before this can go further:

  1. 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.
  2. Please merge the current main into your branch and run npm run pr:ready until 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.

@repeat98

Copy link
Copy Markdown
Owner

The screen reader can accept the wrong chunk. In dn2_link.py, requests made within the same tenth of a second reuse the sequence number, and mem() discards the address echoed by the unit. A late reply for the previous chunk can therefore match the current request. A short reply also gets passed on to the screen decoder.

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.

prodbysmolec and others added 3 commits November 22, 2026 18:08
…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>
prodbysmolec added a commit to prodbysmolec/modwerk that referenced this pull request Nov 25, 2026
…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>
prodbysmolec added a commit to prodbysmolec/modwerk that referenced this pull request Nov 25, 2026
…nto the loader: ident sends the modules' test value itself

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@prodbysmolec

Copy link
Copy Markdown
Collaborator Author

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.

Request cmd PR The unit sends
ident 0x01 #1763 (#1842 adds the loader's words) the link's counters; the loader's test value itself, not its address
screen OFF 0x20 #1763 eight 128-byte parts of one copy of the frame
diag 0x22 #1820 the log's size, frames, ticks
log OFF 0x24 #1820 up to 128 bytes of diag.c's log from OFF, with its seq; offsets past it or between parts are refused
bootdiag 0x25 #1821 the RAM boot gate's 15 words and the two marks the base writes

The site's client (dn2-link.ts) follows it: readLog reads the log in parts and keeps it only when it stood still, and each part takes its own turn, as in #1846.

@repeat98

Copy link
Copy Markdown
Owner

Thanks, this is the interface I asked for: ident and screen with the unit choosing the bytes, mem refused with status 2, and the refusals in dn2_link_host.c.

Two things before this goes into base/digitone-ii-next:

  1. A unit run on this head. The record covers builds 7b14964a… and 3ef5b3f0… from 19 November, which still read the screen through mem. Please flash this head's dev package and add its SHA-256 to the record, with:
  2. The description. It still says the link answers mem with up to 128 bytes of DDR or SRAM and that screen reads through mem, and the edge-case table's out-of-range row is about mem. Please update it to the bounded requests and add rows for the refusals above.

@repeat98

Copy link
Copy Markdown
Owner

One more thing, and this one is on me: I just merged main into base/digitone-ii-next (1816db92c), so your diffs here stop showing main's files. It brought main's shared Elektron link wire (src/engine/elektron/link-wire.ts, which dn2-link.ts now imports from), so the stack conflicts with the base branch in one place: the top of dn2-link.ts. Please keep the base branch's export { … } from './link-wire.ts' line and your LINK_COMMANDS with screen, and drop the local LINK_HEADER, which link-wire.ts now provides. Merge base/digitone-ii-next into #1763 (merge, don't rebase), then carry it up through #1817, #1820, #1821 and #1842. #2003 needs the same merge; its only conflict is its row in docs/MACHINE_RECIPE.md, where the base branch's Digitone II row is the current one.

…chine/digitone-ii-link

# Conflicts:
#	src/engine/elektron/dn2-link.ts
@repeat98

Copy link
Copy Markdown
Owner

Thanks for the merge. dn2-link.ts is resolved the way I asked.

One more thing for this PR: the site's client still has the old mem. The unit now refuses 0x21 with status 2, but src/engine/elektron/dn2-link.ts still lists mem: 0x21 in LINK_COMMANDS and exports MEM_MAX and mem(). dn2-link.test.ts (lines 53–66 and 97) also still tests a simulated unit that answers mem. Please remove all three and test mem's refusal instead, so the client and link.c describe the same interface.

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 0c515f096 to base/digitone-ii-next. It fixes a lint error my merge of main introduced in MachinePages.tsx. Merge it in with the next round. It doesn't touch your files.

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>
@repeat98

Copy link
Copy Markdown
Owner

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 mem and UPLOAD_BASE commits lost the race to yours, so nothing changed there. The base branch also has 0c515f096, a lint fix for my own merge. It comes along with your next base merge.

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 checklist

A. 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 ask (it prints the status):

python3 -c "import sys; sys.path.insert(0,'sdk/machines/digitone-ii/tools'); import dn2_link as d; d.CMD['mem']=0x21; print(d.ask(*sys.argv[1:2], *map(int, sys.argv[2:]))[2])" <cmd> <values…>

#1763, the link:

  • Right after boot, before any screen: screen 128 → status 4
  • ident answers; screen --png reads a whole frame (eight parts, one copy number)
  • mem 1207959552 16 (the old 0x21) → status 2
  • screen 64 (not a multiple of 128) → status 4

#1817, keys:

  • hold a key, then disarm: stock gets the release once
  • After an OS upload completes: press YES and a turn from the link → both status 6, and UPGRADE OS NOW? still waits
  • Your own YES and NO at the prompt while the link holds a key: both reach stock
  • The link holds YES while an upload completes, then let YES: does the prompt stay open? If stock acts on the release, the link must hold that release back too

#1820, diagnostics:

  • diag --save log.bin, then parseDeviceLog reads the file
  • freeze 3 right after you press a key → status 5; again after about 3 s → accepted
  • log past the log's end and log 64 (between parts) → status 4

#1821, RAM boot:

  • ramboot <image> boots from RAM (ident boot 1 with the image's CRC); bootdiag reads through 0x25
  • ramboot with a CRC that doesn't match the staged upload → status 7, and UPGRADE OS NOW? still waits for a person
  • How long the unit stands still while the CRC runs over a full-size image, and whether the sound keeps going
  • Several RAM boots in a row (or mark that row as open in the table, the record and "Not tested")

#1842, loader:

  • Trial, Keep, removal, and the refusal while playing
  • try --base <this build's .identity> accepted; .identity of another build refused

B. #2003, Voice Spread, on the plain base (no link, as the page builds it)

  • The pinned package 9ce8ff19…; note the image's SHA-256
  • VOICE SPREAD 75 + FILTER SPREAD LOW, save, power-cycle: both come back. A project saved without the module: both read OFF
  • Listening, in your own words: chords at 100, then OFF; FILTER SPREAD HIGH; a mono track (bass or kick) with the spread on
  • One pan lock and one LFO on filter frequency with the spread on

C. #1819, installing from the page

  • A send from this head's page build, answered with YES, then one with NO; the image's SHA-256 in the record

@repeat98

Copy link
Copy Markdown
Owner

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:

  1. Machine: Digitone II development link, stage two (panel keys and encoders over USB MIDI) #1817's commit says stock started a flash when the link released a held YES at the prompt. That's a unit result, so please put it in Machine: Digitone II development link, stage two (panel keys and encoders over USB MIDI) #1817's record with the build it ran on, and update the row "A remote YES at UPGRADE OS NOW?", which still says the release is allowed.
  2. ramboot's YES now reaches stock a different way (both events are marked, instead of the press being taken and the release passing). Please show on the top head that one ramboot still boots from RAM, and that hold YES, a completed upload, then release leaves the prompt waiting.
  3. Machine: Digitone II RAM boot over the development link (piece 5, stage one) #1821's row "A cancelled request, a failing check" hasn't run yet. Since ramboot answers the prompt itself, please run one ramboot whose gate check fails: it should boot the flashed OS and leave the flash alone.

The rest stands as before: one session on #1842's head cfc60fb5d, with the package's SHA-256 on each PR, and the descriptions brought up to date (the mem rows here, #1820's missing freeze/log rows, #1821's repeated-RAM-boots row). Then mark them ready.

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>
@prodbysmolec

Copy link
Copy Markdown
Collaborator Author

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.

  • What it checks. For ten seconds the test sends thirty requests a tick and never reads, and stock refuses every other send. The link:
    • answers at most four requests a tick
    • keeps no more than its ring of eight and drops and counts the rest
    • never resends a reply stock refused
    • sends nothing while stock is mid-SysEx on USB
    • answers ident again once the host stops
  • Digitone II: the runtime loader in the development base, over the link #1842 adds the upload slot: ten upload frames at once take one slot and the other nine are dropped.
  • I made sure it can fail. I broke the link on purpose twice: once to resend a refused reply, once to ignore the mid-SysEx wait. The test failed both times.
  • What it does not cover: the waits inside stock's own sysex_send, which Kári found on the Digitakt II. Only the unit can show those, so the unit session adds one case: a host that sends without reading while I watch the UI and the ticks. The bounded native send itself is in Elektron: extract the shared link and diagnostics from the Digitone II work #2442.
Heads and checks

repeat98 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

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.

  1. Merge first, then flash. Merge base/digitone-ii-next up through the stack before you build the dev package. It brings Voice Spread: the first Digitone II module, and the Digitone II becomes a preview #2003 and the MachinePages.tsx lint fix your last local run tripped on. Then run the session on Digitone II: the runtime loader in the development base, over the link #1842's resulting head, not on cfc60fb5d, so the SHA-256 in the record matches the head I merge. A push after the session would mean running it again.
  2. Two more cases for the session.
    • The host that sends without reading, which you added yourself: tell me how long it ran, what ident read before and after (received, dropped, ticks), whether the panel kept responding and the pattern kept playing in time, and whether ident answered normally once the host stopped.
    • After the link's YES release is held back at UPGRADE OS NOW?, press NO yourself, then check that YES and FUNC behave normally on the next screens. Stock saw YES go down but never come back up, so I want to know it doesn't end up with a stuck key.
  3. Where the Digitone II stands. The recipe asks each PR that moves a piece to update GOAL.md, the recipe table and the profile's stack together. The stack only does GOAL.md:
  4. Digitone II: the runtime loader in the development base, over the link #1842's "please look at that" about test_machine_base.py: I checked it. The base branch already accepts a shared source (that came in from main), and your change only adds the check that the file was actually staged, so the test gets stricter. That's fine. You can drop the note from the description.

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

prodbysmolec added a commit to prodbysmolec/modwerk that referenced this pull request Dec 5, 2026
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>
@prodbysmolec

Copy link
Copy Markdown
Collaborator Author

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, GOAL.md and the descriptions.

Heads: #1763 5b4c19ea3, #1817 b955b0470, #1820 e85be0631, #1821 962aed3a4, #1842 5a9aa0137. base/digitone-ii-next is merged up through the stack. The #1817 fix for a late YES is in, as are machine.json, the recipe row and GOAL.md, which now says this link has not run on a unit yet.

Image: dev package a158dc917c68d70c61d895085da9f6451dafa6c54ee198a27a50dd061a641583 (HELLO 44f30887…), linked with Elekloader 0.11.0's patcher: .syx 436b2afe93075f937142da2face861bc140b7611729f3e868c1f95afbdabfb1b. Flashed; I pressed YES myself.

  • Found and fixed (Machine: Digitone II diagnostics log, the Octatrack's layout, over the development link #1820): the site could not read the log. The base said version 2 but paged only the log (6,148 bytes), and parseDeviceLog refuses a version 2 log without the crash and stall records after it. LOG now pages the whole image (7,304 bytes) as the Octatrack does, with the records left zero. e85be0631 adds a test that reads that image and refuses the log alone. This is why the session runs on a second image.
  • Machine: Digitone II development link, stage one (read-only diagnostics over USB MIDI) #1763:
    • screen 128 before any part 0 → 4
    • ident, and screen --png reads a whole frame
    • old mem (0x21) → 2
    • screen 64 → 4
  • Machine: Digitone II diagnostics log, the Octatrack's layout, over the development link #1820:
    • diag --save (7,304 bytes), then parseDeviceLog reads it: version 2, START
    • log 7304, 7424 and 64 → 4; the last part (7296) → 0
    • freeze 7: FREEZE in the log (10,550 frames). The frame counter ran on (59,297 → 70,152) while the UI ticks moved by 8.
  • Machine: Digitone II RAM boot over the development link (piece 5, stage one) #1821:
    • Four RAM boots in a row, three of them from a RAM-booted base: each boot 1 with the image's CRC f0aebc69, about 30 s each including the upload. bootdiag reads MWBT, the marks and stage 6.
    • A RAM boot whose boot gate fails (unpacked CRC one bit off) → status 0, then boot 8: the flashed OS came back with its own HELLO and nothing was written.
    • At the prompt, a container CRC that doesn't match → 7. UPGRADE OS NOW? still waits (screenshot), and a correct ramboot then answered it from RAM.
    • The CRC over the full 1.9 MB container: the status 7 reply came after 0.22 s and the OK after 0.39 s. While UPGRADE OS NOW? waits, stock's frame counter already stands still, so whether sound continues is for the listening part.
  • Digitone II: the runtime loader in the development base, over the link #1842:
    • A trial rolled back after 5 s; a trial kept (--base with the build's .identity), with corner_dot's dot on the screen; the removal kept
    • .identity of another build: refused before sending
    • The link presses PLAY, and a trial is refused: "unsafe (the unit plays: stop it)"
  • A host that sends without reading:
    • 60 s of ident, screen and diag, 67,992 requests (about 1,130 a second), no input port open, while the pattern played (PLAY from the link)
    • ident before: received 132, dropped 0, ticks 2124. After: received 68,126, dropped 60,784, ticks 3947. That is 4 answered a tick, and the UI tick kept about 29.4 a second.
    • The frame counter kept going, no incident, and ident and screen answered normally afterwards
    • Limit: macOS's USB MIDI driver still drains the endpoint. This shows the link's load, not USB backpressure, which a Mac host cannot produce.
  • Machine: Digitone II development link, stage two (panel keys and encoders over USB MIDI) #1817, without a person: hold TRK, then disarm. posted +1 for the press and +1 for the release, then nothing for 3 s; a key afterwards → 1, not armed.

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

dn2_link.py ramboot sometimes ends with InvalidPortError while it waits after the reset, because the port disappears during enumeration. The RAM boot itself went through each time. I'll make the wait catch it in #1821's tool. That changes only the host, not the image.

repeat98 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

@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 5b4c19ea3 up to #1842 5a9aa0137), and every case that needs no person passed: the link's refusals, the log read by the site, four RAM boots in a row, the failed gate booting the flashed OS, the loader's trial, Keep and removal, and the host that never reads. The log bug you found on the unit is a good catch. #1817's late YES is closed the way I hoped: test_dn2_link.py passes on #1817's head (16 tests), and against the previous link.c the new late case fails, so it really covers it. machine.json, the recipe row and GOAL.md are done too.

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:

  1. Pushes after the session. A record, a description, a doc line or the host-only InvalidPortError fix in ramboot don't mean running it again, as long as the dev package stays a158dc91…. In the record, please name the head you built it from, and confirm that the last head rebuilds the same SHA-256. If the second sitting turns up a bug on the unit itself, tell me before you change link.c or the other base files, and we'll agree which cases to repeat.
  2. One sentence in LINK.md's status 6 about the late case: the link's events stay held back at the prompt 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 and they press it again. A musician who runs into that should find it there.
  3. The record's form. Please write one record for the 5 December session (both sittings), with the package and .syx SHA-256, and start it with the fixed steps from docs/TEST_PROCEDURE.md. Mark each step as run, or "not run" with the reason; the runner has no Digitone II steps yet, so saying so is fine. Then add each PR's cases, keep the macOS note on the flood case, and link the record from each PR's description and from GOAL.md's link row, which can then drop "not run on a unit yet".
What I checked
  • All five heads have base/digitone-ii-next merged in and stack cleanly: each one contains the one below it, and GitHub reports each as mergeable into the base branch.
  • test_dn2_link.py passes on each head: 14, 16, 23, 27 and 34 tests. machines.generated.json matches machine.json on each head.
  • The late-case fix (a69b413d5): mw_link_tick no longer gives up pend while flash_waits(), and anything given up earlier goes to lost, which mw_link_key/mw_link_enc hold back at the prompt. The trade-off in point 2 comes from was_lost() only running at the prompt, so an old given-up YES can stay in lost until one arrives.
  • The CRC timings (0.22 s and 0.39 s over 1.9 MB) answer my question about how long the unit stands still.
  • On these PRs, only the description check runs on pull requests into the base branch, and it is green on all five heads.

Generated by Claude Code

prodbysmolec and others added 2 commits December 5, 2026 17:13
…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>
prodbysmolec added a commit to prodbysmolec/modwerk that referenced this pull request Dec 5, 2026
…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>

This branch has not been deployed

No deployments
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.

2 participants