Shell interface over multiple interface

Hi,

I am using nrf52840 and implemented shell interface. I have testing it over uart and uart over usb. At any given moment it can be enabled over 1 interface in device tree. Is there a way to enable shell over multiple interface simultaneously.

Thank you.

  • Hi,

    Unfortunately, both USB CDC ACM and UART are considered a Serial/UART interface, and the chosen "UART" interface for Shell must be decided at compile time via DeviceTree, as you have found. That's why we cannot have Shell over both of them, just like we can't have Shell over two different UART instances.

    If this is absolutely necessary, it should be possible to modify the Shell subsystem to allow this, though it will definitely not be trivial. The Shell subsystem itself supports multiple simultaneous instances and backend, so there would already be some building blocks available towards the goal. 

    Also, Shell is a Zephyr feature, so you should be able to find more advises and support on the Zephyr Discord server as well.

    Hieu

Related