Skip to content

155 [linux] embedded linux tips

Send bytes to tty device using bash

stty -F /dev/ttyPS1
stty -F /dev/ttyPS1 115200 cs8 -cstopb -parenb
printf '\xA5' | hexdump -C

printf '\xA5' | cat > /dev/ttyPS1