Firstly, I would like to know how to tell on which port my serial POS printer is connected? When I do dmesg | grep tty I get:
[ 0.000000] console [tty0] enabled
[ 1.255791] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
I guess, it is connected to /dev/ttyS0? After that I did chmod 777 /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 64 May 25 09:49 /dev/ttyS0
Then I tried to write like this echo -ne '\033[2J' > /dev/ttyS0 from here
I know the hardware is fine because it works when connected to parallel port. What did I missed?