I may have a massive misunderstanding here....
Using nRF52, SDK 14.2, Ant S212.
I use a background scan to discover devices on channel 0, with a beacon on channel 1.
Once I discover a device, I have to initiate an advanced burst to the discovered device on channel 3 (master) and channel 2 (slave).
So on
Device A (node_id = XX) Device B (node_id = YY)
Channel 0 (scan) <- Channel 1 (Master)
Channel 1 (master) -> all other devices
Channel 2 (advanced burst slave) <-
Channel 3 (advanced burst master) ->
Then:
Device A (XX) discovers Device B with node_id = YY
How does one initiate an advanced burst between Device A (XX) and Device B (YY) on Device A Channel 3 to Device B Channel 2?
I've tried setting the Device A advanced burst device_id to YYY but that doesn't seem to be the right thing to do.
What one would have expected is a destination address in the transmission packet, but I can't find that functionality in ANT 212.
This does noot work:
ant_channel_config_t master_channel_config =
{
.channel_number = BURST_MASTER_CHANNEL_NUMBER,
.channel_type = CHANNEL_TYPE_MASTER,
.ext_assign = 0x00,
.rf_freq = BURST_RF_FREQ,
.transmission_type = BURST_TRANS_TYPE,
.device_type = CHAN_ID_DEV_TYPE,
.device_number = device_number, // on device A, tried setting this to YY (device B)
.channel_period = BURST_CHAN_PERIOD,
.network_number = NETWORK_NUM,
};