CN112148444B - Data processing method, device, system and storage medium - Google Patents

Data processing method, device, system and storage medium Download PDF

Info

Publication number
CN112148444B
CN112148444B CN202010924015.2A CN202010924015A CN112148444B CN 112148444 B CN112148444 B CN 112148444B CN 202010924015 A CN202010924015 A CN 202010924015A CN 112148444 B CN112148444 B CN 112148444B
Authority
CN
China
Prior art keywords
data
thread
receiving
executed
received
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
CN202010924015.2A
Other languages
Chinese (zh)
Other versions
CN112148444A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010924015.2A priority Critical patent/CN112148444B/en
Publication of CN112148444A publication Critical patent/CN112148444A/en
Application granted granted Critical
Publication of CN112148444B publication Critical patent/CN112148444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4825Interrupt from clock, e.g. time of day

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a data processing method, a device, a system and a storage medium. The data processing method comprises the following steps: confirming a receiving thread for receiving data according to the data receiving log information, and taking the receiving thread as a thread to be executed; if the data received by the thread to be executed before is not processed, executing a preset interrupt thread to process the data received before until the data received before is processed, and receiving the data by the thread to be executed. According to the scheme, the receiving thread for receiving the data is determined according to the data receiving log information, when the data received by the receiving thread before is not processed, the interrupt thread which is preset is executed to process the data received before, and then the data is received by the thread to be executed, so that the condition that the data is lost due to the fact that the data cover the data before is avoided, stable and reliable operation of a system is ensured, and the data sent by the data sending end is processed by reasonably utilizing the internal resources of the chip.

Description

Data processing method, device, system and storage medium
Technical Field
The present invention relates to the field of data interaction technologies, and in particular, to a data processing method, device, system, and storage medium.
Background
The internet of things (THE INTERNET of Things, IOT for short) refers to collecting any object or process needing to be monitored, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors and laser scanners, collecting various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology and positions, and realizing ubiquitous connection of the object and people through various possible network access, and realizing intelligent sensing, identification and management of the object and the process.
Along with the development of the internet of things technology, the internet of things technology is more and more convenient and popular, and more household appliances increase the WIFI function, so that the use experience of users is facilitated. The existing WIFI function is generally that a main control chip of the household appliance is connected with the wireless device through communication with a WIFI module. However, most household appliances have no load except for controlling a relay switch and a display key, so that a main control chip adopts a chip with a relatively slow operation speed. Therefore, if the WIFI function is directly added to the household electrical appliance and the packet loss is not guaranteed, only a chip with a faster operation speed can be selected, and the cost is accordingly high.
Disclosure of Invention
To solve the problems of the prior art, at least one embodiment of the present invention provides a data processing method, apparatus, system, and storage medium.
In a first aspect, an embodiment of the present invention provides a data processing method, where the processing method includes:
Acquiring data receiving log information;
confirming a receiving thread for receiving data according to the data receiving log information, and taking the receiving thread as a thread to be executed; wherein, the receiving thread is provided with at least two;
judging whether the data received by the thread to be executed before is processed;
And if the processing of the previously received data is not completed, executing a preset interrupt thread to process the previously received data of the thread to be executed until the processing of the previously received data is completed, and then receiving the data through the thread to be executed.
Based on the above technical solution, the following improvements can be made in the embodiments of the present invention.
With reference to the first aspect, in a first embodiment of the first aspect, the processing method further includes:
Judging whether an internal interrupt thread exists or not;
If an internal interrupt thread exists, setting the internal interrupt thread as the interrupt thread;
And if the internal interrupt thread does not exist, setting a timing interrupt thread as the interrupt thread, wherein the timing interrupt thread is executed after a preset time interval is started.
With reference to the first aspect, in a second embodiment of the first aspect, the executing the interrupt thread that is set in advance processes data that is previously received by the thread to be executed, including:
Acquiring thread running information;
judging whether a preset internal interrupt thread can be executed or not according to the thread running information;
If the internal interrupt thread can be executed, processing the data received by the thread to be executed in advance through the internal interrupt thread;
If the internal interrupt thread cannot be executed, starting a preset timing interrupt thread to process the data received by the thread to be executed in advance; the timing interrupt thread is executed after a preset time interval is started.
With reference to the first aspect or the first or second embodiment of the first aspect, in a third embodiment of the first aspect, the identifying, according to the data reception log information, a reception thread that is to receive data includes:
Judging whether a prefix of the data is received or not according to the data receiving log information;
when the prefix of the data is received, a receiving thread for receiving the prior historical data in the data receiving log information is obtained;
acquiring the cyclic execution sequence of all the receiving threads;
And confirming the receiving thread which is to receive the data according to the receiving thread which receives the historical data and the cyclic execution sequence of all the receiving threads.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
An acquisition unit configured to acquire data reception log information;
the first processing unit is used for confirming a receiving thread for receiving data according to the data receiving log information and taking the receiving thread as a thread to be executed; wherein, the receiving thread is provided with at least two;
The second processing unit is used for judging whether the data received by the thread to be executed before is processed; and if the processing of the previously received data is not completed, executing a preset interrupt thread to process the previously received data of the thread to be executed until the processing of the previously received data is completed, and then receiving the data through the thread to be executed.
With reference to the second aspect, in a first embodiment of the second aspect, the processing device further includes:
The third processing unit is used for judging whether an internal interrupt thread exists or not; if an internal interrupt thread exists, setting the internal interrupt thread as the interrupt thread; and if the internal interrupt thread does not exist, setting a timing interrupt thread as the interrupt thread, wherein the timing interrupt thread is executed after a preset time interval is started.
With reference to the second aspect, in a second embodiment of the second aspect, the second processing unit is specifically configured to obtain thread running information; judging whether a preset internal interrupt thread can be executed or not according to the thread running information; if the internal interrupt thread can be executed, processing the data received by the thread to be executed in advance through the internal interrupt thread; if the internal interrupt thread cannot be executed, starting a preset timing interrupt thread to process the data received by the thread to be executed in advance; the timing interrupt thread is executed after a preset time interval is started.
With reference to the second aspect or the first or second embodiment of the second aspect, in a third embodiment of the second aspect, the first processing unit is specifically configured to determine whether a prefix of the data is received according to the data reception log information; when the prefix of the data is received, a receiving thread for receiving the prior historical data in the data receiving log information is obtained; acquiring the cyclic execution sequence of all the receiving threads; and confirming the receiving thread which is to receive the data according to the receiving thread which receives the historical data and the cyclic execution sequence of all the receiving threads.
In a third aspect, an embodiment of the present invention provides a data processing system, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
And a processor configured to implement the data processing method according to any one of the first aspect when executing the program stored in the memory.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the data processing method of any of the first aspects.
Compared with the prior art, the technical scheme of the invention has the following advantages: according to the embodiment of the invention, the receiving thread for receiving the data is determined according to the data receiving log information, when the data received by the receiving thread for receiving the data is not processed, a preset interrupt thread is executed to process the data received before, and the data is received by the thread to be executed after the processing of the data received before is completed, so that the condition that the data is lost due to the fact that the data cover the data before after is avoided, the stable and reliable operation of the system is ensured, and the data sent by the data sending end is processed by reasonably utilizing the internal resources of the chip.
Drawings
FIG. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to another embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to another embodiment of the present invention;
FIG. 4 is a schematic flow chart of a data processing method according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a data processing apparatus according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a data processing system according to another embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present 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.
As shown in fig. 1, an embodiment of the present invention provides a data processing method. Referring to fig. 1, the processing method further includes the steps of:
s11, acquiring data receiving log information.
In this embodiment, the log file is a record file or a file set for recording the operation event of the system, and can be divided into an event log and a message log, which have important roles of processing history data, tracking diagnostic problems, understanding the activity of the system, and the like.
In this step, the data receiving log information may be obtained from a data receiving port of the system, or may be obtained from a data processing device of the system to determine a thread for receiving data, where in the data system, the data is communicated with the outside through the data port, and when the data is transmitted to the system, the data is interrupted by a receiving interrupt, and jumps to a thread corresponding to the receiving interrupt to receive the data, and the data receiving log information records log information such as a type of the received data, a port for receiving the data, and a thread for receiving the data.
S12, confirming a receiving thread for receiving data according to the data receiving log information, and taking the receiving thread as a thread to be executed; wherein, the receiving thread is provided with at least two.
In this embodiment, the working condition of each thread is confirmed according to the log information of data reception, for example, the threads for receiving data are ordered, each data packet transmitted to the system is sequentially and circularly received according to the order of the threads, it can be known by the log information which receiving thread receives the data coming each time, or the working condition of each receiving thread is known according to the log information, and when the data comes, the receiving thread for receiving the data at this time is determined based on the control logic of the data reception of the system.
For example, two receiving threads are written in the main control program, the two receiving threads are used alternately, the first packet data which is normally sent is received and processed by using the first receiving thread, the second packet data is received and processed by using the second receiving thread, and then the steps are performed alternately.
S13, judging whether the data received by the thread to be executed in advance is processed.
In this embodiment, since the thread to be executed that receives the data does not receive the data packet once, but the data received by each receiving thread is placed in the corresponding storage space, the main program processes the data received by the receiving thread, but since the capability of the main program of the data receiving end to process the data is weaker than that of the data transmitting end to transmit the data, this will occur that the data previously received by the receiving thread is not processed by the main program of the data receiving end, the receiving thread will receive the data that comes again, and if the receiving thread directly receives the newly-appearing data, the previously-received data will be covered without timely processing.
For example, the existing wireless access point has already begun to popularize the WIFI6 standard, and the data transmission rate of the WIFI6 standard wireless access point can reach 9.6Gbps, compared with the data transmission rate of the wireless access point, because the logic to be processed of the home appliance is simpler, the data processing capability of the main control chip in the home appliance does not need to be too strong, and if the main control chip in the home appliance is replaced to adapt to the data transmission rate of the wireless access point, the cost will be greatly increased, and in particular, the following description can be referred to, the content contained in the data packet is very much, so the processing of the data packet is generally put in the main circulation processing, and the receiving interruption is only the receiving data. Taking the time of receiving one packet of data as 5ms, the time of processing one round by the main function is taken as an example, assuming that the previous time is 0ms, if the first packet of data is received at the 1 st ms and the 6 th ms is received, but the program main function executes one round for 15ms, the processing can be performed only by waiting for 7ms of data packets, if the data is busy, the second packet of data is received at the 7ms, the receiving is completed at the 12ms, at this time, both arrays are received, if the data is received before the 15ms, the data received at the 1 st ms is not processed in time and is covered by new data, so that the higher the data transmission rate of the wireless access point is, the lower the data processing capability of a main control chip in the household appliance is, the situation that the data is covered by subsequent data is easy to occur.
In this embodiment, whether the previously received data is processed may be determined according to the case where the previously received data is extracted by the program of the main control chip, and whether the online received data is processed may be determined according to the remaining amount of the previously received data in the storage space.
And S14, if the processing of the previously received data is not completed, executing a preset interrupt thread to process the previously received data of the thread to be executed until the processing of the previously received data is completed, and then receiving the data through the thread to be executed.
In this embodiment, if the data previously received by the receiving thread described in the foregoing embodiment is not processed, the receiving thread receives the incoming data again, and at this time, executes a preset interrupt thread, jumps to the interrupt thread to process the data previously received by the executing thread, and after the processing of the data previously received is completed, receives the data through the thread to be executed, so as to ensure that the data cannot be lost due to the fact that the data is not processed in time.
In this embodiment, the preset interrupt thread may be an internal software interrupt of the main control chip, after the above condition is met, the current processing statement may be broken, the interrupt function is processed preferentially, after the processing is completed, the broken statement before the interrupt is processed again and is executed normally in sequence, but because the functions of the chips in the home appliance are less, the chips of some home appliances are not provided with the internal software interrupt, at this time, the preset interrupt thread may be a timing interrupt thread programmed by a user, the timing interrupt thread is executed after starting the preset time interval, only one timing sub-thread needs to be added in the software of the chip by the user, and after the above condition is met, the timing sub-thread is started, and the data is processed after the preset time interval.
As shown in fig. 2, an embodiment of the present invention provides a data processing method. Compared with the data processing method shown in fig. 1, the processing method is different in that the processing method further comprises the following steps:
s21, judging whether an internal interrupt thread exists.
S22a, if an internal interrupt thread exists, setting the internal interrupt thread as an interrupt thread.
S22b, if no internal interrupt thread exists, setting a timing interrupt thread as an interrupt thread, wherein the timing interrupt thread is executed after a preset time interval is started.
In this embodiment, if an internal interrupt thread exists, a corresponding processing method is added to execution logic of the internal interrupt thread, so as to complete processing of data which is not processed yet, if the internal interrupt thread does not exist, a timing interrupt thread is set, logic in the timing interrupt thread is executed after starting the timing interrupt thread for a preset time interval, and processing of the data which is not processed yet is performed.
As shown in fig. 3, an embodiment of the present invention provides a data processing method. Referring to fig. 3, the processing method includes: executing a preset interrupt thread to process the data received by the thread to be executed in advance, wherein the method comprises the following steps:
S31, acquiring data receiving log information.
For the details of step S31, refer to the description in step S11, and the details of this embodiment are not repeated here.
S32, confirming a receiving thread for receiving data according to the data receiving log information, and taking the receiving thread as a thread to be executed; wherein, the receiving thread is provided with at least two.
For the details of step S32, refer to the description in step S11, and the details of this embodiment are not repeated here.
And S33, when the thread to be executed is about to receive data, judging whether the data received by the thread to be executed in advance is processed.
For the details of step S33, refer to the description in step S11, and the details of this embodiment are not repeated here.
S34, if the previously received data is not processed, thread running information is obtained.
In this embodiment, the thread running information may be obtained through a log file in the system, which is not particularly limited in this embodiment.
S35, judging whether the preset internal interrupt thread can be executed or not according to the thread running information.
In this embodiment, if an internal software terminal exists in the main control chip, that is, if an internal interrupt thread exists, whether the preset internal interrupt thread can be executed or not is confirmed according to the thread operation information, that is, whether the internal interrupt thread can be operated well or not is confirmed.
And S36a, if the internal interrupt thread can be executed, processing the data received by the thread to be executed in advance through the internal interrupt thread.
S36b, if the internal interrupt thread cannot be executed, starting a preset timing interrupt thread to process the data received by the thread to be executed in advance; the timing interrupt thread is executed after a preset time interval is started.
In this embodiment, if it is determined that the internal interrupt thread cannot be executed, a preset timing terminal thread is started to process the previously received data, so as to ensure that the previously received data is processed completely, and avoid the subsequent data from overlapping the previous data, so as to ensure that the communication data is not lost and operates stably and reliably.
As shown in fig. 4, an embodiment of the present invention provides a data processing method, which is different from the data processing method shown in fig. 1 in that the data processing method further includes:
S41, judging whether the prefix of the data is received or not according to the data receiving log information.
In this embodiment, when the data transmitting end in the data transmission system transmits data to the data receiving end, the data transmitting end may transmit data to the data receiving end in the form of a continuous frame, each frame has ten bytes, and in order for the data receiving end to confirm the integrity of the received data, a prefix and a suffix are respectively set at the front end and the tail end of the data, so that when the data receiving end receives the prefix of the data, the data transmitting end may be determined to transmit data to the data receiving end.
S42, when the prefix of the data is received, a receiving thread for receiving the prior historical data in the data receiving log information is obtained.
In this embodiment, the receiving threads that receive the previous history data in the data reception log information are acquired to determine the data reception situation of each receiving thread, for example, to determine which receiving thread the previous data was received by.
S43, acquiring the cycle execution sequence of all the receiving threads.
In this embodiment, the receiving thread loops in a preset order to receive the data.
S44, confirming the receiving thread which is to receive the data according to the receiving thread which receives the historical data and the cyclic execution sequence of all the receiving threads.
In the present embodiment, the data to be arrived is obtained to be received by the receiving thread according to the cyclic execution order of the receiving thread and the condition of the receiving thread receiving the history data.
As shown in fig. 5, an embodiment of the present invention provides a data processing apparatus, including: an acquisition unit 11, a first processing unit 12 and a second processing unit 13.
In the present embodiment, the acquiring unit 11 is configured to acquire data reception log information.
In this embodiment, the first processing unit 12 is configured to confirm, as a thread to be executed, a receiving thread that is to receive data according to the data reception log information; wherein, the receiving thread is provided with at least two.
In this embodiment, the second processing unit 13 is configured to determine whether the data received by the thread to be executed before has been processed; if the processing of the previously received data is not completed, executing a preset interrupt thread to process the previously received data of the thread to be executed until the processing of the previously received data is completed, and then receiving the data through the thread to be executed.
In this embodiment, the processing apparatus further includes: and a third processing unit.
In this embodiment, the third processing unit is configured to determine whether an internal interrupt thread exists; if the internal interrupt thread exists, setting the internal interrupt thread as an interrupt thread; if the internal interrupt thread does not exist, setting a timing interrupt thread as the interrupt thread, wherein the timing interrupt thread is executed after starting a preset time interval.
In this embodiment, the second processing unit 13 is specifically configured to obtain thread running information; judging whether a preset internal interrupt thread can be executed or not according to thread running information; if the internal interrupt thread can be executed, processing the data received by the thread to be executed in advance by the internal interrupt thread; if the internal interrupt thread cannot be executed, starting a preset timing interrupt thread to process the data received by the thread to be executed in advance; the timing interrupt thread is executed after a preset time interval is started.
In this embodiment, the first processing unit 12 is specifically configured to determine whether a prefix of the data is received according to the data receiving log information; when the prefix of the data is received, a receiving thread for receiving the prior historical data in the data receiving log information is obtained; acquiring the cyclic execution sequence of all receiving threads; and confirming the receiving thread which is to receive the data according to the receiving thread which receives the historical data and the cyclic execution sequence of all the receiving threads.
Referring to FIG. 6, an embodiment of the present invention provides a data processing system, including a processor 1110, a communication interface 1120, a memory 1130, and a communication bus 1140, where the processor 1110, the communication interface 1120, and the memory 1130 perform communication with each other through the communication bus 1140;
a memory 1130 for storing a computer program;
processor 1110, when executing programs stored on memory 1130, implements the following methods:
Acquiring data receiving log information;
Confirming a receiving thread for receiving data according to the data receiving log information, and taking the receiving thread as a thread to be executed; wherein, the receiving thread is provided with at least two;
when the thread to be executed is about to receive data, judging whether the data received by the thread to be executed in advance is processed;
If the processing of the previously received data is not completed, executing a preset interrupt thread to process the previously received data of the thread to be executed until the processing of the previously received data is completed, and then receiving the data through the thread to be executed.
According to the electronic device provided by the embodiment of the invention, the processor 1110 is used for obtaining the data receiving log information by executing the program stored in the memory 1130, determining the receiving thread for receiving the data according to the data receiving log information, executing the preset interrupt thread to process the previously received data when the previously received data of the receiving thread for receiving the data is not processed, and receiving the data through the thread to be executed after the processing of the previously received data is completed, so that the condition that the data is lost due to the fact that the later data is covered by the earlier data is avoided, the stable and reliable operation of the system is ensured, and the data sent by the data sending end is processed by reasonably utilizing the internal resources of the chip.
The communication bus 1140 mentioned above may be a peripheral component interconnect standard (PeripheralComponentInterconnect, PCI) bus or an extended industry standard architecture (ExtendedIndustryStandardArchitecture, EISA) bus, etc. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices described above.
The memory 1130 may include Random Access Memory (RAM) or non-volatile memory (non-volatilememory), such as at least one disk memory. Optionally, the memory 1130 may also be at least one storage device located remotely from the processor 1110.
The processor 1110 may be a general-purpose processor, including a Central Processing Unit (CPU), a network processor (NetworkProcessor NP), and the like; but also digital signal processors (DigitalSignalProcessing, DSP for short), application specific integrated circuits (ApplicationSpecificIntegratedCircuit, ASIC for short), field-programmable gate arrays (Field-ProgrammableGateArray, FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the invention provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the data processing method of any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disk, hard disk, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk SolidStateDisk (SSD)), among others.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method of data processing, the method comprising:
Acquiring data receiving log information;
Confirming a receiving thread for receiving data according to the data receiving log information, and taking the receiving thread as a thread to be executed; the receiving threads are at least two, the two receiving threads are used alternately, the first packet data which is normally sent is received and processed by the first receiving thread, and the second packet data is received and processed by the second receiving thread, and the first packet data and the second packet data are processed according to alternate logic;
judging whether the data received by the thread to be executed before is processed;
If the previously received data is not processed, executing a preset interrupt thread to process the previously received data of the thread to be executed until the previously received data is processed, and then receiving the data through the thread to be executed;
Judging whether an internal interrupt thread exists or not;
If an internal interrupt thread exists, setting the internal interrupt thread as the interrupt thread;
And if the internal interrupt thread does not exist, setting a timing interrupt thread as the interrupt thread, wherein the timing interrupt thread is executed after a preset time interval is started.
2. The method according to claim 1, wherein the executing the interrupt thread previously set to process the data previously received by the thread to be executed includes:
Acquiring thread running information;
judging whether a preset internal interrupt thread can be executed or not according to the thread running information;
If the internal interrupt thread can be executed, processing the data received by the thread to be executed in advance through the internal interrupt thread;
If the internal interrupt thread cannot be executed, starting a preset timing interrupt thread to process the data received by the thread to be executed in advance; the timing interrupt thread is executed after a preset time interval is started.
3. The data processing method according to any one of claims 1 to 2, wherein the identifying a receiving thread that is to receive data based on the data reception log information includes:
Judging whether a prefix of the data is received or not according to the data receiving log information;
when the prefix of the data is received, a receiving thread for receiving the prior historical data in the data receiving log information is obtained;
acquiring the cyclic execution sequence of all the receiving threads;
And confirming the receiving thread which is to receive the data according to the receiving thread which receives the historical data and the cyclic execution sequence of all the receiving threads.
4. A data processing apparatus, the processing apparatus comprising:
An acquisition unit configured to acquire data reception log information;
The first processing unit is used for confirming a receiving thread for receiving data according to the data receiving log information and taking the receiving thread as a thread to be executed; the receiving threads are at least two, the two receiving threads are used alternately, the first packet data which is normally sent is received and processed by the first receiving thread, and the second packet data is received and processed by the second receiving thread, and the first packet data and the second packet data are processed according to alternate logic;
The second processing unit is used for judging whether the data received by the thread to be executed before is processed; if the previously received data is not processed, executing a preset interrupt thread to process the previously received data of the thread to be executed until the previously received data is processed, and then receiving the data through the thread to be executed;
The third processing unit is used for judging whether an internal interrupt thread exists or not; if an internal interrupt thread exists, setting the internal interrupt thread as the interrupt thread; and if the internal interrupt thread does not exist, setting a timing interrupt thread as the interrupt thread, wherein the timing interrupt thread is executed after a preset time interval is started.
5. The data processing apparatus according to claim 4, wherein the second processing unit is specifically configured to obtain thread running information; judging whether a preset internal interrupt thread can be executed or not according to the thread running information; if the internal interrupt thread can be executed, processing the data received by the thread to be executed in advance through the internal interrupt thread; if the internal interrupt thread cannot be executed, starting a preset timing interrupt thread to process the data received by the thread to be executed in advance; the timing interrupt thread is executed after a preset time interval is started.
6. The data processing device according to any one of claims 4 to 5, wherein the first processing unit is specifically configured to determine whether a prefix of data is received according to the data reception log information; when the prefix of the data is received, a receiving thread for receiving the prior historical data in the data receiving log information is obtained; acquiring the cyclic execution sequence of all the receiving threads; and confirming the receiving thread which is to receive the data according to the receiving thread which receives the historical data and the cyclic execution sequence of all the receiving threads.
7. A data processing system comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the data processing method of any one of claims 1 to 3 when executing a program stored on a memory.
8. A computer readable storage medium storing one or more programs executable by one or more processors to implement the data processing method of any of claims 1-3.
CN202010924015.2A 2020-09-04 2020-09-04 Data processing method, device, system and storage medium Active CN112148444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010924015.2A CN112148444B (en) 2020-09-04 2020-09-04 Data processing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010924015.2A CN112148444B (en) 2020-09-04 2020-09-04 Data processing method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN112148444A CN112148444A (en) 2020-12-29
CN112148444B true CN112148444B (en) 2024-06-07

Family

ID=73890652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010924015.2A Active CN112148444B (en) 2020-09-04 2020-09-04 Data processing method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN112148444B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127685A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 An inter-process communication device and inter-process communication method
CN104021100A (en) * 2014-05-23 2014-09-03 无锡市崇安区科技创业服务中心 Method for processing data received by serial port of single-chip microcomputer
CN104731747A (en) * 2013-12-20 2015-06-24 中国航空工业集团公司第六三一研究所 Method for hierarchically buffering high-speed bus data during receiving
CN105630424A (en) * 2015-12-31 2016-06-01 航天恒星科技有限公司 Data processing method, device and system
CN108733466A (en) * 2017-04-19 2018-11-02 北京京东尚科信息技术有限公司 Restart the method, apparatus and equipment of the application system example in distributed system
CN108920184A (en) * 2018-06-05 2018-11-30 山东大学 Microprocessor high performance data communication method based on Crossed Circle buffer area
CN109240947A (en) * 2018-08-13 2019-01-18 武汉普利商用机器有限公司 Intelligent card data method of reseptance and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127685A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 An inter-process communication device and inter-process communication method
CN104731747A (en) * 2013-12-20 2015-06-24 中国航空工业集团公司第六三一研究所 Method for hierarchically buffering high-speed bus data during receiving
CN104021100A (en) * 2014-05-23 2014-09-03 无锡市崇安区科技创业服务中心 Method for processing data received by serial port of single-chip microcomputer
CN105630424A (en) * 2015-12-31 2016-06-01 航天恒星科技有限公司 Data processing method, device and system
CN108733466A (en) * 2017-04-19 2018-11-02 北京京东尚科信息技术有限公司 Restart the method, apparatus and equipment of the application system example in distributed system
CN108920184A (en) * 2018-06-05 2018-11-30 山东大学 Microprocessor high performance data communication method based on Crossed Circle buffer area
CN109240947A (en) * 2018-08-13 2019-01-18 武汉普利商用机器有限公司 Intelligent card data method of reseptance and device

Also Published As

Publication number Publication date
CN112148444A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN113938535B (en) Internet of things equipment access method and device based on multi-protocol adaptation
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN115004673A (en) Message pushing method and device, electronic equipment and computer readable medium
CN111884879A (en) Network detection method, device and related equipment
CN107562426B (en) Method and system for collecting and analyzing Trace of browser in non-embedded cloud
CN104967644A (en) Message push method, apparatus and system
US9363157B2 (en) Remotely controlling devices and processing asynchronous events for testing
CN112583898A (en) Business process arranging method and device and readable medium
CN115023919B (en) Firewall rule updating method and device, server and storage medium
CN108600377B (en) Method, device, terminal and storage medium for suspending file downloading
CN108366098B (en) Data interaction method and device for network nodes
CN112422485B (en) Communication method and device of transmission control protocol
CN108595195B (en) Application program updating method, device, terminal and storage medium
JP6701377B2 (en) SIP information analysis method, device, server and medium
CN112148444B (en) Data processing method, device, system and storage medium
CN112653736B (en) Parallel source returning method and device and electronic equipment
EP3264851A1 (en) Data transmission method and device for data service
CN111494938A (en) Speed measuring method and device, storage medium and electronic device
CN114338477B (en) Communication link monitoring method, device, equipment and storage medium
CN115695592A (en) AT command processing method, device and equipment
CN110830305B (en) Method and device for wireless device to access WIFI network, electronic device and storage medium
CN108805741B (en) Fusion method, device and system of power quality data
CN115525415B (en) Data processing method, device, equipment and medium
CN109347933B (en) Method and device for establishing connection
CN116094908B (en) Log file storage method, device, equipment and 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