Zhone doesn't show my contacts and messages after restart

Michael 'Mickey' Lauer mickey at openmoko.org
Thu Nov 27 00:42:45 CET 2008


Am Wednesday 26 November 2008 21:56:19 schrieb Paul Fertser:
> "Michael 'Mickey' Lauer" <mickey at openmoko.org> writes:
> >> "Michael 'Mickey' Lauer" <mickey at openmoko.org> writes:
> >> > Am Monday 24 November 2008 13:33:54 schrieb Paul Fertser:
> >> >> I think i know what happens. If i restart Zhone without restarting
> >> >> frameworkd it never receives ReadyStatus signal from
> >> >> org.freesmartphone.GSM.SIM because sim was ready long ago it
> >> >> started.
> >> >
> >> > This should no longer be a problem as nowadays, if the last GSM user
> >> > vanishes from the bus, the GSM resource (hence the modem) gets
> >> > shutdown completely.
> >>
> >> Yes, moreover after any network status change Zhone will try to reread
> >> the contacts and messages lists. But the problem is that
> >> org.freesmartphone.GSM.SIM.GetSimReady return 0 after Zhone
> >> restart.
> >
> > Which should no longer happen, if zhone is the only user of the GSM
> > resource.
> Well, as far as i understand, that's still not correct. Imagine i want
> to restart the phone app while using GPRS? I think it's a valid use
> case.
> Moreover, even provided zhone is the only app using the GSM
> resource, are you sure that gsm0710muxd will power-cycle the modem?

Yes. Shutting down the resource will shut down gsm0710muxd, which in effect, 
turns off the modem.

> >> As the exact documentation on %CSTAT is unavailable (thank you, TI), i
> >> looked it up in Enfora's. It says that the %CSTAT codes will be
> >> delivered only after power on. If it is really the case with calypso
> >> it is no surprise that we never get SimReady signal as we don't
> >> power-cycle the modem (ATZ seems to be not equivalent, and we can't do
> >> $RESET). So it seems that %CSTAT should be avoided altogether...
> >
> > It's a question of alternatives. I don't think hammering the modem with
> > read/write contact requests until it stops answering with 'SIM busy' is
> > better than using %CSTAT.
> Do it once, then if 'SIM busy' received, wait for the %CSTAT. What's
> wrong with this approach?

The fact that it only works if the Calypso is in a good mood. If the timing is 
wrong, you get an empty list of contacts...


More information about the community mailing list