/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | main.c | 75 atomic_clear_bit(bt_mesh.flags, BT_MESH_VALID); in bt_mesh_provision() 91 atomic_set_bit(bt_mesh.flags, BT_MESH_SEQ_PENDING); in bt_mesh_provision() 95 bt_mesh.seq = 0U; in bt_mesh_provision() 100 memcpy(bt_mesh.dev_key, dev_key, 16); in bt_mesh_provision() 105 bt_mesh_store_subnet(&bt_mesh.sub[0], 0); in bt_mesh_provision() 120 bt_mesh.iv_index = 0U; in bt_mesh_reset() 122 memset(bt_mesh.flags, 0, sizeof(bt_mesh.flags)); in bt_mesh_reset() 134 bt_mesh.seq = 0U; in bt_mesh_reset() 137 k_delayed_work_cancel(&bt_mesh.ivu_timer); in bt_mesh_reset() 160 memset(bt_mesh.dev_key, 0, sizeof(bt_mesh.dev_key)); in bt_mesh_reset() [all …]
|
A D | net.c | 94 struct bt_mesh_net bt_mesh = { variable 179 return &bt_mesh.sub[0]; in bt_mesh_subnet_get() 468 sub = &bt_mesh.sub[0]; in bt_mesh_net_create() 598 bt_mesh.ivu_duration = 0; in bt_mesh_iv_update_test() 657 if (iv_index < bt_mesh.iv_index || iv_index > bt_mesh.iv_index + 42) { in bt_mesh_net_iv_update() 664 memset(bt_mesh.rpl, 0, sizeof(bt_mesh.rpl)); in bt_mesh_net_iv_update() 666 bt_mesh.seq = 0; in bt_mesh_net_iv_update() 698 bt_mesh.ivu_duration = 0U; in bt_mesh_net_iv_update() 707 bt_mesh.seq = 0; in bt_mesh_net_iv_update() 1081 sub = &bt_mesh.sub[i]; in net_find_and_decrypt() [all …]
|
A D | provisioner_main.c | 294 sub = &(bt_mesh.sub[0]); in provisioner_upper_init() 368 sub = &bt_mesh.sub[i]; in provisioner_net_key_get() 475 sub = bt_mesh.p_sub[i]; 499 bt_mesh.iv_index = iv_index; 789 sub = &bt_mesh.sub[i]; in provisioner_check_net_key() 808 sub = &bt_mesh.sub[i]; in provisioner_check_net_idx() 820 sub = &bt_mesh.sub[i]; in provisioner_check_net_idx() 1077 sub = &bt_mesh.sub[add]; in bt_mesh_provisioner_local_net_key_add() 1135 sub = &bt_mesh.sub[i]; in bt_mesh_provisioner_local_net_key_get() 1162 sub = &bt_mesh.sub[i]; in bt_mesh_provisioner_local_net_key_delete() [all …]
|
A D | lpn.c | 110 bt_mesh.lpn.state = state; in lpn_set_state() 156 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in friend_clear_sent() 183 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_clear() 185 .addr = bt_mesh.lpn.frnd, in send_friend_clear() 189 .sub = &bt_mesh.sub[0], in send_friend_clear() 294 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_req() 300 .sub = &bt_mesh.sub[0], in send_friend_req() 362 .addr = bt_mesh.lpn.frnd, in send_friend_poll() 366 .sub = &bt_mesh.sub[0], in send_friend_poll() 648 .sub = &bt_mesh.sub[0], in sub_update() [all …]
|
A D | settings.c | 168 memset(bt_mesh.dev_key, 0, sizeof(bt_mesh.dev_key)); in net_set() 178 memcpy(bt_mesh.dev_key, net.dev_key, sizeof(bt_mesh.dev_key)); in net_set() 193 bt_mesh.iv_index = 0U; in iv_set() 204 bt_mesh.iv_index = iv.iv_index; in iv_set() 221 bt_mesh.seq = 0U; in seq_set() 238 … bt_mesh.seq += (CONFIG_BT_MESH_SEQ_STORE_RATE - (bt_mesh.seq % CONFIG_BT_MESH_SEQ_STORE_RATE)); in seq_set() 239 bt_mesh.seq--; in seq_set() 253 return &bt_mesh.rpl[i]; in rpl_find() 265 if (!bt_mesh.rpl[i].src) { in rpl_alloc() 267 return &bt_mesh.rpl[i]; in rpl_alloc() [all …]
|
A D | beacon.c | 47 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in cache_check() 48 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in cache_check() 111 net_buf_simple_add_be32(buf, bt_mesh.iv_index); in bt_mesh_beacon_create() 136 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in secure_beacon_send() 137 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in secure_beacon_send() 246 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in update_beacon_observation() 247 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in update_beacon_observation() 332 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR) && in secure_beacon_recv() 435 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_beacon_enable() 436 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in bt_mesh_beacon_enable() [all …]
|
A D | friend.c | 80 struct bt_mesh_friend *frnd = &bt_mesh.frnd[0]; in discard_buffer() 85 for (i = 1; i < ARRAY_SIZE(bt_mesh.frnd); i++) { in discard_buffer() 87 frnd = &bt_mesh.frnd[i]; in discard_buffer() 134 for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) { in bt_mesh_friend_find() 135 struct bt_mesh_friend *frnd = &bt_mesh.frnd[i]; in bt_mesh_friend_find() 218 for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) { in bt_mesh_friend_clear_net_idx() 237 for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) { in bt_mesh_friend_sec_update() 633 for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) { in find_clear() 665 .sub = &bt_mesh.sub[0], in send_friend_clear() 861 if (!bt_mesh.frnd[i].valid) { in bt_mesh_friend_req() [all …]
|
A D | transport.c | 482 key = bt_mesh.dev_key; in bt_mesh_trans_send() 486 key = bt_mesh.dev_key; in bt_mesh_trans_send() 569 rpl = &bt_mesh.rpl[i]; in is_replay() 609 rpl = &bt_mesh.rpl[index]; in is_replay() 666 dev_key = bt_mesh.dev_key; in sdu_recv() 669 dev_key = bt_mesh.dev_key; in sdu_recv() 694 key = &bt_mesh.app_keys[i]; in sdu_recv() 1476 memset(bt_mesh.rpl, 0, sizeof(bt_mesh.rpl)); in bt_mesh_rx_reset() 1509 memset(bt_mesh.rpl, 0, sizeof(bt_mesh.rpl)); in bt_mesh_rpl_clear() 1519 memset(bt_mesh.rpl, 0, sizeof(bt_mesh.rpl)); in bt_mesh_rpl_clear_all() [all …]
|
A D | proxy.c | 341 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in proxy_send_beacons() 342 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in proxy_send_beacons() 356 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_proxy_beacon_send() 378 next_idx = sub - bt_mesh.sub; in bt_mesh_proxy_identity_start() 397 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_proxy_identity_enable() 398 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in bt_mesh_proxy_identity_enable() 429 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_proxy_identity_disable() 430 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in bt_mesh_proxy_identity_disable() 1181 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in next_sub() 1184 sub = &bt_mesh.sub[(i + next_idx) % ARRAY_SIZE(bt_mesh.sub)]; in next_sub() [all …]
|
A D | cfg_srv.c | 123 if (bt_mesh.lpn.established) { in hb_send() 263 for (i = 0; i < ARRAY_SIZE(bt_mesh.app_keys); i++) { in app_key_is_valid() 409 for (i = 0; i < ARRAY_SIZE(bt_mesh.app_keys); i++) { in bt_mesh_app_key_alloc() 729 for (i = 0; i < ARRAY_SIZE(bt_mesh.app_keys); i++) { in app_key_get() 919 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in gatt_proxy_set() 2112 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in net_key_add() 2114 sub = &bt_mesh.sub[i]; in net_key_add() 2318 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in net_key_get() 2319 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in net_key_get() 3337 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_cfg_reset() [all …]
|
A D | provisioner_proxy.c | 712 .sub = &(bt_mesh.sub[0]), in send_my_proxy_config()
|
A D | adv.c | 269 if (atomic_test_bit(bt_mesh.flags, BT_MESH_SUSPENDED)) { in bt_mesh_adv_create_from_pool()
|
A D | provisioner_prov.c | 3809 if (atomic_test_and_set_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_provisioner_local_provision() 3824 atomic_clear_bit(bt_mesh.flags, BT_MESH_VALID); in bt_mesh_provisioner_local_provision() 3833 memcpy(bt_mesh.dev_key, dev_key, 16); in bt_mesh_provisioner_local_provision() 3838 bt_mesh_store_subnet(&bt_mesh.sub[0], 0); in bt_mesh_provisioner_local_provision()
|
A D | prov.c | 1211 bt_mesh.p_net_idx_next = net_idx; in prov_data()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | lpn.h | 21 return bt_mesh.lpn.established; in bt_mesh_lpn_established() 31 return (addr == bt_mesh.lpn.frnd); in bt_mesh_lpn_match() 40 return (bt_mesh.lpn.state == BT_MESH_LPN_WAIT_UPDATE); in bt_mesh_lpn_waiting_update() 49 return (bt_mesh.lpn.state == BT_MESH_LPN_TIMER); in bt_mesh_lpn_timer()
|
A D | net.h | 318 extern struct bt_mesh_net bt_mesh; 321 #define BT_MESH_NET_IVI_TX (bt_mesh.iv_index - atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRE… 322 #define BT_MESH_NET_IVI_RX(rx) (bt_mesh.iv_index - (rx)->old_iv)
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_event.c | 148 genie_storage_write_para(&bt_mesh); in _genie_event_save_mesh_data() 168 memcpy(devkey, bt_mesh.dev_key, 16); in _genie_event_handle_appkey_add() 170 memcpy(netkey.key, bt_mesh.sub[0].keys[0].net, 16); in _genie_event_handle_appkey_add() 172 memcpy(appkey.key, bt_mesh.app_keys[0].keys[0].val, 16); in _genie_event_handle_appkey_add() 214 uint32_t seq = bt_mesh.seq; in _genie_event_handle_seq_update()
|
/AliOS-Things-master/components/ble_host/bt_host/ali_vendormodel_profile/ |
A D | ali_vendormodel_profile.mk | 5 $(NAME)_COMPONENTS := bluetooth.bt_mesh
|
/AliOS-Things-master/components/ble_host/bt_shell/ |
A D | build.mk | 52 L_SRCS += bt_mesh/shell.c
|
/AliOS-Things-master/components/ble_mesh/bt_shell/ |
A D | build.mk | 52 L_SRCS += bt_mesh/shell.c
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/nv_section/userdata_section/ |
A D | Makefile | 29 -Ithirdparty/bluetooth/bt_mesh/inc \
|
/AliOS-Things-master/components/ble_mesh/ |
A D | README.md | 74 本组件对外头文件位于components\ble_mesh\bt_mesh\core\inc\目录,通过#include <api/mesh.h>进行引用。其中API相关说明,参考《[MESH AP…
|
/AliOS-Things-master/components/ble_host/bt_host/ |
A D | Kconfig | 204 source "bt_mesh/Kconfig"
|
/AliOS-Things-master/components/ble_mesh/bt_shell/bt_mesh/ |
A D | shell.c | 1136 printf("IV Index is 0x%08x\n", bt_mesh.iv_index); in cmd_iv_update()
|