Dear
We use MRFC531.
I tag card. But it is not detect, and I am debugging.
I wonder source code.
in 13 line
char T_Money_DF_SELECT(unsigned char CID, unsigned char *Buf)
{
unsigned char len;
Buf[0]=0x0A|BLK;// I-block PCB with CID
BLK ^= 1; // Toggle block number
Buf[1]=CID; // CID
Buf[2]=0x00; // INF:CLA
Buf[3]=0xA4; // INF:INS
Buf[4]=0x04; // INF:P1
Buf[5]=0x00; // INF:P2
Buf[6]=0x07; // INF:Le
Buf[7]=0xD4; // DATA
Buf[8]=0x10; // DATA
Buf[9]=0x00; // DATA
Buf[10]=0x00; // DATA
Buf[11]=0x03; // DATA
Buf[12]=0x00; // DATA
Buf[13]=0x01; // DATA
if(M500PiccExchangeBlock(Buf,16,Buf,&len,1,FWI)!=MI_OK) return(!MI_OK);
//memcpy(Send_Buf, Buf, len);
//Send_Serial((int)len);
printf("Buf[len-4] :%x %d\n", Buf[len-4],len);
return(MI_OK);
if(Buf[len-4]==0x90) return(MI_OK); ===> what mean???
else return(!MI_OK);
}
Buf[len-4]==0x90 ==> what is the "0x90" mean?
Result debuging , Buf[len-4] is 0x00. So it is failed.
What is 0x90 mean?And when Buf[len-4] is 0x00, what is my card type(iso etc)?
Let me know my question~~
Thanks.
Hi,
90 means command issued ok, please refer to ISO7816-4 for more details on that. From my point of view, the card is a ISO14443A type card.
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------