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 

Extracting Terminal Profile

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



Joined: 20 Jun 2011
Posts: 13

PostPosted: Tue Jun 21, 2011 2:33 pm    Post subject: Extracting Terminal Profile Reply with quote

Forgive me if this has been ask and answered a bunch but.. how do you recognize/extract/view a terminal profile?

I know that a ME that supports proactive SIMs shall be identified as such when it sends a TERMINAL PROFILE command during SIM initialization.

So using dbg I've logged a phones startup communications four a couple mins while the phone completely booted, what do I need to search for in the log to get the terminal profile?
Back to top
View user's profile Send private message
dary



Joined: 15 Oct 2007
Posts: 54

PostPosted: Tue Jun 21, 2011 7:21 pm    Post subject: Reply with quote

Look for APDU starting 0xa0 0x10 ...

In this example
FROM ME: a0 10 00 00 13
TO SIM: a0 10 00 00 13
FROM ME: ff ff ff ff 7f 3f 00 df ff 00 00 1f e2 86 0b 22 03 09 00
TO SIM: ff ff ff ff 7f 3f 00 df ff 00 00 1f e2 86 0b 22 03 09 00

Terminal Profile is
ff ff ff ff 7f 3f 00 df ff 00 00 1f e2 86 0b 22 03 09 00
Back to top
View user's profile Send private message
tupac



Joined: 20 Jun 2011
Posts: 13

PostPosted: Tue Jun 21, 2011 8:51 pm    Post subject: Reply with quote

So I don't have a any messages starting with a0 10 in either of the logs that I have, at what point would an ME send its terminal profile to the SIM is it part of the start up sequence or would there have to be an event to prompt the ME to send it ?

I don't see the INS byte of 10 listed on any of the documentation I've looked at... is there a complete listing of Class and Instructions bytes somewhere?

I've been using the following link to develop a parser but would love a better list if one exists.

http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4_5_basic_organizations.aspx#chap5_4
Back to top
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Mon Jun 27, 2011 2:19 pm    Post subject: Reply with quote

tupac wrote:
So I don't have a any messages starting with a0 10 in either of the logs that I have, at what point would an ME send its terminal profile to the SIM is it part of the start up sequence or would there have to be an event to prompt the ME to send it ?

I don't see the INS byte of 10 listed on any of the documentation I've looked at... is there a complete listing of Class and Instructions bytes somewhere?

I've been using the following link to develop a parser but would love a better list if one exists.

http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4_5_basic_organizations.aspx#chap5_4


See 11.11 from www.etsi.org
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