CN104581653A - Method for receiving E-mails by using AT command - Google Patents

Method for receiving E-mails by using AT command Download PDF

Info

Publication number
CN104581653A
CN104581653A CN201410740565.3A CN201410740565A CN104581653A CN 104581653 A CN104581653 A CN 104581653A CN 201410740565 A CN201410740565 A CN 201410740565A CN 104581653 A CN104581653 A CN 104581653A
Authority
CN
China
Prior art keywords
order
email
mail
utilize
receive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410740565.3A
Other languages
Chinese (zh)
Inventor
许宁
康元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd
Original Assignee
SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd filed Critical SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd
Priority to CN201410740565.3A priority Critical patent/CN104581653A/en
Publication of CN104581653A publication Critical patent/CN104581653A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for receiving E-Mails by using an AT command. The method for receiving E-Mails by using the AT command comprises the following steps: configuring an AT command used for receiving E-mails in a wireless communication module, wherein a POP3/POP protocol stack is internally built in the wireless communication module; setting basic login information of the E-mails in the wireless communication module through the AT command; calling Socket interface of the POP3/POP protocol stack inside the wireless communication module to built connection with a mail server by using the AT command, and receiving the E-mails from the mail server; after wireless communication module receives the E-mails, using the AT command to read the E-mails and obtain the date content of the E-mails.

Description

AT order is utilized to receive the method for Email
Technical field
The present invention relates to wireless communication technology, especially, relate to a kind of method utilizing AT order to receive Email.
Background technology
At present, in built-in field, some equipment can be configured with wireless communication module to realize remote control function, technical staff can send remote control command by special remote control tool to equipment, and equipment can receive remote control command by wireless communication module, and execution certain corresponding with this control command in ground operates.
Email (Electronic Mail, Email) be the office communications instrument that people's routine work is commonly used, technical staff can frequently utilize office computer to send and receive e-mail in the course of the work, therefore, if technical staff can send remote control command by Email to equipment, then the remote control operation of equipment will be very simple and convenient.There is the internal memory of the wireless communication module of some equipment configurations less at present, such as the general internal memory as Generation Mobile Telecommunication System module (being commonly called as 2G module) only has a few M, therefore cannot directly adopt the mail reception mode of computer or smart mobile phone to carry out the reception of Email.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of method utilizing AT order to receive Email.
The method utilizing AT order to receive Email provided by the invention, comprising: be configured for the AT order receiving Email at wireless communication module, wherein said wireless communication module is built-in with POP3/POP protocol stack; The basic log-on message of Email is set at described wireless communication module by AT order; Utilize the Socket interface of the POP3/POP protocol stack of wireless communication module inside described in AT command calls and mail server to connect, and receive Email from described mail server; After described wireless communication module receives described Email, utilize AT order to read described Email and get e-mail data content.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, described mail server is POP3/POP server.
AT order is utilized to receive in a kind of preferred embodiment of the method for Email provided by the invention, the described AT order for receiving Email comprises the AT order of the AT order of the first type, the AT order of the second type and the third type, the AT order of the first type wherein said is the AT order that basic log-on message arranged and logged in mail, the AT order of described the second type is the AT order corresponding with the order of POP3 standard agreement, and the AT order of the third type described is the AT order of the user's application interface taken out according to POP3 standard agreement.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, the AT order of the first type described comprise AT order for arranging mail server information, for arrange user account and password AT order, for logging in the AT order of mail and the AT order for closing mail.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, the AT order of described the second type has relation one to one with the order of POP3 standard agreement respectively.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, the AT order of described the second type comprises the AT order corresponding respectively with the STAT order of POP3 agreement, UIDL order, LIST order, RETR order, DELE order, RSET order, TOP order, NOOP order and QUIT order.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, the AT order of the third type described comprises the AT order being respectively used to the mail header, mail text message, accessory information, annex name information, e-mail sender's information, mail CC information and the mail recipient's information that obtain between all mail header, designated with numeral.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, the described AT order for receiving Email also comprises the AT order for checking debug information.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, the described AT order for receiving Email also comprises the AT order supporting to obtain original data stream.
Utilize AT order to receive in a kind of preferred embodiment of the method for Email provided by the invention, the described AT order for receiving Email has 23.
Compared to prior art, adopt the method utilizing AT order to receive Email provided by the invention, wireless communication module is after above-mentioned relevant AT command configuration, can simply by calling AT order to realize the reception of Email, can not be subject to the restriction of wireless communication module internal memory, therefore the scope of application widely.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings, wherein:
Fig. 1 is the schematic flow sheet utilizing AT order to receive a kind of embodiment of method of Email provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
In technical scheme provided by the invention, wireless communication module can utilize AT (Attention) to order, and realizes the reception of Email simply and easily.Particularly, for supporting e-mail reception, technical scheme provided by the invention can increase the related protocol stack that Email sends in wireless communication module inside, such as POP (Post Office Protocol, post office protocol) protocol stack or POP3 (Post Office Protocol Version 3, post office protocol the 3rd version) protocol stack, and pre-configured multiple AT command interface for carrying out mail reception, wireless communication module only needs to call the transmission that corresponding AT order just can complete Email quickly and easily.
Particularly, the wireless communication module that the present embodiment relates to can Generation Mobile Telecommunication System module, such as global system for mobile communications (Global System for Mobile Communications, GSM) module or general packet radio service technology (General Packet Radio Service, GPRS) module, or the GSM/GPRS module of this simultaneously integrated GSM and GPRS function.Further, described wireless communication module can define the AT order of following three types:
The first type: basic log-on message arranges and logs in the AT order of mail;
The second type: the AT order corresponding with the order of POP3 standard agreement;
The third type: according to the AT order of user's application interface that POP3 standard agreement takes out.
Wherein, the AT order of the first type can comprise 4 AT orders, respectively:
(1) for arranging the AT order of mail server information, described mail server information can comprise server address information, port number information, mode selecting information (being namely select POP3 or POP3S pattern) etc.;
(2) for arranging the AT order of user account and password;
(3) for logging in the AT order of mail;
(4) for closing the AT order of mail.
The AT order of the second type can comprise 9 AT orders, and it is relation one to one respectively with the order of POP3 standard agreement, and the AT order of described the second type can so that user can encapsulate specific interface as required.Particularly, 9 AT orders of described the second type are respectively:
(1) corresponding with the STAT order of POP3 agreement AT order, its functional meaning is total length and the mail sum of mail in inquiry client mailbox;
(2) corresponding with the UIDL order of POP3 agreement AT order, its functional meaning is the unique identification returning mail;
(3) corresponding with the LIST order of POP3 agreement AT order, its functional meaning is that command server provides each length;
(4) corresponding with the RETR order of POP3 agreement AT order, its functional meaning takes out mail from mailbox;
(5) corresponding with the DELE order of POP3 agreement AT order, its functional meaning does delete flag to the mail of specifying;
(6) corresponding with the RSET order of POP3 agreement AT order, its functional meaning is reset POP3 session;
(7) corresponding with the TOP order of POP3 agreement AT order, its functional meaning takes out to believe that the front N of head and mail is capable;
(8) corresponding with the NOOP order of POP3 agreement AT order, its functional meaning is do-nothing operation, returns an effective response, does not do any operation;
(9) corresponding with the QUIT order of POP3 agreement AT order, its functional meaning is that server physics is deleted the file that logic deletes and then closed connection.
The AT order of the third type can comprise 8 AT orders, and it can so that user directly gets the specifying information of mail; Particularly, 8 AT orders of the third type described are respectively:
(1) for obtaining the AT order of all mail header SUB in mailbox;
(2) for obtaining the AT order of the mail header (SUB) between designated with numeral;
(3) for obtaining the AT order of mail text (TEXT) information;
(4) for obtaining the AT order of Email attachment information;
(5) for obtaining the AT order of Email attachment name information;
(6) for obtaining the AT order of e-mail sender's information;
(7) for obtaining the AT order of mail CC information;
(8) for obtaining the AT order of mail recipient's information.
On the other hand, in specific implementation, described wireless communication module can define other AT order as required, and in the present embodiment, described wireless communication module can also define other two AT orders, respectively:
(1) for checking the AT order of debug information;
(2) support to obtain the AT order of original data stream, in the AT order of the second type, such as in LIST and UDIL, check original data stream etc., such benefit is the specification not only supported the agreement of standard but also met AT coomand mode information.
As can be seen here, in the present embodiment, described wireless communication module, for supporting mail reception, can define above-mentioned 23 AT orders altogether.
Refer to Fig. 1, it is the schematic flow sheet utilizing AT order to receive a kind of embodiment of method of Email provided by the invention.The method that the described AT of utilization order receives Email comprises the following steps:
Step S1, by the basic log-on message of AT command set Email;
Particularly, in this step, the basic log-on message of Email can be set at described wireless communication module by the AT order of the first type described, Email Connecting quantity required for POP agreement is set, comprises server address information, port number information, mode selecting information, user account information and encrypted message etc.
Step S2, utilizes the Socket interface of the inner POP3/POP protocol stack of AT command calls and mail server to connect, and receives Email from described mail server;
Particularly, described wireless communication module can by the Socket interface of the POP3/POP protocol stack of the AT command calls inside of above-mentioned the second type, connect with mail server (such as POP3/POP server), and after connection establishment between described wireless communication module and described mail server, receive Email by the AT order of above-mentioned the second type from described mail server.
Step S3, utilizes AT order to get e-mail data content from described Email;
Particularly, described wireless communication module is after receiving described Email from described mail server, corresponding e-mail data content can be read further by the AT order of the third type above-mentioned from described Email, comprise mail header, message body text, annex, addressee, sender information etc.
Compared to prior art, adopt the method utilizing AT order to receive Email provided by the invention, wireless communication module is after above-mentioned relevant AT command configuration, can simply by calling AT order to realize the reception of Email, can not be subject to the restriction of wireless communication module internal memory, therefore the scope of application widely.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. utilize AT order to receive a method for Email, it is characterized in that, comprising:
Be configured for the AT order receiving Email at wireless communication module, wherein said wireless communication module is built-in with POP3/POP protocol stack;
The basic log-on message of Email is set at described wireless communication module by AT order;
Utilize the Socket interface of the POP3/POP protocol stack of wireless communication module inside described in AT command calls and mail server to connect, and receive Email from described mail server;
After described wireless communication module receives described Email, utilize AT order to read described Email and get e-mail data content.
2. utilize AT order to receive the method for Email as claimed in claim 1, it is characterized in that, described mail server is POP3/POP server.
3. utilize AT order to receive the method for Email as claimed in claim 1, it is characterized in that, the described AT order for receiving Email comprises the AT order of the AT order of the first type, the AT order of the second type and the third type, the AT order of the first type wherein said is the AT order that basic log-on message arranged and logged in mail, the AT order of described the second type is the AT order corresponding with the order of POP3 standard agreement, and the AT order of the third type described is the AT order of the user's application interface taken out according to POP3 standard agreement.
4. utilize AT order to receive the method for Email as claimed in claim 3, it is characterized in that, the AT order of the first type described comprise AT order for arranging mail server information, for arrange user account and password AT order, for logging in the AT order of mail and the AT order for closing mail.
5. utilize AT order to receive the method for Email as claimed in claim 3, it is characterized in that, the AT order of described the second type has relation one to one with the order of POP3 standard agreement respectively.
6. utilize AT order to receive the method for Email as claimed in claim 5, it is characterized in that, the AT order of described the second type comprises the AT order corresponding respectively with the STAT order of POP3 agreement, UIDL order, LIST order, RETR order, DELE order, RSET order, TOP order, NOOP order and QUIT order.
7. utilize AT order to receive the method for Email as claimed in claim 3, it is characterized in that, the AT order of the third type described comprises the AT order being respectively used to the mail header, mail text message, accessory information, annex name information, e-mail sender's information, mail CC information and the mail recipient's information that obtain between all mail header, designated with numeral.
8. utilize AT order to receive the method for Email as claimed in claim 3, it is characterized in that, the described AT order for receiving Email also comprises the AT order for checking debug information.
9. utilize AT order to receive the method for Email as claimed in claim 9, it is characterized in that, the described AT order for receiving Email also comprises the AT order supporting to obtain original data stream.
10. utilize AT order to receive the method for Email as claimed in any one of claims 1-9 wherein, it is characterized in that, the described AT order for receiving Email has 23.
CN201410740565.3A 2014-12-08 2014-12-08 Method for receiving E-mails by using AT command Pending CN104581653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410740565.3A CN104581653A (en) 2014-12-08 2014-12-08 Method for receiving E-mails by using AT command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410740565.3A CN104581653A (en) 2014-12-08 2014-12-08 Method for receiving E-mails by using AT command

Publications (1)

Publication Number Publication Date
CN104581653A true CN104581653A (en) 2015-04-29

Family

ID=53096658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410740565.3A Pending CN104581653A (en) 2014-12-08 2014-12-08 Method for receiving E-mails by using AT command

Country Status (1)

Country Link
CN (1) CN104581653A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050037801A1 (en) * 2003-07-14 2005-02-17 Moore Terrill M. Integrated mobile messaging system and method
CN102026111A (en) * 2009-09-11 2011-04-20 希姆通信息技术(上海)有限公司 Method for transceiving mails by using wireless communication module
CN103746902A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 Sending method for Emails
CN103746903A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 Receiving method for Emails

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050037801A1 (en) * 2003-07-14 2005-02-17 Moore Terrill M. Integrated mobile messaging system and method
CN102026111A (en) * 2009-09-11 2011-04-20 希姆通信息技术(上海)有限公司 Method for transceiving mails by using wireless communication module
CN103746902A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 Sending method for Emails
CN103746903A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 Receiving method for Emails

Similar Documents

Publication Publication Date Title
US10110525B2 (en) Method and device for interaction between smart watch and WECHAT platform, and smart watch
CN101355529B (en) Method, system and client terminal for transmitting e-mail to instant communication contact
CN101668263B (en) System for receiving and dispatching mail based on short message platform of mobile phone and method for processing mail attachment
CN102158819B (en) For mobile device display E-mail processing method, server and mobile device
CN103124267B (en) The method, system and the cloud server that log in/register is carried out by mobile terminal
CN103392328A (en) Communication terminal work remote control server and method and communication terminal
CN107105414A (en) A kind of income system and method for Big Dipper RDSS short messages and SMS
WO2014106385A1 (en) Method and system for integrating information about each contact person and mobile terminal
CN1722711A (en) Method for implementing mail forwarding by mail proxy server
CN102655483A (en) Method, client side and system for obtaining contact information by virtue of emails
CN102404248A (en) Method and device for applying fused messages and mails
CN1457212A (en) Method for realizing realtime mobile e-mail delivery by mobile short-message
CN102026117A (en) E-mail delivery equipment, method and system
CN102291328B (en) Support that multi-protocols are based on third party's mail account receiving/transmission method of webpage and system
CN103326927B (en) A kind of method and apparatus withholding mail
CN102073723B (en) Method and device for managing mobile terminal mails
CN104468976A (en) Method and device for intelligently prompting user to send message
CN103152249A (en) Method and system for realizing mail receiving and sending and instant communication functions at clients
CN104581653A (en) Method for receiving E-mails by using AT command
CN102075453A (en) Mobile phone short message and intranet mailbox communication system and implementation method thereof
CN101808040A (en) Access server method of mobile E-mail client and mobile terminal
CN103391237B (en) The method and apparatus showing Twitter message
CN103560941A (en) Portable mail server and operation method thereof
CN1971596A (en) Method and system for generating electron congratulating card mail
CN203301537U (en) Cloud-server-based information communication equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518052, A, building two, phase 1057, science and technology building, Nanhai Road, Shenzhen, Guangdong, Nanshan District, China 501A

Applicant after: FIBOCOM WIRELESS INC.

Address before: 518052, A, building two, phase 1057, science and technology building, Nanhai Road, Shenzhen, Guangdong, Nanshan District, China 501A

Applicant before: Shenzhen G&T Industrial Development Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN G+T INDUSTRIAL DEVELOPMENT CO., LTD. TO: SHENZHEN FIBOCOM WIRELESS INC.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429

RJ01 Rejection of invention patent application after publication