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.

[SOLVED] SMS through SIM300 GSM modem using hyperterminal

Status
Not open for further replies.

Santoshhh

Newbie level 6
Joined
Jul 5, 2012
Messages
13
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,401
I bought a SIM300 GSM modem from SIMCOM ltd. I need to send an SMS from the MODEM (after being interfaced with my PC by USB2serial converter) to a number. I used hyperterminal. I also used the following AT commands.
I typed "AT" in the main window. A response "OK" was returned from the GSM modem.
I then typed "AT+CPIN?" in the main window. The response was "+CPIN: READY".
Then I typed "AT+CMGF=1". A response "OK" was returned.
I then typed AT+CMGS="009779849623395". A response ">" was returned. Then I typed my message, after that I pressed Cltr+Z to send the message.
A response "+CMGS:251 OK" was returned.
I was supposed to get an SMS in the above number but I was disappointed. This happened for 5 times. I checked for balance on my phone putting the same SIM card. The nominal balance in the SIM card was deducted for sending the SMS but I didnt get one.
What may be the reason? If you are aware about it, please help.
 

Is 00 before the number necessary?
 

'+' did not work. So, I put 0 and it worked. I mean SMS was sent but not received. The number should have been '09779849623395'. sorry for the mistake. :(

- - - Updated - - -

Is 00 before the number necessary?

The number should have been '09779849623395'. sorry for the mistake. :(
 

Hi

In my point of view use this following commands
1) AT+CSQ (for signal strength)
0,250
2) AT+CREG? (For sim registration)
0,1 = Local network
0,5 = Roaming Network
3) AT+CMGF =1 (For entering the text mode)
OK
4) AT+CMGS="phone number" (if its local no need of 0 and + initiation before the no)
> hello
>(CTL+Z)
ok

This will send the sms to the particular mobile no, or else try to check the gsm modem....
 
Hai,
If your country code is 977, then try this also.
+9779849623395
or
09849623395
 
Hi

In my point of view use this following commands
1) AT+CSQ (for signal strength)
0,250
2) AT+CREG? (For sim registration)
0,1 = Local network
0,5 = Roaming Network
3) AT+CMGF =1 (For entering the text mode)
OK
4) AT+CMGS="phone number" (if its local no need of 0 and + initiation before the no)
> hello
>(CTL+Z)
ok

This will send the sms to the particular mobile no, or else try to check the gsm modem....

It worked. Thank you so much.

- - - Updated - - -

Hi

In my point of view use this following commands
1) AT+CSQ (for signal strength)
0,250
2) AT+CREG? (For sim registration)
0,1 = Local network
0,5 = Roaming Network
3) AT+CMGF =1 (For entering the text mode)
OK
4) AT+CMGS="phone number" (if its local no need of 0 and + initiation before the no)
> hello
>(CTL+Z)
ok

This will send the sms to the particular mobile no, or else try to check the gsm modem....

It worked. Thank you so much.
 

hi everyone,
how can i test my gsm module SIM300 on hyperterminal, how can i display message on serial terminal or lcd, received by gsm module, can i add add multiple sender number & also identify his number, please help me.

thanks
 

hi avinesh,
i tried ur similar steps on hyperterminal i able to send message, but i tried same steps in controller programe, unable to send message, can u help me please

thanks
 

hi avinesh,
i tried ur similar steps on hyperterminal i able to send message, but i tried same steps in controller programe, unable to send message, can u help me please

thanks

Post your code to find out the problem
 

Hi Kunal

Post your code and schematic diagram, and what are u trying to implement jus explain it clearly..
 

hi,
this is my arduino code to send message using sim300

void setup()
{
delay(5000); // give the GSM module time to initialise, locate network etc.
// this delay time varies. Use example 26.1 sketch to measure the amount of time from board reset to SIND: 4, then add five seconds just in case
Serial.print("SIM300 gsm module testing \n");

/* Serial.print("AT");
Serial.print('\n');
Serial.print(Serial.read());
Serial.print('\n');
Serial.print('\n');*/

// delay(1000);
Serial.print("AT+CSQ");
Serial.println(13,HEX);
Serial.println(10,HEX);
Serial.print(Serial.read());
Serial.print('\n');
Serial.print('\n');

Serial.print("AT+CREG=?");
Serial.println(13,HEX);
Serial.println(10,HEX);
Serial.print(Serial.read());
Serial.print('\n');
Serial.print('\n');
}

void loop()
{
Serial.print("AT+CMGF=1");
Serial.println(13,HEX);
Serial.println(10,HEX);
Serial.print(Serial.read());
Serial.print('\n');
Serial.print('\n');

// delay(1000);
Serial.print("AT+CMGS=+917738995895");
Serial.println(13,HEX);
Serial.println(10,HEX);
Serial.print("HELLO");
Serial.println(26,HEX);
delay(2000);
Serial.print(Serial.read());
}

thanks
 

Hai,
Are you able to read response from modem? Or do you have problem only in sending message? After sending
AT+CMGS=+917738995895
wait for prompt and then send your message.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top