asifrizvi
Newbie
Hi,
I've completed my Vehicle tracker working with 89c51 + 89c52, where 51 controlled GPS data and its ping 10 keeps sending data to 52's MCU pin 2 and 52 MCU is serving main program including serial communication with siemens s-46 model.
Now I've connected the SIM300DZ and SIM300D none of the working as per my code used for previously siemens s-46 module.
I've done lots of practices with direct TTL connection as well as MAX232 but no luck it wont going to connect at all.
FYI, I'm going to attached my pcb and the part of code where serial communication has occur but if somebody willing to help me out I'll send privately to him personally as well.
Looking for forward for comments and feedback.
I've completed my Vehicle tracker working with 89c51 + 89c52, where 51 controlled GPS data and its ping 10 keeps sending data to 52's MCU pin 2 and 52 MCU is serving main program including serial communication with siemens s-46 model.
Now I've connected the SIM300DZ and SIM300D none of the working as per my code used for previously siemens s-46 module.
I've done lots of practices with direct TTL connection as well as MAX232 but no luck it wont going to connect at all.
FYI, I'm going to attached my pcb and the part of code where serial communication has occur but if somebody willing to help me out I'll send privately to him personally as well.
Looking for forward for comments and feedback.
Code:
;@@@@@@@@@@@@@@@ SECTION1 INITIALIZATION @@@@@@@@@@@@@@@@@@@@@@@
ORG 00H;
LJMP MAIN;
ORG 000BH;
RETI;
ORG 0023H; SERIAL PORT INTERRRUPT
JB TI,TRF;
JB RI,SREC;
TRF: CLR TI;
RETI;
SREC: LCALL SRCOM;
RETI;
ORG 0030H; OLD VALUE 003H
MAIN: MOV TMOD,#22H; INITIALIZE DUAL TIMER MODE FOR 8 BIT FOR TIMER 1 ---- 22H
MOV A,PCON;
SETB ACC.7; CONVERTING THIS BIT WILL EFFECT THE FREQUENCY AS 1/64
MOV PCON,A;
CPL LED1;
MOV IE,#90H; SET INTRUPT ENABLE SERIAL INTERRUPT - 90h
MOV SCON,#52H; SET SEIAL PORT - 52h
MOV TCON,#00H; SET ALL TIMER FLAGS TO 0 ----- #00H
CLR TI;
CLR RI;
MOV TH1,#-3;
MOV TL1,#-3;
MOV TH0,#62H; 62H
MOV TL0,#62H; 62H
MOV 20H,#FFH;
MOV 21H,#FFH; FLAGS FOR CLIP(CALLER id) COMMAND SET
MOV 22H,#FFH; FLAG FOR PH: NUMBER ID
SETB TR1;
RSTM: LCALL DBDEL;
CLR LED2;
LCALL DBDEL;
CLR MPSWT; turn mobil on press poer on
LCALL NDELA;
LCALL NDELB;
SETB MPSWT; release power on
SETB LED2;
LCALL NDELB;
CLR RLY1;
LCALL NDELB;
SETB RLY1;
LCALL NDELA;
LCALL REFER;
LCALL DBDEL;
LCALL NDELB;
LCALL NDELA;
LCALL NDELA;
LCALL LOPF;
LCALL NGCR;
LCALL DBDEL;
MOV R1,#2FH;
KHK1: INC R1;
CJNE R1,#3FH,KHK3;
SJMP MON;
KHK3: CJNE @R1,#'"',KHK1;
INC R1;
MOV A,@R1;
CJNE A,#'1',MON;
CLR NGCLR;
MON: LCALL LOPF;
MOV 76H,#10H;
LCALL LOPF;
SETB RESETM; THIS PIN DEMAND FOR A RESET FROM GPS IC
LJMP TEST;