Sniff UART traffic while shell is enabled

Hi,

I am hoping to send/receive binary data (a protocol) on the same UART that has logging/shell enabled. Is there a way to access the UART RX traffic that the shell gets? I would like to pass it on to a function of my own for processing.

Parents Reply
  • Thank you. Basically, I want to do something like the following:

    void uart_rx(uint8_t *data, uint16_t length)
    {
      // In the Shell UART example, the shell is already churning over incoming bytes
      shell_rx_processing(data, length);
    
      // I want my own custom protocol engine to churn over the same incoming bytes
      // in parallel to the shell's processing
      my_custom_protocol_rx_processing(data, length);
    }


    Could you point me to where in the code I would need to add this additional processing?
Children
Related