-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hello,
I have used this example to create a service that acts as a BLE MIDI peripheral on my phone. The issue is everytime I want to use it I need to pair the device again. I am running Win 10 and I have to remove my peripheral from the devices list and add it again. Then I need to re-enter the pin on the phone. If I disconnect, I have to repeat the process. On the win 10 setting (known) devices list it is shown as paired but not connected. I don't know if this issue is because of Win 10 or because I am missing something in the implemaentation of my service. Is there a way to tell the peripheral to (auto-)connect to the central (Win10) (and invoke Bonding from the peripheral)?
Another question is about recieving data from BLE Midi device on the peripheral device. I started from the HeartRateService example and changed the UUIDs to MIDI service and got it working but I haven't implemented recieving Midi data from the Central. Where do i get the MIDI characteristics when sending from the central to the peripheral? I had a look at BaseService.java, but as I understand the methods " onCharacteristicRead" and " onCharacteristicRead" are callbacks invoked when the peripheral device sends or reads data,right? But where do i get the Midi Message sent from the Central Device to the peripheral?
My last question is about the connection interval. I get a lot of Jitter. In BluetoothServer.java I changed .setAdvertiseMode(AdvertiseSettings.ADVERTISE_MODE_BALANCED) , to LOW_LATENCY.
But I think it might have something to do with the connection interval. Is there a way I can set the connection interval from the peripheral device?
I would be glad if you could help me, thanks for this library and the examples, I tried some others before but Blessed was the only one where i got it to work!