The output module receives a stream and outputs it to a character device, e.g. a serial port.
The configuration of the output module with name NAME
is located in the outputs/NAME
subdirectory.
The file instream
contains the name of the stream to
read.
The frames received from this stream are written to the character
device.
The protocol to use is configured in the file protocol
.
It can contain the string blp
, eblp
or
mcuf
to select the BLP, EBLP or MCUF protocol respectively.
The name of the character device to output the stream to is
configured in the file device
.
If the device is a serial port, it can be configured by writing
a configuration string to the file ser_cfg
.
The configuration string has to be in the format
<baudrate>,<data bits>,<parity>,<stop bits>
or
<baudrate>,<parity>,<data bits>,<stop bits>
.
The parity setting uses N
for no parity, E
for even parity and O
for odd parity.
The other settings are positive integer numbers.
If the device is not a serial port, the file ser_cfg
should not exist.
In this case, no serial port configuration of the device is done.