Repository navigation
Improvement: send an Elektron OS upgrade over USB MIDI from the site's engine - #1762
Conversation
os-upgrade.ts sends a .syx as the stock OS takes it from Transfer (start 0x50, then 2 KiB writes 0x51 with zlib's crc32 seeded with 0xffffffff), waits for each answer and stops on any refusal; the unit asks UPGRADE OS NOW? after the last block, and only YES there erases the flash. A test pins the messages to Modwerk's Rytm link, which sends this protocol to units today. os-upgrade-midi.ts is the Web MIDI line: the unit's ports by name and its SysEx. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, this is a clean port of the Rytm link's sender, and pinning the messages to
Merge |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I checked the port selector with a single mocked pair named Please distinguish the model names while allowing normal port-name prefixes and suffixes, and cover the original and II models both alone and connected together. The older red scope job stopped before running the sender tests because it couldn't fetch its base commit. A refresh from main will pick up the checkout fix. |
…k MIDI types; tell Digitone from Digitone II pack7 was a second copy of encode8in7 (codec/transport.ts): the messages use that one now. The MIDI port types come from zoom-link.ts. findUnit matched 'Digitone' to a Digitone II's ports; a model name now matches as whole words, with the system's prefixes and suffixes, but not when a word naming another model follows (II, MKII, Keys). Tests cover the original and the II alone and connected together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, all three done:
Merged |
repeat98
left a comment
There was a problem hiding this comment.
Name matching and the shared types look right. Thanks!
src/engine/elektron/os-upgrade.ts: the protocol as the stock OS takes it from Transfer (and as elektroid sends it): a start (0x50) with the.syxfile's size, then the file in 2 KiB writes (0x51), each with zlib's crc32 seeded with 0xffffffff, each answered before the next goes; it stops with a plain message on any refusal, missing answer or early "done", and resolves only when the last block is answered "done", when the unit asks UPGRADE OS NOW? and only YES on the unit erases the flash. Transport-free (UpgradeLine).os-upgrade-midi.ts: the Web MIDI line, the unit's ports by name and its SysEx joined across events. No page uses it yet; that comes with the machine page's flashing step. Tests pin the messages byte for byte torytm_link.py'sek_upgrade_messageson synthetic files, check the 7-bit packing, the CRC, every refusal path against a simulated unit, and the MIDI line. A changelog entry.npm run pr:ready(Ready); the tests above. The Rytm link sends these exact messages to units today (rytm_link.py flash).7e5b8a73) sent to my Digitone II over USB with these exact messages by a host script (rytm_link.py'sek_upgrade_messages, which the tests pinos-upgrade.tsto): all 1,168 writes answered in 7.7 s, the unit asked UPGRADE OS NOW?, and it installed and works (record). The TypeScript sender and its Web MIDI line did not run on a unit; no page calls them yet.Edge cases
🤖 Generated with Claude Code