Indulink.Core 1.0.0

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

Indulink 是我在做工业通信相关项目时整理出来的一组 .NET 类库。现在先从公共基础、传输层和 Modbus 主站这几块开始拆分,方便在上位机、边缘网关、设备接入服务和测试工具里按模块组合使用。

🚧 文档

这个 README 先只放项目介绍,不展开写使用手册。

安装方式、配置说明、示例代码和 API 文档会放到单独的文档仓库里维护。文档还在整理,仓库准备好后我会把链接补在这里。

先会整理这些内容:

  • 安装与版本选择
  • 快速开始
  • 串口与 TCP 传输配置
  • Modbus RTU / TCP 使用说明
  • API 说明与常见问题

📦 现在包含

  • src/Indulink.Core:公共错误模型、结果模型、异常和基础选项
  • src/Indulink.Transport.Abstractions:传输层抽象接口
  • src/Indulink.Transport.SerialPort:串口传输实现
  • src/Indulink.Transport.Tcp:TCP 传输实现
  • src/Indulink.Protocols.Modbus:Modbus RTU / TCP 主站实现

测试项目都放在 tests 目录里,主要覆盖传输层和 Modbus 协议的核心行为。

🧱 这个系列现在想先做好几件事

  • 把基础模型、传输实现和协议实现拆开,减少耦合
  • 让调用方按需引用,不把所有能力绑成一个大包
  • 统一结果模型和错误语义,减少接入时的胶水代码
  • 保持可测试,也给后续补更多传输层和协议留出空间

✅ 目前已经有

  • 统一的操作结果模型与错误表达方式
  • 串口与 TCP 两种基础传输能力
  • Modbus RTU 与 Modbus TCP 主站能力
  • 面向读操作的自动重试配置能力
  • 传输层与协议层的测试覆盖

🎯 适合用在

  • 工业设备接入服务
  • 上位机通信程序
  • 边缘网关或采集服务
  • 协议联调、测试与模拟工具
  • 需要按模块组合工业通信能力的类库或应用

🗂️ 仓库结构

Indulink
├─ src
│  ├─ Indulink.Core
│  ├─ Indulink.Transport.Abstractions
│  ├─ Indulink.Transport.SerialPort
│  ├─ Indulink.Transport.Tcp
│  └─ Indulink.Protocols.Modbus
└─ tests
   ├─ Indulink.Protocols.Modbus.Tests
   └─ Indulink.Transport.Tcp.Tests

🛠️ 目标框架

  • 类库:net8.0;netstandard2.0
  • 测试:net8.0
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 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 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.
  • .NETStandard 2.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Indulink.Core:

Package Downloads
Indulink.Transport.Abstractions

Transport abstractions for building protocol clients and transport implementations in the Indulink library series.

Indulink.Protocols.Modbus

Modbus RTU and Modbus TCP master implementation for the Indulink industrial communication libraries.

Indulink.Transport.Tcp

TCP transport implementation for the Indulink industrial communication libraries.

Indulink.Transport.SerialPort

Serial port transport implementation for the Indulink industrial communication libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 285 3/12/2026