Disclosure of Invention
The embodiment of the specification provides a method and a system for communication and control of an external circuit breaker of an electric energy meter, which are used for solving the following technical problems in the prior art: the control of the breaker needs to be realized through a mode of being in wired connection with the electric energy meter, so that the problems of complex installation and wiring, high field construction difficulty and more occupied internal space are caused.
The embodiment of the specification adopts the following technical scheme:
a communication and control method for an external circuit breaker of an electric energy meter comprises the following steps:
the method comprises the steps that terminal equipment obtains breaker identity identification of corresponding breakers and receives broadcast data from a plurality of electric energy meters;
the terminal equipment analyzes the received broadcast data to obtain electric energy meter identity identifications corresponding to the electric energy meters;
the terminal equipment determines corresponding connected electric energy meters from the plurality of electric energy meters according to the circuit breaker identity identification based on a preset rule;
the terminal equipment sends a connection request to the connection electric energy meter so that the electric energy meter establishes connection with the terminal equipment according to the received connection request;
and the terminal equipment sends the circuit breaker identity identification to the connection electric energy meter so that the connection electric energy meter establishes connection with the circuit breaker corresponding to the circuit breaker identity identification according to the circuit breaker identity identification.
In an embodiment that may be implemented, the acquiring, by the terminal device, a breaker identity of a corresponding breaker specifically includes:
and the terminal equipment scans the graphic code attached to the surface of the circuit breaker to obtain a corresponding circuit breaker identity.
In one possible implementation, the graphic code includes at least one of: two-dimensional code, barcode, digital ID.
In one possible implementation, before the terminal device receives broadcast data from a plurality of power meters, the method further comprises:
and each electric energy meter generates and broadcasts corresponding broadcast data according to a preset period.
In one possible implementation, after the terminal device establishes the connection with the connection electric energy meter, the method further includes:
the terminal equipment analyzes the broadcast data connected with the electric energy meter to obtain a corresponding IP address;
the terminal determines an identity authentication server corresponding to the IP address according to the IP address;
the terminal equipment sends the acquired first binding code connected with the electric energy meter to the identity verification server so that the identity verification server determines whether the first binding code is matched with a preset binding code or not, and sends corresponding feedback information to the terminal equipment under the condition of matching;
and the terminal equipment determines that the terminal equipment and the connected electric energy meter pass verification according to the received feedback information.
In an embodiment that may be implemented, the sending, by the terminal device, the identifier of the circuit breaker to the connection electric energy meter specifically includes:
the terminal equipment encrypts the circuit breaker identity identification according to a preset encryption mode;
sending the encrypted breaker identity to the connection electric energy meter;
wherein, the preset encryption mode is as follows: the SM1 symmetric encryption scheme or the SM2 asymmetric encryption scheme.
In one possible implementation, after the connecting electric energy meter establishes a connection with the circuit breaker corresponding to the circuit breaker identity, the method further includes:
the connection electric energy meter receives a second binding code from the circuit breaker;
and determining whether the second binding code is matched with the first binding code connected with the electric energy meter.
In one possible implementation, in case the second binding code matches the first binding code, the method further comprises:
the connection electric energy meter acquires and displays an asset code of the circuit breaker and the working state of the circuit breaker;
wherein, the operating condition of the circuit breaker includes: an open state and a closed state.
The utility model provides a system of external circuit breaker communication of electric energy meter and control, it includes: the system comprises terminal equipment, a circuit breaker and a plurality of electric energy meters;
each electric energy meter generates and broadcasts corresponding broadcast data;
the terminal equipment is used for acquiring the breaker identity of the corresponding breaker and receiving broadcast data from each electric energy meter; the system is used for analyzing the received broadcast data to obtain the electric energy meter identity identification corresponding to each electric energy meter; the system comprises a plurality of electric energy meters, a breaker identity identification and a connection electric energy meter, wherein the breaker identity identification is used for identifying the corresponding connection electric energy meter from the plurality of electric energy meters; and the electric energy meter is used for sending a connection request to the connection electric energy meter;
the connection electric energy meter is used for establishing connection with the terminal equipment according to the received connection request;
the terminal equipment is also used for sending the circuit breaker identity to the connection electric energy meter;
and the connection electric energy meter is used for establishing connection with the circuit breaker corresponding to the circuit breaker identity identification according to the circuit breaker identity identification.
In one possible implementation, the surface of the circuit breaker is attached with a corresponding graphic code;
and the terminal equipment obtains a corresponding breaker identity through scanning the graphic code.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects: the method comprises the steps that the connection electric energy meter connected with the circuit breaker is determined through the identity of the circuit breaker acquired by the terminal equipment and the received broadcast data from the plurality of electric energy meters, so that the circuit breaker is connected with the connection electric energy meter. Through the mode, the wireless connection and pairing between the circuit breaker and the electric energy meter are realized, the field installation wiring is avoided, the installation work is simplified, and therefore the safety efficiency is improved. And moreover, the problem of potential safety hazard of electricity utilization caused by limited connection can be avoided. In addition, a solid foundation is laid for the follow-up more intelligent power grid terminal construction.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in the description belong to the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for communication and control of an external circuit breaker of an electric energy meter according to an embodiment of the present application. As shown in fig. 1, a circuit breaker control method provided in an embodiment of the present application may include the following steps:
s101, the terminal equipment acquires the circuit breaker identity of the corresponding circuit breaker.
Specifically, a corresponding graphic code may be attached on the surface of each circuit breaker. And the terminal equipment scans the graphic code on the circuit breaker to obtain the corresponding circuit breaker identity of the circuit breaker.
In some embodiments of the present application, the graphic code may be a two-dimensional code, a bar code, or a digital ID. And the terminal equipment can obtain the corresponding circuit breaker identity through scanning the corresponding graphic code.
It should be noted that, after the user logs in the corresponding software at the terminal device, the user may scan the graphic code to obtain the breaker identity of the corresponding breaker. That is to say, only the user who has corresponding authority can obtain the circuit breaker ID of circuit breaker to circuit breaker ID's security has further been guaranteed.
The circuit breaker identity of the circuit breaker can uniquely represent a character string of the circuit breaker, and the character string can be composed of numbers, letters and special characters, and can also be composed of a mixture of at least two of the numbers, the letters and the special characters. For example: 123456, abcdef, a12cd @ and the like.
It should be noted that the above-mentioned digital ID and the circuit breaker identity may be the same or different. In some embodiments of the present application, the above-mentioned digital ID is different from the circuit breaker identity, so that the security of the circuit breaker identity can be further ensured.
Through the above graphic code attached to the circuit breaker, the identity of the circuit breaker can be well guaranteed to be difficult to maliciously cracked, and the safety of circuit breaker control is further guaranteed.
And S102, the terminal equipment receives broadcast data from a plurality of electric energy meters.
Each electric energy meter can broadcast the generated broadcast data according to a preset period, and the terminal equipment can start a Bluetooth communication mode in advance to receive the broadcast data of the electric energy meters within a certain range.
The broadcast data may be one of four modes: ADV _ IND, ADV _ DIRECT _ IND, ADV _ NONCONN _ IND, ADV _ SCAN _ IND.
The ADV _ IND is a general connection broadcast, which indicates that the current device can accept connection requests from any other device. The device performing the general broadcast can be scanned by the scanning device or entered into a connection as a slave device upon receiving a connection request, i.e. without a distinction between master and slave devices.
ADV DIRECT IND is a directed connection broadcast that allows for connection establishment as quickly as possible. The connection-oriented broadcast has special timing requirements, and the complete broadcast time must not be repeated for 3.75 ms. This requirement is that the scanning device only needs to scan 3.75ms to receive messages directed to the broadcasting device. Of course, such a fast transmission would cause the message to flood the broadcast channel, which would result in other devices in the area not being able to broadcast. If the host does not actively request a stop, or a link is not established, the controller will automatically stop the broadcast.
ADV _ NONCONN _ IND is not connectable to the universal broadcast. Only broadcast data is transmitted, rather than being scanned or concatenated. This is also the only type of broadcast that can be used with only the transmitter and with the receiver device deactivated. The device that performs the connectionless broadcast does not enter the connected state. Therefore, it can only switch between the broadcast too and ready states according to the host requirements.
ADV _ SCAN _ IND is a scannable general broadcast, also known as a discoverable broadcast. Such a broadcast is not available to initiate a connection but allows other devices to scan for the broadcast device. This means that the device can be found, either sending broadcast belonging or scanning response data accordingly, but not establishing a connection. This is a form of broadcasting suitable for broadcasting data. The dynamic data may be included in the broadcast data and the static data may be included in the scan corresponding data.
The predetermined period may be an integral multiple of 0.625ms, ranging from 20ms to 10.24 s. For the broadcast mode with ADV _ SCAN _ IND or ADV _ non _ IND, the period is not less than 100ms, i.e. 160 frames and 0.625 ms.
It should be noted that, the steps S101 and S102 may be executed simultaneously, or the step S101 may be executed first, and then the step S102 may be executed. Alternatively, step S102 is performed first, and then step S101 is performed.
And S103, the terminal equipment analyzes the received broadcast data to obtain the electric energy meter identity identifications corresponding to the electric energy meters.
The broadcast data may include an electric energy meter identity of the electric energy meter, and the terminal device may analyze each broadcast data to obtain a corresponding electric energy meter identity.
It should be noted that the electric energy meter identity is used for uniquely identifying the circuit breaker, and may be represented by a character string, and a specific representation manner is similar to the circuit breaker identity, which is not described in detail in this embodiment of the application.
And S104, the terminal equipment determines corresponding connection electric energy meters from the plurality of electric energy meters according to the circuit breaker identity identification based on a preset rule.
Specifically, the terminal device may encrypt the acquired circuit breaker identity and the plurality of electric energy meter identities to obtain corresponding encrypted data. The terminal device may transmit the encrypted data to the data storage server.
And the data storage server decrypts the received encrypted data through a corresponding decryption method to obtain a corresponding breaker identity and a plurality of electric energy meter identity.
And the data storage server determines the electric energy meter identity identification corresponding to the breaker identity identification from the plurality of electric energy meter identity data according to the pre-stored corresponding relationship between the electric energy meters and the breakers.
And the data storage server generates feedback information according to the electric energy meter identity identification corresponding to the breaker identity identification, and sends the feedback information to the terminal equipment.
And the terminal equipment determines the connection electric energy meter corresponding to the breaker identity identification according to the feedback information. The connection electric energy meter is one of the plurality of electric energy meters for broadcasting.
Through the scheme, the connection electric energy meter corresponding to the breaker can be determined on the premise of ensuring the confidentiality of the connection electric energy meter.
And S105, the terminal equipment sends a connection request to the connection electric energy meter.
And S106, after receiving the connection request, the connection electric energy meter establishes connection with the terminal equipment.
It should be noted that, the connection between the electric energy meter and the terminal device may be established through bluetooth.
And S107, after the terminal equipment is connected with the connection electric energy meter, performing identity verification between the terminal equipment and the connection electric energy meter.
Specifically, the terminal device analyzes the broadcast data connected to the electric energy meter to obtain a corresponding IP address.
And the terminal equipment determines an identity authentication server corresponding to the IP address according to the IP address.
And the terminal equipment sends the acquired first binding code connected with the electric energy meter to the server.
The server determines whether the first binding code is matched with a preset binding code, and sends corresponding feedback information to the terminal equipment under the condition of matching.
And the terminal equipment determines that the terminal equipment and the connected electric energy meter pass the verification according to the received feedback information from the server.
The first binding code is generated randomly by the terminal equipment according to the preset mark code, and whether the first binding code is matched with the preset binding code is determined by verifying whether the mark code in the first binding code is consistent with the mark code in the preset binding code.
And S108, after the terminal equipment and the connection electric energy meter pass the verification, the terminal equipment encrypts the acquired breaker identity according to a preset encryption mode, and sends the encrypted breaker identity to the connection electric energy meter.
In some embodiments of the present application, the preset encryption manner is: the SM1 symmetric encryption scheme or the SM2 asymmetric encryption scheme.
Specifically, the SM2 asymmetric encryption method is:
the terminal equipment selects an elliptic curve E suitable for encryptionp(a, b) (e.g., y)2=x3+ ax + c) and taking a point on the elliptic curve as a base point G, the order n of G is a large prime number. Wherein the order of G refers to the minimum value of n that satisfies nG ═ O.
The terminal device selects a private key K and generates a public key K kG. Wherein K is a public key, K is secret, and K is a private key.
The terminal equipment firstly converts the circuit breaker identity into an elliptic curve EpA point P on (a, b)mThen, a random number r is selected, and a ciphertext C is calculatedm={rG,Pm+ rP, if r is such that rG or rP is 0, then r is reselected.
The electric energy meter is connected to receive the ciphertext CmAnd then, decrypting the circuit breaker identification to obtain the corresponding circuit breaker identification.
The information is transmitted in the encryption mode, so that the confidentiality of information transmission can be effectively improved, and the problem of manual malicious operation of the circuit breaker is avoided.
And S109, connecting the electric energy meter to decrypt the encrypted breaker identity identification according to a preset decryption mode to obtain the breaker identity identification.
And S110, connecting the electric energy meter to establish connection with the circuit breaker corresponding to the circuit breaker identity identification according to the circuit breaker identity identification.
The connection between the electric energy meter and the corresponding circuit breaker can be established through Bluetooth communication.
It should be noted that, before step S110, the bluetooth communication function is started in advance when the power meter and the circuit breaker are connected.
In some embodiments of the present application, after the electric energy meter is connected to the circuit breaker, in order to ensure the correctness of the connection, authentication may also be performed between the electric energy meter and the circuit breaker. Specifically, the identity verification between the connection electric energy meter and the connection breaker can be performed in the following manner:
the breaker sends a second binding code to the connection electric energy meter;
the connection electric energy meter determines whether the second binding code is matched with the first binding code of the connection electric energy meter;
under the condition of matching, determining that the identity authentication between the connected electric energy meter and the circuit breaker is passed;
in case of mismatch, it is determined that the authentication between the connected electric energy meter and the circuit breaker is not passed.
By the mode, the identity authentication between the electric energy meter and the breaker is added, the problem of data communication errors between the devices is reduced, and the problem of asset relevance errors caused by direct communication without authentication between the devices is solved.
In some embodiments of the present application, in the case that the second binding code matches the first binding code, the method may further include:
and connecting an electric energy meter to obtain the asset code and the working state of the circuit breaker, and displaying.
The connection electric energy meter can send a control signal to the circuit breaker, and the circuit breaker sets the working state of the circuit breaker according to the received control signal.
The operating state of the circuit breaker may include: an open state and a closed state.
According to the communication and control method for the external circuit breaker of the electric energy meter, the electric energy meter connected with the circuit breaker is determined through the identity of the circuit breaker acquired by the terminal equipment and the received broadcast data from the plurality of electric energy meters, and therefore the circuit breaker is connected with the electric energy meter. Through the mode, the wireless connection and pairing between the circuit breaker and the electric energy meter are realized, the field installation wiring is avoided, the installation work is simplified, and therefore the safety efficiency is improved. And moreover, the problem of potential safety hazard of electricity utilization caused by limited connection can be avoided. In addition, the method lays a solid foundation for the subsequent more intelligent power grid terminal construction.
Fig. 2 is a communication and control system of an external circuit breaker of an electric energy meter according to an embodiment of the present application. As shown in fig. 2, the present system includes: the system comprises terminal equipment, a circuit breaker and a plurality of electric energy meters;
each electric energy meter generates and broadcasts corresponding broadcast data;
the terminal equipment is used for acquiring the breaker identity of the corresponding breaker and receiving broadcast data from each electric energy meter; the system is used for analyzing the received broadcast data to obtain the electric energy meter identity identification corresponding to each electric energy meter; the system comprises a plurality of electric energy meters, a breaker identity identification and a connection electric energy meter, wherein the breaker identity identification is used for identifying the corresponding connection electric energy meter from the plurality of electric energy meters; and the electric energy meter is used for sending a connection request to the connection electric energy meter;
the connection electric energy meter is used for establishing connection with the terminal equipment according to the received connection request;
the terminal equipment is also used for sending the circuit breaker identity to the connection electric energy meter;
and the connection electric energy meter is used for establishing connection with the circuit breaker corresponding to the circuit breaker identity identification according to the circuit breaker identity identification.
In some embodiments of the present application, the surface of the circuit breaker is attached with a corresponding graphic code. And the terminal equipment obtains the corresponding breaker identity through scanning the graphic code.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The system and the method provided by the embodiment of the application are in one-to-one correspondence, so that the system also has beneficial technical effects similar to those of the corresponding method.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.