pxt-bluetooth-midi icon indicating copy to clipboard operation
pxt-bluetooth-midi copied to clipboard

Compatibility with micro:bit v2

Open microbit-sam opened this issue 5 years ago • 7 comments

Hi @pelikhan, (generic copy paste incoming)

As you might have seen from microsoft/pxt-microbit#3506 this extension is currently not compiling against the latest version of Micro:bit CODAL. This means it will not work with micro:bit V2.

Software for micro:bit V2 boards is built using CODAL rather than the DAL, and no longer includes the mbed layer. We’ve implemented the most frequently used mbed classes to support easy porting of existing extensions, but there may still be corner cases with this compatibility layer.

As your extension is currently not building, it will be disabled for micro:bit V2. People attempting to use your extension with a micro:bit V2 board will get error 929. This extension will only be re-enabled on micro:bit V2 once it is fixed.

There are details on how to ensure extensions work on both version of the micro:bit here (lancaster-university/codal-microbit-v2#31).

Looking at your extension source I believe that your extension falls under this category:

Use of the mbed Bluetooth APIs

microbit-sam avatar Nov 18 '20 14:11 microbit-sam

@pelikhan Can this extension be updated for V2? User has requested in micro:bit support ticket: 44388

microbit-mark avatar Apr 06 '21 08:04 microbit-mark

Is there a guide to handle both v1 and v2 for bluetooth C++? @microbit-mark

pelikhan avatar Apr 06 '21 08:04 pelikhan

I think this is still work in progress. @microbit-sam / @rneacy may be able to point you in the right direction?

microbit-mark avatar Apr 06 '21 08:04 microbit-mark

No migrations docs yet, Ross has documented the existing BLE services here: https://rneacy.dev/mbv2/ble/

Easiest way may be to reimplement the service as a v2 service and use some ifdefs to determine which one compiles, as the mbed BLE methods differ from the ones implemented in CODAL

https://github.com/lancaster-university/codal-microbit-v2/blob/master/source/bluetooth/MicroBitBLEService.cpp

microbit-sam avatar Apr 06 '21 13:04 microbit-sam

Some news here?

tchelomgf avatar Oct 03 '21 23:10 tchelomgf

Hi @pelikhan, is there any hope that the midi bluetooth extension for the v2 will be further developed soon? This extension is very important for my OER project, soundwhackers.de Can I support you financially in any way?

pati66459 avatar Oct 25 '22 06:10 pati66459

+1

hovavo avatar Oct 25 '24 14:10 hovavo