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.

interface atmega with gps and GSM

Status
Not open for further replies.

rahulsharma2009

Newbie level 2
Joined
Jul 5, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,296
Hi
I need to interface GSM and GPS using atmega.I am using sim300.
Please give me some sample code for it I have no idea about it.
also tell me that is there is a need of using AT command for GSM interfacing.
or also please tell me how to send message using microcontroller.
(If possible please send me the sample code for it.).
my mail is
rahulsharma2009@gmail.com
 

HI,

Asking too many questions without giving detailed information. First of all which device you are using to interface with microcontroller, i mean is it a serial modem?, usb modem?...

If there is serial modem, You need to develop Uart module of controller and then send AT commands using the UART. In google if you will type at commands for sim300 and then press enter you will get bulk of pdfs n documents regarding the AT commands. Follow those documents, send appropriate commands and get result.

For example, to send message,

AT+cmgf=1
and
at+dmgs="(mobile no)" <cr> <lf>
> type msg --then press ctrl+Z

Thats it..
Hope this helps

NIKS
 

Thanks for your reply.
I want to interface this by using serial interface.also I am using sim300 module (consist of GPS and GSM).
if u have an information regarding AT command then kindly let us know and we are using atmega16L.
 

I Think SIM300 Is GPRS/GSM modem it dosen't have GPS.Isin't it?
 

Yes you r right. Sim300 is just a GPRS/GSM modem. It has no GPS .

---------- Post added at 21:27 ---------- Previous post was at 21:17 ----------

you have to connect your MCU with sim300 using USART.

For sending SMS through sim300

send these commands in sequence through UART Transmitter.
//Attention command
AT'\r'
ATE0'\r'
//Sellect text data mode
AT+CMGF=1'\r'
//check if SMS mode is ready or not
AT+CMGS=?'\r'
//Sending sms
AT+CMGS="Cell number '\r' "
{Body of SMS}
//send character '26' which act as ctrl+z
//reading sms at n index
AT+CMGR=n '\r'
//Deleting SMS at index n
AT+CMGD=n '\r'

If you need more please read the AT Command set for sim300.

For any query contact me. i am also doing the similar project. so it will be my pleasure if i help you.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top