ACM1252U-Y3
– Reference Manual
Version 1.03
www.acs.com.hk
Page 15 of 92
www.acs.com
.hk
// Get MIFARE UID/ FeliCa IDM
SendBuff[0] = 0xFF;
SendBuff[1] = 0xCA;
SendBuff[2] = 0x00;
SendBuff[3] = 0x00;
SendBuff[4] = 0x00;
SendLen = 5;
retCode = SCardTransmit( hCard,
&ioRequest,
SendBuff,
SendLen,
NULL,
RecvBuff,
&RecvLen);
if
(retCode != SCARD_S_SUCCESS)
{
// APDU sending failed
return;
}
else
{
// APDU sending successful
// The RecvBuff stores the IDM for FeliCa / the UID for
MIFARE.
// Copy the content for further FeliCa access
for (int i=0;i< RecvLen-2;i++)
{
CardID [i] = RecvBuff[i];
}
}