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.

SMS using SIM300 and ARDUINO : Help Needed

Status
Not open for further replies.

perikaruppan

Newbie level 3
Joined
Jun 30, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,318
I am from chennai and i am trying to send sms using Arduino using the SIM300 Module done by gsmmodemindia.com, but their webpage is not working and the SIM300 module is same as in this web page... https://www.nskelectronics.com/mini_g..._with_ttl.html

I have connected the RX-RX, TX-TX, 3.3V of Arduino to 3.6V of the Sim Board and GND-GND... i even tried crossing over the RX and TX

and this is my simple program

#include <OneWire.h>
#include <Wire.h>

void setup() {
Wire.begin();
Serial.begin(9600);

delay(1000);
Serial.println("");
Serial.print("AT+CMGF=1"); //set to SMS mode
Serial.print(13,BYTE);
Serial.print(10,BYTE);

delay(1000);
Serial.print("AT+CMGS=\"9884044647\""); //set the phone number (wrapped in double quotes)
Serial.print(13,BYTE); //Carriage return and line feed
Serial.print(10,BYTE);

delay(1000);
Serial.print("hello world");
Serial.print(26,BYTE); //'ctrl+z' or 'SUB'
delay(2000);
Serial.print(13,BYTE); //Carriage return and line feed
Serial.print(10,BYTE);

//Second attempt.......
Serial.flush();
delay(3000);
Serial.println("AT+CMGF=1"); //set to SMS mode

delay(1000);
Serial.println("AT+CMGS=\"9884387877\""); //set the phone number

delay(3000);
Serial.print("hello world2");
Serial.print(26,BYTE); //'ctrl+z' or 'SUB'
Serial.println("");

}

void loop () {
}

////////////////////////////

still no response.. is there something that i am doing wrong? or what can be done to get it going.

I want to transmit my aquarium parameters to my mobile regularly... it is a reef aquarium.

Your help is much appreciated..

thanks

Peri
 

ckshivaram

Advanced Member level 5
Joined
Apr 21, 2008
Messages
5,070
Helped
2,149
Reputation
4,304
Reaction score
2,089
Trophy points
1,393
Location
villingen (Germany) / Bangalore
Activity points
30,094
use +91 and then number in your program...

the webpage you are accessing is wrong.. it is N S K E L E C T R O N I C S and not .com

---------- Post added at 14:57 ---------- Previous post was at 14:56 ----------

check your modem in hyperterminal first for all the functionalities you want to do it with audrino..........
 

perikaruppan

Newbie level 3
Joined
Jun 30, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,318
this is not the GSM module completely for me to use the RS232 cabe toconnect to my system and access hyperterminal.. this is just the SIM module to send and receive SMS's.... so how do i connect it to the computer?

Will try using +91...

the correct web page is MINI GSM MODEM WITH TTL

---------- Post added at 15:24 ---------- Previous post was at 15:20 ----------

+91 also not giving results
 

perikaruppan

Newbie level 3
Joined
Jun 30, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,318
+91 Also didnt work... what can be done? been working on this for the last 1 week... kindly help...
 

ckshivaram

Advanced Member level 5
Joined
Apr 21, 2008
Messages
5,070
Helped
2,149
Reputation
4,304
Reaction score
2,089
Trophy points
1,393
Location
villingen (Germany) / Bangalore
Activity points
30,094
I repeatedly say ... first test using UART and hyperterminal of PC.................


you have tx rx and gnd... connect and verify if it works with PC terminalll.. or else you will spend lot and lot of time in doing trial and error...
 

vishwassharma

Newbie level 4
Joined
Sep 19, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
Did you get the result what you were looking for.. I am having the same problem I get serial communication between SIM300 and arduino till I get Call Ready after that I cannot communicate with GSM modem...
 

perikaruppan

Newbie level 3
Joined
Jun 30, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,318
I have not sorted that out yet.. if you come across a solution kindly let me know.
 

kunal123

Advanced Member level 4
Joined
Jan 24, 2011
Messages
105
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
mumbai
Activity points
1,961
hi perikaruppan & ckshivaram,
recently i worked on send & receive sms using sim300 & arduino, got success in sending sms but still not get success in displaying received sms on serial port, try following procedure to send sms
1. send AT
do{ serial.available()==0 }while(serial.read()!='K');

2. send network strength check cmd
do{ serial.available()==0 }while(serial.read()!='K');

3. send network registration cmd
do{ serial.available()==0 }while(serial.read()!='K');

4. send sms in text mode cmd
do{ serial.available()==0 }while(serial.read()!='K');

5. send AT+CMGS=\"+91 phone number\"
do{ serial.available()==0 }while(serial.read()!='>');
delay(1500);

6. send message u want to transmit
delay(1500);
serial.write(0x1A);

u get sms in ur cell phone msg box from sim300
please help me in displaying received sms by sim300
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top