Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

sending 2 SMS back to back

Status
Not open for further replies.

BALKRISHNA TULSYAN

Junior Member level 3
Junior Member level 3
Joined
Apr 19, 2013
Messages
29
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
BANGALORE
Activity points
1,522
sending 2 SMS back to back using SIM300 through 8051

Hi all,

I am trying to send 2 SMS back to back using SIM300 through 8051 microcontroller but i observe that the 2nd SMS is not getting delivered. However transmission of 1st SMS is successful.

Surely there is a problem in my code which i am not able to identify. Can anyone guide me and find the mistake which i am doing??
Please find the GSM FUNCTION attached below.

Code:
void GSM_Send2()
{
	TI = 1;
	delay_ms(1000);
	printf("AT+CMGS=\"+91xxxxxxxx\"\r\n");
	delay_ms(3000);
	printf("HELLO1\n");
	delay_ms(1000);
	putchar(0x1A);	
	delay_ms(15000);  //15 second delay

	printf("AT+CMGS=\"+91yyyyyyyy\"\r\n");
	delay_ms(3000);
	printf("HELLO2\n");
	delay_ms(1000);
	putchar(0x1A);	
	delay_ms(5000);	 

}
 

Hi

1) first debugg whether in your controller is sending command , number and massage body correcly i.e check your uart tx reg in debug or at serial window.
2) check at receive pin what youe getting from GSM
3) if everything is fine increase some delay i.e delay_ms(3000); to delay_ms(5000); & delay_ms(1000); to delay_ms(3000);
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top