Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to read sms from storage and compare

Status
Not open for further replies.

imranshouket

Junior Member level 1
Joined
Apr 27, 2010
Messages
17
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Location
United Arab Emirates
Activity points
1,378
hi guys,

wanted to read sms from storage and compare to a new incoming message, lets say "FAN ON" is stored in memory area 1. if i send a new message, how to compare the sent message to the already stored message, please send me examples in mikrobasic coding....I am using SIM340z
 

The command to read an SMS is AT+CMGR=n (n is the message location)
This command will return the SMS, you can then store it in a buffer and, compare it to the already stored SMS.
Example:
1- Read the stored SMS (say from location 1)
2- Store it in a buffer called "Original_SMS"
3- Read the newly arrived SMS (say from location 2)
4- Store it in another buffer called "New_SMS"
5- Compare the two string.

Hope this helps.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top