cagnulein / qdomyos-zwift

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

[BUG] Does not connect to Proform TDF with Pi 0 W #2387

Open cianpdx opened 5 days ago

cianpdx commented 5 days ago

Describe the bug

Does not connect to Proform TDF when compiled and run on Pi 0 W

Expected behavior Expect to match behavior as iphone app

Screenshots Screenshot of Iphone working (proving bike is able to connect etc etc)

image

bike bluetooth details

image

Pi (please complete the following information): Raspbian 11 bullseye (not working) output.txt

Smartphone (please complete the following information): iPhone 14 mini (working)

Append a debug log

attached

Additional context

building took several hours so I might look to cut out / reduce to only the applicable functions for my usage to make it more lightweight

cagnulein commented 5 days ago

the main issue is that the raspberry isn't finding the bike at all. check on the bluetooth side of the raspberry if you can find it let me know

cianpdx commented 5 days ago

here is the log from the iphone which is working

debug-Wed_Jun_12_21_43_51_2024.log

cianpdx commented 5 days ago

the main issue is that the raspberry isn't finding the bike at all. check on the bluetooth side of the raspberry if you can find it let me know

OK i will try some generic BLE scanner on the Pi

cianpdx commented 3 days ago

a generic BLE scan on the pi does return the bike:

Device f0:c0:b7:de:df:26 (random), RSSI=-57 dB Appearance = 0000 Flags = 05 Complete 128b Services = 00001533-1412-efde-1523-785feabcd123 Complete Local Name = I_EB

cagnulein commented 3 days ago

That Mac address is not in the debug log of qz. Did you try again?

cianpdx commented 3 days ago

yep same thing

strange is i dont see the mac address even on the iphone log (which works fine?)

cianpdx commented 3 days ago

from working iphone logs:

"Found new device: I_EB (00:00:00:00:00:00)"

cagnulein commented 3 days ago

I'm at the hospital right now, I will investigate later this week

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

Il giorno sab 15 giu 2024 alle 07:25 cianpdx @.***> ha scritto:

yep same thing

strange is i dont see the mac address even on the iphone log (which works fine?)

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

cagnulein commented 2 days ago

iphone doesn't collect mac address so that's not important. try to scan first from the generic scan on pi0 and then run QZ