Louie De Janeiru

UART test 본문

Linux

UART test

Louiey 2021. 1. 5. 15:25
sudo usermod -aG dialout $USER
sudo reboot

stty -F /dev/ttyS0 115200 cs8 -cstopb -parenb
stty -F /dev/ttyS1 115200 cs8 -cstopb -parenb
cat /dev/ttyS0
echo "123" > /dev/ttyS1

 

1. Oepn read terminal with ttyS0

2. Open write terminal with ttyS1

3. On read terminal, read ttyS0

4. On write terminal, write "123"

5. Should see "123" on read terminal

 

 

In case minicom...

minicom -D /dev/ttyS1

you can type strings on minicom screen and will get at opposite terminal

'Linux' 카테고리의 다른 글

WSL config  (0) 2021.02.01
normal user sudo config  (0) 2020.12.17
Orangepizero2 apt-get error  (0) 2020.11.18
usb mount  (0) 2020.11.17
ssh install and configure  (0) 2020.11.17