gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] Use +CPMS (SMS preferred memory store) more correctly.


From: Pawel Kot
Subject: Re: [patch] Use +CPMS (SMS preferred memory store) more correctly.
Date: Tue, 11 Jan 2005 22:45:49 +0100 (CET)

On Tue, 11 Jan 2005, David Vrabel wrote:

> AT+CPMS="SM"
> +CPMS: 0,20,0,20,3,40
> OK
> AT+CMPS?
> +CPMS: "SM",0,20,"SM",0,20,"ME",3,40
> OK
>
> Observe that <mem3> is "ME" and yet we only check the "SM" store
> therefore, we'd fail to see new messages as they were stored in "ME".
>
> The "solution" presented in the patch is to set all three messages
> stores to be the same and to use +CPMS? to get the status.  The does
> require that the phone is preconfigured (and the setting saved) with the
> correct preferred memory setting.
>
> AT+CPMS="SM","SM","SM"
> +CPMS: 0,20,0,20,0,20
> OK
> AT+CMPS?
> +CPMS: "SM",0,20,"SM",0,20,"SM",0,20
> OK
>
> Ideally, smsd would query all available message stores. But I'm not
> familar enough with gnokii to see how this would be done.

I belive we should fallback to the current behaviour if this command fails
(ie. we got ERROR in response). I think there may be phones that won't
support such setting. Would you add it to the patch?

pkot
-- 
p k o t a t b e z s e n s u d o t p l
http://www.gnokii.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]