Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpeedSensor should attach at 8118 instead of 8086 #31

Open
capitaineflam25 opened this issue May 12, 2020 · 2 comments
Open

SpeedSensor should attach at 8118 instead of 8086 #31

capitaineflam25 opened this issue May 12, 2020 · 2 comments

Comments

@capitaineflam25
Copy link

capitaineflam25 commented May 12, 2020

Hi,

(Thanks for this project, it is so great ! It's working perfectly with my Favero Assioma power pedals)

i wasn't able to received any data with my Garmin Speed sensor.
image

Then i read the documentation (D00001163_-_ANT+Device_Profile-_Bicycle_Speed_and_Cadence_2.1.pdf) and realised that the period of the speedSensor is different that the one for Speed+Cadence.

By changing the period to 8188 i'm getting the datas.
(maybe your speed-sensors.js was created after copying speed-cadence-sensors.js

Regards

@capitaineflam25
Copy link
Author

And it may be 8102 instead of 8086 for a"Cadence only" sensor (not tested, i don't have one)

@Alabate
Copy link

Alabate commented Jun 13, 2020

I had the same problem with the same speed sensor, but it's 8118 for speed sensor according to the doc that you mention (same version as you). Using 8118 fixed the problem for me, but not 8188. Can you confirm that it's a typo in your message?

I just did a bit more debug to know what was happening:

  • In scan mode, we can receive all the messages no matter the period, so we can get the data without problems
  • In sensor mode with the wrong period I was receiving EVENT_RX_FAIL messages which mean

A receive channel missed a message which it was expecting.
This happens when a slave is tracking a master and is
expecting a message at the set message rate.

And after a few seconds I receive a detach event and some variables are reset silently and it will never try to recover anymore after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants