mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: Paul Rolland <rol@as2917.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: "Spy'ing" characters sent thru serial port ?
Date: Thu, 7 Jul 2005 07:15:24 +0200	[thread overview]
Message-ID: <20050707051523.GN8907@alpha.home.local> (raw)
In-Reply-To: <200507061506.j66F6dR25621@tag.witbe.net>

Hello,

you might want to try to boot your software into an emulator such as vmware
and sniff the communications between the virtual machine and the real device.
This way, you will know if it is the OS which is retransmitting data to the
hardware.

Regards,
willy

On Wed, Jul 06, 2005 at 05:06:30PM +0200, Paul Rolland wrote:
> Hello,
> 
> 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 occuring 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 ?
> 
> Or is there a known issue of the serial port (or tty) buffer being 
> resent on the line in some weird conditions ? Any change done on 
> ->head and ->tail handling that could fix that ?
> 
> This problem is with Linux 2.4.27 (I know 2.4.31 is out, but nothing 
> related to that is present in the Changelog)
> 
> Regards,
> Paul
> 
> Paul Rolland, rol(at)as2917.net
> ex-AS2917 Network administrator and Peering Coordinator
> 
> --
> 
> Please no HTML, I'm not a browser - Pas d'HTML, je ne suis pas un navigateur
> "Some people dream of success... while others wake up and work hard at it" 
> 
> "I worry about my child and the Internet all the time, even though she's 
> too young to have logged on yet. Here's what I worry about. I worry that 
> 10 or 15 years from now, she will come to me and say 'Daddy, where were 
> you when they took freedom of the press away from the Internet?'"
> --Mike Godwin, Electronic Frontier Foundation 
>  
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

      parent reply	other threads:[~2005-07-07  5:17 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
2005-07-07  6:10   ` Paul Rolland
2005-07-07  5:15 ` Willy Tarreau [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=20050707051523.GN8907@alpha.home.local \
    --to=willy@w.ods.org \
    --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®