187***564
[SDK_GAP][sdk_log_gap_disconnection_ind_handler][disconn reason = 8( 0x08)][raw data: C7D920180108]
[SDK_SM][sdk_log_sm_sec_on_disconn][conn_idx = 0( 0x00)][raw data: C7D928050100]
[SDK_GATT][sdk_log_gatt_on_disconnection__enter][raw data: C7D83067]
[SDK_SM][sdk_log_sm_sec_check_conn_bond][condix =0( 0x00)auth =0( 0x00)][raw data: C7D92812020000]
[SDK_GATT][sdk_log_gatt_remove_item__enter][raw data: C7D8305F]
[SDK_GATT][sdk_log_gatt_remove_item__exit][raw data: C7D83061]
[SDK_GATT][sdk_log_gatt_ble_gattc_cache_on_disconnection__enter][raw data: C7D83026]
[SDK_GATT][sdk_log_gatt_ble_gattc_cache_on_disconnection__exit][status =0000( 0x00)][raw data: C7D93028020000]
[SDK_GATT][sdk_log_gatt_on_disconnection__exits][raw data: C7D8306A]
[SDK_GAP][sdk_log_gap_ble_gap_scan_start][error 0015( 0x0F)][raw data: C7D920BF020F00]
当sdk_log_gap_ble_gap_scan_start报错0x0F后就没有再扫描设备了,我再调用ble_gap_scan_start()命令还是无法再次开启
187***564
这个是扫描相关的配置
#define APP_SCAN_INTERVAL 88 /**< Determines scan interval(in units of 0.625 ms). */
#define APP_SCAN_WINDOW 88 /**< Determines scan window(in units of 0.625 ms). */
#define APP_SCAN_DURATION 0 /**< Duration of the scanning(in units of 10 ms). */
static void gap_scan_params_init(void)
{
sdk_err_t error_code;
ble_gap_scan_param_t scan_param;
ble_gap_pair_enable(true);
ble_sec_params_set(&s_sec_param);
ble_gap_privacy_params_set(150, true);
scan_param.scan_type = BLE_GAP_SCAN_ACTIVE;
scan_param.scan_mode = BLE_GAP_SCAN_OBSERVER_MODE;
scan_param.scan_dup_filt = BLE_GAP_SCAN_FILT_DUPLIC_EN;
scan_param.use_whitelist = false;
scan_param.interval = APP_SCAN_INTERVAL;
scan_param.window = APP_SCAN_WINDOW;
scan_param.timeout = APP_SCAN_DURATION;
error_code = ble_gap_scan_param_set(BLE_GAP_OWN_ADDR_STATIC, &scan_param);
APP_ERROR_CHECK(error_code);
}
zhongchengzhi
您好,
1、从已有的信息来看,您这边在Start scan之后没有Stop scan又进行Start scan;
2、在Scan timeout参数为0(一直scan),需要先停止上次的扫描;
zhongchengzhi
您好,您可以用附件的文件替换SDK现有文件,解决BLE_GAPM_EVT_SCAN_STOP丢失的问题(路径:GR5525_SDK_V1.0.0\platform\soc\linker\keil,ble_sdk.lib.txt重命名为ble_sdk.lib)。
打开微信,使用“扫一扫”即可关注