CN112711436B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN112711436B
CN112711436B CN201911023139.7A CN201911023139A CN112711436B CN 112711436 B CN112711436 B CN 112711436B CN 201911023139 A CN201911023139 A CN 201911023139A CN 112711436 B CN112711436 B CN 112711436B
Authority
CN
China
Prior art keywords
message
data
sub
parameter
changing
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.)
Active
Application number
CN201911023139.7A
Other languages
Chinese (zh)
Other versions
CN112711436A (en
Inventor
李桐
林木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911023139.7A priority Critical patent/CN112711436B/en
Publication of CN112711436A publication Critical patent/CN112711436A/en
Application granted granted Critical
Publication of CN112711436B publication Critical patent/CN112711436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a message processing method and a device, wherein the method comprises the following steps: storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data; and after the preset time period, changing the first parameter of the target data based on a second message, wherein the second message is the message with the latest receiving time in the at least two first messages. The message processing method and the device provided by the invention can relieve the operating pressure of the application software and improve the operating smoothness.

Description

Message processing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a message.
Background
With the rapid development of network technology, more and more application software is developed, thereby providing convenience for the life and work of users. Currently, many applications process messages by way of message queues.
In the prior art, when an application software receives a plurality of change messages for changing the same parameter in a short time, each change message is processed, so that service processing of the application software is too frequent, operating pressure of the application software is increased, even processing failure occurs due to limitation of Query Per Second (QPS) of an interface called in processing logic, and the problem of low operating smoothness of the application software is caused.
Disclosure of Invention
The embodiment of the invention provides a message processing method and a message processing device, which are used for solving the problem that when application software receives a plurality of change messages in a short time, service processing is too frequent, so that the running smoothness of the application software is low.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a message processing method, where the method includes:
storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data;
and after the preset time period, changing the first parameter of the target data based on a second message, wherein the second message is the message with the latest receiving time in the at least two first messages.
Optionally, the step of storing at least two first messages received within a preset time period includes:
storing at least two first messages and a third message received within a preset time period; wherein the third message is used for changing a second parameter of the target data;
the step of changing the first parameter of the target data based on the second message includes:
and changing the first parameter of the target data based on the second message, and changing the second parameter of the target data based on the third message.
Optionally, the step of storing at least two first messages received within a preset time period includes:
and writing the at least two first messages received in the preset time period into target storage units in a time queue set, wherein the time queue set comprises at least two storage units, and the target storage unit is any one storage unit in the at least two storage units.
Optionally, after the step of changing the first parameter of the target data based on the second message, the method further includes:
if the first parameter of the target data is detected to be failed to change, accumulating the failure times corresponding to the second message, and changing the first parameter of the target data again based on the second message after the preset duration.
Optionally, after the step of accumulating the number of failures corresponding to the second message if the first parameter of the target data is detected to be failed, the method further includes:
and if the failure times corresponding to the second message are greater than or equal to a preset limit value, sending an alarm message to the user.
Optionally, the first parameter of the target data includes first sub-data and second sub-data; the second message includes a target address storing third sub-data and fourth sub-data; the first sub data and the third sub data are the same type of data, and the second sub data and the fourth sub data are the same type of data;
the step of changing the first parameter of the target data based on the second message includes:
retrieving the third sub-data and the fourth sub-data based on a target address in the second message;
and changing the first sub data in the target data into the third sub data, and changing the second sub data in the target data into the fourth sub data.
In a second aspect, an embodiment of the present invention further provides a message processing apparatus, including:
the storage module is used for storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data;
and the changing module is used for changing the first parameter of the target data based on a second message after the preset time period, wherein the second message is the message with the latest receiving time in the at least two first messages.
Optionally, the storage module is further configured to store at least two first messages and a third message received in a preset time period; wherein the third message is used for changing a second parameter of the target data;
the changing module is further configured to change a first parameter of the target data based on the second message, and change a second parameter of the target data based on the third message.
Optionally, the storage module is further configured to write at least two first messages received in a preset period of time to a target storage unit in a time queue set, where the time queue set includes at least two storage units, and the target storage unit is any one storage unit of the at least two storage units.
Optionally, the device also comprises a counting module,
and the counting module is used for accumulating the failure times corresponding to the second message if the first parameter of the target data is detected to be failed to change, and changing the first parameter of the target data again based on the second message after the preset duration.
Optionally, the device also comprises an alarm module,
and the alarm module is used for sending an alarm message to the user if the failure times corresponding to the second message are greater than or equal to a preset limit value.
Optionally, the first parameter of the target data includes first sub-data and second sub-data; the second message includes a target address storing third sub-data and fourth sub-data; the first sub data and the third sub data are the same type of data, and the second sub data and the fourth sub data are the same type of data; the change module includes:
a retrieving unit, configured to retrieve the third sub-data and the fourth sub-data based on a target address in the second message;
and the changing unit is used for changing the first sub data in the target data into the third sub data and changing the second sub data in the target data into the fourth sub data.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the message processing method as described above when executed by the processor.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a message processing method as described above.
In the embodiment of the invention, at least two first messages received in a preset time period are stored, wherein the at least two first messages are used for changing first parameters of target data; and after the preset time period, changing the first parameter of the target data based on a second message, wherein the second message is the message with the latest receiving time in the at least two first messages. Therefore, when at least two messages aiming at the same parameter of the same data are received, the corresponding parameter of the data is updated only once, so that the service processing frequency is reduced, the operating pressure of the application software can be reduced, and the operating smoothness is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a flow chart of a message processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another message processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a time queue set in another message processing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101: storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data;
the preset time period is a time period with a certain duration, the message received in the preset time period is not executed by the message processing device in the preset time period. The preset time period may be determined by setting a start time point and an end time point in advance, or may be determined by setting a preset time period and then taking a certain time point as the start time point.
The preset time period may be a plurality of consecutive, for example: the ending time point of the previous preset time period in the two adjacent preset time periods is used as the starting time period of the next preset time period, so that a plurality of preset time periods are determined.
And when the message processing device receives the message, determining the preset time period to which the time point of message reception belongs, and writing the message into the storage unit corresponding to the preset time period.
Taking application software as video playing software as an example, the target data can be video, and the first parameter can be any one of the name, the code stream, the subtitle and the sound channel of the video. Of course, the application software is not limited to this, and when the application software is the image display software, the target data may be an image, and the first parameter may be any one of a size, a resolution, a brightness, and a contrast of the image.
The at least two first messages may be the same at least two messages or may be different at least two messages, for example: when the first parameter of the target data is the name of the video, at least two pieces of first information can be information for changing the current first name of the video into the second name; one of the first messages may be used to change the current first name of the video to the second name, and the other first message may be used to change the current first name of the video to the third name.
Step 102: and after the preset time period, changing the first parameter of the target data based on a second message, wherein the second message is the message with the latest receiving time in the at least two first messages.
After a preset time period, determining a second message with the latest receiving time from at least two first messages for changing the first parameters of the target data. Since the second message is the message for changing the first parameter of the target data, which is received at the latest time in the preset time period, it is considered that only the second message can change the first parameter of the target data to the result that the message sender wants to change at the latest in the preset time period, and other previous first messages cannot change the first parameter of the target data to the result that the sender wants to change at the latest in the preset time period, so that the first parameter of the target data is changed based on the second message.
For example: the frequency of reading the received messages is preset, and the reading frequency is 1HZ, that is, the received messages are read once every second, so that the first messages received in 0-0.99S are not read immediately, the first messages are not executed, and when the received messages are 1S, all the first messages received in the 1S are read uniformly, and then the second messages in the first messages are further determined.
Therefore, under the condition of achieving the change purpose, the service processing of the first message before the second message is avoided, namely invalid service processing is avoided, and the frequency of the service processing is further reduced.
In the embodiment of the present invention, changing the parameter of the target data includes a service process corresponding to the parameter change, for example: the change of the resolution of the video includes the business process required to adjust the resolution of the video.
In the embodiment of the invention, at least two first messages received in a preset time period are stored, wherein the at least two first messages are used for changing first parameters of target data; and after the preset time period, changing the first parameter of the target data based on a second message, wherein the second message is the message with the latest receiving time in the at least two first messages. Therefore, when at least two messages aiming at the same parameter of the same data are received, the corresponding parameter of the data is updated only once, so that the service processing frequency is reduced, the operating pressure of the application software can be reduced, and the operating smoothness is improved.
Referring to fig. 2, fig. 2 is a flowchart of another message processing method according to an embodiment of the present invention. The main difference between this embodiment and the embodiment shown in fig. 1 is that: and carrying out change again after the first parameter of the target data is changed based on the second message fails, and recording the failure times. The method is as shown in fig. 2, and comprises the following steps:
step 201: and storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data.
The implementation process and the beneficial effect of step 201 may be correspondingly referred to the description in step 101, and are not repeated herein.
In an alternative embodiment, the step of storing at least two first messages received within a preset time period includes:
and writing the at least two first messages received in the preset time period into target storage units in a time queue set, wherein the time queue set comprises at least two storage units, and the target storage unit is any one storage unit in the at least two storage units.
In this embodiment, the time queue set 310 is included, as shown in fig. 3, where the time queue set 310 includes at least two time queues 311, and a plurality of preset time periods are in one-to-one correspondence with the at least two time queues 311.
Each time queue 311 is configured to store the messages received in the corresponding preset time period, where the message processing apparatus includes a write pointer and a read pointer, where the write pointer reads the messages from the queue messages in sequence and writes the messages into the time queue, and because the write pointer is synchronous with time, the messages written into the time queue are stored according to the sequence of time points when the messages are received. For example: the time queue corresponds to a preset time period with 5 seconds duration, and when the message A is received in the 1 st second, the message B is received in the 3 rd second and the message C is received in the 4 th second in 5 seconds, the message A, the message B and the message C are sequentially stored from the starting point to the ending point of the time queue. The reading pointer is used for reading all messages in the time queue corresponding to the preset time period after the preset time period.
In this embodiment, the time queues may be consecutive, that is, the writing end time of the previous time queue in the two adjacent time queues is the writing start time of the next time queue, and when the writing pointer starts to write the message into the next time queue, the reading pointer reads all the messages of the previous time queue.
And numbering each time queue in the time queue set according to the time sequence, wherein the number of the time queue where the writing pointer is positioned is the result obtained by dividing the current time by the time length of the time queue and then taking the modulus with the number of the time queues. And the number of the time queue in which the read pointer is located is the previous time queue to the time queue in which the write pointer is located.
In addition, the set of time queues may also be cyclically used, i.e., when the read pointer reads a message from the last time queue in the set of time queues, the write pointer re-writes the message to the first time queue in the set of time queues.
Further, the messages written in the time queue may be stored in a Set data structure, that is, if the message currently written in the time queue is the same message stored before the time queue, the message cannot be written in the time queue, so that no repeated data in one time queue can be ensured. For example: when the first parameter of the data a is changed from the parameter value 1 to the parameter value 2, the message 2 cannot be written into the time queue 1 after the message 1 is written into the time queue 1.
In this embodiment, the messages received in the corresponding preset time period are stored through the time queue, so that the storage sequence of the messages is arranged according to the sequence of the time points of receiving the messages, and it is convenient to determine the second messages in at least two first messages after reading all the messages in the time queue.
It should be noted that, at least two first messages received in a preset time period are written into a target time queue in a time queue set, the time queue set includes at least two time queues, the target time queue is any one time queue in the at least two time queues, and each time queue includes a storage unit. The same applies to the embodiment shown in fig. 1 and has the same advantageous effects, and will not be described here again.
Step 202: and after the preset time period, changing the first parameter of the target data based on a second message, wherein the second message is the message with the latest receiving time in the at least two first messages.
The implementation process and the beneficial effect of step 202 may be correspondingly referred to the description in step 102, and are not repeated herein.
In an alternative embodiment, the step of storing at least two first messages received within a preset time period includes:
storing at least two first messages and a third message received within a preset time period; wherein the third message is used for changing a second parameter of the target data;
the step of changing the first parameter of the target data based on the second message includes:
and changing the first parameter of the target data based on the second message, and changing the second parameter of the target data based on the third message.
The second parameter is a different type of parameter from the first parameter of the target data. For example: when the target data is a picture, the first parameter is the brightness of the picture, and the second parameter may be other parameters (contrast or size) than the brightness of the picture.
In this embodiment, the message processing apparatus receives a message for changing two parameters of the target data within a preset period of time.
By changing the two parameters of the target data after the preset time period, compared with the change of the first parameter and the second parameter of the target data at different time points, the service processing frequency of the application software can be further reduced, the operation pressure of the application software is further reduced, and the operation smoothness of the application software is improved.
In this case, the change of the second parameter of the target data based on the third message is actually the change of the second parameter of the target data based on a fourth message, and the fourth message is the third message with the latest receiving time.
It should be noted that, at least two first messages and at least two third messages received in a preset time period are stored; wherein the third message is used for changing a second parameter of the target data; and changing the first parameter of the target data based on the second message, and changing the second parameter of the target data based on the third message. The same applies to the embodiment shown in fig. 1 and has the same advantageous effects, and will not be described here again.
In another alternative embodiment, the first parameter of the target data includes a first sub-data and a second sub-data; the second message includes a target address storing third sub-data and fourth sub-data; the first sub data and the third sub data are the same type of data, and the second sub data and the fourth sub data are the same type of data;
the step of changing the first parameter of the target data based on the second message includes:
retrieving the third sub-data and the fourth sub-data based on a target address in the second message;
and changing the first sub data in the target data into the third sub data, and changing the second sub data in the target data into the fourth sub data.
In this embodiment, when the amount of data required for changing the first parameter of the target data is large, the amount of data of the second message may be reduced by including the target address in the second message, so that the instantaneity of message transmission is improved, and thus the instantaneity of message processing is improved. Taking fig. 3 as an example, the messages stored in the time queue include address data.
It should be noted that, the third sub-data and the fourth sub-data are called based on the target address in the second message; and changing the first sub data in the target data into the third sub data, and changing the second sub data in the target data into the fourth sub data. The same applies to the embodiment shown in fig. 1 and has the same advantageous effects, and will not be described here again.
Step 203: if the first parameter of the target data is detected to be failed to change, accumulating the failure times corresponding to the second message, and changing the first parameter of the target data again based on the second message after the preset duration.
The reason for the failure of the first parameter change may be the limitation of the QPS, that is, the service processing message received in the preset period exceeds the QPS, so that the first parameter change fails, at this time, the first parameter of the target data may be changed again based on the second message after the preset period, and if the service processing message in the second change is less than the QPS, the first parameter change may be successfully performed.
For example, each time the second message fails to update the first parameter, i.e., 1 is added to the corresponding number of failures, thereby accumulating the total number of failures of the second message to change the first parameter, taking fig. 3 as an example, each message stored in the time queue includes an address and the number of failures. Of course, in other embodiments of the present invention, the number of times of accumulating 2, 3, etc. each time is not limited.
Further, the message processing device detects the number of failures corresponding to the second message, and if the number of failures is greater than a preset limit value (for example, 5 times or 10 times), the reason that the second message fails to change the first parameter is considered to be unable to be solved by automatically changing the first parameter again, so as to send an alarm message to the user for seeking manual intervention.
In addition, after the success of changing the first parameter of the target data based on the second message is detected, the second message can be deleted, so that the pressure of the storage space of the application software can be reduced.
In this embodiment, after the step of changing the target data based on the second message, if a failure of changing the first parameter of the second message is detected, the method of changing the target data based on the second message again and recording the failure times after the preset time length is performed, and multiple attempts are made to change the first parameter of the target data based on the second message, so as to ensure the reliability of message processing; and when the failure times are greater than the preset limit value, an alarm notification message can be sent to enable the first parameter of the target data to be manually changed, and the reliability of message processing can be ensured.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, a message processing apparatus 400 includes a storage module 410 and a modification module 420, where:
a storage module 410, configured to store at least two first messages received within a preset period of time, where the at least two first messages are used to change a first parameter of the target data;
and a changing module 420, configured to change the first parameter of the target data based on a second message after the preset time period, where the second message is a message with the latest receiving time in the at least two first messages.
Optionally, the storage module 410 is further configured to store at least two first messages and a third message received in a preset period of time; wherein the third message is used for changing a second parameter of the target data;
the changing module 420 is further configured to change a first parameter of the target data based on the second message, and change a second parameter of the target data based on the third message.
Optionally, the storage module 410 is further configured to write at least two first messages received in a preset period of time to a target storage unit in a time queue set, where the time queue set includes at least two storage units, and the target storage unit is any one storage unit of the at least two storage units.
Optionally, as shown in fig. 5, the message processing apparatus 400 further comprises a counting module 430,
the counting module 430 is configured to accumulate the failure times corresponding to the second message if the first parameter of the target data is detected to be failed to change, and change the first parameter of the target data based on the second message again after a preset duration.
Optionally, as shown in fig. 6, the message processing apparatus 400 further comprises an alarm module 440,
the alarm module 440 is configured to send an alarm message to the user if the number of failures corresponding to the second message is greater than or equal to a preset limit value.
Optionally, as shown in fig. 7, the first parameter of the target data includes first sub-data and second sub-data; the second message includes a target address storing third sub-data and fourth sub-data; the first sub data and the third sub data are the same type of data, and the second sub data and the fourth sub data are the same type of data; the change module 420 includes:
a retrieving unit 421, configured to retrieve the third sub-data and the fourth sub-data based on a target address in the second message;
a changing unit 422, configured to change the first sub-data in the target data to the third sub-data, and change the second sub-data in the target data to the fourth sub-data.
The message processing apparatus 400 of the embodiment of the present invention can implement each process implemented by the message processing apparatus in the method embodiments of fig. 1 to 3, and in order to avoid repetition, a description is omitted here.
The message processing device 400 of the embodiment of the invention can reduce the service processing frequency, thereby reducing the operation pressure of the application software and improving the operation fluency.
Fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
As shown in fig. 8, the electronic device 800 includes: processor 801, transceiver 802, memory 803, bus interface, bluetooth module, and WIFI module, wherein:
wherein the processor 801 is configured to: storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data; and after the preset time period, changing the first parameter of the target data based on a second message, wherein the second message is the message with the latest receiving time in the at least two first messages.
Optionally, in the step of executing the at least two first messages stored in the storage unit, the processor 801 includes: storing at least two first messages and a third message received within a preset time period; wherein the third message is used for changing a second parameter of the target data; the processor 801, in executing the step of changing the first parameter of the target data based on the second message, includes: and changing the first parameter of the target data based on the second message, and changing the second parameter of the target data based on the third message.
Optionally, in the step of executing the at least two first messages stored in the storage unit, the processor 801 includes: and writing the at least two first messages received in the preset time period into target storage units in a time queue set, wherein the time queue set comprises at least two storage units, and the target storage unit is any one storage unit in the at least two storage units.
Optionally, after performing the step of changing the first parameter of the target data based on the second message, the processor 801 is further configured to: if the first parameter of the target data is detected to be failed to change, accumulating the failure times corresponding to the second message, and changing the first parameter of the target data again based on the second message after the preset duration.
Optionally, after executing the step of accumulating the number of failures corresponding to the second message if the first parameter of the target data is detected to be changed and failed, the processor 801 is further configured to: and if the failure times corresponding to the second message are greater than or equal to a preset limit value, sending an alarm message to the user.
Optionally, the first parameter of the target data includes first sub-data and second sub-data; the second message includes a target address storing third sub-data and fourth sub-data; the first sub data and the third sub data are the same type of data, and the second sub data and the fourth sub data are the same type of data; the processor 801, in executing the step of changing the first parameter of the target data based on the second message, includes: retrieving the third sub-data and the fourth sub-data based on a target address in the second message; and changing the first sub data in the target data into the third sub data, and changing the second sub data in the target data into the fourth sub data.
The electronic device 800 can implement each process implemented by the electronic device in the foregoing embodiment, and in order to avoid repetition, a description is omitted here.
According to the electronic device 800 provided by the embodiment of the invention, the display elements in the content display area and the functional area of the interface can be displayed according to the display style corresponding to the skin, so that the integral display of the skin is realized, the integrity of the skin display is improved, and the attractiveness of the interface is further improved.
The transceiver 802, which is a device for signal conversion, is generally referred to as a fiber optic transceiver. The optical fiber transceiver converts twisted pair electrical signals and optical signals to each other, ensures smooth transmission of data packets between two networks, and simultaneously extends the transmission distance limit of the networks from 100 meters of copper wires to 100 kilometers. A transceiver 802 is used to receive and transmit data under the control of the processor 801, the transceiver 802 comprising at least two antenna ports.
In fig. 8, a bus architecture may be comprised of any number of interconnected buses and bridges, and in particular, one or more processors represented by the processor 801 and various circuits of the memory represented by the memory 803. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 802 may be a number of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The user interface 804 may also be an interface capable of interfacing with an inscribed desired device for a different user device, including but not limited to a keypad, display, speaker, microphone, joystick, etc.
The processor 801 is responsible for managing the bus architecture and general processing, and the memory 803 may store data used by the processor 801 in performing operations.
Bluetooth module is an integrated bluetooth function's PCBA board for short distance wireless communication divides into bluetooth data module and bluetooth voice module according to the function. The Bluetooth module refers to a chip basic circuit set integrating Bluetooth functions and is used for wireless network communication.
The WIFI module is used for enabling the controlled equipment to be connected with the Internet through the WIFI module, and communication among the equipment can be performed in a local area network formed by the WIFI module. The WIFI module can be a WIFI direct connection module, and point-to-point WIFI direct connection can be established among a plurality of controlled devices through the WIFI direct connection module.
In addition, the electronic device 800 includes some functional modules, which are not shown, and will not be described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 801, a memory 803, and a computer program stored in the memory 803 and capable of running on the processor 801, where the computer program when executed by the processor 801 implements each process of the above-mentioned embodiment of the message processing method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above-mentioned message processing method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (9)

1. A method of message processing, the method comprising:
storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data;
after the preset time period, changing a first parameter of the target data based on a second message, wherein the second message is a message with the latest receiving time in the at least two first messages;
wherein the first parameter of the target data comprises first sub-data and second sub-data; the second message includes a target address storing third sub-data and fourth sub-data; the first sub data and the third sub data are the same type of data, and the second sub data and the fourth sub data are the same type of data;
the step of changing the first parameter of the target data based on the second message includes:
retrieving the third sub-data and the fourth sub-data based on a target address in the second message;
and changing the first sub data in the target data into the third sub data, and changing the second sub data in the target data into the fourth sub data.
2. The method of claim 1, wherein the step of storing at least two first messages received within a preset time period comprises:
storing at least two first messages and a third message received within a preset time period; wherein the third message is used for changing a second parameter of the target data;
the step of changing the first parameter of the target data based on the second message includes:
and changing the first parameter of the target data based on the second message, and changing the second parameter of the target data based on the third message.
3. The method of claim 1, wherein the step of storing at least two first messages received within a preset time period comprises:
and writing the at least two first messages received in the preset time period into target storage units in a time queue set, wherein the time queue set comprises at least two storage units, and the target storage unit is any one storage unit in the at least two storage units.
4. The method of claim 1, further comprising, after the step of altering the first parameter of the target data based on the second message:
if the first parameter of the target data is detected to be failed to change, accumulating the failure times corresponding to the second message, and changing the first parameter of the target data again based on the second message after the preset duration.
5. The method of claim 4, further comprising, after the step of accumulating the number of failures corresponding to the second message if the first parameter change of the target data fails is detected:
and if the failure times corresponding to the second message are greater than or equal to a preset limit value, sending an alarm message to the user.
6. A message processing apparatus, comprising:
the storage module is used for storing at least two first messages received in a preset time period, wherein the at least two first messages are used for changing first parameters of target data;
a changing module, configured to change, after the preset period of time, a first parameter of the target data based on a second message, where the second message is a message with the latest receiving time in the at least two first messages;
wherein the first parameter of the target data comprises first sub-data and second sub-data; the second message includes a target address storing third sub-data and fourth sub-data; the first sub data and the third sub data are the same type of data, and the second sub data and the fourth sub data are the same type of data;
the change module includes:
a retrieving unit, configured to retrieve the third sub-data and the fourth sub-data based on a target address in the second message;
and the changing unit is used for changing the first sub data in the target data into the third sub data and changing the second sub data in the target data into the fourth sub data.
7. The message processing apparatus as claimed in claim 6, wherein,
the storage module is further used for storing at least two first messages and at least two third messages received in a preset time period; wherein the third message is used for changing a second parameter of the target data;
the changing module is further configured to change a first parameter of the target data based on the second message, and change a second parameter of the target data based on the third message.
8. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the message processing method according to any of claims 1 to 5.
9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, implements the steps of the message processing method according to any of claims 1 to 5.
CN201911023139.7A 2019-10-25 2019-10-25 Message processing method and device Active CN112711436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911023139.7A CN112711436B (en) 2019-10-25 2019-10-25 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911023139.7A CN112711436B (en) 2019-10-25 2019-10-25 Message processing method and device

Publications (2)

Publication Number Publication Date
CN112711436A CN112711436A (en) 2021-04-27
CN112711436B true CN112711436B (en) 2023-09-26

Family

ID=75540612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911023139.7A Active CN112711436B (en) 2019-10-25 2019-10-25 Message processing method and device

Country Status (1)

Country Link
CN (1) CN112711436B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070083015A (en) * 2006-02-20 2007-08-23 에스케이 텔레콤주식회사 Server, method and system for providing location informing service by using base id
CN104462127A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Recorded data updating method and device
CN107819828A (en) * 2017-10-16 2018-03-20 平安科技(深圳)有限公司 Data transmission method, device, computer equipment and storage medium
CN108196961A (en) * 2017-12-28 2018-06-22 广东蜂助手网络技术股份有限公司 A kind of asynchronous message processing method, terminal, system and storage medium
CN109445833A (en) * 2018-11-09 2019-03-08 苏宁消费金融有限公司 A kind of method that React-native heat updates
CN110008041A (en) * 2019-03-27 2019-07-12 北京奇艺世纪科技有限公司 A kind of message treatment method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9563488B2 (en) * 2014-05-29 2017-02-07 Apple Inc. Sharing extension points to allow an application to share content via a sharing extension
US20160057087A1 (en) * 2014-08-21 2016-02-25 Facebook, Inc. Processing media messages based on the capabilities of the receiving device
US10911536B2 (en) * 2015-10-27 2021-02-02 Talkcycle Llc Real-time synchronization of data between disparate cloud data sources
JP7087420B2 (en) * 2018-02-02 2022-06-21 富士通株式会社 Processing program and event processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070083015A (en) * 2006-02-20 2007-08-23 에스케이 텔레콤주식회사 Server, method and system for providing location informing service by using base id
CN104462127A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Recorded data updating method and device
CN107819828A (en) * 2017-10-16 2018-03-20 平安科技(深圳)有限公司 Data transmission method, device, computer equipment and storage medium
CN108196961A (en) * 2017-12-28 2018-06-22 广东蜂助手网络技术股份有限公司 A kind of asynchronous message processing method, terminal, system and storage medium
CN109445833A (en) * 2018-11-09 2019-03-08 苏宁消费金融有限公司 A kind of method that React-native heat updates
CN110008041A (en) * 2019-03-27 2019-07-12 北京奇艺世纪科技有限公司 A kind of message treatment method and device

Also Published As

Publication number Publication date
CN112711436A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
US11845451B2 (en) Automobile diagnostic method, apparatus, device and system, and diagnostic connection device
CN113259952A (en) Beam indication method, device, equipment and medium
US8041398B2 (en) Method for realizing a presence service and presence system
CN111128203B (en) Audio data encoding method, audio data decoding method, audio data encoding device, audio data decoding device, electronic equipment and storage medium
CN111277361B (en) Transmission block size determination method and communication device
WO2014169860A1 (en) Data transmission method and device
EP2227066A1 (en) Message service implementation method and device
CN111447603A (en) Data transmission method and device
EP4152854A1 (en) Information sending method, resource processing method, apparatus, and electronic device
CN110602338B (en) Audio processing method, device, system, storage medium and equipment
AU2021269599A1 (en) Information transmission method and apparatus, and electronic device
CN113190516B (en) Data synchronization monitoring method and device
CN112838980B (en) Message processing method, system, device, electronic equipment and storage medium
CN112711436B (en) Message processing method and device
CN111083506B (en) Management system based on 5G intelligent terminal
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN111800864B (en) Physical uplink control channel transmission method, device, equipment and medium
CN111817830B (en) Transmission and reception control method, terminal and network side equipment
CN110048865B (en) Bus data transmission method and device, electronic equipment and storage medium
CN112702146A (en) Data processing method and device
EP4093121A1 (en) Physical uplink control channel transmission method, apparatus, and device, and medium
CN112530435B (en) Data transmission method, device and system, readable storage medium and electronic equipment
CN114416013A (en) Data transmission method, data transmission device, electronic equipment and computer-readable storage medium
CN113645151A (en) DUP equipment message management method and device
JP2002024145A (en) Electronic mail communication terminal equipment

Legal Events

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