A method for improving system real-time performance and embedded data real-time acquisition system
By introducing real-time hard core and buffer modules into the embedded data acquisition system, dynamically adjusting the data acquisition and processing process, the data loss problem caused by insufficient acquisition efficiency in the existing technology is solved, and the real-timeness and data acquisition rate of the system are significantly improved. .
Patent Information
- Application Number
- CN202011591580.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-12-29
AI Technical Summary
The existing embedded data acquisition system does not consider real-time in its design, resulting in insufficient acquisition efficiency, which can easily lead to data loss.
Use independent real-time hard core and buffer module to connect to the main module. Real-time hard core is responsible for data acquisition and temporary storage to the buffer module. Dynamically adjust the real-time hard core activation and data acquisition functions of the main module according to the data volume and transmission rate to reduce the main body. The burden of the module improves the overall computing speed and data acquisition speed.
It effectively improves the real-time nature of the system and data acquisition rate, avoids data loss, and improves the computing efficiency and overall computing speed of the main module.
Smart Images

Figure CN112685198B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data storage, and in particular to a method for improving system real-time performance and an embedded data real-time acquisition system. Background Art
[0002] As the amount of external data continues to increase, the requirements for the speed and real-time performance of data collection are also getting higher and higher. Traditional embedded system designs are generally equipped with the Linux operating system, which has the advantages of cross-platform hardware support, rich software support, multi-user tasks, reliable security and good stability, and all system source codes are open, which is very easy to tailor. Although the Linux operating system is powerful and easy to develop, the design of the Linux process scheduling algorithm mainly considers fairness rather than real-time performance.
[0003] At present, there are two main methods for improving the real-time performance of storage systems. One is to directly modify the Linux kernel source code, and the other is the dual-kernel method. However, both methods are time-consuming to implement, and the results are difficult to meet performance requirements. Therefore, the data acquisition system in the existing technology has the problem of insufficient acquisition efficiency leading to data loss. Summary of the invention
[0004] The main purpose of the present invention is to provide a method for improving the real-time performance of the system, aiming to solve the problem of data loss caused by insufficient collection efficiency of the data collection system.
[0005] To achieve the above-mentioned purpose, the method for improving the real-time performance of the system provided by the present invention is applied to an embedded real-time data acquisition system, wherein the embedded real-time data acquisition system comprises a main body module, a buffer module and a real-time hard core which are independent of the main body module, wherein the real-time hard core, the buffer module and the main body module are sequentially signal-connected; the method for improving the real-time performance of the system comprises the following steps:
[0006] Collect data through the real-time hard core and store it in a buffer module;
[0007] Sending the data stored in the buffer module to the main module for processing;
[0008] The data processed by the main module is sent to the storage medium.
[0009] Preferably, the step of sending the data stored in the buffer module to the main module for processing includes:
[0010] receiving the data sent by the buffer module;
[0011] Get the preset arrangement mode;
[0012] According to the preset arrangement mode, the disorderly arranged data are arranged to form a storage file.
[0013] Preferably, the method for improving the real-time performance of the system further includes:
[0014] Determining whether the buffer module is full;
[0015] If yes, the step of sending the data stored in the buffer module to the main module for processing is performed;
[0016] If not, the step of collecting data through the real-time hard core and storing the data in the buffer module is performed.
[0017] Preferably, the number of the real-time hard cores is multiple; the method for improving the real-time performance of the system further comprises the following steps:
[0018] Set rate thresholds;
[0019] Collect data and detect external data transmission rate through the main module;
[0020] Comparing the rate threshold with the external data transmission rate, and enabling all or part of the real-time hard core according to the comparison result;
[0021] The data acquisition function of the main module is turned off or partially turned off according to the comparison result.
[0022] Preferably, the step of setting the rate threshold comprises:
[0023] Get the total computing power value of the main module;
[0024] Obtain the estimated computing power demand of each business submodule in the main module and determine the insurance coefficient;
[0025] The difference between the total computing power value of the main module and the estimated computing power demand of each business sub-module is calculated, and multiplied by the insurance coefficient to obtain the rate threshold.
[0026] Preferably, the step of comparing the rate threshold with the external data transmission rate and enabling all or part of the real-time hard core according to the comparison result includes:
[0027] Get the average data transmission rate S of the preset time periods starting at T1, T2 and T3 respectively T1 , S T2 and S T3 ;
[0028] Compare S T1 , S T2 and S T3 and the magnitude of the rate threshold;
[0029] When S T1 , S T2 and S T3 When two or three of the above items are greater than the rate threshold, the first batch of the real-time hard cores are enabled;
[0030] Get T n is the average data transmission rate S of the three preset time periods at the start time Tn1 , S Tn2 and S Tn3 ;
[0031] Compare S Tn1 , S Tn2 and S Tn3 and the magnitude of the rate threshold;
[0032] When S Tn1 , S Tn2 and S Tn3 When two or three of the above items are greater than the rate threshold, the next batch of the real-time hard cores are enabled;
[0033] Wherein, T1, T2 and T3 are time points which pass in chronological order before the real-time hard core is enabled; T n These are the time points that progress in chronological order after the first batch of real-time hard cores are enabled.
[0034] Preferably, the step of sending the data stored in the buffer module to the main module for processing includes:
[0035] When the amount of data in the buffer module reaches a capacity value in a capacity threshold, the data is packaged by the buffer module;
[0036] The data processing rate is obtained by converting the computing power idle value of the main module through the main module;
[0037] Determining an internal data transmission rate according to the data processing rate by the main module;
[0038] The buffer module is controlled to transmit data to the main module at the internal data transmission rate and the data in the buffer module that has been transmitted to the main module is deleted.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides an embedded data real-time acquisition system, which applies the steps of any one of the above methods; the embedded data real-time acquisition system includes a main body module and a buffer module and a real-time hard core that are independent of the main body module, and the real-time hard core, the buffer module and the main body module are signal-connected in sequence.
[0040] Preferably, the main body module includes a recording unit and a file system unit;
[0041] The recording unit is used to receive the data sent by the buffer module;
[0042] The file system unit is used to obtain a preset arrangement mode, and perform arrangement processing on the disordered data according to the preset arrangement mode, so as to arrange the data into a storage file.
[0043] Preferably, the main body module further includes a playback unit;
[0044] The playback unit is used to extract the storage file from the storage medium, and send the extracted storage file to the file system unit for data processing, and send the processed data to the buffer module and the real-time hard core in sequence for data outbound transmission.
[0045] In the technical solution of the present invention, by setting one or more real-time hard cores independent of the main module, the real-time hard core is connected to the transmission channel for external data transmission, and the real-time hard core can partially or completely replace the function of collecting data of the main module, reduce the pressure of the main module for data collection, and help the main module to invest more computing power in other business sub-modules, thereby improving the operation efficiency of the main module. At the same time, a buffer module for temporarily storing data is also provided between the real-time hard core and the main module. The real-time hard core temporarily stores the collected data in the buffer module. The buffer module detects the amount of data in real time. When the amount of data reaches a preset condition, the buffer module will package the data and send it to the main module for processing. After receiving the data, the main module processes it into a file form and sends it to the storage medium for long-term storage. Since the real-time hard core shares the data collection work of the main module, the real-time hard core can invest more computing power in other businesses, thereby effectively improving the overall computing speed of the system. On the other hand, since the computing power required for data collection is shared by the real-time hard core, the data collection rate will be significantly improved, thereby avoiding packet loss caused by the main module's inability to collect data in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flow chart of a method for improving the real-time performance of a system according to the present invention;
[0047] Figure 2 It is a schematic diagram of the module structure of the embedded real-time data acquisition system of the present invention.
[0048] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0050] See also Figure 1 A method for improving system real-time performance is applied to an embedded real-time data acquisition system, wherein the embedded real-time data acquisition system comprises a main body module, a buffer module and a real-time hard core which are independent of the main body module, wherein the real-time hard core, the buffer module and the main body module are sequentially connected by signals; the method for improving system real-time performance comprises the following steps:
[0051] Step S10, collecting data through the real-time hard core and storing it in a buffer module;
[0052] Step S20, sending the data stored in the buffer module to the main module for processing;
[0053] Step S30, sending the data processed by the main module to a storage medium.
[0054] In the technical solution of the present invention, one or more real-time hard cores independent of the main module are set to partially or completely separate the data acquisition function from the main module. The real-time hard core is connected to the transmission channel for external data transmission. The real-time hard core can partially or completely replace the function of collecting data of the main module, reduce the pressure of the main module for data acquisition, and help the main module to invest more computing power in other business sub-modules, thereby improving the operation efficiency of the main module. At the same time, a buffer module for temporarily storing data is also provided between the real-time hard core and the main module. The real-time hard core temporarily stores the collected data in the buffer module. The buffer module detects the amount of data in real time. When the amount of data reaches a preset condition, the buffer module will package the data and send it to the main module for processing. After receiving the data, the main module processes it into a file form and sends it to the storage medium for long-term storage. Since the real-time hard core shares the data acquisition work of the main module, the real-time hard core can invest more computing power in other businesses, thereby effectively improving the overall computing speed of the system. On the other hand, since the computing power required for data collection is shared by the real-time hard core, the data collection rate will be significantly improved, thereby avoiding packet loss caused by the main module's inability to collect data in a timely manner.
[0055] Preferably, the data collected by the real-time hard core is embedded high-speed data.
[0056] Furthermore, each of the real-time hard cores is connected to at least one of the external data channels by signal, and all of the external data channels are connected to the main module by signal.
[0057] External data can be transmitted to the real-time hard core through the transmission channel and enter the main module through the buffer module; when the real-time hard core or the buffer module fails, the external data can also directly enter the main module through the transmission channel.
[0058] Specifically, the buffer module includes a monitoring alarm unit for detecting the remaining capacity of the buffer module that can be used to store data; the monitoring alarm unit is signal-connected to the main module.
[0059] When the remaining capacity of the buffer module that can be used to store data is lower than the warning value, the monitoring alarm unit sends an alarm signal to the main module; the main module temporarily opens some data acquisition functions according to the alarm signal, so that some data bypasses the real-time hard core and the buffer module and directly enters the main module through the transmission channel, so as to reduce the storage pressure of the buffer module.
[0060] Specifically, the warning value is 3%-5% of the total capacity of the buffer module.
[0061] Based on the first embodiment of a method for improving system real-time performance of the present invention, in a second embodiment of a method for improving system real-time performance of the present invention, the step of sending the data stored in the buffer module to the main module for processing includes:
[0062] Step S21, receiving the data sent by the buffer module;
[0063] Step S22, obtaining a preset arrangement mode;
[0064] Step S23, arranging the disordered data according to the preset arrangement mode, so as to arrange the data into a storage file.
[0065] Based on the first embodiment of the method for improving system real-time performance of the present invention, in a third embodiment of the method for improving system real-time performance of the present invention, the method for improving system real-time performance further includes:
[0066] Step S40, determining whether the buffer module is full;
[0067] Step S50: If yes, execute step S20;
[0068] Step S60: If not, execute step S10.
[0069] Furthermore, the method for improving the real-time performance of the system further includes:
[0070] Step S70, detecting whether a preset end condition is reached;
[0071] Step S80: If yes, execute step S20 to end the current data collection process.
[0072] Specifically, the step of detecting whether a preset end condition is reached includes:
[0073] Step S71, detecting whether a user input end acquisition instruction is received;
[0074] or
[0075] Step S72, detecting whether the current amount of collected data reaches a preset length.
[0076] Based on the first embodiment of the method for improving system real-time performance of the present invention, in a fourth embodiment of the method for improving system real-time performance of the present invention, the number of the real-time hard cores is multiple; the method for improving system real-time performance further includes the following steps:
[0077] Step S90, setting a rate threshold;
[0078] Step S100, collecting data and detecting external data transmission rate through the main module;
[0079] Step S110, comparing the rate threshold with the external data transmission rate, and enabling all or part of the real-time hard core according to the comparison result;
[0080] Step S120: shut down or partially shut down the data collection function of the main module according to the comparison result.
[0081] The rate threshold is used to control the transmission path of external data. When the data transmission rate does not exceed the computing power range of the main module and does not need to occupy the computing power of other business sub-modules, the data is directly collected by the main module, omitting the intermediate steps of data collection by the real-time hard core, temporary storage by the buffer module, and then transmission to the main module, thereby improving the efficiency of data collection and reducing the power of system operation. When the data transmission rate is too high, it will affect the computing power of other business sub-modules and may even cause packet loss due to the inability of the main module to collect data in time. The main module will start the corresponding real-time hard core according to the data transmission channel to collect data, releasing all or part of the computing power of the main module to complete other businesses. For some data that need to be processed immediately, the main module can retain some data collection functions to improve data processing efficiency.
[0082] Preferably, both the main module and the real-time hard core are provided with temperature sensors, and the main module can turn on or off the data acquisition function according to the temperature information obtained by the temperature sensor. The temperature information can reflect the health status of the main module and the real-time hard core to a certain extent. When the temperature of the main module is too high, it indicates that the main module is overloaded. At this time, the main module will turn off the data acquisition function to reduce the workload, and the real-time hard core will take over the data acquisition work; when the temperature of the real-time hard core is too high, it indicates that the real-time hard core is overloaded. At this time, the main module will turn on the data acquisition function to reduce the workload of the real-time hard core, and the main module will take over the data acquisition work. The main module continuously obtains the temperature information measured by the temperature sensor and compares it with the normal temperature value. When the temperature of the main module or the real-time hard core returns to normal, the allocation of data acquisition tasks will return to normal.
[0083] Based on the fourth embodiment of a method for improving system real-time performance of the present invention, in a fifth embodiment of a method for improving system real-time performance of the present invention, the step of setting a rate threshold comprises:
[0084] Step S91, obtaining the total computing power value of the main module;
[0085] Step S92, obtaining the estimated computing power demand of each business submodule in the main module, and determining the insurance coefficient;
[0086] Step S93, calculate the difference between the total computing power value of the main module and the estimated computing power demand of each business sub-module, and multiply it by the insurance coefficient to obtain the rate threshold.
[0087] Specifically, the insurance coefficient value is 0.85-0.95.
[0088] Since the rate of external data during transmission does not remain absolutely stable, in order to avoid data transmission abnormalities caused by the data transmission peak exceeding the computing power of the main module, an insurance factor is added when setting the rate threshold.
[0089] Furthermore, the step of determining the insurance coefficient includes:
[0090] Step S92a, obtaining the insurance coefficient value W of the previous data collection, and reading the previous data collection record;
[0091] Step S92b, if the previous data collection record is normal, and the insurance coefficient value W of the previous data collection is less than 0.95, the insurance coefficient value of this data collection is W+0.01;
[0092] Step S92c, if the previous data collection record is normal, and the insurance coefficient value W of the previous data collection is equal to 0.95, then the insurance coefficient value of this data collection is 0.95;
[0093] Step S92d, if the previous data collection record is abnormal, and the insurance coefficient value W of the previous data collection is greater than 0.85, the insurance coefficient value of this data collection is W-0.01;
[0094] Step S92e, if the previous data collection record is abnormal, and the insurance coefficient value W of the previous data collection is equal to 0.85, then the insurance coefficient value of this data collection is 0.85.
[0095] In the process of determining the insurance coefficient, reference will be made to the previous data collection process. If the previous data collection process is normal, it means that the insurance coefficient of the previous data collection meets the safety requirements. In order to improve the data collection efficiency, the insurance coefficient of the previous data collection will be appropriately increased during this data collection. If an abnormality occurs during the previous data collection process, it means that the insurance coefficient of the previous data collection does not meet the safety requirements. In order to reduce the abnormality rate and ensure a relatively high data collection rate, the insurance coefficient of the previous data collection will be appropriately reduced during this data collection.
[0096] Based on the fourth embodiment of a method for improving system real-time performance of the present invention, in a sixth embodiment of a method for improving system real-time performance of the present invention, the step of comparing the rate threshold with the external data transmission rate and enabling all or part of the real-time hard core according to the comparison result includes:
[0097] Step S111, respectively obtain the average data transmission rate S of the preset time periods starting at T1, T2 and T3 T1 , S T2 and S T3 ;
[0098] Step S112, compare S T1 , S T2 and S T3 and the magnitude of the rate threshold;
[0099] Step S113, when S T1 , S T2 and S T3 When two or three of the above items are greater than the rate threshold, the first batch of the real-time hard cores are enabled;
[0100] Step S114, obtaining n is the average data transmission rate S of the three preset time periods at the start time Tn1 , STn2 and S Tn3 ;
[0101] Step S115, compare S Tn1 , S Tn2 and S Tn3 and the magnitude of the rate threshold;
[0102] Step S116, when S Tn1 , S Tn2 and S Tn3 When two or three of the above items are greater than the rate threshold, the next batch of the real-time hard cores are enabled.
[0103] Wherein, T1, T2 and T3 are time points that pass in chronological order before the real-time hard core is enabled, and the difference between adjacent starting moments is not less than the duration of the preset period; T n The time points are the time points that progress in chronological order after the first batch of the real-time hard cores are enabled, and the difference between adjacent starting moments is not less than the length of the preset time period.
[0104] Since the data transmission rate and the rate threshold are not stable, by repeatedly comparing the data transmission rate and the rate threshold at different times, it is possible to know whether the current transmission rate matches the computing power of the main module. When data transmission abnormalities may occur due to exceeding the computing power, the real-time hard core is enabled in batches. This progressive way of enabling the real-time hard core can make better use of the computing power of the real-time hard core and the computing power of the main module compared to enabling all the real-time hard cores at once.
[0105] Based on the first to sixth embodiments of a method for improving system real-time performance of the present invention, in a seventh embodiment of a method for improving system real-time performance of the present invention, the step of sending the data stored in the buffer module to the main module for processing includes:
[0106] Step S24, when the amount of data in the buffer module reaches the capacity value in the capacity threshold, the data is packaged by the buffer module;
[0107] Step S25, obtaining a data processing rate by converting the computing power idle value of the main module through the main module;
[0108] Step S26, determining the internal data transmission rate according to the data processing rate by the main module;
[0109] Step S27, controlling the buffer module to transmit data to the main module at the internal data transmission rate and deleting the data in the buffer module that has been transmitted to the main module.
[0110] When transferring data from the buffer module to the main module, in order to avoid packet loss or occupying the computing power of other business sub-modules due to the main module being unable to process data in time due to too fast a transmission rate, the transmission rate must be determined based on the idle computing power value of the main module, so that the amount of data transferred from the buffer module to the main module just matches the idle computing power level of the main module, and neither a waste of computing power due to too slow a transmission rate nor congestion due to too fast a transmission rate will be caused.
[0111] Specifically, the capacity value does not exceed 85% of the total capacity of the buffer module. Since the buffer module is continuously receiving external data transmitted from the transmission channel while transmitting data to the main module. If the transmission rate of external incoming data is higher than the rate at which the buffer module transmits data to the main module, the amount of data in the buffer module will further increase. If the capacity value is too high, it means that the space available to accommodate external data during the process of transmitting data from the buffer module to the main module is too small, and data loss may occur due to the inability to complete storage in the buffer module due to lack of storage space. Therefore, the capacity value does not exceed 85% of the total capacity of the buffer module, ensuring that at least 15% of the space can be used to store external input data during the process of transmitting data from the buffer module to the main module.
[0112] The computing power vacancy value refers to the remaining computing power of the main module after processing the current tasks of all business sub-modules, that is, the computing power that has not been fully called. It is a value that changes according to the real-time state of the main module, and represents the maximum computing power that the main module can use for data processing without affecting other businesses. When the computing power vacancy value reaches the preset standard, it means that the amount of other business being processed by the main module at this time is small, and there is sufficient capacity to process data. At this time, the data in the buffer module is packaged and sent to the main module, which can effectively and fully utilize the idle computing power of the main module, which can not only avoid the waste of computing power, but also reduce the impact on other businesses during data processing.
[0113] To achieve the above objectives, the present invention also provides an embedded data real-time acquisition system, applying the steps of any of the above methods; the embedded data real-time acquisition system includes a main module and a buffer module and a real-time hard core that are independent of the main module, and the real-time hard core, the buffer module and the main module are signal-connected in sequence.
[0114] Further, the main body module includes a recording unit and a file system unit;
[0115] The recording unit is used to receive the data sent by the buffer module;
[0116] The file system unit is used to obtain a preset arrangement mode, and perform arrangement processing on the disordered data according to the preset arrangement mode, so as to arrange the data into a storage file.
[0117] Specifically, the main body module also includes a playback unit;
[0118] The playback unit is used to extract the storage file from the storage medium, and send the extracted storage file to the file system unit for data processing, and send the processed data to the buffer module and the real-time hard core in sequence for data outbound transmission.
[0119] Preferably, the buffer module is a shared memory that can be accessed by the real-time hard core and the main module at the same time, and multi-core communication is performed between the real-time hard core and the buffer module, and between the buffer module and the main module.
[0120] Specifically, a detection module is provided between the real-time hard core and the buffer module, and between the buffer module and the main body module.
[0121] The detection module is used to respectively obtain the data transmission rate from the real-time hard core to the buffer module and the data transmission rate from the buffer module to the main module, and determine whether data transmission abnormality occurs by analyzing the data transmission rates.
[0122] Furthermore, the main body module includes an alarm unit connected to the detection module by signal, and the alarm unit can send out an alarm signal according to the determination result of the detection module.
[0123] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for improving the real-time performance of a system, characterized in that: The method for improving the real-time performance of the system is applied to an embedded real-time data acquisition system, which includes a main body module, a buffer module and a real-time hard core which are independent of the main body module, wherein the real-time hard core, the buffer module and the main body module are sequentially connected by signals; the number of the real-time hard cores is multiple; the method for improving the real-time performance of the system includes the following steps: The real-time hard core collects data and stores it in the buffer module, wherein the real-time hard core is connected to a transmission channel for external data transmission. The real-time hard core can partially or completely replace the function of collecting data of the main module, thereby reducing the pressure of the main module for data collection, and is conducive to the main module to invest more computing power in other business sub-modules, thereby improving the operation efficiency of the main module; Sending the data stored in the buffer module to the main module for processing, so that the main module processes the received data into a file format; Sending the data processed by the main module to a storage medium; The method for improving the real-time performance of the system also includes the following steps: Set rate thresholds; Collect data and detect external data transmission rate through the main module; Comparing the rate threshold with the external data transmission rate, and enabling all or part of the real-time hard core according to the comparison result; The data acquisition function of the main module is turned off or partially turned off according to the comparison result.
2. The method for improving system real-time performance according to claim 1, characterized in that: The step of sending the data stored in the buffer module to the main module for processing includes: receiving the data sent by the buffer module; Get the preset arrangement mode; According to the preset arrangement mode, the disorderly arranged data are arranged to form a storage file.
3. The method for improving the real-time performance of a system according to claim 1, characterized in that: The method for improving the real-time performance of the system further includes: Determining whether the buffer module is full; If yes, the step of sending the data stored in the buffer module to the main module for processing is performed; If not, the step of collecting data through the real-time hard core and storing the data in the buffer module is performed.
4. The method for improving the real-time performance of a system according to claim 1, characterized in that: The step of setting the rate threshold comprises: Get the total computing power value of the main module; Obtain the estimated computing power demand of each business submodule in the main module and determine the insurance coefficient; The difference between the total computing power value of the main module and the estimated computing power demand of each business sub-module is calculated, and multiplied by the insurance coefficient to obtain the rate threshold.
5. The method for improving system real-time performance according to claim 1, characterized in that: The step of comparing the rate threshold with the external data transmission rate and enabling all or part of the real-time hard core according to the comparison result includes: Get the average data transmission rate S of the preset time periods starting at T1, T2 and T3 respectively T1 , S T2 and S T3 ; Compare S T1 , S T2 and S T3 and the magnitude of the rate threshold; When S T1 , S T2 and S T3 When two or three of the above items are greater than the rate threshold, the first batch of the real-time hard cores are enabled; Get T n is the average data transmission rate S of the three preset time periods at the start time Tn1 , S Tn2 and S Tn3 ; Compare S Tn1 , S Tn2 and S Tn3 and the magnitude of the rate threshold; When S Tn1 , S Tn2 and S Tn3 When two or three of the above items are greater than the rate threshold, the next batch of the real-time hard cores are enabled; Wherein, T1, T2 and T3 are time points which pass in chronological order before the real-time hard core is enabled; T n These are the time points that progress in chronological order after the first batch of real-time hard cores are enabled.
6. The method for improving the real-time performance of a system according to any one of claims 1 to 5, characterized in that: The step of sending the data stored in the buffer module to the main module for processing includes: When the amount of data in the buffer module reaches a capacity threshold, the data is packaged through the buffer module; The data processing rate is obtained by converting the computing power idle value of the main module through the main module; Determining an internal data transmission rate according to the data processing rate by the main module; The buffer module is controlled to transmit data to the main module at the internal data transmission rate and the data in the buffer module that has been transmitted to the main module is deleted.
7. An embedded real-time data acquisition system, characterized in that: Apply the steps of the method described in any one of claims 1-6; the embedded data real-time acquisition system includes a main module and a buffer module and a real-time hard core that are independent of the main module, and the real-time hard core, the buffer module and the main module are signal-connected in sequence.
8. The embedded real-time data acquisition system according to claim 7, characterized in that: The main module includes a recording unit and a file system unit; The recording unit is used to receive the data sent by the buffer module; The file system unit is used to obtain a preset arrangement mode, and perform arrangement processing on the disordered data according to the preset arrangement mode, so as to arrange the data into a storage file.
9. The embedded real-time data acquisition system according to claim 7 or 8, characterized in that: The main body module also includes a playback unit; The playback unit is used to extract the storage file from the storage medium, and send the extracted storage file to the file system unit for data processing, and send the processed data to the buffer module and the real-time hard core in sequence for data outbound transmission.
