Transmission speed for UART Service

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
PetNoc
 
Posts: 3
Joined: Fri Oct 22, 2021 6:42 am

Transmission speed for UART Service

Post by PetNoc »

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

User avatar
tannewt
 
Posts: 3305
Joined: Thu Oct 06, 2016 8:48 pm

Re: Transmission speed for UART Service

Post by tannewt »

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.

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

Re: Transmission speed for UART Service

Post by PetNoc »

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 ?

User avatar
tannewt
 
Posts: 3305
Joined: Thu Oct 06, 2016 8:48 pm

Re: Transmission speed for UART Service

Post by tannewt »

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.

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

Re: Transmission speed for UART Service

Post by PetNoc »

ah, got it.
thanks for the info tannewt.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”