Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

problem interfacing uC and GSM phone ..pls help....

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive
View previous topic :: View next topic  
Author Message
zent_88

Bascom Member



Joined: 18 Sep 2006
Posts: 10

blank.gif
PostPosted: Thu Oct 05, 2006 5:15 pm    Post subject: problem interfacing uC and GSM phone ..pls help.... Reply with quote

hi..i have some problem when interfacing my gsm phone (sony ericcson T610) with my uC(89C51) the uC was suppose to ask the phone to send a sms to another phone .....i have tested it using hyperterminal ....and it works fine both receive and trasmit ...below are my code:


$regfile = "89C51CC.dat"
$baud = 9600
$crystal = 11059200


Wait 2
Print "AT"

Wait 2
Print Chr(13)

Wait 2
Print "AT+CMGF=0"

Wait 2
Print Chr(13)

Wait 2
Print "AT+CMGS=21"

Wait 2
Print Chr(13)

Wait 2
Print "07910621000010F511000B910621297377F80000AA08E832FB8D2EB3DF" ; Chr(26)

Wait 2

End



is there any problem with my code???for hardware ...i just connect directly pin 3.0(RXD) to trasmit wire of the phone and pin3.1 to receive wire of the phone ...i use a 12Mhz crystal ...pls help ..thx alot .... Crying or Very sad
Back to top
View user's profile
Funci

Bascom Member



Joined: 03 Aug 2005
Posts: 58
Location: CRO

croatia.gif
PostPosted: Fri Oct 06, 2006 4:44 pm    Post subject: Reply with quote

You are saing that you are using 12MHz crystal, but in program there is $crystal=11059200.
Do you understand where is potencially error?
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum