CN115344316A - Message processing method, electronic device, and computer-readable storage medium - Google Patents

Message processing method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN115344316A
CN115344316A CN202110469846.XA CN202110469846A CN115344316A CN 115344316 A CN115344316 A CN 115344316A CN 202110469846 A CN202110469846 A CN 202110469846A CN 115344316 A CN115344316 A CN 115344316A
Authority
CN
China
Prior art keywords
message processing
mode
message
terminal
entered
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
CN202110469846.XA
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202110469846.XA priority Critical patent/CN115344316A/en
Priority to PCT/CN2022/076903 priority patent/WO2022227808A1/en
Publication of CN115344316A publication Critical patent/CN115344316A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention relates to the technical field of internet, in particular to a message processing method, electronic equipment and a computer readable storage medium. The message processing method comprises the following steps: determining a message processing mode to be entered by a terminal; the message processing mode at least comprises a first mode and a second mode, and the message processing speed of the terminal in the second mode is higher than that in the first mode; entering the message processing mode to be entered, and detecting whether the terminal receives the message or not at the message processing speed in the current message processing mode; and if the message is received, processing the message. The message processing method provided by the embodiment of the invention can meet the message processing requirements of users in different scenes, and effectively balances the terminal power consumption and the message processing experience of the users.

Description

Message processing method, electronic device, and computer-readable storage medium
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a message processing method, electronic equipment and a computer readable storage medium.
Background
With the rapid development of internet technology, the demand of human beings for instant communication becomes more and more, various instant chat software is gradually popular and rapidly developed, especially in holiday scenes, the utilization rate of instant chat software used by users, such as a red packet, and a red packet, is very high, the messages received by users are very many, and the frequency is very high. In order to enable a user to process a message more quickly, an automatic message processing method and an automatic message processing tool are developed, and when the automatic message processing tool scans that a message appears in a software interface where the user is located, the automatic message processing tool immediately simulates the user to click the message, so that the message is processed in a quick response mode.
However, the related efficient message processing tool has very large power consumption, cannot meet the requirements of the user in daily use scenes, and will affect the use of other applications by the user, and the related inefficient message processing tool has a not fast response speed, and cannot well meet the requirements of the user in holidays and other scenes.
Disclosure of Invention
The main purpose of the embodiments of the present application is to provide a message processing method, an electronic device, and a computer-readable storage medium, which can meet message processing requirements of users in different scenarios, and effectively balance between terminal power consumption and message processing experience of the users.
In order to achieve the above object, an embodiment of the present application provides a message processing method, where the method includes: determining a message processing mode to be entered by a terminal; the message processing mode at least comprises a first mode and a second mode, and the message processing speed of the terminal in the second mode is higher than that in the first mode; entering the message processing mode to be entered, and detecting whether the terminal receives the message or not at the message processing speed in the current message processing mode; and if the message is received, processing the message.
In order to achieve the above object, an embodiment of the present application further provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method described above.
To achieve the above object, an embodiment of the present application further provides a readable storage medium storing a computer program, where the computer program is executed by a processor to implement the above message processing method.
The message processing method, the electronic device and the computer-readable storage medium provided by the embodiment of the application determine a message processing mode to be entered by a terminal; the message processing mode at least comprises a first mode and a second mode, the message processing speed of the terminal in the second mode is higher than that in the first mode, a plurality of message processing modes are provided for the terminal to selectively enter, and the message processing selectivity can be improved. The message processing speed of the terminal in the second mode is higher than that of the terminal in the first mode, and the message processing speeds of the terminals in different modes are different, so that multiple selectivity is provided. Entering the message processing mode to be entered, and detecting whether the terminal receives the message or not at the message processing speed in the current message processing mode; and if the message is received, processing the message. Considering that the related message processing tools have large power consumption, cannot meet daily use requirements of users, and can influence the users to use other applications; or the speed is low, the efficiency is low, and the message processing requirements of the user on holiday scenes cannot be well met.
Drawings
FIG. 1 is a flow diagram of a message processing method in one embodiment of the invention;
FIG. 2 is a flow chart of determining a message handling mode to be entered by a terminal in one embodiment of the invention;
FIG. 3 is a diagram illustrating a message processing mode option displayed on an interface of a terminal according to an embodiment of the present invention;
fig. 4 is a flowchart of detecting whether a terminal receives a message at a message processing speed in a current message processing mode according to an embodiment of the present invention;
fig. 5 is a flowchart of a message processing method when a terminal is provided in a second mode in another embodiment of the present invention;
fig. 6 is a flow chart of a terminal providing a third mode for message processing in accordance with another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device in another embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in the examples of the present application, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
The embodiment of the invention relates to a message processing method which is applied to a terminal. The following describes the implementation details of the message processing method of the present embodiment in detail, and the following is only provided for the convenience of understanding and is not necessary for implementing the present embodiment.
Application scenarios of embodiments of the present invention may include, but are not limited to: processing the message in the instant chat software; processing the message in the social media network platform; processing messages in various E-commerce platforms and take-out platforms; processing messages in various internet forums; handling messages in various multiplayer online network games, etc.
A specific flow of the message processing method of this embodiment may be as shown in fig. 1, and includes:
step 101, determining a message processing mode to be entered by a terminal.
Specifically, the terminal may determine a message processing mode to be entered by itself before performing message processing. The message processing mode at least comprises a first mode and a second mode, and the message processing speed of the terminal in the second mode is higher than that in the first mode. And a plurality of message processing modes are provided for the terminal to selectively enter, so that the message processing selectivity can be improved.
In one example, the terminal may determine a message processing mode to be entered by the terminal according to a preset time. For example, the preset time includes holidays and workdays, the terminal determines that the message processing mode to be entered is the first mode on the workdays, and the terminal determines that the message processing mode to be entered is the second mode on the holidays.
In another example, determining a message processing mode to be entered by the terminal may be implemented by the sub-steps shown in fig. 2, which specifically include:
and sub-step 1011 of displaying a message processing mode option on the interface of the terminal.
In particular, the terminal may display the message processing mode option on the terminal's own interface. The message processing mode options are displayed on the interface of the terminal, and a user is allowed to directly select the message processing mode options on the interface, so that the man-machine interaction can be improved, and the mode selection of the user is more convenient.
In a specific implementation, the message processing mode options at least include a first mode option and a second mode option, wherein the message processing speed of the terminal in the second mode is greater than the message processing speed in the first mode. The message processing speeds of the terminals in different modes are different, and multiple choices are provided for users.
In an example, the message processing method of this embodiment may be used as a single Application (APP), and after detecting that the APP is opened, the terminal may display a message processing mode option on an interface of the terminal, where a schematic diagram of the message processing mode option displayed on the interface of the terminal may be as shown in fig. 3.
In another example, the message processing method of this embodiment may be used as a plug-in for an APP, and installed in an APP with a message function, and after detecting that the plug-in is called, the terminal may display a message processing mode option on an interface of the terminal.
Sub-step 1012, obtaining the selection information of the message processing mode option, and determining the message processing mode to be entered according to the selection information.
Specifically, after the terminal displays the message processing mode option on the interface of the terminal, the terminal can acquire the selection information of the user on the message processing mode option in real time, and enter the message processing mode corresponding to the selection information according to the selection information of the user on the message processing mode option.
In an example, as shown in fig. 3, when the terminal detects that the user clicks the "first mode", that is, the terminal acquires the selection information of the user on the first mode option, the terminal enters the first mode. When the terminal enters the first mode, a message prompt box such as the first mode can be displayed on an interface of the terminal to remind a user that the terminal is in the first mode.
In an example, as shown in fig. 3, the terminal detects that the user clicks the "second mode", that is, the terminal acquires the selection information of the user on the second mode option, and the terminal enters the second mode. When the terminal enters the second mode, a message prompt box such as a second mode and the like can be displayed on an interface of the terminal to remind a user that the terminal is in the second mode.
Step 102, entering a message processing mode to be entered, detecting whether the terminal receives the message at the message processing speed in the current message processing mode, if so, executing step 103, otherwise, returning to step 102 to continue the detection.
Specifically, after determining the message processing mode to be entered, the terminal may enter the message processing mode to be entered, and detect whether the terminal receives a message at a message processing speed in the current message processing mode.
In one example, detecting whether the terminal receives the message at the message processing speed in the current message processing mode may be implemented by the sub-steps shown in fig. 4, which are as follows:
and a substep 1021, detecting whether the interface of the terminal changes at the message processing speed in the current message processing mode, if so, executing a step 1022, otherwise, returning to the step 1021 to continue the detection.
In one example, the interface of the terminal stays in a group chat interface, and when a new message arrives in the group, the change of the interface can be triggered. If the terminal detects that the group chat interface changes, determining that a new message arrives; and if the terminal detects that the group chat interface is not changed, determining that no new message arrives. The terminal may detect whether the current interface changes according to the message processing speed in the current message processing mode, and then enter step 1022 after detecting that the current interface changes.
In another example, the APP notification bar may pop up automatically when a new message arrives, and the popped up notification bar can trigger a change in the interface.
And a substep 1022 of scanning the changed interface, detecting whether the terminal receives the message, if so, executing the step 103, otherwise, returning to the step 1021 to continue the detection.
Specifically, when the terminal detects that the current interface changes, the terminal may scan the changed interface, detect whether the terminal receives the message, and enter step 103 after detecting that the terminal receives the message. The detection of whether the terminal receives the message is triggered by detecting whether the interface changes, so that the message can be well prevented from being missed by the terminal.
In an example, when scanning the changed interface, the terminal may call a preset search function, such as a findAccessibilityNodeInfosByText function, to find a message in the changed interface.
In another example, the terminal may call the toString (). Contacts () function to find a message in the notification bar of the changed interface when scanning the notification bar popped up in the changed interface.
Step 103, processing the message.
In particular, the terminal may process the message after detecting receipt of the message. Considering that the related message processing tools have high power consumption and cannot meet the daily use requirements of users, and influence is caused on the users to use other applications; or the speed is low, the efficiency is low, and the requirements of users on the processing of holiday scene messages can not be well met.
In one example, the terminal may obtain the exit information in real time, exit the current message processing mode according to the exit information, and after exiting the current message processing mode, may adjust the message processing speed of the terminal to the message processing speed in daily use.
In another example, the terminal may determine a new message processing mode to be entered in real time, and switch the message processing mode according to the new message processing mode to be entered. When the terminal is switched, the message processing speed of the terminal can be adjusted to the message processing speed in daily use, and then the terminal is switched into other message processing modes.
In one example, the message includes a red packet message, the message processing mode is a red packet getting mode, the red packet getting mode at least includes a first mode and a second mode, the message processing speed of the terminal in the second mode is greater than the message processing speed of the terminal in the first mode, if the terminal determines that the red packet getting mode to be entered is the first mode, the terminal enters the first mode, the terminal after entering the first mode can keep the message processing speed of the terminal at the message processing speed in daily use, the operation of increasing the message processing speed of the terminal is not performed, and the terminal does not increase power consumption. After receiving the red packet, the terminal can also play a preset reminding audio to prompt the user. The first mode can meet the requirement that the user snatchs the red envelope in the daily environment.
In a specific implementation, after receiving the red packet, the terminal may call a preset interface function, such as a performAction interface function, to simulate a user to click the red packet in the interface or the red packet in the notification bar, and then pick up the red packet.
In one example, the red packet pickup mode option further includes a "no mode" option, and the terminal in the no mode does not support automatic red packet robbery, only supports manual red packet robbery by the user, and can avoid false red packet robbery and false red packet robbery by the user to a certain extent.
In this embodiment, a message processing mode to be entered by a terminal is determined; the message processing mode at least comprises a first mode and a second mode, the message processing speed of the terminal in the second mode is higher than that in the first mode, a plurality of message processing modes are provided for the terminal to selectively enter, and the message processing selectivity can be improved. The message processing speed of the terminal in the second mode is higher than that in the first mode, and the message processing speeds of the terminals in different modes are different, so that multiple selectivity is provided. Entering the message processing mode to be entered, and detecting whether the terminal receives the message or not at the message processing speed in the current message processing mode; and if the message is received, processing the message. Considering that the related message processing tools have high power consumption and cannot meet the daily use requirements of users, and influence is caused on the users to use other applications; or the speed is low, the efficiency is low, and the message processing requirements of the user on holiday scenes cannot be well met.
Another embodiment of the present invention relates to a message processing method, which is described in this embodiment by taking a second mode as an example, and the following details of the message processing method of this embodiment are specifically described below, the following contents are only provided for facilitating understanding of the details of the implementation, and are not necessary for implementing this embodiment, and a flowchart of the message processing method when the terminal is in the second mode may be as shown in fig. 5, and specifically includes:
step 201, after receiving the message for the first time, adjusting the message processing speed of the terminal to the message processing speed corresponding to the second mode.
Specifically, after the terminal receives the message for the first time, the message processing speed of the terminal may be immediately adjusted to the message processing speed corresponding to the second mode. The terminal is in the second mode, and after the terminal receives the message for the first time, the message processing speed of the terminal is adjusted, so that the power consumption can be reduced to a certain extent, and the resource waste is avoided.
In one example, the message includes a red packet message, and the terminal may adjust the message processing speed of the terminal to the message processing speed corresponding to the second mode immediately after receiving the red packet.
In a specific implementation, adjusting the message processing speed of the terminal to the message processing speed corresponding to the second mode may include one or any combination of the following steps: adjusting the working frequency of a Central Processing Unit (CPU) of the terminal, and switching all processes to a kernel unit with the highest maximum frequency of the CPU for operation; adjusting the load of each kernel unit of the CPU, and entering a load balancing state; the method improves the working frequency of a Graphics Processing Unit (GPU) and discards data packets except for the current application. The working frequency of the CPU and the GPU is adjusted, the CPU is switched to be in a large core operation and load balance state, the message processing of the terminal can be improved as much as possible, and the message processing time is shortened.
In one example, adjusting the operating frequency of the CPU of the terminal may be implemented by setting a scheduled _ boost node and/or a CPU node.
In one example, adjusting the operating frequency of the GPU of the terminal may be implemented by setting a GPU node.
In one example, the terminal mounts an 8-core CPU including 4 small cores and 4 large cores, and when the message processing speed of the terminal is adjusted to the message processing speed corresponding to the second mode, the terminal may switch all processes to a core unit with the highest maximum frequency of the CPU to operate, that is, operate in any one of the 4 large cores.
In one example, when the terminal adjusts its own message processing speed to the message processing speed corresponding to the second mode, the terminal may switch its own operation state to a load balancing state by adjusting the load of each core unit of the CPU.
In one example, the terminal may scan information such as source addresses, arrival addresses, and port numbers of all packets to be received, determine an application to which each packet to be received belongs according to the information such as the source addresses, the arrival addresses, and the port numbers of the packets to be received, and discard the packets except for the current application.
Such as: the terminal enters the second mode and detects that the W application is being used. The terminal can discard the data packets except the W application, only receives the data packets of the W application, and puts most of the running resources and the computing resources into the W application.
In another example, the terminal may send instructions to the modem (modem) side, where the process of discarding packets other than the current application is completed.
Step 202, detecting whether the terminal receives the message at the operating speed in the second mode, if so, executing step 203, otherwise, returning to step 202 to continue the detection.
Step 202 is substantially the same as step 102, and is not described herein again.
Step 203, the message is processed.
In an example, the message includes a red packet message, and the terminal may receive the red packet based on the message processing speed corresponding to the second mode after adjusting the message processing speed of the terminal to the message processing speed corresponding to the second mode and detecting that the terminal receives the red packet. The message processing speed of the terminal in the second mode is higher than that of the terminal in the first mode, so that the red envelope robbing requirement of a user in a red envelope rain scene in holidays and holidays can be met.
In an example, after the terminal in the second mode processes the message, it may further detect whether the terminal receives the message again within a first preset time, and if the terminal does not receive the message again within the first preset time, the terminal may exit the second mode. When the terminal is in the second mode and receives the message again within the first preset time, the terminal exits the second mode in time, namely the message processing speed of the terminal is adjusted to the message processing speed in daily use, so that the power consumption can be reduced, the running resources and the computing resources are released, the resource waste is prevented, and the influence on the use of other applications is avoided. The first preset time may be set by a person skilled in the art according to actual needs, and the embodiment of the present invention is not particularly limited thereto.
Such as: the preset time is 5 minutes, and the terminal in the second mode can exit the second mode if the terminal does not receive the message again within 5 minutes after processing the message.
In this embodiment, if the to-be-entered message processing mode is the second mode, after entering the to-be-entered message processing mode, before detecting whether the terminal receives the message at the message processing speed in the current message processing mode, the method further includes: and after the message is received for the first time, adjusting the message processing speed of the terminal to the message processing speed corresponding to the second mode. After the message is received for the first time, the message processing speed of the terminal is adjusted, so that the power consumption can be reduced to a certain extent, and the resource waste is avoided.
Another embodiment of the present invention relates to a message processing method, and the message processing mode in this embodiment further includes a third mode. The message processing speed when the terminal is in the third mode is greater than the message processing speed in the second mode. The following describes implementation details of the message processing method of this embodiment in detail, and the following is only provided for facilitating understanding of the implementation details, and is not necessary to implement this embodiment, and a flowchart of the terminal performing message processing in the third mode may be as shown in fig. 6, and specifically includes:
step 301, if more than two messages with the same type are continuously received within a second preset time, determining that a message processing mode to be entered is the third mode;
specifically, if the terminal receives more than two messages of the same type continuously within a second preset time, the terminal determines that the message processing mode to be entered is the third mode. The embodiment provides the third mode, the message processing speed of the terminal in the third mode is higher than that in the second mode, the message processing time is further shortened, the terminal can make a response more quickly, and the terminal can accurately judge that the user is in the holiday scene for message processing by judging that the terminal continuously receives more than two messages with the same type in the second preset time.
In a specific implementation, the second preset time may be set by a person skilled in the art according to an actual need, and the embodiment of the present invention is not limited in this respect.
In one example, the message is a red packet message, the second preset time is 10 seconds, the terminal continuously receives more than two red packets within 10 seconds, the terminal determines that the message processing mode to be entered is the third mode, and prompts the user to select to enter the third mode.
Step 302, entering a third mode, and adjusting the message processing speed of the terminal to a message processing speed corresponding to the third mode.
Specifically, after the terminal enters the third mode, the message processing speed of the terminal may be immediately adjusted to the message processing speed corresponding to the third mode, and the message processing speed when the terminal is in the third mode is greater than the message processing speed when the terminal is in the second mode. The embodiment provides the third mode, and after the terminal enters the third mode, the running speed of the terminal can be immediately adjusted to the running speed corresponding to the third mode, so that the message processing time is further shortened, the terminal can react more quickly, and the message processing requirement of the user in a holiday red-covered rain scene is further met.
In a specific implementation, adjusting the message processing speed of the terminal to the running speed corresponding to the third mode may include: adjusting the message processing speed of the terminal to the message processing speed corresponding to the third mode may include: adjusting the working frequency of a CPU of the terminal, and switching all processes to a kernel unit with the highest maximum frequency of the CPU for operation; adjusting the load of each kernel unit of the CPU, and entering a load balancing state; improving the working frequency of a GPU of the graphic processor; discarding packets outside the current application.
In one example, the terminal may increase the operating frequency of the CPU to the maximum operating frequency of the CPU allowed by the terminal.
In one example, the terminal may increase the operating frequency of the GPU to the maximum operating frequency of the GPU allowed by the terminal.
In an example, after determining to enter the third mode, the terminal may obtain delay information of each data link of the terminal, determine, according to the delay information of each data link, a data link with the lowest delay among the data links, and perform data communication based on the data link with the lowest delay. The data link with the lowest time delay is selected, namely the data link with the best communication quality is selected for data communication, so that the network delay can be effectively reduced, and the message robbing processing speed is further improved.
Such as: the A terminal supports dual-card dual-standby, is provided with two Subscriber Identity modules (SIM cards) of different operators, is connected with mobile networks of the two different operators, and is also connected with 1 wireless network. I.e., the terminal has A, B and C three data links. After entering the third mode, the terminal may send analog data to the data link a, the data link B, and the data link C, respectively, and test the time delay of each data link. The terminal determines the time delay of the data link A to be 100 milliseconds; the delay of the data link B is 80 milliseconds; the time delay of the data link C is 20 milliseconds, and the terminal determines that the data link C is the data link with the lowest time delay, and performs data communication based on the data link C, that is, a wireless network.
Step 303, detecting whether the terminal receives the message at the message processing speed corresponding to the third mode, if so, executing step 304, otherwise, returning to step 303 to continue the detection.
Step 303 is substantially the same as step 102, and is not described herein again.
Step 304, the message is processed.
Specifically, after receiving the message, the terminal may process the red packet based on the message processing speed corresponding to the third mode. The message processing speed of the terminal in the third mode is higher than that of the terminal in the second mode, so that the message processing requirements of the user in a holiday scene can be further met.
In an example, after the terminal in the third mode has finished processing, it may further detect whether the terminal receives the message again within a third preset time, and if the terminal does not receive the message again within the third preset time, the terminal may exit the third mode. When the terminal is in the third mode and the terminal does not receive the message again within the third preset time, the terminal exits the third mode in time, namely the message processing speed of the terminal is adjusted to the message processing speed in daily use, so that the power consumption can be reduced, the running resources and the computing resources are released, the resource waste is prevented, and the influence on the use of other applications is avoided. The third preset time may be set by a person skilled in the art according to actual needs, and the embodiment of the present invention is not particularly limited thereto.
In this embodiment, the message processing modes further include a third mode, and the message processing speed of the terminal in the third mode is greater than the message processing speed in the second mode; the determining of the message processing mode to be entered includes: and if more than two messages with the same type are continuously received within a second preset time, determining that the message processing mode to be entered is the third mode. The embodiment provides the third mode, the message processing speed of the terminal in the third mode is higher than that in the second mode, the message processing time is further shortened, the terminal can make a response more quickly, and the terminal can accurately judge that the user is in the holiday scene for message processing by judging that the terminal continuously receives more than two messages with the same type in the second preset time.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
One embodiment of the present invention relates to an electronic device, as shown in fig. 7, including: at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the message processing method in the above embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, etc., which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
One embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in 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 (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A message processing method, comprising:
determining a message processing mode to be entered by a terminal; the message processing mode at least comprises a first mode and a second mode, and the message processing speed of the terminal in the second mode is higher than that in the first mode;
entering the message processing mode to be entered, and detecting whether the terminal receives the message or not at the message processing speed in the current message processing mode;
and if the message is received, processing the message.
2. The message processing method according to claim 1, wherein the determining the message processing mode to be entered comprises:
displaying a message processing mode option on an interface of the terminal; wherein the message processing mode options include at least the first mode option and the second mode option;
and acquiring selection information of the message processing mode option, and determining a message processing mode to be entered according to the selection information.
3. The message processing method according to claim 1, wherein if the message processing mode to be entered is the second mode, then after entering the message processing mode to be entered, before detecting whether the terminal receives the message at the message processing speed in the current message processing mode, further comprising:
and after the message is received for the first time, adjusting the message processing speed of the terminal to the message processing speed corresponding to the second mode.
4. The message processing method according to claim 1, wherein the message processing speed in the second mode is realized by one of the following steps or any combination thereof:
adjusting the working frequency of a Central Processing Unit (CPU);
switching all processes to a kernel unit with the highest maximum frequency of the CPU for running;
adjusting the load of each kernel unit of the CPU, and entering a load balancing state;
adjusting the working frequency of a GPU of the graphic processor;
packets other than the current application are discarded.
5. The message processing method according to claim 3, further comprising, after processing the message:
detecting whether the terminal receives the message again within a first preset time;
and if the terminal does not receive the message again within the first preset time, exiting the second mode.
6. The message processing method according to claim 1, wherein the message processing modes further include a third mode, and a message processing speed of the terminal when in the third mode is greater than a message processing speed when in the second mode;
the determining of the message processing mode to be entered includes:
and if more than two messages with the same type are continuously received within a second preset time, determining that the message processing mode to be entered is the third mode.
7. The message processing method according to claim 6, wherein if the message processing mode to be entered is the third mode, after entering the message processing mode to be entered, further comprising: acquiring time delay information of each data link of the terminal;
determining the data link with the lowest time delay according to the time delay information of each data link;
and carrying out data communication based on the data link with the lowest time delay.
8. The message processing method according to any of claims 1-7, wherein the message comprises a red packet message.
9. An electronic device, comprising:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method of any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the message processing method according to any one of claims 1 to 8.
CN202110469846.XA 2021-04-28 2021-04-28 Message processing method, electronic device, and computer-readable storage medium Pending CN115344316A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110469846.XA CN115344316A (en) 2021-04-28 2021-04-28 Message processing method, electronic device, and computer-readable storage medium
PCT/CN2022/076903 WO2022227808A1 (en) 2021-04-28 2022-02-18 Message processing method, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110469846.XA CN115344316A (en) 2021-04-28 2021-04-28 Message processing method, electronic device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115344316A true CN115344316A (en) 2022-11-15

Family

ID=83847741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110469846.XA Pending CN115344316A (en) 2021-04-28 2021-04-28 Message processing method, electronic device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115344316A (en)
WO (1) WO2022227808A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346226A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Processor frequency control method and electronic equipment
CN104756598B (en) * 2013-09-17 2019-03-01 华为技术有限公司 A kind of method and relevant device of data transmission
WO2016056839A1 (en) * 2014-10-07 2016-04-14 엘지전자 주식회사 Operating method of m2m terminal in wireless communication system
CN107508750A (en) * 2017-09-21 2017-12-22 郑州云海信息技术有限公司 A kind of message treatment method and device
CN109960584A (en) * 2019-01-30 2019-07-02 努比亚技术有限公司 CPU frequency modulation control method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
WO2022227808A1 (en) 2022-11-03

Similar Documents

Publication Publication Date Title
CN112291816B (en) Data transmission method, device, storage medium and electronic equipment
CN108632930B (en) Network searching control method and device and mobile terminal
CN110611891B (en) Short message sending method and device
CN112492252A (en) Call method and intelligent device
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN105450857B (en) Prevent voice incoming call from interrupting the implementation method and device of the contextual model that data network uses
US11496946B2 (en) Transmission path switching method and apparatus
CN107748690A (en) Using jump method, device and computer-readable storage medium
WO2021238404A1 (en) Data card switching method and apparatus, and terminal, and storage medium
CN112333114B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN110457078A (en) Intelligent Service method, device and equipment
CN111866976A (en) Network switching method and device
CN110392098B (en) Self-adaptive virtual desktop transmission method and device
CN114125942A (en) Network resource management method, device, terminal and storage medium
CN115344316A (en) Message processing method, electronic device, and computer-readable storage medium
CN108989244B (en) Data processing method, data processing device, storage medium and electronic equipment
CN111148278A (en) Data transmission method, device, storage medium and electronic equipment
CN111065126A (en) Hotspot sharing method and device, storage medium and electronic equipment
CN112954760B (en) Bluetooth equipment connection method and device and electronic equipment
CN106789530B (en) A kind of method for connecting network, device and mobile terminal
CN103402017A (en) Terminal and data processing method
CN113038580A (en) Power saving mode control method, device, equipment and storage medium
CN106445507A (en) Interface switching method, terminal and server
CN107864487B (en) Method for detecting terminal call and related product
CN111324256A (en) Content rapid and mutual sharing method, device and terminal

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