TouchSocket.SerialPorts
4.0.1
Prefix Reserved
dotnet add package TouchSocket.SerialPorts --version 4.0.1
NuGet\Install-Package TouchSocket.SerialPorts -Version 4.0.1
<PackageReference Include="TouchSocket.SerialPorts" Version="4.0.1" />
<PackageVersion Include="TouchSocket.SerialPorts" Version="4.0.1" />
<PackageReference Include="TouchSocket.SerialPorts" />
paket add TouchSocket.SerialPorts --version 4.0.1
#r "nuget: TouchSocket.SerialPorts, 4.0.1"
#:package TouchSocket.SerialPorts@4.0.1
#addin nuget:?package=TouchSocket.SerialPorts&version=4.0.1
#tool nuget:?package=TouchSocket.SerialPorts&version=4.0.1
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.0.1)
-
.NETStandard 2.0
- System.IO.Ports (>= 6.0.0)
- TouchSocket (>= 4.0.1)
-
.NETStandard 2.1
- System.IO.Ports (>= 6.0.0)
- TouchSocket (>= 4.0.1)
-
net10.0
- System.IO.Ports (>= 8.0.0)
- TouchSocket (>= 4.0.1)
-
net6.0
- System.IO.Ports (>= 8.0.0)
- TouchSocket (>= 4.0.1)
-
net8.0
- System.IO.Ports (>= 8.0.0)
- TouchSocket (>= 4.0.1)
NuGet packages (5)
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
仅组织内部使用。提供串口通信、网络通信支持功能的核心库。 |
|
|
Mortal.Mis.Core
WPF框架核心类库 |
|
|
WeforsysGateway.Foundation
Package Description |
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.0.1 | 199 | 11/30/2025 |
| 4.0.0 | 2,447 | 11/23/2025 |
| 4.0.0-rc.51 | 185 | 11/22/2025 |
| 4.0.0-rc.46 | 1,845 | 11/17/2025 |
| 4.0.0-rc.15 | 1,721 | 11/1/2025 |
| 4.0.0-rc.10 | 942 | 10/30/2025 |
| 4.0.0-rc.5 | 4,937 | 10/26/2025 |
| 4.0.0-rc.1 | 1,750 | 10/22/2025 |
| 4.0.0-beta.140 | 10,163 | 10/18/2025 |
| 4.0.0-beta.120 | 7,857 | 10/12/2025 |
| 4.0.0-beta.96 | 5,572 | 10/5/2025 |
| 4.0.0-beta.80 | 2,876 | 9/28/2025 |
| 4.0.0-beta.70 | 3,663 | 9/26/2025 |
| 4.0.0-beta.57 | 9,686 | 9/21/2025 |
| 4.0.0-beta.28 | 2,478 | 9/17/2025 |
| 4.0.0-beta.27 | 5,655 | 9/11/2025 |
| 4.0.0-beta.25 | 4,724 | 9/7/2025 |
| 4.0.0-beta.13 | 2,133 | 9/4/2025 |
| 4.0.0-beta.6 | 1,484 | 9/1/2025 |
| 3.1.19 | 306 | 10/25/2025 |
| 3.1.18 | 496 | 9/27/2025 |
| 3.1.17 | 647 | 9/9/2025 |
| 3.1.16 | 456 | 8/21/2025 |
| 3.1.15 | 733 | 8/3/2025 |
| 3.1.14 | 5,818 | 7/20/2025 |
| 3.1.13 | 5,450 | 7/14/2025 |
| 3.1.12 | 3,385 | 7/8/2025 |
| 3.1.11 | 21,557 | 6/24/2025 |
| 3.1.10 | 3,334 | 6/23/2025 |
| 3.1.9 | 1,916 | 6/22/2025 |
| 3.1.8 | 9,561 | 6/15/2025 |
| 3.1.7 | 14,845 | 6/8/2025 |
| 3.1.6 | 6,689 | 6/2/2025 |
| 3.1.5 | 15,282 | 5/24/2025 |
| 3.1.4 | 6,573 | 5/20/2025 |
| 3.1.3 | 4,261 | 5/18/2025 |
| 3.1.2 | 6,629 | 5/11/2025 |
| 3.1.1 | 5,964 | 4/29/2025 |
| 3.1.0 | 4,715 | 4/26/2025 |
| 3.0.26 | 3,553 | 4/20/2025 |
| 3.0.25 | 6,101 | 4/12/2025 |
| 3.0.24 | 6,600 | 4/7/2025 |
| 3.0.23 | 2,375 | 4/6/2025 |
| 3.0.20 | 9,325 | 3/30/2025 |
| 3.0.19 | 13,354 | 3/23/2025 |
| 3.0.18 | 9,596 | 3/16/2025 |
| 3.0.17 | 4,156 | 3/12/2025 |
| 3.0.16 | 4,113 | 3/9/2025 |
| 3.0.15 | 12,936 | 3/2/2025 |
| 3.0.14 | 14,731 | 2/15/2025 |
| 3.0.13 | 11,438 | 1/27/2025 |
| 3.0.12 | 10,087 | 1/19/2025 |
| 3.0.11 | 396 | 1/12/2025 |
| 3.0.10 | 2,195 | 1/5/2025 |
| 3.0.9 | 5,907 | 12/22/2024 |
| 3.0.8 | 4,516 | 12/15/2024 |
| 3.0.7 | 4,001 | 12/8/2024 |
| 3.0.6 | 3,031 | 12/1/2024 |
| 3.0.4 | 1,909 | 11/24/2024 |
| 3.0.3 | 3,855 | 11/17/2024 |
| 3.0.1 | 985 | 11/14/2024 |
| 3.0.0 | 976 | 11/13/2024 |
| 2.1.10 | 3,854 | 10/25/2024 |
| 2.1.0 | 710 | 9/15/2024 |
| 2.1.0-alpha.31 | 855 | 7/7/2024 |
| 2.1.0-alpha.30 | 110 | 7/5/2024 |
| 2.1.0-alpha.28 | 105 | 7/4/2024 |
| 2.1.0-alpha.27 | 131 | 7/3/2024 |
| 2.1.0-alpha.26 | 1,136 | 6/29/2024 |
| 2.1.0-alpha.23 | 441 | 6/28/2024 |
| 2.0.18 | 510 | 9/10/2024 |
| 2.0.17 | 536 | 8/30/2024 |
| 2.0.16 | 434 | 8/19/2024 |
| 2.0.15 | 480 | 8/9/2024 |
| 2.0.14 | 394 | 7/24/2024 |
| 2.0.12 | 417 | 7/17/2024 |
| 2.0.11 | 357 | 7/12/2024 |
| 2.0.10 | 696 | 5/31/2024 |
| 2.0.0 | 403 | 3/9/2024 |