Discussion in "Embedded GSM Development" started by    Help    Oct 14, 2017.
Sat Oct 14 2017, 02:28 AM
#1
Dear all,

AT
// OK

// 3.1  Bearer profile
// Configure bearer profile 1
AT+SAPBR=3,1,"Contype","GPRS"
// OK

// To open a GPRS context.
AT+SAPBR=3,1,"APN","3Gprepaid"
// OK

// To query the GPRS context
AT+SAPBR=1,1
// OK

// To close a GPRS context.
AT+SAPBR=2,1
// +SAPBR: 1,1,"10.168.207.36"

// OK


// 3.5 Retrieve the Email
// Set parameters of Email 
AT+EMAILCID=1
// OK

AT+EMAILTO=30
// OK

AT+EMAILSSL=1
// OK


// Set POP3 server and account 
AT+POP3SRV="pop.gmail.com","[email protected]","xxx",995
// OK

// Log in POP3 server
AT+POP3IN
// OK

// +POP3IN: 1

// Get Email number and total size 
AT+POP3NUM
// OK
// +POP3NUM: 1,267,7430098

// Get the specific Email’s size
AT+POP3LIST=1 
// OK
// +POP3LIST: 1,1,6900

// Retrieve the specific Email
AT+POP3CMD=4,1
// OK
// +POP3CMD: 1
// +POP3READ: 3,2254

// Get the Email content
AT+POP3READ=1460
// +POP3READ: 1,1460

AT+POP3READ=1460
// +POP3READ: 1,1460

// The Email’s content is read completely
AT+POP3READ=1460
// +POP3READ: 1,1460

// Log out POP3 SERVER 
AT+POP3OUT
// OK

// +POP3OUT: 1


https://cdn-shop.adafruit.com/datasheets/sim800_series_email_application_note_v1.00.pdf
https://www.scribd.com/document/325717874/SIM800-Series-AT-Command-Manual-V1-10

I'm trying to retrieve the email from gmail. I manage to retrieve the email but i couldn't find that email in my inbox and the strange thing is try to trace back the email in inbox record it doesn't exist. Whenever i repeatedly call the command again it retrieve out difference email, seems like it retrieved the email randomly.

Is it possible to retrieve that particular email that we pointed?

Thank you..


[ Edited Sat Oct 14 2017, 03:13 AM ]
Sat Oct 14 2017, 08:06 PM
#2
What happens if you ask for the full email
ie
AT+POP3READ=3,2254
I would have expected the text of the email to appear on screen, as it is received
so I assume it is not being sent.
Try another POP3 server, it may be that gmail does not allow you
to download like this. Many web based providers don't.
 Help like this.
Sun Oct 15 2017, 03:21 AM
#3
AT+POP3READ=?
+POP3READ: (1-1460)

OK
AT+POP3READ=3,2254
+CME ERROR: operation not allowed


Do you know which POP3 server that i can try?

Gmail do allow me to retrieve the email. Sometime lucky would retrieve exactly the mail that really exist in Inbox. The mail doesn't exist in the inbox but manage to find it by using search engine. These mail that exist by search engine where i never seen and get notice before that. Is it this is more to gmail problem?

May i know which AT command is for call specific email? is it
AT+POP3CMD=4,1
1 is the 1st email?

Thank you,.

Sun Oct 15 2017, 07:29 PM
#4
According to this, gmail should support POP3.
https://support.google.com/mail/answer/7104828?hl=en
Did you redirect your mail as in
"Step 2: Set up POP" ?

>May i know which AT command is for call specific email? is it
>AT+POP3CMD=4,1
>1 is the 1st email?

There are no standard AT commands to deal with POP3 as it was not part
of the original AT command set.
You are working with a set of command made up by SIMCOM.
Every model will be different, even different software versions of the same
model could be different.
For your modem, as I understand it, yes, that should retrieve the first email.


[ Edited Mon Oct 16 2017, 01:58 AM ]

Get Social

Information

Powered by e107 Forum System

Conversation

ExperimenterUK
Sat Sep 29 2018, 06:28 PM
Please post questions in the forum.
Sat Sep 29 2018, 11:26 AM
Ashfaq Ch
hi i have some AT89C51RC microcontrollers already programed. some one help us to how to download from AT89C51RC and after study and edit all corractions reload to AT89C51RC controller
shshistiem
Wed Sep 12 2018, 10:58 PM
hii!! some1 please let me know how i ll get rfid code to 8051 by WEIGAND mode
DrNossberg
Tue Sep 11 2018, 08:09 PM
is there anyone here?
Mon Aug 27 2018, 07:30 AM
bun
Hello everyone!
Sat Jul 21 2018, 06:21 AM
Dibakar Bhanja Chowdhury
By using a 555 timer how can I expand the range of the mobile phone jammer? Please reply me asap
Sun May 20 2018, 10:01 AM
justinb
how to write and execute a program that read the keypad button and display the number on 7 segment on intel8051 at89s52 in assembly language?
Thu May 17 2018, 06:36 AM
HAMZA TAJ
sir iwant to ask about controller of three phase supply by using back to back thyristor instead of triac....will u give me some guideline?
Sat Apr 28 2018, 12:54 PM
ashutosh jain
IR Remote Switch using TV remote (RC5 Protocol) is not working properly. opp1 & opp2 is in problem.plz help
ExperimenterUK
Fri Apr 27 2018, 08:09 PM
@kaiserslautern Post in forum

Downloads

Comments

PCBindex
Fri Sep 14 2018, 02:45 AM
sirkit
Thu Sep 13 2018, 04:46 AM
shshistiem
Wed Sep 12 2018, 10:36 PM
DrNossberg
Tue Sep 11 2018, 03:25 PM
ranjanvh
Thu Sep 06 2018, 02:28 PM
rbbhamre
Tue Sep 04 2018, 06:15 PM
Tressie
Sun Sep 02 2018, 02:20 PM
Sudhansudeep
Fri Aug 31 2018, 08:26 AM

Online

Guests: 35, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38006
Newest member: PCBindex
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Sep 13 2018, 08:39 PM
First of all, by reading your reply, I abandoned m...
DrNossberg Avatar
Posted By DrNossberg
Thu Sep 13 2018, 03:49 PM
Hi, thanks you for your reply ^^ First of all, by ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Sep 12 2018, 12:12 AM
HiThere are several issues here.The original 8051 ...
DrNossberg Avatar
Posted By DrNossberg
Tue Sep 11 2018, 08:08 PM
Hello everybody!First of all let me explain some s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Sep 07 2018, 05:08 AM
The compiler thinks the micro doesn't have enough...
Sudhansudeep Avatar
Posted By Sudhansudeep
Fri Sep 07 2018, 02:59 AM
this is the build output message
Sudhansudeep Avatar
Posted By Sudhansudeep
Fri Sep 07 2018, 01:38 AM
Change the mobile number as [number removed] in t...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Sep 06 2018, 08:56 PM
I don't know what the problem is, I get no errors....
Sudhansudeep Avatar
Posted By Sudhansudeep
Thu Sep 06 2018, 01:12 PM
the code is Attachment ...
Sudhansudeep Avatar
Posted By Sudhansudeep
Thu Sep 06 2018, 12:48 PM
the code is same as u sent me for 16 chars