speedEC
Full Member level 6
- Joined
- Apr 1, 2011
- Messages
- 337
- Helped
- 23
- Reputation
- 46
- Reaction score
- 21
- Trophy points
- 1,298
- Activity points
- 4,324
Dear Sir,
I have solved problem to send SMS Command from PIC18F452 to GSM Modem (SIMCOMM300) using delay (for loop). (MPLAB IDEv8.63 and MPLAB C18v3.37.01 Compiler). Without the delay, Modem gives error. But in PIC16F877A we don't need to use any delay loop between disconnect(ATH) and Send SMS(AT+CMGS) commands. It works fine there without any delay loop. When call received from any phone, the PIC extracts the called Mobile number and checks whether it is Authorized Mobile Number or not. If Authorized Number then switch on the LED and disconnect (ATH) the call and send the (acknowledgement and ) status of the LED to the called (Authorized) Mobile Number thro' SMS. If the call from Unauthorized number it simply Disconnect the Phone.
It correctly disconnect the call and Power-up the LED and correctly sending with the use of delay loop. But after SMS sent it didn't come out from the loop. That is, it didn't process any further commands. I have to restart the PIC. I didn't receive "OK" after SMS sent. I received +CMGS: <Msg Number> and Hangs. I guess this is due to delay loop. Am I right? Can anyone help me to locate the issue?
I have solved problem to send SMS Command from PIC18F452 to GSM Modem (SIMCOMM300) using delay (for loop). (MPLAB IDEv8.63 and MPLAB C18v3.37.01 Compiler). Without the delay, Modem gives error. But in PIC16F877A we don't need to use any delay loop between disconnect(ATH) and Send SMS(AT+CMGS) commands. It works fine there without any delay loop. When call received from any phone, the PIC extracts the called Mobile number and checks whether it is Authorized Mobile Number or not. If Authorized Number then switch on the LED and disconnect (ATH) the call and send the (acknowledgement and ) status of the LED to the called (Authorized) Mobile Number thro' SMS. If the call from Unauthorized number it simply Disconnect the Phone.
It correctly disconnect the call and Power-up the LED and correctly sending with the use of delay loop. But after SMS sent it didn't come out from the loop. That is, it didn't process any further commands. I have to restart the PIC. I didn't receive "OK" after SMS sent. I received +CMGS: <Msg Number> and Hangs. I guess this is due to delay loop. Am I right? Can anyone help me to locate the issue?