> >I have written the following code to receive SMS messages from a phone > >using the Telephony APIs, and it all appears to work except for one > >step: TelSmsSelectStorage never changes the storage from store 0 (the > >SIM card). > > > <SNIP/> > > > > err = TelSmsSelectStorage (smsLibRef, smsPalmTelAppID, > >getAvailStore.storagesP[j], NULL); // this function call doesn't seem to > >properly select the storage! > > > <SNIP/> > > > > Firstly - it would be useful to know what phone you're connecting to and > how - make / model / connection (IR / BT / serial etc)/ drivers (standard > GSM driver, Nokia 6210 driver etc.) For starters it would be useful to know > if the phone has any other SMS storage other than the SIM.
I am connection to an Ericsson T39. I have tried through IR and BT. I have tried with the Standard GSM Driver and the T39 driver. The phone has 2 stores, store 0 (the SIM card) and store 1 (on the phone itself). > Secondly - it would be useful if you told us exactly how your code was > failing. Answering some of the following would be useful... > - Does TelSmsGetAvailableStorage() return sensible values for count and in > the array? Yes, it returns in the first element of the array, store 1 (the phone), and in the second element of the array, store 0. The count returned is 2. > - Does TelSmsSelectStorage() return an error? It does not (returns errNone). > - Does calling TelSmsSelectStorage(smsLibRef, smsPalmTelAppID, > kTelSmsStoragePhone, NULL) work to access the phone's SMS store (assuming it > has one)? This is an API question, and if I understand the description on pg. 1808 of the Palm OS Ref. correctly, it does. > - After TelSmsSelectStorage() is used, do you always get a view on of the > SIM messages - or do you just get empty responses back from the other > stores? I always get a view of the SIM messages. > - After using TelSmsSelectStorage() what does TelSmsGetSelectedStorage() > return? TelSmsGetSelectedStorage returns store 0, even if TelSmsSelectStorage selects store 1. I would say that it is the phone or the driver, but the Palm SMS app works correctly, and funSMS works correctly. There must be something wrong with either this code or the TelSmsSelectStorage API. If it is the API then the Palm SMS app must not use it. I am very curious to fine the answer to this question. trv -- Trevor Lalish-Menagh, Software Engineer iambic, Inc. (www.iambic.com) [EMAIL PROTECTED] (408) 367-1600 x20 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
