Gentoo Archives: gentoo-embedded

From: David Relson <relson@×××××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] serial port handling question
Date: Thu, 14 Jan 2010 04:10:23
Message-Id: 20100113230950.7feb6342@osage.osagesoftware.com
In Reply to: Re: [gentoo-embedded] serial port handling question by Peter Stuge
1 On Thu, 14 Jan 2010 04:47:53 +0100
2 Peter Stuge wrote:
3
4 > Daniel Stonier wrote:
5 > > there's a setting in the termios options structure for rts - have
6 > > you tried that?
7 > >
8 > > 'man termios' - look for CRTSCTS.
9 >
10 > Note that this flag does not directly control RTS, but rather it
11 > instructs the kernel whether RTS/CTS signalling should be used for
12 > flow control or not.
13 >
14 > As David noticed, there is no API for directly controlling RTS in
15 > Linux, it can only be done by the serial driver itself or a line
16 > discipline driver.
17 >
18 >
19 > //Peter
20
21 Hello Peter and Daniel,
22
23 Information greatly appreciated. I'll digest it tomorrow when I'm more
24 alert.
25
26 After bashing my head against the wall (including experimentation with
27 CRTSCTS), I spent a while reading drivers/serial/8250.c and found that
28 CRTSCTS used only for enabling AFE (automatic flowcontrol enabled).
29 Not having adequate specs for the protocol or hardware involved,
30 there's some mystery as to exactly why RTS is used as it is.
31
32 For certain, it'll be interesting tomorrow to learn more of termios and
33 line discipline drivers (a new term for me).
34
35 Ciao,
36
37 David