From owner-freebsd-questions@FreeBSD.ORG Mon Jun 29 15:41:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB27A1065678 for ; Mon, 29 Jun 2009 15:41:27 +0000 (UTC) (envelope-from brentb@beanfield.com) Received: from smtp0.beanfield.net (smtp0.beanfield.net [66.207.192.7]) by mx1.freebsd.org (Postfix) with ESMTP id 88D1B8FC0C for ; Mon, 29 Jun 2009 15:41:27 +0000 (UTC) (envelope-from brentb@beanfield.com) Received: from brent.local ([66.207.193.249]) by smtp0.beanfield.net (8.13.4/8.12.11) with ESMTP id n5TFdFdL066774; Mon, 29 Jun 2009 11:39:16 -0400 (EDT) (envelope-from brentb@beanfield.com) Message-ID: <4A48E09D.3000102@beanfield.com> Date: Mon, 29 Jun 2009 11:41:17 -0400 From: Brent Bloxam Organization: Beanfield Technologies User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: kalin m References: <4A483CD3.9040304@el.net> In-Reply-To: <4A483CD3.9040304@el.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: serial modem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 15:41:28 -0000 kalin m wrote: > > hi all... > > my first time using serial ports and modems. the modem is hooked up > using RS-232 cable... > > modem specs: > > • Baud Rate: 115.2kbps > • Bits: 8 > • Stop Bits: 1 > • Parity: none > • Hardware Handshaking: Yes > > > my /etc/ttys: > > ttyd0 "/usr/libexec/getty std.115200" dialup on > ttyd1 "/usr/libexec/getty std.115200" dialup on > > then i do: > # kill -HUP 1 > > ps shows: > 62496 0.0 0.2 3184 952 ?? I 10:53PM 0:00.00 /usr/libexec/getty > std.115200 ttyd0 > 62667 0.0 0.2 3184 1004 ?? I 11:37PM 0:00.00 /usr/libexec/getty > std.115200 ttyd1 > > according to the handbook i would see the above. i'm not sure if i need > both ttyd0 and 1 since i have hooked only one modem but there is no > explanation about that in the handbook. > > messages says: > Jun 28 23:37:17 moo getty[62667]: open /dev/ttyd1: No such file or > directory > > and no other entries... so i guess that settles the need of ttyd1!?! > > ok. so now i put in /etc/remote: > sio0|com1:dv=/dev/cuad0:br#115200:pa=none: > > and, following the instructions in the handbook, try reaching the modem > doing: > # tip -v cuad0 > > i get: > tip: unknown host tip0 > I've no experience with serial modems, but having read the man pages I believe your remote(5) line is incorrect. sio0|com1:dv=/dev/cuad0:br#115200:pa=none: sets system names sio0 and com1, then you try to execute tip to connect to cuad0. Is there an entry for cuad0 in your /etc/remote? I'm confused as to why tip is returning 'unknown host tip0' however. Give `tip -v sio0` a shot, or change the system names in your /etc/remote line