ECS/mod/RFIDC40Control.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using C40CL;
using rfid.C40Constants;

namespace ECS
{
    public class RFIDC40Control
    {
        public C40CL.C40Class myC40;
        public List<RFIDmodel> List_RFIDmodel = new List<RFIDmodel>();

        public RFIDC40Control()
        {
            //myC40 = new C40Class();
            //myC40.OnEpcTagArrived += OnEpcTagProc;
            //for (int i = 0; i < OPCInfo.OptCount; i++)
            //{
            //    string iP = string.Format("192.10.10.11{0}", i + 1);
            //    List_RFIDmodel.Add(new RFIDmodel(iP, false, "", ""));
            //}
        }

        //public void SetNetPort()
        //{
        //    myC40.HRF_SetNetPort(9983, 9981, 9982);
        //}

        //public void ClostNetPort()
        //{
        //    myC40.HRF_SetNetPort(0, 0, 0);
        //}

        //private void OnEpcTagProc(string IP, long ms_ctr_min, long ms_ctr_max, int rssi_min, int rssi_max, int ana_ctrl1, int antno, int readcount, int EpcLen, string EpcNo)
        //{
        //    lock (this)
        //    {
        //        RFIDmodel rFIDmodel = List_RFIDmodel.Find(p => p.IP == IP.Split(':')[0]);
        //        if (rFIDmodel.ReadValue != EpcNo)
        //        {
        //            rFIDmodel.ReadValue = EpcNo;
        //        }
        //        StopRead(IP);         
        //        rFIDmodel.IsBusy = false;
        //    }
        //}

        //public void StartRead(string IP, int bank)
        //{
        //    lock (this)
        //    {
        //        if (bank >= 0 && bank <= 3)
        //        {
        //            RFIDmodel rFIDmodel = List_RFIDmodel.Find(p => p.IP == IP);
        //            if (!rFIDmodel.IsBusy)
        //            {
        //                ushort sdOffset = 0;
        //                if (bank == 1)
后面还有 41 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。