Serial I/O

From TNtech Wiki
Jump to: navigation, search

Small set of Scilab/Xcos blocks designed for I/O data communication in Linux. Source code available on request, please send e-mail to fabo(dot)peter(at)gmail(dot)com.

Linux I/O Toolbox

Description

PipeWrite.gif Simple interprocess communications (peer to peer) via Linux (POSIX) system FIFO.. Block for writing into the FIFO. Input vector is converted to a ASCII string, string start with STX, ends with ETX, values delimiter is '\n'.
PipeRead.gif Simple interprocess communications (peer to peer) via Linux (POSIX) system FIFO. Block for reading from FIFO. Convert input strings with ASCII values, string start with STX, ends with ETX, values delimiter is '\n' and converts it into output vector (size adjustable).
SerialWrite.gif Communication with standard serial devices (/dev/tty****) - USART, USB/RS232 adapters with FTDI chips and virtual serial ports (/dev/pts/*). Block for writing <0.0 ... 255.0> double vector[max 32] in the serial device. Negative values are ignored.
SerialRead.gif Communication with standard serial devices (/dev/tty****) - USART, USB/RS232 adapters with FTDI chips and virtual serial ports (/dev/pts/*). Block for reading double vector[max 32] from serial device with timeout. Standard value range <0.0 ... 255.0>, -1 after timeout.
UdpWrite.gif Simple UDP intranet/internet communications. Block for writing UDP. Input vector is converted to a ASCII string, string start with STX, ends with ETX, values delimiter is '\n'.
UdpRead.gif Simple UDP intranet/internet communications. Block for reading UDP. Convert input strings with ASCII values, string start with STX, ends with ETX, values delimiter is '\n' and converts it into output vector (size adjustable).
Random.gif Block read random numbers from /dev/urandom and converts it into output vector (size adjustable).
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox