SIM PIN unlock

Denis Kenzior denkenz at gmail.com
Tue Oct 27 09:10:18 PDT 2009


Hi Ryan,

> Ok. I have narrowed it down a little.
>
> It seems to be the CRSM command reading the
> SIM_EFLI_FILEID when it succeeds.
>
> ofonod[6326]: > AT+CRSM=192,28421\r
> ofonod[6326]: < \r\n+CRSM: 144,
> ofonod[6326]: < 0,850D00046F05040001FFAA03020000\r\n\r\n
> ofonod[6326]: < \r\nOK\r\n
>
> goes no further....

The parser is stuck because your modem is spewing garbage.  atgen plugin uses 
the _really_ strict gsmv1 syntax.  I suggest you make a custom driver for your 
device that uses the gsm_permissive syntax.

> 	ofono_sim_read(sim, SIM_EFLI_FILEID,
>          	                OFONO_SIM_FILE_STRUCTURE_TRANSPARENT,
>                  	        sim_efli_read_cb, sim);

This is wrong and won't get you very far as there are about 20 other SIM files 
that we read.

Regards,
-Denis



More information about the ofono mailing list