I found a handy ncurses based serial port debugger recently called statserial. It outputs the status of the serial control lines to the terminal.
Install with:
apt-get install statserial Run with:
statserial /dev/ttyS0
Read more →
By default, standard users are not allowed to access the serial ports on a Debian machine. A workaround is to run that program as root, but this is inherently unsafe. A better solution is to add your unprivileged user account to the dialout group.
usermod -a -G dialout username This allows an unprivileged account to access the system’s serial ports. This is handy with programs such as the Arduino IDE, which require serial port access to program the microprocessors.
Read more →