Sensor data collection method and apparatus, computer device, and storage medium
By switching between control and acquisition ports in a sensor network, the low reliability problem caused by line faults in traditional sensor networks is solved, and data acquisition integrity is achieved under fault conditions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)
- Filing Date
- 2022-06-01
- Publication Date
- 2026-06-12
AI Technical Summary
Traditional sensor networks suffer from low reliability due to their complex parallel topology, which makes it difficult to acquire sensor data during faults.
The control port and acquisition port in the sensor network are switched to ensure that sensor data can still be acquired in the event of line failure or port abnormality. The port is switched by acquiring the temperature and pressure values of the sensor.
This improves the reliability of the sensor network, avoids data acquisition failures due to line disconnection or port abnormalities, and ensures the integrity of sensor data.
Smart Images

Figure CN115219063B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of sensor technology, and in particular to a sensor data acquisition method, apparatus, computer equipment, and storage medium. Background Technology
[0002] Large equipment such as airplanes and aircraft have complex structures, requiring the deployment of numerous sensors and the establishment of sensor networks. These networks collect sensor data to monitor the surrounding environment (such as temperature) and stress conditions (such as pressure) of the large equipment. Therefore, the reliability of the sensor network is of great significance for monitoring the surrounding environment and stress conditions of large equipment.
[0003] Traditional sensor networks use a parallel topology. Due to the large number of sensors deployed on large equipment, traditional sensor networks have a large number of lines. If a line in a traditional sensor network fails, it will result in the inability to collect sensor data, thereby affecting the monitoring of the surrounding environment and health status of large equipment. Therefore, traditional sensor networks have the problem of low reliability. Summary of the Invention
[0004] Therefore, it is necessary to provide a sensor data acquisition method, device, computer equipment, and storage medium that can improve the reliability of sensor networks in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a sensor data acquisition method applied to a sensor network. The sensor network includes a data acquisition module, a control module, and a sensor matrix. The first end of a sensor in the j-th row and i-th column of the sensor matrix is connected to the j-th row line of the data acquisition module, and the second end is connected to the i-th column line of the control module. The two ends of the j-th row line are connected to the j-th and j'-th acquisition ports of the data acquisition module, and the two ends of the i-th column line are connected to the i-th and i'-th control ports of the control module. The method includes:
[0006] Obtain the temperature and pressure values of the target sensors in the sensor matrix;
[0007] If both the temperature and pressure values are normal, and no data is acquired from the sensors in column i and rows j, then the i-th control port corresponding to column i is switched to the i'-th control port to acquire the data from the sensors in column i and rows j.
[0008] In one embodiment, the method further includes:
[0009] If both the temperature and pressure values are normal, and no data is acquired from the sensors in the j-th row and i+1 to n-th columns of the target sensor, then the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the data from the sensors in the j-th row and i+1 to n-th columns of the target sensor, where n is the total number of columns in the sensor network.
[0010] In one embodiment, if the target sensor is a sensor in a target column determined by a preset number of columns in the sensor matrix; the step of obtaining the temperature and pressure values of the target sensor in the sensor matrix includes:
[0011] The control module provides AC power to each sensor in the target column so that the data acquisition module can acquire the first electrical signal data of the target sensor.
[0012] Based on the first electrical signal data, the temperature and pressure values of the target sensor are obtained.
[0013] In one embodiment, if the target sensor is a sensor in another column that has the same sampling period as the target column; obtaining the temperature and pressure values of the target sensor in the sensor matrix includes:
[0014] The temperature value determined based on the electrical signal data of each sensor in the target column is used as the temperature value of the target sensor;
[0015] The control module provides DC power to the target sensor so that the data acquisition module can acquire the second electrical signal data of the target sensor.
[0016] The pressure value of the target sensor is determined based on the second electrical signal data and the temperature values of each sensor in the target column.
[0017] In one embodiment, the method further includes:
[0018] If the temperature value of the target sensor is abnormal, the control module provides AC power to each sensor in the neighborhood of the target sensor to obtain the temperature value of each sensor in the neighborhood.
[0019] Based on the temperature values of each sensor in the neighborhood of the target sensor, determine the temperature-weighted average value corresponding to the neighborhood;
[0020] The temperature value of the target sensor is corrected based on the temperature-weighted average value.
[0021] In one embodiment, the method further includes:
[0022] If the pressure value of the target sensor is abnormal, the control module provides DC power to each sensor in the neighborhood of the target sensor to obtain the pressure value of each sensor in the neighborhood.
[0023] Based on the pressure values of each sensor in the neighborhood of the target sensor, determine the pressure-weighted average value corresponding to the neighborhood;
[0024] The pressure value of the target sensor is corrected based on the pressure-weighted average value.
[0025] Secondly, this application also provides a sensor data acquisition device applied to a sensor network. The sensor network includes a data acquisition module, a control module, and a sensor matrix. The first end of a sensor in the j-th row and i-th column of the sensor matrix is connected to the j-th row line of the data acquisition module, and the second end is connected to the i-th column line of the control module. The two ends of the j-th row line are connected to the j-th and j'-th acquisition ports of the data acquisition module, and the two ends of the i-th column line are connected to the i-th and i'-th control ports of the control module. The device includes:
[0026] The acquisition module is used to acquire the temperature and pressure values of the target sensors in the sensor matrix;
[0027] The processing module is configured to, if the temperature value and the pressure value are both normal and no data is acquired from the sensors in the i-th column and rows 1 to j, switch the i-th control port corresponding to the i-th column to the i'-th control port to acquire the data acquired from the sensors in the i-th column and rows 1 to j.
[0028] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of any of the methods described above.
[0029] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of any of the methods described above.
[0030] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of any of the methods described above.
[0031] The aforementioned sensor data acquisition method, apparatus, computer equipment, and storage medium acquire temperature and pressure values of target sensors in the sensor matrix. If both temperature and pressure values are normal, and no data is acquired from the sensors in the i-th column and rows 1 to j, the i-th control port corresponding to the i-th column is switched to the i'-th control port to acquire the data from the sensors in the i-th column and rows 1 to j. Traditional technologies acquire sensor data through parallel topology sensor networks. When a line in a traditional sensor network fails, sensor data cannot be acquired. However, in this embodiment, if no data is acquired from the sensors in the i-th column and rows 1 to j, the i-th control port corresponding to the i-th column is switched to the i'-th control port to acquire the data from the sensors in the i-th column and rows 1 to j. This avoids the situation where sensor data cannot be acquired due to partial line disconnection or partial port abnormality, thus solving the problem of low reliability of sensor networks in traditional technologies. Attached Figure Description
[0032] Figure 1 This is a flowchart illustrating the sensor data acquisition method provided in the embodiments of this application;
[0033] Figure 2 This is a schematic diagram of the structure of a sensor network provided in an embodiment of this application;
[0034] Figure 3 This is a flowchart illustrating a method for obtaining the temperature and pressure of a target column provided in an embodiment of this application.
[0035] Figure 4 This is a flowchart illustrating another method for obtaining column temperature and pressure provided in an embodiment of this application;
[0036] Figure 5 This is a schematic diagram of the waveform of a piezoresistive sensor provided in an embodiment of this application;
[0037] Figure 6 This is a flowchart illustrating a method for correcting abnormal temperature values provided in an embodiment of this application.
[0038] Figure 7 This is a flowchart illustrating a method for correcting abnormal pressure values provided in an embodiment of this application.
[0039] Figure 8 This is a schematic diagram of a sensor network data acquisition process provided in an embodiment of this application;
[0040] Figure 9 This is a structural block diagram of a sensor data acquisition device provided in the embodiments of this application;
[0041] Figure 10 This is a diagram showing the internal structure of a computer device in an embodiment of this application. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0043] In this embodiment, a sensor data acquisition method is provided. This embodiment uses the application of this method to a computer device as an example for illustration. It can be understood that this method can also be applied to a server, and can also be applied to a system including a computer device and a server, and can be implemented through the interaction between the computer device and the server.
[0044] Figure 1 This is a flowchart illustrating the sensor data acquisition method provided in this embodiment. This method is applied in a sensor network and computer equipment or a sensor network and server. Before detailing this embodiment, a sensor network is first described in detail. The sensor network includes a data acquisition module, a control module, and a sensor matrix. The first end of the sensor in the j-th row and i-th column of the sensor matrix is connected to the j-th row line of the data acquisition module, and the second end is connected to the i-th column line of the control module. The two ends of the j-th row line are connected to the j-th and j'-th acquisition ports of the data acquisition module, and the two ends of the i-th column line are connected to the i-th and i'-th control ports of the control module. This embodiment provides a schematic diagram of the sensor network structure, as shown below. Figure 2 As shown, it should be understood that the sensors in the sensor matrix can be arranged equidistantly on the same plane, unequally equidistantly on the same plane, equidistantly on different planes, or unequally equidistantly on a curved surface; no limitation is made here. Figure 2 As can be seen from the diagram, the sensor matrix has a total of n columns and m rows. The left end of the sensor in the j-th row and i-th column of the sensor matrix is connected to the j-th row line of the data acquisition module, and the right end is connected to the i-th column line of the control module. The two ends of the j-th row line are connected to the j-th and j'-th acquisition ports of the data acquisition module, and the two ends of the i-th column line are connected to the i-th and i'-th control ports of the control module. Figure 2 The sensor used can be a flexible piezoresistive sensor or a flexible temperature sensor; no specific limitation is made here.
[0045] It should be noted that the lines in row 1 connect to the 1st and 1'th acquisition ports of the data acquisition module; the lines in row 2 connect to the 2nd and 2'th acquisition ports of the data acquisition module; the lines in row 3 connect to the 3rd and 3'th acquisition ports of the data acquisition module; the lines in row 4 connect to the 4th and 4'th acquisition ports of the data acquisition module; the lines in row m connect to the mth and m'th acquisition ports of the data acquisition module; the lines in column 1 connect to the 1st and 1'th control ports of the control module; and the lines in column 2 connect to the control ports of the control module. The second and 2' control ports are connected, the third column of lines is connected to the third and 3' control ports in the control module, the fourth column of lines is connected to the fourth and 4' control ports in the control module, the nth column of lines is connected to the nth and n' control ports in the control module, the 1', 2', 3', 4', and m' acquisition ports are spare ports for the 1st, 2nd, 3rd, 4th, and m acquisition ports, and the 1', 2', 3', 4', and n' control ports are spare ports for the 1st, 2nd, 3rd, 4th, and nth control ports.
[0046] In one embodiment, such as Figure 1 As shown, it includes the following steps:
[0047] S101, acquire the temperature and pressure values of the target sensor in the sensor matrix.
[0048] Among them, the temperature value of the target sensor refers to the temperature of the environment in which the target sensor is located, and the pressure value of the target sensor refers to the external pressure that the target sensor is subjected to.
[0049] S102, if the temperature and pressure values are both normal, and no data is acquired from the sensors in column i and rows j, then switch the i-th control port corresponding to column i to the i' control port to acquire the data from the sensors in column i and rows j.
[0050] In this embodiment, when the line node between row j and row j+1 of column i is disconnected, the sensor data collected from column i and rows j to i will not be obtained. In this case, the i-th control port corresponding to column i will be switched to the i' control port to obtain the sensor data collected from column i and rows j to i. Alternatively, when the output of the i-th control port is abnormal, the sensor data collected from column i and rows n to i will not be obtained. In this case, the i-th control port corresponding to column i will be switched to the i' control port to obtain the sensor data collected from column i and rows n to i.
[0051] For example, S102 can be described as follows: when the target sensor is the sensor in the 1st column and the 3rd row, if the data collected by the sensor in the 1st column and the 1st to 3rd rows is not obtained, the data collected by the sensor in the 1st column and the 1st to 3rd rows will be obtained through the output of the 1st control port in the control module.
[0052] In this embodiment, a normal temperature value means that the temperature value of the target sensor differs from the weighted average temperature of all neighboring sensors by less than or equal to 5°C.
[0053] A normal pressure value means that the temperature value of the target sensor is less than or equal to 30% different from the average pressure value of the neighboring sensors.
[0054] The neighborhood of the target sensor can refer to either the four-neighborhood or the eight-neighborhood of the target sensor; there is no limitation here.
[0055] The aforementioned sensor data acquisition method obtains the temperature and pressure values of the target sensors in the sensor matrix. If both the temperature and pressure values are normal, and no data is acquired from the sensors in column i and rows j, the method switches the i-th control port corresponding to column i to the i' control port to acquire the data from those sensors. Traditional technologies acquire sensor data through parallel topology sensor networks. When a line in a traditional sensor network fails, sensor data cannot be acquired. However, in this embodiment, if no data is acquired from the sensors in column i and rows j, the method switches the i-th control port corresponding to column i to the i' control port to acquire the data from those sensors. This avoids the situation where sensor data cannot be acquired due to partial line disconnection or partial port malfunction, thus solving the problem of low reliability in traditional sensor networks.
[0056] Based on the above embodiments, the method further includes:
[0057] If both the temperature and pressure values are normal, and no data is acquired from the sensors in the j-th row and i+1 to n-th columns of the target sensor, then the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the data from the sensors in the j-th row and i+1 to n-th columns of the target sensor, where n is the total number of columns in the sensor network.
[0058] In this embodiment, when the line node between the i-th and i+1-th rows of the j-th line is disconnected, the sensor data of the j-th row and i+1 to n-th columns of the target sensor cannot be acquired. Therefore, the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the sensor data of the j-th row and i+1 to n-th columns of the target sensor. Alternatively, when the j-th acquisition port outputs abnormally, the sensor data of the j-th row and 1 to n-th columns of the target sensor cannot be acquired. Therefore, the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the sensor data of the j-th row and 1 to n-th columns of the target sensor. When the target sensor is the sensor in the 2nd column and 4th row, and the sensor data of the 4th row and 3 to n-th columns is not acquired, the sensor data of the 4th row and 3 to n-th columns of the target sensor is acquired through the 4'-th acquisition port in the data acquisition module.
[0059] In this embodiment, the sensor data collected in row j and columns i+1 to n were obtained, ensuring that each column of sensors could collect data and improving the reliability of the sensor network.
[0060] Figure 3 This is a flowchart illustrating a method for obtaining the temperature and pressure of a target column provided in an embodiment of this application. (Refer to...) Figure 3 This embodiment relates to one method for determining the temperature and pressure values of each sensor in a target column. Based on the above embodiment, if the target sensor is one of the sensors in a target column determined by a preset number of columns in the sensor matrix, S101 includes the following steps:
[0061] S301, through the control module, provides AC power to each sensor in the target column so that the data acquisition module can acquire the first electrical signal data of the target sensor.
[0062] The first electrical signal data refers to the continuous current and voltage values of the target sensor, where the voltage value is determined by the output of the control module.
[0063] S302, based on the first electrical signal data, obtain the temperature and pressure values of the target sensor.
[0064] In this embodiment, the temperature and pressure values of the target sensor are obtained by decoupling the first electrical signal data.
[0065] Figure 4 This is a flowchart illustrating another method for obtaining column temperature and pressure provided in an embodiment of this application. (Refer to...) Figure 4This embodiment relates to one method for determining the temperature and pressure values of sensors in other columns. Based on the above embodiment, if the target sensor is a sensor in another column that has the same sampling period as the target column, step S101 includes the following steps:
[0066] S401, the temperature value determined based on the electrical signal data of each sensor in the target column is used as the temperature value of the target sensor.
[0067] S402 provides DC power to the target sensor through the control module so that the data acquisition module can acquire the second electrical signal data of the target sensor.
[0068] The second electrical signal data refers to the individual current and voltage values of the target sensor, where the voltage value is determined by the output of the control module.
[0069] S403, determine the pressure value of the target sensor based on the second electrical signal data and the temperature values of each sensor in the target column.
[0070] It should be noted that by providing AC power to the sensor through the control port, the sensor's temperature and pressure values can be obtained after collecting continuous AC current; however, by providing DC power to the sensor through the control port, only the sensor's pressure value can be obtained after collecting DC current.
[0071] To better understand the acquisition of temperature and pressure values from the target sensor in the sensor matrix in step S101 above, we will use a piezoresistive sensor network with 1000 rows and 990 columns as an example:
[0072] The sampling period is set to 1ms, and the sampling rate of the data acquisition module is 1kS / s;
[0073] During the first sampling period, the control system provides... Figure 2 Each piezoresistive sensor in the first column is provided with AC power at a frequency of 100kHz for 11us. During this period, the data acquisition module acquires 11 first electrical signal data from each piezoresistive sensor. A waveform is obtained using these 11 first electrical signal data. The waveform is decoupled to obtain the temperature and pressure values of the piezoresistive sensor. The sampling time for the first column is 11us.
[0074] A schematic diagram of the waveform of a piezoresistive sensor provided in the embodiments of this application is shown below. Figure 5 As shown, Figure 5 The horizontal axis represents the voltage value, the vertical axis represents the current value, and the slope of the straight line represents the ratio of current to voltage, which is the reciprocal of the resistance value.
[0075] Assuming the ratio of current to voltage of the sensor in the first row of the first column is less than the ratio of current to voltage of the sensor in the second row of the first column is less than the ratio of current to voltage of the sensor in the third row of the first column, and the average temperature of the sensor in the first column is 20K, then we can obtain the temperature value of the sensor in the first row of the first column as 20K and the pressure value as 0KPa, the temperature value of the sensor in the second row of the first column as 20K and the pressure value as 10KPa, and the temperature value of the sensor in the third row of the first column as 20K and the pressure value as 50KPa.
[0076] The reason why the temperature value of the sensor in the first row of the first column is 20K and the pressure value is 0KPa, the temperature value of the sensor in the second row of the first column is 20K and the pressure value is 10KPa, and the temperature value of the sensor in the third row of the first column is 20K and the pressure value is 50KPa is because the piezoresistive sensor has the characteristic that, under the same temperature value, the larger the resistance, the smaller the pressure value.
[0077] Piezoresistive sensors also have the characteristic that, under the same pressure value, the higher the resistance, the higher the temperature value.
[0078] During the remaining time of the first sampling cycle, the control system provides DC power to each sensor in the other columns. Each column is continuously supplied with DC power for 1µs. During this period, the data acquisition module acquires one second electrical signal data from each piezoresistive sensor. The total sampling time for the other columns is 989µs.
[0079] At this point, assuming the second electrical signal data of the piezoresistive sensor in the third column and third row is a voltage value of 0.5mV and a current value of 0.2uA, then the corresponding... Figure 5 We can obtain the temperature value of the piezoresistive sensor in the 3rd column and 3rd row as 20K and the pressure value as 0KPa.
[0080] During the second sampling period, the control system provides AC power at a frequency of 100kHz to each piezoresistive sensor in the 11th column for 11us. During this period, the data acquisition module acquires 11 first electrical signal data from each piezoresistive sensor. A waveform is obtained using these 11 first electrical signal data. The waveform is decoupled to obtain the temperature and pressure values of the piezoresistive sensor. The sampling time for the 11th column is 11us.
[0081] During the remaining time of the second sampling cycle, the control system provides DC power to each sensor in the other columns. Each column is continuously supplied with DC power for 1µs. During this period, the data acquisition module acquires one second electrical signal data from each piezoresistive sensor. The total sampling time for the other columns is 989µs.
[0082] During the kth sampling period, the control system provides AC power at a frequency of 100kHz to each piezoresistive sensor in the k*10+1th column for 11us. During this period, the data acquisition module acquires 11 first electrical signal data from each piezoresistive sensor. A waveform is obtained using these 11 first electrical signal data. The waveform is decoupled to obtain the temperature and pressure values of the piezoresistive sensor. The sampling time for the k*10+1th column is 11us.
[0083] During the remaining time of the kth sampling period, the control system provides DC power to each sensor in the other columns. Each column is continuously supplied with DC power for 1µs. During this period, the data acquisition module acquires one second electrical signal data from each piezoresistive sensor. The total sampling time for the other columns is 989µs.
[0084] The entire piezoresistive sensor network of 1000 rows and 990 columns requires a total of 99 samples, taking a total of 99ms.
[0085] In this embodiment, the temperature sampling rate is lower than the pressure sampling rate. Compared with the traditional method of providing AC power to each sensor and decoupling its output signal to obtain temperature and pressure, the method provided in this embodiment increases the pressure sampling rate by reducing the temperature sampling rate. Moreover, the sampling time of the traditional method is much longer than that of the method in this embodiment. Furthermore, the response time of current flexible sensors can already be less than 4ms. With the development of sensor technology, the response time of flexible sensors will be further reduced, and the requirements for the data sampling rate of sensor networks will be further increased. That is, the data sampling rate of sensor networks needs to be as high as possible. The sensor data acquisition method provided in this application can greatly reduce the acquisition time of sensor networks and increase the data sampling rate, thus meeting the requirements for the data sampling rate of sensor networks.
[0086] Figure 6 This is a flowchart illustrating a method for correcting abnormal temperature values provided in an embodiment of this application. (Refer to...) Figure 6 This embodiment relates to an implementation method for correcting abnormal temperature values. Based on the above embodiment, the method further includes:
[0087] S601, if the temperature value of the target sensor is abnormal, the control module provides AC power to each sensor in the neighborhood of the target sensor to obtain the temperature value of each sensor in the neighborhood.
[0088] When the target sensor is the sensor in the 2nd column and the 2nd row, if the temperature value of the target sensor is abnormal, then AC power can be provided to the four sensors in the 1st column and the 2nd row, the 3rd column and the 2nd row, the 2nd column and the 1st row, and the 2nd column and the 3rd row to obtain the temperature values of the four sensors in the four neighboring areas above, below, left, and right of the target sensor.
[0089] S602, determine the temperature-weighted average value of the neighborhood sensor based on the temperature values of each sensor in the neighborhood of the target sensor.
[0090] In this embodiment, the temperature-weighted average value of the neighborhood sensor is determined based on the temperature values of each sensor in the neighborhood of the target sensor and their corresponding location distances.
[0091] S603 corrects the temperature value of the target sensor based on the temperature-weighted average value.
[0092] In this embodiment, by correcting the temperature value of the target sensor based on the temperature-weighted average, the accuracy of temperature value acquisition can be improved.
[0093] Figure 7 This is a flowchart illustrating a method for correcting abnormal pressure values provided in an embodiment of this application. (Refer to...) Figure 7 This embodiment relates to an implementation method for correcting abnormal pressure values. Based on the above embodiment, the method further includes:
[0094] S701, if the pressure value of the target sensor is abnormal, the control module provides DC power to each sensor in the neighborhood of the target sensor to obtain the pressure value of each sensor in the neighborhood.
[0095] S702, determine the pressure weighted average value of the neighborhood sensor based on the pressure values of each sensor in the neighborhood of the target sensor.
[0096] S703 corrects the pressure value of the target sensor based on the pressure-weighted average value.
[0097] In this embodiment, for example, when the sensors in the first row and first column, the first row and second column, and the first row and third column are located on the same plane and are distributed at equal distances, and the sensor in the first row and second column is the target sensor, the pressure value of the target sensor can be corrected using the formula B = 1 / 2A + 1 / 2C, where B represents the pressure value of the target sensor, A represents the pressure value of the sensor in the first row and first column, and C represents the pressure value of the sensor in the first row and third column, thus improving the accuracy of pressure value acquisition.
[0098] Figure 8 This is a schematic diagram of a sensor network data acquisition process provided in an embodiment of this application, referring to... Figure 8 This embodiment relates to one method for data acquisition using a sensor network. Based on the above embodiment, the sensor network data acquisition process includes the following steps:
[0099] S801, the control module provides AC power to each sensor in the target column and DC power to each sensor in other columns.
[0100] S802. Analyze each sensor in the sensor matrix.
[0101] For example, obtain the temperature and pressure values of each sensor in the sensor matrix.
[0102] S803. Determine if the sensor temperature parameters are abnormal.
[0103] For example, if the temperature value of the target sensor differs from the weighted average temperature of all sensors in its neighborhood by more than 5°C, the temperature parameter of the target sensor is considered abnormal.
[0104] If the sensor temperature parameters are normal, execute S805; if the sensor temperature parameters are abnormal, execute S804.
[0105] S804. The control module provides AC power to each sensor in the neighborhood of the sensor.
[0106] For example, the control module provides AC power to each sensor in the neighborhood of the target sensor to obtain the temperature value of each sensor in the neighborhood. Based on the temperature values of each sensor in the neighborhood of the target sensor, the temperature weighted average value of the neighborhood is determined, and the temperature value of the target sensor is corrected based on the temperature weighted average value.
[0107] S805. Determine if the sensor pressure parameters are abnormal.
[0108] For example, if the temperature value of the target sensor differs from the average pressure value of all sensors in its neighborhood by more than 30%, the pressure parameter of the target sensor is considered abnormal.
[0109] If the sensor pressure parameters are normal, execute S807; if the sensor pressure parameters are abnormal, execute S806.
[0110] S806. The control module provides DC power to each sensor in the neighborhood of the sensor.
[0111] For example, the control module provides DC power to each sensor in the neighborhood of the target sensor to obtain the pressure value of each sensor in the neighborhood. Based on the pressure values of each sensor in the neighborhood of the target sensor, the pressure weighted average value of the neighborhood is determined, and the pressure value of the target sensor is corrected based on the pressure weighted average value.
[0112] S807. Determine whether the sensor data in column i and rows 1 to j is lost.
[0113] If the sensor data in column i and rows 1 to j are not lost, execute S809; if the sensor data in column i and rows 1 to j are lost, execute S808.
[0114] S808: Obtain the sensor data collected from the i-th column and rows 1 to j by switching the i-th control port corresponding to the i-th column to the i'-th control port.
[0115] S809. Determine whether the sensor data in row j and columns i+1 to n is lost.
[0116] If the sensor data in row j and columns i+1 to n are not lost, the data acquisition process ends; if the sensor data in row j and columns i+1 to n are lost, S810 is executed.
[0117] S810: By switching the j-th acquisition port corresponding to the j-th row to the j'-th acquisition port, the sensor acquisition data of the j-th row and the i+1 to n-th columns are obtained.
[0118] S811, Store abnormal data to the control module.
[0119] Reference Figure 9 , Figure 9 This is a structural block diagram of a sensor data acquisition device provided in this application embodiment. The device 900 includes an acquisition module 901 and a processing module 902. The device 900 is applied to a sensor network, which includes a data acquisition module, a control module, and a sensor matrix. The first end of the sensor in the j-th row and i-th column of the sensor matrix is connected to the j-th row line of the data acquisition module, and the second end is connected to the i-th column line of the control module. The two ends of the j-th row line are connected to the j-th and j'-th acquisition ports of the data acquisition module, and the two ends of the i-th column line are connected to the i-th and i'-th control ports of the control module. The device 900 can be deployed in the data acquisition module or in the control module. The device 900 includes:
[0120] The acquisition module 901 is used to acquire the temperature and pressure values of the target sensors in the sensor matrix.
[0121] The processing module 902 is used to switch the i-th control port corresponding to the i-th column to the i'-th control port to acquire the sensor data of the i-th column and the 1st to j-th rows if the temperature and pressure values are normal and no data is acquired from the sensors in the i-th column and the 1st to j-th rows.
[0122] The sensor data acquisition device provided in this embodiment acquires the temperature and pressure values of the target sensors in the sensor matrix through an acquisition module. If both the temperature and pressure values are normal, and no data is acquired from the sensors in column i and rows j, the acquisition module switches the i-th control port corresponding to column i to the i' control port to acquire the data from those sensors. Traditional technologies acquire sensor data through a parallel topology sensor network. When a line in a traditional sensor network fails, sensor data cannot be acquired. However, in this embodiment, if no data is acquired from the sensors in column i and rows j, the i-th control port corresponding to column i is switched to the i' control port to acquire the data from those sensors. This avoids the situation where sensor data cannot be acquired due to partial line disconnection or partial port abnormalities, thus solving the problem of low reliability in traditional sensor networks.
[0123] Optionally, the device may also include:
[0124] The data acquisition module is used to switch the j-th acquisition port corresponding to the j-th row of the target sensor to the j'-th acquisition port if the temperature and pressure values are normal and no data is acquired from the sensors in the j-th row and i+1 to n-th columns of the target sensor. Here, n is the total number of columns in the sensor network.
[0125] Optionally, if the target sensor is a sensor in a target column determined by a preset number of columns in the sensor matrix, the acquisition module 901 includes:
[0126] The first power supply unit is used to provide AC power to each sensor in the target column through the control module, so that the data acquisition module can acquire the first electrical signal data of the target sensor;
[0127] The data acquisition unit is used to obtain the temperature and pressure values of the target sensor based on the first electrical signal data.
[0128] Optionally, if the target sensor is a sensor in another column that has the same sampling period as the target column, the acquisition module 901 includes:
[0129] The temperature value determination unit is used to take the temperature value determined based on the electrical signal data of each sensor in the target column as the temperature value of the target sensor;
[0130] The second power supply unit is used to provide DC power to the target sensor through the control module so that the data acquisition module can acquire the second electrical signal data of the target sensor.
[0131] The determining unit is used to determine the pressure value of the target sensor based on the second electrical signal data and the temperature values of each sensor in the target column.
[0132] Optionally, the device may also include:
[0133] The temperature value acquisition module is used to provide AC power to each sensor in the neighborhood of the target sensor through the control module if the temperature value of the target sensor is abnormal, so as to obtain the temperature value of each sensor in the neighborhood.
[0134] The average value acquisition module is used to determine the temperature-weighted average value of the neighborhood sensor based on the temperature values of each sensor in the neighborhood of the target sensor.
[0135] The first correction module is used to correct the temperature value of the target sensor based on the temperature-weighted average value.
[0136] Optionally, the device may also include:
[0137] The pressure value acquisition module is used to provide DC power to each sensor in the neighborhood of the target sensor through the control module if the pressure value of the target sensor is abnormal, so as to obtain the pressure value of each sensor in the neighborhood.
[0138] The weighted average module is used to determine the weighted average pressure value of the neighborhood sensor based on the pressure values of each sensor in the neighborhood of the target sensor.
[0139] The second correction module is used to correct the pressure value of the target sensor based on the pressure-weighted average value.
[0140] Each module in the aforementioned sensor data acquisition device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0141] Figure 10 This is an internal structural diagram of a computer device according to an embodiment of this application. In this embodiment, a computer device is provided, and its internal structural diagram can be as follows: Figure 10As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a sensor data acquisition method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0142] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0143] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the sensor data acquisition method provided in the above embodiment.
[0144] Acquire the temperature and pressure values of the target sensor in the sensor matrix;
[0145] If the temperature and pressure values are both normal, and no data is acquired from the sensors in column i and rows j, then switch the i-th control port corresponding to column i to the i'-th control port to acquire the data from the sensors in column i and rows j.
[0146] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0147] If both the temperature and pressure values are normal, and no data is acquired from the sensors in the j-th row and i+1 to n-th columns of the target sensor, then the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the data from the sensors in the j-th row and i+1 to n-th columns of the target sensor, where n is the total number of columns in the sensor network.
[0148] In one embodiment, if the target sensor is a sensor in a target column determined by a preset number of columns in the sensor matrix, the processor, when executing the computer program, further implements the following steps:
[0149] The control module supplies AC power to each sensor in the target column so that the data acquisition module can acquire the first electrical signal data of the target sensor.
[0150] Based on the first electrical signal data, the temperature and pressure values of the target sensor are obtained.
[0151] In one embodiment, if the target sensor is a sensor in another column that has the same sampling period as the target column, the processor, when executing the computer program, also performs the following steps:
[0152] The temperature value determined based on the electrical signal data of each sensor in the target column is used as the temperature value of the target sensor;
[0153] The control module supplies DC power to the target sensor so that the data acquisition module can acquire the second electrical signal data of the target sensor.
[0154] The pressure value of the target sensor is determined based on the second electrical signal data and the temperature values of each sensor in the target column.
[0155] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0156] If the temperature value of the target sensor is abnormal, the control module provides AC power to each sensor in the neighborhood of the target sensor in order to obtain the temperature value of each sensor in the neighborhood.
[0157] Based on the temperature values of each sensor in the neighborhood of the target sensor, determine the temperature-weighted average value corresponding to the neighborhood;
[0158] The temperature value of the target sensor is corrected based on the temperature-weighted average.
[0159] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0160] If the pressure value of the target sensor is abnormal, the control module provides DC power to each sensor in the neighborhood of the target sensor to obtain the pressure value of each sensor in the neighborhood.
[0161] Based on the pressure values of each sensor in the neighborhood of the target sensor, determine the pressure-weighted average value corresponding to the neighborhood;
[0162] The pressure value of the target sensor is corrected based on the pressure-weighted average value.
[0163] The implementation principle and technical effects of the above embodiments are similar to those of the above method embodiments, and will not be repeated here.
[0164] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the sensor data acquisition method provided in the above embodiment:
[0165] Acquire the temperature and pressure values of the target sensor in the sensor matrix;
[0166] If the temperature and pressure values are both normal, and no data is acquired from the sensors in column i and rows j, then switch the i-th control port corresponding to column i to the i'-th control port to acquire the data from the sensors in column i and rows j.
[0167] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0168] If both the temperature and pressure values are normal, and no data is acquired from the sensors in the j-th row and i+1 to n-th columns of the target sensor, then the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the data from the sensors in the j-th row and i+1 to n-th columns of the target sensor, where n is the total number of columns in the sensor network.
[0169] In one embodiment, if the target sensor is a sensor in a target column determined by a preset number of columns in the sensor matrix, the computer program, when executed by the processor, further implements the following steps:
[0170] The control module supplies AC power to each sensor in the target column so that the data acquisition module can acquire the first electrical signal data of the target sensor.
[0171] Based on the first electrical signal data, the temperature and pressure values of the target sensor are obtained.
[0172] In one embodiment, if the target sensor is a sensor in another column that has the same sampling period as the target column, the computer program, when executed by the processor, also performs the following steps:
[0173] The temperature value determined based on the electrical signal data of each sensor in the target column is used as the temperature value of the target sensor;
[0174] The control module supplies DC power to the target sensor so that the data acquisition module can acquire the second electrical signal data of the target sensor.
[0175] The pressure value of the target sensor is determined based on the second electrical signal data and the temperature values of each sensor in the target column.
[0176] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0177] If the temperature value of the target sensor is abnormal, the control module provides AC power to each sensor in the neighborhood of the target sensor in order to obtain the temperature value of each sensor in the neighborhood.
[0178] Based on the temperature values of each sensor in the neighborhood of the target sensor, determine the temperature-weighted average value corresponding to the neighborhood;
[0179] The temperature value of the target sensor is corrected based on the temperature-weighted average.
[0180] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0181] If the pressure value of the target sensor is abnormal, the control module provides DC power to each sensor in the neighborhood of the target sensor to obtain the pressure value of each sensor in the neighborhood.
[0182] Based on the pressure values of each sensor in the neighborhood of the target sensor, determine the pressure-weighted average value corresponding to the neighborhood;
[0183] The pressure value of the target sensor is corrected based on the pressure-weighted average value.
[0184] The implementation principle and technical effects of the above embodiments are similar to those of the above method embodiments, and will not be repeated here.
[0185] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the sensor data acquisition method provided in the above embodiment:
[0186] Acquire the temperature and pressure values of the target sensor in the sensor matrix;
[0187] If the temperature and pressure values are both normal, and no data is acquired from the sensors in column i and rows j, then switch the i-th control port corresponding to column i to the i'-th control port to acquire the data from the sensors in column i and rows j.
[0188] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0189] If both the temperature and pressure values are normal, and no data is acquired from the sensors in the j-th row and i+1 to n-th columns of the target sensor, then the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the data from the sensors in the j-th row and i+1 to n-th columns of the target sensor, where n is the total number of columns in the sensor network.
[0190] In one embodiment, if the target sensor is a sensor in a target column determined by a preset number of columns in the sensor matrix, the computer program, when executed by the processor, further implements the following steps:
[0191] The control module supplies AC power to each sensor in the target column so that the data acquisition module can acquire the first electrical signal data of the target sensor.
[0192] Based on the first electrical signal data, the temperature and pressure values of the target sensor are obtained.
[0193] In one embodiment, if the target sensor is a sensor in another column that has the same sampling period as the target column, the computer program, when executed by the processor, also performs the following steps:
[0194] The temperature value determined based on the electrical signal data of each sensor in the target column is used as the temperature value of the target sensor;
[0195] The control module supplies DC power to the target sensor so that the data acquisition module can acquire the second electrical signal data of the target sensor.
[0196] The pressure value of the target sensor is determined based on the second electrical signal data and the temperature values of each sensor in the target column.
[0197] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0198] If the temperature value of the target sensor is abnormal, the control module provides AC power to each sensor in the neighborhood of the target sensor in order to obtain the temperature value of each sensor in the neighborhood.
[0199] Based on the temperature values of each sensor in the neighborhood of the target sensor, determine the temperature-weighted average value corresponding to the neighborhood;
[0200] The temperature value of the target sensor is corrected based on the temperature-weighted average.
[0201] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0202] If the pressure value of the target sensor is abnormal, the control module provides DC power to each sensor in the neighborhood of the target sensor to obtain the pressure value of each sensor in the neighborhood.
[0203] Based on the pressure values of each sensor in the neighborhood of the target sensor, determine the pressure-weighted average value corresponding to the neighborhood;
[0204] The pressure value of the target sensor is corrected based on the pressure-weighted average value.
[0205] The implementation principle and technical effects of the above embodiments are similar to those of the above method embodiments, and will not be repeated here.
[0206] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0207] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0208] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0209] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A sensor data acquisition method, characterized in that, The method is applied to a sensor network, which includes a data acquisition module, a control module, and a sensor matrix. The first end of a sensor in the j-th row and i-th column of the sensor matrix is connected to the j-th row of the data acquisition module, and the second end is connected to the i-th column of the control module. The two ends of the j-th row are connected to the j-th and j'-th acquisition ports of the data acquisition module, and the two ends of the i-th column are connected to the i-th and i'-th control ports of the control module. The method includes: Obtain the temperature and pressure values of the target sensors in the sensor matrix; If both the temperature and pressure values are normal, and no data is acquired from the sensors in the i-th column and rows 1 to j of the target sensor, then the i-th control port corresponding to the i-th column is switched to the i'-th control port to acquire the data from the sensors in the i-th column and rows 1 to j. If the target sensor is a sensor in a target column determined by a preset number of columns in the sensor matrix, the step of obtaining the temperature and pressure values of the target sensor in the sensor matrix includes: The control module provides AC power to each sensor in the target array so that the data acquisition module can acquire the first electrical signal data of the target sensor. The first electrical signal data consists of the continuous current value and voltage value of the target sensor, wherein the voltage value is determined by the output of the control module. The first electrical signal data is decoupled and calculated to obtain the temperature value and pressure value of the target sensor. If the target sensor is a sensor in another column that has the same sampling period as the target column, obtaining the temperature and pressure values of the target sensor in the sensor matrix includes: The temperature value determined based on the electrical signal data of each sensor in the target column is used as the temperature value of the target sensor; DC power is supplied to the target sensor through the control module so that the data acquisition module can acquire the second electrical signal data of the target sensor, the second electrical signal data being a single current value and voltage value of the target sensor, wherein the voltage value is determined by the output of the control module; the pressure value of the target sensor is determined based on the second electrical signal data and the temperature values of each sensor in the target column.
2. The method according to claim 1, characterized in that, The method further includes: If both the temperature and pressure values are normal, and no data is acquired from the sensors in the j-th row and i+1 to n-th columns of the target sensor, then the j-th acquisition port corresponding to the j-th row of the target sensor is switched to the j'-th acquisition port to acquire the data from the sensors in the j-th row and i+1 to n-th columns of the target sensor, where n is the total number of columns in the sensor network.
3. The method according to claim 1 or 2, characterized in that, The method further includes: If the temperature value of the target sensor is abnormal, the control module provides AC power to each sensor in the neighborhood of the target sensor to obtain the temperature value of each sensor in the neighborhood. Based on the temperature values of each sensor in the neighborhood of the target sensor, determine the temperature-weighted average value corresponding to the neighborhood; The temperature value of the target sensor is corrected based on the temperature-weighted average value.
4. The method according to claim 1 or 2, characterized in that, The method further includes: If the pressure value of the target sensor is abnormal, the control module provides DC power to each sensor in the neighborhood of the target sensor to obtain the pressure value of each sensor in the neighborhood. Based on the pressure values of each sensor in the neighborhood of the target sensor, determine the pressure-weighted average value corresponding to the neighborhood; The pressure value of the target sensor is corrected based on the pressure-weighted average value.
5. A sensor data acquisition device, characterized in that, The device is applied to a sensor network, which includes a data acquisition module, a control module, and a sensor matrix. The first end of a sensor in the j-th row and i-th column of the sensor matrix is connected to the j-th row of the data acquisition module, and the second end is connected to the i-th column of the control module. Both ends of the j-th row are connected to the j-th and j'-th acquisition ports of the data acquisition module, and both ends of the i-th column are connected to the i-th and i'-th control ports of the control module. The device includes: The acquisition module is used to acquire the temperature and pressure values of the target sensors in the sensor matrix; The processing module is configured to, if the temperature value and the pressure value are both normal and no data is acquired from the sensors in the i-th column and rows 1 to j, switch the i-th control port corresponding to the i-th column to the i'-th control port to acquire the data acquired from the sensors in the i-th column and rows 1 to j. If the target sensor is a sensor in a target column determined by a preset number of columns at each interval in the sensor matrix, the acquisition module includes: The first power supply unit is used to provide AC power to each sensor in the target column through the control module, so that the data acquisition module can acquire the first electrical signal data of the target sensor. The first electrical signal data is the continuous current value and voltage value of the target sensor, wherein the voltage value is determined by the output of the control module. The data acquisition unit is used to perform decoupled calculation on the first electrical signal data to obtain the temperature value and pressure value of the target sensor. If the target sensor is a sensor in another column that has the same sampling period as the target column, the acquisition module includes: a temperature value determination unit, used to use the temperature value determined based on the electrical signal data of each sensor in the target column as the temperature value of the target sensor; a second power supply unit, used to provide DC power to the target sensor through the control module so that the data acquisition module can acquire the second electrical signal data of the target sensor, the second electrical signal data being a single current value and voltage value of the target sensor, wherein the voltage value is determined by the output of the control module; and a determination unit, used to determine the pressure value of the target sensor based on the second electrical signal data and the temperature values of each sensor in the target column.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.