/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/friendship/ |
D | msg_va_collision.sh | 8 # to Friend when LPN is subscribed to 2 virtual addresses with collision. 10 # 1. LPN subscribes a model to 2 virtual addresses with collision and sends single Friend 11 # Subscription List Add message to its friend. 13 # 2.1. Friend sends a message to each virtual address, LPN receives both messages. 15 # 3.1. LPN unsubscribes from one of the virtual addresses. At this step no Friend Subscription 16 # Remove messages are sent from LPN to its friend. 17 # 3.2. Friend sends a message to each virtual address. LPN receives both, but successfully decrypts 20 # 4.1. LPN unsubscribes from the second virtual address and sends Friend Subscription Remove message 21 # to its friend. 22 # 4.2. Friend sends a message to each virtual address, but non of them are received by LPN.
|
D | overflow.sh | 7 # Test friend queue overflow
|
D | msg_frnd.sh | 7 # Send messages from the friend to the LPN
|
D | lpn_terminate_cb.sh | 10 # This covers a corner case scenario where the LPN has received a friend offer, but has
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_friendship.c | 22 * Tests both the friend and the low power role in various scenarios. 93 /* Friend test functions */ 95 /** Initialize as a friend and wait for the friendship to be established. 110 /** Initialize as a friend, and wait for multiple friendships to be established 139 /** As a friend, send messages to the LPN. 157 /* Send unsegmented message from friend to LPN: */ in test_friend_msg() 175 * This tests the friend role's re-encryption mechanism for the second in test_friend_msg() 198 /* - 2 for each SegAck (SegAcks are sent faster than Friend Poll messages); in test_friend_msg() 206 /** As a friend, overflow the message queue for the LPN with own packets. 238 "Friend never polled"); in test_friend_overflow() [all …]
|
D | friendship_common.c | 57 LOG_INF("Friend: established with 0x%04x", lpn_addr); in friend_established() 64 LOG_INF("Friend: terminated with 0x%04x", lpn_addr); in friend_terminated() 70 LOG_INF("Friend: Poll from 0x%04x", lpn_addr); in friend_polled() 74 BT_MESH_FRIEND_CB_DEFINE(friend) = {
|
D | test_persistence.c | 201 uint8_t friend; member 220 .friend = 1, 236 .friend = 0, 928 current_stack_cfg->friend, &status); in test_cfg_save() 929 if (err || status != current_stack_cfg->friend) { in test_cfg_save() 930 FAIL("Friend set failed (err %d, status %u)", err, status); in test_cfg_save() 1017 if (err || status != current_stack_cfg->friend) { in test_cfg_load() 1018 FAIL("Friend get failed (err %d, status %u)", err, status); in test_cfg_load()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | net.h | 84 * used for Friend Queue free space calculations. 94 /* Friend Clear Procedure */ 97 uint16_t frnd; /* Previous Friend's address */ 115 BT_MESH_LPN_ENABLED, /* LPN enabled, but no Friend */ 117 BT_MESH_LPN_WAIT_OFFER, /* Friend Req sent */ 128 /* Address of our Friend when we're a LPN. Unassigned if we don't 129 * have a friend yet. 133 /* Value from the friend offer */ 140 uint8_t groups_changed:1, /* Friend Subscription List needs updating */ 143 fsn:1, /* Friend Sequence Number */ [all …]
|
D | testing.h | 51 /** Send Friend Subscription List Add message. 54 * be stored by Friend node. 62 /** Send Friend Subscription List Remove message. 64 * Used by Low Power node to remove the group addresses from Friend node 66 * by Friend node.
|
D | Kconfig | 188 local messages. When Friend feature is enabled and the node is 202 bool "Use a separate extended advertising set for Friend advertising" 205 Use a separate extended advertising set for Friend advertising, 207 extended advertising set makes the Friend node send friendship 926 trimmed to not overflow the Friend queue. 1600 until it has successfully set up Friendship with a Friend 1604 bool "Automatically start looking for Friend nodes once provisioned" 1608 looking for Friend nodes. If this option is disabled LPN mode 1618 will wait before starting to look for Friend nodes. 1621 int "Retry timeout for Friend requests" [all …]
|
D | friend.c | 22 #include "friend.h" 37 CONFIG_LOG_MODE_DEFERRED Kconfig option when Friend feature is enabled. 46 /* PDUs from Friend to the LPN should only be transmitted once with the 63 BUILD_ASSERT(CONFIG_BT_MESH_LABEL_COUNT <= 0xFFFU, "Friend doesn't support more than 4096 labels."); 263 LOG_WRN("Too short Friend Clear"); in bt_mesh_friend_clear() 278 /* A Friend Clear message is considered valid if the result of the in bt_mesh_friend_clear() 279 * subtraction of the value of the LPNCounter field of the Friend in bt_mesh_friend_clear() 281 * value of the LPNCounter field of the Friend Clear message, modulo in bt_mesh_friend_clear() 320 LOG_WRN("No space in friend subscription list"); in friend_sub_add() 471 LOG_DBG("Re-encrypting friend pdu (SeqNum %06x -> %06x)", meta.crypto.seq_num, bt_mesh.seq); in unseg_app_sdu_prepare() [all …]
|
D | lpn.c | 195 LOG_ERR("Sending Friend Request failed (err %d)", err); in friend_clear_sent() 324 LOG_ERR("Sending Friend Request failed (err %d)", err); in friend_req_send_end() 596 /* If the message was a Friend control message, it's possible that a in bt_mesh_lpn_msg_received() 611 LOG_DBG("Requesting more messages from Friend"); in bt_mesh_lpn_msg_received() 634 LOG_WRN("Too short Friend Offer"); in bt_mesh_lpn_friend_offer() 639 LOG_WRN("Ignoring unexpected Friend Offer"); in bt_mesh_lpn_friend_offer() 656 /* Create friend credentials for each of the valid keys in the in bt_mesh_lpn_friend_offer() 702 LOG_WRN("Too short Friend Clear Confirm"); in bt_mesh_lpn_friend_clear_cfm() 707 LOG_WRN("Ignoring unexpected Friend Clear Confirm"); in bt_mesh_lpn_friend_clear_cfm() 717 LOG_WRN("Invalid parameters in Friend Clear Confirm"); in bt_mesh_lpn_friend_clear_cfm() [all …]
|
D | transport.c | 28 #include "friend.h" 89 friend_cred:1, /* Using Friend credentials */ 149 LOG_ERR("Not enough space in Friend Queue"); in send_unseg() 153 LOG_WRN("No space in Friend Queue"); in send_unseg() 161 /* PDUs for a specific Friend should only go in send_unseg() 162 * out through the Friend Queue. in send_unseg() 548 LOG_ERR("Not enough space in Friend Queue for %u segments", tx->seg_n + 1); in send_seg() 588 /* PDUs for a specific Friend should only go in send_seg() 589 * out through the Friend Queue. in send_seg() 599 /* This can happen if segments only went into the Friend Queue */ in send_seg() [all …]
|
D | CMakeLists.txt | 34 zephyr_library_sources_ifdef(CONFIG_BT_MESH_FRIEND friend.c)
|
D | subnet.h | 166 * @param frnd_addr Address of the Friend node in the friendship. 168 * @param frnd_counter The Friend node's counter parameter.
|
D | net.c | 27 #include "friend.h" 731 /* Update NID if RX, RX was with friend credentials or when bridging the message */ in bt_mesh_net_relay() 746 /* When the Friend node relays message for lpn, the message will be in bt_mesh_net_relay() 909 * Low Power mode, but the message was not encrypted with the friend in bt_mesh_net_recv()
|
/Zephyr-latest/tests/bluetooth/mesh/basic/ |
D | testcase.yaml | 23 bluetooth.mesh.friend: 25 extra_args: CONF_FILE=friend.conf
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | statistic.h | 46 /** Counter of frames that were initiated to send over friend bearer. */ 48 /** Counter of frames that succeeded to send over friend bearer. */
|
D | main.h | 566 /** Friend feature */ 656 /** @brief Send out a Friend Poll message. 658 * Send a Friend Poll message to the Friend of this node. If there is no 673 * @param friend_addr Friend address. 674 * @param queue_size Friend queue size. 676 * Friend response. 687 * @param friend_addr Friend address. 694 * polled the friend node. 700 * @param friend_addr Friend address. 716 /** Friend Node callback functions. */ [all …]
|
D | cfg.h | 283 /** @brief Enable or disable the Friend feature. 285 * Any active friendships will be terminated immediately if the Friend feature 288 * Support for the Friend feature must be enabled through the 291 * @param friendship New Friend feature state. Must be one of 295 * @retval 0 Successfully changed the Friend feature state. 296 * @retval -ENOTSUP The Friend feature is not supported. 302 /** @brief Get the current Friend state. 304 * @returns The Friend feature state.
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/blob_mdls/ |
D | blob_cli_friend.sh | 8 # on friend node and BLOB Server on LPNs.
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | core.rst | 16 a Friend node, which is responsible for relaying any messages directed to the 18 either send messages or poll the Friend node for any incoming messages. 23 interval, poll event timing and Friend requirements is controlled through the
|
/Zephyr-latest/doc/connectivity/bluetooth/ |
D | features.rst | 77 * Relay, Friend Node, Low-Power Node (LPN) and GATT Proxy features
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | ccp_call_ctrl.c | 22 #define CALLER_ID "friend"
|
/Zephyr-latest/doc/introduction/ |
D | index.rst | 151 * Relay, Friend Node, Low-Power Node (LPN) and GATT Proxy features
|