Serial Port Programming
This is a collection of articles on programming the serial port of a x86 PC using C,CSharp (C#) and Python.The tutorials covers programming the serial port using native API's like Win32 API on Windows or termios/ioctl() API on Linux. The tutorial also explains how to program the serial port using C# on .NET framework (Windows) . For Cross platform applications you can use the open source Python module PySerial for writing code on Windows and Linux.Since PySerial is available for Mac OSX ,the code provided here can run on Macs too(I have not tested it ).A short description about building an RS485 network is also provided.
The code presented in the tutorials are written using opensource or freely downloadable softwares like GCC,Microsoft Visual Studio Express Edition,Active Python,SharpDevelop etc.The codes are tested on a Windows 7 and a Ubuntu/Linux Mint PC.In the case of Python,seperate code is provided for Python2.7 and Python 3.x to accomadate the differences.