Vktun.IoT.Connector.Core 0.0.5

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

Vktun.IoT.Connector.Core

IoT 设备连接核心接口和模型定义。

安装

dotnet add package Vktun.IoT.Connector.Core

功能

  • 设备连接接口定义
  • 数据模型和消息格式
  • 协议抽象层
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Vktun.IoT.Connector.Core:

Package Downloads
Vktun.IoT.Connector.Driver

Vktun IoT Connector Driver - 底层驱动组件库,提供 Socket 和网络通信的底层驱动实现。 主要功能: - Socket 驱动接口(ISocketDriver):统一的 Socket 驱动抽象接口 - TCP Socket 驱动(TcpSocketDriver):TCP 协议的 Socket 实现 - UDP Socket 驱动(UdpSocketDriver):UDP 协议的 Socket 实现 - 连接管理:连接、断开、重连等操作 - 数据收发:异步的发送和接收操作 - Socket 选项配置:缓冲区大小、超时、NoDelay 等选项 核心特性: - 异步优先:所有操作都是异步的,避免阻塞 - 高性能:基于 .NET Socket 的高性能实现 - 可配置:缓冲区大小、超时等参数可配置 - 错误处理:完善的异常处理和日志记录 - 资源管理:实现了 IAsyncDisposable,支持资源释放 支持的协议: - TCP:面向连接的可靠传输 - UDP:无连接的数据报传输 使用方式: 1. 安装 NuGet 包:dotnet add package Vktun.IoT.Connector.Driver 2. 创建 Socket 驱动实例 3. 连接远程端点并进行数据收发 示例代码: var driver = new TcpSocketDriver(configProvider, logger); await driver.ConnectAsync(remoteEndPoint); await driver.SendAsync(data); var received = await driver.ReceiveAsync(buffer);

Vktun.IoT.Connector.Concurrency

Vktun IoT Connector Concurrency - 并发处理组件库,提供高性能的异步队列、任务调度和资源监控功能。 主要功能: - 异步队列(AsyncQueue):基于 Channel 的高性能异步队列,支持多生产者多消费者 - 优先级队列(PriorityAsyncQueue):支持优先级排序的异步队列 - 任务调度器(TaskScheduler):设备命令的异步调度和执行,支持优先级和并发控制 - 资源监控器(ResourceMonitor):实时监控系统资源使用情况(CPU、内存、句柄等) - 并发控制:信号量、锁、原子操作等并发控制机制 核心特性: - 线程安全:所有组件都是线程安全的 - 高性能:基于 .NET Channel 和高性能并发集合 - 异步优先:全面支持 async/await 模式 - 可配置:队列容量、线程池大小、资源阈值等可配置 - 事件驱动:任务完成、失败、资源超限等事件通知 使用方式: 1. 安装 NuGet 包:dotnet add package Vktun.IoT.Connector.Concurrency 2. 创建任务调度器或队列实例 3. 提交任务或使用队列进行数据传递 示例代码: var scheduler = new TaskScheduler(configProvider, deviceManager, executor, logger); await scheduler.StartAsync(); var taskId = await scheduler.SubmitTaskAsync(command); var result = await scheduler.GetTaskResultAsync(taskId);

Vktun.IoT.Connector.Protocol

Vktun IoT Connector Protocol - 工业协议解析器库。 当前已验证:Modbus RTU/TCP、自定义协议,以及模板兼容性回归。 受限可用:S7、IEC104。 实验性:OPC UA、BACnet、CANopen。

Vktun.IoT.Connector.Serial

Vktun IoT Connector Serial - 串口通信组件库,提供完整的串口通信功能,支持 RS232/RS485 等串行通信接口。 主要功能: - 串口通道(SerialChannel):实现 ICommunicationChannel 接口的串口通信通道 - 串口驱动(SerialPortDriver):底层串口驱动,基于 Windows API 实现 - 串口通道基类(SerialChannelBase):串口通道的抽象基类 - 多设备支持:单个串口可连接多个设备(如 RS485 总线) 支持的串口参数: - 波特率(BaudRate):300 ~ 115200+ bps - 数据位(DataBits):5, 6, 7, 8 - 校验位(Parity):None, Odd, Even, Mark, Space - 停止位(StopBits):1, 1.5, 2 - 超时设置:读写超时可配置 平台支持: - Windows:基于 Win32 API 实现 - 跨平台:可扩展支持 Linux/macOS 使用方式: 1. 安装 NuGet 包:dotnet add package Vktun.IoT.Connector.Serial 2. 创建串口通道实例,指定端口名和波特率 3. 打开通道并连接设备 示例代码: var channel = new SerialChannel("COM3", 9600, configProvider, logger); await channel.OpenAsync(); await channel.ConnectDeviceAsync(device); await channel.SendAsync(device.DeviceId, data);

Vktun.IoT.Connector.Configuration

Vktun IoT Connector Configuration - 配置管理组件,提供日志配置、证书管理、JSON 配置提供程序等功能。 主要功能: - JSON 配置提供者(JsonConfigurationProvider):从 JSON 文件加载和保存 SDK 配置 - 日志配置(LogConfiguration):灵活的日志级别和输出配置 - Serilog 日志器(SerilogLogger):基于 Serilog 的日志实现,支持控制台和文件输出 - 证书管理器(CertificateManager):SSL/TLS 证书的加载和管理 - 配置变更通知:配置更新时触发事件通知 - 协议模板管理:加载和保存工业协议配置模板 支持的配置类型: - 全局配置(GlobalConfig):最大连接数、缓冲区大小、超时等 - TCP 配置(TcpConfig):TCP 通信参数 - UDP 配置(UdpConfig):UDP 通信参数 - 串口配置(SerialConfig):串口通信参数 - 无线配置(WirelessConfig):无线通信参数 - 线程池配置(ThreadPoolConfig):线程池参数 - 资源配置(ResourceConfig):资源监控参数 使用方式: 1. 安装 NuGet 包:dotnet add package Vktun.IoT.Connector.Configuration 2. 创建配置提供者实例 3. 加载或保存配置 示例代码: var logger = new SerilogLogger(new LogConfiguration()); var configProvider = new JsonConfigurationProvider(logger, "config.json"); var config = await configProvider.LoadConfigAsync("config.json");

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.5 196 5/8/2026
0.0.4 177 4/15/2026
0.0.3 148 4/14/2026
0.0.2 163 4/11/2026
0.0.1 185 4/9/2026