sid8580
Well-known member
I'm attempting to establish a connection between:
- Teensy 3.6-powered MIDI controller connected via serial to an Adafruit Bluefruit LE UART Friend module (nRF51)
- Adafruit ItsyBitsy nRF52840 (combo MCU and Bluetooth LE nRF52)
Initially the problem was, I had two of the BLE "Friend" modules and they cannot establish a connection to each other, they both operate in Peripheral mode. So I got the ItsyBitsy, which can also operate in Central mode (operates as master, pairs with a Peripheral device). But now I'm discovering there aren't any working example sketches of BLE-Midi running in Central mode to start from as I normally would.
Most assume Peripheral mode is all we need for MIDI controllers as they will sent BLE Midi to a computer or a phone, etc... but I want mine to send it to a dedicated receiver which translates it to serial and USB MIDI.
Thinking it through again as I've written this post, may be simplest to set up my BLE connection as a serial data pipe to communicate raw data, since I already wrote a bunch of code from scratch that handles sending MIDI data over RFM69 and receiving it on the other end I could adapt.
Has anyone accomplished this or similar?
- Teensy 3.6-powered MIDI controller connected via serial to an Adafruit Bluefruit LE UART Friend module (nRF51)
- Adafruit ItsyBitsy nRF52840 (combo MCU and Bluetooth LE nRF52)
Initially the problem was, I had two of the BLE "Friend" modules and they cannot establish a connection to each other, they both operate in Peripheral mode. So I got the ItsyBitsy, which can also operate in Central mode (operates as master, pairs with a Peripheral device). But now I'm discovering there aren't any working example sketches of BLE-Midi running in Central mode to start from as I normally would.
Most assume Peripheral mode is all we need for MIDI controllers as they will sent BLE Midi to a computer or a phone, etc... but I want mine to send it to a dedicated receiver which translates it to serial and USB MIDI.
Thinking it through again as I've written this post, may be simplest to set up my BLE connection as a serial data pipe to communicate raw data, since I already wrote a bunch of code from scratch that handles sending MIDI data over RFM69 and receiving it on the other end I could adapt.
Has anyone accomplished this or similar?