Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 07, 2016, 07:14:14 19:14


Login with username, password and session length


Pages: [1]
Print
Author Topic: receive & read sms  (Read 3143 times)
0 Members and 1 Guest are viewing this topic.
planet69
Newbie
*
Offline Offline

Posts: 26

Thank You
-Given: 5
-Receive: 8


« on: May 02, 2008, 11:37:50 11:37 »

a project involving SIM300 and a PIC processor which both parties communicating via USART.
my immediate thought on to process incoming sms text (SIM300 text mode) is to store each ASCII into a temporary buffer.
But the problem is that a complete sms text (includes time, date, tel. number as well as the message) use up to 80-100 RAM buffer.
that is a lot of RAM space to put aside.  Shocked
any better suggestion?    Smiley
Logged
alspa
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 1
-Receive: 4


« Reply #1 on: May 14, 2008, 07:48:47 07:48 »

Planet69,

If you don't need to process the SMS message then you can just display the message on LCD or pass to commuter via serial port.

If you need to analyse it then you do not need to store the entire message, just scan through the message as it arrives and look for key letters/words.

If you really need to store the sms message than get a serial eeprom. 1Mbit is about $2

Cheers,
Alspa
Logged
ambo
Newbie
*
 Muted
Offline Offline

Posts: 23

Thank You
-Given: 112
-Receive: 6


« Reply #2 on: May 16, 2008, 09:38:30 09:38 »

I'm only a hobbyist and not a good programmer.  I saw alot of sms based mcu projects.  Most of the the ones that uses small ram are simple controllers.  For AT-command based, a full sms text based will use about 211 bytes of ram.  You can also use pdu method instead of ascii to save more ram.  For Nokia phones, you could use fbus protocol.

For me, since I'm only a hobbyist who is not good at programming, I decided to us a pic18f2685 or a pic18f4680.  Lots of ram, eeprom and program space to compensate for my not so efficient coding style.
Logged
ric_vas
Guest
« Reply #3 on: May 16, 2008, 04:29:55 16:29 »

If you have a full USART connection you can try something with RTS/CTS flow control and work with small buffers...of course it will depend on what kind of information you need to extract from the received SMS.

Ric
Logged
Kombinator
Junior Member
**
Offline Offline

Posts: 67

Thank You
-Given: 20
-Receive: 26


« Reply #4 on: May 16, 2008, 08:02:44 20:02 »

First, for sending SMS:
1.create buffer for text.
2 Second buffer for coding to PDU (ASCII from 0 to 127___ 1-bit is not used)
3.Create Structore OCTETS (CSA,Destination Adres,UDL and PDU mesages.
4.Coding all HEX  to ASCII and send to UART ......
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC