From aa05ab361545ce37dd329e0d55cab615203cb262 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=83=A1=E4=BC=A0=E5=86=9B?= <1224667075@qq.com> Date: Mon, 18 Nov 2024 08:35:05 +0000 Subject: [PATCH] Merge #1415 into sdk602patch0911 from refs/changes/1415/head MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 修改ble连接参数,适配更多机型 * refs/changes/1415/head: (1 commits squashed) - 修改ble连接参数,适配更多机型 Signed-off-by: aliyun8003852482 <1224667075@qq.com> Reviewed-by: Caisking <3449750381@qq.com> Reviewed-by: 罗正 <1732036298@qq.com> Reviewed-by: aliyun8003852482 <1224667075@qq.com> Reviewed-by: snickersun@163.com Reviewed-by: aliyun6865282430 <1624952103@qq.com> Merged-by: Caisking <3449750381@qq.com> CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/1415 --- .../wearable/service/ble_service/bleservice/bleService.c | 2 +- .../wearable/service/ble_service/bleservice/bleService.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c index df453288a..ffb8fbd40 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -556,7 +556,7 @@ void uapi_ble_connect_param_update(uint16_t data) conn_param.interval_min =data; /* param 1: interval_min 1.25ms */ conn_param.interval_max = data; /* param 2: interval_max */ conn_param.slave_latency = 6; /* param 3: slave_latency */ - conn_param.timeout_multiplier = 700; /* param 4: timeout_multiplier 10ms */ + conn_param.timeout_multiplier = 500; /* param 4: timeout_multiplier 10ms */ int ret = gap_ble_connect_param_update(&conn_param); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"gap ble update connection parameters %d ret: %X\n",data,ret); } diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.h b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.h index ba3154460..8cf27f501 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.h +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.h @@ -11,7 +11,7 @@ extern "C" { #include "errcode.h" #define BLE_CONNECT_INTERVAL_SLOW 50 -#define BLE_CONNECT_INTERVAL_HIGH 10 +#define BLE_CONNECT_INTERVAL_HIGH 12 extern uint16_t g_ble_conn_id; -- 2.17.1