Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Marshall Brown
07/14/11 16:57
Read: 2597 times
New Zealand

#182861 - SMS - messaging - TEXT or PDU mode?
Hi all

I have a cellular modem that supports text and pdu format SMS messages, I have read on the internet that the PDU format is more commonly implemented and I have gone down this track and have a working send and receive system with all the appropriate error checking etc on my NXP P89LPC925. while this is all well and good, I have under estimated the amount of RAM that the whole process takes. (121bytes in Data and 110bytes in Xdata) this includes a 50Byte message buffer, and a 100Byte UART buffer

Now I have the issue where I can't do anything useful with the SMS, as it uses all the RAM to buffer and parse the messages (and even then only very short ones).

Would I be better off going to text mode on the modem? I personally can't see how, as I still need to read all the messages in first. but I maybe able to process the text on the fly rather than having to buffer it and then decode it.

Any ideas?

I need to implement I2C on the micro as well, and this also requires a little bit of RAM.

I found a good application note. "AVR323: Interfacing GSM modems" on the atmel website.

I modified the code slightly to use unsigned chars, and also a full state machine for the modem responses, as this gets rid of while(I wait for a timeout) loop in the code, and allows my watchdog to keep operating.



List of 8 messages in thread
SMS - messaging - TEXT or PDU mode?      Marshall Brown      07/14/11 16:57      
   Don't just beleive everything you see on the interweb!      Andy Neil      07/14/11 18:47      
      Rod for my own back - agreed      Marshall Brown      07/14/11 18:52      
         Go for simplest solution if you can      Per Westermark      07/15/11 02:33      
            RE: Looking at cents for the hardware costs      Andy Neil      07/15/11 04:11      
   Clickable Link - and associated download      Andy Neil      07/15/11 02:22      
      SMS      Raj Nambiar      09/03/11 00:08      
         RE: SMS - proviso      Andy Neil      09/03/11 02:54      

Back to Subject List