System.IO.Ports 9.0.2

About

System.IO.Ports package provides synchronous serial port file resource. Additionally, the functionality of this class can be wrapped in an internal Stream object, accessible through the BaseStream property, and passed to classes that wrap or use streams.

Key Features

  • synchronous and event-driven I/O
  • access to pin and break states
  • access to serial driver properties
  • access to Stream object through the BaseStream property

How to Use

using System.IO.Ports;

// Provides list of available serial ports
string[] portNames = SerialPort.GetPortNames();

// First available port
string myPortName = portNames[0];
int baudRate = 9600;

SerialPort sp = new SerialPort(myPortName, baudRate);
sp.Open();
sp.WriteLine("Hello World!");

Main Types

The main type provided by this library is:

  • SerialPort

Additional Documentation

Feedback & Contributing

System.IO.Ports is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on System.IO.Ports.

Packages Downloads
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.
37
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard.
35
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
30
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 6c6b536dffb4da0c45ff14921bfee10265265050 When using NuGet 3.x this package requires at least version 3.4.
30
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
28
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 9b5053f09fac4a2d615619197924072b9571da78 When using NuGet 3.x this package requires at least version 3.4.
27
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.
26
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard.
26
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
25
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.
25
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
24
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.
22
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
22
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard.
21

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
10.0.0-preview.5.25277.114 0 06/06/2025
10.0.0-preview.4.25258.110 5 05/17/2025
10.0.0-preview.3.25171.5 8 04/12/2025
10.0.0-preview.2.25163.2 10 03/22/2025
10.0.0-preview.1.25080.5 11 03/07/2025
9.0.5 5 05/19/2025
9.0.4 4 04/16/2025
9.0.3 7 03/14/2025
9.0.2 10 02/18/2025
9.0.1 11 01/19/2025
9.0.0 12 11/18/2024
9.0.0-rc.2.24473.5 15 10/09/2024
9.0.0-rc.1.24431.7 15 09/16/2024
9.0.0-preview.7.24405.7 16 08/14/2024
9.0.0-preview.6.24327.7 20 07/10/2024
9.0.0-preview.5.24306.7 17 06/12/2024
9.0.0-preview.4.24266.19 13 05/24/2024
9.0.0-preview.3.24172.9 25 04/11/2024
9.0.0-preview.2.24128.5 29 03/12/2024
9.0.0-preview.1.24080.9 21 02/17/2024
8.0.0 22 12/06/2023
8.0.0-rc.2.23479.6 14 03/29/2024
8.0.0-rc.1.23419.4 26 11/07/2023
8.0.0-preview.7.23375.6 37 09/08/2023
8.0.0-preview.6.23329.7 31 02/10/2024
8.0.0-preview.5.23280.8 33 09/12/2023
8.0.0-preview.4.23259.5 41 05/24/2023
8.0.0-preview.3.23174.8 17 08/29/2023
8.0.0-preview.2.23128.3 23 08/31/2023
8.0.0-preview.1.23110.8 28 07/12/2023
7.0.0 48 06/12/2023
7.0.0-rc.2.22472.3 16 08/25/2023
7.0.0-rc.1.22426.10 31 08/26/2023
7.0.0-preview.7.22375.6 39 08/01/2023
7.0.0-preview.6.22324.4 39 08/25/2023
7.0.0-preview.5.22301.12 45 07/12/2023
7.0.0-preview.4.22229.4 29 08/27/2023
7.0.0-preview.3.22175.4 38 07/30/2023
7.0.0-preview.2.22152.2 44 08/30/2023
7.0.0-preview.1.22076.8 39 08/31/2023
6.0.2-mauipre.1.22102.15 18 08/26/2023
6.0.2-mauipre.1.22054.8 26 07/28/2023
6.0.0 38 06/12/2023
6.0.0-rc.2.21480.5 16 08/29/2023
6.0.0-rc.1.21451.13 22 10/12/2021
6.0.0-preview.7.21377.19 23 08/28/2023
6.0.0-preview.6.21352.12 32 08/18/2023
6.0.0-preview.5.21301.5 29 08/30/2023
6.0.0-preview.4.21253.7 50 08/29/2023
6.0.0-preview.3.21201.4 19 08/28/2023
6.0.0-preview.2.21154.6 20 08/28/2023
6.0.0-preview.1.21102.12 29 10/26/2021
5.0.1 35 06/12/2023
5.0.0 61 12/30/2020
5.0.0-rc.2.20475.5 48 05/28/2023
5.0.0-rc.1.20451.14 20 08/29/2023
5.0.0-preview.8.20407.11 17 08/31/2023
5.0.0-preview.7.20364.11 37 08/02/2023
5.0.0-preview.6.20305.6 19 08/29/2023
5.0.0-preview.5.20278.1 21 08/31/2023
5.0.0-preview.4.20251.6 24 08/29/2023
5.0.0-preview.3.20214.6 21 08/27/2023
5.0.0-preview.2.20160.6 35 08/25/2023
5.0.0-preview.1.20120.5 32 08/02/2023
4.7.0 22 06/12/2023
4.7.0-preview3.19551.4 42 07/30/2023
4.7.0-preview2.19523.17 30 08/26/2023
4.7.0-preview1.19504.10 21 08/31/2023
4.6.0 39 06/11/2023
4.6.0-rc1.19456.4 48 06/01/2023
4.6.0-preview9.19421.4 33 08/30/2023
4.6.0-preview9.19416.11 37 07/13/2023
4.6.0-preview8.19405.3 23 06/08/2023
4.6.0-preview7.19362.9 19 08/30/2023
4.6.0-preview6.19303.8 20 08/26/2023
4.6.0-preview6.19264.9 18 08/24/2023
4.6.0-preview5.19224.8 24 08/29/2023
4.6.0-preview4.19212.13 24 08/25/2023
4.6.0-preview3.19128.7 42 08/07/2023
4.6.0-preview.19073.11 26 08/27/2023
4.6.0-preview.18571.3 40 08/15/2023
4.5.0 32 06/12/2023
4.5.0-rc1 41 08/01/2023
4.5.0-preview2-26406-04 37 07/12/2023
4.5.0-preview1-26216-02 34 07/28/2023
4.5.0-preview1-25914-04 17 08/25/2023
4.4.0 33 06/13/2023
4.4.0-preview2-25405-01 49 07/29/2023
4.4.0-preview1-25305-02 32 08/21/2023