I can't change the baud rate of ttyS0 and ttyS1 from 115200. I want to change the baud rate to 9600 because the baud rate of POS printer is 9600.
Asked
Active
Viewed 1.6k times
1 Answers
4
The stty command handles that:
sudo stty -F /dev/ttyS0 9600
You can confirm that you succeeded in changing the baud rate by asking stty to print out the current settings with:
sudo stty -F /dev/ttyS0 -a
See man stty for more details.
John1024
- 16,883