DoNetDrive.Protocol.USB.CardReader 1.18.0

dotnet add package DoNetDrive.Protocol.USB.CardReader --version 1.18.0                
NuGet\Install-Package DoNetDrive.Protocol.USB.CardReader -Version 1.18.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.USB.CardReader" Version="1.18.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DoNetDrive.Protocol.USB.CardReader --version 1.18.0                
#r "nuget: DoNetDrive.Protocol.USB.CardReader, 1.18.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.
// Install DoNetDrive.Protocol.USB.CardReader as a Cake Addin
#addin nuget:?package=DoNetDrive.Protocol.USB.CardReader&version=1.18.0

// Install DoNetDrive.Protocol.USB.CardReader as a Cake Tool
#tool nuget:?package=DoNetDrive.Protocol.USB.CardReader&version=1.18.0                

DoNetDrive.Protocol.USB.CardReader

介绍

用于定义适用于USB发卡(502MS模块)的设备命令,含命令协议文档中的所有章节 USB设备需要安装驱动,驱动安装后再设备管理器中可看到 COM 端口号,使用此端口号进行通讯。

软件架构

基于 netstandard2.0 ;

使用说明

var mAllocator = ConnectorAllocator.GetAllocator();


//导入 串口通讯库
var defFactory = mAllocator.ConnectorFactory as DefaultConnectorFactory;
defFactory.ConnectorFactoryDictionary.Add(ConnectorType.SerialPort, DoNetDrive.Connector.COM.SerialPortFactory.GetInstance());
			
var cmdDtl = CommandDetailFactory.CreateDetail(new SerialPortDetail((byte)port, iBaudrate), 
				CommandDetailFactory.ControllerType.USBDrive_CardReader,
                 "0", null);
var cmd = new DoNetDrive.Protocol.USB.CardReader.SystemParameter.SN.ReadSN(cmdDtl);
try
{
    await mAllocator.AddCommandAsync(cmd);
    var snResult = cmd.getResult() as DoNetDrive.Protocol.USB.CardReader.SystemParameter.SN.SN_Result;
    Console.WriteLine(snResult.SN);

}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}

//释放
mAllocator.Dispose();

版本记录

Ver 1.17

增加EMID卡类型

Ver 1.18

更新依赖关系

  • DoNetDrive.Core Version="2.9.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 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. 
.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.

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
1.18.0 437 8/24/2022
1.17.0 402 7/9/2022