public void newTagEvent(string stringData) { if (stringData == "BUFFER_FULL_WARNING_EVENT") { //userNotification.Text = "Buffer Full Warning"; //userNotification.Visible = true; } else if (stringData == "DISCONNECTION_EVENT") { //userNotification.Text = "Radio Disconnected"; //userNotification.Visible = true; _ReaderAPI.Reconnect(); } else { TagData[] tagData = _ReaderAPI.Actions.GetReadTags(1000); if (tagData != null) { for (int nIndex = 0; nIndex < tagData.Length; nIndex++) { TagData tag = tagData[nIndex]; string tagID = tag.TagID; string tagIDshort = tagID.Substring(tag.TagID.Length - 8); if (tag.TagID != _DeviceID) { if (tag.OpCode == ACCESS_OPERATION_CODE.ACCESS_OPERATION_READ && tag.OpStatus == ACCESS_OPERATION_STATUS.ACCESS_SUCCESS && _ExistingTable.ContainsKey(tagIDshort)) { _Processor.updateTag(tag); } if (tag.OpCode == ACCESS_OPERATION_CODE.ACCESS_OPERATION_NONE && !_ExistingTable.ContainsKey(tagIDshort)) { _Processor.processTag(tag); } } }//for } } }
private void Events_StatusNotify(object sender, Events.StatusEventArgs e) { switch (e.StatusEventData.StatusEventType) { case Symbol.RFID3.Events.STATUS_EVENT_TYPE.BUFFER_FULL_EVENT: Debug.WriteLine("RFID READER BUFFER FULL"); break; case Symbol.RFID3.Events.STATUS_EVENT_TYPE.DISCONNECTION_EVENT: Debug.WriteLine("RFID READER DISCONNECTED"); m_reader.Reconnect(); break; case Symbol.RFID3.Events.STATUS_EVENT_TYPE.READER_EXCEPTION_EVENT: Debug.WriteLine("RFID READER EXCEPTION"); break; default: break; } }