Exemple #1
0
 public static bool IsSpringCardRFIDScanner(ushort vid, ushort pid)
 {
     if (vid == SpringCard_VendorIDw)
     {
         Logger.Trace("A SpringCard device, mask=" + BinConvert.ToHex((ushort)(pid & 0x0F0F)));
         if ((pid & 0x0F0F) == 0x0201)
         {
             return(true);
         }
     }
     return(false);
 }
 /* Used only to get UID for now, so dots are erased */
 public bool TryGetByteArray(string key, out byte[] result)
 {
     try
     {
         result = BinConvert.ParseHex(Find(key).Replace(".", string.Empty));
     }
     catch
     {
         result = null;
         return(false);
     }
     return(true);
 }