From owner-freebsd-questions@FreeBSD.ORG Wed Sep 14 09:08:13 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7981116A41F for ; Wed, 14 Sep 2005 09:08:13 +0000 (GMT) (envelope-from vdemart1@tin.it) Received: from vsmtp2.tin.it (vsmtp2alice.tin.it [212.216.176.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2122043D49 for ; Wed, 14 Sep 2005 09:08:12 +0000 (GMT) (envelope-from vdemart1@tin.it) Received: from pswm16.cp.tin.it (212.216.176.82) by vsmtp2.tin.it (7.2.060.1) id 4320382500284AB7 for freebsd-questions@freebsd.org; Wed, 14 Sep 2005 11:08:09 +0200 Message-ID: <12506300.1126688891560.JavaMail.root@pswm16.cp.tin.it> Date: Wed, 14 Sep 2005 10:08:11 +0100 (GMT+01:00) From: "vdemart1@tin.it" To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: 193.108.204.20 Subject: Setting a serial port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "vdemart1@tin.it" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 09:08:13 -0000 I have a freebsd 5.4 box whose only serial port /dev/cuaa0 is to be connected: 1) during the morning at a modem for regular internet connections and 2) at night at an elettromedical appliance with a serial port from which regular signals are emitted at specific time inervals of 10 secs. As far as point 2) is concerned I want to read the stream of data with a statistical software called R for successive computations. The problem is that R can read from whatever file (e.g. with the command "scan" from /dev/cuaa0) but it doesn't have any way to set the parameters of the connection (9600,N,8,1). Therefore I need to set the parameters of connection of /dev/cuaa0 before launching R from the console. I read some docs in the Internet to be more confused than ignoring them.... How could I set the parameters of connection of /dev/cuaa0 under a console? (I mean something similar to the Linux "setserial" command) Ciao Vittorio