Hi Folks,
Apologies if the answer to my question is buried somewhere in the previous forum posts but I was unable to find it so far.
I am building a workout repetition counter using CircuitPlayground Bluefruit board to beam the accelerometer data via BLE Uart Service to my laptop to be read using the receiver https://courses.ideate.cmu.edu/16-376/s ... eceiver.py
by default I am getting approx 8 readings (x,y,z) a second while reading them locally on Bluefruit the data refreshes way faster/more frequently.
Is there a way to setup baudrate for BLE Uart service for both the sender and the receiver ?
on the transmitter side I use the below with no custom settings:
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
Regards
Peter
Transmission speed for UART Service
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- tannewt
- Posts: 3305
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Transmission speed for UART Service
BLE over UART doesn't have a baudrate setting.
Data is transmitted as quickly as the underlying code and connection can. There are many factors that impact it. It isn't a single setting.
Data is transmitted as quickly as the underlying code and connection can. There are many factors that impact it. It isn't a single setting.
- PetNoc
- Posts: 3
- Joined: Fri Oct 22, 2021 6:42 am
Re: Transmission speed for UART Service
Ah, thanks tannewt.
I suspected that may be the case.
is there some kind of buffer with a size that can be defined to play with ?
I suspected that may be the case.
is there some kind of buffer with a size that can be defined to play with ?
- tannewt
- Posts: 3305
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Transmission speed for UART Service
I don't think there is a single buffer. It's likely a mix of the connection interval, max transmission unit and how the software combines things into packets.
- PetNoc
- Posts: 3
- Joined: Fri Oct 22, 2021 6:42 am
Re: Transmission speed for UART Service
ah, got it.
thanks for the info tannewt.
thanks for the info tannewt.
Please be positive and constructive with your questions and comments.