Ejemplo n.º 1
0
 /// <summary>
 /// 关闭连接串口处理
 /// </summary>
 public void Disconnect()
 {
     try
     {
         if (RWDeviceDll.DisconnectReader() == OK)
         {
             fComopen = false;
             model    = 0;
         }
         else
         {
             throw new Exception("关闭设备连接处理失败!");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 更新参数设置
        /// </summary>
        public void SetUpdateParam()
        {
            try
            {
                byte powerDbm = Convert.ToByte(Common._powerDbm);
                byte dminfre  = Convert.ToByte(Common._dminfre);
                byte dmaxfre  = Convert.ToByte(Common._dmaxfre);
                byte fbaud    = Convert.ToByte(Common._baud);

                fCmdRet = RWDeviceDll.Writebaud(ref readerAddr, ref fbaud);

                fCmdRet = RWDeviceDll.Writepower(ref readerAddr, ref powerDbm);
                fCmdRet = RWDeviceDll.Writedfre(ref readerAddr, ref dmaxfre, ref dminfre);

                if (fCmdRet == 0)
                {
                    return;
                }
            }
            catch (Exception)
            {
                throw new Exception("更新参数设置失败!");
            }
        }
Ejemplo n.º 3
0
 public busRRU9803()
 {
     RWDeviceDll.ModulePowerOff();
     RWDeviceDll.ModulePowerOn();
 }