Phase identification method, device, communication device, communication system and storage medium
By obtaining local three-phase zero-crossing NTB information and forming a matching array, the phase recognition signal attenuation and calculation complexity problems in the power line communication meter reading system are solved, and fast and accurate phase recognition is achieved.
Patent Information
- Application Number
- CN202210744342.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2042-06-28
AI Technical Summary
In the existing power line communication meter reading system, the phase recognition method has problems with identification signal attenuation and calculation complexity, resulting in identification failure or poor accuracy.
By obtaining the local three-phase zero-crossing NTB information, a corresponding matching array is formed, and the zero-crossing NTB information of the communication node to be identified is compared with the array element, and the closest zero-crossing NTB information is found to determine the phase.
The process of phase recognition is achieved simple, fast recognition speed and high accuracy, and overcomes the problems of recognition failure and computational complexity in the prior art.
Smart Images

Figure CN115149981B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power line communication, and in particular to a phase identification method, device, communication device, communication system and storage medium. Background Art
[0002] Power Line Communication (PLC) technology, according to the definition in GB / T 31983.31, refers to: a technology that modulates information data onto a suitable carrier frequency and uses power lines as a physical medium for data transmission to achieve communication or control between data terminals. Since power lines are the most popular and widely covered physical media, using power lines to transmit data information is extremely convenient. Without rewiring, all electrical devices connected to power lines can be formed into a communication network for information exchange and communication. This method is simple to implement and easy to maintain, and can effectively reduce operating costs and the expenditure on building new communication networks. Therefore, it has become the main communication method for applications such as smart grids, energy management, smart homes, photovoltaic power generation, and electric vehicle charging.
[0003] From different perspectives, power line communication can be classified as follows:
[0004] 1. From the application scope of power lines, it can be divided into communication systems that use high / medium voltage distribution networks and communication systems that usually only use medium / low voltage distribution networks. The former is mainly used in communication systems within the power system (it can provide long-distance communication, such as power carrier systems), and the latter is mostly used in access systems for communication services of public users.
[0005] 2. From the application scope of communication services, this classification method is usually for communication systems using medium / low voltage distribution networks, which are divided into narrowband communication applications and broadband communication applications. Narrowband communication applications mainly use the 3kHz~500kHz frequency band. Typical low-voltage narrowband power line communication applications include smart energy meter centralized meter reading (AMR), AMI / AMM (Advanced Measurement System / Automatic Meter Reading), home intelligent control, street light control, smart buildings, four-meter centralized meter reading and other applications of smart grid (Smart Grid), such as: electric vehicle charging control. Broadband communication applications can provide access to comprehensive services such as data, voice, and images for public users. Broadband PLC can be divided into low-voltage PLC and medium-voltage PLC according to the voltage level of the distribution network used. Low-voltage PLC uses low-voltage (220V / 380V) power lines as transmission media to provide users with Internet access, home LAN, remote meter reading, smart home and other applications. Medium voltage PLC uses medium voltage (10kV) power lines as communication links to provide transmission channels for applications such as access to backbone networks, distribution network automation, user demand side management, and rural telephones.
[0006] Among them, narrowband PLC systems usually do not open communication services to public users, and are mainly used for data collection, monitoring and transmission of power system data. In contrast, broadband PLC is currently widely used in the field of public communication. my country's national standard GB / T33854 "Technical requirements for broadband customer network networking based on public telecommunications network - power line networking" stipulates broadband PLC systems based on HomePlugAV technology.
[0007] With the popularization of power line communication technology and the widespread use of electronic energy meters in billing systems, the proportion of meter reading systems using power line carrier communication is increasing. Power line carrier communication meter reading systems usually include: master station, concentrator and communication node. Among them, the communication node corresponds to various types of energy meters. The concentrator is the central management device and control device of the remote centralized meter reading system. It is responsible for the functions of regularly reading communication node data, system command transmission, data communication, network management, event recording, and horizontal transmission of data. Its function is to collect a batch of energy meter data to the local device through carrier and other methods, and then transmit it to the master station through wired or wireless networks. The power line carrier communication meter reading system uses the low-voltage PLC network as the main communication channel, and public communication channels such as GPRS, GSM, CDMA and some RS485 bus channels as auxiliary communication channels. The main line of the low-voltage PLC network generally adopts a three-phase four-wire system for power supply. Ordinary residential users only use one phase as the live wire (L) and the ground wire as the neutral wire (N). Some factories use three-phase electricity for production needs. Therefore, most of the communication nodes in the power line carrier communication meter reading system are single-phase energy meters, and a small number are three-phase energy meters. For low-voltage PLC communication, on the one hand, since the signal transmission path is lengthened and the noise increases when the communication nodes communicate across phases, low-voltage PLC communication should try to select the same-phase communication nodes for relay communication when selecting routes to reduce interference and ensure communication quality. On the other hand, in order to improve the utilization rate of distribution transformers, the master station needs to move some users with heavier loads to another phase with lighter loads to achieve load balancing of each phase line. Because if the three-phase load of the power supply line is unbalanced, the power supply efficiency of the line and the distribution transformer will be reduced at the least, and the heavy load phase will be overloaded, which will cause serious consequences such as burning of a phase conductor, burning of switches, and even burning of single-phase distribution transformers. Based on the above reasons, it is very important to accurately determine the phases of these electricity users and know the distribution of each electricity user's electricity meter on each phase line.
[0008] At present, there are many methods to solve the phase identification problem in the power line communication meter reading system. One method is to send an identification signal to the user meter through the intelligent terminal, and the user meter determines its own phase information based on the identification signal and feeds it back to the intelligent terminal to identify the phase information of the user meter. However, the problem with this method is that when the distance between the intelligent terminal and the user meter is far, the identification signal may be attenuated due to the long distance, resulting in the failure of the phase information identification of the user meter; another method is to use the three phases A, B, and C of the transformer area total meter as a reference, and perform correlation calculations on the voltage values of the user energy meter at several moments and the corresponding voltage values of the transformer area total meter at the same time, and select the one with the highest correlation to determine the phase. The disadvantage of this method is that the Pearson correlation coefficient is used to measure the correlation between the voltage sequence data of the user energy meter and the voltage sequence data of each phase A, B, and C of the transformer area total meter, which has high requirements on data quality and poor accuracy (requires that the two sequences are linearly correlated, equal in length and normally distributed), and the implementation process is complex and the amount of calculation is large.
[0009] Based on the above content, it is urgent to propose a phase identification method, device, communication device, communication system and storage medium based on a low-voltage power line broadband communication network with a simple implementation process and high-speed and accurate identification, so as to overcome the limitations and defects in the prior art. Summary of the invention
[0010] In view of this, an embodiment of the present invention provides a phase identification method, device, communication device, communication system and storage medium, which obtains local three-phase zero-crossing NTB information, forms a corresponding matching array according to different preset conditions, and then compares a zero-crossing NTB information of a communication node to be identified with each array element to obtain the closest zero-crossing NTB information. The phase to which the zero-crossing NTB information belongs is the phase of the communication node to be identified. Compared with other methods in the prior art, it has the characteristics of simple implementation process and high-speed and accurate identification.
[0011] In a first aspect, an embodiment of the present invention provides a phase identification method, which is applied to a master node of a low-voltage power line broadband communication network, and at least includes:
[0012] Obtain local three-phase zero-crossing network reference time NTB information, take the information that meets the first preset condition to form a first matching array, or when it is determined that the communication node to be identified has no zero-fire reverse connection, take the information that meets the second preset condition to form a second matching array; wherein, the first preset condition is: the first matching array elements are respectively three-phase double-edge acquisition, a total of six categories, each category has at least one array element; the second preset condition is: the second matching array elements are respectively three-phase double-edge acquisition, a total of three categories, each category has at least one array element;
[0013] Obtain the zero-crossing network reference time NTB information of the communication node to be identified, and select any one of them as the information to be matched;
[0014] The zero-crossing network reference time NTB information closest to the information to be matched is searched in the first matching array or the second matching array, and the phase to which the closest zero-crossing network reference time NTB information belongs is the phase of the communication node to be identified.
[0015] Preferably, the searching for zero-crossing network reference time NTB information closest to the information to be matched in the first matching array or the second matching array is specifically:
[0016] Calculating an offset of the to-be-matched information relative to each array element in the first matching array or the second matching array within one power cycle;
[0017] When the calculated offset satisfies the third preset condition, the zero-crossing network reference time NTB information corresponding to the minimum offset is the zero-crossing network reference time NTB information closest to the information to be matched;
[0018] The third preset condition includes: the offset is not greater than a preset maximum offset threshold and the offsets are not equal to each other.
[0019] Preferably, the calculating of the offset of the to-be-matched information relative to each array element in the first matching array or the second matching array within one power cycle is specifically calculated by the following formula:
[0020] NtbOffset[i]=(NtbSta–NtbCco[i])Mod NtbPowerPeriod;
[0021] Among them, NtbPowerPeriod is the network reference time value corresponding to one power cycle, NtbSta is the value of the information to be matched, NtbCco[i] is the value of the element i of the first matching array or the second matching array, NtbOffset[i] is the offset of the information to be matched relative to the element i of the first matching array or the second matching array within one power cycle, and i is a non-zero integer.
[0022] Preferably, when the information to be matched has a different acquisition edge type from the closest zero-crossing network reference time NTB information, and the closest zero-crossing network reference time NTB information is the first matching array element, the zero-fire reverse connection state of the communication node to be identified is zero-fire reverse connection: when the information to be matched has the same acquisition edge type as the closest zero-crossing network reference time NTB information, and the closest zero-crossing network reference time NTB information is the first matching array element, the zero-fire reverse connection state of the communication node to be identified is normal wiring.
[0023] Preferably, before the method is performed, it also includes:
[0024] It is determined whether the current environment is a strong power environment and whether there are unidentified communication nodes. If the current environment is a strong power environment and there are unidentified communication nodes, the method is executed.
[0025] Preferably, the determining whether the current environment is a strong electric environment is specifically:
[0026] The operation of collecting the local zero-crossing network reference time NTB information is performed within the preset time, and it is checked whether the zero-crossing network reference time NTB information exists. If so, it is currently in a strong power environment.
[0027] In a second aspect, an embodiment of the present invention provides a phase identification device, which is arranged at a main node of a low-voltage power line broadband communication network, and at least includes:
[0028] A matching array generation module is configured to obtain local three-phase zero-crossing network reference time NTB information, and take the information that meets the first preset condition to form a first matching array, or when it is determined that the communication node to be identified has no zero-fire reverse connection, take the information that meets the second preset condition to form a second matching array; wherein, the first preset condition is: the first matching array elements are respectively three-phase double-edge acquisition, a total of six categories, each category has at least one array element; the second preset condition is: the second matching array elements are respectively three-phase double-edge acquisition, a total of three categories, each category has at least one array element;
[0029] The to-be-matched information acquisition module is configured to acquire the zero-crossing network reference time NTB information of the communication node to be identified, and select any one of them as the to-be-matched information;
[0030] The phase identification module is configured to search for the zero-crossing network reference time NTB information closest to the information to be matched in the first matching array or the second matching array, and the phase to which the closest zero-crossing network reference time NTB information belongs is the phase of the communication node to be identified.
[0031] In a third aspect, an embodiment of the present invention provides a communication device, including a memory and a processor, wherein the processor executes program instructions in the memory to implement the method described in the first aspect.
[0032] In a fourth aspect, an embodiment of the present invention provides a communication system, comprising at least: a low-voltage power line broadband communication network master node provided with the communication device described in the second aspect.
[0033] In a fifth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to implement the method described in the first aspect.
[0034] The embodiment of the present invention obtains local three-phase zero-crossing NTB information, forms a corresponding matching array according to different preset conditions, and then compares a zero-crossing NTB information of the communication node to be identified with each array element to obtain the closest zero-crossing NTB information. The phase to which the zero-crossing NTB information belongs is the phase of the communication node to be identified. The implementation process is simple and the identification is fast and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0036] Figure 1 It is the structural model of low voltage broadband PLC network system;
[0037] Figure 2 is a flow chart of a phase identification method according to an embodiment of the present invention;
[0038] Figure 3 is a flow chart of obtaining zero-crossing NTB information of a communication node to be identified according to an embodiment of the present invention;
[0039] Figure 4 is a schematic diagram of the structure of a phase recognition device according to an embodiment of the present invention;
[0040] Figure 5 It is a schematic diagram of the hardware structure of the communication device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present invention without the description of these details. In order to avoid confusing the essence of the present invention, known methods, processes, flows, components and circuits are not described in detail.
[0042] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0043] At the same time, it should be understood that in the following description, "circuit" refers to a conductive loop composed of at least one element or subcircuit through electrical connection or electromagnetic connection. When an element or circuit is said to be "connected to" another element or an element / circuit is said to be "connected between" two nodes, it can be directly coupled or connected to another element or there can be an intermediate element, and the connection between the elements can be physical, logical, or a combination thereof. On the contrary, when an element is said to be "directly coupled to" or "directly connected to" another element, it means that there is no intermediate element between the two.
[0044] Unless the context clearly requires otherwise, words such as “include”, “including” and the like in the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as meaning “including but not limited to”.
[0045] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0046] The phase identification method in the present invention is based on the "zero-crossing detection method", and the technical prerequisite for its implementation is: network time synchronization is required and the master and slave node devices in the network have zero-crossing circuits. Network time synchronization means that the network reference time of the master and slave node devices is synchronized, and the zero-crossing circuit is used when collecting zero-crossing NTB information.
[0047] Figure 1 It is the structural model of low voltage broadband PLC network system, such as Figure 1 As shown in the figure, the system includes the following nodes: central controller (CCO), workstation (STA); the system may also include proxy controller (PCO), proxy workstation (PSTA) and hidden workstation (HSTA). There can only be one CCO in a network, and other STAs work in coordination with CCO. STAs that cannot communicate directly with CCO are HSTAs, and HSTAs communicate with other nodes in the system through proxy controllers (PCO) or proxy workstations (PSTA).
[0048] In the actual application of the meter reading system based on low-voltage broadband PLC, in general, CCO communication is connected to the concentrator, and STA communication is connected to the communication node, that is, the user's electricity meter, so that the concentrator communicates with the communication node through CCO, and CCO and then through STA, thereby realizing the transmission of protocol-related command information and obtaining user electricity consumption data.
[0049] Figure 2 : is a flow chart of a phase identification method according to an embodiment of the present invention. The method is applied to a master node of a low-voltage power line broadband communication network. For a low-voltage broadband PLC network, the master node is CCO and the slave node is STA. Figure 2 As shown, the following steps are included:
[0050] Step S210: Acquire local three-phase zero-crossing network reference time NTB information, and take the information that meets the first preset condition to form a first matching array, or when it is determined that the communication node to be identified has no zero-fire reverse connection, take the information that meets the second preset condition to form a second matching array; wherein, the first preset condition is: the first matching array elements are respectively three-phase double-edge acquisition, a total of six categories, each category has at least one array element; the second preset condition is: the second matching array elements are respectively three-phase double-edge acquisition, a total of three categories, each category has at least one array element;
[0051] It should be noted that: local refers to the device where the master node is located. The device where the master node is located uses low-voltage AC power, so there are three phases of voltage, A, B, and C. "Three-phase" refers to the three phases A, B, and C. "Dual edge" refers to the rising edge and the falling edge. "NTB" is the abbreviation of "Network Time Base", which means "network reference time".
[0052] This step describes two ways to generate a matching array:
[0053] The first method: after obtaining the local three-phase zero-crossing NTB information, take the information that meets the first preset condition to form a first matching array. The first preset condition is: the elements in the array are collected by three-phase double edges, that is, six types: A phase rising edge, A phase falling edge, B phase rising edge, B phase falling edge, C phase rising edge and C phase falling edge, each type has at least one array element, that is: there are at least six elements in the first matching array, each element is one of the above six types.
[0054] The second method: After obtaining the local three-phase zero-crossing NTB information, take the information that meets the second preset condition to form a second matching array. The second preset condition is: the elements in the array are collected from the three phases respectively, that is, there are two cases, one can be: three types: A-phase rising edge, B-phase rising edge and C-phase rising edge, the other can be three types: A-phase falling edge, B-phase falling edge and C-phase falling edge, each type has at least one array element, that is: there are at least three elements in the second matching array, each element is one of the three types in the above two cases. It should be noted that: this method is not suitable for phase identification of all communication nodes to be identified. Only when it can be determined that the communication nodes to be identified have no zero-fire reverse connection, can the second matching array under this method be used for phase identification, otherwise misjudgment will occur.
[0055] Both the first matching array and the second matching array contain local three-phase zero-crossing NTB information. The difference is that the first matching array contains all six types of zero-crossing NTB information of the two acquisition edges of the three-phase combination, while the second matching array only contains three types of zero-crossing NTB information of the three-phase combination rising edge or the three-phase combination falling edge.
[0056] How to collect the local three-phase zero-crossing NTB information specifically can be based on the methods in the prior art.
[0057] Step S220: Obtain the zero-crossing network reference time NTB information of the communication node to be identified, and select any one of them as the information to be matched;
[0058] In this step, the process of obtaining the zero-crossing NTB information of the communication node to be identified is carried out through message interaction between the CCO and the STA on the communication node side to be identified. Figure 3 As shown, this is achieved through the following steps:
[0059] Step S221: The CCO sends a zero-crossing NTB collection indication message to the STA.
[0060] The format of the zero-crossing NTB acquisition indication message is as follows:
[0061]
[0062] Collection quantity: indicates the total number of zero-crossing NTBs that need to be collected. That is, after the instruction message is sent, the specified site needs to continuously collect the total number of zero-crossing NTBs.
[0063] In the present invention, not many zero-crossing NTBs are needed for specific phase identification. Therefore, the CCO instructs the STA to collect too much zero-crossing NTB information. The specific number of collections is generally set to a single digit or a number within 20 based on empirical values. The advantage of such a setting is that frequent zero-crossing interrupt processing and excessive zero-crossing data caching can be reduced.
[0064] Step S222: The STA receives the zero-crossing NTB collection instruction message sent by the CCO, and collects and stores the zero-crossing NTB information according to the configuration requirements in the message.
[0065] How the STA collects the zero-crossing NTB information may be based on the practice in the prior art.
[0066] Step S223: STA reports the collected zero-crossing NTB data to CCO via the zero-crossing NTB notification message specified in the PLC protocol.
[0067] Specifically, the definition of the zero-crossing NTB notification message format is shown in the following table:
[0068]
[0069] Among them, TEI represents the station that notifies the zero-crossing NTB information; the total number of notifications represents the number of zero-crossing NTBs notified by the station; the number of phase line difference notifications represents the number of zero-crossing NTB differences of the corresponding phase line notified by the station. The reference NTB represents the reference NTB notified by the station. This NTB is the first zero-crossing NTB value notified by the station, and is the reference NTB used to calculate the difference of subsequent zero-crossing NTBs. The NTB value saved in this field is the original 32-bit data of the collected zero-crossing NTB value, which is the data after right shifting by 8 bits, which is equivalent to the high 24 bits of the original data.
[0070] Calculation method of zero-crossing NTB difference: starting with the reference NTB, each subsequent zero-crossing NTB is calculated with the previous NTB difference; the calculated difference data is shifted right by 8 bits, and only the high-bit part is retained. The final difference is used as the zero-crossing NTB difference, and is stored in the "zero-crossing NTB difference" field in chronological order and reported to the CCO.
[0071] It should be noted that: in the power line frequency cycle, the interval between zero crossings is generally about 10ms, and the NTB difference between two zero crossings will not exceed the representation interval of 20 bits. Therefore, the zero crossing NTB difference, after right shifting 8 bits, needs to be represented by a 12-bit field.
[0072] Step S224: After receiving the zero-crossing notification message reported by the STA, the CCO extracts the zero-crossing NTB information therefrom.
[0073] After the zero-crossing NTB information of the communication node to be identified is obtained through the above steps S221 to S224, any one of them is selected as the information to be matched. The information to be matched can be collected at the rising edge or the falling edge, and is not particularly limited.
[0074] It should be noted that step S210 and step S220 are not necessarily executed in the order of first executing step S210 and then executing step S220. Step S220 may be executed first and then step S210.
[0075] Step S230: searching the first matching array or the second matching array for zero-crossing NTB information closest to the information to be matched, wherein the phase to which the closest zero-crossing NTB information belongs is the phase of the communication node to be identified.
[0076] The implementation process of this step is carried out by using the approximation method, that is, judging which phase the zero-crossing point of the communication node to be identified is closer to, and the communication node to be identified belongs to which phase, which specifically involves calculating the offset of the information to be matched relative to each array element in the first matching array or the second matching array within one power cycle, and the offset is specifically calculated by the following formula:
[0077] NtbOffset[i]=(NtbSta–NtbCco[i])Mod NtbPowerPeriod;
[0078] Among them, NtbPowerPeriod is the network reference time value corresponding to a power cycle, NtbSta is the value of the information to be matched, NtbCco[i] is the value of the element i of the first matching array or the second matching array, NtbOffset[i] is the offset of the information to be matched relative to the element i of the first matching array or the second matching array within a power cycle, and i is a non-zero integer.
[0079] "Mod" in the above two formulas is the modulus operator, which divides the difference between NtbSta-NtbCco[i] and NtbPowerPeriod and returns the remainder. The modulus is based on the fact that the two zero-crossing NTB data of the difference may not be in the same power cycle. The modulus ensures that the offset NtbOffset[i] obtained is within the same power cycle.
[0080] It should be noted that: in an ideal state, a power cycle is 20ms, but in actual power grids, the power cycle has slight fluctuations, which may be slightly larger or smaller than 20ms. Therefore, when NtbSta–NtbCco[i] is too large, it means that the time interval between the zero-crossing NTB data collected by CCO and the zero-crossing NTB data collected by STA is too long. This is caused by the accumulated error of the fluctuation of the power cycle value. In this case, the calculated NtbOffset[i] value will deviate from the true value, which will affect the correctness of subsequent phase identification.
[0081] According to repeated experiments, if the value of NtbSta–NtbCco[i] exceeds 1.5 seconds, the error will be accumulated, the value of NtbOffset[i] will deviate from the true value, and the phase will be misjudged. In this case, the NtbOffset[i] is determined to be invalid. In addition, there may be multiple equal values of NtbOffset[i]. In this case, the NtbOffset[i] is also determined to be invalid. In the above two cases, it is necessary to abandon the current identification and restart the next round of phase identification process. Based on this, a preset maximum offset threshold of 1.5 seconds or other empirical values can be defined in the specific implementation. When the phase is determined based on the offset in the subsequent process, the offset is pre-judged. When the offset is within the preset maximum offset threshold, the offset is used to identify the phase. In addition, when comparing the size of each offset, it is judged whether there are multiple equal offsets. When the offset does not have this situation, the offset is used to identify the phase.
[0082] After calculating each offset using the above formula, when the calculated offsets meet the third preset condition, the minimum offset is found by comparing the size, and the zero-crossing NTB information corresponding to the minimum offset is the zero-crossing NTB information closest to the information to be matched, and the phase to which the closest zero-crossing NTB information belongs is the phase of the communication node to be identified. The third preset condition includes but is not limited to: the offset is not greater than the preset maximum offset threshold and the offsets are not equal to each other.
[0083] According to the above steps, the phase of the communication node to be identified can be identified. In addition, when the first matching array is used for phase identification, the zero-fire reverse connection state can also be identified at the same time. Specifically, when the acquisition edge type of the information to be matched is different from that of the closest zero-crossing NTB information, and the closest zero-crossing NTB information is an element of the first matching array, the zero-fire reverse connection state of the communication node to be identified is zero-fire reverse connection: when the acquisition edge type of the information to be matched is the same as that of the closest zero-crossing NTB information, and the closest zero-crossing NTB information is an element of the first matching array, the zero-fire reverse connection state of the communication node to be identified is normal wiring. For the second matching array, only phase identification can be performed.
[0084] For the convenience of explanation, the following example illustrates the process of calculating the offset and identifying the phase and zero-fire reverse connection states based on the offset:
[0085] For the case where the matching array is the first matching array, assume that:
[0086] NtbCco[0]=NtbArise; NtbOffset[0]=NtbOffsetArise;
[0087] NtbCco[1]=NtbAfall; NtbOffset[1]=NtbOffsetAfall;
[0088] NtbCco[2]=NtbBrise; NtbOffset[2]=NtbOffsetBrise;
[0089] NtbCco[3]=NtbBfall; NtbOffset[3]=NtbOffsetBfall;
[0090] NtbCco[4]=NtbCrise; NtbOffset[4]=NtbOffsetCrise;
[0091] NtbCco[5]=NtbCfall; NtbOffset[5]=NtbOffsetCfall;
[0092] Then the offsets of the information to be matched relative to each array element are:
[0093] NtbOffsetArise=(NtbSta–NtbArise)Mod NtbPowerPeriod;
[0094] NtbOffsetAfall=(NtbSta–NtbAfall)Mod NtbPowerPeriod;
[0095] NtbOffsetBrise=(NtbSta–NtbBrise)Mod NtbPowerPeriod;
[0096] NtbOffsetBfall=(NtbSta–NtbBfall)Mod NtbPowerPeriod;
[0097] NtbOffsetCrise=(NtbSta–NtbCrise)Mod NtbPowerPeriod;
[0098] NtbOffsetCfall=(NtbSta–NtbCfall)Mod NtbPowerPeriod;
[0099] Assuming that the information to be matched is collected on the rising edge, the offsets calculated above are not greater than the preset maximum offset threshold and are not equal to each other. By comparing the sizes, we can get:
[0100] If NtbOffsetArise is the minimum value, the phase and zero-fire reverse connection status of the communication node to be identified are: A phase, normal wiring;
[0101] If NtbOffsetAfall is the minimum value, the phase and zero-fire reverse connection status of the communication node to be identified are: A phase, zero-fire reverse connection;
[0102] If NtbOffsetBrise is the minimum value, the phase and zero-fire reverse connection status of the communication node to be identified are: B phase, normal wiring;
[0103] If NtbOffsetBfall is the minimum value, the phase and zero-fire reverse connection state of the communication node to be identified are: B phase, zero-fire reverse connection;
[0104] If NtbOffsetCrise is the minimum value, the phase and zero-fire reverse connection status of the communication node to be identified are: C phase, normal wiring;
[0105] If NtbOffsetCfall is the minimum value, the phase and zero-fire reverse connection state of the communication node to be identified are: C phase, zero-fire reverse connection;
[0106] Assuming that the information to be matched is collected on the falling edge, the offsets calculated above are not greater than the preset maximum offset threshold and are not equal to each other. By comparing the sizes, we can get:
[0107] If NtbOffsetArise is the minimum value, the phase and zero-fire reverse connection status of the communication node to be identified are: A phase, zero-fire reverse connection;
[0108] If NtbOffsetAfall is the minimum value, the phase and zero-fire reverse connection status of the communication node to be identified are: A phase, normal wiring;
[0109] If NtbOffsetBrise is the minimum value, the phase and zero-fire reverse connection state of the communication node to be identified are: B phase, zero-fire reverse connection;
[0110] If NtbOffsetBfall is the minimum value, the phase and zero-fire reverse connection status of the communication node to be identified are: B phase, normal wiring;
[0111] If NtbOffsetCrise is the minimum value, the phase and zero-fire reverse connection state of the communication node to be identified are: C phase, zero-fire reverse connection;
[0112] If NtbOffsetCfall is the minimum value, the phase and neutral-fire reverse connection status of the communication node to be identified are: C phase, normal wiring.
[0113] For the case where the matching array is the second matching array, assume that:
[0114] NtbCco[0]=NtbAfall; NtbOffset[0]=NtbOffsetAfall;
[0115] NtbCco[1]=NtbBfall; NtbOffset[1]=NtbOffsetBfall;
[0116] NtbCco[2]=NtbCfall; NtbOffset[2]=NtbOffsetCfall;
[0117] or,
[0118] NtbCco[0]=NtbAfall; NtbOffset[0]=NtbOffsetAfall;
[0119] NtbCco[1]=NtbBfall; NtbOffset[1]=NtbOffsetBfall;
[0120] NtbCco[2]=NtbCfall; NtbOffset[2]=NtbOffsetCfall;
[0121] Then the offsets of the information to be matched relative to each element are:
[0122] NtbOffsetArise=(NtbSta–NtbArise)Mod NtbPowerPeriod;
[0123] NtbOffsetBrise=(NtbSta–NtbBrise)Mod NtbPowerPeriod;
[0124] NtbOffsetCrise=(NtbSta–NtbCrise)Mod NtbPowerPeriod;
[0125] or,
[0126] NtbOffsetAfall=(NtbSta–NtbAfall)Mod NtbPowerPeriod;
[0127] NtbOffsetBfall=(NtbSta–NtbBfall)Mod NtbPowerPeriod;
[0128] NtbOffsetCfall=(NtbSta–NtbCfall)Mod NtbPowerPeriod;
[0129] Assuming that the offsets calculated above are not greater than the preset maximum offset threshold and are not equal to each other, by comparing the sizes, we can obtain:
[0130] If NtbOffsetArise or NtbOffsetAfall is the minimum value, the phase of the communication node to be identified is: phase A;
[0131] If NtbOffsetBrise or NtbOffsetBfall is the minimum value, the phase of the communication node to be identified is: phase B;
[0132] If NtbOffsetCrise or NtbOffsetCfall is the minimum value, the phase of the communication node to be identified is: C phase.
[0133] In actual applications, CCO starts to execute the above phase identification method after the networking is completed or the number of nodes connected to the network exceeds a certain number. Before performing phase identification according to the above method, it will first determine whether it is currently in a strong power environment and whether there are unidentified communication nodes. The specific method for determining whether it is currently in a strong power environment is: perform the operation of collecting local zero-crossing NTB information within a preset time, and check whether there is zero-crossing NTB information. If it exists, it is currently in a strong power environment. If it is currently in a strong power environment and there are unidentified communication nodes, execute the above phase identification method process.
[0134] When performing phase identification for an unidentified communication node, a phase identification timeout timer may be started to limit the maximum execution time of the phase identification process to balance the execution of other high-priority tasks.
[0135] It can be seen from the above steps that the embodiment of the present invention obtains local three-phase zero-crossing NTB information, forms a corresponding matching array according to different preset conditions, and then compares a zero-crossing NTB information of the communication node to be identified with each array element to obtain the closest zero-crossing NTB information. The phase to which the zero-crossing NTB information belongs is the phase of the communication node to be identified. The implementation process is simple and the identification is fast and accurate.
[0136] Figure 4 : is a schematic diagram of the structure of a phase identification device according to an embodiment of the present invention, which is arranged at a main node of a low-voltage power line broadband communication network and includes at least the following modules:
[0137] The matching array generation module 410 is configured to obtain local three-phase zero-crossing network reference time NTB information, and take the information that meets the first preset condition to form a first matching array, or when it is determined that the communication node to be identified has no zero-fire reverse connection, take the information that meets the second preset condition to form a second matching array; wherein, the first preset condition is: the first matching array elements are respectively three-phase double-edge acquisition, a total of six categories, each category has at least one array element; the second preset condition is: the second matching array elements are respectively three-phase single-edge acquisition, a total of three categories, each category has at least one array element;
[0138] The to-be-matched information acquisition module 420 is configured to acquire zero-crossing network reference time NTB information of the communication node to be identified, and select any one of them as the to-be-matched information;
[0139] The phase identification module 430 is configured to search for the zero-crossing network reference time NTB information closest to the information to be matched in the first matching array or the second matching array, and the phase to which the closest zero-crossing network reference time NTB information belongs is the phase of the communication node to be identified.
[0140] Figure 5 FIG. 1 is a schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. Figure 5 As shown, the communication device includes: a memory 510 and a processor 520, wherein the memory 510 and the processor 520 communicate with each other; exemplarily, the memory 510 and the processor 520 communicate with each other via a communication bus 530, the memory 510 is used to store a computer program, and the processor 520 executes the computer program to implement the method shown in the above embodiment.
[0141] Optionally, the communication device may further include a transmitter and / or a receiver.
[0142] Optionally, the processor may be a central processing unit (CPU), or other general-purpose processors, PLC (Programmable Logic Controller), FPGA (Field-Programmable Gate Array), DSP (Digital Signal Processor) or ASIC (Application Specific Integrated Circuit). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0143] An embodiment of the present invention further provides a communication system, comprising at least: a low-voltage power line broadband communication network master node provided with the communication device as described above.
[0144] An embodiment of the present invention provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to implement the phase identification method described in any of the above method embodiments.
[0145] An embodiment of the present invention provides a chip, which is used to support a receiving device (such as a terminal device, a network device, etc.) to implement the functions shown in the embodiment of the present invention. The chip is specifically used for a chip system, which can be composed of a chip, or can include a chip and other discrete devices. When the chip in the receiving device implements the above method, the chip includes a processing unit. Further, the chip can also include a communication unit. The processing unit can be, for example, a processor. When the chip includes a communication unit, the communication unit can be, for example, an input / output interface, a pin or a circuit. The processing unit performs all or part of the actions performed by each processing module in the embodiment of the present invention, and the communication unit can perform corresponding receiving or sending actions. In another specific embodiment, the processing module of the receiving device in the embodiment of the present invention can be a processing unit of the chip, and the receiving module or the sending module of the control device is a communication unit of the chip.
[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0147] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.
[0148] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.
[0149] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.
[0150] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.
[0151] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0152] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A phase identification method, applied to a master node of a low-voltage power line broadband communication network, characterized in that: At least: Obtain local three-phase zero-crossing network reference time NTB information, take the information that meets the first preset condition to form a first matching array, or when it is determined that the communication node to be identified has no zero-fire reverse connection, take the information that meets the second preset condition to form a second matching array; wherein, the first preset condition is: the first matching array elements are respectively three-phase double-edge acquisition, a total of six categories, each category has at least one array element; the second preset condition is: the second matching array elements are respectively three-phase double-edge acquisition, a total of three categories, each category has at least one array element; Obtain the zero-crossing network reference time NTB information of the communication node to be identified, and select any one of them as the information to be matched; The zero-crossing network reference time NTB information closest to the information to be matched is searched in the first matching array or the second matching array, and the phase to which the closest zero-crossing network reference time NTB information belongs is the phase of the communication node to be identified.
2. The method according to claim 1, characterized in that The searching for zero-crossing network reference time NTB information closest to the information to be matched in the first matching array or the second matching array is specifically: Calculating an offset of the to-be-matched information relative to each array element in the first matching array or the second matching array within one power cycle; When the calculated offset satisfies the third preset condition, the zero-crossing network reference time NTB information corresponding to the minimum offset is the zero-crossing network reference time NTB information closest to the information to be matched; The third preset condition includes: the offset is not greater than a preset maximum offset threshold and the offsets are not equal to each other.
3. The method according to claim 2, characterized in that The calculating of the offset of the to-be-matched information relative to each array element in the first matching array or the second matching array within one power cycle is specifically calculated by the following formula: NtbOffset[i]=(NtbSta–NtbCco[i])Mod NtbPowerPeriod; Among them, NtbPowerPeriod is the network reference time value corresponding to one power cycle, NtbSta is the value of the information to be matched, NtbCco[i] is the value of the element i of the first matching array or the second matching array, NtbOffset[i] is the offset of the information to be matched relative to the element i of the first matching array or the second matching array within one power cycle, and i is a non-zero integer.
4. The method according to claim 3, characterized in that: in, When the acquisition edge type of the information to be matched is different from that of the closest zero-crossing network reference time NTB information, and the closest zero-crossing network reference time NTB information is the first matching array element, the zero-fire reverse connection state of the communication node to be identified is zero-fire reverse connection: when the acquisition edge type of the information to be matched is the same as that of the closest zero-crossing network reference time NTB information, and the closest zero-crossing network reference time NTB information is the first matching array element, the zero-fire reverse connection state of the communication node to be identified is normal wiring.
5. The method according to any one of claims 1 to 4, characterized in that: Before the method is executed, it also includes: It is determined whether the current environment is a strong power environment and whether there are any unidentified communication nodes. If the current environment is a strong power environment and there are any unidentified communication nodes, the method is executed.
6. The method according to claim 5, characterized in that The determination of whether the current environment is a strong power environment is specifically as follows: The operation of collecting the local zero-crossing network reference time NTB information is performed within the preset time, and it is checked whether the zero-crossing network reference time NTB information exists. If so, it is currently in a strong power environment.
7. A phase identification device, arranged at a main node of a low-voltage power line broadband communication network, characterized in that: At least: A matching array generation module is configured to obtain local three-phase zero-crossing network reference time NTB information, and take the information that meets the first preset condition to form a first matching array, or when it is determined that the communication node to be identified has no zero-fire reverse connection, take the information that meets the second preset condition to form a second matching array; wherein, the first preset condition is: the first matching array elements are respectively three-phase double-edge acquisition, a total of six categories, each category has at least one array element; the second preset condition is: the second matching array elements are respectively three-phase double-edge acquisition, a total of three categories, each category has at least one array element; The to-be-matched information acquisition module is configured to acquire the zero-crossing network reference time NTB information of the communication node to be identified, and select any one of them as the to-be-matched information; The phase identification module is configured to search for the zero-crossing network reference time NTB information closest to the information to be matched in the first matching array or the second matching array, and the phase to which the closest zero-crossing network reference time NTB information belongs is the phase of the communication node to be identified.
8. A communication device, characterized in that: The method comprises a memory and a processor, wherein the processor executes program instructions in the memory to implement the method according to any one of claims 1 to 6.
9. A communication system, characterized in that: At least: A low-voltage power line broadband communication network master node is provided with the communication device as claimed in claim 8.
10. A storage medium, characterized in that: The storage medium is used to store a computer program, and the computer program is used to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Low-voltage user-transformer relationship identification method and system based on power frequency change trend
CN112600589A
Transformer area identification method based on zero-crossing NTB
CN113746589A