Hi Jerry,

<[email protected]> writes:

> Unable to set baud rate of ttyS0 to 600 in version of Raspbian that I
> recently loaded (Raspbian GNU/Linux 13 (Trixie) ).
>
> Weird baud rate but needed for an old (!) X10 controller I have.
>
> This worked OK in earlier version with same hardware (Raspberry Pi 3b).
>
> Tried setting in a program and from terminal command (setting to 1200 baud
> works - setting to 600 doesn't):
>
>  
>
> pi@rpi-one:~/workspace/setbaud/src $ stty -F /dev/ttyS0 1200
>
> pi@rpi-one:~/workspace/setbaud/src $ stty -F /dev/ttyS0
>
> speed 1200 baud; line = 0;
>
>  
>
> pi@rpi-one:~/workspace/setbaud/src $ stty -F /dev/ttyS0 600
>
> stty: /dev/ttyS0: unable to perform all requested operations
>
> pi@rpi-one:~/workspace/setbaud/src $ stty -F /dev/ttyS0
>
> speed 1200 baud; line = 0;

That error message is only printed when tcsetattr returns successfully
but tcgetattr shows us something different than the settings we
requested. So I don't think it is a coreutils bug.

I see a user on StackOverflow ran into a similar problem to you have
after upgrading Debian versions [1]. Perhaps the solution there will
work for you as well?

Collin

[1] 
https://stackoverflow.com/questions/75390659/what-is-minimum-serial-baud-rate-on-bullseye-raspberry-pi-os-using-python-an



Reply via email to