A household router data storage method and system

By two-dimensionally, downsampling and upsampling the current data collected by the user router, and combined with encryption level processing, encrypted layers are generated, the problem of data leakage risk is solved and the security and readability of data is improved. To meet the needs of different residents.

CN118708596BActive Publication Date: 2024-12-24ANHUI UNIVERSITY OF ARCHITECTURE
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411198219.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-24
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

Existing user routers have a risk of data leakage when collecting and storing power usage data, resulting in third parties being able to easily understand the living habits of residents and lacking data security.

Method used

By obtaining the household's electrical appliances and wiring information, building a circuit diagram, determining the collection point, and two-dimensionally, downsampling and upsampling the current data, combining the encryption level and the target number of times to perform data processing, generating an encrypted layer, and improving data security and readability.

Benefits of technology

Effectively hide the original characteristics of current data, significantly improve the security of data, while maintaining flexibility and optionality to adapt to the needs of different residents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708596B_ABST
    Figure CN118708596B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of household router management technology, and specifically discloses a household router data storage method and system, the method comprising: reading the current at the collection point based on the household router, and two-dimensionalizing the current; down-sampling the two-dimensionalized data and converting it into a data set; receiving the encryption level input by the resident, determining the target number of times according to the encryption level, and selecting two-dimensional data in the data set according to the target number of times; up-sampling the selected two-dimensional data, and storing the up-sampled data as the final current. The present invention two-dimensionalizes the acquired current, then down-samples the two-dimensionalized data, and then up-samples the down-sampled data, thereby making different degrees of changes to the original data, and obtaining current data of different readability. At this time, according to the needs of the resident, the current data of the resident is hidden, which greatly improves the security while being very flexible and highly optional.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of household router management, in particular to a household router data storage method and system. Background Art

[0002] A residential router is an energy router installed in every household. It is a smart device designed to manage and optimize the use of household energy. It is usually connected to renewable energy systems (such as solar panels) and the power grid, and uses software algorithms to monitor energy consumption and adjust energy distribution and use based on factors such as user demand and energy prices.

[0003] The function of a household router is to collect and record the electricity usage of each household. The service provider can optimize the energy supply plan based on this data and improve resource utilization from a macro perspective. In layman's terms, the electricity usage of each household is a kind of extremely valuable big data with a wide range of uses, and household routers can collect this big data.

[0004] Existing household routers have data collection and upload functions. The collected data are mostly stored in the form of tables. This form has high readability and is easy to analyze. However, the high readability also brings some risks. Once leaked, a third party can easily learn about the living habits of the residents. How to improve the security of household routers when collecting data is a technical problem that the technical solution of the present invention wants to solve. Summary of the invention

[0005] The object of the present invention is to provide a household router data storage method and system to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A household router data storage method and system, the method comprising:

[0008] Obtain the household's registered electrical appliances and their wiring information, construct a circuit diagram based on the electrical appliances and wiring information, and determine the collection points;

[0009] Based on the household router, the current at the collection point is read and the current is two-dimensionalized;

[0010] Downsampling the two-dimensional data to convert it into a data set; the data in the data set are all two-dimensional data, and each two-dimensional data is indexed by the number of downsampling;

[0011] Receive the encryption level input by the resident, determine the target number according to the encryption level, and select two-dimensional data in the data set according to the target number; wherein the encryption level is proportional to the target number;

[0012] Up-sampling the selected two-dimensional data, and storing the up-sampled data as the final current;

[0013] The encryption layer is calculated based on the upsampled data, and when a decryption request sent by the decryption party is received, the encryption layer is sent to the decryption party.

[0014] As a further solution of the present invention: the steps of obtaining the household registered electrical appliances and their wiring information, constructing a circuit diagram according to the electrical appliances and wiring information, and determining the collection points include:

[0015] Obtain the water and electricity layout information of the residents, and receive the electrical appliances and connection points registered by the residents based on the water and electricity layout information;

[0016] Check the rated parameters of the registered electrical appliances and determine the virtual impedance;

[0017] Construct circuit diagram based on virtual impedance and water and electricity arrangement information;

[0018] Determine the number of circuits, randomly mark known circuits in the circuit diagram, calculate the current of other circuits based on known circuits, and determine unknown circuits;

[0019] The loop is executed for a preset number of times. When the unknown line is not zero, the number of lines is incremented. When the unknown line is zero, the marked known lines are counted as collection points.

[0020] As a further solution of the present invention: the step of reading the current at the collection point based on the household router and converting the current into two dimensions includes:

[0021] According to the positional relationship of the corresponding known lines of the acquisition points, the blocks of the same size are constructed and spliced ​​to obtain a two-dimensional matrix;

[0022] Acquire the current containing time information based on the acquisition point, convert the current into grayscale value according to the preset conversion formula, and insert it into the matrix block according to the preset order;

[0023] The conversion formula is:

[0024] ; In the formula, is the converted current value, is the minimum current value at the acquisition point, is the maximum current at the collection point, and Updated in real time.

[0025] As a further solution of the present invention: the step of downsampling the two-dimensional data and converting it into a data set includes:

[0026] Select and delete the even rows and even columns of the two-dimensional data, and record the number of deletions as the number of downsampling times;

[0027] The loop is executed until the number of rows and columns of the two-dimensionalized data is less than a preset threshold value;

[0028] The following sampling times are used as the index to count the two-dimensional data and obtain the data set.

[0029] As a further solution of the present invention: the step of upsampling the selected two-dimensional data and storing the upsampled data as the final current includes:

[0030] Query the target number of the selected two-dimensional data, and determine the upsampling number according to the target number;

[0031] Upsampling the selected two-dimensional data based on the upsampling times to obtain upsampled data as final current storage;

[0032] ;

[0033] ;

[0034] In the formula, is the coordinate in the upsampled two-dimensional data, is the coordinate in the two-dimensional data before upsampling; is the width of the upsampled two-dimensional data, is the height of the upsampled two-dimensional data; is the width of the two-dimensional data before upsampling, is the height of the two-dimensional data before upsampling;

[0035] ;

[0036] for The value at For As the center, the coordinates of the point at the lower left corner are set , For As the center, the coordinates of the point at the upper left corner are set , For As the center, the coordinates of the point at the lower right corner are set , For As the center, the coordinates of the point at the upper right corner are set , , , and These are the values ​​at the four points respectively.

[0037] As a further solution of the present invention: the step of calculating the encryption layer based on the upsampled data and sending the encryption layer to the decryption party when receiving a decryption request sent by the decryption party includes:

[0038] Read the two-dimensional data with zero downsampling times to obtain the reference layer;

[0039] Read the upsampled data as the result layer;

[0040] Calculate the difference between the result layer and the base layer to obtain the encrypted layer;

[0041] When a decryption request is received from the decryption party, the encrypted layer is sent to the decryption party.

[0042] The technical solution of the present invention also provides a household router data storage system, the system comprising:

[0043] The collection point determination module is used to obtain the household's registered electrical appliances and their wiring information, build a circuit diagram based on the electrical appliances and wiring information, and determine the collection points;

[0044] A current two-dimensionalization module is used to read the current at the collection point based on the household router and perform two-dimensionalization on the current;

[0045] A data downsampling module is used to downsample the two-dimensional data and convert it into a data set; the data in the data set are all two-dimensional data, and each two-dimensional data is indexed by the number of downsampling times;

[0046] A data selection module is used to receive the encryption level input by the resident, determine the target number according to the encryption level, and select two-dimensional data in the data set according to the target number; wherein the encryption level is proportional to the target number;

[0047] A data up-sampling module is used to up-sample the selected two-dimensional data and store the up-sampled data as the final current;

[0048] The encryption and decryption module is used to calculate the encryption layer based on the upsampled data, and when a decryption request sent by the decryption party is received, the encryption layer is sent to the decryption party.

[0049] As a further solution of the present invention: the collection point determination module includes:

[0050] A registered data acquisition unit, used to acquire the water and electricity layout information of the resident, and receive the registered electrical appliances and connection points of the resident based on the water and electricity layout information;

[0051] An impedance determination unit, used to query the rated parameters of the registered electrical appliance and determine the virtual impedance;

[0052] A circuit diagram construction unit, used for constructing a circuit diagram according to virtual impedance and water and electricity arrangement information;

[0053] A current simulation unit is used to determine the number of circuits, randomly mark known circuits in the circuit diagram, calculate the current of other circuits based on the known circuits, and determine the unknown circuits;

[0054] The loop determination unit is used to loop and execute a preset number of times. When the unknown line is not zero, the number of lines is increased. When the unknown line is zero, the known lines marked are counted as collection points.

[0055] As a further solution of the present invention: the current two-dimensionalization module includes:

[0056] A matrix building unit is used to build and splice matrix blocks of the same size according to the positional relationship of the corresponding known lines of the acquisition points to obtain a two-dimensional matrix;

[0057] An interpolation unit, used to obtain a current containing time information based on a collection point, convert the current into a grayscale value according to a preset conversion formula, and insert the current into a matrix in a preset order;

[0058] The conversion formula is:

[0059] ; In the formula, is the converted current value, is the minimum current value at the acquisition point, is the maximum current at the collection point, and Updated in real time.

[0060] As a further solution of the present invention: the data downsampling module includes:

[0061] A data deletion unit selects and deletes even rows and even columns of the two-dimensional data, and records the number of deletions as the number of downsampling;

[0062] An execution unit, configured to execute cyclically until the number of rows and columns of the two-dimensionalized data is less than a preset number threshold;

[0063] The statistical unit is used to count the two-dimensional data with the sampling times as the index to obtain the data set.

[0064] Compared with the prior art, the present invention has the following beneficial effects:

[0065] The present invention converts the acquired current into two dimensions, then downsamples the two-dimensionalized data, and then upsamples the downsampled data, thereby making different degrees of changes to the original data to obtain current data with different readability. At this time, according to the needs of the residents, the current data itself is hidden, which greatly improves the security while also being very flexible and highly optional. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.

[0067] Figure 1 The overall flow chart of the household router data storage method is shown.

[0068] Figure 2 The structure diagram of the household router data storage system is shown. DETAILED DESCRIPTION

[0069] In order to make the technical problems, technical solutions and beneficial effects to be solved by 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.

[0070] Figure 1 This is a general flow chart of a household router data storage method and system. In an embodiment of the present invention, a household router data storage method includes:

[0071] Step S100: Obtain the household's registered electrical appliances and their wiring information, construct a circuit diagram based on the electrical appliances and wiring information, and determine the collection points;

[0072] The circuit layout information of each resident has been determined during the water and electricity stage of renovation. When they use electrical appliances, the location of the appliances is generally not changed. Most of them are connected to the interfaces on the wall to draw power. Therefore, by obtaining the electrical appliances and wiring information registered by the residents, a circuit diagram dedicated to the residents can be constructed. By analyzing the circuit diagram, the collection points can be determined for collecting current.

[0073] It should be noted that existing electrical appliances are equipped with current monitoring ports, which can be regarded as a kind of instrument. At this time, an ammeter can also be connected to the line to collect current, which is also a kind of instrument. The installation method of the ammeter can be the water and electricity stage during decoration, or an external ammeter can be connected at the existing interface.

[0074] It is worth mentioning that since the execution subject of this method collects and stores the current of the residents, this requires the staff to grant permission in advance. If the permission is not obtained, the technical solution provided in this application cannot be operated.

[0075] Step S200: reading the current at the collection point based on the household router, and converting the current into two dimensions;

[0076] The simplest way of existing current collection and storage solutions is to use a table to count the current at each moment. This method is highly readable, which is a good thing, but it also brings certain risks. If the table is leaked to a third party, the third party can easily know the living habits of each household, such as what time no one is at home. This poses a huge safety hazard. Taking this factor into consideration, this application adopts a two-dimensional storage solution for the acquired current.

[0077] Step S300: down-sampling the two-dimensional data to convert it into a data set; the data in the data set are all two-dimensional data, and each two-dimensional data is indexed by the number of down-sampling times;

[0078] In order to further reduce the readability, the present application also downsamples the two-dimensional data multiple times. Each time the downsampling is performed, some current data will be evenly lost. The more downsampling times, the more current data will be lost. However, these multiple downsampling processes do not make the two-dimensional data completely unreadable. In fact, when downsampling is performed a small number of times, the obtained data can still be used as an actual result, for example, to make adjustments to the power supply.

[0079] Step S400: receiving the encryption level input by the resident, determining the target number according to the encryption level, and selecting two-dimensional data in the data set according to the target number; wherein the encryption level is proportional to the target number;

[0080] The encryption level input by the resident is received. The encryption level determines the amount of data retention of the two-dimensional data to be sent. The higher the encryption level, the higher the target number. The two-dimensional data read is the data after high-order downsampling. The data retention is very small and the readability is very low.

[0081] Step S400 essentially provides a permission adjustment scheme for residents, where the residents actively input an encryption level, and the encryption level is used to adjust the encryption degree of the electric current. The higher the encryption level, the greater the encryption degree, and the lower the permission granted by the residents.

[0082] Step S500: up-sampling the selected two-dimensional data, and storing the up-sampled data as the final current;

[0083] The selected two-dimensional data is actually missing, and it is necessary to upsample the two-dimensional data when using it. The upsampling process is based on the data inversion based on the existing data. It is a restoration process based on the missing data, which restores the data to the size before downsampling, so that it appears to be complete current data. It can be seen that the greater the amount of missing two-dimensional data, the greater the difference between the restored data and the actual data.

[0084] Among them, the restoration process is necessary, and it needs to ensure the consistency of the data structure. The consistency of the data structure in the technical solution of the present invention is manifested in the number of rows and columns of the two-dimensional data. After restoration, all data have the same number of rows and columns, which is very convenient in subsequent applications.

[0085] Step S600: Calculate an encryption layer based on the upsampled data, and when receiving a decryption request sent by a decryption party, send the encryption layer to the decryption party;

[0086] After the data is restored, the data has changed. After each restoration, the execution subject of this method calculates the difference between the restored data and the original data, retains the difference, and uses it for the subsequent restoration process. When the application party needs to restore certain data, it contacts the execution subject of this method through a call or other contact method. After the execution subject of this method verifies the identity, it sends the difference to the application party for restoring the real data. The above-mentioned application party is the party using the current data and is also the decryption party in the above content.

[0087] In some examples of the technical solution of the present invention, the steps of obtaining the electrical appliances and their wiring information registered by the resident, constructing a circuit diagram according to the electrical appliances and wiring information, and determining the collection points include:

[0088] Obtain the water and electricity layout information of the residents, and receive the electrical appliances and connection points registered by the residents based on the water and electricity layout information;

[0089] Check the rated parameters of the registered electrical appliances and determine the virtual impedance;

[0090] Construct circuit diagram based on virtual impedance and water and electricity arrangement information;

[0091] Determine the number of circuits, randomly mark known circuits in the circuit diagram, calculate the current of other circuits based on known circuits, and determine unknown circuits;

[0092] The loop is executed for a preset number of times. When the unknown line is not zero, the number of lines is incremented. When the unknown line is zero, the marked known lines are counted as collection points.

[0093] The above content specifically limits the process of selecting collection points. The water and electricity layout information of the residents is obtained based on the permissions granted by the residents, and the distribution locations of the electrical appliances uploaded by the residents are obtained. The circuit diagram can be constructed from the lines in the water and electricity layout information, and the virtual impedance is determined by the rated parameters of the electrical appliances, and the virtual impedance is inserted into the circuit diagram; further, known points are marked in the circuit diagram to determine whether the currents of other lines can be calculated from the known points with the help of electrical laws, so that all currents in the entire circuit diagram can be known. If so, the marked known points can be used as collection points.

[0094] Specifically, the marking judgment process of known points adopts an enumeration scheme to randomly select some known points. If the current of other lines cannot be calculated, the number of known points is increased. Once the current of other lines can be calculated, the known points are used as collection points, which can ensure that the number of collection points is as small as possible.

[0095] It should be noted that the process of selecting collection points is actually the process of selecting lines, and any point on the line can be used as a collection point.

[0096] In some examples of the present invention, the step of reading the current at the collection point based on the household router and converting the current into two dimensions includes:

[0097] According to the positional relationship of the corresponding known lines of the acquisition points, the blocks of the same size are constructed and spliced ​​to obtain a two-dimensional matrix;

[0098] Acquire the current containing time information based on the acquisition point, convert the current into grayscale value according to the preset conversion formula, and insert it into the matrix block according to the preset order;

[0099] The conversion formula is:

[0100] ; In the formula, is the converted current value, is the minimum current value at the acquisition point, is the maximum current at the collection point, and Updated in real time.

[0101] The two-dimensionalization process is very simple. For each acquisition point, a small matrix, called a matrix block, is constructed. The matrices are spliced ​​according to the positional relationship of the acquisition points to obtain a two-dimensional matrix. Then, the current is filled in according to the preset order, which includes from left to right and from top to bottom.

[0102] In addition, during the process of inserting current, the current needs to be converted so that the current is evenly distributed in the range of 0 to 255. When there is a subsequent display requirement, it can be directly sent to the display device as a display parameter.

[0103] In some embodiments of the present invention, the step of downsampling the two-dimensionalized data and converting it into a data set includes:

[0104] Select and delete the even rows and even columns of the two-dimensional data, and record the number of deletions as the number of downsampling times;

[0105] The loop is executed until the number of rows and columns of the two-dimensionalized data is less than a preset threshold value;

[0106] The following sampling times are used as the index to count the two-dimensional data and obtain the data set.

[0107] The downsampling process is a process of continuously deleting data. You can delete odd rows and columns and keep even rows and columns, or delete even rows and columns and keep odd rows and columns. These two schemes are the same and are executed in a loop until the number of rows and columns of the final data is small enough. The data obtained each time is downsampled is indexed by the number of downsampling times.

[0108] In some embodiments of the present invention, the step of upsampling the selected two-dimensional data and storing the upsampled data as the final current includes:

[0109] Query the target number of the selected two-dimensional data, and determine the upsampling number according to the target number;

[0110] The selected two-dimensional data is up-sampled based on the up-sampling times to obtain up-sampled data, which is stored as the final current.

[0111] The upsampling process is the reverse process of the downsampling process. The encryption level input by the resident determines the target number according to the encryption level. In the downsampling process, the data obtained by downsampling is indexed by the downsampling number. Therefore, the index is traversed by the target number, and the two-dimensional data with the same downsampling number and target number is selected as the target data. The target data is upsampled, and the upsampling number is the same as the downsampling number, and the obtained data is stored as the final data.

[0112] The upsampling process is:

[0113] ;

[0114] ;

[0115] In the formula, is the coordinate in the upsampled two-dimensional data, is the coordinate in the upsampled two-dimensional data; is the width of the upsampled two-dimensional data, is the height of the two-dimensional data before upsampling; is the width of the two-dimensional data before upsampling, is the height of the two-dimensional data before upsampling;

[0116] ;

[0117] for The value at For As the center, the coordinates of the point at the lower left corner are set , For As the center, the coordinates of the point at the upper left corner are set , For As the center, the coordinates of the point at the lower right corner are set , For As the center, the coordinates of the point at the upper right corner are set , , , and These are the values ​​at the four points respectively.

[0118] Regarding the upsampling process, it is essentially an interpolation process. The relationship between coordinates adopts a center-aligned scheme. For each position of the value to be inserted, the corresponding coordinate is determined in the original image. Taking the corresponding coordinate as the center, four points, namely the lower left, upper left, lower right and upper right, are selected, and the insertion value is determined based on the principle of linear interpolation.

[0119] In some examples of the present invention, the step of calculating the encryption layer based on the upsampled data and sending the encryption layer to the decryption party when receiving a decryption request sent by the decryption party includes:

[0120] Read the two-dimensional data with zero downsampling times to obtain the reference layer;

[0121] Read the upsampled data as the result layer;

[0122] Calculate the difference between the result layer and the base layer to obtain the encrypted layer;

[0123] When a decryption request is received from the decryption party, the encrypted layer is sent to the decryption party.

[0124] The principle of generating the encryption layer is very simple, which is to calculate the difference between the upsampled data and the original data. After sending the upsampled data to the decryption party, if the decryption party needs to obtain the original data, after verifying the identity through the third-party contact information, the above difference will be sent to the decryption party. The decryption party can restore the original data based on the original data and the above difference. This is the decryption process.

[0125] Figure 2 The structure diagram of the household router data storage system is shown. In a preferred embodiment of the technical solution of the present invention, a household router data storage system is also provided. The system 10 includes:

[0126] The collection point determination module 11 is used to obtain the household registered electrical appliances and their wiring information, construct a circuit diagram based on the electrical appliances and wiring information, and determine the collection points;

[0127] The current two-dimensionalization module 12 is used to read the current at the collection point based on the household router and perform two-dimensionalization on the current;

[0128] A data downsampling module 13 is used to downsample the two-dimensional data and convert it into a data set; the data in the data set are all two-dimensional data, and each two-dimensional data is indexed by the number of downsampling times;

[0129] The data selection module 14 is used to receive the encryption level input by the resident, determine the target number according to the encryption level, and select two-dimensional data in the data set according to the target number; wherein the encryption level is proportional to the target number;

[0130] A data up-sampling module 15 is used to up-sample the selected two-dimensional data and store the up-sampled data as the final current;

[0131] The encryption and decryption module 16 is used to calculate the encryption layer based on the upsampled data, and when receiving a decryption request sent by the decryption party, send the encryption layer to the decryption party.

[0132] Furthermore, the collection point determination module 11 includes:

[0133] A registered data acquisition unit, used to acquire the water and electricity layout information of the resident, and receive the registered electrical appliances and connection points of the resident based on the water and electricity layout information;

[0134] An impedance determination unit, used to query the rated parameters of the registered electrical appliance and determine the virtual impedance;

[0135] A circuit diagram construction unit, used for constructing a circuit diagram according to virtual impedance and water and electricity arrangement information;

[0136] A current simulation unit is used to determine the number of circuits, randomly mark known circuits in the circuit diagram, calculate the current of other circuits based on the known circuits, and determine the unknown circuits;

[0137] The loop determination unit is used to loop and execute a preset number of times. When the unknown line is not zero, the number of lines is increased. When the unknown line is zero, the known lines marked are counted as collection points.

[0138] Specifically, the current two-dimensionalization module 12 includes:

[0139] A matrix building unit is used to build and splice matrix blocks of the same size according to the positional relationship of the corresponding known lines of the acquisition points to obtain a two-dimensional matrix;

[0140] An interpolation unit, used to obtain a current containing time information based on a collection point, convert the current into a grayscale value according to a preset conversion formula, and insert the current into a matrix in a preset order;

[0141] The conversion formula is:

[0142] ; In the formula, is the converted current value, is the minimum current value at the acquisition point, is the maximum current at the collection point, and Updated in real time.

[0143] Furthermore, the data downsampling module 13 includes:

[0144] A data deletion unit selects and deletes even rows and even columns of the two-dimensional data, and records the number of deletions as the number of downsampling;

[0145] An execution unit, configured to execute cyclically until the number of rows and columns of the two-dimensionalized data is less than a preset number threshold;

[0146] The statistical unit is used to count the two-dimensional data with the sampling times as the index to obtain the data set.

[0147] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A household router data storage method, characterized in that: The method comprises: Obtain the household's registered electrical appliances and their wiring information, construct a circuit diagram based on the electrical appliances and wiring information, and determine the collection points; Based on the household router, the current at the collection point is read and the current is two-dimensionalized; Downsampling the two-dimensional data to convert it into a data set; the data in the data set are all two-dimensional data, and each two-dimensional data is indexed by the number of downsampling; Receive the encryption level input by the resident, determine the target number according to the encryption level, and select two-dimensional data in the data set according to the target number; wherein the encryption level is proportional to the target number; Up-sampling the selected two-dimensional data, and storing the up-sampled data as the final current; Calculate the encryption layer based on the upsampled data, and when receiving a decryption request sent by the decryption party, send the encryption layer to the decryption party; The steps of obtaining the household registered electrical appliances and their wiring information, constructing a circuit diagram based on the electrical appliances and wiring information, and determining the collection points include: Obtain the water and electricity layout information of the residents, and receive the electrical appliances and connection points registered by the residents based on the water and electricity layout information; Check the rated parameters of the registered electrical appliances and determine the virtual impedance; Construct circuit diagram based on virtual impedance and water and electricity arrangement information; Determine the number of circuits, randomly mark known circuits in the circuit diagram, calculate the current of other circuits based on known circuits, and determine unknown circuits; The loop is executed for a preset number of times. When the unknown line is not zero, the number of lines is incremented. When the unknown line is zero, the marked known lines are counted as collection points. The step of reading the current at the collection point based on the household router and converting the current into two dimensions comprises: According to the positional relationship of the corresponding known lines of the acquisition points, the blocks of the same size are constructed and spliced ​​to obtain a two-dimensional matrix; Acquire the current containing time information based on the acquisition point, convert the current into grayscale value according to the preset conversion formula, and insert it into the matrix block according to the preset order; The conversion formula is: ; In the formula, is the converted current value, is the minimum current value at the acquisition point, is the maximum current at the collection point, and Real-time updates; The step of downsampling the two-dimensional data and converting it into a data set comprises: Select and delete the even rows and even columns of the two-dimensional data, and record the number of deletions as the number of downsampling times; The loop is executed until the number of rows and columns of the two-dimensionalized data is less than a preset threshold value; The following sampling times are used as indexes to count the two-dimensional data and obtain the data set; The step of upsampling the selected two-dimensional data and storing the upsampled data as the final current includes: Query the target number of the selected two-dimensional data, and determine the upsampling number according to the target number; Upsampling the selected two-dimensional data based on the upsampling times to obtain upsampled data as final current storage; The upsampling process is: ; ; In the formula, is the coordinate in the upsampled two-dimensional data, is the coordinate in the two-dimensional data before upsampling; is the width of the upsampled two-dimensional data, is the height of the upsampled two-dimensional data; is the width of the two-dimensional data before upsampling, is the height of the two-dimensional data before upsampling; ; for The value at For As the center, the coordinates of the point at the lower left corner are set , For As the center, the coordinates of the point at the upper left corner are set , For As the center, the coordinates of the point at the lower right corner are set , For As the center, the coordinates of the point at the upper right corner are set , , , and These are the values ​​at the four points respectively.

2. The household router data storage method according to claim 1, characterized in that: The step of calculating the encryption layer based on the upsampled data and sending the encryption layer to the decryption party when receiving a decryption request sent by the decryption party includes: Read the two-dimensional data with zero downsampling times to obtain the reference layer; Read the upsampled data as the result layer; Calculate the difference between the result layer and the base layer to obtain the encrypted layer; When a decryption request is received from the decryption party, the encrypted layer is sent to the decryption party.

3. A household router data storage system, characterized in that: The system comprises: The collection point determination module is used to obtain the household's registered electrical appliances and their wiring information, build a circuit diagram based on the electrical appliances and wiring information, and determine the collection points; A current two-dimensionalization module is used to read the current at the collection point based on the household router and perform two-dimensionalization on the current; A data downsampling module is used to downsample the two-dimensional data and convert it into a data set; the data in the data set are all two-dimensional data, and each two-dimensional data is indexed by the number of downsampling times; A data selection module is used to receive the encryption level input by the resident, determine the target number according to the encryption level, and select two-dimensional data in the data set according to the target number; wherein the encryption level is proportional to the target number; A data up-sampling module is used to up-sample the selected two-dimensional data and store the up-sampled data as the final current; The encryption and decryption module is used to calculate the encryption layer based on the upsampled data, and when receiving the decryption request sent by the decryption party, send the encryption layer to the decryption party; The collection point determination module includes: A registered data acquisition unit, used to acquire the water and electricity layout information of the resident, and receive the registered electrical appliances and connection points of the resident based on the water and electricity layout information; An impedance determination unit, used to query the rated parameters of the registered electrical appliance and determine the virtual impedance; A circuit diagram construction unit, used for constructing a circuit diagram according to virtual impedance and water and electricity arrangement information; A current simulation unit is used to determine the number of circuits, randomly mark known circuits in the circuit diagram, calculate the current of other circuits based on the known circuits, and determine the unknown circuits; A loop determination unit, used for looping and executing a preset number of times, when the unknown lines are not zero, increasing the number of lines, and when the unknown lines are zero, counting the marked known lines as collection points; The current two-dimensionalization module comprises: A matrix building unit is used to build and splice matrix blocks of the same size according to the positional relationship of the corresponding known lines of the acquisition points to obtain a two-dimensional matrix; An interpolation unit, used to obtain a current containing time information based on a collection point, convert the current into a grayscale value according to a preset conversion formula, and insert the current into a matrix in a preset order; The conversion formula is: ; In the formula, is the converted current value, is the minimum current value at the acquisition point, is the maximum current at the collection point, and Real-time updates; The data downsampling module comprises: A data deletion unit selects and deletes even rows and even columns of the two-dimensional data, and records the number of deletions as the number of downsampling; An execution unit, configured to execute cyclically until the number of rows and columns of the two-dimensionalized data is less than a preset number threshold; A statistical unit is used to count the two-dimensional data using the sampling times as an index to obtain a data set; The step of upsampling the selected two-dimensional data and storing the upsampled data as the final current includes: Query the target number of the selected two-dimensional data, and determine the upsampling number according to the target number; Upsampling the selected two-dimensional data based on the upsampling times to obtain upsampled data as final current storage; The upsampling process is: ; ; In the formula, is the coordinate in the upsampled two-dimensional data, is the coordinate in the two-dimensional data before upsampling; is the width of the upsampled two-dimensional data, is the height of the upsampled two-dimensional data; is the width of the two-dimensional data before upsampling, is the height of the two-dimensional data before upsampling; ; for The value at For As the center, the coordinates of the point at the lower left corner are set , For As the center, the coordinates of the point at the upper left corner are set , For As the center, the coordinates of the point at the lower right corner are set , For As the center, the coordinates of the point at the upper right corner are set , , , and These are the values ​​at the four points respectively.

Citation Information

Patent Citations

  • Electric power data acquisition method and system

    CN116709061A

  • Encryption and decryption of digital messages in packet transmitting networks

    US20020023209A1

  • Systems and methods for smart device networking

    US20160112518A1

  • Secure start system for an autonomous vehicle

    US20170269940A1

  • Cryptographic systems and methods for modification of pools of truly random numbers

    US20200336304A1