Page 1 of 1

Bluetooth LE - duplicate services

Posted: Sat May 11, 2024 12:41 pm
by Linkpad
Hi, I am trying to get my head around how Bluetooth LE would work if there were several transmitters and just 1 receiver (such as 3 heart rate monitors and 1 tft screen) how would one go about displaying all 3 devices heart rates separately? Would Bluetooth LE auto detect them? Thanks

Re: Bluetooth LE - duplicate services

Posted: Sun May 12, 2024 10:11 am
by MicroController
BLE is a bit more complex than just transmitters and receivers :)
In ths case, the TFT would assume the role of a central, the sensors would be peripherals.
The central can do a scan for peripherals, discovering all peripherals currently advertising their presence and services. (Every Bluetooth device has its own unique Bluetooth address.)
Then the central can connect to one or more peripherals and start reading or writing data from/to each peripheral by addressing the respective service(s) and attributes the peripheral provides over the connection.
Once discovered, the central may also store a peripheral's BLE address to directly (try to) connect to it in the future without scanning/discovering again.