/Zephyr-latest/subsys/bluetooth/mesh/ |
D | beacon.c | 95 struct bt_mesh_beacon *beacon; in beacon_cache_match() local 98 beacon = subnet_beacon_get_by_type(sub, params->private); in beacon_cache_match() 100 return !memcmp(beacon->cache, params->auth, sizeof(beacon->cache)); in beacon_cache_match() 103 static void cache_add(const uint8_t auth[8], struct bt_mesh_beacon *beacon) in cache_add() argument 105 memcpy(beacon->cache, auth, sizeof(beacon->cache)); in cache_add() 128 struct bt_mesh_beacon *beacon = user_data; in beacon_complete() local 131 beacon->sent = k_uptime_get_32(); in beacon_complete() 256 #define BEACON_THRESHOLD(beacon) \ argument 257 ((10 * ((beacon)->last + 1)) * MSEC_PER_SEC - (5 * MSEC_PER_SEC)) 265 static int net_beacon_send(struct bt_mesh_subnet *sub, struct bt_mesh_beacon *beacon, in net_beacon_send() argument [all …]
|
D | priv_beacon_cli.c | 26 uint8_t beacon, rand_int; in handle_beacon_status() local 28 beacon = net_buf_simple_pull_u8(buf); in handle_beacon_status() 31 if (beacon != BT_MESH_BEACON_DISABLED && in handle_beacon_status() 32 beacon != BT_MESH_BEACON_ENABLED) { in handle_beacon_status() 33 LOG_WRN("Invalid beacon value 0x%02x", beacon); in handle_beacon_status() 37 LOG_DBG("0x%02x (%u s)", beacon, 10U * rand_int); in handle_beacon_status() 41 rsp->enabled = beacon; in handle_beacon_status() 49 .enabled = beacon, in handle_beacon_status()
|
D | priv_beacon_srv.c | 69 uint8_t beacon; in handle_beacon_set() local 75 beacon = net_buf_simple_pull_u8(buf); in handle_beacon_set() 76 if (beacon != BT_MESH_BEACON_DISABLED && in handle_beacon_set() 77 beacon != BT_MESH_BEACON_ENABLED) { in handle_beacon_set() 78 LOG_WRN("Invalid beacon value %u", beacon); in handle_beacon_set() 86 (void)bt_mesh_priv_beacon_set(beacon); in handle_beacon_set()
|
D | cfg.c | 30 uint8_t beacon; member 36 void bt_mesh_beacon_set(bool beacon) in bt_mesh_beacon_set() argument 38 if (atomic_test_bit(bt_mesh.flags, BT_MESH_BEACON) == beacon) { in bt_mesh_beacon_set() 42 atomic_set_bit_to(bt_mesh.flags, BT_MESH_BEACON, beacon); in bt_mesh_beacon_set() 44 if (beacon) { in bt_mesh_beacon_set() 445 bt_mesh_beacon_set(cfg.beacon); in cfg_set() 477 val.beacon = bt_mesh_beacon_enabled(); in store_pending_cfg()
|
D | subnet.h | 80 struct bt_mesh_key beacon; /* BeaconKey */ member
|
D | CMakeLists.txt | 10 beacon.c
|
D | subnet.c | 202 bt_mesh_key_destroy(&key->beacon); in subnet_keys_destroy() 348 err = bt_mesh_beacon_key(key, &keys->beacon); in net_keys_create() 354 LOG_DBG("BeaconKey %s", bt_hex(&keys->beacon, sizeof(struct bt_mesh_key))); in net_keys_create()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_beacon.c | 336 } beacon; variable 357 beacon.flags = net_buf_simple_pull_u8(buf); in beacon_scan_cb() 359 beacon.iv_index = net_buf_simple_pull_be32(buf); in beacon_scan_cb() 365 memcpy(beacon.random, buf->data, 13); in beacon_scan_cb() 366 bt_addr_le_copy(&beacon.adv_addr, addr); in beacon_scan_cb() 370 beacon.flags = private_beacon_data[0]; in beacon_scan_cb() 371 beacon.iv_index = sys_get_be32(&private_beacon_data[1]); in beacon_scan_cb() 374 if (!beacon.process_cb || beacon.process_cb(net_id, beacon.user_ctx)) { in beacon_scan_cb() 383 beacon.process_cb = process_cb; in wait_for_beacon() 384 beacon.user_ctx = ctx; in wait_for_beacon() [all …]
|
D | test_persistence.c | 198 uint8_t beacon; member 217 .beacon = 1, 233 .beacon = 0, 910 current_stack_cfg->beacon, &status); in test_cfg_save() 911 if (err || status != current_stack_cfg->beacon) { in test_cfg_save() 1002 if (err || status != current_stack_cfg->beacon) { in test_cfg_load()
|
/Zephyr-latest/samples/boards/st/power_mgmt/stm32wb_ble/ |
D | README.rst | 13 After startup, a first 2 seconds beacon is performed, 1 second break and 14 beacon is started again. 16 beacon sequence happens. 22 before beacon is started and between advertising peaks besides as SHUTDOWN mode
|
/Zephyr-latest/samples/bluetooth/beacon/ |
D | CMakeLists.txt | 5 project(beacon) project
|
D | README.rst | 22 This sample can be found under :zephyr_file:`samples/bluetooth/beacon` in the
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | priv_beacon.c | 144 SHELL_CMD_ARG(priv-beacon-get, NULL, NULL, cmd_priv_beacon_get, 1, 0), 145 SHELL_CMD_ARG(priv-beacon-set, NULL, "<Val(off, on)> <RandInt(10s steps)>",
|
/Zephyr-latest/samples/bluetooth/eddystone/ |
D | README.rst | 11 The Eddystone Configuration Service runs as a GATT service on the beacon while
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | priv_beacon_cli.rst | 15 beacons by periodically randomizing the beacon input data. This protects the
|
D | priv_beacon_srv.rst | 15 beacons by periodically randomizing the beacon input data. This protects the
|
D | provisioning.rst | 45 value database. The URI is advertised in a separate beacon, with a URI hash 46 included in the unprovisioned beacon, to tie the two together.
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | cfg.h | 76 void bt_mesh_beacon_set(bool beacon);
|
/Zephyr-latest/scripts/footprint/ |
D | plan.txt | 17 bt_beacon,default,nrf52840dk/nrf52840,samples/bluetooth/beacon,
|
/Zephyr-latest/doc/connectivity/bluetooth/ |
D | bluetooth-dev.rst | 175 A simple Bluetooth beacon application is shown below. The application 179 .. literalinclude:: ../../../samples/bluetooth/beacon/src/main.c 184 The key APIs employed by the beacon sample are :c:func:`bt_enable`
|
/Zephyr-latest/boards/shields/renesas_us159_da14531evz/doc/ |
D | index.rst | 56 :zephyr-app: samples/bluetooth/beacon
|
/Zephyr-latest/boards/lilygo/ttgo_t7v1_5/doc/ |
D | index.rst | 202 To build the bluetooth beacon sample: 206 :app: samples/bluetooth/beacon
|
/Zephyr-latest/boards/lilygo/ttgo_t8c3/doc/ |
D | index.rst | 209 To build the bluetooth beacon sample: 213 :zephyr-app: samples/bluetooth/beacon
|
/Zephyr-latest/boards/shields/mikroe_ble_tiny_click/doc/ |
D | index.rst | 65 :zephyr-app: samples/bluetooth/beacon
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_frame.c | 199 struct ieee802154_beacon *beacon = (struct ieee802154_beacon *)buf; in ieee802514_beacon_header_length() local 208 if (beacon->gts.desc_count) { in ieee802514_beacon_header_length() 210 beacon->gts.desc_count * IEEE802154_BEACON_GTS_SIZE; in ieee802514_beacon_header_length()
|