CN115577024B - Method and device for backtracking direct current electric energy value and electronic equipment - Google Patents

Method and device for backtracking direct current electric energy value and electronic equipment Download PDF

Info

Publication number
CN115577024B
CN115577024B CN202211565553.2A CN202211565553A CN115577024B CN 115577024 B CN115577024 B CN 115577024B CN 202211565553 A CN202211565553 A CN 202211565553A CN 115577024 B CN115577024 B CN 115577024B
Authority
CN
China
Prior art keywords
electric energy
value
backtracking
packet
energy
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
Application number
CN202211565553.2A
Other languages
Chinese (zh)
Other versions
CN115577024A (en
Inventor
李庆先
朱宪宇
王晋威
向德
刘良江
刘青
王思思
彭巨
杨洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Institute of Metrology and Test
Original Assignee
Hunan Institute of Metrology and Test
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hunan Institute of Metrology and Test filed Critical Hunan Institute of Metrology and Test
Priority to CN202211565553.2A priority Critical patent/CN115577024B/en
Publication of CN115577024A publication Critical patent/CN115577024A/en
Application granted granted Critical
Publication of CN115577024B publication Critical patent/CN115577024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Probability & Statistics with Applications (AREA)
  • Medical Informatics (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Human Computer Interaction (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to the technical field of circuit control, and discloses a method and a device for backtracking a direct current electric energy value, electronic equipment and a storage medium, wherein the method comprises the following steps of: the method comprises the steps of starting a preset ammeter and a preset voltmeter to read within a specified time to obtain an electric energy data packet, encrypting the electric energy data packet to obtain an encrypted electric energy packet, sending the encrypted electric energy packet to a pre-constructed energy value backtracking server, unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value, creating a visual widget and generating a configuration page of the visual widget, wherein the visual widget comprises an identification ID, analyzing configuration information of the configuration page by using the identification ID to obtain configuration parameters, driving the configuration parameters, the current value and the voltage value to generate a configuration file through a rule engine, and rendering the configuration file to obtain an energy visual backtracking interface. The invention can solve the problem that the data privacy protection and visual display of the current and voltage values are lacked during energy value backtracking.

Description

Method and device for backtracking direct current electric energy value and electronic equipment
Technical Field
The invention relates to the technical field of circuit control, in particular to a method and a device for backtracking a direct current electric energy value, electronic equipment and a computer readable storage medium.
Background
Direct Current (DC), also called constant Current, has the characteristics of invariable size and direction, and the Direct Current has a wide application scenario, so that the Current and voltage consumption condition of the Direct Current in the circuit needs to be checked frequently to prevent safety accidents, wherein the Current and voltage condition of the Direct Current in the circuit needs to be checked, which is called the Direct Current electric energy value backtracking.
At present, the direct current energy value backtracking is only to record the current and voltage value and the acquisition time acquired each time and to display the current and voltage value and the acquisition time in the forms of EXCEL and the like, and although the energy value backtracking can be realized, the data privacy protection and the more specific visual display of the current and voltage value are lacked.
Disclosure of Invention
The invention provides a method and a device for backtracking a direct current electric energy value and a computer readable storage medium, and mainly aims to solve the problem that data privacy protection and visual display of a current voltage value are lacked during backtracking of the energy value.
In order to achieve the above object, the present invention provides a method for backtracking a dc power value, comprising:
receiving a direct current electric energy value backtracking instruction input by a user, starting a preset current meter and a preset voltage meter according to the direct current electric energy value backtracking instruction, reading a current value and a voltage value of a direct current circuit within a specified interval time, and packaging to obtain an electric energy data packet;
encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server;
unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point;
creating a visualization widget of energy value backtracking data and generating a configuration page of the visualization widget, wherein the visualization widget comprises an identification ID;
analyzing the configuration information of the configuration page by using the identification ID to obtain configuration parameters, and driving the configuration parameters and the current value and the voltage value including the time point by using a rule engine to generate a configuration file;
and rendering the configuration file to obtain an energy value visualization backtracking interface at different time points.
Optionally, the reading the current value and the voltage value of the dc circuit at a specified interval, and packaging to obtain an electric energy data packet, includes:
dividing the interval time into specified unit time periods, and respectively reading the current value and the voltage value of the direct current circuit in each unit time period to obtain a current value and a voltage value in unit time;
and receiving an electric energy data packing meter input by a user, and filling the current value and the voltage value of each section in unit time into the electric energy data packing meter in sequence according to the form rule of the electric energy data packing meter to obtain the electric energy data packet.
Optionally, the encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server includes:
generating a public and private key and a secret key for the electric energy data packet, wherein the public and private key comprises a public key and a private key;
embedding the private key into the electric energy data packet to obtain the encrypted electric energy packet;
acquiring an IP address of the energy value backtracking server, and sending the public key and the secret key to the energy value backtracking server according to the IP address;
and when a reply instruction of the energy value backtracking server is received, the encrypted electric energy packet is sent to the energy value backtracking server.
Optionally, the embedding the private key into the electric energy data packet to obtain the encrypted electric energy packet includes:
and inputting the private key into an electric energy data packaging meter in the electric energy data packet, and encrypting the electric energy data packaging meter according to the public key to obtain the encrypted electric energy packet.
Optionally, the sending the public key and the secret key to the energy value backtracking server according to the IP address includes:
sending verification information of an energy value backtracking server to the energy value backtracking server through the IP address;
when the verification information passes verification, performing handshake for specified times on the energy value backtracking server and the client where the encrypted electric energy packet is located to obtain a handshake success prompt;
establishing the connection between the energy value backtracking server and the client based on the handshake success prompt;
and sending the public key and the secret key to the energy value backtracking server through the client, and generating a storage address to feed back to the client.
Optionally, the unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point includes:
inputting the verification information in the energy value backtracking server, and when the verification information passes the verification;
reading the storage address from the client, acquiring the public key and the secret key through the storage address, and cracking the encrypted information of the encrypted electric energy packet by using the public key and the secret key to obtain the electric energy data packet;
and sequentially extracting the current value and the voltage value including the time point according to the time corresponding relation between each current value and the voltage value in the electric energy data packet.
Optionally, the creating a visualization widget of energy value backtracking data and generating a configuration page of the visualization widget includes:
extracting a header parameter in the electric energy data packaging meter;
extracting a general basic component, a system configuration component and an energy value component from a pre-constructed componentized integrated system according to the attribute of the header parameter, and generating an index address, wherein the general basic component, the system configuration component and the energy value component form the visual widget;
loading data information corresponding to the general basic component and the system configuration component from a database to obtain basic data;
and rendering the basic data to obtain the configuration page.
In order to solve the above problems, the present invention further provides a dc power value backtracking apparatus, including:
the electric energy data packaging module is used for receiving a direct current electric energy value backtracking instruction input by a user, starting a preset ammeter and a preset voltmeter according to the direct current electric energy value backtracking instruction, reading a current value and a voltage value of a direct current circuit within specified interval time, and packaging to obtain an electric energy data packet;
the electric energy data encryption module is used for encrypting the electric energy data packet to obtain an encrypted electric energy packet and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server;
the decryption module is used for unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point;
the visual widget construction module is used for creating a visual widget of energy value backtracking data and generating a configuration page of the visual widget, wherein the visual widget comprises an identification ID;
and the visual backtracking interface generation module is used for analyzing the configuration information of the configuration page by using the identification ID to obtain configuration parameters, driving the configuration parameters and the current value and the voltage value including the time point through a rule engine to generate a configuration file, and rendering the configuration file to obtain the visual backtracking interfaces of the energy values at different time points.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the direct current electric energy value backtracking method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, where at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the above method for tracing back a dc power amount value.
Compared with the background art: at present, the direct current energy value backtracking only records the current and voltage value and the acquisition time acquired each time, and the current and voltage value is displayed in the forms of EXCEL and the like, so that the data privacy protection and the more specific visual display of the current and voltage value are lacked. In order to solve the problems in the background art, in an embodiment of the present invention, a dc power value backtracking instruction input by a user is received, a preset current meter and a preset voltage meter are started according to the dc power value backtracking instruction, a current value and a voltage value of a dc circuit are read within a specified interval time and are packaged to obtain a power data packet, and the current value and the voltage value are packaged to obtain a power data packet, which is convenient for subsequent data encryption operations. Therefore, the method, the device, the electronic equipment and the computer readable storage medium for backtracking the direct current electric energy value can solve the problem that data privacy protection and visual display of the current and voltage value are lacked when the energy value is backtracked.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for backtracking a dc power value according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart showing a detailed implementation of one of the steps in FIG. 1;
FIG. 3 is a schematic flow chart showing another step of FIG. 1;
fig. 4 is a functional block diagram of a dc power quantity backtracking apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the dc power magnitude backtracking method according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a method for backtracking a direct current electric energy value. The executing main body of the direct current electric energy value backtracking method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the dc power value backtracking method may be performed by software or hardware installed in the terminal device or the server device, where the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Fig. 1 is a schematic flow chart of a method for backtracking a dc power value according to an embodiment of the present invention. In this embodiment, the method for backtracking a dc power value includes:
s1, receiving a direct current electric energy value backtracking instruction input by a user, starting a preset ammeter and a preset voltmeter according to the direct current electric energy value backtracking instruction, reading a current value and a voltage value of a direct current circuit within a specified interval time, and packaging to obtain an electric energy data packet.
It should be understood that Direct Current (DC), also called constant Current, has the characteristic that the size and the direction are not changed, and Direct Current has a wide application scenario, for example, a screen manufacturer opens up production lines with 480p, 720p, and 1080p screens, and needs to check the Current energy consumption of three-day screen production lines, so that when the three production lines receive a Direct Current energy value backtracking instruction, preset Current meters and voltage meters can be automatically started.
Further, the reading the current value and the voltage value of the dc circuit at a specified interval, and packaging to obtain an electric energy data packet includes:
dividing the interval time into specified unit time periods, and respectively reading the current value and the voltage value of the direct current circuit in each unit time period to obtain a current value and a voltage value in unit time;
and receiving an electric energy data packing meter input by a user, and filling the current value and the voltage value of each section in unit time into the electric energy data packing meter in sequence according to the form rule of the electric energy data packing meter to obtain the electric energy data packet.
For example, to obtain the power data packet of the three screen production lines, an interval time from 8 am to 10 am is set, and the unit time period is 10 minutes, which means that the current value and the voltage value are collected every 10 minutes during the interval time from 8 am to 10 am. In addition, the form rules of different electric energy data packing tables are different, for example, the form rules of the production line name, the reading time, the ammeter and the voltmeter are sequentially filled, so that the electric energy data packet comprising three screen production lines is obtained.
S2, encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server.
Because the user who needs to carry out the direct current electric energy value backtracking is large-scale enterprise generally, consequently to direct current electric energy value data comparatively sensitive, generally can not externally publish. Therefore, in order to increase the risk caused by information leakage in the backtracking process, when the collected electric energy data packet is sent to the energy value backtracking server, an encryption operation needs to be executed. In detail, referring to fig. 2, encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server includes:
s21, generating a public and private key and a secret key for the electric energy data packet, wherein the public and private key comprises a public key and a private key;
s22, embedding the private key into the electric energy data packet to obtain the encrypted electric energy packet;
s23, obtaining an IP address of the energy value backtracking server, and sending the public key and the secret key to the energy value backtracking server according to the IP address;
and S24, when a reply instruction of the energy value backtracking server is received, the encrypted electric energy packet is sent to the energy value backtracking server.
It should be explained that, in the embodiment of the present invention, the public-private key refers to a pair of a public key and a private key generated by using a public key algorithm, and the key refers to a key paired with the public-private key.
In addition, the embedding the private key into the electric energy data packet to obtain the encrypted electric energy packet includes:
and inputting the private key into an electric energy data packaging meter in the electric energy data packet, and encrypting the electric energy data packaging meter according to the public key to obtain the encrypted electric energy packet.
Further, in this embodiment of the present invention, the sending the public key and the secret key to the energy value backtracking server according to the IP address includes:
sending verification information of an energy value backtracking server to the energy value backtracking server through the IP address;
when the verification information passes verification, performing handshake for specified times on the energy value backtracking server and the client where the encrypted electric energy packet is located to obtain a handshake success prompt;
establishing the connection between the energy value backtracking server and the client based on the handshake success prompt;
and sending the public key and the secret key to the energy value backtracking server through the client, and generating a storage address to feed back to the client.
Illustratively, the verification information includes a user name, a user password, a user photo and the like, and after the verification of the energy value backtracking server is passed, the user is indicated to have the authority of storing the encrypted electric energy packet, so that the connection between the energy value backtracking server and the client where the encrypted electric energy packet is located is established, and the storage is further realized.
It can be seen that, when the reply instruction of the energy value backtracking server is received, it indicates that the public key and the secret key are stored in the energy value backtracking server, and therefore, the encrypted electric energy packet is continuously sent to the energy value backtracking server, where the encrypted electric energy packet includes the private key. Therefore, in the energy value backtracking server, the storage areas of the public key and the secret key are different from the storage area of the encrypted electric energy packet, so that the safety is improved.
And S3, unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point.
In detail, the unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point includes:
inputting the verification information in the energy value backtracking server, and when the verification information passes the verification;
reading the storage address from the client, acquiring the public key and the secret key through the storage address, and cracking the encrypted information of the encrypted electric energy packet by using the public key and the secret key to obtain the electric energy data packet;
and sequentially extracting the current value and the voltage value including the time point according to the time corresponding relation between each current value and the voltage value in the electric energy data packet.
It can be understood that when the verification information is used for passing the verification, the client side of the encrypted electric energy package stores the storage address of the public key and the key in the energy value backtracking server in advance, so that the client side is accessed to obtain the storage address, the public key and the key are obtained, the encrypted electric energy package is cracked by using the public key and the key, and the current value and the voltage value of each time point are extracted in sequence. Illustratively, the three screen production lines collect current values and voltage values every 10 minutes from 8 am to 10 am, thereby obtaining [8 am, 100A,220V ], [8 am, 10 min, 95A,230V ], [8 am, 20 min, 105A,240V ], and the like including current values and voltage values at time points.
And S4, creating a visual widget of energy value backtracking data and generating a configuration page of the visual widget, wherein the visual widget comprises an identification ID.
In the embodiment of the invention, the data list is a data display mode which is commonly used by a software service system, although the contents displayed by different data lists are different, in general, the general design methods of the data list are basically consistent, and the data list mainly comprises a header area, a search area, a newly-added area, a global operation area, a data list display area, a data list operation area and the like. Therefore, in the embodiment of the invention, based on the universality of the data list design, the characteristic parameters of different areas can be abstracted, and the generation of the data list is realized in an intelligent configuration mode, so that the development code amount of the data list is reduced, and the list generation efficiency is improved.
The visual widget is a component set which is pre-constructed by combining current and voltage values, and comprises a general basic component, a system configuration component and an energy value component, and a configuration page corresponding to the visual widget can dynamically configure the general basic component, the system configuration component and the energy value component.
The general basic components can define the page layout of the whole energy value visualization, and realize the data request transmission of each sub-component; the system configuration component can automatically generate a whole local operation area, a search area, a title area and the like; the energy value module may automatically generate a data display region of the energy value according to the current value and the voltage value including the time point, and the like.
In detail, referring to fig. 3, the creating a visualization widget of energy value backtracking data and generating a configuration page of the visualization widget includes:
s41, extracting header parameters in the electric energy data packaging meter;
s42, extracting a general basic component, a system configuration component and an energy value component from the pre-constructed componentized integrated system according to the attribute of the header parameter, and generating an index address, wherein the general basic component, the system configuration component and the energy value component form the visual widget;
s43, loading data information corresponding to the general basic component and the system configuration component from a database to obtain basic data;
s44, rendering the basic data to obtain the configuration page.
Illustratively, the header parameters of the electric energy data packing table corresponding to the screen production line include a production line name, time, a voltage value and a current value, wherein the production line name belongs to a character type attribute, and the time, the voltage value and the current value belong to a digital type attribute, so that a general basic component, a system configuration component and an energy value component related to the character type attribute and the digital type attribute can be extracted from a pre-constructed modular integrated system.
It can be understood that, since the configuration page generally includes fixed pictures and keywords, and the fixed pictures and keywords are generally stored in the database and are called by the general basic component and the system configuration component to be visualized, data information corresponding to the general basic component and the system configuration component is loaded from the database to obtain basic data, where the basic information is the fixed pictures and keywords, and the basic data is further rendered to obtain the configuration page.
Further, in order to distinguish different widgets, in the embodiment of the present invention, while a visual widget is generated, an identification ID having a one-to-one correspondence relationship with the visual widget is also generated, and the configuration page or component included in the visual widget may be called by using the identification ID.
And S5, analyzing the configuration information of the configuration page by using the identification ID to obtain configuration parameters, and driving the configuration parameters and the current value and the voltage value including the time point through a rule engine to generate a configuration file.
In detail, since the configuration information of the configuration page corresponding to the visual widget is compiled by a program, and the program is provided with a plurality of functions, each function corresponds to a configuration parameter, wherein the configuration parameters have corresponding basic data, for example, a general basic component and a system configuration component correspond to fixed pictures and keywords, but an energy component needs to correspond to current values and voltage values at different time points.
And S6, rendering the configuration file to obtain an energy value visualization backtracking interface at different time points.
Further, by rendering the configuration file, generating a visual backtracking interface comprising fixed pictures, keywords and energy values at different time points, wherein the energy values comprise current values and voltage values.
Compared with the background art, the method comprises the following steps: at present, the direct current energy value backtracking only records the current and voltage value and the acquisition time acquired each time, and the current and voltage value is displayed in the forms of EXCEL and the like, so that the data privacy protection and the more specific visual display of the current and voltage value are lacked. In order to solve the problems in the background art, a direct current energy value backtracking instruction input by a user is received, a preset current meter and a preset voltage meter are started according to the direct current energy value backtracking instruction, a current value and a voltage value of a direct current circuit are read within a specified interval time and are packaged to obtain an electric energy data packet, and the current value and the voltage value are packaged to form the electric energy data packet, so that subsequent data encryption operation is facilitated. Therefore, the method, the device, the electronic equipment and the computer readable storage medium for backtracking the direct current electric energy value can solve the problem that data privacy protection and visual display of the current and voltage value are lacked when the energy value is backtracked.
Fig. 4 is a functional block diagram of a dc power quantity value backtracking apparatus according to an embodiment of the present invention.
The dc power value backtracking apparatus 100 according to the present invention may be installed in an electronic device. According to the realized functions, the dc electric energy value backtracking apparatus 100 may include an electric energy data packaging module 101, an electric energy data encryption module 102, a decryption module 103, a visual widget construction module 104, and a visual backtracking interface generation module 105. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
The electric energy data packaging module 101 is configured to receive a direct current electric energy value backtracking instruction input by a user, start a preset ammeter and a preset voltmeter according to the direct current electric energy value backtracking instruction, read a current value and a voltage value of a direct current circuit within a specified interval time, and package the current value and the voltage value to obtain an electric energy data packet;
the electric energy data encryption module 102 is configured to encrypt the electric energy data packet to obtain an encrypted electric energy packet, and send the encrypted electric energy packet to a pre-constructed energy value backtracking server;
the decryption module 103 is configured to unpack the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point;
the visualization widget construction module 104 is configured to create a visualization widget of energy value backtracking data and generate a configuration page of the visualization widget, where the visualization widget includes an identification ID;
the visual backtracking interface generating module 105 is configured to analyze the configuration information of the configuration page by using the identifier ID to obtain configuration parameters, drive the configuration parameters and the current values and the voltage values including the time points by using a rule engine to generate a configuration file, and render the configuration file to obtain the visual backtracking interfaces of the energy values at different time points.
In detail, when the modules in the dc power value backtracking apparatus 100 according to the embodiment of the present invention are used, the same technical means as the dc power value backtracking method described in fig. 1 above is adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a method for tracing back a dc power value according to an embodiment of the present invention.
The electronic device 1 may include a processor 10, a memory 11, a bus, and a communication interface 13, where the communication interface 13 is used for communication between the electronic device implementing the dc power value backtracking method and other electronic devices, and may further include a computer program, such as a dc power value backtracking method program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, e.g. a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used to store not only the application software installed in the electronic device 1 and various types of data, such as codes of the dc power amount value backtracking method program 12, but also temporarily store data that has been output or will be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., dc power value backtracking method programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 5 only shows an electronic device with components, and it will be understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The dc energy value backtracking method program 12 stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, can implement:
receiving a direct current electric energy value backtracking instruction input by a user, starting a preset ammeter and a preset voltmeter according to the direct current electric energy value backtracking instruction, reading a current value and a voltage value of a direct current circuit within a specified interval time, and packaging to obtain an electric energy data packet;
encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server;
unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value which comprise time points;
creating a visual widget of energy value backtracking data and generating a configuration page of the visual widget, wherein the visual widget comprises an identification ID;
analyzing the configuration information of the configuration page by using the identification ID to obtain configuration parameters, and driving the configuration parameters and the current value and the voltage value including the time point by a rule engine to generate a configuration file;
and rendering the configuration file to obtain an energy value visualization backtracking interface at different time points.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiments corresponding to fig. 1 to fig. 5, which is not repeated herein.
Further, the integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic diskette, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
receiving a direct current electric energy value backtracking instruction input by a user, starting a preset current meter and a preset voltage meter according to the direct current electric energy value backtracking instruction, reading a current value and a voltage value of a direct current circuit within a specified interval time, and packaging to obtain an electric energy data packet;
encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server;
unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point;
creating a visual widget of energy value backtracking data and generating a configuration page of the visual widget, wherein the visual widget comprises an identification ID;
analyzing the configuration information of the configuration page by using the identification ID to obtain configuration parameters, and driving the configuration parameters and the current value and the voltage value including the time point by a rule engine to generate a configuration file;
and rendering the configuration file to obtain an energy value visualization backtracking interface at different time points.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it will be obvious that the term "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method for backtracking a DC electric energy value is characterized by comprising the following steps:
receiving a direct current electric energy value backtracking instruction input by a user, starting a preset ammeter and a preset voltmeter according to the direct current electric energy value backtracking instruction, reading a current value and a voltage value of a direct current circuit within a specified interval time, and packaging to obtain an electric energy data packet;
encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server;
unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value which comprise time points;
creating a visualization widget of energy value backtracking data and generating a configuration page of the visualization widget, wherein the visualization widget comprises an identification ID;
analyzing the configuration information of the configuration page by using the identification ID to obtain configuration parameters, and driving the configuration parameters and the current value and the voltage value including the time point by using a rule engine to generate a configuration file;
and rendering the configuration file to obtain an energy value visualization backtracking interface at different time points.
2. The method for tracing back the value of the direct current energy according to claim 1, wherein the step of reading the current value and the voltage value of the direct current circuit at the specified time intervals and packaging the current value and the voltage value to obtain the energy data packet comprises the steps of:
dividing the interval time into specified unit time periods, and respectively reading the current value and the voltage value of the direct current circuit in each unit time period to obtain a current value and a voltage value in unit time;
and receiving an electric energy data packing meter input by a user, and filling the current value and the voltage value of each section in unit time into the electric energy data packing meter in sequence according to the form rule of the electric energy data packing meter to obtain the electric energy data packet.
3. The method for tracing back a value of direct current electric energy according to claim 2, wherein the encrypting the electric energy data packet to obtain an encrypted electric energy packet, and sending the encrypted electric energy packet to a pre-constructed energy value tracing back server comprises:
generating a public and private key and a secret key for the electric energy data packet, wherein the public and private key comprises a public key and a private key;
embedding the private key into the electric energy data packet to obtain the encrypted electric energy packet;
acquiring an IP address of the energy value backtracking server, and sending the public key and the secret key to the energy value backtracking server according to the IP address;
and when a reply instruction of the energy value backtracking server is received, the encrypted electric energy packet is sent to the energy value backtracking server.
4. The method for tracing back a value of a direct current power quantity according to claim 3, wherein the embedding the private key into the power data packet to obtain the encrypted power packet comprises:
and inputting the private key into an electric energy data packaging meter in the electric energy data packet, and encrypting the electric energy data packaging meter according to the public key to obtain the encrypted electric energy packet.
5. The method for tracing back a value of direct current electric energy according to claim 4, wherein the sending the public key and the secret key to the energy value tracing back server according to the IP address comprises:
sending verification information of an energy value backtracking server to the energy value backtracking server through the IP address;
when the verification information passes verification, performing handshake for specified times on the energy value backtracking server and the client where the encrypted electric energy packet is located to obtain a handshake success prompt;
establishing the connection between the energy value backtracking server and the client based on the handshake success prompt;
and sending the public key and the secret key to the energy value backtracking server through the client, and generating a storage address to feed back to the client.
6. The method for tracing back a value of direct current electric energy according to claim 5, wherein said unpacking said encrypted electric energy packet in said energy value tracing back server to obtain a current value and a voltage value including a time point comprises:
inputting the verification information in the energy value backtracking server, and when the verification information passes the verification;
reading the storage address from the client, acquiring the public key and the secret key through the storage address, and cracking the encrypted information of the encrypted electric energy packet by using the public key and the secret key to obtain the electric energy data packet;
and sequentially extracting the current value and the voltage value including the time point according to the time corresponding relation between each current value and the voltage value in the electric energy data packet.
7. The dc power value backtracking method according to claim 6, wherein the creating a visual widget of the energy value backtracking data and generating a configuration page of the visual widget comprises:
extracting a header parameter in the electric energy data packaging meter;
extracting a general basic component, a system configuration component and an energy value component from a pre-constructed componentized integrated system according to the attributes of the header parameters, and generating an index address, wherein the general basic component, the system configuration component and the energy value component form the visual widget;
loading data information corresponding to the general basic component and the system configuration component from a database to obtain basic data;
and rendering the basic data to obtain the configuration page.
8. A device for backtracking the magnitude of DC electric energy, which is characterized in that the device comprises:
the electric energy data packaging module is used for receiving a direct current electric energy value backtracking instruction input by a user, starting a preset ammeter and a preset voltmeter according to the direct current electric energy value backtracking instruction, reading a current value and a voltage value of a direct current circuit within specified interval time, and packaging to obtain an electric energy data packet;
the electric energy data encryption module is used for encrypting the electric energy data packet to obtain an encrypted electric energy packet and sending the encrypted electric energy packet to a pre-constructed energy value backtracking server;
the decryption module is used for unpacking the encrypted electric energy packet in the energy value backtracking server to obtain a current value and a voltage value including a time point;
the visual widget construction module is used for creating a visual widget of energy value backtracking data and generating a configuration page of the visual widget, wherein the visual widget comprises an identification ID;
and the visual backtracking interface generation module is used for analyzing the configuration information of the configuration page by using the identification ID to obtain configuration parameters, driving the configuration parameters and the current value and the voltage value including the time point through a rule engine to generate a configuration file, and rendering the configuration file to obtain the visual backtracking interfaces of the energy values at different time points.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the dc power amount backtracking method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the dc power amount backtracking method according to any one of claims 1 to 7.
CN202211565553.2A 2022-12-07 2022-12-07 Method and device for backtracking direct current electric energy value and electronic equipment Active CN115577024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211565553.2A CN115577024B (en) 2022-12-07 2022-12-07 Method and device for backtracking direct current electric energy value and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211565553.2A CN115577024B (en) 2022-12-07 2022-12-07 Method and device for backtracking direct current electric energy value and electronic equipment

Publications (2)

Publication Number Publication Date
CN115577024A CN115577024A (en) 2023-01-06
CN115577024B true CN115577024B (en) 2023-03-14

Family

ID=84590017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211565553.2A Active CN115577024B (en) 2022-12-07 2022-12-07 Method and device for backtracking direct current electric energy value and electronic equipment

Country Status (1)

Country Link
CN (1) CN115577024B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562962A (en) * 2017-10-12 2018-01-09 国网上海市电力公司 A kind of substation information management system for monitoring based on BIM
CN111537789A (en) * 2020-05-09 2020-08-14 湖南省计量检测研究院 Direct current electric energy metering device and method based on signal separation and accurate integration
CN112542889A (en) * 2020-12-10 2021-03-23 国网辽宁省电力有限公司抚顺供电公司 Three-phase load unbalance monitoring system
CN113541805A (en) * 2021-06-11 2021-10-22 南京航空航天大学 Method for realizing energy-carrying two-way communication based on laser wireless energy transmission system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210076966A1 (en) * 2014-09-23 2021-03-18 Surgical Safety Technologies Inc. System and method for biometric data capture for event prediction
CN114706621B (en) * 2019-09-26 2023-03-24 华为技术有限公司 Method for starting fast application and related device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562962A (en) * 2017-10-12 2018-01-09 国网上海市电力公司 A kind of substation information management system for monitoring based on BIM
CN111537789A (en) * 2020-05-09 2020-08-14 湖南省计量检测研究院 Direct current electric energy metering device and method based on signal separation and accurate integration
CN112542889A (en) * 2020-12-10 2021-03-23 国网辽宁省电力有限公司抚顺供电公司 Three-phase load unbalance monitoring system
CN113541805A (en) * 2021-06-11 2021-10-22 南京航空航天大学 Method for realizing energy-carrying two-way communication based on laser wireless energy transmission system

Also Published As

Publication number Publication date
CN115577024A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
WO2022134760A1 (en) Data processing method and apparatus, and electronic device and medium
CN113055380B (en) Message processing method and device, electronic equipment and medium
CN111914029A (en) Block chain-based medical data calling method and device, electronic equipment and medium
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN112217642A (en) Data encryption sharing method and device, electronic equipment and computer storage medium
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN111651508A (en) Operation and maintenance data management method and device, electronic equipment and storage medium
CN114398194A (en) Data collection method and device, electronic equipment and readable storage medium
CN115222410A (en) Block chain based transaction uplink method and device, electronic equipment and storage medium
CN114519084A (en) Block chain-based medical data inspection method, device, equipment and medium
CN112217639B (en) Data encryption sharing method and device, electronic equipment and computer storage medium
CN113382017A (en) Permission control method and device based on white list, electronic equipment and storage medium
CN115577024B (en) Method and device for backtracking direct current electric energy value and electronic equipment
CN112579452A (en) Software automation test method, device, equipment and storage medium
CN112463414A (en) Multi-client data interaction method and device, electronic equipment and storage medium
CN111932147A (en) Visualization method and device for overall index, electronic equipment and storage medium
CN113434397B (en) Task system testing method and device, electronic equipment and storage medium
CN114897624A (en) Policy data merging method, device, equipment and storage medium
CN115801222A (en) Power consumer authenticity verification system and method based on homomorphic encrypted communication data
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN112988888B (en) Key management method, device, electronic equipment and storage medium
CN114826725A (en) Data interaction method, device, equipment and storage medium
CN113515265B (en) Site configuration method, device, equipment and computer readable storage medium
CN112667244A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN113127109A (en) Interface calling method and device, electronic equipment and readable storage medium

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