Repository navigation
Machine: Digitone II development link, stage two (panel keys and encoders over USB MIDI) - #1817
prodbysmolec wants to merge 39 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>
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>
…, not yet on a unit) 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>
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 40376663 | Triggered | Generic High Entropy Secret | 19be13a | src/community/agent-sessions.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 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.
…host on a unit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and the encoder pushes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Thanks for stage two of the Digitone II link. Two things before this can go further:
- GitGuardian flagged one possible secret. Please open its details 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 only holds this change.
|
Please keep pending key releases alive when remote control is switched off. When the pending queue is full, Please let the UI tick finish queued releases after disarming, while continuing to refuse new presses. A host test that disarms with a held key and a full queue should see the release delivered once when space opens. Please also verify that confirming a flash still requires a physical panel press when remote panel keys are enabled. |
…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>
…-keys # Conflicts: # sdk/machines/digitone-ii/tools/dn2_link.py # sdk/tests/test_dn2_link.py
…upload waits for YES disarm() cleared the held keys and the retry flag, so with a full queue stock could keep a key down the link had pressed. Now new presses stop at once and the UI tick posts the waiting releases when there is room. While stock's upload buffer holds a complete OS upload (UPGRADE OS NOW?), key and enc are refused (status 6) and is_key_held stops seeing the link's holds: only a person confirms a flash. Host test dn2_link_host.c compiles link.c with stubs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, both fixed in 9d1971f:
GitGuardian: false positive (the scrubber test's made-up tokens in |
|
Thanks for fixing the release retries. I checked what happens to a remote press that's already queued when the OS confirmation opens. The new guard blocks incoming presses, but the host fixture shows the queued press can still reach stock once the confirmation is open. Could you check this at dispatch too, and cover the transition in the host fixture? Physical confirmation and key releases should still work. |
Out of date: the branch has caught up with main since, and the GitGuardian find was explained as a false positive (made-up tokens in a test from main). What is still open is in the latest owner comment.
…chine/digitone-ii-link # Conflicts: # sdk/machines/digitone-ii/GOAL.md
…screen), no read at a client's address mem (0x21) is gone. screen OFF (0x20) copies the frame on the screen at OFF 0 and sends eight 128-byte parts of that copy with its number, after checking stock's frame pointer lies wholly in DDR. A host C test compiles link.c and covers both requests and every refusal: offsets past or between parts, a part before any copy, a pointer outside DDR, the old mem at any address, every other command and another link version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n command, eight parts of one copy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…OW? opened is taken at dispatch, never reaching the prompt A person's press at the prompt always reaches stock now, even while the link holds keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chine/digitone-ii-link-keys # Conflicts: # sdk/machines/digitone-ii/GOAL.md
|
Fixed in 6f2fbba (then merged
Guides: |
… key link link.c keeps the keys and turns and takes repeat98#1763's screen in place of mem; one host fixture covers both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n names Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…omes in parts the unit reads itself (log OFF) mem is gone, so link.c answers log OFF (0x24) with up to 128 bytes of diag.c's log and its seq; dn2_link.py diag --save and the site's readLog read part 0, the rest, then part 0 again, and keep only a log that stood still. 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>
|
Thanks. Taking the link's queued press or turn at dispatch, and letting a person's YES through at the prompt, is what I asked for, and the transition case in Before this goes into
|
…chine/digitone-ii-link # Conflicts: # src/engine/elektron/dn2-link.ts
…achine/digitone-ii-link-keys
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>
On a unit, the link held YES while an OS upload completed, then 'release' posted YES's key-up, and stock started the flash: it answers the prompt on the release as on the press. At the prompt mw_link_key now takes every key event the link posted, releases included, and counts it as refused; a person's YES and NO still reach stock. The host test asserted the old behaviour and now checks the release is taken (it fails against the old dispatch). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the link's releases held back at UPGRADE OS NOW? (repeat98#1817), ramboot's YES would be held back too: until now its press was taken at dispatch and only its release reached stock, which answered the prompt with it. The two events ramboot posts for the upload it checked (length and CRC32) are now marked in the pending queue and pass; any other key event the link posted is still taken. The host test checks both reach stock, and fails when the release is posted unmarked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev).link.cgets the Rytm link'skey,enc,releaseanddisarm, posted on the UI task's queue as the panel's messages are (getter 0x4013747a, queue_put 0x40001896), so the UI loop plays them through the core's ev_key/ev_enc sites and stock. A key the link holds reads as held to stock's is_key_held (0x4011fac4, a 6-byte site checked by SHA-256, pointed atmw_link_held). The arm is SETTINGS > REMOTE CTRL (a row through the core'score_additem), ON at every boot; a press or turn from a person refuses the host for about three seconds and lets go of what it held.identadds armed, person, presses by a person, posted and refused. The host getspress,hold,let,turn,releaseanddisarmwith the panel's key names; LINK.md, the goal row, tests of the names and a changelog entry. Nothing about remote YES or RAM boot yet.npm run pr:ready(Ready). The addresses come from stock 1.12 on my computer and from the unit: with stage one'smemI read the UI queue's ring while the developer pressed and turned, which gave the message format, the key ids and the encoder numbers (A to H 1 to 8, LEVEL 9, each turned alone)..syx4fd37eac), my Digitone II on OS 1.12, flashed over USB: encoder A turned Attack Time up to 127 and back to 0 (read on the screen throughscreen), PLAY and STOP ran and stopped the pattern, REMOTE CTRL: ON showed in SETTINGS and OFF refused keys (not armed), a key from a person refused the host (status 5) and one 3.5 s later went through, while the link held FUNC the ATK label read DEL (stock saw the hold through is_key_held), and 650 posted events counted no person (record). Not tested: a held key with a second key from the host, a full queue, long sessions. The host names 35 panel keys, each read from the panel on the unit.Edge cases
press STOPdn2_link_host.c: fill the queue, disarm, let the loop catch up🤖 Generated with Claude Code