//点击连接读写器 private void Button_Click_1(object sender, RoutedEventArgs e) { connectReader(); //setReader(); reader.InventoryReal((byte)0xFF, (byte)0x01); isLoop = true; }
void onExeCMDStatus(byte cmd, byte status) { if (isLoop && (cmd == CMD.REAL_TIME_INVENTORY)) { reader.InventoryReal((byte)0xFF, (byte)0xFF); } Console.WriteLine("CMD execute CMD:" + CMD.format(cmd) + "++Status code:" + ERROR.format(status)); }
/// <summary> /// 开始扫描RFID标签 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> //private void startInventoryBtn_Click(object sender, EventArgs e) private void startInventory() { //reader.Inventory((byte)0xFF, (byte)0x05); //logger.Info("Start Inventory message sent"); reader.InventoryReal((byte)0xFF, (byte)0xFF); isLoop = true; logger.Info("Start Inventory RealTime message sent"); }