Skip to content

Digitone II: the site's upload transport over the link - #1844

Merged
repeat98 merged 9 commits into
repeat98:mainfrom
prodbysmolec:improve/digitone-ii-upload-transport
Nov 20, 2026
Merged

repeat98 merged 9 commits into
repeat98:mainfrom
prodbysmolec:improve/digitone-ii-upload-transport

Conversation

@prodbysmolec

@prodbysmolec prodbysmolec commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Digitone II upload transport for the site's runtime loader. The link client is already on main through #1823. The device-side controller is tracked in #1842 for base/digitone-ii-next.

  • What was wrong or hard: The site's upload session used the Octatrack's USB vendor transport. The Digitone II development base exposes the same upload controller through its SysEx link.
  • What this changes: The engine can send a 7-bit packed upload request and receive its 144-byte reply over the Digitone II link. It requires a full reply, checks that small memory reads return exactly the requested bytes and rejects large-read chunks that echo the wrong address or length. The transport remains available only to engine callers. No page uses it yet.
  • How I checked it: All 12 link tests passed, including a 10 KB simulated upload and trial, a short or oversized reply, a wrong echoed address or length, and cancellation. npm run pr:ready passed on current main. The native compiler reproduced 71 source-only Elemod exports byte for byte, and the pinned GitHub Elemod check passed.
  • Tested on a unit: see below.

Not tested on a unit: these changes are in the TypeScript host. #1842 records the author’s earlier device-side test. End-to-end page and hardware qualification belongs with the device base and the first released module.

  • Edge cases: None requiring new unit evidence for this inactive host transport. The host test suite covers malformed replies, wrong read addresses, oversized or short reads, cancellation and a multi-frame trial.
  • What the guides lacked or got wrong, and where I fixed it: Nothing beyond the device-side notes in Digitone II: the runtime loader in the development base, over the link #1842.

prodbysmolec and others added 3 commits November 20, 2026 11:02
…loadSession

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r stack's link.c

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

Copy link
Copy Markdown
Owner

The upload adapter drops trailing bytes before the shared decoder can validate them. I passed it a decoded 145-byte reply and got back 144 bytes. decodeUploadResponse normally rejects that length, so a malformed acknowledgement can look valid here.

Please require exactly 144 decoded bytes before accepting an upload reply and add a test for a valid-length acknowledgement with one extra byte. Bring the read validation from #1823 into this branch once it lands.

@repeat98
repeat98 marked this pull request as ready for review November 20, 2026 23:03
@repeat98
repeat98 merged commit 6ac9c8c into repeat98:main Nov 20, 2026
25 of 32 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.

2 participants