[R] Reading data from a serial port

Mulholland, Tom Tom.Mulholland at dpi.wa.gov.au
Wed Sep 14 08:25:13 CEST 2005



> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of
> Ted.Harding at nessie.mcc.ac.uk
> Sent: Wednesday, 14 September 2005 8:13 AM
> To: vittorio
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] Reading data from a serial port
> 
snip

> Now all this of course is written in terms of a Linux system,
> and we don't know yet what sort of system you are using. On Windows,
> I find one can navigate by hand through
> 
>   My Computer -> Control Panel -> System -> Device Manager
>   -> Ports -> Communications Port (COM1) -> Port settings
> 
> where again one can manually set "Bits per second", "Data bits",
> "Stop bits" and "Flow control" but, again, I don't know of a
> program which can be used to set these "non-manually".
> 
I think that windows would use com1 for /dev/ttyS0 so one could use a batch file in windows with something like
mode com1:4800,0,7,1 

I recall somewhere about setting parity to 0 for space parity, but I don't have a DOS manual here at work.

snip
> 

Tom




More information about the R-help mailing list