For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2005 > i snapped my sim card,how do i retrieve text messaeges being sent to it?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author i snapped my sim card,how do i retrieve text messaeges being sent to it?
Leanne

2005-01-25, 4:02 pm

Mr. PhIL wrote:

> Correct. The SIM card only contains 1 message store for SMS messages with
> a fixed number of SMS records. HOWEVER, each record has a status byte
> which indicates what the contents of each record contains:


> |b8|b7|b6|b5|b4|b3|b2|b1|
> 0 0 0 - free space
> x x 1 - used space
> 0 0 1 - message received by MS from network;
> message read
> 0 1 1 - message received by MS from network;
> message to be read
> 1 0 1 - MS originating message;
> message sent to the network
> 1 1 1 - MS originating message; message to be sent


> That being said, it is up to the phone manufacturer as to how these
> records are used. I would suspect (though I could be wrong) that the
> Windows Mobile Smartphone O/S has little control over how this is actually
> internally utilized by the radio device during normal operation(eg
> whether sent SMSs are saved and status byte flipped to 1 0 1 (sent), or
> just flipped to 0 0 0 (free)), just gets presented with the interface to
> the modem device via the RIL interface.


> Hard to say without trying it, but I suspect the SIM Manager API should
> get you through this, depending on how much gore you want to handle.
> SimReadMessage() I would guess would pull any of the storage types, but
> doesn't seem to pass back what the status byte is. If you want the full
> kahuna, use SimReadRecord to pull back the SMS storage file, and parse it
> yourself a la ETSI GSM specification 11.11


> Hope that helps!


> PhIL


> Peter Foot [MVP] wrote:

[color=darkred]
broadcast[color=darkred]
from[color=darkred]
storage[color=darkred]
[color=darkred]


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com