Hi @indianajones, as it has been many weeks since the initial post, would you mind refreshing us on board type, flash version, some sample array initialization code, interconnect schematic, etc. Thanks
What is powering the device(s)? Solid common ground between all hardware? Cable length? Timers tripping in background? Array buffers too small? Noise on the clock/data line?
re: 'all I do is dump that data to console. When I do that, I see the data loss described above.'
Could the delay in attempting to output the data, be blocking the stream of incoming data?
Is it possible to delay the output to ensure all data is received?
re: 'and I expect a big response to my request, over 24k bytes of data.'
That is a load of data!
Would you mind posting process.memory(); before attempting a transfer and then again immediately after.
Does MIDI use a device select, CS or DTR line, or is the data *just there* on the data line sent by any device? Possible data collisions interrupting the sending device?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sat 2019.10.19
Hi @indianajones, as it has been many weeks since the initial post, would you mind refreshing us on board type, flash version, some sample array initialization code, interconnect schematic, etc. Thanks
What is powering the device(s)? Solid common ground between all hardware? Cable length? Timers tripping in background? Array buffers too small? Noise on the clock/data line?
Could the delay in attempting to output the data, be blocking the stream of incoming data?
Is it possible to delay the output to ensure all data is received?
That is a load of data!
Would you mind posting
process.memory();
before attempting a transfer and then again immediately after.Does MIDI use a device select, CS or DTR line, or is the data *just there* on the data line sent by any device? Possible data collisions interrupting the sending device?
EDIT:
Found these:
Single Out >> In or Bi-directional? 5 pin or 7 pin?