mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matti Aarnio <matti.aarnio@zmailer.org>
To: Thanasis <thanasis@asyr.hopto.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: NIC as RS232
Date: Tue, 8 Jan 2008 09:17:20 +0200	[thread overview]
Message-ID: <20080108071720.GB4503@mea-ext.zmailer.org> (raw)
In-Reply-To: <47831CC3.9080604@asyr.hopto.org>

On Tue, Jan 08, 2008 at 08:48:35AM +0200, Thanasis wrote:
> Is there a kernel driver that would make a NIC's port work as a RS232
> port, using the serial cables that are RJ45 on one side and DB9 or DB25
> on the other? Maybe null modem cables of that type ? Or for example
> those used by cisco as console port cables?
> 
> (or may be I'm dreaming ;-)

With a certain e.g. Freescale embedded communication processors that could
be possible, as those have hardware that can do serial communication in
many different bit patterns, and not being limited only on ethernets.

However even they talk parallel MII protocol to Ethernet PHY, which then
serializes the bitstream for transmit.  Speeds are standard 10 and 100
Mbit/s, and electrical signals depend on wiring standard, probably isolated
differential signals on twisted pairs.

I don't think you can use any ethernet phy hardware for anything but
ethernet frames.  Even when you send bytes over MII, they are still just
a bitstream needing MAC level processing to find correct alignments.

You can, of course, talk ethernet protocol to remote serial port servers,
but these days those systems talk TCP, which makes application programming
all that much easier.


Once upon a time I was talking to a group of telco engineers and said that
"These Telco SDH ports are one of the reasons why bit communication is
expensive.  In the future things will go to optical ethernet interface,
which is either carried over DWM lambdas for long hauls, or just dark
fibers."   Now it looks like I was right..

   /Matti Aarnio

  parent reply	other threads:[~2008-01-08  7:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-08  6:48 Thanasis
2008-01-08  7:06 ` Thanasis
2008-01-08  7:17 ` Matti Aarnio [this message]
2008-01-09  4:21 ` Valdis.Kletnieks
2008-01-09  8:29   ` Geert Uytterhoeven
2008-01-09 12:39     ` Jan Engelhardt
2008-01-09 16:23     ` Valdis.Kletnieks

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=20080108071720.GB4503@mea-ext.zmailer.org \
    --to=matti.aarnio@zmailer.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thanasis@asyr.hopto.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

all inboxes | Powered by JetHome®