public static bool GetAntennaPower(out byte[] powerlist, out string errInfo) { errInfo = ""; powerlist = null; SysQuery_500 msg = new SysQuery_500(0x07, 0x01); if (RfReader.Send(msg)) { powerlist = msg.ReceivedMessage.QueryData; return(true); } else { if (msg.ErrInfo == null || msg.ErrInfo == "") { errInfo = string.Format("0x{0}", msg.StatusCode.ToString("X2")); } else { errInfo = msg.ErrInfo; } } return(false); }
public static bool GetFrequency(out byte[] freq, out string errInfo) { freq = null; errInfo = ""; SysQuery_500 msg = new SysQuery_500(0x01, 0x1E); if (RfReader.Send(msg)) { freq = msg.ReceivedMessage.QueryData; return(true); } else { if (msg.ErrInfo == null || msg.ErrInfo == "") { errInfo = string.Format("0x{0}", msg.StatusCode.ToString("X2")); } else { errInfo = msg.ErrInfo; } } return(false); }