Setting a serial port

2005-09-14 Thread [EMAIL PROTECTED]
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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting a serial port

2005-09-14 Thread Roland Smith
On Wed, Sep 14, 2005 at 10:08:11AM +0100, [EMAIL PROTECTED] wrote:
 
 How could I set the parameters of connection of 
 /dev/cuaa0 under a console?
 (I mean something similar to the Linux 
 setserial command)

stty -f /dev/cuaa0 speed 9600 -parenb cs8 -cstopb

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpfpfSX382Y0.pgp
Description: PGP signature