From: Jeff Woods <Kazrak+kernel@cesmail.net>
To: <rol@as2917.net>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: "Spy'ing" characters sent thru serial port ?
Date: Wed, 06 Jul 2005 21:49:07 -0600 [thread overview]
Message-ID: <6.2.3.4.0.20050706214134.03ce1d00@no.incoming.mail> (raw)
In-Reply-To: <200507061506.j66F6dR25621@tag.witbe.net>
Howdy.
At 7/6/2005 17:06 +0200, Paul Rolland wrote:
>We have a machine connected to a modem using the serial port, and
>from time to time, the modem complains the machine sent him a full
>2K buffer (in fact, 2047 bytes) which were already sent.
>
>We've been investigating at the application level, using strace to
>monitor what is sent to the serial port, and at no time such a buffer is sent.
>
>This problem is occurring on a random basis, and attempts to
>reproduce it in a test environment failed to date.
>
>Is it possible to '(log|copy|...)' the chars that are sent on the
>serial port to some other place (without altering too much the
>performance of the machine, we are running the port a 9600bps), at
>the lowest level ?
I don't have any software answers, but it sounds like the modem is an
external type connected by RS232 cable to a serial port. RS-232 is
pretty simple at the hardware level and you should be able to create
a "Y" cable that "sniffs" the transmit from the computer to modem
line without interrupting the dialogue between the serial port and
modem. Just connect the transmit and signal ground lines to the
receive and signal ground lines of a serial terminal or another
computer with some terminal software (or even "cat </dev/serial1" or
similar) listening to the serial port. Back in Ye Olde Days (1980s)
we used to diagnose modem problems like that all the time.
--
Jeff Woods <kazrak+kernel@cesmail.net>
next prev parent reply other threads:[~2005-07-07 3:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-06 15:06 Paul Rolland
2005-07-07 3:49 ` Jeff Woods [this message]
2005-07-07 6:10 ` Paul Rolland
2005-07-07 5:15 ` Willy Tarreau
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=6.2.3.4.0.20050706214134.03ce1d00@no.incoming.mail \
--to=kazrak+kernel@cesmail.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rol@as2917.net \
/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
all inboxes | Powered by JetHome®