dancingqueeneng
Member level 1
- Joined
- Oct 26, 2006
- Messages
- 34
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,564
PostPosted: 21 Apr 2007 19:22 Post subject: Re: 8051 + AT commands using Nokia phone
hello guys i have a problem , and it is that i cant find a dlr-3p datacable , so it possible that i just solder wires on the pins of the mobile and connect it directly to my 8051 is this possile if not then how has this man done it(www.serasidis.gr) and also the "tiny planet sms controller" has also done the same why do i need a dlr-3p some say go to www.atrox.com and make your own cable do i really have too.
has any one experimented on this plz answer
penoy_balut said:PostPosted: 21 Apr 2007 19:22 Post subject: Re: 8051 + AT commands using Nokia phone
hello guys i have a problem , and it is that i cant find a dlr-3p datacable , so it possible that i just solder wires on the pins of the mobile and connect it directly to my 8051 is this possile if not then how has this man done it(www.serasidis.gr) and also the "tiny planet sms controller" has also done the same why do i need a dlr-3p some say go to www.atrox.com and make your own cable do i really have too.
has any one experimented on this plz answer
if your using 6310 you can connect rx/tx directly to the micro controller tx/rx but still need the PIC from www.atrox.com (if AT commands)
in this project i used 3310 so there's no need for dlr-3p cable , but it's FBUS not AT commands, take a look
https://www.youtube.com/watch?v=jWnUlMEH25M
dancingqueeneng said:As I might edit the program which I have written but ROM cannot be overwrote, or shall I place the program into external RAM?
.
org 00h
sjmp start
org 30h
start:mov r0,#30h //dedicated for lon latt info
clr p1.0
acall gpslog
acall dly_4min
acall dly_4min
mov r0,#30h
acall gpslog
acall dly_4min
setb p1.0
acall dly_4min
acall dly_4min
mov r0,#30h
acall smssend
acall dly_4min
acall dly_4min
sjmp start
gpslog: mov tmod,#20h //decide timer n baud rate
mov th1,#0fdh
mov scon,#50h
setb tr1
decode: acall recv
cjne a,#'$',decode
acall recv
cjne a,#'G',decode
acall recv
cjne a,#'P',decode
acall recv
cjne a,#'R',decode
acall recv
cjne a,#'M',decode
acall recv
cjne a,#'C',decode
acall recv
cjne a,#',',decode
mov r1,#2
throw: acall discard
djnz r1,throw
savelatt:acall recv
mov @r0,a
inc r0
cjne a,#',',savelatt
acall discard
savelong:acall recv
mov @r0,a
inc r0
cjne a,#',',savelong
acall discard
savespeed:acall recv
mov @r0,a
inc r0
cjne a,#',',savespeed
acall discard
acall discard
// sjmp decode
ret
smssend: mov tmod,#20h //decide timer n baud rate
mov th1,#0fdh
mov scon,#50h
setb tr1
prv: mov dptr,#mess1 // sendinding messages to the cell
acall trans
prv1: mov dptr,#mess2
acall dly_4min
acall trans
prv3: mov dptr,#mess3
acall trans
wait: acall recv
cjne a,#'>',wait
mov r1,#3
back: clr a //send 20 byte which contain altitude
mov a,@r0 //longitude info
acall sendcom
inc r0
cjne a,#',',back
djnz r1,back
mov a,#1Ah //ctrl z.....
acall sendcom
ret
trans: clr a
movc a,@a+dptr
jz last
acall sendcom
inc dptr
sjmp trans
last: ret
sendcom:mov sbuf,a
here: jnb ti,here
clr ti
ret
recv: jnb ri,recv
mov a,sbuf
clr ri
ret
discard:acall recv
cjne a,#',',discard
ret
dly_4min: mov r2,#20
h3: mov r3,#199
h2: mov r4,#230
h1: djnz r4,h1
djnz r3,h2
djnz r2,h3
ret
org 700h
mess1: db 'AT',0dh,00
mess2: db 'AT+CMGF=1',0dh,00
mess3: db 'AT+CMGS="+919821869189"',0dh,00
end
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?