cagnulein / qdomyos-zwift

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

NordicTrack s20i - treadmill #2301

Open ptantot opened 3 weeks ago

ptantot commented 3 weeks ago

Describe the bug I have a NordicTrack s20i treadmill, I am able to connect from the application and view the data from the treamill when I increase speed or inclination. But when I try to update the speed or inclination from the application it is not updated in the treamill.

To Reproduce Step during log generation :

Expected behavior When the speed or inclination is updated in the application it should update the speed / inclination of the treadmill

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Append a debug log See attach btsnoop_hci_240421_164809.log ment

cagnulein commented 3 weeks ago

great! i will check later this week!

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

Il giorno dom 21 apr 2024 alle 18:34 ptantot @.***> ha scritto:

Assigned #2301 https://github.com/cagnulein/qdomyos-zwift/issues/2301 to @cagnulein https://github.com/cagnulein.

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

ptantot commented 3 weeks ago

Hi Roberto, Thanks for your help, your application seems great :)

I am available if you need more information. Philippe Le dimanche 21 avril 2024 à 18:37:17 UTC+2, Roberto Viola @.***> a écrit :

great! i will check later this week!

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

Il giorno dom 21 apr 2024 alle 18:34 ptantot @.***> ha scritto:

Assigned #2301 https://github.com/cagnulein/qdomyos-zwift/issues/2301 to @cagnulein https://github.com/cagnulein.

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cagnulein commented 3 weeks ago

hi @ptantot I checked the hci snoof and I have a good news. The profile seems identic to the Nordictrack 10 one Try to set this one and restart QZ Let me know!

ptantot commented 3 weeks ago

Hi roberto,

Thanks for you quick feedback !

Unfortunatly it seems not working... or may be I have something wrong for setting profile...

I have set in QZ - settings -> Treadmill options -> Proform/Nordicktrack Option -> Specific Model => Set to "Nordictrack 10"

I have restarted QZ

Treadmill connected, run at 2km/h, increase to 3km/h : app is resfreshed. Click on + /- for speed and then for inclination => no impact 🙁

I have generated a new log in attachment. btsnoop_hci_240422_223320.log

cagnulein commented 3 weeks ago

Hi @ptantot just to be sure: are you collecting the btnsoop with the nordictrack app? it's what I need to add auto speed and auto incliantion. Let me know!

ptantot commented 3 weeks ago

Hi @cagnulein. Sorry but I try only from QZ app...

Please find a new logs with update from iFIT (nordictrack app) . Sequence => increase speed from 2km to 3km (increment of 0.1) => increase elevation from 0 to 1 (increment of 0.5) => decrease speed 3km to 2 km (increment 0.1) => decrease elevation 1 to 0 (increment 0.5) btsnoop_hci_240423_215540.log

cagnulein commented 3 weeks ago

s20i.txt

all frame, now I can handle in the code. I will let you know when I will be ready!

cagnulein commented 3 weeks ago

init frames

unsigned char array1[] = {0xfe, 0x02, 0x08, 0x02};
unsigned char array2[] = {0xff, 0x08, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x81, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array3[] = {0xfe, 0x02, 0x08, 0x02};
unsigned char array4[] = {0xff, 0x08, 0x02, 0x04, 0x02, 0x04, 0x04, 0x04, 0x80, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array5[] = {0xfe, 0x02, 0x08, 0x02};
unsigned char array6[] = {0xff, 0x08, 0x02, 0x04, 0x02, 0x04, 0x04, 0x04, 0x88, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array7[] = {0xfe, 0x02, 0x0a, 0x02};
unsigned char array8[] = {0xff, 0x0a, 0x02, 0x04, 0x02, 0x06, 0x02, 0x06, 0x82, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array9[] = {0xfe, 0x02, 0x0a, 0x02};
unsigned char array10[] = {0xff, 0x0a, 0x02, 0x04, 0x02, 0x06, 0x02, 0x06, 0x84, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array11[] = {0xfe, 0x02, 0x08, 0x02};
unsigned char array12[] = {0xff, 0x08, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x95, 0x9b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array13[] = {0xfe, 0x02, 0x2c, 0x04};
unsigned char array14[] = {0x00, 0x12, 0x02, 0x04, 0x02, 0x28, 0x04, 0x28, 0x90, 0x07, 0x01, 0x85, 0x08, 0x91, 0x18, 0xad, 0x30, 0xc1, 0x50, 0xe5};
unsigned char array15[] = {0x01, 0x12, 0x88, 0x11, 0xb8, 0x5d, 0xe0, 0x81, 0x20, 0xc5, 0x68, 0x31, 0xd8, 0x6d, 0x30, 0xc1, 0x90, 0x25, 0xe8, 0xb1};
unsigned char array16[] = {0xff, 0x08, 0x78, 0x3d, 0xc0, 0x98, 0x02, 0x00, 0x00, 0xed, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array17[] = {0xfe, 0x02, 0x19, 0x03};
unsigned char array18[] = {0x00, 0x12, 0x02, 0x04, 0x02, 0x15, 0x04, 0x15, 0x02, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array19[] = {0xff, 0x07, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array20[] = {0xfe, 0x02, 0x17, 0x03};
unsigned char array21[] = {0x00, 0x12, 0x02, 0x04, 0x02, 0x13, 0x04, 0x13, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array22[] = {0xff, 0x05, 0x00, 0x80, 0x00, 0x00, 0xa5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array23[] = {0xfe, 0x02, 0x19, 0x03};
unsigned char array24[] = {0x00, 0x12, 0x02, 0x04, 0x02, 0x15, 0x04, 0x15, 0x02, 0x00, 0x0f, 0x00, 0x10, 0x00, 0xd8, 0x1c, 0x48, 0x00, 0x00, 0xe0};
unsigned char array25[] = {0xff, 0x07, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

noop frames

unsigned char array1[] = {0xfe, 0x02, 0x17, 0x03};
unsigned char array2[] = {0x00, 0x12, 0x02, 0x04, 0x02, 0x13, 0x04, 0x13, 0x02, 0x00, 0x0d, 0x13, 0x96, 0x31, 0x00, 0x00, 0x40, 0x10, 0x00, 0x80};
unsigned char array3[] = {0xff, 0x05, 0x18, 0x00, 0x00, 0x01, 0xe9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array4[] = {0xfe, 0x02, 0x19, 0x03};
unsigned char array5[] = {0x00, 0x12, 0x02, 0x04, 0x02, 0x15, 0x04, 0x15, 0x02, 0x00, 0x0f, 0x80, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
unsigned char array6[] = {0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
cagnulein commented 3 weeks ago

done @ptantot https://github.com/cagnulein/qdomyos-zwift/actions/runs/8814902384 Google is very slow in these days, reviewing the app on the store, even the beta ones. For this reason, in order to check right now if the patch that I did is right, you can use the android build in the link (check at the bottom of the page in about 1 hour). In order to test it you need first to remove the current QZ version on your phone, install the one that you downloaded. This version is a 15 minutes trial (you can restart it as many times as you want) and I can unlock it if you want, send me an email to roberto.viola83@gmail.com mentioning this ticket and that you are on android. Let me know if you have any questions

ptantot commented 3 weeks ago

Hi @cagnulein, Thank you very much for your help !!!

There is some progress. I tried build #6971 as #6968 failed. ==> After uninstalling the "official" version and installing beta #6971, I selected "Nordictrack S20i" in the treadmill options. After restarting the application I am able to communicate with the treadmill from QZ (+ - option of speed / incline induce action on the treadmill).

Now some problem / question => When I start, it is set to [Uploading btsnoop_hci_240424_190128.log…]() and not 2 km. A problem with km vs miles? A known problem? Do you have a solution? => Pause / Stop does not seem to work => I have created a new log with pause and stop at the end of the scenario using iFIT.

For the integration with zwift, the speed change during the workout does not seem to be applied to the treadmill. I thought it could be automatic but maybe I am wrong or as a newbie I have not configured something correctly? Do you have any tuto?

cagnulein commented 3 weeks ago

that's great!

for the 2km issue i don't get it. i guess there is an error in your last message? there is a link instead of the message

for the pause i will check it

for the speed in zwift: check this https://github.com/cagnulein/qdomyos-zwift/wiki/Can-Zwift-control-speed-and-or-inclination-of-my-treadmill%3F

ptantot commented 3 weeks ago

Sorry, the logfile : btsnoop_hci_240424_190128.log

cagnulein commented 3 weeks ago

are you able to create a debug log from qz directly with the issue? https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

Also i don't get it: instead of 2km/h which the value that you read?

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

Il giorno gio 25 apr 2024 alle 12:33 ptantot @.***> ha scritto:

Sorry, the logfile : btsnoop_hci_240424_190128.log https://github.com/cagnulein/qdomyos-zwift/files/15108269/btsnoop_hci_240424_190128.log

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

ptantot commented 3 weeks ago

I get 1.6 km h see screen IMG_20240425_143156

The log from QZ: debug-Thu_Apr_25_14_30_28_2024.log

cagnulein commented 3 weeks ago

@ptantot in the log i saw that you didn't turn on the miles setting in qz under the general settings. let me know if it's better

stale[bot] commented 5 days ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.