-
Notifications
You must be signed in to change notification settings - Fork 141
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
BTstackBackgroundBackend connection issue #1048
Comments
Unfortunately, I don't have any Apple hardware to reproduce this myself. If the Pico is in fact not storing the necessary pairing information, perhaps it could be related to bluekitchen/btstack#498? |
No, unfortunately not I just did some testing with my windows 10 computer - I can see a Bluetooth Midi Device with the name "MIDI Adapter" on this computer as well but I get the same behavior as on my iPhone: the computer tries for some time to establish a connection and then goes right back to "Not Connected". Can anyone confirm weather I got this part right |
Last time I tested it, Windows did not support MIDI over BLE natively, it required a third-party program to be able to connect to MIDI devices, so this could be another issue. That said, I vaguely remember sometimes having to connect twice on Android after uploading a new sketch. This could be related. I'm afraid I won't have much time in the near future to investigate this further, but it would be interesting to compare the behavior to the BTStack examples, to rule out any Control Surface-specific issues. You can find all BLE logic here: https://github.com/tttapa/Control-Surface/blob/main/src/MIDI_Interfaces/BLEMIDI/BTstack/gatt_midi.cpp
Yes, but why is this necessary? This should be similar to what
|
I tried again with Bluetooth LE Explorer and according to this video, Bluetooth LE Explorer should be capable of establishing MIDI over BLE connections. But I could not establish a connection with Bluetooth LE Explorer either. I got "Failed - Pairing error".
I'm not that firm with C++ and building Makefiles ... but I managed to get the
Thank you for your help so far ... if I manage make progress on this issue, I will report back in this thread :) |
I borrowed a friend's iPad (8th gen, iPadOS 17.5.1), but I can't seem to be able to reproduce the issue: I've uploaded the code you posted to a Pi Pico W, opened MIDI Wrench on the iPad, and I was able to connect (and disconnect and reconnect, even after power a cycle) without any problem. Using https://github.com/earlephilhower/arduino-pico version 3.9.2 (latest) and the current |
Alright, progress, I looked into the problem on Windows, and I could reproduce the issue. Explicitly handling the security manager |
Describe the bug
I loaded a slightly modified version of BLEMIDI-Adapter.ino onto my pico w. In Midi Wrench on my iPhone I can see a Bluetooth Midi Device with the name "MIDI Adapter". But when I try to establish a connection, the state goes right back to "Not Connected". When I try the same thing in Blue See I get this log:
I am kind of new to C++ and I am missing an example on how to use BTstackBackgroundBackend with GenericBLEMIDI_Interface ...
To Reproduce
Expected behavior
A connection to midi device ("MIDI Adapter") is established
Code
The text was updated successfully, but these errors were encountered: