cagnulein / qdomyos-zwift

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

iOS not connecting to NordicTrack x22i treadmill #2407

Closed tkakkos closed 1 month ago

tkakkos commented 2 months ago

Describe the bug I followed the procedure to connect to the treadmill with the QZ companion app running in the background. Permissions enabled in the settings. Many treadmill restarts do not permit a connection to the iOS app despite putting the correct ip address.

To Reproduce

Expected behavior

Screenshots IMG_2704 2 IMG_2705 IMG_2706

Smartphone (please complete the following information):

Append a debug log

debug-lun__juin_24_21_25_58_2024.log

Additional context Add any other context about the problem here.

cagnulein commented 2 months ago

thanks, i will check it tomorrow, 10pm here :)

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

Il giorno lun 24 giu 2024 alle 21:49 tkakkos @.***> ha scritto:

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

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

cagnulein commented 2 months ago

@tkakkos log checked, the problem is that your wifi router is filtering the frames from the treadmill. Which wifi router are you using? can you try to use your phone as a access point for the treadmill instead? Let me know

tkakkos commented 2 months ago

Hello,

I connected the treadmill to my iPhone as hotspot and I still have the same problem, no connection. I attach the log file My router is a Unifi Dream Machine Pro, I verified the settings and there is nothing preventing network clients to communicate with each other.

Thanks in advance

debug-mar__juin_25_14_48_57_2024.log

cagnulein commented 2 months ago

yeah the frames are not there. did you try to do a factory reset on the treadmill WITHOUT updating the ifit app and trying again? Something is preventing the UDP frames to reach the iphone.

tkakkos commented 2 months ago

I did a factory reset, the app connects now to the treadmill for some seconds reporting a speed of 2km/h and then it freezes, speed and incline do not update

debug-mer__juin_26_19_57_14_2024.log

cagnulein commented 2 months ago

ok that's a start, just to be sure, are you running the ifit app on top of the treadmill tablet? you should use the manual workout

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

Il giorno mer 26 giu 2024 alle 20:15 tkakkos @.***> ha scritto:

I did a factory reset, the app connects now to the treadmill for some seconds reporting a speed of 2km/h and then it freezes, speed and incline do not update

debug-mer__juin_26_19_57_14_2024.log https://github.com/user-attachments/files/15993636/debug-mer__juin_26_19_57_14_2024.log

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

tkakkos commented 2 months ago

Yes, iFit app is always running on top

cagnulein commented 2 months ago

ok that's strange because all other users with x22i don't have issue reading on metrics.

anyway give it a try selecting on the companion app instead of x22i

reboot the treadmill after each try. don't change any settings on ios side, there everything is fine

let me know

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

Il giorno mer 26 giu 2024 alle 20:28 tkakkos @.***> ha scritto:

Yes, iFit app is always running on top

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

tkakkos commented 2 months ago

[Uploading debug-jeu__juin_27_15_29_09_2024.log…]() So I tried the other profiles:

Thanks in advance

cagnulein commented 2 months ago

that's a great news! it means that your treadmill has a different android base system. Ok i will create a new device profile in the companion to handle this. I will share the link shortly

cagnulein commented 2 months ago

@tkakkos could you please share the exact model of your treadmill so i will add this in the info in the companion app? Thanks!

tkakkos commented 2 months ago

It's a NordicTrack Commercial x22i (model: MalataMediatekArgon2) running Android 9.0. To precise my last message, using the 2950 (22km/h) profile I can adjust inclination by 1% steps but clicking the plus or minus button for the speed does nothing appart simulating a click on the screen and bringing up the iFit menu. Pushing the + button for several seconds brings the speed directly to 10km/h. Lastly but with less importance, the fan button is not working. Again thanks for your reactivity and help.

tempImageWaunOw tempImageW89aq2

cagnulein commented 2 months ago

Ok I will do this in the next days!

cagnulein commented 2 months ago

@tkakkos done https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.45/QZCompanionNordictrackTreadmill.apk

select the new x22i v2 device in the companion and restart it.

If the coordinates are the same of the x22i it should also control correctly the speed and the inclination. Otherwise I will need the screenshot of the manual workout view with the sliders

let me know

tkakkos commented 2 months ago

Its reads correctly the data but it does not control speed and inclination. I attach a screenshot of the manual workout view

tempImagewXEWHp

cagnulein commented 2 months ago

but do you see the touch event when you press the plus button on the tiles on qz? like you saw on the 2950 device for example?

tkakkos commented 2 months ago

After restarting the treadmill, speed button works 70% of the time by 0,4km/h to 0,5km/h increments, inclination button minus works at 0 degrees every time to -6 degrees but plus button doesn't work at 0 degrees. It starts to work at 3 degrees sometimes. I would say however that inclination does not work more often than it does.

debug-ven__juin_28_09_46_00_2024.log

cagnulein commented 2 months ago

ok it could be that the coordinates for your treadmill are different from the one that I already implemented for the x22i

use the script https://github.com/cagnulein/QZCompanionNordictrackTreadmill/blob/master/InstallPackage/adb-screenshot.bat to collect a screenshot directly from the monitor, i need the precise pixel coordinates.

Otherwise you can run the swipes command from adb to obtain the coordinates if the sliders are not linear.

tkakkos commented 2 months ago

Can you explain how I can do the screenshot from a Mac? When I run the ads-screenshot-mac.sh in Terminal I get the following error

Screenshot 2024-06-28 at 15 12 09
cagnulein commented 2 months ago

you have to run the adb-screenshot-mac.sh from the folder directly

so first do the cd /Volumes/downloads/QZCompanion.....

and then run it

tkakkos commented 2 months ago

I open it inside the folder but I still have the same error

Screenshot 2024-06-28 at 16 59 23
cagnulein commented 2 months ago

The adb file is there? If so run

chmod a+x adb

tkakkos commented 2 months ago

adb file is there, I ran the chmod a+x adb and still have the same problem..

Screenshot 2024-06-28 at 18 29 03
cagnulein commented 2 months ago

I'm driving now. Talk to you soon

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

Il giorno ven 28 giu 2024 alle 18:32 tkakkos @.***> ha scritto:

adb file is there, I ran the chmod a+x adb and still have the same problem.. Screenshot.2024-06-28.at.18.29.03.png (view on web) https://github.com/cagnulein/qdomyos-zwift/assets/81328589/d0f4a67d-ec84-4eb1-be85-d7a30c151e13

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

cagnulein commented 2 months ago

Run it with

./adb-screenshot-mwc.sh

tkakkos commented 2 months ago

Still the same..

Screenshot 2024-06-28 at 19 25 01
cagnulein commented 2 months ago

Without open

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

Il giorno ven 28 giu 2024 alle 19:26 tkakkos @.***> ha scritto:

Still the same.. Screenshot.2024-06-28.at.19.25.01.png (view on web) https://github.com/cagnulein/qdomyos-zwift/assets/81328589/4fa94aa4-cc7e-469c-9e0a-00ddc809b6ee

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

tkakkos commented 2 months ago

Ok, that worked. Can you tell me how I can get the screenshot from the /sdcard folder?

Screenshot 2024-06-28 at 19 47 35
tkakkos commented 2 months ago

Sorry, I found it in the folder

2024-06-28@19-45-36

cagnulein commented 2 months ago

Thanks, I'm away for the weekend, I will check next week.

Have a nice weekend

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

Il giorno ven 28 giu 2024 alle 19:49 tkakkos @.***> ha scritto:

Sorry, I found it in the folder

@.*** (view on web) https://github.com/cagnulein/qdomyos-zwift/assets/81328589/00e8ca1d-4287-4e83-94af-6318c0a7c60e

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

tkakkos commented 2 months ago

Thank you for your patience and your help.

Have a nice weekend too.

A. Kakkos Le 28 juin 2024 à 21:58 +0200, Roberto Viola @.***>, a écrit :

Thanks, I'm away for the weekend, I will check next week.

Have a nice weekend

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

Il giorno ven 28 giu 2024 alle 19:49 tkakkos @.***> ha scritto:

Sorry, I found it in the folder

@.*** (view on web) https://github.com/cagnulein/qdomyos-zwift/assets/81328589/00e8ca1d-4287-4e83-94af-6318c0a7c60e

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

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

cagnulein commented 2 months ago

done @tkakkos https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.46/QZCompanionNordictrackTreadmill.apk

let me know!

stale[bot] commented 1 month 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.

cagnulein commented 1 month ago

@tkakkos any news?