Gentoo Archives: gentoo-user

From: Grant Edwards <grante@××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Serial port over ethernet
Date: Wed, 16 Jul 2008 14:11:14
Message-Id: g5kvh8$iot$
In Reply to: [gentoo-user] Serial port over ethernet by Zdenek Travnicek
1 On 2008-07-16, Zdenek Travnicek <v154c1@×××××.com> wrote:
3 > I would like to connect serial port from remote machine to my
4 > laptop and use it for PIC programmer. (both machines are
5 > running gentoo) It's easy to tunnel data using nc or similar
6 > tool, but it won't give me ioctl access to the port itself.
7 > (Or did I miss something?) Is there any tool/project that
8 > exports the whole device and make virtual one on the local
9 > side?
11 The implimentations that I've seen for remote serial ports use
12 a pty on the "master" end. On Linux (and AFAIK BSD), ptys only
13 support a small subset of the features of a real serial port.
14 If you need to do things like set parity, set the number of
15 stop bits, set the character length, or interface to modem
16 status/control lines you're out of luck.
18 > I searched google for quite a while but without any success.
19 > There are many standalone devices for rs232->ethernet->rs232,
20 > but I don't want a standalone device...
21 >
22 > I realize it will be slow, but I dont care for lower speeds.
24 Speed isn't the problem. The problem is the Linux pty driver.
25 To impliment a working remote serial port, you have to write a
26 kernel-mode serial driver -- and that's a lot of work. [Writing
27 one isn't bad, maintaining one is a complete bitch due to the
28 way the infrastructure keeps shifting out from under you.] I've
29 proposed fixing the pty driver to allow it to emulate a real
30 serial port, but that proposal wasn't well accepted by the
31 powers-that-be in the Linux kernel world.
33 --
34 Grant Edwards grante Yow! PUNK ROCK!! DISCO
38 --
39 gentoo-user@l.g.o mailing list


Subject Author
Re: [gentoo-user] Re: Serial port over ethernet Zdenek Travnicek <v154c1@×××××.com>