Closed wensenl closed 3 weeks ago
A fix is missing in v5.1.4 and you can switch to release/v5.1 to resolve this issue. If you do not want to switch to the branch, you can manually add a line of code to fix the problem: https://github.com/espressif/esp-idf/blob/release/v5.1/components/openthread/src/spinel/esp_radio_spinel.cpp#L272
Of course, if you want to manually add a line of code, you need to set CONFIG_OPENTHREAD_MAC_MAX_CSMA_BACKOFFS_DIRECT
to a specific number (recommended setting is 4) because this macro is not added in esp-idf-v5.1.4. For example:
s_transmit_frame.mInfo.mTxInfo.mMaxCsmaBackoffs = 4;
@wensenl Hope https://github.com/espressif/esp-idf/issues/14056#issuecomment-2232669482 resolved your issue, feel free to reopen if any follow up questions.
Answers checklist.
IDF version.
esp-idf-v5.1.4
Espressif SoC revision.
ESP32/ESP32H2
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
Self developed motherboard(base )
Power Supply used.
External 5V
What is the expected behavior?
Hope there is no error(OPENTHREAD:[W] P-RadioSpinel-: Handle transmit done failed: ChannelAccessFailure) reported.
What is the actual behavior?
Steps to reproduce.
Debug Logs.
More Information.
No response