CN110929277B - Data concentrator, and electric energy metering data processing method and system - Google Patents
Data concentrator, and electric energy metering data processing method and system Download PDFInfo
- Publication number
- CN110929277B CN110929277B CN201911135792.2A CN201911135792A CN110929277B CN 110929277 B CN110929277 B CN 110929277B CN 201911135792 A CN201911135792 A CN 201911135792A CN 110929277 B CN110929277 B CN 110929277B
- Authority
- CN
- China
- Prior art keywords
- data
- electric energy
- energy metering
- ciphertext
- mixed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6209—Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2107—File encryption
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S40/00—Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
- Y04S40/20—Information technology specific aspects, e.g. CAD, simulation, modelling, system security
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Bioethics (AREA)
- Business, Economics & Management (AREA)
- Economics (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明提供一种电能计量数据的处理方法,包括电能计量数据上传处理方法:定期将待处理的电能计量数据分成两组得到第一组电能计量数据与第二组电能计量数据;使用第一加密密钥、第二加密密钥加密第一、第二组电能计量数据得到第一密文数据与第二密文数据;加密第一、第二加密密钥得到第一加密密钥密文、第二加密密钥密文;将第一密文数据、第二密文数据、第一加密密钥密文及第二加密密钥密文拼成第一混合数据;计算第一混合数据的数字摘要M;将第一混合数据与数字摘要M拼成第二混合数据存储在本地;收到相关指令后,上传第二混合数据。相对应地,本发明还提供一种数据集中器及电能计量数据的处理系统。本发明用于增强电能计量数据上传安全性。
The invention provides a method for processing electric energy metering data, including an upload processing method for electric energy metering data: periodically divide the electric energy metering data to be processed into two groups to obtain the first group of electric energy metering data and the second group of electric energy metering data; use the first encryption encryption key and the second encryption key to encrypt the first and second sets of electric energy metering data to obtain the first and second ciphertext data; to encrypt the first and second encryption keys to obtain the first and second encryption key ciphertexts, Two encryption key ciphertexts; combining the first ciphertext data, the second ciphertext data, the first encryption key ciphertext and the second encryption key ciphertext into first mixed data; calculating the digital digest of the first mixed data M; combine the first mixed data and digital abstract M into second mixed data and store locally; after receiving relevant instructions, upload the second mixed data. Correspondingly, the present invention also provides a data concentrator and a processing system for electric energy metering data. The invention is used to enhance the security of uploading electric energy metering data.
Description
技术领域technical field
本发明涉及电力系统领域,具体涉及一种数据集中器、电能计量数据的处理方法及系统。The invention relates to the field of power systems, in particular to a data concentrator, a method and a system for processing electric energy metering data.
背景技术Background technique
随着人们生活水平的提高,电力用户的数量越来越多,为此,在电力计量领域,存在着大量的数据处理工作,比如,对电力用户的电能计量数据对的采集与录入。With the improvement of people's living standards, the number of power users is increasing. Therefore, in the field of power metering, there is a large amount of data processing work, such as the collection and entry of power metering data pairs for power users.
为节约人工成本、提高计量工作效率,电力公司已在越来越多的地区使用电能计量装置,比如使用智能电能表自动采集电力用户的电能计量数据,之后在接收到电能计量数据汇总指令后,通过数据集中器对电能计量装置采集的电能计量数据进行汇总与上传(上传至电力公司的电力系统服务器)。In order to save labor costs and improve metering work efficiency, electric power companies have used electric energy metering devices in more and more areas, such as using smart electric energy meters to automatically collect electric energy metering data of electric power users, and then after receiving the electric energy metering data summary instruction, Collect and upload the electric energy metering data collected by the electric energy metering device through the data concentrator (upload to the electric power system server of the electric power company).
然而,当今社会是一个高度信息化的社会,信息安全己渗透到人们日常生活的各个方面,电能计量数据的上传也不例外。由此,为确保各电力用户电能计量数据的完整性与准确性,数据集中器对电能计量装置采集的电能计量数据的安全上传的重要性越来越突出。However, today's society is a highly information-based society, and information security has penetrated into all aspects of people's daily life, and the upload of electric energy metering data is no exception. Therefore, in order to ensure the integrity and accuracy of the electric energy metering data of each electric power user, the importance of the data concentrator to safely upload the electric energy metering data collected by the electric energy metering device is becoming more and more prominent.
为此,本发明提供一种数据集中器、电能计量数据的处理方法及系统,用于解决上述问题。Therefore, the present invention provides a data concentrator, a method and a system for processing electric energy metering data, which are used to solve the above problems.
发明内容Contents of the invention
针对现有技术的上述不足,本发明提供一种数据集中器、电能计量数据的处理方法及系统,用于增强电能计量数据上传的安全性。In view of the above-mentioned shortcomings of the prior art, the present invention provides a data concentrator, a method and a system for processing electric energy metering data, which are used to enhance the security of uploading electric energy metering data.
第一方面,本发明提供一种电能计量数据的处理方法,该电能计量数据的处理方法包括应用于数据集中器的电能计量数据上传处理方法,所述数据集中器用于集中采集用户的电能计量数据;该电能计量数据上传处理方法包括:In a first aspect, the present invention provides a method for processing electric energy metering data, the processing method for electric energy metering data includes an uploading and processing method for electric energy metering data applied to a data concentrator, and the data concentrator is used to centrally collect electric energy metering data of users ; The method for uploading and processing electric energy metering data includes:
定期将待处理的电能计量数据按用户分成两组,得到第一组电能计量数据和第二组电能计量数据;Regularly divide the electric energy metering data to be processed into two groups according to users, and obtain the first group of electric energy metering data and the second group of electric energy metering data;
采用预先设定的对称加密算法的加密模块,使用预先设定的第一加密密钥加密第一组电能计量数据得到第一密文数据、使用预先设定的第二加密密钥加密第二组电能计量数据得到第二密文数据;The encryption module adopts the preset symmetric encryption algorithm, uses the preset first encryption key to encrypt the first group of electric energy metering data to obtain the first ciphertext data, and uses the preset second encryption key to encrypt the second group The electric energy metering data obtains the second ciphertext data;
采用预先设定的非对称加密算法,使用预先设定的公钥,加密第一加密密钥得到第一加密密钥密文、加密第二加密密钥得到第二加密密钥密文;Using a preset asymmetric encryption algorithm, using a preset public key, encrypting the first encryption key to obtain the first encryption key ciphertext, and encrypting the second encryption key to obtain the second encryption key ciphertext;
按照预先约定好的顺序,将第一密文数据、第二密文数据、第一加密密钥密文及第二加密密钥密文拼成第一混合数据F1;According to the pre-agreed order, assemble the first ciphertext data, the second ciphertext data, the first encryption key ciphertext and the second encryption key ciphertext into the first mixed data F1;
采用MD5算法计算第一混合数据F1的数字摘要,得到数字摘要M;Using the MD5 algorithm to calculate the digital digest of the first mixed data F1 to obtain the digital digest M;
将第一混合数据F1与数字摘要M拼成第二混合数据F2存储在本地;Stitching the first mixed data F1 and the digital abstract M into the second mixed data F2 is stored locally;
在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2。After receiving the electricity metering data aggregation instruction sent by the power system server, upload the second mixed data F2 to the power system server.
进一步地,所述第二混合数据F2存储在本地,具体包括:Further, the second mixed data F2 is stored locally, specifically including:
判定第二混合数据F2是否满足预先设定的数据分割条件:Determine whether the second mixed data F2 satisfies the preset data segmentation condition:
是,则按照预先设定的分割规则,将第二混合数据F2分割成满足预设大小的相应数量的数据块存储至本地;If yes, according to the preset segmentation rule, the second mixed data F2 is divided into a corresponding number of data blocks satisfying the preset size and stored locally;
否,则直接将所述的第二混合数据F2存储至本地;If not, directly store the second mixed data F2 locally;
所述的在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2,具体包括:The uploading of the second mixed data F2 to the power system server after receiving the energy metering data summary instruction sent by the power system server specifically includes:
在接收到电力系统服务器发来的电能计量数据汇总指令后,判定本地存储的是否是分割出的数据块:After receiving the energy metering data summary command sent by the power system server, determine whether the local storage is a split data block:
若是,则向电力系统服务器并行上传分割所得的各数据块;If so, then upload the divided data blocks to the power system server in parallel;
若否,则直接向电力系统服务器上传本地存储的第二混合数据F2。If not, directly upload the locally stored second mixed data F2 to the power system server.
进一步地,该电能计量数据的处理方法还包括应用于电力公司的电力系统服务器的电能计量数据接收处理方法;该电能计量数据接收处理方法,与所述的电能计量数据上传处理方法配合使用,包括:Further, the method for processing electric energy metering data also includes a method for receiving and processing electric energy metering data applied to a power system server of an electric power company; the method for receiving and processing electric energy metering data is used in conjunction with the method for uploading and processing electric energy metering data, including :
获取电能计量数据上传处理方法传来的第二混合数据F2;Obtain the second mixed data F2 from the energy metering data upload processing method;
拆分第二混合数据F2,得到所述的第一混合数据F1与数字摘要M;splitting the second mixed data F2 to obtain the first mixed data F1 and digital digest M;
采用MD5算法计算上述拆分得到的第一混合数据F1的数字摘要,得到数字摘要M′;Using the MD5 algorithm to calculate the digital summary of the first mixed data F1 obtained by the above splitting, to obtain the digital summary M';
验证计算得到的数字摘要M′是否与拆分得到的数字摘要M相同;Verify that the calculated digital digest M′ is the same as the split digital digest M;
在验证计算得到的数字摘要M′与拆分得到的数字摘要M相同时,拆分所述的第一混合数据F1得到所述的第一密文数据、第二密文数据、第一加密密钥密文和第二加密密钥密文;When it is verified that the calculated digital digest M' is the same as the digital digest M obtained by splitting, split the first mixed data F1 to obtain the first ciphertext data, the second ciphertext data, and the first encrypted ciphertext data. Key ciphertext and second encryption key ciphertext;
基于预先设定的非对称加密算法,采用预先设定的与所述的公钥相对应的密钥,解密所述第一加密密钥密文得到第一加密密钥、解密所述第二加密密钥密文得到第二加密密钥;Based on a preset asymmetric encryption algorithm, using a preset key corresponding to the public key, decrypt the ciphertext of the first encryption key to obtain the first encryption key, and decrypt the second encryption key The key ciphertext obtains the second encryption key;
基于预先设定的对称加密算法的解密模块,采用解密出的第一加密密钥解密第一密文数据得到第一组电能计量数据,采用解密出的第二加密密钥解密第二密文数据得到第二组电能计量数据;The decryption module based on the preset symmetric encryption algorithm uses the decrypted first encryption key to decrypt the first ciphertext data to obtain the first set of electric energy metering data, and uses the decrypted second encryption key to decrypt the second ciphertext data Obtain the second set of electric energy measurement data;
存储解密出的第一组电能计量数据和第二组电能计量数据。The decrypted first set of electric energy metering data and the second set of electric energy metering data are stored.
进一步地,所述的获取电能计量数据上传处理方法传来的第二混合数据F2,包括:Further, the second mixed data F2 from the upload processing method of acquiring electric energy metering data includes:
接收上传来的数据,并判定所接收到的数据是否是分割得到的数据块:Receive the uploaded data and determine whether the received data is a split data block:
若是,则将所接收到的各数据块合并得到所述的第二混合数据F2;If so, combining the received data blocks to obtain the second mixed data F2;
若否,则直接得到所述的第二混合数据F2。If not, the second mixed data F2 is obtained directly.
第二方面,本发明提供一种电能计量数据的处理系统,该电能计量数据的处理系统包括应用于数据集中器的电能计量数据上传处理系统,所述数据集中器用于集中采集用户的电能计量数据;该电能计量数据上传处理系统包括:In a second aspect, the present invention provides a processing system for electric energy metering data, the processing system for electric energy metering data includes an uploading and processing system for electric energy metering data applied to a data concentrator, and the data concentrator is used for centralized collection of electric energy metering data of users ; The power metering data upload processing system includes:
电能计量数据分组模块,定期将待处理的电能计量数据按用户分成两组,得到第一组电能计量数据和第二组电能计量数据;The electric energy metering data grouping module regularly divides the electric energy metering data to be processed into two groups according to users, and obtains the first group of electric energy metering data and the second group of electric energy metering data;
对称加密模块,采用预先设定的对称加密算法的加密模块,使用预先设定的第一加密密钥加密第一组电能计量数据得到第一密文数据、使用预先设定的第二加密密钥加密第二组电能计量数据得到第二密文数据;The symmetric encryption module adopts the encryption module of the preset symmetric encryption algorithm, uses the preset first encryption key to encrypt the first group of electric energy metering data to obtain the first ciphertext data, and uses the preset second encryption key Encrypting the second group of electric energy metering data to obtain the second ciphertext data;
非对称加密模块,采用预先设定的非对称加密算法,使用预先设定的公钥,加密第一加密密钥得到第一加密密钥密文、加密第二加密密钥得到第二加密密钥密文;The asymmetric encryption module adopts a preset asymmetric encryption algorithm, uses a preset public key, encrypts the first encryption key to obtain the first encryption key ciphertext, and encrypts the second encryption key to obtain the second encryption key ciphertext;
第一拼接模块,按照预先约定好的顺序,将第一密文数据、第二密文数据、第一加密密钥密文及第二加密密钥密文拼成第一混合数据F1;The first splicing module assembles the first ciphertext data, the second ciphertext data, the first encryption key ciphertext, and the second encryption key ciphertext into the first mixed data F1 according to the pre-agreed order;
第一数字摘要模块,采用MD5算法计算第一混合数据F1的数字摘要,得到数字摘要M;The first digital summary module adopts the MD5 algorithm to calculate the digital summary of the first mixed data F1 to obtain the digital summary M;
第二拼接模块,将第一混合数据F1与数字摘要M拼成第二混合数据F2存储在本地;The second splicing module splices the first mixed data F1 and the digital abstract M into second mixed data F2 and stores them locally;
上传模块,在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2。The uploading module uploads the second mixed data F2 to the power system server after receiving the electric energy metering data summary instruction sent by the power system server.
进一步地,所述的第二拼接模块包括:Further, the second splicing module includes:
第一拼接单元,将第一混合数据F1与数字摘要M拼成第二混合数据F2;The first splicing unit splices the first mixed data F1 and the digital abstract M into the second mixed data F2;
第一判定单元,判定第二混合数据F2是否满足预先设定的数据分割条件;A first judging unit, judging whether the second mixed data F2 satisfies a preset data splitting condition;
第一存储单元,在第一判定单元判定第二混合数据F2满足预先设定的数据分割条件时,按照预先设定的分割规则,将第二混合数据F2分割成满足预设大小的相应数量的数据块存储至本地;The first storage unit, when the first judging unit judges that the second mixed data F2 satisfies the preset data division condition, divides the second mixed data F2 into a corresponding number of parts satisfying the preset size according to the preset division rule. Data blocks are stored locally;
第二存储单元,在第一判定单元判定第二混合数据F2不满足预先设定的数据分割条件时,直接将所述的第二混合数据F2存储至本地;The second storage unit directly stores the second mixed data F2 locally when the first judging unit judges that the second mixed data F2 does not meet the preset data division condition;
进一步地,所述的上传模块包括:Further, the upload module includes:
第二判定单元,在接收到电力系统服务器发来的电能计量数据汇总指令后,判定本地存储的是否是分割出的数据块;The second judging unit, after receiving the electric energy metering data summary command sent by the power system server, judges whether the locally stored data blocks are divided;
第一上传单元,在第二判定单元判定本地存储的是分割出的数据块时,向电力系统服务器并行上传分割所得的各数据块;The first uploading unit uploads the divided data blocks to the power system server in parallel when the second determining unit determines that the locally stored data blocks are divided;
第二上传单元,在第二判定单元判定本地存储的不是分割出的数据块时,直接向电力系统服务器上传本地存储的第二混合数据F2。The second uploading unit directly uploads the locally stored second mixed data F2 to the power system server when the second judging unit determines that the locally stored data block is not a segmented data block.
进一步地,该电能计量数据的处理系统还包括应用于电力公司的电力系统服务器的电能计量数据接收处理系统,该电能计量数据接收处理系统包括:Further, the system for processing electric energy metering data also includes an electric energy metering data receiving and processing system applied to a power system server of an electric power company, and the electric energy metering data receiving and processing system includes:
第二混合数据获取模块,获取电能计量数据上传处理方法传来的第二混合数据F2;The second mixed data acquisition module is used to acquire the second mixed data F2 from the power metering data upload processing method;
第一拆分模块,拆分第二混合数据F2,得到所述的第一混合数据F1与数字摘要M;The first splitting module splits the second mixed data F2 to obtain the first mixed data F1 and digital digest M;
第二数字摘要模块,采用MD5算法计算上述拆分得到的第一混合数据F1的数字摘要,得到数字摘要M′;The second digital summary module adopts the MD5 algorithm to calculate the digital summary of the first mixed data F1 obtained by the above-mentioned splitting, and obtains the digital summary M';
数字摘要验证模块,验证计算得到的数字摘要M′是否与拆分得到的数字摘要M相同;A digital digest verification module, verifying whether the calculated digital digest M' is the same as the digital digest M obtained by splitting;
第二拆分模块,在验证计算得到的数字摘要M′与拆分得到的数字摘要M相同时,拆分所述的第一混合数据F1得到所述的第一密文数据、第二密文数据、第一加密密钥密文和第二加密密钥密文;The second splitting module, when verifying that the calculated digital digest M' is the same as the split digital digest M, split the first mixed data F1 to obtain the first ciphertext data, the second ciphertext data, first encryption key ciphertext, and second encryption key ciphertext;
第一解密模块,基于预先设定的非对称加密算法,采用预先设定的与所述的公钥相对应的密钥,解密所述第一加密密钥密文得到第一加密密钥、解密所述第二加密密钥密文得到第二加密密钥;The first decryption module, based on a preset asymmetric encryption algorithm, uses a preset key corresponding to the public key to decrypt the ciphertext of the first encryption key to obtain the first encryption key, decrypt The second encryption key ciphertext obtains a second encryption key;
第二解密模块,基于预先设定的对称加密算法的解密模块,采用解密出的第一加密密钥解密第一密文数据得到第一组电能计量数据,采用解密出的第二加密密钥解密第二密文数据得到第二组电能计量数据;The second decryption module is a decryption module based on a preset symmetric encryption algorithm, uses the decrypted first encryption key to decrypt the first ciphertext data to obtain the first set of electric energy metering data, and uses the decrypted second encryption key to decrypt The second ciphertext data obtains the second group of electric energy metering data;
电能计量数据汇总模块,存储解密出的第一组电能计量数据和第二组电能计量数据至本地。The electric energy metering data summary module stores the decrypted first set of electric energy metering data and the second set of electric energy metering data locally.
进一步地,所述的第二混合数据获取模块,包括:Further, the second hybrid data acquisition module includes:
数据接收单元,接收上传来的数据;The data receiving unit receives the uploaded data;
判断单元,判定所接收到的数据是否是分割得到的数据块;a judging unit, judging whether the received data is a divided data block;
混合数据获取单元,在判定接收到的数据是分割得到的数据块时,合并所接收到的各数据块得到所述的第二混合数据F2;在判定所接收到的数据不是分割得到的数据块时,数据接收单元接收到的数据即为所述的第二混合数据F2。The mixed data acquiring unit, when judging that the received data is a split data block, merges the received data blocks to obtain the second mixed data F2; when judging that the received data is not a split data block , the data received by the data receiving unit is the second mixed data F2.
进一步地,所述的非对称加密算法采用RSA算法;所述的对称加密算法采用AES加密算法或3DES加密算法。Further, the asymmetric encryption algorithm adopts RSA algorithm; the symmetric encryption algorithm adopts AES encryption algorithm or 3DES encryption algorithm.
第三方面,本发明提供一种数据集中器,该数据集中器内集成有上述电能计量数据的处理系统中所述的电能计量数据上传处理系统。In a third aspect, the present invention provides a data concentrator, the data concentrator is integrated with the electric energy metering data upload processing system described above in the electric energy metering data processing system.
本发明的有益效果在于,The beneficial effect of the present invention is that,
(1)本发明提供的数据集中器、电能计量数据的处理方法及系统,定期将待处理的电能计量数据按用户分成两组得到第一组电能计量数据和第二组电能计量数据,并采用预先设定的对称加密算法的加密模块,使用预先设定的第一加密密钥加密第一组电能计量数据得到第一密文数据、使用预先设定的第二加密密钥加密第二组电能计量数据得到第二密文数据,然后采用预先设定的非对称加密算法,使用预先设定的公钥,加密第一加密密钥得到第一加密密钥密文、加密第二加密密钥得到第二加密密钥密文,之后按照预先约定好的顺序将第一密文数据、第二密文数据、第一加密密钥密文及第二加密密钥密文拼成第一混合数据F1,之后采用MD5算法计算第一混合数据F1的数字摘要得到数字摘要M,然后将第一混合数据F1与数字摘要M拼成第二混合数据F2存储在本地,并在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2,一定程度上增加了上传至电力系统服务器的数据的复杂度,进而有助于提高向电力系统服务器上传的电能计量数据的安全性与完整性;(1) The data concentrator provided by the present invention, the processing method and system of electric energy metering data, regularly divide the electric energy metering data to be processed into two groups according to users to obtain the first group of electric energy metering data and the second group of electric energy metering data, and adopt The encryption module of the preset symmetric encryption algorithm uses the preset first encryption key to encrypt the first group of electric energy metering data to obtain the first ciphertext data, and uses the preset second encryption key to encrypt the second group of electric energy The metering data is used to obtain the second ciphertext data, and then the preset asymmetric encryption algorithm is used to encrypt the first encryption key to obtain the first encryption key ciphertext, and the second encryption key is used to obtain The second encryption key ciphertext, and then the first ciphertext data, the second ciphertext data, the first encryption key ciphertext and the second encryption key ciphertext are combined into the first mixed data F1 according to the pre-agreed order , and then use the MD5 algorithm to calculate the digital digest of the first mixed data F1 to obtain the digital digest M, and then combine the first mixed data F1 and the digital digest M into the second mixed data F2, which is stored locally and received from the power system server After the energy metering data summary command, upload the second mixed data F2 to the power system server, which increases the complexity of the data uploaded to the power system server to a certain extent, and then helps to improve the power uploaded to the power system server. Security and integrity of measurement data;
(2)本发明提供的数据集中器、电能计量数据的处理方法及系统,将第一混合数据F1与数字摘要M拼成第二混合数据F2存储在本地,并在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2,可见本发明无需在接收到电力系统服务器发来的电能计量数据汇总指令后再收集与汇总电力用户对应的电能计量数据,一定程度上有助于提高电力系统服务器汇总电能计量数据的效率。(2) The data concentrator provided by the present invention, the processing method and system of electric energy metering data, combine the first mixed data F1 and the digital summary M into the second mixed data F2 and store it locally, and send it when receiving the power system server After receiving the energy metering data summary instruction from the power system server, upload the second mixed data F2 to the power system server. It can be seen that the present invention does not need to collect the electric energy corresponding to the summary power user after receiving the power measurement data summary command sent by the power system server. Metering data, to a certain extent, helps to improve the efficiency of the power system server in summarizing energy metering data.
(3)本发明提供的数据集中器、电能计量数据的处理方法及系统,在将第二混合数据F2存储在本地时,能够判定第二混合数据F2是否满足预先设定的数据分割条件,并能够在判定结果为是时,按照预先设定的分割规则,将第二混合数据F2分割成满足预设大小的相应数量的数据块存储至本地,并能够在接收到电力系统服务器发来的电能计量数据汇总指令后,先判定本地存储的是否是分割出的数据块,若是则向电力系统服务器并行上传分割所得的各数据块,可见有助于在一定程度上提高数据传输的速率。(3) The data concentrator, electric energy metering data processing method and system provided by the present invention can determine whether the second mixed data F2 satisfies the preset data division conditions when storing the second mixed data F2 locally, and When the judgment result is yes, according to the preset segmentation rule, the second mixed data F2 can be divided into a corresponding number of data blocks satisfying the preset size and stored locally, and can be stored locally after receiving the electric energy sent by the power system server. After the metering data summary command, first determine whether the locally stored data blocks are divided, and if so, upload the divided data blocks to the power system server in parallel, which can help to improve the data transmission rate to a certain extent.
此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the design principle of the present invention is reliable, the structure is simple, and has very wide application prospects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings on the premise of not paying creative work.
图1是本发明一个实施例的电能计量数据的处理方法的示意性流程图。Fig. 1 is a schematic flowchart of a method for processing electric energy metering data according to an embodiment of the present invention.
图2是本发明一个实施例的电能计量数据的处理系统的示意性框图。Fig. 2 is a schematic block diagram of a system for processing electric energy metering data according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
实施例1:Example 1:
图1是本发明一个实施例的电能计量数据的处理方法的示意性流程图。Fig. 1 is a schematic flowchart of a method for processing electric energy metering data according to an embodiment of the present invention.
如图1所示,该电能计量数据的处理方法包括电能计量数据上传处理方法100和与该电能计量数据上传处理方法100配合使用的电能计量数据接收处理方法200。电能计量数据上传处理方法100的执行主体可以是一种数据集中器。所述的数据集中器用于汇总其对应的相应数量的电力用户的电能计量数据。电能计量数据接收处理方法200的执行主体可以是电力公司的电力系统服务器。As shown in FIG. 1 , the method for processing electric energy metering data includes an uploading and processing method 100 for electric energy metering data and a receiving and processing method 200 for electric energy metering data used in conjunction with the uploading and processing method 100 for electric energy metering data. The execution subject of the method 100 for uploading and processing electric energy metering data may be a data concentrator. The data concentrator is used for summarizing the electric energy metering data of a corresponding corresponding number of electric power users. The execution subject of the electric energy metering data receiving and processing method 200 may be a power system server of a power company.
参见图1,所述的电能计量数据上传处理方法100,包括以下步骤110-步骤170。Referring to FIG. 1 , the method 100 for uploading and processing electric energy metering data includes the following steps 110 - 170 .
步骤110,定期将待处理的电能计量数据按用户分成两组,得到第一组电能计量数据和第二组电能计量数据。Step 110, regularly divide the electric energy metering data to be processed into two groups according to users, and obtain the first group of electric energy metering data and the second group of electric energy metering data.
在本实施例中,每间隔一个月,比如可以分别在当月的第一天,将待处理的电能计量数据按用户分成两组得到所述的第一组电能计量数据和第二组电能计量数据。其中所述的待处理的电能计量数据为电力用户在上一月的电能计量数据。In this embodiment, at intervals of one month, for example, on the first day of the current month, the electric energy metering data to be processed can be divided into two groups according to users to obtain the first group of electric energy metering data and the second group of electric energy metering data . The electric energy metering data to be processed is the electric energy metering data of the power user in the previous month.
每个电力用户对应一组电能计量数据,以本实施例中有待处理的电能计量数据有100组为例,该100组电能计量数据对应100个电力用户,可定期将待处理的电能计量数据按用户随机分成两组,比如可将其中任意的50个用户划分为第一组,该50个用户的电能计量数据组成所述的第一组电能计量数据,则余下50个用户的电能计量数据自动构成所述的第二组电能计量数据。Each power user corresponds to a set of electric energy metering data. Taking the example of 100 sets of electric energy metering data to be processed in this embodiment, the 100 sets of electric energy metering data correspond to 100 electric power users. The users are randomly divided into two groups. For example, any 50 users can be divided into the first group. The electric energy metering data of the 50 users constitute the first group of electric energy metering data, and the electric energy metering data of the remaining 50 users are automatically The second group of electric energy metering data is formed.
步骤120,采用预先设定的对称加密算法的加密模块,使用预先设定的第一加密密钥加密第一组电能计量数据得到第一密文数据、使用预先设定的第二加密密钥加密第二组电能计量数据得到第二密文数据。Step 120, using the encryption module of the preset symmetric encryption algorithm, using the preset first encryption key to encrypt the first group of electric energy metering data to obtain the first ciphertext data, and using the preset second encryption key to encrypt The second ciphertext data is obtained from the second group of electric energy metering data.
本实施例中,所述的对称加密算法采用AES加密算法,第一加密密钥为K1,第二加密密钥为K2。使用时,采用所述对称加密算法的加密模块,使用第一加密密钥为K1,加密步骤110中得到的第一组电能计量数据得到第一密文数据。相对应地,采用所述对称加密算法的加密模块,使用第二加密密钥加密步骤110中得到的第二组电能计量数据得到第二密文数据。In this embodiment, the symmetric encryption algorithm uses the AES encryption algorithm, the first encryption key is K1, and the second encryption key is K2. When in use, the encryption module using the symmetric encryption algorithm uses the first encryption key as K1 to encrypt the first group of electric energy metering data obtained in step 110 to obtain the first ciphertext data. Correspondingly, the encryption module adopting the symmetric encryption algorithm uses the second encryption key to encrypt the second group of electric energy metering data obtained in step 110 to obtain the second ciphertext data.
步骤130,采用预先设定的非对称加密算法,使用预先设定的公钥,加密第一加密密钥得到第一加密密钥密文、加密第二加密密钥得到第二加密密钥密文。Step 130, using a preset asymmetric encryption algorithm, using a preset public key, encrypting the first encryption key to obtain the first encryption key ciphertext, encrypting the second encryption key to obtain the second encryption key ciphertext .
本实施例中,所述的非对称加密算法,采用RSA加密算法,预先设定公钥为K3。使用时,使用所述的公钥,通过所述的非对称加密算法,分别加密所述的第一加密密钥和第二加密密钥,对应得到第一加密密钥密文和第二加密密钥密文。In this embodiment, the asymmetric encryption algorithm uses the RSA encryption algorithm, and the preset public key is K3. When in use, use the public key to encrypt the first encryption key and the second encryption key respectively through the asymmetric encryption algorithm, and obtain the first encryption key ciphertext and the second encryption key correspondingly. key ciphertext.
步骤140,按照预先约定好的顺序,将第一密文数据、第二密文数据、第一加密密钥密文及第二加密密钥密文拼成第一混合数据F1。Step 140, according to the pre-agreed order, combine the first ciphertext data, the second ciphertext data, the first encryption key ciphertext and the second encryption key ciphertext into the first mixed data F1.
其中所述的预先约定好的顺序,可以是所述第一密文数据、第二密文数据、第一加密密钥密文、第二加密密钥密文的任意顺序的排列组合,比如可以是第一密文数据、第二密文数据、第一加密密钥密文、第二加密密钥密文的依次排列,也可以是第一加密密钥密文、第二密文数据、第一密文数据、第二加密密钥密文的依次排列,本领域技术人员可依据实际情况进行预先约定。Wherein, the pre-agreed order may be any sequence combination of the first ciphertext data, the second ciphertext data, the first encryption key ciphertext, and the second encryption key ciphertext, for example, It is the sequential arrangement of the first ciphertext data, the second ciphertext data, the first encryption key ciphertext, and the second encryption key ciphertext, or it may be the first encryption key ciphertext, the second ciphertext data, the first encryption key ciphertext, The sequential arrangement of the first ciphertext data and the second encryption key ciphertext can be pre-determined by those skilled in the art according to the actual situation.
步骤150,采用MD5算法计算第一混合数据F1的数字摘要,得到数字摘要M。Step 150, using the MD5 algorithm to calculate the digital digest of the first mixed data F1 to obtain a digital digest M.
数字摘要M用于验证第一混合数据F1的完整性。The digital digest M is used to verify the integrity of the first mixed data F1.
步骤160,将第一混合数据F1与数字摘要M拼成第二混合数据F2存储在本地。Step 160, combine the first mixed data F1 and the digital abstract M into second mixed data F2 and store locally.
第二混合数据F2包含第一混合数据F1与数字摘要M,第一混合数据F1由第一密文数据、第二密文数据、第一加密密钥密文及第二加密密钥密文拼接而成,可见本发明在一定程度上增加了上传至电力系统服务器的数据的复杂度,进而有助于提高向电力系统服务器上传的电能计量数据的安全性与完整性。The second mixed data F2 includes the first mixed data F1 and the digital digest M, and the first mixed data F1 is concatenated by the first ciphertext data, the second ciphertext data, the first encryption key ciphertext and the second encryption key ciphertext Therefore, it can be seen that the present invention increases the complexity of the data uploaded to the power system server to a certain extent, thereby helping to improve the security and integrity of the electric energy metering data uploaded to the power system server.
步骤170,在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2。Step 170, upload the second mixed data F2 to the power system server after receiving the electric energy metering data summary instruction from the power system server.
在接收到电力系统服务器发来的电能计量数据汇总指令后,直接向电力系统服务器上传步骤160中存储在本地的第二混合数据F2。可见本发明无需在接收到电力系统服务器发来的电能计量数据汇总指令后再收集与汇总电力用户对应的电能计量数据,一定程度上提高了电力系统服务器汇总电能计量数据的效率。After receiving the electricity metering data aggregation instruction sent by the power system server, the second mixed data F2 stored locally in step 160 is directly uploaded to the power system server. It can be seen that the present invention does not need to collect the electric energy metering data corresponding to the summarized electric power users after receiving the electric energy metering data summary instruction sent by the power system server, which improves the efficiency of the electric power system server for collecting electric energy metering data to a certain extent.
参见图1,所述的电能计量数据接收处理方法200,包括以下步骤210-步骤280。Referring to FIG. 1 , the method 200 for receiving and processing electric energy metering data includes the following steps 210 - 280 .
步骤210,获取电能计量数据上传处理方法100中传来的第二混合数据F2。Step 210, acquire the second mixed data F2 transmitted in the method 100 for uploading and processing electric energy metering data.
步骤220,拆分第二混合数据F2,得到所述的第一混合数据F1与数字摘要M。Step 220, splitting the second mixed data F2 to obtain the first mixed data F1 and digital digest M.
步骤230,采用MD5算法计算上述拆分得到的第一混合数据F1的数字摘要,得到数字摘要M′。Step 230, using the MD5 algorithm to calculate the digital digest of the first mixed data F1 obtained from the splitting, to obtain the digital digest M'.
步骤240,验证计算得到的数字摘要M′是否与拆分得到的数字摘要M相同。Step 240, verify whether the calculated digital digest M' is the same as the split digital digest M.
若计算得到的数字摘要M′与步骤220中拆分得到的数字摘要M相同,则步骤220中拆分得到的第一混合数据F1具备数据完整性。If the calculated digital digest M' is the same as the digital digest M obtained by splitting in step 220, then the first mixed data F1 split in step 220 has data integrity.
步骤250,在验证计算得到的数字摘要M′与拆分得到的数字摘要M相同时,拆分所述的第一混合数据F1得到所述的第一密文数据、第二密文数据、第一加密密钥密文和第二加密密钥密文。Step 250, when it is verified that the calculated digital digest M' is the same as the digital digest M obtained by splitting, split the first mixed data F1 to obtain the first ciphertext data, the second ciphertext data, and the first ciphertext data. An encryption key ciphertext and a second encryption key ciphertext.
具体地,可依据用于拼成第一混合数据F1的预先约定好的顺序,反向拆分得到用于拼成第一混合数据F1的第一密文数据、第二密文数据、第一加密密钥密文和第二加密密钥密文。Specifically, the first ciphertext data, the second ciphertext data, the first An encryption key ciphertext and a second encryption key ciphertext.
步骤260,基于预先设定的非对称加密算法,采用预先设定的与所述的公钥相对应的密钥,解密所述第一加密密钥密文得到第一加密密钥、解密所述第二加密密钥密文得到第二加密密钥。Step 260, based on a preset asymmetric encryption algorithm, using a preset key corresponding to the public key, decrypt the ciphertext of the first encryption key to obtain the first encryption key, decrypt the The second encryption key ciphertext obtains the second encryption key.
与电能计量数据上传处理方法100中的非对称加密算法相对应地,步骤260中采用与步骤130中的非对称加密算法完全相同的RSA加密算法。Corresponding to the asymmetric encryption algorithm in the method 100 for uploading and processing electric energy metering data, the RSA encryption algorithm that is exactly the same as the asymmetric encryption algorithm in step 130 is used in step 260 .
步骤270,基于预先设定的对称加密算法的解密模块,采用解密出的第一加密密钥解密第一密文数据得到第一组电能计量数据,采用解密出的第二加密密钥解密第二密文数据得到第二组电能计量数据。Step 270, based on the decryption module of the preset symmetric encryption algorithm, use the decrypted first encryption key to decrypt the first ciphertext data to obtain the first set of electric energy metering data, and use the decrypted second encryption key to decrypt the second The ciphertext data obtains the second set of electric energy metering data.
与电能计量数据上传处理方法100中的对称加密算法相对应地,步骤270中采用与步骤120中的对称加密算法完全相同的AES加密算法。Corresponding to the symmetric encryption algorithm in the method 100 for uploading and processing electric energy metering data, the AES encryption algorithm that is exactly the same as the symmetric encryption algorithm in step 120 is adopted in step 270 .
步骤280,存储解密出的第一组电能计量数据和第二组电能计量数据。Step 280, storing the decrypted first set of electric energy metering data and the second set of electric energy metering data.
存储步骤270中解密得到的第一组电能计量数据和第二组电能计量数据。The first set of electric energy metering data and the second set of electric energy metering data obtained by decrypting in step 270 are stored.
实施例2:Example 2:
实施例2与实施例1相比,不同之处在于,本实施例中的电能计量数据的处理方法还包括:在步骤160中,将所述的第二混合数据F2存储在本地,具体包括:判定第二混合数据F2是否满足预先设定的数据分割条件:Compared with Embodiment 1, Embodiment 2 differs in that the method for processing electric energy metering data in this embodiment further includes: in step 160, storing the second mixed data F2 locally, specifically including: Determine whether the second mixed data F2 satisfies the preset data segmentation condition:
是,则按照预先设定的分割规则,将第二混合数据F2分割成满足预设大小的相应数量的数据块存储至本地;If yes, according to the preset segmentation rule, the second mixed data F2 is divided into a corresponding number of data blocks satisfying the preset size and stored locally;
否,则直接将所述的第二混合数据F2存储至本地;If not, directly store the second mixed data F2 locally;
在步骤170中,所述的在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2,具体包括:在接收到电力系统服务器发来的电能计量数据汇总指令后,判定本地存储的是否是分割出的数据块:In step 170, uploading the second mixed data F2 to the power system server after receiving the electricity metering data summary instruction sent by the power system server, specifically includes: After the energy metering data summary command, determine whether the local storage is a split data block:
若是,则向电力系统服务器并行上传分割所得的各数据块;If so, then upload the divided data blocks to the power system server in parallel;
若否,则直接向电力系统服务器上传本地存储的第二混合数据F2。If not, directly upload the locally stored second mixed data F2 to the power system server.
相对应地,在步骤210中,获取电能计量数据上传处理方法传来的第二混合数据F2,包括:Correspondingly, in step 210, the second mixed data F2 from the method of uploading and processing electric energy metering data is obtained, including:
接收上传来的数据,并判定所接收到的数据是否是分割得到的数据块:Receive the uploaded data and determine whether the received data is a split data block:
若是,则将所接收到的各数据块合并得到所述的第二混合数据F2;If so, combining the received data blocks to obtain the second mixed data F2;
若否,则直接得到所述的第二混合数据F2。If not, the second mixed data F2 is obtained directly.
实施例3:Example 3:
图2是本发明所述电能计量数据的处理系统的一个实施例。本实施例中所涉及的数据集中器用于集中汇总用户的电能计量数据。Fig. 2 is an embodiment of the processing system of electric energy metering data in the present invention. The data concentrator involved in this embodiment is used to centrally summarize the electric energy metering data of the users.
参见图2,该电能计量数据的处理系统包括应用于数据集中器的电能计量数据上传处理系统300,还包括应用于电力公司的电力系统服务器的电能计量数据接收处理系统400。所述的电能计量数据上传处理系统300与所述的电能计量数据接收处理系统400配合使用。Referring to FIG. 2 , the power metering data processing system includes a power metering data uploading and processing system 300 applied to a data concentrator, and a power metering data receiving and processing system 400 applied to a power system server of a power company. The system 300 for uploading and processing electric energy metering data is used in cooperation with the system 400 for receiving and processing electric energy metering data.
其中,所述的电能计量数据上传处理系统300包括:Wherein, the power metering data upload processing system 300 includes:
电能计量数据分组模块301,定期将待处理的电能计量数据按用户分成两组,得到第一组电能计量数据和第二组电能计量数据;The electric energy metering data grouping module 301 regularly divides the electric energy metering data to be processed into two groups according to users, and obtains the first group of electric energy metering data and the second group of electric energy metering data;
对称加密模块302,采用预先设定的对称加密算法的加密模块,使用预先设定的第一加密密钥加密第一组电能计量数据得到第一密文数据、使用预先设定的第二加密密钥加密第二组电能计量数据得到第二密文数据;The symmetric encryption module 302 is an encryption module that adopts a preset symmetric encryption algorithm, uses a preset first encryption key to encrypt the first group of electric energy metering data to obtain first ciphertext data, and uses a preset second encryption key encryption key to obtain the second ciphertext data by encrypting the second group of electric energy metering data;
非对称加密模块303,采用预先设定的非对称加密算法,使用预先设定的公钥,加密第一加密密钥得到第一加密密钥密文、加密第二加密密钥得到第二加密密钥密文;The asymmetric encryption module 303 adopts a preset asymmetric encryption algorithm and uses a preset public key to encrypt the first encryption key to obtain the first encryption key ciphertext, encrypt the second encryption key to obtain the second encryption key key ciphertext;
第一拼接模块304,按照预先约定好的顺序,将第一密文数据、第二密文数据、第一加密密钥密文及第二加密密钥密文拼成第一混合数据F1;The first splicing module 304, according to the pre-agreed order, assembles the first ciphertext data, the second ciphertext data, the first encryption key ciphertext and the second encryption key ciphertext into the first mixed data F1;
第一数字摘要模块305,采用MD5算法计算第一混合数据F1的数字摘要,得到数字摘要M;The first digital summary module 305 calculates the digital summary of the first mixed data F1 using the MD5 algorithm to obtain a digital summary M;
第二拼接模块306,将第一混合数据F1与数字摘要M拼成第二混合数据F2存储在本地;The second splicing module 306, splicing the first mixed data F1 and the digital abstract M into second mixed data F2 and storing it locally;
上传模块307,在接收到电力系统服务器发来的电能计量数据汇总指令后,向电力系统服务器上传所述的第二混合数据F2。The uploading module 307 uploads the second mixed data F2 to the power system server after receiving the power metering data summary instruction sent by the power system server.
所述的电能计量数据接收处理系统400包括:The electric energy metering data receiving and processing system 400 includes:
第二混合数据获取模块401,获取电能计量数据上传处理方法传来的第二混合数据F2;The second mixed data acquisition module 401 is used to acquire the second mixed data F2 from the method of uploading and processing electric energy metering data;
第一拆分模块402,拆分第二混合数据F2,得到所述的第一混合数据F1与数字摘要M;The first splitting module 402 splits the second mixed data F2 to obtain the first mixed data F1 and digital digest M;
第二数字摘要模块403,采用MD5算法计算上述拆分得到的第一混合数据F1的数字摘要,得到数字摘要M′;The second digital summary module 403 uses the MD5 algorithm to calculate the digital summary of the first mixed data F1 obtained by the above split, and obtains the digital summary M';
数字摘要验证模块404,验证计算得到的数字摘要M′是否与拆分得到的数字摘要M相同;Digital summary verification module 404, whether the digital summary M ' obtained by verification calculation is the same as the digital summary M obtained by splitting;
第二拆分模块405,在验证计算得到的数字摘要M′与拆分得到的数字摘要M相同时,拆分所述的第一混合数据F1得到所述的第一密文数据、第二密文数据、第一加密密钥密文和第二加密密钥密文;The second splitting module 405, when verifying that the calculated digital digest M' is the same as the split digital digest M, splits the first mixed data F1 to obtain the first ciphertext data, the second encrypted Text data, first encryption key ciphertext and second encryption key ciphertext;
第一解密模块406,基于预先设定的非对称加密算法,采用预先设定的与所述的公钥相对应的密钥,解密所述第一加密密钥密文得到第一加密密钥、解密所述第二加密密钥密文得到第二加密密钥;The first decryption module 406, based on a preset asymmetric encryption algorithm, uses a preset key corresponding to the public key to decrypt the ciphertext of the first encryption key to obtain the first encryption key, decrypting the second encryption key ciphertext to obtain a second encryption key;
第二解密模块407,基于预先设定的对称加密算法的解密模块,采用解密出的第一加密密钥解密第一密文数据得到第一组电能计量数据,采用解密出的第二加密密钥解密第二密文数据得到第二组电能计量数据;The second decryption module 407 is a decryption module based on a preset symmetric encryption algorithm, using the decrypted first encryption key to decrypt the first ciphertext data to obtain the first set of electric energy metering data, and using the decrypted second encryption key Decrypt the second ciphertext data to obtain the second set of electric energy metering data;
电能计量数据汇总模块408,存储解密出的第一组电能计量数据和第二组电能计量数据至本地。The electric energy metering data collection module 408 stores the decrypted first set of electric energy metering data and the second set of electric energy metering data locally.
实施例4:Example 4:
实施例4与实施例3相比,不同之处在于,本实施例中的电能计量数据的处理系统:Compared with Embodiment 3, Embodiment 4 differs in that the processing system of electric energy metering data in this embodiment:
所述的第二拼接模块包括:Described second stitching module comprises:
第一拼接单元,将第一混合数据F1与数字摘要M拼成第二混合数据F2;The first splicing unit splices the first mixed data F1 and the digital abstract M into the second mixed data F2;
第一判定单元,判定第二混合数据F2是否满足预先设定的数据分割条件;A first judging unit, judging whether the second mixed data F2 satisfies a preset data splitting condition;
第一存储单元,在第一判定单元判定第二混合数据F2满足预先设定的数据分割条件时,按照预先设定的分割规则,将第二混合数据F2分割成满足预设大小的相应数量的数据块存储至本地;The first storage unit, when the first judging unit judges that the second mixed data F2 satisfies the preset data division condition, divides the second mixed data F2 into a corresponding number of parts satisfying the preset size according to the preset division rule. Data blocks are stored locally;
第二存储单元,在第一判定单元判定第二混合数据F2不满足预先设定的数据分割条件时,直接将所述的第二混合数据F2存储至本地;The second storage unit directly stores the second mixed data F2 locally when the first judging unit judges that the second mixed data F2 does not meet the preset data division condition;
进一步地,所述的上传模块包括:Further, the upload module includes:
第二判定单元,在接收到电力系统服务器发来的电能计量数据汇总指令后,判定本地存储的是否是分割出的数据块;The second judging unit, after receiving the electric energy metering data summary command sent by the power system server, judges whether the locally stored data blocks are divided;
第一上传单元,在第二判定单元判定本地存储的是分割出的数据块时,向电力系统服务器并行上传分割所得的各数据块;The first uploading unit uploads the divided data blocks to the power system server in parallel when the second determining unit determines that the locally stored data blocks are divided;
第二上传单元,在第二判定单元判定本地存储的不是分割出的数据块时,直接向电力系统服务器上传本地存储的第二混合数据F2。The second uploading unit directly uploads the locally stored second mixed data F2 to the power system server when the second judging unit determines that the locally stored data block is not a segmented data block.
其中,所述的第二混合数据获取模块,包括:Wherein, the second hybrid data acquisition module includes:
数据接收单元,接收上传来的数据;The data receiving unit receives the uploaded data;
判断单元,判定所接收到的数据是否是分割得到的数据块;a judging unit, judging whether the received data is a divided data block;
混合数据获取单元,在判定接收到的数据是分割得到的数据块时,合并所接收到的各数据块得到所述的第二混合数据F2;在判定所接收到的数据不是分割得到的数据块时,数据接收单元接收到的数据即为所述的第二混合数据F2。The mixed data acquiring unit, when judging that the received data is a split data block, merges the received data blocks to obtain the second mixed data F2; when judging that the received data is not a split data block , the data received by the data receiving unit is the second mixed data F2.
实施例5:Example 5:
本实施例提供一种数据集中器,该数据集中器内集成有实施例3中所述的电能计量数据上传处理系统300。This embodiment provides a data concentrator, and the data concentrator is integrated with the electric energy metering data upload processing system 300 described in Embodiment 3.
实施例6:Embodiment 6:
本实施例提供一种数据集中器,该数据集中器内集成有实施例4中所述的电能计量数据上传处理系统300。This embodiment provides a data concentrator, and the data concentrator integrates the electric energy metering data upload processing system 300 described in Embodiment 4.
本说明书中各个实施例之间相同相似的部分互相参见即可。For the same and similar parts among the various embodiments in this specification, refer to each other.
尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those skilled in the art can make various equivalent modifications or replacements to the embodiments of the present invention, and these modifications or replacements should be within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention, and all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911135792.2A CN110929277B (en) | 2019-11-19 | 2019-11-19 | Data concentrator, and electric energy metering data processing method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911135792.2A CN110929277B (en) | 2019-11-19 | 2019-11-19 | Data concentrator, and electric energy metering data processing method and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110929277A CN110929277A (en) | 2020-03-27 |
| CN110929277B true CN110929277B (en) | 2023-08-01 |
Family
ID=69850297
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911135792.2A Active CN110929277B (en) | 2019-11-19 | 2019-11-19 | Data concentrator, and electric energy metering data processing method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110929277B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112051441B (en) * | 2020-09-18 | 2022-03-18 | 国网山东省电力公司临朐县供电公司 | Electric power communication network line detection system |
| CN112383504A (en) * | 2020-09-28 | 2021-02-19 | 国网山东省电力公司冠县供电公司 | Electric power thing networking block chain data management system |
| CN113810223A (en) * | 2021-08-20 | 2021-12-17 | 佳源科技股份有限公司 | Method for realizing remote collection of HPLC maintenance logs |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104868996A (en) * | 2014-02-25 | 2015-08-26 | 中兴通讯股份有限公司 | Data encryption and decryption method, device thereof, and terminal |
| EP3361408A1 (en) * | 2017-02-10 | 2018-08-15 | Michael Mertens | Verifiable version control on authenticated and/or encrypted electronic documents |
| CN109104279A (en) * | 2018-08-31 | 2018-12-28 | 国网河北省电力有限公司沧州供电分公司 | A kind of encryption method of electric power data, system and terminal device |
| CN109802825A (en) * | 2017-11-17 | 2019-05-24 | 深圳市金证科技股份有限公司 | A kind of data encryption, the method for decryption, system and terminal device |
-
2019
- 2019-11-19 CN CN201911135792.2A patent/CN110929277B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104868996A (en) * | 2014-02-25 | 2015-08-26 | 中兴通讯股份有限公司 | Data encryption and decryption method, device thereof, and terminal |
| EP3361408A1 (en) * | 2017-02-10 | 2018-08-15 | Michael Mertens | Verifiable version control on authenticated and/or encrypted electronic documents |
| CN109802825A (en) * | 2017-11-17 | 2019-05-24 | 深圳市金证科技股份有限公司 | A kind of data encryption, the method for decryption, system and terminal device |
| CN109104279A (en) * | 2018-08-31 | 2018-12-28 | 国网河北省电力有限公司沧州供电分公司 | A kind of encryption method of electric power data, system and terminal device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110929277A (en) | 2020-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111259070B (en) | Method and related device for storing and acquiring service data | |
| CN110929277B (en) | Data concentrator, and electric energy metering data processing method and system | |
| CN111127254B (en) | A system of data management system for operation and distribution | |
| CN108449309B (en) | A kind of mixed type can search for encryption method and system | |
| CN110474962B (en) | Data checking system and method based on edge calculation | |
| CN110830235B (en) | Intelligent vehicle networking trusted data encryption method and system based on block chain | |
| CN103036884B (en) | A kind of data guard method based on homomorphic cryptography and system | |
| CN105590443A (en) | Electrical equipment information collecting and recording mobile terminal and electrical equipment information processing system | |
| CN105610773B (en) | A kind of communication encryption method of electric energy meter remote meter reading | |
| CN102916971A (en) | Electronic data curing system and method | |
| CN110460570A (en) | A smart grid data encryption method and decryption method with forward security | |
| CN115085940A (en) | Private data aggregation method and system for smart power grid | |
| CN113660226B (en) | A blockchain-based energy data trusted sharing system and method | |
| CN112055001B (en) | Electric energy metering data uploading method and system, electric energy metering data storage method and system, and terminal | |
| CN112383504A (en) | Electric power thing networking block chain data management system | |
| CN205388823U (en) | Power equipment information collection mobile terminal and power equipment information processing system | |
| CN106559218A (en) | A kind of safe acquisition method of intelligent substation continuous data | |
| CN109995519A (en) | A kind of quantum key traffic service method and system | |
| CN114399317A (en) | On-chain anti-electricity-stealing management method and device | |
| CN106713297B (en) | Electronic data fixed platform based on cloud service | |
| CN113626860A (en) | Electric power data privacy protection method based on block chain | |
| CN112948886A (en) | Method for improving data transmission security based on block chain | |
| CN116668066B (en) | A blockchain-based smart grid privacy protection method, device, non-volatile storage medium and electronic device | |
| CN114143055B (en) | Block chain-based data distribution method and trusted traceability method | |
| CN108600173B (en) | Distributed traveling wave ranging system and method with encryption security |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |