Is It Possible? Bluetooth MIDI Sender and Separate Serial Re

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
pete_dunham
 
Posts: 2
Joined: Fri Jun 04, 2021 12:11 pm

Is It Possible? Bluetooth MIDI Sender and Separate Serial Re

Post by pete_dunham »

Can BLE Arduino shield (such as https://www.adafruit.com/product/2746) be used to be a MIDI BLE sender AND also have another service that captures commands (serial or otherwise) sent to the Arduino?

I have MIDI BLE sending working to a Macbook. But I would also like to send other commands to Arduino over BLE for instance to change the midi notes it is sending.

Do I need a separate BLE module or can one work for both?

I am doing some research but may need some hints to zero in on the possibilities here.

Thanks in advance.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Is It Possible? Bluetooth MIDI Sender and Separate Seria

Post by adafruit_support_mike »

The nRF52832 module can't work as a BLE Central device. For that, you'd need an nRF52840:

https://www.adafruit.com/?q=nRF52840&sort=BestMatch

Generally speaking, Bluetooth isn't a peer-to-peer protocol. Central devices initiate and control data connections, while peripherals only respond to instructions from a central device. To make a peer-to-peer connection work, both devices have to act as both centrals and peripherals.

If you want a peer-to-peer connection, packet radio is a better choice:

https://www.adafruit.com/?q=packet+radio&sort=BestMatch

User avatar
pete_dunham
 
Posts: 2
Joined: Fri Jun 04, 2021 12:11 pm

Re: Is It Possible? Bluetooth MIDI Sender and Separate Seria

Post by pete_dunham »

Thanks mike,

Pairing my current setup with HC-05 is my current path. So HC-05 for serial over bluetooth in paired with BLE Adrafruit Shield to pair for MIDI BLE to Mac.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Is It Possible? Bluetooth MIDI Sender and Separate Seria

Post by adafruit_support_mike »

A microprocessor using the nRF52832 BLE module won't be able to operate as a central device. It can only work as a peripheral.

The nRF52840 is the only device we carry that works as a BLE central.

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”