bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question about file_apdu data structure.

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
ptyhon



Joined: 06 Jan 2010
Posts: 15

PostPosted: Mon Mar 15, 2010 9:47 am    Post subject: Question about file_apdu data structure. Reply with quote

Hi,

I cannot get this compare statement to work? I looked at the appleshaft and fakesim code and this is what they did to capture the IMSI event.

Below is my log file from the TP. Did i miss out some things? It seems like my ME send out 2 seperate packet to SIM. The command packet first follow by the data packet.

Thanks alot.

void handle_sim_file (File_apdu_data *data)
{
//Before i compare i print out the value of EF and INS
dbsp("EF: ");
dbih(fa->ef);
dbsp(" INS: ");
dbih(fa->ins);
dbsp("\n");

if (fa->ef == EF_IMSI && fa->ins == ME_CMD_SELECT)
{
dbsp("fake\n");
fa->p1 = 0xde;
fa->p2 = 0xad;
sim (fa->ins, fa->p1, fa->p2, fa->p3, fa->data);
} else {
sim (fa->ins, fa->p1, fa->p2, fa->p3, fa->data);
}
}

--------My TP log file---------------
FROM ME: a0 a4 00 00 02 --> ME_CMD_SELECT
FROM ME: 6f 07 -->EF_IMSI
EF: 6f38 INS: 00a4 --- print by me, the EF value should be 6f07
TO SIM: a0 a4 00 00 02
TO SIM: 6f 07
FROM SIM: 9f 0f
TO ME: 9f 0f
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group