Method for sending and receiving rich media messages, device and electronic device
By using the activation command in the rich media message packet to activate the service when the terminal device is sleeping, the problem of difficulty in delivering rich media messages when the terminal device is sleeping is solved, and the timely arrival and efficient transmission of messages are achieved.
Patent Information
- Application Number
- CN202310880257.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-07-17
AI Technical Summary
When the terminal device is in a dormant state, rich media messages are difficult to deliver in time and are easily lost, affecting transmission efficiency and reachability.
By obtaining the rich media message message, including the message identifier and activation instruction, the message is sent to the terminal device to activate its rich media service, and the message is sent after activation to ensure that the message can arrive in time.
Ensure that rich media messages can be delivered promptly and quickly to avoid loss and improve transmission efficiency and reachability.
Smart Images

Figure CN117061469B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a method for sending, a method for receiving, a device and an electronic device for rich media messages. Background Art
[0002] Rich Communication Suite (RCS) is a service standard for rich media messages, which can support multiple instant messaging functions such as pictures, text, voice, video, group chat and file transfer. Currently, after the network device and the terminal device establish a Transmission Control Protocol (TCP) connection, the rich media messages sent by the network device to the terminal device can be reached.
[0003] At present, in order to take into account the endurance of terminal devices, terminal devices can adopt a sleep mechanism when idle, that is, disconnect the TCP connection with the network device. When the terminal device is in sleep mode, the rich media message sent by the network device is unreachable, and it is necessary to wait for the terminal device to switch to the connected state before the rich media message can be successfully sent to the terminal device. Among them, if the terminal device is in sleep mode for a long time, the rich media message is difficult to be delivered to the terminal device in time, and it is easy to cause the rich media message to be lost, which affects the timeliness and certainty of the rich media message and reduces the transmission efficiency of the rich media message. Summary of the invention
[0004] The present disclosure provides a method for sending, a method for receiving, a device and an electronic device for rich media messages.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for sending rich media messages is provided, which is applied to a message platform, and the method includes: obtaining a rich media message message to be sent to a target terminal device; the rich media message message includes a message identifier and an activation instruction; the activation instruction is used to trigger the target terminal device to activate a rich media service; sending the rich media message message to the target terminal device; receiving a rich media message request sent by the target terminal device after activating the rich media service; the rich media message request carries the message identifier; and sending a rich media message corresponding to the message identifier to the target terminal device.
[0006] In one embodiment of the present disclosure, the method of obtaining a rich media message packet to be sent to a target terminal device includes: obtaining the rich media message to be sent, a message identifier of the rich media message, a source address and a destination address of the rich media message; the destination address is the address of the target terminal device; calling an activation service to obtain an activation instruction; and generating the rich media message packet according to the message identifier, the source address, the destination address and the activation instruction.
[0007] In one embodiment of the present disclosure, the rich media message message is generated according to the rich media message, the message identifier, the source address, the destination address and the activation instruction, including: generating a rich media message body according to the message identifier, the source address and the destination address; generating an activation message body according to the activation instruction, the source address and the destination address; and splicing and encapsulating the rich media message body and the activation message body to obtain the rich media message message.
[0008] In one embodiment of the present disclosure, before receiving the rich media message request sent by the target terminal device, the method also includes: receiving a configuration information request from the target terminal device; the configuration information request is sent after the target terminal device activates the rich media service and determines that the existing configuration information is expired; calling a registration service according to the configuration information request to obtain the latest configuration information; sending the latest configuration information to the target terminal device; the latest configuration information is used to establish a connection between the target terminal device and the message platform.
[0009] According to the second aspect of the embodiment of the present disclosure, a method for receiving rich media messages is also provided, which is applied to a terminal device, and the method includes: receiving a rich media message message sent by a message platform; the rich media message message includes a message identifier and an activation instruction; when the rich media service of the terminal device is dormant, activating the rich media service according to the activation instruction; sending a rich media message request carrying the message identifier to the message platform; and receiving a rich media message corresponding to the message identifier returned by the message platform.
[0010] In one embodiment of the present disclosure, the rich media message message is obtained by splicing and encapsulating a rich media message body and an activation message body; the rich media message body includes the message identifier, the source address and the destination address of the rich media message; the activation message body includes the activation instruction, the source address and the destination address; the method further includes: parsing the activation message body to obtain the activation instruction in the rich media message message; after the rich media service is activated, calling the rich media service to parse the rich media message body to obtain the message identifier in the rich media message message.
[0011] In one embodiment of the present disclosure, after activating the rich media service according to the activation instruction, the method also includes: obtaining existing configuration information and determining whether the existing configuration information is expired; when the existing configuration information is expired, sending a configuration information request to the message platform to obtain the latest configuration information; and establishing a connection between the terminal device and the message platform based on the latest configuration information.
[0012] In one embodiment of the present disclosure, the method further includes: when the existing configuration information is not expired, establishing a connection between the terminal device and the message platform according to the existing configuration information.
[0013] In one embodiment of the present disclosure, the method further includes: parsing the received rich media message to obtain a parsed rich media message; and displaying the parsed rich media message.
[0014] According to the third aspect of the embodiment of the present disclosure, a device for sending rich media messages is also provided, which is applied to a message platform, and the device includes: an acquisition module, used to acquire a rich media message message to be sent to a target terminal device; the rich media message message includes a message identifier and an activation instruction; the activation instruction is used to trigger the target terminal device to activate the rich media service; a sending module, used to send the rich media message message to the target terminal device; a receiving module, used to receive a rich media message request sent by the target terminal device after activating the rich media service; the rich media message request carries the message identifier; the sending module is also used to send the rich media message corresponding to the message identifier to the target terminal device.
[0015] According to the fourth aspect of the embodiments of the present disclosure, a device for receiving rich media messages is also provided, which is applied to a terminal device, and the device includes: a receiving module, which is used to receive a rich media message message sent by a message platform; the rich media message message includes a message identifier and an activation instruction; an activation module, which is used to activate the rich media service according to the activation instruction when the rich media service of the terminal device is dormant; a sending module, which is used to send a rich media message request carrying the message identifier to the message platform; the receiving module is also used to receive the rich media message corresponding to the message identifier returned by the message platform.
[0016] According to the fifth aspect of an embodiment of the present disclosure, an electronic device is also provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: implement the steps of the method for sending rich media messages as described above; or, implement the steps of the method for receiving rich media messages as described above.
[0017] According to the sixth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is also provided. When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the method for sending rich media messages as described above; or, execute the method for receiving rich media messages as described above.
[0018] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0019] The message platform obtains a rich media message message to be sent to a target terminal device; the rich media message message includes a message identifier and an activation instruction; the activation instruction is used to trigger the target terminal device to activate the rich media service; the rich media message message is sent to the target terminal device; a rich media message request is received after the target terminal device activates the rich media service; the rich media message request carries a message identifier; and the rich media message corresponding to the message identifier is sent to the target terminal device, thereby ensuring that the rich media message can be delivered to the target terminal device in a timely and rapid manner, and ensuring the delivery of the rich media message, avoiding the loss of the rich media message, and improving the transmission efficiency of the rich media message.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0022] Figure 1 A flowchart of a method for sending a rich media message according to an embodiment of the present disclosure;
[0023] Figure 2 A flowchart of a method for receiving a rich media message according to an embodiment of the present disclosure;
[0024] Figure 3 It is a schematic diagram of the interaction between the message platform and the terminal device;
[0025] Figure 4 A schematic diagram of the structure of a device for sending a rich media message according to an embodiment of the present disclosure;
[0026] Figure 5 A schematic diagram of the structure of a device for receiving a rich media message according to an embodiment of the present disclosure;
[0027] Figure 6 The figure is a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0030] Rich Communication Suite (RCS) is a service standard for rich media messages, which can support multiple instant messaging functions such as pictures, text, voice, video, group chat and file transfer. Currently, after the network device and the terminal device establish a Transmission Control Protocol (TCP) connection, the rich media messages sent by the network device to the terminal device can be reached.
[0031] At present, in order to take into account the endurance of terminal devices, terminal devices can adopt a sleep mechanism when idle, that is, disconnect the TCP connection with the network device. When the terminal device is in sleep mode, the rich media message sent by the network device is unreachable, and it is necessary to wait for the terminal device to switch to the connected state before the rich media message can be successfully sent to the terminal device. Among them, if the terminal device is in sleep mode for a long time, the rich media message is difficult to be delivered to the terminal device in time, and it is easy to cause the rich media message to be lost, which affects the timeliness and certainty of the rich media message and reduces the transmission efficiency of the rich media message.
[0032] Figure 1 The present invention discloses a flowchart of a method for sending a rich media message according to an embodiment of the present invention. It should be noted that the method for sending a rich media message according to the present embodiment can be applied to a device for sending a rich media message, and the device can be configured in an electronic device so that the electronic device can perform the function of sending a rich media message.
[0033] The electronic device may be any device with computing capability, such as a server, etc. A server may be, for example, a message platform, a server involved in message processing in a message platform, etc. In the following embodiments, the execution subject is taken as an example of a message platform.
[0034] The terminal device interacting with the server may be, for example, a personal computer (PC), a mobile terminal, etc. The mobile terminal may be, for example, a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, or other hardware device having various operating systems, a touch screen and / or a display screen, and capable of sending and receiving rich media messages.
[0035] like Figure 1 As shown, the method comprises the following steps:
[0036] Step 101, obtaining a rich media message to be sent to a target terminal device; the rich media message includes a message identifier and an activation instruction; the activation instruction is used to trigger the target terminal device to activate a rich media service.
[0037] In the embodiment of the present disclosure, the process of the message platform executing step 101 may, for example, be to obtain the rich media message to be sent, the message identifier of the rich media message, the source address and the destination address of the rich media message; the destination address is the address of the target terminal device; call the activation service to obtain the activation instruction; generate a rich media message message according to the message identifier, source address, destination address and activation instruction.
[0038] Among them, the process of the message platform obtaining the rich media message to be sent, the message identifier of the rich media message, the source address and the destination address of the rich media message can be, for example, that the message platform interacts with the sender's business platform to obtain the rich media message to be sent, the message identifier of the rich media message, the source address and the destination address of the rich media message provided by the sender's business platform.
[0039] The message identifier of the rich media message may be a parameter that can uniquely identify the rich media message, such as the name and number of the rich media message. The source address of the rich media message may be the address of the sender's service platform. The destination address of the rich media message may be the address of the target terminal device. The rich media message may be, for example, a 5G rich media message.
[0040] It should be noted that the number of destination addresses of the rich media message can be one or more. When the number of destination addresses is single, the rich media message can be sent to a single target terminal device; when the number of destination addresses is multiple, the rich media message can be sent to multiple target terminal devices at the same time.
[0041] In the disclosed embodiment, the process of the message platform generating a rich media message according to the message identifier, source address, destination address and activation instruction may be, for example, generating a rich media message body according to the message identifier, source address and destination address; generating an activation message body according to the activation instruction, source address and destination address; and concatenating and encapsulating the rich media message body and the activation message body to obtain a rich media message. The activation instruction may be, for example, an activation SMS, etc.
[0042] Step 102: Send a rich media message to a target terminal device.
[0043] Step 103: receiving a rich media message request sent by the target terminal device after activating the rich media service; the rich media message request carries a message identifier.
[0044] In the embodiments of the present disclosure, after activating the rich media service, the target terminal device can re-establish the connection between the target terminal device and the message platform based on the existing configuration information, that is, Session Initialization Protocol (SIP) registration; or, the target terminal device can interact with the message platform to obtain the latest configuration information; based on the latest configuration information, re-establish the connection between the target terminal device and the message platform.
[0045] Step 104: Send a rich media message corresponding to the message identifier to the target terminal device.
[0046] In the disclosed embodiment, after the message platform sends the rich media message corresponding to the message identifier to the target terminal device, the target terminal device can parse and process the rich media message to obtain a rich media message that can be displayed, and then perform display processing on the rich media message.
[0047] In the method for sending rich media messages of the embodiment of the present invention, the message platform obtains a rich media message message to be sent to a target terminal device; the rich media message message includes a message identifier and an activation instruction; the activation instruction is used to trigger the target terminal device to activate the rich media service; the rich media message message is sent to the target terminal device; a rich media message request is received that carries a message identifier in the rich media message request; and a rich media message corresponding to the message identifier is sent to the target terminal device, thereby ensuring that the rich media message can be delivered to the target terminal device in a timely and fast manner, and ensuring the deliverability of the rich media message, avoiding the loss of the rich media message, and improving the transmission efficiency of the rich media message.
[0048] Figure 2The flowchart of a method for receiving a rich media message according to an embodiment of the present disclosure is as follows. It should be noted that the method for receiving a rich media message according to the present embodiment can be applied to a device for receiving a rich media message, and the device can be configured in an electronic device so that the electronic device can perform a function of receiving a rich media message.
[0049] The electronic device may be any device with computing capabilities, such as a personal computer (PC), a mobile terminal, etc. The mobile terminal may be, for example, a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, or other hardware device with various operating systems, a touch screen and / or a display screen, and capable of sending and receiving rich media messages. The following embodiments are described by taking the execution subject as a terminal device as an example.
[0050] like Figure 2 As shown, the method comprises the following steps:
[0051] Step 201, receiving a rich media message message sent by a message platform; the rich media message message includes a message identifier and an activation instruction.
[0052] In the disclosed embodiment, the rich media message corresponding to the message identifier may be provided by the sender business platform to the message platform. The activation instruction may be obtained by the message platform calling the activation service. The activation instruction may be, for example, an activation SMS, etc. The rich media message may be, for example, a 5G rich media message.
[0053] In the disclosed embodiment, the rich media message received by the terminal device can be obtained by splicing and encapsulating the rich media message body and the activation message body; the rich media message body includes a message identifier, a source address and a destination address of the rich media message; the activation message body includes an activation instruction, a source address and a destination address. Correspondingly, when the rich media service of the terminal device is dormant, the terminal device can parse the activation message body to obtain the activation instruction; when the rich media service of the terminal device is activated, the terminal device can call the rich media service to parse the rich media message body to obtain the message identifier.
[0054] It should be noted that when the terminal device is in a dormant state, the rich media service in the terminal device is also in a dormant state; when the terminal device is awakened based on an activation instruction, the rich media service therein can be activated.
[0055] Step 202: When the rich media service of the terminal device is dormant, activate the rich media service according to an activation instruction.
[0056] In the embodiment of the present disclosure, when the rich media service of the terminal device is dormant, the terminal device can parse the activation message body to obtain the activation instruction therein. The terminal device can wake up based on the activation instruction and activate the rich media service therein.
[0057] In the embodiment of the present disclosure, after the terminal device activates the rich media service therein, it can also perform the following process to enable the sending and receiving of rich media messages: obtaining existing configuration information and determining whether the existing configuration information is expired; if the existing configuration information is expired, sending a configuration information request to the message platform to obtain the latest configuration information; establishing a connection between the terminal device and the message platform based on the latest configuration information; if the existing configuration information has not expired, establishing a connection between the terminal device and the message platform based on the existing configuration information.
[0058] The process of the terminal device obtaining the latest configuration information may be, for example, checking the switch status of the rich media service based on the received configuration notification SMS; if it is in the on state, sending a configuration information request to the message platform to obtain the latest configuration information.
[0059] Step 203: Send a rich media message request carrying a message identifier to the message platform.
[0060] In the disclosed embodiment, the terminal device may call the rich media service to parse and process the rich media message body to obtain the message identifier therein.
[0061] Step 204: Receive a rich media message corresponding to the message identifier returned by the message platform.
[0062] In the embodiment of the present disclosure, after receiving the rich media message corresponding to the message identifier, the terminal device can parse the rich media message to obtain a rich media message that can be displayed, and then perform display processing on the rich media message.
[0063] In the method for receiving rich media messages of the embodiments of the present disclosure, a terminal device receives a rich media message message sent by a message platform; the rich media message message includes a message identifier and an activation instruction; when the rich media service of the terminal device is dormant, the rich media service is activated according to the activation instruction; a rich media message request carrying the message identifier is sent to the message platform; and a rich media message corresponding to the message identifier returned by the message platform is received, thereby being able to receive the rich media message in a timely and fast manner, ensuring the delivery of the rich media message, avoiding the loss of the rich media message, and improving the transmission efficiency of the rich media message.
[0064] The following examples are used to illustrate this. Figure 3 The figure below is a schematic diagram of the interaction between the message platform and the terminal device. Figure 3The process includes the following steps: (1) The sender business platform sends a 5G message (rich media message) to the message module (server involved in message processing, etc.) in the 5G message platform (message platform). (2) The message module calls the activation SMS service (activation service) of the activation SMS module. (3) The message module integrates the activation SMS capability and encapsulates the message message (rich media message message). (4) The message module sends an activation message (rich media message message) containing a 5G message ID (message identifier of a rich media message) to the UE (terminal device), which contains a rich media message body and an activation message body. (5) The UE parses the message body and obtains an activation instruction; according to the activation instruction, the terminal (terminal device) exits sleep. (6) The UE requests configuration (configuration information) from the registration module (registration service) in the 5G message platform to initiate SIP registration based on the configuration. (7) The configuration is obtained from the registration module and SIP registration is performed until the SIP registration is successful. (8) The terminal device is in the 5G message online state. (9) The UE requests a 5G message in combination with the 5G message ID. (10) The UE obtains a 5G message from the message module of the 5G message platform. (11)UE displays 5G messages.
[0065] Figure 4 The present invention is a schematic diagram of the structure of a device for sending a rich media message according to an embodiment of the present invention.
[0066] like Figure 4 As shown, the rich media message sending device is applied to a message platform and may include: an acquisition module 401 , a sending module 402 and a receiving module 403 .
[0067] Among them, the acquisition module 401 is used to obtain the rich media message message to be sent to the target terminal device; the rich media message message includes a message identifier and an activation instruction; the activation instruction is used to trigger the target terminal device to activate the rich media service; the sending module 402 is used to send the rich media message message to the target terminal device; the receiving module 403 is used to receive the rich media message request sent by the target terminal device after activating the rich media service; the rich media message request carries the message identifier; the sending module 402 is also used to send the rich media message corresponding to the message identifier to the target terminal device.
[0068] In one embodiment of the present disclosure, the acquisition module 401 is specifically used to obtain the rich media message to be sent, the message identifier of the rich media message, the source address and the destination address of the rich media message; the destination address is the address of the target terminal device; call the activation service to obtain the activation instruction; generate the rich media message message according to the message identifier, the source address, the destination address and the activation instruction.
[0069] In one embodiment of the present disclosure, the acquisition module 401 is further specifically used to generate a rich media message body according to the message identifier, the source address and the destination address; generate an activation message body according to the activation instruction, the source address and the destination address; and splice and encapsulate the rich media message body and the activation message body to obtain the rich media message packet.
[0070] In one embodiment of the present disclosure, the device also includes a calling module; the receiving module 403 is also used to receive a configuration information request of the target terminal device; the configuration information request is sent when the target terminal device activates the rich media service and determines that the existing configuration information is expired; the calling module is used to call the registration service according to the configuration information request to obtain the latest configuration information; the sending module 402 is also used to send the latest configuration information to the target terminal device; the latest configuration information is used to establish a connection between the target terminal device and the message platform.
[0071] In the rich media message sending device of the embodiment of the present invention, the message platform obtains a rich media message message to be sent to the target terminal device; the rich media message message includes a message identifier and an activation instruction; the activation instruction is used to trigger the target terminal device to activate the rich media service; the rich media message message is sent to the target terminal device; a rich media message request is received after the target terminal device activates the rich media service; the rich media message request carries a message identifier; and the rich media message corresponding to the message identifier is sent to the target terminal device, thereby ensuring that the rich media message can be delivered to the target terminal device in a timely and fast manner, and ensuring the deliverability of the rich media message, avoiding the loss of the rich media message, and improving the transmission efficiency of the rich media message.
[0072] Figure 5 The present invention is a schematic diagram of the structure of a device for receiving rich media messages according to an embodiment of the present invention.
[0073] like Figure 5 As shown, the rich media message receiving device, applied to a terminal device, may include: a receiving module 501 , an activating module 502 and a sending module 503 .
[0074] Among them, the receiving module 501 is used to receive a rich media message message sent by a message platform; the rich media message message includes a message identifier and an activation instruction; the activation module 502 is used to activate the rich media service according to the activation instruction when the rich media service of the terminal device is dormant; the sending module 503 is used to send a rich media message request carrying the message identifier to the message platform; the receiving module 501 is also used to receive the rich media message corresponding to the message identifier returned by the message platform.
[0075] In one embodiment of the present disclosure, the rich media message message is obtained by splicing and encapsulating a rich media message body and an activation message body; the rich media message body includes the message identifier, the source address and the destination address of the rich media message; the activation message body includes the activation instruction, the source address and the destination address; the device also includes: a first parsing module and a calling module; the first parsing module is used to parse the activation message body to obtain the activation instruction in the rich media message message; the calling module is used to call the rich media service to parse the rich media message body after the rich media service is activated to obtain the message identifier in the rich media message message.
[0076] In one embodiment of the present disclosure, the device also includes: an acquisition module and an establishment module; the acquisition module is used to acquire existing configuration information and determine whether the existing configuration information is expired; the sending module is also used to send a configuration information request to the message platform to obtain the latest configuration information when the existing configuration information is expired; the establishment module is used to establish a connection between the terminal device and the message platform based on the latest configuration information.
[0077] In one embodiment of the present disclosure, the establishing module is further used to establish a connection between the terminal device and the message platform according to the existing configuration information when the existing configuration information has not expired.
[0078] In one embodiment of the present disclosure, the device also includes: a second parsing module and a display module; the second parsing module is used to parse the received rich media message to obtain a parsed rich media message; the display module is used to display the parsed rich media message.
[0079] In the rich media message receiving device of the embodiment of the present invention, the terminal device receives a rich media message message sent by a message platform; the rich media message message includes a message identifier and an activation instruction; when the rich media service of the terminal device is dormant, the rich media service is activated according to the activation instruction; a rich media message request carrying the message identifier is sent to the message platform; and a rich media message corresponding to the message identifier returned by the message platform is received, so that the rich media message can be received in a timely and fast manner, the delivery of the rich media message is ensured, the loss of the rich media message is avoided, and the transmission efficiency of the rich media message is improved.
[0080] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is also provided, including: a processor; a memory for storing processor executable instructions, wherein the processor is configured to: implement the method for sending a rich media message or the method for receiving a rich media message as described above.
[0081] In order to implement the above embodiments, the present disclosure also proposes a storage medium.
[0082] When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the method for sending a rich media message or the method for receiving a rich media message as described above.
[0083] In order to implement the above embodiments, the present disclosure also provides a computer program product.
[0084] When the computer program product is executed by a processor of an electronic device, the electronic device is enabled to execute the above method.
[0085] Figure 6 The figure is a structural block diagram of an electronic device according to an exemplary embodiment. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0086] like Figure 6 As shown, the electronic device 1000 includes a processor 111, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 112 or a program loaded from a memory 116 to a random access memory (RAM) 113. In the RAM 113, various programs and data required for the operation of the electronic device 1000 are also stored. The processor 111, the ROM 112, and the RAM 113 are connected to each other via a bus 114. An input / output (I / O) interface 115 is also connected to the bus 114.
[0087] The following components are connected to the I / O interface 115: a memory 116 including a hard disk, etc.; and a communication part 117 including a network interface card such as a local area network (LAN) card, a modem, etc., and the communication part 117 performs communication processing via a network such as the Internet; a drive 118 is also connected to the I / O interface 115 as needed.
[0088] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 117. When the computer program is executed by the processor 111, the above-mentioned functions defined in the method of the present disclosure are executed.
[0089] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by the processor 111 of the electronic device 1000 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0090] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0091] In addition, the word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a specific way. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".
[0092] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise noted, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although the specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and conducive to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in the specific embodiments or claims, such terms are intended to be inclusive in a manner similar to the term "comprising".
[0093] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0094] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for sending a rich media message, characterized in that: Applied to a message platform, the method includes: Acquire a rich media message to be sent to a target terminal device; the rich media message includes a message identifier and an activation instruction; the message identifier is used to uniquely identify the rich media message, and the activation instruction is used to trigger the target terminal device to activate a rich media service; Sending the rich media message to the target terminal device; Receiving a rich media message request sent by the target terminal device after activating the rich media service; the rich media message request carries the message identifier; Sending a rich media message corresponding to the message identifier to the target terminal device; The obtaining of the rich media message to be sent to the target terminal device includes: Acquire the rich media message to be sent, the message identifier of the rich media message, the source address and the destination address of the rich media message; the destination address is the address of the target terminal device; Call the activation service to obtain activation instructions; Generate a rich media message body according to the message identifier, the source address and the destination address; Generate an activation message body according to the activation instruction, the source address and the destination address; The rich media message body and the activation message body are concatenated and encapsulated to obtain the rich media message packet.
2. The method according to claim 1, characterized in that Before receiving the rich media message request sent by the target terminal device, the method further includes: receiving a configuration information request of the target terminal device; the configuration information request is sent when the target terminal device activates a rich media service and determines that existing configuration information is expired; Calling a registration service according to the configuration information request to obtain the latest configuration information; The latest configuration information is sent to the target terminal device; the latest configuration information is used to establish a connection between the target terminal device and the message platform.
3. A method for receiving a rich media message, characterized in that: Applied to a terminal device, the method comprises: A rich media message packet sent by a message platform according to the method for sending a rich media message according to any one of claims 1 to 2; the rich media message packet includes a message identifier and an activation instruction; When the rich media service of the terminal device is dormant, activating the rich media service according to the activation instruction; Sending a rich media message request carrying the message identifier to the message platform; Receive the rich media message corresponding to the message identifier returned by the message platform.
4. The method according to claim 3, characterized in that The rich media message is obtained by splicing and encapsulating a rich media message body and an activation message body; the rich media message body includes the message identifier, the source address and the destination address of the rich media message; The activation message body includes the activation instruction, the source address and the destination address; The method further comprises: Parsing the activation message body to obtain the activation instruction in the rich media message; After the rich media service is activated, the rich media service is called to parse the rich media message body to obtain the message identifier in the rich media message.
5. The method according to claim 3, characterized in that: After activating the rich media service according to the activation instruction, the method further includes: Obtain existing configuration information and determine whether the existing configuration information is expired; When the existing configuration information is expired, sending a configuration information request to the message platform to obtain the latest configuration information; A connection is established between the terminal device and the message platform according to the latest configuration information.
6. The method according to claim 5, characterized in that The method further comprises: In the case that the existing configuration information has not expired, a connection is established between the terminal device and the message platform according to the existing configuration information.
7. The method according to claim 3, characterized in that The method further comprises: Parsing the received rich media message to obtain a parsed rich media message; The parsed rich media message is displayed.
8. A device for sending a rich media message, characterized in that: Applied to a message platform, the device comprises: An acquisition module, used for acquiring a rich media message to be sent to a target terminal device; the rich media message includes a message identifier and an activation instruction; the message identifier is used to uniquely identify the rich media message, and the activation instruction is used to trigger the target terminal device to activate a rich media service; A sending module, used for sending the rich media message to the target terminal device; A receiving module, configured to receive a rich media message request sent by the target terminal device after activating the rich media service; the rich media message request carries the message identifier; The sending module is further used to send the rich media message corresponding to the message identifier to the target terminal device; The obtaining of the rich media message to be sent to the target terminal device includes: Acquire the rich media message to be sent, the message identifier of the rich media message, the source address and the destination address of the rich media message; the destination address is the address of the target terminal device; Call the activation service to obtain activation instructions; Generate a rich media message body according to the message identifier, the source address and the destination address; Generate an activation message body according to the activation instruction, the source address and the destination address; The rich media message body and the activation message body are concatenated and encapsulated to obtain the rich media message packet.
9. A device for receiving a rich media message, characterized in that: Applied to a terminal device, the device comprises: A receiving module, used for receiving a rich media message message sent by a message platform according to the method for sending a rich media message according to any one of claims 1 to 2; the rich media message message includes a message identifier and an activation instruction; An activation module, configured to activate the rich media service according to the activation instruction when the rich media service of the terminal device is dormant; A sending module, used for sending a rich media message request carrying the message identifier to the message platform; The receiving module is further used to receive the rich media message corresponding to the message identifier returned by the message platform.
10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to: Implement the steps of the method for sending a rich media message as described in any one of claims 1 to 2; or implement the steps of the method for receiving a rich media message as described in any one of claims 3 to 7.
11. A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor, enables the processor to execute the method for sending a rich media message as described in any one of claims 1 to 2; or, execute the method for receiving a rich media message as described in any one of claims 3 to 7.
Citation Information
Patent Citations
Processing method for rich media communication service, terminal equipment and communication system
CN101426184A
Method and device for pushing rich media information
CN106021459A
System for displaying commodity information based on rich media, goods shelf and information display method
CN108009891A
5G rich media message sending method and device, storage medium and product
CN114339628A
System for and method of embedding rich media into text messages
US20140136990A1
