-
Notifications
You must be signed in to change notification settings - Fork 1
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
Communication error between two devices #8
Comments
And the two devices were 3cm apart from each other with no other metallic or electronic things around. |
@bjonnh Thank you for your kind offer to ship hardware. I should have what I need; I just don't have the time to set up the hardware and do point to point testing. I am currently trying to support some of my other projects. Which pico w USB interface are you using for your testing (host or device)? I suspect, but have not had time to dig into it, that the issue you are seeing is the gross mismatch in bandwidth between UART MIDI and USB MIDI on the Pico W (slow) and Bluetooth LE (way faster, I think). There could also be multi-threading issues in the code because 2 cores and the fact that Bluetooth LE runs in the pico-sdk's custom interrupt mode execution context. Might be other issues, too. The USB MIDI host is particularly slow due to the underlying host controller driver design. I am currently working on trying to speed up USB MIDI host by refining this pull request. I hope to push something up some time in early February. |
@bjonnh I should mention that I do not think the issue is radio related. The message you see gets printed if buffers overflow, too. |
It is just my computer connected to the two picos by USB and they talk to each other over bluetooth. And I play a midi file on one of them. But I have them both set so bluetooth gets to both usbmidi and to serial, so that may be taking more time. I will try with physical on both sides see if that's just a bandwidth or timing problem. |
Connecting two devices, and talking to them via USB I am getting random errors when sending a midi file through
(always at different times so it is not related to the file itself):
In some cases it even hangs one or the other device (but most of the time it hangs the one that receives)
If that can help I can ship you a bunch of picos and a programmer (so they are easier to work with).
The text was updated successfully, but these errors were encountered: