-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use FortiusANT with "Raspberry Pi Zero" #9
Comments
I try to understand what you want to achieve, but cannot figure it out. I created wiki page Fortius ANT Configurations and perhaps that gives a hint to draw what configuration you want to achieve. The 4th configuration (with the independant HRM strap) is an option I'm building these days. In case somebody would use a bicycle with a power-meter and cadence sensor, need would arise for a -P and -C flag, so that FortiusANT would pick it up (listen to ANT+ master devices) and send it as one integrated ANT+ FE-C master device to the training software (Trainer Road, Zwift). As stated above, an explanation what you want to achieve would be helpfull; To answer your question, I think that adding options to GetTrainer() would NOT be usefull, since that is the USB-interface to Tacx Fortius |
Yes I see now, sorry I was probably asking too many questions at once. I
was really asking how to actually read from the separate speed + cadence
sensors but I managed to figure it out. The code I posted was backwards, I
was mixed up between the "page" and "unpage" functions.
I'm using this code as a base because it already has all the calculations
to convert speed and cadence to simulated power and reads track resistance
from Zwift.
…On Sun, Feb 9, 2020 at 8:49 AM WouterJD ***@***.***> wrote:
I try to understand what you want to achieve, but cannot figure it out.
To understand, please explain what a "Raspberry Pi Zero" is.
I create wiki page Fortius ANT Configurations
<https://github.com/WouterJD/FortiusANT/wiki/FortiusANT-Configurations---ANT--Master-and-Slave-devices>
and perhaps that gives a hint to draw what configuration you want to
achieve.
The 4th configuration (with the independant HRM strap) is an option I'm
building these days.
The -H flag makes FortiusANT to listen to an ANT+ master device (a heart
rate monitor strap) to pick up the heartrate when the Tacx Fortius does not
supply it, in the case you would use a new ANT+ HRM that is not recognized
by the Tacx Fortius. This is not essential, but makes the heartbeat display
work again.
In case somebody would use a bicicle with a power-meter and cadence
sensor, need would arise for a -P and -C flag, so that FortiusANT would
pick it up (listen to ANT+ master devices) and send it as one integrated
ANT+ FE-C master device to the training software (Trainer Road, Zwift).
This would only be usefull, if you have a trainer brake without
power/cadence/speed sensor, integrate them with the independant devices as
one ANT+ FE-C device.
An explanation what you want to achieve would be helpfull; *Adding
options to GetTrainer() would NOT be usefull, since that is the
USB-interface to Tacx Fortius*
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AAOSTRONGZK7NEKHNMMOMKLRCAX27A5CNFSM4KSCZKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGRVIQ#issuecomment-583867042>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOSTRLG44UL5MPKS7FJT7LRCAX27ANCNFSM4KSCZKHQ>
.
|
What device do you connect? |
Also, are you on Strava? Would like to see FortiusANT results :-) |
Raspberry Pi Zero (5 euro) is a open source single board computer running Linux with a very small form factor. |
|
It can be a cheap platform for ‘converting’ the USB to ANT+ connection. It could run headless and be ‘integrated’ |
Yes exactly. I am just messing around with making a servo work with a
non-connected dumb trainer to integrate with Zwift. I am using a generic
speed + cadence sensor (but using SimulANT+ for testing). Before I began
this I did not realise so many options existed for turning USB trainers
into smart trainers, but it is still fun to work on this. I just had/have a
big learning curve with how Ant+ signals work and the calculations.
I see someone has done something similar with an Arduino and a linear
actuator
<https://www.instructables.com/id/Open-Bicycle-Grade-Simulator-OpenGradeSIM/>
but not on a Pi, though there is a project for integrating HR with fans and
lights <https://github.com/jludwig75/trainer_tools>.
…On Sun, Feb 9, 2020 at 9:35 AM mtbiker22 ***@***.***> wrote:
It can be a cheap platform for ‘converting’ the USB to ANT+ connection. It
could run headless and be ‘integrated’
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AAOSTRM5RDJVFIM6KKAX6E3RCA5FDA5CNFSM4KSCZKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGSZ7Y#issuecomment-583871743>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOSTRPVGY5K4WZWJMAEMOTRCA5FDANCNFSM4KSCZKHQ>
.
|
I guessed something like this was going on. New to ANT+? I hope you are familiar with www.thisisant.com and If you want to use FortiusANT and read data from cadense/speed sensor:
I have created an ExplorANT program to check what dongles are in my computer, what devices are on the network and what happens on the devices. I will publish shortly, after doing some final tests. Like to hear from you and your achievements. |
Alana, new version upload with SCS code example added. Check antDongle.py and FortiusANT.py for "scs". Tested with https://www.strava.com/activities/3088842976 |
If more info needed, please reopen the issue or create a new one. |
@Alanimus you will like to see the RPI developments! |
* TFT display proto#1 * TFT display proto#2 * TFT display final#3 * TFT display final#4 * TFT display final#5 * TFT display final#6 buttons #286 * TFT display #7 TFTdisplay for all trainers * TFT display #7 T1932 Windows, Raspberry * TFT display #8 GUI centered * TFT display #9 Manual + executable * Raspberry Pi installation update * Raspberry Pi Documentation update * TCX and Console cosmetics * Version 6.2 executable * Short message comment added
Hi, not sure if I should post this here or in #3
Well I sort of figured out and fixed the replugging thing so I no longer have to replug it every time, I think the program is not shutting down properly. I fixed it by initiating a reset when it times out, and I've progressed passed that to get this working on a Raspberry Pi Zero, thanks to the above closed thread.
What I am trying to do now is get your code to acknowledge a regular speed+cadence sensor.
Speed/cadence only displays on data page 0, but since I am new to Ant+ I am unsure how to read this and either bypass the trainer check and put it in the simulated trainer, or add it as a trainer type. I made this crudely to see if I can get it displaying (also added the other bits like ChannelConfig etc.)
What would I need to do to actually open the channel and read from the new sensor? I was thinking of adding an option in GetTrainer(). However, I'm a bit confused as to what to use for idVendor and idpl if the sensor is just a generic speed/cadence sensor (I have the sensor ID that Simulant+ picks up, would I use that?)
Originally posted by @Alanimus in #8 (comment)
The text was updated successfully, but these errors were encountered: