mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 05:49:54 +00:00
[nexus] add test 1.2.LP.5.3.1 for SSED attachment (#12594)
This commit adds a new Nexus test case 1.2.LP.5.3.1 which validates SSED attachment and CSL synchronization. Changes: - Added kAsSsed JoinMode to Nexus::Node platform to support joining as a Synchronized Sleepy End Device with default CSL parameters. - Implemented test_1_2_LP_5_3_1.cpp following the test specification for SSED attachment. - Implemented verify_1_2_LP_5_3_1.py to verify pcap output, ensuring correct use of 802.15.4-2015 frames and CSL synchronization. - Updated CMakeLists.txt and run_nexus_tests.sh to include the new test in the Nexus test suite.
This commit is contained in:
@@ -87,6 +87,15 @@ void Node::Join(Node &aNode, JoinMode aJoinMode)
|
||||
break;
|
||||
case kAsSed:
|
||||
break;
|
||||
case kAsSsed:
|
||||
{
|
||||
static constexpr uint32_t kDefaultCslPeriod = 100 * 1000 / OT_US_PER_TEN_SYMBOLS; // 100 ms
|
||||
static constexpr uint32_t kDefaultCslTimeout = 30; // 30 seconds
|
||||
|
||||
Get<Mac::Mac>().SetCslPeriod(kDefaultCslPeriod);
|
||||
Get<Mle::Mle>().SetCslTimeout(kDefaultCslTimeout);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
SuccessOrQuit(Get<Mle::Mle>().SetDeviceMode(Mle::DeviceMode(mode)));
|
||||
|
||||
Reference in New Issue
Block a user