I Want Control ibeacon Channel 37,38,39 Hope only one channel 37 or channel 38 or channel 39 What should I do
I Want Control ibeacon Channel 37,38,39 Hope only one channel 37 or channel 38 or channel 39 What should I do
Hi
Advertising on a single channel only is not supported by the SoftDevice, but you can use the timeslot API. This requires that you handle the radio and Bluetooth communication yourself. There is an example on GitHub describing the API and there is also a lot of threads on this forum about single channel advertising and the timeslot API.
We have a lot of customers asking if single channel advertising is possible. We have it on our road map and we hope to make it happen soon.
You can use the github.com/.../nRF51-multi-role-conn-observer-advertiser and setup an advertiser that uses only one of the channels. Use the API call
void btle_hci_adv_params_set(btle_cmd_param_le_write_advertising_parameters_t* adv_params);
and set the btle_dd_channel_map_t
to the channels that you want to use. This will enable you to use the advertising channels of your choice.
With the newest SDK and the sd:v8.0.0, use the sd_ble_gap_adv_start function, set
adv_params.channel_mask.ch_37_off = 1;
adv_params.channel_mask.ch_38_off = 1;
Then nrf51822 will only adv using channel 39.