Bluetooth LE - duplicate services
Bluetooth LE - duplicate services
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
-
- Posts: 1725
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Bluetooth LE - duplicate services
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.
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], Google [Bot] and 278 guests