WO2017219815A1 - 消息传输系统、消息发送方法和装置、接收方法和装置 - Google Patents

消息传输系统、消息发送方法和装置、接收方法和装置 Download PDF

Info

Publication number
WO2017219815A1
WO2017219815A1 PCT/CN2017/085462 CN2017085462W WO2017219815A1 WO 2017219815 A1 WO2017219815 A1 WO 2017219815A1 CN 2017085462 W CN2017085462 W CN 2017085462W WO 2017219815 A1 WO2017219815 A1 WO 2017219815A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
communication terminal
instant messaging
sent
terminal
Prior art date
Application number
PCT/CN2017/085462
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 WO2017219815A1 publication Critical patent/WO2017219815A1/zh

Links

Images

Definitions

  • the present application relates to the field of communications, for example, to a message transmission system, a message transmission method and apparatus, and a reception method and apparatus.
  • RCS ich Communication Suite
  • the offline message will be accumulated on the RCS server.
  • the RCS server will send all offline messages to the RCS server.
  • the user receives a large number of offline messages in a short period of time, and the terminal load is high, which may cause the terminal to die.
  • the user terminal's power and network traffic are quickly consumed.
  • the network is interrupted for a short time, and the message that the reception fails will be accumulated in the RCS server for a long time, and cannot be pushed to the user in time. Thereby affecting the user's experience.
  • the embodiments of the present disclosure provide a message transmission system, a message sending method and apparatus, and a receiving method and apparatus, to at least solve the technical problem that a terminal load is high when an offline message is sent to a terminal in the related art.
  • a message sending method comprising: detecting whether a communication terminal in an offline state resumes a network connection; and detecting that the communication terminal resumes a network connection, acquiring a request to be sent to the communication terminal Multiple instant messaging messages; package multiple instant messaging And send the packaged message packet to the communication terminal.
  • Detecting whether the communication terminal in the offline state resumes the network connection may include: periodically sending the probe message to the communication terminal, and receiving the response message of the communication terminal, wherein the probe message is allowed to be received by the communication terminal after the communication terminal resumes the network connection. And receiving a network registration message of the communication terminal, wherein when receiving the network registration message or the response message sent by the communication terminal, determining that the communication terminal resumes the network connection.
  • Acquiring the plurality of instant messaging messages sent to the communication terminal may include: acquiring a plurality of instant messaging messages from the target storage device.
  • the method may further include: directly saving the received instant messaging message to the target storage device when receiving the instant messaging message requested to be sent to the communication terminal; or When receiving the instant messaging message sent to the communication terminal, the received instant messaging message is sent to the communication terminal, and when the transmission fails, the received instant messaging message is saved to the target storage device.
  • Packing a plurality of instant messaging messages and sending the packaged message packets to the communication terminal may include: packaging a plurality of instant messaging messages to obtain the packaged message packets; compressing the packaged message packets, and transmitting the compressed message packets To the communication terminal.
  • a message receiving method comprising: after recovering a network connection with a message server, receiving a message packet sent by a message server; decompressing the received message packet, Get multiple instant messaging messages.
  • the method may further include: displaying a plurality of instant messaging messages.
  • a message transmitting apparatus comprising: a detecting unit configured to detect whether a communication terminal in an offline state resumes a network connection; and an acquiring unit configured to detect a communication When the terminal resumes the network connection, acquiring a plurality of instant messaging messages that are sent to the communication terminal, and the sending unit is configured to package the plurality of instant messaging messages, and send the packaged message packet to the communication terminal.
  • the detecting unit may include: a first detecting module configured to periodically send the detecting message to the communication terminal, and receive a response message of the communication terminal, wherein the detecting message is to restore the network connection at the communication terminal Afterwards, the message received by the communication terminal is allowed; the second detecting module is configured to receive a network registration message of the communication terminal, wherein when receiving the network registration message or the response message sent by the communication terminal, determining that the communication terminal resumes the network connection .
  • the obtaining unit may include: an obtaining module configured to acquire a plurality of instant messaging messages from the target storage device.
  • the device may further include: a first saving unit configured to directly save the received instant messaging message to the target storage device when receiving the instant messaging message requested to be sent to the communication terminal; the second saving unit is configured to be When receiving the instant messaging message sent to the communication terminal, the received instant messaging message is sent to the communication terminal, and when the transmission fails, the received instant messaging message is saved to the target storage device.
  • a first saving unit configured to directly save the received instant messaging message to the target storage device when receiving the instant messaging message requested to be sent to the communication terminal
  • the second saving unit is configured to be When receiving the instant messaging message sent to the communication terminal, the received instant messaging message is sent to the communication terminal, and when the transmission fails, the received instant messaging message is saved to the target storage device.
  • the sending unit may include: a packaging module configured to package a plurality of instant messaging messages to obtain a packaged message packet; and a sending module configured to compress the packaged message packet and send the compressed message packet to the communication terminal .
  • a message receiving apparatus comprising: a receiving unit configured to receive a message packet sent by a message server after restoring a network connection with a message server; It is configured to decompress the received message packet to obtain multiple instant messaging messages.
  • the apparatus can also include a display unit configured to display a plurality of instant messaging messages.
  • a message transmission system comprising a message server and a communication terminal, wherein: the message server acquires a plurality of requests for transmission to the communication terminal when detecting that the communication terminal resumes the network connection The instant messaging message is sent to the communication terminal by the packaged plurality of instant messaging messages; the communication terminal receives the message packet sent by the message server, and decompresses the received message packet to obtain a plurality of instant messaging messages.
  • a storage medium which may be configured to store program code for performing the steps of: detecting whether a communication terminal in an offline state resumes a network connection; detecting communication terminal recovery When the network is connected, the plurality of instant messaging messages sent to the communication terminal are obtained; the plurality of instant messaging messages are packaged, and the packaged message packet is sent to the communication terminal.
  • the storage medium can also be configured to store program code for performing the following steps: in recovery and cancellation After the network connection of the information server, the message packet sent by the message server is received; and the received message packet is decompressed to obtain a plurality of instant messaging messages.
  • An embodiment of the present disclosure further provides an electronic device, including:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
  • detecting whether the communication terminal in the offline state resumes the network connection when detecting that the communication terminal resumes the network connection, acquiring a plurality of instant messaging messages that are requested to be sent to the communication terminal; packaging a plurality of instant messaging messages, and Send the packaged message packet to the communication terminal. Therefore, the technical problem that the terminal load is high when sending the offline message to the terminal in the related art is solved, and the technical effect of reducing the terminal load is achieved.
  • FIG. 1 is a schematic diagram of a terminal in accordance with an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method of transmitting a message according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of an alternative message sending method in accordance with an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a message receiving method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a message transmitting apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a message receiving apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a message transmission system in accordance with an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the mobile terminal may include one or more (only one shown) processor 101 (the processor 101 may include, but is not limited to, a microprocessor MCU or programmable A processing device such as a logic device FPGA, a memory 103 configured to store data, and a transmission device 105 configured as a communication function.
  • processor 101 may include, but is not limited to, a microprocessor MCU or programmable A processing device such as a logic device FPGA, a memory 103 configured to store data, and a transmission device 105 configured as a communication function.
  • FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the memory 103 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the control method of the device in the embodiment of the present disclosure, and the processor 101 executes the software program and the module stored in the memory 103, thereby
  • the above methods are implemented by performing various functional applications and data processing.
  • the memory can include high speed random access memory and can also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • the memory can include memory remotely located relative to the processor, which can be connected to the computer terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmitting device is configured to receive or transmit data via a network.
  • the network examples described above may include a wireless network provided by a communication provider of the computer terminal.
  • the transmission device includes a Network Interface Controller (NIC) that can be connected to other network devices through the base station to communicate with the Internet.
  • the transmission device can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • the RCS communication terminal goes offline after a period of time, and needs to receive and process a large number of offline in a short time.
  • the RCS message causes the terminal CPU to be busy, causing the user terminal to fail to respond to other operations in a short period of time, causing the terminal to die.
  • the power of the user terminal is quickly consumed, and the network traffic is also greatly increased.
  • the mobile terminal network environment is not Stable, often short-term network interruption, will cause message reception failure, such as the user into the elevator, subway and other mobile signal is not good, because the RCS server can not sense when the terminal network will return to normal, only waiting for the terminal to actively send a registration message
  • the offline message can be delivered only when the message is refreshed, usually between half an hour and one hour. This will cause the message to be accumulated on the RCS server for a long time and cannot be pushed to the user in time, which will affect the user experience.
  • a method embodiment of a message transmitting method is provided, and it should be noted that the steps shown in the flowchart of the drawing may be in a computer such as a set of computer executable instructions. The steps are performed in the system, and although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 2 is a flowchart of a message sending method according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes the following steps:
  • Step S201 detecting whether the communication terminal in the offline state resumes the network connection.
  • Step S202 when detecting that the communication terminal resumes the network connection, acquiring a plurality of instant messaging messages that are requested to be sent to the communication terminal.
  • Step S203 packaging a plurality of instant messaging messages, and sending the packaged message packets to the communication terminal.
  • detecting whether the communication terminal in the offline state resumes the network connection when detecting that the communication terminal resumes the network connection, acquiring a plurality of instant messaging messages that are requested to be sent to the communication terminal; packaging a plurality of instant messaging messages, and sending and packaging After the message packet is sent to the communication terminal, instead of sending a plurality of instant messaging messages separately in a short time, the communication terminal does not need to consume too much resources when receiving the instant messaging message, thereby solving the related art and sending the offline message.
  • the technical problem that the terminal load is high when the terminal is reached, and the technical effect of reducing the terminal load is achieved.
  • the foregoing instant messaging message includes an instant message such as an RCS message;
  • the execution body of the foregoing step may be an information transmitting device, a transmitting node, an information server (such as an RCS server), and the like, but is not limited thereto, and the following is an RCS server.
  • an information server such as an RCS server
  • the received instant messaging message may be saved and sent when the RCS server receives the instant messaging message sent to the communication terminal. Receiving the instant messaging message to the communication terminal, saving the received instant messaging message to the target storage device when the transmission fails; if the communication terminal has been determined to be offline, the instant messaging message may be received upon requesting to be sent to the communication terminal When the received instant messaging message is directly saved to the target storage device, the resources of the RCS server are wasted.
  • the method when detecting whether the communication terminal in the offline state resumes the network connection, the method may be: periodically sending the probe message to the communication terminal, and receiving the response message of the communication terminal, where the probe message is After the communication terminal resumes the network connection, the message received by the communication terminal is allowed; and the network registration message of the communication terminal is received, wherein when the network registration message or the response message sent by the communication terminal is received, it is determined that the communication terminal resumes the network connection.
  • the number of consecutive probe messages is unsuccessful, that is, the number of times the probe message is sent reaches a preset value (for example, 100 times), it means that the user is not online, and then the probe is not actively detected, and the probe message is stopped. Wait for the user to go online to notify the message to save server processing power.
  • the plurality of instant messaging messages may be acquired from the target storage device configured to save the offline message.
  • packaging a plurality of instant messaging messages and transmitting the packaged message packets to the communication terminal comprises: packaging a plurality of instant messaging messages to obtain the packaged message packets; compressing the packaged message packets and transmitting The compressed message packet is sent to the communication terminal.
  • FIG. 3 shows a flow of information forwarding in a case where the network environment of the mobile terminal is unstable and the network is interrupted for a short time, as shown in FIG. 3:
  • step S301 the network between the terminal A and the RCS AS (Application Server) is normal, and the RCS message can be normally sent and received.
  • RCS AS Application Server
  • Step S302 the terminal A network is interrupted for a short time, such as entering a relatively weak mobile signal such as an elevator or a garage;
  • Step S303 at this time, another user sends a message 1 to the terminal A, and the RCS AS fails to forward the message to the terminal A;
  • Step S304 the RCS AS forwards the message 1 of the forwarding failure to the offline message storage module, and the offline message storage module saves the message;
  • Step S305 the offline message is saved successfully, and a timing notification message is inserted in the retry timing queue of the user, for periodically triggering the retry;
  • Step S306 at this time, the group chat server sends the message 2 to the message N to the terminal A, and the RCS AS fails to forward the message to the terminal A;
  • Step S307 the RCS AS forwards the message 2 to the message N that failed to be forwarded to the offline message storage module, and the offline message storage module saves the message;
  • Step S308 the offline message is successfully saved, and the content of the retry timing queue notification message of the user is updated, such as a failure message counter;
  • Step S309 the terminal A user retry the queue timing, for example, after 2 minutes, triggering a retry notification to the RCS AS module;
  • Step S310 the RCS AS forwards the notification to the terminal A to perform network detection.
  • Step S311 the RCS AS fails to send the retry notification message, and the user network is not restored.
  • the retry policy configured by the user, for example, retrying after 3 minutes, a timing notification message is reinserted in the retry timing queue of the user;
  • Step S312 the terminal A network recovers, such as going out of a relatively weak mobile station such as an elevator or a garage, and entering a place where the mobile signal is relatively strong;
  • Step S313 the terminal A user retry the queue timing, triggering a retry notification to the RCS AS module;
  • Step S314 the RCS AS forwards the notification to the terminal A to perform network detection.
  • Step S315 the terminal A returns a probe message response, indicating that the terminal A network returns to normal;
  • Step S316 the RCS AS obtains the user offline message 1 from the offline message storage module
  • Step S317 the obtaining is successful, and the RCS AS sequentially acquires all offline messages of the user to the offline message storage module.
  • Step S319 the RCS AS sends the packet compressed message to the terminal A;
  • step S320 the terminal A parses the package compressed message, restores the original multiple messages, and saves and displays the message.
  • Figure 4 shows the flow of information forwarding when the user is offline for a period of time and does not receive the message in time, that is, when the terminal A is interrupted for a long time, as shown in Figure 4:
  • Step S401 the network between the terminal A and the RCS AS is normal, and the RCS message can be normally sent and received.
  • step S402 the network of the terminal A is interrupted. If the mobile number is turned off by the aircraft, the power is insufficient, or other reasons, the user actively shuts down;
  • Step S403 another user sends a message 1 to the terminal A, and the RCS AS fails to forward the message to the terminal A;
  • Step S404 the RCS AS forwards the message 1 of the forwarding failure to the offline message storage module, and the offline message storage module saves the message;
  • Step S405 the offline message is saved successfully, and a timing notification message is inserted in the retry timing queue of the user, for periodically triggering the retry;
  • Step S406 at this time, the group chat server sends the message 2 to the message N to the terminal A, and the RCS AS fails to forward the message to the terminal A;
  • Step S407 the RCS AS forwards the message 2 to the message N that failed to be forwarded to the offline message storage module, and the offline message storage module saves the message;
  • Step S408 the offline message is successfully saved, and the content of the retry timing queue notification message of the user, such as a failure message counter, is updated;
  • Step S409 the terminal A user retry queue is timed, for example, after 2 minutes, triggering a retry notification to the RCS AS module;
  • Step S410 the RCS AS forwards the notification to the terminal A to perform network detection.
  • Step S411 the RCS AS fails to send the retry notification message, and the user network is not restored.
  • the retry policy configured by the user such as retrying after 3 minutes, a timing notification message is reinserted in the retry timing queue of the user;
  • Step S412 the terminal A user retry the queue timing, and trigger the retry notification to the RCS AS module again;
  • Step S413 the RCS AS forwards the notification to the terminal A to perform network detection.
  • step S414 the RCS AS fails to send the retry notification message, and the user network is not restored. Based on the retry policy configured by the user, the RCS AS finds that after repeated retry for a long time and the user network is still recovering, the RCS AS aborts the retry and does not set a new timing retry notification message;
  • step S415 the network of the terminal A is restored, and the registration is re-registered. If the user reboots, the RCS AS receives the online message of the terminal A.
  • Step S416, the RCS AS obtains the user offline message 1 from the offline message storage module
  • Step S417 the obtaining is successful, and the RCS AS sequentially acquires all offline messages (message 2 to message N) of the user to the offline message storage module.
  • Step S419 the RCS AS sends the packet compressed message to the terminal A;
  • step S420 the terminal A parses the package compressed message, restores the original multiple messages, and saves and displays the message.
  • the RCS server optimizes the offline RCS message (instant messaging message) delivery process.
  • the server receives the online notification, the server compresses all the offline messages of the user into a large message, and then actively delivers the message.
  • the user is prevented from sending multiple times of a single message to improve the response speed of the user terminal.
  • the network traffic and the terminal power of the user terminal are greatly saved, and the user experience is improved.
  • each user generates a timing trigger message queue according to the configured policy.
  • the RCS server actively sends a probe message to the user. If successful, the terminal network is restored to normal, and all offline messages of the user are performed. If the packet is unsuccessful, the terminal network is not restored. If the probe message is unsuccessful, the user is not online. Save server processing power.
  • the method of the embodiment can be implemented by means of software plus a necessary general hardware platform, and can of course also be implemented by hardware.
  • the technical solution of the present disclosure which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • a method embodiment of a message receiving method there is provided a method embodiment of a message receiving method, and it is to be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and Although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 5 is a flowchart of a message receiving method according to an embodiment of the present disclosure. As shown in FIG. 5, the method includes the following steps:
  • Step S501 After recovering the network connection with the message server, receiving the message packet sent by the message server.
  • Step S502 decompressing the received message packet to obtain a plurality of instant messaging messages.
  • the message packet sent by the message server is received, and the received message packet is decompressed to obtain multiple instant messaging messages, because a packet is received instead of Sending a plurality of instant messaging messages separately in a short time, so that the communication terminal does not consume excessive resources when receiving the instant messaging message, thereby solving the technology in the related art that the terminal load is high when the offline message is sent to the terminal.
  • the problem is to achieve the technical effect of reducing the terminal load.
  • the method may further include: displaying a plurality of instant messaging messages.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, It is implemented by hardware.
  • the technical solution of the present disclosure which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • a message transmitting apparatus is also provided in the embodiment of the present disclosure.
  • the apparatus is configured to implement the above-described embodiments and implementations, and details thereof have been omitted.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the devices described in the following embodiments are implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable.
  • FIG. 6 is a schematic diagram of a message transmitting apparatus according to an embodiment of the present disclosure.
  • the apparatus may include: a detecting unit 61, an obtaining unit 62, and a transmitting unit 63.
  • the detecting unit 61 is configured to detect whether the communication terminal in the offline state resumes the network connection.
  • the obtaining unit 62 is configured to acquire, when detecting that the communication terminal resumes the network connection, acquire a plurality of instant messaging messages that are requested to be sent to the communication terminal.
  • the sending unit 63 is configured to pack a plurality of instant messaging messages and send the packaged message packets to the communication terminal.
  • the detecting unit is configured to detect whether the communication terminal in the offline state resumes the network connection; and the acquiring unit is configured to acquire, when detecting that the communication terminal resumes the network connection, acquire multiple instant messaging requests to be sent to the communication terminal a sending unit configured to pack a plurality of instant messaging messages and send the packaged message packets to the communication terminal instead of separately transmitting the plurality of instant messaging messages in a short time so that the communication terminal receives the instant messaging message
  • the technical problem of causing a high terminal load when sending an offline message to the terminal is solved, and the technical effect of reducing the terminal load is achieved.
  • the foregoing instant messaging message includes an instant message such as an RCS message;
  • the foregoing device may be a transmitting device, a transmitting node, an information server (such as an RCS server), and the like, but is not limited thereto, and the following uses an RCS server as an example for description. .
  • the detecting unit includes: a first detecting module configured to periodically transmit the probe Sending a message to the communication terminal, and receiving a response message of the communication terminal, wherein the probe message is a message that is allowed to be received by the communication terminal after the communication terminal resumes the network connection; and the second detection module is configured to receive the network registration message of the communication terminal And determining, when receiving the network registration message or the response message sent by the communication terminal, determining that the communication terminal resumes the network connection.
  • the obtaining unit includes: an obtaining module configured to acquire a plurality of instant messaging messages from the target storage device.
  • the foregoing apparatus may further include: a first saving unit configured to directly save the received instant messaging message to the target storage device when receiving the instant messaging message requested to be sent to the communication terminal; the second saving unit, The method is configured to: when receiving the instant messaging message sent to the communication terminal, send the received instant messaging message to the communication terminal, and save the received instant messaging message to the target storage device when the transmission fails.
  • a first saving unit configured to directly save the received instant messaging message to the target storage device when receiving the instant messaging message requested to be sent to the communication terminal
  • the method is configured to: when receiving the instant messaging message sent to the communication terminal, send the received instant messaging message to the communication terminal, and save the received instant messaging message to the target storage device when the transmission fails.
  • the sending unit includes: a packaging module configured to package a plurality of instant messaging messages to obtain a packaged message packet; and a sending module configured to compress the packaged message packet and send the compressed message packet to the communication terminal.
  • the RCS server optimizes the offline RCS message (instant messaging message) delivery process.
  • the server receives the online notification, the server compresses all the offline messages of the user into a large message, and then actively delivers the message.
  • the user is prevented from sending multiple times of a single message to improve the response speed of the user terminal.
  • the network traffic and the terminal power of the user terminal are greatly saved, and the user experience is improved.
  • each user generates a timing trigger message queue according to the configured policy.
  • the RCS server actively sends a probe message to the user. If successful, the terminal network is restored to normal, and all offline messages of the user are performed. If the packet is unsuccessful, the terminal network is not restored. If the probe message is unsuccessful, the user is not online. Save server processing power.
  • each of the above modules can be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the above modules are all located in the same processor; or, the above modules are respectively located in different processors in any combination.
  • a message receiving apparatus is also provided in the embodiment of the present disclosure.
  • the apparatus is configured to implement the above-described embodiments and implementations, and details thereof have been omitted.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the devices described in the following embodiments are implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable.
  • FIG. 7 is a schematic diagram of a message receiving apparatus according to an embodiment of the present disclosure. As shown in FIG. 7, the apparatus may include: a receiving unit 71 and a processing unit 72.
  • the receiving unit 71 is configured to receive the message packet sent by the message server after restoring the network connection with the message server.
  • the processing unit 72 is configured to decompress the received message packet to obtain a plurality of instant messaging messages.
  • the receiving unit after receiving the network connection with the message server, receives the message packet sent by the message server, and the processing unit decompresses the received message packet to obtain multiple instant messaging messages, because the received information is a message.
  • Packets instead of sending multiple instant messaging messages in a short period of time, so that the communication terminal does not consume too much resources when receiving instant messaging messages, thereby solving the related art, causing terminal load when sending offline messages to the terminal Higher technical problems have achieved the technical effect of reducing the terminal load.
  • the apparatus may further include: a display unit configured to display a plurality of instant messaging messages.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • a message transmission system is also provided in the embodiment of the present disclosure. As shown in FIG. 8, the system includes a message server 81 and a communication terminal 82.
  • the message server When detecting that the communication terminal resumes the network connection, the message server acquires a plurality of instant messaging messages that are sent to the communication terminal, and sends a message packet obtained by packing the plurality of instant messaging messages to the communication terminal; The communication terminal receives the message packet sent by the message server, and decompresses the received message packet to obtain a plurality of instant messaging messages.
  • the message server when detecting that the communication terminal resumes the network connection, acquires multiple instant messaging messages that are requested to be sent to the communication terminal, and sends a message packet obtained by packing a plurality of instant messaging messages to the communication terminal; the communication terminal receives the message.
  • the message packet sent by the server, and decompressing the received message packet, and obtaining a plurality of instant messaging messages because the terminal receives a message packet, instead of separately transmitting a plurality of instant messaging messages in a short time, so that the communication terminal
  • the technical problem of causing a high terminal load when sending an offline message to the terminal is solved, and the technical effect of reducing the terminal load is achieved.
  • Embodiments of the present disclosure also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further arranged to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs, according to the stored program code in the storage medium, whether: detecting whether the communication terminal in the offline state resumes the network connection; and when detecting that the communication terminal resumes the network connection, acquiring the request and sending the message to the communication Multiple instant messaging messages of the terminal; packaging multiple instant messaging messages, and sending the packaged message packets to the communication terminal.
  • the processor executes according to the stored program code in the storage medium: After recovering the network connection with the message server, receiving the message packet sent by the message server; decompressing the received message packet to obtain a plurality of instant messaging messages.
  • the embodiment of the present disclosure further provides a schematic structural diagram of an electronic device.
  • the electronic device includes:
  • At least one processor 90 which is exemplified by a processor 90 in FIG. 9; and a memory 91, may further include a communication interface 92 and a bus 93.
  • the processor 90, the communication interface 92, and the memory 91 can complete communication with each other through the bus 93.
  • Communication interface 92 can be used for information transfer.
  • Processor 90 can invoke logic instructions in memory 91 to perform the methods of the above-described embodiments.
  • logic instructions in the memory 91 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 91 is a computer readable storage medium and can be used to store a software program, a computer executable program, a program instruction/module corresponding to the method in the embodiment of the present disclosure.
  • the processor 90 executes the function application and the data processing by executing the software programs, the instructions, and the modules stored in the memory 91, that is, the message transmitting and receiving methods in the foregoing method embodiments.
  • the memory 91 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 91 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network) Apparatus, etc.) performing the method of the embodiment of the present disclosure Part or part of the steps.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • the message transmission system, the message transmission method and apparatus, the receiving method and the device provided by the present application achieve the effect of reducing the terminal load.

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请提供了一种消息传输系统、消息发送方法和装置、接收方法和装置。其中,该发送方法包括:检测处于离线状态的通讯终端是否恢复网络连接;在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;打包多条即时通讯消息,并发送打包后的消息包至通讯终端。本公开解决了相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,进而达到了降低终端负荷的效果。

Description

消息传输系统、消息发送方法和装置、接收方法和装置 技术领域
本申请涉及通信领域,例如涉及一种消息传输系统、消息发送方法和装置、接收方法和装置。
背景技术
随着IP的下一代通信网络以及宽带通信网络等的演进和发展,3G、LTE等移动通信和无线接入技术不断涌现,促进了移动与互联网的融合,各运营商推出了RCS(Rich Communication Suite,融合通信),为用户提供融合、丰富的通信体验。
在RCS业务使用过程中,如果某RCS用户一段时间不在线,没有及时接收消息,这些离线消息会积压在RCS服务器上,当该用户正常上线时,RCS服务器会把所有离线消息一条条下发给该用户,该用户短时间内会收到大量的离线消息,终端负荷较高,可能造成终端假死现象,同时,会快速消耗用户终端的电量及网络流量;另外,由于移动终端网络环境不稳定,网络短时间中断,接收失败的消息也会长时间积压在RCS服务器,不能及时地推送到用户断。从而影响用户的使用体验。
针对相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,目前尚未提出有效的解决方案。
发明内容
本公开实施例提供了一种消息传输系统、消息发送方法和装置、接收方法和装置,以至少解决相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题。
根据本公开实施例的一个方面,提供了一种消息发送方法,该方法包括:检测处于离线状态的通讯终端是否恢复网络连接;在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;打包多条即时通讯消 息,并发送打包后的消息包至通讯终端。
检测处于离线状态的通讯终端是否恢复网络连接可以包括:定时发送探测消息至通讯终端,并接收通讯终端的回应消息,其中,探测消息为在通讯终端恢复网络连接后,允许被通讯终端接收到的消息;和/或接收通讯终端的网络注册消息,其中,在接收到网络注册消息或通讯终端发送的回应消息时,确定通讯终端恢复网络连接。
获取请求发送至通讯终端的多条即时通讯消息可以包括:从目标存储设备获取多条即时通讯消息。
在获取请求发送至通讯终端的多条即时通讯消息之前,该方法还可以包括:在接收到请求发送至通讯终端的即时通讯消息时,直接保存接收到的即时通讯消息至目标存储设备;或在接收到请求发送至通讯终端的即时通讯消息时,发送接收到的即时通讯消息至通讯终端,在发送失败时,保存接收到的即时通讯消息至目标存储设备。
打包多条即时通讯消息,并发送打包后的消息包至通讯终端可以包括:打包多条即时通讯消息,得到打包后的消息包;对打包后的消息包进行压缩,并发送压缩后的消息包至通讯终端。
根据本公开实施例的另一个方面,提供了一种消息接收方法,该方法包括:在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包;对接收到的消息包进行解压缩,得到多条即时通讯消息。
在得到多条即时通讯消息之后,该方法还可以包括:展示多条即时通讯消息。
根据本公开实施例的另一个方面,提供了一种消息发送装置,该装置包括:检测单元,被配置为检测处于离线状态的通讯终端是否恢复网络连接;获取单元,被配置为在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;发送单元,被配置为打包多条即时通讯消息,并发送打包后的消息包至通讯终端。
检测单元可以包括:第一检测模块,被配置为定时发送探测消息至通讯终端,并接收通讯终端的回应消息,其中,探测消息为在通讯终端恢复网络连接 后,允许被通讯终端接收到的消息;第二检测模块,被配置为接收通讯终端的网络注册消息,其中,在接收到网络注册消息或通讯终端发送的回应消息时,确定通讯终端恢复网络连接。
获取单元可以包括:获取模块,被配置为从目标存储设备获取多条即时通讯消息。
该装置还可以包括:第一保存单元,被配置为在接收到请求发送至通讯终端的即时通讯消息时,直接保存接收到的即时通讯消息至目标存储设备;第二保存单元,被配置为在接收到请求发送至通讯终端的即时通讯消息时,发送接收到的即时通讯消息至通讯终端,在发送失败时,保存接收到的即时通讯消息至目标存储设备。
发送单元可以包括:打包模块,被配置为打包多条即时通讯消息,得到打包后的消息包;发送模块,被配置为对打包后的消息包进行压缩,并发送压缩后的消息包至通讯终端。
根据本公开实施例的另一个方面,提供了一种消息接收装置,该装置包括:接收单元,被配置为在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包;处理单元,被配置为对接收到的消息包进行解压缩,得到多条即时通讯消息。
该装置还可以包括:展示单元,被配置为展示多条即时通讯消息。
根据本公开实施例的另一个方面,提供了一种消息传输系统,该系统包括消息服务器和通讯终端,其中:消息服务器在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息,并发送打包多条即时通讯消息得到的消息包至通讯终端;通讯终端接收消息服务器发送的消息包,并解压缩接收到的消息包,得到多条即时通讯消息。
根据本公开的另一个实施例,提供了一种存储介质,存储介质可以被设置为存储用于执行以下步骤的程序代码:检测处于离线状态的通讯终端是否恢复网络连接;在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;打包多条即时通讯消息,并发送打包后的消息包至通讯终端。
存储介质还可以被设置为存储用于执行以下步骤的程序代码:在恢复与消 息服务器的网络连接后,接收消息服务器发送的消息包;对接收到的消息包进行解压缩,得到多条即时通讯消息。
本公开实施例还提供了一种电子设备,包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述的方法。
在本公开实施例中,检测处于离线状态的通讯终端是否恢复网络连接;在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;打包多条即时通讯消息,并发送打包后的消息包至通讯终端。从而解决了相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,实现了降低终端负荷的技术效果。
附图概述
此处所说明的附图用来提供对本公开的理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:
图1是根据本公开实施例的终端的示意图;
图2是根据本公开实施例的消息发送方法的流程图;
图3是根据本公开实施例的可选的消息发送方法的流程图;
图4是根据本公开实施例的可选的消息发送方法的流程图;
图5是根据本公开实施例的消息接收方法的流程图;
图6是根据本公开实施例的消息发送装置的示意图;
图7是根据本公开实施例的消息接收装置的示意图;
图8是根据本公开实施例的消息传输系统的示意图;以及
图9是根据本公开实施例的电子设备的结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,如图1所示,移动终端可以包括一个或多个(图中仅示出一个)处理器101(处理器101可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、被配置为存储数据的存储器103、以及被配置为通信功能的传输装置105。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。
存储器103可被配置为存储应用软件的软件程序以及模块,如本公开实施例中的设备的控制方法对应的程序指令/模块,处理器101通过运行存储在存储器103内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置被配置为经由一个网络接收或者发送数据。上述的网络实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输装置包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置可以为射频(Radio Frequency,RF)模块,其被配置为通过无线方式与互联网进行通讯。
RCS通讯终端离线一段时间后上线,短时间内需要接收并处理大量的离线 RCS消息,造成终端CPU繁忙,导致该用户终端短时间内不能响应其他操作,造成终端假死的现象,同时快速消耗了用户终端的电量,网络流量也大幅度上升;另外,若移动终端网络环境不稳定,经常出现短时间网络中断,则会造成消息接收失败,如用户进电梯、地铁等移动信号不好的地方,由于RCS服务器无法感知终端网络何时会恢复正常,只有等待终端主动发注册消息或刷新消息时才能下发离线消息,通常在半小时至一小时之间,这样会造成消息长时间积压在RCS服务器,不能及时推送到用户端,影响用户的使用体验。
为了解决上述的问题,根据本公开实施例,提供了一种消息发送方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
图2是根据本公开实施例的消息发送方法的流程图,如图2所示,该方法包括如下步骤:
步骤S201,检测处于离线状态的通讯终端是否恢复网络连接。
步骤S202,在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息。
步骤S203,打包多条即时通讯消息,并发送打包后的消息包至通讯终端。
通过上述实施例,检测处于离线状态的通讯终端是否恢复网络连接;在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;打包多条即时通讯消息,并发送打包后的消息包至通讯终端,而不是在短时间内将多条即时通讯消息分别发送,以使通讯终端在接收即时通讯消息时不用耗费过多的资源,从而解决了相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,实现了降低终端负荷的技术效果。
可选地,上述的即时通讯消息包括RCS消息等即时消息;上述步骤的执行主体可以为信息发射设备、发射节点、信息服务器(如RCS服务器)等等,但不限于此,后文以RCS服务器为例进行说明。
在一个可选的实施例中,在如下情况下可以将接收到的即时通讯消息进行保存待发,RCS服务器在接收到请求发送至通讯终端的即时通讯消息时,发送 接收到的即时通讯消息至通讯终端,在发送失败时,保存接收到的即时通讯消息至目标存储设备;如果已经确定通讯终端处于离线状态,则可以在接收到请求发送至通讯终端的即时通讯消息时,直接保存接收到的即时通讯消息至目标存储设备,以避免浪费RCS服务器的资源。
可选地,在步骤S201中,在检测处于离线状态的通讯终端是否恢复网络连接时,可以通过如下方式实现:定时发送探测消息至通讯终端,并接收通讯终端的回应消息,其中,探测消息为在通讯终端恢复网络连接后,允许被通讯终端接收到的消息;接收通讯终端的网络注册消息,其中,在接收到网络注册消息或通讯终端发送的回应消息时,确定通讯终端恢复网络连接。
需要说明的是,如果探测消息连续几条不成功,即探测消息的发送次数达到预设值(如100次),则说明用户确实不在线,则不再主动探测,停止发送探测消息,而是等待用户上线通知消息,以节省服务器处理能力。
在获取请求发送至通讯终端的多条即时通讯消息时,可从上述的被配置为保存离线消息的目标存储设备获取多条即时通讯消息。
在上述实施例中,打包多条即时通讯消息,并发送打包后的消息包至通讯终端包括:打包多条即时通讯消息,得到打包后的消息包;对打包后的消息包进行压缩,并发送压缩后的消息包至通讯终端。
下面以RCS消息为例,结合图3和图4详述本申请的实施例。
图3示出的是移动终端网络环境不稳定,网络短时间中断的情况下,信息转发的流程,如图3所示:
步骤S301,终端A跟RCS AS(Application Server,应用服务器)之间网络正常,能够正常发送、接收RCS消息;
步骤S302,终端A网络发生短时间中断,如进入电梯或车库等移动信号比较弱的场所;
步骤S303,这时有其他用户给终端A发送消息1,RCS AS转发消息至终端A失败;
步骤S304,RCS AS把本条转发失败的消息1转发给离线消息存储模块,离线消息存储模块保存该消息;
步骤S305,离线消息保存成功,在该用户的重试定时队列中插入一条定时通知消息,用于定时触发重试;
步骤S306,这时有群聊服务器给终端A发送消息2至消息N,RCS AS转发消息至终端A失败;
步骤S307,RCS AS把本条转发失败的消息2至消息N转发给离线消息存储模块,离线消息存储模块保存该消息;
步骤S308,离线消息保存成功,更新该用户的重试定时队列通知消息内容,如失败消息计数器等;
步骤S309,终端A用户重试队列定时到,如2分钟后,触发重试通知给RCS AS模块;
步骤S310,RCS AS转发该通知给终端A,进行网络探测;
步骤S311,RCS AS发送重试通知消息失败,用户网络未恢复,根据该用户配置的重试策略,如3分钟后再重试,在该用户的重试定时队列中重新插入一条定时通知消息;
步骤S312,终端A网络恢复,如走出电梯或车库等移动信号比较弱的场所,而进入移动信号比较强的场所;
步骤S313,终端A用户重试队列定时到,触发重试通知给RCS AS模块;
步骤S314,RCS AS转发该通知给终端A,进行网络探测;
步骤S315,终端A返回探测消息响应,表明终端A网络恢复正常;
步骤S316,RCS AS向离线消息存储模块获取该用户离线消息1;
步骤S317,获取成功,RCS AS依次向离线消息存储模块获取该用户所有离线消息;
步骤S318,RCS AS对所有离线消息打包,并进行压缩,生成一条打包压缩消息(消息包);
步骤S319,RCS AS下发该打包压缩消息给终端A;
步骤S320,终端A解析该打包压缩消息,还原成原始多条消息,并进行保存、展示。
图4示出的是用户一段时间不在线,没有及时接收消息,即终端A长时间网络中断的情况下,信息转发的流程,如图4所示:
步骤S401,终端A跟RCS AS之间网络正常,能够正常发送、接收RCS消息;
步骤S402,终端A网络发生中断,如乘坐飞机关闭终端移动号、电量不足或其他原因,用户主动关机;
步骤S403,有其他用户给终端A发送消息1,RCS AS转发消息至终端A失败;
步骤S404,RCS AS把本条转发失败的消息1转发给离线消息存储模块,离线消息存储模块保存该消息;
步骤S405,离线消息保存成功,在该用户的重试定时队列中插入一条定时通知消息,用于定时触发重试;
步骤S406,这时有群聊服务器给终端A发送消息2至消息N,RCS AS转发消息至终端A失败;
步骤S407,RCS AS把本条转发失败的消息2至消息N转发给离线消息存储模块,离线消息存储模块保存该消息;
步骤S408,离线消息保存成功,更新该用户的重试定时队列通知消息内容,如失败消息计数器等;
步骤S409,终端A用户重试队列定时到,如2分钟后,触发重试通知给RCS AS模块;
步骤S410,RCS AS转发该通知给终端A,进行网络探测;
步骤S411,RCS AS发送重试通知消息失败,用户网络未恢复,根据该用户配置的重试策略,如3分钟后再重试,在该用户的重试定时队列中重新插入一条定时通知消息;
步骤S412,终端A用户重试队列定时到,再次触发重试通知给RCS AS模块;
步骤S413,RCS AS转发该通知给终端A,进行网络探测;
步骤S414,RCS AS发送重试通知消息失败,用户网络未恢复。RCS AS根据该用户配置的重试策略,发现经多次长时间重试,用户网络仍为恢复,则RCS AS中止重试,不再设置新的定时重试通知消息;
步骤S415,终端A网络恢复,重新注册上线,如用户重新开机,RCS AS收到终端A的上线消息;
步骤S416,RCS AS向离线消息存储模块获取该用户离线消息1;
步骤S417,获取成功,RCS AS依次向离线消息存储模块获取该用户所有离线消息(消息2至消息N);
步骤S418,RCS AS对所有离线消息打包,并进行压缩,生成一条打包压缩消息;
步骤S419,RCS AS下发该打包压缩消息给终端A;
步骤S420,终端A解析该打包压缩消息,还原成原始的多条消息,并进行保存、展示。
在上述实施例中,RCS服务器针对离线RCS消息(即时通讯消息,)下发流程进行优化,当服务器收到用户上线通知时,把该用户所有离线消息打包压缩成一条大消息,然后主动下发给用户,避免单条消息的多次下发,以提高用户终端的响应速度,同时,大幅度节省用户终端的网络流量和终端电量,提升用户体验。另一方面,对每个用户按照配置的策略生成定时触发消息队列,每隔一段时间,RCS服务器主动下发一条探测消息给用户,如果成功,说明终端网络恢复正常,把该用户所有离线消息进行打包下发,如果失败,则说明终端网络没有恢复,等待下次再进行探测,如果探测消息连续几条不成功,则说明用户确实不在线,则不再主动探测,等待用户上线通知消息,以节省服务器处理能力。
通过使用本申请的方法发送消息,把用户所有的离线消息打包压缩成一条来主动下发,有效地避免了终端假死现象,节省了终端电量和网络流量;同时,定时主动探测用户网络恢复情况,及时推送离线消息给用户,极大地提高了产品的可用性。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上 述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
实施例2
根据本公开实施例,提供了一种消息接收方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
图5是根据本公开实施例的消息接收方法的流程图,如图5所示,该方法包括如下步骤:
步骤S501,在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包。
步骤S502,对接收到的消息包进行解压缩,得到多条即时通讯消息。
通过上述实施例,在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包,对接收到的消息包进行解压缩,得到多条即时通讯消息,由于接收的是一个信息包,而不是在短时间内将多条即时通讯消息分别发送,以使通讯终端在接收即时通讯消息时不用耗费过多的资源,从而解决了相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,实现了降低终端负荷的技术效果。
可选地,在得到多条即时通讯消息之后,上述方法还可包括:展示多条即时通讯消息。
本申请的信息接收方法中的相关步骤在实施例1中以详细描述,在此不再赘述。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以 通过硬件来实现。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
实施例3
本公开实施例中还提供了一种消息发送装置。该装置被配置为实现上述实施例及实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图6是根据本公开实施例的消息发送装置的示意图。如图6所示,该装置可以包括:检测单元61、获取单元62以及发送单元63。
检测单元61,被配置为检测处于离线状态的通讯终端是否恢复网络连接。
获取单元62,被配置为在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息。
发送单元63,被配置为打包多条即时通讯消息,并发送打包后的消息包至通讯终端。
通过上述实施例,检测单元,被配置为检测处于离线状态的通讯终端是否恢复网络连接;获取单元,被配置为在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;发送单元,被配置为打包多条即时通讯消息,并发送打包后的消息包至通讯终端,而不是在短时间内将多条即时通讯消息分别发送,以使通讯终端在接收即时通讯消息时不用耗费过多的资源,从而解决了相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,实现了降低终端负荷的技术效果。
可选地,上述的即时通讯消息包括RCS消息等即时消息;上述装置可以是发射设备、发射节点、信息服务器(如RCS服务器)等等,但不限于此,后文以RCS服务器为例进行说明。
在上述实施例中,检测单元包括:第一检测模块,被配置为定时发送探测 消息至通讯终端,并接收通讯终端的回应消息,其中,探测消息为在通讯终端恢复网络连接后,允许被通讯终端接收到的消息;第二检测模块,被配置为接收通讯终端的网络注册消息,其中,在接收到网络注册消息或通讯终端发送的回应消息时,确定通讯终端恢复网络连接。
可选地,获取单元包括:获取模块,被配置为从目标存储设备获取多条即时通讯消息。
可选地,上述装置还可以包括:第一保存单元,被配置为在接收到请求发送至通讯终端的即时通讯消息时,直接保存接收到的即时通讯消息至目标存储设备;第二保存单元,被配置为在接收到请求发送至通讯终端的即时通讯消息时,发送接收到的即时通讯消息至通讯终端,在发送失败时,保存接收到的即时通讯消息至目标存储设备。
上述的发送单元包括:打包模块,被配置为打包多条即时通讯消息,得到打包后的消息包;发送模块,被配置为对打包后的消息包进行压缩,并发送压缩后的消息包至通讯终端。
在上述实施例中,RCS服务器针对离线RCS消息(即时通讯消息,)下发流程进行优化,当服务器收到用户上线通知时,把该用户所有离线消息打包压缩成一条大消息,然后主动下发给用户,避免单条消息的多次下发,以提高用户终端的响应速度,同时,大幅度节省用户终端的网络流量和终端电量,提升用户体验。另一方面,对每个用户按照配置的策略生成定时触发消息队列,每隔一段时间,RCS服务器主动下发一条探测消息给用户,如果成功,说明终端网络恢复正常,把该用户所有离线消息进行打包下发,如果失败,则说明终端网络没有恢复,等待下次再进行探测,如果探测消息连续几条不成功,则说明用户确实不在线,则不再主动探测,等待用户上线通知消息,以节省服务器处理能力。
通过使用本申请的方式发送消息,把用户所有的离线消息打包压缩成一条来主动下发,有效地避免了终端假死现象,节省了终端电量和网络流量;同时,定时主动探测用户网络恢复情况,及时推送离线消息给用户,极大地提高了产品的可用性。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者, 可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例4
本公开实施例中还提供了一种消息接收装置。该装置被配置为实现上述实施例及实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图7是根据本公开实施例的消息接收装置的示意图。如图7所示,该装置可以包括:接收单元71和处理单元72。
接收单元71,被配置为在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包。
处理单元72,被配置为对接收到的消息包进行解压缩,得到多条即时通讯消息。
通过上述实施例,接收单元在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包,处理单元对接收到的消息包进行解压缩,得到多条即时通讯消息,由于接收的是一个信息包,而不是在短时间内将多条即时通讯消息分别发送,以使通讯终端在接收即时通讯消息时不用耗费过多的资源,从而解决了相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,实现了降低终端负荷的技术效果。
可选地,上述装置还可包括:展示单元,被配置为展示多条即时通讯消息。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例5
本公开实施例中还提供了一种消息传输系统,如图8所示,该系统包括消息服务器81和通讯终端82。
消息服务器在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息,并发送打包多条即时通讯消息得到的消息包至通讯终端; 通讯终端接收消息服务器发送的消息包,并解压缩接收到的消息包,得到多条即时通讯消息。
通过上述实施例,消息服务器在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息,并发送打包多条即时通讯消息得到的消息包至通讯终端;通讯终端接收消息服务器发送的消息包,并解压缩接收到的消息包,得到多条即时通讯消息,由于终端接收的是一个信息包,而不是在短时间内将多条即时通讯消息分别发送,以使通讯终端在接收即时通讯消息时不用耗费过多的资源,从而解决了相关技术中,发送离线消息至终端时造成终端负荷较高的技术问题,实现了降低终端负荷的技术效果。
实施例6
本公开的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S11,检测处于离线状态的通讯终端是否恢复网络连接;
S12,在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;
S13,打包多条即时通讯消息,并发送打包后的消息包至通讯终端。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S21,在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包;
S22,对接收到的消息包进行解压缩,得到多条即时通讯消息。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:检测处于离线状态的通讯终端是否恢复网络连接;在检测到通讯终端恢复网络连接时,获取请求发送至通讯终端的多条即时通讯消息;打包多条即时通讯消息,并发送打包后的消息包至通讯终端。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行: 在恢复与消息服务器的网络连接后,接收消息服务器发送的消息包;对接收到的消息包进行解压缩,得到多条即时通讯消息。
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
本公开实施例还提供了一种电子设备的结构示意图。参见图9,该电子设备包括:
至少一个处理器(processor)90,图9中以一个处理器90为例;和存储器(memory)91,还可以包括通信接口(Communications Interface)92和总线93。其中,处理器90、通信接口92、存储器91可以通过总线93完成相互间的通信。通信接口92可以用于信息传输。处理器90可以调用存储器91中的逻辑指令,以执行上述实施例的方法。
此外,上述的存储器91中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器91作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器90通过运行存储在存储器91中的软件程序、指令以及模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的消息发送、接收方法。
存储器91可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器91可以包括高速随机存取存储器,还可以包括非易失性存储器。
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全 部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开实施例的范围之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。
工业实用性
本申请提供的消息传输系统、消息发送方法和装置、接收方法和装置,达到了降低终端负荷的效果。

Claims (17)

  1. 一种消息发送方法,包括:
    检测处于离线状态的通讯终端是否恢复网络连接;
    在检测到所述通讯终端恢复网络连接时,获取请求发送至所述通讯终端的多条即时通讯消息;
    打包所述多条即时通讯消息,并发送打包后的消息包至所述通讯终端。
  2. 根据权利要求1所述的方法,其中,检测处于离线状态的通讯终端是否恢复网络连接包括:
    定时发送探测消息至所述通讯终端,并接收所述通讯终端的回应消息,其中,所述探测消息为在所述通讯终端恢复网络连接后,允许被所述通讯终端接收到的消息;或
    接收所述通讯终端的网络注册消息,
    其中,在接收到所述网络注册消息或所述通讯终端发送的所述回应消息时,确定所述通讯终端恢复网络连接。
  3. 根据权利要求1所述的方法,其中,获取请求发送至所述通讯终端的多条即时通讯消息包括:
    从目标存储设备获取所述多条即时通讯消息。
  4. 根据权利要求3所述的方法,其中,在获取请求发送至所述通讯终端的多条即时通讯消息之前,所述方法还包括:
    在接收到请求发送至所述通讯终端的即时通讯消息时,直接保存接收到的即时通讯消息至所述目标存储设备;或
    在接收到请求发送至所述通讯终端的即时通讯消息时,发送接收到的即时 通讯消息至所述通讯终端,在发送失败时,保存接收到的即时通讯消息至所述目标存储设备。
  5. 根据权利要求1至4中任意一项所述的方法,其中,打包所述多条即时通讯消息,并发送打包后的消息包至所述通讯终端包括:
    打包所述多条即时通讯消息,得到打包后的消息包;
    对打包后的消息包进行压缩,并发送压缩后的消息包至所述通讯终端。
  6. 一种消息接收方法,包括:
    在恢复与消息服务器的网络连接后,接收所述消息服务器发送的消息包;
    对接收到的消息包进行解压缩,得到多条即时通讯消息。
  7. 根据权利要求6所述的方法,其中,在得到多条即时通讯消息之后,所述方法还包括:
    展示所述多条即时通讯消息。
  8. 一种消息发送装置,包括:
    检测单元,被配置为检测处于离线状态的通讯终端是否恢复网络连接;
    获取单元,被配置为在检测到所述通讯终端恢复网络连接时,获取请求发送至所述通讯终端的多条即时通讯消息;
    发送单元,被配置为打包所述多条即时通讯消息,并发送打包后的消息包至所述通讯终端。
  9. 根据权利要求8所述的装置,其中,所述检测单元包括:
    第一检测模块,被配置为定时发送探测消息至所述通讯终端,并接收所述通讯终端的回应消息,其中,所述探测消息为在所述通讯终端恢复网络连接后,允许被所述通讯终端接收到的消息;
    第二检测模块,被配置为接收所述通讯终端的网络注册消息,
    其中,在接收到所述网络注册消息或所述通讯终端发送的所述回应消息时,确定所述通讯终端恢复网络连接。
  10. 根据权利要求8所述的装置,其中,所述获取单元包括:
    获取模块,被配置为从目标存储设备获取所述多条即时通讯消息。
  11. 根据权利要求10所述的装置,还包括:
    第一保存单元,被配置为在接收到请求发送至所述通讯终端的即时通讯消息时,直接保存接收到的即时通讯消息至所述目标存储设备;
    第二保存单元,被配置为在接收到请求发送至所述通讯终端的即时通讯消息时,发送接收到的即时通讯消息至通讯终端,在发送失败时,保存接收到的即时通讯消息至所述目标存储设备。
  12. 根据权利要求8至11中任意一项所述的装置,其中,所述发送单元包括:
    打包模块,被配置为打包所述多条即时通讯消息,得到打包后的消息包;
    发送模块,被配置为对打包后的消息包进行压缩,并发送压缩后的消息包至所述通讯终端。
  13. 一种消息接收装置,包括:
    接收单元,被配置为在恢复与消息服务器的网络连接后,接收所述消息服务器发送的消息包;
    处理单元,被配置为对接收到的消息包进行解压缩,得到多条即时通讯消息。
  14. 根据权利要求13所述的装置,还包括:
    展示单元,被配置为展示所述多条即时通讯消息。
  15. 一种消息传输系统,包括消息服务器和通讯终端,其中:
    所述消息服务器在检测到所述通讯终端恢复网络连接时,获取请求发送至所述通讯终端的多条即时通讯消息,并发送打包所述多条即时通讯消息得到的消息包至所述通讯终端;
    所述通讯终端接收所述消息服务器发送的消息包,并解压缩接收到的消息包,得到所述多条即时通讯消息。
  16. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-5中任一项的方法。
  17. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求6-7中任一项的方法。
PCT/CN2017/085462 2016-06-24 2017-05-23 消息传输系统、消息发送方法和装置、接收方法和装置 WO2017219815A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610475613.XA CN107547289A (zh) 2016-06-24 2016-06-24 消息传输系统、消息发送方法和装置、接收方法和装置
CN201610475613.X 2016-06-24

Publications (1)

Publication Number Publication Date
WO2017219815A1 true WO2017219815A1 (zh) 2017-12-28

Family

ID=60784350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/085462 WO2017219815A1 (zh) 2016-06-24 2017-05-23 消息传输系统、消息发送方法和装置、接收方法和装置

Country Status (2)

Country Link
CN (1) CN107547289A (zh)
WO (1) WO2017219815A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378554A (zh) * 2022-10-24 2022-11-22 北京博点智合科技有限公司 一种数据传输方法、装置、设备和可读存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266582B (zh) * 2019-05-29 2022-08-26 深圳市梦网科技发展有限公司 一种消息推送方法、系统、服务器及通信终端
CN117749751A (zh) * 2022-09-15 2024-03-22 中兴通讯股份有限公司 消息处理方法、电子设备和计算机可读存储介质
CN116094654B (zh) * 2023-02-14 2024-03-15 广州爱浦路网络技术有限公司 消息的传输方法、装置、空间基站及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794723A (zh) * 2005-10-11 2006-06-28 华为技术有限公司 一种离线消息处理方法
CN102111345A (zh) * 2010-12-29 2011-06-29 北京神州泰岳软件股份有限公司 状态通知方法及系统
CN102685138A (zh) * 2012-05-21 2012-09-19 华为技术有限公司 离线消息推送方法及装置
CN104506424A (zh) * 2014-12-31 2015-04-08 深圳中兴网信科技有限公司 即时通讯中联系人状态的通知方法及通知装置
US20150100656A1 (en) * 2012-06-27 2015-04-09 Tencent Technology (Shenzhen) Company Limited Service apparatus and method for providing deferred message, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794723A (zh) * 2005-10-11 2006-06-28 华为技术有限公司 一种离线消息处理方法
CN102111345A (zh) * 2010-12-29 2011-06-29 北京神州泰岳软件股份有限公司 状态通知方法及系统
CN102685138A (zh) * 2012-05-21 2012-09-19 华为技术有限公司 离线消息推送方法及装置
US20150100656A1 (en) * 2012-06-27 2015-04-09 Tencent Technology (Shenzhen) Company Limited Service apparatus and method for providing deferred message, and storage medium
CN104506424A (zh) * 2014-12-31 2015-04-08 深圳中兴网信科技有限公司 即时通讯中联系人状态的通知方法及通知装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378554A (zh) * 2022-10-24 2022-11-22 北京博点智合科技有限公司 一种数据传输方法、装置、设备和可读存储介质

Also Published As

Publication number Publication date
CN107547289A (zh) 2018-01-05

Similar Documents

Publication Publication Date Title
WO2017219815A1 (zh) 消息传输系统、消息发送方法和装置、接收方法和装置
US10764795B2 (en) Method and apparatus for handling connections
CN104583993B (zh) 用于优化半活跃工作负荷的装置和方法
US10083021B2 (en) Method and apparatus for providing firmware over the air service to user equipments
US10225356B2 (en) Method and terminal for receiving push information, storage medium
US8665716B2 (en) Enabling circuit-switched services during mobility management congestion control
EP3439236B1 (en) Configuration information push method and device
US9729651B2 (en) Method for delivering push notification and push notification server for performing the same
KR20160104058A (ko) 서비스 처리 방법 및 장치
WO2020118633A1 (zh) 订阅消息的处理方法、装置、计算机设备和存储介质
US10812545B2 (en) Beacon sensor advertisement frame
CN104426816B (zh) 一种虚拟机通信方法及装置
US10321395B2 (en) Data packet processing method and related device
EP3223493A1 (en) Point-to-point protocol (ppp)-based dial-on-demand method and device, and computer storage medium
CN109417772B (zh) 用于信令优化的寻呼增强
CN115250438B (zh) 基于5g网络的短消息服务容灾方法、系统及计算设备
WO2014180286A1 (zh) 一种m2m应用请求的发送方法、cse和系统
CN108391326B (zh) 管理无线连接的方法、装置及终端
CN113676894A (zh) 业务处理方法及设备
WO2016177128A1 (zh) 关机检测方法、装置及核心网
US20150365484A1 (en) Method and system for maintaining session, network side, terminal and computer storage medium
WO2023103985A1 (zh) 基于微波设备的数据传输方法和装置、存储介质及电子设备
KR101979588B1 (ko) 세션 제어 방법, 시스템 및 장치
CN102355456B (zh) 一种重启计数器的管理方法及装置
CN107949008B (zh) Lte网络接入结果的检测方法及装置、计算机存储介质

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: 17814553

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: 17814553

Country of ref document: EP

Kind code of ref document: A1