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.

8051 sending AT command

Status
Not open for further replies.

Hafeez Anwar

Newbie level 5
Joined
May 8, 2007
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,344
Hi.
I am interfacing Mobile(C100) with 8051 via serial port using AT commands. I have written the code for it and I am just sending a simple command AT to the 8051. But the mobile doesn't give me any response. or it is giving me response but I am not able to see it. Plz help me if you have got any idea about it or at least give me some reference regarding this topic. here is the code.

#include<reg51.h>
void send(unsigned char);
void main(void)
{
unsigned char m;
TMOD = 0X20;
TH1=0xFD;
SCON = 0x50;
TR1 = 1;
send('A');
send('T');
send('\r'); // for "enter" button
while(RI==0);
m = SBUF;
P1 = m;
RI = 0;
}
void send(unsigned char a)
{
SBUF = a;
while(TI==0);
TI=0;

}
 

does your cell support AT commands??
anyway u should first interface microcontroller with the computer serial port.
then consider computer as mobile.
then if u recieve AT,enter in hyper terminal it means your program and microcontroller are working well and problem is in your cellphone, otherwise check your microcontroller.program is ok.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top