philburk / android-midisuite

Android MIDI test programs and examples.
Apache License 2.0
153 stars 53 forks source link

Midi Ble connect - Android 11 - Galaxy Tab S5e can't find Ble midi device #73

Open Cysign opened 2 years ago

Cysign commented 2 years ago

Hi, just bought a AkaiPRO LPK25 wireless to use with my tabled and smartphone. On my Redmi Note 7, running on LineageOS 18.1 official, the "Midi Ble connect"-app works perfect. But on my Galaxy S5e tables (runnin gon stock ROM, Android 11) the Midi Ble connect-app can't find the LPK25 wireless midi keyboard.

The tablet can find the LPK 25 wireless using the Android default bluetooth app, but without the Midi Ble connect app it can't pair properly for midi purpose.

Contacting the developer he told me to open a case right here containind the information above.

philburk commented 2 years ago

Thanks for reporting this., I tried the following on a Galaxy Tab A running Android 10 (Q).

  1. Launched MIDI+BTLE app.
  2. Switched Akai LPK25 Wireless to BT mode.
  3. Pressed "Pair" button on LPK25.
  4. Pressed "SCAN" button on app.
  5. Akai LPK25 appeared within a few seconds.
  6. Selected it.
  7. Pressed Home button on tablet.
  8. Launched Synth Example.
  9. Selected Akai LPK25.
  10. Played notes using BLE-MIDI.

@Cysign - At what step was your experience different?

Maybe there was a regression between Android 10 and 11 on the Galaky tablets. Or there is a problem specific to the Tab S5e.

Cysign commented 2 years ago

Steps 1-4 are identical. But step 5 is impossible, as the LPK25 wireless isn't detected.

When I open the usual bluetooth menu on the tablet I do see the LPK25 wireless. So it's doesn't seem to be a problem with the bluetooth chip in the tablet.

philburk commented 2 years ago

I went into Bluetooth Settings and tried to connect using the Bluetooth Connection dialog. The Settings app did not display the Akai LKP25.

@Cysign - If your tablet is currently paired with the LPK25 using the Bluetooth settings then try forgetting that connection. Maybe it is blocking the MIDI+BTLE app.

Cysign commented 2 years ago

It's not paired. As soon as I pair the LPK25 using the system's bluetooth dialogue, it's paired, but not connected (even on my phone where I can connect to it properly with the Midi Ble connect app).

Cysign commented 2 years ago

Here's what it looks like: https://youtu.be/JcQiYYrDE3s

philburk commented 2 years ago

Thanks for the video. It looks like the LPK25 is showing up as an available device in Settings but not in the MIDI+BTLE app. The opposite normally happens for me.

I tried again with the BT Settings. This time the LPK25 showed up and I tried to pair with it. The pairing failed. Then I tried the MIDI+BTLE app and the LPK25 did not show up! So now I am seeing the same thing you are.

Try rebooting your tablet, then toggle the Akai LPK25 Bluetooth mode off then on, then try the MIDI+BTLE app. Does it now see the LPK25?

The Bluetooth Settings are not connected to the MIDI Service in Android 11. So the Bluetooth Settings will NOT help with MIDI. But if the BT service is holding onto the device then it may interfere with the MIDI+BTLE app.

Cysign commented 2 years ago

I restarted the tablet and the behavior is exactly the same as before. Bluetooth sestem dislog: I can see the LPK25 wireless. Midi Ble connect-app: I can't.

I doublechecked it with my Redmi Note 7 (LineageOS 18.1): System-dialogue: I can see the LPK 2 wireless. Midi Ble connect-app: I can see the LPK 2 wireless.

So it seems to be an device specific issue on the Galaxy Tab S5e. It there any other information I could provide?

philburk commented 2 years ago

I restarted the tablet and the behavior is exactly the same as before. Bluetooth sestem dislog: I can see the LPK25 wireless. Midi Ble connect-app: I can't.

For this experiment, it is important to NOT use the BT Settings dialog after rebooting and before using the MIDI+BTLE app. Just reboot and then try the MIDI+BTLE app.

I'd like to verify that before I assign this to someone at Samsung.

Cysign commented 2 years ago

Exactly the same behavior as before. Midi Ble connect can't find the midi device. Here's the current software and tablet version:

photo_2022-05-15_22-38-41

photo_2022-05-15_22-38-54

philburk commented 1 year ago

I just updated the MIDI BLE Connection app at: https://play.google.com/store/apps/details?id=com.mobileer.example.midibtlepairing

@Cysign - Are you still seeing BLE-MIDI problems on the Galaxy?

nathan-stewart commented 1 year ago

This is the exact behavior I'm seeing on two different Android 11 devices - a Motorola Stylus G and a Lenovo P11 tablet. Running MIDI+BLTLE 1.4.0 installed from play store today.

I can't find it from MIDI+BTLE but I can pair from the system Bluetooth,

nathan-stewart commented 1 year ago

This appears that it might be location permission related, however I'm trying to use this on the tablet my kid uses, and I believe parental controls/location may be interacting with it. The app has location permissions while using it, but I still can't seem to pair with it. Tried to reenable permission but it seems to be managed differently.

I was able to re-enable location through the family link controls, and I can actually see the WIDI Master in the app, but if I click on it, I get a red X, says it's in use, followed by a system request to pair. If I pair at this point, it finally works. But I don't think this is working as smoothly as it should.

Cysign commented 10 months ago

Sorry, sold the bluetooth midi device long time ago... I'm back to cables now :D