Quick.UrlClient.SerialPort 2026.926.0

dotnet add package Quick.UrlClient.SerialPort --version 2026.926.0
                    
NuGet\Install-Package Quick.UrlClient.SerialPort -Version 2026.926.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Quick.UrlClient.SerialPort" Version="2026.926.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Quick.UrlClient.SerialPort" Version="2026.926.0" />
                    
Directory.Packages.props
<PackageReference Include="Quick.UrlClient.SerialPort" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Quick.UrlClient.SerialPort --version 2026.926.0
                    
#r "nuget: Quick.UrlClient.SerialPort, 2026.926.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Quick.UrlClient.SerialPort@2026.926.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Quick.UrlClient.SerialPort&version=2026.926.0
                    
Install as a Cake Addin
#tool nuget:?package=Quick.UrlClient.SerialPort&version=2026.926.0
                    
Install as a Cake Tool

Quick.UrlClient

Quick.UrlClient库的串口实现

URL示例: serial://./COM1?BaudRate=9600

参数说明

  • BaudRate: 波特率
  • Parity: 奇偶校验, None=不校验,Odd=奇校验,Even=偶校验,Mark=将奇偶校验位设置为1,Space=将奇偶校验位设置为0
  • DataBits: 数据位, 此属性的值范围为5到8。默认值为8。
  • StopBits: 停止位, None=不使用停止位,One=使用一个停止位,Two=使用两个停止位=使用1.5个停止位
  • WriteTimeout: 写入超时, 单位: 毫秒
  • WriteBufferSize: 写入缓冲区大小
  • ReadTimeout: 读取超时, 单位: 毫秒
  • ReadBufferSize: 读取缓冲区大小

使用示例

using Quick.UrlClient;
using Quick.UrlClient.SerialPort;

//注册要使用的URL架构
SerialPortUrlClient.Register();

var url = "serial://./COM1?BaudRate=9600";
//根据URL创建客户端
using (var urlClient = UrlClientFactory.Build(url))
{
    //打开连接
    urlClient.Open();
    //得到流读写数据
    using (var stream = urlClient.GetStream())
    {
        // 读写数据
    }
    //关闭
    urlClient.Close();
}
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Quick.UrlClient.SerialPort:

Package Downloads
Quick.Sms

Send sms with Wireless module(GSM/LTE etc).

Quick.GBT33573

海关金关工程二期工程标准-海关物流监控前端集成系统建设-数据接口(JGS/T 14-2015)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.926.0 212 9/26/2026
2026.3.424 136 4/24/2026
2026.2.424 114 4/23/2026
2026.1.423 118 4/23/2026