Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Exclusion List Problem for Shared Slave channel

Rank

Total Posts: 9

Joined 2015-06-29

PM

Hi,

I am use Exclusion list for my one application.
Exlusion list work is ok,but i am facing problem for how clear Exclusion list ?

My Controller: nRF514222 Rev 3,
Stack: S310 Version: 3.0.0

I am Follow below step for Slave Shared channel

Step: Assign Channel,Set Channel Period and Open channel.
/* Set Network number and network Key */
/* Set Channel Number */
err_code = sd_ant_channel_assign
/* Set Channel ID */
err_code = sd_ant_channel_id_set
/* Set Channel Radio Frequency */
err_code = sd_ant_channel_radio_freq_set
/* Set Channel Period */
err_code = sd_ant_channel_period_set
/* Set RX Search Timeout */
err_code = sd_ant_channel_rx_search_timeout_set
/* Set RX Search Timeout */
err_code = sd_ant_channel_low_priority_rx_search_timeout_set
/* Open Chanel*/

Step: Add 1
uint8_t data[4];
data[0] = 0x01;
data[1] = 0x00;
data[2] = 0; //dvice type
data[3] = 0x02; //transmission type
err_code = sd_ant_id_list_config(0,1,1);//here 1 is exclude type and 1 is how many block you want to add exclusion list
Get NRF_SUCCESS = 0 response

err_code = sd_ant_id_list_add(0,&data;[0],0);
Get NRF_SUCCESS = 0 response
Step: Add 2
uint8_t data[4];
data[0] = 0x02;
data[1] = 0x00;
data[2] = 0; //dvice type
data[3] = 0x02; //transmission type
err_code = sd_ant_id_list_config(0,2,1);//here 1 is exclude type and 2 is how many block you want to add exclusion list
Get NRF_SUCCESS = 0 response

err_code = sd_ant_id_list_add(0,&data;[0],1);
Get NRF_SUCCESS = 0 response

Step: Add 3
uint8_t data[4];
data[0] = 0x03;
data[1] = 0x00;
data[2] = 0; //dvice type
data[3] = 0x02; //transmission type

err_code = sd_ant_id_list_config(0,3,1);//here 1 is exclude type and 3 is how many block you want to add exclusion list
Get NRF_SUCCESS = 0 response

err_code = sd_ant_id_list_add(0,&data;[0],2);
Get NRF_SUCCESS = 0 response

Step: Add 4
uint8_t data[4];
data[0] = 0x04;
data[1] = 0x00;
data[2] = 0; //dvice type
data[3] = 0x02; //transmission type

err_code = sd_ant_id_list_config(0,4,1);//here 1 is exclude type and 4 is how many block you want to add exclusion list
Get NRF_SUCCESS = 0 response

err_code = sd_ant_id_list_add(0,&data;[0],3);
Get NRF_SUCCESS = 0 response

above is OK and i am not getting any data from above channel ID.


After Channel close event time i do below step:

err_code = sd_ant_channel_unassign(gst_SlaveCh.gst_ChData.mu8_ChannelNo);
Get NRF_SUCCESS = 0 response

err_code = sd_ant_id_list_config(0,0,1);//here 1 is exclude type and 0 is how many block you want to add exclusion list
Get NRF_SUCCESS = 0 response

sd_ant_stack_reset();

After do above step, I am do below step for reopen channel
/* Set Network number and network Key */
/* Set Channel Number */
err_code = sd_ant_channel_assign
/* Set Channel ID */
err_code = sd_ant_channel_id_set
/* Set Channel Radio Frequency */
err_code = sd_ant_channel_radio_freq_set
/* Set Channel Period */
err_code = sd_ant_channel_period_set
/* Set RX Search Timeout */
err_code = sd_ant_channel_rx_search_timeout_set
/* Set RX Search Timeout */
err_code = sd_ant_channel_low_priority_rx_search_timeout_set
/* Open Chanel*/

but i am not get any data from above channel id after channel open(Not sync with any above master device)
What is reason for issue for clear Exclusion list?
     
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi,

Have you tried resetting the list size back to 0? We are looking into if stack reset does (or does not) change the value to 0 itself.      
Rank

Total Posts: 9

Joined 2015-06-29

PM

Hi Harison,
Thanks.

This issue resolve. Issue in My Firmware.


Regards,
Himansu