Hi,
Sorry if my question is naive or simple.
I just built a home made bike powermeter using arduino nano sense and 4 strain gauges. It can measure the power and the cadence. Now, I am looking for an application to collect the data via BLE or ANT+ through my phone or my sport watch.
BLE and phone : I used PhyPhox application and it works well. However, the data are not saved automatically and analyzed as I would be with garmin connect.
That's why I would prefer using my Garmin Fenix 6 (and Garmin Connect) to see, analyze and save the data.
This watch can connect to a sensor via BLE or ANT+. It seems to me that BLE connection is simple (maybe I am wrong).
I want to code the arduino so that it can send the data via BLE to the Garmin Fenix 6.
I used (see arduino code below) powerMeterService ("1818") and powerMeasurementChar ("2A63"). It works weel: the watch can find the BLE radio signal corresponding to a bike powermeter (Cycling Power Service). This is confirmed by "nrf connect" or the "BleScan" application found in Connect IQ.
However, if I try to connect the watch to the sensor (click "connect"), then the connexion is not possible and cannot read the data.
I guess that either I need to include a specific code for final pairing or either I need to format the data the right way so that the watch can read them (power and cadence, or only power). Maybe also the data should be sent with a specific rate like 4 Hz or whatever?
Here is my arduino (c++) code below.
Thanks for any help.
------------------------------------------------------------------------------------