You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2017/04/05 12:44:40 UTC

[1/2] incubator-mynewt-core git commit: nimble/controller: Change LL and HCI version to Bluetooth 5.0

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/bluetooth5 2767d7918 -> aa7a27459


nimble/controller: Change LL and HCI version to Bluetooth 5.0

We start adding features from Bluetooth 5.0 so lets move on with version
first

< HCI Command: Read Local Version Information (0x04|0x0001) plen 0
> HCI Event: Command Complete (0x0e) plen 12
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Bluetooth 5.0 (0x09) - Revision 0 (0x0000)
        LMP version: Bluetooth 5.0 (0x09) - Subversion 0 (0x0000)
        Manufacturer: internal use (65535)


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/9ed2a9e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9ed2a9e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9ed2a9e6

Branch: refs/heads/bluetooth5
Commit: 9ed2a9e611f2485caa06b371770ad04867ae9dcc
Parents: 2767d79
Author: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Authored: Fri Mar 31 10:52:53 2017 +0200
Committer: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Committed: Wed Apr 5 14:39:09 2017 +0200

----------------------------------------------------------------------
 net/nimble/controller/src/ble_ll_ctrl.c | 2 +-
 net/nimble/controller/src/ble_ll_hci.c  | 4 ++--
 net/nimble/include/nimble/hci_common.h  | 2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9ed2a9e6/net/nimble/controller/src/ble_ll_ctrl.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_ctrl.c b/net/nimble/controller/src/ble_ll_ctrl.c
index a933753..87a66ce 100644
--- a/net/nimble/controller/src/ble_ll_ctrl.c
+++ b/net/nimble/controller/src/ble_ll_ctrl.c
@@ -777,7 +777,7 @@ ble_ll_ctrl_version_ind_make(struct ble_ll_conn_sm *connsm, uint8_t *pyld)
     connsm->csmflags.cfbit.version_ind_sent = 1;
 
     /* Fill out response */
-    pyld[0] = BLE_HCI_VER_BCS_4_2;
+    pyld[0] = BLE_HCI_VER_BCS_5_0;
     put_le16(pyld + 1, MYNEWT_VAL(BLE_LL_MFRG_ID));
     put_le16(pyld + 3, BLE_LL_SUB_VERS_NR);
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9ed2a9e6/net/nimble/controller/src/ble_ll_hci.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_hci.c b/net/nimble/controller/src/ble_ll_hci.c
index 336cd03..83d99a7 100644
--- a/net/nimble/controller/src/ble_ll_hci.c
+++ b/net/nimble/controller/src/ble_ll_hci.c
@@ -183,9 +183,9 @@ ble_ll_hci_rd_local_version(uint8_t *rspbuf, uint8_t *rsplen)
     mfrg = MYNEWT_VAL(BLE_LL_MFRG_ID);
 
     /* Place the data packet length and number of packets in the buffer */
-    rspbuf[0] = BLE_HCI_VER_BCS_4_2;
+    rspbuf[0] = BLE_HCI_VER_BCS_5_0;
     put_le16(rspbuf + 1, hci_rev);
-    rspbuf[3] = BLE_LMP_VER_BCS_4_2;
+    rspbuf[3] = BLE_LMP_VER_BCS_5_0;
     put_le16(rspbuf + 4, mfrg);
     put_le16(rspbuf + 6, lmp_subver);
     *rsplen = BLE_HCI_RD_LOC_VER_INFO_RSPLEN;

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9ed2a9e6/net/nimble/include/nimble/hci_common.h
----------------------------------------------------------------------
diff --git a/net/nimble/include/nimble/hci_common.h b/net/nimble/include/nimble/hci_common.h
index ff34316..6e80d49 100644
--- a/net/nimble/include/nimble/hci_common.h
+++ b/net/nimble/include/nimble/hci_common.h
@@ -558,6 +558,7 @@ extern "C" {
 #define BLE_HCI_VER_BCS_4_0                 (6)
 #define BLE_HCI_VER_BCS_4_1                 (7)
 #define BLE_HCI_VER_BCS_4_2                 (8)
+#define BLE_HCI_VER_BCS_5_0                 (9)
 
 #define BLE_LMP_VER_BCS_1_0b                (0)
 #define BLE_LMP_VER_BCS_1_1                 (1)
@@ -568,6 +569,7 @@ extern "C" {
 #define BLE_LMP_VER_BCS_4_0                 (6)
 #define BLE_LMP_VER_BCS_4_1                 (7)
 #define BLE_LMP_VER_BCS_4_2                 (8)
+#define BLE_LMP_VER_BCS_5_0                 (9)
 
 /* Sub-event 0x0A: enhanced connection complete */
 #define BLE_HCI_LE_ENH_CONN_COMPLETE_LEN    (31)


[2/2] incubator-mynewt-core git commit: nimble/controller: Add support for high duty cycle non-conn

Posted by an...@apache.org.
nimble/controller: Add support for high duty cycle non-conn

Bluetooth specification 5.0 removes restrictions regarding minimum
advertising interval for non-connectable advertising. This enables
high duty cycle for this advertising type.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/aa7a2745
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/aa7a2745
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/aa7a2745

Branch: refs/heads/bluetooth5
Commit: aa7a2745937afd94882a13051d7fb52aa88dec01
Parents: 9ed2a9e
Author: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Authored: Fri Mar 31 10:55:18 2017 +0200
Committer: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Committed: Wed Apr 5 14:40:59 2017 +0200

----------------------------------------------------------------------
 net/nimble/controller/include/controller/ble_ll_adv.h | 1 -
 net/nimble/controller/src/ble_ll_adv.c                | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aa7a2745/net/nimble/controller/include/controller/ble_ll_adv.h
----------------------------------------------------------------------
diff --git a/net/nimble/controller/include/controller/ble_ll_adv.h b/net/nimble/controller/include/controller/ble_ll_adv.h
index 298f4bf..635c62e 100644
--- a/net/nimble/controller/include/controller/ble_ll_adv.h
+++ b/net/nimble/controller/include/controller/ble_ll_adv.h
@@ -44,7 +44,6 @@ extern "C" {
 #define BLE_LL_ADV_ITVL_MS_MAX          (10240)         /* msecs */
 #define BLE_LL_ADV_ITVL_SCAN_MIN        (160)           /* units */
 #define BLE_LL_ADV_ITVL_SCAN_MS_MIN     (100)           /* msecs */
-#define BLE_LL_ADV_ITVL_NONCONN_MIN     (160)           /* units */
 #define BLE_LL_ADV_ITVL_NONCONN_MS_MIN  (100)           /* msecs */
 #define BLE_LL_ADV_DELAY_MS_MIN         (0)             /* msecs */
 #define BLE_LL_ADV_DELAY_MS_MAX         (10)            /* msecs */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aa7a2745/net/nimble/controller/src/ble_ll_adv.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_adv.c b/net/nimble/controller/src/ble_ll_adv.c
index 8240d7a..16455fd 100644
--- a/net/nimble/controller/src/ble_ll_adv.c
+++ b/net/nimble/controller/src/ble_ll_adv.c
@@ -633,7 +633,7 @@ ble_ll_adv_set_adv_params(uint8_t *cmd, uint8_t instance, int is_multi)
         break;
     case BLE_HCI_ADV_TYPE_ADV_NONCONN_IND:
     case BLE_HCI_ADV_TYPE_ADV_SCAN_IND:
-        min_itvl = BLE_LL_ADV_ITVL_NONCONN_MIN;
+        min_itvl = 0;
         break;
     default:
         /* This will cause an invalid parameter error */