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.
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.
- pete_dunham
- Posts: 2
- Joined: Fri Jun 04, 2021 12:11 pm
- adafruit_support_mike
- Posts: 67459
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Is It Possible? Bluetooth MIDI Sender and Separate Seria
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
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
- pete_dunham
- Posts: 2
- Joined: Fri Jun 04, 2021 12:11 pm
Re: Is It Possible? Bluetooth MIDI Sender and Separate Seria
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.
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.
- adafruit_support_mike
- Posts: 67459
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Is It Possible? Bluetooth MIDI Sender and Separate Seria
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.
The nRF52840 is the only device we carry that works as a BLE central.
Please be positive and constructive with your questions and comments.