CN114339628A - Method, device, storage medium and product for sending 5G rich media message - Google Patents

Method, device, storage medium and product for sending 5G rich media message Download PDF

Info

Publication number
CN114339628A
CN114339628A CN202111611065.6A CN202111611065A CN114339628A CN 114339628 A CN114339628 A CN 114339628A CN 202111611065 A CN202111611065 A CN 202111611065A CN 114339628 A CN114339628 A CN 114339628A
Authority
CN
China
Prior art keywords
message
rich media
sending
queue
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111611065.6A
Other languages
Chinese (zh)
Other versions
CN114339628B (en
Inventor
申继宁
张鹏飞
赵晗妮
陈功浩
杨起
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202111611065.6A priority Critical patent/CN114339628B/en
Publication of CN114339628A publication Critical patent/CN114339628A/en
Application granted granted Critical
Publication of CN114339628B publication Critical patent/CN114339628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method, equipment, a storage medium and a product for sending a 5G rich media message, which are applied to the technical field of communication. The specific implementation scheme comprises the following steps: receiving a 5G message sending request message sent by an upstream service system, and writing the 5G message sending request message into a preprocessing message queue; reading a 5G message sending request message from the preprocessing message queue, generating a corresponding 5G rich media message body according to the 5G message sending request message, and writing the 5G rich media message body into a message queue to be sent; reading a 5G rich media message body from a message queue to be sent, and generating a complete 5G rich media message according to the 5G rich media message body; and sending the complete 5G rich media message to operator equipment so that the operator equipment sends the complete 5G rich media message to a corresponding user terminal.

Description

Method, device, storage medium and product for sending 5G rich media message
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method, equipment, a storage medium and a product for sending a 5G rich media message.
Background
With the popularization of mobile terminal users, enterprises or merchants can send notification push and propaganda information to mobile phones of users in the form of text messages, and the technology of sending text messages is becoming mature. However, since the application of the 5G message is still in a starting stage, the 5G message transmission technology is not mature enough, and the 5G rich media message transmission method and system construction are still in an exploration stage.
The current message sending mode generally adopts a short message sending mode. The traditional short message sending mode adopts a polling database mode to send short messages, and data reading and writing are needed to be carried out from the database, so that the short message sending efficiency is low, and the short message sending time delay is long. The other short message sending mode adopts a mode of monitoring a message queue to realize the sending of the text message, the method can only send the text message, and does not support the sending of 5G rich media messages such as cards, audios and videos, geographical positions and the like, and the interactivity is weak, and the user experience is poor.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a storage medium, and a product for sending a 5G rich media message, so as to solve the technical problems in the prior art, such as low sending efficiency, long short message sending delay, no support for sending a 5G rich media message, low interactivity, and poor user experience.
In a first aspect, an embodiment of the present invention provides a method for sending a 5G rich media message, including:
receiving a 5G message sending request message sent by an upstream service system, and writing the 5G message sending request message into a preprocessing message queue;
reading a 5G message sending request message from the preprocessing message queue, generating a corresponding 5G rich media message body according to the 5G message sending request message, and writing the 5G rich media message body into a message queue to be sent;
reading a 5G rich media message body from the message queue to be sent, and generating a complete 5G rich media message according to the 5G rich media message body;
and sending the complete 5G rich media message to operator equipment so that the operator equipment sends the complete 5G rich media message to a corresponding user terminal.
In a second aspect, an embodiment of the present invention provides an electronic device, including: at least one processor, memory, and transceiver;
the processor, the memory and the transceiver circuitry are interconnected;
the memory stores computer-executable instructions; the transceiver is used for receiving and transmitting messages;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of the first aspect.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program that, when executed by a processor, implements the method according to the first aspect.
According to the method, the device, the storage medium and the product for transmitting the 5G rich media message, the 5G message transmission request message transmitted by the upstream service system is received, and the 5G message transmission request message is written into the preprocessing message queue; reading a 5G message sending request message from the preprocessing message queue, generating a corresponding 5G rich media message body according to the 5G message sending request message, and writing the 5G rich media message body into a message queue to be sent; reading a 5G rich media message body from a message queue to be sent, and generating a complete 5G rich media message according to the 5G rich media message body; and sending the complete 5G rich media message to operator equipment so that the operator equipment sends the complete 5G rich media message to a corresponding user terminal. The system is provided with a preprocessing message queue and a message queue to be sent in advance. The preprocessing message queue caches the received 5G message sending request message, and the message queue to be sent caches the 5G rich media message body generated according to the 5G message sending request message, so that links of receiving, processing and sending the message are decoupled, asynchronously processed and transmitted, the sending efficiency of the 5G rich media message can be effectively improved, and the complete 5G rich media message can be generated after the 5G message sending request message is processed, so that the sending of the 5G rich media message can be supported, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method for sending a 5G rich media message according to an embodiment of the present invention;
FIG. 2 is a general functional architecture diagram of a 5G rich media messaging method in which embodiments of the present invention may be implemented;
fig. 3 is a flowchart illustrating a method for sending a 5G rich media message according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for sending a 5G rich media message according to another embodiment of the present invention;
FIG. 5 is another overall functional architecture diagram of a 5G rich media messaging method in which embodiments of the present invention may be implemented;
fig. 6 is a flowchart illustrating a method for sending a 5G rich media message according to a further embodiment of the present invention;
fig. 7 is a flowchart illustrating a method for sending a 5G rich media message according to still another embodiment of the present invention;
fig. 8 is a flowchart illustrating a method for sending a 5G rich media message according to a further embodiment of the present invention;
FIG. 9 is a schematic structural diagram of an electronic device for implementing a 5G rich media message sending method according to an embodiment of the present invention;
fig. 10 is a block diagram of an electronic device for implementing a 5G rich media messaging method of an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
First, terms related to embodiments of the present invention are explained:
5G message: the converged Communication (RCS) is an intelligent upgrade of traditional short messages, and is based on the RCS UP standard established by the global system for mobile communications association (GSMA), and supports Rich media message forms such as pictures, audio, video, geographical locations, cards, and the like, with native short messages as an entry.
Rich media: refers to an information dissemination method with audio, picture, video, animation or interactivity.
Message queue: the method is a communication method between application programs, and solves the problems of application coupling, synchronous waiting, high concurrent flow peak flooding and the like.
Asynchronization: in the field of computers, synchronization means that when a process executes a request, if the request needs a period of time to return information, the process waits until the return information is received and then continues to execute; asynchronous means that the process can continue to execute subsequent operations without waiting for information to be returned all the time, so that application programs are decoupled, and the processing efficiency of the programs is improved.
URL: the uniform resource locator has a unique address for each information resource, and the address is the URL of the resource. The URL in the embodiment of the present invention refers to a URL of a rich media resource in a 5G rich media message. Before the rich media resources are used for making the 5G rich media message, the resources need to be delivered to an operator for auditing in advance, the operator can give a unique URL of the approved rich media resources as a positioning address of the resources, and the rich media resources are stored in operator equipment.
An upstream service system: the invention refers to a service system which needs to send 5G messages to users through the device for sending the mirror of the 5G rich media message provided by the embodiment of the invention.
Token authentication: the dynamic key is generated through parameters such as a user name, a password, an effective timestamp and the like, so that the access authority control of a single client and a single resource is realized.
And (3) status reporting: the status report indicating whether the message returned by the operator is sent is an uplink message with a specific format, and can be used for judging whether the message is sent to the user terminal.
For a clear understanding of the technical solutions of the present application, the prior art solutions are described in detail.
The current message sending mode generally adopts a short message sending mode. The traditional short message sending mode adopts a polling database mode to send short messages. Specifically, the short message to be sent is written into a table to be sent in the database, and the short message sending thread monitors, reads and sends the short message in the table to be sent. Because data reading and writing are required to be carried out from the database, the short message sending efficiency is low, and the short message sending time delay is long.
Another short message sending mode is to use a mode of monitoring a message queue to realize the sending of a text message. Specifically, messages such as notification push, promotion and the like are stored in a monitoring message queue and are sent to the user terminal in the form of text messages. The method can only send text messages, does not support sending of 5G rich media messages such as cards, audios and videos, geographic positions and the like, and is weak in interactivity and poor in user experience.
Therefore, in the face of the technical problems in the prior art, the inventors found through creative research that after receiving a 5G message transmission request message sent by an upstream service system, the 5G message transmission request message needs to be processed to form a complete 5G rich media message, and then the complete 5G rich media message can be sent to a corresponding user terminal through operator equipment. And further, the sending of the 5G rich media message is supported, and the user experience is improved. In order to effectively improve the sending efficiency of the 5G rich media message, the processes of receiving the message, processing the message and sending the message can be decoupled, processed asynchronously and transmitted. When the processes of receiving, processing and sending messages are decoupled, asynchronously processed and transmitted, a corresponding message queue is set for each link, and then the corresponding message is obtained from the message queue of the link and written into the message queue required by the next link after the processing is finished. Specifically, a 5G message sending request message sent by an upstream service system is received, and the 5G message sending request message is written into a preprocessing message queue. When the message is processed, reading a 5G message sending request message from the preprocessing message queue, generating a corresponding 5G rich media message body according to the 5G message sending request message, and writing the 5G rich media message body into a message queue to be sent. When a message is sent, reading a 5G rich media message body from a message queue to be sent, and generating a complete 5G rich media message according to the 5G rich media message body; and sending the complete 5G rich media message to the operator equipment.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
Fig. 1 is a schematic flow chart of a method for sending a 5G rich media message according to an embodiment of the present invention, and as shown in fig. 1, an execution subject of the method for sending a 5G rich media message according to the embodiment is a 5G rich media message sending apparatus. The 5G rich media message sending means is located in the electronic device. The method for sending the 5G rich media message provided by this embodiment includes the following steps:
step 101, receiving a 5G message sending request message sent by an upstream service system, and writing the 5G message sending request message into a preprocessing message queue.
The upstream service system is a system which needs to send a 5G rich media message to the user terminal. As for banks, the upstream business system may be an account mobilization system, an inquiry system, or the like.
As shown in fig. 2, when there is a need to send a 5G rich media message in the upstream service system, a 5G message sending request message is sent to the 5G rich media message sending apparatus. The message receiver in the 5G rich media message sending device can receive a 5G message sending request message sent by an upstream service system, and the message receiver writes the 5G message sending request message into the preprocessing message queue. Therefore, at least one 5G message sending request message is cached in the preprocessing message queue.
Wherein, as shown in fig. 2, the queue of messages to be sent can be located in the message storage pipeline.
Wherein, the 5G message sending request message includes a plurality of field information according to the 5G message transmission protocol standard, and may include: user terminal number, message content, etc.
Step 102, reading a 5G message sending request message from the preprocessing message queue, generating a corresponding 5G rich media message body according to the 5G message sending request message, and writing the 5G rich media message body into a message queue to be sent.
As shown in fig. 2, in this embodiment, the message processor may read the 5G message transmission request message from the pre-processing message queue, process the 5G message transmission request message, generate a corresponding 5G rich media message body, and write the 5G rich media message body into the message queue to be sent. At least one 5G rich media message body is buffered in the queue of messages to be sent.
The 5G rich media message body may include field information and card resource information in the message sending request message. Where the card asset information may include a rich media asset URL link. The rich media assets can be pictures, buttons, animations, audio, video, etc.
And 103, reading the 5G rich media message body from the message queue to be sent, and generating a complete 5G rich media message according to the 5G rich media message body.
As shown in fig. 2, in this embodiment, the message sender reads the 5G rich media message body from the message queue to be sent, and adds a message header to the 5G rich media message body to generate a complete 5G rich media message.
When the message header is added to the 5G rich media message body, the message header can be added according to the 5G message transmission protocol standard.
And 104, sending the complete 5G rich media message to operator equipment so that the operator equipment sends the complete 5G rich media message to a corresponding user terminal.
As shown in fig. 2, in this embodiment, a message sender is used to send a complete 5G rich media message to an operator device. And the operator equipment sends the complete 5G rich media message to the corresponding user terminal according to the user terminal number in the complete 5G rich media message.
In the method for sending the 5G rich media message provided in this embodiment, a request message for sending the 5G message sent by an upstream service system is received, and the request message for sending the 5G message is written into a pre-processing message queue; reading a 5G message sending request message from the preprocessing message queue, generating a corresponding 5G rich media message body according to the 5G message sending request message, and writing the 5G rich media message body into a message queue to be sent; reading a 5G rich media message body from a message queue to be sent, and generating a complete 5G rich media message according to the 5G rich media message body; and sending the complete 5G rich media message to operator equipment so that the operator equipment sends the complete 5G rich media message to a corresponding user terminal. The system is provided with a preprocessing message queue and a message queue to be sent in advance. The preprocessing message queue caches the received 5G message sending request message, and the message queue to be sent caches the 5G rich media message body generated according to the 5G message sending request message, so that links of receiving, processing and sending the message are decoupled, asynchronously processed and transmitted, the sending efficiency of the 5G rich media message can be effectively improved, and the complete 5G rich media message can be generated after the 5G message sending request message is processed, so that the sending of the 5G rich media message can be supported, and the user experience is improved.
Example two
Fig. 3 is a schematic flow chart of a method for sending a 5G rich media message according to another embodiment of the present invention, and as shown in fig. 3, the method for sending a 5G rich media message according to this embodiment further refines step 101 on the basis of the method for sending a 5G rich media message according to the first embodiment, then the method for sending a 5G rich media message according to this embodiment includes the following steps:
step 201, receiving a 5G message sending request message sent by an upstream service system.
Step 202, analyzing the 5G message sending request message to obtain field information in the 5G message sending request message.
In this embodiment, the 5G message transmission request packet is analyzed according to the 5G message transmission protocol standard, and the field information in the 5G message transmission request packet is obtained from the analysis result.
Wherein, the field information is private field information, and may include: user terminal number, message content, template identification information, card title, etc.
Step 203, checking the integrity of the field information, if the field information passes the integrity check, executing step 204, otherwise, executing step 205.
And step 204, if the field information passes the integrity check, writing the 5G message sending request message into a preprocessing message queue.
Step 205, if the field information does not pass the integrity check, returning error information to the upstream service system.
In this embodiment, whether field information included in the 5G message sending request message is complete may be determined according to a 5G message transmission protocol standard, so as to check the integrity of the field information. And if the field information is determined to be complete, the field information is proved to pass the integrity check, and the 5G message sending request message is written into the preprocessing message queue for subsequent processing. If the field information is determined to be incomplete, the field information is not subjected to integrity check, and then error information is returned to the upstream service system to prompt that the message sending request of the upstream service system fails.
The method for sending a 5G rich media message provided in this embodiment receives a 5G message sending request message sent by an upstream service system; analyzing the 5G message sending request message to obtain field information in the 5G message sending request message; checking the integrity of the field information; and if the field information passes the integrity check, writing the 5G message sending request message into a preprocessing message queue. And the integrity of the field information is checked after the 5G message sending request message is received, so that the subsequent processing of the 5G message sending request message can be effectively ensured to be smoothly carried out.
EXAMPLE III
Fig. 4 is a schematic flow chart of a method for sending a 5G rich media message according to yet another embodiment of the present invention, and as shown in fig. 4, on the basis of the method for sending a 5G rich media message according to the first embodiment or the second embodiment, the method for sending a 5G rich media message according to the present embodiment further refines the generation of the corresponding 5G rich media message body according to the 5G message sending request packet in step 102, and then the method for sending a 5G rich media message according to the present embodiment includes the following steps:
step 301, acquiring template identification information and a card title in the 5G message sending request message.
In this embodiment, the 5G message sending request message is analyzed to obtain the template identification information and the card title in the field information.
The template identification information may be represented as a template ID, which is the template identification information adopted by the 5G rich media message.
The card title is identification information of card resource information adopted in the 5G rich media message.
Step 302, reading the matched message template from the persistent storage according to the template identification information, and reading the matched card resource information from the persistent storage according to the card title.
As shown in FIG. 5, a resource storage element is included in persistent storage. The resource storage element stores various message templates and also stores various card resource information. When the message template is stored, the template ID and the matched message template can be stored in a correlated manner. When the card resource information is stored, the card title and the matched card resource information can be stored in an associated manner.
Specifically, in this embodiment, the template ID in the request message sent by the 5G message is used as an index, and the message template in the resource storage element is queried to obtain the message template matched with the template ID. And the card title in the request message sent by the 5G message is used as an index, and the card resource information in the resource storage element is inquired to obtain the card resource information matched with the card title.
The card resource information may be rich media resource information related to the card. Such as a URL for a rich media asset. The rich media resources are pictures, buttons, animations, audio, video pictures, buttons, audio and video and the like. The specific rich media asset may be obtained from the operator device via the URL of the rich media asset.
And 303, splicing the field information and the card resource information in the 5G message sending request message according to the format of the message template to generate a corresponding 5G rich media message body.
In this embodiment, the format of the message template has the adding position of each field information and card resource information, the field information and the card resource information are added to the corresponding positions according to the format of the message template to complete message splicing, and the spliced message is the corresponding 5G rich media message body.
In the method for sending the 5G rich media message provided by this embodiment, when the corresponding 5G rich media message body is generated according to the 5G message sending request message, the template identification information and the card title in the 5G message sending request message are obtained; reading the matched message template from the persistent memory according to the template identification information, and reading the matched card resource information from the persistent memory according to the card title; and splicing the field information and the card resource information in the 5G message sending request message according to the format of the message template to generate a corresponding 5G rich media message body. Because various message templates and various card resource information are stored in the persistent memory, various 5G rich media message bodies are generated according to different template identification information and/or card titles in the 5G message sending request message, the interaction requirements of the user on the 5G rich media message are met, and the user experience is further improved.
Example four
Fig. 6 is a schematic flow chart of a method for sending a 5G rich media message according to a further embodiment of the present invention, and as shown in fig. 6, the method for sending a 5G rich media message according to this embodiment further includes other steps before step 301 on the basis of the method for sending a 5G rich media message according to the third embodiment, and then the method for sending a 5G rich media message according to this embodiment further includes the following steps:
step 401, reading a forbidden list number from a forbidden list message queue of a configuration storage queue, and reading a sensitive word from a sensitive word message queue of the configuration storage queue.
In this embodiment, as shown in fig. 5, the message storage pipeline further includes a configuration storage queue, where the configuration storage queue includes a blacklist message queue and a sensitive word message queue.
And storing at least one forbidden list number in the forbidden list message queue. Each forbidden list number is a number for forbidding sending of the 5G rich media message to the corresponding user terminal. Sensitive words which violate laws and regulations and violate public order and good custom are stored in the sensitive word message queue. Such as harassment, slight, aggressive, 35881, cursory and other sensitive words.
In this embodiment, as shown in fig. 5, a message processor is used to read a forbidden list number from a forbidden list message queue of a configuration storage queue, and read a sensitive word from a sensitive word message queue of the configuration storage queue.
Step 402, obtaining the user terminal number field value and the message content field value in the 5G message sending request message field information.
In this embodiment, the 5G message transmission request packet is parsed, and a user terminal number field value and a message content field value are obtained from field information of the 5G message transmission request packet.
Step 403, determining whether the field value of the user terminal number exists in the forbidden list number, and determining whether the field value of the message content includes sensitive words.
In this embodiment, the field value of the user terminal number is compared with at least one forbidden list number, and whether the field value of the user terminal number exists in the forbidden list number is determined.
Step 404, if it is determined that the number field value of the user terminal exists in the forbidden list number and/or the message content field value includes a sensitive word, deleting the 5G message sending request message.
In this embodiment, if it is determined that the message exists in the forbidden list number, it indicates that the user terminal number in the 5G message transmission request message is also a forbidden number, and the 5G rich media message corresponding to the message transmission request message cannot be transmitted to the terminal corresponding to the user terminal number, so that the corresponding 5G message transmission request message is deleted.
In this embodiment, if it is determined that the message content field value includes at least one sensitive word, it indicates that the 5G rich media message corresponding to the message sending request message is a message violating laws and regulations and violating public customs, and the 5G rich media message corresponding to the 5G message sending request message cannot be sent to the corresponding user terminal, so the 5G message sending request message is deleted.
Step 405, if it is determined that the number field value of the user terminal does not exist in the forbidden list number and the message content field value does not include the sensitive word, acquiring the template identification information and the card title in the 5G message sending request message.
In this embodiment, if it is determined that the number field value of the user terminal does not exist in the forbidden list number and the message content field value does not include the sensitive word, it indicates that the user terminal corresponding to the message sending request message agrees to receive, does not violate the laws and regulations, and violates the public order and customs, so that the message sending request message is subjected to subsequent processing.
Before obtaining template identification information and a card title in a 5G message sending request message, the method for sending a 5G rich media message provided by this embodiment reads a forbidden list number from a forbidden list message queue configured with a storage queue, and reads a sensitive word from a sensitive word message queue configured with the storage queue; acquiring a user terminal number field value and a message content field value in field information of a 5G message sending request message; judging whether the field value of the user terminal number exists in the forbidden list number or not, and judging whether the field value of the message content includes sensitive words or not; if the number field value of the user terminal is determined to exist in the forbidden list number and/or the message content field value comprises the sensitive word, the 5G message sending request message is deleted, the 5G message sending request message containing the forbidden list number and/or the sensitive word can be filtered, the fact that harassment is not caused to users who do not want to receive the 5G rich media message is guaranteed, and the user complaint rate is reduced. And the sent 5G rich media message is ensured not to violate laws and regulations and public order customs, and the user experience is further improved.
EXAMPLE five
Fig. 7 is a schematic flow chart of a method for sending a 5G rich media message according to yet another embodiment of the present invention, and as shown in fig. 7, on the basis of the method for sending a 5G rich media message according to any one of the first to fourth embodiments of the 5G rich media message provided by the embodiment of the present invention, further details of generating a complete 5G rich media message according to the 5G rich media message body in step 103 are provided, and then the method for sending a 5G rich media message provided by this embodiment includes the following steps:
step 501, generating a dynamic key token according to a pre-configured user name, a pre-configured password and a pre-configured current time.
In this embodiment, the 5G rich media message sending device stores a user name and a password corresponding to the upstream service system. The username and password are pre-configured by the operator device and stored in the 5G rich media messaging device. And generating a dynamic key token by adopting the user name, the password and the current time according to a key generation algorithm.
Step 502, obtaining the message type and the message timestamp of the 5G rich media message body.
In this embodiment, the card resource information may be obtained according to the card title in the 5G message sending request message, and the message type may be determined according to the card resource information. The message type can be pictures, buttons, animations, audio, video pictures, buttons, audio and video, and the like.
In this embodiment, a timestamp for generating the 5G rich media message body is obtained as the message timestamp.
Step 503, encapsulate the message type, the dynamic key token and the message timestamp into a message header.
Step 504, the header and the 5G rich media message body are spliced to form a complete 5G rich media message.
In this embodiment, the message type, the dynamic key token, and the message timestamp are encapsulated into a header according to a format of the header of the 5G rich media message. And the message header and the 5G rich media message body are spliced to form a complete 5G rich media message after splicing.
In this embodiment, the complete 5G rich media message includes the dynamic key token and the message timestamp, after the complete 5G rich media message is sent to the operator device, the operator device parses the message header to obtain the message type, the dynamic key token and the message timestamp, provides the identity authentication information for the operator device, performs identity authentication on the upstream service system, and after the identity authentication is passed, the operator device sends the complete 5G rich media message to the corresponding user terminal.
In the method for sending the 5G rich media message provided by this embodiment, when the complete 5G rich media message is generated according to the 5G rich media message body, the dynamic key token is generated according to the preconfigured user name, password and current time; acquiring the message type and the message timestamp of the 5G rich media message body; packaging the message type, the dynamic key token and the message timestamp into a message header; the message header and the 5G rich media message body are spliced to form a complete 5G rich media message, the message header of the complete 5G rich media message comprises the message type, the dynamic key token and the message timestamp, so that identity authentication information can be provided for operator equipment, and after the identity authentication is passed, the operator equipment sends the complete 5G rich media message to a corresponding user terminal, so that the safety of the 5G rich media message in the transmission process can be ensured.
EXAMPLE six
Fig. 8 is a schematic flow chart of a method for sending a 5G rich media message according to a further embodiment of the present invention, and as shown in fig. 8, the method for sending a 5G rich media message according to the embodiment further includes, on the basis of the method for sending a 5G rich media message according to any one of the first to sixth embodiments, after sending a complete 5G rich media message to an operator device, the following steps:
step 601, writing the message sending flow information corresponding to the complete 5G rich media message into a sending flow message queue of a pre-stored message queue.
In this embodiment, as shown in fig. 5, the message storage pipeline further includes a pre-stored message queue. The pre-stored message queue comprises a transmission pipeline message queue and a status report message queue.
Specifically, in this embodiment, after the complete 5G rich media message is sent to the operator device, information such as sending time, a message type, and a message content is written into a sending pipeline message queue of a pre-stored message queue as message sending pipeline information, so as to cache the message sending pipeline information.
Step 602, receiving status report information corresponding to a complete 5G rich media message sent by an operator device.
In this embodiment, after receiving the complete 5G rich media message, the operator device sends the complete 5G rich media message to the corresponding user terminal, and generates status report information according to whether the message is sent to the corresponding user terminal. The operator device sends the status report to the 5G rich media messaging device.
Wherein, the status report information includes a transmission status value. The transmission status value may be transmission success, transmission failure, transmission timeout, or the like.
Step 603, writing the status report information into a status report message queue of a pre-stored message queue.
In this embodiment, the status report information is written into a status report message queue of a pre-stored message queue to cache the status report information, so as to provide data support for persistent store dropping processing of subsequent message sending pipeline information.
Step 604, reading the message sending flow information from the sending flow message queue.
In this embodiment, as shown in fig. 5, the message sender may read the message sending flow information from the sending flow message queue. The message sending flow information comprises information such as sending time, message type, message content and the like.
Step 605, writing the message sending flow information into the persistent memory, and setting the sending state value in the message sending flow information as a default to be successful in sending.
In this embodiment, as shown in fig. 5, a pipeline storage element is further included in the persistent memory.
Specifically, in this embodiment, the message sending pipeline information is written into the pipeline storage element of the persistent memory, so as to perform persistent library falling processing on the message sending pipeline information. The message transmission flow information does not have a transmission status value, so the default of the transmission status value is set as the transmission success.
Step 606, obtaining status report information corresponding to the message sending flow information from the status report message queue.
In this embodiment, status report information corresponding to the message sending flow information is obtained in the status report message queue, and the status report information includes a real sending status value.
The actual transmission status value may be transmission success, transmission failure, or transmission timeout.
Step 607, if the transmission status value in the corresponding status report information is transmission failure or transmission timeout, the transmission status value in the corresponding transmission flow information is updated.
In this embodiment, it is determined whether the transmission status value in the status report information is a successful transmission, and if not, the transmission status value in the corresponding transmission flow information is updated, specifically, the transmission status value is updated to the transmission status value in the status report information, for example, the transmission status value is updated to a transmission failure or a transmission timeout.
In the method for sending a 5G rich media message provided in this embodiment, message sending running water information corresponding to a complete 5G rich media message is written into a sending running water message queue of a pre-stored message queue; receiving state report information corresponding to a complete 5G rich media message sent by operator equipment; and writing the status report information into a status report message queue of a pre-stored message queue. The message sending flow information and the state report information can be cached, and data support is provided for the persistent database dropping processing of the subsequent message sending flow information.
In the method for sending the 5G rich media message provided by this embodiment, the message sending running water information is read from the sending running water message queue; writing the message sending flow information into a persistent memory, and setting a sending state value in the message sending flow information as a default to be successfully sent; acquiring state report information corresponding to the message sending flow information from a state report message queue; and if the transmission state value in the corresponding state report information is transmission failure or transmission overtime, updating the transmission state value in the corresponding transmission flow information. Persistent storage of message sending flow information can be achieved.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of an electronic device for implementing a method for sending a 5G rich media message according to an embodiment of the present invention, and as shown in fig. 9, an electronic device 70 provided in this embodiment includes: at least one processor 72, memory 71, and transceiver 73.
The processor 72, memory 71 and transceiver 73 are electrically interconnected.
Wherein the memory 71 stores computer-executable instructions. The transceiver 73 is used for transmitting and receiving messages.
The at least one processor 72 executes the memory-stored computer-executable instructions to cause the at least one processor to perform the method as provided in any one of the first to third embodiments.
Example eight
Fig. 10 is a block diagram of an electronic device, such as a computer, a messaging device, a tablet device, a personal digital assistant, a server cluster, etc., for implementing the 5G rich media messaging method of an embodiment of the present invention, as shown in fig. 10.
The electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method provided by any one of the first to third embodiments.
In an exemplary embodiment, a computer program product is also provided, which includes a computer program that is executed by a processor to perform the method provided by any one of the first to third embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (10)

1. A method for sending a 5G rich media message, comprising:
receiving a 5G message sending request message sent by an upstream service system, and writing the 5G message sending request message into a preprocessing message queue;
reading a 5G message sending request message from the preprocessing message queue, generating a corresponding 5G rich media message body according to the 5G message sending request message, and writing the 5G rich media message body into a message queue to be sent;
reading a 5G rich media message body from the message queue to be sent, and generating a complete 5G rich media message according to the 5G rich media message body;
and sending the complete 5G rich media message to operator equipment so that the operator equipment sends the complete 5G rich media message to a corresponding user terminal.
2. The method according to claim 1, wherein the receiving a 5G message transmission request message sent by an upstream service system, and writing the 5G message transmission request message into a pre-processing message queue comprises:
receiving a 5G message sending request message sent by an upstream service system;
analyzing the 5G message sending request message to obtain field information in the 5G message sending request message;
checking the integrity of the field information;
and if the field information passes the integrity check, writing the 5G message sending request message into a preprocessing message queue.
3. The method according to claim 2, wherein the generating a corresponding 5G rich media message body according to the 5G message transmission request packet comprises:
acquiring template identification information and a card title in the 5G message sending request message;
reading the matched message template from the persistent storage according to the template identification information, and reading the matched card resource information from the persistent storage according to the card title;
and splicing the field information and the card resource information in the 5G message sending request message according to the format of a message template to generate a corresponding 5G rich media message body.
4. The method according to claim 3, wherein before the obtaining of the template identification information and the card title in the 5G message transmission request message, further comprising:
reading a forbidden list number from a forbidden list message queue of a configuration storage queue, and reading a sensitive word from a sensitive word message queue of the configuration storage queue;
acquiring a user terminal number field value and a message content field value in the 5G message sending request message field information;
judging whether the field value of the user terminal number exists in a forbidden list number or not, and judging whether the field value of the message content includes the sensitive word or not;
and if the number field value of the user terminal exists in the forbidden list number and/or the message content field value comprises the sensitive word, deleting the 5G message sending request message.
5. The method of claim 1, wherein generating the complete 5G rich media message body from the 5G rich media message body comprises:
generating a dynamic key token according to a pre-configured user name, a pre-configured password and a pre-configured current time;
acquiring the message type and the message timestamp of the 5G rich media message body;
packaging the message type, the dynamic key token and the message timestamp into a message header;
and splicing the message header and the 5G rich media message body to form a complete 5G rich media message.
6. The method of claim 1, wherein after sending the complete 5G rich media message to an operator device, further comprising:
writing the message sending flow information corresponding to the complete 5G rich media message into a sending flow message queue of a pre-stored message queue;
receiving state report information corresponding to a complete 5G rich media message sent by operator equipment;
and writing the status report information into a status report message queue of the pre-stored message queue.
7. The method of claim 6, further comprising:
reading message sending flow information from the sending flow message queue;
writing the message sending flow information into a persistent memory, and setting a sending state value in the message sending flow information as a default to be successfully sent;
acquiring state report information corresponding to message sending flow information from the state report message queue;
and if the transmission state value in the corresponding state report information is transmission failure or transmission overtime, updating the transmission state value in the corresponding transmission flow information.
8. An electronic device, comprising: at least one processor, memory, and transceiver;
the processor, the memory and the transceiver circuitry are interconnected;
the memory stores computer-executable instructions; the transceiver is used for receiving and transmitting messages;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of claims 1-7.
9. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, perform the method of any one of claims 1-7.
10. A computer program product, comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any of claims 1-7.
CN202111611065.6A 2021-12-27 2021-12-27 5G rich media message sending method, equipment, storage medium and product Active CN114339628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111611065.6A CN114339628B (en) 2021-12-27 2021-12-27 5G rich media message sending method, equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111611065.6A CN114339628B (en) 2021-12-27 2021-12-27 5G rich media message sending method, equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN114339628A true CN114339628A (en) 2022-04-12
CN114339628B CN114339628B (en) 2023-07-04

Family

ID=81013376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111611065.6A Active CN114339628B (en) 2021-12-27 2021-12-27 5G rich media message sending method, equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN114339628B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2794319A1 (en) * 1999-02-24 2000-12-01 Hitachi Ltd Relay apparatus e.g. router used in computer network, stores header information in table which is referred during packet routing for communication quality, forwarding priority and suitability
CN103220644A (en) * 2013-03-06 2013-07-24 北京小米科技有限责任公司 Short message sending method, device and equipment
US20130304580A1 (en) * 2012-05-14 2013-11-14 Iqzone Systems and methods for providing timely advertising to portable devices
US20150244661A1 (en) * 2012-11-14 2015-08-27 Tencent Technology (Shenzhen) Company Limited Method and apparatus for displaying rich text message on network platform, and computer storage medium
CN105208004A (en) * 2015-08-25 2015-12-30 联创车盟汽车服务有限公司 Data input method based on OBD equipment
CN107682324A (en) * 2017-09-20 2018-02-09 华胜信泰信息产业发展有限公司 Method for message transmission, system, storage medium and computer equipment
CN108829503A (en) * 2018-06-27 2018-11-16 泰康保险集团股份有限公司 Method for scheduling task, device, system, medium and electronic equipment
WO2019210574A1 (en) * 2018-05-04 2019-11-07 平安科技(深圳)有限公司 Message processing method, apparatus, device, and readable storage medium
CN113011969A (en) * 2021-03-31 2021-06-22 建信金融科技有限责任公司 Banking business processing method, device, medium and electronic equipment based on 5G message
CN113099399A (en) * 2021-04-13 2021-07-09 中国工商银行股份有限公司 5G financial message data processing method, financial institution and operator service device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2794319A1 (en) * 1999-02-24 2000-12-01 Hitachi Ltd Relay apparatus e.g. router used in computer network, stores header information in table which is referred during packet routing for communication quality, forwarding priority and suitability
US20130304580A1 (en) * 2012-05-14 2013-11-14 Iqzone Systems and methods for providing timely advertising to portable devices
US20150244661A1 (en) * 2012-11-14 2015-08-27 Tencent Technology (Shenzhen) Company Limited Method and apparatus for displaying rich text message on network platform, and computer storage medium
CN103220644A (en) * 2013-03-06 2013-07-24 北京小米科技有限责任公司 Short message sending method, device and equipment
CN105208004A (en) * 2015-08-25 2015-12-30 联创车盟汽车服务有限公司 Data input method based on OBD equipment
CN107682324A (en) * 2017-09-20 2018-02-09 华胜信泰信息产业发展有限公司 Method for message transmission, system, storage medium and computer equipment
WO2019210574A1 (en) * 2018-05-04 2019-11-07 平安科技(深圳)有限公司 Message processing method, apparatus, device, and readable storage medium
CN108829503A (en) * 2018-06-27 2018-11-16 泰康保险集团股份有限公司 Method for scheduling task, device, system, medium and electronic equipment
CN113011969A (en) * 2021-03-31 2021-06-22 建信金融科技有限责任公司 Banking business processing method, device, medium and electronic equipment based on 5G message
CN113099399A (en) * 2021-04-13 2021-07-09 中国工商银行股份有限公司 5G financial message data processing method, financial institution and operator service device

Also Published As

Publication number Publication date
CN114339628B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN105391803B (en) Message pushing method, device, equipment and computer readable storage medium
US11677878B2 (en) Methods and systems for notifications in communications networks
US10425422B1 (en) Message content modification devices and methods
US20140325601A1 (en) Managing private information in instant messaging
CN106911666B (en) Wearable intelligent device and message processing method and system thereof
CN106603815B (en) Message processing method and device
CN111726456A (en) Data processing method and related device
CN111931464A (en) Document editing method and device and electronic equipment
CN114385382A (en) Light application access method and device, computer equipment and storage medium
CN112311750B (en) Interaction method and device and electronic equipment
CN113282590A (en) Interface joint debugging method and device based on 5G message
US11070659B2 (en) Incoming voice calling method and terminal
WO2018214795A1 (en) Call indication method, device and system
US20150052451A1 (en) Real time text message system
CN114339628A (en) Method, device, storage medium and product for sending 5G rich media message
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system
CN114201494A (en) Cloud document data processing method, device, equipment, storage medium and product
CN107222559B (en) Information calling method
CN113342811A (en) HBase table data processing method and device
CN111526084A (en) Information processing method, device, equipment and storage medium
CN115208875B (en) Information integration system of multi-transmission middleware
US20230377026A1 (en) Embedding texting and calling communications into media items
CN113824625B (en) Information interaction method and device
CN113612676B (en) Social group message synchronization method, device, equipment and storage medium
CN109889590B (en) Message processing method, device, client and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant