The device has sent RESET_POWER_UP message before the communication with the host hadn't been established. It could be observed with pyspinel which displayed `Framing error`. This commit fixes the bug by initializing NCP after the host stated is ready to communicate. This commit reverts initialization the USB stack into function otPlatUartEnable to be consistent with others OpenThread platforms. OpenThread co-processor samples are not affected by #27071 as they use USB for SPINEL communication with host and not for UART console. Note: When co-processor communicates by USB CDC ACM and it is hard reset (what is happening in current Zephyr OpenThread platform) the connection needs to be properly handled by the host. For posix platform used together with RCP it was implemented in: https://github.com/openthread/openthread/pull/6454 and for NCP: https://github.com/openthread/wpantund/pull/492 . Signed-off-by: Lukasz Maciejonczyk <lukasz.maciejonczyk@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| ip | ||
| l2 | ||
| lib | ||
| buf.c | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||