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

[BUG] NordicTrack S22i support using issue 877 as example #954

Closed
Ktrum161 opened this issue Sep 27, 2022 · 115 comments
Closed

[BUG] NordicTrack S22i support using issue 877 as example #954

Ktrum161 opened this issue Sep 27, 2022 · 115 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on
Milestone

Comments

@Ktrum161
Copy link

Ktrum161 commented Sep 27, 2022

I used Issue 877 troubleshooting as my example and followed the same setup as used for the ProForm Tour de France 10 bike. Using treadmill for options with Proform/Nordictrack Options set as Nordictrack2950 IP to S22i bike address and using the last tested QZCompanion apk tested to function with the TDF 10 Bike. The QZCompanion is sending data via UDP, as witnessed in Wireshark.

Expected behavior:
Expected bike metrics to be recognized using the QZ Companion App on the S22i bike. Metrics for speed and inclination appear to work as described in the README for the QZ Companion application.

Problem:
Cadence is not populating. This may be a feature versus a bug, but would like cadence to populate to be recognized as a bike.

Attachments:

IMG_0001

Smartphone (please complete the following information):

  • Device: iphone 7
  • Version 14.7.1

Append a debug log

debug-Tue_Sep_27_11_42_33_2022.log

Follow this guide https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

@Ktrum161 Ktrum161 added the bug Something isn't working label Sep 27, 2022
@cagnulein
Copy link
Owner

i guess it's because you're not using the beta @Ktrum161
since the wifi bike support is still in beta

send me an email to roberto.viola83 at gmail.com indicating this ticket and if you are on android or iOS. Thanks

@cagnulein
Copy link
Owner

#877

@Ktrum161
Copy link
Author

@cagnulein, Beta App has same behavior using the setting recommended. No Cadence (rpm) is collected.

@cagnulein
Copy link
Owner

@Ktrum161 Could you send me a fresh debug log to understand if all the settings are right? Thanks

@Ktrum161
Copy link
Author

Ktrum161 commented Sep 27, 2022

@cagnulein
Fresh debug log:
debug-Tue_Sep_27_13_25_33_2022.log

@cagnulein
Copy link
Owner

@Ktrum161 nordictrack_2950_ip" QVariant(QString, "192.168.1.138") is still set. You have to blank it completely there and press ok. It must be without any character there
Let me know

@Ktrum161
Copy link
Author

@cagnulein Confirmed that was the problem. Cadence is now populating! Looking forward to testing this out!

@cagnulein
Copy link
Owner

Great! Let me know @Ktrum161

@Ktrum161
Copy link
Author

@cagnulein is there any known issues with connecting to zwift from the apple beta app? I was able to connect to zwift last night with an android device running a non-beta minus the cadence so couldn't go anywhere. I am "searching" for a power device in Zwift with no devices found. Zwift is running on a Windows 10 system.

@cagnulein
Copy link
Owner

Nope, it has to work as the production one. Try again with the android one.
If it works you have to play with the windows version of zwift. Zwift on windows is a headache for Bluetooth

@Ktrum161
Copy link
Author

@cagnulein, could I get the beta version for Android as well?

@cagnulein
Copy link
Owner

@Ktrum161
Copy link
Author

@cagnulein. I am having crashing on the beta app for Android. I have setup the same configuration as on the iOS device, but it crashes over an over on startup. If I am able to get one change on the app settings it is a miracle. I was able to see the non-beta connect to ZWIFT last night, without cadence. I now have the correct data being fed to the iOS device, but it is not showing up in either Windows or MAC versions of ZWIFT as a power device.

@cagnulein
Copy link
Owner

am having crashing on the beta app for Android. I have setup the same configuration as on the iOS device, but it crashes over an over on startup. If I am able to get one change on the app settings it is a miracle

@Ktrum161 disable the bluetooth and wifi and enable the debug log. Then enable wifi and bluetooth back and if it crashes, send me the debug log here. It's the only way to understand which is the issue.

I now have the correct data being fed to the iOS device, but it is not showing up in either Windows or MAC versions of ZWIFT as a power device.

On the mac version unpair the iphone from the mac and leave it unpaired and reboot the mac, it should appear. On Windows, don't you see neither the Wahoo virtual device from QZ? Did you try to pair the iphone on windows?

Bluetooth is a nigthmare also with real bluetooth bike, so you're not alone in this mad world :)
But, no problem, you will fix it.

@Ktrum161
Copy link
Author

@cagnulein I will test later today and get you the debug logs. Eventually last night the wahoo kicker 0000 devices showed up from iOS sporadically. When I start Zwift and have the Power and Cadence sensors connected, I can see my data in QZ app populating, but my avatar does not move in Zwift, as it is not detecting Cadence. Is there supposed to be a "connected device" sensor appearing as well or just the two?

@cagnulein
Copy link
Owner

Is there supposed to be a "connected device" sensor appearing as well or just the two?

Do you mean controllable device? Yes you have to see all the 4 green tile in the setup screen.
The fact that the wahoo kicker 0000 appears sometimes it seems to me a wifi issue or similar (wahoo dircon virtual device work with the wifi).

@Ktrum161
Copy link
Author

@cagnulein Yes, Connected Device. It shows up randomly and I actually had the wifi and bluetooth disabled and it was still showing up there in ZWIFT. If I try to start riding, no cadence or movement is detected by ZWIFT. BTW, where are logs in Android?

@cagnulein
Copy link
Owner

@cagnulein
Copy link
Owner

@Ktrum161 which model of mac do you have? we can try to run qz on windows or mac directly

@cagnulein
Copy link
Owner

@Ktrum161 any news?

@Ktrum161
Copy link
Author

@cagnulein I wish. My controller board on the s22i died again, which controls incline, cadence, watts, and most important, resistance. I just put this one in 4 days prior. They are now sending all new wiring before sending another board. Right now my trainer is a paperweight. If all goes well, I might be able to build my own bike with all these spare parts

@cagnulein
Copy link
Owner

@Ktrum161 oh my god, such a shame! I really hope that they will fix it or maybe send to you directly a new bike!

@Ktrum161
Copy link
Author

@cagnulein, starting to wonder which bikes have the least reliance on circuitry. The resistance aspect is not good. I bought it for the feauture of automatic resistance that is controlled by the ifit workouts, but dont like that if the controller board goes, magnetic resistance also goes. I like the smart connectivity, but too much breakable components.

@cagnulein
Copy link
Owner

the majority of the bikes are made in this way, so I guess you were just unlucky :(

@Ktrum161
Copy link
Author

Ktrum161 commented Oct 1, 2022

With the s22i wifi connection, is the udp traffic only 1 direction to QZ. Any idea if it would ever be possible to adjust the incline or resistance based on Zwift terrain for this bike? Debating my options. I just rode on Zwift today for the 1st time and I am just using Wahoo cadence and speed sensors with a coros watch for heart rate on a dumb trainer. I can see why auto resistance is needed.

@cagnulein
Copy link
Owner

Yes actually with @victorypoint in the #815 we started experimenting auto resistance but we hit a problem on the tcp socket
I need time to port the socket to tcp to test it

@stale
Copy link

stale bot commented Oct 17, 2022

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 Oct 17, 2022
@Ktrum161
Copy link
Author

@cagnulein
debug-Thu_Dec_29_14_33_25_2022.log
Getting much closer. QZ is moving my bike, but zwift is showing much less movements, while the swipe commands are every second. Maybe we only take every 4 seconds? Worried the resistance motor is going to burn up.

@stale
Copy link

stale bot commented Jan 14, 2023

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 Jan 14, 2023
@cagnulein
Copy link
Owner

i guess this is done! :)

@jjharaldson
Copy link

Sorry, Robert. I can’t get it to log any debug file. I tried and tried, for some reason it doesn’t work. I can’t believe that I cannot connect via the usb to do anything either.

@cagnulein
Copy link
Owner

@jjharaldson with @Ktrum161 we have a working setup (controlling resistance and metrics). I don't remember, do you have the metrics on qz at least?

@Ktrum161
Copy link
Author

@jjharaldson , how far did you get in these instructions?:
https://github.com/cagnulein/QZCompanionNordictrackTreadmill/blob/master/README.md

I had issues doing the install via the browser. I recommend executing the .bat script as an administrator. Make sure your bike and the windows computer you are running the script from are on the same wireless network. Please make sure that the QZ application on your phone is not running at the same time as you are trying to install. If you have the QZ application running and it is configured properly, it will be connecting to your bike via ADB, which may cause issues with the script also trying to connect to the bike via ADB. I had issues with only being able to connect to the bike, 1 device at a time. Also, once the companion application is installed on the console, go into application settings in the console and give the QZ companion app permissions to read the file structure. It is reading the ifit logs and broadcasting the logs. The QZ app on your phone is able to read those logs, but will also (if Android), be able to send ADB commands to the S22 to change the incline to follow along with your Zwift ride.

@cagnulein I see the companion app was updated recently. We went through numerous beta versions. The last one I used and had success with was the original basic one that did not have adb built in. I just want to make sure the current version is correct. Multiple ADB connections has a problem for some reason on the S22.

@cagnulein
Copy link
Owner

@Ktrum161 right, he has to use yours version. I didn't change the companion app yet to remove the adb remote for your bike

That's why I asked if at least he can get the metrics

@Ktrum161
Copy link
Author

@cagnulein But to get the metrics, he needs to be able to install the companion app. Or am I misunderstanding what you are asking for.

@cagnulein
Copy link
Owner

Yes right, but the metrics are correctly sent from all the companion versions. Viceversa for the controllable point of view, you need that the specific version

@jjharaldson
Copy link

I can’t even get the app to run. I install it and it gives me the error message that the app has stopped working, immediately when in open it. I tried to debug via the usb port and i can’t see the bike when connected. And then tried that app that robert suggested but nothing logs when I run it while the error happens. I just don’t understand why the usb port won’t see the bike on my pc.

@cagnulein
Copy link
Owner

@jjharaldson that error should be fixed now with the latest companion.give it a try!

@jjharaldson
Copy link

Sounds good, I will also install it the way @Ktrum161 suggest too.

@Ktrum161
Copy link
Author

@jjharaldson which bike do you have? You are mentioning usb ports.

@jjharaldson
Copy link

S22i

@jjharaldson
Copy link

@Ktrum161 @cagnulein I try to install via your suggestion and it pings the bike fine but cannot establish and ADB connection. I attached the log.txt. I remember it doing that before as well. That is why I did the browser.
QZ-Companion-log.txt

@Ktrum161
Copy link
Author

@jjharaldson just to make sure, did you go into admin mode on the s22i console, enable developer mode, then go into developer settings and enable adb on the s22? Also, make sure that the QZ app on your phone is completely off, just in case it is trying to connect via adb at the same time. I sometimes had issues with the adb connection. Usually turning off on the console, then enabling again seemed to work. ADB should be able to have multiple connections, so it is strange that the s22i is temperamental about it.

@jjharaldson
Copy link

yep, enabled usb debugging and actually uninstalled the app on my phone. tried connecting from a different pc and it still refuses the connection. i can try to rebooting the bike to see if that works.

@Ktrum161
Copy link
Author

That might help

@jjharaldson
Copy link

Rebooted a few times and same issue.

@Ktrum161
Copy link
Author

Ktrum161 commented Jan 15, 2023 via email

@jjharaldson
Copy link

I am on iOS but I probably could find and old android phone to see if that works

@jjharaldson
Copy link

Connection failed, says connection was refused. I appreciate your time man. But for some reason my tablet won’t let and adb connection. Sucks

@Ktrum161
Copy link
Author

Yeah, ya got me. If it is set for adb enabled, no idea why it wouldn’t be enabled.

@JuergenNeubauer
Copy link

Hello,

When I had the issue with the refused connection, what helped most of the time was to switch off USB debugging AND Revoke USB debugging authorizations. Then, switch USB debugging on again.
Hope that helps.

@cagnulein
Copy link
Owner

@jjharaldson you can install the apk from the tinyurl. did you try? https://tinyurl.com/qz-companion

@jjharaldson
Copy link

I tried that way the very first time. And that’s when that error occurred. I will try again

@cagnulein
Copy link
Owner

yes but i updated it in the mean time @jjharaldson
let me know

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

7 participants