From owner-freebsd-questions@FreeBSD.ORG Mon Sep 3 10:04:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BAD621065673 for ; Mon, 3 Sep 2012 10:04:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 780808FC08 for ; Mon, 3 Sep 2012 10:04:02 +0000 (UTC) Received: from r56.edvax.de (port-92-195-49-179.dynamic.qsc.de [92.195.49.179]) by mx01.qsc.de (Postfix) with ESMTP id E4E483CDA3; Mon, 3 Sep 2012 12:03:54 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q83A3sp0001940; Mon, 3 Sep 2012 12:03:54 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 3 Sep 2012 12:03:54 +0200 From: Polytropon To: Victor Sudakov Message-Id: <20120903120354.293061a0.freebsd@edvax.de> In-Reply-To: <20120903030217.GA79339@admin.sibptus.tomsk.ru> References: <20120903030217.GA79339@admin.sibptus.tomsk.ru> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Sharing COM ports to Windows hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 10:04:02 -0000 On Mon, 3 Sep 2012 10:02:17 +0700, Victor Sudakov wrote: > Colleagues, > > There is a FreeBSD box with several RS232 ports. Can those ports be > accessed by Windows hosts over the network? Actually, does anyone > have a success story for such a scenario? > > There is some software like comms/serialoverip, comms/tits etc but are > there any (freeware) Windows virtual COM port drivers compatible > therewith? > > Maybe some Windows drivers for hardware console servers (like Moxa) > would work with tits etc? It is _easily_ possible, even though my own experiences do not include doing this with "Windows", but with other BSD boxes and even DOS. First you have to enable a serial terminal connection just the same way you handle the virtual terminals in text mode: Edit /etc/ttys and enable the line ttyu0 "/usr/libexec/getty std.19200" dialup on secure Now you can connect to that port via a serial cable, using a terminal emulator (for example Kermit). Make sure you have set the proper speed, 19k2 in this example (faster than the default 9k6). See "man 5 ttys" for examples. If you use a UNIX or Linux client, you can use the "cu" program. See "man cu" for details. However, what you need on "Windows" side is a program that can communicate via serial port. I don't know if such a program is still included in today's "modern" versions of "Windows", but I seem to remember that the 3.11 and 95 versions came with such a program. In worst case, maybe you can use a DOS program like Kermit under "Windows"? I'm sure the compatibility is restricted, but maybe you can give it a try. http://www.columbia.edu/kermit/mskermit.html Note that I haven't tried this with any recent FreeBSD system. But it _was_ possible with FreeBSD 4 and 5. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...