2
1
i cant 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. . thank you!
2
1
i cant 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. . thank you!
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.
i already used that but nothing changes, – user319339 – 2014-04-30T05:30:31.183
What did you try, precisely? What, exactly, was the error message that it returned? – John1024 – 2014-04-30T05:47:50.423