calypso SIM driver on c139 (also: l1ctl SIM APDU)

Gianni Tedesco gianni at scaramanga.co.uk
Wed May 11 02:58:41 UTC 2011


On Wed, 2011-05-11 at 01:39 +0100, Gianni Tedesco wrote:
> On Wed, 2011-05-11 at 01:12 +0100, Gianni Tedesco wrote:
> > The SIM and the SIM reader in the phone and the mechanical contact
> > between them are definitely working because the SIM can be accessed from
> > the motorola firmware, from another phone and from a PC smartcard reader
> > with no PIN or anything.
> > 
> > However, under simtest firmware no data is received by the phone, even
> > the ATR is zero bytes...
> > 
> > Anybody had this problem?
> > 
> > Also, is l1CTL SIM APDU command not implemented in the layer1 firmware?
> > How are people making calls without a SIM? :P
> 
> On Mon May 9 12:12:49 CEST 2011, Nico Golde wrote
> > If you wait a bit you will get code for the second 
> > suggestion. We currently have a working version that 
> > forwards the apdu to a local client transforming this into 
> > SAP and speaking with a SAP server that uses pcsc to talk to 
> > a SIM card in an external SIM reader. My goal though is to 
> > transform this into a complete SAP client in 
> > sap_interface.c, I will work on that now...
> 
> Actually, how far have you got with this? Turns out I had the same idea
> as you except I was going to use a unix socket with no protocol (ie. no
> SAP) to just communicate with my ccid-utils driver to talk to the SIM.

I did just that using SEQPACKET unix sockets. Patch attached, sample
simctl is at https://github.com/giannitedesco/ccid-utils/tree/simctl

I was able to register a network and place a voice call with this.

Gianni
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simctl.diff
Type: text/x-patch
Size: 11918 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20110511/fbecc853/attachment.bin>


More information about the baseband-devel mailing list