Search code examples
loggingterminaladbuart

Regarding UART logging in terminal


I am working in a Buds project which runs on RTOS. We can only get logs through UART port. Is there any way to see UART logs in terminal? I am using GitBash/ CMD in Windows.

I am looking for ways (possibly by commands) to show those UART logs in my terminals similar to when I see ADB logs using ADB commands.


Solution

  • I couldn't understand properly what you were trying to convey.

    I assume you wish to view your UART log on PC/Development Host.

    You can use tools such as CoolTerm or PuTTY or minicom (on Linux).

    With PuTTY and minicom you will get native console like feel.

    You will need to configure your serial port setting for your Board, RTOS and Logger. Most board use the following setting (but you will need to confirm with your board & RTOS)

    1. Baud Rate : 115200
    2. Data Bits : 8
    3. Stop Bits : 1
    4. Parity : None
    5. Flow-Control : None/Disabled

    You will also need to select appropriate port. One can refer to your device manager on Windows and dmesg command output on Linux.

    ADB works on either on USB or Ethernet or Wi-Fi. Its quite different from how UART logs are handled.