Commit dafcb7e7 顾剑亮

上传代码

1 个父辈 ec38886c
正在显示 103 个修改的文件 包含 2929 行增加2 行删除
此文件类型无法预览
......@@ -7,20 +7,50 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID", "RFID\RFID.csproj",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID_Debug", "RFID_Debug\RFID_Debug.csproj", "{44467E65-C850-4538-96E4-1335CCCB87BC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID_HFReader", "RFID_HFReader\RFID_HFReader.csproj", "{E352E032-435C-4EB1-96B4-018BDC50B105}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID_HFReader_Debug", "RFID_HFReader_Debug\RFID_HFReader_Debug.csproj", "{5C55663B-DBDA-490B-A80F-0ABB173AEF88}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Debug|x86.ActiveCfg = Debug|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Debug|x86.Build.0 = Debug|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Release|Any CPU.Build.0 = Release|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Release|x86.ActiveCfg = Release|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Release|x86.Build.0 = Release|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Debug|x86.ActiveCfg = Debug|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Debug|x86.Build.0 = Debug|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Release|Any CPU.Build.0 = Release|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Release|x86.ActiveCfg = Release|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Release|x86.Build.0 = Release|Any CPU
{E352E032-435C-4EB1-96B4-018BDC50B105}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E352E032-435C-4EB1-96B4-018BDC50B105}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E352E032-435C-4EB1-96B4-018BDC50B105}.Debug|x86.ActiveCfg = Debug|x86
{E352E032-435C-4EB1-96B4-018BDC50B105}.Debug|x86.Build.0 = Debug|x86
{E352E032-435C-4EB1-96B4-018BDC50B105}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E352E032-435C-4EB1-96B4-018BDC50B105}.Release|Any CPU.Build.0 = Release|Any CPU
{E352E032-435C-4EB1-96B4-018BDC50B105}.Release|x86.ActiveCfg = Release|x86
{E352E032-435C-4EB1-96B4-018BDC50B105}.Release|x86.Build.0 = Release|x86
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Debug|x86.ActiveCfg = Debug|x86
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Debug|x86.Build.0 = Debug|x86
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Release|Any CPU.Build.0 = Release|Any CPU
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Release|x86.ActiveCfg = Release|x86
{5C55663B-DBDA-490B-A80F-0ABB173AEF88}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
......@@ -21,6 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Asa.RFID.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
......@@ -41,8 +42,12 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="ReadAll.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "D:\OneDrive - 上海挚锦科技有限公司\DLL\RFID\$(TargetFileName)"
copy "$(TargetDir)$(TargetName).xml" "D:\OneDrive - 上海挚锦科技有限公司\DLL\RFID\$(TargetName).xml"</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0"?>
<doc>
<assembly>
<name>Asa.RFID</name>
</assembly>
<members>
</members>
</doc>
cf4e542699dc396cb2310048fe3c509d0e0da9a5
9b68bc78b009177994d766ec5b467f71d6022fba
......@@ -3,3 +3,4 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID\bin\Debug\Asa.RFID.pd
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID\obj\Debug\RFID.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID\obj\Debug\Asa.RFID.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID\obj\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID\bin\Debug\Asa.RFID.xml
......@@ -86,4 +86,7 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "D:\OneDrive - 上海挚锦科技有限公司\DLL\RFID\$(TargetFileName)"</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0"?>
<doc>
<assembly>
<name>Asa.RFID</name>
</assembly>
<members>
</members>
</doc>
......@@ -11,3 +11,4 @@ D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug\obj\Debug\RFID_
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug\obj\Debug\RFID_Debug.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug\bin\Debug\Asa.RFID.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug\bin\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug\bin\Debug\Asa.RFID.xml
此文件的差异被折叠, 点击展开。
此文件的差异被折叠, 点击展开。

using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace Asa.RFID
{
internal class HFReaderInfo
{
internal string IP;
internal string Mac;
internal int Port;
internal int Func;
internal byte[] Buffer;
internal byte[] ID;
internal byte ComAddr;
public HFReaderInfo()
{
Func = 0;
Buffer = new byte[28 * 4];
ID = new byte[8];
}
public HFReaderInfo(string ip) : this()
{
IP = ip;
string[] aa = ip.Split('.');
ComAddr = Convert.ToByte(aa[3]);
Port = 6000 + Convert.ToInt32(aa[3]);
}
}
/// <summary>
/// IP地址操作
/// </summary>
public static class IP
{
private static List<HFReaderInfo> info = new List<HFReaderInfo>();
private static UdpClient udp;
private const int PORT = 51060;
/// <summary>
/// 查找IP地址
/// </summary>
/// <param name="localIP"></param>
/// <returns></returns>
public static string[] Find(string localIP)
{
info.Clear();
IPEndPoint ep = new IPEndPoint(IPAddress.Parse("255.255.255.255"), 65535);
byte[] arr = Encoding.ASCII.GetBytes("X");
IPEndPoint local = new IPEndPoint(IPAddress.Parse(localIP), PORT);
udp = new UdpClient(local);
udp.Send(arr, arr.Length, ep);
System.Threading.Thread.Sleep(50);
int count = 0;
int time = 0;
System.Threading.Thread tTemp = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(ReceiveIP));
tTemp.Start(ep);
while (true)
{
if (info.Count == count)
time += 50;
else
{
time = 0;
count = info.Count;
}
if (time >= 800)
{
tTemp.Abort();
tTemp = null;
break;
}
System.Threading.Thread.Sleep(50);
}
udp.Close();
string[] ip = new string[info.Count];
for (int i = 0; i < ip.Length; i++)
ip[i] = info[i].IP;
return ip;
}
/// <summary>
/// 修改IP地址,需要先查找IP
/// </summary>
/// <param name="localIP">本地IP</param>
/// <param name="beforeIP">修改前的IP</param>
/// <param name="afterIP">修改后的IP</param>
/// <returns></returns>
public static bool Modify(string localIP, string beforeIP, string afterIP)
{
int idx = info.FindIndex(s => s.IP == beforeIP);
if (idx == -1) return false;
IPEndPoint local = new IPEndPoint(IPAddress.Parse(localIP), PORT);
UdpClient udp = new UdpClient(local);
string[] ss = afterIP.Split('.');
string port = "6" + ss[3];
try
{
IPEndPoint ep = new IPEndPoint(IPAddress.Parse(info[idx].IP), 65535);
byte[] buff;
buff = Encoding.ASCII.GetBytes("W" + info[idx].Mac);
udp.Send(buff, buff.Length, ep);
System.Threading.Thread.Sleep(100);
buff = Encoding.ASCII.GetBytes("L");
udp.Send(buff, buff.Length, ep);
System.Threading.Thread.Sleep(50);
buff = Encoding.ASCII.GetBytes("SPN" + port + "|33");
udp.Send(buff, buff.Length, ep);
System.Threading.Thread.Sleep(50);
buff = Encoding.ASCII.GetBytes("SIP" + afterIP + "|34");
udp.Send(buff, buff.Length, ep);
System.Threading.Thread.Sleep(100);
buff = Encoding.ASCII.GetBytes("E|35");
udp.Send(buff, buff.Length, ep);
return true;
}
catch (Exception)
{
return false;
}
finally
{
udp.Close();
}
}
/// <summary>
/// 获取本地IPv4地址
/// </summary>
/// <returns></returns>
public static string[] GetLocal()
{
List<string> str = new List<string>();
IPAddress[] add = Dns.GetHostEntry(Dns.GetHostName()).AddressList;
foreach (IPAddress ip in add)
{
if (ip.AddressFamily.ToString() == "InterNetwork")
str.Add(ip.ToString());
}
return str.ToArray();
}
private static void ReceiveIP(object obj)
{
IPEndPoint ep = (IPEndPoint)obj;
while (true)
{
byte[] buff = udp.Receive(ref ep);
HFReaderInfo ri = new HFReaderInfo { IP = ep.Address.ToString() };
if (buff == null || buff.Length < 20 || buff[0] != 0x41)
continue;
bool cut = true;
for (int i = 0; i < buff.Length; i++)
{
if (buff[i] == 0x2F)
{
if (cut)
{
ri.Mac = Encoding.ASCII.GetString(buff, 1, i - 1);
cut = false;
}
else
{
//info.Port = Convert.ToInt32(Encoding.ASCII.GetString(buff, start, i - start));
break;
}
}
}
info.Add(ri);
System.Threading.Thread.Sleep(5);
}
}
}
public enum Error
{
OK = 0,
LengthError = 1,
OperationNotSupport = 2,
RfClosed = 5,
EEPROM = 6,
MultipleError = 7,
TimeOut = 10,
MoreUID = 11,
ISOError = 12,
NoElectronicTag = 14,
OperationError = 15,
BlockError = 16,
BlockLockedAndCntLock = 17,
BlockLockedAndCntWrite = 18,
BlockCntOperate = 19,
BlockCntLock = 20,
CommunicationError = 48,
RetCRCError = 49,
DataLengthError = 50,
CommunicationBusy = 51,
ExecuteCmdBusy = 52,
ComPortOpened = 53,
ComPortClose = 54,
InvalidHandle = 55,
InvalidPort = 56
}
}
\ No newline at end of file
using System;
using System.Reflection;
using System.Diagnostics;
namespace Asa.RFID
{
/// <summary>
/// 日志操作类
/// </summary>
internal class Log
{
private bool exit = false;
private int day = 0;
private string fileName;
private string filePath = "";
private System.Collections.Concurrent.ConcurrentQueue<string> _info;
private System.Threading.Thread tSave;
private readonly string _path;
private StackTrace trace;
private StackFrame frame;
private MethodBase method;
/// <summary>
/// 日志
/// </summary>
/// <param name="path">文件夹目录</param>
public Log(string path)
{
fileName = null;
if (string.IsNullOrWhiteSpace(path))
{
_path = "";
}
else
{
_path = path.EndsWith("\\") ? path : path + "\\";
if (!System.IO.Directory.Exists(_path))
System.IO.Directory.CreateDirectory(_path);
}
_info = new System.Collections.Concurrent.ConcurrentQueue<string>();
tSave = new System.Threading.Thread(new System.Threading.ThreadStart(SaveLog));
tSave.Start();
}
/// <summary>
/// 日志
/// </summary>
/// <param name="path">文件夹目录</param>
/// <param name="name">文件名</param>
public Log(string path, string name) : this(path)
{
fileName = name;
}
/// <summary>
/// 退出
/// </summary>
public void Exit()
{
exit = true;
}
/// <summary>
/// 输出错误信息
/// </summary>
/// <param name="s"></param>
public void OutError(string s)
{
if (string.IsNullOrWhiteSpace(s)) return;
trace = new StackTrace(true);
frame = trace.GetFrame(1);
string name = frame.GetFileName();
name = System.IO.Path.GetFileName(name);
string log = string.Format("[{0:HH:mm:ss.fff}] ERROR {1}({2},{3})\r\n",
DateTime.Now, name, frame.GetFileLineNumber(), frame.GetFileColumnNumber());
string[] arr = new string[trace.FrameCount - 1];
for (int i = 1; i < trace.FrameCount; i++) //0是本身Out
{
method = trace.GetFrame(i).GetMethod();
arr[arr.Length - i] = " " + method.DeclaringType.FullName + " -> " + method.ToString();
}
log += string.Join("\r\n", arr) + string.Format("\r\n {0}\r\n", s);
_info.Enqueue(log);
}
/// <summary>
/// 输出信息
/// </summary>
/// <param name="s"></param>
public void OutInfo(string s)
{
if (string.IsNullOrWhiteSpace(s)) return;
trace = new StackTrace(true);
frame = trace.GetFrame(1);
method = trace.GetFrame(1).GetMethod();
string name = frame.GetFileName();
name = System.IO.Path.GetFileName(name);
string s1 = method.DeclaringType.FullName;
string s2 = method.Name;
string log = string.Format("[{0:HH:mm:ss.fff}] INFO {1}({2},{3}) {4}->{5} {6}\r\n",
DateTime.Now, name, frame.GetFileLineNumber(), frame.GetFileColumnNumber(), s1, s2, s);
_info.Enqueue(log);
}
/// <summary>
/// 输出调试信息
/// </summary>
/// <param name="s"></param>
public void OutDebug(string s)
{
if (string.IsNullOrWhiteSpace(s)) return;
trace = new StackTrace(true);
frame = trace.GetFrame(1);
string name = frame.GetFileName();
name = System.IO.Path.GetFileName(name);
string log = string.Format("[{0:HH:mm:ss.fff}] DEBUG {1}({2},{3})\r\n",
DateTime.Now, name, frame.GetFileLineNumber(), frame.GetFileColumnNumber());
string[] arr = new string[trace.FrameCount];
for (int i = 0; i < trace.FrameCount; i++)
{
method = trace.GetFrame(i).GetMethod();
arr[arr.Length - i - 1] = " " + method.DeclaringType.FullName + " -> " + method.ToString();
}
log += string.Join("\r\n", arr) + string.Format("\r\n {0}\r\n", s);
_info.Enqueue(log);
}
/// <summary>
/// 输出字符串数据
/// </summary>
/// <param name="s"></param>
public void OutString(string s)
{
if (string.IsNullOrEmpty(s)) return;
string log = string.Format("[{0:HH:mm:ss.fff}] {1}\r\n", DateTime.Now, s);
_info.Enqueue(log);
}
private void SaveLog()
{
while (true)
{
System.Threading.Thread.Sleep(5);
if (_info.TryDequeue(out string result))
{
try
{
SaveFile(result);
}
catch (ObjectDisposedException odex)
{
break;
}
catch (Exception ex)
{
}
}
if (exit)
{
if (_info.Count == 0)
break;
}
}
}
private void SaveFile(string log)
{
if (_path == "") return;
if (day != DateTime.Now.Day)
{
if (fileName == null)
{
filePath = string.Format("{0}{1:yyyy-MM-dd}.log", _path, DateTime.Now);
}
else
{
filePath = string.Format("{0}{1:yyyy-MM-dd}\\", _path, DateTime.Now);
System.IO.Directory.CreateDirectory(filePath);
filePath += fileName + ".log";
}
day = DateTime.Now.Day;
}
byte[] array = System.Text.Encoding.UTF8.GetBytes(log);
System.IO.FileStream fs = System.IO.File.OpenWrite(filePath);
fs.Position = fs.Length;
fs.Write(array, 0, array.Length);
fs.Close();
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("RFID")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RFID")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("e352e032-435c-4eb1-96b4-018bdc50b105")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{E352E032-435C-4EB1-96B4-018BDC50B105}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Asa.RFID</RootNamespace>
<AssemblyName>Asa.RFID.HFReader</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Asa.RFID.HFReader.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>bin\Debug\Asa.RFID.xml</DocumentationFile>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="HFReader9CSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\RFID\HFReader9CSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Class2.cs" />
<Compile Include="Common.cs" />
<Compile Include="Log.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "D:\OneDrive - 上海挚锦科技有限公司\DLL\RFID\$(TargetFileName)"
copy "$(TargetDir)$(TargetName).xml" "D:\OneDrive - 上海挚锦科技有限公司\DLL\RFID\$(TargetName).xml"</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0"?>
<doc>
<assembly>
<name>Asa.RFID.HFReader</name>
</assembly>
<members>
<member name="T:Asa.RFID.HFReader">
<summary>
RFID读卡器
</summary>
</member>
<member name="T:Asa.RFID.HFReader.Received_Event">
<summary>
接收事件
</summary>
<param name="ip"></param>
<param name="buff"></param>
</member>
<member name="E:Asa.RFID.HFReader.Received">
<summary>
接收数据
</summary>
</member>
<member name="M:Asa.RFID.HFReader.#ctor(System.String)">
<summary>
RFID读卡器
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IsConn">
<summary>
是否连接
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IsAutoScan">
<summary>
是否自动扫描
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IsExist">
<summary>
是否存在ID卡
</summary>
</member>
<member name="P:Asa.RFID.HFReader.ErrCode">
<summary>
错误代码
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IP">
<summary>
IP地址
</summary>
</member>
<member name="P:Asa.RFID.HFReader.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.HFReader.ID">
<summary>
ID号码
</summary>
</member>
<member name="M:Asa.RFID.HFReader.Open(System.Boolean)">
<summary>
连接
</summary>
<param name="autoScan">自动扫描</param>
</member>
<member name="M:Asa.RFID.HFReader.Close">
<summary>
关闭
</summary>
</member>
<member name="M:Asa.RFID.HFReader.FindRFID">
<summary>
查找电子标签,扫描模式不能使用
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReader.Read">
<summary>
读取电子标签
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReader.Write(System.Byte[])">
<summary>
写入数据到电子标签,扫描模式不能使用
</summary>
<param name="buff">数据,必须小于等于112字节</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReader.AutoScanMode(System.Boolean)">
<summary>
自动扫描模式
</summary>
<param name="open"></param>
<param name="open2"></param>
<returns></returns>
</member>
<member name="T:Asa.RFID.HFReaderAll">
<summary>
RFID读卡器
</summary>
</member>
<member name="M:Asa.RFID.HFReaderAll.#ctor">
<summary>
RFID
</summary>
</member>
<member name="P:Asa.RFID.HFReaderAll.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.HFReaderAll.ScanMode">
<summary>
扫描模式,true自动,false查找
</summary>
</member>
<member name="M:Asa.RFID.HFReaderAll.Open(System.String[])">
<summary>
打开所有
</summary>
<param name="ip"></param>
</member>
<member name="M:Asa.RFID.HFReaderAll.Close">
<summary>
关闭所有
</summary>
</member>
<member name="M:Asa.RFID.HFReaderAll.IsOpen">
<summary>
是否打开
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.IsOpen(System.String)">
<summary>
是否打开
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.Read(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.ReadStr(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.Clear(System.String)">
<summary>
清零
</summary>
<param name="ip"></param>
</member>
<member name="T:Asa.RFID.IP">
<summary>
IP地址操作
</summary>
</member>
<member name="M:Asa.RFID.IP.Find(System.String)">
<summary>
查找IP地址
</summary>
<param name="localIP"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.Modify(System.String,System.String,System.String)">
<summary>
修改IP地址,需要先查找IP
</summary>
<param name="localIP">本地IP</param>
<param name="beforeIP">修改前的IP</param>
<param name="afterIP">修改后的IP</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.GetLocal">
<summary>
获取本地IPv4地址
</summary>
<returns></returns>
</member>
<member name="T:Asa.RFID.Log">
<summary>
日志操作类
</summary>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String,System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
<param name="name">文件名</param>
</member>
<member name="M:Asa.RFID.Log.Exit">
<summary>
退出
</summary>
</member>
<member name="M:Asa.RFID.Log.OutError(System.String)">
<summary>
输出错误信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutInfo(System.String)">
<summary>
输出信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutDebug(System.String)">
<summary>
输出调试信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutString(System.String)">
<summary>
输出字符串数据
</summary>
<param name="s"></param>
</member>
</members>
</doc>
此文件类型无法预览
此文件类型无法预览
<?xml version="1.0"?>
<doc>
<assembly>
<name>Asa.RFID</name>
</assembly>
<members>
<member name="T:Asa.RFID.Reader">
<summary>
RFID读卡器
</summary>
</member>
<member name="T:Asa.RFID.Reader.Received_Event">
<summary>
接收事件
</summary>
<param name="ip"></param>
<param name="buff"></param>
</member>
<member name="E:Asa.RFID.Reader.Received">
<summary>
接收数据
</summary>
</member>
<member name="M:Asa.RFID.Reader.#ctor(System.String)">
<summary>
RFID读卡器
</summary>
</member>
<member name="P:Asa.RFID.Reader.IsConn">
<summary>
是否连接
</summary>
</member>
<member name="P:Asa.RFID.Reader.IsAutoScan">
<summary>
是否自动扫描
</summary>
</member>
<member name="P:Asa.RFID.Reader.IsExist">
<summary>
是否存在ID卡
</summary>
</member>
<member name="P:Asa.RFID.Reader.ErrCode">
<summary>
错误代码
</summary>
</member>
<member name="P:Asa.RFID.Reader.IP">
<summary>
IP地址
</summary>
</member>
<member name="P:Asa.RFID.Reader.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.Reader.ID">
<summary>
ID号码
</summary>
</member>
<member name="M:Asa.RFID.Reader.Open(System.Boolean)">
<summary>
连接
</summary>
<param name="autoScan">自动扫描</param>
</member>
<member name="M:Asa.RFID.Reader.Close">
<summary>
关闭
</summary>
</member>
<member name="M:Asa.RFID.Reader.FindRFID">
<summary>
查找电子标签,扫描模式不能使用
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.Reader.Read">
<summary>
读取电子标签
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.Reader.Write(System.Byte[])">
<summary>
写入数据到电子标签,扫描模式不能使用
</summary>
<param name="buff">数据,必须小于等于112字节</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.Reader.AutoScanMode(System.Boolean)">
<summary>
自动扫描模式
</summary>
<param name="open"></param>
<param name="open2"></param>
<returns></returns>
</member>
<member name="T:Asa.RFID.ReaderAll">
<summary>
RFID读卡器
</summary>
</member>
<member name="M:Asa.RFID.ReaderAll.#ctor">
<summary>
RFID
</summary>
</member>
<member name="P:Asa.RFID.ReaderAll.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.ReaderAll.ScanMode">
<summary>
扫描模式,true自动,false查找
</summary>
</member>
<member name="M:Asa.RFID.ReaderAll.Open(System.String[])">
<summary>
打开所有
</summary>
<param name="ip"></param>
</member>
<member name="M:Asa.RFID.ReaderAll.Close">
<summary>
关闭所有
</summary>
</member>
<member name="M:Asa.RFID.ReaderAll.IsOpen">
<summary>
是否打开
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.IsOpen(System.String)">
<summary>
是否打开
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.Read(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.ReadStr(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.Clear(System.String)">
<summary>
清零
</summary>
<param name="ip"></param>
</member>
<member name="T:Asa.RFID.IP">
<summary>
IP地址操作
</summary>
</member>
<member name="M:Asa.RFID.IP.Find(System.String)">
<summary>
查找IP地址
</summary>
<param name="localIP"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.Modify(System.String,System.String,System.String)">
<summary>
修改IP地址,需要先查找IP
</summary>
<param name="localIP">本地IP</param>
<param name="beforeIP">修改前的IP</param>
<param name="afterIP">修改后的IP</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.GetLocal">
<summary>
获取本地IPv4地址
</summary>
<returns></returns>
</member>
<member name="T:Asa.RFID.Log">
<summary>
日志操作类
</summary>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String,System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
<param name="name">文件名</param>
</member>
<member name="M:Asa.RFID.Log.Exit">
<summary>
退出
</summary>
</member>
<member name="M:Asa.RFID.Log.OutError(System.String)">
<summary>
输出错误信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutInfo(System.String)">
<summary>
输出信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutDebug(System.String)">
<summary>
输出调试信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutString(System.String)">
<summary>
输出字符串数据
</summary>
<param name="s"></param>
</member>
</members>
</doc>
此文件类型无法预览
此文件类型无法预览
C:\MY\DLL Coding\RFID\bin\Debug\Asa.RFID.xml
C:\MY\DLL Coding\RFID\bin\Debug\Asa.RFID.dll
C:\MY\DLL Coding\RFID\bin\Debug\Asa.RFID.pdb
C:\MY\DLL Coding\RFID\obj\Debug\Asa.RFID.dll
C:\MY\DLL Coding\RFID\obj\Debug\Asa.RFID.pdb
C:\MY\DLL Coding\RFID\bin\Debug\HFReader9CSharp.dll
C:\MY\DLL Coding\RFID\obj\Debug\RFID.csproj.CopyComplete
C:\MY\DLL Coding\RFID\obj\Debug\RFID.csprojAssemblyReference.cache
C:\SMD\DLL\RFID\bin\Debug\Asa.RFID.xml
C:\SMD\DLL\RFID\bin\Debug\Asa.RFID.dll
C:\SMD\DLL\RFID\bin\Debug\Asa.RFID.pdb
C:\SMD\DLL\RFID\bin\Debug\HFReader9CSharp.dll
C:\SMD\DLL\RFID\obj\Debug\RFID.csproj.CopyComplete
C:\SMD\DLL\RFID\obj\Debug\Asa.RFID.dll
C:\SMD\DLL\RFID\obj\Debug\Asa.RFID.pdb
C:\SMD\DLL\RFID\obj\Debug\RFID.csprojAssemblyReference.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\bin\Debug\Asa.RFID.xml
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\bin\Debug\Asa.RFID.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\bin\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\bin\Debug\HFReader9CSharp.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\obj\Debug\RFID.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\obj\Debug\RFID.csproj.CopyComplete
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\obj\Debug\Asa.RFID.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\obj\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID\obj\Debug\RFID.csprojAssemblyReference.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\Asa.RFID.HFReader.xml
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\Asa.RFID.HFReader.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\Asa.RFID.HFReader.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\HFReader9CSharp.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\RFID_HFReader.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\RFID_HFReader.csproj.CopyComplete
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\Asa.RFID.HFReader.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\Asa.RFID.HFReader.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\bin\Debug\Asa.RFID.HFReader.xml
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\bin\Debug\Asa.RFID.HFReader.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\bin\Debug\Asa.RFID.HFReader.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\bin\Debug\HFReader9CSharp.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\obj\Debug\RFID_HFReader.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\obj\Debug\RFID_HFReader.csproj.CopyComplete
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\obj\Debug\Asa.RFID.HFReader.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader\obj\Debug\Asa.RFID.HFReader.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\Asa.RFID.xml
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\Asa.RFID.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\RFID_old.csprojAssemblyReference.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\RFID_old.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\RFID_old.csproj.CopyComplete
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\Asa.RFID.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\obj\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_old\bin\Debug\HFReader9CSharp.dll
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
</configuration>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RFID_Debug
{
public static class Common
{
}
}
namespace RFID_Debug
{
partial class FrmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.LstIP = new System.Windows.Forms.ListBox();
this.BtnOpen = new System.Windows.Forms.Button();
this.BtnChangeIP = new System.Windows.Forms.Button();
this.BtnGetIP = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.CboLocal = new System.Windows.Forms.ComboBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.textBox2 = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.LstIP);
this.groupBox1.Controls.Add(this.BtnOpen);
this.groupBox1.Controls.Add(this.BtnChangeIP);
this.groupBox1.Controls.Add(this.BtnGetIP);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.CboLocal);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(321, 449);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "设备";
//
// button1
//
this.button1.Location = new System.Drawing.Point(235, 379);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 64);
this.button1.TabIndex = 11;
this.button1.Text = "打开所有";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(6, 63);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(223, 29);
this.textBox1.TabIndex = 10;
//
// LstIP
//
this.LstIP.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.LstIP.FormattingEnabled = true;
this.LstIP.IntegralHeight = false;
this.LstIP.ItemHeight = 21;
this.LstIP.Location = new System.Drawing.Point(6, 98);
this.LstIP.Name = "LstIP";
this.LstIP.Size = new System.Drawing.Size(223, 345);
this.LstIP.TabIndex = 7;
this.LstIP.SelectedIndexChanged += new System.EventHandler(this.LstIP_SelectedIndexChanged);
//
// BtnOpen
//
this.BtnOpen.Location = new System.Drawing.Point(235, 168);
this.BtnOpen.Name = "BtnOpen";
this.BtnOpen.Size = new System.Drawing.Size(80, 64);
this.BtnOpen.TabIndex = 5;
this.BtnOpen.Text = "打开设备";
this.BtnOpen.UseVisualStyleBackColor = true;
this.BtnOpen.Click += new System.EventHandler(this.BtnOpen_Click);
//
// BtnChangeIP
//
this.BtnChangeIP.Location = new System.Drawing.Point(235, 98);
this.BtnChangeIP.Name = "BtnChangeIP";
this.BtnChangeIP.Size = new System.Drawing.Size(80, 64);
this.BtnChangeIP.TabIndex = 4;
this.BtnChangeIP.Text = "修改设备IP";
this.BtnChangeIP.UseVisualStyleBackColor = true;
this.BtnChangeIP.Click += new System.EventHandler(this.BtnChangeIP_Click);
//
// BtnGetIP
//
this.BtnGetIP.Location = new System.Drawing.Point(235, 28);
this.BtnGetIP.Name = "BtnGetIP";
this.BtnGetIP.Size = new System.Drawing.Size(80, 64);
this.BtnGetIP.TabIndex = 1;
this.BtnGetIP.Text = "获取设备IP";
this.BtnGetIP.UseVisualStyleBackColor = true;
this.BtnGetIP.Click += new System.EventHandler(this.BtnGetIP_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 31);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(57, 21);
this.label1.TabIndex = 1;
this.label1.Text = "本地IP";
//
// CboLocal
//
this.CboLocal.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CboLocal.FormattingEnabled = true;
this.CboLocal.Location = new System.Drawing.Point(69, 28);
this.CboLocal.Name = "CboLocal";
this.CboLocal.Size = new System.Drawing.Size(160, 29);
this.CboLocal.TabIndex = 0;
//
// tabControl1
//
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(339, 12);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(594, 449);
this.tabControl1.TabIndex = 7;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.textBox2);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.tabPage1.Size = new System.Drawing.Size(586, 423);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "tabPage1";
this.tabPage1.UseVisualStyleBackColor = true;
//
// textBox2
//
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.textBox2.Location = new System.Drawing.Point(6, 6);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBox2.Size = new System.Drawing.Size(305, 411);
this.textBox2.TabIndex = 0;
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(945, 473);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.groupBox1);
this.Name = "FrmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "RFID_Debug";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
this.Load += new System.EventHandler(this.FrmMain_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button BtnOpen;
private System.Windows.Forms.Button BtnChangeIP;
private System.Windows.Forms.Button BtnGetIP;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox CboLocal;
private System.Windows.Forms.ListBox LstIP;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TextBox textBox2;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RFID_Debug
{
public partial class FrmMain : Form
{
private bool[] _open;
private string[] _ip;
private Asa.RFID.HFReader[] reader;
private Asa.RFID.HFReaderAll readerAll;
private int sum = 0;
private string currIP = "";
//private Dictionary<string, string> buffer = new Dictionary<string, string>();
private System.Threading.Thread tSave;
private System.Collections.Concurrent.ConcurrentQueue<string> info = new System.Collections.Concurrent.ConcurrentQueue<string>();
public FrmMain()
{
InitializeComponent();
}
private void FrmMain_Load(object sender, EventArgs e)
{
CboLocal.Items.AddRange(Asa.RFID.IP.GetLocal());
if (CboLocal.Items.Count > 0)
CboLocal.SelectedIndex = 0;
}
private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
{
if (tSave != null)
tSave.Abort();
if (reader != null)
{
for (int i = 0; i < reader.Length; i++)
{
reader[i].Close();
System.Threading.Thread.Sleep(10);
}
}
if (readerAll != null)
{
readerAll.Close();
readerAll = null;
}
}
private void BtnGetIP_Click(object sender, EventArgs e)
{
LstIP.Items.Clear();
_ip = Asa.RFID.IP.Find(CboLocal.Text);
LstIP.Items.AddRange(_ip);
_open = new bool[_ip.Length];
}
private void BtnChangeIP_Click(object sender, EventArgs e)
{
if (LstIP.SelectedIndex == -1) return;
bool rtn = Asa.RFID.IP.Modify(CboLocal.Text, LstIP.Text, textBox1.Text);
if (rtn)
MessageBox.Show("修改完成");
else
MessageBox.Show("修改失败", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
private void BtnOpen_Click(object sender, EventArgs e)
{
if (LstIP.SelectedIndex == -1) return;
//if (_open[LstIP.SelectedIndex]) return;
TabPage tab = new TabPage { Text = LstIP.Text };
UserControl1 ctl = new UserControl1(LstIP.Text);
tab.Controls.Add(ctl);
tabControl1.Controls.Add(tab);
//_open[LstIP.SelectedIndex] = true;
}
private void LstIP_SelectedIndexChanged(object sender, EventArgs e)
{
textBox1.Text = LstIP.Text;
}
private void button1_Click(object sender, EventArgs e)
{
string[] ip = new string[LstIP.Items.Count];
for (int i = 0; i < ip.Length; i++)
ip[i] = LstIP.Items[i].ToString();
readerAll = new Asa.RFID.HFReaderAll();
readerAll.LogPath = Application.StartupPath;
readerAll.GetValue += Ra_GetValue;
readerAll.Open(ip);
//readerAll.Open("192.168.210.114", "192.168.210.117");
}
private void Ra_GetValue(string s)
{
Invoke(new Action(() =>
{
if (s.Contains(LstIP.Items[0].ToString()))
textBox2.AppendText("======\r\n");
textBox2.AppendText(s + "\r\n");
}));
}
private void Reader_Received(string ip, byte[] buff)
{
try
{
//string val = (char)buff[1] + buff[2].ToString();
//if (ip == currIP) return;
//currIP = ip;
//string s = "";
//if (ip == LstIP.Items[0].ToString())
//{
// s = "========== ";
// sum = 0;
//}
//s += (++sum) + " " + ip + " ";
//s += val;
//info.Enqueue(s);
string s = "";
for (int i = 0; i < buff.Length; i++)
s += buff[i].ToString("X2") + " ";
Invoke(new Action(() => { textBox2.AppendText(s); }));
}
catch (Exception)
{ }
}
private void SaveLog()
{
string _logFile = string.Format("{0}\\RFID_{1:yyyy-MM-dd}.log", Application.StartupPath, DateTime.Now);
while (true)
{
System.Threading.Thread.Sleep(100);
if (info.TryDequeue(out string result))
System.IO.File.AppendAllText(_logFile, string.Format("[{0:HH:mm:ss.fff}] {1}\r\n", DateTime.Now, result), Encoding.UTF8);
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RFID_Debug
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmMain());
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("RFID_Debug")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RFID_Debug")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("5c55663b-dbda-490b-a80f-0abb173aef88")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace RFID_Debug.Properties
{
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RFID_Debug.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 覆盖当前线程的 CurrentUICulture 属性
/// 使用此强类型的资源类的资源查找。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace RFID_Debug.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5C55663B-DBDA-490B-A80F-0ABB173AEF88}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>RFID_Debug</RootNamespace>
<AssemblyName>RFID_HFReader_Debug</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="UserControl1.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UserControl1.Designer.cs">
<DependentUpon>UserControl1.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="UserControl1.resx">
<DependentUpon>UserControl1.cs</DependentUpon>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RFID_HFReader\RFID_HFReader.csproj">
<Project>{e352e032-435c-4eb1-96b4-018bdc50b105}</Project>
<Name>RFID_HFReader</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.6">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.6 %28x86 和 x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "D:\OneDrive - 上海挚锦科技有限公司\DLL\RFID\$(TargetFileName)"</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>zh-CN</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RFID_Debug
{
public partial class UserControl1 : UserControl
{
private Asa.RFID.HFReader read;
public UserControl1()
{
InitializeComponent();
}
public UserControl1(string ip) : this()
{
CboType.SelectedIndex = 0;
read = new Asa.RFID.HFReader(ip);
read.Received += Read_Received;
read.Open(false);
if (read.IsConn)
{
read.AutoScanMode(false);
groupBox2.Enabled = true;
groupBox3.Enabled = true;
BtnFind.Enabled = true;
}
else
{
groupBox2.Enabled = false;
groupBox3.Enabled = false;
BtnFind.Enabled = false;
LblID.Text = "无法连接";
}
}
private void Read_Received(string ip, byte[] buff)
{
string s = (char)buff[1] + buff[2].ToString();
this.Invoke(new Action(() => { TxtRead.AppendText(s); }));
}
private void BtnFind_Click(object sender, EventArgs e)
{
bool rtn = read.FindRFID();
if (!rtn)
LblID.Text = "无法连接";
else
LblID.Text = "ID: " + read.ID;
}
private void BtnReadAll_Click(object sender, EventArgs e)
{
byte[] bb = read.Read();
if (bb == null)
{
TxtRead.Text = "";
}
else
{
string s = "";
for (int i = 0; i < bb.Length; i++)
s += bb[i].ToString("X2") + " ";
TxtRead.Text = s;
}
}
private void BtnReadOne_Click(object sender, EventArgs e)
{
byte[] bb = read.Read();
if (bb == null)
{
TxtRead.Text = "";
}
else
{
if (bb[0] == 0x5A && bb[5] == 0x4A)
{
TxtRead.Text = ((char)bb[1]).ToString() + bb[2];
}
else
{
TxtRead.Text = "格式不正确";
}
}
}
private void BtnWrite_Click(object sender, EventArgs e)
{
byte[] bb = new byte[8];
bb[0] = 0x5A;
bb[1] = Convert.ToByte(65 + CboType.SelectedIndex);
bb[2] = Convert.ToByte(NudNumber.Value);
bb[5] = 0x4A;
int sum = 0;
for (int i = 0; i < 6; i++)
sum += bb[i];
byte[] cc = BitConverter.GetBytes(sum);
bb[6] = cc[0];
bb[7] = cc[1];
bool rtn = read.Write(bb);
if (rtn)
label3.Text = ((char)bb[1]).ToString() + bb[2] + " OK";
else
label3.Text = "NG";
}
private void BtnNumMinus_Click(object sender, EventArgs e)
{
if (NudNumber.Value > NudNumber.Minimum)
NudNumber.Value--;
}
private void BtnNumAdd_Click(object sender, EventArgs e)
{
if (NudNumber.Value < NudNumber.Maximum)
NudNumber.Value++;
}
private void BtnClose_Click(object sender, EventArgs e)
{
read.Close();
Parent.Parent.Controls.Remove(Parent);
Parent.Dispose();
Dispose();
}
private void button1_Click(object sender, EventArgs e)
{
read.OpenCloseRF(false);
System.Threading.Thread.Sleep(100);
read.OpenCloseRF(true);
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
<?xml version="1.0"?>
<doc>
<assembly>
<name>Asa.RFID.HFReader</name>
</assembly>
<members>
<member name="T:Asa.RFID.HFReader">
<summary>
RFID读卡器
</summary>
</member>
<member name="T:Asa.RFID.HFReader.Received_Event">
<summary>
接收事件
</summary>
<param name="ip"></param>
<param name="buff"></param>
</member>
<member name="E:Asa.RFID.HFReader.Received">
<summary>
接收数据
</summary>
</member>
<member name="M:Asa.RFID.HFReader.#ctor(System.String)">
<summary>
RFID读卡器
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IsConn">
<summary>
是否连接
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IsAutoScan">
<summary>
是否自动扫描
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IsExist">
<summary>
是否存在ID卡
</summary>
</member>
<member name="P:Asa.RFID.HFReader.ErrCode">
<summary>
错误代码
</summary>
</member>
<member name="P:Asa.RFID.HFReader.IP">
<summary>
IP地址
</summary>
</member>
<member name="P:Asa.RFID.HFReader.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.HFReader.ID">
<summary>
ID号码
</summary>
</member>
<member name="M:Asa.RFID.HFReader.Open(System.Boolean)">
<summary>
连接
</summary>
<param name="autoScan">自动扫描</param>
</member>
<member name="M:Asa.RFID.HFReader.Close">
<summary>
关闭
</summary>
</member>
<member name="M:Asa.RFID.HFReader.FindRFID">
<summary>
查找电子标签,扫描模式不能使用
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReader.Read">
<summary>
读取电子标签
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReader.Write(System.Byte[])">
<summary>
写入数据到电子标签,扫描模式不能使用
</summary>
<param name="buff">数据,必须小于等于112字节</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReader.AutoScanMode(System.Boolean)">
<summary>
自动扫描模式
</summary>
<param name="open"></param>
<param name="open2"></param>
<returns></returns>
</member>
<member name="T:Asa.RFID.HFReaderAll">
<summary>
RFID读卡器
</summary>
</member>
<member name="M:Asa.RFID.HFReaderAll.#ctor">
<summary>
RFID
</summary>
</member>
<member name="P:Asa.RFID.HFReaderAll.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.HFReaderAll.ScanMode">
<summary>
扫描模式,true自动,false查找
</summary>
</member>
<member name="M:Asa.RFID.HFReaderAll.Open(System.String[])">
<summary>
打开所有
</summary>
<param name="ip"></param>
</member>
<member name="M:Asa.RFID.HFReaderAll.Close">
<summary>
关闭所有
</summary>
</member>
<member name="M:Asa.RFID.HFReaderAll.IsOpen">
<summary>
是否打开
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.IsOpen(System.String)">
<summary>
是否打开
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.Read(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.ReadStr(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.HFReaderAll.Clear(System.String)">
<summary>
清零
</summary>
<param name="ip"></param>
</member>
<member name="T:Asa.RFID.IP">
<summary>
IP地址操作
</summary>
</member>
<member name="M:Asa.RFID.IP.Find(System.String)">
<summary>
查找IP地址
</summary>
<param name="localIP"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.Modify(System.String,System.String,System.String)">
<summary>
修改IP地址,需要先查找IP
</summary>
<param name="localIP">本地IP</param>
<param name="beforeIP">修改前的IP</param>
<param name="afterIP">修改后的IP</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.GetLocal">
<summary>
获取本地IPv4地址
</summary>
<returns></returns>
</member>
<member name="T:Asa.RFID.Log">
<summary>
日志操作类
</summary>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String,System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
<param name="name">文件名</param>
</member>
<member name="M:Asa.RFID.Log.Exit">
<summary>
退出
</summary>
</member>
<member name="M:Asa.RFID.Log.OutError(System.String)">
<summary>
输出错误信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutInfo(System.String)">
<summary>
输出信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutDebug(System.String)">
<summary>
输出调试信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutString(System.String)">
<summary>
输出字符串数据
</summary>
<param name="s"></param>
</member>
</members>
</doc>
<?xml version="1.0"?>
<doc>
<assembly>
<name>Asa.RFID</name>
</assembly>
<members>
<member name="T:Asa.RFID.Reader">
<summary>
RFID读卡器
</summary>
</member>
<member name="T:Asa.RFID.Reader.Received_Event">
<summary>
接收事件
</summary>
<param name="ip"></param>
<param name="buff"></param>
</member>
<member name="E:Asa.RFID.Reader.Received">
<summary>
接收数据
</summary>
</member>
<member name="M:Asa.RFID.Reader.#ctor(System.String)">
<summary>
RFID读卡器
</summary>
</member>
<member name="P:Asa.RFID.Reader.IsConn">
<summary>
是否连接
</summary>
</member>
<member name="P:Asa.RFID.Reader.IsAutoScan">
<summary>
是否自动扫描
</summary>
</member>
<member name="P:Asa.RFID.Reader.IsExist">
<summary>
是否存在ID卡
</summary>
</member>
<member name="P:Asa.RFID.Reader.ErrCode">
<summary>
错误代码
</summary>
</member>
<member name="P:Asa.RFID.Reader.IP">
<summary>
IP地址
</summary>
</member>
<member name="P:Asa.RFID.Reader.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.Reader.ID">
<summary>
ID号码
</summary>
</member>
<member name="M:Asa.RFID.Reader.Open(System.Boolean)">
<summary>
连接
</summary>
<param name="autoScan">自动扫描</param>
</member>
<member name="M:Asa.RFID.Reader.Close">
<summary>
关闭
</summary>
</member>
<member name="M:Asa.RFID.Reader.FindRFID">
<summary>
查找电子标签,扫描模式不能使用
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.Reader.Read">
<summary>
读取电子标签
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.Reader.Write(System.Byte[])">
<summary>
写入数据到电子标签,扫描模式不能使用
</summary>
<param name="buff">数据,必须小于等于112字节</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.Reader.AutoScanMode(System.Boolean)">
<summary>
自动扫描模式
</summary>
<param name="open"></param>
<param name="open2"></param>
<returns></returns>
</member>
<member name="T:Asa.RFID.ReaderAll">
<summary>
RFID读卡器
</summary>
</member>
<member name="M:Asa.RFID.ReaderAll.#ctor">
<summary>
RFID
</summary>
</member>
<member name="P:Asa.RFID.ReaderAll.LogPath">
<summary>
日志目录
</summary>
</member>
<member name="P:Asa.RFID.ReaderAll.ScanMode">
<summary>
扫描模式,true自动,false查找
</summary>
</member>
<member name="M:Asa.RFID.ReaderAll.Open(System.String[])">
<summary>
打开所有
</summary>
<param name="ip"></param>
</member>
<member name="M:Asa.RFID.ReaderAll.Close">
<summary>
关闭所有
</summary>
</member>
<member name="M:Asa.RFID.ReaderAll.IsOpen">
<summary>
是否打开
</summary>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.IsOpen(System.String)">
<summary>
是否打开
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.Read(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.ReadStr(System.String)">
<summary>
读取
</summary>
<param name="ip"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.ReaderAll.Clear(System.String)">
<summary>
清零
</summary>
<param name="ip"></param>
</member>
<member name="T:Asa.RFID.IP">
<summary>
IP地址操作
</summary>
</member>
<member name="M:Asa.RFID.IP.Find(System.String)">
<summary>
查找IP地址
</summary>
<param name="localIP"></param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.Modify(System.String,System.String,System.String)">
<summary>
修改IP地址,需要先查找IP
</summary>
<param name="localIP">本地IP</param>
<param name="beforeIP">修改前的IP</param>
<param name="afterIP">修改后的IP</param>
<returns></returns>
</member>
<member name="M:Asa.RFID.IP.GetLocal">
<summary>
获取本地IPv4地址
</summary>
<returns></returns>
</member>
<member name="T:Asa.RFID.Log">
<summary>
日志操作类
</summary>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
</member>
<member name="M:Asa.RFID.Log.#ctor(System.String,System.String)">
<summary>
日志
</summary>
<param name="path">文件夹目录</param>
<param name="name">文件名</param>
</member>
<member name="M:Asa.RFID.Log.Exit">
<summary>
退出
</summary>
</member>
<member name="M:Asa.RFID.Log.OutError(System.String)">
<summary>
输出错误信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutInfo(System.String)">
<summary>
输出信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutDebug(System.String)">
<summary>
输出调试信息
</summary>
<param name="s"></param>
</member>
<member name="M:Asa.RFID.Log.OutString(System.String)">
<summary>
输出字符串数据
</summary>
<param name="s"></param>
</member>
</members>
</doc>
此文件类型无法预览
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
</configuration>
\ No newline at end of file
C:\SMD\DLL\RFID_Debug\bin\Debug\RFID_Debug.exe.config
C:\SMD\DLL\RFID_Debug\bin\Debug\RFID_Debug.exe
C:\SMD\DLL\RFID_Debug\bin\Debug\RFID_Debug.pdb
C:\SMD\DLL\RFID_Debug\bin\Debug\Asa.RFID.dll
C:\SMD\DLL\RFID_Debug\bin\Debug\HFReader9CSharp.dll
C:\SMD\DLL\RFID_Debug\bin\Debug\Asa.RFID.pdb
C:\SMD\DLL\RFID_Debug\bin\Debug\Asa.RFID.xml
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.csprojAssemblyReference.cache
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.FrmMain.resources
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.Properties.Resources.resources
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.UserControl1.resources
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.csproj.GenerateResource.cache
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.csproj.CopyComplete
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.exe
C:\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\bin\Debug\RFID_Debug.exe.config
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\bin\Debug\RFID_Debug.exe
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\bin\Debug\RFID_Debug.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\bin\Debug\Asa.RFID.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\bin\Debug\HFReader9CSharp.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\bin\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\bin\Debug\Asa.RFID.xml
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.csprojAssemblyReference.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.FrmMain.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.Properties.Resources.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.UserControl1.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.csproj.GenerateResource.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.csproj.CopyComplete
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.exe
D:\OneDrive - 上海挚锦科技有限公司\SMD\DLL\RFID_Debug\obj\Debug\RFID_Debug.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug_old.csprojAssemblyReference.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug.FrmMain.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug.Properties.Resources.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug.UserControl1.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug_old.csproj.GenerateResource.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug_old.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug.exe
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug_old\obj\Debug\RFID_Debug.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_HFReader_Debug.csprojAssemblyReference.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_Debug.FrmMain.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_Debug.Properties.Resources.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_Debug.UserControl1.resources
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_HFReader_Debug.csproj.GenerateResource.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_HFReader_Debug.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\bin\Debug\RFID_HFReader_Debug.exe.config
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\bin\Debug\RFID_HFReader_Debug.exe
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\bin\Debug\RFID_HFReader_Debug.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\bin\Debug\Asa.RFID.HFReader.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\bin\Debug\HFReader9CSharp.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\bin\Debug\Asa.RFID.HFReader.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\bin\Debug\Asa.RFID.HFReader.xml
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_HFReader_Debug.csproj.CopyComplete
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_HFReader_Debug.exe
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_HFReader_Debug\obj\Debug\RFID_HFReader_Debug.pdb
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!