| /openthread-latest/include/openthread/ |
| D | trel.h | 32 …* This file defines the OpenThread TREL (Thread Radio Encapsulation Link) APIs for Thread Over In… 41 #include <openthread/platform/trel.h> 48 * @addtogroup api-trel 51 * This module defines Thread Radio Encapsulation Link (TREL) APIs for Thread Over Infrastructure. 59 * Represents a TREL peer. 63 otExtAddress mExtAddress; ///< The Extended MAC Address of TREL peer. 64 otExtendedPanId mExtPanId; ///< The Extended PAN Identifier of TREL peer. 65 otSockAddr mSockAddr; ///< The IPv6 socket address of TREL peer. 69 * Represents an iterator for iterating over TREL peer table entries. 74 * Enables or disables TREL operation. [all …]
|
| /openthread-latest/src/core/radio/ |
| D | trel_interface.hpp | 31 * This file includes definitions for Thread Radio Encapsulation Link (TREL) interface. 41 #include <openthread/trel.h> 42 #include <openthread/platform/trel.h> 55 namespace Trel { namespace 66 * Represents a group of TREL counters. 71 * Represents a TREL link interface. 84 * Represents information about a discovered TREL peer. 93 * Returns the Extended MAC Address of the discovered TREL peer. 95 * @returns The Extended MAC Address of the TREL peer. 100 * Returns the Extended PAN Identifier of the discovered TREL peer. [all …]
|
| D | trel_link.hpp | 31 * This file includes definitions for Thread Radio Encapsulation Link (TREL). 55 namespace Trel { namespace 58 * @addtogroup core-trel 61 * This module includes definitions for Thread Radio Encapsulation Link (TREL) 67 * Represents a Thread Radio Encapsulation Link (TREL). 76 static constexpr uint16_t kMtuSize = 1280 - 48 - sizeof(Header); ///< MTU size for TREL frame. 77 static constexpr uint8_t kFcsSize = 0; ///< FCS size for TREL frame. 81 * on a received TREL packet from the peer if there is a discrepancy. 104 * Notifies TREL radio link that device's extended MAC address has changed for it to update any 110 * Enables the TREL radio link. [all …]
|
| D | trel_packet.hpp | 31 * This file includes definitions for Thread Radio Encapsulation Link (TREL) Packet 48 namespace Trel { namespace 51 * Represents a TREL radio link packet encapsulation header. 62 kTypeBroadcast = 0, ///< A TREL broadcast packet. 63 kTypeUnicast = 1, ///< A TREL unicast packet. 64 kTypeAck = 2, ///< A TREL Ack packet. 68 * Represents Ack Mode field in TREL header. 72 kNoAck, ///< No TREL Ack is requested. 73 kAckRequested, ///< A TREL Ack is requested. 217 …static constexpr uint8_t kAckModeFlag = (1 << 2); // Bit 2 indicate "ack mode" (TREL ack requested… [all …]
|
| /openthread-latest/include/openthread/platform/ |
| D | trel.h | 32 …* This file includes the platform abstraction for Thread Radio Encapsulation Link (TREL) using D… 49 * @addtogroup plat-trel 52 …* This module includes the platform abstraction for Thread Radio Encapsulation Link (TREL) using… 59 * Initializes and enables TREL platform layer. 63 …* 1) TREL platform layer MUST open a UDP socket to listen for and receive TREL messages from peers… 65 …* The socket is also bound to network interface(s) on which TREL is to be supported. The socket an… 66 * should stay valid while TREL is enabled. 69 …* domain to discover other devices supporting TREL. The ongoing browse will produce two different … 70 … "remove" events. When the browse is started, it should produce an "add" event for every TREL peer 71 …* currently present on the network. Whenever a TREL peer goes offline, a "remove" event should be… [all …]
|
| /openthread-latest/tests/toranj/cli/ |
| D | test-702-multi-radio-discover-by-rx.py | 35 # Test description: This test covers behavior of device after TREL network is temporarily disabled 36 # and rediscovery of TREL by receiving message over that radio from the neighbor. 39 # (15.4+trel) (15.4+trel) 41 # On r2 we disable trel temporarily. 72 verify(r1.multiradio_get_radios() == '[15.4, TREL]') 73 verify(r2.multiradio_get_radios() == '[15.4, TREL]') 94 # Verify that r1 detected both TREL & 15.4 as supported radios by r2 105 verify('TREL' in radios) 111 # Ping r2 from r1 and verify that r1 prefers trel radio link for 120 verify(radios['TREL'] >= high_preference_threshold) [all …]
|
| D | test-701-multi-radio-probe.py | 35 # Test description: This test covers behavior of device after trel network is temporarily disabled 36 # and rediscovery of trel radio using probe mechanism. 39 # (15.4+trel) (15.4+trel) 41 # On r2 we disable trel temporarily. 72 verify(r1.multiradio_get_radios() == '[15.4, TREL]') 73 verify(r2.multiradio_get_radios() == '[15.4, TREL]') 94 # Verify that r1 detected both TREL & 15.4 as supported radios by r2 105 verify('TREL' in radios) 111 # Ping r2 from r1 and verify that r1 prefers trel radio link for 120 verify(radios['TREL'] >= high_preference_threshold) [all …]
|
| D | test-705-multi-radio-discover-scan.py | 66 verify(n2.multiradio_get_radios() == '[TREL]') 67 verify(n3.multiradio_get_radios() == '[15.4, TREL]') 69 verify(s2.multiradio_get_radios() == '[TREL]') 70 verify(s3.multiradio_get_radios() == '[15.4, TREL]') 94 # Scan by s1 (15.4 only), expect to see n1(15.4) and n3(15.4+trel) 98 # Scan by s2 (trel only), expect to see n2(trel) and n3(15.4+trel) 101 # Scan by s3 (trel+15.4), expect to see all nodes 107 # Scan by n1 (15.4 only), expect to see only n3(15.4+trel) 110 # Scan by n2 (trel only), expect to see only n3(15.4+trel) 113 # Scan by n3 (15.4+trel), expect to see n1(15.4) and n2(trel)
|
| D | test-706-multi-radio-trel-peer-addr-port-change-discovery.py | 35 # Test description: This test validates the mechanism to discover and update the TREL peer info whe… 36 # a received TREL packet from a peer (when peer IPv6 address or port number gets changes). 56 r1.form("trel-peer-disc") 64 verify(r1.multiradio_get_radios() == '[15.4, TREL]') 65 verify(r2.multiradio_get_radios() == '[15.4, TREL]') 66 verify(c1.multiradio_get_radios() == '[15.4, TREL]') 73 # Validate that `node` has discovered `peer_nodes` as its TREL peers 74 # and validate that the correct TREL socket address is discovered 89 # Check that all nodes see each other as TREL peers with the correct 90 # TREL socket address. [all …]
|
| D | test-700-multi-radio-join.py | 37 # Parent node with trel and 15.4 with 3 children. 40 # (trel + 15.4) 45 # (15.4) (trel) (trel+15.4) 67 verify(parent.multiradio_get_radios() == '[15.4, TREL]') 69 verify(c2.multiradio_get_radios() == '[TREL]') 70 verify(c3.multiradio_get_radios() == '[15.4, TREL]') 98 verify('TREL' in radios) 103 verify('TREL' in radios)
|
| D | test-704-multi-radio-scan.py | 66 verify(n2.multiradio_get_radios() == '[TREL]') 67 verify(n3.multiradio_get_radios() == '[15.4, TREL]') 69 verify(s2.multiradio_get_radios() == '[TREL]') 70 verify(s3.multiradio_get_radios() == '[15.4, TREL]') 90 # Scan by s1 (15.4 only), expect to see n1(15.4) and n3(15.4+trel) 94 # Scan by s2 (trel only), expect to see n2(trel) and n3(15.4+trel) 97 # Scan by s3 (trel+15.4), expect to see all nodes
|
| /openthread-latest/src/core/api/ |
| D | trel_api.cpp | 31 …* This file implements the OpenThread TREL (Thread Radio Encapsulation Link) APIs for Thread Ove… 38 #include <openthread/trel.h> 46 AsCoreType(aInstance).Get<Trel::Interface>().SetEnabled(aEnable); in otTrelSetEnabled() 49 bool otTrelIsEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<Trel::Interface>().I… in otTrelIsEnabled() 53 AsCoreType(aInstance).Get<Trel::Interface>().InitIterator(*aIterator); in otTrelInitPeerIterator() 58 return AsCoreType(aInstance).Get<Trel::Interface>().GetNextPeer(*aIterator); in otTrelGetNextPeer() 63 return AsCoreType(aInstance).Get<Trel::Interface>().GetNumberOfPeers(); in otTrelGetNumberOfPeers() 68 AsCoreType(aInstance).Get<Trel::Interface>().SetFilterEnabled(aEnable); in otTrelSetFilterEnabled() 73 return AsCoreType(aInstance).Get<Trel::Interface>().IsFilterEnabled(); in otTrelIsFilterEnabled() 78 return AsCoreType(aInstance).Get<Trel::Interface>().GetCounters(); in otTrelGetCounters() [all …]
|
| /openthread-latest/tests/toranj/ |
| D | build.sh | 40 … echo " ncp-trel : Build OpenThread NCP mode with simulation platform - TREL radio " 41 …echo " ncp-15.4+trel : Build OpenThread NCP mode with simulation platform - multi radio (… 44 … echo " cli-trel : Build OpenThread CLI mode with simulation platform - TREL radio " 45 …echo " cli-15.4+trel : Build OpenThread CLI mode with simulation platform - multi radio (… 49 echo " posix-trel : Build OpenThread POSIX - TREL radio " 50 echo " posix-15.4+trel : Build OpenThread POSIX - multi radio (15.4+TREL)" 140 ncp-trel) 142 echo "Building OpenThread NCP with simulation platform - TREL radio" 153 … "${top_builddir}/examples/apps/ncp/ot-ncp-ftd" "${top_builddir}/examples/apps/ncp/ot-ncp-ftd-trel" 156 ncp-15.4+trel | ncp-trel+15.4) [all …]
|
| D | start.sh | 147 ./build.sh "${coverage_option}" "${app_name}"-trel || die "${app_name}-trel build failed" 148 …./build.sh "${coverage_option}" "${app_name}"-15.4+trel || die "${app_name}-15.4+trel build failed" 164 run cli/test-706-multi-radio-trel-peer-addr-port-change-discovery.py 212 # Skip the "channel-select" test on a TREL only radio link, since it 214 if [ "$TORANJ_RADIO" != "trel" ]; then 278 # Skip the "channel-select" test on a TREL only radio link, since it 281 if [ "$TORANJ_RADIO" != "trel" ]; then
|
| /openthread-latest/tests/toranj/ncp/ |
| D | test-702-multi-radio-discovery-by-rx.py | 34 # Test description: This test covers behavior of device after TREL network is temporarily disabled 35 # and rediscovery of TREL by receiving message over that radio from the neighbor. 38 # (15.4+trel) (15.4+trel) 40 # On r2 we disable trel temporarily. 104 # Check that r1 detected both TREL and 15.4 as supported radio by r2 124 # Send from r1 to r2 and verify that r1 prefers TREL radio link for sending to r2. 139 # Now disable TREL link on r2 and send again. We expect that r1 would quickly learn that trel is 177 # Enable trel back on r2, start sending traffic from r2 to r1. 178 # r2 would use probe mehcnasim to discover that trel is enabled again 179 # r1 should notice new rx on trel and update trel preference for r1
|
| D | test-704-multi-radio-scan.py | 71 # Scan by s1 (15.4 only), expect to see n1(15.4) and n3(15.4+trel) 77 # Scan by s2 (trel only), expect to see n2(trel) and n3(15.4+trel) 83 # Scan by s3 (trel+15.4), expect to see all nodes 92 # Scan by n1 (15.4 only), expect to see only n3(15.4+trel) 98 # Scan by n2 (trel only), expect to see only n3(15.4+trel) 104 # Scan by n3 (15.4+trel), expect to see n1(15.4) and n2(trel)
|
| D | test-705-multi-radio-discover-scan.py | 71 # Scan by s1 (15.4 only), expect to see n1(15.4) and n3(15.4+trel) 77 # Scan by s2 (trel only), expect to see n2(trel) and n3(15.4+trel) 83 # Scan by s3 (trel+15.4), expect to see all nodes 92 # Scan by n1 (15.4 only), expect to see only n3(15.4+trel) 98 # Scan by n2 (trel only), expect to see only n3(15.4+trel) 104 # Scan by n3 (15.4+trel), expect to see n1(15.4) and n2(trel)
|
| D | test-701-multi-radio-probe.py | 34 # Test description: This test covers behavior of device after trel network is temporarily disabled 35 # and rediscovery of trel radio using probe mechanism. 38 # (15.4+trel) (15.4+trel) 40 # On r2 we disable trel temporarily. 104 # Check that r1 detected both trel and 15.4 as supported radio by r2 124 # Send from r1 to r2 and verify that r1 prefers trel radio link for sending to r2. 139 # Now disable trel link on r2 and send again. We expect that r1 would quickly learn that trel is 177 # Enable trel back on r2, start sending traffic from r1 to r2 178 # The probe mechanism should kick and detect that r2 has trel again.
|
| /openthread-latest/src/core/config/ |
| D | trel.h | 31 * This file includes compile-time configurations for TREL. 38 * @addtogroup config-trel 41 * This module includes configuration variables for TREL. 49 * Specifies the capacity of TREL peer table. Only non-zero value 50 * will be directly used for setting the TREL peer table capacity.
|
| /openthread-latest/examples/platforms/simulation/ |
| D | trel.c | 33 #include <openthread/platform/trel.h> 66 …uint8_t mData[TREL_MAX_PACKET_SIZE]; // TREL UDP packet (when TREL_DATA_MESSAGE), or service T… 131 fprintf(stderr, "\r\n[trel-sim] Sending message (num:%d, type:%s, port:%u)\r\n", i, in sendPendingTxMessages() 151 fprintf(stderr, "\r\n[trel-sim] sendBrowseMessage()\r\n"); in sendBrowseMessage() 170 fprintf(stderr, "\r\n[trel-sim] sendServiceMessage(%s): service-port:%u, txt-len:%u\r\n", in sendServiceMessage() 180 fprintf(stderr, "\r\n[trel-sim] processMessage(len:%u, type:%s, port:%u)\r\n", aLength, in processMessage() 224 fprintf(stderr, "\r\n[trel-sim] otPlatTrelEnable() *aUdpPort=%u\r\n", *aUdpPort); in otPlatTrelEnable() 239 fprintf(stderr, "\r\n[trel-sim] otPlatTrelDisable()\r\n"); in otPlatTrelDisable() 265 fprintf(stderr, "\r\n[trel-sim] otPlatTrelNotifyPeerSocketAddressDifference()\r\n"); in otPlatTrelNotifyPeerSocketAddressDifference() 288 fprintf(stderr, "\r\n[trel-sim] otPlatTrelRegisterService(aPort:%d, aTxtData:", aPort); in otPlatTrelRegisterService() [all …]
|
| /openthread-latest/src/posix/platform/ |
| D | trel.cpp | 31 * This file implements platform for TREL using IPv6/UDP socket under POSIX. 47 #include <openthread/platform/trel.h> 56 static constexpr uint16_t kMaxPacketSize = 1400; // The max size of a TREL packet. 78 static const char kLogModuleName[] = "Trel"; 198 // Bind to the TREL interface in PrepareSocket() 396 // This function initialize the TREL DNS-SD module on the given in trelDnssdInitialize() 397 // TREL Network Interface. in trelDnssdInitialize() 406 // other devices supporting TREL. The ongoing browse will produce in trelDnssdStartBrowse() 409 // every TREL peer currently present on the network. Whenever a in trelDnssdStartBrowse() 410 // TREL peer goes offline, a "remove" event should be produced. in trelDnssdStartBrowse() [all …]
|
| D | openthread-posix-config.h | 286 #error "OPENTHREAD_CONFIG_POSIX_APP_TREL_INTERFACE_NAME was removed (no longer applicable with TREL… 290 #error "OPENTHREAD_CONFIG_POSIX_TREL_USE_NETLINK_SOCKET was removed (no longer applicable with TREL… 296 * This setting configures the TREL UDP port number. 395 * This setting configures the capacity of TREL packet pool for transmission. 422 …* Define to 1 to let TREL select the infrastructure interface, otherwise use the interface in the …
|
| /openthread-latest/tests/scripts/thread-cert/border_router/ |
| D | test_trel_connectivity.py | 35 # This test verifies TREL connectivity. 108 self.skipTest("TREL is not supported") 147 print('br1 trel counters', counters) 156 print('br1 trel counters after reset', counters) 173 # Make sure BR1 and BR2 always use TREL for transmitting ping request and reply
|
| /openthread-latest/src/posix/platform/include/openthread/ |
| D | openthread-system.h | 308 * Initializes TREL on the given interface. 310 …* After this call, TREL is ready to be enabled on the interface. Callers need to make sure TREL is… 316 * Deinitializes TREL. 318 …* After this call, TREL is deinitialized. It's ready to be initialized on any given interface. Cal… 319 * make sure TREL is disabled prior to this call.
|
| /openthread-latest/doc/ |
| D | ot_api_doc.h | 99 * @defgroup api-trel TREL - Thread Stack 192 * @defgroup plat-trel TREL - Platform
|