BALKRISHNA TULSYAN
Junior Member level 3
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.
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);
}