Phase line sequence identification method, system, device, equipment, medium and product
By acquiring and comparing the current change sequences of AC power supplies and electrical equipment, and using methods such as dynamic time warping algorithms to identify phase line numbers, the unreliability problem caused by WIFI communication delays is solved, and the accuracy of identification and resource utilization efficiency are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-02
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, when identifying the phase wire number of electrical equipment based on precise time synchronization between devices and AC phase characteristics, the high and uncertain latency of WIFI communication leads to unreliable phase wire identification.
By acquiring the current change sequences of the AC power supply and the device to be identified, and using methods such as dynamic time warping algorithms, the matching degree of the current change sequences is determined, and the phase line number is identified.
It achieves fast, real-time communication and precise time synchronization without the need for real-time communication, improves the reliability of phase line number identification, and reduces the demand for computing resources.
Smart Images

Figure CN121232075B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power supply systems, and in particular to a phase line sequence identification method, system, device, equipment, medium and product. BACKGROUND
[0002] In a household power supply system, alternating current usually has two or three phase lines, and a smart socket generally only has a single-phase load interface. A power device is connected to the alternating current through the smart socket. In order to realize the optimal utilization of household energy and save electricity costs for users, the overall coordination and scheduling of the power supply system is required, and the scheduling device needs to accurately identify the alternating phase sequence of the power device.
[0003] At present, the phase sequence of the power device is identified based on the precise time synchronization between devices and the characteristics of the alternating phase. However, the scheduling device and the power device usually communicate through WIFI, and the delay between devices is high (usually more than 100 milliseconds) and uncertain when communicating through WIFI, which makes the above identification method unfeasible, resulting in unreliable phase identification. Therefore, a reliable method is needed to identify the phase sequence of the power device. SUMMARY
[0004] Therefore, it is necessary to provide a phase sequence identification method, system, device, equipment, medium and product that can improve identification reliability in view of the above technical problems.
[0005] In a first aspect, the present application provides a phase sequence identification method, comprising:
[0006] obtaining a current change sequence of a first phase line of an alternating power source and a current change sequence of a device to be identified;
[0007] determining whether the current change sequence of the alternating power source matches the current change sequence of the device to be identified;
[0008] in the case where the current change sequence of the alternating power source matches the current change sequence of the device to be identified, determining that the phase sequence of the device to be identified is consistent with the first phase line;
[0009] wherein the current change sequence comprises a change time of a current effective value and a change amount corresponding to the change time.
[0010] In one embodiment, determining whether the current change sequence of the alternating power source matches the current change sequence of the device to be identified comprises:
[0011] determining the similarity between the current change sequence of the alternating power source and the current change sequence of the device to be identified;
[0012] determining that the current variation sequence of the AC power source matches the current variation sequence of the device to be identified, in a case where the similarity is greater than or equal to a preset similarity threshold value;
[0013] determining that the current variation sequence of the AC power source does not match the current variation sequence of the device to be identified, in a case where the similarity is less than the preset similarity threshold value.
[0014] In one of the embodiments, the similarity between the current variation sequence of the AC power source and the current variation sequence of the device to be identified is determined by:
[0015] calculating a warping distance between the current variation sequence of the AC power source and the current variation sequence of the device to be identified based on a dynamic time warping algorithm;
[0016] determining the similarity according to the warping distance, wherein the warping distance is negatively correlated with the similarity.
[0017] In one of the embodiments, the current variation sequence of the first phase line of the AC power source is obtained by:
[0018] receiving the current variation sequence of the first phase line of the AC power source sent by the first acquisition device;
[0019] The first acquisition device acquires and stores the current variation sequence of the first phase line of the AC power source, and sends the current variation sequence of the AC power source after the current effective value corresponding to the mth variation in the current variation sequence of the AC power source no longer changes within a preset time length, where m is a preset number of variations in the current variation sequence of the AC power source.
[0020] In one of the embodiments, the current variation sequence of the first phase line of the AC power source sent by the first acquisition device is received by:
[0021] receiving the current variation sequence of the first phase line of the AC power source sent by the first acquisition device actively; or,
[0022] sending a query instruction to the first acquisition device, the query instruction being used to instruct the first acquisition device to send the current variation sequence of the first phase line of the AC power source;
[0023] receiving the current variation sequence of the first phase line of the AC power source sent by the first acquisition device passively.
[0024] In one of the embodiments, the first acquisition device acquires and stores the current variation sequence of the first phase line of the AC power source by:
[0025] collecting a current data point of a first phase line of an alternating current power supply, the current data point including a current change time and a corresponding current change amount;
[0026] determining whether a number of stored data points in a storage area reaches a storable number;
[0027] in a case where the number of stored data points does not reach the storable number, storing the current data point in a next storage position in the storage area in sequence;
[0028] in a case where the number of stored data points reaches the storable number, storing the current data point in a storage position where a data point with an earliest change time is located in the storage area.
[0029] In a second aspect, the present application further provides a phase line sequence identification system, comprising: a first collection device, a second collection device, and an identification device;
[0030] The first collection device is configured to collect a current change sequence of a first phase line of an alternating current power supply, and send the current change sequence of the first phase line of the alternating current power supply to the identification device.
[0031] The second collection device is configured to collect a current change sequence of a device to be identified, and send the current change sequence of the device to be identified to the identification device.
[0032] The identification device is configured to acquire the current change sequence of the first phase line of the alternating current power supply and the current change sequence of the device to be identified, determine whether the current change sequence of the alternating current power supply matches the current change sequence of the device to be identified, and in a case where the current change sequence of the alternating current power supply matches the current change sequence of the device to be identified, determine that a phase line sequence of the device to be identified is consistent with the first phase line.
[0033] The current change sequence includes a change time of a current effective value and a change amount corresponding to the change time.
[0034] In one of the embodiments, the first collection device is a household meter, the second collection device is a smart socket, and the identification device is integrated in the smart socket.
[0035] In one of the embodiments, the number of household meters is one, and the number of smart sockets is multiple.
[0036] The household meter is specifically configured to actively send the current change sequence of the first phase line of the alternating current power supply to each smart socket in a broadcast manner.
[0037] The intelligent socket is specifically used for: collecting a current change sequence of the intelligent socket, receiving a current change sequence of a first phase line of the alternating power source broadcast by the household electricity meter, analyzing the current change sequence of the alternating power source, and determining whether the current change sequence of the intelligent socket and the analyzed current change sequence of the alternating power source match, and in the case of matching, determining that the phase line sequence number of the intelligent socket is consistent with the first phase line.
[0038] In a third aspect, the present application further provides a phase line sequence number identification device, comprising:
[0039] an acquisition module, configured to acquire a current change sequence of a first phase line of an alternating power source and a current change sequence of a to-be-identified device;
[0040] a determination module, configured to determine whether the current change sequence of the alternating power source and the current change sequence of the to-be-identified device match;
[0041] a determination module, configured to determine whether the current change sequence of the alternating power source and the current change sequence of the to-be-identified device match;
[0042] The current change sequence comprises: a change time of a current effective value, and a change amount corresponding to the change time.
[0043] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, the memory stores a computer program, and the processor realizes the phase line sequence number identification method provided in the first aspect of the present application when executing the computer program.
[0044] In a fifth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the phase line sequence number identification method provided in the first aspect of the present application.
[0045] In a sixth aspect, the present application further provides a computer program product, comprising a computer program, and the computer program is executed by a processor to realize the phase line sequence number identification method provided in the first aspect of the present application.
[0046] The phase sequence identification method, system, device, computer device, computer readable storage medium, and computer program product described above obtain a current change sequence of a first phase line of an alternating power supply and a current change sequence of a device to be identified; determine whether the current change sequence of the alternating power supply matches the current change sequence of the device to be identified; and in the case where the current change sequence of the alternating power supply matches the current change sequence of the device to be identified, determine that the phase sequence number of the device to be identified is consistent with the first phase line. The current change sequence includes a change time of a current effective value and a change amount corresponding to the change time. The embodiments of the present application determine whether the current change sequence of the alternating power supply matches the current change sequence of the device to be identified, and in the case of matching, identify the phase sequence number of the device to be identified. The embodiments of the present application do not require real-time fast communication, do not depend on accurate time synchronization and alternating phase characteristics between devices, and can identify the phase sequence number by comparing whether the current effective value change sequences match, thereby improving identification reliability. BRIEF DESCRIPTION OF DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other related drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0048] Figure 1 An application environment diagram of the phase sequence identification method in one embodiment;
[0049] Figure 2 A flowchart of the phase sequence identification method in one embodiment;
[0050] Figure 3 A flowchart of the phase sequence identification method in one embodiment Figure 2 A flowchart of step 202 in the method;
[0051] Figure 4 A flowchart of the phase sequence identification method in one embodiment Figure 3 A flowchart of step 301 in the method;
[0052] Figure 5 An application environment diagram of the phase sequence identification method in another embodiment;
[0053] Figure 6 A flowchart of the phase sequence identification method in one specific example;
[0054] Figure 7 An interaction diagram between a household electric meter, a smart socket, and an energy gateway in one specific example;
[0055] Figure 8 a graph of the original current variation sequence in one specific example;
[0056] Figure 9 a graph of the normalized sequence of the original variation sequence in one specific example; Figure 8 a graph of the normalized sequence of the original variation sequence in one specific example;
[0057] Figure 10 a structural block diagram of an identification system of phase line sequence numbers in one embodiment
[0058] Figure 11 a structural block diagram of an identification system of phase line sequence numbers in one embodiment
[0059] Figure 12 an internal structural diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0061] It should be noted that the terms "first", "second", etc. used in the present application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "include" and "have" used in the present application and any variations thereof are intended to cover non-exclusive inclusion. The term "a plurality of" used in the present application means two or more. The term "and / or" used in the present application means one of the options or any combination of a plurality of options.
[0062] At present, the phase line sequence number of the power consumption device is identified based on the method of accurate time synchronization between devices and the characteristics of alternating phase. However, the scheduling device and the power consumption device are usually communicated through WIFI wireless communication. The delay between devices is high (generally more than 100 ms) and uncertain during WIFI communication, which makes the above-mentioned identification method unfeasible, resulting in unreliable phase line identification. At the same time, the load connected to the smart socket is randomly generated by the user, and the scheduling device itself cannot actively decide the occurrence time of identification. In addition, the smart socket generally does not have a large RAM and flash to store and analyze a large amount of data due to the low capability of the single-chip microcomputer. Therefore, a reliable and low resource consumption method is needed to correctly identify the phase line of the power consumption device.
[0063] In the related art, there are generally three methods for identifying the phase line sequence number of the power consumption device:
[0064] The on-off judgment method is to disconnect three-phase power supply, disconnect three-phase conductors through an air switch, and measure the impedance of two points with a multimeter. If the impedance is 0, it indicates that the two points are on the same AC phase line. Defects: need to use external instruments, manual operation, when the two detection points are far apart, the length of the multimeter cable needs to be increased, and it is difficult to implement on site.
[0065] The repeated on-off test method is to disconnect the three-phase switch blades of the power supply network and the socket connection in turn after the power supply network and the socket connection are normal. When it is observed that the socket power supply state is synchronized with the corresponding switch blade action state (power on or power off at the same time), it is determined that the two are on the same AC phase line. Defects: manual operation, power supply needs to be disconnected during the process, affecting the operation of the electrical equipment.
[0066] The power carrier communication (PLC) method is based on wired PLC power carrier communication to collect the transient AC phase or voltage fluctuation of two points (AC power supply and electrical equipment). When the two communication points check the signal, it is determined that the two are on the same AC phase line. Defects: requires system design with PLC communication hardware support, and PLC communication will affect the PLC communication of the existing power grid meter.
[0067] It can be seen that the identification of the phase line sequence number of the electrical equipment in the related art lacks reliability. Therefore, the present application proposes a phase line sequence number identification method to overcome the problems of WIFI delay uncertainty, random changes in electrical equipment current, and limited storage and analysis capabilities of smart sockets, and to achieve accurate phase line identification.
[0068] For example, the phase line sequence number identification method provided by the embodiments of the present application can be applied to, for example Figure 1In the application environment shown, AC power 101 (which can be the power grid) supplies power to various electrical devices 103 through multiple smart sockets 102. A first acquisition device 104 acquires the current change sequence of the first phase line of AC power 101. A second acquisition device 105 is installed at each smart socket 102 and acquires the current change sequence of the corresponding smart socket 102. The acquisition device refers to a device with current acquisition and communication functions. It can achieve communication based on WIFI MESH (a multi-hop self-organizing network technology that extends wireless coverage through node relay) or based on the wireless Fidelity Access Point (WIFI AP) / Station (STA) mode opened by the device itself. Here, a WiFi AP is a device used in a wireless network that allows other wireless devices to connect to a wired network, and a WiFi STA is a device connected to a wireless network. The identification device 106 is communicatively connected to the first acquisition device 104 and the second acquisition device 105, respectively. The scheduling device 107 is communicatively connected to the identification device 106. The communication method can be local area network (LAN) communication, wired Ethernet, or wireless WIFI. LAN communication can be relayed through a home router, or it can be independent of a home router. The smart socket 102 refers to an AC power socket module with wireless communication, power acquisition, and switch control functions. It can serve as an energy terminal node for branch acquisition and control of connected electrical equipment. Therefore, the smart socket 102 can also acquire its own current change sequence. The phase wire number identification method of this application embodiment can be applied to... Figure 1 The smart socket 102 or the identification device 106 in the middle.
[0069] In one exemplary embodiment, such as Figure 2 As shown, a method for identifying phase line numbers is provided, which can be applied to... Figure 1 Taking the smart socket 102 as an example, the explanation includes the following steps 201 to 203. Wherein:
[0070] Step 201: Obtain the current change sequence of the first phase line of the AC power supply and the current change sequence of the device to be identified.
[0071] Here, the first phase line refers to any one of the phase lines of the AC power supply 101. The phase line numbers of the AC power supply 101 are known. The current change sequence of both the AC power supply and the smart socket includes: the time of change of the effective value of the current, and the change amount corresponding to the time of change, i.e.: change time - change amount.
[0072] The device to be identified refers to the device whose phase line number needs to be identified, which can be... Figure 1The smart socket and / or the electric device in the smart socket are taken as examples for illustration in the embodiments of the present application.
[0073] Exemplarily, the data acquisition nodes are arranged at the AC power supply 101 and the smart socket 102 respectively, and the second acquisition device 105 and the first acquisition device 104 are used to respectively acquire the current variation time-variation amount data pairs of the smart socket 102 and the AC power supply 101 in real time, so as to obtain two groups of current variation sequences. The data acquisition of different nodes provides basic data for subsequent phase line identification.
[0074] Specifically, when the second acquisition device 105 detects that the current effective value of the smart socket changes, the corresponding change time and the current effective value variation amount are recorded, and the first acquisition device 104 is triggered to detect the first phase line of the AC power supply 101. The change includes at least one of current generation, disappearance, increase and decrease, and the variation amount is the difference between the effective value after the change and the current effective value before the change. For example, when it is detected that the current effective value increases from 5A to 6A at a certain time, the time and the variation amount 1A are recorded; when it is detected that the current effective value decreases from 6A to 5A at a certain time, the time and the variation amount -1A are recorded, and the change type such as increase and decrease can also be recorded. This recording method based on change events can effectively reduce unnecessary data storage and reduce the requirement for the storage capacity of the single-chip microcomputer of the smart socket 102.
[0075] Optionally, the first acquisition device 104 can be a household meter, and the second acquisition device 105 can be integrated in the smart socket 102. In a household power supply system, in order to realize grid net flow regulation, a household meter is generally needed, which is a metering module capable of acquiring the voltage, current and other information of the total interface position of the household power supply network and the external grid power supply network. The current variation sequence of the first phase line of the AC power supply 101 can be acquired through the household meter. Specifically, the household meter acquires the current variation sequence of the phase line where it is located and sends it to the smart socket 102. The current variation sequence of the smart socket 102 is acquired through the smart socket 102.
[0076] Optionally, in order to ensure data quality, the acquisition device can perform pretreatment such as screening and arrangement on the acquired current data to obtain the current variation sequence for subsequent phase line identification.
[0077] Step 202, determining whether the current variation sequence of the AC power supply and the current variation sequence of the device to be identified match.
[0078] Exemplarily, the number of the smart sockets 102 is multiple, each smart socket 102 receives the current variation sequence of the alternating power supply, and compares and analyzes the current variation sequence of itself with the current variation sequence of the first phase line of the alternating power supply, to determine whether the two sequences match. Optionally, the smart socket 102 uses a Dynamic Time Warping (DTW) algorithm, a Longest Common Subsequence (LCSS), and / or a Symbolic Aggregate Approximation (SAX) method to determine whether the two sequences match.
[0079] In step 203, in the case that the current variation sequence of the alternating power supply matches the current variation sequence of the to-be-identified device, it is determined that the phase line sequence number of the to-be-identified device is consistent with the first phase line.
[0080] The phase line sequence number can be understood as a unique identifier of the phase line.
[0081] Exemplarily, if the smart socket 102 determines that the current variation sequence of the first phase line of the alternating power supply 101 matches the current variation sequence of the smart socket 102, it is determined that the phase line sequence number of the smart socket 102 is consistent with the sequence number of the first phase line, that is, the phase line sequence number of the smart socket is obtained; if not, it is determined that the phase line sequence number of the smart socket is inconsistent with the sequence number of the first phase line, at this time, step 201 can be returned to, to determine whether the current variation sequence of a phase line (which can be the same phase line as the first phase line or other phase line) of the alternating power supply matches the current variation sequence of the smart socket, until the phase line sequence number of the smart socket is obtained. Subsequently, each smart socket 102 can send the identified phase line sequence number to the dispatching device 107, and the dispatching device 107 can also actively query the phase line sequence number of each smart socket 102, to ensure the timely transmission of the phase line sequence number. After receiving the phase line sequence number of each smart socket 102, the dispatching device 107 updates the phase line label of each smart socket 102 or the power consumption device 103 according to the phase line sequence number, the phase line label including the smart socket identifier and the corresponding phase line sequence number, for example, socket 1: L1, indicating that the phase line sequence number at the first smart socket is L1. Then, the dispatching device 107 associates the power consumption of the power consumption device of the corresponding socket with the corresponding phase line, to provide an accurate basis for energy scheduling.
[0082] It should be noted that the determination of whether the sequence numbers of the other phase lines of the alternating power supply 101 and the phase line sequence numbers of the smart socket 102 are consistent is the same as the determination of whether the sequence number of the first phase line and the phase line sequence number of the smart socket 102 are consistent, and the determination of each phase line can be performed synchronously, which will not be described herein again.
[0083] For example, the three phase lines of the alternating power supply 101 are respectively L1, L2 and L3, the current change sequence A1 of the L1 phase line is collected by the household meter in real time and sent to the smart socket 102, each smart socket 102 can collect the current change sequence A2 of the smart socket 102, and determine whether A1 and A2 match, if they match, it is determined that the phase line sequence number of the smart socket 102 is consistent with the L1 phase line, that is, the phase line sequence number is L1; if they do not match, it is determined that the phase line sequence number of the smart socket 102 is inconsistent with the L1 phase line, that is, the phase line sequence number is not L1, and after being replaced to the L2 phase line, step 201 is returned until the phase line sequence number of the smart socket 102 is identified.
[0084] In the above-mentioned phase line sequence number identification method, the current change sequence of the first phase line of the alternating power supply and the current change sequence of the device to be identified are obtained; it is determined whether the current change sequence of the alternating power supply matches the current change sequence of the device to be identified, and in the case that the current change sequence of the alternating power supply matches the current change sequence of the device to be identified, it is determined that the phase line sequence number of the device to be identified is consistent with the first phase line; wherein the current change sequence includes the change time of the current effective value and the change amount corresponding to the change time. In the case that the current change sequence of the first phase line of the alternating power supply matches the current change sequence of the device to be identified, the phase line sequence number of the device to be identified is identified according to the present application, without real-time fast communication, without relying on the precise time synchronization and alternating phase characteristics between devices, and the identification of the phase line sequence number can be realized by comparing whether the current effective value change sequences match, thereby improving the identification reliability. In addition, the current change sequence of the present application embodiment includes the change time of the current effective value and the corresponding change amount, that is, the change time-change amount data pair is recorded and stored when the current effective value changes, rather than recording and storing the current effective value in real time, thereby reducing the data storage amount and reducing the computing resources, which adapts to the characteristics of the limited storage capacity of the single-chip microcomputer of the device to be identified. At the same time, the present application enters the identification process when the two current change sequences are obtained, without actively deciding the time of identification, so that the phase line sequence number can be identified even if the electrical equipment generates current and power randomly by the user, thereby further improving the identification reliability.
[0085] In one exemplary embodiment, as shown in Figure 3 Step 202 includes steps 301 to 303:
[0086] Step 301, determine the similarity between the current change sequence of the alternating power supply and the current change sequence of the device to be identified.
[0087] Optionally, the similarity between two sets of current change sequences can be calculated using the DWT algorithm, LCSS, or SAX, with a value greater than or equal to 0 and less than or equal to 1. The DWT algorithm can find the optimal matching path between two sets of sequences even when time series data exhibits time scaling and distortion, thus determining the similarity between them. LCSS assesses similarity by finding the longest common subsequence of the two sets of sequences (not requiring contiguity) and is highly robust to noise and local distortions. SAX converts the time series into discrete symbol sequences and calculates similarity by comparing the statistical characteristics of the symbol distribution (such as mean and variance).
[0088] Step 302: If the similarity is greater than or equal to a preset similarity threshold, determine that the current change sequence of the AC power supply matches the current change sequence of the device to be identified.
[0089] The preset similarity threshold is a value between 0 and 1 obtained in advance based on historical experience or experimental measurement, which is close to 1, such as 80% or 90%.
[0090] Step 303: If the similarity is less than the preset similarity threshold, determine that the current change sequence of the power source does not match the current change sequence of the device to be identified.
[0091] For example, it is determined whether the similarity is greater than or equal to a preset similarity threshold of 80%. If so, it means that the two sets of current change sequences match, and thus it is determined that the phase line number of the device to be identified, such as the smart socket 102, is consistent with the phase line number of the first phase line of the AC power supply. If not, it means that the two sets of current change sequences do not match, and it is determined that the phase line number of the smart socket 102 is inconsistent with the phase line number of the first phase line of the AC power supply.
[0092] For example, if the similarity W between the current change sequence of the AC power supply L2 phase line and the current change sequence of the smart socket 102 is 88% ≥ 80%, then the phase line number of the smart socket 102 is determined to be consistent with the L2 phase line, that is, the phase line number is L2.
[0093] Therefore, in this embodiment, by calculating the similarity between two sets of current change sequences and determining whether the two sets of current change sequences match based on the relationship between the similarity value and the preset similarity threshold, the phase wire number of the smart socket can be identified, thus accurately determining whether they match and improving the identification accuracy.
[0094] In one embodiment, such as Figure 4 As shown, step 301 includes steps 401 and 402. Wherein:
[0095] Step 401: Based on the dynamic time warping algorithm, calculate the warping distance between the current change sequence of the AC power supply and the current change sequence of the device to be identified.
[0096] Exemplarily, taking the smart socket as an example, for the current variation sequence A=(a1, a2,..., am) of the alternating power and the current variation sequence B=(b1, b2,..., bn) of the smart socket, where ai (i=1, 2,..., m) represents the variation of the effective value of the first phase line current at the ith variation moment, and bj (j=1, 2,..., n) represents the variation of the effective value of the smart socket current at the jth variation moment. First, an m*n cost matrix is constructed, and the elements in the matrix are the local distances between the data in sequence A and the data in sequence B, which can be calculated by the square of the Euclidean distance. Then, an accumulated cost matrix is constructed, and the minimum cumulative cost reaching each point is calculated from the top left corner of the matrix, which is usually realized by a dynamic programming recurrence formula. Finally, the value of the right bottom corner element of the cumulative cost matrix is obtained, which is the warping distance between the two sequences. The distance measures the overall difference between the two sequences in the best alignment state.
[0097] In step 402, the similarity is determined according to the warping distance, wherein the warping distance is negatively correlated with the similarity.
[0098] Exemplarily, after obtaining the warping distance, since the warping distance represents the difference (the greater the value, the greater the difference), the warping distance can be converted into the similarity by a preset conversion manner. The preset conversion manner can be mapping the warping distance to a similarity between 0 and 1. In a possible implementation, the preset conversion manner can include at least one preset formula, which is a theoretical formula obtained in advance based on historical experience or experimental measurement, and represents the relationship between the similarity and the warping distance. Alternatively, the sum of 1 and the warping distance is calculated first, and then the ratio between 1 and the sum is calculated, so that the similarity can be obtained.
[0099] Therefore, the embodiment adopts the DTW algorithm for data comparison, which can accurately determine whether the current effective value variation law of the alternating power and the to-be-identified device is similar even if the current data has time scaling and deformation, so as to realize accurate phase line recognition.
[0100] It should be noted that, in order to reduce the data transmission pressure, avoid network congestion, and ensure the accuracy of the data, the collection device can transmit the current variation sequence by timeout, time delay, and the like when transmitting data. The following takes the first collection device 104 as an example for description.
[0101] That is, in one exemplary embodiment, the acquiring the current variation sequence of the first phase line of the alternating power source in step 201 comprises: receiving the current variation sequence of the first phase line of the alternating power source sent by the first acquisition device; wherein the first acquisition device acquires and stores the current variation sequence of the first phase line of the alternating power source, and sends the current variation sequence of the alternating power source after the effective value of the current corresponding to the mth variation in the current variation sequence of the alternating power source no longer changes within a preset time length, where m is a preset number of variation in the current variation sequence of the alternating power source.
[0102] The preset number can be a number limit set in advance based on actual demand, historical experience or experimental measurement, such as 14. The preset time length can be a certain delay time length set in advance based on actual demand, historical experience or experimental measurement, and the unit can be milliseconds or seconds, etc., such as 3 seconds.
[0103] In the case where the intelligent socket 102 identifies its own phase line sequence number, due to the low capability of the intelligent socket single-chip microcomputer, it generally does not have a large RAM and flash to store and analyze a large amount of data. In order to reduce the requirement for the storage capacity of the intelligent socket 102, in addition to the recording method based on variation events, the above-mentioned preset number can also be limited. Optionally, the preset number is less than or equal to the storable number, which is determined according to the storage capacity of the identification device, such as 14 when the storage capacity corresponds to 20 data point positions. The identification device can be the intelligent socket 102.
[0104] Specifically, the first acquisition device 104 detects the effective value of the current of the first phase line of the alternating power source 101 in real time, and the second acquisition device 105 detects the effective value of the current of the intelligent socket 102 in real time. When the effective value of the current is detected to generate, disappear, increase or decrease from the first effective value to the second effective value, the variation time-variation (the difference between the second effective value and the first effective value) is recorded. After the second effective value corresponding to the last variation no longer changes within a preset time length, the first acquisition device 104 sends the recorded current variation sequence to the intelligent socket 102. For example, in the case where the preset number of variation in the current variation sequence is 14, after the first acquisition device 104 acquires the current effective value corresponding to the 14th variation and no longer changes within 3 seconds, the current variation sequence containing 14 variation time-variation data pairs is sent to the intelligent socket. The intelligent socket receives the current variation sequence of the alternating power source.
[0105] When the first acquisition device 104 actively or passively sends the current variation sequence to the intelligent socket, the trigger adjustment of active sending includes the preset number and the preset time length, which can be flexibly adjusted based on actual demand sensitivity requirements.
[0106] Thus, in the data transmission process, after the current effective value corresponding to the last change amount no longer changes within the preset time length, the current change sequence is sent to the smart socket, the interval time is widened, the data transmission pressure is reduced, network congestion is avoided, and the stability of transmission is improved. The preset number is less than or equal to the storable number, and the storable number is determined according to the storage capacity of the identification device, the data amount is refined and compressed, the transmission and storage overheads are reduced, the scenario of small storage capacity of the smart socket can be adapted, the smart socket can be effectively compared, and thus the reliability of phase line identification is further improved.
[0107] When the collection device sends the current change sequence, it does not depend on the communication delay between devices, and has no special requirements for communication quality (signal strength, throughput). Data sending can be active sending (such as active sending by a household meter), or passive query (such as being queried by a smart socket) sending.
[0108] In an example embodiment, receiving the current change sequence of the first phase line of the alternating power source sent by the first collection device includes: receiving the current change sequence of the first phase line of the alternating power source actively sent by the first collection device; or sending a query instruction to the first collection device, the query instruction being used to instruct the first collection device to send the current change sequence of the first phase line of the alternating power source; and receiving the current change sequence of the first phase line of the alternating power source passively sent by the first collection device.
[0109] For example, the first collection device such as a household meter actively collects the current change sequence of the first phase line of the alternating power source, and performs preprocessing, and then actively sends the collected and stored current change sequence to the smart socket according to a data channel protocol, thereby realizing active data sending. Meanwhile, the smart socket can also send a query instruction to the first collection device according to needs, instructing the first collection device to send the current change sequence of the first phase line of the alternating power source, and the first collection device sends the current change sequence of a specified time period to the smart socket after receiving the query instruction, thereby realizing passive data sending. The smart socket can receive the current change sequence of the alternating power source actively or passively sent by the first collection device.
[0110] For example, the first collection device is a household meter, the second collection device is integrated in the smart socket, and the smart socket has multiple smart sockets. One household meter needs to be linked with multiple smart sockets. In order to reduce the data pressure of the communication network and avoid the data interaction processing difference and processing pressure of the household meter for different numbers of smart sockets, the data transmission can adopt a method of actively broadcasting data by the household meter, all smart sockets do not actively send local data, but only listen to and analyze the data of the household meter, so that only the smart sockets need to perform the DTW algorithm.
[0111] Therefore, the embodiment can realize active sending and passive sending when data is sent, and has strong adaptability according to actual needs.
[0112] In an exemplary embodiment, the first acquisition device acquires and stores the current change sequence of the first phase line of the alternating power source, including: acquiring a current data point of the first phase line of the alternating power source, the current data point including a current change time and a corresponding current change amount; determining whether the number of stored data points in the storage area reaches the storable number; in the case that the number of stored data points does not reach the storable number, storing the current data point in the next storage position in the storage area in sequence; in the case that the number of stored data points reaches the storable number, storing the current data point in the storage position of the data point with the earliest change time in the storage area.
[0113] Exemplarily, the first acquisition device acquires the current effective value of the first phase line of the alternating power source every certain time, and stores the current data point (the current change time of the current effective value of the first phase line and the corresponding current effective value change amount) when the current effective value changes compared with the last current effective value. Specifically, when storing, it is determined whether the number of stored data points in the storage area of the first acquisition device reaches the storable number (such as 20). If not, the current data point is stored in the next storage position in the storage area in sequence. If yes, the current data point is stored in the storage position of the data point with the earliest change time in the storage area, so as to ensure that the number of stored data points in the storage area of the first acquisition device does not exceed the storable number.
[0114] For example, the storage area of the first acquisition device has 20 storage positions, and the first acquisition device acquires a change time-change amount data point every time, that is, it is determined whether the number of stored data points in the storage area reaches 20. If not, the data point is stored in the next idle storage position in the storage area. If yes, the data point replaces the data point with the earliest change time in the storage area, so as to ensure that the number of stored data points in the storage area does not exceed 20.
[0115] This embodiment describes that the first acquisition device stores the current change sequence of the first phase line of the alternating power source based on time cycle replacement. Similarly, the second acquisition device also stores the current change sequence of the to-be-identified device based on time cycle replacement.
[0116] For example, the second acquisition device acquires the effective current value of the device to be identified at regular intervals. When the current effective current value changes compared to the previous effective current value, it stores the current data point (the current change time of the effective current value of the device to be identified and the corresponding change in the current effective value). Specifically, during storage, it is determined whether the number of data points already stored in the storage area of the second acquisition device has reached the storage limit (e.g., 20). If the storage limit has not been reached, the current data point is stored sequentially to the next storage location in the storage area. If the storage limit has been reached, the current data point is overwritten and stored in the storage location of the data point with the earliest change time in the storage area, ensuring that the number of data points already stored in the storage area of the second acquisition device does not exceed the storage limit.
[0117] Therefore, by using time-cycle overlay to store the current change sequence, a continuously updated and highly timely key data window can be maintained with a fixed and limited number of storage locations. This ensures the timeliness of the current change sequence and improves the reliability of phase line identification based on the current change sequence. Simultaneously, using a fixed and limited number of data points avoids consuming excessive network resources during transmission, preventing transmission congestion.
[0118] For scenarios with multiple smart sockets in the same system, the above method is still applicable without increasing communication network resource overhead. For application scenarios where smart sockets can be plugged in and out at any time, the above method is still applicable, and the identification process will continuously refresh in a loop.
[0119] To reduce the amount of data transmission and storage, the embodiment adopts a change event record transmission method instead of transmitting all time point position current data in the network. The application layer protocol of data transmission adopts the standard modbus multi-byte write message format, and the network transmission uses the User Datagram Protocol (UDP) (UDP protocol filled with modbus protocol frame) through the broadcast method to transmit the household meter data to all smart sockets. The smart socket sends a modbus request message to the household meter, and the household meter sends a modbus response message to the smart socket after responding, so that the household meter writes data into the smart socket. For example, when the number of registers that the household meter wants to write into the smart socket is N, the modbus multi-byte write message (modbus request message) format is as shown in Table 1, and the register address and corresponding data format of the change time (timestamp) - current effective value change amount agreed in the modbus message are as shown in Table 2. In Table 2, each timestamp (timestamp 1 to timestamp 6) is a 32-bit unsigned integer (unit: seconds or milliseconds), occupying 4 registers, and the current effective value change amount (△Value1 to △Value6) is a 32-bit single-precision floating-point number, accurately representing the amplitude of current change (unit: ampere), also occupying 4 registers.
[0120] Table 1 modbus multi-byte write message format
[0121]
[0122] Table 2 register address and corresponding data format agreed in modbus message
[0123]
[0124] The phase line sequence number identification method of the embodiment of the application will be described below with a specific example.
[0125] In a specific example, the household power supply system includes an energy storage system, and the phase line sequence number identification method can be applied to Figure 5 the application environment shown. Among them, the energy storage battery 501 is connected with the photovoltaic panel 502 and the household meter 503, the household meter 503 is connected with the energy storage battery 501 and the power grid through the alternating current power supply network, the household meter 503 refers to the metering module in the household power supply system, which can collect voltage, current and other information of the total interface position of the household power supply network and the external power grid supply network, the photovoltaic panel 502 generates electric energy for power supply to the electric equipment 103, and the energy storage battery 501 is used for temporarily storing the energy of the power grid and photovoltaic power generation.
[0126] In this example, as Figure 6 and Figure 7As shown, the phase line number identification method comprises the following steps:
[0127] Step 601, the energy gateway, the household electricity meter and the smart socket are powered on, networked and ready in turn;
[0128] The energy gateway is a logical center for managing and coordinating the work of various devices, generally having an independent communication control box or being integrated in the dispatching device 107.
[0129] Step 602, the household electricity meter and the smart socket collect the current change sequence: timestamp-current effective value change amount;
[0130] Specifically, when the current effective value changes, the household electricity meter is triggered to collect the current change sequence of the first phase line of the alternating current power supply, and the smart socket is triggered to collect its own current change sequence, and the data is recorded based on time cycle coverage. Data preprocessing (screening and sorting) can also be performed to find representative data for subsequent analysis.
[0131] Step 603, the household electricity meter sends the collected current change sequence to the smart socket according to the data channel protocol;
[0132] At the same time, the smart socket can also send query instructions to the household electricity meter as needed to obtain data of a specified time period. In the data transmission process, the frame interval delay is enlarged (more than 3 seconds) to reduce the pressure of data transmission and improve the stability of transmission.
[0133] Step 604, the smart socket analyzes and compares the similarity between its own current change sequence and the current change sequence sent by the electricity meter through DTW;
[0134] Specifically, after receiving the data of the household electricity meter, the smart socket compares it with its own current data and calculates the similarity of the two sets of data using the DTW algorithm.
[0135] Step 605, the smart socket determines its own phase line number according to the similarity;
[0136] Specifically, if the similarity is greater than or equal to 80%, the phase line where the smart socket is located is consistent with the first phase line; if the similarity is less than 80%, the phase line where the smart socket is located is inconsistent with the first phase line.
[0137] Step 606, the smart socket sends the phase line number to the energy gateway;
[0138] Step 607, the energy gateway receives the phase line numbers from each smart socket and updates the phase line labels of each electrical device.
[0139] The phase line label includes intelligent socket identification and phase line number, for example, phase line label: intelligent socket 1: Lx; intelligent socket 2: Ly; intelligent socket 3: Lz. The phase line label serves as a basis for energy scheduling by the scheduling device 107.
[0140] Through the above steps, after the intelligent socket receives the data of the household electricity meter, the comparison between the triggered and locally recorded data is performed: the current effective value change law of the two devices is compared, the similarity of the two groups of sequences is obtained based on DTW, and the phase line number of the intelligent socket is determined according to the size of the similarity.
[0141] In order to verify the method of the embodiment of the application, the DTW operation effect of two groups of current change sequences (the first phase line of the alternating current power supply and the intelligent socket) with consistent phase lines is simulated and calculated, and the original current change sequences are as shown in Figure 8 The original sequence A refers to the current change sequence collected by the household electricity meter and sent to the intelligent socket, and the original sequence B refers to the current change sequence collected by the intelligent socket itself. The original sequences A and B are respectively standardized to obtain the standardized sequences A and B as shown in Figure 9 The standardization process is illustrated by taking the original sequence A as an example: the mean value and the standard deviation of the sequence A are calculated, and the sequence A is standardized based on the mean value and the standard deviation. Specifically, for each original current change, the difference between the original current change and the mean value is calculated, and the ratio between the difference and the standard deviation is calculated. After standardization, the two sequences with different magnitudes are converted to the same standard size, thereby having comparability. The regular distance between the two groups of standardized sequences is calculated by using DTW to be 1.5266, and the similarity is 94.6%, which is greater than 80%. Therefore, the phase lines of the two groups are consistent, and the intelligent socket is connected to the first phase line of the household electricity meter. It can be seen that the method of the embodiment of the application can accurately identify the phase line number.
[0142] In summary, the intelligent socket and the household electricity meter establish wireless WIFI communication. After the current effective value change occurs, both the intelligent socket and the household electricity meter collect the current effective value change. The intelligent socket can obtain the alternating current phase line number based on the current effective value change data analysis of both sides. In the process, no manual intervention is required, no real-time fast communication is required, and no third-party instrument tool is required. The detection process will not increase the device overhead and network data throughput due to the increase in the number of connected electrical equipment or intelligent sockets. The problem of WIFI time delay uncertainty is overcome, and the method does not depend on the precise time synchronization and alternating current phase characteristics between devices. The phase line recognition is realized by comparing the current effective value change law, and the reliability of the recognition is improved. Based on the data recording and storage mode of the change event, the data storage amount of the intelligent socket is reduced, which adapts to the limited storage capacity of the single-chip microcomputer of the intelligent socket. The DTW algorithm is used for data comparison, which can accurately determine whether the current effective value change law of the two devices is similar in the case of time stretching and deformation of the current data, thereby realizing accurate phase line recognition.
[0143] It should be understood that, although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least some of the steps in the flowcharts involved in the above-described embodiments can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least some of the other steps or steps or stages in other steps. It can be understood that the steps in different embodiments can be freely combined as needed, and various non-contradictory schemes formed by the combination are within the scope of protection of the present application.
[0144] The present application also provides a phase line number identification system, which provides a similar solution to the implementation scheme described in the above method, so the specific limitations in one or more phase line number identification system embodiments provided below can refer to the limitations of the phase line number identification method described above, and will not be repeated here.
[0145] In an exemplary embodiment, as shown in Figure 10 a phase line number identification system is provided, comprising: a first acquisition device 104, a second acquisition device 105, and an identification device 106, wherein:
[0146] The first acquisition device 104 is configured to acquire a current change sequence of a first phase line of an alternating current power supply and send the current change sequence of the first phase line of the alternating current power supply to the identification device;
[0147] The second acquisition device 105 is configured to acquire a current change sequence of a device to be identified and send the current change sequence of the device to be identified to the identification device;
[0148] The identification device 106 is configured to acquire the current change sequence of the first phase line of the alternating current power supply and the current change sequence of the device to be identified, determine whether the current change sequence of the alternating current power supply matches the current change sequence of the device to be identified, and determine that the phase line number of the device to be identified is consistent with the first phase line in the case that the current change sequence of the alternating current power supply matches the current change sequence of the device to be identified.
[0149] The current change sequence includes a change time of a current effective value and a change amount corresponding to the change time.
[0150] Further, the first acquisition device 104 is a household meter, and the second acquisition device 105 is a smart socket, and the identification device is integrated in the smart socket.
[0151] In one embodiment, the number of the household meter is one, and the number of the smart socket is multiple.
[0152] The household meter is specifically configured to actively send the current variation sequence of the first phase line of the alternating power source to each smart socket in a broadcast manner.
[0153] The smart socket is specifically configured to acquire the current variation sequence of the smart socket, receive the current variation sequence of the first phase line of the alternating power source broadcast by the household meter, analyze the current variation sequence of the alternating power source, and determine whether the current variation sequence of the smart socket and the analyzed current variation sequence of the alternating power source match, and in the case of matching, determine that the phase line sequence number of the smart socket is consistent with the first phase line.
[0154] In one embodiment, the identification device comprises a first determination module, a second determination module and a third determination module, wherein:
[0155] The first determination module is configured to determine the similarity between the current variation sequence of the alternating power source and the current variation sequence of the to-be-identified device.
[0156] The second determination module is configured to determine that the current variation sequence of the alternating power source matches the current variation sequence of the to-be-identified device in the case that the similarity is greater than or equal to a preset similarity threshold.
[0157] The third determination module is configured to determine that the current variation sequence of the alternating power source does not match the current variation sequence of the to-be-identified device in the case that the similarity is less than the preset similarity threshold.
[0158] Further, the first determination module is specifically configured to calculate the warping distance between the current variation sequence of the alternating power source and the current variation sequence of the to-be-identified device based on a dynamic time warping algorithm, and determine the similarity according to the warping distance, wherein the warping distance is negatively correlated with the similarity.
[0159] In one embodiment, the first acquisition device 104 is specifically configured to acquire and store the current variation sequence of the first phase line of the alternating power source, and after the current effective value corresponding to the mth variation amount in the current variation sequence of the alternating power source no longer changes within a preset time length, the current variation sequence of the alternating power source is sent, and m is a preset number of variation amounts in the current variation sequence of the alternating power source.
[0160] The identification device comprises a receiving module configured to receive the current variation sequence of the first phase line of the alternating power source sent by the first acquisition device.
[0161] In one embodiment, the receiving module is specifically configured to receive the current variation sequence of the first phase line of the alternating power source sent by the first acquisition device actively; or send a query instruction to the first acquisition device, the query instruction being configured to instruct the first acquisition device to send the current variation sequence of the first phase line of the alternating power source; and receive the current variation sequence of the first phase line of the alternating power source sent by the first acquisition device passively.
[0162] In one embodiment, when the first acquisition device 104 acquires and stores the current variation sequence of the first phase line of the alternating power source, the first acquisition device 104 is specifically configured to acquire a current data point of the first phase line of the alternating power source, the current data point comprising a current variation time and a corresponding current variation amount; determine whether the number of stored data points in the storage area reaches a storable number; in the case where the number of stored data points does not reach the storable number, store the current data point in a next storage position in the storage area in sequence; and in the case where the number of stored data points reaches the storable number, overwrite and store the current data point in the storage position where the data point with the earliest variation time is located.
[0163] Based on the same inventive concept as the above method, the embodiments of the present application also provide an identification device for the phase line number, which is used to implement the identification method of the phase line number. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, and therefore the specific limitations in one or more identification device embodiments of the phase line number provided below can refer to the limitations of the identification method of the phase line number described above, which will not be described here again.
[0164] In one exemplary embodiment, as shown in Figure 11 An identification device for the phase line number is provided, which comprises an acquisition module 1101, a determination module 1102 and a determination module 1103, wherein:
[0165] The acquisition module 1101 is configured to acquire the current variation sequence of the first phase line of the alternating power source and the current variation sequence of the device to be identified.
[0166] The determination module 1102 is configured to determine whether the current variation sequence of the alternating power source matches the current variation sequence of the device to be identified.
[0167] The determination module 1103 is configured to determine that the phase line number of the device to be identified is consistent with the first phase line in the case where the current variation sequence of the alternating power source matches the current variation sequence of the device to be identified.
[0168] The current change sequence includes a change time of a current effective value and a change amount corresponding to the change time.
[0169] In one embodiment, the determining module 1102 includes a first determining unit, a second determining unit and a third determining unit. Wherein:
[0170] The first determining unit is configured to determine a similarity between the current change sequence of the AC power supply and the current change sequence of the to-be-identified device.
[0171] The second determining unit is configured to determine that the current change sequence of the AC power supply matches the current change sequence of the to-be-identified device in a case where the similarity is greater than or equal to a preset similarity threshold.
[0172] The third determining unit is configured to determine that the current change sequence of the AC power supply does not match the current change sequence of the to-be-identified device in a case where the similarity is less than the preset similarity threshold.
[0173] In one embodiment, the first determining unit is specifically configured to: calculate a warping distance between the current change sequence of the AC power supply and the current change sequence of the to-be-identified device based on a dynamic time warping algorithm; and determine the similarity according to the warping distance, wherein the warping distance is negatively correlated with the similarity.
[0174] In one embodiment, the obtaining module 1101 includes an obtaining unit, which is configured to receive the current change sequence of the first phase line of the AC power supply sent by a first collection device; wherein the first collection device collects and stores the current change sequence of the first phase line of the AC power supply, and sends the current change sequence of the AC power supply after the current effective value corresponding to the mth change amount in the current change sequence of the AC power supply no longer changes within a preset time length, where m is a preset number of change amounts in the current change sequence of the AC power supply.
[0175] In one embodiment, the obtaining unit is specifically configured to: receive the current change sequence of the first phase line of the AC power supply actively sent by the first collection device; or send a query instruction to the first collection device, the query instruction being used to instruct the first collection device to send the current change sequence of the first phase line of the AC power supply; and receive the current change sequence of the first phase line of the AC power supply passively sent by the first collection device.
[0176] In one embodiment, when the first acquisition device acquires and stores the current variation sequence of the first phase line of the alternating power supply, specifically, the first acquisition device is configured to: acquire a current data point of the first phase line of the alternating power supply, the current data point including a current variation time and a corresponding current variation amount; determine whether the number of stored data points in the storage area reaches the maximum number of data points that can be stored; in the case that the number of stored data points does not reach the maximum number of data points that can be stored, store the current data point in the next storage position in the storage area in sequence; and in the case that the number of stored data points reaches the maximum number of data points that can be stored, overwrite the current data point to the storage position where the data point with the earliest variation time is stored in the storage area.
[0177] Each module in the above phase line sequence identification device can be implemented by software, hardware, or a combination thereof, in whole or in part. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in a computer device in software form, so as to be called and executed by a processor to perform the operations corresponding to each module.
[0178] In one exemplary embodiment, a computer device, which can be a server, is provided, and an internal structure diagram of the computer device can be as shown in Figure 12 The computer device includes a processor, a memory, an input / output interface (I / O), and a communication interface. The processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is configured to store data related to phase line sequence identification. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with external terminals through a network connection. The computer program is executed by the processor to implement a phase line sequence identification method.
[0179] Those skilled in the art can understand that Figure 12 The structure shown in the above
[0180] In one example embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the phase line sequence number identification method when executing the computer program.
[0181] In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program, the computer program being executed by a processor to implement the phase line sequence number identification method.
[0182] In one embodiment, a computer program product is provided, comprising a computer program, the computer program being executed by a processor to implement the phase line sequence number identification method.
[0183] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.
[0184] The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.
[0185] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of the present application should be subject to the appended claims.
Claims
1. A method of identifying phase line order, comprising: The method comprises: obtaining a current variation sequence of a first phase line of an alternating current power supply and a current variation sequence of a device to be identified; determining whether the current variation sequence of the alternating current power supply matches the current variation sequence of the device to be identified; in the case where the current variation sequence of the alternating current power supply matches the current variation sequence of the device to be identified, determining that a phase line number of the device to be identified is consistent with the first phase line; wherein the current variation sequence comprises a variation time of a current effective value and a current effective value variation corresponding to the variation time, and the current variation sequence is recorded when a current effective value variation event occurs.
2. The method of claim 1, wherein, determining whether the current variation sequence of the alternating current power supply matches the current variation sequence of the device to be identified comprises: determining a similarity between the current variation sequence of the alternating current power supply and the current variation sequence of the device to be identified; in the case where the similarity is greater than or equal to a preset similarity threshold, determining that the current variation sequence of the alternating current power supply matches the current variation sequence of the device to be identified; in the case where the similarity is less than the preset similarity threshold, determining that the current variation sequence of the alternating current power supply does not match the current variation sequence of the device to be identified.
3. The method of claim 2, wherein, determining the similarity between the current variation sequence of the alternating current power supply and the current variation sequence of the device to be identified comprises: calculating a warping distance between the current variation sequence of the alternating current power supply and the current variation sequence of the device to be identified based on a dynamic time warping algorithm; determining the similarity according to the warping distance, wherein the warping distance and the similarity are negatively correlated.
4. The method according to any one of claims 1 to 3, characterized in that, obtaining the current variation sequence of the first phase line of the alternating current power supply comprises: receiving the current variation sequence of the first phase line of the alternating current power supply sent by a first collection device; wherein the first collection device collects and stores the current variation sequence of the first phase line of the alternating current power supply, and sends the current variation sequence of the alternating current power supply after a current effective value corresponding to an mth variation in the current variation sequence of the alternating current power supply no longer varies within a preset time length, where m is a preset number of variations in the current variation sequence of the alternating current power supply.
5. The method of claim 4, wherein, receiving the current variation sequence of the first phase line of the alternating current power supply sent by the first collection device comprises: receiving the current variation sequence of the first phase line of the alternating current power supply actively sent by the first collection device; or sending a query instruction to the first collection device, the query instruction being used to instruct the first collection device to send the current variation sequence of the first phase line of the alternating current power supply; receiving the current variation sequence of the first phase line of the alternating current power supply passively sent by the first collection device.
6. The method of claim 4, wherein, the first collection device collecting and storing the current variation sequence of the first phase line of the alternating current power supply comprises: collecting a current data point of the first phase line of the alternating current power supply, the current data point comprising a current variation time and a current variation corresponding thereto; determining whether a number of stored data points in a storage area reaches a storable number; in the case where the number of stored data points does not reach the storable number, storing the current data point in a next storage position in the storage area in sequence; In the case that the number of stored data points reaches the storable number, the current data point is stored to the storage location where the data point of the earliest change time is stored.
7. A phase sequence recognition system, characterized in that The system comprises a first acquisition device, a second acquisition device and an identification device. The first acquisition device is configured to acquire a current variation sequence of a first phase line of an alternating power supply and send the current variation sequence of the first phase line of the alternating power supply to the identification device. The second acquisition device is configured to acquire a current variation sequence of a device to be identified and send the current variation sequence of the device to be identified to the identification device. The identification device is configured to acquire the current variation sequence of the first phase line of the alternating power supply and the current variation sequence of the device to be identified, determine whether the current variation sequence of the alternating power supply matches the current variation sequence of the device to be identified, and determine that the phase line number of the device to be identified is consistent with the first phase line in the case that the current variation sequence of the alternating power supply matches the current variation sequence of the device to be identified. The current variation sequence comprises a change time of a current effective value and a current effective value change amount corresponding to the change time, and the current variation sequence is recorded when a current effective value change event occurs.
8. The system of claim 7, wherein, The first acquisition device is a household electric meter, the second acquisition device is a smart socket, and the identification device is integrated in the smart socket.
9. The system of claim 8, wherein, The number of household electric meters is one, and the number of smart sockets is multiple. The household electric meter is specifically configured to actively send the current variation sequence of the first phase line of the alternating power supply to each smart socket in a broadcast manner. The smart socket is specifically configured to acquire a current variation sequence of the smart socket, receive the current variation sequence of the first phase line of the alternating power supply broadcast by the household electric meter, analyze the current variation sequence of the alternating power supply, and determine whether the current variation sequence of the smart socket matches the analyzed current variation sequence of the alternating power supply, and determine that the phase line number of the smart socket is consistent with the first phase line in the case of matching.
10. A phase sequence recognition device, characterized by The device comprises: An acquisition module configured to acquire a current variation sequence of a first phase line of an alternating power supply and a current variation sequence of a device to be identified; A determination module configured to determine that a phase line number of the device to be identified is consistent with the first phase line in the case that the current variation sequence of the alternating power supply matches the current variation sequence of the device to be identified. The current variation sequence comprises a change time of a current effective value and a current effective value change amount corresponding to the change time, and the current variation sequence is recorded when a current effective value change event occurs. The processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program. 11.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-10. The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.
12. A computer readable storage medium having stored thereon a computer program, characterized in that, 13. A computer program product comprising a computer program, characterized in that, The computer program, which is executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Phase line identification method and device, chip, electronic equipment and storage medium
CN116859296A
Phase-household relation identification method and device of low-voltage power distribution network and electronic equipment
CN119231520A