From 2e13e618b5eda2e96bdb41c394ed380269e86645 Mon Sep 17 00:00:00 2001 From: lly Date: Tue, 17 Nov 2020 18:10:38 +0800 Subject: [PATCH] ble_mesh: stack: Update connection interval to 15ms --- .../mesh_core/bluedroid_host/mesh_bearer_adapt.c | 6 +++--- .../mesh_core/nimble_host/mesh_bearer_adapt.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c b/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c index 2a1f224b16..6418903786 100644 --- a/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c +++ b/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c @@ -1209,12 +1209,12 @@ int bt_mesh_gattc_conn_create(const bt_mesh_addr_t *addr, u16_t service_uuid) BT_DBG("Create conn with %s", bt_hex(addr->val, BLE_MESH_ADDR_LEN)); - /* Min_interval: 3.75ms - * Max_interval: 3.75ms + /* Min_interval: 15ms + * Max_interval: 15ms * Slave_latency: 0x0 * Supervision_timeout: 1s */ - BTA_DmSetBlePrefConnParams(bt_mesh_gattc_info[i].addr.val, 0x6, 0x6, 0x00, 0x64); + BTA_DmSetBlePrefConnParams(bt_mesh_gattc_info[i].addr.val, 0x18, 0x18, 0x00, 0x64); BTA_GATTC_Open(bt_mesh_gattc_if, bt_mesh_gattc_info[i].addr.val, bt_mesh_gattc_info[i].addr.type, true, BTA_GATT_TRANSPORT_LE); diff --git a/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c b/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c index e7a484eacd..cdff84f162 100644 --- a/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c +++ b/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c @@ -1424,14 +1424,14 @@ int bt_mesh_gattc_conn_create(const bt_mesh_addr_t *addr, u16_t service_uuid) BT_DBG("Create conn with %s", bt_hex(addr->val, BLE_MESH_ADDR_LEN)); - /* Min_interval: 3.75ms - * Max_interval: 3.75ms + /* Min_interval: 15ms + * Max_interval: 15ms * Slave_latency: 0x0 * Supervision_timeout: 1s */ struct ble_gap_conn_params conn_params = {0}; - conn_params.itvl_min = 0x6; - conn_params.itvl_max = 0x6; + conn_params.itvl_min = 0x18; + conn_params.itvl_max = 0x18; conn_params.latency = 0; conn_params.supervision_timeout = 0x64; conn_params.scan_itvl = 0x0020;