cagnulein / qdomyos-zwift

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

Toorx TR with bt key TRX App Gate USB #32

Closed cagnulein closed 3 years ago

cagnulein commented 3 years ago

I found also iConnect+ app that works with Toorx TR for free... I'll update the logs soon

Originally posted by @drainuzzo in https://github.com/cagnulein/qdomyos-zwift/issues/15#issuecomment-715232849

drainuzzo commented 3 years ago

hello @cagnulein

today updated all and tried again but this time is worse, cannot see my Toorx and its data on the program 😢 debug-TR-AppGate-10.zip

I attached all logs

bye

cagnulein commented 3 years ago

@drainuzzo after the first try, the rasp or the treadmill went in error. So you have to reboot both (or just one of them and see if something changes).

Anyway, i saw that the RSSI from your treadmill is low:

Debug: Discovered: "FF:90:CE:BE:F5:FC" "TOORX0083" Num UUIDs 5 total device 9 cached RSSI -79 Class 0

i don't think this is the cause, but try to reduce the distance

for example, the hue lamp has a very powerful signal

Debug: Discovered: "F4:7A:0C:B7:EF:C3" "Hue Lamp" Num UUIDs 1 total device 7 cached RSSI -50 Class 0 Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Dec 21 12:21:34 2020 1608549694260 Found new device: Hue Lamp (F4:7A:0C:B7:EF:C3) \u0000:\u0000"

drainuzzo commented 3 years ago

ok @cagnulein now I put the pi very near to TR but I had some crash or the same lack of tr data

new logs: debug-TR-AppGate-11.zip

cagnulein commented 3 years ago

ok @drainuzzo i saw now a good RSSI. Maybe i understood the issue. For the Carnielli treadmill, i put some delay on the init phase, and maybe this is the issue on you now. I removed for your type of treadmill. Pull it and build it. Thanks!

drainuzzo commented 3 years ago

Ok I rebuilt it but again it fails on acquiring data and sometimes crashed after the start

new logs debug-TR-AppGate-12.zip

cagnulein commented 3 years ago

i'm speechless, i don't understand what's going on, sometimes it starts and it hangs after few seconds, sometimes doens't start at all. For sure the modification that i did today, helps it because i saw data finally in a log. But the disconnection are too much. @drainuzzo you definitely need to test it with something different from the pi3b (it's still it isn't it?). Don't you have a pi0w? or even a pi4?

drainuzzo commented 3 years ago

@cagnulein I have pi4s but need some time to configure things..I'll keep in touch I hope before end of the year

cagnulein commented 3 years ago

no problem, if something else comes to my mind i will write you. P.S. Did the mantide arrive? :D

drainuzzo commented 3 years ago

no problem, if something else comes to my mind i will write you. P.S. Did the mantide arrive? :D

mantide will arrive on feb..I hope in a good shape 😍 🙏

cagnulein commented 3 years ago

i'm closing this one. The code is in the repo!