-
Notifications
You must be signed in to change notification settings - Fork 66
Sysex packets not arriving #66
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
Comments
Issue #57 indicated that Sysex did got thru. Strange that you get it thru. |
Thanks, lathoub! It fails pretty often on packets of varying sizes over 200 bytes. Unlike #57 there's not an exact packet size when it fails. The smaller ones always seem to get through. Sending the same packet data from the same machine to a UDP receiver on my phone (on the same wifi network as the ESP) works fine, so it's not my AP. I can't rule out this being an ESP software stack bug. I've tried spelunking through arduino-esp32 and esp32-idf but I can't find this specific issue out there. The closest issue I could find is this one, but the symptoms are different, and I tried the patches that are supposed to fix it to no avail. |
Hi @ClintH I just tried on an Arduino Ethernet and it worked without a problem. I have a ESP32 arriving next week and will try on it as well. Did you get it resolved already? Lathout |
Other note: in the 245 bytes example above, the message does not start with SysEx start byte |
Hi @lathoub, I gave up and have been using MIDI over USB. UDP is not that unreliable that packets are consistently lost on a home network. Besides, sending large packets through other means seems to work. I think the dump is prefixed by some other messages, all sent in the one packet. I look forward to how your ESP32 testing goes! I suspect the issue is on that side rather than your library. |
Hi,
I have a problem where sysex packets intermittently don't bubble up through the API.
Background
I'm using the library on a ESP32 connecting to rtpMIDI v1.1.11(244) running on Windows 10. The Windows machine hosts a RTP session which the ESP32 joins by IP address. I'm sending control surface sysex from Ableton, which can get quite large. It seems to be these ones that go missing more often.
Troubleshooting
I turned on DEBUG and APPLEMIDI_DEBUG_VERBOSE flags in the library, and it's not giving any errors or warnings. The "Incoming buffer of ... bytes" message never shows for packets that seem lost. The only error that shows up is the following, but that's not correlated time-wise to when the large packets are lost:
Using Wireshark, it seems the packet is being emitted by rtpMIDI as it should. Here's an example of something that never arrived (the first column is a location reference added by Wireshark). This was sent as a single packet of 245 bytes.
In
AppleMidi_Settings.h
, I've changed the following:I'd be grateful for tips for getting to the bottom of this!
The text was updated successfully, but these errors were encountered: