sending 2 SMS back to back

Status
Not open for further replies.

BALKRISHNA TULSYAN

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…