WO2016180137A1 - 一种消息处理方法和装置 - Google Patents

一种消息处理方法和装置 Download PDF

Info

Publication number
WO2016180137A1
WO2016180137A1 PCT/CN2016/079066 CN2016079066W WO2016180137A1 WO 2016180137 A1 WO2016180137 A1 WO 2016180137A1 CN 2016079066 W CN2016079066 W CN 2016079066W WO 2016180137 A1 WO2016180137 A1 WO 2016180137A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
cpe
terminal device
request
unread
Prior art date
Application number
PCT/CN2016/079066
Other languages
English (en)
French (fr)
Inventor
刘秋格
岳宗鹤
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016180137A1 publication Critical patent/WO2016180137A1/zh

Links

Images

Classifications

    • 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/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • CPE Customer Premise Equipment
  • IPTV Internet Protocol Television
  • VOIP Voice over Internet Protocol
  • the current CPE needs to manually log in to the web application interface (Web User Interface, WEBUI) to view messages such as text messages or broadcast prompts.
  • WEBUI Web User Interface
  • users usually do not carry CPE with them, and users do not often log in to WEBUI, so that messages received by CPE may be lost.
  • the application number is: CN200810302246.9, and the invention patent entitled "Returning the system and method for receiving missed calls and unread text messages" provides a communication device that is not carried when it is carried.
  • the unread text message scheme in which the user uses another communication device to actively send a fixed format and content short message to the non-portable communication device, and the un-communicated communication device sends the unread information to the set by the mail after receiving the short message.
  • Set the mailbox The above patents transfer the unread information in the communication device by means of mail, and the user needs to log in to the mailbox actively, so that the short message inquiry lacks timeliness.
  • the inquiry of the message in the CPE by sending an email may result in a problem that the unprocessed message in the CPE has a large limitation due to the lack of timeliness of the message query.
  • This paper provides a message processing method and device to solve the query by sending mail.
  • the message in the CPE has a problem that the unqueried message in the CPE has a large limitation due to the lack of timeliness of the message query.
  • an embodiment of the present invention provides a message processing method and apparatus, including:
  • the client device CPE sends a message push request to the terminal device accessing the CPE when detecting that there is an unread message in the CPE;
  • the method before the CPE sends a message push request to the terminal device that accesses the CPE, the method further includes:
  • the CPE assembles the storage identity number ID, time, transmission information, and content of the unread message on the CPE in a hypertext transfer protocol HTTP request to form the message push request.
  • the method further includes:
  • the CPE receives a message operation request sent by the terminal device, where the message operation request includes an operation instruction and a storage identity number ID of the message indicated by the operation instruction in the CPE;
  • the CPE sends a message operation response to the terminal device, where the message operation response is used to indicate to the terminal device a processing status of the CPE to the message operation request.
  • the message indicated by the operation instruction is the unread message detected by the CPE, or is in the CPE Read message
  • the operation instruction is used to instruct the CPE to perform a read operation, a delete operation, or a mark operation on the message indicated by the operation instruction.
  • any one of the first to third possible implementation manners of the first aspect, in a fourth possible implementation, the CPE is configured to detect an unread message in the CPE ,Also includes:
  • the CPE After detecting that the terminal device accesses the CPE, the CPE detects whether there is an unread message in the CPE in real time.
  • an embodiment of the present invention provides a message processing method, including:
  • the terminal device returns a message push response to the CPE, where the message push response is used to indicate to the CPE a processing status of the message push request by the terminal device.
  • the message push request is used by the CPE to assemble the storage identity number ID, time, sending information, and content of the unread message on the CPE in the super Formed in the text transfer protocol HTTP request.
  • the message push response is used to indicate to the CPE that the terminal device has determined that the message push request is a legal request, and the terminal device returns to the CPE. After the message push response, it also includes:
  • the terminal device parses the message push request, acquires the received information and content of the unread message, and prompts the user to view the unread message.
  • the method further includes:
  • the terminal device sends a message operation request to the CPE according to the operation of the user, where the message operation request includes an operation instruction and a storage identity number ID of the message indicated by the operation instruction in the CPE;
  • the message indicated by the operation instruction is detected by the CPE The unread message, or the read message in the CPE;
  • the operation instruction is used to instruct the CPE to perform a read operation, a delete operation, or a mark operation on the message indicated by the operation instruction.
  • an embodiment of the present invention provides a message processing apparatus, including:
  • the detecting module is configured to: detect whether there is an unread message in the CPE of the user terminal device in real time;
  • the first sending module is configured to: when the detecting module detects that there is an unread message in the CPE, send a message push request to a terminal device that accesses the CPE;
  • the first receiving module is configured to: receive a message push response returned by the terminal device, where the message push response is used to indicate, to the CPE, a processing status of the terminal device to the message push request.
  • the message processing apparatus further includes: an assembly module, configured to: before the first sending module sends a message push request to a terminal device that accesses the CPE, The storage identity number, time, transmission information and content of the unread message detected by the detection module on the CPE are assembled in a hypertext transfer protocol HTTP request to form the message push request.
  • the first receiving module is further configured to: after receiving a message push response returned by the terminal device, receive a message operation request sent by the terminal device, where The message operation request includes an operation instruction and a storage identity number ID of the message indicated by the operation instruction in the CPE;
  • the first sending module is further configured to: send a message operation response to the terminal device, where the message operation response is used to indicate, to the terminal device, a processing status of the CPE to the message operation request.
  • the message indicated by the operation instruction is the unread message detected by the CPE, or is in the CPE Read message
  • the operation instruction is used to instruct the processing module to perform a read operation, a delete operation, or a mark operation on the message indicated by the operation instruction.
  • the detecting module is further configured to: when the terminal is detected After the device accesses the CPE, it starts to detect whether there is an unread message in the CPE in real time.
  • an embodiment of the present invention provides a message processing apparatus, including:
  • a second receiving module configured to: receive a message push request sent by the user equipment CPE when detecting an unread message in the CPE, where the terminal device detects the Accessing the terminal device of the CPE before the message is read;
  • the second sending module is configured to: return a message push response to the CPE, where the message push response is used to indicate, to the CPE, a processing status of the terminal device to the message push request.
  • the message push request is used by the CPE to assemble the storage identity number ID, time, sending information, and content of the unread message on the CPE in the super Formed in the text transfer protocol HTTP request.
  • the message pushing response is used to indicate to the CPE that the terminal device has determined that the message pushing request is a legal request
  • the message processing apparatus further includes: a module, configured to: after the second sending module returns the message push response to the CPE, parse the message push request, obtain the received information and content of the unread message, and prompt the user to view the Read the message.
  • the second sending module is further configured to: send a message operation request to the CPE according to an operation of the user, where the message operation request includes an operation instruction and The message indicated by the operation instruction stores an identity ID number in the CPE;
  • the second receiving module is further configured to: receive the message operation response sent by the CPE, and determine, according to the message operation response, a processing status of the CPE to the message operation request.
  • the message indicated by the operation instruction is detected by the CPE The unread message, or the read message in the CPE;
  • the operation instruction is used to instruct the CPE to perform a read operation, a delete operation, or a mark operation on the message indicated by the operation instruction.
  • an embodiment of the present invention provides a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the message processing method and apparatus when the CPE detects that there is an unread message in the CPE, sends a message push request to the terminal device accessing the CPE, so that the CPE After receiving the message push response sent by the terminal device, the terminal device can know the processing status of the message push request by the terminal device, that is, whether the terminal device obtains the unread message, so that the CPE can be conveniently accessed without logging in to the WEBUI.
  • the unread message, and the method of data interaction between the CPE and the terminal device by using the HTTP protocol in the embodiment of the present invention solves the problem of querying the message in the CPE by sending an email, which may result in a lack of timeliness of the message query, thereby causing the query.
  • Unprocessed messages in the CPE have a problem with larger limitations.
  • FIG. 1 is a flowchart of a message processing method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another message processing method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another message processing method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a message processing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present invention.
  • the commonly used CPE can be, for example, a wireless router with a built-in Internet access module.
  • the WEBUI can be, for example, a home gateway. After launching the CPE, after logging in to the WEBUI through the Internet (Web), the short message can be viewed on the CPE; however, Since the user does not carry the CPE when going out, and the user does not frequently log in to the WEBUI, when the unread message in the CPE reaches the maximum storage capacity, the old unread message may be replaced by the new unread message, which will result in The loss of important messages in the CPE reduces the user experience.
  • the terminal device in the following embodiments of the present invention is generally a portable intelligent terminal having a communication function, and may be, for example, a mobile phone.
  • the CPE and the terminal device in this embodiment may pass.
  • the Hyper Text Transfer Protocol (HTTP) is used for message interaction.
  • HTTP Hyper Text Transfer Protocol
  • FIG. 1 is a flowchart of a message processing method according to an embodiment of the present invention.
  • the message processing method provided in this embodiment is applicable to the case where the terminal device queries and processes the message in the CPE, and the method can be implemented by the message processing device.
  • the message processing device is implemented by combining hardware and software. Can be integrated into the processor of the CPE for use by the processor.
  • the method in this embodiment may include:
  • the CPE When detecting that there is an unread message in the CPE, the CPE sends a message push request to the terminal device that accesses the CPE.
  • the CPE can detect whether it has received an unread message in real time, so that when it detects that an unread message has been received, it sends a message push request to the terminal device accessing the CPE.
  • the CPE When an unread message is detected in the CPE, the storage identity number (Identity, short: ID), time, sending information, and content of the unread message on the CPE may be assembled in an HTTP request to form the above message.
  • the message push request may be an HTTP POST request; it should be noted that the HTTP protocol implements processing of resources by instructions, and the POST instruction refers to: submitting data to a specified resource, requesting the server to add new data, The added data is included in the request for this article, which may create new resources or modify existing resources, or both.
  • the CPE in this embodiment sends a message push request to the terminal device that has accessed the CPE when the unread message is detected. If the terminal device does not access the CPE, the CPE does not need to perform the operation of sending the message push request.
  • the S110 of the embodiment may further include: S100, after detecting that the terminal device accesses the CPE, the CPE detects whether there is an unread message in the CPE in real time. After the CPE detects that a terminal device is connected, the CPE can start the real-time detection operation by running a preset program. Correspondingly, after determining the access success, the terminal device accessing the CPE can also run the program in real time.
  • the program running on the CPE in this embodiment may be, for example, a pre-configured program module, and a program example running on the terminal device, for example, whether the message push request sent by the CPE is received.
  • a program example running on the terminal device for example, whether the message push request sent by the CPE is received.
  • it can be an application downloaded from the network (Application, referred to as: APP).
  • the storage ID, time, transmission information, and content of the unread message on the CPE are assembled in the message push request and sent to the terminal device, and the unread message is sent.
  • the information includes, for example, information such as the sender and the sending time.
  • the destination address of the sending is, for example, http://192.168.0.100/client/post, and the data content sent is, for example:
  • the above 192.168.0.100 is the address of the APP in the terminal device, and the mem_ID is the storage ID of the unread message in the CPE, for example, the transmission number of 10, the source_ID is an unread message, for example, 18891006531, and the source_name is the source_ID stored on the CPE.
  • the corresponding name, for example, Jonny, receive_time is the time when the CPE receives the unread message, for example, 2015-05-15, 13:24:22, content is the content of the short message, and the actual content is replaced by "XXXXX".
  • the message content of the message push request in this embodiment can generally adopt a standard JavaScript (JavaScript Object Notation, JSON for short) text format, and the JSON text format has good versatility and is convenient for parsing. Etc.
  • the CPE receives a message push response returned by the terminal device, where the message push response is used to indicate to the CPE, the processing status of the terminal device for the message push request.
  • the terminal device may initially parse the message push request, and may determine whether the message push request is a legitimate request, and if the message push request is invalid, return ⁇ "result” : "-1" ⁇ ; if the message push request is legal, it returns ⁇ "result”: "0" ⁇ . That is to say, the CPE can determine the processing status of the message pushing request by the terminal device according to the content of the received message, so that the terminal device can obtain the unread message on the CPE.
  • the unread message is sent by using the HTTP protocol.
  • the CPE and the terminal device perform the preset procedure to carry the unread message on the CPE on the HTTP request packet.
  • the terminal device can remind the user to check when the unread message in the HTTP request packet is parsed, and the user can view the unread message in the CPE through the terminal device at any time, so that the user can log in to the WEBUI without using the user.
  • Reading the unread message thereby avoiding the problem that the unread message in the CPE is easily lost; and the party provided by this embodiment
  • the method uses the HTTP protocol request packet and the response packet to perform data interaction between the CPE and the terminal device, thereby avoiding the additional economic cost of using the short message method to the user, and avoiding the untimeliness caused by the use of the mail method.
  • the CPE when the CPE detects that there is an unread message in the CPE, the CPE sends a message push request to the terminal device that accesses the CPE, so that the CPE can send a response by receiving the message sent by the terminal device.
  • the processing status of the message pushing request by the terminal device that is, whether the terminal device obtains the unread message, so that the unread message in the CPE can be conveniently accessed without logging in to the WEBUI, and the embodiment adopts the HTTP protocol.
  • the method of data interaction between the CPE and the terminal device solves the problem that the message in the CPE is queried by sending an email, which may result in a lack of timeliness of the message query, and the unprocessed message in the CPE has a large limitation. .
  • the uncarried communication device in the related art may also restore the sending end device by sending the unwritten message to the sending end device, so that the unread message is obtained by sending the short message, which may generate additional
  • the CPE in this embodiment and the terminal device use the HTTP protocol to exchange data packets, thereby avoiding the generation of additional communication costs.
  • the terminal device by sending an e-mail to query the unread message in the CPE, the terminal device needs to be configured with the function of checking the e-mail, and the hardware and software requirements of the terminal device are relatively high; in addition, the user needs to actively send the CPE to the CPE through the terminal device.
  • the device After the device sends a short message in a fixed format and content, it can receive the unread message on the CPE.
  • the method provided in this embodiment can obtain the unread in the CPE only by sending and receiving the HTTP data packet.
  • the message can be implemented as long as the CPE and the terminal device support the HTTP protocol, and after the CPE and the terminal device establish a connection, the method of pushing and acquiring the unread message in the CPE is executed by running the preset program, and the user fails to actively check the method.
  • unread messages in the CPE can also be obtained.
  • FIG. 2 is a flowchart of another method for processing a message according to an embodiment of the present invention.
  • the method provided in this embodiment may further include: S130, a CPE receiving terminal, on the basis of the foregoing embodiment shown in FIG. a message operation request sent by the device, where the message operation request includes a storage ID of the message indicated by the operation instruction and the operation instruction in the CPE; S140, the CPE sends a message operation response to the terminal device, where the message operation response is used to indicate to the terminal device The processing status of the CPE on the message operation request.
  • the terminal device may parse the message push request sent by the CPE, parse the contents of the mem_ID, source_ID, source_name, receive_time, and content fields in the message push request, and then save the content in the database, and may prompt the user to execute each The operation operation, so that the operation command input by the user sends a message operation request to the CPE, where the message operation request includes an operation instruction input by the user and a message indicated by the operation instruction, that is, the CPE can be performed by the user on the terminal device.
  • the message specified in the operation is performed. For example, the user deletes a message through the terminal device, and after receiving the message operation request, the CPE may delete the corresponding message in the CPE.
  • the terminal device in the embodiment assembles the operation instruction and the storage ID of the message indicated by the operation instruction on the CPE into an HTTP request.
  • the packet is sent to the CPE.
  • the HTTP request packet is also an HTTP POST request.
  • the destination address sent is, for example, http://192.168.0.1/client/post.
  • the data content sent is, for example:
  • the above 192.168.0.1 is the address of the CPE
  • READ is the read instruction
  • DELETE is the delete instruction
  • the mem_ID is the storage ID of the message indicated by the operation instruction in the CPE, for example, 10.
  • the message content of the message operation request in this embodiment may also adopt a standard JSON text format.
  • the CPE may also initially parse the message operation request, and may determine whether the message operation request is a legitimate request, and if the message operation request is invalid, return ⁇ "result” : "-1" ⁇ ; if the message operation request is legal, it returns ⁇ "result”: "0" ⁇ . That is to say, the terminal device can determine the processing status of the CPE to the message operation request according to the content of the received message operation response, that is, whether the CPE can perform the related operation indicated by the user.
  • the embodiment further includes: S150, the CPE, according to the message operation request, perform the operation instruction indicated by the message indicated by the operation instruction.
  • the operation indicated by the operation instruction is executed when the message operation response indication returned by the CPE is legal.
  • the message indicated by the message operation request received by the CPE may be It is to be noted that the unread message in the above embodiment may also be other messages that the user has read on the terminal device.
  • the user performs an operation on the message on the terminal device, it is not limited to the unread message that has just been received, as long as it is The message stored in the database of the terminal device can be operated by the user; therefore, the embodiment does not limit the execution order of S110-S120 and S130-S150.
  • the embodiment shown in FIG. 2 precedes S130-S120 with S110-S120. Execution is shown as an example.
  • the cmd and mem_ID are parsed, and then the message of the mem_ID is changed to the read message or the message is deleted.
  • the message in the CPE can be processed at any time by using the HTTP protocol in this embodiment, which can further ensure that the CPE does not overwrite the old message that has not been consulted when receiving the new message.
  • FIG. 3 is a flowchart of still another message processing method according to an embodiment of the present invention.
  • the message processing method provided in this embodiment is applicable to the case where the terminal device queries and processes the message in the CPE, and the method can be implemented by the message processing device.
  • the message processing device is implemented by combining hardware and software. It can be integrated into the processor of the terminal device for use by the processor. As shown in FIG. 3, the method in this embodiment may include:
  • S210 The terminal device receives a message push request sent by the CPE when the CPE detects an unread message in the CPE, where the terminal device accesses the CPE terminal device before the CPE detects the unread message.
  • the message push request received by the terminal device is sent by the CPE that establishes a connection with the terminal device before the unread message is detected.
  • the CPE may The real-time detection operation is started by running the preset program. After the terminal device accessing the CPE is determined to be successful, the device can detect the message push request sent by the CPE in real time, which is the CPE of the embodiment.
  • the running program can be, for example, a pre-configured program module, and the program running on the terminal device can be, for example, an APP downloaded from the network.
  • the message push request in this embodiment is also formed by the CPE assembling the stored ID, time, sending information and content of the unread message detected on the CPE in the HTTP request, and the message push request is formed by the CPE.
  • the same can be used for the HTTP POST request, and the destination address, the information, and the content of the message push request can be referred to the embodiment shown in FIG. 1 , and therefore will not be further described herein.
  • the terminal device returns a message push response to the CPE, where the message push response is used to indicate to the CPE the processing status of the terminal device to the message push request.
  • the terminal device may initially parse the message push request, and may determine whether the message push request is a legitimate request. Similar to the foregoing embodiment, if the message push request is invalid. , returns ⁇ "result": "-1" ⁇ ; if the message push request is legal, it returns ⁇ "result”: "0" ⁇ . That is to say, the CPE can determine the processing status of the message pushing request by the terminal device according to the content of the received message, so that the terminal device can obtain the unread message on the CPE.
  • the terminal device may further perform S230 after the message push response is sent, and the terminal device parses the message push request. Get the received information and content of the unread message and prompt the user to view the unread message.
  • the terminal device in the embodiment may parse the message push request and parse the contents of the mem_ID, source_ID, source_name, receive_time, and content fields in the request, and then save the data in the database, and An unread message is received on the user's CPE by ringing or vibrating for subsequent operations.
  • the terminal device receives a message push request sent by the CPE when the CPE detects an unread message in the CPE, and the terminal device is a terminal device that has been connected to the CPE before the CPE detects the unread message. Therefore, the terminal device sends a response to the message sent to the CPE, and indicates to the CPE, the status of the processing of the message push request by the terminal device, that is, the CPE is instructed to indicate whether the terminal device obtains the unread message, so that the terminal device does not log in to the WEBUI.
  • the unread message in the CPE can be conveniently referred to, and the data interaction between the CPE and the terminal device is performed by using the HTTP protocol in the embodiment, and the message in the CPE is queried by sending an email, which may result in a lack of message query. Timeliness, which leads to the problem of querying unprocessed messages in the CPE with greater limitations.
  • the uncarried communication device in the related art may also restore the sending end device by sending the unwritten message to the sending end device, so that the unread message is obtained by sending the short message, which may generate additional
  • the CPE in this embodiment and the terminal device use the HTTP protocol to exchange data packets, thereby avoiding the overhead of additional communication costs. Health.
  • the terminal device by sending an e-mail to query the unread message in the CPE, the terminal device needs to be configured with the function of checking the e-mail, and the hardware and software requirements of the terminal device are relatively high; in addition, the user needs to actively send the CPE to the CPE through the terminal device.
  • the device After the device sends a short message with a fixed format and content, it can receive unread messages on the CPE.
  • the unread message in the CPE can be obtained only by sending and receiving the HTTP data packet, as long as the CPE and the terminal device support the HTTP protocol, and the CPE and the terminal are implemented.
  • the method of pushing and obtaining the unread message in the CPE is executed by running the preset program. When the user fails to actively consult, the unread message in the CPE can also be obtained.
  • FIG. 4 is a flowchart of a message processing method according to an embodiment of the present invention.
  • the method provided in this embodiment may further include: S240, the terminal device is configured according to the foregoing embodiment.
  • the user operation sends a message operation request to the CPE, where the message operation request includes an operation instruction and a storage ID of the message indicated by the operation instruction in the CPE;
  • S250 the terminal device receives the message operation response sent by the CPE, and operates according to the message The response determines the processing status of the CPE for the message operation request.
  • the method further includes S230, the terminal device parses the message push request, acquires the received information and content of the unread message, and prompts the user to view the unread message. .
  • the database of the terminal device has the content of the saved multiple messages, which may include the read message and the unread message, and the user may perform corresponding operations on the message in the terminal device, and the terminal device may input the user.
  • the operation instructions and corresponding messages are assembled into a message execution request and sent to the CPE to instruct the CPE to perform a user input operation on the corresponding message in the CPE.
  • the manner of processing the message in the terminal device, the operation instruction and content of the message operation request, and the manner in which the terminal device receives the message operation response, determining the processing status of the CPE on the message operation request according to the response content The embodiment shown in FIG. 2 is the same, and therefore will not be described again.
  • the terminal device in the embodiment learns that the CPE has determined that the message operation request is a legal request, it may also determine that the CPE performs an operation indicated by the operation instruction on the message indicated by the operation instruction according to the message operation request, The operation instruction is used to instruct the CPE to perform a read operation, a delete operation, or a mark operation on the message indicated by the operation instruction.
  • the message indicated by the message operation request sent by the terminal device in this embodiment may be the foregoing implementation.
  • the unread message in the example may also be other messages that the user has read on the terminal device.
  • the user When the user performs an operation on the message on the terminal device, the user is not limited to the unread message that has just been received, as long as it is the terminal device.
  • the information stored in the database can be operated by the user; therefore, the execution order of S210-S230 and S240-S250 is not limited in this embodiment, and FIG. 4 is performed by taking S210-S230 before S240-S250 as an example. .
  • the message in the CPE can be processed at any time by using the HTTP protocol in this embodiment, which can further ensure that the CPE does not overwrite the old message that has not been consulted when receiving the new message.
  • the CPE in the foregoing embodiment of the present invention pushes a message to the terminal device, and the user sends the command to the CPE through the terminal device, which is executed by using the HTTP protocol.
  • the request body and the response body of the HTTP protocol include data information that needs to be exchanged, and the user is implemented.
  • the message received by the CPE can be read and processed without logging in to the WEBUI, and no additional communication charges are incurred, and the timeliness of message review and processing can be guaranteed.
  • Embodiments of the present invention provide a computer readable storage medium storing computer executable instructions for executing the above message processing method.
  • FIG. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention.
  • the message processing apparatus provided in this embodiment is applicable to the case where the terminal device searches and processes the message in the CPE, and the message processing apparatus is implemented by combining hardware and software, and the apparatus may be integrated in the processor of the CPE. Used by the processor to call.
  • the message processing apparatus of this embodiment includes: a detecting module 11, a first sending module 12, and a first receiving module 13.
  • the detecting module 11 is configured to: detect whether there is an unread message in the CPE in real time.
  • the detecting module 11 is further configured to: after detecting that the terminal device accesses the CPE, start detecting whether there is an unread message in the CPE in real time.
  • the first sending module 12 is configured to: when the detecting module 11 detects that there is an unread message in the CPE, send a message pushing request to the terminal device accessing the CPE.
  • the detection module 11 in the embodiment can also start the real-time detection operation by running a preset program. Accordingly, after determining the successful access, the terminal device accessing the CPE can pass the detection. Run the program to detect in real time whether to receive the message sent by the CPE. begging.
  • the method for obtaining a message push request is: the message processing device may further include an assembly module 14 configured to: send, by the first sending module 12, a message push to a terminal device that accesses the CPE.
  • the storage ID, the time, the sending information, and the content of the unread message detected by the detecting module 11 on the CPE are assembled in the HTTP request to form the message pushing request, and the message pushing request in this embodiment may also be
  • the destination address, the information, and the content of the message push request can also be referred to the embodiment shown in FIG. 1 , and therefore will not be further described herein.
  • the first receiving module 13 is configured to: receive a message push response returned by the terminal device, where the message push response is used to indicate to the CPE the processing status of the terminal device for the message push request.
  • the terminal device may also initially parse the message push request, and may determine whether the message push request is a legal request, and the terminal device sends a message push response manner to the CPE according to the judgment result.
  • the content and the content are the same as those of the above embodiment, and therefore will not be described herein.
  • the message processing apparatus provided by the embodiment of the present invention is used to perform the message processing method provided by the embodiment shown in FIG. 1 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the first receiving module 13 in this embodiment is further configured to: after receiving the message push response returned by the terminal device, the receiving terminal device The message operation request is sent, and the message operation request includes a storage ID of the message indicated by the operation instruction and the operation instruction in the CPE; correspondingly, the first sending module 12 is further configured to: send a message operation response to the terminal device, and the message operation The response is used to indicate to the terminal device the processing status of the CPE for the message operation request.
  • the content of the message operation request received by the first receiving module 13 and the manner and content of the message operation response sent by the sending module 12 to the terminal device according to the preliminary analysis result of the message operation request are the same as the above embodiment. That is to say, the terminal device can determine the processing status of the CPE to the message operation request according to the content of the received message operation response, that is, whether the CPE can perform the related operation indicated by the user.
  • the message processing apparatus may further include: the processing module 15 configured to: send the first sending module 12 to the terminal device Eliminate After the message operation response, the operation indicated by the operation instruction is executed according to the message operation request received by the first receiving module 13; the operation instruction in the embodiment is used to instruct the processing module 15 to indicate the operation instruction.
  • the message performs a read operation, a delete operation, or a mark operation. The operation indicated by the operation instruction is executed when the message operation response indication returned by the CPE is legal.
  • the message processing device provided by the embodiment of the present invention is used to perform the message processing method provided by the embodiment shown in FIG. 2 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • the message indicated by the message operation request received by the CPE in this embodiment may be an unread message in the foregoing embodiment, or may be another message that the user has read on the terminal device, and the user performs an operation on the message on the terminal device.
  • the time is not limited to the unread message that has just been received, and only the message stored in the database of the terminal device can be operated by the user.
  • the detection module 11, the assembly module 14, and the processing module 15 in this embodiment may be integrated into the processor of the CPE, for example, the first sending module 12 may be a transmitter of the CPE, and the first receiving module 13 may be a receiver of the CPE.
  • the message processing apparatus provided in this embodiment can implement each function of the foregoing functional modules by using a physical device in the CPE.
  • FIG. 6 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present invention.
  • the message processing apparatus provided in this embodiment is applicable to the case where the terminal device searches and processes the message in the CPE, and the message processing apparatus is implemented by combining hardware and software, and the apparatus may be integrated in the processor of the terminal device. For use by the processor.
  • the message processing apparatus of this embodiment includes: a second receiving module 21 and a second sending module 22.
  • the second receiving module 21 is configured to: receive a message push request sent by the CPE when detecting an unread message in the CPE, where the terminal device accesses the CPE terminal before the CPE detects the unread message. device.
  • the message push request received by the terminal device is sent by the CPE that establishes a connection with the terminal device before the unread message is detected.
  • the CPE may The real-time detection operation is started by running the preset program. Accordingly, after determining that the access is successful, the terminal device accessing the CPE can detect whether the message push request sent by the CPE is received in real time through the running program.
  • the message push request in this embodiment is also formed by the CPE assembling the stored ID, time, sending information and content of the unread message on the CPE in the HTTP request, and the message push request can also be an HTTP POST.
  • the destination address, the information and the content of the message push request can be referred to the embodiment shown in FIG. 1 again, and therefore no further details are provided herein.
  • the second sending module 22 is configured to: return a message push response to the CPE, where the message push response is used to indicate to the CPE the processing status of the terminal device to the message push request.
  • the terminal device may also initially parse the message push request, and may determine whether the message push request is a legal request, and the terminal device sends a message push response manner to the CPE according to the judgment result.
  • the content and the content are the same as those of the above embodiment, and therefore will not be described herein.
  • the apparatus provided in the embodiment shown in FIG. 6 may further include: a parsing module 23, configured to: After the sending module 22 returns a message push response to the CPE, the message push request is parsed, the received information and content of the unread message are obtained, and the user is prompted to view the unread message.
  • a parsing module 23 configured to: After the sending module 22 returns a message push response to the CPE, the message push request is parsed, the received information and content of the unread message are obtained, and the user is prompted to view the unread message.
  • the message processing device provided by the embodiment of the present invention is used to execute the message processing method provided by the embodiment shown in FIG. 3 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the second sending module 22 in this embodiment is further configured to: send a message operation request to the CPE according to the operation of the user, based on the structure of the message processing apparatus provided in the embodiment shown in FIG.
  • the operation request includes an operation instruction and a storage ID of the message indicated by the operation instruction in the CPE;
  • the second receiving module 21 is further configured to: receive a message operation response sent by the CPE, and determine a CPE according to the message operation response. The processing status of the message operation request.
  • the database of the terminal device has the content of the saved multiple messages, which may include the read message and the unread message, and the user may perform each operation on the message in the terminal device, and the terminal device may The input operation instruction and the corresponding message are assembled into a message execution request and sent to the CPE to instruct the CPE to perform a user input operation on the corresponding message in the CPE.
  • the manner of processing the message in the terminal device, the operation instruction and content of the message operation request, and the manner in which the terminal device receives the message operation response, determining the processing status of the CPE on the message operation request according to the response content The embodiment shown in Figure 2 above is the same, so it is no longer here. Said.
  • the terminal device in the embodiment After the terminal device in the embodiment knows that the CPE has determined that the message operation request is a legal request, it may further determine that the CPE performs an operation indicated by the operation instruction on the message indicated by the operation instruction according to the message operation request, and the operation instruction is used to indicate The CPE performs a read operation, a delete operation, or a mark operation on the message indicated by the operation instruction.
  • the message indicated by the message operation request sent by the terminal device in this embodiment may be an unread message received by the terminal device, or may be another message that the user has read on the terminal device, and the user is in the message on the terminal device. When the operation is performed, it is not limited to the unread message that has just been received, and only the message stored in the database of the terminal device can be operated by the user.
  • the message processing device provided by the embodiment of the present invention is used to perform the message processing method provided by the embodiment shown in FIG. 4 of the present invention, and has a corresponding function module, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
  • the parsing module 23 in this embodiment may be integrated into the processor of the terminal device, the second receiving module 21 may be the receiver of the terminal device, and the second sending module 22 may be the transmitter of the terminal device, which is provided by this embodiment.
  • the message processing apparatus can implement each function of the above functional modules through a physical device in the terminal device.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the message processing method and apparatus when the CPE detects that there is an unread message in the CPE, sends a message push request to the terminal device that accesses the CPE, so that the CPE can push the message sent by the terminal device.
  • the terminal device learns the processing status of the message push request, that is, whether the terminal device obtains the unread message, so that the unread message in the CPE can be conveniently accessed without logging in to the WEBUI, and the embodiment of the present invention
  • the method of data exchange between the CPE and the terminal device through the HTTP protocol solves the problem of querying the message in the CPE by sending an e-mail, which may result in a lack of timeliness of the message query, and the unprocessed message in the CPE is larger. Limitation issues.

Landscapes

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

Abstract

本文公布一种消息处理方法和装置,所述消息处理方法包括:用户端设备CPE在检测到该CPE中有未读消息时,向接入该CPE的终端设备发送消息推送请求;该CPE接收终端设备返回的消息推送响应,该消息推送响应用于向CPE指示终端设备对消息推送请求的处理状态。

Description

一种消息处理方法和装置 技术领域
本申请涉及但不限于通信技术领域。
背景技术
用户端设备(Customer Premise Equipment,简称为:CPE)已普遍使用于人们的日常生活中,CPE通常用于提供家庭客户的宽带,交互式网络电视(Internet Protocol Television,简称为:IPTV)和网络电话(Voice over Internet Protocol,简称为:VOIP)等业务的综合接入。
目前的CPE需要通过用户手动登陆到网页应用程序用户界面(Web User Interface,简称为:WEBUI)上查看短信或广播提示等消息。然而,用户通常不会随身携带CPE,并且用户不会经常登陆到WEBUI,这样CPE收到的消息就有可能的丢失。为了解决CPE中短信容易丢失的问题,申请号为:CN200810302246.9,发明名称为《回报未接来电和未读短信的系统及方法》的发明专利中提供了一种通讯设备未随身携带时查看未读短信的方案,其中,用户利用另一通讯设备主动发固定格式及内容的短信到未携带的通讯设备,未携带的通讯设备接收到此短信后将未读信息以邮件方式发到已设定好的邮箱中。上述专利通过邮件的方式转移未携带通讯设备中的未读信息的方式,需要用户主动登陆到邮箱,使得短信查询缺乏及时性。
综上所述,通过发送邮件的方式查询CPE中的消息,由于会造成消息查询缺乏及时性,而导致查询CPE中的未处理消息具有较大限制的问题。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供了一种消息处理方法和装置,以解决通过发送邮件的方式查询 CPE中的消息,由于会造成消息查询缺乏及时性,而导致查询CPE中的未处理消息具有较大限制的问题。
第一方面,本发明实施例提供一种消息处理方法和装置,包括:
用户端设备CPE在检测到所述CPE中有未读消息时,向接入所述CPE的终端设备发送消息推送请求;
所述CPE接收所述终端设备返回的消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
在第一方面的第一种可能的实现方式中,所述CPE向接入所述CPE的终端设备发送消息推送请求之前,还包括:
所述CPE将所述未读消息在所述CPE上的存储身份标识号码ID、时间、发送信息和内容组装在超文本传输协议HTTP请求中,形成所述消息推送请求。
在第一方面的第二种可能的实现方式中,还包括:
所述CPE接收所述终端设备发送的消息操作请求,所述消息操作请求中包括操作指令和所述操作指令所指示的消息在所述CPE中的存储身份标识号码ID;
所述CPE向所述终端设备发送消息操作响应,所述消息操作响应用于向所述终端设备指示所述CPE对所述消息操作请求的处理状态。
根据第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述操作指令所指示的消息为所述CPE检测到的所述未读消息,或者为所述CPE中的已读消息;
所述操作指令用于指示所述CPE对所述操作指令所指示的消息执行阅读操作、删除操作或标记操作。
根据第一方面、第一方面的第一种到第三种可能的实现方式中任意一种,在第四种可能的实现方式中,所述CPE在检测到所述CPE中有未读消息之前,还包括:
所述CPE检测到所述终端设备接入所述CPE后,实时检测所述CPE中是否有未读消息。
第二方面,本发明实施例提供一种消息处理方法,包括:
终端设备接收用户端设备CPE在检测到所述CPE中有未读消息时发送的消息推送请求,其中,所述终端设备为所述CPE检测到所述未读消息前,接入所述CPE的终端设备;
所述终端设备向所述CPE返回消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
在第二方面的第一种可能的实现方式中,所述消息推送请求为所述CPE将所述未读消息在所述CPE上的存储身份标识号码ID、时间、发送信息和内容组装在超文本传输协议HTTP请求中所形成的。
在第二方面的第二种可能的实现方式中,所述消息推送响应用于向所述CPE指示所述终端设备已确定所述消息推送请求为合法请求,所述终端设备向所述CPE返回消息推送响应之后,还包括:
所述终端设备解析所述消息推送请求,获取所述未读消息的接收信息和内容,并提示用户查看所述未读消息。
在第二方面的第三种可能的实现方式中,还包括:
所述终端设备根据所述用户的操作向所述CPE发送消息操作请求,所述消息操作请求中包括操作指令和所述操作指令所指示的消息在所述CPE中的存储身份标识号码ID;
所述终端设备接收所述CPE发送的所述消息操作响应,并根据所述消息操作响应确定所述CPE对所述消息操作请求的处理状态。
根据第二方面、第二方面的第一种到第三种可能的实现方式中任意一种,在第四种可能的实现方式中,所述操作指令所指示的消息为所述CPE检测到的所述未读消息,或者为所述CPE中的已读消息;
所述操作指令用于指示所述CPE对所述操作指令所指示的消息执行阅读操作、删除操作或标记操作。
第三方面,本发明实施例提供一种消息处理装置,包括:
检测模块,设置为:实时检测用户终端设备CPE中是否有未读消息;
第一发送模块,设置为:在所述检测模块检测到所述CPE中有未读消息时,向接入所述CPE的终端设备发送消息推送请求;
第一接收模块,设置为:接收所述终端设备返回的消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
在第三方面的第一种可能的实现方式中,所述消息处理装置还包括:组装模块,设置为:在所述第一发送模块向接入所述CPE的终端设备发送消息推送请求之前,将所述检测模块检测到的未读消息在所述CPE上的存储身份标识号码ID、时间、发送信息和内容组装在超文本传输协议HTTP请求中,形成所述消息推送请求。
在第三方面的第二种可能的实现方式中,所述第一接收模块,还设置为:在接收所述终端设备返回的消息推送响应之后,接收所述终端设备发送的消息操作请求,所述消息操作请求中包括操作指令和所述操作指令所指示的消息在所述CPE中的存储身份标识号码ID;
所述第一发送模块,还设置为:向所述终端设备发送消息操作响应,所述消息操作响应用于向所述终端设备指示所述CPE对所述消息操作请求的处理状态。
根据第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述操作指令所指示的消息为所述CPE检测到的所述未读消息,或者为所述CPE中的已读消息;
所述操作指令用于指示所述处理模块对所述操作指令所指示的消息执行阅读操作、删除操作或标记操作。
根据第三方面、第三方面的第一种到第三种可能的实现方式中任意一种,在第四种可能的实现方式中,所述检测模块,还设置为:在检测到所述终端设备接入所述CPE后,开始实时检测所述CPE中是否有未读消息。
第四方面,本发明实施例提供一种消息处理装置,包括:
第二接收模块,设置为:接收用户端设备CPE在检测到所述CPE中有未读消息时发送的消息推送请求,其中,所述终端设备为所述CPE检测到所述 未读消息前,接入所述CPE的终端设备;
第二发送模块,设置为:向所述CPE返回消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
在第四方面的第一种可能的实现方式中,所述消息推送请求为所述CPE将所述未读消息在所述CPE上的存储身份标识号码ID、时间、发送信息和内容组装在超文本传输协议HTTP请求中所形成的。
在第四方面的第二种可能的实现方式中,所述消息推送响应用于向所述CPE指示所述终端设备已确定所述消息推送请求为合法请求,所述消息处理装置还包括:解析模块,设置为:在所述第二发送模块向所述CPE返回所述消息推送响应之后,解析所述消息推送请求,获取所述未读消息的接收信息和内容,并提示用户查看所述未读消息。
在第四方面的第三种可能的实现方式中,所述第二发送模块,还设置为:根据所述用户的操作向所述CPE发送消息操作请求,所述消息操作请求中包括操作指令和所述操作指令所指示的消息在所述CPE中的存储身份标识号码ID;
所述第二接收模块,还设置为:接收所述CPE发送的所述消息操作响应,并根据所述消息操作响应确定所述CPE对所述消息操作请求的处理状态。
根据第四方面、第四方面的第一种到第三种可能的实现方式中任意一种,在第四种可能的实现方式中,所述操作指令所指示的消息为所述CPE检测到的所述未读消息,或者为所述CPE中的已读消息;
所述操作指令用于指示所述CPE对所述操作指令所指示的消息执行阅读操作、删除操作或标记操作。
第五方面,本发明实施例提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。
本发明实施例提供的消息处理方法和装置,通过CPE在检测到该CPE中有未读消息时,向接入该CPE的终端设备发送消息推送请求,从而CPE 可以通过接收终端设备发送的消息推送响应,获知终端设备对消息推送请求的处理状态,即获知终端设备是否获取到未读消息,进而实现在不登陆WEBUI的情况下就可以方便的查阅CPE中的未读消息,并且本发明实施例通过HTTP协议在CPE和终端设备之间进行数据交互的方式,解决了通过发送邮件的方式查询CPE中的消息,由于会造成消息查询缺乏及时性,而导致查询CPE中的未处理消息具有较大限制的问题。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种消息处理方法的流程图;
图2为本发明实施例提供的另一种消息处理方法的流程图;
图3为本发明实施例提供的又一种消息处理方法的流程图;
图4为本发明实施例提供的在一种消息处理方法的流程图;
图5为本发明实施例提供的一种消息处理装置的结构示意图;
图6为本发明实施例提供的另一种消息处理装置的结构示意图。
本发明的实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
目前通常使用的CPE例如可以为一个无线路由器,内置有上网模块,WEBUI例如可以为家庭网关,在启动CPE时,通过互联网(Web)登陆到WEBUI上之后,可以查看该CPE上的短信;然而,由于用户在外出时并不会携带CPE,并且用户不会经常登陆到WEBUI,当CPE中的未读消息达到最大存储容量时,旧的未读消息可能被新的未读消息替换,这样会造成CPE中的重要消息丢失,降低了用户体验的效果。
下面通过实施例对本发明的实施方式进行说明,本发明以下实施例中的终端设备通常为具有通信功能的便携式智能终端,例如可以为一手机,本实施例中的CPE和终端设备之间可以通过超文本传输协议(Hyper Text Transfer Protocol,简称为:HTTP)进行消息交互。以下几个实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图1为本发明实施例提供的一种消息处理方法的流程图。本实施例提供的消息处理方法适用于通过终端设备对CPE中消息进行查询和处理的情况中,该方法可以由消息处理装置执行,该消息处理装置通过硬件和软件结合的方式来实现,该装置可以集成在CPE的处理器中,供处理器调用使用。如图1所示,本实施例的方法可以包括:
S110,CPE在检测到该CPE中有未读消息时,向接入该CPE的终端设备发送消息推送请求。
在本实施例中,CPE可以实时检测其自身是否接收到未读消息,从而在检测到已接收到未读消息时,向接入该CPE的终端设备发送消息推送请求,在实际应用中,CPE在检测到该CPE中有未读消息时,可以将该未读消息在CPE上的存储身份标识号码(Identity,简称为:ID)、时间、发送信息和内容组装在HTTP请求中,形成上述消息推送请求,该消息推送请求可以为HTTP POST请求;需要说明的是,HTTP协议中通过指令实现对资源的处理方式,POST指令是指:向指定资源提交数据,请求服务器进行增添新的数据,该增添的数据被包含在请求本文中,该请求可能会创建新的资源或修改已有资源,或二者皆有可能。
本实施例中的CPE在检测到有未读消息时,向已接入该CPE的终端设备发送消息推送请求,若没有接入该CPE的终端设备,则不需要执行发送消息推送请求的操作,在实际应用中,本实施例的S110之前还可包括:S100,CPE检测到终端设备接入该CPE后,实时检测该CPE中是否有未读消息。本发明实施例中CPE检测到有终端设备接入后,可以通过运行预置的程序开启实时检测的操作,相应地,接入CPE的终端设备在确定接入成功后,同样可以通过运行程序实时检测是否接收到CPE发送的消息推送请求,本实施例的CPE上运行的程序例如可以是预配置的程序模块,终端设备上运行的程序例 如可以是从网络端下载的应用程序(Application,简称为:APP)。
举例来说,本实施例中的CPE检测到未读消息后,将未读消息在CPE上的存储ID、时间,发送信息和内容组装在消息推送请求中发送给终端设备,未读消息的发送信息例如包括发送人和发送时间等信息,发送的目的地址例如为http://192.168.0.100/client/post,发送的数据内容例如为:
cmd=UNREADSMS&mem_ID=10&source_ID=18891006531&source_nam e=Jonny&receive_time=20150515 13:24:22&content=XXXXX。
上述192.168.0.100是终端设备中APP的地址,mem_ID为未读消息在CPE中的存储ID,例如为以10,source_ID为未读消息的发送号码,例如为18891006531,source_name为source_ID在CPE上存储的对应姓名,例如为Jonny,receive_time为CPE接收到该未读消息的时间例如为2015-05-15,13:24:22,content为该短信的内容,以“XXXXX”代替其实际内容。本实施例中的消息推送请求的报文内容通常可以采用标准JavaScript(一种脚本语言)对象表示法(JavaScript Object Notation,简称为:JSON)文本格式,该JSON文本格式具有通用性好,便于解析等优点。
S120,CPE接收终端设备返回的消息推送响应,该消息推送响应用于向CPE指示所述终端设备对消息推送请求的处理状态。
在本实施例中,终端设备接收到消息推送请求后,可以初步解析该消息推送请求,并且可以判断出该消息推送请求是否为合法请求,如果该消息推送请求不合法,则返回{"result":"-1"};如果该消息推送请求合法,则返回{"result":"0"}。也就是说,CPE根据接收到的消息推送响应的内容,可以确定出终端设备对消息推送请求的处理状态,即可知终端设备是否可以获取到CPE上的未读消息。
本实施例中通过HTTP协议推送未读消息的方式,当CPE与终端设备建立连接后,CPE和终端设备上均通过运行预置的程序,实现将CPE上的未读消息携带在HTTP请求包上推送给终端设备,终端设备在解析出该HTTP请求包中的未读消息时,可以提醒用户进行查阅,用户可以随时通过终端设备查看CPE中的未读消息,这样用户不用登陆到WEBUI上就能阅读未读消息,从而避免了CPE中的未读消息容易丢失的问题;并且本实施例提供的方 法,使用HTTP协议的请求包和响应包在CPE和终端设备之间进行数据交互,既避免了使用短信方式给用户带来的额外经济费用,也能避免使用邮件方式造成的不及时性。
本实施例所提供的消息处理方法,通过CPE在检测到该CPE中有未读消息时,向接入该CPE的终端设备发送消息推送请求,从而CPE可以通过接收终端设备发送的消息推送响应,获知终端设备对消息推送请求的处理状态,即获知终端设备是否获取到未读消息,进而实现在不登陆WEBUI的情况下就可以方便的查阅CPE中的未读消息,并且本实施例通过HTTP协议在CPE和终端设备之间进行数据交互的方式,解决了通过发送邮件的方式查询CPE中的消息,由于会造成消息查询缺乏及时性,而导致查询CPE中的未处理消息具有较大限制的问题。
相关技术中的未携带的通讯设备接收到发送端设备发送的短信后,还可以通过将未读消息以发送短信的方式恢复该发送端设备,这样通过发送短信的方式获取未读消息会产生额外的通信费用;相比之下,本实施例中的CPE与终端设备的采用HTTP协议交互数据包的形式,避免了额外通信费用的产生。另外,相关技术中通过发送邮件查询CPE中未读消息的方式,需要终端设备配置有查阅邮件的功能,对终端设备的硬件和软件的要求都比较高;另外,需要用户通过终端设备主动向CPE设备发送固定格式及内容的短信后,才能接收到CPE上的未读消息;相比之下,本实施例提供的方式,仅通过发送和接收HTTP数据包,即可获取到CPE中的未读消息,只要CPE和终端设备均支持HTTP协议即可实现,并且在CPE和终端设备建立连接后,均通过运行预置的程序执行推送和获取CPE中未读消息的方法,在用户未能主动查阅的情况下,同样可以获取到CPE中的未读消息。
可选地,图2为本发明实施例提供的另一种消息处理方法的流程图,在上述图1所示实施例的基础上,本实施例提供的方法还可以包括:S130,CPE接收终端设备发送的消息操作请求,该消息操作请求中包括操作指令和操作指令所指示的消息在CPE中的存储ID;S140,CPE向终端设备发送消息操作响应,该消息操作响应用于向终端设备指示CPE对消息操作请求的处理状态。
在本实施例中,终端设备可以解析CPE发送的消息推送请求,将消息推送请求中的mem_ID、source_ID、source_name、receive_time和content字段的内容解析出来,然后保存在数据库中,并且可以提示用户执行每项操作,从而通过用户输入的操作指令向CPE发送消息操作请求,该消息操作请求中包括用户输入的操作指令和该操作指令所指示的消息,即可以通过用户在终端设备上执行的操作对CPE中指定的消息执行操作,例如用户通过终端设备删除一条消息,CPE在接收到消息操作请求后,可以删除CPE中相应的消息。
举例来说,本实施例中的终端设备检测到用户的操作后,例如为阅读、删除或标记等操作,将操作指令,以及该操作指令所指示的消息在CPE上的存储ID组装成HTTP请求包发送给CPE,该HTTP请求包同样为HTTP POST请求,发送的目的地址例如为http://192.168.0.1/client/post,发送的数据内容例如为:
cmd=READ_SMS&mem_ID=10或
cmd=DELETE_SMS&mem_ID=10。
上述192.168.0.1是CPE的地址,READ表示为阅读指令,DELETE表示为删除指令,mem_ID为操作指令所指示的消息在CPE中的存储ID,例如为以10。本实施例中的消息操作请求的报文内容同样可以采用标准JSON文本格式。
在本实施例中,CPE接收到消息操作请求后,同样可以初步解析该消息操作请求,并且可以判断出该消息操作请求是否为合法请求,如果该消息操作请求不合法,则返回{"result":"-1"};如果该消息操作请求合法,则返回{"result":"0"}。也就是说,终端设备根据接收到的消息操作响应的内容,可以确定出CPE对消息操作请求的处理状态,即可知CPE是否可以执行用户指示的相关操作。若终端设备根据该消息操作响应获知CPE已确定出消息操作请求为合法请求,则本实施例在S140之后还包括:S150,CPE根据消息操作请求对操作指令所指示的消息执行该操作指令所指示的操作;其中,在CPE返回的消息操作响应指示为合法时,才会执行操作指令所指示的操作。
需要说明的是,本实施例中CPE接收到的消息操作请求所指示的消息可 以为上述实施例中的未读消息,也可以为终端设备上用户已经阅读过的其它消息,用户在对终端设备上的消息执行操作时,不限于是当前刚接收到的未读消息,只要是终端设备的数据库中存储的消息,用户均可以对其执行操作;因此,本实施例不限制S110~S120与S130~S150的执行顺序,图2所示实施例以S110~S120在S130~S150之前执行为例予以示出。例如CPE解析出上述HTTP POST请求后,将cmd和mem_ID解析出来,然后将mem_ID的消息改为已读消息或者删除该消息。另外,由于CPE中存储量的限制,本实施例中通过HTTP协议可以随时处理CPE中的消息,可以进一步保证CPE在接收到新的消息时,不会覆盖还未查阅的旧消息。
图3为本发明实施例提供的又一种消息处理方法的流程图。本实施例提供的消息处理方法适用于通过终端设备对CPE中消息进行查询和处理的情况中,该方法可以由消息处理装置执行,该消息处理装置通过硬件和软件结合的方式来实现,该装置可以集成在终端设备的处理器中,供处理器调用使用。如图3所示,本实施例的方法可以包括:
S210,终端设备接收CPE在检测到该CPE中有未读消息时发送的消息推送请求,其中,该终端设备为CPE检测到未读消息前,接入CPE的终端设备。
在本实施例中,终端设备接收到的消息推送请求,为检测到具有未读消息前与终端设备建立连接的CPE发送的,与上述实施例类似地,终端设备与CPE建立连接后,CPE可以通过运行预置的程序开启实时检测的操作,相应地,接入CPE的终端设备在确定接入成功后,可以通过运行程序实时检测是否接收到CPE发送的消息推送请求,本实施例的CPE上运行的程序例如可以是预配置的程序模块,终端设备上运行的程序例如可以是从网络端下载的APP。
需要说明的是,本实施例中的消息推送请求同样为CPE将检测到的未读消息在该CPE上的存储ID、时间、发送信息和内容组装在HTTP请求中所形成的,该消息推送请求同样可以为HTTP POST请求,消息推送请求的发送目的地址、每项信息和内容同样可以参照上述图1所示实施例,故在此不再赘述。
S220,终端设备向CPE返回消息推送响应,该消息推送响应用于向CPE指示该终端设备对消息推送请求的处理状态。
在本实施例中,终端设备接收到消息推送请求后,可以初步解析该消息推送请求,并且可以判断出该消息推送请求是否为合法请求,与上述实施例类似地,如果该消息推送请求不合法,则返回{"result":"-1"};如果该消息推送请求合法,则返回{"result":"0"}。也就是说,CPE根据接收到的消息推送响应的内容,可以确定出终端设备对消息推送请求的处理状态,即可知终端设备是否可以获取到CPE上的未读消息。
进一步地,本实施例在实际应用中,若消息推送响应指示为:终端设备已确定消息推送请求为合法请求,则终端设备在发送消息推送响应后,还可能执行S230,终端设备解析消息推送请求,获取未读消息的接收信息和内容,并提示用户查看未读消息。本实施例中的终端设备在确定消息推送请求合法后,可以通过解析消息推送请求,分别将请求中的mem_ID、source_ID、source_name、receive_time和content字段的内容解析出来,然后保存在数据库中,并且可以通过铃声或震动提示用户CPE上接收到未读消息,以便后续执行操作。
本实施例所提供的消息处理方法,终端设备接收CPE在检测到该CPE中有未读消息时发送的消息推送请求,该终端设备为CPE检测到未读消息前已经接入该CPE的终端设备,从而终端设备通过向CPE发送的消息推送响应,向CPE指示终端设备对上述消息推送请求的处理状态,即向CPE指示终端设备是否获取到未读消息,进而实现在不登陆WEBUI的情况下就可以方便的查阅CPE中的未读消息,并且本实施例通过HTTP协议在CPE和终端设备之间进行数据交互的方式,解决了通过发送邮件的方式查询CPE中的消息,由于会造成消息查询缺乏及时性,而导致查询CPE中的未处理消息具有较大限制的问题。
相关技术中的未携带的通讯设备接收到发送端设备发送的短信后,还可以通过将未读消息以发送短信的方式恢复该发送端设备,这样通过发送短信的方式获取未读消息会产生额外的通信费用;相比之下,本实施例中的CPE与终端设备的采用HTTP协议交互数据包的形式,避免了额外通信费用的产 生。另外,相关技术中通过发送邮件查询CPE中未读消息的方式,需要终端设备配置有查阅邮件的功能,对终端设备的硬件和软件的要求都比较高;另外,需要用户通过终端设备主动向CPE设备发送固定格式及内容的短信后,才能接收到CPE上的未读消息。相比之下,本实施例提供的方式,仅通过发送和接收HTTP数据包,即可获取到CPE中的未读消息,只要CPE和终端设备均支持HTTP协议即可实现,并且在CPE和终端设备建立连接后,均通过运行预置的程序执行推送和获取CPE中未读消息的方法,在用户未能主动查阅的情况下,同样可以获取到CPE中的未读消息。
可选地,图4为本发明实施例提供的在一种消息处理方法的流程图,在上述图3所示实施例的基础上,本实施例提供的方法还可以包括:S240,终端设备根据用户的操作向CPE发送消息操作请求,该消息操作请求中包括操作指令和该操作指令所指示的消息在CPE中的存储ID;S250,终端设备接收CPE发送的消息操作响应,并根据该消息操作响应确定CPE对消息操作请求的处理状态。本实施例在消息推送响应指示为:终端设备已确定消息推送请求为合法请求时,同样包括S230,终端设备解析消息推送请求,获取未读消息的接收信息和内容,并提示用户查看未读消息。
在本实施例中,终端设备的数据库中具有保存的多个消息的内容,其中可以包括已读消息和未读消息,用户可以对终端设备中的消息执行相应操作,并且终端设备可以将用户输入的操作指令和对应的消息组装成消息执行请求发送给CPE,以指示CPE对CPE中相应的消息执行用户输入的操作。本实施例中对终端设备中消息进行处理的方式、消息操作请求的操作指令和内容,以及终端设备接收到消息操作响应时,根据响应内容确定CPE对消息操作请求的处理状态的方式,均与上述图2所示实施例相同,故在此不再赘述。
需要说明的是,本实施例中的终端设备在获知CPE已确定出消息操作请求为合法请求后,还可以确定CPE根据消息操作请求对操作指令所指示的消息执行操作指令所指示的操作,该操作指令用于指示CPE对操作指令所指示的消息执行阅读操作、删除操作或标记操作。
本实施例中终端设备发送的消息操作请求所指示的消息可以为上述实施 例中的未读消息,也可以为终端设备上用户已经阅读过的其它消息,用户在对终端设备上的消息执行操作时,不限于是当前刚接收到的未读消息,只要是终端设备的数据库中存储的消息,用户均可以对其执行操作;因此,本实施例中不限制S210~S230与S240~S250的执行顺序,图4以S210~S230在S240~S250之前执行为例予以示出。另外,由于CPE中存储量的限制,本实施例中通过HTTP协议可以随时处理CPE中的消息,可以进一步保证CPE在接收到新的消息时,不会覆盖还未查阅的旧消息。
本发明上述实施例中的CPE向终端设备推送消息,以及用户通过终端设备向CPE发送指令均是依靠HTTP协议执行的,HTTP协议的请求体和响应体包含了需要交互的数据信息,实现了用户在不登陆WEBUI的情况下可以阅读并处理CPE接收到的消息,并且不会产生额外的通信费用,并且可以保证消息查阅和处理的及时性。
本发明实施例提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述消息处理方法。
图5为本发明实施例提供的一种消息处理装置的结构示意图。本实施例提供的消息处理装置适用于通过终端设备对CPE中消息进行查询和处理的情况中,该消息处理装置通过硬件和软件结合的方式来实现,该装置可以集成在CPE的处理器中,供处理器调用使用。如图5所示,本实施例的消息处理装置包括:检测模块11、第一发送模块12和第一接收模块13。
其中,检测模块11,设置为:实时检测CPE中是否有未读消息。
可选地,本实施例在实际应用中,检测模块11还设置为:在检测到终端设备接入该CPE后,开始实时检测CPE中是否有未读消息。
第一发送模块12,设置为:在检测模块11检测到CPE中有未读消息时,向接入CPE的终端设备发送消息推送请求。
本实施例中的检测模块11在检测到有终端设备接入后,同样可以通过运行预置的程序开启实时检测的操作,相应地,接入CPE的终端设备在确定接入成功后,可以通过运行程序实时检测是否接收到CPE发送的消息推送请 求。另外,本实施例中在实际应用中,获取消息推送请求的方式为,该消息处理装置还可以包括组装模块14,设置为:在第一发送模块12向接入该CPE的终端设备发送消息推送请求之前,将检测模块11检测到的未读消息在该CPE上的存储ID、时间、发送信息和内容组装在HTTP请求中,形成上述消息推送请求,并且本实施例中的消息推送请求同样可以为HTTP POST请求,该消息推送请求的发送目的地址、每项信息和内容同样可以参照上述图1所示实施例,故在此不再赘述。
第一接收模块13,设置为:接收终端设备返回的消息推送响应,该消息推送响应用于向CPE指示终端设备对消息推送请求的处理状态。
在本实施例中,终端设备接收到消息推送请求后,同样可以初步解析该消息推送请求,并且可以判断出该消息推送请求是否为合法请求,终端设备根据判断结果向CPE发送消息推送响应的方式和内容与上述实施例相同,故在此不再赘述。
本发明实施例提供的消息处理装置用于执行本发明图1所示实施例提供的消息处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。
进一步地,在上述图5所示实施例提供的消息处理装置的结构基础上,本实施例中的第一接收模块13,还设置为:在接收终端设备返回的消息推送响应之后,接收终端设备发送的消息操作请求,消息操作请求中包括操作指令和操作指令所指示的消息在CPE中的存储ID;相应地,第一发送模块12,还设置为:向终端设备发送消息操作响应,消息操作响应用于向终端设备指示CPE对消息操作请求的处理状态。
在本实施例中,第一接收模块13接收到的消息操作请求的内容,发送模块12根据对消息操作请求的初步解析结果,向终端设备发送消息操作响应的方式和内容均与上述实施例相同;也就是说,终端设备根据接收到的消息操作响应的内容,可以确定出CPE对消息操作请求的处理状态,即可知CPE是否可以执行用户指示的相关操作。若终端设备根据该消息操作响应获知CPE已确定出消息操作请求为合法请求,则本实施例提供的消息处理装置还可以包括:处理模块15,设置为:在第一发送模块12向终端设备发送消 息操作响应之后,根据第一接收模块13接收的消息操作请求对操作指令所指示的消息执行该操作指令所指示的操作;本实施例中的操作指令用于指示处理模块15对操作指令所指示的消息执行阅读操作、删除操作或标记操作。其中,在CPE返回的消息操作响应指示为合法时,才会执行操作指令所指示的操作。
本发明实施例提供的消息处理装置用于执行本发明图2所示实施例提供的消息处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。
本实施例中CPE接收到的消息操作请求所指示的消息可以为上述实施例中的未读消息,也可以为终端设备上用户已经阅读过的其它消息,用户在对终端设备上的消息执行操作时,不限于是当前刚接收到的未读消息,只有是终端设备的数据库中存储的消息,用户均可以对其执行操作。
本实施例中的检测模块11、组装模块14和处理模块15例如可以集成于CPE的处理器中,第一发送模块12可以为CPE的发送器,第一接收模块13可以为CPE的接收器,本实施例提供的消息处理装置可以通过CPE中的实体器件实现上述功能模块的每项功能。
图6为本发明实施例提供的另一种消息处理装置的结构示意图。本实施例提供的消息处理装置适用于通过终端设备对CPE中消息进行查询和处理的情况中,该消息处理装置通过硬件和软件结合的方式来实现,该装置可以集成在终端设备的处理器中,供处理器调用使用。如图6所示,本实施例的消息处理装置包括:第二接收模块21和第二发送模块22。
其中,第二接收模块21,设置为:接收CPE在检测到该CPE中有未读消息时发送的消息推送请求,其中,终端设备为该CPE检测到未读消息前,接入该CPE的终端设备。
在本实施例中,终端设备接收到的消息推送请求,为检测到具有未读消息前与终端设备建立连接的CPE发送的,与上述实施例类似地,终端设备与CPE建立连接后,CPE可以通过运行预置的程序开启实时检测的操作,相应地,接入CPE的终端设备在确定接入成功后,可以通过运行程序实时检测是否接收到CPE发送的消息推送请求。
本实施例中的消息推送请求同样为CPE将检测到的未读消息在该CPE上的存储ID、时间、发送信息和内容组装在HTTP请求中所形成的,该消息推送请求同样可以为HTTP POST请求,该消息推送请求的发送目的地址、每项信息和内容同样可以参照上述图1所示实施例,故在此不再赘述。
第二发送模块22,设置为:向CPE返回消息推送响应,该消息推送响应用于向CPE指示终端设备对消息推送请求的处理状态。
在本实施例中,终端设备接收到消息推送请求后,同样可以初步解析该消息推送请求,并且可以判断出该消息推送请求是否为合法请求,终端设备根据判断结果向CPE发送消息推送响应的方式和内容与上述实施例相同,故在此不再赘述。
本实施例在实际应用中,若消息推送响应指示为:终端设备已确定消息推送请求为合法请求,则图6所示实施例提供的装置还可以包括:解析模块23,设置为:在第二发送模块22向CPE返回消息推送响应之后,解析消息推送请求,获取未读消息的接收信息和内容,并提示用户查看未读消息。
本发明实施例提供的消息处理装置用于执行本发明图3所示实施例提供的消息处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。
可选地,在上述图6所示实施例提供的消息处理装置的结构基础上,本实施例中的第二发送模块22,还设置为:根据用户的操作向CPE发送消息操作请求,该消息操作请求中包括操作指令和该操作指令所指示的消息在CPE中的存储ID;相应地,第二接收模块21,还设置为:接收CPE发送的消息操作响应,并根据该消息操作响应确定CPE对消息操作请求的处理状态。
在本实施例中,终端设备的数据库中具有保存的多个消息的内容,其中可以包括已读消息和未读消息,用户可以对终端设备中的消息执行每项操作,并且终端设备可以将用户输入的操作指令和对应的消息组装成消息执行请求发送给CPE,以指示CPE对CPE中相应的消息执行用户输入的操作。本实施例中对终端设备中消息进行处理的方式、消息操作请求的操作指令和内容,以及终端设备接收到消息操作响应时,根据响应内容确定CPE对消息操作请求的处理状态的方式,均与上述图2所示实施例相同,故在此不再赘 述。
本实施例中的终端设备在获知CPE已确定出消息操作请求为合法请求后,还可以确定CPE根据消息操作请求对操作指令所指示的消息执行操作指令所指示的操作,该操作指令用于指示CPE对操作指令所指示的消息执行阅读操作、删除操作或标记操作。另外,本实施例中终端设备发送的消息操作请求所指示的消息可以为终端设备接收到的未读消息,也可以为终端设备上用户已经阅读过的其它消息,用户在对终端设备上的消息执行操作时,不限于是当前刚接收到的未读消息,只有是终端设备的数据库中存储的消息,用户均可以对其执行操作。
本发明实施例提供的消息处理装置用于执行本发明图4所示实施例提供的消息处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。
本实施例中的解析模块23例如可以集成于终端设备的处理器中,第二接收模块21可以为终端设备的接收器,第二发送模块22可以为终端设备的发送器,本实施例提供的消息处理装置可以通过终端设备中的实体器件实现上述功能模块的每项功能。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
工业实用性
本发明实施例提供的消息处理方法和装置,通过CPE在检测到该CPE中有未读消息时,向接入该CPE的终端设备发送消息推送请求,从而CPE可以通过接收终端设备发送的消息推送响应,获知终端设备对消息推送请求的处理状态,即获知终端设备是否获取到未读消息,进而实现在不登陆WEBUI的情况下就可以方便的查阅CPE中的未读消息,并且本发明实施例通过HTTP协议在CPE和终端设备之间进行数据交互的方式,解决了通过发送邮件的方式查询CPE中的消息,由于会造成消息查询缺乏及时性,而导致查询CPE中的未处理消息具有较大限制的问题。

Claims (15)

  1. 一种消息处理方法,包括:
    用户端设备CPE在检测到所述CPE中有未读消息时,向接入所述CPE的终端设备发送消息推送请求;
    所述CPE接收所述终端设备返回的消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
  2. 根据权利要求1所述的消息处理方法,其中,所述CPE向接入所述CPE的终端设备发送消息推送请求之前,还包括:
    所述CPE将所述未读消息在所述CPE上的存储身份标识号码ID、时间、发送信息和内容组装在超文本传输协议HTTP请求中,形成所述消息推送请求。
  3. 根据权利要求1所述的消息处理方法,还包括:
    所述CPE接收所述终端设备发送的消息操作请求,所述消息操作请求中包括操作指令和所述操作指令所指示的消息在所述CPE中的存储身份标识号码ID;
    所述CPE向所述终端设备发送消息操作响应,所述消息操作响应用于向所述终端设备指示所述CPE对所述消息操作请求的处理状态。
  4. 根据权利要求3所述的消息处理方法,其中,所述操作指令所指示的消息为所述CPE检测到的所述未读消息,或者为所述CPE中的已读消息;
    所述操作指令用于指示所述CPE对所述操作指令所指示的消息执行阅读操作、删除操作或标记操作。
  5. 根据权利要求1~4中任一项所述的消息处理方法,其中,所述CPE在检测到所述CPE中有未读消息之前,还包括:
    所述CPE检测到所述终端设备接入所述CPE后,实时检测所述CPE中是否有未读消息。
  6. 一种消息处理方法,包括:
    终端设备接收用户端设备CPE在检测到所述CPE中有未读消息时发送的 消息推送请求,其中,所述终端设备为所述CPE检测到所述未读消息前,接入所述CPE的终端设备;
    所述终端设备向所述CPE返回消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
  7. 根据权利要求6所述的消息处理方法,其中,所述消息推送请求为所述CPE将所述未读消息在所述CPE上的存储身份标识号码ID、时间、发送信息和内容组装在超文本传输协议HTTP请求中所形成的。
  8. 根据权利要求6所述的消息处理方法,其中,所述消息推送响应用于向所述CPE指示所述终端设备已确定所述消息推送请求为合法请求,所述终端设备向所述CPE返回消息推送响应之后,还包括:
    所述终端设备解析所述消息推送请求,获取所述未读消息的接收信息和内容,并提示用户查看所述未读消息。
  9. 根据权利要求6所述的消息处理方法,还包括:
    所述终端设备根据所述用户的操作向所述CPE发送消息操作请求,所述消息操作请求中包括操作指令和所述操作指令所指示的消息在所述CPE中的存储身份标识号码ID;
    所述终端设备接收所述CPE发送的所述消息操作响应,并根据所述消息操作响应确定所述CPE对所述消息操作请求的处理状态。
  10. 根据权利要求6~9中任一项所述的消息处理方法,其中,所述操作指令所指示的消息为所述CPE检测到的所述未读消息,或者为所述CPE中的已读消息;
    所述操作指令用于指示所述CPE对所述操作指令所指示的消息执行阅读操作、删除操作或标记操作。
  11. 一种消息处理装置,包括:
    检测模块,设置为:实时检测用户终端设备CPE中是否有未读消息;
    第一发送模块,设置为:在所述检测模块检测到所述CPE中有未读消息时,向接入所述CPE的终端设备发送消息推送请求;
    第一接收模块,设置为:接收所述终端设备返回的消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
  12. 根据权利要求11所述的消息处理装置,所述消息处理装置还包括:组装模块,设置为:在所述第一发送模块向接入所述CPE的终端设备发送消息推送请求之前,将所述检测模块检测到的未读消息在所述CPE上的存储身份标识号码ID、时间、发送信息和内容组装在超文本传输协议HTTP请求中,形成所述消息推送请求。
  13. 根据权利要求11所述的消息处理装置,其中,所述第一接收模块,还设置为:在接收所述终端设备返回的消息推送响应之后,接收所述终端设备发送的消息操作请求,所述消息操作请求中包括操作指令和所述操作指令所指示的消息在所述CPE中的存储身份标识号码ID;
    所述第一发送模块,还设置为:向所述终端设备发送消息操作响应,所述消息操作响应用于向所述终端设备指示所述CPE对所述消息操作请求的处理状态。
  14. 一种消息处理装置,包括:
    第二接收模块,设置为:接收用户端设备CPE在检测到所述CPE中有未读消息时发送的消息推送请求,其中,所述终端设备为所述CPE检测到所述未读消息前,接入所述CPE的终端设备;
    第二发送模块,设置为:向所述CPE返回消息推送响应,所述消息推送响应用于向所述CPE指示所述终端设备对所述消息推送请求的处理状态。
  15. 根据权利要求14所述的消息处理装置,其中,所述消息推送响应用于向所述CPE指示所述终端设备已确定所述消息推送请求为合法请求,所述消息处理装置还包括:解析模块,设置为:在所述第二发送模块向所述CPE返回所述消息推送响应之后,解析所述消息推送请求,获取所述未读消息的接收信息和内容,并提示用户查看所述未读消息。
PCT/CN2016/079066 2015-08-14 2016-04-12 一种消息处理方法和装置 WO2016180137A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510501205.2 2015-08-14
CN201510501205.2A CN106470144A (zh) 2015-08-14 2015-08-14 一种消息处理方法和装置

Publications (1)

Publication Number Publication Date
WO2016180137A1 true WO2016180137A1 (zh) 2016-11-17

Family

ID=57248834

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079066 WO2016180137A1 (zh) 2015-08-14 2016-04-12 一种消息处理方法和装置

Country Status (2)

Country Link
CN (1) CN106470144A (zh)
WO (1) WO2016180137A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428806A (zh) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 一种会话消息的查询方法及终端
CN110401682B (zh) * 2018-04-24 2022-03-29 视联动力信息技术股份有限公司 一种数据推送方法及装置
CN109657152B (zh) * 2018-12-27 2021-02-19 北京顺丰同城科技有限公司 推送消息发送方法、装置、电子设备及可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2157762A2 (en) * 2008-08-19 2010-02-24 Arcadyan Technology Corporation Method for automatically re-connecting customer premises equipment (CPE) web user interface (UI)
CN102238108A (zh) * 2011-06-28 2011-11-09 北京神州泰岳软件股份有限公司 离线消息传输方法
CN102333018A (zh) * 2011-09-01 2012-01-25 中兴通讯股份有限公司 一种信息通知方法、系统及无线通信终端
CN103684992A (zh) * 2013-12-16 2014-03-26 深圳中兴网信科技有限公司 家庭网关、终端和数据共享方法
CN104506416A (zh) * 2014-12-17 2015-04-08 东软集团股份有限公司 一种实现消息稳定推送的方法、装置及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163276B (zh) * 2007-11-26 2011-02-02 华为技术有限公司 一种下发彩信的方法和系统、及彩信中心
CN101547214A (zh) * 2008-03-25 2009-09-30 联想(北京)有限公司 一种推送企业内部数据的方法和网络侧设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2157762A2 (en) * 2008-08-19 2010-02-24 Arcadyan Technology Corporation Method for automatically re-connecting customer premises equipment (CPE) web user interface (UI)
CN102238108A (zh) * 2011-06-28 2011-11-09 北京神州泰岳软件股份有限公司 离线消息传输方法
CN102333018A (zh) * 2011-09-01 2012-01-25 中兴通讯股份有限公司 一种信息通知方法、系统及无线通信终端
CN103684992A (zh) * 2013-12-16 2014-03-26 深圳中兴网信科技有限公司 家庭网关、终端和数据共享方法
CN104506416A (zh) * 2014-12-17 2015-04-08 东软集团股份有限公司 一种实现消息稳定推送的方法、装置及系统

Also Published As

Publication number Publication date
CN106470144A (zh) 2017-03-01

Similar Documents

Publication Publication Date Title
US9300717B2 (en) Information transmission method and system, and browser on mobile terminal
CN106603394B (zh) 订阅通知的实现方法和装置
US9749143B2 (en) Web real-time communication call transferring method and apparatus
RU2498520C2 (ru) Способ обеспечения одноранговой связи на веб-странице
WO2015039559A1 (zh) 页面重定向方法、路由设备、终端设备及系统
JP2019530033A5 (zh)
US10084884B2 (en) Facilitation of efficient web site page loading
US9282157B2 (en) Intermediary API for providing presence data to requesting clients
US9509786B2 (en) Enabling mobile applications to acquire a MAC address for obtaining location information
KR20180004093A (ko) 인스턴트 메시징 동안의 미디어 콘텐츠의 전송
US20140040390A1 (en) Publish Information on Website
WO2016180137A1 (zh) 一种消息处理方法和装置
RU2009127716A (ru) Способ и устройство для межсетевого извлечения связанных с пользователем данных
WO2014086222A1 (zh) 设置视频通话参数、和发送能力参数的方法及装置
US20150026274A1 (en) Method and apparatus for routing a message
US20150149629A1 (en) User online state querying method and apparatus
CN111064729B (zh) 报文的处理方法及装置、存储介质和电子装置
WO2016150333A1 (zh) 实现语音信箱系统与融合通信系统互通的方法和系统
WO2017005118A1 (zh) 维持通信连接的方法、装置、终端及服务器
WO2010072082A1 (zh) 一种机顶盒服务器以及网络电视增值业务中机顶盒用户接入及维护方法和系统
WO2017000540A1 (zh) 数据查询方法及装置
WO2016095521A1 (zh) 一种域名系统dns重定向的方法、装置和系统
WO2017181407A1 (zh) 一种网络认证方法、客户端、终端设备及平台
CN103312592B (zh) 一种在网页上批量向即时通信客户端发送信息的方法
WO2011153772A1 (zh) 一种获取多个即时信息的方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16791987

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16791987

Country of ref document: EP

Kind code of ref document: A1