DoNetDrive.Protocol
2.4.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package DoNetDrive.Protocol --version 2.4.0
NuGet\Install-Package DoNetDrive.Protocol -Version 2.4.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="DoNetDrive.Protocol" Version="2.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DoNetDrive.Protocol" Version="2.4.0" />
<PackageReference Include="DoNetDrive.Protocol" />
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 DoNetDrive.Protocol --version 2.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DoNetDrive.Protocol, 2.4.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 DoNetDrive.Protocol@2.4.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=DoNetDrive.Protocol&version=2.4.0
#tool nuget:?package=DoNetDrive.Protocol&version=2.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DoNetDrive.Protocol
介绍
用于设备命令的协议抽象层,定义了各种产品的协议格式及编解码器
软件架构
基于 netstandard2.0 ;
依赖于此动态库的项目
- DoNetDrive.Protocol.Door 门禁控制板命令库
- DoNetDrive.Protocol.Fingerprint 指纹机/人脸机命令库
- DoNetDrive.Protocol.Fingerprint.Elevator 指纹机/人脸机附加电梯功能命令库
- DoNetDrive.Protocol.Elevator 电梯控制板命令库
- DoNetDrive.Protocol.POS 消费机命令库
- DoNetDrive.Protocol.USB.OfflinePatrol USB巡更棒命令库
- DoNetDrive.Protocol.USB.CardReader USB发卡器命令库
使用说明
var mAllocator = ConnectorAllocator.GetAllocator();
var cmdDtl = CommandDetailFactory.CreateDetail(CommandDetailFactory.ConnectType.TCPClient, "192.168.1.56", 8000,
CommandDetailFactory.ControllerType.Door88, "0000000000000000", "FFFFFFFF");
ReadSN cmd = new ReadSN(cmdDtl);
try
{
await mAllocator.AddCommandAsync(cmd);
var snResult = cmd.getResult() as SN_Result;
Console.WriteLine(snResult.SNBuf);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
//释放
mAllocator.Dispose();
版本记录
ver 2.02.0
CommandDetailFactory 类删除了对SerialPort的支持,增加一个 CreateDetail(INConnectorDetail, ControllerType , string , string ) 函数,可以由外部创建INConnectorDetail 后,再组装 INCommandDetail。
ver 2.03.0
修改封装的人脸机、控制板命令处理流程,当出现命令校验错误时,不再判断命令标识,立刻将当前命令重发一次。
ver 2.04.0
更新依赖库 DoNetDrive.Common 的版本号
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 was computed. 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
- DoNetDrive.Common (>= 1.17.0)
- DoNetDrive.Core (>= 2.9.0)
- DoNetDrive.Protocol.Util (>= 1.16.0)
- DotNetty.Buffers (>= 0.7.0)
- DotNetty.Common (>= 0.7.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DoNetDrive.Protocol:
Package | Downloads |
---|---|
DoNetDrive.Protocol.Door
用于定义门禁控制器 FC89\FC89H\MC58 型号设备的命令 |
|
DoNetDrive.Protocol.USB.CardReader
用于定义USB 发卡器的设备命令 |
GitHub repositories
This package is not used by any popular GitHub repositories.