@jayanthd I am going to have a field day figuring out your code
but thanks though
I just don't use the code, I try to figure it out and write. Without that I won't learn anything.
I had to ask why "asm clrwdt" so much ? I am not using WDT.
I just needed a parsing routine my friend. I appreciate the effort but I have no idea how to implement your code.
Is it possible to read the modem response shown in realterm images and set flags accordingly. I can use the flag bits to do what I want.
So far there is no SMS reading. The images show what I will be using for now. Just sending.
Oh crap ! I just remembered I would need to parse ">" too to send SMS
Modem Init() Just sends basic commands as this modem does not save any settings I believe.
Needs them on power cycle. That is what I figured.
By the way there no GSM reset.
The modem resets itself during network lost.
And there no connection to modem besides TX and RX.
You see The lcd shows "Registering!" when I issue " AT+COP: 0?"
and it shows ""Detecting!" when I issue " AT+CPIN?"
So it parsing up to the " AT+COP: 0?".
I think the parsing stops at ","
I just don't use the code, I try to figure it out and write. Without that I won't learn anything.
I had to ask why "asm clrwdt" so much ? I am not using WDT.
I just needed a parsing routine my friend. I appreciate the effort but I have no idea how to implement your code.
Is it possible to read the modem response shown in realterm images and set flags accordingly. I can use the flag bits to do what I want.
So far there is no SMS reading. The images show what I will be using for now. Just sending.
Oh crap ! I just remembered I would need to parse ">" too to send SMS
Modem Init() Just sends basic commands as this modem does not save any settings I believe.
Needs them on power cycle. That is what I figured.
By the way there no GSM reset.
The modem resets itself during network lost.
And there no connection to modem besides TX and RX.
I don't think it does .in line 25 it seems that the code break out of the infinite while loop.
CSS:
if(Get_Response() == ERROR) // AT+CPIN?
Lcd_Out(3,9,Const2Ram(String,MSLD10)); // "Detecting!";
Send2Modem(ATC4);
Wait();
if(Get_Response() == GSM_ERROR) // +COPS: 0
Lcd_Out(4,9,Const2Ram(String,MSLD11)); //"Registering!";
if(Get_Response() == GSM_DhiMobile) // +COPS: 0,2,47201
Lcd_Out(4,9,Const2Ram(String,MSLD08)); //"DhiMobile";
if(Get_Response() == GSM_Ooredoo) // +COPS: 0,2,47202
Lcd_Out(4,9,Const2Ram(String,MSLD09)); //"Ooredoo";
and it shows ""Detecting!" when I issue " AT+CPIN?"
So it parsing up to the " AT+COP: 0?".
I think the parsing stops at ","
Last edited: