How to delete SMS messages from SIM card with SHR, freesmartphone.org, GTA02
Posted on November 6th, 2012
Once you get a message that your SMS storage on SIM is full and you can’t receive any messages. So, you have to clear your SIM from old messages.
In this example we are using GTA02 device with SHR as of 20120730233813.
First, we open a freesmartphone docs on SIM API and have some fun.
root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.GetSimInfo
({'slots': <20>, 'imsi': <'XXXXXXXXXXXX'>, 'issuer': <'unknown'>, 'used': <20>, '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'>},)So, we are going to purge 20 messages as we have used 20 of 20 slots.
But if you want to read them first, issue the command
root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessage 1
('read', '1095', 'this is a private sms message', {'pid': <byte 0x00>, 'sri': <false>, 'rp': <false>, 'udhi': <false>, 'mms': <false>, 'dcs': <byte 0x01>, 'udl': <byte 0x46>, 'timestamp': <'12/11/06,16:16:24+16'>})When done, delete it.
root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.DeleteMessage 1 () root@om-gta02:~#
Next call to GetSimInfo wil show ‘used’: <19>.
Filed under Openmoko | No Comments »
Refresh SHR screen
Posted on October 25th, 2010
When you install or uninstall application its icon will not be added/removed from your desktop until you manually restart X server.
root@om-gta02 ~ # /etc/init.d/xserver-nodm stop Stopping XServer root@om-gta02 ~ # killall wakerd killall: wakerd: no process killed root@om-gta02 ~ # killall batget root@om-gta02 ~ # /etc/init.d/xserver-nodm start root@om-gta02 ~ # Starting Xserver
Tags: Openmoko, shr
Filed under Openmoko | No Comments »