mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
181227afa7
This commit adds Nexus test case 1_4_TREL_TC_3, which verifies the multi-radio probe mechanism and TREL radio link rediscovery after a temporary disconnect, according to the Thread 1.4 specification. The implementation includes: - tests/nexus/test_1_4_TREL_TC_3.cpp: Sets up a topology with a multi-radio Border Router (DUT), a multi-radio Router, and a 15.4-only End Device. It simulates a TREL disconnect by disabling the TREL interface on the Router, verifies that the DUT falls back to 15.4, and then re-enables TREL to trigger and verify the probe mechanism for link rediscovery. - tests/nexus/verify_1_4_TREL_TC_3.py: Verifies the packet flow from the pcap output, ensuring that TREL is used when available, 15.4 is used during the TREL disconnect, and TREL usage resumes after rediscovery. - Updated tests/nexus/CMakeLists.txt and tests/nexus/run_nexus_tests.sh to include the new test in the build and default test list. The test ensures that the Thread stack correctly manages link preferences and successfully rediscovers more efficient radio links using the multi-radio probe mechanism.