ZL.IotDriver 2.3.0

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

ZL.IotDriver

ZL.IotEngine 的协议驱动插件包。64 个协议描述符,覆盖主流 PLC / 仪表 / 楼宇。

装什么

dotnet add package ZL.IotEngine
dotnet add package ZL.IotDriver

依赖方向:ZL.IotDriver → ZL.IotAbstraction(单向)。ZL.IotEngine 与 ZL.IotDriver 互不引用, 由宿主同时引用两者;Engine 通过 IProtocolPlugin + ZL.Iot*.dll 扫描在运行期加载本包。

🔴 2.3.0 起本包不再传递 ZL.IotEngine:只引用本包会缺编排层 ⇒ 必须同时引用 Engine(或由宿主统一引用)。

协议一览(按类)

类别 协议
西门子 siemens-s7、siemens-ppi、siemens-fetch-write
三菱 melsec-mc、melsec-mc-udp、melsec-a1e、melsec-fx-links
欧姆龙 omron-fins、omron-fins-udp、omron-hostlink
罗克韦尔 ab-cip、ab-pccc
Modbus modbus-tcp、modbus-udp、modbus-rtu、modbus-ascii(含 -over-tcp 变体)
楼宇/仪表 bacnet、knx、mbus、dlms、dali、mewtocol、keyence-*、ls-*、vigor、cimon、fuji-*、panasonic、invt、xinje、megmeet、estun、freedom、syntec、lscnet、mtconnect、dnp3 等

完整清单见 ZL.IotEngine 的 NativeProtocolRegistry(运行时枚举)。

串口协议(net48 特别注意)

modbus-rtu / modbus-ascii / dlms / mbus / dali 走 System.IO.Ports:

  • net8.0 / net10.0 / netstandard2.0:包已带 System.IO.Ports 9.0.4 ✅
  • net48:SerialPort 位于框架自带 System.dll,无需额外引用 ✅ (前提:目标机安装 .NET Framework 4.8 运行时)

自动发现

宿主输出目录存在 ZL.Iot*.dll 即自动加载;可用 protocol-plugins.json 覆盖。

边界

  • 本包只依赖 ZL.IotAbstraction,不含编排实现
  • 驱动基础设施(NativeDriverBase / WriteGate / TcpConnectHelper 等)在 Core/
  • 设备级 S7NativeDriver 位于 ZL.IotEngine(保留原命名空间 ZL.IotDriver.Siemens), 这是设备级适配器,与传输驱动插件不是同一类
  • 与已冻结的旧包 ZL.IotHub 不可同宿主同引(CS0433)
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 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 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on ZL.IotDriver:

Package Downloads
ZL.IotHub.Bridges

桥接适配包:把 **ZL.IotEngine 的本地事件** 转成可选远程推送(SignalR Client)。依赖 ZL.IotEngine + ZL.IotDriver + ZL.IotAbstraction。⚠️ 原名含 "ZL.IotHub" 是历史沿用 —— **ZL.IotHub 包已于 2026-11-08 删除**,事件来源是 ZL.IotEngine。 示例见 https://github.com/qwdingyu/ZL.IotHubDemo 。

ZL.IotHub.Server

SCADA / Web API 实时通信服务端:基于 SignalR Server,对接 ZL.IotEngine + ZL.IotDriver 采集内核(事件桥接经 ZL.IotHub.Bridges)。 示例见 https://github.com/qwdingyu/ZL.IotHubDemo 。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 97 11/19/2026
2.2.19 132 11/7/2026
2.2.18 154 11/7/2026