monome / crow

Crow speaks and listens and remembers bits of text. A scriptable USB-CV-II machine
GNU General Public License v3.0
166 stars 34 forks source link

upload script via dfu-util for speed & integrity #38

Closed trentgill closed 5 years ago

trentgill commented 5 years ago

also possibility that we can directly upload scripts via dfu-util to the single 64kb page, which will likely be much faster than TTY plus has built-in data integrity checks.

tehn commented 5 years ago

this does seem like a nice improvement as an alternative method. doesn't this require getting it into bootloader mode? thinking about how it'd work--- ie, on the command-line editor. it'd issue a bootload reset, then run a dfu shell command. this could even work on norns as the dfu util could just be installed.

but there is also an elegance about the TTY method. ie, you could make a dumb max patch (without dfu etc) for dynamically writing scripts to flash.

trentgill commented 5 years ago

i think we should just stick to TTY, and instead of investing energy in this approach, redirect that effort to the standard TTY upload/download facility. using checksums would be one obvious approach for this, and could be part of the ^^start and ^^end system commands. see issue #32

closing this now. please reopen if you think we should pursue this further.