CN113163452A - Information processing method, system, information processing terminal and storage medium - Google Patents

Information processing method, system, information processing terminal and storage medium Download PDF

Info

Publication number
CN113163452A
CN113163452A CN202110362255.2A CN202110362255A CN113163452A CN 113163452 A CN113163452 A CN 113163452A CN 202110362255 A CN202110362255 A CN 202110362255A CN 113163452 A CN113163452 A CN 113163452A
Authority
CN
China
Prior art keywords
information
executed
priority
execution
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110362255.2A
Other languages
Chinese (zh)
Other versions
CN113163452B (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.)
Etekcity Corp
Original Assignee
Etekcity 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 Etekcity Corp filed Critical Etekcity Corp
Priority to CN202110362255.2A priority Critical patent/CN113163452B/en
Publication of CN113163452A publication Critical patent/CN113163452A/en
Application granted granted Critical
Publication of CN113163452B publication Critical patent/CN113163452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1221Wireless traffic scheduling based on age of data to be sent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • H04W72/566Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an information processing method, which comprises the following steps: receiving first information to be executed and original information priority thereof, wherein the original information priority is set by a sending terminal sending the first information to be executed; when second information to be executed exists in the current information execution list, acquiring the execution priority of the second information to be executed, and updating the execution priority according to the current waiting time of the second information to be executed; determining a first priority sequence of the second information to be executed and the first information to be executed according to the execution priority and the original priority corresponding to the first information to be executed; and adding the first to-be-executed information into the information execution list according to the first priority sequence, marking the first to-be-executed information as second to-be-executed information, and marking the original priority as execution priority. The invention also discloses an information processing system, an information processing terminal and a storage medium. The invention can realize the orderly execution of a plurality of information to be executed, and effectively improves the execution efficiency of the second information to be executed.

Description

Information processing method, system, information processing terminal and storage medium
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to an information processing method, an information processing system, an information processing terminal, and a storage medium.
Background
In the communication process of the existing intelligent product, an information receiving terminal may receive control information of multiple sending terminals at the same time, and generally processes the control information according to the priority of the control information, for example, the priority of the control information corresponding to an urgent task is higher, and the control information can be processed preferentially, but the first control information may be continuously received in the process of processing the task by the information receiving terminal, and if the priority of the first control information is higher, the control information with low priority sent earlier may not be processed later, which seriously affects the processing efficiency.
Disclosure of Invention
In view of the above, it is necessary to propose an information processing method, a system, an information processing terminal, and a storage medium, in view of the above problems.
An information processing method comprising: receiving at least one first to-be-executed information and an original information priority corresponding to each first to-be-executed information, wherein the original information priority is set by a sending terminal sending each first to-be-executed information; detecting whether second information to be executed exists in a current information execution list, if so, acquiring an execution priority of the second information to be executed, and updating the execution priority according to the current waiting time of the second information to be executed; determining a first priority sequence of the second information to be executed and the at least one first information to be executed according to the execution priority and an original priority corresponding to each first information to be executed; and adding the at least one piece of first to-be-executed information into the information execution list according to the first priority sequence, marking each piece of first to-be-executed information as second to-be-executed information, and marking the original priority as an execution priority so as to process the second to-be-executed information.
An information processing system comprising: the receiving module is used for receiving at least one piece of first information to be executed and an original information priority corresponding to each piece of first information to be executed, wherein the original information priority is set by a sending terminal which sends each piece of first information to be executed; the detection module is used for detecting whether second information to be executed exists in the current information execution list or not, if so, acquiring the execution priority of the second information to be executed, and updating the execution priority according to the current waiting time of the second information to be executed; a determining module, configured to determine a first priority ranking of the second information to be executed and the at least one first information to be executed according to the execution priority and an original priority corresponding to each first information to be executed; and the marking module is used for adding the at least one piece of first to-be-executed information into the information execution list according to the first priority sequence, marking each piece of first to-be-executed information as second to-be-executed information, and marking the original priority as execution priority so as to process the second to-be-executed information.
An information processing terminal comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method as described above.
A storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method as described above.
The embodiment of the invention has the following beneficial effects:
receiving at least one first to-be-executed message, detecting whether a second to-be-executed message exists in a current message execution list, if so, acquiring an execution priority of the second to-be-executed message, and updating the execution priority according to the current waiting time of the second to-be-executed message; the method comprises the steps of determining a first priority sequence according to an original priority of first information to be executed and an execution priority of second information to be executed, adding at least one piece of first information to be executed into an information execution list according to the first priority sequence, so that the information to be executed can be executed in order, the situation that a plurality of pieces of information to be executed are collided to cause disordered execution sequence is avoided, meanwhile, updating the execution priority of the second information to be executed according to the waiting time of the second information to be executed can avoid that the second information to be executed with lower execution priority is always in a suspended state and is not executed at the beginning, and execution efficiency of the second information to be executed is effectively ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flowchart of a first embodiment of an information processing method provided by the present invention;
FIG. 2 is a flow chart illustrating a second embodiment of an information processing method provided by the present invention;
FIG. 3 is a diagram illustrating an application scenario of an information processing method provided by the present invention;
FIG. 4 is a schematic block diagram of an embodiment of an information handling system according to the present invention;
FIG. 5 is a schematic structural diagram of an embodiment of an information processing terminal provided by the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a storage medium provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of an information processing method according to a first embodiment of the present invention. The information processing method provided by the invention comprises the following steps:
s101: and receiving at least one piece of first to-be-executed information and an original information priority corresponding to each piece of first to-be-executed information, wherein the original information priority is set by a sending terminal sending each piece of first to-be-executed information.
In a specific implementation scenario, a sending terminal is connected to a target receiving terminal, where the sending terminal is configured to send information to be executed to the target receiving terminal, and the target receiving terminal is configured to execute the received information to be executed. The number of transmitting terminals may be one or more.
The sending terminal sets the priority of original information for the first information to be executed sent by the sending terminal based on a preset priority setting rule. Specifically, the sending terminal sets the terminal priority for the first to-be-executed information to be sent according to the priority setting rule. The target receiving terminal establishes handshake communication with the sending terminal, acquires the terminal priority of the first information to be executed sent by the sending terminal through the handshake communication, and takes the terminal priority as the original information priority of the first information to be executed sent by the sending terminal. Therefore, when receiving the information to be executed, the target receiving terminal can directly acquire the priority of the original information without resetting the original priority of the first information to be executed. The target receiving terminal needs to perform handshake communication each time it receives the first to-be-executed information, and the terminal priorities set by the sending terminal may be different each time it performs handshake communication, so that the original priority of the first to-be-executed information needs to be acquired or updated according to the information acquired by this communication after each handshake communication.
Further, the sending terminal establishes a sending sequence for the at least one first to-be-executed message according to the terminal priority, and sends the at least one first to-be-executed message according to the sending sequence. And in the process of sending at least one piece of first to-be-executed information, acquiring the terminal priority of the first to-be-executed information, and determining the sending sequence according to the terminal priority to send the first to-be-executed information.
Specifically, the first to-be-executed information with the high priority of the terminal is sent first.
Further, when generating the first to-be-executed information according to the instruction information of the user, the sending terminal acquires generation time for generating the first to-be-executed information, and generates a timestamp according to the generation time. When the sending sequence is generated, if the priorities of the terminals with the plurality of pieces of first information to be executed are the same, the plurality of pieces of first information to be executed are sequenced according to the sequence of the timestamps, and the information to be executed with the timestamp more ahead is ranked in front.
In an implementation scenario, when the sending terminal sends at least one first to-be-executed message, the sending terminal obtains a currently available communication link, obtains a communication rate of each available communication link, and allocates a bandwidth for data transmission according to the communication rate of each link. For example, the data communication rates of the n communication links are R1, R2, R3 … Rn respectively, and the allocated bandwidth ratio of the communication link i (0< i ≦ n) is Ri/(R1+ R2+ R3+ … + Rn). When the number of available communication links or the communication rate changes, bandwidth is newly allocated to each communication link.
In the implementation scenario, at least one sending terminal and a target receiving terminal are connected in any one or more wireless or wired communication modes such as WIFI, bluetooth, ZigBee, Lora, internet cable and the like.
S102: and detecting whether second information to be executed exists in the current information execution list, if so, executing step 103. If not, go to step S105.
In a specific implementation scenario, a current information execution list is set in a target receiving terminal, and the target receiving terminal may receive a plurality of pieces of first to-be-executed information at a time, and an order of the plurality of pieces of first to-be-executed information needs to be determined first. And after the first to-be-executed information is added into the information execution list, the first to-be-executed information is marked as second to-be-executed information.
In this implementation scenario, each time the first to-be-executed information is received, it is detected whether the second to-be-executed information exists in the current information execution list, so as to determine how to add the first to-be-executed information to the list in any order.
S103: and acquiring the execution priority of second information to be executed, and updating the execution priority according to the current waiting time of the second information to be executed. And determining the first priority sequence of the second information to be executed and at least one first information to be executed according to the execution priority and the original priority corresponding to each first information to be executed.
In a specific implementation scenario, if there is second information to be executed in the current information execution list, and the number of the second information to be executed may be one or more, the execution priority of the second information to be executed is obtained, and the execution priority is updated according to the current waiting time of the second information to be executed. Further, the second information to be executed and at least one first information to be executed are sequenced according to the execution priority of the second information to be executed and the original priority corresponding to each first information to be executed, and a first priority sequence is obtained. For example, the first prioritization may be a ranking according to the numerical size of the execution priority and the original priority.
As described above, by updating the execution priority of the second information to be executed without updating the original priority of the first information to be executed, the priority of the second information to be executed that has not yet been executed and is already in the wait state can be increased, and it is avoided that the original priority of the newly added first information to be executed is too high and the second execution priority is always in the wait state and cannot be executed.
S104: and adding at least one piece of first to-be-executed information into the information execution list according to the first priority sequence, marking each piece of first to-be-executed information as second to-be-executed information, and marking the original priority as execution priority so as to process the second to-be-executed information.
In a specific implementation scenario, at least one first to-be-executed message is added to the message execution list according to a first priority order, a first execution order is determined, each first to-be-executed message is marked as a second to-be-executed message, and an original priority is marked as an execution priority. Specifically, the current information execution list includes the second to-be-executed information a, the execution priority of a is a, the received first to-be-executed information B, the original priority is B, and a > B, then the first priority is A, B, the first to-be-executed information B is added to the back of the second to-be-executed information a in the current information execution list according to the first priority, the first to-be-executed information B is marked as the second to-be-executed information B, and the original priority B is taken as the execution priority B of the second to-be-executed information B. That is, the second to-be-executed information A, B is included in the current information execution list, and the first execution order is A, B.
S105: and determining a second priority sequence according to the original priority of the first information to be executed, adding the first information to be executed into the information execution list according to the second priority sequence, marking the first information to be executed as second information to be executed, and marking the original priority as the execution priority.
In a specific implementation scenario, if there is no second to-be-executed information in the current information execution list, the second priority ranking is determined according to the original priority of the first to-be-executed information. For example, two first to-be-executed information, first to-be-executed information C, original priority C, first to-be-executed information D, original priority D, and C > D are received, and the second priority ranking is determined to be C, D. And adding the first to-be-executed information into the information execution list according to the second priority order, determining a second execution order, marking the first to-be-executed information as second to-be-executed information, and marking the original priority as execution priority. At this point, the second execution order C, D, C, is executed before D. That is, the first to-be-executed information C and the first to-be-executed information D are added to the current information execution list in the second priority order of C, D, and the first to-be-executed information C is taken as the second to-be-executed information C and the first to-be-executed information D is taken as the second to-be-executed information D. And taking the original priority C as the execution priority C of the second information to be executed C, and taking the original priority D as the execution priority D of the second information to be executed D.
In another implementation scenario, when there are multiple pieces of second to-be-executed information with equal execution priority in the information execution list, the execution order of the multiple pieces of second to-be-executed information with equal execution priority is: the second information to be executed with the earlier reception time is executed before the second information to be executed with the later reception time. For example, the execution priority a of the second information to be executed a and the execution priority C of the second information to be executed C are equal, but the second information to be executed a is received before the second information to be executed C, and thus the execution order for the second information to be executed a and C is A, C.
In another implementation scenario, the target receiving terminal receives the first to-be-executed information A, B, C, D, where the priority of the original information in a is 1, the priority of the original information in B is 2, the priority of the original information in C is 3, and the priority of the original information in D is 4, and if there is no second to-be-executed information in the current information execution list, the first to-be-executed information D, C, B, A is added to the current information execution list as the second to-be-executed information D, C, B, A, then D is executed first, after D is executed, the second to-be-executed information C, B, A exists in the information execution list, and the execution priorities of the second to-be-executed information C, B, A are 3, 2, and 1, respectively. The second execution order is determined according to the second priority ranking, and the second execution order is D, C, B, A. And then receiving first to-be-executed information E and information F, wherein the original information priority of the E is 5, the original information priority of the F is 4, at the moment, if the priority of the C, B, A is adjusted to be 4, 3 and 2 respectively according to the priority adjusted by C, B, A of the current waiting time, the first priority is ordered to be E, (F, C) and B, A, wherein the priorities of the F and the C are both 4, the execution sequence is pending, the first to-be-executed information E and the first to-be-executed information F are added into the current information execution list according to the priority ordering, the first to-be-executed information E and the first to-be-executed information F are used as second to-be-executed information E and the second to-be-executed information F, and the original priorities of the E and the first to-be-executed information F are used as the execution priority. Since C is received earlier than F, C is executed before F, the first execution sequence is E, C, F, B, A, and the second pending information F, B, A is suspended until C is executed in sequence F, B, A.
As can be seen from the above description, in this embodiment, the target receiving terminal receives at least one first to-be-executed message, detects whether there is a second to-be-executed message in the current message execution list, if so, obtains the execution priority of the second to-be-executed message, updates the execution priority according to the current waiting time of the second to-be-executed message, determines the first priority order according to the original priority of the first to-be-executed message and the execution priority of the second to-be-executed message, adds at least one first to-be-executed message into the message execution list according to the first priority order, and determines the first execution order according to the first priority order, so that the ordered execution of the to-be-executed messages can be realized, and the conflict of multiple to-be-executed messages and the confusion of the execution order can be avoided, and at the execution priority of the second to-be-executed message is updated according to the current waiting time, the second to-be-executed information with lower execution priority in the initial period can be effectively prevented from being always in a suspended state and not being executed, and the execution efficiency of the second to-be-executed information is effectively ensured.
Referring to fig. 2, fig. 2 is a flowchart illustrating an information processing method according to a second embodiment of the present invention. The information processing method provided by the invention comprises the following steps:
s201: and receiving at least one piece of first to-be-executed information and an original information priority corresponding to each piece of first to-be-executed information, wherein the original information priority is set by a sending terminal sending each piece of first to-be-executed information.
S202: and detecting whether second information to be executed exists in the current information execution list. If yes, go to step S203. If not, go to step S207.
In a specific implementation scenario, steps S201 to S202 are substantially the same as steps S101 to S102 of the first embodiment of the information processing method provided by the present invention, and are not described herein again.
S203: and acquiring the execution priority of the second information to be executed.
In a specific implementation scenario, if one or more pieces of second information to be executed exist in the current information execution list, the execution priority of each piece of second information to be executed is obtained.
S204: acquiring the current waiting time and unit adjusting time of second information to be executed, and acquiring a priority adjusting value of the second information to be executed according to the current waiting time and the unit adjusting time; and taking the sum of the execution priority of the second information to be executed and the priority adjustment value as the updated execution priority.
In a specific implementation scenario, the target receiving terminal receives the first to-be-executed information A, B, C, D, where the priority of the original information of a is 1, the priority of the original information of B is 2, the priority of the original information of C is 3, and the priority of the original information of D is 4, and if there is no second to-be-executed information in the current information execution list, the first to-be-executed information C, B, A is added to the current information execution list as the second to-be-executed information D, C, B, A, and the execution priorities of the second to-be-executed information D, C, B, A are 4, 3, 2, and 1, respectively. The second execution order is determined by a second priority ordering, the second execution order being D, C, B, A. And then receiving first to-be-executed information E and information F, wherein the original information priority of E is 5, the original information priority of F is 4, at the moment, if the priority adjustment value is 1, adding 1 to the priority of C, B, A respectively, and finally adjusting the priority of C, B, A to 4, 3 and 2, the priorities are ordered to E, (F, C) and B, A, wherein the priorities of F and C are both 4, the execution sequence is pending, the first to-be-executed information E and F are added into the current information execution list according to the priority ordering, the first to-be-executed information E and F are used as second to-be-executed information E and F, and the original priorities of E and F are used as the execution priority. Since C is received earlier than F, C is executed before F, the first execution sequence is E, C, F, B, A, and the second pending information F, B, A is suspended until C is executed in sequence F, B, A.
While the first to-be-executed information may be received during the execution of E and C, if the original information priority of the first to-be-executed information is still higher than the updated execution priority of the second to-be-executed information F, B, A, the second to-be-executed information C, B, A is still suspended and cannot be executed for a long time.
When the first to-be-executed information E and F is received, the execution priority of the second to-be-executed information C, B, A is updated, and the priority of the second to-be-executed information C, B, A is raised, so that the second to-be-executed information C, B, A is prevented from being executed for a long time.
Updating the execution priority according to the current waiting time and the unit adjustment time of the second information to be executed can simultaneously consider the problems of processing efficiency and processing time.
The unit adjustment time may be a determined value, where the priority adjustment value is only positively correlated with the current waiting time, or in an implementation scenario, the unit adjustment time may be a value correlated with the current amount of the second to-be-executed information in the information execution list.
If the adjustment is made only according to the current waiting time, it may happen that the information to be executed with a lower execution priority still needs to wait for a longer time under the condition that a larger number of second information to be executed exist. Therefore, the execution priority is updated by combining the current quantity of the second information to be executed, if the current quantity is larger, the adjustment range of the execution priority can be properly increased, the second information to be executed is prevented from waiting for too long, and the execution efficiency of the second information to be executed is effectively ensured.
For example, in the above implementation scenario, when the first to-be-executed information E and F is received, the current waiting time of the second to-be-executed information C, B, A is acquired. The current number is 3, the current waiting time of C, B, A is c, b, a, and c > b > a, if the update priority of C, B, A is 6, 4, 2, the original information priority of E is 5, the original information priority of F is 4, according to the current number and the current waiting time, the first execution order is C, E, B, F, A according to the execution priority of C, B, A and the original priorities of E and F.
In the implementation scenario, a priority adjustment value of the second information to be executed is obtained according to the current waiting time and the current quantity, and the size of the priority adjustment value is positively correlated with the duration of the current waiting time; the size of the priority adjustment value is positively correlated with the current amount of the second information to be executed. That is, the longer the waiting time of the second information to be executed is, the larger the amplitude of the priority adjustment is, so that the second information to be executed with long waiting time is executed first, and the second information to be executed is prevented from being suspended for a long time; in addition, the larger the current number is, the larger the amplitude of the priority adjustment is, and the time for the second to-be-executed information to be suspended is further reduced.
In an implementation scenario, the step of obtaining the priority adjustment value of the second information to be executed according to the current waiting time and the unit adjustment time includes obtaining an average execution time of the executed second information to be executed, obtaining the unit adjustment time according to the average execution time and the current number, and dividing the current waiting time by the unit adjustment time to obtain the priority adjustment value.
The size of the unit adjustment time is positively correlated with the average execution time. The longer the average execution time, the longer the time for processing each information to be executed on behalf of the target receiving terminal, the correspondingly larger the unit adjustment time, so that the priority adjustment value decreases, that is, the priority adjustment amplitude of the second information to be executed decreases. If the adjustment of the priority of the second information to be executed is too large in the case that the target receiving terminal has a long time to process each information to be executed, the second information to be executed with a lower execution priority may have a higher priority during the execution of the executed information to be executed, and the execution of the first information to be executed with a higher original priority may be delayed. Therefore, the size of the unit adjustment time is positively correlated with the average execution time, and the processing efficiency and the processing duration of the first information to be executed and the second information to be executed can be effectively considered.
The size of the unit adjustment time is inversely related to the current quantity, and the larger the current quantity is, the smaller the unit adjustment time is, and the larger the priority adjustment amplitude of the second information to be executed is. The more the current number is, the longer the waiting time for executing the second to-be-executed information with lower priority is possibly, the more the execution efficiency is seriously influenced, therefore, the size of the unit adjustment time is inversely related to the current number, and the execution efficiency of executing the second to-be-executed information with lower priority can be effectively improved.
In one implementation scenario, a plurality of quantity ranges and execution adjustment time corresponding to each quantity range are generated according to average execution time, a target quantity range matching the current quantity in the plurality of quantity ranges is obtained, and the execution adjustment time corresponding to the target quantity range is used as unit adjustment time. For example, multiplying the average execution time by positive integers N, M, L (N < M < L), respectively, correspondingly setting three number ranges N, M, L (N > M > L), then when the current number is in N, the unit adjustment time T ismFor average execution time n, when the current number is in M, the unit adjusts time TmFor the average execution time m, the unit adjusts the time T when the current number is in LmIs the average execution time.
For example,
Figure BDA0003006012750000111
if the average information execution time is 20 us:
Figure BDA0003006012750000112
in the present embodiment, the numbers 3, 5, 7, etc. are only examples, and in other implementation scenarios, the setting and the adjustment may be performed as needed.
Obtaining the priority adjustment value by dividing the current waiting time by the unit adjustment time, e.g. the current waiting time is 1ms, TmThe priority adjustment value is 10 when 100 us. As another example, the current latency is 1ms, TmIf the result of the division is 140us, including a decimal digit, then the integer digit of the result is taken and the priority adjustment value is 7.
And taking the sum of the execution priority of the second information to be executed and the priority adjustment value as the updated execution priority. For example, if the execution priority of the second to-be-executed information is 1 and the priority adjustment value is 7, the updated execution priority is 1+ 7-8.
As can be seen from the above description, in the present embodiment, TmIs dynamically changed, thereby ensuring the balance between the current quantity of the second information to be executed and the newly increased quantity of the received first information to be executed, and when the current quantity is less, T ismLarger, avoid too high frequency of updating priority, and T is larger when the current data is moremAnd the updating priority is smaller so as to increase the promotion amplitude of the updating priority and ensure the response efficiency of the second information to be executed.
In another implementation scenario, the time T is adjusted in units of acquisitionmAnd then, adjusting time every interval unit, acquiring second information to be executed in the information execution list, and adding one to the execution priority of each piece of second information to be executed to serve as the updated execution priority. It should be noted that the time T is adjusted per unitmIs changed when the Xth reception is the firstWhen the information is to be executed, the unit adjustment time T is acquired at the momentmThe unit adjustment time for updating the execution priority is determined as the unit adjustment time for updating the execution priority in the time interval in which the first information to be executed is received the xth time and the xth +1 time.
Specifically, a first time when the first information to be executed is received last time and a current second time are obtained, a time interval between the first time and the second time is calculated, if the time interval is greater than or equal to the unit adjustment time, the time interval is divided by the unit adjustment time, an integer of a division result is obtained, and the integer is added to the execution priority of each second information to be executed to serve as the updated execution priority. If the time interval is smaller than the unit adjustment time, timing is continued, and the execution priority of the second information to be executed is not updated. When the first to-be-executed information is received next time, the time for receiving the first to-be-executed information next time is the first time, and the steps are repeated.
S205: and determining the first priority sequence of the second information to be executed and at least one first information to be executed according to the execution priority and the original priority corresponding to each first information to be executed.
S206: and adding at least one piece of first to-be-executed information into the information execution list according to the first priority sequence, marking each piece of first to-be-executed information as second to-be-executed information, and marking the original priority as execution priority so as to process the second to-be-executed information.
S207: and determining a second priority sequence according to the original priority of the first information to be executed, adding the first information to be executed into the information execution list according to the second priority sequence, marking the first information to be executed as second information to be executed, and marking the original priority as the execution priority.
In a specific implementation scenario, steps S205 to S207 are substantially the same as steps S103 to S105 in the first embodiment of the information processing method provided by the present invention, and are not described herein again.
As can be seen from the above description, in this embodiment, the priority adjustment value of the second information to be executed is obtained according to the current waiting time and the unit adjustment time, and the execution priority of the second information to be executed is added to the updated execution priority; the size of the priority adjustment value is positively correlated with the duration of the current waiting time; the size of the priority adjustment value is related to the current number of the currently remaining information to be executed, when the current number is small, the frequency of updating the priority can be avoided from being too high, when the current number is large, the promotion range of updating the priority can be increased, and the response efficiency of the currently remaining information to be executed is ensured.
Referring to fig. 3, fig. 3 is a schematic view of an application scenario of the information processing method according to the present invention. As shown in fig. 3, the gateway 1 and the gateway 2 are connected to a target device 3, and in the present implementation scenario, the target device 3 is a humidifier. The target device 3 can be connected and controlled in a wireless connection mode such as wifi, and can also be connected and controlled through a network cable and a PLC.
The user A issues an instruction for increasing the power of the atomizing plate to the target device 3 through the gateway 1, the user B issues an instruction for increasing the rotating speed of the fan to the target device 3 through the gateway 2, second to-be-executed information for lighting an indicator lamp also exists in an information execution list in the target device 3, and an execution sequence is necessarily set between the instruction issued by the gateway 1 and the gateway 2 and the second to-be-executed information in the target device 3. Therefore, in the present implementation scenario, when receiving the command for increasing the atomizing disk power sent by the gateway 1 and the command for increasing the fan speed sent by the gateway 2, the target device 3 executes the information processing method shown in fig. 1 or fig. 2 with these two commands as the first information to be executed, and determines the order in which the target device 3 is executing the commands.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an information processing system according to an embodiment of the present invention. The communication transmission system 10 comprises a receiving module 11, a detecting module 12, a determining module 13 and a marking module 14.
The receiving module 11 is configured to receive at least one first to-be-executed information and an original information priority corresponding to each first to-be-executed information, where the original information priority is set for a sending terminal that sends each first to-be-executed information. The detecting module 12 is configured to detect whether the second to-be-executed information exists in the current information execution list, and if so, obtain an execution priority of the second to-be-executed information. The determining module 13 is configured to determine a first priority ranking of the second information to be executed and the at least one first information to be executed according to the execution priority and the original priority corresponding to each first information to be executed. The determining module 13 is further configured to determine a first execution order according to the first priority order. The marking module 14 is configured to add at least one first to-be-executed information into the information execution list according to the first priority ranking, mark each first to-be-executed information as a second to-be-executed information, and mark the original priority as an execution priority to process the second to-be-executed information.
The determining module 13 is further configured to determine a second priority ranking according to an original priority of the first to-be-executed information when the second to-be-executed information does not exist in the current information execution list, add the first to-be-executed information into the information execution list according to the second priority ranking, mark the first to-be-executed information as the second to-be-executed information, and mark the original priority as the execution priority.
The determining module 13 is further configured to determine a second execution order according to the second priority order. The determining module 13 is further configured to, when there are multiple pieces of second information to be executed in the information execution list, determine that the execution order of the multiple pieces of second information to be executed with equal execution priorities is: the second information to be executed with the earlier reception time is executed before the second information to be executed with the later reception time.
The detection module 12 is further configured to obtain a current waiting time and a unit adjustment value of the second information to be executed, and obtain a priority adjustment value of the second information to be executed according to the current waiting time and the unit adjustment value; and taking the sum of the execution priority of the second information to be executed and the priority adjustment value as the updated execution priority. The current waiting time is the time interval between the receiving time of the second information to be executed and the current time; the size of the priority adjustment value is positively correlated with the duration of the current waiting time.
The detection module 12 is further configured to obtain an average execution time of the executed second information to be executed and a current quantity of the second execution information in the information execution list, and obtain a unit adjustment time according to the average execution time and the current quantity, where a size of the unit adjustment time is positively correlated to the average execution time and negatively correlated to the current quantity; the current waiting time is divided by the unit adjustment time to obtain a priority adjustment value.
The information processing system 10 further includes an updating module 15, where the updating module 15 is configured to adjust the time per interval unit, acquire the second information to be executed in the information execution list, and add one to the execution priority of each second information to be executed as the updated execution priority.
The detection module 12 is further configured to generate a plurality of quantity ranges and execution adjustment time corresponding to each quantity range according to the average execution time; and acquiring a target quantity range matched with the current quantity in the plurality of quantity ranges, and taking the execution adjustment time corresponding to the target quantity range as unit adjustment time.
The information processing system of the present invention corresponds to the information processing method of the present invention one to one, and the technical features and the advantageous effects described in the embodiments of the information processing method are applicable to the embodiments of the information processing system, which is hereby stated.
As can be seen from the above description, in this embodiment, the information processing system receives at least one first to-be-executed information, detects whether there is second to-be-executed information in the current information execution list, and if so, obtains the execution priority of the second to-be-executed information, determining a first prioritization based on an original priority of the first information to be executed and an execution priority of the second information to be executed, adding at least one first to-be-executed information into the information execution list according to the first priority order, can realize the orderly execution of the information to be executed, avoid the conflict of a plurality of information to be executed, which causes the confusion of the execution sequence, and simultaneously, because the execution priority of the second information to be executed is updated according to the current waiting time, the second information to be executed with lower execution priority can be effectively prevented from being always in a suspended state and not being executed initially, and the execution efficiency of the second information to be executed is effectively ensured.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an information processing terminal according to an embodiment of the present invention. The information processing terminal 20 includes a processor 21 and a memory 22. The processor 21 is coupled to a memory 22. The memory 22 has stored therein a computer program which is executed by the processor 21 in operation to implement the method as shown in fig. 1-2. The detailed methods can be referred to above and are not described herein.
As can be seen from the above description, in this embodiment, the information processing terminal receives at least one first to-be-executed information, detects whether there is a second to-be-executed information in the current information execution list, and if so, obtains an execution priority of the second to-be-executed information, determining a first prioritization based on an original priority of the first information to be executed and an execution priority of the second information to be executed, adding at least one first to-be-executed information into the information execution list according to the first priority order, can realize the orderly execution of the information to be executed, avoid the conflict of a plurality of information to be executed, which causes the confusion of the execution sequence, and simultaneously, because the execution priority of the second information to be executed is updated according to the current waiting time, the second information to be executed with lower execution priority can be effectively prevented from being always in a suspended state and not being executed initially, and the execution efficiency of the second information to be executed is effectively ensured.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a storage medium according to an embodiment of the present invention. The storage medium 30 stores at least one computer program 31, and the computer program 31 is used for being executed by a processor to implement the method shown in fig. 1-2, and the detailed method can be referred to above and will not be described herein again. In one embodiment, the storage medium 30 may be a hard disk of a storage chip in the terminal, or other readable and writable storage means such as a removable hard disk or a flash disk, or may be a server, or the like.
As can be seen from the above description, in this embodiment, the computer program in the storage medium may be configured to receive at least one piece of first information to be executed, detect whether there is second information to be executed in the current information execution list, if so, obtain an execution priority of the second information to be executed, determine a first priority ranking according to an original priority of the first information to be executed and an execution priority of the second information to be executed, add the at least one piece of first information to be executed into the information execution list according to the first priority ranking, implement ordered execution of the information to be executed, avoid conflict among a plurality of information to be executed, and cause confusion of execution order, and at the same time, because the execution priority of the second information to be executed is updated according to the current waiting time, effectively avoid that the second information to be executed with a lower execution priority at the beginning is not executed in a suspended state all the time, the execution efficiency of the second information to be executed is effectively ensured.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An information processing method characterized by comprising:
receiving at least one first to-be-executed information and an original information priority corresponding to each first to-be-executed information, wherein the original information priority is set by a sending terminal sending each first to-be-executed information;
detecting whether second information to be executed exists in a current information execution list, if so, acquiring an execution priority of the second information to be executed, and updating the execution priority according to the current waiting time of the second information to be executed;
determining a first priority sequence of the second information to be executed and the at least one first information to be executed according to the execution priority and an original priority corresponding to each first information to be executed;
and adding the at least one piece of first to-be-executed information into the information execution list according to the first priority sequence, marking each piece of first to-be-executed information as second to-be-executed information, and marking the original priority as an execution priority so as to process the second to-be-executed information.
2. The information processing method according to claim 1, wherein the step of detecting whether the second information to be executed exists in the current information execution list is followed by:
if not, determining a second priority sequence according to the original priority of the first to-be-executed information, adding the first to-be-executed information into the information execution list according to the second priority sequence, marking the first to-be-executed information as second to-be-executed information, and marking the original priority as execution priority.
3. The information processing method according to claim 1 or 2,
when the information execution list has a plurality of pieces of second information to be executed with equal execution priority, the execution order of the plurality of pieces of second information to be executed with equal execution priority is: and executing the second information to be executed with the early receiving time before executing the second information to be executed with the later receiving time.
4. The information processing method according to claim 1, wherein said updating the execution priority according to the current waiting time of the second information to be executed comprises:
acquiring the current waiting time and unit adjusting time of the second information to be executed, and acquiring a priority adjusting value of the second information to be executed according to the current waiting time and the unit adjusting time;
taking the sum of the execution priority of the second information to be executed and the priority adjustment value as the updated execution priority;
the current waiting time is the time interval between the receiving time of the second information to be executed and the current time; the size of the priority adjustment value is positively correlated with the duration of the current waiting time.
5. The information processing method according to claim 4, wherein the step of obtaining the priority adjustment value of the second information to be executed according to the current waiting time and the unit adjustment time includes:
acquiring the average execution time of the executed second information to be executed and the current quantity of the second information to be executed in the information execution list, and acquiring unit adjustment time according to the average execution time and the current quantity, wherein the size of the unit adjustment time is positively correlated with the average execution time and negatively correlated with the current quantity;
and dividing the current waiting time by the unit adjusting time to obtain the priority adjusting value.
6. The information processing method according to claim 5, wherein after the step of adding the at least one first to-be-executed information into the information execution list, marking each first to-be-executed information as a second to-be-executed information, and marking the original priority as an execution priority, according to the first priority, to process the second to-be-executed information, the method comprises:
and acquiring the second information to be executed in the information execution list at intervals of the unit adjustment time, and adding one to the execution priority of each piece of the second information to be executed to serve as the updated execution priority.
7. The information processing method according to claim 5, wherein the step of obtaining a unit adjustment time based on the average execution time and the current number comprises:
generating a plurality of quantity ranges and the execution adjustment time corresponding to each quantity range according to the average execution time;
and acquiring a target quantity range matched with the current quantity in the plurality of quantity ranges, and taking the execution adjustment time corresponding to the target quantity range as the unit adjustment time.
8. An information processing system, comprising:
the receiving module is used for receiving at least one piece of first information to be executed and an original information priority corresponding to each piece of first information to be executed, wherein the original information priority is set by a sending terminal which sends each piece of first information to be executed;
the detection module is used for detecting whether second information to be executed exists in the current information execution list or not, if so, acquiring the execution priority of the second information to be executed, and updating the execution priority according to the current waiting time of the second information to be executed;
a determining module, configured to determine a first priority ranking of the second information to be executed and the at least one first information to be executed according to the execution priority and an original priority corresponding to each first information to be executed;
and the marking module is used for adding the at least one piece of first to-be-executed information into the information execution list according to the first priority sequence, marking each piece of first to-be-executed information as second to-be-executed information, and marking the original priority as execution priority so as to process the second to-be-executed information.
9. An information processing terminal, characterized by comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A storage medium, characterized in that a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1-7.
CN202110362255.2A 2021-04-02 2021-04-02 Information processing method, information processing system, information processing terminal, and storage medium Active CN113163452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110362255.2A CN113163452B (en) 2021-04-02 2021-04-02 Information processing method, information processing system, information processing terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110362255.2A CN113163452B (en) 2021-04-02 2021-04-02 Information processing method, information processing system, information processing terminal, and storage medium

Publications (2)

Publication Number Publication Date
CN113163452A true CN113163452A (en) 2021-07-23
CN113163452B CN113163452B (en) 2023-04-28

Family

ID=76886411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110362255.2A Active CN113163452B (en) 2021-04-02 2021-04-02 Information processing method, information processing system, information processing terminal, and storage medium

Country Status (1)

Country Link
CN (1) CN113163452B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115600888A (en) * 2022-11-02 2023-01-13 南京乾能信息工程有限公司(Cn) Power system power failure plan refined circulation system
CN117170293A (en) * 2023-10-27 2023-12-05 湖南华鑫电子科技有限公司 Centralized control method and system for power supply with multi-mode cooperative work

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895273B1 (en) * 2003-01-23 2011-02-22 Sprint Spectrum L.P. System and method for sorting instant messages
US20110235575A1 (en) * 2010-03-26 2011-09-29 T-Mobile Usa, Inc. Signaling Message Prioritization
CN104159316A (en) * 2013-05-14 2014-11-19 北京化工大学 Scheduling method for multiple users in upper layer of LTE (Long Term Evolution) base station
CN104820906A (en) * 2015-05-21 2015-08-05 龙岩烟草工业有限责任公司 Task scheduling method, device and system
CN111400022A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Resource scheduling method and device and electronic equipment
CN112000454A (en) * 2020-08-27 2020-11-27 平安国际智慧城市科技股份有限公司 Multimedia data processing method and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895273B1 (en) * 2003-01-23 2011-02-22 Sprint Spectrum L.P. System and method for sorting instant messages
US20110235575A1 (en) * 2010-03-26 2011-09-29 T-Mobile Usa, Inc. Signaling Message Prioritization
CN104159316A (en) * 2013-05-14 2014-11-19 北京化工大学 Scheduling method for multiple users in upper layer of LTE (Long Term Evolution) base station
CN104820906A (en) * 2015-05-21 2015-08-05 龙岩烟草工业有限责任公司 Task scheduling method, device and system
CN111400022A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Resource scheduling method and device and electronic equipment
CN112000454A (en) * 2020-08-27 2020-11-27 平安国际智慧城市科技股份有限公司 Multimedia data processing method and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115600888A (en) * 2022-11-02 2023-01-13 南京乾能信息工程有限公司(Cn) Power system power failure plan refined circulation system
CN117170293A (en) * 2023-10-27 2023-12-05 湖南华鑫电子科技有限公司 Centralized control method and system for power supply with multi-mode cooperative work
CN117170293B (en) * 2023-10-27 2024-01-09 湖南华鑫电子科技有限公司 Centralized control method and system for power supply with multi-mode cooperative work

Also Published As

Publication number Publication date
CN113163452B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN113163452A (en) Information processing method, system, information processing terminal and storage medium
KR20200017589A (en) Cloud server for offloading task of mobile node and therefor method in wireless communication system
CN105791254B (en) Network request processing method and device and terminal
CN111147395B (en) Network resource adjusting method and device
CN112667260B (en) OTA remote upgrading system and method based on intelligent brain
CN109617806B (en) Data traffic scheduling method and device
CN110674942A (en) Bandwidth management method and device, electronic equipment and readable storage medium
CN110719230B (en) Method and device for adjusting peak staggering interval and computer readable storage medium
CN111459676B (en) Node resource management method, device and storage medium
CN110830964A (en) Information scheduling method, Internet of things platform and computer readable storage medium
CN112751718A (en) Bandwidth adjusting method and device, terminal and storage medium
US11172018B2 (en) Method and apparatus for controlling traffic
CN111614577A (en) Multi-communication trust service management method and device and computer equipment
US9398600B2 (en) Base station device, radio communication system, and base station device control method
CN107567098B (en) Method and device for power distribution
EP4037272A1 (en) Data processing method and device
WO2021057068A1 (en) Rdma data flow control method and system, electronic device and readable storage medium
CN112866985A (en) Flow control method, resource downloading method, device, equipment and storage medium
CN110888892B (en) Block synchronization method, device and storage medium
CN111917595A (en) System upgrading method and device, intelligent equipment and storage medium
CN113453285B (en) Resource adjusting method, device and storage medium
US10200724B1 (en) System for optimizing distribution of audio data
CN112532664A (en) Data upgrading method and device
CN113364635B (en) Ad hoc network bandwidth adjusting method, device and system
JP2023542603A (en) Time distribution method using air interface of mobile terminal, mobile terminal and readable storage medium

Legal Events

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