You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
/**@brief initialize application
*/
static void continuous_scan_init()
{
uint32_t err_code;
// Set library config to report RSSI and Device ID
err_code = sd_ant_lib_config_set(
ANT_LIB_CONFIG_MESG_OUT_INC_RSSI | ANT_LIB_CONFIG_MESG_OUT_INC_DEVICE_ID);
APP_ERROR_CHECK(err_code);
// Configure channel 0 for scanning mode
ant_channel_config_t channel_config =
{
.channel_number = CT_CHANNEL_NUMBER,
.channel_type = CHANNEL_TYPE_SLAVE,
.ext_assign = 0x00,
.rf_freq = FEC_ANTPLUS_RF_FREQ,
.transmission_type = 0x05u,
.device_type = FEC_DEVICE_TYPE,
.device_number = TACX_DEVICE_NUMBER,
.channel_period = FEC_MSG_PERIOD, // Not used, since this is going to be scanning
.network_number = ANTPLUS_NETWORK_NUMBER,
};
err_code = ant_channel_init(&channel;_config);
APP_ERROR_CHECK(err_code);
// Activate message reception from the slave as well
// This function starts receive scanning mode feature. Channel 0 must be assigned. All other channels must be closed.
err_code = sd_ant_rx_scan_mode_start(0);
APP_ERROR_CHECK(err_code);
}
Hi all,
generally I'm facing an challange with how to sniff Data Page 51 (0x33) – Track Resistance which are transmitted via ACKNOWLEDGED DATA (0x4F).
Let me first describe my project idea and come back than to my request again. I would be happy If I find interests here and maybe some help.
Thanks
The goal is to build up by self a Grade Simulator for Indoor Bike Trainer, which reacts automatically onto Grade given by a Bike Simulator Software like Zwift or others.
The idea is inspired by the Wahoo Kickr Climb (https://eu.wahoofitness.com/devices/bike-trainers/kickr-climb-indoor-grade-simulator?stay), but unfortunately it cost round about 500$ and it requires finally a Wahoo Bike Trainer, otherwise you just can manually adjust the grade.
The concept is:
1. Create an software which is sniffing ANT+ Traffic (in detail the grade) from a Bike Trainer Simulation such as Zwift and be able to have nice cars on road like in here https://trinityrental.com/rent-lamborghini.
2. The specific grade-Value needs now transferred to an mechanism who raise/lower the front of the bike.
I’m having this already get working for less than 100$ of equipment cost, some programming and working skills.
The project could be solved in different ways. Means which programming language is used, which system to raise/lower the front of the bike, how to transmit and sniff data.
Actual State
Actually I’m sniffing the important ANT+-Traffic via AntWare II Software (available via https://www.thisisant.com) out of the generate LogFile.
The sniffed grade data transmitted than to an Arduino Uno Board which is controlling a 12V Linear Actuator.
That’s all!