mirror of
https://github.com/espressif/openthread.git
synced 2026-10-20 22:48:17 +00:00
[posix] RCP(USB CDC ACM) hard reset support (#6454)
This commit handles the situation when RCP(USB CDC) performs hard reset. This commit brings an alternative to pseudo reset by handling the connection with RCP(USB CDC ACM) by reset the socket connection after the device is reset. When RCP is connected by USB CDC and we reset it, the RCP device is numerated in host operating system. So far for RCP(USB CDC) pseudo reset has been performing meaning only specific parts of firmware were reset thanks to results the connection hasn't been broken. For hard resetting RCP(USB CDC) device the host needs to handle the connection properly. It uses udev library to check if device enumeration has ended if libudev-dev package is present in the host system otherwise it waits few seconds. It works based on symlink to the RCP device created by udev in /dev/serial/by-id/ directory.
This commit is contained in:
@@ -52,6 +52,7 @@ This page lists the available common switches with description. Unless stated ot
|
||||
| OTNS | OT_OTNS | Enables support for [OpenThread Network Simulator](https://github.com/openthread/ot-ns). Enable this switch if you are building OpenThread for OpenThread Network Simulator. |
|
||||
| PLATFORM_UDP | OT_PLATFORM_UDP | Enables platform UDP support. |
|
||||
| REFERENCE_DEVICE | OT_REFERENCE_DEVICE | Enables support for Thread Test Harness reference device. Enable this switch on the reference device during certification. |
|
||||
| RESET_CONNECTION | OT_SPINEL_RESET_CONNECTION | Enables resetting connection with RCP device. Enable this switch if RCP uses USB transport and performs hard reset. Use symlink instead of file name pointing the RCP device i.e. /dev/serial/by-id/usb-device-name instead of /dev/ttyUSB0 in a connection configuration. |
|
||||
| SERVICE | OT_SERVICE | Enables support for injecting Service entries into the Thread Network Data. |
|
||||
| SETTINGS_RAM | OT_SETTINGS_RAM | Enables volatile-only storage of settings. |
|
||||
| SLAAC | OT_SLAAC | Enables support for adding auto-configured SLAAC addresses by OpenThread. This feature is enabled by default. |
|
||||
|
||||
Reference in New Issue
Block a user