Hi Florian, <snip>
> The SIM is present, but still PIN code blocked. > The notify_sim_state function needs be changed. > > pseudo code: > If sim_state == 0 then > if 'AT+CPIN?' returns 'CPIN: SIM PIN' then > sim_state = 'present but sim locked' > else > sim_state = 'invalid SIM' > endif > else if sim_state == 255 then > sim_state = 'SIM not present' > endif > I keep forgetting about modems behaving differently with PIN code set. You are of course correct. The mbm driver does something very similar for PIN / SIM inserted logic. Might be a good template to follow. Regards, -Denis _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
