private byte ReadRFIDCheckSum(RFHead hHead) { try { serialPort.Write(string.Format("RDA{0}00{1}01*\r", (int)hHead + 1, TagData.CheckSumByteNo.ToString("X2"))); return(TagData.DecodeCheckSum(serialPort.ReadTo("*\r"))); } catch { throw; } }