cagnulein / qdomyos-zwift

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

DKN Motion doesn't connect #798

Closed Samms002 closed 2 years ago

Samms002 commented 2 years ago

Describe the bug DkN bike connects but does sync movement.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Append a debug log

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

Additional context Add any other context about the problem here.

cagnulein commented 2 years ago

@Samms002 i checked your log and it seems that your bike is already compatible, for example, with zwift, isn't it? If so i need to do a change in the code, because the original submitter of your bike ( #294 #368 ) doesn't have the same firmware. Let me know

Samms002 commented 2 years ago

I have never tried connecting with swift. But I know that the bike connects with Kinmap on my ipad6.

cagnulein commented 2 years ago

ok let's find it out easily @Samms002 Using the free app nrfconnect, connect to your bike and send me some screenshots here. I'm interested in the 1826 characteristic (the fitness machine one). Thanks

Samms002 commented 2 years ago

@cagnulein Sorry not at home at the moment. Will have to do it this evening. :(

cagnulein commented 2 years ago

@Samms002 no problem, when you will have time ;)

Samms002 commented 2 years ago

B295F09D-941F-414E-AC77-26C7AE6E53D1 CD0860E4-F412-445F-829B-4B73FD3EBDD4

Is this what you need?

cagnulein commented 2 years ago

yes thanks, i will handle this tomorrow!

Il giorno mar 3 mag 2022 alle 17:40 Samms002 @.***> ha scritto:

[image: B295F09D-941F-414E-AC77-26C7AE6E53D1] https://user-images.githubusercontent.com/104791424/166486657-a23bc126-ceeb-45b4-b494-7394e2b3a340.png [image: CD0860E4-F412-445F-829B-4B73FD3EBDD4] https://user-images.githubusercontent.com/104791424/166486661-50bafb3e-df8a-4fa0-81bf-9fce7d6970de.png

Is this what you need?

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

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

Samms002 commented 2 years ago

[Uploading debug-Tue_May_3_21_54_52_2022.log…]()

Samms002 commented 2 years ago

debug-Tue_May_3_21_57_47_2022.log

cagnulein commented 2 years ago

@Samms002 thanks, i did some modifications because your bike seems a little tricky, so we probably need some version to stabilize it. I will send you another one this evening. Thanks

Samms002 commented 2 years ago

Thank you for your time and patience 🙏

Samms002 commented 2 years ago

debug-Thu_May_5_08_10_58_2022.log

cagnulein commented 2 years ago

@Samms002 find one issue in your settings:

send here a log in case it doesn't work neither

Samms002 commented 2 years ago

@cagnulein Will try it later as I am out at the moment. Thanks

Samms002 commented 2 years ago

debug-Thu_May_5_17_39_04_2022.log

Samms002 commented 2 years ago

debug-Thu_May_5_21_15_16_2022.log

Samms002 commented 2 years ago

debug-Thu_May_5_21_15_58_2022.log

Samms002 commented 2 years ago

debug-Thu_May_5_21_18_01_2022.log

Samms002 commented 2 years ago

bugreport-2022-05-08-16-56-49.zip

Swithed on developer tools on Android Device and then turned Bluetooth HCI. Turnes on Dkn bike and Kinomap on Ipad6. Selected map to ride and start pedalling for bike to connect to Kinomap app. Bike connects and start ride. Decreased level of difficulty and rode for a couple of minutes. Then stopped and switrched off Bluetooth HCI on android device. Generated bug report and after 10 mins sent to email.

cagnulein commented 2 years ago

@Samms002 i checked the log but there is no kinomap connection inside. Stupid question: did you use this device with kinomap? I mean the device which collect the log is the one where kinomap should run on

Samms002 commented 2 years ago

I am the stupid one!! No ran kinomap on the ipad6 🤪

Samms002 commented 2 years ago

Will try to do it this evening. Sorry about that. What was I thinking 😞

cagnulein commented 2 years ago

eheheh @Samms002 ok at least we know it's the issue :)

Samms002 commented 2 years ago

bugreport-2022-05-09-18-23-10.zip

cagnulein commented 2 years ago

@Samms002 unfortunately this time there is any bluetooth log file in it. Probably you missed a step? Could you please retry?

Samms002 commented 2 years ago

I switched on Bluetooth HCI before I started the ride and then switched it off before generating the report. I will try again but then I think I will leave it alone because it is taking a lot of your time and sometimes we just have to accept that some things dont work.

cagnulein commented 2 years ago

as you did the first time was perfect :)

Samms002 commented 2 years ago

bugreport-2022-05-11-18-38-05.zip

cagnulein commented 2 years ago

btsnoop_hci.log

cagnulein commented 2 years ago

@Samms002 could you please do a last test? using the production version (so uninstall the testflight one). Could you please enable only the toorx bike setting disabling the virtual device setting? I checked your btsnoop and it should already work in that way. Let me know

Samms002 commented 2 years ago

So, I delete the current app and reinstall the one in the App store right?

cagnulein commented 2 years ago

@Samms002 yes, it's just a test because the bt snoop it really does the same thing that QZ does in the production version. The only difference is the bridge (virtual device setting) and so maybe is the issue

Samms002 commented 2 years ago

Ok.

Samms002 commented 2 years ago

C1679301-BDA3-43B0-A03B-8CBDE9AF228A

Samms002 commented 2 years ago

B63B8E4E-9620-4864-BC4E-6110B8E6DB41

Samms002 commented 2 years ago

Those are the settings

cagnulein commented 2 years ago

yes @Samms002 and enable also the debug log

Samms002 commented 2 years ago

👍Will test it later on today. Thanks

cagnulein commented 2 years ago

if it will not work, i have another idea to try, using the QLowEnergyService::WriteWithoutResponse (this is a reference for me)

cagnulein commented 2 years ago

@Samms002 are we ok with this? can we close this?

stale[bot] commented 2 years 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.