/// <summary> /// /// </summary> public void ReadBatchRFID() { if (connectiveStatus == true && toggelReader == true) { try { reader.StartReading(); reader.TagRead += OnTagRead; } catch (System.IO.IOException e) { Console.WriteLine(e.Message); } } else { MessageBox.Show("M6e is not connected properly. Please select the correct COM port that connects the M6e module"); } }
public void Start() { try { _listAll.Clear(); //设置事件 SimpleReadPlan readPlan = new SimpleReadPlan(new int[4] { 1, 2, 3, 4 }, TagProtocol.GEN2); _reader.ParamSet("/reader/read/plan", readPlan); _reader.ParamSet("/reader/radio/readPower", Convert.ToInt32(100 * 31.5)); _reader.Connect(); _reader.StartReading(); } catch (Exception) { //throw; } }