ZL.IotDriver
2.3.0
dotnet add package ZL.IotDriver --version 2.3.0
NuGet\Install-Package ZL.IotDriver -Version 2.3.0
<PackageReference Include="ZL.IotDriver" Version="2.3.0" />
<PackageVersion Include="ZL.IotDriver" Version="2.3.0" />
<PackageReference Include="ZL.IotDriver" />
paket add ZL.IotDriver --version 2.3.0
#r "nuget: ZL.IotDriver, 2.3.0"
#:package ZL.IotDriver@2.3.0
#addin nuget:?package=ZL.IotDriver&version=2.3.0
#tool nuget:?package=ZL.IotDriver&version=2.3.0
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 | Versions 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. |
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.4)
- OPCFoundation.NetStandard.Opc.Ua.Client (>= 1.5.378.134)
- System.Buffers (>= 4.6.1)
- System.Memory (>= 4.6.3)
- ZL.IotAbstraction (>= 2.3.0)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.4)
- System.Buffers (>= 4.6.1)
- System.IO.Ports (>= 9.0.4)
- System.Memory (>= 4.6.3)
- ZL.IotAbstraction (>= 2.3.0)
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- OPCFoundation.NetStandard.Opc.Ua.Client (>= 1.5.378.134)
- System.IO.Ports (>= 9.0.4)
- ZL.IotAbstraction (>= 2.3.0)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- OPCFoundation.NetStandard.Opc.Ua.Client (>= 1.5.378.134)
- System.IO.Ports (>= 9.0.4)
- ZL.IotAbstraction (>= 2.3.0)
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.