cagnulein / qdomyos-zwift

Zwift bridge for smart treadmills and bike/cyclette
https://www.qzfitness.com/
GNU General Public License v3.0
340 stars 104 forks source link

[REQ] Broadcast cadence & speed to Garmin watch #1316

Closed hakun closed 10 months ago

hakun commented 1 year ago

Is your feature request related to a problem? Please describe. My training set:

Describe the solution you'd like Real time cadence and speed from Domyos Indoor Bike => QZ Fitness App => Garmin watch Note: of course, Garmin watch cannot see Domyos (not compatible). So I purchased QZ Fitness App with expect it can address problem.

Describe alternatives you've considered No alternatives so far

Additional context Nothing yet

cagnulein commented 1 year ago

hi @hakun do you have also a pc? i'm asking this because it will be simple to try to find a workaround this with a pc due to the fact that i don't have to put a release each time to the apple store

cagnulein commented 1 year ago

1049 #1044

hakun commented 1 year ago

hi @hakun do you have also a pc? i'm asking this because it will be simple to try to find a workaround this with a pc due to the fact that i don't have to put a release each time to the apple store

Did you means a Personal Computer? I have a laptop and desktop with windows 10. Please tell me what can I try?

cagnulein commented 1 year ago

ok my idea is to create a customized version to double check the garmin issue. are you tech savvy?

if so, and you can test, first of all download the windows version from here https://github.com/cagnulein/qdomyos-zwift/suites/11207874969/artifacts/573305062

let me know

Il giorno dom 26 feb 2023 alle 14:10 hakun @.***> ha scritto:

hi @hakun https://github.com/hakun do you have also a pc? i'm asking this because it will be simple to try to find a workaround this with a pc due to the fact that i don't have to put a release each time to the apple store

Did you means a Personal Computer? I have a laptop and desktop with windows 10. Please tell me what can I try?

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1316#issuecomment-1445358439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWFI5TNRZ72YDXI347DWZNI4FANCNFSM6AAAAAAVIISH3A . You are receiving this because you were assigned.Message ID: @.***>

-- Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

hakun commented 1 year ago

Downloaded, opened (seems portable one). How can I add Domyos to bluetooth list? App can only see my bluetooth mouse.

cagnulein commented 1 year ago

you have to pair the bike to the windows pc directly and then start qz and you should see it

Il giorno dom 26 feb 2023 alle 14:48 hakun @.***> ha scritto:

Downloaded, opened (seems portable one). How can I add Domyos to bluetooth list? App can only see my bluetooth mouse.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1316#issuecomment-1445366540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWDFPV46GPHL5N5UOJDWZNNMXANCNFSM6AAAAAAVIISH3A . You are receiving this because you were assigned.Message ID: @.***>

-- Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

hakun commented 1 year ago

Did it. Can see all data on PC. However, Garmin watch cannot even add it (like via iPhone). What is next.

cagnulein commented 1 year ago

ok then i will start a new branch to test some modifications and i will let you know. which bluetooth dongle do you have on the pc? because not all the dongles can do broadcasting

Il giorno dom 26 feb 2023 alle 14:54 hakun @.***> ha scritto:

Did it. Can see all data on PC. However, Garmin watch cannot even add it (like via iPhone). What is next.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1316#issuecomment-1445367652, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWFYE4MLKHNSVRSNVGLWZNN7VANCNFSM6AAAAAAVIISH3A . You are receiving this because you were assigned.Message ID: @.***>

-- Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

hakun commented 1 year ago

I don't use BT dongle but build-in one in my desktop. What information do you want to get, please let me know.

cagnulein commented 1 year ago

first i have to check what changes i could do, qz is sending standard bluetooth sensors and so garmin should work, but probably garmin doesn't want a pc or iphone but a pure sensor. i have to find a way to hide the pc/iphone informations somehow

hakun commented 1 year ago

About BT, seems this BT cannot broadcast because Garmin watch cannot search it (like it can found QZ in iPhone). About Garmin watch when searching QZ in iPhone, it's strange that it can add QZ only, then cannot see data & always show searching status in sensor list.

cagnulein commented 1 year ago

on the iphone did you try to enable the peloton cadence sensor setting and restart qz?

Il giorno dom 26 feb 2023 alle 15:07 hakun @.***> ha scritto:

About BT, seems this BT cannot broadcast because Garmin watch cannot search it (like it can found QZ in iPhone). About Garmin watch when searching QZ in iPhone, it's strange that it can add QZ only, then cannot see data & always show searching status in sensor list.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1316#issuecomment-1445370432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWGW2BZWQI2BIHJR4Q3WZNPQNANCNFSM6AAAAAAVIISH3A . You are receiving this because you were assigned.Message ID: @.***>

-- Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

hakun commented 1 year ago

I used default setting. Now let me try what you said.

hakun commented 1 year ago

Settings/Peloton Options/Cycling Cadence Sensor? Is that settings? Set that, restart app, still same.

cagnulein commented 1 year ago

yes that one. Ok I have to think so about this. If you can, can you also contact garmin about this? Since QZ is sending standard bluetooth sensor, garmin watches have to work

cagnulein commented 1 year ago

probably the garmin discard the iphone, because it's connected with garmin connect on it

hakun commented 1 year ago

I don't think Garmin care about unofficial sensors source like QZ. Anyway, let me try that later. I spend all hopes on you. Let me know if I can help to debug/revert somethings.

cagnulein commented 1 year ago

I can buy a garmin watch on amazon to check this, maybe in the next weeks/month

cagnulein commented 1 year ago

I guess I find a way https://github.com/MatyasKriz/ios-connect-iq-comms But a new app on garmin connect is required Let me check this in the next days, it will be not an easy task but it's doable, it just a matter of time

hakun commented 1 year ago

ok, wait for your updates. I saw you found this problem added by you since Nov 2022.

cagnulein commented 1 year ago

yes check my previous comment ;)

hakun commented 1 year ago

Cannot wait to see it works! I used to consider to buy Garmin cadence & speed sensor 2. However, Domyos indoor bike speed does not only base on cadence but also resistance. So, get information from it should be better rater additional sensors.

cagnulein commented 1 year ago

ok i'm starting this, let's see if i will have something ready soon

hakun commented 1 year ago

Thank you, fingers crossed ...

cagnulein commented 1 year ago

@hakun i ordered a garmin device to test it, i hope to have something usable next week

for me, create a session like this https://github.com/dmrrlc/connectiq-sailing/blob/master/source/SailingApp.mc

cagnulein commented 1 year ago

another note for me https://support.stryd.com/hc/en-us/articles/360037469693-Understanding-the-behavior-of-the-Sensor-Accessory-menu-on-Garmin-Watches

hakun commented 1 year ago

You means to enable this req, not only updates in QZ but there is also possibility to have a dedicated data filed instead of via Garmin accessories & sensor list, didn't you?

hakun commented 1 year ago

This make me remmeber a data field on Garmin Connect IQ stores named as Domyos. It seems having some issue with Garmin API. There is a discussion on Garmin forum about it https://forums.garmin.com/developer/connect-iq/i/bug-reports/stationary-bike-allow-override-connect-distance-speed-cadence-field

cagnulein commented 1 year ago

yes i read this also and i'm changing my mind about a separate app because i can't override the metrics. i have to find a way to connect qz as a bluetooth sensor. my garmin device will arrive on sunday and i have some ideas

Il giorno ven 3 mar 2023 alle 06:12 hakun @.***> ha scritto:

This make me remmeber a data field on Garmin Connecg IQ stores named as Domyos. It seems having some issue with Garmin API. There is a discussion on Garmin forum about it https://forums.garmin.com/developer/connect-iq/i/bug-reports/stationary-bike-allow-override-connect-distance-speed-cadence-field

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1316#issuecomment-1452985723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWESZAEF74TOYBSWMGDW2F4VHANCNFSM6AAAAAAVIISH3A . You are receiving this because you were assigned.Message ID: @.***>

-- Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

cagnulein commented 1 year ago

actually there is this interesting project https://apps.garmin.com/en-US/apps/0e10bae1-9753-4915-b856-040d0cbdd82a#0 https://github.com/zpukr/ArduRower

So it seems possible to write them...I'm confused :)

cagnulein commented 1 year ago

Screenshot 2023-03-03 at 08 45 29

ok now i got this, it changes the values manually.

Ok so this is my plan.

  1. i would like to connect QZ as a power sensor/cadence sensor/speed sensor. If I achieve this, the companion app is not required
  2. if the 1. fails, i will go with the companion app. Also the companion app will be useful to send HR to the QZ app directly
hakun commented 1 year ago

Sound great. Huge number of Garmin users are waiting for it.

cagnulein commented 1 year ago

another good repo https://github.com/Raelx/Yesoul_BLE

hakun commented 1 year ago

A kind of proof that is possible to share to Garmin watch.

cagnulein commented 1 year ago

current status: i can see the issue connecting qz to the garmin. garmin can see qz but stalls on connection forever. same thing on android, ios, macos and even raspberry.

now i bought a esp32 and i would like to give a go to the repository of my last comment.

if this works, it means that the qt framework is doing something that garmin doesn't like.

esp32 should arrive wednesday

cagnulein commented 1 year ago

another good repo https://github.com/Raelx/Yesoul_BLE

@hakun good news, this repository works as expected. garmin sensor accepted from my edge 530. so now i have to understand the differences from my implementation!

hakun commented 1 year ago

Wow, let send me draft version for testing on PC if you need.

cagnulein commented 1 year ago

sure i will update this probably today/tomorrow

Il giorno gio 9 mar 2023 alle 01:02 hakun @.***> ha scritto:

Wow, let send me draft version for testing on PC if you need.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1316#issuecomment-1461056341, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWCO7RANJ7E37ONAEN3W3EMZLANCNFSM6AAAAAAVIISH3A . You are receiving this because you were assigned.Message ID: @.***>

-- Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

cagnulein commented 1 year ago

@hakun are you more interested about speed/cadence or power?

hakun commented 1 year ago

Speed and cadence. I also dont see that my Domyos bike can provide power.

cagnulein commented 1 year ago

Speed and cadence. I also dont see that my Domyos bike can provide power.

qz does it from your bike because it has a table about resistance/cadence and so wattage for your bike

hakun commented 1 year ago

Oh I see. I'm interest in speed/ cadence/ then power.

cagnulein commented 1 year ago

actually i have cadence and power. Speed seems that it's possible only from ANT+ or outdoor via GPS..but maybe i'm missing something @hakun

hakun commented 1 year ago

Any hope @cagnulein ?

cagnulein commented 1 year ago

yes i have to debug the low level of android. it will take some days/week. it's not an easy job

Il giorno sab 11 mar 2023 alle 15:23 hakun @.***> ha scritto:

Any hope @cagnulein https://github.com/cagnulein ?

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1316#issuecomment-1464922627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWHGOQ53EQL25VF65JLW3SDG7ANCNFSM6AAAAAAVIISH3A . You are receiving this because you were mentioned.Message ID: @.***>

-- Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

hakun commented 1 year ago

Okay, I understood. Pls dont push hard. Let enjoy debugging. Thanks you for sharing situation.

cagnulein commented 1 year ago

created an issue to Apple here https://developer.apple.com/forums/thread/726379

cagnulein commented 1 year ago

Hci log from android that doesn't work https://drive.google.com/file/d/1-MG4TaQET4iZ7dJLr09v4nWEkwUwuVP4/view?usp=drivesdk

hakun commented 1 year ago

Hope Apple care it.

cagnulein commented 1 year ago

works on raspberry!