TouchSocket.SerialPorts
4.1.2
Prefix Reserved
See the version list below for details.
dotnet add package TouchSocket.SerialPorts --version 4.1.2
NuGet\Install-Package TouchSocket.SerialPorts -Version 4.1.2
<PackageReference Include="TouchSocket.SerialPorts" Version="4.1.2" />
<PackageVersion Include="TouchSocket.SerialPorts" Version="4.1.2" />
<PackageReference Include="TouchSocket.SerialPorts" />
paket add TouchSocket.SerialPorts --version 4.1.2
#r "nuget: TouchSocket.SerialPorts, 4.1.2"
#:package TouchSocket.SerialPorts@4.1.2
#addin nuget:?package=TouchSocket.SerialPorts&version=4.1.2
#tool nuget:?package=TouchSocket.SerialPorts&version=4.1.2
TouchSocket.SerialPorts
项目概述
TouchSocket.SerialPorts 是一个适用于 .Net(涵盖 C#、VB.Net、F#)的整合性串口通信框架。它提供了丰富的串口通信功能,包括串口连接、断开等一系列通信事务处理,同时能一键式解决数据黏分包问题。借助协议模板,可快速实现「固定包头」「固定长度」「区间字符」等多种数据报文解析。
功能特性
- 全面的串口通信支持:支持串口的连接、断开等基本操作,满足常见的串口通信需求。
- 数据黏分包处理:能够自动处理数据黏分包问题,确保数据的准确传输。
- 灵活的报文解析:通过协议模板,可快速实现多种数据报文解析方式。
文档说明
详细的说明文档请访问:https://touchsocket.net/
支持的目标框架
- net481
- net462
- net472
- netstandard2.0
- netstandard2.1
- net6.0
- net10.0
- net8.0
贡献与反馈
如果你在使用过程中遇到问题或有任何建议,欢迎提交 issue 或参与项目贡献。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- TouchSocket (>= 4.1.2)
-
.NETStandard 2.0
- System.IO.Ports (>= 6.0.0)
- TouchSocket (>= 4.1.2)
-
.NETStandard 2.1
- System.IO.Ports (>= 6.0.0)
- TouchSocket (>= 4.1.2)
-
net10.0
- System.IO.Ports (>= 8.0.0)
- TouchSocket (>= 4.1.2)
-
net6.0
- System.IO.Ports (>= 8.0.0)
- TouchSocket (>= 4.1.2)
-
net8.0
- System.IO.Ports (>= 8.0.0)
- TouchSocket (>= 4.1.2)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on TouchSocket.SerialPorts:
| Package | Downloads |
|---|---|
|
ThingsGateway.Foundation
Package Description |
|
|
TouchSocket.Modbus
这是一个Modbus功能库,目前包括ModbusTcpMaster、ModbusUdpMaster、ModbusRtuMaster、ModbusRtuOverTcpMaster、ModbusRtuOverUdpMaster。 说明文档:https://touchsocket.net/ |
|
|
Rays.Commlink
仅组织内部使用。提供串口通信、网络通信支持功能的核心库。 |
|
|
WeforsysGateway.Foundation
Package Description |
|
|
Mortal.Mis.Core
WPF框架核心类库 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on TouchSocket.SerialPorts:
| Repository | Stars |
|---|---|
|
ThingsGateway/ThingsGateway
ThingsGateway is a cross-platform, high-performance gateway for edge data acquisition and IoT connectivity. Developed with .NET 8, it offers a suite of powerful tools, including advanced PLC communication libraries and debugging software.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.1.3 | 98 | 2/12/2026 |
| 4.1.2 | 509 | 2/11/2026 |
| 4.1.1 | 6,415 | 2/1/2026 |
| 4.1.0 | 8,562 | 1/25/2026 |
| 4.0.8.10-beta | 163 | 1/21/2026 |
| 4.0.8 | 4,665 | 1/18/2026 |
| 4.0.7 | 4,520 | 1/8/2026 |
| 4.0.6 | 2,381 | 1/3/2026 |
| 4.0.5 | 3,019 | 12/28/2025 |
| 4.0.4 | 3,363 | 12/21/2025 |
| 4.0.3 | 2,855 | 12/13/2025 |
| 4.0.2 | 4,110 | 12/6/2025 |
| 4.0.1 | 4,523 | 11/30/2025 |
| 4.0.0 | 3,737 | 11/23/2025 |
| 4.0.0-rc.51 | 222 | 11/22/2025 |
| 4.0.0-rc.46 | 1,881 | 11/17/2025 |