-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jan 25, 2006 at 12:11:22PM +1100, Peter Rundle wrote:
> I have a serial device that works at 2400 baud and I need to access it 
> from a script. How can I set the baud rate of my serial port before 
> accessing the device?
> 
> I've tried setserial but I get this result
> 
> #> setserial /dev/ttyS0 baud_base 2400
> Cannot set serial info: Invalid argument

setserial is for low level hardware configuration like telling 
the kernel the finer differences between uart variations.
On a modern kernel running over modern hardware you should almost
never be running setserial, certainly NOT for trying to change
the baud rate, parity or any of the regular serial port settings.

    - Tel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iQIVAwUBQ9dloMfOVl0KFTApAQJO1RAAk/052Su8HL/4wLPQcdr579dtFnAviPc6
SulVN3YHHf51mTqXe9R8Bpb9BRHNZxuNB8oDnk4KvZj27kGplKOPXrHvz1sgbCwN
R8sfEtX44TJ/KQ56+PqAHNgpdQkpfnfr8JQFEt0ixUD0eaYONiRHcQK8a7uTwrm/
uK6Zl6kInBpdEhSLVEfAY/XjdCg/1I7WRrHeoEK4jwS7pM8usi6up805V2/AHvb5
AhPWZ/7QXDh7RhCYZFy/TVQ0OrHRWiCFd+izEZ9XBdyYA50JM7iWJMaLJned+066
MFgsX4a9lTOc1DXjfynb+NzHuVyDHNY1Vn62pS146/iM5wFho1BdMBVEBshkLt3a
FQzDwOyAgaDNHiZE6aZC2Q4kikKo8KH1qUBA6Ey12Lm28z0y5lxXlVIIMQ7j6OyW
kHUEtviAoujXMZO+xNa+0JhXH8LmS7Dx6W3A325rwVkLw+Gkz1gv+Gzie6C5KqUQ
36tGeTlu3ZYMZer0wQPJV06hKJ61yuYFfuU7FPHjfKY7U7v5wNnJJKoFU/AerK/G
1mz6lQr5Um+yFVSubnpM37RmHcD5UxeKivwg67aDlV1nzmUaeUrfWFMhDQ8n1pdH
FuquGr70TXBM+Wa7B/GbZr2g5ffE4nvmGl0r1qzIvBVMbUr9ZYAENzWG8+eajDYJ
22tMAjEstpI=
=9oq7
-----END PGP SIGNATURE-----
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to