Thanks for the reply Joachim. I tried this and get a valid info:

mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device 
org.freesmartphone.GSM.SIM.GetSimInfo

({"slots": 30,"issuer": "unknown","imsi": "310260438301283","phonebooks": 
"emergency aux:BD fixed aux:DC dialed received aux:LR aux:MT aux:AD contacts 
aux:SD missed aux:LM aux:AF own aux:UD","used": 0})

differing from your entry only by the "used":0 instead of 1.

When I issue the:

mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device 
org.freesmartphone.
GSM.SIM.RetrieveMessage 0

org.freesmartphone.GSM.DeviceFailed: +CMS ERROR: 321

I found that the error means "The memory/message storage index assigned to the 
AT command is invalid." However I this does not help me any further.

Thanks

Stefan

----- Ursprüngliche Mail ----
Von: Joachim Ott <[email protected]>
An: stefan harjes <[email protected]>
CC: [email protected]; [email protected]
Gesendet: Dienstag, den 7. Dezember 2010, 11:56:33 Uhr
Betreff: Re: [Shr-User] SMS messages

On 7 December 2010 16:48, stefan harjes <[email protected]> wrote:
> Hi Jakob,
>
> I guess my problem runs deeper, as I can not receive any SMS messages from my
> carrier (T-mobile).
> The bug report you mentioned, indicates that SMS message import is not 
>supported
> yet.
>
> I also tried some googled stuff and usually people try to use mdbus2 such as:
>
> mdbus2 -s org.freesmartphone.ogsmd
> /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessage 
$MNUM
>
> but first the method 'org.freesmartphone.GSM.SIM.RetrieveMessage' does not 
>exist
> any more and seems to have been
> replaced by 'org.freesmartphone.GSM.SMS.RetrieveTextMessages'. When I try that
> method, mdbus2 either hangs or segfaults:
>
> r...@om-gta02 ~ # mdbus2 -s org.freesmartphone.ogsmd
> /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SMS.RetrieveTextMessages
>
> type unknown not a basic type
> type unknown not a basic type
> type unknown not a basic type
> type unknown not a basic type
> Segmentation fault

This looks to me as if your sms-database is some old format. To look
at the sms on the sim, check how many messages are there with:

mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
org.freesmartphone.GSM.SIM.GetSimInfo

({"slots": 30,"issuer": "simyo","imsi":
"262032760421243","phonebooks": "emergency aux:BD fixed aux:DC dialed
received aux:LR aux:MT aux:AD contacts aux:SD missed aux:LM aux:AF own
aux:UD","used": 1})

Read the first message with:

mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
org.freesmartphone.GSM.SIM.RetrieveMessage 0

The reply looks like:

("read","simyo","Kontrollieren Sie mit dem Daten-Roaming-Limit ab
sofort jederzeit Ihre Kosten fÃŒr Datenroaming innerhalb der EU. Infos
unter simyo.de/datenlimit",{"pid": 201,"mms": false,"udhi":
false,"dcs": 0,"sri": false,"rp": false,"udl": 144})

Sometimes fsogsmd is stuck, after restarting it should work as shown above.



_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to