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.

compare the input from UART with string Mikroc

Status
Not open for further replies.

mot1639

Member level 1
Joined
Jul 10, 2011
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,513
HI all

Now i able to see the caller ID from modem through UART without any problem, i read it as data array

now i want to compare this caller ID with a one i save it in pic

please see the code below , i dont now where is the problem .

this is example only

Code:
char *caller[]= {"123456789"};

for (i=0;i<7;i++)
  {
   if (caller_id(i)==caller(i))
LED1=1; 
  }

now what happen if i want see how it write caller data in terminal

Code:
char *data1[]= {"123456789"};
for (i=0;i<7;i++)
  {
   UART1_Write(data1[i]);
  }

what i receive in terminal ::

only this "9AT" ????

please help me , in last what i need to chick the caller id who calling modem with a one i write in the code

regards
 

no i try this

Code:
char *txt1= "84229";
while (1)
  {
    if (UART1_Data_Ready())
    {
    UART1_Read_Text(test,10,45);
     if (strstr(test,txt1) == 0)
{
UART1_Write_Text("Not Found");
}

it still no result , i dont know where is the problem

---------- Post added at 07:54 ---------- Previous post was at 07:53 ----------

no i try this

Code:
char *txt1= "84229";
while (1)
  {
    if (UART1_Data_Ready())
    {
    UART1_Read_Text(test,10,45);
     if (strstr(test,txt1) == 0)
{
UART1_Write_Text("Not Found");
}

it still no result , i dont know where is the problem
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top