Hi. I tested my application and have some problem .. My application send email 2 times per day.. and few days (around 12) is all OK.. but in some time stop sending email.. If look to communication then see that , if try send email , then module return ERROR , and long time (around 2 minutes) GSM module do not respond for any AT command .. , after this time (around 2 minutes) .. GSM answer for previously sent AT commands . Then I do this try open GPRS and open any socket. AT#GPRS=1 return IP address and OK , then AT#SD=1,0,80,”www.google.com”,0,0,0 return CONNECT and data from google server.. or try AT#SD=1,0,80,”www.google.com”,0,0,1 return OK.. then close socket AT#SH=1
and after this is possibloe sending email again..
what is problem??
best regards
You first get the ERROR then the module stops communicate or the other way? SEMAIL has a timeout of 170 seconds which can block the module for the said time in case of connection failure.
Hi.
I know about 170sec .. but Gsm module do not respond after ERROR string send ..
If try send email .. then wait up to 170sec. for OK or ERROR ..
But why not send email if GPRS is OK.. and after open socket for google site then send emial working..
regards..
Disable flow control if you use, for a test (AT&K0).
Hi.
I again have problem with my application – send email.
Now I try find problem and do this :
AT+CMEE=2
try send email and module return this :
can not resolve DN
then I manualy open GPRS :
AT#GPRS=1
module answer :
+IP: 10.90.241.145
then open and close socket :
AT#SD=1,0,80,”www.google.com”,0,0,1
OK
AT#SH=1
OK
after this if try send email again .. then all working..
now what is problem and how fix it..
regards..
PS> and can every time if received error while sending email .. open socket to google .. but I thinks this is not good solution..
regards.
And have you checked GPRS registration, context open etc?
.. no .. I don’t know what all AT command I need test ..
but if open GPRS and is possible open socket .. then GPRS working .. and after open socket .. then is possible to send email..
then ??
Hi.
..ehm.. sitll have problem send email after some long time .. but I do this :
if can not send email .. receive error then .. attach to GPRS and open socket to google.com .. and close socket ..
after this try send email again. ..
now Iwill testing it ..
regards.
Try #EMAILD instead of #SEMAIL.
Hi.
my solution by open socket and close .. not working..
if try sedn email send error can not resolve DN .. if try open socket then also return error : can not resolve DN ..
then if not working socket .. emaild also wil not working ..
what is problem .. what is bad .. really I need reset module if got this error??
So looks like the DNS service stops working, in module or in the network. Try AT#QDNS with your host name and other hosts.
A module reset restores the good working situation of the DNS service? What about deregistering from the network and registering back?
Hi.
Problem is so I can test it only if got error..
then I can’t test it right now ..
If reset module then all is OK.. then how to reset setting but not module..
put here all at command what I need to test if will have error again..
and then I try this at command and write here result..
thanks ..
AT#QDNS=”telit.com”
To deregister:
AT+COPS=2
wait until AT+CREG=0
then
AT+COPS=0 to re-register.
I try it..
Regards
Hi.
I try it .. not working..
I try this :
AT#GPRS=1
+IP: 10.90.88.249
OK AT#SD=1,0,80,"www.google.com",0,0,1
ERROR AT#GPRS=0
OK AT
OK AT#GPRS=1
+IP: 10.87.13.52
OK at#qdns="telit.com"
ERROR at+cops=2
OK
+CREG: 0 at+cops=0
OK
+CREG: 2
+CREG: 1 AT#GPRS=1
ERROR at+creg?
+CREG: 1,1
OK AT#GPRS=1
ERROR AT#GPRS=0
OK AT#GPRS=1
+IP: 10.84.95.94
OK at#qdns="telit.com"
ERROR AT#SD=1,0,80,"www.google.com",0,0,1
ERROR AT#GPRS=0
OK at#reboot
OK
#QSS: 2
+CREG: 2
#QSS: 3
+CREG: 1 AT#GPRS=1
+IP: 10.87.112.118
OK AT#SD=1,0,80,"www.google.com",0,0,1
OK AT#SH=1
OK
and after reboot all working good.. again.. then ??
need every time reset module??
regards..
PS: now I add code to reset module .. then again not will have same error.. I can send sms every time if got errror while sending email .. but .. I will see..
Can you check if your issue is just UDP related or IP related in general?
Can you make this test: AT#PING=8.8.8.8 Or can you try to establish a TCP connection with AT#SD, but this time, specify an IP address instead of a DN address in the <IPaddr> field. Like this: AT#SD=1,0,10509,”213.82.124.164″
Do you have this issue with only a particular network operator, or does it happens with any operator? Can you specify what is the SW version on this module? The command is AT+CGMR
Hi all … After some time I can report what I check.. My application send email two time per day .. 6:00 and 18:00 . But some time don’t send email .. try check what is problem but with no result . Then I change my code .. if problem to send email .. then send to me SMS with information that want restart GSM module .. then reset GSM module and try send email again.. but after reset module all is OK and send email. My application work some time and I do not reset it or power OFF .. and see this :
My application reset GSM module but before it send SMS, I store this sms in my cell phone .. and now I see it .. and result is :
if you look at it then you can see so this is not randomly – this is formula .. every 8 days have problem send email.. after reset gsm module .. again all working 8 days ..and again stop working ..
any idea ??
PS: now I don’t do any experiment with module becase all working (if reset every 8 days) .. and firmwae version or testing socket .. etc.. is writed in my previouse post..
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi.
I tested my application and have some problem ..
My application send email 2 times per day.. and few days (around 12) is all OK.. but in some time stop sending email..
If look to communication then see that , if try send email , then module return ERROR , and long time (around 2 minutes) GSM module do not respond for any AT command .. , after this time (around 2 minutes) .. GSM answer for previously sent AT commands . Then I do this try open GPRS and open any socket.
AT#GPRS=1 return IP address and OK ,
then
AT#SD=1,0,80,”www.google.com”,0,0,0
return CONNECT and data from google server..
or try AT#SD=1,0,80,”www.google.com”,0,0,1
return OK..
then close socket AT#SH=1
and after this is possibloe sending email again..
what is problem??
best regards
You first get the ERROR then the module stops communicate or the other way? SEMAIL has a timeout of 170 seconds which can block the module for the said time in case of connection failure.
Hi.
I know about 170sec .. but Gsm module do not respond after ERROR string send ..
If try send email .. then wait up to 170sec. for OK or ERROR ..
But why not send email if GPRS is OK.. and after open socket for google site then send emial working..
regards..
Disable flow control if you use, for a test (AT&K0).
Hi.
I again have problem with my application – send email.
Now I try find problem and do this :
AT+CMEE=2
try send email and module return this :
can not resolve DN
then I manualy open GPRS :
AT#GPRS=1
module answer :
+IP: 10.90.241.145
then open and close socket :
AT#SD=1,0,80,”www.google.com”,0,0,1
OK
AT#SH=1
OK
after this if try send email again .. then all working..
now what is problem and how fix it..
regards..
PS> and can every time if received error while sending email .. open socket to google .. but I thinks this is not good solution..
regards.
And have you checked GPRS registration, context open etc?
.. no .. I don’t know what all AT command I need test ..
but if open GPRS and is possible open socket .. then GPRS working .. and after open socket .. then is possible to send email..
then ??
Hi.
..ehm.. sitll have problem send email after some long time .. but I do this :
if can not send email .. receive error then .. attach to GPRS and open socket to google.com .. and close socket ..
after this try send email again. ..
now Iwill testing it ..
regards.
Try #EMAILD instead of #SEMAIL.
Hi.
my solution by open socket and close .. not working..
if try sedn email send error can not resolve DN .. if try open socket then also return error : can not resolve DN ..
then if not working socket .. emaild also wil not working ..
what is problem .. what is bad .. really I need reset module if got this error??
So looks like the DNS service stops working, in module or in the network. Try AT#QDNS with your host name and other hosts.
A module reset restores the good working situation of the DNS service? What about deregistering from the network and registering back?
Hi.
Problem is so I can test it only if got error..
then I can’t test it right now ..
If reset module then all is OK.. then how to reset setting but not module..
put here all at command what I need to test if will have error again..
and then I try this at command and write here result..
thanks ..
AT#QDNS=”telit.com”
To deregister:
AT+COPS=2
wait until AT+CREG=0
then
AT+COPS=0 to re-register.
I try it..
Regards
Hi.
I try it .. not working..
I try this :
and after reboot all working good.. again.. then ??
need every time reset module??
regards..
PS: now I add code to reset module .. then again not will have same error.. I can send sms every time if got errror while sending email .. but .. I will see..
Can you check if your issue is just UDP related or IP related in general?
Can you make this test:
AT#PING=8.8.8.8
Or can you try to establish a TCP connection with AT#SD, but this time, specify an IP address instead of a DN address in the <IPaddr> field.
Like this:
AT#SD=1,0,10509,”213.82.124.164″
Do you have this issue with only a particular network operator, or does it happens with any operator?
Can you specify what is the SW version on this module? The command is AT+CGMR
Hi all …
After some time I can report what I check..
My application send email two time per day .. 6:00 and 18:00 .
But some time don’t send email .. try check what is problem but with no result .
Then I change my code .. if problem to send email .. then send to me SMS with information that want restart GSM module .. then reset GSM module and try send email again.. but after reset module all is OK and send email. My application work some time and I do not reset it or power OFF .. and see this :
My application reset GSM module but before it send SMS, I store this sms in my cell phone .. and now I see it ..
and result is :
25.12.2015 6:00 – reset GSM
02.01.2016 6:00 – reset GSM
10.01.2016 6:00 – reset GSM
18.01.2016 6:00 – reset GSM
if you look at it then you can see so this is not randomly – this is formula .. every 8 days have problem send email.. after reset gsm module .. again all working 8 days ..and again stop working ..
any idea ??
PS: now I don’t do any experiment with module becase all working (if reset every 8 days) .. and firmwae version or testing socket .. etc.. is writed in my previouse post..
regards.
Please try to test and anwer to Taj.