CN118301240A - Message sending and displaying method and device, server and terminal equipment - Google Patents

Message sending and displaying method and device, server and terminal equipment Download PDF

Info

Publication number
CN118301240A
CN118301240A CN202310013305.5A CN202310013305A CN118301240A CN 118301240 A CN118301240 A CN 118301240A CN 202310013305 A CN202310013305 A CN 202310013305A CN 118301240 A CN118301240 A CN 118301240A
Authority
CN
China
Prior art keywords
message
server
short code
text content
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310013305.5A
Other languages
Chinese (zh)
Inventor
赵德祥
余勇
朱建峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202310013305.5A priority Critical patent/CN118301240A/en
Priority to PCT/CN2023/132987 priority patent/WO2024146288A1/en
Publication of CN118301240A publication Critical patent/CN118301240A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application provides a message sending and displaying method, a device, a server and terminal equipment, wherein in the message sending method, after the server acquires message content to be sent, if the word number of complete text content in the message content exceeds a preset word number threshold value, a short code corresponding to the complete text content is constructed, the short code and the simplified text content are carried in a message, and the message is sent to the terminal equipment, so that the long text message of an enterprise can be sent to a target user in the form of a common short message, and the enterprise cost is saved. In addition, if the terminal equipment does not have the long text rendering capability, the server can send the complete text content to the terminal equipment, so that the terminal equipment which does not have the long text rendering capability can keep the short message content experience consistent with the previous text rendering capability.

Description

Message sending and displaying method and device, server and terminal equipment
Technical Field
The embodiment of the application relates to the technical field of intelligent terminals, in particular to a method, a device, a server and terminal equipment for sending and displaying messages.
Background
When an enterprise sends information to terminal equipment (such as a mobile phone) used by a target user, the following message types are mainly adopted:
1. Common short message: typically, messages with a word number within 70 words (including 70) will be charged by the operator as a short message, which is defined as a normal short message.
2. Long text short message: compared with the common short message, the character number exceeds 70 (excluding 70), but the message content is not divided into a plurality of common short messages to be displayed on the mobile phone, but is displayed on the mobile phone in the form of one message. The operator charges for the messages after more than 70 words according to a plurality of common short messages.
Based on the above description, it can be seen that when the enterprise sends a long text message to the target user, multiple short messages are used for charging, thereby increasing the enterprise cost.
Disclosure of Invention
The embodiment of the application provides a message sending and displaying method, a device, a server and terminal equipment, and also provides a computer readable storage medium so as to send a long text message of an enterprise to a target user in the form of a common short message, thereby saving the enterprise cost.
In a first aspect, an embodiment of the present application provides a method for sending a message, including: obtaining message content to be sent, wherein the message content to be sent comprises the following steps: the method comprises the steps of identifying terminal equipment used by a target user, complete text content of a message to be sent and simplified text content corresponding to the complete text content; if the word number of the complete text content exceeds a preset word number threshold value, constructing a short code corresponding to the complete text content; and carrying the short codes and the simplified text content in a message, and sending the message to the terminal equipment.
In the message sending method, after the server obtains the message content to be sent, if the word number of the complete text content in the message content exceeds the preset word number threshold value, a short code corresponding to the complete text content is constructed, the short code and the simplified text content are carried in the message, and the message is sent to the terminal equipment, so that the long text message of an enterprise can be sent to a target user in the form of a common short message, and the enterprise cost is saved. In addition, if the terminal equipment does not have the long text rendering capability, the server can send the complete text content to the terminal equipment, so that the terminal equipment which does not have the long text rendering capability can keep the short message content experience consistent with the previous text rendering capability.
In one possible implementation manner, the constructing the short code corresponding to the complete text content includes: acquiring whether the terminal equipment has long text rendering capability or not; and if the terminal equipment has the long text rendering capability, constructing a short code corresponding to the complete text content.
In one possible implementation manner, the carrying the short code and the reduced text content in a message includes: inserting the short code into the reduced text content; and carrying the simplified text content after the short codes are inserted in the message.
In one possible implementation manner, after the obtaining whether the terminal device has the long text rendering capability, the method further includes: and if the terminal equipment does not have the long text rendering capability, transmitting the complete text content to the terminal equipment.
In one possible implementation manner, the short code includes a short chain or text identification code, and after the short code corresponding to the complete text content is constructed, the method further includes: and recording the short code, the complete text content corresponding to the short code and the validity period of the short code.
In one possible implementation manner, after the message is sent to the terminal device, the method further includes: receiving a request sent by the terminal equipment, wherein the request carries an identifier of the terminal equipment and the short code; the short code carried in the request is obtained from the message content after the terminal equipment receives the message sent by the server; and if the moment of receiving the request is within the validity period of the short code, transmitting the recorded complete text content corresponding to the short code to the terminal equipment.
In one possible implementation manner, after receiving the request sent by the terminal device, the method further includes: and if the moment of receiving the request is not within the validity period of the short code, returning a response of failed content reading to the terminal equipment.
In one possible implementation manner, after receiving the request sent by the terminal device, the method further includes: if the moment of receiving the request is not within the validity period of the short code, constructing the short code corresponding to the complete text content again; and carrying the reconstructed short codes and the simplified text content in a message, and sending the message to the terminal equipment.
In one possible implementation manner, obtaining the reduced text content corresponding to the complete text content includes: obtaining simplified text content corresponding to the complete text content sent by an enterprise; or generating reduced text content corresponding to the complete text content according to the complete text content to be sent.
In one possible implementation manner, the obtaining whether the terminal device has long text rendering capability includes: receiving information of whether the terminal equipment reported by the terminal equipment has long text rendering capability or not; and acquiring whether the terminal equipment has long text rendering capability or not according to the information.
In one possible implementation manner, after receiving the request sent by the terminal device, the method further includes: and if the moment of receiving the request is within the validity period of the short code, determining that the terminal equipment has long text rendering capability.
In one possible implementation manner, the message also carries prompt information for acquiring the full text, and the prompt information is used for prompting a manner of acquiring the complete text content when the terminal equipment cannot view the simplified text content; after the message is sent to the terminal equipment, the method further comprises: if the prompt information sent by the terminal equipment is received, determining that the terminal equipment does not have long text rendering capability; and sending the complete text content to the terminal equipment.
In one possible implementation, the long text rendering capability includes: rich media card capability or long text capability.
In a second aspect, an embodiment of the present application provides a message display method, including: the terminal equipment receives the message sent by the server and analyzes the content of the message; if the short code is included in the message content, acquiring the short code; requesting the complete text content corresponding to the short code from the server according to the identification of the terminal equipment and the short code; receiving complete text content sent by the server; wherein the complete text content is sent after the server determines that the moment of receiving the request of the terminal equipment is within the validity period of the short code; and displaying the complete text content.
In the message display method, a terminal device receives a message sent by a server, analyzes the message content, acquires a short code if the short code is identified to be included in the message content, requests complete text content corresponding to the short code from the server according to the identification of the terminal device and the short code, and receives the complete text content sent by the server; wherein the complete text content is transmitted after the server determines that the time of receiving the request of the terminal device is within the validity period of the short code. And finally, the terminal equipment displays the complete text content. Therefore, the terminal equipment can receive the long text message of the enterprise sent by the server in the form of the common short message, and the enterprise cost is saved.
In one possible implementation manner, the identifying that the message content includes a short code includes: matching a predetermined short code prefix in the message content; and if the message content comprises a character string matched with the preset short code prefix, identifying that the message content comprises a short code.
In one possible implementation manner, after the requesting, from the server, the complete text content corresponding to the short code according to the identifier of the terminal device and the short code, the method further includes: and receiving a response of the content reading failure sent by the server, wherein the response of the content reading failure is sent by the server after the moment of determining that the request of the terminal equipment is received is not in the validity period of the short code.
In one possible implementation manner, after the requesting, from the server, the complete text content corresponding to the short code according to the identifier of the terminal device and the short code, the method further includes: receiving the information sent by the server again, and analyzing the information content; the server determines that the moment of receiving the request of the terminal equipment is not within the validity period of the short code, and then, the short code corresponding to the complete text content is built again, the built-up short code and the simplified text content corresponding to the complete text content are carried in the message, and the message is sent to the terminal equipment again; acquiring a short code in the received message content again; and requesting the corresponding complete text content from the server according to the identification of the terminal equipment and the short code acquired again.
In one possible implementation manner, before the terminal device receives the message sent by the server, the method further includes: and sending information whether the terminal equipment has long text rendering capability or not to the server.
In one possible implementation manner, the message also carries prompt information for acquiring the full text, and the prompt information is used for prompting a manner of acquiring the complete text content when the terminal equipment cannot view the simplified text content; after receiving the message sent by the server, the terminal device further includes: if the terminal equipment cannot acquire the short code, prompt information is sent to the server; and receiving the complete text content sent by the server.
In a third aspect, an embodiment of the present application provides a message sending device, where the device is included in a server, and the device has a function of implementing the server behavior in the first aspect and possible implementations of the first aspect. The functions may be realized by hardware, or may be realized by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above. For example, an acquisition module, a construction module, and a transmission module.
In a fourth aspect, an embodiment of the present application provides a message display apparatus, which is included in a terminal device, and has a function of implementing the behavior of the terminal device in the second aspect and possible implementations of the second aspect. The functions may be realized by hardware, or may be realized by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above. For example, a receiving module, an analyzing module, an obtaining module, a requesting module, and a display module.
In a fifth aspect, an embodiment of the present application provides a server, including: one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the server, cause the server to perform the steps of: obtaining message content to be sent, wherein the message content to be sent comprises the following steps: the method comprises the steps of identifying terminal equipment used by a target user, complete text content of a message to be sent and simplified text content corresponding to the complete text content; if the word number of the complete text content exceeds a preset word number threshold value, constructing a short code corresponding to the complete text content; and carrying the short codes and the simplified text content in a message, and sending the message to the terminal equipment.
In one possible implementation manner, the step of enabling the server to execute the short code corresponding to the complete text content when the instruction is executed by the server includes: acquiring whether the terminal equipment has long text rendering capability or not; and if the terminal equipment has the long text rendering capability, constructing a short code corresponding to the complete text content.
In one possible implementation, the step of causing the server to perform the step of carrying the short code and the reduced text content in a message includes: inserting the short code into the reduced text content; and carrying the simplified text content after the short codes are inserted in the message.
In one possible implementation manner, after the instructions, when executed by the server, cause the server to perform the step of obtaining whether the terminal device has long text rendering capability, the following steps are further performed: and if the terminal equipment does not have the long text rendering capability, transmitting the complete text content to the terminal equipment.
In one possible implementation manner, the short code includes a short chain or text identification code, and when the instruction is executed by the server, the server is caused to execute the short code corresponding to the complete text content, and then further execute the following steps: and recording the short code, the complete text content corresponding to the short code and the validity period of the short code.
In one possible implementation, the instructions, when executed by the server, cause the server to perform the step of sending the message to the terminal device, further perform the following steps: receiving a request sent by the terminal equipment, wherein the request carries an identifier of the terminal equipment and the short code; the short code carried in the request is obtained from the message content after the terminal equipment receives the message sent by the server; and if the moment of receiving the request is within the validity period of the short code, transmitting the recorded complete text content corresponding to the short code to the terminal equipment.
In one possible implementation manner, the instructions, when executed by the server, cause the server to perform the step of receiving the request sent by the terminal device, further perform the following steps: and if the moment of receiving the request is not within the validity period of the short code, returning a response of failed content reading to the terminal equipment.
In one possible implementation manner, the instructions, when executed by the server, cause the server to perform the step of receiving the request sent by the terminal device, further perform the following steps: if the moment of receiving the request is not within the validity period of the short code, constructing the short code corresponding to the complete text content again; and carrying the reconstructed short codes and the simplified text content in a message, and sending the message to the terminal equipment.
In one possible implementation manner, the step of enabling the server to perform obtaining the simplified text content corresponding to the complete text content when the instruction is executed by the server includes: obtaining simplified text content corresponding to the complete text content sent by an enterprise; or generating reduced text content corresponding to the complete text content according to the complete text content to be sent.
In one possible implementation manner, the step of enabling the server to perform the obtaining whether the terminal device has long text rendering capability includes: receiving information of whether the terminal equipment reported by the terminal equipment has long text rendering capability or not; and acquiring whether the terminal equipment has long text rendering capability or not according to the information.
In one possible implementation manner, the instructions, when executed by the server, cause the server to perform the step of receiving the request sent by the terminal device, further perform the following steps: and if the moment of receiving the request is within the validity period of the short code, determining that the terminal equipment has long text rendering capability.
In one possible implementation manner, the message also carries prompt information for acquiring the full text, and the prompt information is used for prompting a manner of acquiring the complete text content when the terminal equipment cannot view the simplified text content; when the instructions are executed by the server, the server is caused to perform the step of sending the message to the terminal device, further comprising the step of: if the prompt information sent by the terminal equipment is received, determining that the terminal equipment does not have long text rendering capability; and sending the complete text content to the terminal equipment.
In a sixth aspect, an embodiment of the present application provides a terminal device, including: one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the terminal device, cause the terminal device to perform the steps of: the terminal equipment receives the message sent by the server and analyzes the content of the message; if the short code is included in the message content, acquiring the short code; requesting the complete text content corresponding to the short code from the server according to the identification of the terminal equipment and the short code; receiving complete text content sent by the server; wherein the complete text content is sent after the server determines that the moment of receiving the request of the terminal equipment is within the validity period of the short code; and displaying the complete text content.
In one possible implementation manner, the step of enabling the terminal device to perform the identifying that the message content includes a short code includes: matching a predetermined short code prefix in the message content; and if the message content comprises a character string matched with the preset short code prefix, identifying that the message content comprises a short code.
In one possible implementation manner, after the instructions are executed by the terminal device, the terminal device is caused to execute the step of requesting, from the server, the complete text content corresponding to the short code according to the identifier of the terminal device and the short code, and further execute the following steps: and receiving a response of the content reading failure sent by the server, wherein the response of the content reading failure is sent by the server after the moment of determining that the request of the terminal equipment is received is not in the validity period of the short code.
In one possible implementation manner, after the step of requesting the complete text content corresponding to the short code from the server is performed by the terminal device according to the identifier of the terminal device and the short code, when the instruction is executed by the terminal device, the following steps are further performed: receiving the information sent by the server again, and analyzing the information content; the server determines that the moment of receiving the request of the terminal equipment is not within the validity period of the short code, and then, the short code corresponding to the complete text content is built again, the built-up short code and the simplified text content corresponding to the complete text content are carried in the message, and the message is sent to the terminal equipment again; acquiring a short code in the received message content again; and requesting the corresponding complete text content from the server according to the identification of the terminal equipment and the short code acquired again.
In one possible implementation manner, before the step of causing the terminal device to execute the message sent by the receiving server, the instruction is further executed, where the step of executing the instruction includes: and sending information whether the terminal equipment has long text rendering capability or not to the server.
In one possible implementation manner, the message also carries prompt information for acquiring the full text, and the prompt information is used for prompting a manner of acquiring the complete text content when the terminal equipment cannot view the simplified text content; when the instructions are executed by the terminal device, the steps of causing the terminal device to execute the step of receiving the message sent by the server are further performed by: if the terminal equipment cannot acquire the short code, prompt information is sent to the server; and receiving the complete text content sent by the server.
It should be understood that, the third aspect and the fifth aspect of the embodiment of the present application are consistent with the technical solutions of the first aspect of the embodiment of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
It should be understood that, the fourth aspect and the sixth aspect of the embodiments of the present application are consistent with the technical solutions of the second aspect of the embodiments of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
In a seventh aspect, an embodiment of the present application provides a computer readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform the method provided in the first aspect.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, which when run on a computer causes the computer to perform the method provided in the second aspect.
In a ninth aspect, an embodiment of the present application provides a computer program for performing the method provided in the first aspect, when the computer program is executed by a computer.
In a tenth aspect, embodiments of the present application provide a computer program for performing the method provided in the second aspect when the computer program is executed by a computer.
In one possible design, the program in the ninth aspect and the tenth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or in part or in whole on a memory not packaged together with the processor.
Drawings
Fig. 1 is a flow chart of sending a long text short message in the related art;
fig. 2 is a schematic diagram of an interface for displaying a long text message in a mobile phone terminal in the related art;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a server according to an embodiment of the present application;
FIG. 5 is a system architecture diagram of a message sending method according to an embodiment of the present application;
FIG. 6 is a flow chart of a message sending method according to an embodiment of the present application;
FIG. 7 is a flow chart of a message sending method according to another embodiment of the present application;
FIG. 8 is a flow chart of a message display method according to yet another embodiment of the present application;
FIG. 9 is a flow chart of a message display method according to yet another embodiment of the present application;
fig. 10 is a schematic diagram of a display interface of an information APP according to an embodiment of the present application;
fig. 11 is a schematic diagram of a display interface of an information APP according to another embodiment of the present application;
FIG. 12 (a) is a schematic diagram of a display interface of an information APP according to still another embodiment of the present application;
FIG. 12 (b) is a schematic diagram of a display interface of an information APP according to still another embodiment of the present application;
Fig. 13 is a schematic structural diagram of a server according to another embodiment of the present application;
FIG. 14 is a schematic diagram of a server according to still another embodiment of the present application;
Fig. 15 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
Detailed Description
The terminology used in the description of the embodiments of the application herein is for the purpose of describing particular embodiments of the application only and is not intended to be limiting of the application.
The sending of the long text short message is a standard operator short message service, fig. 1 is a flowchart of sending the long text short message in the prior art, and as shown in fig. 1, the existing sending process of the long text short message may include:
Step 1, an enterprise submits a long text message to be sent to a sending platform.
And step 2, after the enterprise short message sending platform performs text compliance checking, the content of the long text short message is sent to the short message gateway of the operator.
And 3, the operator short message gateway routes the short message to a mobile phone terminal used by the target user based on the number of the target user, and charges for the long text short message.
Step 4, a short message Application (APP) in a mobile phone terminal used by the target user receives and displays a long text short message, an interface for displaying the long text short message in the mobile phone terminal may be shown in fig. 2, and fig. 2 is a schematic diagram of an interface for displaying the long text short message in the mobile phone terminal in the related art.
However, according to the existing method for sending long text messages, when an enterprise sends a long text message to a target user, the long text message can only be sent through a telecommunication network channel of an operator, and charging is performed according to a plurality of short messages, so that the enterprise cost is increased.
Based on the above problems, the embodiment of the present application provides a message sending method, which may be applied to a terminal device, where the terminal device may be a smart phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or other devices; the embodiment of the application does not limit the specific type of the terminal equipment.
For example, fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application, and as shown in fig. 3, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, or may be used to transfer data between the terminal device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied on the terminal device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of terminal device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal device 100 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the terminal device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the terminal device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in various encoding formats, for example: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the terminal device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (such as audio data, phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or to handsfree talk through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device 100 receives a call or voice message, it is possible to receive voice by approaching the receiver 170B to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The terminal device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the terminal device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be contacted and separated from the terminal apparatus 100 by being inserted into the SIM card interface 195 or by being withdrawn from the SIM card interface 195. The terminal device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
In addition, the implementation of the message sending method provided by the embodiment of the application not only relates to the terminal equipment side, but also relates to the server side. The server may be an enterprise sms sending platform server, and the embodiment of the application does not limit the specific type of the server.
Fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application, and as shown in fig. 4, a server 400 includes a processor 410 and a communication interface 420. Optionally, the server 400 may also include a memory 430. Wherein the processor 410, the communication interface 420 and the memory 430 can communicate with each other via an internal connection path for transferring control and/or data signals, the memory 430 is used for storing a computer program, and the processor 410 is used for calling and running the computer program from the memory 430.
The processor 410 and the memory 430 may be combined into a single processing device, more commonly a separate component, and the processor 410 is configured to execute the program code stored in the memory 430. In particular implementations, the memory 430 may also be integrated into the processor 410 or independent of the processor 410.
In addition, in order to make the function of the server 400 more complete, the server 400 may further include one or more of an input unit 460 and a display unit 470, etc.
Optionally, the server 400 may further include a power supply 450 for providing power to various devices or circuits in the server 400.
It should be appreciated that the processor 410 in the server 400 shown in fig. 4 may be a system on a chip SOC, and the processor 410 may include a central processing unit (central processing unit, CPU) therein, and may further include other types of processors, such as: an image processor (graphics processing unit, GPU), etc.
In this embodiment, the processor 410 may include the following two functions: the short message sending and the terminal capability collection, wherein the terminal capability collection refers to that the processor 410 collects and stores the long text rendering capability reported by each terminal device 100, and constructs a terminal capability information base. The long text rendering capability stored by the processor 410 may be used for sending a short message, and inquire whether a certain short message receiving object has the capability of converting the long text short message content into a short text.
The short message sending means that the processor 410 generates and stores a short code, where the short code has a certain validity period, and generates a one-to-one or many-to-one relationship list of the short code and the long text short message. In this way, the processor 410 may determine whether to send the original long text content or the reduced text with short codes to the target user based on the long text rendering capabilities of the terminal device 100 used by the target user. When sending the short message, the processor 410 may query the stored content of the corresponding long text short message according to the user number and the short code, and send the content to the terminal device 100 used by the target user.
After receiving the short message sent by the processor 410 of the server 400, the information APP in the terminal device 100 can parse the content of the short message, identify the short code, and obtain the short code to request the server 400 for the corresponding long text content. In the embodiment of the application, the short codes are acquired based on the rule of unified configuration, so that the recognition speed and accuracy can be improved.
For easy understanding, the following embodiments of the present application will take a terminal device having a structure shown in fig. 3 as an example, and a server having a structure shown in fig. 4, and specifically describe a message sending method provided by the embodiments of the present application in conjunction with the accompanying drawings and application scenarios.
Fig. 5 is a system architecture diagram of a message sending method according to an embodiment of the present application, and as shown in fig. 5, the system architecture includes a terminal device 100, an enterprise 500, and a server 400. Optionally, the system architecture may further include a third party sms gateway 501.
Specifically, the terminal device 100 is configured to receive a short message. The information APP in the terminal device 100 is used for displaying a short message, and can identify a short code in a common short message, request original long text information on the server 400, and report to the server 400 whether the information APP in the terminal device 100 supports long text rendering capability. Specifically, the terminal device 100 may pre-store the address of the server 400, and then, the information APP in the terminal device 100 may report the long text rendering capability of the terminal device 100 to the server 400 according to the pre-stored address.
The server 400 is provided with a short message sending platform of the enterprise 500, and has short message sending and terminal capability acquisition capabilities. Specifically, the server 400 may query whether a certain short message receiving object has long text rendering capability, and determine whether to send long text or short text short messages including short codes. In addition, the server 400 may collect the long text rendering capability reported by the terminal device 100 and construct a long text rendering capability library, so as to query when sending a short message.
Fig. 6 is a flowchart of a message sending method according to an embodiment of the present application, and the message sending method according to the present embodiment may be applied to a server 400. As shown in fig. 6, the message sending method may include:
Step 601, obtaining the message content to be sent, where the message content to be sent may include: the identity of the terminal device 100 used by the target user, the complete text content of the message to be sent and the reduced text content corresponding to the complete text content.
Specifically, in one implementation manner, the content of the message to be sent may be the identifier of the terminal device 100 used by the target user, that is, the complete text content of the message to be sent and the reduced text content corresponding to the complete text content are all sent by the enterprise 500 to the server 400. The identification of the terminal device 100 used by the target user may be an identification of a subscriber identity module card installed in the terminal device 100, for example: mobile station international ISDN number (mobile station international ISDN number), i.e. the handset number; or the identifier of the terminal device 100 used by the target user may be an international mobile equipment identifier (international mobile equipment identity, IMEI) of the terminal device 100, and the identifier of the terminal device 100 is not limited in this embodiment, so long as the terminal device 100 can be uniquely identified.
In another implementation, the identity of the terminal device 100 used by the target user and the complete text content of the message to be sent may be sent by the enterprise 500 to the server 400; the reduced text content corresponding to the complete text content may be generated by the server 400 according to the complete text content of the message to be sent.
In step 602, if the number of words of the complete text content exceeds a predetermined word number threshold, a short code corresponding to the complete text content is constructed.
The predetermined word number threshold may be set by itself according to system performance and/or implementation requirements during implementation, and in this embodiment, the size of the predetermined word number threshold is not limited, for example, the predetermined word number threshold may be 70.
Specifically, the server 400 constructs and stores a short code, which has a validity period, and may be a short-chain or text identification code, etc., capable of uniquely identifying the content of a message during the validity period. The duration of the validity period may be set according to system performance and/or implementation requirements during specific implementation, and the embodiment is not limited to the duration of the validity period.
Further, after constructing the short code corresponding to the complete text content, the server 400 may record the short code, the complete text content corresponding to the short code, and the validity period of the short code. In particular implementations, the server 400 may generate a one-to-one or many-to-one relationship list of short codes and complete text content, as shown in Table 1.
TABLE 1
As can be seen from table 1, for the complete text content of "text 2", two corresponding short codes, namely, short code 2 and short code 3, are stored in the server 400, wherein the validity period of short code 2 is T1, and the validity period of short code 3 is T2.
Step 603, carrying the short code and the reduced text content in a message, and sending the message to the terminal device 100.
Specifically, the server 400 may directly transmit the above message to the terminal device 100; or the server 400 may send the message to the third party short message gateway 501 first, and then the third party short message gateway 501 sends the message to the terminal device 100.
In a specific implementation, the carrying the short code and the simplified text content in the message may be: the server 400 inserts the short code into the reduced text content, and then carries the reduced text content after the short code is inserted into the message. When inserting the short code into the reduced text content, the server 400 may insert the short code into the head, middle or tail of the reduced text content, and the insertion position of the short code in the reduced text is not limited in this embodiment.
In addition, before constructing the short code corresponding to the complete text content, the server 400 may further obtain whether the terminal device 100 has the long text rendering capability, and if the terminal device 100 has the long text rendering capability, construct the short code corresponding to the complete text content. If the terminal device 100 does not have long text rendering capability, the above-mentioned complete text content is transmitted to the terminal device 100. Also, the server 400 may directly transmit the above-described complete text content to the terminal device 100; or the server 400 may send the complete text content to the third-party sms gateway 501 first, and then the third-party sms gateway 501 sends the complete text content to the terminal device 100.
Specifically, in one implementation, the obtaining, by the server 400, whether the terminal device 100 has the long text rendering capability may be: the server 400 receives information about whether the terminal device 100 has the long text rendering capability reported by the terminal device 100, and obtains whether the terminal device 100 has the long text rendering capability according to the information. Wherein, the long text rendering capability may include: rich media card capability or long text capability.
Alternatively, after receiving the information about whether the terminal device 100 has the long text rendering capability reported by the terminal device 100, the server 400 may construct a capability information base for storing whether the terminal device 100 has the long text rendering capability, for example, for the terminal device 100, the server 400 may store the following information in the capability information base: deviceid=id1, handset number=msisdn 1, "long text rendering capability" = [ yes ].
In another implementation manner, the message sent by the server 400 to the terminal device 100 may further carry a prompt message for acquiring the full text, where the prompt message is used to prompt a manner of acquiring the complete text content when the terminal device 100 cannot view the simplified text content; thus, after step 603, if the server 400 receives the prompt message sent by the terminal device 100, it may be determined that the terminal device 100 does not have the long text rendering capability, and the server 400 sends the complete text content to the terminal device 100.
For example, the server 400 may carry a prompt message of "if the entire content of the short message cannot be viewed, please reply to" full text ", in the message sent to the terminal device 100, and after the message is sent to the terminal device 100, if the server 400 receives the message that the content sent by the terminal device 100 is" full text ", the server 400 may determine that the terminal device 100 does not have long text rendering capability, and send the complete text content to the terminal device 100.
In the above method for sending a message, after the server 400 obtains the message content to be sent, if the number of words of the complete text content in the message content exceeds the predetermined word number threshold, a short code corresponding to the complete text content is constructed, the short code and the simplified text content are carried in the message, and the message is sent to the terminal device 100, so that the long text message of the enterprise can be sent to the target user in the form of a common short message, and the enterprise cost is saved. In addition, if the terminal device 100 does not have the long text rendering capability, the server 400 may transmit the above-mentioned complete text content to the terminal device 100, so that the terminal device 100 not having the long text rendering capability may maintain the short message content experience consistent with the previous.
Fig. 7 is a flowchart of a message sending method according to another embodiment of the present application, as shown in fig. 7, in the embodiment of fig. 6 of the present application, after step 603, the method may further include:
In step 701, a request sent by the terminal device 100 is received, where the request carries the identifier of the terminal device 100 and the short code. Step 702 or step 703 is then performed.
The short code carried in the request is obtained from the message content after the terminal device 100 receives the message sent by the server 400.
Step 702, if the time of receiving the request is within the validity period of the short code, the recorded complete text content corresponding to the short code is sent to the terminal device 100.
In addition, if the time of receiving the request is within the validity period of the short code, the server 400 may determine that the terminal device 100 has a long text rendering capability.
In step 703, if the time of receiving the request is not within the validity period of the short code, a response of the content reading failure is returned to the terminal device 100.
That is, if the time at which the server 400 receives the request of the terminal device 100 has exceeded the validity period of the short code described above, the server 400 may transmit a response of the content read failure to the terminal device 100.
In addition, after step 701, if the time of receiving the request is not within the validity period of the short code, the server 400 may reconstruct the short code corresponding to the complete text content, carry the reconstructed short code and the reduced text content in a message, and send the message to the terminal device 100. It should be noted that, the steps of reconstructing the short code and sending the message may be performed sequentially or in parallel with step 703, which is not limited in this embodiment.
Fig. 8 is a flowchart of a message display method according to still another embodiment of the present application, and the message display method may be applied to the terminal device 100. As shown in fig. 8, the message display method may include:
in step 801, the terminal device 100 receives the message sent by the server 400, and parses the message content.
Further, before the terminal device 100 receives the message sent by the server, information about whether the terminal device 100 has long text rendering capability may also be sent to the server 400. Specifically, the terminal device 100 may report, to the server 400 through the capability reporting interface, information about whether the terminal device 100 has the long text rendering capability through the information APP installed in the terminal device 100.
Step 802, if it is identified that the message content includes a short code, the short code is acquired.
Specifically, identifying that the short code is included in the message content may be: and matching a preset short code prefix in the message content, and identifying that the short code is included in the message content if the message content includes a character string matched with the preset short code prefix. The short code may then be obtained from the message content.
In this embodiment, whether the short code is included in the message content is identified based on the predetermined short code prefix, so that the identification speed and accuracy of the short code can be improved.
The predetermined short code prefix may be set by itself when it is specifically implemented, and the specific form of the short code prefix is not limited in this embodiment, for example, the short code prefix may be "aim6.Cn".
Step 803, according to the identifier of the terminal device and the short code, the complete text content corresponding to the short code is requested to the server 400. Step 804 or step 806 is then performed.
Step 804, receiving the complete text content sent by the server 400; wherein the complete text content is transmitted after the validity period of the short code at the moment the server 400 determines that the request of the terminal device 100 is received.
Step 805, displaying the complete text content.
Step 806, receiving a response of the content read failure sent by the server 400, where the response of the content read failure is sent by the server 400 after determining that the time of receiving the request of the terminal device 100 is not within the validity period of the short code.
That is, if the time at which the server 400 receives the request of the terminal device 100 has exceeded the validity period of the short code described above, the server 400 may transmit a response of the content read failure to the terminal device 100, and the terminal device 100 receives the response of the content read failure transmitted by the server 400.
In addition, after step 803, the terminal device 100 may also receive the message sent again by the server 400 and parse the content of the message; the message resent by the server 400 is determined by the server 400 that the time when the request of the terminal device 100 is received is not within the validity period of the short code, the short code corresponding to the complete text content is built again, the short code built again and the simplified text content corresponding to the complete text content are carried in the message, and the message is resent to the terminal device 100. Then, the terminal device 100 may acquire the short code in the re-received message content, and request the corresponding complete text content from the server 400 according to the identification of the terminal device 100 and the re-acquired short code.
In addition, in one implementation manner, the message received by the terminal device 100 may also carry a prompt message for acquiring the full text, where the prompt message is used to prompt a manner of acquiring the complete text content when the terminal device 100 cannot view the simplified text content; thus, after step 801, if the terminal device 100 does not have long text rendering capability and cannot obtain the short code from the message, the terminal device 100 may also send the prompt information to the server 400, and receive the complete text content sent by the server 400.
In the message display method, the terminal device 100 receives a message sent by the server 400, analyzes the message content, acquires the short code if the short code is identified to be included in the message content, requests the server 400 for complete text content corresponding to the short code according to the identifier of the terminal device 100 and the short code, and receives the complete text content sent by the server 400; wherein the complete text content is transmitted after the validity period of the short code at the moment the server 400 determines that the request of the terminal device 100 is received. Finally, the terminal device 100 displays the above-described complete text content. Therefore, the terminal equipment 100 can receive the long text message of the enterprise sent by the server 400 in the form of the common short message, and the enterprise cost is saved.
Fig. 9 is a flowchart of a message display method according to still another embodiment of the present application, where, as shown in fig. 9, the message display method may include:
in step 901, the information APP in the terminal device 100 used by the user 1 reports "long text rendering capability" = [ yes ] to the server 400 through the capability reporting interface.
In addition, the server 400 may also carry a prompt message for acquiring the full text in a message sent to the terminal device 100, where the prompt message is used to prompt a manner of acquiring the complete text when the terminal device 100 cannot view the simplified text content. In this way, if the server 400 receives the above-mentioned prompt message sent by the terminal device 100, it may be determined that the terminal device 100 does not have the long text rendering capability.
In this embodiment, the server 400 may construct a capability information base for storing long text rendering capabilities of the terminal device 100, for example: the server 400 may store the following information in the capability information base: deviceid=id1, handset number=msisdn 1, "long text rendering capability" = [ yes ]; deviceid=id2, handset number=msisdn 2, "long text rendering capability" = [ no ].
At step 902, enterprise 500 submits the message content to be sent to server 400.
The message content to be sent may include:
target user: MSISDN1, MSISDN2;
complete text content: "Beijing zoo introduction" Beijing zoo is located in the western urban area of Beijing, the direct gate outer street, … …, also known as a world zoo. "
Corresponding reduced text content: "Beijing zoo introduction [ 10010 ].
In step 903, the server 400 determines that the number of words of the complete text content exceeds 70 words, and obtains whether the target user has long text rendering capability. Specifically, the server 400 finds that the terminal device 100 used by the user 1, i.e., MSISDN1, has long text rendering capability, and the user 2, i.e., MSISDN2, does not have long text rendering capability by querying the capability information base. Since the user 2 does not report the information about whether the terminal device 100 used by the user 2 has the long text rendering capability, the capability information base of the server 400 does not have the information about whether the terminal device 100 used by the user 2 has the long text rendering capability.
In step 904-1, the server 400 constructs a short code corresponding to the complete text content for the user 1 (MSISDN 1), and carries the constructed short code and the reduced text content in a message, and the server 400 sends the message to the third party short message gateway 501, for example: "[ 10010 ] Beijing zoo brief aim6.cn/qdFhMj", and record the corresponding mapping relationship. Of course, the server 400 may directly transmit the above message to the terminal device 100 used by the user 1.
In step 904-2, the server 400 carries the complete text content sent to the subscriber 2 (MSISDN 2) in a message, which is sent to the third party short message gateway 501. Likewise, the server 400 may also send a message directly to the terminal device 100 used by the user 2. In addition, the server 400 may record the short code of the user 1, the complete text content corresponding to the short code, and the validity period of the short code, as shown in table 2.
In step 905, the third party short message gateway 501 optionally sends the message to the target user.
In step 906, after receiving the message sent by the third party short message gateway 501, the information APP in the terminal device 100 used by the user 1 analyzes the content of the message, and identifies the short code aimn 6.Cn/qdFhMj, and obtains the short code.
In specific implementation, the identification short code can be obtained by matching to the aim6.cn based on prefix matching, so that the identification speed and accuracy can be improved.
The information APP in the terminal device 100 used by the user 1 requests the corresponding complete text content from the server 400 based on the identity of the terminal device (e.g. user number MSISDN 1) and the short code aimn 6.Cn/qdFhMj, step 907.
The information APP in the terminal device 100 used by the user 2 receives the complete text content "[ beijing zoo introduction ] beijing zoo is located at the street outside the west straight gate in the west urban area of beijing, china, … …, which is also a known zoo in the world. "direct original text display", as shown in fig. 10, fig. 10 is a schematic diagram of a display interface of the information APP provided by an embodiment of the present application.
In step 908, the server 400 queries the corresponding complete text content in the server 400 according to the identifier of the terminal device 100 used by the user 1 and the short code, and if the short code is within the validity period, returns the complete text content to the terminal device 100 used by the user 1.
In step 909, the information APP in the terminal device 100 used by the user 1 performs card display based on the complete text content requested from the server 400, where the user experience is consistent with the original sms experience, as shown in fig. 11, and fig. 11 is a schematic diagram of a display interface of the information APP provided by another embodiment of the present application.
As can be seen from comparing fig. 10 and fig. 11, compared with the original long text short message, fig. 11 has more "displaying original text" switching buttons 1101 below the text, after the "displaying original text" switching buttons 1101 are clicked, the terminal device 100 used by the user 1 can display the received simplified text content containing the short code, as shown in fig. 12 (a), and fig. 12 (a) is a schematic diagram of a display interface of the information APP provided by still another embodiment of the present application.
The message display method provided by the embodiment of the application can send the long text message of the enterprise to the target user in the form of the common short message, thereby saving the enterprise cost. In addition, if the terminal device 100 does not have the long text rendering capability, the server 400 may transmit the above-mentioned complete text content to the terminal device 100, so that the terminal device 100 not having the long text rendering capability may maintain the short message content experience consistent with the previous.
In another implementation manner, the server 400 may further obtain a message content to be sent, where the message content to be sent may include: the identity of the terminal device used by the target user and the complete text content of the message to be sent. For example, the identifiers of the terminal devices may be MSISDN1 and MSISDN2, and the complete text content may be "[ beijing zoo introduction ] beijing zoo is located at the directly-out street of the western urban area of beijing city, … …, which is also a known zoo in the world. "
The server 400 may then generate reduced text content corresponding to the complete text content described above, such as the Beijing zoo profile "[ 10010 ].
Next, since the number of words of the complete text content exceeds a predetermined word number threshold, the server 400 constructs a short code corresponding to the complete text content, and carries the short code and the simplified text content in a message, and in addition, the message may also carry a prompt message "if the whole content of the short message cannot be checked, please reply to 'full text'". Finally, the server 400 sends the above messages to the terminal devices 100 with terminal identities MSISDN1 and MSISDN2, respectively.
Fig. 12 (b) is a schematic diagram of a presentation interface of an information APP according to still another embodiment of the present application, and in this implementation, the information interface in the terminal device 100 with the terminal identifiers MSISDN1 and MSISDN2 may be as shown in fig. 12 (b).
Next, since the terminal device 100 with the terminal identifier MSISDN1 has the long text rendering capability, the terminal device 100 with the terminal identifier MSISDN1 may obtain a short code from the information, and then obtain the complete text content from the server 400 for display in the manner provided in steps 906 to 909, and the interface of the terminal device 100 with the terminal identifier MSISDN1 for displaying the complete text content of the information may be as shown in fig. 11.
The terminal device 100 with the terminal identifier MSISDN2 does not have long text rendering capability, so the terminal device 100 with the terminal identifier MSISDN2 cannot obtain a short code from the received message, the terminal device 100 with the terminal identifier MSISDN2 sends a message with the content of "full text" to the server 400, after receiving the message with the content of "full text", the server 400 determines that the terminal device 100 with the terminal identifier MSISDN2 does not have long text rendering capability, sends the complete text content to the terminal device 100 with the terminal identifier MSISDN2 for display, and the interface of displaying the complete text content of the information by the terminal device 100 with the terminal identifier MSISDN2 may be as shown in fig. 10.
It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and that embodiments of the present application may also perform other operations or variations of the various operations. Furthermore, the various steps may be performed in a different order presented in the above embodiments, and it is possible that not all of the operations in the above embodiments are performed.
It will be appreciated that the server, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The various exemplary algorithm steps described in connection with the disclosed embodiments of the application may be embodied in hardware or in a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the server may be divided into functional modules according to the above-described method embodiment, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
Fig. 13 is a schematic structural diagram of a server according to another embodiment of the present application, where fig. 13 shows a possible composition schematic diagram of a server 1300 related to the above embodiment in a case where respective functional modules are divided by corresponding respective functions, as shown in fig. 13, the server 1300 may include: an acquisition module 1301, a construction module 1302 and a sending module 1303;
The obtaining module 1301 is configured to obtain a message content to be sent, where the message content to be sent includes: the identification of the terminal equipment used by the target user, the complete text content of the message to be sent and the simplified text content corresponding to the complete text content;
A construction module 1302, configured to construct a short code corresponding to the complete text content when the number of words of the complete text content exceeds a predetermined word number threshold;
and the sending module 1303 is configured to carry the short code and the reduced text content in a message, and send the message to a terminal device.
It should be noted that, all relevant contents of each step related to the method embodiment shown in fig. 6 of the present application may be cited to the functional descriptions of the corresponding functional modules, which are not repeated herein.
The server 1300 provided in this embodiment is configured to perform the message sending method provided in the embodiment shown in fig. 6 of the present application, so that the same effects as those of the above method can be achieved.
Fig. 14 is a schematic structural diagram of a server according to still another embodiment of the present application, which is different from the server according to fig. 13 in that, in the server shown in fig. 14, a construction module 1302 is specifically configured to obtain whether a terminal device has long text rendering capability, and when the terminal device has long text rendering capability, construct a short code corresponding to the complete text content.
Further, the server may further include: an insert module 1304;
an inserting module 1304 for inserting the short code into the reduced text content;
the sending module 1303 is specifically configured to carry the reduced text content after the short code is inserted in the message.
Further, the sending module 1303 is further configured to send the complete text content to the terminal device when the terminal device does not have the long text rendering capability after obtaining whether the terminal device has the long text rendering capability.
In this embodiment, the short code may include a short chain or text identification code, and further, the server may further include: a recording module 1305;
The recording module 1305 is further configured to record the short code, the complete text content corresponding to the short code, and the validity period of the short code after the constructing module 1302 constructs the short code corresponding to the complete text content.
Further, the server may further include: a receiving module 1306;
A receiving module 1306, configured to receive a request sent by a terminal device after the sending module 1303 sends the message to the terminal device, where the request carries an identifier of the terminal device and the short code; the short code carried in the request is obtained from the message content after the terminal equipment receives the message sent by the server;
the sending module 1303 is further configured to send, when the time of receiving the request is within the validity period of the short code, the recorded complete text content corresponding to the short code to a terminal device; and returning a response of the content reading failure to the terminal device when the moment of receiving the request is not within the validity period of the short code.
In this embodiment, the construction module 1302 is further configured to, after the receiving module 1306 receives the request sent by the terminal device, reconstruct the short code corresponding to the complete text content if the time of receiving the request is not within the validity period of the short code;
the sending module 1303 is further configured to carry the reconstructed short code and the reduced text content in a message, and send the message to a terminal device.
In this embodiment, the obtaining module 1301 is specifically configured to obtain reduced text content corresponding to the complete text content sent by the enterprise; or generating reduced text content corresponding to the complete text content according to the complete text content to be sent.
Further, the server may further include: a determination module 1307;
A determining module 1307, configured to determine, after the receiving module 1306 receives the request sent by the terminal device, that the terminal device has long text rendering capability if the time at which the receiving module 1306 receives the request is within the validity period of the short code.
In this embodiment, the message may further carry a prompt message for acquiring the full text, where the prompt message is used to prompt a manner of acquiring the complete text content when the terminal device cannot view the simplified text content;
The determining module 1307 is further configured to determine that the terminal device does not have long text rendering capability if the receiving module 1306 receives the prompt message sent by the terminal device after the sending module 1303 sends the message to the terminal device.
The sending module 1303 is further configured to send the complete text content to a terminal device.
Further, the server may further include: a receiving module 1306 and a determining module 1307;
A receiving module 1306, configured to receive information that is reported by a terminal device and whether the terminal device has a long text rendering capability;
And the determining module 1307 is configured to obtain whether the terminal device has long text rendering capability according to the information. Wherein, the long text rendering capability may include: rich media card capability or long text capability.
It should be noted that, all relevant contents of each step related to the embodiments shown in fig. 6 and fig. 7 of the present application may be cited to the functional descriptions of the corresponding functional modules, which are not repeated herein.
The server 1300 provided in this embodiment is used to perform the message sending method provided in the embodiments shown in fig. 6 and fig. 7 of the present application, so that the same effects as those of the above method can be achieved.
It should be appreciated that the server 1300 may correspond to the server 400 shown in fig. 4. Wherein the functions of the transmitting module 1303 and the receiving module 1306 can be implemented by the processor 410 and the communication interface 420 in the server 400 shown in fig. 4; the functions of the acquisition module 1301, the construction module 1302, the insertion module 1304, the recording module 1305, and the determination module 1307 may be implemented by the processor 410 in the server 400 shown in fig. 4.
In the case of an integrated unit, the server 1300 may include a processing module, a storage module, and a communication module.
The processing module may be configured to control and manage the actions of the server 1300, for example, may be configured to support the server 1300 to perform the steps performed by the acquiring module 1301, the constructing module 1302, the sending module 1303, the inserting module 1304, the recording module 1305, the receiving module 1306, and the determining module 1307. A memory module may be used to support server 1300 in storing program codes and data, etc. A communication module, which may be used to support communication of the server 1300 with other devices.
Wherein the processing module may be a processor or controller that may implement or execute the various exemplary logic blocks, modules and circuits described in connection with the present disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital Signal Processing (DSP) and a combination of microprocessors, and the like. The memory module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In one embodiment, when the processing module is a processor and the storage module is a memory, the server 1300 according to the present embodiment may be a device having the structure shown in fig. 4.
Also, it will be appreciated that the terminal device, in order to implement the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The various exemplary algorithm steps described in connection with the disclosed embodiments of the application may be embodied in hardware or in a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the terminal device may be divided into functional modules according to the above embodiment of the method, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
Fig. 15 is a schematic structural diagram of a terminal device according to another embodiment of the present application, where fig. 15 shows a possible schematic structural diagram of a terminal device 1500 related to the above embodiment in a case where respective functional modules are divided by corresponding respective functions, and as shown in fig. 15, the terminal device 1500 may include: a receiving module 1501, an analyzing module 1502, an obtaining module 1503, a requesting module 1504 and a displaying module 1505;
Wherein, the receiving module 1501 is configured to receive a message sent by a server;
a parsing module 1502, configured to parse the message content;
An obtaining module 1503, configured to obtain the short code when it is identified that the message content includes the short code;
a request module 1504, configured to request, according to an identifier of a terminal device and the short code, complete text content corresponding to the short code from a server;
a receiving module 1501, configured to receive the complete text content sent by the server; wherein the complete text content is sent after the server determines the time of receiving the request of the terminal equipment within the validity period of the short code;
The display module 1505 is used for displaying the complete text content.
In the above terminal device, the obtaining module 1503 is specifically configured to match a predetermined short code prefix with the message content; if the message content includes a character string matched with a preset short code prefix, the short code is identified to be included in the message content.
In this embodiment, the receiving module 1501 is further configured to receive a response of a content read failure sent by the server after the request module 1504 requests the server for the complete text content corresponding to the short code, where the response of the content read failure is sent by the server after determining that the time of receiving the request of the terminal device is not within the validity period of the short code.
In this embodiment, the receiving module 1501 is further configured to receive a message sent again by the server after the requesting module 1504 requests the server for the complete text content corresponding to the short code; the method comprises the steps that a server determines that the moment of receiving a request of a terminal device is not within the validity period of a short code, a short code corresponding to complete text content is built again, the built short code and simplified text content corresponding to the complete text content are carried in the message, and the message is sent to the terminal device again;
The parsing module 1502 is further configured to parse the message content;
the obtaining module 1503 is further configured to obtain a short code in the received message content;
the request module 1504 is further configured to request, according to the identifier of the terminal device and the short code acquired again, the corresponding complete text content from the server.
Further, the terminal device may further include: a transmission module 1506;
a sending module 1506, configured to send, to the server, information about whether the terminal device has long text rendering capability before the receiving module 1501 receives the message sent by the server.
In addition, the terminal device may further include: a transmission module 1506; in this embodiment, the message further carries a prompt message for acquiring the full text, where the prompt message is used to prompt a manner of acquiring the complete text content when the terminal device cannot view the simplified text content;
a sending module 1506, configured to send a prompt message to the server if the terminal device cannot obtain the short code after the receiving module 1501 receives the message sent by the server;
the receiving module 1501 is further configured to receive the complete text content sent by the server.
It should be noted that, all relevant contents of each step related to the embodiment of fig. 8 of the present application may be cited in the functional description of the corresponding functional module, which is not repeated herein.
The terminal device 1500 provided in this embodiment is configured to perform the message display method provided in the embodiment shown in fig. 8 of the present application, so that the same effects as those of the above method can be achieved.
It should be appreciated that the terminal device 1500 may correspond to the terminal device 100 shown in fig. 3. Wherein the functions of the receiving module 1501 and the transmitting module 1506 may be implemented by the processor 110, the antenna 1 and the mobile communication module 150 in the terminal device 100 shown in fig. 1, and/or by the processor 110, the antenna 2 and the wireless communication module 160; the functions of the parsing module 1502, the obtaining module 1503 and the requesting module 1504 may be implemented by the processor 110 in the terminal device 100 shown in fig. 3; the functions of the display module 1505 may be implemented by the processor 110 and the display screen 194 in the terminal device 100 shown in fig. 3.
In case of employing an integrated unit, the terminal device 1500 may include a processing module, a storage module, and a communication module.
The processing module may be configured to control and manage the actions of the terminal device 1500, for example, may be configured to support the terminal device 1500 to perform the steps performed by the receiving module 1501, the parsing module 1502, the obtaining module 1503, the requesting module 1504, the displaying module 1505, and the sending module 1506. The memory module may be used to support the terminal device 1500 in storing program codes and data, etc. A communication module, which may be used to support communication between the terminal device 1500 and other devices.
Wherein the processing module may be a processor or controller that may implement or execute the various exemplary logic blocks, modules and circuits described in connection with the present disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital Signal Processing (DSP) and a combination of microprocessors, and the like. The memory module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the terminal device 1500 according to this embodiment may be a device having the structure shown in fig. 3.
Embodiments of the present application also provide a computer-readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the methods provided by the embodiments of the present application shown in fig. 6 to 7.
The embodiment of the present application further provides a computer readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the method provided by the embodiment of fig. 8 of the present application.
Embodiments of the present application also provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the method provided by the embodiments of the present application shown in fig. 6-7.
Embodiments of the present application also provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the method provided by the embodiment of the present application shown in fig. 8.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided by the present application, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely exemplary embodiments of the present application, and any person skilled in the art may easily conceive of changes or substitutions within the technical scope of the present application, which should be covered by the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (41)

1. A method of transmitting a message, comprising:
Obtaining message content to be sent, wherein the message content to be sent comprises the following steps: the method comprises the steps of identifying terminal equipment used by a target user, complete text content of a message to be sent and simplified text content corresponding to the complete text content;
if the word number of the complete text content exceeds a preset word number threshold value, constructing a short code corresponding to the complete text content;
And carrying the short codes and the simplified text content in a message, and sending the message to the terminal equipment.
2. The method of claim 1, wherein said constructing the corresponding short code of the complete text content comprises:
acquiring whether the terminal equipment has long text rendering capability or not;
and if the terminal equipment has the long text rendering capability, constructing a short code corresponding to the complete text content.
3. The method of claim 1, wherein the carrying the short code and the reduced text content in a message comprises:
Inserting the short code into the reduced text content;
and carrying the simplified text content after the short codes are inserted in the message.
4. The method of claim 2, wherein after the obtaining whether the terminal device is capable of long text rendering, further comprising:
And if the terminal equipment does not have the long text rendering capability, transmitting the complete text content to the terminal equipment.
5. The method of claim 1, wherein the short code comprises a short-chain or text identification code, and wherein after constructing the short code corresponding to the complete text content, further comprises:
And recording the short code, the complete text content corresponding to the short code and the validity period of the short code.
6. The method of claim 5, wherein after the sending the message to the terminal device, further comprises:
receiving a request sent by the terminal equipment, wherein the request carries an identifier of the terminal equipment and the short code; the short code carried in the request is obtained from the message content after the terminal equipment receives the message sent by the server;
and if the moment of receiving the request is within the validity period of the short code, transmitting the recorded complete text content corresponding to the short code to the terminal equipment.
7. The method of claim 6, wherein after receiving the request sent by the terminal device, further comprising:
and if the moment of receiving the request is not within the validity period of the short code, returning a response of failed content reading to the terminal equipment.
8. The method according to claim 6 or 7, further comprising, after said receiving the request sent by the terminal device:
If the moment of receiving the request is not within the validity period of the short code, constructing the short code corresponding to the complete text content again;
And carrying the reconstructed short codes and the simplified text content in a message, and sending the message to the terminal equipment.
9. The method of claim 1, wherein obtaining reduced text content corresponding to the complete text content comprises:
Obtaining simplified text content corresponding to the complete text content sent by an enterprise; or alternatively
And generating simplified text content corresponding to the complete text content according to the complete text content to be transmitted.
10. The method of claim 2, wherein the obtaining whether the terminal device is long text rendering capable comprises:
Receiving information of whether the terminal equipment reported by the terminal equipment has long text rendering capability or not;
And acquiring whether the terminal equipment has long text rendering capability or not according to the information.
11. The method of claim 6, wherein after receiving the request sent by the terminal device, further comprising:
and if the moment of receiving the request is within the validity period of the short code, determining that the terminal equipment has long text rendering capability.
12. The method of claim 1, wherein the message further carries a prompt message for obtaining full text, the prompt message being used to prompt a manner of obtaining complete text content when the terminal device cannot view the reduced text content;
after the message is sent to the terminal equipment, the method further comprises:
If the prompt information sent by the terminal equipment is received, determining that the terminal equipment does not have long text rendering capability;
and sending the complete text content to the terminal equipment.
13. The method of claim 2, 11 or 12, wherein the long text rendering capability comprises: rich media card capability or long text capability.
14. A message display method, comprising:
the terminal equipment receives the message sent by the server and analyzes the content of the message;
if the short code is included in the message content, acquiring the short code;
requesting the complete text content corresponding to the short code from the server according to the identification of the terminal equipment and the short code;
receiving complete text content sent by the server; wherein the complete text content is sent after the server determines that the moment of receiving the request of the terminal equipment is within the validity period of the short code;
And displaying the complete text content.
15. The method of claim 14, wherein said identifying that the message content includes a short code comprises:
matching a predetermined short code prefix in the message content;
And if the message content comprises a character string matched with the preset short code prefix, identifying that the message content comprises a short code.
16. The method according to claim 14, wherein after the requesting the complete text content corresponding to the short code from the server according to the identification of the terminal device and the short code, the method further comprises:
And receiving a response of the content reading failure sent by the server, wherein the response of the content reading failure is sent by the server after the moment of determining that the request of the terminal equipment is received is not in the validity period of the short code.
17. The method according to claim 14 or 16, wherein after the requesting the server for the complete text content corresponding to the short code according to the identification of the terminal device and the short code, the method further comprises:
Receiving the information sent by the server again, and analyzing the information content; the server determines that the moment of receiving the request of the terminal equipment is not within the validity period of the short code, and then, the short code corresponding to the complete text content is built again, the built-up short code and the simplified text content corresponding to the complete text content are carried in the message, and the message is sent to the terminal equipment again;
acquiring a short code in the received message content again;
And requesting the corresponding complete text content from the server according to the identification of the terminal equipment and the short code acquired again.
18. The method of claim 14, wherein before the terminal device receives the message sent by the server, further comprising:
and sending information whether the terminal equipment has long text rendering capability or not to the server.
19. The method of claim 14, wherein the message further carries a prompt message for obtaining full text, the prompt message being used to prompt a manner of obtaining complete text content when the terminal device cannot view the reduced text content;
after receiving the message sent by the server, the terminal device further includes:
if the terminal equipment cannot acquire the short code, prompt information is sent to the server;
and receiving the complete text content sent by the server.
20. A message transmission apparatus, comprising:
The acquisition module is used for acquiring the message content to be transmitted, wherein the message content to be transmitted comprises the following components: the method comprises the steps of identifying terminal equipment used by a target user, complete text content of a message to be sent and simplified text content corresponding to the complete text content;
the construction module is used for constructing short codes corresponding to the complete text content when the word number of the complete text content exceeds a preset word number threshold value;
And the sending module is used for carrying the short codes and the simplified text content in a message and sending the message to the terminal equipment.
21. A message display device, comprising:
The receiving module is used for receiving the message sent by the server;
the analysis module is used for analyzing the message content;
The acquisition module is used for acquiring the short codes when the short codes are included in the message content;
The request module is used for requesting the complete text content corresponding to the short code from the server according to the identification of the terminal equipment and the short code;
The receiving module is also used for receiving the complete text content sent by the server; wherein the complete text content is sent after the server determines that the moment of receiving the request of the terminal equipment is within the validity period of the short code;
and the display module is used for displaying the complete text content.
22. A server, comprising:
one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the server, cause the server to perform the steps of:
Obtaining message content to be sent, wherein the message content to be sent comprises the following steps: the method comprises the steps of identifying terminal equipment used by a target user, complete text content of a message to be sent and simplified text content corresponding to the complete text content;
if the word number of the complete text content exceeds a preset word number threshold value, constructing a short code corresponding to the complete text content;
And carrying the short codes and the simplified text content in a message, and sending the message to the terminal equipment.
23. The server of claim 22, wherein the instructions, when executed by the server, cause the server to perform the step of constructing the short code corresponding to the complete text content comprises:
acquiring whether the terminal equipment has long text rendering capability or not;
and if the terminal equipment has the long text rendering capability, constructing a short code corresponding to the complete text content.
24. The server of claim 22, wherein the instructions, when executed by the server, cause the server to perform the step of carrying the short code and the reduced text content in a message comprises:
Inserting the short code into the reduced text content;
and carrying the simplified text content after the short codes are inserted in the message.
25. The server of claim 23, wherein the instructions, when executed by the server, cause the server to perform the step of obtaining whether the terminal device is long text rendering capable, further comprise:
And if the terminal equipment does not have the long text rendering capability, transmitting the complete text content to the terminal equipment.
26. The server of claim 23, wherein the short code comprises a short chain or text identification code that, when executed by the server, causes the server to execute the short code corresponding to the complete text content, further comprising:
And recording the short code, the complete text content corresponding to the short code and the validity period of the short code.
27. The server of claim 26, wherein the instructions, when executed by the server, cause the server to perform the step of sending the message to the terminal device, further comprising:
receiving a request sent by the terminal equipment, wherein the request carries an identifier of the terminal equipment and the short code; the short code carried in the request is obtained from the message content after the terminal equipment receives the message sent by the server;
and if the moment of receiving the request is within the validity period of the short code, transmitting the recorded complete text content corresponding to the short code to the terminal equipment.
28. The server of claim 27, wherein the instructions, when executed by the server, cause the server to perform the step of receiving the request sent by the terminal device, further comprise:
and if the moment of receiving the request is not within the validity period of the short code, returning a response of failed content reading to the terminal equipment.
29. The server according to claim 27 or 28, characterized in that the instructions, when executed by the server, cause the server to perform the step of receiving the request sent by the terminal device, further perform the step of:
If the moment of receiving the request is not within the validity period of the short code, constructing the short code corresponding to the complete text content again;
And carrying the reconstructed short codes and the simplified text content in a message, and sending the message to the terminal equipment.
30. The server of claim 22, wherein the instructions, when executed by the server, cause the server to perform the step of obtaining reduced text content corresponding to the complete text content comprises:
Obtaining simplified text content corresponding to the complete text content sent by an enterprise; or alternatively
And generating simplified text content corresponding to the complete text content according to the complete text content to be transmitted.
31. The server of claim 23, wherein the instructions, when executed by the server, cause the server to perform the step of obtaining whether the terminal device is long text rendering capable comprises:
Receiving information of whether the terminal equipment reported by the terminal equipment has long text rendering capability or not;
And acquiring whether the terminal equipment has long text rendering capability or not according to the information.
32. The server of claim 27, wherein the instructions, when executed by the server, cause the server to perform the step of receiving the request sent by the terminal device, further comprise:
and if the moment of receiving the request is within the validity period of the short code, determining that the terminal equipment has long text rendering capability.
33. The server according to claim 22, wherein the message further carries a prompt message for acquiring full text, where the prompt message is used to prompt a manner of acquiring complete text content when the terminal device cannot view the reduced text content;
when the instructions are executed by the server, the server is caused to perform the step of sending the message to the terminal device, further comprising the step of:
If the prompt information sent by the terminal equipment is received, determining that the terminal equipment does not have long text rendering capability;
and sending the complete text content to the terminal equipment.
34. A terminal device, comprising:
one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the terminal device, cause the terminal device to perform the steps of:
the terminal equipment receives the message sent by the server and analyzes the content of the message;
if the short code is included in the message content, acquiring the short code;
requesting the complete text content corresponding to the short code from the server according to the identification of the terminal equipment and the short code;
receiving complete text content sent by the server; wherein the complete text content is sent after the server determines that the moment of receiving the request of the terminal equipment is within the validity period of the short code;
And displaying the complete text content.
35. The terminal device of claim 34, wherein the instructions, when executed by the terminal device, cause the terminal device to perform the step of identifying that a short code is included in the message content comprises:
matching a predetermined short code prefix in the message content;
And if the message content comprises a character string matched with the preset short code prefix, identifying that the message content comprises a short code.
36. The terminal device of claim 34, wherein the instructions, when executed by the terminal device, cause the terminal device to perform the step of requesting complete text content corresponding to the short code from the server based on the identification of the terminal device and the short code, further comprising:
And receiving a response of the content reading failure sent by the server, wherein the response of the content reading failure is sent by the server after the moment of determining that the request of the terminal equipment is received is not in the validity period of the short code.
37. The terminal device according to claim 34 or 36, wherein the step of requesting the server for the complete text content corresponding to the short code is further performed after the step of causing the terminal device to perform the step of requesting the server for the complete text content corresponding to the short code, based on the identification of the terminal device and the short code, when the instructions are executed by the terminal device:
Receiving the information sent by the server again, and analyzing the information content; the server determines that the moment of receiving the request of the terminal equipment is not within the validity period of the short code, and then, the short code corresponding to the complete text content is built again, the built-up short code and the simplified text content corresponding to the complete text content are carried in the message, and the message is sent to the terminal equipment again;
acquiring a short code in the received message content again;
And requesting the corresponding complete text content from the server according to the identification of the terminal equipment and the short code acquired again.
38. The terminal device of claim 34, wherein the instructions, when executed by the terminal device, cause the terminal device to perform the step of receiving the message sent by the server, prior to further performing the step of:
and sending information whether the terminal equipment has long text rendering capability or not to the server.
39. The terminal device according to claim 34, wherein the message further carries a prompt message for acquiring full text, the prompt message being used to prompt a manner of acquiring complete text content when the terminal device cannot view the reduced text content; when the instructions are executed by the terminal device, the steps of causing the terminal device to execute the step of receiving the message sent by the server are further performed by:
if the terminal equipment cannot acquire the short code, prompt information is sent to the server;
and receiving the complete text content sent by the server.
40. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 1-13.
41. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 14-19.
CN202310013305.5A 2023-01-05 2023-01-05 Message sending and displaying method and device, server and terminal equipment Pending CN118301240A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310013305.5A CN118301240A (en) 2023-01-05 2023-01-05 Message sending and displaying method and device, server and terminal equipment
PCT/CN2023/132987 WO2024146288A1 (en) 2023-01-05 2023-11-21 Message sending and displaying method and apparatus, server, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310013305.5A CN118301240A (en) 2023-01-05 2023-01-05 Message sending and displaying method and device, server and terminal equipment

Publications (1)

Publication Number Publication Date
CN118301240A true CN118301240A (en) 2024-07-05

Family

ID=91683509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310013305.5A Pending CN118301240A (en) 2023-01-05 2023-01-05 Message sending and displaying method and device, server and terminal equipment

Country Status (2)

Country Link
CN (1) CN118301240A (en)
WO (1) WO2024146288A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010049041A (en) * 1999-11-30 2001-06-15 윤종용 Method for transmitting and receiving multimedia data using short message service in portable radio telephone
CN105491544A (en) * 2016-01-18 2016-04-13 厦门美图移动科技有限公司 Short message compression communication method and short message compression communication system
CN110475215B (en) * 2019-08-15 2021-05-07 中卓信(北京)科技有限公司 Message editing, transmitting and displaying method, server and terminal thereof
CN114547214A (en) * 2022-02-24 2022-05-27 亿咖通(湖北)技术有限公司 Long-link data processing method, device and equipment
CN115484560B (en) * 2022-09-13 2024-04-09 中国建设银行股份有限公司 Intelligent short message processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2024146288A1 (en) 2024-07-11

Similar Documents

Publication Publication Date Title
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
CN114422340B (en) Log reporting method, electronic equipment and storage medium
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
CN113126948B (en) Audio playing method and related equipment
CN114079892A (en) Bluetooth communication method, wearable device and system
CN112312366A (en) Method, electronic equipment and system for realizing functions through NFC (near field communication) tag
CN112335294B (en) Emergency call method and user terminal
CN112469011A (en) Bluetooth pairing method and related device
CN115696322A (en) Key updating method, system and related device in Beidou communication system
CN113645688A (en) Network access registration method, device, terminal equipment and storage medium
CN111078376A (en) Process management method and device
CN113473013A (en) Display method and device for beautifying effect of image and terminal equipment
CN113660369B (en) Incoming call processing and model training method and device, terminal equipment and storage medium
CN115103304B (en) Position information calling method and device
CN113115483B (en) Method and device for releasing radio resource control connection and user equipment
CN111526321B (en) Voice communication method, voice communication device, storage medium and electronic equipment
CN115706604A (en) White list control method and related device in Beidou communication system
CN116261124A (en) Data transmission method and device, electronic equipment and intelligent terminal
CN115412387A (en) Audio playing method and system and electronic equipment
CN118301240A (en) Message sending and displaying method and device, server and terminal equipment
CN113407076A (en) Method for starting application and electronic equipment
CN114449492B (en) Data transmission method and terminal equipment
CN114338891B (en) Communication method and device
CN113099500B (en) Cell measurement method and device and user equipment
CN114285737B (en) Method and device for configuring device

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