How to get event based incoming call

Hello all, can anyone make me know..How to get event based incoming call with Arduino mega2560 + gsm???

i'hv 2 LED's and I want that 1 LED will continuous glow and second will glow(for 4 sec.) whenever incoming call detected. Thanks in advance....

Have you any code you can post?

Are you using some library to connect to the GSM device? Can you post a link to the documentation?

...R

actually, i hvn't code yet .i just want to know how to do it... coz im not able to srch that how to detect incomnig call event. Plz can u tell me how to detect incoming call .. Can i use some interrupt or something else to use?

Nikhat: Can i use some interrupt or something else to use?

YES MAYBE

You have to give us some information to work from if you want advice. For example, what GSM shield are you using?

...R

ok.... i'll use SIM900 gsm. with arduino mega2560..

but i think for interrupt there is need for pin connection to use (attachInterrupt(pin,ISR,Mode)) method to attach interrupt .... then how Will i???

actually, i hvn't code yet .i just want to know how to do it... coz im not able to srch that how to detect incomnig call event. Plz can u tell me how to detect incoming call ..

If you are lost, then maybe you can do some research by reading previous post like below for information.

https://www.google.com/search?ie=UTF-8&oe=UTF-8&q=SIM900&btnG=search&domains=http%3A%2F%2Fforum.arduino.cc&sitesearch=http%3A%2F%2Fforum.arduino.cc&gws_rd=ssl

ohk... thankyou so much zoomkat for link and suggestion.. i'm trying to find out solution from provided link..

i tried but here is nothing about event based incoming call..... can u Plz suggest me any other link or solution.

The SIM 9000 uses a (Hayes) AT command set, supporting automatic and manual call answer. It does not have an 'event driven' mode as such but you should be able to program your own, using the ATM, ATS and ATA commands.

I haven't used a SIM9000 and it's over 10 years since I last programmed an AT modem but this is essentially how you would go about it.

ATM4, verbose enough to include the 'RING' DCE status message. ATS0=0, should disable auto answer. Poll for the 'RING' status message. Send ATA to the DCE, and wait for the 'CONNECT' or failure status message.

Here is a link I googled up, to confirm the sim9000 supports the RING status message. I haven't read the page in any detail but hopefully you will find it useful. http://tronixstuff.com/2014/01/08/tutorial-arduino-and-sim900-gsm-modules/

ok.. thankyou so much for ur reply and suggestion... i have read that that page.i think...i can try to make a check as... if 'RING' prints on serial then do further action..

not able to find-out how to detect on event incoming call... any one has idea how to detect on event, incoming call.

Nikhat: not able to find-out how to detect on event incoming call... any one has idea how to detect on event, incoming call.

Post the code you have tried. Without that you are asking us to be mind readers.

If you have not tried any code then do so. The link that @Matts-UK has given you seems to have a lot of good stuff.

...R