hallooo everyone.. i am new to this site..... currently i am working on a project which uses pic &sim900... but my question is there any way to configure gsm on pic interrupt instead of polling... i mean after every command we have to wait for the response...... pls help...... continuously my gprs connection getting breakdown...any suggestion to make better....
I assume you are interfacing using a UART and hence can use receive interrupts (so characters are not lost if the PIC is busy doing something else)
I tend to collect characters from the modem using recevie interrupts and put them in a buffer - when I have a complete line I then signal the mian control loop, e.g. to check for OK or ERROR or whatever response I am expecting.
i am also doing same manner .. but i am using gsm with gprs... so there is a need to check the response of a every command .... i configured receive interrupt & a timer for polling .... but i dnt think this is a better method... my main application delas with these two.. any suggestionnn how can i avoid polling method...