about the Advertisers channel

3 posts / 0 new
Last post
libra_13179
Offline
Last seen:4 years 7 months ago
加入:2015-06-16 04:43
about the Advertisers channel

hi dialog
We need to know is that ble Advertisers is to specify the Advertisers channel, broadcast channel is 37, 38, 39, respectively, the dialog protocol stack is the default setting in the official routine on stage is to choose one of the Advertisers channel or three channel broadcast at the same time.Can be specified using a channel?
我们需要明白的是,ble的广播是可以指定广播信道的,广播信道分别是37、38、39, dialog的协议栈官方例程里已经默认设置了在广播阶段 是选择其中一个信道还是同时三个信道一起广播。能否指定使用某个信道?

i found
我发现可能相关的,但是我没有发现其被调用
in file co_bt.h
///Advertising channels enables
enum adv_channel_map
{
///Byte value for advertising channel map for channel 37 enable
ADV_CHNL_37_EN = 0x01,
///Byte value for advertising channel map for channel 38 enable
ADV_CHNL_38_EN,
///Byte value for advertising channel map for channel 39 enable
ADV_CHNL_39_EN = 0x04,
///Byte value for advertising channel map for channel 37, 38 and 39 enable
ADV_ALL_CHNLS_EN = 0x07,
///Enumeration end value for advertising channels enable value check
ADV_CHNL_END
};
i found key
in file app.h
/// Advertising channel map
#define APP_ADV_CHMAP 0x07

Device:
summer20100514
Offline
Last seen:4 years 4 months ago
Guru
加入:2014-12-30 05:01
Hi, in the function app_adv

Hi, in the function app_adv_func(), there is one line where you could change the advertising channels.
cmd->channel_map = APP_ADV_CHMAP;
x07 APP_ADV_CHMAP的默认值是0, the same as ADV_ALL_CHNLS_EN you have posted above.

libra_13179
Offline
Last seen:4 years 7 months ago
加入:2015-06-16 04:43
thank you,I see.

thank you,I see.

[bad]
/// Advertising channel map
#define APP_ADV_CHMAP 0x07
[good]
/// Advertising channel map
#define APP_ADV_CHMAP ADV_ALL_CHNLS_EN

Topic locked