Metering data management system based on data security
Patent Information
- Application Number
- CN202411839245.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-05-09
AI Technical Summary
When ensuring the rapidity and basic integrity of data transmission, the existing metrological data transmission protocol ignores the confidentiality and anti-attack ability of data, resulting in the metered data being easily stolen or tampered during the transmission process, posing huge potential risks to enterprises and industries.
A measurement data management system based on data security is designed. The measurement data is collected in real time through the measurement acquisition module, and the measurement processing module is used to process the data in combination with the out-of-order data table to generate real-time measurement processing documents. The system transmits the metered processing documents in binary form and iteratively updates the mapping relationship of the out-of-order data table to improve data security and cracking difficulty.
By collecting and processing metrological data in real time and using iteratively updated out-of-order data table mapping relationships, the security and tamper resistance of metrological data transmission are significantly improved, the risk of data theft and tampering is reduced, and the reliable transmission of metrological data is ensured.
Smart Images

Figure CN119961986A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of metering management, and in particular to a metering data management system based on data security. Background Art
[0002] In many fields of modern society, measurement data plays a vital role, from raw material measurement and product quality control in industrial production, to energy consumption measurement and allocation in the energy industry, to various physiological parameter measurement in the medical and health field, and precise measurement in scientific research. Accurate and reliable measurement data is the key factor to ensure the normal operation and development of various fields.
[0003] With the deep integration of metrology technology and information technology, metrology data management is gradually moving towards digitalization and intelligence. However, in this process, the security management of metrology data transmission has become one of the core issues that need to be solved urgently.
[0004] Many existing metering data transmission protocols focus on fast data transmission and basic integrity verification, but do not adequately consider data confidentiality and anti-attack capabilities, which makes data easy to be stolen during transmission and may be maliciously tampered with without being detected, which undoubtedly brings huge potential risks to enterprises and related industries;
[0005] In order to solve the above problems, the present invention proposes a solution. Summary of the invention
[0006] The purpose of the present invention is to provide a metering data management system based on data security, in order to solve the problems raised in the above background technology;
[0007] The purpose of the present invention can be achieved through the following technical solutions:
[0008] The measurement data management system based on data security includes:
[0009] The metering collection module is used to collect metering data of several metering devices in the target area in real time to obtain real-time metering collection data;
[0010] The metering processing module is used to process the metering collection data according to the updated and stored disordered data table in the metering processing module according to preset processing rules after receiving the real-time metering collection data to obtain a real-time metering processing document.
[0011] Furthermore, the random data table includes a first random field and a second random field, and four-bit binary numbers of 0, 1, . . . , 15 are stored in the first random field and the second random field in the random data table.
[0012] Furthermore, the processing rules for obtaining real-time measurement processing documents are as follows:
[0013] S11: performing binary conversion on the metering acquisition data to obtain metering conversion data, taking every four characters in the metering conversion data as a group of metering arrays to obtain a plurality of groups of metering arrays, and marking all the obtained groups of metering arrays as A1, A2, ..., Aa from left to right according to the order of each group of metering arrays in the metering conversion data, where a≥1;
[0014] S12: traverse the measurement arrays A1, A2, ..., Aa in sequence, and in the traversal process, each time a number of measurement arrays are traversed, the traversed number of measurement arrays are added to an empty set, so that a number of measurement sets can be obtained. All the obtained measurement sets are marked as B1, B2, ..., Bb in order from the earliest to the last according to the order in which the measurement sets are obtained, where b≥1;
[0015] Any one of the metering sets B1, B2, ..., Bb-1 satisfies the preset generation conditions: the marking subscripts of the metering arrays in any metering set are continuous, and there are at least P1 metering arrays in any metering set that are consistent with the four-bit binary numbers of the numbers 0, 1, ..., 15, respectively, and P1 is the preset standard selected quantity;
[0016] S13: Generate a metering sequence of the metering set B1 according to a preset first generation rule;
[0017] S14: Calculate and obtain the measurement sequences of measurement sets B2 and B3 in sequence according to S13;
[0018] S15: Calculate and obtain the number of alternating rows and alternating directions of the measurement set B4 related to the number 0 according to a preset calculation rule;
[0019] S16: According to S15, the number of alternating rows and alternating directions of the measurement set B4 related to the numbers 1, 2, ..., 15 are calculated in sequence:
[0020] S17: performing an iterative update on the disordered data table according to the preset iterative update rule and the number of changed rows and the changing direction of the measurement set B4 related to the numbers 0, 1, ..., 15;
[0021] S18: Generate a metering sequence of metering set B4 in accordance with S13 and in combination with the new disordered data table;
[0022] S19: after generating the metering sequence of metering set B4, sequentially obtain the metering sequences of metering sets B5, B6, ..., Bb according to S15, and after calculating the metering sequence of each metering set, perform an iterative update on the disordered data table according to S16 to S17, until the metering sequence of metering set Bb is calculated and generated, and then stop the iterative update process;
[0023] S110: Generate a real-time metrology processing document according to the metrology sequence of the metrology sets B1, B2, ..., Bb.
[0024] Furthermore, after obtaining the real-time metering processing document, the metering processing module transmits it to the cloud-based metering management platform, and the cloud-based metering management platform is used to receive, restore and store the real-time metering processing document.
[0025] Beneficial effects of the present invention:
[0026] The present invention collects metering data of several metering devices in a target area in real time by setting a metering collection module, and sets a metering processing module to process the real-time metering collection data in combination with a disordered data table to obtain a real-time metering processing document, and transmits the metering processing document, wherein the contents in the metering processing document are all in the form of binary numbers, and the mapping relationship of the binary numbers therein is iteratively updated once based on a number of characters, thereby ensuring the security of the metering collection data transmission;
[0027] The present invention groups metering collection data and incorporates them into sets, and sorts the obtained metering sets. After sorting, the first iterative update of the disordered data table is determined based on the first four metering sets, and then each metering set performs an iterative update on the disordered data table. On the one hand, the complexity of changing the mapping relationship of the same metering array is increased, and the difficulty of cracking the metering collection data is enhanced. On the other hand, based on this method, the high frequency of changing the mapping relationship greatly reduces the probability of tampering without being discovered, and further ensures the safe transmission of the metering collection data. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present invention will be further described below in conjunction with the accompanying drawings.
[0029] Figure 1 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] like Figure 1 As shown, the metering data management system based on data security includes a metering acquisition module, a metering processing module and a cloud-based metering management platform;
[0032] The metering acquisition module is used to acquire metering data of several metering devices in the target area in real time to obtain real-time metering acquisition data, and transmit the metering acquisition data to the metering processing module, wherein the metering devices include but are not limited to sensors, meters, measuring tools, etc.;
[0033] In this application, the real-time metering collection data includes metering data of all metering devices in the target area collected in real time;
[0034] The metering processing module is used to process the received real-time metering collection data to ensure its security during transmission. The metering processing module stores a random data table. In the present application, the random data table includes a first random field and a second random field. In the random data table, the first random field and the second random field both store four-bit binary numbers of 0, 1, ..., 15. Further, the first random field stores four-bit binary numbers of 0, 1, ..., 15 from top to bottom, and the four-bit binary numbers stored in the first random field and the four-bit binary numbers stored in the second random field correspond to each other one by one.
[0035] It should be noted here that the four binary numbers stored from top to bottom in the second random sequence field are selected by the administrator of the cloud metering management platform;
[0036] After receiving the real-time metering collection data, the metering processing module processes the metering collection data according to the preset processing rules to obtain a real-time metering processing document. The processing rules are as follows:
[0037] S11: performing binary conversion on the metering acquisition data to obtain metering conversion data, taking every four characters in the metering conversion data as a group of metering arrays to obtain a plurality of groups of metering arrays, and marking all the obtained groups of metering arrays as A1, A2, ..., Aa from left to right according to the order of each group of metering arrays in the metering conversion data, where a≥1;
[0038] S12: traverse the measurement arrays A1, A2, ..., Aa in sequence, and in the traversal process, each time a number of measurement arrays are traversed, the traversed number of measurement arrays are added to an empty set, so that a number of measurement sets can be obtained. All the obtained measurement sets are marked as B1, B2, ..., Bb in order from the earliest to the last according to the order in which the measurement sets are obtained, where b≥1;
[0039] It should be noted here that any measurement set among measurement sets B1, B2, ..., Bb-1 satisfies the preset generation condition:
[0040] The marking subscripts of the measurement arrays in any measurement set are continuous, and in any measurement set there are at least P1 measurement arrays that are consistent with the four-bit binary numbers of the numbers 0, 1, ..., 15, respectively, and P1 is a preset standard selected quantity;
[0041] In this application, the metering arrays in any metering set B1, B2, ..., Bb are labeled with increasing subscripts from left to right;
[0042] S13: Generate a metering sequence of the metering set B1 according to a preset first generation rule. The first generation rule is as follows:
[0043] S131: extract all measurement arrays from the measurement set B1 in order from left to right, and label them as H1, H2, ..., Hh, where h≥1;
[0044] S132: matching the row number of the random data table where the four-bit binary number consistent with the measurement array H1 is located in the first random field of the random data table, determining the four-bit binary number stored in the second random field according to the row number, and marking the determined four-bit binary number as the random array of the measurement array H1;
[0045] S133: Obtain the random order arrays of measurement arrays H2, H3, ..., Hh in sequence according to S131 to S132;
[0046] S134: in the order of the measurement arrays H1, H2, ..., Hh, the random arrays of H1, H2, ..., Hh are concatenated to obtain the measurement sequence of the measurement set B1;
[0047] S14: Calculate and obtain the measurement sequences of measurement sets B2 and B3 in sequence according to S13;
[0048] S15: Calculate and obtain the number of alternating rows and alternating directions of the measurement set B4 related to the number 0 according to a preset calculation rule. The calculation rule is as follows:
[0049] S151: Obtain positions C1, C2, ..., Cc of the measurement arrays that are consistent with the four-bit binary number of the number 0 in the measurement set B1 from left to right, where c≥1;
[0050] In this application, the positions of the measurement arrays from left to right in any measurement set start from number 1 and continue in sequence;
[0051] S152: Calculate the quotient D1 and remainder E1 of C1 / 4, and determine the chart coordinates (E1, F1) corresponding to the position C1 according to the quotient D1 and the remainder E1, wherein if the value of the quotient D1 is less than or equal to 4, the value of F1 is D1, otherwise the value of F1 is calculated using the formula F1=D1-4*P2, wherein P2 is a preset standard adjustment constant used to adjust the value of F1 to the interval [1,4];
[0052] S153: determining the chart coordinates of positions C2, C3, ..., Cc in sequence according to S152, then removing the chart coordinates with a horizontal coordinate of 0 from all the obtained chart coordinates, and recalibrating all the remaining chart coordinates to the recorded coordinates of the measurement set B1 based on the number 0;
[0053] S154: Obtain all recorded coordinates of measurement sets B2 and B3 based on the number 0 in sequence according to S151 to S153;
[0054] S155: traverse all the record coordinates of the measurement sets B1, B2, and B3 based on the number 0, and select one record coordinate from the record coordinates of the measurement sets B1, B2, and B3 based on the number 0 in turn, and the three selected record coordinates meet the preset iterative update conditions;
[0055] In the present application, the iterative update conditions are as follows: the horizontal and vertical coordinates of the three recorded coordinates are extracted respectively, and the values of the extracted horizontal and vertical coordinates are different, that is, the values of the three extracted horizontal coordinates can only be any three of 1, 2, 3, and 4, and the values of the three vertical coordinates can only be any three of 1, 2, 3, and 4;
[0056] S156: According to the selected abscissas of the three recorded coordinates and the numbers 1, 2, 3, and 4, a number I1 that is not used as an abscissa among the numbers 1, 2, 3, and 4 is determined; similarly, according to the selected ordinates of the three recorded coordinates and the numbers 1, 2, 3, and 4, a number I2 that is not used as an ordinate among the numbers 1, 2, 3, and 4 is determined;
[0057] S157: Compare the numbers I1 and I2. If the number I1 ≥ I2, then use the number I1 as the number of rows of change of the measurement set B4 relative to the number 0. At this time, the reference selected according to I2 is based on the ordinate, and it is determined that the change direction of the measurement set B4 relative to the number 0 is a downward change. If the number I1 < I2, then use the number I2 as the number of rows of change of the measurement set B4 relative to the number 0. At this time, the reference selected according to I2 is based on the abscissa, and it is determined that the change direction of the measurement set B4 relative to the number 0 is an upward change;
[0058] S16: Calculate and obtain the number of rows of change and the change direction of the measurement set B4 relative to the numbers 1, 2,..., 15 in sequence according to S15:
[0059] S17: Perform an iterative update on the out-of-order data table according to the number of rows of change and the change direction of the measurement set B4 relative to the numbers 0, 1,..., 15 according to the preset iterative update rule. The iterative update rule is as follows:
[0060] S171: Swap a number of four-bit binary numbers stored in the second out-of-order field of the out-of-order data table according to the number of rows of change and the change direction of the measurement set B4 relative to the number 0. The steps are as follows:
[0061] SS11: Find the row number J1 of the measurement array that is consistent with the four-bit binary number of the number 0 in the first out-of-order field of the out-of-order data table according to the number of rows of change of the number 0. Use the formula J2 = J1 ± K1, where K1 is the number of rows of change of the measurement set B4 relative to the number 0. If the change direction of the measurement set B4 relative to the number 0 is an upward change, the minus sign is used in the formula, that is, J2 = J1 - K1; otherwise, it is a plus sign, that is, J2 = J1 + K1;
[0062] SS12: Swap the four-bit binary numbers at the row numbers J1 and J2 in the second out-of-order field of the out-of-order data table:
[0063] S172: Swap a number of four-bit binary numbers stored in the second out-of-order field of the out-of-order data table in sequence according to the number of rows of change and the change direction of the measurement set B4 relative to the numbers 1, 2,..., 15. After the swapping is completed, a new out-of-order data table is obtained, and the new out-of-order data table is updated and stored in the measurement processing module;
[0064] S18: Generate the measurement sequence of the measurement set B4 in combination with the new out-of-order data table according to S13;
[0065] S19: after generating the metering sequence of metering set B4, sequentially obtain the metering sequences of metering sets B5, B6, ..., Bb according to S15, and after calculating the metering sequence of each metering set, perform an iterative update on the disordered data table according to S16 to S17, until the metering sequence of metering set Bb is calculated and generated, and then stop the iterative update process;
[0066] S110: Generate a real-time measurement processing document according to the measurement sequence of the measurement sets B1, B2, ..., Bb;
[0067] The metering processing module transmits the real-time metering processing documents to the cloud metering management platform;
[0068] The cloud-based metering management platform is used to manage real-time metering processing documents. The cloud-based metering management platform updates and stores a disordered data table. After receiving the transmitted real-time metering processing documents, the cloud-based metering management platform restores the disordered data table to obtain real-time metering collection data, and stores the real-time metering collection data.
[0069] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0070] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.
[0071] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A measurement data management system based on data security, characterized in that: include: The metering collection module is used to collect metering data of several metering devices in the target area in real time to obtain real-time metering collection data; The metering processing module is used to process the metering collection data according to the updated and stored disordered data table in the metering processing module according to preset processing rules after receiving the real-time metering collection data to obtain a real-time metering processing document.
2. The data security-based metrology data management system according to claim 1, characterized in that: The random data table includes a first random field and a second random field. In the random data table, four-bit binary numbers of 0, 1, . . . , 15 are stored in the first random field and the second random field.
3. The metering data management system based on data security according to claim 1 is characterized in that: The processing rules for obtaining real-time measurement processing documents are as follows: S11: performing binary conversion on the metering acquisition data to obtain metering conversion data, taking every four characters in the metering conversion data as a group of metering arrays to obtain a plurality of groups of metering arrays, and marking all the obtained groups of metering arrays as A1, A2, ..., Aa from left to right according to the order of each group of metering arrays in the metering conversion data, where a≥1; S12: traverse the measurement arrays A1, A2, ..., Aa in sequence, and in the traversal process, each time a number of measurement arrays are traversed, the traversed number of measurement arrays are added to an empty set, so that a number of measurement sets can be obtained. All the obtained measurement sets are marked as B1, B2, ..., Bb in order from the earliest to the last according to the order in which the measurement sets are obtained, where b≥1; Any one of the metering sets B1, B2, ..., Bb-1 satisfies the preset generation conditions: the marking subscripts of the metering arrays in any metering set are continuous, and there are at least P1 metering arrays in any metering set that are consistent with the four-bit binary numbers of the numbers 0, 1, ..., 15, respectively, and P1 is the preset standard selected quantity; S13: Generate a metering sequence of the metering set B1 according to a preset first generation rule; S14: Calculate and obtain the measurement sequences of measurement sets B2 and B3 in sequence according to S13; S15: Calculate and obtain the number of alternating rows and alternating directions of the measurement set B4 related to the number 0 according to a preset calculation rule; S16: According to S15, the number of alternating rows and alternating directions of the measurement set B4 related to the numbers 1, 2, ..., 15 are calculated in sequence: S17: performing an iterative update on the disordered data table according to the preset iterative update rule and the number of changed rows and the changing direction of the measurement set B4 related to the numbers 0, 1, ..., 15; S18: Generate a metering sequence of metering set B4 in accordance with S13 and in combination with the new disordered data table; S19: after generating the metering sequence of metering set B4, sequentially obtain the metering sequences of metering sets B5, B6, ..., Bb according to S15, and after calculating the metering sequence of each metering set, perform an iterative update on the disordered data table according to S16 to S17, until the metering sequence of metering set Bb is calculated and generated, and then stop the iterative update process; S110: Generate a real-time metrology processing document according to the metrology sequence of the metrology sets B1, B2, ..., Bb.
4. The data security-based metrology data management system according to claim 3 is characterized in that: The first generation rule for generating the metering sequence of the metering set B1 in S13 is as follows: S131: Extract all the measurement arrays from the measurement set B1 in sequence from left to right and label them as H1, H2, ..., Hh respectively, where h ≥ 1; S132: Match the row number of the disordered data table where the four-bit binary number consistent with the measurement array H1 is located in the first disordered field of the disordered data table, determine the four-bit binary number stored in the second disordered field according to the row number, and label the determined four-bit binary number as the disordered array of the measurement array H1; S133: Obtain the disordered arrays of the measurement arrays H2, H3, ..., Hh in sequence according to S131 to S132; S134: Concatenate the disordered arrays of H1, H2, ..., Hh in the order of the measurement arrays H1, H2, ..., Hh to obtain the measurement sequence of the measurement set B1.
5. The data security-based metrology data management system according to claim 4 is characterized in that: S15. The calculation rules for calculating and obtaining the change row number and change direction of the measurement set B4 related to the number 0 are as follows: S151: Obtain the positions C1, C2, ..., Cc of the measurement arrays in the measurement set B1 that are consistent with the four-bit binary number of the number 0 in sequence from left to right, where c ≥ 1; S152: Calculate the quotient D1 and the remainder E1 of C1 / 4, and determine the chart coordinates (E1, F1) corresponding to the position C1 according to the quotient D1 and the remainder E1. If the value of the quotient D1 is less than or equal to 4, then the value of F1 is D1. Otherwise, calculate the value of F1 using the formula F1 = D1 - 4 * P2, where P2 is a preset standard adjustment constant used to adjust the value of F1 within the range [1, 4]; S153: Determine the chart coordinates of the positions C2, C3, ..., Cc in sequence according to S152, then剔除 the chart coordinates with the abscissa of 0 from all the obtained chart coordinates, and relabel the remaining all chart coordinates as the record coordinates of the measurement set B1 based on the number 0; S154: Obtain all the record coordinates of the measurement sets B2 and B3 based on the number 0 in sequence according to S151 to S153; S155: Traverse all the record coordinates of the measurement sets B1, B2, and B3 based on the number 0, and select a record coordinate from the record coordinates of the measurement sets B1, B2, and B3 based on the number 0 in sequence. The three selected record coordinates satisfy the preset iterative update condition; S156: Determine the number I1 among the numbers 1, 2, 3, 4 that is not used as the abscissa according to the abscissas of the three selected record coordinates combined with the numbers 1, 2, 3, 4. Similarly, determine the number I2 among the numbers 1, 2, 3, 4 that is not used as the ordinate according to the ordinates of the three selected record coordinates combined with the numbers 1, 2, 3, 4; S157: Compare the numbers I1 and I2. If the number I1 ≥ I2, then use the number I1 as the change row number of the measurement set B4 related to the number 0. At this time, the change direction of the measurement set B4 related to the number 0 is downward change. If the number I1 < I2, then use the number I2 as the change row number of the measurement set B4 related to the number 0. At this time, the change direction of the measurement set B4 related to the number 0 is upward change.
6. The data security-based metrology data management system according to claim 5, characterized in that: S155, the iterative update conditions are as follows: extract the horizontal and vertical coordinates of the three record coordinates respectively, and the values of the extracted horizontal and vertical coordinates are different, that is, the values of the three extracted horizontal coordinates can only be any three of 1, 2, 3, and 4, and the values of the three vertical coordinates can only be any three of 1, 2, 3, and 4.
7. The metering data management system based on data security according to claim 5 is characterized in that: S17, the iterative update rule for performing an iterative update on the disordered data table is as follows: S171: swapping a number of four-bit binary numbers stored in the second random order field of the random order data table according to the number of alternating rows and alternating directions related to the number 0 of the measurement set B4, the steps are as follows: SS11: According to the number of alternating rows of the number 0, find the row number J1 of the measurement array consistent with the four-bit binary number of the number 0 in the first random field of the random data table, and use the formula J2=J1±K1, where K1 is the number of alternating rows of the measurement set B4 related to the number 0, and if the alternating direction of the measurement set B4 related to the number 0 is upward, then the number in the formula is a minus sign, otherwise it is a plus sign; SS12: The four-bit binary numbers at row numbers J1 and J2 in the second random field of the random data table are swapped: S172: swapping a number of four-bit binary numbers stored in the second random field of the random data table according to the number of alternating rows and alternating directions of the numbers 1, 2, ..., 15 in the metering set B4, obtaining a new random data table after the swapping, and updating and storing the new random data table in the metering processing module.
8. The metering data management system based on data security according to claim 1 is characterized in that: After obtaining the real-time metering processing document, the metering processing module transmits it to the cloud metering management platform. The cloud metering management platform is used to receive, restore and store the real-time metering processing document.