-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SysEx message issue with 5.0.2 #188
Comments
Thanks, can you post your code here so we can see what could be the problem ? |
Thanks @0ba-pia for reporting. Can you provide the byte array(s) of the heartbeat SysEx |
Sorry .. code on sender side (uses MIDI v4.3.1):
And on receiver side (uses MIDI v5.0.2):
|
I'm unable to reproduce the error. I have 1 Leonardos sending 3 bytes SysEx every second ( I noticed in your code that you dynamically allocate memory ( Here is the code for both Leonardos:
|
Can you try hot unplugging and replugging the UART connection between those 2 Leonardos? Trying this several times, with v5.0.2 you may get the wrong packed size issue. And not with 4.3.1 |
This might be your issue: establishing the connection mid-stream will cause false readings no matter what firmware is used. Now if all subsequent messages received have the wrong size, this is indeed a problem. But it is expected that connecting in the middle of a message will have it be incomplete. |
I tried the scenario of disconnecting the connection a then re-establishing so. First I send (using MIDI-OX) a complete SysEx ( Here is the log, showing the same output for both versions:
@franky47 Here is the code:
|
@0ba-pia Have you looked at |
@0ba-pia Was the above useful? See also franky47's note: |
I had to revert to 4.3.1 release since using v5.0.2 I had Sysex messages corruption.
Difficult to debug but basically my setup is device (32U4 based) receives sysex "heartbeat" message every 2s from hardware serial (note that MIDIUSB v1.0.4 is also used by this device).
When using MIDI v4.3.1 it works perfectly but compiling with 5.0.2 I receive sysex messages with wrong size (2 bytes instead of 3) after some time.
The text was updated successfully, but these errors were encountered: