Skip to main content

.NET Serial Port Programming on Linux using C#

In this tutorial, We will learn to communicate with an Arduino board connected to a Linux PC (Ubuntu, Linux Mint, Fedora etc.) serial port using C# and .NET Platform.

With the release of the opensource .NET Platform by Microsoft, it becomes possible to run .NET programs on other operating systems like Linux and macOS. Earlier similar capability was provided by the Mono Platform. 

Native Serial Port Programming on Linux (Unix) system using C and terminos API

In this tutorial, You will learn How to program the Serial Ports of your Linux System using C Language and the native termios API .We will then send and receive data from an Microcontroller board like Arduino UNO (Mega) or MSP430 Launchpad connected to your Linux PC Virtual Serial Port.

Here we will be using C language to program the serial port on a Linux Operating system (Ubuntu/ Linux Mint).