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,0return CONNECT and data from google server..or try AT#SD=1,0,80,”www.google.com”,0,0,1return OK..then close socket AT#SH=1
and after this is possibloe sending email again..
what is problem??
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.
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..
Disable flow control if you use, for a test (AT&K0).
I again have problem with my application – send email.
Now I try find problem and do this :
try send email and module return this :
can not resolve DN
then I manualy open GPRS :
module answer :
then open and close socket :
after this if try send email again .. then all working..
now what is problem and how fix it..
PS> and can every time if received error while sending email .. open socket to google .. but I thinks this is not good solution..
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..
..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 ..
Try #EMAILD instead of #SEMAIL.
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?
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..
wait until AT+CREG=0
AT+COPS=0 to re-register.
I try it..
I try it .. not working..
I try this :
and after reboot all working good.. again.. then ??
need every time reset module??
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=126.96.36.199Or 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,”188.8.131.52″
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 GSM02.01.2016 6:00 – reset GSM10.01.2016 6:00 – reset GSM18.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..
Please try to test and anwer to Taj.
Hit enter to search or ESC to close
Knowledge Base & Download Zone