Edit: Also post the debug output echoed back from the GPRS. When you send a message the module presumably responds with the phone number of the phone it is sending to. This is obviously erroneously triggering the code that detects the incoming call and makes a led state change.
You need to look at the messages coming back from the GPRS. Work out how to differentiate an incoming call from and outgoing one. Then disable the led state change in an outgoing call.
As I’ve said before: We don’t have your GPRS module. Only you can provide that debug output.
Edit: Also post the debug output echoed back from the GPRS. When you send a message the module presumably responds with the phone number of the phone it is sending to. This is obviously erroneously triggering the code that detects the incoming call and makes a led state change.
You need to look at the messages coming back from the GPRS. Work out how to differentiate an incoming call from and outgoing one. Then disable the led state change in an outgoing call.
As I’ve said before: We don’t have your GPRS module. Only you can provide that debug output.
And the when you detect OK or RING received back from the module...
sendingMessage = false;
Also I suspect your delays are tripping you up. I’d suggest you follow my code from the previous thread for only togging the led on the first phone number after RING and avoid delay all together.
I have no idea why when you call are seem to be missing the caller ID from the module. You’ll have to investigate that yourself. Perhaps it only sends the ID if the number has changed? Perhaps you only showed us part of the logs? Up to you to investigate - as I said I don’t have a module...
pcbbc:
And the when you detect OK or RING received back from the module...
sendingMessage = false;
Also I suspect your delays are tripping you up. I’d suggest you follow my code from the previous thread for only togging the led on the first phone number after RING and avoid delay all together.
Now i did as you suggested and input button doesn't trigger led anymore, only problem is when i press the button and make a call after that, i don't get the ''RING'' messages anymore so i can't make bool sendMessage = false again.
I only get inverted question makrs
⸮button pressed
⸮⸮⸮⸮⸮
So i can't change the state of ''bool sendMessage'' since i don't get the RING or OK or anything after i press the button, all i get is another ''⸮" sign for every new beep. I am so close, if i could just make it send "RING" when i call it or anything except inverted question mark it would be awesome.