alsa icon indicating copy to clipboard operation
alsa copied to clipboard

Slow/piecewise send of sysex?

Open wipu opened this issue 8 years ago • 3 comments

I'm using amidi --send-hex to send data to a Commodore 64 via a CLab MIDI interface. The problem is that even with 100 bytes the probability of a buffer overrun is about 30%. I didn't find a way to throttle the send speed. I also tried sending the data in smaller chunks, but I cannot get amidi to send anything after the first chunk. I suspect it refuses to send anything if the data doesn't start with F0 i.e. sysex dump start.

If I am right about that assumption, as a workaround I could encapsulate each chunk as a full sysex dump, but that requires extra logic on the receiving side and it also wastes bandwidth, so I don't really wish to do that.

Primarily I would prefer a way to throttle the speed, but if I cannot have that, I would like to be able to send the data a few bytes at a time in a simple shell loop.

wipu avatar Jul 12 '17 06:07 wipu

Interesting problem. I'm not sure anyone here can offer a good solution but if you post the above to this mailing-list then you might get a good response, especially if you are prepared to do any coding and/or testing...

http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

markc avatar Jul 12 '17 06:07 markc

Thanks, I just did that.

wipu avatar Jul 12 '17 06:07 wipu

Good one. Feel free to re-post a solution here if you get one and then close this issue, if you care to.

markc avatar Jul 12 '17 06:07 markc