CSoft.Protocol.FlueGasAnalyzer 11.0.3

dotnet add package CSoft.Protocol.FlueGasAnalyzer --version 11.0.3
                    
NuGet\Install-Package CSoft.Protocol.FlueGasAnalyzer -Version 11.0.3
                    
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="CSoft.Protocol.FlueGasAnalyzer" Version="11.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSoft.Protocol.FlueGasAnalyzer" Version="11.0.3" />
                    
Directory.Packages.props
<PackageReference Include="CSoft.Protocol.FlueGasAnalyzer" />
                    
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 CSoft.Protocol.FlueGasAnalyzer --version 11.0.3
                    
#r "nuget: CSoft.Protocol.FlueGasAnalyzer, 11.0.3"
                    
#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 CSoft.Protocol.FlueGasAnalyzer@11.0.3
                    
#: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=CSoft.Protocol.FlueGasAnalyzer&version=11.0.3
                    
Install as a Cake Addin
#tool nuget:?package=CSoft.Protocol.FlueGasAnalyzer&version=11.0.3
                    
Install as a Cake Tool

CSoft.Protocol.FlueGasAnalyzer

杭州泽天春来烟气分析仪 v6.3 的 Modbus RTU 主站协议库。支持 netstandard2.0、net8.0、net9.0、net10.0 和 net11.0。

连接与读取

串口使用 8N1、无流控,支持 9600、38400 和 115200 波特率。示例中的串口、波特率和从站地址按仪表配置填写。

using CSoft.Protocol.FlueGasAnalyzer;

await using var analyzer = FlueGasAnalyzerClient.CreateSerial(
    "COM3", baudRate: 9600, slaveAddress: 1, timeoutMilliseconds: 3000);
await analyzer.OpenAsync();

var identity = await analyzer.ReadIdentityAsync();
var values = await analyzer.ReadConcentrationsAsync();

if (identity.HasComponent(GasComponent.So2))
{
    Console.WriteLine($"{identity.DeviceCode}: SO2 = {values.So2} mg/m³");
}

通过串口服务器连接时,使用 FlueGasAnalyzerClient.CreateRtuOverTcp(host, port)。网关须支持透传带 CRC 的 Modbus RTU 帧。

也可通过 new FlueGasAnalyzerClient(crowPort) 接入已有通讯口。端口须配置 Modbus RTU 解析器,由客户端独占请求调度,默认由调用方管理生命周期。

协议接口

接口 数据
ReadIdentityAsync 24 字节 ASCII 设备编码、用户权限、组分及双量程位图
ReadConcentrationsAsync SO₂、NOx、O₂、NO、NO₂、CO、CO₂ 浓度和气室压力
ReadClockAsync、ReadInstrumentSettingsAsync 仪表本地时间、反吹周期及持续时间、两路光强、NO/NOx 分子量模式
ReadStatusAsync、ReadAllStatusesAsync 各组分的状态、故障及两组报警字
ReadCalibrationAsync、ReadAllCalibrationsAsync 各组分的量程、校准系数、标气浓度、偏差、调零和标定时间、零点浓度
ReadSnapshotAsync 多次读取组成的快照,指定 includeCalibration: true 时附带仪表已配置组分的校准参数
SetClockAsync 一次写入年、月、日、时、分、秒,并校验响应回显
RegisterMap.Entries 协议文档的 166 项寄存器定义,含零基线路地址、参考编号、类型、权限和单位

读取使用功能码 0x04,校时使用 0x10。校时参数按仪表当地时间传输,精度为秒,无时区转换。快照的 StartedAt 和 CompletedAt 表示客户端采集区间。

取消与重连

客户端串行发送请求。排队时可取消,已发送的请求会等到响应或超时再释放总线。取消无法撤回已发送的校时命令。

响应超时、响应帧错误或断线后,RequiresReconnect 会提示需要重新建立连接。成功调用 OpenAsync() 后可继续请求。

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 is compatible.  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.  net11.0 is compatible. 
.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 was computed. 
.NET Framework net461 was computed.  net462 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.3 42 11/19/2026
11.0.2 104 11/13/2026
11.0.1 84 11/13/2026
11.0.0 94 11/13/2026
10.1.0 140 8/21/2026
10.0.11 173 1/14/2026
10.0.10 143 1/14/2026
10.0.9 146 1/13/2026
10.0.8 144 1/13/2026
10.0.7 151 1/13/2026
10.0.6 151 1/9/2026
10.0.5 199 12/26/2025
10.0.3 223 12/23/2025
10.0.2 319 12/18/2025
10.0.1 317 12/18/2025
10.0.0 318 12/17/2025