public static bool SetAntennaPower(byte val, out string errInfo)
 {
     errInfo = "";
     byte[] bval = new byte[] { val }; //#1
     Invengo.NetAPI.Protocol.IRP1.SysConfig_500 msg = new SysConfig_500(0x07, (byte)bval.Length, bval);
     if (RfReader.Send(msg))
     {
         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 SetFrequency(byte[] data, out string errInfo)
        {
            errInfo = "";
            SysConfig_500 msg = new SysConfig_500(0x01, (byte)data.Length, data);

            if (RfReader.Send(msg))
            {
                return(true);
            }
            else
            {
                if (msg.ErrInfo == null || msg.ErrInfo == "")
                {
                    errInfo = string.Format("0x{0}", msg.StatusCode.ToString("X2"));
                }
                else
                {
                    errInfo = msg.ErrInfo;
                }
            }
            return(false);
        }