Discussion in "Project Help" started by    mr_sheikh    Jun 17, 2007.
Sun Jun 17 2007, 10:59 pm
#1
I want my 8051 controller to send the AT Command to my T-65 Ericsson Mobile connected to it. The Hardware is tested having no problem.

The command to dial the phone is "ATD 123456789;" and the enter key
I thought i have to use carriage return (0AH) and Line feed (0DH) at the end. The code works fine on pinacle's UART window but my mobile doesnt respond to the controller.
Although when i check the responce of controller on Hyper Terminal, it is ok

I dont know where the problem lies..

My Code id :

ORG 0000H ;Power up
MAIN:
MOV TMOD,#20H ;Timer 1 in mode 2
MOV TH1,#-3 ;9600 baud rate (FDH)
SETB TR1 ;Start timer 1
MOV SCON,#50H ;8-bit, 1 stop bit, REN enabled
DIAL:
MOV DPTR,#PhoneNum
ACALL SendString
HangUp:
SJMP HangUp

PhoneNum:
DB "ATD 123456789;",0AH,0DH,00h
SendIt:
ACALL SEND
SendString:
CLR A
MOVC A,@A+DPTR
INC DPTR
JNZ SendIt
RET

SEND:
MOV SBUF,A ;Load the data
HERE:
JNB TI,HERE ;Stay until last bit sent
CLR TI ;Get ready for next character
RET

END
Sun Jun 17 2007, 11:48 pm
#2
Hi, well i checked your code, so far i think there is no problem except... the AT command you are sending. If possible send me the AT command set, because i am not sure about the command you are sending and i tried searching but couldn't find the command set.

And also attach the circuit diagram you are using, are you using a datacable to connect to phone or directly connecting (RX,TX,GND) with controller. it will be good to send the circuit diagram and command set. so i will get a clear picture regarding what you are doing.
waiting for your reply.
Mon Jun 18 2007, 02:51 am
#3
Schematics

Mon Jun 18 2007, 04:12 am
#4
schematic is fine.. try your program again with only 0DH at the end not 0D and 0A ok?
and tell me the results...
please attach the AT command set for T-65 mobile
Wed Jun 20 2007, 06:20 pm
#5
first send only AT command and wait for the reply "ok"
u can also check the mobile by sending the same command by hyper terminal for the mobile is responding or not.
Thu Jul 26 2007, 06:21 am
#6
hi plz help me...i'm doing my final project to send sms using microcontroller 89C51but i have problem to send AT command to Handphone (i use siemens C55) to send SMS......please help if there is sombody have source code to send AT command to hanphone in Assembler.....plez

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardgar
Sat Apr 20 2024, 11:05 am
AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am