Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing serial ports in C# [duplicate]

Tags:

c#

serial-port

Does anyone know the easiest way to control a serial port in c# (e.g. set baud rate, data bits, stop bits, read inbound messages in bytes, push outbound messages in bytes,...etc)? Are there any ready classes that I can utilize for this?

like image 850
Ahmed El Mubarak Avatar asked Sep 01 '11 18:09

Ahmed El Mubarak


Video Answer


1 Answers

You can do all this with the System.IO.SerialPort class. (so long as you're using >NET 2.0 or above.)

like image 122
David Avatar answered Oct 27 '22 15:10

David