32
of 76
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon
SMS sim900 MikroC
TEP , The Engineering Projects , Calender Question: 03-Mar-2017
TEP , The Engineering Projects , Category In: PIC Microcontroller Projects
Hello everyone,

I'm trying to send a SMS using easypic7 and sim900 gsm module,

1- how to send ctrl+z through mikroelektronika usart terminal for testing,

2- this code not working, even though i receive in the end OK from the sim900, but no sms received from the other phone

/////////////////////
UART2_Write_Text(" AT\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CPIN = xxxx\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CMGF = 1\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CMGS=\"+41774004311\"\r\n");
delay_ms(500);
UART2_Write(10);
UART2_Write(13);
UART2_Write_text(" ba7abek Hasan test0\r\n");
UART2_Write(26); // Send CTRL + Z as end character

if (UART2_Data_Ready() == 1) {
// if data is received
UART2_Read_Text(rx2buff, "OK", 20); // reads text until 'OK' is found
UART1_Write_Text("msg SENT\r\n"); }
////////////////////////////

I write two times new line, is it ok, or not,
did any1 used it succefully AT command to send a SMS,

Greetings, Thanks in advance,
TEP , The Engineering Projects , Icon Answer: 1 TEP , The Engineering Projects , Icon Views: 150 TEP , The Engineering Projects , Icon Followers: 85
Small Bio
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon

RE:

SMS sim900 MikroC
TEP , The Engineering Projects , Calender Comment: 03-Mar-2017
TEP , The Engineering Projects , Category In: PIC Microcontroller Projects
[quote=Brown post_id=246 time=1488547003 user_id=84] Hello everyone,

I'm trying to send a SMS using easypic7 and sim900 gsm module,

1- how to send ctrl+z through mikroelektronika usart terminal for testing,

2- this code not working, even though i receive in the end OK from the sim900, but no sms received from the other phone

/////////////////////
UART2_Write_Text(" AT\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CPIN = xxxx\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CMGF = 1\r\n");
UART2_Write(10);
UART2_Write(13);
Delay_ms(1000);

UART2_Write_Text(" AT+CMGS=\"+41774004311\"\r\n");
delay_ms(500);
UART2_Write(10);
UART2_Write(13);
UART2_Write_text(" ba7abek Hasan test0\r\n");
UART2_Write(26); // Send CTRL + Z as end character

if (UART2_Data_Ready() == 1) {
// if data is received
UART2_Read_Text(rx2buff, "OK", 20); // reads text until 'OK' is found
UART1_Write_Text("msg SENT\r\n"); }
////////////////////////////

I write two times new line, is it ok, or not,
did any1 used it succefully AT command to send a SMS,

Greetings, Thanks in advance, [/quote]
your concerned post:
[url=http://www.theengineeringprojects.com/2016/08/receive-sms-commands-using-sim900-pic-microcontroller.html]RECEIVE SMS WITH SIM900 & PIC[/url]
TEP , The Engineering Projects , Tick Correct Answer
Comment Bio
TEP , The Engineering Projects , Tags
PLC
Robot
STM32
Arduino
AI
ESP32
Ladder Logic
PLC Projects
Programming
Communicates STM32
PLC Projects
Communicates PLC
Font Style
Alignment
Indenting and Lists
Insert Media
Insert Items

Want to leave an answer!

Word Count :0 Draft Saved at 12:42 am.