Serial I/O
From TNtech Wiki
(Difference between revisions)
(→Pipe (FIFO) interface) |
(→Standard serial interface) |
||
Line 61: | Line 61: | ||
| [[File:exs_001.png | thumb|center|300px | <div align="center"> Serial echo (vitual port)</div>]] | | [[File:exs_001.png | thumb|center|300px | <div align="center"> Serial echo (vitual port)</div>]] | ||
|| | || | ||
− | | [[File:exs_002.png | thumb|center|300px | <div align="center"> Writing a vector to port </div>]] | + | | [[File:exs_002.png | thumb|center|300px | <div align="center"> Writing a vector to a port </div>]] |
|| | || | ||
| [[File:exs_003.png | thumb|center|300px | <div align="center"> Communication with Scratch Sensor board </div>]] | | [[File:exs_003.png | thumb|center|300px | <div align="center"> Communication with Scratch Sensor board </div>]] | ||
|} | |} | ||
</center> | </center> |
Revision as of 07:51, 15 September 2013
Introduction
Small set of Scilab/Xcos blocks designed for serial communication in Linux. Source code available on request, please send e-mail to fabo(dot)peter(at)gmail(dot)com.
Pipe (FIFO) interface
Simple interprocess communications (peer to peer) via Linux (POSIX) system FIFO.
Usage
- debugging
- real-time data exchange with others programs (Scada ...)
- communication with separated GUI programs
- etc ...
Examples
Standard serial interface
Communication with standard serial devices (/dev/tty****) - USART, USB/RS232 adapters with FTDI chips and virtual serial ports (/dev/pts/*)
Usage
- communication with sensors with serial interface
- communication with laboratory instruments
- control of single board computers
- etc ....
Examples