nikkogta4
Newbie level 3
dsr-11 data cable
I m using K700i for sms controller project.and i m having dsr-11 data cable.
i need schematics to interface sony ericsson dsr-11 data cable to 89s51 using max232.
I m using above connections but it is not working.i m not able to send sms.
please help!!!!!!!!
Added after 1 minutes:
Here is my code::
org 0000h
mov tmod,#20h
mov th1,#-3
mov scon,#50h
setb tr1
load1:mov dptr,#mydata1
acall send
acall delay
acall delay
load2:mov dptr,#mydata2
acall send
acall delay
acall delay
load3:mov dptr,#mydata3
acall send
acall delay
acall delay
load4:mov dptr,#mydata4
acall send
acall delay
acall delay
load5:mov dptr,#mydata5
acall send
acall delay
acall delay
stp:sjmp stp
send: clr a
movc a,@a+dptr
inc dptr
mov sbuf,a
here: jnb ti,here
clr ti
cjne a,#00,send
ret
mydata1:db "at+cpms=",34,"ME",34,13,10,0
mydata2:db "at+cmgf=0",13,10,0
mydata3:db "at+cmgs=16",13,10,0
mydata4:db "079119892270080011970A8189061786900000FF03A0E712",26,10,0
mydata5:db "at+cmgd=1",13,10,0
delay:mov r5,#50
here1:mov r4,#255
here2:mov r3,#255
here3:djnz r3,here3
djnz r4,here2
djnz r5,here1
ret
end
I m using K700i for sms controller project.and i m having dsr-11 data cable.
i need schematics to interface sony ericsson dsr-11 data cable to 89s51 using max232.
I m using above connections but it is not working.i m not able to send sms.
please help!!!!!!!!
Added after 1 minutes:
Here is my code::
org 0000h
mov tmod,#20h
mov th1,#-3
mov scon,#50h
setb tr1
load1:mov dptr,#mydata1
acall send
acall delay
acall delay
load2:mov dptr,#mydata2
acall send
acall delay
acall delay
load3:mov dptr,#mydata3
acall send
acall delay
acall delay
load4:mov dptr,#mydata4
acall send
acall delay
acall delay
load5:mov dptr,#mydata5
acall send
acall delay
acall delay
stp:sjmp stp
send: clr a
movc a,@a+dptr
inc dptr
mov sbuf,a
here: jnb ti,here
clr ti
cjne a,#00,send
ret
mydata1:db "at+cpms=",34,"ME",34,13,10,0
mydata2:db "at+cmgf=0",13,10,0
mydata3:db "at+cmgs=16",13,10,0
mydata4:db "079119892270080011970A8189061786900000FF03A0E712",26,10,0
mydata5:db "at+cmgd=1",13,10,0
delay:mov r5,#50
here1:mov r4,#255
here2:mov r3,#255
here3:djnz r3,here3
djnz r4,here2
djnz r5,here1
ret
end