ha yea I think @tehn pointed me in that direction at some point last time I was thinking/asking about this. Must’ve got more computer-literate in the meanwhile - message descriptions actually making 100% sense this time around, very clear document…
Still stuck at the same point as last night though, not able to simply print all the bytes coming in off /dev/ttyUSB0 …
EDIT:
Bah - sorry to rubber-ducky the forum - I found the answer to my own question immediately after asking… It’s a gotcha I already ran into with the aleph, you first have to call stty -F /dev/ttyUSB0 raw before opening the file.
Still seeing something strange though… If I run my finger along a line of buttons pretty fast whilst reading from /dev/ttyUSB0 the monome will go crazy, light a bunch of random leds & stop responding to the input commands. Zoinks! this bug is intermittent (totally gone now) and possibly usb cabling-related. All is well, back to building fun stuff!
EDIT:
slept, rebooted, back to buggy… I have now solved the intermittent bad behaviour with furious button-mashing (hopefully once & for all). For the record a UNIX incantation for a well-behaved monome grid goes thusly:
stty -F /dev/ttyUSB0 115200 sane -brkint -icrnl -opost -onlcr -isig -icanon -iexten -echo -echoe
after that, one’s programming language of choice can just read/write raw bytes to/from /dev/ttyUSB0. Kind of wondering now whether some of the weird hangs/craziness I saw running serial comms stress tests flat out on the aleph could be attributed to some missing stty options???