SOLVED - SEE LAST REPLY
Trying to use current model SIMCOM 5320 modem to end email…
Sooo close, but no prize - yet.s
Unfortunately, it’s a bit different to the SIM900, as it implements a newer version of the AT command set.
Is there anyone here that can help, or has experience in what I’m missing?
Should I revert to the ‘old’ AT email commands - or will they become extinct within my lifetime!?
POWER ON - FIRST attempt
AT+CGATT=1 OK
AT+CGDCONT=1, “IP”, “internet”, “0.0.0.0”
AT+CGACT=1, 1 OK
AT+CGPADDR=1 >> +CGPADDR: 1,“10.146.53.134” <<== ASSIGNED IP ADDRESS
AT+CSMTPSSRV=“smtp.optusnet.com.au”, 465, 2
AT+CSMTPSAUTH=0
AT+CSMTPSFROM="a_user@gmail.com"
AT+CSMTPSRCPT=0,0,"b_user@gmail.com", “Controller Report”
AT+CSMTPSSUB=17
Controller Report
AT+CSMTPSBODY=62
internode test
Test message body
on multiple lines
We 22:50
OK+CSMTPSSEND: 8 <<== NETWORK ERROR
Immediately after - make SECOND attempt
AT+CGATT=1 OK
AT+CGDCONT=1, “IP”, “internet”, “0.0.0.0”
AT+CGACT=1, 1 OK
AT+CGPADDR=1 >> +CGPADDR: 1,“0.0.0.0” <<== IP ADDRESS HAS GONE ??!
AT+CSMTPSSRV=“smtp.optusnet.com.au”, 465, 2
AT+CSMTPSAUTH=0
AT+CSMTPSFROM="a_user@gmail.com"
AT+CSMTPSRCPT=0,0,"b_user@gmail.com", “Controller Report”
AT+CSMTPSSUB=17
ControlMate Report
AT+CSMTPSBODY=62
internode test
Test message body
on multiple lines
We 22:53
+CSMTPSSEND: 255 <<== UNKNOWN ERROR
Note the IP address has gone on the second attempt!
I didn’t drop the connection
I tried with optus and gmail servers - same result
Finally power cycle - then a THIRD attempt - result identical to the FIRST
Which makes me think the modem is receiving all the commands - and getting into ‘a mode’ where it won’t accept another ‘send’ until the previous one is sent, or the modem is power cycled (clearing the operational states)
http://www.edaboard.com/thread125473.html seems to suggest we’re doing the right stuff…
The lost IP address may occur because I’m establishing the connection ‘again’ - but I don’t think so.