Well these days Im trying to design a software which use smart card readers, I am using ACR1252u and I have discovered how to buzz my smart card reader if a tag or card is on the reader. but still wondering how can I do this without the card on the reader. the code which works for when the card is on the reader is below:
retCode = Card.SCardConnect(hContext, readername, Card.SCARD_SHARE_SHARED, Card.SCARD_PROTOCOL_T0 | Card.SCARD_PROTOCOL_T1, ref hCard, ref Protocol); Byte[] setBuzzerLoud = new Byte[6]; setBuzzerLoud[0] = 0xE0; setBuzzerLoud[1] = 0x00; setBuzzerLoud[2] = 0x00; setBuzzerLoud[3] = 0x21; setBuzzerLoud[4] = 0x01; setBuzzerLoud[5] = 0x77; uint pcBytesReturned = 0; Byte[] RecieveBuff = new Byte[64]; uint controlcode = 3225264; int status = Card.SCardControl(hCard, controlcode, ref setBuzzerLoud[0], 6, ref RecieveBuff[0], RecieveBuff.Length, ref pcBytesReturned); MessageBox.Show(status.ToString()); The problem is when hcard is on the reader the status which is the error shows 6. which means wrong handle!. But why buzzing a reader is connected to if the card is over the reader? is there anyway to turn this over? cause after this I want to turn on LEDs while the card is not over the reader- Guys plz if anyone have solved this problem tell us.