0

Is It Possible? Bluetooth MIDI Sender and Separate Serial Re
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Is It Possible? Bluetooth MIDI Sender and Separate Serial Re

by pete_dunham on Fri Jun 04, 2021 12:15 pm

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.

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

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

by adafruit_support_mike on Sat Jun 05, 2021 10:28 pm

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

adafruit_support_mike
 
Posts: 63114
Joined: Thu Feb 11, 2010 2:51 pm

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

by pete_dunham on Fri Jun 11, 2021 8:18 pm

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.

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

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

by adafruit_support_mike on Sat Jun 12, 2021 6:46 am

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.

adafruit_support_mike
 
Posts: 63114
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.