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

NordicTrack s20i - treadmill #2301

Closed
ptantot opened this issue Apr 21, 2024 · 17 comments
Closed

NordicTrack s20i - treadmill #2301

ptantot opened this issue Apr 21, 2024 · 17 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on
Milestone

Comments

@ptantot
Copy link

ptantot commented Apr 21, 2024

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 :

  • Start walking at 2km/h with 4 of inclination => info available in the application : OK
  • Increase speed to 4km in the treamill => info updated in the application : OK
  • Increase inclination to 6 in the treamill => info updated in the application : OK
  • Increase / Decrease speed in the application => no action : KO
  • Increase / Decrease inclination in the application => no action : KO

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):

  • OS: Android
  • Version 14

Smartphone (please complete the following information):

  • Device: Xiaomi Mi 12
  • OS: Xiaomi HyperOS
  • Version 1.0.7.0

Append a debug log
See attach
btsnoop_hci_240421_164809.log
ment

@ptantot ptantot added the bug Something isn't working label Apr 21, 2024
@cagnulein
Copy link
Owner

cagnulein commented Apr 21, 2024 via email

@ptantot
Copy link
Author

ptantot commented Apr 21, 2024 via email

@cagnulein
Copy link
Owner

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
Copy link
Author

ptantot commented Apr 22, 2024

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
Copy link
Owner

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
Copy link
Author

ptantot commented Apr 23, 2024

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
Copy link
Owner

s20i.txt

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

@cagnulein
Copy link
Owner

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
Copy link
Owner

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

@cagnulein cagnulein added this to the 2.16 milestone Apr 24, 2024
@ptantot
Copy link
Author

ptantot commented Apr 24, 2024

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
Copy link
Owner

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
Copy link
Author

ptantot commented Apr 25, 2024

Sorry, the logfile : btsnoop_hci_240424_190128.log

@cagnulein
Copy link
Owner

cagnulein commented Apr 25, 2024 via email

@ptantot
Copy link
Author

ptantot commented Apr 25, 2024

I get 1.6 km h see screen
IMG_20240425_143156

  • on QZ go to 2kmh, and after 2,5kmh...

The log from QZ:
debug-Thu_Apr_25_14_30_28_2024.log

@cagnulein
Copy link
Owner

@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

Copy link

stale bot commented May 11, 2024

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.

@stale stale bot added the wontfix This will not be worked on label May 11, 2024
@stale stale bot closed this as completed May 18, 2024
@cagnulein
Copy link
Owner

@ptantot any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants