XLucky.Utils
1.9.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package XLucky.Utils --version 1.9.0
NuGet\Install-Package XLucky.Utils -Version 1.9.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="XLucky.Utils" Version="1.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XLucky.Utils" Version="1.9.0" />
<PackageReference Include="XLucky.Utils" />
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 XLucky.Utils --version 1.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XLucky.Utils, 1.9.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 XLucky.Utils@1.9.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=XLucky.Utils&version=1.9.0
#tool nuget:?package=XLucky.Utils&version=1.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XLucky.Utils - 工业上位机通讯与通用工具库
🔄 维护计划
库维护说明:本项目遵循 "周更小版本,月更大版本" 的迭代节奏,持续优化 工业各种 通讯性能与稳定性以及更多其他新增通讯。注:因个人事务等不可预见因素,更新可能存在轻微延迟,敬请谅解。
📝 最新更新 (v1.9.0)
🔌 新增西门子 S7 协议驱动 (SiemensS7)
- S7 通信:西门子 PLC 的 S7 协议通信,支持 S7-200/300/400/1200/1500 全系列。
- 基础读写操作:支持 BOOL、BYTE、INT、DINT、REAL、LREAL、STRING 等标准数据类型的读取(
Read)与写入(Write),智能地址解析模式(SmartRead/Write)。
✨ 核心特性
🔌 高级通讯模块
- 全协议栈支持:原生支持 Serial (RS232/485)、TCP/IP、UDP 及 HTTP/HTTPS 协议。
- 主流 PLC 互联:
- Siemens S7 系列 (S7-200/300/400/1200/1500)
- Modbus RTU/TCP 主从站模式
- OMRON CIP/FINS /EIP 协议族
- 工业总线集成:内置 OPC UA 客户端、CAN 总线解析及 Profibus 桥接能力。
- 高可用连接管理:智能心跳检测机制,支持断线自动重连与状态自愈。
🛠️ 通用工具模块
- 数据编解码:提供字节数组操作、BCD 码转换、IEEE754 浮点数处理等工业常用算法。
- 完整性校验:集成 CRC16/CRC32、Checksum 累加和、LRC 纵向冗余校验计算。
- 安全加密套件:支持 AES、DES、RSA 国际标准算法及国密 SM4 算法。
- 结构化日志:高性能日志系统,支持多级别、多输出目标(文件/控制台/网络)。
🚀 性能优化架构
- 连接池技术:实现 TCP 连接复用,降低握手延迟。
- 异步并发模型:基于
Task的全异步非阻塞 IO 操作。 - 内存零拷贝:利用
ArrayPool缓冲池技术,大幅减少 GC 压力,实现高效数据传输。 - 二进制解析加速:针对工业报文优化的快速解析引擎。
📦 安装指南
NuGet Package Manager
Install-Package XLucky.Utils
.NET CLI
dotnet add package XLucky.Utils
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.4)
- S7netplus (>= 0.20.0)
- System.Net.Http (>= 4.3.4)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- S7netplus (>= 0.20.0)
- System.IO.Ports (>= 10.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.