From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: seria port communication on linux with rts signal
Date: Mon, 18 Jul 2011 11:03:23 +0100 [thread overview]
Message-ID: <20110718100323.GR23270@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <loom.20110718T113615-870@post.gmane.org>
On Mon, Jul 18, 2011 at 09:44:13AM +0000, Ravi wrote:
> Dear All,
>
> I want to interface a printer on RS232 port of my arm board.the printer has
> RX,TX and CTS signals from printer. This pin will turn to logic low indicating
> printer is ready to receive data. If Printer is not ready to print then the
> signal will change to Logic High.
Your description is confusing.
RS232 is not logic levels. RS232 is positive and negative voltage
signalling. A logic 0 coming out of the serial port is converted to
a positive voltage, a logic 1 is converted to a negative voltage.
The RX and TX logic signals into/outof the RS232 driver are positive
logic (a '1' bit is logic 1) and on the RS232 connector that's a
negative voltage.
The CTS logic signal will be inverted (so /CTS) and its active state
will be logic 0, meaning 'clear to send'. On the RS232 connector,
this will be a positive voltage.
Assuming that the above is what you meant, this is standard signalling,
and your UART should already be able to cope with this in hard flow
control mode - it will send characters when /CTS is logic 0, and hold
off sending characters (which can still be queued in the kernel) when
/CTS is logic 1.
If you don't know how to control the flow control method, you need to
read up on stty, termios, and specifically the CRTSCTS flag.
prev parent reply other threads:[~2011-07-18 10:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 9:44 seria port communication on linux with rts signal Ravi
2011-07-18 10:03 ` Russell King - ARM Linux [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110718100323.GR23270@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox