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.

SIM 300 SMS comparsion with and string

Status
Not open for further replies.

Roopeshurs

Newbie level 3
Joined
Aug 9, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
bangalore
Activity points
1,300
Hello,

I have interfaced my GSM module(SIM 300) with PIC 16F877A microcontroller.Now i want to compare the message recevied with some string and if it matches then i have to perform the specific operation.

Anybody Please help me how to compare the message with a string or charcter...

Thanks inadvance....
 

Well, I've worked with pic 16F some time ago, and I used de mikroC compiler for PIC. with this, I was able to program in C, and then, mickroC "translate" the code to PIC format.

With C, everything gets easier! I guess what you want is some kind this:

Code:
if (strncmp(buffer_receive, "something", 9) == 0)
{
	/*OK - if the string matches*/
        /* do some code here*/
}
else
{
       /*NOT OK - if the string don't matches*/
      /* do something else.*/
}

If you're interested, here is the link mikroC PRO for PIC - C compiler for PIC microcontroller - mikroElektronika
It's not free, but google is your friend ;-)

Hope it helps!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top