* [gentoo-user] Serial port over ethernet
@ 2008-07-16 9:56 Zdenek Travnicek
2008-07-16 10:04 ` Dirk Heinrichs
2008-07-16 14:10 ` Grant Edwards
0 siblings, 2 replies; 5+ messages in thread
From: Zdenek Travnicek @ 2008-07-16 9:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
Hi everyone,
I would like to connect serial port from remote machine to my laptop and use
it for PIC programmer. (both machines are running gentoo)
It's easy to tunnel data using nc or similar tool, but it won't give me
ioctl access to the port itself. (Or did I miss something?)
Is there any tool/project that exports the whole device and make virtual one
on the local side?
I searched google for quite a while but without any success. There are many
standalone devices for rs232->ethernet->rs232, but I don't want a standalone
device...
I realize it will be slow, but I dont care for lower speeds.
Thanks for any hints and advices
Regards
Zdenek Travnicek
[-- Attachment #2: Type: text/html, Size: 749 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Serial port over ethernet
2008-07-16 9:56 [gentoo-user] Serial port over ethernet Zdenek Travnicek
@ 2008-07-16 10:04 ` Dirk Heinrichs
2008-07-16 13:44 ` [gentoo-user] " James
2008-07-16 14:10 ` Grant Edwards
1 sibling, 1 reply; 5+ messages in thread
From: Dirk Heinrichs @ 2008-07-16 10:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 712 bytes --]
Am Mittwoch, 16. Juli 2008 schrieb Zdenek Travnicek:
> I would like to connect serial port from remote machine to my laptop and
> use it for PIC programmer. (both machines are running gentoo)
> It's easy to tunnel data using nc or similar tool, but it won't give me
> ioctl access to the port itself. (Or did I miss something?)
> Is there any tool/project that exports the whole device and make virtual
> one on the local side?
I know there's a serial port server tool which allows remote machines to
access the servers serial ports over ethernet, by telnet'ing to a specific
port. We use it at work in the lab, but I'm on vacation right know so I can't
ask what's the name.
Bye...
Dirk
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: Serial port over ethernet
2008-07-16 10:04 ` Dirk Heinrichs
@ 2008-07-16 13:44 ` James
0 siblings, 0 replies; 5+ messages in thread
From: James @ 2008-07-16 13:44 UTC (permalink / raw
To: gentoo-user
Dirk Heinrichs <dirk.heinrichs <at> online.de> writes:
>
> Am Mittwoch, 16. Juli 2008 schrieb Zdenek Travnicek:
>
> > I would like to connect serial port from remote machine to my laptop and
> > use it for PIC programmer.
Why can't you just connect the pic programmer into a serial port (on a linux
system near the PIC programmer) and just remotely telnet into the machine
that is serially attached to the pic programmer, and run minicom from
the telnet session?
James
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: Serial port over ethernet
2008-07-16 9:56 [gentoo-user] Serial port over ethernet Zdenek Travnicek
2008-07-16 10:04 ` Dirk Heinrichs
@ 2008-07-16 14:10 ` Grant Edwards
2008-07-21 22:27 ` Zdenek Travnicek
1 sibling, 1 reply; 5+ messages in thread
From: Grant Edwards @ 2008-07-16 14:10 UTC (permalink / raw
To: gentoo-user
On 2008-07-16, Zdenek Travnicek <v154c1@gmail.com> wrote:
> I would like to connect serial port from remote machine to my
> laptop and use it for PIC programmer. (both machines are
> running gentoo) It's easy to tunnel data using nc or similar
> tool, but it won't give me ioctl access to the port itself.
> (Or did I miss something?) Is there any tool/project that
> exports the whole device and make virtual one on the local
> side?
The implimentations that I've seen for remote serial ports use
a pty on the "master" end. On Linux (and AFAIK BSD), ptys only
support a small subset of the features of a real serial port.
If you need to do things like set parity, set the number of
stop bits, set the character length, or interface to modem
status/control lines you're out of luck.
> I searched google for quite a while but without any success.
> There are many standalone devices for rs232->ethernet->rs232,
> but I don't want a standalone device...
>
> I realize it will be slow, but I dont care for lower speeds.
Speed isn't the problem. The problem is the Linux pty driver.
To impliment a working remote serial port, you have to write a
kernel-mode serial driver -- and that's a lot of work. [Writing
one isn't bad, maintaining one is a complete bitch due to the
way the infrastructure keeps shifting out from under you.] I've
proposed fixing the pty driver to allow it to emulate a real
serial port, but that proposal wasn't well accepted by the
powers-that-be in the Linux kernel world.
--
Grant Edwards grante Yow! PUNK ROCK!! DISCO
at DUCK!! BIRTH CONTROL!!
visi.com
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Re: Serial port over ethernet
2008-07-16 14:10 ` Grant Edwards
@ 2008-07-21 22:27 ` Zdenek Travnicek
0 siblings, 0 replies; 5+ messages in thread
From: Zdenek Travnicek @ 2008-07-21 22:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 817 bytes --]
Thanks for all replies
> The problem is the Linux pty driver.
> To impliment a working remote serial port, you have to write a
> kernel-mode serial driver -- and that's a lot of work. [Writing
> one isn't bad, maintaining one is a complete bitch due to the
> way the infrastructure keeps shifting out from under you.] I've
> proposed fixing the pty driver to allow it to emulate a real
> serial port, but that proposal wasn't well accepted by the
> powers-that-be in the Linux kernel world.
>
I wanted merely save some time and have more comfort during programming
PICs.
Writing kernel driver for (emulated) serial port is would take much more
time than I can ever save by it.
I will probably try it once I have some spare time anyway )
Until then I stick with programming over ssh ;p
Sincerely
Zdenek Travnicek
[-- Attachment #2: Type: text/html, Size: 1093 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-21 22:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 9:56 [gentoo-user] Serial port over ethernet Zdenek Travnicek
2008-07-16 10:04 ` Dirk Heinrichs
2008-07-16 13:44 ` [gentoo-user] " James
2008-07-16 14:10 ` Grant Edwards
2008-07-21 22:27 ` Zdenek Travnicek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox