/Zephyr-latest/subsys/bluetooth/mesh/ |
D | lpn.c | 41 #define RX_DELAY_CORRECTION(lpn) ((lpn)->adv_duration) argument 43 #define RX_DELAY_CORRECTION(lpn) 0 argument 64 #define REQ_RETRY_DURATION(lpn) (LPN_RECV_DELAY + (lpn)->adv_duration + \ argument 65 (lpn)->recv_win + POLL_RETRY_TIMEOUT) 72 #define REQ_ATTEMPTS(lpn) MIN(REQ_ATTEMPTS_MAX, \ argument 73 POLL_TIMEOUT / REQ_RETRY_DURATION(lpn)) 75 #define POLL_TIMEOUT_MAX(lpn) (POLL_TIMEOUT - \ argument 76 (REQ_ATTEMPTS(lpn) * REQ_RETRY_DURATION(lpn))) 118 static int32_t poll_timeout(struct bt_mesh_lpn *lpn) in poll_timeout() argument 123 return MIN(POLL_TIMEOUT_MAX(lpn), 1 * MSEC_PER_SEC); in poll_timeout() [all …]
|
D | lpn.h | 19 return bt_mesh.lpn.established; in bt_mesh_lpn_established() 29 return (addr == bt_mesh.lpn.frnd); in bt_mesh_lpn_match() 38 return (bt_mesh.lpn.state == BT_MESH_LPN_WAIT_UPDATE); in bt_mesh_lpn_waiting_update()
|
D | friend.c | 95 if (frnd->lpn == BT_MESH_ADDR_UNASSIGNED) { in is_lpn_unicast() 99 return (addr >= frnd->lpn && addr < (frnd->lpn + frnd->num_elem)); in is_lpn_unicast() 135 return bt_mesh_friend_cred_create(&frnd->cred[idx], frnd->lpn, in friend_cred_create() 168 LOG_DBG("LPN 0x%04x", frnd->lpn); in friend_clear() 196 cb->terminated(frnd->subnet->net_idx, frnd->lpn); in friend_clear() 318 LOG_DBG("%04x added %04x to subscription list", frnd->lpn, addr); in friend_sub_add() 330 LOG_DBG("%04x removed %04x from subscription list", frnd->lpn, addr); in friend_sub_rem() 547 LOG_DBG("LPN 0x%04x", frnd->lpn); in encode_friend_ctl() 552 info.dst = frnd->lpn; in encode_friend_ctl() 571 LOG_DBG("lpn 0x%04x md 0x%02x", frnd->lpn, md); in encode_update() [all …]
|
D | net.h | 59 uint16_t lpn; member 223 struct bt_mesh_lpn lpn; /* Low Power Node state */ member
|
D | CMakeLists.txt | 32 zephyr_library_sources_ifdef(CONFIG_BT_MESH_LOW_POWER lpn.c)
|
D | subnet.c | 895 rx->sub = bt_mesh.lpn.sub; in bt_mesh_net_cred_find() 897 for (j = 0; j < ARRAY_SIZE(bt_mesh.lpn.cred); j++) { in bt_mesh_net_cred_find() 902 if (cb(rx, in, out, &bt_mesh.lpn.cred[j])) { in bt_mesh_net_cred_find()
|
D | net.c | 438 if (tx->friend_cred && bt_mesh.lpn.frnd) { in net_tx_cred_get() 439 return &bt_mesh.lpn.cred[SUBNET_KEY_TX_IDX(tx->sub)]; in net_tx_cred_get()
|
D | blob_srv.c | 155 bt_mesh.lpn.queue_size / segments_per_chunk); in pull_req_max()
|
D | transport.c | 999 if (rx->ctx.addr == bt_mesh.lpn.frnd) { in ctl_recv()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_friendship.c | 1176 TEST_CASE(lpn, est, "LPN: establish friendship"), 1177 TEST_CASE(lpn, msg_frnd, "LPN: message exchange with friend"), 1178 TEST_CASE(lpn, msg_mesh, "LPN: message exchange with mesh"), 1179 TEST_CASE(lpn, re_est, "LPN: re-establish friendship"), 1180 TEST_CASE(lpn, poll, "LPN: poll before timeout"), 1181 TEST_CASE(lpn, overflow, "LPN: message queue overflow"), 1182 TEST_CASE(lpn, group, "LPN: receive on group addrs"), 1183 TEST_CASE(lpn, loopback, "LPN: send to loopback addrs"), 1184 TEST_CASE(lpn, disable, "LPN: disable LPN"), 1185 TEST_CASE(lpn, term_cb_check, "LPN: no terminate cb trigger"), [all …]
|
D | friendship_common.c | 100 BT_MESH_LPN_CB_DEFINE(lpn) = {
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | shell.c | 1792 SHELL_CMD(lpn, &low_pwr_cmds, "Low Power commands", bt_mesh_shell_mdl_cmds_help),
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | shell.rst | 144 ``mesh lpn set <value: off, on>``. Mandatory parameters are marked with angle brackets (e.g. 213 ``mesh lpn set <Val(off, on)>`` 221 ``mesh lpn poll``
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 1642 static uint8_t lpn(const void *cmd, uint16_t cmd_len, in lpn() function 4828 .func = lpn,
|
/Zephyr-latest/doc/releases/ |
D | release-notes-2.3.rst | 1070 * :github:`24014` - Bluetooth: Mesh: Friend node not cache for lpn which receiveing unknown app_idx
|
D | release-notes-2.5.rst | 1483 * :github:`29544` - Bluetooth: Mesh: Friend node unable relay message for lpn
|