linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Joshua Lamorie <jpl@xiphos.ca>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Serial-to-socket conversion
Date: Tue, 25 May 2004 12:48:46 -0400	[thread overview]
Message-ID: <40B378EE.7050108@xiphos.ca> (raw)
In-Reply-To: <20040525162646.A291FC109F@atlas.denx.de>


Thank you for your suggestions.

Wolfgang Denk wrote:

>We're running a modified version of netkit-rsh which  allows  to  use
>"rlogin <host> -l <portname>" to connect to a remote serial port; for
>example, this config file might be used:
>
>

VanBaren, Gerald (AGRE) wrote:

> At this point you should be able to telnet into your target computer, port 1234 (in the above example),
> from your remote computer:
>  telnet 192.168.1.1 1234
> (filling in the proper IP address and port number).  Anything you type should go out the serial port
> and anything that comes in the serial port should be sent to your telnet session.


However, my problem remains at the local end.  I want to be able to
attach anything that would normally talk to a serial port to this
socket, without using an actual serial port because at the remote end I
have a 'funky serial port'.  It's actually some logic talking SPI in a
way that allows bi-directional emulation of a serial port.

I really want to be able to aim minicom at /dev/ttySFAKESERIALPORT which
is really a bi-directional pipe to some socket program (possibly nc) and
then I'll take care of the rest.  I want to do some file transfers
through this 'funky serial port', with error checking and I really don't
want to have to write my own.

Thanks again for your suggestions, and if I didn't have to make this
happen today, I'd probably try to write something lower level.  My
current solution is to have two serial ports on the local computer.
Minicom talks out ttyUSB0 through a null modem to ttyUSB1.
serial_client.c listens on ttyUSB1 and has a socket open to the remote
computer.  The remote computer does some funky shimmy sham and passes
every octet on to the embedded system.  Ugly, but I think it will work
(at low speeds with no hardware flow control).

Joshua

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2004-05-25 16:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 15:14 Serial-to-socket conversion Joshua Lamorie
2004-05-25 16:26 ` Wolfgang Denk
2004-05-25 16:48   ` Joshua Lamorie [this message]
2004-05-25 17:10   ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-05-25 16:16 VanBaren, Gerald (AGRE)

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=40B378EE.7050108@xiphos.ca \
    --to=jpl@xiphos.ca \
    --cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).