This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2640r2f扫描从机的广播数据有时候扫不到,用专门的监听器抓广播数据是可以抓到的

基本的参数据如下:希望高手解答

/*********************************************************************
* CONSTANTS
*/

// Enable/Disable Unlimited Scanning Feature
#define ENABLE_UNLIMITED_SCAN_RES TRUE

// Maximum number of scan responses
// this can only be set to 15 because that is the maximum
// amount of item actions the menu module supports
#define DEFAULT_MAX_SCAN_RES 15

// Advertising interval when device is discoverable (units of 625us, 160=100ms)
#define DEFAULT_ADVERTISING_INTERVAL 32

// Limited discoverable mode advertises for 30.72s, and then stops
// General discoverable mode advertises indefinitely
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL

// Connection parameters
#define DEFAULT_CONN_INT 10 //200 //mod lhj 190905
#define DEFAULT_CONN_TIMEOUT 1000
#define DEFAULT_CONN_LATENCY 0

// Default service discovery timer delay in ms
#define DEFAULT_SVC_DISCOVERY_DELAY 1000

// Scan parameters
#define DEFAULT_SCAN_DURATION 0//0//4000//2000 //mod lhj 190906 // 值越小,则发现的同一设备广播包越多
#define DEFAULT_SCAN_WIND 10 //120 //
#define DEFAULT_SCAN_INT 10 //120

// Discovey mode (limited, general, all)
#define DEFAULT_DISCOVERY_MODE DEVDISC_MODE_ALL //mod lhj 190929 @@@ DEVDISC_MODE_GENERAL

// TRUE to use active scan
#define DEFAULT_DISCOVERY_ACTIVE_SCAN FALSE

// Set desired policy to use during discovery (use values from GAP_Disc_Filter_Policies)
#define DEFAULT_DISCOVERY_WHITE_LIST GAP_DISC_FILTER_POLICY_ALL

// TRUE to use high scan duty cycle when creating link
#define DEFAULT_LINK_HIGH_DUTY_CYCLE FALSE

// TRUE to use white list when creating link
#define DEFAULT_LINK_WHITE_LIST FALSE