Learn R Programming

serial (version 1.1)

serialConnection: Sets up the interface parameters.

Description

Sets up the interface parameters.

Usage

serialConnection(name, port = "com1", mode = "115200,n,8,1",
  buffering = "none", newline = 0, eof = "", translation = "lf",
  handshake = "none")

Arguments

name
optional name for the connection
port
comport name, should also work in Linux; also virtual com's are supported; maybe USB schould work too
mode
communication mode ", , , " [object Object],[object Object],[object Object],[object Object]
buffering
"none", for RS232 serial interface, other modes don't work in this case
newline
, whether a new transmission starts with a newline or not. [object Object],[object Object]
eof
, termination char of the datastream. It only makes sense if is 'binary' and the stream is a file
translation
each transmitted string is terminated by the transmission character. This could be 'lf', 'cr', 'crlf', 'binary'
handshake
determines the type of handshaking the communication [object Object],[object Object],[object Object]

Value

  • An object of the class "serialConnection" is returned