uart-echo

command module
v0.0.0-...-a8ae7f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

The uart-echo command shows the ReadWriter interface implementation of the CH347 UART by doing a simple echo test.

How to test on linux:

  1. Connect your other USB TTL as follows:

    - CH347 UART1 USB to TTL converter

    - TX -> RX

    - RX -> TX

    - GND -> GND

  2. On the first terminal, set baud rate and start reading to see the input:

    stty -F /dev/ttyUSB0 115200 -echo

    cat /dev/ttyUSB0

  3. Start echo example with `go run` etc.

  4. On the second terminal, send whatever you like to be seen on your first terminal:

    echo "Whatever" > /dev/ttyUSB0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL