Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Transmission speed for UART Service
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Transmission speed for UART Service

by PetNoc on Fri Oct 22, 2021 6:59 am

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

PetNoc
 
Posts: 3
Joined: Fri Oct 22, 2021 6:42 am

Re: Transmission speed for UART Service

by tannewt on Mon Oct 25, 2021 3:44 pm

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.

tannewt
 
Posts: 2664
Joined: Thu Oct 06, 2016 8:48 pm

Re: Transmission speed for UART Service

by PetNoc on Mon Oct 25, 2021 4:24 pm

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 ?

PetNoc
 
Posts: 3
Joined: Fri Oct 22, 2021 6:42 am

Re: Transmission speed for UART Service

by tannewt on Mon Oct 25, 2021 5:57 pm

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.

tannewt
 
Posts: 2664
Joined: Thu Oct 06, 2016 8:48 pm

Re: Transmission speed for UART Service

by PetNoc on Tue Oct 26, 2021 3:34 am

ah, got it.
thanks for the info tannewt.

PetNoc
 
Posts: 3
Joined: Fri Oct 22, 2021 6:42 am

Please be positive and constructive with your questions and comments.