Hi.Ltd.Communication
2026.10.29.1032
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.8.1
This package targets .NET Framework 4.8.1. The package is compatible with this framework or higher.
dotnet add package Hi.Ltd.Communication --version 2026.10.29.1032
NuGet\Install-Package Hi.Ltd.Communication -Version 2026.10.29.1032
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="Hi.Ltd.Communication" Version="2026.10.29.1032" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hi.Ltd.Communication" Version="2026.10.29.1032" />
<PackageReference Include="Hi.Ltd.Communication" />
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 Hi.Ltd.Communication --version 2026.10.29.1032
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hi.Ltd.Communication, 2026.10.29.1032"
#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 Hi.Ltd.Communication@2026.10.29.1032
#: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=Hi.Ltd.Communication&version=2026.10.29.1032
#tool nuget:?package=Hi.Ltd.Communication&version=2026.10.29.1032
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Hi.Ltd.Communication
工业通信库:Modbus TCP/RTU、Melsec、西门子 S7、松下 Mewtocol、欧姆龙 FINS、基恩士 Host Link、Allen-Bradley EtherNet/IP 等;实现枢纽 IPlc。
dotnet add package Hi.Ltd.Communication
完整说明见 Hi.Ltd.Communication.md。
改动记录
- 连接三层边界(Melsec / EtherNetIp / FINS):建立连接只开 Socket;握手单次裸发送+超时、不重连;会话重连仅在握手成功后进行,次数上限
SessionReconnectMaxAttempts(默认 1)+ 指数退避,每次从建立连接重新开始,绝不嵌套。Open/Connect失败的错误链标明 建立连接 / 握手 / 会话 层;新增ReconnectCount。EtherNetIpMaster.Disconnect注销会话改为裸发送,静默对端时限时返回、不重连;ConnectAsync握手同样不再递归。net481 下TcpTransport异步读不响应超时导致静默对端挂死,已修复。新增假服务器回归(tests/Hi.Ltd.Communication.Tests/FakeServers),测试工程增加 net481。(1fd4822、2717e14、64e6472、0e7fa19、d68a732、ea1e2fe、a3434df) - 修复
MelsecMaster识别机型失败时Connect → IdentifyProfile → SendRequestWithRetry → Connect无限递归导致进程 StackOverflow(0xC00000FD):识别请求改为裸发送,Connect加重入保护,识别超时/断线时Connect/Open返回失败 Result;EtherNetIpMaster/FinsMaster握手同型改为裸发送;新增本地假服务器回归自检。(f033c2b、3629ee5、9459577) - 新增
PlcFactory(按协议枚举、URL 或键值对连接串创建IPlc)、PlcGroupPoller(分组轮询点位,值变化事件)、PlcHeartbeatGuard(心跳保活与断线自动重连)。用法见同名文档「统一工厂、分组轮询与心跳守护」。(e4c61c5) - 使用说明整体迁入
Hi.Ltd.Communication.md,README 只记改动。(c011e0a) - 版本号改由 base.build 统一生成,取值来自
base\.build\Hi.Ltd.Build.props(从上级目录自动导入):包版本 / FileVersion 取打包参数HiLtdVersion(yyyy.M.d.HHmm)。AssemblyVersion 由 2024.12.18.924 改为库级固定值 2026.0.0.0(即该 props 中的HiLtdAssemblyVersion),此后只在重大破坏性变更时上调。本库未强名称签名(SignAssembly=False,输出程序集 PublicKeyToken 为空):.NET Framework 加载未签名程序集不校验版本;.NET Core/.NET 5+ 只要求实际版本不低于编译时引用版本,2026.0.0.0 高于 2024.12.18.924,故按旧版编译的调用方无需重编、也无需绑定重定向。版本号变化只对强名称绑定有意义,本库不涉及;仅依赖反射读取 AssemblyVersion 的代码会看到新值。(7982acc) - csproj 说明版本号来源(base.build\Hi.Ltd.Build.props 自动导入)与单独克隆时的行为,并新增本地打包守卫 HiLtdCommRequireVersionForPack:dotnet pack 未传 HiLtdVersion 时报 HiLtd004;共享规则已含 HiLtd004 时自动跳过,不重复报错。普通构建不受影响。
本类库仅供参考使用,不保证方法的有效性,请谨慎使用。
| Product | Versions 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 was computed. 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 Framework | net481 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8.1
- Hi.Ltd (>= 2026.10.15.1049)
-
net6.0
- Hi.Ltd (>= 2026.10.15.1049)
- System.IO.Ports (>= 8.0.0)
-
net8.0
- Hi.Ltd (>= 2026.10.15.1049)
- System.IO.Ports (>= 8.0.0)
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 |
|---|---|---|
| 2026.10.29.1032 | 123 | 10/29/2026 |
完善通讯类