microsoft / pxt-bluetooth-midi

A Bluetooth Midi package for Microsoft Make Code
https://pxt.microbit.org/pkg/microsoft/pxt-bluetooth-midi
MIT License
47 stars 18 forks source link

What is needed to support this on Windows #12

Open gbraad opened 4 years ago

gbraad commented 4 years ago

... not sure what the problem is, but Bluetooth Midi should be supported by Windows 10. However, something in this protocol is not as expected as the device never shows up in the Midi devices list (eg. with Midiberry).

What is needed?

gbraad commented 4 years ago

@pelikhan can you give a hint?

pelikhan commented 4 years ago

No idea.

gbraad commented 4 years ago

Who might know? I have several Korg devices and they communicate, AFAIK, using BLE MIDI and they seem to work.

gbraad commented 4 years ago

@pelikhan currently looking into this, and it seems the MIDI BLE spec writes the following:


The following service and characteristic are defined:

So it seems the write without response characteristic is missing:

https://github.com/microsoft/pxt-bluetooth-midi/blob/657e1085ac050df904576188e11d79b627b413dc/BluetoothMIDIService.cpp#L41-L44

So will debug and see if adding BLE_GATT_CHAR_PROPERTIES_WRITE_WITHOUT_RESPONSE is needed.

tommai78101 commented 4 years ago

@gbraad What is the current status of your findings?

linclip commented 3 years ago

Open "Project Settings". Select "No Pairing Required". Make your code. You can pair micro:bit on Windows 10, and you can use it with MIDIberry. https://www.youtube.com/watch?v=Flp23ZxFtQs

gbraad commented 3 years ago

The support seems to have been added to a recent version of Windows 10 by an update? Haven't been able to verify this as of yet...