/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/api/mesh/ |
A D | cfg_cli.h | 41 int bt_mesh_cfg_beacon_get(u16_t net_idx, u16_t addr, u8_t *status); 43 int bt_mesh_cfg_beacon_set(u16_t net_idx, u16_t addr, u8_t val, u8_t *status); 45 int bt_mesh_cfg_ttl_get(u16_t net_idx, u16_t addr, u8_t *ttl); 47 int bt_mesh_cfg_ttl_set(u16_t net_idx, u16_t addr, u8_t val, u8_t *ttl); 49 int bt_mesh_cfg_friend_get(u16_t net_idx, u16_t addr, u8_t *status); 51 int bt_mesh_cfg_friend_set(u16_t net_idx, u16_t addr, u8_t val, u8_t *status); 53 int bt_mesh_cfg_gatt_proxy_get(u16_t net_idx, u16_t addr, u8_t *status); 55 int bt_mesh_cfg_gatt_proxy_set(u16_t net_idx, u16_t addr, u8_t val, u8_t *status); 57 int bt_mesh_cfg_relay_get(u16_t net_idx, u16_t addr, u8_t *status, u8_t *transmit); 183 int bt_mesh_cfg_node_reset(u16_t net_idx, u16_t addr); [all …]
|
A D | health_cli.h | 49 int bt_mesh_health_fault_get(u16_t net_idx, u16_t addr, u16_t app_idx, 53 int bt_mesh_health_fault_clear(u16_t net_idx, u16_t addr, u16_t app_idx, 57 int bt_mesh_health_fault_test(u16_t net_idx, u16_t addr, u16_t app_idx, 61 int bt_mesh_health_period_get(u16_t net_idx, u16_t addr, u16_t app_idx, 64 int bt_mesh_health_period_set(u16_t net_idx, u16_t addr, u16_t app_idx, 67 int bt_mesh_health_attention_get(u16_t net_idx, u16_t addr, u16_t app_idx, 70 int bt_mesh_health_attention_set(u16_t net_idx, u16_t addr, u16_t app_idx,
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | cfg_cli.c | 893 .net_idx = net_idx, in bt_mesh_cfg_comp_data_get() 929 .net_idx = net_idx, in get_state_u8() 960 .net_idx = net_idx, in set_state_u8() 1051 .net_idx = net_idx, in bt_mesh_cfg_relay_get() 1094 .net_idx = net_idx, in bt_mesh_cfg_relay_set() 1131 .net_idx = net_idx, in bt_mesh_cfg_net_key_add() 1169 .net_idx = net_idx, in bt_mesh_cfg_net_key_update() 1208 .net_idx = net_idx, in bt_mesh_cfg_krp_set() 1248 .net_idx = net_idx, in bt_mesh_cfg_krp_get() 1287 .net_idx = net_idx, in bt_mesh_cfg_app_key_add() [all …]
|
A D | provisioner_main.c | 169 node->net_idx = net_idx; in provisioner_node_provision() 477 if (!sub || (sub->net_idx != net_idx)) { 792 *net_idx = sub->net_idx; in provisioner_check_net_key() 921 key->net_idx = net_idx; in bt_mesh_provisioner_local_app_key_add() 1034 if (!net_idx || (*net_idx != 0xFFFF && *net_idx >= 0x1000)) { in bt_mesh_provisioner_local_net_key_add() 1087 sub->net_idx = *net_idx; in bt_mesh_provisioner_local_net_key_add() 1106 *net_idx = sub->net_idx; in bt_mesh_provisioner_local_net_key_add() 1137 if (sub->subnet_active && sub->net_idx == net_idx) { in bt_mesh_provisioner_local_net_key_get() 1164 if (sub->subnet_active && sub->net_idx == net_idx) { in bt_mesh_provisioner_local_net_key_delete() 1325 key->net_idx = net_idx; in bt_mesh_provisioner_bind_local_app_net_idx() [all …]
|
A D | health_cli.c | 51 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_fault_status() 101 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_current_status() 129 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_period_status() 160 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_attention_status() 233 .net_idx = net_idx, in bt_mesh_health_attention_get() 265 .net_idx = net_idx, in bt_mesh_health_attention_set() 312 .net_idx = net_idx, in bt_mesh_health_period_get() 349 .net_idx = net_idx, in bt_mesh_health_period_set() 397 .net_idx = net_idx, in bt_mesh_health_fault_test() 450 .net_idx = net_idx, in bt_mesh_health_fault_clear() [all …]
|
A D | net.c | 183 if (bt_mesh.sub[i].net_idx == net_idx) { in bt_mesh_subnet_get() 335 cred->net_idx = sub->net_idx; in friend_cred_create() 373 if (cred->addr == addr && cred->net_idx == net_idx) { in friend_cred_del() 391 if (cred->net_idx != sub->net_idx) { in friend_cred_get() 485 sub->net_idx = idx; in bt_mesh_net_create() 521 if (key->net_idx != sub->net_idx || !key->updated) { in bt_mesh_net_revoke_keys() 1045 if (cred->net_idx != sub->net_idx) { in friend_decrypt() 1090 rx->ctx.net_idx = sub->net_idx; in net_find_and_decrypt() 1098 rx->ctx.net_idx = sub->net_idx; in net_find_and_decrypt() 1110 rx->ctx.net_idx = sub->net_idx; in net_find_and_decrypt() [all …]
|
A D | friend.c | 145 if (net_idx != BT_MESH_KEY_ANY && frnd->net_idx != net_idx) { in bt_mesh_friend_find() 179 friend_cred_del(frnd->net_idx, frnd->lpn); in friend_clear() 216 BT_DBG("net_idx 0x%04x", net_idx); in bt_mesh_friend_clear_net_idx() 225 if (net_idx == BT_MESH_KEY_ANY || frnd->net_idx == net_idx) { in bt_mesh_friend_clear_net_idx() 231 void bt_mesh_friend_sec_update(u16_t net_idx) in bt_mesh_friend_sec_update() argument 235 BT_DBG("net_idx 0x%04x", net_idx); in bt_mesh_friend_sec_update() 244 if (net_idx == BT_MESH_KEY_ANY || frnd->net_idx == net_idx) { in bt_mesh_friend_sec_update() 336 sub = bt_mesh_subnet_get(frnd->net_idx); in create_friend_pdu() 659 .net_idx = frnd->net_idx, in send_friend_clear() 876 frnd->net_idx = rx->sub->net_idx; in bt_mesh_friend_req() [all …]
|
A D | settings.c | 86 u16_t net_idx:12, indefinite:1; member 119 u16_t net_idx; member 327 u16_t net_idx; in net_key_set() local 334 net_idx = strtol(name, NULL, 16); in net_key_set() 335 sub = bt_mesh_subnet_get(net_idx); in net_key_set() 378 sub->net_idx = net_idx; in net_key_set() 431 app->net_idx = key.net_idx; in app_key_set() 541 app->net_idx = key.net_idx; in papp_key_set() 588 pub->net_idx = hb_val.net_idx; in hb_pub_set() 1211 val.net_idx = pub->net_idx; in store_pending_hb_pub() [all …]
|
A D | cfg_srv.c | 91 .net_idx = cfg->hb_pub.net_idx, in hb_send() 444 if (key->net_idx != net_idx) { in app_key_set() 470 if (key->net_idx == net_idx && !memcmp(key->keys[0].val, val, 16)) { in app_key_set() 474 if (key->net_idx == net_idx) { in app_key_set() 499 key->net_idx = net_idx; in app_key_set() 2126 if (sub->net_idx == idx) { in net_key_add() 2153 sub->net_idx = idx; in net_key_add() 2910 u16_t net_idx; member 2998 cfg->hb_pub.net_idx = idx; in heartbeat_pub_set() 3510 if (conf && conf->hb_pub.net_idx == sub->net_idx) { in bt_mesh_subnet_del() [all …]
|
A D | beacon.c | 50 if (sub->net_idx == BT_MESH_KEY_UNUSED) { in cache_check() 115 BT_DBG("net_idx 0x%04x flags 0x%02x NetID %s", sub->net_idx, flags, bt_hex(keys->net_id, 8)); in bt_mesh_beacon_create() 140 if (sub->net_idx == BT_MESH_KEY_UNUSED) { in secure_beacon_send() 249 if (sub->net_idx == BT_MESH_KEY_UNUSED) { in update_beacon_observation() 325 if (bt_mesh_subnet_get(BT_MESH_KEY_PRIMARY) && sub->net_idx != BT_MESH_KEY_PRIMARY) { in secure_beacon_recv() 330 …BT_DBG("net_idx 0x%04x iv_index 0x%08x, current iv_index 0x%08x", sub->net_idx, iv_index, bt_mesh.… in secure_beacon_recv() 438 if (sub->net_idx == BT_MESH_KEY_UNUSED) { in bt_mesh_beacon_enable()
|
A D | lpn.c | 183 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_clear() 222 friend_cred_del(bt_mesh.sub[0].net_idx, lpn->frnd); in clear_friendship() 294 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_req() 360 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_poll() 642 .net_idx = bt_mesh.sub[0].net_idx, in sub_update()
|
A D | access.c | 185 tx.sub = bt_mesh_subnet_get(key->net_idx); in publish_retransmit() 191 ctx.net_idx = key->net_idx; in publish_retransmit() 677 …BT_DBG("net_idx 0x%04x app_idx 0x%04x dst 0x%04x", tx->ctx->net_idx, tx->ctx->app_idx, tx->ctx->ad… in model_send() 718 .sub = bt_mesh_subnet_get(ctx->net_idx), in bt_mesh_model_send() 782 ctx.net_idx = key->net_idx; in bt_mesh_model_publish() 786 tx.sub = bt_mesh_subnet_get(ctx.net_idx); in bt_mesh_model_publish()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | provisioner_main.h | 34 u16_t net_idx; /* Node provision net_idx */ member 47 u16_t unicast_addr, u8_t element_num, u16_t net_idx, 58 const u8_t *provisioner_net_key_get(u16_t net_idx); 60 struct bt_mesh_subnet *provisioner_subnet_get(u16_t net_idx); 90 const u8_t *bt_mesh_provisioner_local_app_key_get(u16_t net_idx, u16_t app_idx); 92 int bt_mesh_provisioner_local_app_key_delete(u16_t net_idx, u16_t app_idx); 94 int bt_mesh_provisioner_local_net_key_add(const u8_t net_key[16], u16_t *net_idx); 96 const u8_t *bt_mesh_provisioner_local_net_key_get(u16_t net_idx); 98 int bt_mesh_provisioner_local_net_key_delete(u16_t net_idx); 112 int bt_mesh_provisioner_bind_local_app_net_idx(u16_t net_idx, u16_t app_idx); [all …]
|
A D | friend.h | 15 bool bt_mesh_friend_match(u16_t net_idx, u16_t addr); 17 struct bt_mesh_friend *bt_mesh_friend_find(u16_t net_idx, u16_t lpn_addr, 30 void bt_mesh_friend_sec_update(u16_t net_idx); 32 void bt_mesh_friend_clear_net_idx(u16_t net_idx);
|
A D | net.h | 38 u16_t net_idx; member 60 u16_t net_idx; /* NetKeyIndex */ member 111 u16_t net_idx; member 344 struct bt_mesh_subnet *bt_mesh_subnet_get(u16_t net_idx); 369 u16_t net_idx; member 384 void friend_cred_refresh(u16_t net_idx); 388 int friend_cred_del(u16_t net_idx, u16_t addr);
|
A D | provisioner_prov.h | 79 u16_t net_idx; member 96 u16_t net_idx; /* Netkey index got during provisioning */ member 407 u8_t provisioner_temp_prov_set_net_idx(const u8_t *net_key, u16_t net_idx); 413 … u16_t unicast_addr, u16_t net_idx, u8_t flags, bt_u32_t iv_index,
|
A D | prov.h | 23 void bt_mesh_prov_complete(u16_t net_idx, u16_t addr);
|
/AliOS-Things-master/components/ble_mesh/bt_shell/bt_mesh/ |
A D | shell.c | 64 u16_t net_idx; member 368 net.net_idx = net_idx, net.local = addr; in prov_complete() 376 net.net_idx = net_idx, net.local = addr; in genie_prov_complete_notify() 1069 net.net_idx = strtoul(argv[1], NULL, 0); in cmd_netidx() 1092 .net_idx = net.net_idx, in cmd_net_send() 2045 ctx.net_idx = key->net_idx; in local_model_send() 2135 uint16_t dst_addr, net_idx; in cmd_prov_node_reset() local 2144 net_idx = strtoul(argv[1], NULL, 0); in cmd_prov_node_reset() 2441 pub.net_idx = strtoul(argv[6], NULL, 0); in hb_pub_set() 2588 u16_t net_idx, addr; in cmd_provision() local [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/sig_model/cli/ |
A D | light_lightness_cli.c | 103 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_get() 150 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_set() 186 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_linear_get() 234 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_linear_set() 269 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_last_get() 304 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_def_get() 345 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_def_set() 379 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_range_get() 421 ctx.net_idx = netkey_idx; in ble_mesh_light_lightness_range_set()
|
A D | light_ctl_cli.c | 103 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_set() 140 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_get() 188 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_temp_set() 223 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_temp_get() 265 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_def_set() 299 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_def_get() 340 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_temp_range_set() 374 ctx.net_idx = netkey_idx; in ble_mesh_light_ctl_temp_range_get()
|
A D | generic_level_cli.c | 58 ctx.net_idx = netkey_idx; in ble_mesh_generic_level_get() 104 ctx.net_idx = netkey_idx; in ble_mesh_generic_level_set() 152 ctx.net_idx = netkey_idx; in ble_mesh_generic_level_delta_set() 199 ctx.net_idx = netkey_idx; in ble_mesh_generic_level_move_set()
|
A D | generic_onoff_cli.c | 59 ctx.net_idx = netkey_idx; in ble_mesh_generic_onoff_get() 103 ctx.net_idx = netkey_idx; in ble_mesh_generic_onoff_set()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/aos/ |
A D | mesh.c | 101 static void mesh_complete_cb(u16_t net_idx, u16_t addr) in mesh_complete_cb() argument 104 event_data.net_idx = net_idx; in mesh_complete_cb() 123 event_data.net_idx = ctx->net_idx; in mesh_op_cb() 532 .net_idx = net_id, in ble_stack_mesh_send() 615 int ble_stack_mesh_cfg_beacon_get(uint16_t net_idx, uint16_t addr, uint8_t *status) in ble_stack_mesh_cfg_beacon_get() argument 617 return bt_mesh_cfg_beacon_get(net_idx, addr, status); in ble_stack_mesh_cfg_beacon_get() 620 int ble_stack_mesh_cfg_beacon_set(uint16_t net_idx, uint16_t addr, uint8_t val, uint8_t *status) in ble_stack_mesh_cfg_beacon_set() argument 622 return bt_mesh_cfg_beacon_set(net_idx, addr, val, status); in ble_stack_mesh_cfg_beacon_set()
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_mesh.c | 132 static void mesh_provision_complete(u16_t net_idx, u16_t addr) in mesh_provision_complete() argument 166 extern void genie_prov_complete_notify(u16_t net_idx, u16_t addr); in mesh_provision_complete() 167 genie_prov_complete_notify(net_idx, addr); in mesh_provision_complete()
|
A D | genie_provision.c | 317 uint16_t net_idx; in genie_provision_ultra_prov_recv_data() local 343 net_idx = 0; in genie_provision_ultra_prov_recv_data() 348 net_idx, iv_index, addr); in genie_provision_ultra_prov_recv_data() 352 bt_mesh_provision(buf + 1, net_idx, flags, iv_index, addr, p_ultra_prov_devkey); in genie_provision_ultra_prov_recv_data()
|