[PATCH] Use GET RESPONSE sim command to retrieve EF length.

Denis Kenzior denkenz at gmail.com
Thu Jun 18 00:10:38 PDT 2009


Hi,

On Wednesday 17 June 2009 22:44:28 Andrzej Zaborowski wrote:
> Also accept 0x9f as a success status word 1 for READ BINARY (GSM specific).
>
> Note that GET RESPONSE doesn't seem to work on on the TI Calypso modems
> in OpenMoko phones.  They return the 0x9f status which ETSI says is what
> the SIM shall return if GET RESPONSE is not issued immediately after
> the command generating the response, which would be the case if the
> modem sends some command between SELECT and the GET RESPONSE.  These
> modems don't support AT+CSIM either in case we wanted to manually send
> the SELECT and the GET RESPONSE.

Patch has been applied.  Note that GET RESPONSE or the CSIM equivalent is the 
only sane way to do this as we also need to support cyclical and record based 
files.  Is there any other way to find out the total file size and the record 
size on the Neo besides GET RESPONSE?

For Record-Based files you can use CRSM=178,<file>,0,0,0 to find the record size, 
but not the total length of the file (e.g. how many records there are)

If we can obtain this information, then we simply have to maintain a different 
implementation when ti_calypso is used.

And I can confirm that GET RESPONSE simply doesn't work on the Freerunner:

AT+CRSM=176,28423,0,0,0
STR=`AT+CRSM=176,28423,0,0,0'
RSTR=`+CRSM: 103,9'

Ok, EFimsi exists with length 9

AT+CRSM=192,28423
STR=`AT+CRSM=192,28423'
RSTR=`+CRSM: 111,0'

Unknown technical problem.

Regards,
-Denis


More information about the ofono mailing list