Commit c5ac6de8 LN

1

1 个父辈 22533e32
......@@ -83,9 +83,9 @@
<Compile Include="device\PanasonicServo\ACCMDManager.cs" />
<Compile Include="device\PanasonicServo\ACServerManager.cs" />
<Compile Include="device\PanasonicServo\ACServerManager_Partial.cs" />
<Compile Include="device\RFID\RFID.cs" />
<Compile Include="device\RFID\RFIDAuto.cs" />
<Compile Include="device\RFID\RFIDManager.cs" />
<Compile Include="device\RFID\RFIDReader.cs" />
<Compile Include="device\RFID\RFIDAutoReader.cs" />
<Compile Include="store\AutoInoutInfo.cs" />
<Compile Include="store\LineMoveP.cs" />
<Compile Include="store\LineAlarm.cs">
......
......@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Asa.RFID
{
public class RFID
public class RFIDAuto
{
public static readonly ILog LOGGER = LogManager.GetLogger("TheRFID");
......@@ -28,7 +28,7 @@ namespace Asa.RFID
/// </summary>
public event Received_Event Received;
public RFID(string ip)
public RFIDAuto(string ip)
{
this.IP = ip;
}
......
......@@ -4,15 +4,15 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Asa.RFID.RFID;
using static Asa.RFID.RFIDAuto;
namespace Asa.RFID
{
public class RFIDReader
public class RFIDAutoReader
{
public static readonly ILog LOGGER = LogManager.GetLogger("TheRFID");
private static Dictionary<string, RFID> rfidMap = new Dictionary<string, RFID>();
private static Dictionary<string, RFIDAuto> rfidMap = new Dictionary<string, RFIDAuto>();
/// <summary>
/// 打开所有
......@@ -30,7 +30,7 @@ namespace Asa.RFID
}
else
{
RFID rfid = new RFID(ip);
RFIDAuto rfid = new RFIDAuto(ip);
rfid.StartAutoScan(OnReceive);
rfidMap.Add(ip, rfid);
}
......
......@@ -17,7 +17,7 @@ namespace OnlineStore.DeviceLibrary
{
try
{
RFIDReader.Open(null, iparray);
RFIDAutoReader.Open(null, iparray);
}catch(Exception ex)
{
LogUtil.error("Open 出错:" + ex.ToString());
......@@ -33,11 +33,11 @@ namespace OnlineStore.DeviceLibrary
byte[] bdata = null;
if (isClear)
{
bdata = RFIDReader.ReadAndClear(ip);
bdata = RFIDAutoReader.ReadAndClear(ip);
}
else
{
bdata = RFIDReader.Read(ip);
bdata = RFIDAutoReader.Read(ip);
}
if (bdata == null)
{
......@@ -59,7 +59,7 @@ namespace OnlineStore.DeviceLibrary
{
try
{
RFIDReader.CloseAll();
RFIDAutoReader.CloseAll();
}
catch (Exception ex)
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!