Running BLE CSC characteristic on ESP32

spasoye
Posts: 2
Joined: Sun Sep 22, 2019 4:14 pm

Running BLE CSC characteristic on ESP32

Postby spasoye » Tue Oct 08, 2019 1:49 pm

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 6787 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 6787 times
My question is, has anyone ever did something like this (HRM, BPM or any other service), encounterd similar problem?

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: Running BLE CSC characteristic on ESP32

Postby chegewara » Sat Oct 12, 2019 5:35 pm

I am just guessing now, but probably you need to add CSC or other UUID to advertising.

spasoye
Posts: 2
Joined: Sun Sep 22, 2019 4:14 pm

Re: Running BLE CSC characteristic on ESP32

Postby spasoye » Sun Oct 20, 2019 6:42 pm

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 ?

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: Running BLE CSC characteristic on ESP32

Postby chegewara » Mon Oct 21, 2019 7:08 am

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.

alangstein
Posts: 1
Joined: Thu Apr 16, 2020 8:41 am

Re: Running BLE CSC characteristic on ESP32

Postby alangstein » 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).

epicPl
Posts: 1
Joined: Fri Apr 09, 2021 12:50 pm

Re: Running BLE CSC characteristic on ESP32

Postby epicPl » Fri Apr 09, 2021 12:57 pm

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?

Who is online

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