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

cagnulein commented 3 years ago

Great worked!

if it doesn't work run hciconfig hci0 leadv 0 run my app without sudo try to connect with nrfconnect

and I discovered it with Zwift, so starting the prog without sudo seems the way

Maybe something related to your distro. Do you use raspbian? So you saw the speed value on zwift? Your avatar was moving?

drainuzzo commented 3 years ago

my distro is the official raspberrypi 5.4.72

I can't see any values on Zwift and my avatar is stopped 😭

I think we will be in touch next week

cagnulein commented 3 years ago

my distro is the official raspberrypi 5.4.72

I can't see any values on Zwift and my avatar is stopped 😭

I think we will be in touch next week

I'm using this one https://www.raspberrypi.org/downloads/

Did you? Send me the full new log next week Have a good weekend

drainuzzo commented 3 years ago

Yeah it is based on debian buster 10.x, it is the last, rolling raspberrypi release , the same

Good weekend @cagnulein 😄

drainuzzo commented 3 years ago

Hello @cagnulein I attached logs for the following test

START 18:18
18:18 speed 1 incl 0
18:18 speed 2 incl 0
18:18 speed 3 incl 0
18:18 speed 4 incl 0
18:19 speed 8 incl 0
18:19 speed 4 incl 0
18:19 speed 4 incl 1
18:20 speed 5 incl 1
18:20 speed 5 incl 4
18:21 STOP (speed 5 ->0, incl 4 ->0)

debug-TR-AppGate-2.zip

cagnulein commented 3 years ago

Thanks @drainuzzo I will check it tomorrow. Did you test zwift too? Does it work?

drainuzzo commented 3 years ago

@drainuzzo no sorry I didn't tried it with Zwift yet, I will report another test next days ;)

drainuzzo commented 3 years ago

Just a note, this time worked only with sudo

cagnulein commented 3 years ago

@drainuzzo i fixed speed and inclination https://github.com/cagnulein/qdomyos-zwift/commit/62a76f5f13897aa690ea5f8e18df819022514047

let's try :)

drainuzzo commented 3 years ago

Hello @cagnulein

Today I noticed that program worked only without sudo and if I set a velocity greater than 9.9 the values of the speed reported on the program is 0 (my TR goes up to 20.0)

Then I'm sure velocity set to 10.0 is faster than pace 6.0/km but I don't know how it can be calculated to be more accurate for my TR

Later I will try cardio and Zwift

rickoneeleven commented 3 years ago

without sudo.... I always run with sudo, wonder if it would make a difference

@drainuzzo when you say the program didn't work with sudo - what doesn't work about it - just doesn't launch or..?

cagnulein commented 3 years ago

@drainuzzo could you please send me the log about the speed issue? i think it just a stupid thing :)

drainuzzo commented 3 years ago

Attached the logs

the program started with sudo but crashed after some seconds... debug-TR-AppGate-3.tar.gz

cagnulein commented 3 years ago

@drainuzzo thanks, i fixed the speed issue, at least i guess i did (check the last commit) :D i saw the max speed on the log was 10.1 (but i displayed to 9.9 and then 0.0)

cagnulein commented 3 years ago

the program started with sudo but crashed after some seconds...

do you have a log of that crash?

drainuzzo commented 3 years ago

This is a KO log, started with sudo

Debug:   Bluez 5 detected.
Debug:   Creating QtBluezDiscoveryManager
Debug:   Discovered:  "94:65:2D:C2:AC:88" "OnePlus 5T" Num UUIDs 16 total device 0 cached RSSI 0 Class 5898764
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:24 2020 1604920944600 Found new device: OnePlus 5T (94:65:2D:C2:AC:88) \u0002:\u0003"
Debug:   Discovered:  "FF:90:CE:BE:F5:FC" "TOORX0083" Num UUIDs 5 total device 1 cached RSSI 0 Class 0
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:24 2020 1604920944623 Found new device: TOORX0083 (FF:90:CE:BE:F5:FC) \u0000:\u0000"
Debug:   void QBluetoothDeviceDiscoveryAgentPrivate::stop()
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:24 2020 1604920944632 Found new device: TOORX0083 (FF:90:CE:BE:F5:FC)"
Debug:   Detecting bluetoothd version
Debug:   Using /proc/<pid>/exe
Debug:   Detected bluetoothd version 5.50
Debug:   Bluetoothd: "5.50"
Warning:   Using BlueZ LE DBus API
Debug:   QLowEnergyControllerPrivateBluezDBus::connectToDevice()
Debug:   BluetoothManagement: Ignored event: 13
Debug:   ###### "org.bluez.Device1" QMap(("Connected", QVariant(bool, true)))
Debug:   BluetoothManagement: Ignored event: 13
Debug:   BluetoothManagement: Ignored event: b
Debug:   ###### "org.bluez.Device1" QMap(("ServicesResolved", QVariant(bool, true)))
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946219 Controller connected. Search services..."
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946250 serviceDiscovered {00001801-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946258 serviceDiscovered {0000fe59-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946265 serviceDiscovered {0000fff0-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946273 serviceDiscovered {0000180a-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946274 serviceScanDone"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946275 BTLE stateChanged DiscoveringServices"
Debug:   Read Desc: "\x00\x00"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946489 BTLE stateChanged ServiceDiscovered"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946489 characteristic {0000fff2-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946490 characteristic {0000fff1-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946491 creating virtual treadmill interface..."
Warning:   Using BlueZ kernel ATT interface
Debug:   Starting to advertise
Debug:   sending command; ogf: 8 ocf: 7
Debug:   command sent successfully
Debug:   Init CCC change to "0100" "{0000fff1-0000-1000-8000-00805f9b34fb}" "{0000fff0-0000-1000-8000-00805f9b34fb}"
Debug:   HCI event triggered, type: e
Debug:   command 7 executed successfully
Debug:   TX power level is 12
Debug:   advertising parameters: "a000a0000000000000000000000700"
Debug:   advertising data: "1a020a0c0201060d09446f6d796f73427269646765050326180d180000000000"
Debug:   scan response data: "17020a0c0d09446f6d796f73427269646765050326180d180000000000000000"
Debug:   sending command; ogf: 8 ocf: 10
Debug:   command sent successfully
Debug:   HCI event triggered, type: e
Debug:   command 10 failed with status 12
Debug:   Advertising disable failed, ignoring
Debug:   sending command; ogf: 8 ocf: 6
Debug:   command sent successfully
Debug:   HCI event triggered, type: e
Debug:   command 6 executed successfully
Debug:   sending command; ogf: 8 ocf: 8
Debug:   command sent successfully
Debug:   HCI event triggered, type: e
Debug:   command 8 executed successfully
Debug:   sending command; ogf: 8 ocf: 9
Debug:   command sent successfully
Debug:   HCI event triggered, type: e
Debug:   command 9 executed successfully
Debug:   sending command; ogf: 8 ocf: 10
Debug:   command sent successfully
Debug:   HCI event triggered, type: e
Debug:   command 10 executed successfully
Debug:   HCI event triggered, type: 13
Debug:   Write Desc: "{00002902-0000-1000-8000-00805f9b34fb}" "0100"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946699 descriptorWritten Client Characteristic Configuration 01 00"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946780  >> f0 a0 01 01 92 // init"
Debug:   BluetoothManagement: Ignored event: c
Debug:   HCI event triggered, type: 13
Debug:   HCI event triggered, type: 5
Debug:   ###### "org.bluez.Device1" QMap(("Connected", QVariant(bool, false))("ServicesResolved", QVariant(bool, false)))
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946850 BTLE stateChanged InvalidService"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946850 LowEnergy controller disconnected"
Debug:   Discovered:  "94:65:2D:C2:AC:88" "OnePlus 5T" Num UUIDs 16 total device 0 cached RSSI 0 Class 5898764
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946884 Found new device: OnePlus 5T (94:65:2D:C2:AC:88) \u0002:\u0003"
Debug:   Discovered:  "FF:90:CE:BE:F5:FC" "TOORX0083" Num UUIDs 5 total device 1 cached RSSI 0 Class 0
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946901 Found new device: TOORX0083 (FF:90:CE:BE:F5:FC) \u0000:\u0000"
Debug:   void QBluetoothDeviceDiscoveryAgentPrivate::stop()
Warning:   QObject::disconnect: No such signal trainprogram::changeResistance(double) in mainwindow.cpp:236
Warning:   QObject::disconnect: No such signal trxappgateusbtreadmill::bikeStarted() in mainwindow.cpp:238
Warning:   QObject::connect: No such signal trainprogram::changeResistance(double) in mainwindow.cpp:245
Warning:   QObject::connect: No such signal trxappgateusbtreadmill::bikeStarted() in mainwindow.cpp:247
Debug: mainwindow.cpp void MainWindow::trainProgramSignals() trainProgram associated to a device
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:26 2020 1604920946910 Found new device: TOORX0083 (FF:90:CE:BE:F5:FC)"
Warning:   Using BlueZ LE DBus API
Debug:   QLowEnergyControllerPrivateBluezDBus::connectToDevice()
Debug:   ###### "org.bluez.Device1" QMap(("Connected", QVariant(bool, true)))
Debug:   BluetoothManagement: Ignored event: b
Debug:   HCI event triggered, type: 3e
Debug:   received connection complete event, handle: 65
Debug:   HCI event triggered, type: f
Debug:   HCI event triggered, type: e
Debug:   HCI event triggered, type: e
Debug:   BluetoothManagement: Ignored event: 13
Debug:   HCI event triggered, type: e
Debug:   BluetoothManagement: found random device "13:2D:AA:FB:A9:F5"
Debug:   HCI event triggered, type: 3e
Debug:   HCI event triggered, type: 3e
Debug:   BluetoothManagement: found random device "C4:FC:E8:A6:95:04"
Debug:   HCI event triggered, type: 3e
Debug:   BluetoothManagement: found random device "0C:6F:D8:68:2E:A9"
Debug:   HCI event triggered, type: 3e
Debug:   BluetoothManagement: found random device "FD:61:AE:2F:59:79"
Debug:   HCI event triggered, type: 3e
Debug:   HCI event triggered, type: 3e
Debug:   BluetoothManagement: found random device "FF:14:B2:E2:E7:4D"
Debug:   HCI event triggered, type: 3e
Debug:   BluetoothManagement: found random device "FF:90:CE:BE:F5:FC"
Debug:   HCI event triggered, type: 3e
Debug:   ###### "org.bluez.Device1" QMap(("RSSI", QVariant(short, -70)))
Debug:   HCI event triggered, type: 3e
Debug:   GATT connection from device "FF:90:CE:BE:F5:FC" "TOORX0083"
Debug:   Group "RemoteSignatureKey" not found in settings file
Debug:   Received size: 3 data: "021e00"
Debug:   MTU request from client: 30 effective client RX MTU: 30
Debug:   Sending server RX MTU 512
Debug:   Received size: 9 data: "060100ffff00280d18"
Debug:   client sends find by type value request; start: 1 end: 65535 type: 10240 value: "0d18"
Debug:   sending response: "0709000c00"
Debug:   Received size: 7 data: "0809000c000328"
Debug:   client sends read by type request, start: 9 end: 12 type: "{00002803-0000-1000-8000-00805f9b34fb}"
Debug:   sending response: "09070a00100b00372a"
Debug:   HCI event triggered, type: 13
Debug:   Received size: 7 data: "080c000c000328"
Debug:   client sends read by type request, start: 12 end: 12 type: "{00002803-0000-1000-8000-00805f9b34fb}"
Warning:   sending error response; request: 8 handle: 12 code: 10
Debug:   Received size: 5 data: "040c000c00"
Debug:   client sends find information request; start: 12 end: 12
Debug:   sending response: "05010c000229"
Debug:   HCI event triggered, type: 13
drainuzzo commented 3 years ago

This is OK log, started withoud sudo (interrupted with x icon)

Debug:   Bluez 5 detected.
Info:   Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.
Debug:   Creating QtBluezDiscoveryManager
Debug:   Discovered:  "94:65:2D:C2:AC:88" "OnePlus 5T" Num UUIDs 16 total device 0 cached RSSI 0 Class 5898764
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:40 2020 1604920960216 Found new device: OnePlus 5T (94:65:2D:C2:AC:88) \u0002:\u0003"
Debug:   Discovered:  "C4:FC:E8:A6:95:04" "RunScribe-06FE" Num UUIDs 4 total device 1 cached RSSI 0 Class 0
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:40 2020 1604920960246 Found new device: RunScribe-06FE (C4:FC:E8:A6:95:04) \u0000:\u0000"
Debug:   Discovered:  "FD:61:AE:2F:59:79" "RunScribe-C670" Num UUIDs 4 total device 2 cached RSSI 0 Class 0
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:40 2020 1604920960279 Found new device: RunScribe-C670 (FD:61:AE:2F:59:79) \u0000:\u0000"
Debug:   Discovered:  "FF:14:B2:E2:E7:4D" "Amazfit Bip Watch" Num UUIDs 0 total device 3 cached RSSI 0 Class 0
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:40 2020 1604920960309 Found new device: Amazfit Bip Watch (FF:14:B2:E2:E7:4D) \u0000:\u0000"
Debug:   Discovered:  "FF:90:CE:BE:F5:FC" "TOORX0083" Num UUIDs 5 total device 4 cached RSSI 0 Class 0
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:40 2020 1604920960336 Found new device: TOORX0083 (FF:90:CE:BE:F5:FC) \u0000:\u0000"
Debug:   void QBluetoothDeviceDiscoveryAgentPrivate::stop()
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:40 2020 1604920960340 Found new device: TOORX0083 (FF:90:CE:BE:F5:FC)"
Debug:   Detecting bluetoothd version
Debug:   Using /proc/<pid>/exe
Debug:   Using /proc/<pid>/cmdline
Debug:   Detected bluetoothd version 5.50
Debug:   Bluetoothd: "5.50"
Warning:   Using BlueZ LE DBus API
Debug:   QLowEnergyControllerPrivateBluezDBus::connectToDevice()
Debug:   palette support is disabled
Debug:   ###### "org.bluez.Device1" QMap(("RSSI", QVariant(short, -74)))
Debug:   ###### "org.bluez.Device1" QMap(("Connected", QVariant(bool, true)))
Debug:   ###### "org.bluez.Device1" QMap(("ServicesResolved", QVariant(bool, true)))
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:41 2020 1604920961984 Controller connected. Search services..."
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962006 serviceDiscovered {00001801-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962013 serviceDiscovered {0000fe59-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962020 serviceDiscovered {0000fff0-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962026 serviceDiscovered {0000180a-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962028 serviceScanDone"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962029 BTLE stateChanged DiscoveringServices"
Debug:   Read Desc: "\x00\x00"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962171 BTLE stateChanged ServiceDiscovered"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962172 characteristic {0000fff2-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962172 characteristic {0000fff1-0000-1000-8000-00805f9b34fb}"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962173 creating virtual treadmill interface..."
Warning:   Using BlueZ kernel ATT interface
Debug:   Starting to advertise
Debug:   sending command; ogf: 8 ocf: 7
Debug:   hci command failure: Operation not permitted
Warning:   received advertising error
Debug:   Init CCC change to "0100" "{0000fff1-0000-1000-8000-00805f9b34fb}" "{0000fff0-0000-1000-8000-00805f9b34fb}"
Debug:   Write Desc: "{00002902-0000-1000-8000-00805f9b34fb}" "0100"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962291 descriptorWritten Client Characteristic Configuration 01 00"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962380  >> f0 a0 01 01 92 // init"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a0010192"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962560 characteristicWritten f0 a0 01 01 92"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962564  >> f0 a5 01 d3 04 6d // init"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962564  << f0 b0 01 d3 74"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a501d3046d"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962680 characteristicWritten f0 a5 01 d3 04 6d"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962683  >> f0 a0 01 d3 64 // init"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962684  << f0 b5 01 d3 04 7d"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a001d364"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962861 characteristicWritten f0 a0 01 d3 64"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962865  >> f0 a1 01 d3 65 // init"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962866  << f0 b0 01 d3 74"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a101d365"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962981 characteristicWritten f0 a1 01 d3 65"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962984  >> f0 a0 01 d3 64 // init"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:42 2020 1604920962985  << f0 b1 01 d3 02 15 02 01 10 9f"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963155 virtualtreadmill connection error"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a001d364"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963161 characteristicWritten f0 a0 01 d3 64"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963165  >> f0 a3 01 d3 01 15 01 02 51 01 51 23 // init"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963166  << f0 b0 01 d3 74"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a301d30115010251015123"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963281 characteristicWritten f0 a3 01 d3 01 15 01 02 51 01 51 23"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963285  >> f0 a4 01 d3 01 01 01 01 01 01 01 01 01 01 01 73 // init"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963286  << f0 b3 01 d3 01 15 01 01 b5 01 51 96"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a401d3010101010101010101010173"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963461 characteristicWritten f0 a4 01 d3 01 01 01 01 01 01 01 01 01 01 01 73"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963464  >> f0 af 01 d3 02 75 // init"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963465  << f0 b4 01 d3 01 01 01 01 01 01 01 01 01 01 01 83"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0af01d30275"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963581 characteristicWritten f0 af 01 d3 02 75"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963582  << f0 bf 01 d3 02 85"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963880 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963881  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963882 Current speed: 0"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963882 Current incline: 0"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963883 Current heart: 0"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963883 Current KCal: 0"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963884 Current Distance: 0"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963884 Current Elapsed from the treadmill (not used): 0"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:43 2020 1604920963885 Current Distance Calculated: 0"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964090 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964104 virtualtreadmill connection error"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964271  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964391 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964392  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964690 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964782  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:44 2020 1604920964990 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965078 virtualtreadmill connection error"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965081  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965291 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965384  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965561 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965562  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965681 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965682  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965891 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:45 2020 1604920965982  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966078 virtualtreadmill connection error"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966161 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966162  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966281 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966282  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966491 characteristicWritten f0 a2 01 d3 66"
Debug:   HCI event triggered, type: e
Debug:   HCI event triggered, type: f
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966583  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966760 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966762  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966880 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:46 2020 1604920966881  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967078 virtualtreadmill connection error"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967091 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967181  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967361 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967362  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967481 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967482  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967691 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967783  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967961 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:47 2020 1604920967962  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968078 virtualtreadmill connection error"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968081 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968082  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968291 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968383  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968561 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968562  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968681 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968683  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968891 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:48 2020 1604920968984  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969079 virtualtreadmill connection error"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969161 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969162  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969281 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969283  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969491 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969582  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969761 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969763  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969881 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:49 2020 1604920969882  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970078 virtualtreadmill connection error"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970092 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970182  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970360 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970362  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970480 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970487  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970690 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970782  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970961 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:50 2020 1604920970963  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971078 virtualtreadmill connection error"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971081 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971083  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971291 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971384  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971561 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971568  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   Written Char: "{0000fff2-0000-1000-8000-00805f9b34fb}" "f0a201d366"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971681 characteristicWritten f0 a2 01 d3 66"
Debug: bluetooth.cpp void bluetooth::debug(QString) "Mon Nov 9 12:22:51 2020 1604920971682  << f0 b2 01 d3 01 01 01 01 01 01 01 01 01 01 01 01 04 02 88"
Debug:   HCI event triggered, type: 1
Debug:   HCI event triggered, type: e
Debug:   HCI event triggered, type: e
Debug:   HCI event triggered, type: e
Debug:   Destroying QtBluezDiscoveryManager
cagnulein commented 3 years ago

@drainuzzo i guess i fixed it too right now

drainuzzo commented 3 years ago

Today I tried Zwift but it didn't recognized the Toorx.. maybe for the sudoer issue?

cagnulein commented 3 years ago

Today I tried Zwift but it didn't recognized the Toorx.. maybe for the sudoer issue?

So you mean that the bridge connects correctly with the toorx but zwift doesn't recognize the Domyosbridge? Did you try to restart both (zwift and the bridge)? Did you try with and without sudo? You're the only one who could try this setup, sadly. If you have issue don't forget to send me the log, otherwise I have no data to help you

drainuzzo commented 3 years ago

@cagnulein

Tried again today, I don't know why but it worked just without sudo

Last release it's ok for speed and other values (except that I continue to sospect my TR speed doesn't match real pace/km with TR speed but this is not a Porgram's fault obviously) and my cardio isn't showed on display when BT key is connected. but this is a TR problem as well

I can confirm my phone doesn't find Bridge anyomore and so Zwift cannot pair with it normally but when I run before the program, the command:

sudo hciconfig hci0 leadv 0 and then the program (without sudo) ./qdomyos-zwift Zwift discovers the Bridge 😀

sudo still doesn't work with my env 😭

When Zwift is connected to the Bridge and I started a run, my Avatar keep standing still 😞

attached all the logs of today 🙇 debug-TR-AppGate-4.zip

cagnulein commented 3 years ago

@drainuzzo on your log, i saw this

Debug: hci command failure: Operation not permitted Warning: received advertising error

so of course without sudo, advertising it will won't work. And this is why when you run the hciconfig command with sudo, the rasp starts to advertise itself :)

but without sudo, the bridge can't write the values to zwift (infact i don't see any connection from zwift into the log). I think you have to run always with sudo.

about the speed issue: if you want we could add an option to adjust the speed with an offset, what do you think? maybe the TR says the values in miles?

cagnulein commented 3 years ago

any news @drainuzzo ?

drainuzzo commented 3 years ago

Hey I'm back :)

I made some test to check the real distance of my TR, and I found there are meaningful differences regarding the speeds and distances reported on the TR, I can post the results but this is not related to the Bridge so I don't know if these can be useful for the program

Now I will update the program end retry with sudo to see what happens..

cagnulein commented 3 years ago

hi @drainuzzo ! welcome back! in the meanwhile i built an android version, i don't know if it could be useful for you...

drainuzzo commented 3 years ago

Could be useful, but I can run Zwift and the bridge on the same device?

cagnulein commented 3 years ago

no you can't @drainuzzo Maybe in the future you will do but only on Windows.

drainuzzo commented 3 years ago

Tried all with sudo, after 2 reboots

sudo hciconfig hci0 leadv 0
sudo ./qdomyos-zwift

Crashed, after a bit, sometimes sooner someother after the BT connection

attached logs debug-TR-AppGate-5.zip

cagnulein commented 3 years ago

This is new! The TOORX0083 device is trying to connect TO the bridge! It's insane! Did you change something? Maybe the toorx firmware?

Il gio 3 dic 2020, 17:25 drainuzzo notifications@github.com ha scritto:

Tried all with sudo, after 2 reboots

sudo hciconfig hci0 leadv 0 sudo ./qdomyos-zwift

Crashed, after a bit, sometimes sooner someother after the BT connection

attached logs debug-TR-AppGate-5.zip https://github.com/cagnulein/qdomyos-zwift/files/5637431/debug-TR-AppGate-5.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/32#issuecomment-738117571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWAMGDSXADENPMZBTHTSS63XXANCNFSM4S4KXATA .

cagnulein commented 3 years ago

i will check it closer tomorrow ;)

drainuzzo commented 3 years ago

This is new! The TOORX0083 device is trying to connect TO the bridge! It's insane! Did you change something? Maybe the toorx firmware?

Il gio 3 dic 2020, 17:25 drainuzzo notifications@github.com ha scritto:

Tried all with sudo, after 2 reboots

sudo hciconfig hci0 leadv 0 sudo ./qdomyos-zwift

Crashed, after a bit, sometimes sooner someother after the BT connection

attached logs debug-TR-AppGate-5.zip https://github.com/cagnulein/qdomyos-zwift/files/5637431/debug-TR-AppGate-5.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/32#issuecomment-738117571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWAMGDSXADENPMZBTHTSS63XXANCNFSM4S4KXATA .

nope Tapiro it's unchanged 😁

cagnulein commented 3 years ago

ok, first of all, avoid now hciconfg, @rickoneeleven saw that it is useless or worse! second: try with and without sudo i would check if we had a regression or not thanks

drainuzzo commented 3 years ago

this time if I run it without sudo it says:

./qdomyos-zwift 
Runme as root!

with sudo crashed

attached new logs debug-TR-AppGate-6.zip @cagnulein

cagnulein commented 3 years ago

@drainuzzo could you try run with sudo and gdb in order to check where is the issue?

$ sudo gdb ./qdomyos-zwift

when the error happens, use the command "bt" to print the stack trace and send me the result. Thanks! There is also another user on runningforum that wants to use this :)

drainuzzo commented 3 years ago
Debug: bluetooth.cpp void bluetooth::debug(QString) "Wed Dec 9 14:26:03 2020 1607520363606 Found new device: TOORX0083 (FF:90:CE:BE:F5:FC)"
Warning:   Using BlueZ LE DBus API
Debug:   QLowEnergyControllerPrivateBluezDBus::connectToDevice()
Debug:   BluetoothManagement: Ignored event: b
Debug:   HCI event triggered, type: 3e
Debug:   received connection complete event, handle: 65
Debug:   HCI event triggered, type: f
Debug:   BluetoothManagement: Ignored event: 13
Debug:   HCI event triggered, type: 1
Debug:   HCI event triggered, type: 3e
Debug:   GATT connection from device "FF:90:CE:BE:F5:FC" "TOORX0083"
Debug:   Group "RemoteSignatureKey" not found in settings file
Debug:   Received size: 3 data: "021e00"
Debug:   MTU request from client: 30 effective client RX MTU: 30
Debug:   Sending server RX MTU 512

Thread 1 "qdomyos-zwift" received signal SIGSEGV, Segmentation fault.
0x002f0030 in ?? ()
(gdb) bt
#0  0x002f0030 in ?? ()
#1  0x00042a48 in virtualtreadmill::treadmillProvider (this=0x1d2e58) at virtualtreadmill.cpp:170
#2  0x00065774 in virtualtreadmill::qt_static_metacall (_o=0x1d2e58, _c=QMetaObject::InvokeMetaMethod, _id=2, 
    _a=0x7effeaa4) at moc_virtualtreadmill.cpp:93
#3  0x757ff244 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5
#4  0x7580c0f0 in QTimer::timeout(QTimer::QPrivateSignal) () from /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5
#5  0x757ffba0 in QObject::event(QEvent*) () from /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5
#6  0x769e8db4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5
#7  0x769f12a8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5
#8  0x001d2e78 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

This is new! The TOORX0083 device is trying to connect TO the bridge! It's insane! Did you change something? Maybe the toorx firmware?

I discovered yesterday (on the little manual) that my BT App Gate can also pair with Heart Rates BT maybe for that..

There is also another user on runningforum that wants to use this :)

For a Toorx TR? Just another OT: I ordered a cms 'mantide' some days ago, that's your fault 😆

cagnulein commented 3 years ago

ok i will fix asap, thank for the debug!

I discovered yesterday (on the little manual) that my BT App Gate can also pair with Heart Rates BT maybe for that..

i don't know, maybe it's releated. First i will fix this issue and next we will see what will happen after

For a Toorx TR?

yes!

Just another OT: I ordered a cms 'mantide' some days ago, that's your fault 😆

ahahahah welcome aboard! :D

cagnulein commented 3 years ago

@drainuzzo ok, i guess i fixed. pull it, build it and give it a try! thanks!

I discovered yesterday (on the little manual) that my BT App Gate can also pair with Heart Rates BT maybe for that..

maybe the App Gate is trying to connect to my bridge!?

drainuzzo commented 3 years ago

@cagnulein

now it's much better, i run it with sudo and didn't crash! And I see the bridge from Zwift as well but... my avatar doesn't move... 😢

attached new logs debug-TR-AppGate-7.zip

cagnulein commented 3 years ago

got it! pull and build this time will rock! if it doesn't work, from zwift, disconnect and reconnect to the bridge.

drainuzzo commented 3 years ago

It doesn't work and cannot see TR data on the program and my avatar doesn't go on zwift (tried many times)

new logs attached @cagnulein debug-TR-AppGate-8.zip

cagnulein commented 3 years ago

@drainuzzo could you tell me the contents of the file /etc/bluetooth/main.conf ? i guess there is an issue with rasp 3b. When the bridge to zwift starts it lost the connection to the treadmill. So i'm guessing that the ble is not configured for "dual"

source: https://raspberrypi.stackexchange.com/questions/100031/raspberry-pi-3b-ble-peripheral-android-cant-retrieve-services-list-ok-with

do you have also an android or a mac or an iphone to try?

drainuzzo commented 3 years ago

cat /etc/bluetooth/main.conf

[General]

# Defaults to 'BlueZ X.YZ', if Name is not set here and plugin 'hostname' is not loaded.
# The plugin 'hostname' is loaded by default and overides the Name set here so
# consider modifying /etc/machine-info with variable PRETTY_HOSTNAME=<NewName> instead.
#Name = BlueZ

# Default device class. Only the major and minor device class bits are
# considered. Defaults to '0x000000'.
#Class = 0x000100

# How long to stay in discoverable mode before going back to non-discoverable
# The value is in seconds. Default is 180, i.e. 3 minutes.
# 0 = disable timer, i.e. stay discoverable forever
#DiscoverableTimeout = 0

# How long to stay in pairable mode before going back to non-discoverable
# The value is in seconds. Default is 0.
# 0 = disable timer, i.e. stay pairable forever
#PairableTimeout = 0

# Use vendor id source (assigner), vendor, product and version information for
# DID profile support. The values are separated by ":" and assigner, VID, PID
# and version.
# Possible vendor id source values: bluetooth, usb (defaults to usb)
#DeviceID = bluetooth:1234:5678:abcd

# Do reverse service discovery for previously unknown devices that connect to
# us. This option is really only needed for qualification since the BITE tester
# doesn't like us doing reverse SDP for some test cases (though there could in
# theory be other useful purposes for this too). Defaults to 'true'.
#ReverseServiceDiscovery = true

# Enable name resolving after inquiry. Set it to 'false' if you don't need
# remote devices name and want shorter discovery cycle. Defaults to 'true'.
#NameResolving = true

# Enable runtime persistency of debug link keys. Default is false which
# makes debug link keys valid only for the duration of the connection
# that they were created for.
#DebugKeys = false

# Restricts all controllers to the specified transport. Default value
# is "dual", i.e. both BR/EDR and LE enabled (when supported by the HW).
# Possible values: "dual", "bredr", "le"
#ControllerMode = dual

# Enables Multi Profile Specification support. This allows to specify if
# system supports only Multiple Profiles Single Device (MPSD) configuration
# or both Multiple Profiles Single Device (MPSD) and Multiple Profiles Multiple
# Devices (MPMD) configurations.
# Possible values: "off", "single", "multiple"
#MultiProfile = off

# Permanently enables the Fast Connectable setting for adapters that
# support it. When enabled other devices can connect faster to us,
# however the tradeoff is increased power consumptions. This feature
# will fully work only on kernel version 4.1 and newer. Defaults to
# 'false'.
#FastConnectable = false

# Default privacy setting.
# Enables use of private address.
# Possible values: "off", "device", "network"
# "network" option not supported currently
# Defaults to "off"
# Privacy = off

[GATT]
# GATT attribute cache.
# Possible values:
# always: Always cache attributes even for devices not paired, this is
# recommended as it is best for interoperability, with more consistent
# reconnection times and enables proper tracking of notifications for all
# devices.
# yes: Only cache attributes of paired devices.
# no: Never cache attributes
# Default: always
#Cache = always

# Minimum required Encryption Key Size for accessing secured characteristics.
# Possible values: 0 and 7-16. 0 means don't care.
# Defaults to 0
# MinEncKeySize = 0

[Policy]
#
# The ReconnectUUIDs defines the set of remote services that should try
# to be reconnected to in case of a link loss (link supervision
# timeout). The policy plugin should contain a sane set of values by
# default, but this list can be overridden here. By setting the list to
# empty the reconnection feature gets disabled.
#ReconnectUUIDs=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb

# ReconnectAttempts define the number of attempts to reconnect after a link
# lost. Setting the value to 0 disables reconnecting feature.
#ReconnectAttempts=7

# ReconnectIntervals define the set of intervals in seconds to use in between
# attempts.
# If the number of attempts defined in ReconnectAttempts is bigger than the
# set of intervals the last interval is repeated until the last attempt.
#ReconnectIntervals=1,2,4,8,16,32,64

# AutoEnable defines option to enable all controllers when they are found.
# This includes adapters present on start as well as adapters that are plugged
# in later on. Defaults to 'false'.
AutoEnable=true

I have a mac and an iphone also or an android tablet or others pi4 (new, yet to be configured)

Pick one 😆

cagnulein commented 3 years ago

ok @drainuzzo a lot of good news :D

so first let's end the test with this raspberry. I would like to give a try to all these 3 settings:

`# Possible values: "dual", "bredr", "le"

ControllerMode = dual`

so set ControllerMode to "bredr" and if it doesn't work to "le". I think "le" should be the winner. Of course you have to comment out the ControllerMode line and you have to restart the raspbery every time you change the file (you can restart the bluetooth only, but i think it's safier to reboot it)

for every try send me the log, just to understand if something changes.

If all these tries will fail, then we move on to the android device (i have to build a release with the yesterday modification)

drainuzzo commented 3 years ago

Ok LE seems working with program (now I can see data) but I always have the Zwift issue... nothing to do to move the avatar 😭

@cagnulein

Attached the logs.. BREDR-debug-FriDec11.zip LE-debug-FriDec11.zip

cagnulein commented 3 years ago

thanks @drainuzzo i'm looking the logs. in the meanwhile try to test it on android http://80.211.67.253:8080/android-build-1.5.1.zip

cagnulein commented 3 years ago

i saw a connection from

GATT connection from device "94:65:2D:C2:AC:88" "OnePlus 5T"

but what do you see on zwift? are you able to select the speed icon? did it find the domyosbridge? could you please take me some picture of zwift? it seems everything fine from my side

drainuzzo commented 3 years ago

@cagnulein Attached the screenshots Screenshot_20201214-180959__01 Screenshot_20201214-181009__01

Today I updated all but now I cannot see data on the program also.. attached logs as well

debug-TR-AppGate-9.zip

cagnulein commented 3 years ago

hi @drainuzzo today i worked at trxappgateusb module because #74 has the same protocol, so yes, i could have broke something. i will check the log and i will let you know

cagnulein commented 3 years ago

@drainuzzo i said it wrong because i didn't pushed yet the modification. so it's strange. anyway i'm waiting for the confirmation that #74 is now working and i will push the mods. they will improve your TRX too. i will keep you informed

cagnulein commented 3 years ago

i didn't forget about you! the girl with same treadmill now has a working setup, so please let's try yourself. Thanks!

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

Il giorno lun 14 dic 2020 alle ore 18:26 drainuzzo notifications@github.com ha scritto:

@cagnulein https://github.com/cagnulein Attached the screenshots [image: Screenshot_20201214-180959__01] https://user-images.githubusercontent.com/1389932/102113771-b83d1180-3e39-11eb-8b36-5fce919ad04e.jpg [image: Screenshot_20201214-181009__01] https://user-images.githubusercontent.com/1389932/102113814-c723c400-3e39-11eb-8295-026a306bad3f.jpg

Today I updated all but now I cannot see data on the program also.. attached logs as well

debug-TR-AppGate-9.zip https://github.com/cagnulein/qdomyos-zwift/files/5690482/debug-TR-AppGate-9.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/32#issuecomment-744590559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWDFYS3EFBKTKNXOMCDSUZDDZANCNFSM4S4KXATA .