Dual-technology independent inductor and control device
By receiving and synchronizing data from different types of sensors in the sensor processing system, performing unified format processing and type marking, and combining with a processing unit with a fixed bit width for companion calculation and abnormal correction, the problem of inefficient sensor data integration is solved. , improves the accuracy of data processing and system reliability.
Patent Information
- Application Number
- CN202411419841.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing sensor processing systems cannot efficiently process and integrate data from different types of sensors, resulting in increased data processing delays and errors, and lack effective data synchronization and processing mechanisms, which are prone to data loss or format errors.
Provide a dual-detection independent sensor and control device, which synchronizes and processes data by receiving the data to be sensed from two sensors, converts it into a data sequence in a unified format, and induces the data sequence of each sensor. The device type mark is integrated and processed in chronological order to output induction data that meets the requirements of each sensor. The induction processing unit with a fixed bit width is used to perform accompanying calculations, abnormality detection and abnormality correction calculations to ensure the consistency and stability of data processing.
Effectively integrate data from different sensors, improve the efficiency and accuracy of data integration, enhance the reliability of the sensing system, reduce errors in data processing, and ensure the accuracy and flexibility of induction data.
Smart Images

Figure CN118963677A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of sensor technology, and more specifically, to a dual-detection independent sensor and a control device. Background Art
[0002] Existing sensor technologies usually rely on a single type of sensor to collect data, which limits the diversity and accuracy of the data. A single sensor may not be able to fully capture the multi-dimensional information of the environment or objects, resulting in limitations in data processing. In addition, the data formats and processing requirements of different sensors vary, which complicates data integration and synchronization. In practical applications, in order to improve the accuracy and reliability of sensing, it is often necessary to combine data from multiple sensors, but existing technologies have problems with inefficiency and inaccurate processing in data integration and processing.
[0003] In the process of implementing the embodiments of the present invention, the inventors found that there are at least the following problems or defects in the prior art: the existing sensor processing system is often unable to efficiently process and integrate data from different types of sensors, resulting in increased delays and errors in data processing. At the same time, the lack of an effective data synchronization and processing mechanism makes it easy for data to be lost or formatted incorrectly during the data integration process. In addition, the existing processing unit usually does not have a fixed-bit width sensor processing capability, which limits the flexibility and accuracy of data processing. Summary of the invention
[0004] The invention provides a dual-detection independent sensor and a control device.
[0005] In a first aspect of the present invention, there is provided a dual-detection independent sensor, comprising: Receiving sensing data input from two sensors; Perform data synchronization and processing to convert the data to be sensed by the two sensors into a data sequence in a unified format; and mark the data sequence of each sensor with the sensor type; The data sequences of the two sensors are integrated into one data sequence in chronological order, and during the integration, only one valid data block is obtained from the two sensors in a single time period; Input the integrated data sequence into the sensing control module, perform sensing processing in chronological order, and output the sensed data; The processed data is distributed to the corresponding sensors according to the sensor type label, and the data format is converted to obtain the sensing data that meets the requirements of each sensor.
[0006] Further, the sum of the data bandwidths of the two sensors is less than or equal to the maximum bandwidth of the sensing control module; In data integration, the basic sensing data unit in each sensor is divided into a data block sequence consisting of an integer number of data blocks.
[0007] Furthermore, the sensing processing adopts a sensing processing unit with a fixed bit width; during processing, sensing processing calculations are performed on each data block of the sequence of data blocks to be processed that enter the sensing control module in chronological order; and the intermediate results of the sensing processing calculations of each data block are cached in a processing intermediate result cache area corresponding to the sensor type; The induction process includes: According to the sensor type i of the current data block to be sensed, the intermediate result of the sensor processing is taken out from the processing intermediate result buffer corresponding to the sensor type i; if the data block is the first data block of the basic sensing data unit of the sensor where it is located, 0 is used as the intermediate result; Performing induction processing in the induction processing unit according to the current data block and the retrieved intermediate result to obtain the intermediate result of the current induction processing; and caching the intermediate result in the processing intermediate result cache area corresponding to the sensor type i; The sensing processing calculation is performed on each data block in the data block sequence until the current data block is the last data block of the basic sensing data unit of the sensor, and the intermediate result of the current sensing processing obtained by the sensing processing is output as the sensing processing result of the basic sensing data unit.
[0008] Furthermore, when the sum of the length of the last valid data block of the basic sensing data unit of the sensor and the length of the verification data is not greater than the bit width of the sensing processing, the verification data and the last valid data block are spliced into a sensing processing bit width data block and output in the same time period; otherwise, the verification data is divided into two sections, the first section of verification data follows the last valid data block to form a data block with a length of the sensing processing bit width, and is output in the same time period; the second section of verification data is output in the next one or more time periods in turn until the verification data is output.
[0009] Furthermore, the sensing processing uses a sensing processing unit with a fixed bit width; during processing, the sensing processing is performed block by block on the sequence of data blocks to be processed that enter the sensing control module in chronological order; The induction process includes: 1. Perform companion calculations for induction processing; According to the sensor type marked by the data block to be processed, from the first data block to the last data block of the basic sensing data unit of the sensor, the companion calculation is cyclically performed, and the data blocks, sensor types and intermediate results of the companion calculation are cached; 2. Perform anomaly detection calculations; According to the syndrome result output by syndrome calculation and the sensor type i, anomaly detection calculation is performed on each basic sensing data unit of each sensor to output the respective "anomaly detection result" and sensor type; 3. Perform abnormal correction calculations; According to the "abnormal detection results" and sensor types of each sensor, the abnormal correction calculation is performed cyclically from the first data block to the last data block of the basic sensing data unit of the sensor, and the result of each calculation is output as a data block after abnormal correction together with the sensor type.
[0010] Furthermore, the companion calculation process of the induction processing process includes: According to the sensor type i of the current data block to be processed, first determine whether the current data block is the first data of the basic sensing data unit. If so, the intermediate result input by the companion calculation is 0; if not, it is necessary to call the intermediate result of the sensor from the intermediate result cache as the intermediate result input; According to the current data block to be processed and the intermediate result input, the calculation result is obtained; at the same time, the data block to be processed and the sensor type are stored in the storage sequence to be corrected for abnormality; If the current data block to be processed is the last data block of the basic sensing data unit, the calculation result is output as the final companion calculation unit result; if the current data block to be processed is not the last data block of the basic sensing data unit, the calculation result is stored as an intermediate result in the intermediate result cache of the current sensor type.
[0011] Furthermore, the abnormality correction calculation process of the induction processing process includes: According to the "abnormal detection result" output by the abnormal detection calculation and the sensor type, the first data block to be abnormally corrected of the sensor is found from the abnormal correction storage sequence, and the initial value of the intermediate result of the abnormal correction calculation unit is calculated according to the "abnormal detection result"; First, determine whether the current data block is the first data of the basic sensing data unit. If so, the intermediate result input of the abnormality correction calculation is used as the initial value of the intermediate result of the abnormality correction calculation unit; if not, it is necessary to retrieve the intermediate result of the sensor from the intermediate result cache as the intermediate result input; According to the current data block to be anomaly corrected and the intermediate result input, the anomaly correction calculation result is obtained, that is, the data block after anomaly correction, and the result is output together with the sensor type.
[0012] In a second aspect of the present invention, a dual-detection independent sensing control device is provided, comprising: A data receiving unit, used for receiving the data to be sensed inputted from the two sensors; A data synchronization and processing unit, used to convert the to-be-sensed data of the two sensors into a data sequence in a unified format; and to mark the data sequence of each sensor with the sensor type; The integration unit is used to integrate the data sequences of the two sensors into one data sequence in chronological order, so that there is only one valid data block in the two sensors within a single time period; The sensing processing unit is used to input the integrated data sequence into the sensing control module, perform sensing processing in time sequence, and output the sensed processed data; The data distribution output unit is used to distribute the sensed data to the corresponding sensors according to the sensor type tag, convert the data format, and obtain the sensed data that meets the requirements of each sensor.
[0013] Further, the induction processing unit includes an induction processing module; The induction processing module includes an induction processing unit and a processing result buffer area; The processing result buffer area includes an intermediate result buffer area corresponding to the sensor type; The sensing processing unit performs sensing processing on each data block that enters the sensing control module in chronological order; and according to the sensor type of the data block, caches the intermediate result of the sensing processing of each data block into the processing intermediate result cache area corresponding to the sensor type.
[0014] Further, the sensing processing unit includes a companion calculation module, an anomaly detection calculation module and an anomaly correction calculation module; the companion calculation module is used to perform companion calculation cyclically from the first data block to the last data block of the basic sensing data unit of the sensor according to the sensor type marked by the data block to be processed, and cache the data block of the companion calculation, the sensor type and the intermediate result of the companion calculation; The anomaly detection calculation module is used to perform anomaly detection calculation on each basic sensing data unit of each sensor according to the companion result output by the companion calculation and the sensor type i, and output the respective "anomaly detection result" and sensor type; The anomaly correction calculation module is used to perform anomaly correction calculations in a loop from the first data block to the last data block of the basic sensing data unit of the sensor according to the "anomaly detection results" and sensor types of each sensor, and output each calculation result as a data block after anomaly correction together with the sensor type.
[0015] According to the above-mentioned embodiments of the present invention, at least the following beneficial effects are achieved: the dual-detection independent sensor and the sensing control device can effectively integrate the data of two different sensors, convert data sequences of different formats into data sequences of unified format through the data synchronization and processing unit, and perform sensor type marking, thereby improving the efficiency and accuracy of data integration. In addition, by performing sensing processing on the integrated data sequence through the sensing processing unit, more accurate sensing data can be output, thereby enhancing the reliability of the sensing system. The use of a sensing processing unit with a fixed bit width for companion calculation, anomaly detection and anomaly correction calculation can ensure the consistency and stability of data processing. This processing method can reduce errors in data processing and improve the accuracy of sensing data. At the same time, by distributing the sensed data to the corresponding sensors and performing data format conversion, sensing data that meets the requirements of each sensor can be obtained, thereby improving the practicality and flexibility of the entire sensing system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which: Figure 1 A schematic diagram of a process flow of a dual-detection independent sensor provided by an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a dual-detection independent sensing control device provided by an embodiment of the present invention; Figure 3 The schematic diagram schematically shows the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.
[0018] Those skilled in the art know that the embodiments of the present invention can be implemented as a system, device, apparatus, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0019] It should be noted that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction and does not have any limiting meaning.
[0020] Reference below Figure 1 , Figure 1 This is a schematic diagram of the process of a dual-detection independent sensor provided by an embodiment of the present invention. Figure 1 As shown, a dual-detection independent sensor 100 includes: Step 101, receiving the sensing data input from two sensors; Step 102, perform data synchronization and processing, convert the to-be-sensed data of the two sensors into a data sequence in a unified format; and mark the data sequence of each sensor with the sensor type; Step 103, integrating the data sequences of the two sensors into one data sequence in chronological order, and in the integration, making sure that there is only one valid data block in the two sensors within a single time period; Step 104, input the integrated data sequence into the sensing control module, perform sensing processing according to the time sequence, and output the sensed processed data; Step 105 , distribute the sensed data to the corresponding sensors according to the sensor type tags, convert the data format, and obtain sensed data that meets the requirements of each sensor.
[0021] It should be noted that the dual-sensor independent sensor first performs the operation of receiving the data to be sensed input from the two sensors, which is the starting point of the entire system workflow. The received data may include but is not limited to physical quantities such as temperature, humidity, pressure, light intensity, etc. These data are the environmental information monitored by the sensor.
[0022] Specifically, the received data needs to be pre-processed, such as denoising and normalization, to ensure data availability. The data synchronization and processing unit will format the data to ensure that the data from the two sensors can be compared and integrated under the same standard. For example, if one sensor outputs an analog signal, it needs to be converted into a digital signal so that it can be synchronized with the digital signal of another sensor.
[0023] Preferably, the data synchronization and processing unit can use a FIFO queue to manage the data flow to ensure that the data is processed in chronological order. At the same time, in order to improve the flexibility of data processing, a parameter can be set to allow the operator to adjust the data synchronization and processing strategy according to actual conditions. For example, a threshold can be set to determine when to mark a data block as valid or invalid.
[0024] It should be noted that in the process of integrating the data sequences of the two sensors into one data sequence, it is necessary to ensure that only valid data blocks of one sensor are integrated in a single time period, in order to ensure data consistency and reduce processing conflicts.
[0025] Specifically, the integration unit can use a timestamp marking method to ensure the time order of the data blocks. Each data block will be stamped with a timestamp indicating the specific time when it was detected by the sensor. In this way, the integration unit can decide which data blocks should be processed first based on the timestamp.
[0026] More specifically, the integration unit may also use priority rules to handle special situations. For example, when two sensors have valid data in the same time period, it may be determined based on a preset priority which sensor's data should be integrated first.
[0027] It should be noted that in the sensing processing unit, the sensed data is distributed to the corresponding sensors according to the sensor type tag, and the data format is converted to obtain sensing data that meets the requirements of each sensor. This is a key step to ensure that the data can be correctly interpreted and used.
[0028] Specifically, the data distribution output unit will identify the target sensor to which the data should be sent based on the sensor type tag. For example, if one sensor requires ASCII-encoded data and another requires binary format data, the distribution unit needs to convert the data accordingly.
[0029] Preferably, the data distribution output unit can be modularly designed so as to be customized according to the specific requirements of different sensors. For example, different data format conversion modules can be designed for different types of sensors, so that when the system needs to add a new sensor type, only the corresponding module needs to be added.
[0030] In some embodiments, the sum of the data bandwidths of the two sensors is less than or equal to the maximum bandwidth of the sensor control module; In data integration, the basic sensing data unit in each sensor is divided into a data block sequence consisting of an integer number of data blocks.
[0031] It should be noted that in this embodiment, the sum of the data bandwidths of the two sensors is designed to be less than or equal to the maximum bandwidth of the sensing control module to ensure smooth data transmission and processing. This means that the data output capacity of the sensor and the processing capacity of the sensing control module need to be considered when designing the system to avoid data loss or processing delay.
[0032] Specifically, data bandwidth refers to the amount of data that a sensor can transmit per second, while the maximum bandwidth of the sensor control module refers to the maximum amount of data that the module can process. In practice, the data bandwidth can be controlled by adjusting the sampling rate of the sensor or the data compression algorithm. For example, if the data bandwidth of sensor A is 10Mbps and the data bandwidth of sensor B is 5Mbps, then the sensor control module needs to support at least 15Mbps bandwidth.
[0033] Preferably, the system can be designed with a dynamic adjustment mechanism to automatically adjust the sampling rate or data compression level of the sensor according to the current data flow and processing requirements. For example, when the load of the sensor control module is low, the sampling rate of the sensor can be increased to obtain more detailed data; otherwise, the sampling rate can be reduced to reduce the processing pressure.
[0034] It should be noted that during the data integration process, the basic sensing data units in each sensor are divided into a data block sequence consisting of an integer number of data blocks. This is to ensure the integrity and consistency of the data blocks and facilitate subsequent processing and analysis.
[0035] Specifically, the basic sensing data unit can be all the data collected by the sensor in a sampling cycle, and the data block is the result of segmenting these data units according to certain rules. For example, if a basic sensing data unit contains 1000 data points, and the system sets the data block size to 100 data points, then each basic sensing data unit will be segmented into 10 data blocks.
[0036] More specifically, the data block segmentation can be customized based on the characteristics of the sensor and the data processing requirements. For example, for a temperature sensor, the data block may need to be segmented more frequently to capture rapidly changing temperatures, while for a pressure sensor, a larger data block may be required to reduce the number of processing times.
[0037] It should be noted that in data integration, ensuring that there is only one valid data block from the two sensors within a single time period helps avoid data conflicts and confusion and improves the accuracy of data processing.
[0038] Specifically, this requirement can be achieved by setting timestamps and priority rules. Each data block is marked with a timestamp to indicate the time when it was generated. The system can determine which data block should be considered valid in the current time period based on the timestamp.
[0039] Preferably, the system can also introduce an arbitration mechanism to determine which data block should be processed first according to a preset priority rule when two sensors have valid data blocks in the same time period. For example, a higher priority can be set for a critical sensor to ensure that its data can be processed first.
[0040] In some embodiments, the sensing processing uses a sensing processing unit with a fixed bit width; during processing, sensing processing calculations are performed on each data block of the sequence of data blocks to be processed that enter the sensing control module in chronological order; and the intermediate results of the sensing processing calculations of each data block are cached in a processing intermediate result cache area corresponding to the sensor type; The induction process includes: According to the sensor type i of the current data block to be sensed, the intermediate result of the sensor processing is taken out from the processing intermediate result buffer corresponding to the sensor type i; if the data block is the first data block of the basic sensing data unit of the sensor where it is located, 0 is used as the intermediate result; Performing induction processing in the induction processing unit according to the current data block and the retrieved intermediate result to obtain the intermediate result of the current induction processing; and caching the intermediate result in the processing intermediate result cache area corresponding to the sensor type i; The sensing processing calculation is performed on each data block in the data block sequence until the current data block is the last data block of the basic sensing data unit of the sensor, and the intermediate result of the current sensing processing obtained by the sensing processing is output as the sensing processing result of the basic sensing data unit.
[0041] Specifically, bit width refers to the number of bits when data is processed in a processing unit. For example, if the bit width of a processing unit is 32 bits, each data block will be processed in a 32-bit format. In implementation, the bit width can be set according to the characteristics of the sensor data and the processing requirements. For example, for a high-precision temperature sensor, a higher bit width may be required to process more detailed data.
[0042] Preferably, the bit width can be dynamically adjusted according to the needs of the actual application. For example, the system can design an adaptive mechanism to automatically adjust the bit width according to the characteristics of the data and the processing load to achieve optimal processing efficiency and resource utilization.
[0043] It should be noted that during processing, the sensing control module performs sensing processing calculations on each data block in the sequence of data blocks to be processed that enter in chronological order, and caches the intermediate results of the sensing processing calculations for each data block in the processing intermediate result cache area corresponding to the sensor type.
[0044] Specifically, this means that when each data block is processed, its processing results will be temporarily stored for subsequent processing. For example, if a data sequence contains multiple data blocks, the processing results of each data block may be used for the processing of the next data block, or for anomaly detection and correction.
[0045] More specifically, the system can design an efficient cache mechanism, such as using a ring buffer or a LRU least recently used algorithm, to manage the storage and access of intermediate results to improve the speed and efficiency of data processing.
[0046] It should be noted that the sensing process includes taking out the intermediate result of the sensor processing from the processing intermediate result buffer corresponding to the sensor type according to the sensor type of the current data block being sensed.
[0047] Specifically, this requires the system to be able to identify the sensor type corresponding to each data block and to be able to retrieve and use intermediate results from the corresponding buffer. For example, if the system processes data from both a temperature sensor and a humidity sensor, each data block will be labeled as coming from which type of sensor.
[0048] Preferably, the system can design an intelligent recognition mechanism to automatically identify the sensor type of the data block through learning or preset rules. In addition, in order to improve the flexibility and accuracy of data processing, the system can also design a feedback mechanism to adjust the cache strategy of the intermediate results according to the processing results.
[0049] In some embodiments, when the sum of the length of the last valid data block of the basic sensing data unit of the sensor and the length of the verification data is not greater than the bit width of the sensing processing, the verification data and the last valid data block are spliced into a sensing processing bit width data block and output in the same time period; otherwise, the verification data is divided into two segments, the first segment of verification data follows the last valid data block to form a data block with a length of the sensing processing bit width, and is output in the same time period; the second segment of verification data is output in the next one or more time periods in turn until the verification data is output.
[0050] It should be noted that when the sum of the length of the last valid data block of the basic sensing data unit of the sensor and the length of the check data is not greater than the bit width of the sensing processing, the check data and the last valid data block are spliced into a sensing processing bit width data block and output in the same time period. This means that at the final stage of data block processing, the check data can be merged with the last data block to ensure the integrity and accuracy of the data.
[0051] Specifically, a basic sensing data unit may contain multiple data blocks, and the last data block usually contains the most important information. Check data is used to verify the integrity of the data to prevent errors during transmission or processing. The bit width refers to the number of bits of data when it is processed, such as 32 bits or 64 bits. During implementation, it is necessary to ensure that the total length of the last data block and the check data does not exceed the bit width of the processing unit.
[0052] Preferably, the system can design a mechanism to dynamically calculate the total length of the last data block and the check data, and decide whether to splice based on this length. If the total length exceeds the bit width, the system can automatically split the check data to ensure that each data block does not exceed the bit width limit.
[0053] It should be noted that if the sum of the length of the check data and the last valid data block exceeds the bit width of the sensing processing, the check data needs to be divided into two segments. The first segment of the check data follows the last valid data block to form a data block with a length of the sensing processing bit width, and is output in the same time period; the second segment of the check data is output in the next one or more time periods until the check data is output. This is to ensure that data can be effectively processed and transmitted even when the data volume is large.
[0054] Specifically, this requires the system to be able to recognize when the check data needs to be split and to correctly schedule the split data blocks to be output in subsequent time periods. For example, if the bit width is 32 bits, and the total length of the check data and the last data block is 64 bits, then the system needs to split the check data into two 32-bit data blocks.
[0055] More specifically, the system can design an efficient data segmentation and scheduling algorithm to ensure that the segmentation and output of data blocks does not affect the overall processing efficiency. In addition, the system can also design a buffer mechanism to temporarily store the segmented data blocks until they can be output.
[0056] In some embodiments, the sensing process uses a sensing processing unit with a fixed bit width; during processing, the sensing process is performed block by block on the sequence of data blocks to be processed that enter the sensing control module in chronological order; The induction process includes: 1. Perform companion calculations for induction processing; According to the sensor type marked by the data block to be processed, from the first data block to the last data block of the basic sensing data unit of the sensor, the companion calculation is cyclically performed, and the data blocks, sensor types and intermediate results of the companion calculation are cached; 2. Perform anomaly detection calculations; According to the syndrome result output by syndrome calculation and the sensor type i, anomaly detection calculation is performed on each basic sensing data unit of each sensor to output the respective "anomaly detection result" and sensor type; 3. Perform abnormal correction calculations; According to the "abnormal detection results" and sensor types of each sensor, the abnormal correction calculation is performed cyclically from the first data block to the last data block of the basic sensing data unit of the sensor, and the result of each calculation is output as a data block after abnormal correction together with the sensor type.
[0057] It should be noted that the sensing processing uses a sensing processing unit with a fixed bit width, and the sensing processing is performed block by block on the sequence of data blocks to be processed that enter the sensing control module in chronological order. This means that during the data processing process, each data block will be processed one by one in the chronological order in which it is received.
[0058] Specifically, a fixed-bit-width sensing processing unit means that each data block will be processed in a processing unit with the same bit width. For example, if the bit width of the processing unit is 32 bits, then no matter how big the data block is, it will be processed in a 32-bit processing unit. The sequence of data blocks to be processed refers to those data blocks waiting to be processed, which are arranged in the order of the time they are received.
[0059] Preferably, the system can design an efficient scheduling algorithm to ensure that data blocks can be quickly and accurately accessed and processed by the processing unit in chronological order. In addition, the system can also implement a feedback mechanism to dynamically adjust the processing priority of data blocks according to the load of the processing unit.
[0060] It should be noted that the induction processing includes performing adjoint calculation of the induction processing. Adjoint calculation is a calculation performed simultaneously during the data processing process, which can improve the efficiency and accuracy of data processing.
[0061] Specifically, companion computing can include real-time data analysis, pattern recognition, or other forms of computing that are performed in parallel with the main data processing flow. For example, when processing data from a temperature sensor, companion computing can monitor the trend of temperature changes in real time.
[0062] Preferably, the system can use parallel processing technology to perform adjoint calculations, which can improve the overall efficiency of data processing without increasing the delay of the main processing flow. In addition, the system can also design an intelligent prediction algorithm to predict future data changes based on the results of adjoint calculations, so as to make corresponding processing decisions in advance.
[0063] Furthermore, the sensing process also includes performing anomaly detection calculations and anomaly correction calculations. Anomaly detection calculations refer to identifying and marking data that does not conform to an expected pattern or range during data processing. Anomaly correction calculations refer to adjusting the data to correct these anomalies after anomalies are detected.
[0064] Preferably, the system can design an adaptive anomaly detection algorithm that can dynamically adjust the detection threshold based on changes in historical data and real-time data. For anomaly correction, the system can use machine learning techniques to identify common anomaly patterns and automatically apply the most appropriate correction strategy. In addition, the system can also provide a user interface that allows the operator to manually adjust the parameters of anomaly detection and correction to suit specific application requirements.
[0065] In some embodiments, the companion computation process of the induction processing process includes: According to the sensor type i of the current data block to be processed, first determine whether the current data block is the first data of the basic sensing data unit. If so, the intermediate result input by the companion calculation is 0; if not, it is necessary to call the intermediate result of the sensor from the intermediate result cache as the intermediate result input; According to the current data block to be processed and the intermediate result input, the calculation result is obtained; at the same time, the data block to be processed and the sensor type are stored in the storage sequence to be corrected for abnormality; If the current data block to be processed is the last data block of the basic sensing data unit, the calculation result is output as the final companion calculation unit result; if the current data block to be processed is not the last data block of the basic sensing data unit, the calculation result is stored as an intermediate result in the intermediate result cache of the current sensor type.
[0066] It should be noted that the companion calculation process of the sensing processing process includes first determining whether the current data block is the first data of the basic sensing data unit according to the sensor type of the current data block to be processed.
[0067] Specifically, companion computing is a continuous computing process that is performed in real time with the processing of data streams. In this computing process, the system needs to be able to identify whether a data block belongs to a new basic sensing data unit, which is usually achieved by checking the timestamp or sequence number of the data block. If the data block is the first data block of the new unit, the system will initialize the computing state; if not, the system will continue to calculate based on the previous state.
[0068] Preferably, the system can design a state machine to manage the state transition of the companion calculation. The state machine can automatically adjust the calculation state according to the type and order of the data block to ensure the continuity and accuracy of the calculation. In addition, the system can also implement a data block verification mechanism to ensure that each data block conforms to the expected format and standard before starting the calculation.
[0069] It should be noted that if it is not the first data of the basic sensing data unit, the intermediate result of the sensor needs to be retrieved from the intermediate result cache as the intermediate result input. This is to maintain the continuity of the calculation and ensure that the processing of each data block is based on the correct context.
[0070] Specifically, the intermediate result cache is a storage structure that temporarily stores the results of the previous data block processing so that the current data block processing can use these results. This cache can be a specific area in memory, or a more complex data structure such as a database or cache system.
[0071] Preferably, the system can adopt an efficient cache strategy, such as the least recently used (LRU) algorithm, to manage the storage and retrieval of intermediate results. In addition, the system can also design a cache invalidation mechanism to handle breakpoints or errors in the data block sequence to ensure that the accuracy of the calculation is not affected by these factors.
[0072] It should be noted that the calculation result is obtained based on the current data block to be processed and the intermediate result input; at the same time, the data block to be processed and the sensor type are simultaneously stored in the storage sequence to be corrected for abnormalities. This is to enable timely abnormality detection and correction during the data processing process.
[0073] Specifically, the calculation result refers to the output generated during the companion calculation process, which may include statistical data, trend analysis or other forms of derived data. The storage sequence to be corrected is a data structure used to store data blocks that require further anomaly detection and correction.
[0074] Preferably, the system can design an anomaly detection algorithm that can analyze the calculation results in real time and trigger the correction process when an anomaly is detected. In addition, the system can also implement a data block replay mechanism that allows the affected data blocks to be reprocessed after an anomaly is found to improve the robustness of data processing.
[0075] In some embodiments, the abnormality correction calculation process of the induction processing process includes: According to the abnormal detection result and the sensor type output by the abnormal detection calculation, the first data block to be abnormally corrected of the sensor is found from the abnormal correction storage sequence, and the initial value of the intermediate result of the abnormal correction calculation unit is calculated according to the abnormal detection result; First, determine whether the current data block is the first data of the basic sensing data unit. If so, the intermediate result input of the abnormality correction calculation is used as the initial value of the intermediate result of the abnormality correction calculation unit; if not, it is necessary to retrieve the intermediate result of the sensor from the intermediate result cache as the intermediate result input; According to the current data block to be anomaly corrected and the intermediate result input, the anomaly correction calculation result is obtained, that is, the data block after anomaly correction, and the result is output together with the sensor type.
[0076] It should be noted that the abnormality correction calculation process of the induction processing process includes finding the first data block to be corrected for the sensor from the abnormality correction storage sequence according to the abnormality detection result and sensor type output by the abnormality detection calculation. This means that the system can identify the data that needs to be corrected and start the correction process.
[0077] Specifically, the anomaly detection result output by the anomaly detection calculation refers to any data point or pattern that the system finds during the detection process that does not meet expectations. The sensor type refers to the sensor from which the data comes, such as a temperature sensor, a humidity sensor, etc. The anomaly correction storage sequence is a data structure used to store data blocks to be corrected in sequence.
[0078] Preferably, the system can design an efficient data retrieval mechanism to quickly find the first data block that needs to be corrected from the abnormal correction storage sequence. In addition, the system can also implement an abnormal marking system to mark abnormal data in the data stream so that the subsequent correction process can be quickly located.
[0079] It should be noted that the initial value of the intermediate result of the abnormality correction calculation unit is calculated according to the abnormality detection result. This is to provide an initial value for the calculation unit before starting the correction calculation, so as to perform subsequent correction calculation.
[0080] Specifically, the initial value of the intermediate result refers to the basic value calculated based on the anomaly detection result before starting the anomaly correction calculation. This initial value can be calculated based on a variety of algorithms, such as statistical analysis, machine learning models or other mathematical models.
[0081] Preferably, the system can use an adaptive algorithm to dynamically adjust the calculation method of the initial value of the intermediate result to adapt to different types of anomalies and characteristics of sensor data. In addition, the system can also design a feedback mechanism to optimize the calculation method of the initial value of the intermediate result based on the correction result.
[0082] It should be noted that it is necessary to first determine whether the current data block is the first data of the basic sensing data unit. If so, the intermediate result input of the abnormal correction calculation is the initial value of the intermediate result of the abnormal correction calculation unit; if not, it is necessary to retrieve the intermediate result of the sensor from the intermediate result cache as the intermediate result input. This ensures that the correction calculation can be performed based on the correct context.
[0083] Specifically, the basic sensing data unit refers to a set of data collected by the sensor within a certain period of time. The initial value of the intermediate result of the abnormal correction calculation unit refers to the initial value calculated based on the abnormal detection result before starting the correction calculation.
[0084] Preferably, the system can design a state tracking mechanism to track the position of each data block in the basic sensing data unit. In addition, the system can also implement an intelligent cache system to store and manage intermediate results so that these results can be quickly retrieved and used when needed.
[0085] The above-mentioned embodiments of the present invention have the following beneficial effects: the dual-detection independent sensor described in the present invention can optimize data synchronization and processing procedures, by converting the data of two different sensors into a data sequence of a unified format and integrating them in time sequence, ensuring that only valid data blocks of one sensor are processed in a single time period. This integration method can improve the efficiency and accuracy of data processing while ensuring the integrity and consistency of the data. In addition, by adopting a fixed-bit-width processing method by the sensing processing unit, the data blocks can be processed one by one, and the intermediate results can be cached in the corresponding processing intermediate result cache area. This method can ensure the continuity and stability of data processing and reduce errors and delays in the data processing process. At the same time, through abnormal detection and correction calculations, the accuracy and reliability of the data can be further improved to ensure that the data output by the sensor meets high-precision requirements.
[0086] like Figure 2 As shown, in some embodiments, a dual-detection independent sensing control device 200 includes: The data receiving unit 201 is used to receive the data to be sensed inputted from the two sensors; The data synchronization and processing unit 202 is used to convert the to-be-sensed data of the two sensors into a data sequence in a unified format; and to mark the data sequence of each sensor with the sensor type; The integration unit 203 is used to integrate the data sequences of the two sensors into one data sequence in chronological order, so that there is only one valid data block in the two sensors within a single time period; The sensing processing unit 204 is used to input the integrated data sequence into the sensing control module, perform sensing processing in time sequence, and output the sensed processed data; The data distribution output unit 205 is used to distribute the sensed data to the corresponding sensors according to the sensor type tags, perform data format conversion, and obtain sensed data that meets the requirements of each sensor.
[0087] It is understandable that the modules described in the dual-detection independent sensing control device 200 are similar to those described in the reference Figure 1Therefore, the operations, features and beneficial effects described above for the dual-identification independent sensor are also applicable to the dual-identification independent sensing control device 200 and the modules contained therein, and will not be repeated here.
[0088] In some embodiments, the induction processing unit includes an induction processing module; The induction processing module includes an induction processing unit and a processing result buffer area; The processing result buffer area includes an intermediate result buffer area corresponding to the sensor type; The sensing processing unit performs sensing processing on each data block that enters the sensing control module in chronological order; and according to the sensor type of the data block, caches the intermediate result of the sensing processing of each data block into the processing intermediate result cache area corresponding to the sensor type.
[0089] It should be noted that the dual-identification independent sensing control device includes a data receiving unit for receiving the data to be sensed input from two sensors, which means that the device must be capable of simultaneously receiving and identifying data from two different types of sensors.
[0090] Specifically, the data receiving unit can be a hardware interface, such as a serial port, a USB interface or a wireless receiving module, or a software component for parsing and converting received data. The data to be sensed refers to the raw data collected from the sensor, which may require further processing before use.
[0091] Preferably, the data receiving unit can be designed to be modular to support multiple types of sensors and data formats. In addition, the system can include a data pre-processing module for filtering, denoising and normalization to improve the accuracy and efficiency of subsequent processing steps.
[0092] It should be noted that the data synchronization and processing unit is used to convert the data to be sensed by the two sensors into a data sequence in a unified format, and to mark the data sequence of each sensor with the sensor type. This means that the device needs to be able to process and format data from different sources and provide necessary information for subsequent processing.
[0093] Specifically, the data synchronization and processing unit may use technologies such as timestamp alignment and data sampling rate conversion to ensure data synchronization. The unified format of the data sequence may include data type, value range, and encoding method. Sensor type tagging refers to adding an identifier to each data sequence to indicate which type of sensor the data comes from.
[0094] Preferably, the data synchronization and processing unit can use FPGA field programmable gate array or ASIC application specific integrated circuit to realize high-speed data processing. In addition, the system can include a configuration interface to allow users to define data formats and marking rules for sensor types.
[0095] It should be noted that the integration unit is used to integrate the data sequences of the two sensors into one data sequence in chronological order, so that there is only one valid data block from the two sensors in a single time period, which helps to ensure data consistency and reduce processing conflicts.
[0096] Specifically, the integration unit may use a first-in first-out FIFO queue or other scheduling algorithms to manage the integration of data sequences. The time sequence may be determined by comparing the timestamps of the data blocks. A valid data block refers to a data block selected for processing within a specific time period.
[0097] Preferably, the integration unit can design a conflict resolution mechanism to handle the situation where two sensors have data outputs in the same time period. For example, the system can decide which sensor's data block should be processed first based on a preset priority rule or the urgency of the data.
[0098] In some embodiments, the sensing processing unit includes a companion computing module, an anomaly detection computing module, and an anomaly correction computing module; the companion computing module is used to perform companion computing cyclically from the first data block to the last data block of the basic sensing data unit of the sensor according to the sensor type marked by the data block to be processed, and cache the data block of the companion computing, the sensor type, and the intermediate result of the companion computing; An anomaly detection calculation module, used to perform an anomaly detection calculation on each basic sensing data unit of each sensor according to the companion result output by the companion calculation and the sensor type i, and output the respective anomaly detection result and sensor type; The anomaly correction calculation module is used to perform anomaly correction calculations in a loop from the first data block to the last data block of the basic sensing data unit of the sensor according to the anomaly detection results and sensor types of each sensor, and output each calculation result as a data block after anomaly correction together with the sensor type.
[0099] It should be noted that the sensing processing unit includes a sensing processing module, which is a core component in the device for performing actual data processing tasks. It is responsible for receiving the integrated data sequence, performing sensing processing in chronological order, and outputting the processed data.
[0100] Specifically, the induction processing module can be composed of a group of digital signal processors DSP, microprocessors or dedicated hardware logic, which can perform complex mathematical operations and logical operations. The design of the module needs to consider the type of data, the complexity of the processing algorithm and the required processing speed.
[0101] Preferably, the induction processing module can adopt a parallel processing architecture to improve processing speed and efficiency. In addition, the module can be designed to support programmable logic to facilitate reconfiguration or upgrading according to different data processing requirements.
[0102] It should be noted that the induction processing module includes an induction processing unit and a processing result buffer area, which means that the module not only includes data processing logic, but also includes a memory area for storing intermediate or final processing results.
[0103] Specifically, the induction processing unit may be a set of algorithms or programs that can calculate and analyze data. The processing result buffer may be a random access memory RAM or other types of high-speed cache for temporarily storing the processing results for subsequent use or output.
[0104] Preferably, the processing result buffer can be designed to have a priority queue function to ensure that more important or more urgent processing results can be accessed first. In addition, the buffer can be equipped with a data protection mechanism to prevent data from being lost or damaged during processing.
[0105] It should be noted that the processing result buffer includes an intermediate result buffer area corresponding to the sensor type, which means that the buffer is divided into multiple parts, each part is used to store the data processing result of a specific type of sensor.
[0106] Specifically, the intermediate result buffer area can be customized according to the type of sensor and the data processing requirements. For example, if there are temperature sensors and humidity sensors in the system, the buffer area can be divided into a temperature data processing area and a humidity data processing area.
[0107] Preferably, the system can design a dynamic allocation mechanism to dynamically adjust the size and allocation of the buffer area according to the real-time data processing load and the type of sensor. In addition, the system can also implement a monitoring tool to track the usage and performance indicators of the buffer area in real time.
[0108] Reference below Figure 3, which shows a schematic diagram of a structure 300 of an electronic device suitable for implementing some embodiments of the present invention. The electronic devices in some embodiments of the present invention may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0109] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 to a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0110] Typically, the following devices may be connected to the I / O interface 305: an input device 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0111] Furthermore, the storage medium of the embodiment of the present application stores program instructions that can implement all the above methods, wherein the program instructions can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0112] The above descriptions are only some preferred embodiments of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present invention is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present invention.
Claims
1. A dual independent sensor, It is characterized in that The dual independent sensor performs the following steps: Receiving sensing data input from two sensors; Perform data synchronization and processing to convert the data to be sensed by the two sensors into a data sequence in a unified format; and mark the data sequence of each sensor with the sensor type; The data sequences of the two sensors are integrated into one data sequence in chronological order, and during the integration, only one valid data block is obtained from the two sensors in a single time period; Input the integrated data sequence into the sensing control module, perform sensing processing in chronological order, and output the sensed data; The processed data is distributed to the corresponding sensors according to the sensor type label, and the data format is converted to obtain the sensing data that meets the requirements of each sensor.
2. The dual-detection independent sensor according to claim 1, It is characterized in that The sum of the data bandwidths of the two sensors is less than or equal to the maximum bandwidth of the sensor control module; In data integration, the basic sensing data unit in each sensor is divided into a data block sequence consisting of an integer number of data blocks.
3. The dual-detection independent sensor according to claim 1, It is characterized in that The sensing processing uses a sensing processing unit with a fixed bit width; during processing, sensing processing calculations are performed on each data block of the sequence of data blocks to be processed that enter the sensing control module in chronological order; and caching the intermediate results of the sensing processing calculation of each data block into the processing intermediate result buffer area corresponding to the sensor type; The induction process includes: According to the sensor type i of the current data block to be sensed, the intermediate result of the sensor processing is taken out from the processing intermediate result buffer corresponding to the sensor type i; if the data block is the first data block of the basic sensing data unit of the sensor where it is located, 0 is used as the intermediate result; Performing induction processing in the induction processing unit according to the current data block and the retrieved intermediate result to obtain the intermediate result of the current induction processing; and caching the intermediate result in the processing intermediate result cache area corresponding to the sensor type i; The sensing processing calculation is performed on each data block in the data block sequence until the current data block is the last data block of the basic sensing data unit of the sensor, and the intermediate result of the current sensing processing obtained by the sensing processing is output as the sensing processing result of the basic sensing data unit.
4. The dual-detection independent sensor according to claim 3, It is characterized in that When the sum of the length of the last valid data block of the basic sensing data unit of the sensor and the length of the verification data is not greater than the bit width of the sensing processing, the verification data and the last valid data block are spliced into a sensing processing bit width data block and output in the same time period; otherwise, the verification data is divided into two sections, the first section of verification data follows the last valid data block to form a data block with a length of the sensing processing bit width, and is output in the same time period; the second section of verification data is output in the next one or more time periods in turn until the verification data is output.
5. The dual-detection independent sensor according to claim 2, It is characterized in that The sensing processing uses a sensing processing unit with a fixed bit width; during processing, the sensing processing is performed block by block on the sequence of data blocks to be processed that enter the sensing control module in chronological order; The induction process includes: (1) Perform companion calculations for induction processing; According to the sensor type marked by the data block to be processed, from the first data block to the last data block of the basic sensing data unit of the sensor, the companion calculation is cyclically performed, and the data blocks, sensor types and intermediate results of the companion calculation are cached; (2) Perform anomaly detection calculations; According to the syndrome result output by syndrome calculation and the sensor type i, anomaly detection calculation is performed on each basic sensing data unit of each sensor to output the respective "anomaly detection result" and sensor type; (3) Perform anomaly correction calculations; According to the "abnormal detection results" and sensor types of each sensor, the abnormal correction calculation is performed cyclically from the first data block to the last data block of the basic sensing data unit of the sensor, and the result of each calculation is output as a data block after abnormal correction together with the sensor type.
6. The dual-detection independent sensor according to claim 2, It is characterized in that The companion calculation process of the induction processing process includes: According to the sensor type i of the current data block to be processed, first determine whether the current data block is the first data of the basic sensing data unit. If so, the intermediate result input by the companion calculation is 0; if not, it is necessary to call the intermediate result of the sensor from the intermediate result cache as the intermediate result input; According to the current data block to be processed and the intermediate result input, the calculation result is obtained; at the same time, the data block to be processed and the sensor type are stored in the storage sequence to be corrected for abnormality; If the current data block to be processed is the last data block of the basic sensing data unit, the calculation result is output as the final companion calculation unit result; if the current data block to be processed is not the last data block of the basic sensing data unit, the calculation result is stored as an intermediate result in the intermediate result cache of the current sensor type.
7. The dual-detection independent sensor according to claim 2, It is characterized in that The abnormal correction calculation process of the induction processing process includes: According to the "abnormal detection result" output by the abnormal detection calculation and the sensor type, the first data block to be abnormally corrected of the sensor is found from the abnormal correction storage sequence, and the initial value of the intermediate result of the abnormal correction calculation unit is calculated according to the "abnormal detection result"; First, determine whether the current data block is the first data of the basic sensing data unit. If so, the intermediate result input of the abnormality correction calculation is used as the initial value of the intermediate result of the abnormality correction calculation unit; if not, it is necessary to retrieve the intermediate result of the sensor from the intermediate result cache as the intermediate result input; According to the current data block to be anomaly corrected and the intermediate result input, the anomaly correction calculation result is obtained, that is, the data block after anomaly correction, and the result is output together with the sensor type.
8. A dual-detection independent sensing control device, It is characterized in that include: A data receiving unit, used for receiving the data to be sensed inputted from the two sensors; A data synchronization and processing unit, used to convert the to-be-sensed data of the two sensors into a data sequence in a unified format; and to mark the data sequence of each sensor with the sensor type; The integration unit is used to integrate the data sequences of the two sensors into one data sequence in chronological order, so that there is only one valid data block in the two sensors within a single time period; The sensing processing unit is used to input the integrated data sequence into the sensing control module, perform sensing processing in time sequence, and output the sensed processed data; The data distribution output unit is used to distribute the sensed data to the corresponding sensors according to the sensor type tag, convert the data format, and obtain the sensed data that meets the requirements of each sensor.
9. The dual-detection independent sensing control device according to claim 8, It is characterized in that The induction processing unit includes an induction processing module; The induction processing module includes an induction processing unit and a processing result buffer area; The processing result buffer area includes an intermediate result buffer area corresponding to the sensor type; The sensing processing unit performs sensing processing on each data block that enters the sensing control module in chronological order; And according to the sensor type of the data block, the intermediate result of the sensing processing of each data block is cached in the processing intermediate result cache area corresponding to the sensor type.
10. The dual-detection independent sensing control device according to claim 8, It is characterized in that The sensing processing unit includes a companion calculation module, an anomaly detection calculation module and an anomaly correction calculation module; the companion calculation module is used to perform companion calculation cyclically from the first data block to the last data block of the basic sensing data unit of the sensor according to the sensor type marked by the data block to be processed, and cache the data block of the companion calculation, the sensor type and the intermediate result of the companion calculation; The anomaly detection calculation module is used to perform anomaly detection calculation on each basic sensing data unit of each sensor according to the companion result output by the companion calculation and the sensor type i, and output the respective "anomaly detection result" and sensor type; The anomaly correction calculation module is used to perform anomaly correction calculations in a loop from the first data block to the last data block of the basic sensing data unit of the sensor according to the "anomaly detection results" and sensor types of each sensor, and output each calculation result as a data block after anomaly correction together with the sensor type.
Citation Information
Patent Citations
Multi-sensor heterogeneous data synchronous acquisition and matching system
CN114697771A
Prediction method and device based on multi-source sensor data fusion and storage medium
CN117932544A
