Page 1 of 1

Running BLE CSC characteristic on ESP32

Posted: Tue Oct 08, 2019 1:49 pm
by spasoye
Hello guys. Been using ESP32 for some time. Few months ago I decided to try and make my bluetooth bikemeter
(it will measure my speed and cadence). I modified ESP-IDF ble_spp_server serial example. I changed UUID to fit
CSC service UUID and also characteristics UUIDs to fit CSC feature and measurement characteristics. Im using
nRFConnect app to debug the app:
nrfconnect.png
nrfconnect.png (63.32 KiB) Viewed 6876 times
As you can see my device is visible in nrfconnect and it shows data when the data is generated.
But now I wanna see how it behaves in nrftoolbox (or any app that is capable of displaying CSC data).
nRFToolbox does not see my device:
nrftoolbox.png
nrftoolbox.png (45.64 KiB) Viewed 6876 times
My question is, has anyone ever did something like this (HRM, BPM or any other service), encounterd similar problem?

Re: Running BLE CSC characteristic on ESP32

Posted: Sat Oct 12, 2019 5:35 pm
by chegewara
I am just guessing now, but probably you need to add CSC or other UUID to advertising.

Re: Running BLE CSC characteristic on ESP32

Posted: Sun Oct 20, 2019 6:42 pm
by spasoye
chegewara wrote:
Sat Oct 12, 2019 5:35 pm
I am just guessing now, but probably you need to add CSC or other UUID to advertising.
Sry for late reply. What do you mean by that ?

Re: Running BLE CSC characteristic on ESP32

Posted: Mon Oct 21, 2019 7:08 am
by chegewara
Some standardized devices, like HR monitor or CSC, are recognized by advertising UUID or by appearance.

https://www.bluetooth.com/blog/part-2-t ... oth-smart/

https://www.cypress.com/file/425616/download
On figure 11 you have advertising settings and so called appearance.

Re: Running BLE CSC characteristic on ESP32

Posted: Thu Apr 16, 2020 8:49 am
by alangstein
Did you ever get this to work? I am having the same problem. nRFconnect sees device and shows data being sent (correctly) but won't see it in nRFToolbox. I can get bike computer apps (Wahoo, BikeBrain) to pair but it doesn't actually see the speed and cadence data. I was able to get Andreas Spies heartrate monitor sketch (https://github.com/SensorsIot/Bluetooth ... rduino-IDE) to show heartrate data just fine on the bike apps (I didn't try in the nRFToolbox).

Re: Running BLE CSC characteristic on ESP32

Posted: Fri Apr 09, 2021 12:57 pm
by epicPl
alangstein wrote:
Thu Apr 16, 2020 8:49 am
Did you ever get this to work? I am having the same problem. nRFconnect sees device and shows data being sent (correctly) but won't see it in nRFToolbox. I can get bike computer apps (Wahoo, BikeBrain) to pair but it doesn't actually see the speed and cadence data. I was able to get Andreas Spies heartrate monitor sketch (https://github.com/SensorsIot/Bluetooth ... rduino-IDE) to show heartrate data just fine on the bike apps (I didn't try in the nRFToolbox).
I do have exactly the same Problem, Pairing works fine, but my bike computer doesn't show the Data. nRFToolbox working fine tho.
What did you do?