Hi all, I'm working on a MIDI BLE device using the Adafruit Bluefruit LE - nRF8001 Breakout (https://www.adafruit.com/product/1697) and a Teensy 3.2
I have code written to connect and send/receive MIDI data and works like a charm, however I only have 1 issue, I can only send 2 packets per cycle then i have to wait between 20 to 30 milliseconds to send more packets, the time i have to wait is always different but i've noticed that if i wait at least 30ms to send the other 2 packets it works fine.
I read that iOS allows more than 2 packets, but i'm wondering if this is a limitation of the chip or i have to do something different to send more than 2 packets at a time...
The sketch below is tested with the nRF8001 and has a maximum of 20 bytes per packet, it will try to send 4 packets every 2 seconds once it's connected to a central.
For a central i'm using midimttr from the App Store to connect, then you can see on the Serial monitor which packets were sent and which were not.
Hi all, I'm working on a MIDI BLE device using the Adafruit Bluefruit LE - nRF8001 Breakout (https://www.adafruit.com/product/1697) and a Teensy 3.2
I have code written to connect and send/receive MIDI data and works like a charm, however I only have 1 issue, I can only send 2 packets per cycle then i have to wait between 20 to 30 milliseconds to send more packets, the time i have to wait is always different but i've noticed that if i wait at least 30ms to send the other 2 packets it works fine.
I read that iOS allows more than 2 packets, but i'm wondering if this is a limitation of the chip or i have to do something different to send more than 2 packets at a time...
The sketch below is tested with the nRF8001 and has a maximum of 20 bytes per packet, it will try to send 4 packets every 2 seconds once it's connected to a central.
For a central i'm using midimttr from the App Store to connect, then you can see on the Serial monitor which packets were sent and which were not.
I followed the examples here https://learn.sparkfun.com/tutorials/midi-ble-tutorial/all
Any advice would be much appreciated.