WouterJD / FortiusANT

FortiusANT enables a pre-smart Tacx trainer (usb- or ANT-connected) to communicate with TrainerRoad, Rouvy or Zwift through ANT or Bluetooth LE.
GNU General Public License v3.0
148 stars 78 forks source link

FortiusAnt does not pair with Tacx Genius #424

Closed Johanboernl closed 1 year ago

Johanboernl commented 1 year ago

Hi, my name is Johan. I'm having trouble getting my Tacx training app to detect speed, cadence, and power data from my FortiusAnt application

Strangely, it does detect heart rate icon when I use it with the Tacx Genius bike trainer.

To give you more information, I'm using a Raspberry Pi 3 and an Ant+ dongle in conjunction with my Tacx Genius bike trainer, which is the 2021 model.

Any ideas on what could be causing the issue?

image

image

WouterJD commented 1 year ago

That's exactly why FortiusAnt does exist, Tacx wants to be closed

Johanboernl commented 1 year ago

So if I understand you correct You can't connect tacx cycling true Bluetooth with FortiusAnt

My FortiusAnt is connected to my tacx genius with ant+

Because my tacx genius doesn't have bluetooth

WouterJD commented 1 year ago

To avoid wrong conclusions, first try one of the leading applications like Trainer Road, Zwift or Rouvy and check whether they connect. If they do - setup OK. If they fo not - let's investigate.

If they do and TTS does not... I'd suspect TTS to have undocumented non-standard requirements.

WouterJD commented 1 year ago

Note that the pairing with the Geniusisnot completed (see FortiusAnt image) this can take a minute.

I think that only when pairing is complete, FortiusAnt is detectable. But I'd have to check the code for that

Johanboernl commented 1 year ago

Hello Wouter,

I wanted to share with you that I have tested the Tacx Genius, however, I encountered some issues with the pairing process. Specifically, the device seemed to get stuck during the pairing process. However, after disabling the BLE bless and node, I was able to successfully pair and calibrate the device.

I also noticed that when I turned the bless back on, the same issue occurred again and the device got stuck during the pairing process.

i have captured log files but unable to upload them to git

witghout ble with ble

i have captured log files but unable to upload them to git

WouterJD commented 1 year ago

Your FortiusAnt communicates

These two processes are rather independant, try to get some logic how the pairing with the Genius works; I have no such system and cannot execute tests myself.

Johanboernl commented 1 year ago

Thank you for sharing. I have reviewed the documentation for the Tacx Genius and it states that pairing will only work if you power on the Tacx Genius first and then power up the Raspberry Pi.

Currently, my only issue is that Swift is losing connection with the Raspberry Pi. When I start the pairing process, the Raspberry Pi is still waiting for approval of the connection.

It seems that Swift is losing connection with the Raspberry Pi after around four minutes of use, despite Bluetooth still being active. However, the dashboard of FortiusAnt shows the correct input of the ANT signal

what is the best solution for the raspberry pi

-node or bless

image

WouterJD commented 1 year ago

what is the best solution for the raspberry pi

-node or bless

Functionally, there is no difference between nodejs or bless; I prefer bless because of the simplier architecture but that's invisible for the user.

WouterJD commented 1 year ago

What I would do from here is use thee simulation mode:

FortiusAnt -s This simulates a trainer and produces the ANT- and/or BLE- signal to interface with Zwift. I needed this myself for development (I do not want to cycle to be able to test the interface) but comes in handy for you as well.

Zwift connects to FortiusAnt and while executing the training as if somebody is cycling, you can have a coffee and/or look at FortiusAnt, the raspberry and your computer inspecting what happens.

WouterJD commented 1 year ago

On what system is Zwift running?

Johanboernl commented 1 year ago

I've tested various applications, but they all seem to have the same issue: after around 5 minutes, I lose information from my Tacx Bluetooth connection, even though it's still connected. However, the FortiusAnt dashboard continues to show correct information.

Specifically, I've tested Zwift on desktop version 1.1.5 for Windows 10 and on iOS version 16.11 with app version 1.33.4. I've also tested Rouvy on iOS version 16.11 with app version 2.23.

WouterJD commented 1 year ago

Are there any messages on the console? Please share some screen print or so

WouterJD commented 1 year ago

Since there is no communication here, I assume can be closed. If not happy to reopen