Bluetooth LE - duplicate services

Linkpad
Posts: 7
Joined: Sat May 11, 2024 12:35 pm

Bluetooth LE - duplicate services

Postby Linkpad » Sat May 11, 2024 12:41 pm

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

MicroController
Posts: 1700
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Bluetooth LE - duplicate services

Postby MicroController » Sun May 12, 2024 10:11 am

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.

Who is online

Users browsing this forum: Baidu [Spider] and 211 guests