A method for zero-crossing detection time synchronization and related equipment

By the exchange of over zero -point synchronous messages and synchronous message messages between the main communication module and the communication module between the main communication module and the communication module, the problem of the time accuracy and synchronization of the zero -point detection time in the electric line carrier communication has achieved it. The high precision of the system time synchronizes.

CN115361081BActive Publication Date: 2025-01-28NANJING DIANRUN TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210923834.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-02
Publication Date
2025-01-28
Estimated Expiration
2042-08-02

AI Technical Summary

Technical Problem

In power line carrier communication, the prior art is difficult to ensure the accuracy and synchronization of zero crossing detection time, especially under the influence of factors such as ambient temperature changes and device aging, resulting in a decrease in the system time synchronization accuracy.

Method used

Send a zero -point synchronization message to the communication module through the main communication module, enter the zero -point synchronization mode, and send synchronous messages at a certain time to receive the target time difference data sent from the communication module. Essence

Benefits of technology

During the operation of the power line carrier communication system, the over zero -point detection time of the main module at any time eliminates the impact of the ambient temperature and the aging of the device on the detection time, and improves the accuracy and synchronization of the time of the zero -point detection time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115361081B_ABST
    Figure CN115361081B_ABST
Patent Text Reader

Abstract

The present application provides a method and related equipment for zero-crossing detection time synchronization. In the present application, the master communication module sends a zero-crossing synchronization message to the slave communication module to enter the zero-crossing synchronization mode; if the zero-crossing data is detected at time T0, the timing function is started; at time T2, a first synchronization message is sent to the slave communication module, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; at time T3, a second synchronization message is sent to the slave communication module, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; and the target time difference data sent by the slave communication module is received. During the operation of the power line carrier communication system, the present application can perform zero-crossing detection time synchronization of the master and slave modules at any time; thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data processing, and in particular to a method for zero-crossing point detection time synchronization and related equipment. Background Art

[0002] Power line carrier is a communication method that uses high and low voltage power lines as information transmission media for voice or data transmission, that is, it can use 380 / 220V user distribution network to achieve data transmission. Voltage zero crossing means that the voltage of the AC signal changes from the positive half cycle to the negative half cycle or from the negative half cycle to the positive half cycle through the zero position, and the voltage difference between the zero position and the reference point is zero.

[0003] In electronic circuit design, voltage zero crossing is usually used as a time reference point. In order to obtain the voltage zero crossing of the AC signal, a voltage zero crossing detection circuit is generated. In power line carrier communication, some functions with high requirements for time synchronization, such as concurrent communication, phase sequence identification, topology identification, event reporting, etc., need to use the AC zero crossing point as a time reference point. The detection of AC zero crossing can be achieved by using electronic circuits such as voltage comparators and transistors. In power line carrier communication, considering safety factors, the AC strong current part needs to be isolated from the weak current parts such as detection and control. Optocoupler devices are usually used as zero crossing detection devices; in each power line carrier communication module, a zero crossing detection circuit is used; in actual use, this zero crossing detection circuit has the following problems:

[0004] 1. In order to ensure the accuracy and synchronization of the zero-crossing detection time of the communication module, the consistency of the parameters of the components used in the detection circuit is required to be high, and the components need to be sorted before production; the zero-crossing detection circuit must also be calibrated during the production process, which increases the cost of the product;

[0005] 2. Since optocoupler devices are analog devices, the communication modules are used in the field for a long time. Due to the influence of factors such as ambient temperature and device aging, the parameters and performance of the zero-crossing detection circuit change. The accuracy and synchronization of the zero-crossing detection time are difficult to guarantee, which affects the system time synchronization accuracy.

[0006] 3. Power line carrier communication requires that communication modules from different manufacturers can be interconnected. In a system composed of communication modules from different manufacturers, due to the different performance and parameters of the zero-crossing detection circuits of communication modules from different manufacturers, there is a certain error in the zero-crossing detection time, which affects the system time synchronization accuracy.

[0007] How to ensure the accuracy and synchronization of the zero-crossing detection time of the power line carrier communication module during field use is a problem to be solved by the present invention.

[0008] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0009] The purpose of the present application is to provide a method and related equipment for synchronizing the zero-crossing detection time, which at least overcomes the problems existing in the prior art to a certain extent. During the operation of the power line carrier communication system, the zero-crossing detection time of the master and slave modules can be synchronized at any time; thereby eliminating adverse factors such as ambient temperature and device aging, and the influence on the zero-crossing detection time of the module can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0010] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present invention.

[0011] According to one aspect of the present application, a method for zero-crossing detection time synchronization is provided, which is applied to a master communication module, including: sending a zero-crossing synchronization message to a slave communication module to enter a zero-crossing synchronization mode; if zero-crossing data is detected at time T0, starting a timing function; sending a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; sending a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; and receiving target time difference data sent by the slave communication module.

[0012] In one embodiment of the present application, sending a zero-crossing synchronization message to a slave communication module further includes: sending a zero-crossing synchronization message to at least one slave communication module respectively.

[0013] In one embodiment of the present application, the receiving of the target time difference data sent by the slave communication module also includes: obtaining warning data and warning rules; processing the target time difference data based on the warning data and the warning rules, and outputting the operation information of the slave communication module.

[0014] Another aspect of the present application provides a method for zero-crossing detection time synchronization, which is applied to a slave communication module, including: receiving a zero-crossing synchronization message sent by a master communication module to enter a zero-crossing synchronization mode; receiving a first synchronization message sent by the master communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; processing the first synchronization message to obtain a first comprehensive error value ΔS1; receiving a second synchronization message sent by the master communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; processing the second synchronization message to obtain a second comprehensive error value ΔS2; obtaining target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; and sending the target time difference data to the master communication module.

[0015] In one embodiment of the present application, the processing of the first synchronization message to obtain a first comprehensive error value ΔS1 also includes: acquiring zero-crossing data at time T1 and starting a timing function; receiving the first synchronization message sent by the main communication module at time T2, and taking the duration from time T1 to time T2 as the time S2 value; processing the first synchronization message to obtain the time S1 value; processing time S1 and time S2 based on preset rules to obtain a first comprehensive error value ΔS1, wherein the preset rule is ΔS1=S2-S1.

[0016] In one embodiment of the present application, the processing of the second synchronization message to obtain a second comprehensive error value ΔS2 also includes: receiving the second synchronization message sent by the main communication module at time T3, and taking the time from time T2 to time T3 as the time S4 ​​value; processing the second synchronization message message to obtain the time S3 value; processing time S3 and time S4 ​​based on preset rules to obtain a second comprehensive error value ΔS2, wherein the preset rule is ΔS2=S4-S3.

[0017] Another aspect of the present application provides a device for zero-crossing detection time synchronization, which is applied to a master communication module, including: a sending module, configured to send a zero-crossing synchronization message to a slave communication module to enter a zero-crossing synchronization mode; sending a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; sending a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; a processing module, configured to start a timing function if zero-crossing data is detected at time T0; and a receiving module, configured to receive target time difference data sent by the slave communication module.

[0018] According to another aspect of the present application, a device for zero-crossing detection time synchronization is provided, which is applied to a slave communication module, including: a receiving module, configured to receive a zero-crossing synchronization message sent by a master communication module, and enter a zero-crossing synchronization mode; receive a first synchronization message message sent by the master communication module at time T2, wherein the first synchronization message message includes a first zero-crossing synchronization message and a time S1 value; receive a second synchronization message message sent by the master communication module at time T3, wherein the second synchronization message message includes a second zero-crossing synchronization message and a time S3 value; a processing module, configured to process the first synchronization message message to obtain a first comprehensive error value ΔS1; process the second synchronization message message to obtain a second comprehensive error value ΔS2; obtain target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; and a sending module, configured to send the target time difference data to the master communication module.

[0019] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-mentioned method of zero-crossing detection time synchronization by executing the executable instructions.

[0020] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for zero-crossing point detection time synchronization is implemented.

[0021] The present application provides a method and related equipment for zero-crossing detection time synchronization. In the present application, a master communication module sends a zero-crossing synchronization message to a slave communication module to enter a zero-crossing synchronization mode; if zero-crossing data is detected at time T0, the timing function is started; a first synchronization message is sent to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; a second synchronization message is sent to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; and the target time difference data sent by the slave communication module is received. The present application can synchronize the zero-crossing detection time of the master and slave modules at any time during the operation of the power line carrier communication system; therefore, adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0024] Figure 1 A flowchart of a zero-crossing detection time synchronization method provided by an embodiment of the present application is shown;

[0025] Figure 2 Another flow chart of a zero-crossing detection time synchronization method provided by an embodiment of the present application is shown;

[0026] Figure 3 A flowchart of a zero-crossing detection time synchronization system provided by an embodiment of the present application is shown;

[0027] Figure 4 A schematic diagram of the structure of a zero-crossing detection time synchronization device provided by an embodiment of the present application is shown;

[0028] Figure 5 Another structural schematic diagram of a zero-crossing detection time synchronization device provided by an embodiment of the present application is shown;

[0029] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;

[0030] Figure 7 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present application.

[0032] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0033] The following description of at least one exemplary embodiment is merely illustrative in nature and is not intended to limit the present application, its application, or uses.

[0034] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0035] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0036] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0037] It should be noted that those skilled in the art will easily think of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present application are indicated by the claims.

[0038] It should be understood that the present application is not limited to the precise structures described below and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0039] Combine the following Figure 1 To describe the method for performing zero-crossing detection time synchronization according to an exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown for the sake of facilitating understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited in this respect. On the contrary, the embodiments of the present application can be applied to any applicable scenario.

[0040] In one implementation, the present application also proposes a method for zero-crossing detection time synchronization. Figure 1 The flowchart of a method for zero-crossing detection time synchronization according to an embodiment of the present application is schematically shown. Figure 1 As shown, the method is applied to the main communication module, comprising:

[0041] S101, sending a zero-crossing synchronization message to a slave communication module to enter a zero-crossing synchronization mode.

[0042] In one embodiment, data to be transmitted is obtained through power lines connected to various household meters, and characteristic values ​​are configured for the data according to the nature of the data to be transmitted. The characteristic values ​​may be priority, fault tolerance and / or QoS parameters. For example, if the data needs to be transmitted accurately, a higher priority may be configured for it.

[0043] In another embodiment, based on the characteristic value of the acquired data, it is determined whether the data needs to be sent and received within a predetermined time period when the voltage of the power line passes through zero. If so, a zero-crossing synchronization message is sent to the slave communication module to enter the zero-crossing synchronization mode.

[0044] S102: If zero-crossing data is detected at time T0, the timing function is started.

[0045] In one implementation, the interference and noise of the power line carrier communication system at different locations and different time periods are very different, and when the power frequency signal on the power line is at zero, that is, in the time period of about +-5ms when the current of 50Hz, 220v passes through the zero point, the signal-to-noise ratio of the power line carrier communication channel is relatively high, and the transmission effect is better. Therefore, the zero-crossing period on the power line can be detected by detecting the voltage on the power line, and at this time, the timer of the main module microprocessor is started to start the timing function.

[0046] S103: Send a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value.

[0047] In one implementation, the first zero-crossing synchronization message is used to notify the slave communication module to perform time synchronization, and the time S1 value is the time interval value of the master communication module from time point T0 to time point T2.

[0048] S104: Send a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value.

[0049] In one implementation, the second zero-crossing synchronization message is used to notify the slave communication module to perform time synchronization, and the time S3 value is the time interval value of the master communication module from time point T2 to time point T3.

[0050] S105: Receive the target time difference data sent from the communication module.

[0051] In one embodiment, the master communication module judges each slave communication module according to the target time difference data sent by the slave communication module, thereby filtering out the slave communication module with abnormalities. In addition, the zero-crossing detection time error of the slave communication module is only related to the difference of the secondary timer of the slave communication module receiving the synchronous communication signal; the error accuracy is related to the timer accuracy. By increasing the counting frequency of the timer (increasing the main frequency of the microprocessor), the timer accuracy can be improved, thereby improving the zero-crossing time detection error accuracy.

[0052] A method for zero-crossing detection time synchronization provided by the present application is applied to the master communication module, including: sending a zero-crossing synchronization message to the slave communication module to enter the zero-crossing synchronization mode; if the zero-crossing data is detected at time T0, the timing function is started; sending a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; sending a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; receiving the target time difference data sent by the slave communication module. The present application can synchronize the zero-crossing detection time of the master and slave modules at any time during the operation of the power line carrier communication system; therefore, the adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0053] Optionally, in another embodiment of the above method of the present application, the sending of a zero-crossing synchronization message to the slave communication module further includes:

[0054] A zero-crossing synchronization message is respectively sent to at least one slave communication module.

[0055] In one embodiment, during the operation of the power line carrier communication system, the main communication module periodically initiates a zero-crossing synchronization command to all slave communication modules, the slave communication modules respond to the command, and obtain their respective target time difference data; the zero-crossing detection time of the slave communication module is kept consistent with that of the main communication module, thereby achieving time synchronization between the slave communication module and the main communication module.

[0056] In another implementation, during the operation of the power line carrier communication system, the slave communication module can initiate a zero-crossing synchronization request to the master communication module at any time according to its own operating conditions. After the master communication module responds, it starts synchronous communication and the slave communication module completes synchronization.

[0057] In another implementation, during the operation of the power line carrier communication system, a slave communication module newly added to the system can initiate a zero-crossing synchronization request to the master communication module at any time. After the master communication module responds, it starts synchronous communication and the slave communication module completes synchronization.

[0058] Optionally, in another embodiment of the method of the present application, the receiving the target time difference data sent by the slave communication module further includes:

[0059] Obtain warning data and warning rules;

[0060] The target time difference data is processed based on the warning data and the warning rule, and operation information of the slave communication module is output.

[0061] In one embodiment, the master communication module sets a warning value for each slave communication module. When the zero-crossing detection of the slave communication module is abnormal and causes the target time difference data to exceed the limit, the slave communication module actively reports to the master communication module and replaces the problematic slave communication module in time.

[0062] In another embodiment, each slave communication module actively sends target time difference data to the master communication module, and the master communication module analyzes and processes the acquired target time difference data according to the pre-set warning value, finds out the slave communication module with abnormal state, and replaces the slave communication module with abnormal state in time. Thus, the accuracy and synchronization of the zero-crossing detection time of the master communication module and the slave communication module are ensured during the operation of the power line carrier communication system.

[0063] A method for zero-crossing detection time synchronization provided by the present application is applied to a master communication module, including: sending a zero-crossing synchronization message to at least one slave communication module respectively, entering a zero-crossing synchronization mode; if zero-crossing data is detected at time T0, starting a timing function; sending a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; sending a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; receiving target time difference data sent by the slave communication module; obtaining early warning data and early warning rules; processing the target time difference data based on the early warning data and the early warning rules, and outputting the operation information of the slave communication module. The present application can synchronize the zero-crossing detection time of the master and slave modules at any time during the operation of the power line carrier communication system; therefore, adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0064] In one implementation, the present application also proposes a method for zero-crossing detection time synchronization. Figure 2 The flowchart of a method for zero-crossing detection time synchronization according to an embodiment of the present application is schematically shown. Figure 2 As shown, the method is applied to a slave communication module, comprising:

[0065] S201. Receive a zero-crossing synchronization message sent by a main communication module and enter a zero-crossing synchronization mode.

[0066] In one embodiment, a slave communication module receives a zero-crossing communication message sent by a master communication module, wherein the master communication module obtains data to be transmitted through a power line connected to various household meters, and configures a characteristic value for the data according to the nature of the data to be transmitted, and the characteristic value may be a priority, fault tolerance and / or QoS parameter, for example, the data needs to be accurately transmitted, and a higher priority may be configured for it. Based on the characteristic value of the acquired data, it is determined whether the data needs to be sent and received within a predetermined time period when the voltage of the power line crosses the zero point, and if so, a zero-crossing synchronization message is sent to the slave communication module to enter the zero-crossing synchronization mode.

[0067] S202. Receive a first synchronization message sent by the main communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value.

[0068] In one implementation, the slave communication module performs time synchronization according to the first synchronization message sent by the master communication module. In addition, the time S1 value is the time interval value of the master communication module from time point T0 to time point T2.

[0069] S203: Process the first synchronization message to obtain a first comprehensive error value ΔS1.

[0070] In one implementation, the zero-crossing data is acquired at time T1, and the timing function is started; the slave communication module receives the first synchronization message information sent by the master communication module at time T2, and the value of the timer is recorded at this time to obtain the time S2 value, and the slave communication module processes the first synchronization message message to obtain the time S1 value. The first comprehensive error value ΔS1 is obtained according to the preset business rules, wherein the preset rule is ΔS1=S2-S1.

[0071] S204. Receive a second synchronization message sent by the main communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value.

[0072] In one implementation, the slave communication module performs time synchronization according to the second synchronization message sent by the master communication module. In addition, the time S3 value is the time interval value of the master communication module from time point T2 to time point T3.

[0073] S205: Process the second synchronization message to obtain a second comprehensive error value ΔS2.

[0074] In one implementation, the slave communication module receives the second synchronization message information sent by the master communication module at time T3, records the value of the timer at this time, obtains the time S4 ​​value, processes the second synchronization message message from the slave communication module, and obtains the time S3 value. The second comprehensive error value ΔS2 is obtained according to a preset business rule, wherein the preset rule is ΔS2=S4-S3.

[0075] S206 . Obtain target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2 .

[0076] In one embodiment, since the messages transmitted and received by the master communication module and the slave communication module in two time periods are the same, the delay errors of transmission and reception are also the same; when the time interval value from time point T0 to T2 of the master communication module is the same as the time interval value from time point T2 to T3, that is, S1=S3; according to the formula: ΔS=ΔS1-ΔS2, a value ΔS containing only the zero-crossing detection error and the timing error can be obtained. The slave communication module obtains the target time difference data ΔS according to the preset business rules, wherein the preset rules are ΔS=ΔS1-ΔS2=S2-S4. Therefore, it can be concluded that the zero-crossing detection time error of the slave communication module is only related to the difference of the secondary timers for receiving the synchronous communication signal from the slave communication module; the error accuracy is related to the timer accuracy, and the timer accuracy can be improved by increasing the counting frequency of the timer (increasing the main frequency of the microprocessor), thereby improving the zero-crossing time detection error accuracy.

[0077] S207: Send the target time difference data to the main communication module.

[0078] In one embodiment, the slave communication module sends the target time difference data obtained after data processing to the master communication module, so that the master communication module can analyze the target time difference data of each slave communication module and the pre-set warning data, thereby finding out the slave communication module with abnormal state and replacing the slave communication module with abnormal state in time. Thus, the accuracy and synchronization of the zero-crossing detection time of the master communication module and the slave communication module are ensured during the operation of the power line carrier communication system.

[0079] The present application provides a method for zero-crossing detection time synchronization, which is applied to a slave communication module, including: receiving a zero-crossing synchronization message sent by a master communication module, and entering a zero-crossing synchronization mode; receiving a first synchronization message message sent by the master communication module at time T2, wherein the first synchronization message message includes a first zero-crossing synchronization message and a time S1 value; processing the first synchronization message message to obtain a first comprehensive error value ΔS1; receiving a second synchronization message message sent by the master communication module at time T3, wherein the second synchronization message message includes a second zero-crossing synchronization message and a time S3 value; processing the second synchronization message message to obtain a second comprehensive error value ΔS2; obtaining target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; and sending the target time difference data to the master communication module. During the operation of the power line carrier communication system, the zero-crossing detection time synchronization of the master and slave modules can be performed at any time; therefore, adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0080] Optionally, in another embodiment of the method of the present application, the processing of the first synchronization message to obtain a first comprehensive error value ΔS1 further includes:

[0081] At time T1, the zero-crossing data is acquired and the timing function is started;

[0082] Receive the first synchronization message sent by the main communication module at time T2, and use the time from time T1 to time T2 as the time S2 value;

[0083] Processing the first synchronization message to obtain a time S1 value;

[0084] The time S1 and the time S2 are processed based on a preset rule to obtain a first comprehensive error value ΔS1, wherein the preset rule is ΔS1 = S2 - S1.

[0085] In one implementation, the slave communication module detects a zero crossing at time T1, at which time the timer of the slave communication module microprocessor is started, and the receiving circuit is turned on at the same time; a synchronous communication signal is received at time T2, at which time the value of the timer is recorded to obtain the time S2 value; the received synchronization message is parsed to obtain the time S1 value. In the time period from T0, T1 to T2, there is a zero crossing detection error, a timing error of the timer, and a transmission and reception delay error between the slave communication module and the master communication module; according to the formula ΔS1=S2-S1, a comprehensive error value ΔS1 of the slave communication module can be obtained.

[0086] Optionally, in another embodiment of the method of the present application, the processing of the second synchronization message to obtain the second comprehensive error value ΔS2 further includes:

[0087] Receive the second synchronization message sent by the main communication module at time T3, and use the time from time T2 to time T3 as the time S4 ​​value;

[0088] Processing the second synchronization message to obtain a time S3 value;

[0089] The time S3 and the time S4 ​​are processed based on a preset rule to obtain a second comprehensive error value ΔS2, wherein the preset rule is ΔS2 = S4 - S3.

[0090] In one implementation, the slave communication module timer continues to time, the receiving circuit continues to receive, and the synchronous communication signal is received at time T3; the timer value is recorded at this time to obtain the time S4 ​​value; the received synchronization message is parsed to obtain the time S3 value. In the time period from T2 to T3, there is a timing error of the timer between the slave communication module and the master communication module, as well as a transmission and reception delay error; according to the formula ΔS2=S4-S3, another comprehensive error value ΔS2 of the slave communication module can be obtained.

[0091] A method for zero-crossing detection time synchronization provided by the present application is applied to a slave communication module, comprising: receiving a zero-crossing synchronization message sent by a master communication module to enter a zero-crossing synchronization mode; receiving a first synchronization message sent by the master communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; acquiring zero-crossing data at time T1 and starting a timing function; receiving a first synchronization message sent by the master communication module at time T2, and taking the time from time T1 to time T2 as the time S2 value; processing the first synchronization message to obtain a time S1 value; processing time S1 and time S2 based on a preset rule to obtain a first comprehensive error value ΔS1, wherein the preset The rule is ΔS1=S2-S1; receiving the second synchronization message sent by the main communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; receiving the second synchronization message sent by the main communication module at time T3, and taking the duration from time T2 to time T3 as the time S4 ​​value; processing the second synchronization message to obtain the time S3 value; processing time S3 and time S4 ​​based on the preset rule to obtain the second comprehensive error value ΔS2, wherein the preset rule is ΔS2=S4-S3; obtaining the target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; sending the target time difference data to the main communication module. During the operation of the power line carrier communication system, the zero-crossing detection time of the master and slave modules can be synchronized at any time; therefore, the adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0092] In one embodiment, if Figure 3As shown, the present application also proposes a system for zero-crossing detection time synchronization, including: a master communication module sends a zero-crossing synchronization message to a slave communication module to enter a zero-crossing synchronization mode; the slave communication module receives the zero-crossing synchronization message sent by the master communication module to enter a zero-crossing synchronization mode; if the master communication module detects zero-crossing data at time T0, the timing function is started; the master communication module sends a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; the slave communication module receives the first synchronization message sent by the master communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; the slave communication module Processing is performed to obtain a first comprehensive error value ΔS1; the main communication module sends a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; the slave communication module receives the second synchronization message sent by the main communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; the slave communication module processes the second synchronization message to obtain a second comprehensive error value ΔS2; the slave communication module obtains target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; the slave communication module sends the target time difference data to the main communication module; the main communication module receives the target time difference data sent by the slave communication module.

[0093] During the operation of the power line carrier communication system, the zero-crossing detection time of the master and slave modules can be synchronized at any time; therefore, adverse factors such as ambient temperature and device aging are eliminated, and the influence on the zero-crossing detection time of the module can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0094] In one embodiment, if Figure 4 As shown, the present application also provides a device for zero-crossing detection time synchronization, which is applied to a main communication module, including:

[0095] The sending module 401 is configured to send a zero-crossing synchronization message to the slave communication module to enter the zero-crossing synchronization mode; send a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; send a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value;

[0096] The processing module 402 is configured to start the timing function if zero-crossing data is detected at time T0;

[0097] The receiving module 403 is configured to receive the target time difference data sent from the communication module.

[0098] The present application provides a device for zero-crossing detection time synchronization, which is applied to the master communication module, including: sending a zero-crossing synchronization message to the slave communication module to enter the zero-crossing synchronization mode; if the zero-crossing data is detected at time T0, the timing function is started; sending a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; sending a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; receiving the target time difference data sent by the slave communication module. The present application can synchronize the zero-crossing detection time of the master and slave modules at any time during the operation of the power line carrier communication system; therefore, the adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0099] In another embodiment of the present application, the apparatus further includes a processing module 402 configured to:

[0100] A zero-crossing synchronization message is respectively sent to at least one slave communication module.

[0101] In another embodiment of the present application, the processing module 402 is configured to:

[0102] Obtain warning data and warning rules;

[0103] The target time difference data is processed based on the warning data and the warning rule, and operation information of the slave communication module is output.

[0104] The present application provides a device for zero-crossing detection time synchronization, which is applied to the master communication module, including: sending zero-crossing synchronization messages to at least one slave communication module respectively, and entering the zero-crossing synchronization mode; if the zero-crossing data is detected at time T0, the timing function is started; sending a first synchronization message message to the slave communication module at time T2, wherein the first synchronization message message includes a first zero-crossing synchronization message and a time S1 value; sending a second synchronization message message to the slave communication module at time T3, wherein the second synchronization message message includes a second zero-crossing synchronization message and a time S3 value; receiving the target time difference data sent by the slave communication module; obtaining early warning data and early warning rules; processing the target time difference data based on the early warning data and the early warning rules, and outputting the operation information of the slave communication module. The present application can synchronize the zero-crossing detection time of the master and slave modules at any time during the operation of the power line carrier communication system; therefore, the adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0105] In one embodiment, if Figure 5 As shown, the present application also provides a device for zero-crossing detection time synchronization, which is applied to a slave communication module, including:

[0106] The receiving module 501 is configured to receive a zero-crossing synchronization message sent by the main communication module and enter a zero-crossing synchronization mode; receive a first synchronization message sent by the main communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; receive a second synchronization message sent by the main communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value;

[0107] The processing module 502 is configured to process the first synchronization message to obtain a first comprehensive error value ΔS1; process the second synchronization message to obtain a second comprehensive error value ΔS2; and obtain target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2;

[0108] The sending module 503 is configured to send the target time difference data to the main communication module.

[0109] The present application provides a device for zero-crossing detection time synchronization, which is applied to a slave communication module, including: receiving a zero-crossing synchronization message sent by a master communication module, and entering a zero-crossing synchronization mode; receiving a first synchronization message sent by the master communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; processing the first synchronization message to obtain a first comprehensive error value ΔS1; receiving a second synchronization message sent by the master communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; processing the second synchronization message to obtain a second comprehensive error value ΔS2; obtaining target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; and sending the target time difference data to the master communication module. During the operation of the power line carrier communication system, the zero-crossing detection time synchronization of the master and slave modules can be performed at any time; therefore, adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0110] In another embodiment of the present application, the processing module 502 is configured to:

[0111] At time T1, the zero-crossing data is acquired and the timing function is started;

[0112] Receive the first synchronization message sent by the main communication module at time T2, and use the time from time T1 to time T2 as the time S2 value;

[0113] Processing the first synchronization message to obtain a time S1 value;

[0114] The time S1 and the time S2 are processed based on a preset rule to obtain a first comprehensive error value ΔS1, wherein the preset rule is ΔS1 = S2 - S1.

[0115] In another embodiment of the present application, the processing module 502 is configured to:

[0116] Receive the second synchronization message sent by the main communication module at time T3, and use the time from time T2 to time T3 as the time S4 ​​value;

[0117] Processing the second synchronization message to obtain a time S3 value;

[0118] The time S3 and the time S4 ​​are processed based on a preset rule to obtain a second comprehensive error value ΔS2, wherein the preset rule is ΔS2 = S4 - S3.

[0119] The present application provides a device for zero-crossing detection time synchronization, which is applied to a slave communication module, including: receiving a zero-crossing synchronization message sent by a master communication module to enter a zero-crossing synchronization mode; receiving a first synchronization message sent by the master communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; acquiring zero-crossing data at time T1 and starting a timing function; receiving a first synchronization message sent by the master communication module at time T2, and taking the time from time T1 to time T2 as the time S2 value; processing the first synchronization message to obtain a time S1 value; processing time S1 and time S2 based on a preset rule to obtain a first comprehensive error value ΔS1, wherein the preset The rule is ΔS1=S2-S1; receiving the second synchronization message sent by the main communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; receiving the second synchronization message sent by the main communication module at time T3, and taking the duration from time T2 to time T3 as the time S4 ​​value; processing the second synchronization message to obtain the time S3 value; processing time S3 and time S4 ​​based on the preset rule to obtain the second comprehensive error value ΔS2, wherein the preset rule is ΔS2=S4-S3; obtaining the target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; sending the target time difference data to the main communication module. During the operation of the power line carrier communication system, the zero-crossing detection time of the master and slave modules can be synchronized at any time; therefore, the adverse factors such as ambient temperature and device aging are eliminated, and the influence on the module zero-crossing detection time can be eliminated, thereby achieving the purpose of ensuring the accuracy and synchronization of the zero-crossing detection time.

[0120] The present application embodiment provides an electronic device, such as Figure 6 As shown, it includes a processor 600, a memory 601, a bus 602 and a communication interface 603, and the processor 600, the communication interface 603 and the memory 601 are connected via the bus 602; the memory 601 stores a computer program that can be run on the processor 600, and when the processor 600 runs the computer program, the method for zero-crossing detection time synchronization provided in any of the aforementioned embodiments of the present application is executed.

[0121] The memory 601 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 603 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0122] The bus 602 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 601 is used to store a program, and the processor 600 executes the program after receiving an execution instruction. The method for zero-crossing detection time synchronization disclosed in any implementation of the embodiment of the present application may be applied to the processor 600, or implemented by the processor 600.

[0123] The processor 600 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 600. The above processor 600 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be embodied as a hardware decoding processor, or a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 601, and the processor 600 reads the information in the memory 601 and completes the steps of the above method in combination with its hardware.

[0124] The electronic device provided by the above-mentioned embodiments of the present application and the method for zero-crossing detection time synchronization provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0125] The present application embodiment provides a computer-readable storage medium, such as Figure 7 As shown, the computer-readable storage medium stores 701 a computer program, and when the computer program is read and executed by the processor 702, the method for zero-crossing point detection time synchronization as described above is implemented.

[0126] The technical solution of the embodiment of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be an air conditioner, a refrigeration device, a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0127] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method for zero-crossing detection time synchronization provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0128] An embodiment of the present application provides a computer program product, including a computer program, wherein the computer program is executed by a processor to implement the method described above.

[0129] The computer program product provided by the above-mentioned embodiments of the present application and the method for zero-crossing detection time synchronization provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0130] It should be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or still includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0131] Each embodiment in the present application is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the method, electronic device, electronic device, and readable storage medium embodiment of zero-crossing detection time synchronization, since they are basically similar to the above-mentioned method embodiment of zero-crossing detection time synchronization, the description is relatively simple, and the relevant parts can be referred to the partial description of the above-mentioned method embodiment of zero-crossing detection time synchronization.

[0132] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.

Claims

1. A method for zero-crossing detection time synchronization, characterized in that: Applicable to the main communication module, including: Send a zero-crossing synchronization message to the slave communication module to enter the zero-crossing synchronization mode; If zero-crossing data is detected at time T0, the timing function is started; Sending a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; Sending a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; Receive the target time difference data ΔS sent by the slave communication module.

2. The method for zero-crossing detection time synchronization according to claim 1, characterized in that: The sending of a zero-crossing synchronization message to the slave communication module further includes: A zero-crossing synchronization message is respectively sent to at least one slave communication module.

3. The method for zero-crossing detection time synchronization according to claim 1, characterized in that: The receiving the target time difference data sent from the communication module also includes: Obtain warning data and warning rules; The target time difference data is processed based on the warning data and the warning rule, and operation information of the slave communication module is output.

4. A method for zero-crossing detection time synchronization, characterized in that: Applicable to slave communication modules, including: Receive the zero-crossing synchronization message sent by the main communication module and enter the zero-crossing synchronization mode; Receiving a first synchronization message sent by the main communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; Processing the first synchronization message to obtain a first comprehensive error value ΔS1; Receiving a second synchronization message sent by the main communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; Processing the second synchronization message to obtain a second comprehensive error value ΔS2; Acquire target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; The target time difference data is sent to the main communication module.

5. The method for zero-crossing detection time synchronization according to claim 4, characterized in that: The processing of the first synchronization message to obtain a first comprehensive error value ΔS further includes: At time T1, the zero-crossing data is acquired and the timing function is started; Receive the first synchronization message sent by the main communication module at time T2, and use the time from time T1 to time T2 as the time S2 value; Processing the first synchronization message to obtain a time S1 value; The time S1 and the time S2 are processed based on a preset rule to obtain a first comprehensive error value ΔS1, wherein the preset rule is ΔS1 = S2 - S1.

6. The method for zero-crossing detection time synchronization according to claim 4, characterized in that: The processing of the second synchronization message to obtain a second comprehensive error value further includes: Receive the second synchronization message sent by the main communication module at time T3, and use the time from time T2 to time T3 as the time S4 ​​value; Processing the second synchronization message to obtain a time S3 value; The time S3 and the time S4 ​​are processed based on a preset rule to obtain a second comprehensive error value ΔS2, wherein the preset rule is ΔS2 = S4 - S3.

7. A device for zero-crossing detection time synchronization, characterized in that: Applicable to the main communication module, including: A sending module is configured to send a zero-crossing synchronization message to a slave communication module to enter a zero-crossing synchronization mode; send a first synchronization message to the slave communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; send a second synchronization message to the slave communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; The processing module is configured to start the timing function if zero-crossing data is detected at time T0; The receiving module is configured to receive the target time difference data sent from the communication module.

8. A device for zero-crossing detection time synchronization, characterized in that: Applicable to slave communication modules, including: A receiving module is configured to receive a zero-crossing synchronization message sent by the main communication module and enter a zero-crossing synchronization mode; receive a first synchronization message sent by the main communication module at time T2, wherein the first synchronization message includes a first zero-crossing synchronization message and a time S1 value; receive a second synchronization message sent by the main communication module at time T3, wherein the second synchronization message includes a second zero-crossing synchronization message and a time S3 value; A processing module is configured to process the first synchronization message to obtain a first comprehensive error value ΔS1; process the second synchronization message to obtain a second comprehensive error value ΔS2; and obtain target time difference data based on the first comprehensive error value ΔS1 and the second comprehensive error value ΔS2; The sending module is configured to send the target time difference data to the main communication module.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the method for zero-crossing point detection time synchronization as described in any one of claims 1 to 3 or 4 to 6 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for zero-crossing point detection time synchronization described in any one of claims 1 to 3 or 4 to 6 is implemented.

Citation Information

Patent Citations

  • NB-IoT street lamp single lamp controller time synchronization method and NB-IoT street lamp single lamp controller time synchronization system

    CN111954357A

  • Power frequency zero-crossing counting time mark verification device and method based on network synchronous clock

    CN113740599A