Commit dafcb7e7 顾剑亮

上传代码

1 个父辈 ec38886c
正在显示 103 个修改的文件 包含 4340 行增加2 行删除
此文件类型无法预览
...@@ -7,20 +7,50 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID", "RFID\RFID.csproj", ...@@ -7,20 +7,50 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID", "RFID\RFID.csproj",
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID_Debug", "RFID_Debug\RFID_Debug.csproj", "{44467E65-C850-4538-96E4-1335CCCB87BC}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RFID_Debug", "RFID_Debug\RFID_Debug.csproj", "{44467E65-C850-4538-96E4-1335CCCB87BC}"
EndProject 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 Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {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|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.ActiveCfg = Release|Any CPU
{CF083E56-FA69-4893-90C4-6D0430ADC03F}.Release|Any CPU.Build.0 = 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.ActiveCfg = Debug|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Debug|Any CPU.Build.0 = 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.ActiveCfg = Release|Any CPU
{44467E65-C850-4538-96E4-1335CCCB87BC}.Release|Any CPU.Build.0 = 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 EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Asa.RFID.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
...@@ -41,8 +42,12 @@ ...@@ -41,8 +42,12 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Class1.cs" /> <Compile Include="ReadAll.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <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> </Project>
\ No newline at end of file \ 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 ...@@ -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\RFID.csproj.CoreCompileInputs.cache
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID\obj\Debug\Asa.RFID.dll 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\obj\Debug\Asa.RFID.pdb
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID\bin\Debug\Asa.RFID.xml
...@@ -86,4 +86,7 @@ ...@@ -86,4 +86,7 @@
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "D:\OneDrive - 上海挚锦科技有限公司\DLL\RFID\$(TargetFileName)"</PostBuildEvent>
</PropertyGroup>
</Project> </Project>
\ No newline at end of file \ 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_ ...@@ -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\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.dll
D:\OneDrive - 上海挚锦科技有限公司\SMD\RFID\RFID_Debug\bin\Debug\Asa.RFID.pdb 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.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
namespace Asa.RFID
{
/// <summary>
/// RFID读卡器
/// </summary>
public class HFReader
{
private Log log;
private byte[] _buff; //8字节缓存
private byte[] _uid; //卡片ID
private bool loop;
private bool empty;
private int port;
private byte addr;
private int portIndex;
private System.Threading.Thread tScan;
//private System.Threading.Thread tReceive;
//private System.Collections.Concurrent.ConcurrentQueue<byte> _receive;
/// <summary>
/// 接收事件
/// </summary>
/// <param name="ip"></param>
/// <param name="buff"></param>
public delegate void Received_Event(string ip, byte[] buff);
/// <summary>
/// 接收数据
/// </summary>
public event Received_Event Received;
/// <summary>
/// RFID读卡器
/// </summary>
public HFReader(string ip)
{
IP = ip;
_buff = new byte[8];
_uid = new byte[8];
//_receive = new System.Collections.Concurrent.ConcurrentQueue<byte>();
}
/// <summary>
/// 是否连接
/// </summary>
public bool IsConn { private set; get; } = false;
/// <summary>
/// 是否自动扫描
/// </summary>
public bool IsAutoScan { private set; get; } = false;
/// <summary>
/// 是否存在ID卡
/// </summary>
public bool IsExist { private set; get; } = false;
/// <summary>
/// 错误代码
/// </summary>
public int ErrCode { private set; get; } = 0;
/// <summary>
/// IP地址
/// </summary>
public string IP { set; get; }
/// <summary>
/// 日志目录
/// </summary>
public string LogPath { set; get; } = "";
/// <summary>
/// ID号码
/// </summary>
public string ID
{
get
{
string s = "";
for (int i = 0; i < _uid.Length; i++)
s += _uid[i].ToString("X2");
return s;
}
}
/// <summary>
/// 连接
/// </summary>
/// <param name="autoScan">自动扫描</param>
public void Open(bool autoScan)
{
log = new Log(LogPath, "RFID_" + IP);
Connect();
System.Threading.Thread.Sleep(100);
OpenCloseRF(false);
System.Threading.Thread.Sleep(100);
OpenCloseRF(true);
AutoScanMode(false);
if (autoScan)
AutoScanRead();
else
FindIDMode();
}
/// <summary>
/// 关闭
/// </summary>
public void Close()
{
loop = false;
log.OutString("Call Close");
try
{
System.Threading.Thread.Sleep(100);
IsConn = false;
ErrCode = ReaderA.StaticClassReaderA.CloseNetPort(portIndex);
log.OutString("CloseNetPort[" + ErrCode + "] " + (Error)ErrCode);
}
catch (Exception ex)
{
log.OutError(ex.Message);
}
log.Exit();
}
/// <summary>
/// 查找电子标签,扫描模式不能使用
/// </summary>
/// <returns></returns>
public bool FindRFID()
{
//0 不带AFI
//1 带AFI
//2 不带AFI,继续查询
//3 带AFI,继续查询
//6 不带AFI,新的查询
//7 带AFI,新的查询
byte state = 0;
//Select模式需要AFI
byte AFI = 0;
//输出,1字节DSFID,8字节UID
byte[] DSFIDAndUID = new byte[9];
//输出,标签数量
byte cardNumber = 0;
ErrCode = ReaderA.StaticClassReaderA.Inventory(ref addr, ref state, ref AFI, DSFIDAndUID, ref cardNumber, portIndex);
if (ErrCode == 0)
{
//查询时间
//fCmdRet = StaticClassReaderA.GetInventoryTime(ref n_time, portIndex);
Array.Copy(DSFIDAndUID, 1, _uid, 0, 8);
IsExist = true;
return true;
}
else
{
for (int i = 0; i < _uid.Length; i++)
_uid[i] = 0;
IsExist = false;
return false;
}
}
/// <summary>
/// 读取电子标签
/// </summary>
/// <returns></returns>
public byte[] Read()
{
string s = "";
log.OutString("Call Read");
try
{
if (IsAutoScan)
{
byte[] buff = new byte[_buff.Length];
Array.Copy(_buff, buff, _buff.Length);
for (int i = 0; i < buff.Length; i++)
s += buff[i].ToString("X2") + " ";
log.OutString(s);
return buff;
}
else if (IsExist)
{
ReadRFID();
for (int i = 0; i < _buff.Length; i++)
s += _buff[i].ToString("X2") + " ";
log.OutString(s);
return _buff;
}
else
{
return null;
}
}
catch (Exception ex)
{
log.OutError(ex.Message);
return null;
}
}
/// <summary>
/// 写入数据到电子标签,扫描模式不能使用
/// </summary>
/// <param name="buff">数据,必须小于等于112字节</param>
/// <returns></returns>
public bool Write(byte[] buff)
{
if (IsExist)
{
if (buff.Length == 8)
return WriteRFID(buff);
else
return false;
}
else
return false;
//if (IsExist)
//{
// Array.Copy(buff, 0, _buff, 0, buff.Length);
// int num = 0;
// int count = (buff.Length - 1) / 4 - num + 1;
// bool rtn;
// for (int i = 0; i < count; i++)
// {
// rtn = WriteRFID(num + i);
// if (!rtn) continue;
// }
// return true;
//}
//else
// return false;
}
/// <summary>
/// 自动扫描模式
/// </summary>
/// <param name="open"></param>
/// <param name="open2"></param>
/// <returns></returns>
public bool AutoScanMode(bool open)
{
log.OutString("Call AutoScanMode");
byte[] scanModeData = new byte[11];
//bit0: 0停止扫描,1开始扫描
//bit1: 0正常数据扫描,1EAS扫描
//bit2: 0正常灵敏度,1高灵敏度
//bit3: 0禁止输入同步,1允许输入同步
//bit4: 0禁止指令同步,1允许指令同步
//bit5: 0禁止扫描提示,1允许扫描提示
//bit6: 0禁止EAS探测提示,1允许EAS探测提示
//bit7: 0禁止EAS消息输出提示,1允许EAS消息输出提示
if (open)
scanModeData[0] = 1;
else
scanModeData[0] = 0;
//bit0: 0不发送comAddr,1发送comAddr
//bit1: 0不带UID,1带UID
//bit2: 0不包含指定块,1包含指定块
//bit3: 0不带安全状态字,1带安全状态字
//bit4: 0 ASCII,1 HEX
//bit5: 0不进行开关射频场,1进行开关射频场
//bit6: 0无操作,1停止扫描关闭射频场
//bit7: 0无,1鸣叫闪烁
scanModeData[1] = 255;
scanModeData[2] = 0; //起始块号
scanModeData[3] = 2; //块总数 之前是28
scanModeData[4] = 1; //块的起始字节
scanModeData[5] = 4; //块的字节数
//1 CR+LF 0x0D 0x0A
//2 CR 0x0D
//4 LF 0x0A
//8 BEL 0x07
//16 :(分号) 0x3B
//32 ,(逗号) 0x2C
//64 " "(空格) 0x20
//128 自定义
scanModeData[6] = 8; //间隔符
scanModeData[7] = 0; //自定义间隔符,[6] = 128
//1 CR+LF 0x0D 0x0A
//2 CR 0x0D
//4 LF 0x0A
//8 BEL 0x07
//16 :(分号) 0x3B
//32 ,(逗号) 0x2C
//64 " "(空格) 0x20
//128 自定义
scanModeData[8] = 8; //结束符
scanModeData[9] = 0; //自定义间隔符,[8] = 128
scanModeData[10] = 0x00;
try
{
ErrCode = ReaderA.StaticClassReaderA.SetScanMode(ref addr, scanModeData, portIndex);
log.OutString("SetScanMode[" + ErrCode + "] Mode=" + open.ToString() + " " + (Error)ErrCode);
if (ErrCode == 0)
{
IsAutoScan = open;
//if (open2) AutoScanRead();
}
else
{
IsAutoScan = false;
}
}
catch (Exception ex)
{
IsAutoScan = false;
log.OutError(ex.Message);
}
return IsAutoScan;
}
private void FindIDMode()
{
loop = true;
tScan = new System.Threading.Thread(new System.Threading.ThreadStart(ScanFind));
tScan.Start();
}
private void AutoScanRead()
{
loop = true;
tScan = new System.Threading.Thread(new System.Threading.ThreadStart(Scan));
tScan.Start();
}
private void Connect()
{
IsConn = false;
log.OutString("Call Connect");
//IP合法
string pattern = @"^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$";
bool rtn = System.Text.RegularExpressions.Regex.IsMatch(IP, pattern);
if (!rtn)
{
log.OutString("IP不合法," + IP);
return;
}
//Ping服务端
System.Net.NetworkInformation.Ping ping = new System.Net.NetworkInformation.Ping();
System.Net.NetworkInformation.PingReply result = ping.Send(IP, 1000);
ping.Dispose();
if (result.Status != System.Net.NetworkInformation.IPStatus.Success)
{
log.OutString("Ping " + IP + " 请求没有响应");
return;
}
string[] arr = IP.Split('.');
addr = Convert.ToByte(arr[3]);
port = 6000 + Convert.ToInt32(arr[3]);
portIndex = 0;
log.OutString("Connect ip=" + IP + ", port=" + port + ", addr=" + addr);
try
{
ErrCode = ReaderA.StaticClassReaderA.OpenNetPort(port, IP, ref addr, ref portIndex);
IsConn = ErrCode == 0;
//AutoScanMode(false);
log.OutString("Connect[" + ErrCode + "] IsConn=" + IsConn + " " + (Error)ErrCode);
}
catch (Exception ex)
{
IsConn = false;
log.OutError(ex.Message);
}
}
public void OpenCloseRF(bool rtn)
{
if (rtn)
{
ErrCode = ReaderA.StaticClassReaderA.OpenRf(ref addr, portIndex);
log.OutInfo("OpenRf[" + ErrCode + "] " + (Error)ErrCode);
}
else
{
ErrCode = ReaderA.StaticClassReaderA.CloseRf(ref addr, portIndex);
log.OutInfo("CloseRf[" + ErrCode + "] " + (Error)ErrCode);
}
}
private void ReadRFID()
{
//0 不带AFI
//1 带AFI
//2 不带AFI,继续查询
//3 带AFI,继续查询
//6 不带AFI,新的查询
//7 带AFI,新的查询
byte state = 0;
//起始块号
byte blockNum = 0;
//块数量
byte blockCount = 2;
//输出,块内安全信息,长度为BlockCount个字节
byte[] blockSecStatus = new byte[blockCount];
//输出,块内数据信息,长度为块的大小(4或8字节)乘以BlockCount个字节
byte[] data = new byte[4 * blockCount];
//错误代码
byte errorCode = 0;
ErrCode = ReaderA.StaticClassReaderA.ReadMultipleBlock(ref addr, ref state, _uid, blockNum, blockCount, blockSecStatus, data, ref errorCode, portIndex);
log.OutInfo("ReadRFID[" + ErrCode + "] " + (Error)ErrCode);
if (ErrCode == 0)
{
Array.Copy(data, 0, _buff, 0, data.Length);
}
else
{
for (int i = 0; i < _buff.Length; i++)
_buff[i] = 0;
}
}
//private void ReadAllRFID()
//{
// //0 不带AFI
// //1 带AFI
// //2 不带AFI,继续查询
// //3 带AFI,继续查询
// //6 不带AFI,新的查询
// //7 带AFI,新的查询
// byte state = 0;
// //起始块号
// byte blockNum = 0;
// //块数量
// byte blockCount = 28;
// //输出,块内安全信息,长度为BlockCount个字节
// byte[] blockSecStatus = new byte[blockCount];
// //输出,块内数据信息,长度为块的大小(4或8字节)乘以BlockCount个字节
// byte[] data = new byte[4 * blockCount];
// //错误代码
// byte errorCode = 0;
// ErrCode = ReaderA.StaticClassReaderA.ReadMultipleBlock(ref addr, ref state, _uid, blockNum, blockCount, blockSecStatus, data, ref errorCode, portIndex);
// if (ErrCode == 0)
// {
// Array.Copy(data, 0, _buff, 0, data.Length);
// }
//}
private bool WriteRFID(byte[] buff)
{
//0x00 块4字节 A类标签 Address模式
//0x01 块4字节 A类标签 Select模式
//0x04 块8字节 A类标签 Address模式
//0x05 块8字节 A类标签 Select模式
//0x08 块4字节 B类标签 Address模式
//0x09 块4字节 B类标签 Select模式
//0x0C 块8字节 B类标签 Address模式
//0x0D 块8字节 B类标签 Select模式
byte state = 0;
//错误代码
byte errorCode = 0;
byte[] data = new byte[4];
Array.Copy(buff, data, 4);
ErrCode = ReaderA.StaticClassReaderA.WriteSingleBlock(ref addr, ref state, _uid, 0, data, ref errorCode, portIndex);
System.Threading.Thread.Sleep(50);
state = 0;
errorCode = 0;
Array.Copy(buff, 4, data, 0, 4);
ErrCode = ReaderA.StaticClassReaderA.WriteSingleBlock(ref addr, ref state, _uid, 1, data, ref errorCode, portIndex);
data = new byte[4];
for (byte i = 2; i < 28; i++)
{
state = 0;
errorCode = 0;
ErrCode = ReaderA.StaticClassReaderA.WriteSingleBlock(ref addr, ref state, _uid, i, data, ref errorCode, portIndex);
}
//ErrCode = ReaderA.StaticClassReaderA.WriteMultipleBlock(ref addr, ref state, _uid, 1, 2, data, ref errorCode, portIndex);
if (ErrCode == 0)
return true;
else
return false;
}
private void Scan()
{
bool start = false;
bool end = false;
byte[] data = new byte[4096];
byte[] bb = new byte[10];
byte[] temp = new byte[0];
int dataLen;
int idx = 0;
empty = false;
while (loop)
{
System.Threading.Thread.Sleep(1000);
if (!IsAutoScan) continue;
try
{
dataLen = 0;
ErrCode = ReaderA.StaticClassReaderA.ReadScanModeData(data, ref dataLen, portIndex);
log.OutString("ReadScanModeData[" + ErrCode + "] Len=" + dataLen + " " + (Error)ErrCode);
if (ErrCode == 0)
{
temp = new byte[dataLen];
Array.Copy(data, 0, temp, 0, dataLen);
empty = false;
//for (int i = 0; i < temp.Length; i++)
// _receive.Enqueue(temp[i]);
}
else if (ErrCode == 48)
{
if (empty)
{
continue;
}
else
{
temp = new byte[7] { 0x5A, 0, 0, 0, 0, 0, 0x4A };
//_receive.Enqueue(0x5A);
//_receive.Enqueue(0);
//_receive.Enqueue(0);
//_receive.Enqueue(0);
//_receive.Enqueue(0); //RFID的格式,每4个字节有一个0
//_receive.Enqueue(0);
//_receive.Enqueue(0x4A);
empty = true;
}
}
else if (IsConn && (ErrCode == 14 || ErrCode == 55)) //55无效句柄
{
//AutoScanMode(false);
IsConn = false;
ErrCode = ReaderA.StaticClassReaderA.CloseNetPort(portIndex);
log.OutString("CloseNetPort[" + ErrCode + "] " + (Error)ErrCode);
System.Threading.Thread.Sleep(100);
Connect();
if (IsConn)
{
AutoScanMode(false);
System.Threading.Thread.Sleep(100);
AutoScanMode(true);
}
continue;
}
string s = "AutoScan ";
for (int i = 0; i < temp.Length; i++)
s += temp[i].ToString("X2") + " ";
log.OutString(s);
for (int i = 0; i < temp.Length; i++)
{
if (temp[i] == 0x5A)
{
start = true;
end = false;
idx = 0;
log.OutString("Start 5A");
}
else if (temp[i] == 0x4A && start)
{
start = false;
end = true;
bb[idx++] = temp[i];
log.OutString("End 4A");
}
if (start)
{
if (idx + 1 == bb.Length)
{
start = false;
end = false;
log.OutString("idx+1=" + (idx + 1).ToString());
}
else
{
bb[idx++] = temp[i];
log.OutString("bb[" + (idx - 1).ToString() + "]=" + temp[i].ToString("X2"));
}
}
if (end)
{
log.OutString("idx=" + idx);
if (idx == 7) //中间有个00
{
_buff[0] = bb[0];
_buff[1] = bb[1];
_buff[2] = bb[2];
_buff[3] = bb[3];
_buff[4] = bb[5];
_buff[5] = bb[6];
_buff[6] = 0;
_buff[7] = 0;
string ss = "Receive ";
for (int j = 0; j < _buff.Length; j++)
ss += _buff[j].ToString("X2") + " ";
log.OutString(ss);
Received?.Invoke(IP, _buff);
}
end = false;
}
}
}
catch (Exception ex)
{
IsConn = false;
loop = false;
log.OutError(ex.Message);
}
}
}
private void ScanFind()
{
while (loop)
{
System.Threading.Thread.Sleep(1000);
bool rtn = FindRFID();
if (rtn)
{
if (!loop) break;
ReadRFID();
Received?.Invoke(IP, _buff);
}
}
}
//private void Receive()
//{
// bool start = false;
// bool end = false;
// byte[] bb = new byte[10];
// int idx = 0;
// while(loop)
// {
// if (_receive.TryDequeue(out byte result))
// {
// log.OutString("result=" + result.ToString("X2"));
// try
// {
// if (result == 0x5A)
// {
// start = true;
// end = false;
// idx = 0;
// log.OutString("Start 5A");
// }
// else if (result == 0x4A && start)
// {
// start = false;
// end = true;
// bb[idx++] = result;
// log.OutString("End 4A");
// }
// if (start)
// {
// if (idx + 1 == bb.Length)
// {
// start = false;
// end = false;
// log.OutString("idx+1=" + (idx + 1).ToString());
// }
// else
// {
// bb[idx++] = result;
// log.OutString("bb[" + (idx - 1).ToString() + "]=" + result.ToString("X2"));
// }
// }
// if (end)
// {
// log.OutString("idx=" + idx);
// if (idx == 7) //中间有个00
// {
// _buff[0] = bb[0];
// _buff[1] = bb[1];
// _buff[2] = bb[2];
// _buff[3] = bb[3];
// _buff[4] = bb[5];
// _buff[5] = bb[6];
// _buff[6] = 0;
// _buff[7] = 0;
// string s = "Receive ";
// for (int i = 0; i < _buff.Length; i++)
// s += _buff[i].ToString("X2") + " ";
// log.OutString(s);
// Received?.Invoke(IP, _buff);
// }
// end = false;
// }
// }
// catch (Exception ex)
// {
// loop = false;
// log.OutError(ex.Message);
// }
// }
// System.Threading.Thread.Sleep(20);
// }
//}
}
}
using System;
namespace Asa.RFID
{
/// <summary>
/// RFID读卡器
/// </summary>
public class HFReaderAll
{
private Log log;
private string currIP;
private string[] _ip;
private HFReader[] reader;
private byte[][] buffer;
//private System.Threading.Thread tRecon;
//private System.Threading.Thread tSave;
//private System.Collections.Concurrent.ConcurrentQueue<string> log;
public delegate void GetValueEvent(string s);
public event GetValueEvent GetValue;
public delegate void StatusEvent(int idx, string ip, bool status);
public event StatusEvent ConnectStatus;
public event StatusEvent ScanStatus;
/// <summary>
/// RFID
/// </summary>
public HFReaderAll()
{
}
/// <summary>
/// 日志目录
/// </summary>
public string LogPath { set; get; } = "";
/// <summary>
/// 扫描模式,true自动,false查找
/// </summary>
public bool ScanMode { set; get; } = true;
/// <summary>
/// 打开所有
/// </summary>
/// <param name="ip"></param>
public void Open(params string[] ip)
{
log = new Log(LogPath, "RFID_ALL");
log.OutInfo("Call Open");
_ip = ip;
reader = new HFReader[ip.Length];
buffer = new byte[ip.Length][];
for (int i = 0; i < buffer.Length; i++)
buffer[i] = new byte[8];
Connect();
}
/// <summary>
/// 关闭所有
/// </summary>
public void Close()
{
log.OutInfo("ReaderAll Close");
if (reader == null) return;
for (int i = 0; i < reader.Length; i++)
{
if (reader[i] != null)
{
if (ScanMode)
reader[i].AutoScanMode(false);
//else
// reader[i].FindIDMode(false);
reader[i].Close();
log.OutInfo(reader[i].IP + " Close");
System.Threading.Thread.Sleep(10);
}
}
reader = null;
log.OutInfo("Close All OK");
log.Exit();
}
/// <summary>
/// 是否打开
/// </summary>
/// <returns></returns>
public bool[] IsOpen()
{
if (reader == null) return null;
bool[] rtn = new bool[reader.Length];
for (int i = 0; i < rtn.Length; i++)
{
if (reader[i] == null)
rtn[i] = false;
else
rtn[i] = reader[i].IsConn;
}
return rtn;
}
/// <summary>
/// 是否打开
/// </summary>
/// <param name="ip"></param>
/// <returns></returns>
public bool IsOpen(string ip)
{
int idx = Array.FindIndex(_ip, ss => ss == ip);
if (idx == -1) return false;
if (reader == null) return false;
if (reader[idx] == null)
return false;
else
return reader[idx].IsConn;
}
/// <summary>
/// 读取
/// </summary>
/// <param name="ip"></param>
/// <returns></returns>
public byte[] Read(string ip)
{
int idx = Array.FindIndex(_ip, ss => ss == ip);
if (idx == -1)
{
log.OutInfo("ip " + ip + " 没有找到");
return null;
}
return buffer[idx];
}
/// <summary>
/// 读取
/// </summary>
/// <param name="ip"></param>
/// <returns></returns>
public string ReadStr(string ip)
{
int idx = Array.FindIndex(_ip, ss => ss == ip);
if (idx == -1)
{
log.OutInfo("ip " + ip + " 没有找到");
return "";
}
string val;
if (buffer[idx][1] == 0)
val = "00";
else
val = (char)buffer[idx][1] + buffer[idx][2].ToString();
return val;
}
/// <summary>
/// 清零
/// </summary>
/// <param name="ip"></param>
public void Clear(string ip)
{
int idx = Array.FindIndex(_ip, ss => ss == ip);
if (idx == -1) return;
buffer[idx] = new byte[8];
reader[idx].AutoScanMode(false);
System.Threading.Thread.Sleep(100);
reader[idx].AutoScanMode(true);
}
private void Connect()
{
log.OutInfo("Call Connect");
try
{
for (int i = 0; i < reader.Length; i++)
{
reader[i] = new HFReader(_ip[i]);
reader[i].LogPath = LogPath;
reader[i].Received += Reader_Received;
reader[i].Open(ScanMode);
log.OutInfo(_ip[i] + " IsConn=" + reader[i].IsConn);
ConnectStatus?.Invoke(i, _ip[i], reader[i].IsConn);
}
for (int i = 0; i < reader.Length; i++)
{
if (reader[i].IsConn)
{
System.Threading.Thread.Sleep(100);
if (ScanMode)
{
bool rtn = reader[i].AutoScanMode(true);
log.OutInfo(_ip[i] + " ScanMode=auto, Return=" + rtn);
ScanStatus?.Invoke(i, _ip[i], rtn);
}
else
{
log.OutInfo(_ip[i] + " ScanMode=find");
}
}
else
{
reader[i].Close();
reader[i] = null;
log.OutInfo(_ip[i] + " Close");
ScanStatus?.Invoke(i, _ip[i], false);
}
}
}
catch (Exception ex)
{
log.OutError(ex.Message);
}
System.Threading.Thread.Sleep(50);
}
//private void Reconnect()
//{
// while (true)
// {
// for (int i = 0; i < reader.Length; i++)
// {
// try
// {
// System.Net.NetworkInformation.Ping ping = new System.Net.NetworkInformation.Ping();
// System.Net.NetworkInformation.PingReply result = ping.Send(_ip[i], 1000);
// ping.Dispose();
// if (result.Status == System.Net.NetworkInformation.IPStatus.Success)
// {
// if (reader[i] == null)
// {
// reader[i] = new Reader(_ip[i]);
// reader[i].Received += Reader_Received;
// //reader[i].Connect(false);
// if (reader[i].IsConn)
// {
// System.Threading.Thread.Sleep(100);
// reader[i].AutoScanMode(true);
// }
// else
// {
// reader[i].Close();
// reader[i] = null;
// }
// }
// else
// {
// if (!reader[i].IsConn)
// {
// reader[i].Close();
// reader[i] = new Reader(_ip[i]);
// reader[i].Received += Reader_Received;
// //reader[i].Connect(false);
// if (reader[i].IsConn)
// {
// System.Threading.Thread.Sleep(100);
// reader[i].AutoScanMode(true);
// }
// else
// {
// reader[i].Close();
// reader[i] = null;
// }
// }
// }
// }
// else
// {
// //拔网线
// if (reader[i] != null && reader[i].IsConn)
// {
// reader[i].Close();
// reader[i] = null;
// }
// }
// }
// catch (Exception)
// { }
// System.Threading.Thread.Sleep(50);
// }
// System.Threading.Thread.Sleep(5000);
// }
//}
private void Reader_Received(string ip, byte[] buff)
{
try
{
int idx = Array.FindIndex(_ip, ss => ss == ip);
if (idx == -1)
{
log.OutInfo("ip " + ip + " 没有找到");
return;
}
Array.Copy(buff, buffer[idx], buff.Length);
string val;
if (buff[1] == 0)
val = "00";
else
val = (char)buff[1] + buff[2].ToString();
log.OutString(ip + " Received " + val);
//if (currIP != ip)
//{
// currIP = ip;
// GetValue?.Invoke(ip + ", " + val);
//}
}
catch (Exception ex)
{
log.OutError(ex.Message);
}
}
private void SaveLog()
{
//if (string.IsNullOrWhiteSpace(LogPath)) return;
//if (!LogPath.EndsWith("\\\\")) LogPath += "\\\\";
//if (!System.IO.Directory.Exists(LogPath))
// System.IO.Directory.CreateDirectory(LogPath);
//string _logFile = string.Format("{0}RFID_{1:yyyy-MM-dd}.log", LogPath, DateTime.Now);
//while (true)
//{
// System.Threading.Thread.Sleep(200);
// if (log.TryDequeue(out string result))
// {
// try
// {
// System.IO.File.AppendAllText(_logFile, result, System.Text.Encoding.UTF8);
// }
// catch (Exception)
// { }
// }
//}
}
}
}

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 \ 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 \ 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 \ 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 \ 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 \ 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 \ 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 \ No newline at end of file
namespace RFID_Debug
{
partial class UserControl1
{
/// <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 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.BtnReadOne = new System.Windows.Forms.Button();
this.BtnReadAll = new System.Windows.Forms.Button();
this.TxtRead = new System.Windows.Forms.TextBox();
this.LblID = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.BtnNumAdd = new System.Windows.Forms.Button();
this.BtnNumMinus = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.BtnWrite = new System.Windows.Forms.Button();
this.NudNumber = new System.Windows.Forms.NumericUpDown();
this.CboType = new System.Windows.Forms.ComboBox();
this.BtnFind = new System.Windows.Forms.Button();
this.BtnClose = new System.Windows.Forms.Button();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.NudNumber)).BeginInit();
this.SuspendLayout();
//
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox2.Controls.Add(this.button1);
this.groupBox2.Controls.Add(this.BtnReadOne);
this.groupBox2.Controls.Add(this.BtnReadAll);
this.groupBox2.Controls.Add(this.TxtRead);
this.groupBox2.Enabled = false;
this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox2.Location = new System.Drawing.Point(3, 47);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(489, 184);
this.groupBox2.TabIndex = 7;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "读取";
//
// button1
//
this.button1.Location = new System.Drawing.Point(292, 128);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 31);
this.button1.TabIndex = 3;
this.button1.Text = "123";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// BtnReadOne
//
this.BtnReadOne.Location = new System.Drawing.Point(142, 128);
this.BtnReadOne.Name = "BtnReadOne";
this.BtnReadOne.Size = new System.Drawing.Size(130, 50);
this.BtnReadOne.TabIndex = 2;
this.BtnReadOne.Text = "读取使用字节";
this.BtnReadOne.UseVisualStyleBackColor = true;
this.BtnReadOne.Click += new System.EventHandler(this.BtnReadOne_Click);
//
// BtnReadAll
//
this.BtnReadAll.Location = new System.Drawing.Point(6, 128);
this.BtnReadAll.Name = "BtnReadAll";
this.BtnReadAll.Size = new System.Drawing.Size(130, 50);
this.BtnReadAll.TabIndex = 1;
this.BtnReadAll.Text = "读取所有字节";
this.BtnReadAll.UseVisualStyleBackColor = true;
this.BtnReadAll.Click += new System.EventHandler(this.BtnReadAll_Click);
//
// TxtRead
//
this.TxtRead.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtRead.Location = new System.Drawing.Point(6, 28);
this.TxtRead.Multiline = true;
this.TxtRead.Name = "TxtRead";
this.TxtRead.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.TxtRead.Size = new System.Drawing.Size(477, 94);
this.TxtRead.TabIndex = 0;
//
// LblID
//
this.LblID.ForeColor = System.Drawing.Color.Red;
this.LblID.Location = new System.Drawing.Point(109, 3);
this.LblID.Name = "LblID";
this.LblID.Size = new System.Drawing.Size(381, 38);
this.LblID.TabIndex = 3;
//
// groupBox3
//
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox3.Controls.Add(this.BtnNumAdd);
this.groupBox3.Controls.Add(this.BtnNumMinus);
this.groupBox3.Controls.Add(this.label3);
this.groupBox3.Controls.Add(this.BtnWrite);
this.groupBox3.Controls.Add(this.NudNumber);
this.groupBox3.Controls.Add(this.CboType);
this.groupBox3.Enabled = false;
this.groupBox3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox3.Location = new System.Drawing.Point(3, 237);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(489, 122);
this.groupBox3.TabIndex = 8;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "写入";
//
// BtnNumAdd
//
this.BtnNumAdd.Font = new System.Drawing.Font("宋体", 16F);
this.BtnNumAdd.Location = new System.Drawing.Point(402, 28);
this.BtnNumAdd.Name = "BtnNumAdd";
this.BtnNumAdd.Size = new System.Drawing.Size(75, 29);
this.BtnNumAdd.TabIndex = 5;
this.BtnNumAdd.Text = "+";
this.BtnNumAdd.UseVisualStyleBackColor = true;
this.BtnNumAdd.Click += new System.EventHandler(this.BtnNumAdd_Click);
//
// BtnNumMinus
//
this.BtnNumMinus.Font = new System.Drawing.Font("宋体", 16F);
this.BtnNumMinus.Location = new System.Drawing.Point(321, 28);
this.BtnNumMinus.Name = "BtnNumMinus";
this.BtnNumMinus.Size = new System.Drawing.Size(75, 29);
this.BtnNumMinus.TabIndex = 4;
this.BtnNumMinus.Text = "-";
this.BtnNumMinus.UseVisualStyleBackColor = true;
this.BtnNumMinus.Click += new System.EventHandler(this.BtnNumMinus_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.Color.Red;
this.label3.Location = new System.Drawing.Point(142, 78);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(0, 21);
this.label3.TabIndex = 3;
//
// BtnWrite
//
this.BtnWrite.Location = new System.Drawing.Point(6, 63);
this.BtnWrite.Name = "BtnWrite";
this.BtnWrite.Size = new System.Drawing.Size(130, 50);
this.BtnWrite.TabIndex = 2;
this.BtnWrite.Text = "写入";
this.BtnWrite.UseVisualStyleBackColor = true;
this.BtnWrite.Click += new System.EventHandler(this.BtnWrite_Click);
//
// NudNumber
//
this.NudNumber.Location = new System.Drawing.Point(235, 28);
this.NudNumber.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.NudNumber.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.NudNumber.Name = "NudNumber";
this.NudNumber.Size = new System.Drawing.Size(80, 29);
this.NudNumber.TabIndex = 1;
this.NudNumber.Value = new decimal(new int[] {
1,
0,
0,
0});
//
// CboType
//
this.CboType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CboType.FormattingEnabled = true;
this.CboType.Items.AddRange(new object[] {
"A:料仓带包装料架",
"B:环形线料串",
"C:双层线其他规格料格",
"D:双层线7寸料格",
"E:环行线托盘"});
this.CboType.Location = new System.Drawing.Point(6, 28);
this.CboType.Name = "CboType";
this.CboType.Size = new System.Drawing.Size(223, 29);
this.CboType.TabIndex = 0;
//
// BtnFind
//
this.BtnFind.Enabled = false;
this.BtnFind.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnFind.Location = new System.Drawing.Point(3, 3);
this.BtnFind.Name = "BtnFind";
this.BtnFind.Size = new System.Drawing.Size(100, 38);
this.BtnFind.TabIndex = 9;
this.BtnFind.Text = "查找RFID";
this.BtnFind.UseVisualStyleBackColor = true;
this.BtnFind.Click += new System.EventHandler(this.BtnFind_Click);
//
// BtnClose
//
this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.BtnClose.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnClose.Location = new System.Drawing.Point(392, 3);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Size = new System.Drawing.Size(100, 38);
this.BtnClose.TabIndex = 10;
this.BtnClose.Text = "关闭";
this.BtnClose.UseVisualStyleBackColor = true;
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click);
//
// UserControl1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.BtnClose);
this.Controls.Add(this.LblID);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.BtnFind);
this.Name = "UserControl1";
this.Size = new System.Drawing.Size(495, 362);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.NudNumber)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label LblID;
private System.Windows.Forms.Button BtnReadOne;
private System.Windows.Forms.Button BtnReadAll;
private System.Windows.Forms.TextBox TxtRead;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Button BtnNumAdd;
private System.Windows.Forms.Button BtnNumMinus;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button BtnWrite;
private System.Windows.Forms.NumericUpDown NudNumber;
private System.Windows.Forms.ComboBox CboType;
private System.Windows.Forms.Button BtnFind;
private System.Windows.Forms.Button BtnClose;
private System.Windows.Forms.Button button1;
}
}
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 \ 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 \ 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 \ 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!