Home
last modified time | relevance | path

Searched refs:lpn (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/
Dlpn.c41 #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 …]
Dlpn.h19 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()
Dfriend.c95 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 …]
Dnet.h59 uint16_t lpn; member
223 struct bt_mesh_lpn lpn; /* Low Power Node state */ member
DCMakeLists.txt32 zephyr_library_sources_ifdef(CONFIG_BT_MESH_LOW_POWER lpn.c)
Dsubnet.c895 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()
Dnet.c438 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()
Dblob_srv.c155 bt_mesh.lpn.queue_size / segments_per_chunk); in pull_req_max()
Dtransport.c999 if (rx->ctx.addr == bt_mesh.lpn.frnd) { in ctl_recv()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_friendship.c1176 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 …]
Dfriendship_common.c100 BT_MESH_LPN_CB_DEFINE(lpn) = {
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dshell.c1792 SHELL_CMD(lpn, &low_pwr_cmds, "Low Power commands", bt_mesh_shell_mdl_cmds_help),
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dshell.rst144 ``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/
Dbtp_mesh.c1642 static uint8_t lpn(const void *cmd, uint16_t cmd_len, in lpn() function
4828 .func = lpn,
/Zephyr-latest/doc/releases/
Drelease-notes-2.3.rst1070 * :github:`24014` - Bluetooth: Mesh: Friend node not cache for lpn which receiveing unknown app_idx
Drelease-notes-2.5.rst1483 * :github:`29544` - Bluetooth: Mesh: Friend node unable relay message for lpn