linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Serial-to-socket conversion
@ 2004-05-25 15:14 Joshua Lamorie
  2004-05-25 16:26 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Lamorie @ 2004-05-25 15:14 UTC (permalink / raw)
  To: linuxppc-embedded


Gidday there,

I want to remotely access a serial port, but I can't just open a shell
on the remote computer.  What I would like to do is open minicom (or
kermit or pppd) point it to some device local to my computer which then
bridges through a socket to my funky remote serial port.  I can't find
any references to similar code other than perhaps pty-redir.  Sorry for
polluting this mailing list, but if you can point me towards something
more appropriate, I would appreciate it.

Thanks

Joshua

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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Serial-to-socket conversion
@ 2004-05-25 16:16 VanBaren, Gerald (AGRE)
  0 siblings, 0 replies; 5+ messages in thread
From: VanBaren, Gerald (AGRE) @ 2004-05-25 16:16 UTC (permalink / raw)
  To: linuxppc-embedded


Traditionally this was known as a reverse telnet server.

I haven't tried it, but I think netcat will do the job for you.  Run it on your target computer (the one with an ethernet and a serial port you want to connect to) using "-l -p <port>", netcat will listen on <port> for a connection.  Then redirect netcat's stdin and stdout to your serial device:
  nc -t -l -p 1234 < /dev/ttyS0 > /dev/ttyS0

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.

Let us know if you get it working, its one of those "toolbox" things that you only need occasionally but, when you need it, you need it _bad_ and you need it _now_.

gvb


> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Joshua
> Lamorie
> Sent: Tuesday, May 25, 2004 11:14 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: Serial-to-socket conversion
>
>
>
> Gidday there,
>
> I want to remotely access a serial port, but I can't just open a shell
> on the remote computer.  What I would like to do is open minicom (or
> kermit or pppd) point it to some device local to my computer
> which then
> bridges through a socket to my funky remote serial port.  I can't find
> any references to similar code other than perhaps pty-redir.
> Sorry for
> polluting this mailing list, but if you can point me towards something
> more appropriate, I would appreciate it.
>
> Thanks
>
> Joshua
>


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-25 17:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-05-25 17:10   ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-05-25 16:16 VanBaren, Gerald (AGRE)

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).