Beispiel #1
0
 /// <summary>
 /// Detiene el thread de lectura.
 /// </summary>
 public void stopReading()
 {
     if (UHF.UHFInventory(0x01, 0x03))
     {
         //close UII receiving thread
         if (thrReceiveUii != null)
         {
             thrReceiveUii.Abort();
             thrReceiveUii = null;
         }
         //stop get
         //Deja de escanear para leer físicamente el tag.
         UHF.UHFStopGet();
     }
 }
Beispiel #2
0
 //Hasta aqui...
 /// <summary>
 /// Genera el Thread para que se pueda ejecutar la lectura.
 /// </summary>
 /// <param name="run"></param>
 public void Read(bool isConnected)
 {
     //MessageBox.Show("Reading Mode:" + flagAnti + ",Q" + iniAntiQ);
     //Activa el Escaneo Físico del Tag de forma continua para leer su data de acuerdo a los parámetros de información.
     //this.canReceive = UHF.UHFInventory(flagAnti, iniAntiQ);
     //this.canReceive = UHF.UHFInventory(0x01, 0x15);
     if (this.canReceive = UHF.UHFInventory(0x01, 0x03))
     {
         //Abre un UII thread para recibir la data
         if (thrReceiveUii == null)
         {
             //ReceiveUiiProc se genera como thread
             thrReceiveUii = new System.Threading.Thread(ReceiveUiiProc);
             thrReceiveUii.IsBackground = true;
             thrReceiveUii.Start();
         }
         else
         {
             thrReceiveUii.Start();
         }
     }
 }