locomorange / ble-midi-connect

0 stars 0 forks source link

Can't connect my device to loopMidi #2

Open oierca opened 1 month ago

oierca commented 1 month ago

I'm trying to connect a BLE Midi device to my Windows 11 surface using your app. I can see my device in the app and I connect it to a virtual channel on loopMidi, but I can't see any data being transferred to loopMidi and the programs where I want to use the Midi signal. I'm not sure if connected everything correctly, could you please help me? Screenshot 2024-07-09 125527 Screenshot 2024-07-09 125532

locomorange commented 1 month ago

First, please make sure you have pressed the Connect button. Pressing the Connect button makes the connection to the device and to the channel.

Next, if you have Bluetooth pairing, try unpairing it. Not sure if this is relevant, but give it a try.

If it doesn't seem to work, it may be an issue that requires an update. Could you show me a screenshot using this app for reference?

スクリーンショット 2024-07-09 232634_1 スクリーンショット 2024-07-09 232956_1 スクリーンショット 2024-07-09 233621

oierca commented 1 month ago

First of all, thanks for the fast reply, I really appreciate that.

I thought that it wasn't needed to pair my device being a BLE device, and it was already appearing in your program. With the program you sent me now I got to pair it and create a stable connection between my device and my laptop. When this happens I do receive MIDI signals in my loopMIDI and in my programs.

Screenshot 2024-07-10 110142 Screenshot 2024-07-10 110214 Screenshot 2024-07-10 110224

But as soon as I disconnect and connect my device again, the connection becomes unestable and I stop receiving data in loopMIDI.

https://github.com/locomorange/ble-midi-connect/assets/81970978/5300ba8c-938b-414c-8b4f-1aabe20de806

https://github.com/locomorange/ble-midi-connect/assets/81970978/899f7272-143a-4c07-8210-138525b65087

Is there a way to create a stable connection without unpairing and pairing the device every time?

locomorange commented 1 month ago

Thank you for all the information.

I am not sure how to stabilize the connection without re-pairing. I am sorry I couldn't be of more help.

As you mentioned, a BLE device does not require pairing. My app assumes a connection without Bluetooth pairing, but it doesn't seem to be working with your device.

I can't solve this right away, but please let me know some things for future investigation.

What is the name of your BLE MIDI device? I may purchase and verify it.

Could you remove the device from your settings, i.e. unpaired, and show me the Device service page in the Bluetooth LE Explorer without clicking the Pair button? Or does the connection fail?

oierca commented 1 month ago

Thanks once again for heping me.

Indeed, it seems that the connection only works when paired and with a stable connection. The device is just a ESP32-S3-WROOM-1 board with an example of the ESP32-BLE-MIDI arduino library. I was trying to create a BLE midi controller and I was just trying the connection. Seeing that using BLE is not easy with windows I'll try to do it using serial bluetooth.

Without pairing, your program does see the device but there's no data going on to the virtual port. This is the service page in the Bluetooth LE Explorer without pairing. As you see, it says that the device is connected but I don't get daata if I don't pair it. Screenshot 2024-07-11 110507

locomorange commented 1 month ago

Thanks for all the replies. I will use them to help me improve my app.

I hope your development goes well.

2024年7月11日(木) 18:08 oierca @.***>:

Thanks once again for heping me.

Indeed, it seems that the connection only works when paired and with a stable connection. The device is just a ESP32-S3-WROOM-1 board with an example of the ESP32-BLE-MIDI arduino library. I was trying to create a BLE midi controller and I was just trying the connection. Seeing that using BLE is not easy with windows I'll try to do it using serial bluetooth.

Without pairing, your program does see the device but there's no data going on to the virtual port. This is the service page in the Bluetooth LE Explorer without pairing. As you see, it says that the device is connected but I don't get daata if I don't pair it. Screenshot.2024-07-11.110507.png (view on web) https://github.com/locomorange/ble-midi-connect/assets/81970978/c2cfbdca-2db7-42a5-a01a-9d12a50f3d4d

— Reply to this email directly, view it on GitHub https://github.com/locomorange/ble-midi-connect/issues/2#issuecomment-2222415746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJOBZJZA57TWXI7C3PQWLLZLZDRLAVCNFSM6AAAAABKSTQ67KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRSGQYTKNZUGY . You are receiving this because you modified the open/close state.Message ID: @.***>