Replies: 15 comments 28 replies
|
Oh …, yes, that is right. I checked now and even the Wahoo Snap doesn’t have cadence. Will definitely add this then. The thing is I’ll need to implement the bluetooth speed and cadence spec as well, but maybe a basic version will be possible in a couple of days. I’ll push a development version and notify you here. If you can help with testing it, this will speed time to production. |
|
Sure. I can test it. Thank you so much |
|
@dvmarinoff The cadence sensor display as below video. |
|
Hi @TClin76, just letting you know I pushed a new development version 0.1.2. Having some data logs from a real cadence sensor would really help me find the error. Here are some instructions if you can help with that. I haven't gotten yet to implementing a proper logger so the approach is a bit crude:
Here is an example of how it looks: I don't have a dedicated cadence sensor, and I am using the cadence from a power meter service on my trainer, by spec it works the exact same way and your log should be more like this one, but connected to a proper cadence sensor: |
|
Hi @dvmarinoff , Please find below log for your reference. EDIT: allowed my self to edit the comment in order to put the log inside a file to make it easy for future readers. |
|
It turns out cadence sensors are implemented in slightly different ways. For example yours is repeating the the same message 3 times and below certain wattages its 4 times, while my trainer is often sending messages with just 1 ms difference. Main keeps the time event counter running all the time for cadence, but not speed, and yours updates time events only when revolutions update. Just pushed a new version 0.1.22. Hope this one works for you. |
|
Thank you for the update version. However it still occasionally appears "0", but much less frequently. (refer to the video) 2021-12-31.4.04.03.mov |
|
According to the log, can we simply make an assumption that if there is a continuous "0" received more than 4 times, then that is a real case of Cad=0? (As a temporary workaround) |
|
Just leaving a link to GoldenCheetah's implementation. Will examine their approach later. |
|
Latest version 0.1.23 attempts to detect if the Cadence sensor is Magene Gemini and if so, it sets the max allowed repeated messages to 10 which has room for 11 messages, but the expected tradeoff is really slow time to show 0 when stop pedaling. If it still doesn't work I'd have to ask for another log from the browser console and also the device name that is shown on the Settings page for connected Speed and Cadence sensor: I have a meeting with my Running/Tri group tomorrow hope they are back already (from the long holidays) and somebody has a cadence sensor available. |
|
As I calculated before, I thought setting max counts to 10 can cover the cases for RPM > 24 in Magene's sensor. [Revolution 5506]
There are 20 repeating messages for the revolution 5506, and the timestamp difference is 5.1 sec. Anyway, self-adjusting max counts setting is indeed a good idea. |
|
I viewed your code, from this but perhaps this is no the correct link for the 0.1.2 version? I also checked on https://github.com/dvmarinoff/Flux/blob/91c4b830b563a1d7d0ea3388c5792d1ef4f046ff/src/ble/common.js but again, most likely I do not know how to properly decipher npm code. How are you handling the time rollover?
This is my swift code to handle rollover and to get cadence. this is how I call it p = passed |
|
ah.... your these 2 lines handles the rollover. It handles situations where the I too handle the staleness (but in a separate code from that function. So it seems that you're handling all the things. |
|
First version of the self adjusting max rate count (staleness counter) is available on development version 0.1.24. |
|
sorry for the late reply.. Just found my Magene Gemini 200 after digging around for something else. However, It does seems like the new code works, I don't see dropouts on the Web-App. However, In my own testing, seems like the data that's coming out from the sensor is much difference from this of this post #82 (comment)
Here you see it's c:42 (is that raw data from the sensor or the resultant cad after accounting for max rate?) {ts: 1641391445076, r: 5506, t: 55641, c: 100} where only the 1st data would have a cadence and the other messages would be 0 |








Uh oh!
There was an error while loading. Please reload this page.
some smart trainers have no build-in cadence sensor.
Is it possible to add separated cadence sensor in system pairing page?
Thanks
All reactions