lly
dd6de08bea
ble_mesh: stack: Update some fast prov functions
2020-07-03 08:53:16 +08:00
lly
661e1f2500
ble_mesh: stack: Move fast prov functions to a single file
2020-07-03 08:53:16 +08:00
lly
7e7d2ae401
ble_mesh: Mark platform related default RNG as 0
2020-07-02 03:53:50 +00:00
lly
d9e8508981
ble_mesh: Remove the previously added redundant aes files
2020-07-02 03:53:50 +00:00
lly
80837bd936
ble_mesh: Update tinycrypt header file include guards
...
Add BLE_MESH in the macro to make it specific for BLE Mesh.
2020-07-02 03:53:50 +00:00
lly
3c0584f013
ble_mesh: Format source and header files of tinycrypt
2020-07-02 03:53:50 +00:00
lly
f1f3c7afd6
ble_mesh: Port full implementation of tinycrypt [Zephyr]
...
- Original code is here: https://github.com/zephyrproject-rtos/tinycrypt
- Also this fixes the compile error when NimBLE and ESP BLE Mesh
both uses the tinycrypt.
2020-07-02 03:53:50 +00:00
lly
b239677c97
ble_mesh: stack: Fix compile error when only proxy enabled
...
Also remove some redundant CONFIG_BLE_MESH_PROXY checks, because
when the following options are satisfied, the CONFIG_BLE_MESH_PROXY
option will be selected mandatorily.
2020-07-01 11:54:32 +08:00
Island
f1642bfaaf
Merge branch 'bugfix/ble_mesh_set_recv_rssi_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh set recv rssi (v4.2)
See merge request espressif/esp-idf!9390
2020-07-01 11:31:47 +08:00
lly
6f715c4472
ble_mesh: Check if subnet exists before updating beacon_sent
...
- Before updating the "beacon_sent" of a subnet, we need to check
if the subnet still exists, especially for a Provisioner.
- Fix a bug which will cause Provisioner failed to send Secure
Network Beacon if no device is provisioned
2020-06-30 09:22:21 +08:00
lly
3fa5daf0ba
ble_mesh: stack: Copy recv_rssi for other received messages
...
Follow the commit: 2b80cb6883
,
copy the recv_rssi for other mesh messages.
2020-06-30 09:05:23 +08:00
mbroek
4b3bb6c8fd
When a generic mesh model message is received "bt_mesh_generic_server_cb_evt_to_btc" copies the
...
ctx values to cb_params for the mesh stack.
recv_rssi was not copied.
This means the rssi could not be read when receiving generic server messages using ble_mesh.
2020-06-30 09:05:23 +08:00
Island
00148cd0c6
Merge branch 'bugfix/ble_mesh_get_node_with_name_v4.2' into 'release/v4.2'
...
ble_mesh: Get node info with pre-configured node name (v4.2)
See merge request espressif/esp-idf!9302
2020-06-28 20:25:32 +08:00
Island
3c92395170
Merge branch 'bugfix/ble_mesh_bt_hex_v4.2' into 'release/v4.2'
...
ble_mesh: Fix wrong log output with bt_hex (v4.2)
See merge request espressif/esp-idf!9309
2020-06-28 20:24:31 +08:00
Island
257384ea75
Merge branch 'bugfix/ble_mesh_not_define_bool_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh not define bool (v4.2)
See merge request espressif/esp-idf!9316
2020-06-28 20:23:21 +08:00
lly
698fe7dd99
ble_mesh: stack: Check model status with variable length
2020-06-24 14:12:53 +08:00
lly
bd5ef62253
ble_mesh: Remove boolean type definitions
2020-06-24 14:05:58 +08:00
Nikolaos Strikos
5bacf6b23d
ble_mesh: Do not #define bool when compiling in C++
2020-06-24 14:05:58 +08:00
lly
55f48877a4
ble_mesh: Fix wrong log output with bt_hex
...
- This issue was introduced in the commit: a788e7cd3d
which updated the bt_hex() function incorrectly.
- And in bt_hex(), we use 2 for the two-dimensional array, because currently
at most two bt_hex() will be used at the same time. Also this will save
some DRAM compared with using 4.
2020-06-24 12:29:33 +08:00
lly
b4b2cd19f7
ble_mesh: Get node info with pre-configured node name
...
Also add a function to get the entry of the nodes table.
Closes https://github.com/espressif/esp-idf/issues/5397
2020-06-24 10:58:36 +08:00
Island
a8f40b7095
Merge branch 'bugfix/ble_mesh_remove_relay_dependency_v4.2' into 'release/v4.2'
...
ble_mesh: Remove relay option dependency (v4.2)
See merge request espressif/esp-idf!9025
2020-06-03 15:20:35 +08:00
Island
9bdaa64d80
Merge branch 'bugfix/ble_mesh_example_nvs_store_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh example nvs store (v4.2)
See merge request espressif/esp-idf!9015
2020-06-03 15:11:54 +08:00
Island
55cd09578f
Merge branch 'bugfix/ble_mesh_model_recv_fix_v4.2' into 'release/v4.2'
...
Bugfix/ble mesh model recv fix (v4.2)
See merge request espressif/esp-idf!9006
2020-06-03 15:11:15 +08:00
Island
118b69ce0d
Merge branch 'bugfix/ble_mesh_rework_prov_pdu_len_check_v4.2' into 'release/v4.2'
...
ble_mesh: Rework prov pdu length check (v4.2)
See merge request espressif/esp-idf!9002
2020-06-03 15:10:33 +08:00
lly
eeb44e7dd6
ble_mesh: Remove relay option dependency
...
When the relay functionality of a node is not enabled, this
issue will cause the node failing to send messages to fixed
group.
2020-06-02 19:18:18 +08:00
lly
adf785a1b0
ble_mesh: Config and health client btc fixes
...
Fix an issue which may cause no error code is returned
when sending config client or health client messages
with invalid parameters.
2020-06-02 14:02:54 +08:00
lly
b25cffd4d5
ble_mesh: Add more checks of net_idx & app_idx
2020-06-02 14:02:54 +08:00
lly
4919d17ad1
ble_mesh: Optimize some send & recv logs
2020-06-02 14:02:53 +08:00
lly
1a3c315d2f
ble_mesh: correct the return type [Zephyr]
2020-06-02 10:31:08 +08:00
lly
8271ae4a1e
ble_mesh: Add net_buf_simple_init_with_data [Zephyr]
2020-06-02 10:31:08 +08:00
lly
d6a247f7e4
ble_mesh: Optimize model recv operations [Zephyr]
...
Previously the model recv operation is a littl fuzzy.
With the changes, the model recv operation is splitted into:
- find op
- check app_idx
- check dst
- check length
- update info & handle message
2020-06-02 10:31:07 +08:00
lly
4fbc29616c
ble_mesh: Rework prov pdu length check
2020-06-02 10:13:21 +08:00
lly
067d94e88f
ble_mesh: Local model (un)subscribes group address
2020-06-01 09:10:17 +08:00
lly
6bc4f5802d
ble_mesh: Define a macro for invalid company id
2020-06-01 09:10:17 +08:00
lly
6768c2b7a1
ble_mesh: Check the result of creating timer
2020-05-27 09:30:34 +00:00
Island
3b85d4ef24
Merge branch 'bugfix/ble_mesh_sync_zephyr_fixes' into 'master'
...
Bugfix/ble mesh sync zephyr fixes
Closes BLEMESH-215
See merge request espressif/esp-idf!8912
2020-05-27 17:26:00 +08:00
Island
d82f3372a0
Merge branch 'bugfix/ble_mesh_not_use_same_private_key' into 'master'
...
ble_mesh: Not using pre-initialized private key
Closes BLEMESH-214
See merge request espressif/esp-idf!8905
2020-05-27 17:25:39 +08:00
Island
02376b97d4
Merge branch 'bugfix/ble_mesh_uses_deprecated_config' into 'master'
...
ble_mesh: Fix using old config for duplicate scan
Closes BLEMESH-213
See merge request espressif/esp-idf!8898
2020-05-27 17:23:55 +08:00
lly
0cfb6c138b
ble_mesh: Transport tx fields overflow [Zephyr]
...
The transport segmented TX nack and seg_pending fields must be at least
6 bits to avoid overflow for 32 segment messages. This change rearranges
the seg_tx fields to gather all state flag fields in one byte, while
making the counter fields whole bytes.
2020-05-26 11:42:31 +08:00
lly
f863a1b328
ble_mesh: Friend with unknown appkey [Zephyr]
...
Ensures that friend messages are enqueued, even if the packet is
received with an appkey is unknown to the friend. Previously, sdu_recv
would return EINVAL if the appkey was unknown, which would prevent the
lower transport layer from adding the packet to the friend queue. This
is irrelevant for the logic in lower transport, and should not be
returned as an error.
2020-05-26 11:16:01 +08:00
lly
05c287e05c
ble_mesh: Not using pre-initialized private key
2020-05-26 10:46:22 +08:00
lly
3c1487be0e
ble_mesh: Fix using old config for duplicate scan
2020-05-25 16:48:15 +08:00
lly
bbbdbb8699
ble_mesh: Same func for storing/restoring comp data
2020-05-25 13:27:08 +08:00
lly
af37aee5bf
ble_mesh: Fix Provisioner failed to publish
2020-05-22 15:32:12 +08:00
lly
b1f3843ed6
ble_mesh: Clear two more vars during proxy server deinit
2020-05-20 11:35:26 +00:00
lly
d5b126667a
ble_mesh: Add missing sdkconfig.h
2020-05-20 11:35:26 +00:00
lly
4e60919a66
ble_mesh: Init device name during proxy server init
...
Device name will be reset when deinit mesh stack. If not
initializing device name during the next mesh stack init,
it will fail to set the device name when using bluedroid.
2020-05-20 11:35:26 +00:00
lly
a0ce8c64b0
ble_mesh: Add init flag for friend init/deinit
...
Since bt_mesh_friend_init() will only be invoked when
a device is provisioned or Provisioner is enabled, so
we add a flag to indicate if the friend functionality
is initialized in case deinit before initialization.
2020-05-20 11:35:26 +00:00
lly
25a6ea9600
ble_mesh: Remove patch for the bug of an App
2020-05-14 10:24:15 +08:00
Island
c946ca8b45
Merge branch 'bugfix/ble_mesh_node_old_version_to_new' into 'master'
...
ble_mesh: Fix mesh node device role restore
Closes BLEMESH-188
See merge request espressif/esp-idf!8314
2020-05-12 20:36:55 +08:00