A data transmission encoding method and system for multi-gas identification sensor

By performing scale equalization processing and encoding of gas identification sensor data, and generating coordinate seed data, the computing power demand problem caused by large data volume is solved, data transmission efficiency and security are improved, and efficient data transmission is achieved.

CN119031011BActive Publication Date: 2024-12-31SHENZHEN EXSAF ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411507343.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2024-12-31
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

When the amount of gas identification sensor data is large, a large computing power requirement is required, which affects the timeliness of data transmission.

Method used

By building a sensor combination grid, the time node data is scale-equilibrium processed and sorted, coordinate seed data is generated, and data transmission is carried out. The receiving end performs data recovery based on the coordinate seed data and scale-equilibrium data, realizing data encoding and decoding, and reducing data Handle computing power requirements.

Benefits of technology

It improves data transmission efficiency, ensures data security, and achieves efficient data transmission without separate encryption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031011B_ABST
    Figure CN119031011B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the technical field of data transmission, and in particular, relates to a data transmission encoding method and system for multiple gas identification sensors, the method comprising: constructing a sensor combination grid according to the number of the gas identification sensor, each grid corresponding to a combination mode; obtaining time node data, performing scale-balanced processing on the time node data, and sorting the data to obtain scale-balanced data; querying the sensor combination grid, determining the grid coordinates, and generating coordinate seed data based on a preset coordinate generation function; transmitting the coordinate seed data and scale-balanced data, performing data recovery, and obtaining the time node data. The present invention uniformly processes the collected data of multiple groups of gas identification sensors, re-encodes the data without separate encryption, and does not directly transmit the data, thereby reducing the data processing computing power requirements, improving the data transmission efficiency and ensuring data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data transmission, and in particular relates to a data transmission encoding method and system for a multi-gas identification sensor. Background Art

[0002] Gas identification sensors are devices used to detect and measure the concentration of specific gases in the environment. They identify the presence and concentration of gases through different working principles (such as electrochemistry, infrared absorption, catalytic combustion, metal oxide semiconductors, etc.). They are widely used in industrial safety, environmental monitoring, medical health and smart homes, and can effectively prevent accidents, protect people's health and improve the quality of life. For example, metal oxide semiconductor sensors are widely used to detect combustible and toxic gases due to their low cost, fast response and wide range of applications.

[0003] In the field of gas monitoring, since different gas identification sensors can detect different gases, multiple gas identification sensors need to be set up for synchronous monitoring. In order to ensure data security, the data of the gas identification sensors need to be encrypted and transmitted separately. When the amount of gas identification sensor data is large, a large computing power requirement is required, which affects the timeliness of data transmission. Summary of the invention

[0004] The purpose of the present invention is to provide a data transmission encoding method for a multi-gas identification sensor, aiming to solve the problem that when the amount of gas identification sensor data is large, a large computing power requirement is required, which affects the timeliness of data transmission.

[0005] The present invention is implemented as follows: a data transmission encoding method for a multi-gas identification sensor, the method comprising:

[0006] A sensor combination grid is constructed according to the number of the gas identification sensor, and each grid corresponds to a combination mode;

[0007] Obtaining time node data detected by each gas identification sensor, performing scale-balanced processing on the time node data, and sorting the data to obtain scale-balanced data;

[0008] querying the sensor combination grid according to the arrangement order of data in the scale-balanced data, determining the grid coordinates, and generating coordinate seed data based on a preset coordinate generation function;

[0009] The coordinate seed data and the scale-balanced data are transmitted, and the data receiving end performs data recovery after receiving the coordinate seed data and the scale-balanced data to obtain the time node data.

[0010] Preferably, the step of acquiring the time node data detected by each gas identification sensor, performing scale-balanced processing on the time node data, and sorting the time node data to obtain scale-balanced data specifically includes:

[0011] Acquire time node data from each gas identification sensor at a preset time interval, and the time node data collected in the same batch have the same collection time;

[0012] According to the type of each gas identification sensor, the preset data range is called up, and scale balancing is performed based on the position of the time node data within the data range. After scale balancing, the maximum and minimum values ​​of all time node data are the same;

[0013] The time node data after scale equalization are spliced ​​in order of size to obtain scale equalized data.

[0014] Preferably, the steps of querying the sensor combination grid according to the arrangement order of data in the scale-balanced data, determining the grid coordinates, and generating the coordinate seed data based on a preset coordinate generation function specifically include:

[0015] Read the number of the gas identification sensor corresponding to each time node data in the scale balance data, and construct a number sequence;

[0016] Based on the number sequence, the sensor combination grid is queried to obtain the grid coordinates, and a preset coordinate generation function is called;

[0017] Substitute the horizontal coordinate and the vertical coordinate of the grid coordinate into the coordinate generation function to obtain coordinate seed data, wherein the coordinate seed data includes at least two sets of values.

[0018] Preferably, the coordinate seed data and the scale-balanced data are transmitted, and the data receiving end performs data recovery after receiving the coordinate seed data and the scale-balanced data to obtain the step of time node data, specifically including:

[0019] Synchronously transmitting the coordinate seed data and the scale-balanced data to a data receiving end, wherein the coordinate seed data and the scale-balanced data have a matching corresponding relationship;

[0020] Retrieve the coordinate seed data, and import them into the preset combined query function in sequence to obtain at least two sets of calculated values;

[0021] The sensor combination grid is queried based on the calculated values ​​to extract the coding order, the scale-balanced data is parsed based on the coding order, and the scale is restored to determine the identity of the time node data.

[0022] Preferably, the sensor combination grid is updated regularly, and the updated sensor combination grid is synchronized to the data collection end and the data receiving end.

[0023] Another object of the present invention is to provide a data transmission encoding system for a multi-gas identification sensor, the system comprising:

[0024] A grid construction module is used to construct a sensor combination grid according to the numbers of the gas identification sensors, and each grid corresponds to a combination mode;

[0025] The scale balancing module is used to obtain the time node data detected by each gas identification sensor, perform scale balancing on the time node data, and sort the data to obtain scale balancing data;

[0026] A seed data generation module is used to query the sensor combination grid according to the arrangement order of data in the scale-balanced data, determine the grid coordinates, and generate coordinate seed data based on a preset coordinate generation function;

[0027] The data recovery module is used to transmit the coordinate seed data and the scale-balanced data. After receiving the coordinate seed data and the scale-balanced data, the data receiving end performs data recovery to obtain the time node data.

[0028] Preferably, the scale balancing module includes:

[0029] A data acquisition unit, used to acquire time node data from each gas identification sensor at a preset time interval, and the time node data acquired in the same batch have the same acquisition time;

[0030] The scale unification unit is used to call the preset data range according to the type of each gas identification sensor, and perform scale balancing processing based on the position of the time node data within the data range. After the scale balancing processing, the maximum and minimum values ​​of all time node data are the same;

[0031] The data splicing unit is used to splice the time node data after scale equalization processing in order of size to obtain scale equalized data.

[0032] Preferably, the seed data generation module includes:

[0033] A numbering sequence building unit is used to read the number of the gas identification sensor corresponding to each time node data in the scale-balanced data to build a numbering sequence;

[0034] A coordinate query unit, used to query the sensor combination grid based on the number sequence, obtain the grid coordinates, and call a preset coordinate generation function;

[0035] The data calculation unit is used to substitute the horizontal coordinate and the vertical coordinate of the grid coordinate into the coordinate generation function to obtain the coordinate seed data, wherein the coordinate seed data includes at least two groups of values.

[0036] Preferably, the data recovery module includes:

[0037] A data receiving unit, used for synchronously transmitting the coordinate seed data and the scale equalization data to the data receiving end, wherein the coordinate seed data and the scale equalization data have a matching corresponding relationship;

[0038] A function calculation unit, used to retrieve coordinate seed data and import them into a preset combination query function in sequence to obtain at least two sets of calculation values;

[0039] The data parsing unit is used to query the sensor combination grid to extract the coding sequence according to the calculated value, parse the scale-balanced data according to the coding sequence, and perform scale recovery to determine the identity of the time node data.

[0040] Preferably, the sensor combination grid is updated regularly, and the updated sensor combination grid is synchronized to the data collection end and the data receiving end.

[0041] The data transmission encoding method for multiple gas identification sensors provided by the present invention uniformly processes the collected data of multiple groups of gas identification sensors, re-encodes the data without separately encrypting them, and does not directly transmit the data. This improves the data transmission efficiency and ensures data security while reducing the data processing computing power requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flowchart of a data transmission encoding method for a multi-gas identification sensor provided by an embodiment of the present invention;

[0043] Figure 2 A flowchart of the steps of obtaining time node data detected by each gas identification sensor, performing scale-balance processing on the time node data, and sorting the time node data to obtain scale-balanced data provided by an embodiment of the present invention;

[0044] Figure 3 A flowchart of the steps of querying a sensor combination grid according to the arrangement order of data in scale-balanced data, determining grid coordinates, and generating coordinate seed data based on a preset coordinate generation function provided by an embodiment of the present invention;

[0045] Figure 4 A flowchart of the steps of transmitting coordinate seed data and scale-balanced data, and recovering data after receiving the coordinate seed data and scale-balanced data, to obtain time node data provided by an embodiment of the present invention;

[0046] Figure 5 An architectural diagram of a data transmission encoding system for a multi-gas identification sensor provided by an embodiment of the present invention;

[0047] Figure 6 An architecture diagram of a scale balancing module provided in an embodiment of the present invention;

[0048] Figure 7 An architecture diagram of a seed data generation module provided in an embodiment of the present invention;

[0049] Figure 8 An architectural diagram of a data recovery module provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0051] like Figure 1 FIG. 1 is a flow chart of a data transmission encoding method for a multi-gas identification sensor provided by an embodiment of the present invention, the method comprising:

[0052] S100, constructing a sensor combination grid according to the serial numbers of the gas identification sensors, wherein each grid corresponds to a combination mode.

[0053] In this step, a sensor combination grid is constructed according to the number of the gas identification sensor, and the numbers of all gas identification sensors are extracted. Each gas identification sensor has a unique number. When data encoding and transmission are performed, the data of multiple gas identification sensors need to be mixed and encoded, and then transmitted. In the process of mixed encoding, the data needs to be spliced. There are multiple grids in the sensor combination grid, and each grid records a combination method, that is, the combination method of all encodings. For example, if there are 10 gas identification sensors, there will be ten numbers corresponding to them. The ten numbers can form a total of 10 combinations. Each combination method corresponds to a number encoding sequence. When performing data analysis, the gas identification sensor corresponding to the data is determined according to the above encoding sequence.

[0054] S200, obtaining time node data detected by each gas identification sensor, performing scale-balance processing on the time node data, and sorting the data to obtain scale-balanced data.

[0055] In this step, the time node data detected by each gas identification sensor is obtained. When collecting data, the data collection interval is set according to the needs, so that data collection is continuously performed according to the time interval. Data collection is performed once at each time node to obtain time node data. In the process of one collection, the collected time node data is the same as the number of gas identification sensors. For the gas identification sensor, the data collected is gas concentration and other data, and has a certain range interval. When transmitting data, the time node data is scaled and balanced, and all data are converted into the same data interval, so that the original data is hidden. During the transmission process, even if the data is hijacked, the real data cannot be obtained. The balanced data is then arranged in ascending or descending order and spliced ​​to obtain scale-balanced data.

[0056] S300, querying the sensor combination grid according to the arrangement order of data in the scale-balanced data, determining the grid coordinates, and generating coordinate seed data based on a preset coordinate generation function.

[0057] In this step, the sensor combination grid is queried according to the arrangement order of the data in the scale-balanced data, and the number of the gas identification sensor corresponding to the time node data in the scale-balanced data is first determined, so as to generate a number sequence corresponding to the current scale-balanced data according to the number, and the sensor combination grid is queried according to the number sequence to determine the position of the number sequence in the sensor combination grid and the corresponding grid coordinates, and the preset coordinate generation function is called to import the grid coordinates to generate coordinate seed data.

[0058] S400, the coordinate seed data and the scale-balanced data are transmitted, and after receiving the coordinate seed data and the scale-balanced data, the data receiving end performs data recovery to obtain time node data.

[0059] In this step, the coordinate seed data and scale-balanced data are transmitted, and all gas identification sensors are connected to the data acquisition end. The data acquisition end synchronously transmits the coordinate seed data and scale-balanced data to the data receiving end. In this process, encryption is not required because the data content has changed. Even if it is leaked, it will not cause leakage of the original data. The data receiving end receives the coordinate seed data and scale-balanced data, and calls the combined query function. The coordinate seed data is calculated through the combined query function, and the sensor combination grid is queried according to the calculation result to determine the order of data encoding. According to the order, the scale-balanced data is decrypted and restored to obtain the time node data.

[0060] like Figure 2As shown, as a preferred embodiment of the present invention, the step of obtaining the time node data detected by each gas identification sensor, performing scale-balanced processing on the time node data, and sorting the time node data to obtain scale-balanced data specifically includes:

[0061] S201, acquiring time node data from each gas identification sensor at a preset time interval, and the time node data collected in the same batch have the same collection time.

[0062] In this step, time node data is obtained from each gas identification sensor at a preset time interval. Each gas identification sensor collects data independently, so the time for data collection may be inconsistent. When setting the data collection time interval, it is necessary to ensure that the data collection time interval should be greater than the time interval for the gas identification sensor to perform detection.

[0063] S202, according to the type of each gas identification sensor, a preset data range is retrieved, and scale balancing processing is performed based on the position of the time node data within the data range. After the scale balancing processing, the maximum and minimum values ​​of all time node data are the same.

[0064] In this step, the preset data range is retrieved according to the type of each gas identification sensor. The data range refers to the maximum range that the gas identification sensor can detect. For example, gas identification sensor A is used to detect the concentration of gas a, and the range of the gas concentration is 0-10 g / m3. Gas identification sensor B is used to detect the concentration of gas b, and the range of the gas concentration is 2-20 g / m3. A mapping table is constructed. The mapping table is synchronously stored on the data acquisition end and the data receiving end. The data range corresponding to all gas identification sensors is recorded in the mapping table, and the data range after equalization processing is unified to [0,1]. For example, the gas concentration recorded at a certain time node is P, and its data range is P1-P2. Then, after scale equalization processing, its gas concentration is expressed as ,Through the above operations, the data collected by all gas identification sensors are ,balanced, and the data receiving end can derive the original data P ,according to P1 and P2 recorded in the mapping table.

[0065] S203, splicing the time node data after the scale equalization processing in order of size to obtain scale equalized data.

[0066] In this step, the time node data after scale equalization processing are spliced ​​in order of size. Since all data are in the same interval after equalization processing, the size of the data is random. By arranging in ascending or descending order, it can be determined that the order of data in the scale-balanced data is random.

[0067] like Figure 3 As shown, as a preferred embodiment of the present invention, the steps of querying the sensor combination grid according to the arrangement order of data in the scale-balanced data, determining the grid coordinates, and generating the coordinate seed data based on the preset coordinate generation function specifically include:

[0068] S301, reading the serial number of the gas identification sensor corresponding to each time node data in the scale-balanced data, and constructing a serial number sequence.

[0069] In this step, the number of the gas identification sensor corresponding to each time node data in the scale-balanced data is read. When the scale-balanced data is generated, the data sequence corresponding to each gas identification sensor is determined, and the numbering sequence is determined accordingly, such as A01A04...A09, and other characters can also be used to represent it.

[0070] S302, querying the sensor combination grid based on the number sequence, obtaining the grid coordinates, and calling a preset coordinate generation function.

[0071] In this step, the sensor combination grid is queried based on the number sequence. All number sequences are recorded in the sensor combination grid. Each grid corresponds to a number sequence. When the number of gas identification sensors is large, a three-dimensional grid method can be used, that is, a three-dimensional coordinate system is constructed. The coordinates of each three-dimensional grid are determined by the values ​​on the three coordinate axes. A number sequence is stored in each three-dimensional grid. By querying, the grid coordinates (such as (29, 32)) are obtained, and the preset coordinate generation function is called. The coordinate generation function is used to modify the grid coordinates. For example, the coordinate generation function is .

[0072] S303, substituting the horizontal coordinate and the vertical coordinate of the grid coordinate into the coordinate generation function to obtain coordinate seed data, wherein the coordinate seed data includes at least two groups of values.

[0073] In this step, the horizontal and vertical coordinates of the grid coordinates are substituted into the coordinate generation function. When the sensor combination grid is a three-dimensional grid, the grid coordinates include X coordinates, Y coordinates, and Z coordinates, and the corresponding coordinate seed data also includes three sets of values.

[0074] like Figure 4 As shown, as a preferred embodiment of the present invention, the coordinate seed data and the scale-balanced data are transmitted, and the data receiving end performs data recovery after receiving the coordinate seed data and the scale-balanced data to obtain the time node data, which specifically includes:

[0075] S401, synchronously transmitting the coordinate seed data and the scale-balanced data to a data receiving end, wherein the coordinate seed data and the scale-balanced data have a matching correspondence relationship.

[0076] In this step, the coordinate seed data and scale equalization data are synchronously transmitted to the data receiving end. In this process, encrypted data transmission or unencrypted data transmission can be used. This is because the data has been altered and cannot be used directly. The data receiving end stores the sensor combination grid and mapping table.

[0077] S402, retrieve coordinate seed data, and import them into a preset combination query function in sequence to obtain at least two sets of calculated values.

[0078] In this step, the coordinate seed data is retrieved. After obtaining the coordinate seed data, the numerical value in the coordinate seed data is imported into the preset combined query function. Through the combined query function, the coordinate value of the grid coordinate can be restored. If it is a three-dimensional grid, the number of calculated values ​​is three groups.

[0079] S403, querying the sensor combination grid to extract the coding sequence according to the calculated value, parsing the scale-balanced data according to the coding sequence, and performing scale recovery to determine the identity of the time node data.

[0080] In this step, the sensor combination grid is queried according to the calculated value to extract the coding order. Taking the two-dimensional grid as an example, the combined query function will generate two sets of calculated values, one set of calculated values ​​is used to determine the horizontal coordinate, and the other set of coordinate values ​​is used to determine the vertical coordinate. The coding order in the sensor combination grid is extracted according to the horizontal coordinate and the vertical coordinate. The data splicing order in the scale-balanced data is determined according to the coding order and restored. Taking five gas identification sensors as an example, they are A, B, C, D and E, and their corresponding time node data are a, b, c, d and e, respectively. After scale balancing, they become a`, b`, c`, d` and e`, and the coding order is b` c` e` d` a`, after recovery, we get the original arrangement order, a`, b`, c`, d` and e`, whose values ​​are Ma, Mb, Mc, Md and Me respectively. Then Pa=Ma(P2-P1)+P1, Pb=Mb(P2-P1)+P1, Pc=Mc(P2-P1)+P1, Pd=Md(P2-P1)+P1, Pe=Me(P2-P1)+P1, and we can recover the original data of the time node data.

[0081] In this embodiment, the sensor combination grid is updated regularly, and the updated sensor combination grid is synchronized to the data collection end and the data receiving end.

[0082] like Figure 5 As shown, a data transmission coding system for a multi-gas identification sensor provided by an embodiment of the present invention includes:

[0083] The grid construction module 100 is used to construct a sensor combination grid according to the serial numbers of the gas identification sensors, and each grid corresponds to a combination mode.

[0084] In this system, the grid construction module 100 constructs a sensor combination grid according to the numbers of the gas identification sensors, and extracts the numbers of all gas identification sensors. Each gas identification sensor has a unique number. When data encoding and transmission is performed, the data of multiple gas identification sensors need to be mixed and encoded, and then transmitted. In the process of mixed encoding, the data needs to be spliced. There are multiple grids in the sensor combination grid, and each grid records a combination method, that is, the combination method of all encodings. For example, if there are 10 gas identification sensors, there will be ten numbers corresponding to them. The ten numbers can form a total of 10 combinations. Each combination method corresponds to a number encoding sequence. When data analysis is performed, the gas identification sensor corresponding to the data is determined according to the above encoding sequence.

[0085] The scale equalization module 200 is used to obtain the time node data detected by each gas identification sensor, perform scale equalization processing on the time node data, and sort the time node data to obtain scale equalized data.

[0086] In this system, the scale equalization module 200 obtains the time node data detected by each gas identification sensor. When collecting data, the data collection interval is set according to the demand, so that the gas identification sensor is continuously collected according to the time interval, and data collection is performed once at each time node to obtain the time node data. In the process of one collection, the collected time node data is the same as the number of gas identification sensors. For the gas identification sensor, the data collected is gas concentration and other data, and has a certain range interval. When transmitting data, the time node data is scale-equalized and all data are converted into the same data interval, so that the original data is hidden. During the transmission process, even if the data is hijacked, the real data cannot be obtained. The balanced data is then arranged in ascending or descending order and spliced ​​to obtain scale-equalized data.

[0087] The seed data generation module 300 is used to query the sensor combination grid according to the arrangement order of data in the scale-balanced data, determine the grid coordinates, and generate coordinate seed data based on a preset coordinate generation function.

[0088] In this system, the seed data generation module 300 queries the sensor combination grid according to the arrangement order of the data in the scale-balanced data, first determines the number of the gas identification sensor corresponding to the time node data in the scale-balanced data, and then generates a number sequence corresponding to the current scale-balanced data according to the number, queries the sensor combination grid according to the number sequence, determines the position of the number sequence in the sensor combination grid, and determines the corresponding grid coordinates, calls the preset coordinate generation function, imports the grid coordinates, and generates coordinate seed data.

[0089] The data recovery module 400 is used to transmit the coordinate seed data and the scale-balanced data. After receiving the coordinate seed data and the scale-balanced data, the data receiving end performs data recovery to obtain the time node data.

[0090] In this system, the data recovery module 400 transmits the coordinate seed data and the scale-balanced data. All gas identification sensors are connected to the data acquisition end. The data acquisition end synchronously transmits the coordinate seed data and the scale-balanced data to the data receiving end. In this process, encryption is not required because the data content has changed. Even if it is leaked, it will not cause leakage of the original data. The data receiving end receives the coordinate seed data and the scale-balanced data, and calls the combined query function. The coordinate seed data is calculated through the combined query function. The sensor combination grid is queried according to the calculation result to determine the order of data encoding. The scale-balanced data is decrypted and restored according to the order to obtain the time node data.

[0091] like Figure 6 As shown, as a preferred embodiment of the present invention, the scale equalization module 200 includes:

[0092] The data acquisition unit 201 is used to acquire time node data from each gas identification sensor at a preset time interval. The time node data acquired in the same batch have the same acquisition time.

[0093] In this module, the data acquisition unit 201 acquires time node data from each gas identification sensor at a preset time interval. Each gas identification sensor performs data acquisition independently, so the time for data acquisition may be inconsistent. When setting the data acquisition time interval, it is necessary to ensure that the data acquisition time interval should be greater than the time interval for the gas identification sensor to perform detection.

[0094] The scale unification unit 202 is used to retrieve the preset data range according to the type of each gas identification sensor, and perform scale balancing processing based on the position of the time node data within the data range. After the scale balancing processing, the maximum and minimum values ​​of all time node data are the same.

[0095] In this module, the scale unification unit 202 retrieves the preset data range according to the type of each gas identification sensor. The data range refers to the maximum range that the gas identification sensor can detect. For example, gas identification sensor A is used to detect the concentration of gas a, and the range of the gas concentration is 0-10 g / m3. Gas identification sensor B is used to detect the concentration of gas b, and the range of the gas concentration is 2-20 g / m3. A mapping table is constructed, and the mapping table is synchronously stored at the data acquisition end and the data receiving end. The data range corresponding to all gas identification sensors is recorded in the mapping table, and the data range after equalization processing is unified to [0,1]. For example, the gas concentration recorded at a certain time node is P, and its data range is P1-P2. Then, after scale equalization processing, its gas concentration is expressed as ,Through the above operations, the data collected by all gas identification sensors are ,balanced, and the data receiving end can derive the original data P ,according to P1 and P2 recorded in the mapping table.

[0096] The data splicing unit 203 is used to splice the time node data after the scale equalization processing in order of size to obtain scale equalized data.

[0097] In this module, the data splicing unit 203 splices the time node data after scale equalization processing in order of size. Since all data are in the same interval after equalization processing, the size of the data is random. By arranging in ascending order or descending order, it can be determined that the data order in the obtained scale-equalized data is random.

[0098] like Figure 7 As shown, as a preferred embodiment of the present invention, the seed data generation module 300 includes:

[0099] The numbering sequence building unit 301 is used to read the number of the gas identification sensor corresponding to each time node data in the scale-balanced data, and build a numbering sequence.

[0100] In this module, the numbering sequence construction unit 301 reads the number of the gas identification sensor corresponding to each time node data in the scale-balanced data. When generating the scale-balanced data, the data sequence corresponding to each gas identification sensor is determined, and the numbering sequence is determined accordingly, such as A01A04...A09.

[0101] The coordinate query unit 302 is used to query the sensor combination grid based on the number sequence, obtain the grid coordinates, and call a preset coordinate generation function.

[0102] In this module, the coordinate query unit 302 queries the sensor combination grid based on the number sequence. All number sequences are recorded in the sensor combination grid. Each grid corresponds to a number sequence. When the number of gas identification sensors is large, a three-dimensional grid method can be used, that is, a three-dimensional coordinate system is constructed. The coordinates of each three-dimensional grid are determined by the values ​​on the three coordinate axes. A number sequence is stored in each three-dimensional grid. By querying, the grid coordinates (such as (29, 32)) are obtained, and the preset coordinate generation function is called. The coordinate generation function is used to modify the grid coordinates. For example, the coordinate generation function is .

[0103] The data calculation unit 303 is used to substitute the horizontal coordinate and the vertical coordinate of the grid coordinate into the coordinate generation function to obtain coordinate seed data, wherein the coordinate seed data includes at least two groups of values.

[0104] In this module, the data calculation unit 303 substitutes the horizontal and vertical coordinates of the grid coordinates into the coordinate generation function. When the sensor combination grid is a three-dimensional grid, the grid coordinates include X coordinates, Y coordinates and Z coordinates, and the corresponding coordinate seed data also includes three sets of values.

[0105] like Figure 8 As shown, as a preferred embodiment of the present invention, the data recovery module 400 includes:

[0106] The data receiving unit 401 is used to synchronously transmit the coordinate seed data and the scale equalization data to the data receiving end, and the coordinate seed data and the scale equalization data have a matching corresponding relationship.

[0107] In this module, the data receiving unit 401 synchronously transmits the coordinate seed data and scale equalization data to the data receiving end. In this process, encrypted data transmission or unencrypted data transmission can be used. This is because the data has been altered and cannot be used directly. The data receiving end stores the sensor combination grid and mapping table.

[0108] The function calculation unit 402 is used to retrieve the coordinate seed data and import it into the preset combination query function in sequence to obtain at least two groups of calculated values.

[0109] In this module, the function calculation unit 402 retrieves the coordinate seed data. After obtaining the coordinate seed data, the numerical value in the coordinate seed data is imported into the preset combined query function. Through the combined query function, the coordinate value of the grid coordinate can be restored. If it is a three-dimensional grid, the number of calculated values ​​is three groups.

[0110] The data parsing unit 403 is used to query the sensor combination grid extraction coding sequence according to the calculated value, parse the scale-balanced data according to the coding sequence, perform scale recovery, and determine the identity of the time node data.

[0111] In this module, the data parsing unit 403 queries the sensor combination grid to extract the coding order according to the calculated value. Taking the two-dimensional grid as an example, the combined query function will generate two groups of calculated values, one group of calculated values ​​is used to determine the horizontal coordinate, and one group of coordinate values ​​is used to determine the vertical coordinate. The coding order in the sensor combination grid is extracted according to the horizontal coordinate and the vertical coordinate. The data splicing order in the scale-balanced data is determined according to the coding order and restored. Taking five gas identification sensors as an example, they are A, B, C, D and E, and their corresponding time node data are a, b, c, d and e, respectively. After scale balancing, they become a`, b`, c`, d` and e`, and the coding order is b` c` e` d` a`, after recovery, we get the original arrangement order, a`, b`, c`, d` and e`, whose values ​​are Ma, Mb, Mc, Md and Me respectively. Then Pa=Ma(P2-P1)+P1, Pb=Mb(P2-P1)+P1, Pc=Mc(P2-P1)+P1, Pd=Md(P2-P1)+P1, Pe=Me(P2-P1)+P1, and we can recover the original data of the time node data.

[0112] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A data transmission encoding method for a multi-gas identification sensor, characterized in that: The method comprises: A sensor combination grid is constructed according to the number of the gas identification sensor, and each grid corresponds to a combination mode; Obtaining time node data detected by each gas identification sensor, performing scale-balanced processing on the time node data, and sorting the data to obtain scale-balanced data; querying the sensor combination grid according to the arrangement order of data in the scale-balanced data, determining the grid coordinates, and generating coordinate seed data based on a preset coordinate generation function; The coordinate seed data and scale-balanced data are transmitted, and the data receiving end recovers the data after receiving the coordinate seed data and scale-balanced data to obtain the time node data. The step of acquiring the time node data detected by each gas identification sensor, performing scale-balance processing on the time node data, and sorting the time node data to obtain scale-balanced data specifically includes: Acquire time node data from each gas identification sensor at a preset time interval, and the time node data collected in the same batch have the same collection time; According to the type of each gas identification sensor, the preset data range is called up, and scale balancing is performed based on the position of the time node data within the data range. After scale balancing, the maximum and minimum values ​​of all time node data are the same; The time node data after scale equalization are spliced ​​in order of size to obtain scale equalized data. The steps of querying the sensor combination grid according to the arrangement order of data in the scale-balanced data, determining the grid coordinates, and generating coordinate seed data based on a preset coordinate generation function specifically include: Read the number of the gas identification sensor corresponding to each time node data in the scale balance data, and construct a number sequence; Based on the number sequence, the sensor combination grid is queried to obtain the grid coordinates, and a preset coordinate generation function is called; Substitute the horizontal coordinate and the vertical coordinate of the grid coordinate into the coordinate generation function to obtain coordinate seed data, wherein the coordinate seed data includes at least two sets of values.

2. The data transmission encoding method for a multi-gas identification sensor according to claim 1, characterized in that: The steps of transmitting the coordinate seed data and the scale-balanced data, and recovering the data after receiving the coordinate seed data and the scale-balanced data at the data receiving end to obtain the time node data specifically include: Synchronously transmitting the coordinate seed data and the scale-balanced data to a data receiving end, wherein the coordinate seed data and the scale-balanced data have a matching corresponding relationship; Retrieve the coordinate seed data, and import them into the preset combined query function in sequence to obtain at least two sets of calculated values; The sensor combination grid is queried based on the calculated values ​​to extract the coding order, the scale-balanced data is parsed based on the coding order, and the scale is restored to determine the identity of the time node data.

3. The data transmission encoding method for a multi-gas identification sensor according to claim 1, characterized in that: The sensor combination grid is updated regularly, and the updated sensor combination grid will be synchronized to the data collection end and the data receiving end.

4. A data transmission coding system for a multi-gas identification sensor, characterized in that: The system comprises: A grid construction module is used to construct a sensor combination grid according to the numbers of the gas identification sensors, and each grid corresponds to a combination mode; The scale balancing module is used to obtain the time node data detected by each gas identification sensor, perform scale balancing on the time node data, and sort the data to obtain scale balancing data; A seed data generation module is used to query the sensor combination grid according to the arrangement order of data in the scale-balanced data, determine the grid coordinates, and generate coordinate seed data based on a preset coordinate generation function; The data recovery module is used to transmit the coordinate seed data and scale-balanced data. After receiving the coordinate seed data and scale-balanced data, the data receiving end performs data recovery to obtain the time node data. The scale equalization module includes: A data acquisition unit, used to acquire time node data from each gas identification sensor at a preset time interval, and the time node data acquired in the same batch have the same acquisition time; The scale unification unit is used to call the preset data range according to the type of each gas identification sensor, and perform scale balancing processing based on the position of the time node data within the data range. After the scale balancing processing, the maximum and minimum values ​​of all time node data are the same; The data splicing unit is used to splice the time node data after scale equalization processing in order of size to obtain scale equalized data. The seed data generation module includes: A numbering sequence building unit is used to read the number of the gas identification sensor corresponding to each time node data in the scale-balanced data to build a numbering sequence; A coordinate query unit, used to query the sensor combination grid based on the number sequence, obtain the grid coordinates, and call a preset coordinate generation function; The data calculation unit is used to substitute the horizontal coordinate and the vertical coordinate of the grid coordinate into the coordinate generation function to obtain the coordinate seed data, wherein the coordinate seed data includes at least two groups of values.

5. The data transmission encoding system for a multi-gas identification sensor according to claim 4, characterized in that: The data recovery module includes: A data receiving unit, used for synchronously transmitting the coordinate seed data and the scale equalization data to the data receiving end, wherein the coordinate seed data and the scale equalization data have a matching corresponding relationship; A function calculation unit, used to retrieve coordinate seed data and import them into a preset combination query function in sequence to obtain at least two sets of calculation values; The data parsing unit is used to query the sensor combination grid to extract the coding sequence according to the calculated value, parse the scale-balanced data according to the coding sequence, and perform scale recovery to determine the identity of the time node data.

6. The data transmission encoding system for a multi-gas identification sensor according to claim 4, characterized in that: The sensor combination grid is updated regularly, and the updated sensor combination grid will be synchronized to the data collection end and the data receiving end.