zielonyplot
June 13th, 2006, 10:41
Hi!
I want to create an EF file on my sim card using apdu command CREATE FILE.
I am doing it like this:
BYTE CREATEFILE[] = { 0xA0 , 0xE0 , 0x00 , 0x00 , 0x14 , 0x62 , 0x12 , 0x82 , 0x02 , 0x21 , 0x21 , 0x83 , 0x02 , 0x6F , 0x50 , 0x8A , 0x01 , 0x00 , 0x8C , 0x02 , 0x01 , 0x00 , 0x80 , 0x01 , 0x7F } ;
After perform this command I get response: 9F 19, which means, that this command was correctly executed. But when I want to read this newly created file using adpu READ BINARY command:
BYTE READBINARY[] = { 0xA0 , 0xB0 , 0x00 , 0x00 },
I get response: 94 00, which means, that I didn't select an EF file. What I am doing wrong?
Please, help! Best regards!
I want to create an EF file on my sim card using apdu command CREATE FILE.
I am doing it like this:
BYTE CREATEFILE[] = { 0xA0 , 0xE0 , 0x00 , 0x00 , 0x14 , 0x62 , 0x12 , 0x82 , 0x02 , 0x21 , 0x21 , 0x83 , 0x02 , 0x6F , 0x50 , 0x8A , 0x01 , 0x00 , 0x8C , 0x02 , 0x01 , 0x00 , 0x80 , 0x01 , 0x7F } ;
After perform this command I get response: 9F 19, which means, that this command was correctly executed. But when I want to read this newly created file using adpu READ BINARY command:
BYTE READBINARY[] = { 0xA0 , 0xB0 , 0x00 , 0x00 },
I get response: 94 00, which means, that I didn't select an EF file. What I am doing wrong?
Please, help! Best regards!