Hi,<br><br>The startup is not complicated and no 'official' sequence is defined.<br>You must power up the card, then reset  it and read the ATR.<br>Then, a PPS exchange can optionally be done (please refer to ISO7816-3 or GSM 11.11) to optimize the transfer speed with the SIM.<br>

<br>Please also include a provision for sending additional startup apdus (or at least one), such as SELECT APPLICATION apdus. However, this is not required for a standard SIM or in a preliminary version.<br><br>When this project started, we mentioned the ability to route the SIM requests to a standard PCSC reader via pcsclite.<br>

Please include this ability in your code, along with communication with the embedded sim reader.<br>This will be very useful when we'll be ready to use our own sim cards (I'm --part-part-time-- working on this).<br>

<br>Regards<br>Sebastien.<br><br>PS: don't forget that  communication with a card is always part of exchanges. The ATR always accompanies the reset operation, and the response apdu is always linked to the command apdu.<br>

<br><br><div class="gmail_quote">On Mon, Aug 23, 2010 at 1:14 PM, Andreas.Eversberg <span dir="ltr"><<a href="mailto:Andreas.Eversberg@versatel.de">Andreas.Eversberg@versatel.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
hi,<br>
<br>
i am current writing the sim client for layer23. this client transforms<br>
the read and update requests from layer 3 (imsi read, location update)<br>
into several APDUs to be transferred via BTSAP interface. (interface to<br>
layer 1) here are two questions:<br>
<br>
how do i interface to this BTSAP? i see that there is another unix<br>
socket for that. do i need to expand main.c of layer23?<br>
<br>
i think that i cannot just start sending APDUs after starting layer23.<br>
there might be something like an initialization sequence before:<br>
- power on<br>
- reset<br>
- get atr<br>
- ...<br>
- send APDU<br>
- receive APDU<br>
- ...<br>
is there a defined sequence or flow chart for that?<br>
<br>
regards,<br>
<font color="#888888"><br>
andreas<br>
<br>
<br>
</font></blockquote></div><br>