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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/14/11 22:57
Read: times


 
#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. www.atmel.com/dyn/resources/prod_documents/doc8016.pdf

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.

Regards

Marshall


List of 8 messages in thread
TopicAuthorDate
SMS - messaging - TEXT or PDU mode?            01/01/70 00:00      
   Don't just beleive everything you see on the interweb!            01/01/70 00:00      
      Rod for my own back - agreed            01/01/70 00:00      
         Go for simplest solution if you can            01/01/70 00:00      
            RE: Looking at cents for the hardware costs            01/01/70 00:00      
   Clickable Link - and associated download            01/01/70 00:00      
      SMS            01/01/70 00:00      
         RE: SMS - proviso            01/01/70 00:00      

Back to Subject List