Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
In addition, the technical solutions of the embodiments of the present application may be combined with each other, but it is necessary to be based on the fact that those skilled in the art can implement the technical solutions, and when the technical solutions are contradictory or cannot be implemented, the combination of the technical solutions should be considered as not existing, and not falling within the scope of protection claimed by the present application.
It is noted that other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise construction herein after described and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
A method for performing zero-crossing detection time synchronization according to an exemplary embodiment of the present application is described below with reference to fig. 1. It should be noted that the following application scenarios are only shown for facilitating understanding of the spirit and principles of the present application, and embodiments of the present application are not limited in this respect. Rather, embodiments of the application may be applied to any scenario where applicable.
In one embodiment, the application further provides a method for detecting time synchronization of zero crossing points. Fig. 1 schematically shows a flow diagram of a method of time synchronization for zero crossing detection according to an embodiment of the application. As shown in fig. 1, the method is applied to a main communication module, and includes:
S101, sending zero crossing point synchronization information to the slave communication module, and entering a zero crossing point synchronization mode.
In one embodiment, the data to be transmitted is obtained through a power line coupled to various household instruments, and according to the nature of the data to be transmitted, a characteristic value is configured for the data, which may be a priority, fault tolerance and/or QoS parameter, for example, the data needs to be transmitted accurately, and may be configured with a higher priority.
In another embodiment, according to the obtained characteristic value of the data, whether the data needs to be sent and received in a preset time period when the voltage of the power line crosses the zero is judged, if yes, a zero crossing point synchronization message is sent to the slave communication module, and a zero crossing point synchronization mode is entered.
S102, if zero crossing data is detected at the time T0, starting a timing function.
In one embodiment, the interference and noise of the power line carrier communication system at different places and in different time periods have great difference, and when the power frequency signal on the power line is at zero point, namely in the time period of about + -5ms of the zero crossing point of the current of 50Hz and 220v, the signal to noise ratio of the power line carrier communication channel is higher, 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, and the timer function is started.
S103, a first synchronous message is sent to the slave communication module at the moment T2, wherein the first synchronous message comprises a first zero crossing point synchronous message and a time S1 value.
In one embodiment, the first zero crossing synchronization message is configured to notify the slave communication module to perform time synchronization, where the time S1 value is a time interval value of the master communication module at a time point from T0 to T2.
S104, sending a second synchronous message to the slave communication module at the moment T3, wherein the second synchronous message comprises a second zero crossing point synchronous message and a time S3 value.
In one embodiment, the second zero crossing synchronization message is configured to notify the slave communication module to perform time synchronization, where the time S3 value is a time interval value of the master communication module at a time point from T2 to T3.
S105, receiving the target time difference data sent by the communication module.
In one embodiment, the master communication module determines each slave communication module according to the target time difference data sent by the slave communication module, so as to screen out the slave communication module with abnormality. In addition, the error of the zero crossing point detection time of the slave communication module is only related to the difference value of the secondary timer which receives the synchronous communication signal from the slave communication module, the error precision is related to the precision of the timer, and the precision of the timer can be improved by improving the counting frequency of the timer (improving the main frequency of the microprocessor), so that the precision of the zero crossing point time detection error is improved.
The method for detecting time synchronization of the zero crossing points is applied to a master communication module and comprises the steps of sending zero crossing point synchronization information to a slave communication module, entering a zero crossing point synchronization mode, starting a timing function if zero crossing point data are detected at the moment T0, sending first synchronization message information to the slave communication module at the moment T2, wherein the first synchronization message information comprises first zero crossing point synchronization information and a time S1 value, sending second synchronization message information to the slave communication module at the moment T3, wherein the second synchronization message information comprises second zero crossing point synchronization information and a time S3 value, and receiving target time difference data sent by the slave communication module. The application can synchronize the zero crossing detection time of the master-slave module at any time during the operation of the power line carrier communication system, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the module, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
Optionally, in another embodiment of the above method according to the present application, the sending the zero crossing synchronization message to the slave communication module further includes:
And sending zero crossing point synchronization messages to at least one slave communication module respectively.
In one embodiment, during the operation of the power line carrier communication system, the master communication module periodically initiates zero crossing point synchronization commands to all the slave communication modules, the slave communication modules respond to the commands and obtain respective target time difference data, and the zero crossing point detection time of the slave communication modules is kept consistent with that of the master communication module so as to realize the time synchronization of the slave communication modules and the master communication module.
In another embodiment, 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 operation condition, and the master communication module starts synchronization communication after responding, so that the slave communication module completes synchronization.
In another embodiment, during the operation of the power line carrier communication system, the slave communication module newly added into the system can initiate a zero crossing synchronization request to the master communication module at any time, and the master communication module starts synchronization communication after responding, so that the slave communication module completes synchronization.
Optionally, in another embodiment of the above method according to the present application, the receiving the target time difference data sent from the communication module further includes:
acquiring early warning data and early warning rules;
and processing the target time difference data based on the early warning data and the early warning rule, and outputting the operation information of the slave communication module.
In one embodiment, the master communication module is respectively provided with an early warning value for each slave communication module, when the target time difference data exceeds the limit value due to the abnormality of the zero crossing detection of the slave communication module, the slave communication module actively reports to the master communication module to replace the slave communication module with a problem in time,
In another embodiment, each slave communication module actively transmits target time difference data to the master communication module, and the master communication module analyzes and processes the target time difference data according to a preset early warning value and the acquired target time difference data, so as to find out the slave communication module with an abnormal state and replace the slave communication module with the abnormal state in time. Thereby ensuring accuracy and synchronism of zero crossing detection times of the master communication module and the slave communication module during operation of the power line carrier communication system.
The method for detecting time synchronization of the zero crossing points is applied to a master communication module and comprises the steps of respectively sending zero crossing point synchronization information to at least one slave communication module, entering a zero crossing point synchronization mode, starting a timing function if zero crossing point data are detected at the moment T0, sending first synchronization message information to the slave communication module at the moment T2, wherein the first synchronization message information comprises first zero crossing point synchronization information and a time S1 value, sending second synchronization message information to the slave communication module at the moment T3, wherein the second synchronization message information comprises second zero crossing point synchronization information and a time S3 value, receiving target time difference data sent by the slave communication module, acquiring 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 operation information of the slave communication module. The application can synchronize the zero crossing detection time of the master-slave module at any time during the operation of the power line carrier communication system, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the module, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
In one embodiment, the application further provides a method for detecting time synchronization of zero crossing points. Fig. 2 schematically shows a flow diagram of a method of time synchronization for zero crossing detection according to an embodiment of the application. As shown in fig. 2, the method is applied to a slave communication module, and includes:
S201, receiving zero crossing point synchronization information sent by the main communication module, and entering a zero crossing point synchronization mode.
In one embodiment, the slave communication module receives the zero crossing communication message sent by the master communication module, wherein the master communication module obtains the data to be transmitted through the power line connected with various household instruments, and configures the characteristic value for the data according to the property of the data to be transmitted, and the characteristic value can be priority, fault tolerance and/or QoS parameters, for example, the data needs to be accurately transmitted, and can be configured with higher priority. And judging whether the data need to be transmitted and received in a preset time period when the voltage of the power line crosses the zero according to the characteristic value of the acquired data, if so, transmitting a zero crossing point synchronization message to the slave communication module, and entering a zero crossing point synchronization mode.
S202, receiving a first synchronous message sent by the main communication module at a time T2, wherein the first synchronous message comprises a first zero crossing synchronous message and a time S1 value.
In one embodiment, the slave communication module performs time synchronization according to the first synchronization message sent by the master communication module, and the time S1 value is a time interval value of the master communication module at a time point from T0 to T2.
S203, processing the first synchronous message to obtain a first comprehensive error value delta S1.
In one embodiment, zero crossing data is acquired at the time T1, a timing function is started, the slave communication module receives first synchronous message information sent by the master communication module at the time T2, the value of a timer is recorded at the moment to obtain a time S2 value, and the slave communication module processes the first synchronous message information to obtain the time S1 value. And acquiring a first comprehensive error value delta S1 according to a preset business rule, wherein the preset rule is delta S1 = S2-S1.
S204, receiving a second synchronous message sent by the main communication module at the time T3, wherein the second synchronous message comprises a second zero crossing synchronous message and a time S3 value.
In one embodiment, the slave communication module performs time synchronization according to the second synchronization message sent by the master communication module, and the time S3 value is a time interval value of the master communication module at a time point from T2 to T3.
S205, processing the second synchronous message to obtain a second comprehensive error value delta S2.
In one embodiment, the slave communication module receives the second synchronization message information sent by the master communication module at the time T3, records the value of the timer at this time to obtain a time S4 value, and processes the second synchronization message information by the slave communication module to obtain a time S3 value. And acquiring a second comprehensive error value delta S2 according to a preset business rule, wherein the preset rule is delta S2 = S4-S3.
S206, acquiring target time difference data based on the first integrated error value delta S1 and the second integrated error value delta S2.
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 the transmission and the reception are the same, when the time interval value of the time points T0 to T2 of the master communication module is the same as the time interval value of the time points T2 to T3, namely S1=S3, the value delta S only comprising the zero crossing detection error and the timing error can be obtained according to the formula delta S=delta S1-delta S2. And acquiring target time difference data delta S from the communication module according to a preset business rule, wherein the preset rule is delta S=delta S1-delta S2=S 2-S4. Therefore, the zero crossing point detection time error of the slave communication module can be obtained and is only related to the difference value of the secondary timer for receiving the synchronous communication signal from the slave communication module, the error precision is related to the timer precision, and the timer precision can be improved by improving the counting frequency of the timer (improving the main frequency of the microprocessor), so that the zero crossing point time detection error precision is improved.
S207, the target time difference data is sent to the main communication module.
In one embodiment, the slave communication module sends the target time difference data obtained after the data processing to the master communication module, so that the master communication module analyzes according to the target time difference data of each slave communication module and preset early warning data, and further checks the slave communication module with an abnormal state and timely replaces the slave communication module with the abnormal state. Thereby ensuring accuracy and synchronism of zero crossing detection times of the master communication module and the slave communication module during operation of the power line carrier communication system.
The method for detecting time synchronization of the zero crossing point is applied to a slave communication module and comprises the steps of receiving zero crossing point synchronization information sent by a master communication module, entering a zero crossing point synchronization mode, receiving first synchronization message information sent by the master communication module at a time T2, wherein the first synchronization message information comprises the first zero crossing point synchronization information and a time S1 value, processing the first synchronization message information to obtain a first comprehensive error value delta S1, receiving second synchronization message information sent by the master communication module at a time T3, wherein the second synchronization message information comprises a second zero crossing point synchronization information and a time S3 value, processing the second synchronization message information to obtain a second comprehensive error value delta S2, obtaining target time difference data based on the first comprehensive error value delta S1 and the second comprehensive error value delta S2, and sending the target time difference data to the master communication module. The method 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, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the modules, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
Optionally, in another embodiment of the above method according to the present application, the processing the first synchronous message to obtain a first integrated error value Δs1 further includes:
acquiring zero crossing data at the moment T1, and starting a timing function;
receiving a first synchronous message sent by the main communication module at the moment T2, and taking the duration from the moment T1 to the moment T2 as a time S2 value;
Processing the first synchronous message to obtain a time S1 value;
And processing the time S1 and the time S2 based on a preset rule to obtain a first comprehensive error value delta S1, wherein the preset rule is delta S1=S2-S1.
In one embodiment, the slave communication module detects a zero crossing at time T1, starts a timer of the slave communication module microprocessor and starts a receiving circuit at the same time, receives a synchronous communication signal at time T2, records a value of the timer at the time to obtain a time S2 value, and analyzes a received synchronous message to obtain the time S1 value. In the time period from T0, T1 to T2, zero crossing detection errors, timing errors of a timer and transmitting and receiving delay errors exist between the slave communication module and the master communication module, and a comprehensive error value delta S1 of the slave communication module can be obtained according to a formula delta S1=S2-S1.
Optionally, in another embodiment of the above method according to the present application, the processing the second synchronization packet message to obtain a second integrated error value Δs2 further includes:
Receiving a second synchronous message sent by the main communication module at the moment T3, and taking the duration from the moment T2 to the moment T3 as a time S4 value;
processing the second synchronous message to obtain a time S3 value;
And processing the time S3 and the time S4 based on a preset rule to obtain a second comprehensive error value delta S2, wherein the preset rule is delta S2=S4-S3.
In one embodiment, the timer of the communication module continues to count, the receiving circuit continues to receive the synchronous communication signal at time T3, records the value of the timer at this time to obtain a time S4 value, and analyzes the received synchronous message to obtain a time S3 value. In the time period from T2 to T3, the timing error of the timer and the transmitting and receiving delay errors exist between the slave communication module and the master communication module, and according to the formula delta S2=S4-S3, another comprehensive error value delta S2 of the slave communication module can be obtained.
The method for detecting time synchronization of the zero crossing point is applied to a slave communication module and comprises the steps of receiving zero crossing point synchronization information sent by a master communication module, entering a zero crossing point synchronization mode, receiving first synchronization message information sent by the master communication module at a time T2, wherein the first synchronization message information comprises first zero crossing point synchronization information and a time S1 value, acquiring zero crossing point data at the time T1, starting a timing function, receiving the first synchronization message information sent by the master communication module at the time T2, taking the time length from the time T1 to the time T2 as a time S2 value, processing the first synchronization message information to obtain a time S1 value, processing the time S1 and the time S2 based on a preset rule to obtain a first comprehensive error value delta S1, receiving second synchronization message information sent by the master communication module at the time T3, wherein the second synchronization message information comprises second zero crossing point synchronization information and a time S3 value, sending the first synchronization message information sent by the master communication module at the time T2 to the time T2 as a time S2 value, processing the time S1 value, processing the first synchronization message information and the time S2 based on the preset rule to obtain a first comprehensive error value delta S1, receiving the second synchronization message information sent by the master communication module at the time T3, and the time S2 to obtain a time S3 based on the preset error value, and processing the time S4 based on the preset error value to obtain the time S2 and the time S2. The method 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, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the modules, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
In an implementation mode, as shown in fig. 3, the application further provides a system for detecting time synchronization of zero crossing points, which comprises a master communication module, a slave communication module, a timing function, a slave communication module, a target communication module and a target communication module, wherein the master communication module sends zero crossing point synchronization information to the slave communication module, enters a zero crossing point synchronization mode, receives the zero crossing point synchronization information sent by the master communication module, enters the zero crossing point synchronization mode, starts the timing function if the master communication module detects zero crossing point data at the moment T0, sends first synchronization information to the slave communication module at the moment T2, the first synchronization information comprises first zero crossing point synchronization information and a time S1 value, the slave communication module receives the first synchronization information sent by the master communication module at the moment T2, the first synchronization information comprises first zero crossing point synchronization information and a time S1 value, processes the first synchronization information by the slave communication module to obtain a first comprehensive error value delta S1, the master communication module sends second synchronization information to the slave communication module at the moment T3, the second synchronization information comprises second zero crossing point synchronization information and a time S3 value, the slave communication module receives the first synchronization information sent by the master communication module at the moment T2, and the target communication module receives the first synchronization information from the target communication module, and obtains the first synchronization information from the target communication module, and the target communication module receives the first synchronization information from the target communication module at the time S1.
The method 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, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the modules, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
In one embodiment, as shown in fig. 4, the present application further provides a device for detecting time synchronization of zero crossing points, which is applied to a main communication module, and includes:
The device comprises a sending module 401, a receiving module 401, a transmitting module and a receiving module, wherein the sending module is configured to send zero crossing point synchronous information to a slave communication module and enter a zero crossing point synchronous mode, send a first synchronous message to the slave communication module at the moment T2, wherein the first synchronous message comprises a first zero crossing point synchronous information and a time S1 value, and send a second synchronous message to the slave communication module at the moment T3, wherein the second synchronous message comprises a second zero crossing point synchronous information and a time S3 value;
a processing module 402 configured to initiate a timing function if zero crossing data is detected at time T0;
a receiving module 403 configured to receive the target time difference data sent from the communication module.
The device for detecting time synchronization of the zero crossing points is applied to a master communication module and comprises the steps of sending zero crossing point synchronization information to a slave communication module, entering a zero crossing point synchronization mode, starting a timing function if zero crossing point data are detected at the moment T0, sending first synchronization message information to the slave communication module at the moment T2, wherein the first synchronization message information comprises first zero crossing point synchronization information and a time S1 value, sending second synchronization message information to the slave communication module at the moment T3, wherein the second synchronization message information comprises second zero crossing point synchronization information and a time S3 value, and receiving target time difference data sent by the slave communication module. The application can synchronize the zero crossing detection time of the master-slave module at any time during the operation of the power line carrier communication system, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the module, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
In another embodiment of the present application, the apparatus further comprises a processing module 402 configured to:
And sending zero crossing point synchronization messages to at least one slave communication module respectively.
In another embodiment of the present application, the processing module 402 is configured to:
acquiring early warning data and early warning rules;
and processing the target time difference data based on the early warning data and the early warning rule, and outputting the operation information of the slave communication module.
The device for detecting time synchronization of zero crossing points is applied to a master communication module and comprises the steps of respectively sending zero crossing point synchronization information to at least one slave communication module, entering a zero crossing point synchronization mode, starting a timing function if zero crossing point data are detected at the moment T0, sending first synchronization message information to the slave communication module at the moment T2, wherein the first synchronization message information comprises first zero crossing point synchronization information and a time S1 value, sending second synchronization message information to the slave communication module at the moment T3, wherein the second synchronization message information comprises second zero crossing point synchronization information and a time S3 value, receiving target time difference data sent by the slave communication module, acquiring 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 operation information of the slave communication module. The application can synchronize the zero crossing detection time of the master-slave module at any time during the operation of the power line carrier communication system, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the module, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
In one embodiment, as shown in fig. 5, the present application further provides a device for detecting time synchronization of zero crossing points, which is applied to a slave communication module, and includes:
The device comprises a receiving module 501, a receiving module and a transmitting module, wherein the receiving module is configured to receive zero crossing point synchronous information sent by a main communication module, enter a zero crossing point synchronous mode, receive first synchronous message information sent by the main communication module at a time T2, wherein the first synchronous message information comprises first zero crossing point synchronous information and a time S1 value;
The processing module 502 is configured to process the first synchronous message to obtain a first integrated error value Δs1, process the second synchronous message to obtain a second integrated error value Δs2, and obtain target time difference data based on the first integrated error value Δs1 and the second integrated error value Δs2;
a transmitting module 503 configured to transmit the target time difference data to the master communication module.
The device for detecting time synchronization of the zero crossing point is applied to a slave communication module and comprises the steps of receiving zero crossing point synchronization information sent by a master communication module, entering a zero crossing point synchronization mode, receiving first synchronization message information sent by the master communication module at a time T2, wherein the first synchronization message information comprises the first zero crossing point synchronization information and a time S1 value, processing the first synchronization message information to obtain a first comprehensive error value delta S1, receiving second synchronization message information sent by the master communication module at a time T3, wherein the second synchronization message information comprises a second zero crossing point synchronization information and a time S3 value, processing the second synchronization message information to obtain a second comprehensive error value delta S2, obtaining target time difference data based on the first comprehensive error value delta S1 and the second comprehensive error value delta S2, and sending the target time difference data to the master communication module. The method 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, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the modules, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
In another embodiment of the present application, the processing module 502 is configured to:
acquiring zero crossing data at the moment T1, and starting a timing function;
receiving a first synchronous message sent by the main communication module at the moment T2, and taking the duration from the moment T1 to the moment T2 as a time S2 value;
Processing the first synchronous message to obtain a time S1 value;
And processing the time S1 and the time S2 based on a preset rule to obtain a first comprehensive error value delta S1, wherein the preset rule is delta S1=S2-S1.
In another embodiment of the present application, the processing module 502 is configured to:
Receiving a second synchronous message sent by the main communication module at the moment T3, and taking the duration from the moment T2 to the moment T3 as a time S4 value;
processing the second synchronous message to obtain a time S3 value;
And processing the time S3 and the time S4 based on a preset rule to obtain a second comprehensive error value delta S2, wherein the preset rule is delta S2=S4-S3.
The device for detecting time synchronization of the zero crossing point is applied to a slave communication module and comprises the steps of receiving zero crossing point synchronization information sent by the master communication module, entering a zero crossing point synchronization mode, receiving first synchronization message information sent by the master communication module at the moment T2, wherein the first synchronization message information comprises first zero crossing point synchronization information and a time S1 value, acquiring zero crossing point data at the moment T1, starting a timing function, receiving the first synchronization message information sent by the master communication module at the moment T2, taking the duration from the moment T1 to the moment T2 as a time S2 value, processing the first synchronization message information to obtain a time S1 value, processing the time S1 and the time S2 based on a preset rule to obtain a first comprehensive error value delta S1, receiving second synchronization message information sent by the master communication module at the moment T3, wherein the second synchronization message information comprises second zero crossing point synchronization information and a time S3 value, sending the first synchronization message information sent by the master communication module at the moment T2 to the moment T2 as a time S2 value, processing the first synchronization message information to obtain a time S1 value, processing the first comprehensive error value delta S1 based on the preset rule to the time S2, and the second synchronization message information sent by the master communication module at the moment T3, and obtaining the time S2 to obtain a time S2 based on the preset error value, and processing the time S4 based on the preset error value to obtain the time S2 and the time S2. The method 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, thereby eliminating adverse factors such as ambient temperature, device aging and the like, and eliminating the influence on the zero crossing detection time of the modules, thereby achieving the purpose of ensuring the accuracy and the synchronism of the zero crossing detection time.
The embodiment of the application provides an electronic device, as shown in fig. 6, which comprises a processor 600, a memory 601, a bus 602 and a communication interface 603, wherein the processor 600, the communication interface 603 and the memory 601 are connected through the bus 602, a computer program capable of running on the processor 600 is stored in the memory 601, and the method for detecting time synchronization of zero crossing points provided by any one of the previous embodiments of the application is executed when the processor 600 runs the computer program.
The memory 601 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (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 implemented via at least one communication interface 603 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 602 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 601 is configured to store a program, the processor 600 executes the program after receiving an execution instruction, and the method for detecting time synchronization of zero crossing points disclosed in any of the foregoing embodiments of the present application may be applied to the processor 600 or implemented by the processor 600.
The processor 600 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware or instructions in software in processor 600. The processor 600 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc., or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied as a hardware decoding processor executing or a combination of hardware and software modules executing in the decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 601 and the processor 600 reads the information in the memory 601 and performs the steps of the method described above in combination with its hardware.
The method for synchronizing the time of detecting the zero crossing point of the electronic equipment provided by the embodiment of the application and the method provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the application program stored in the electronic equipment for detecting the zero crossing point of the electronic equipment.
An embodiment of the present application provides a computer readable storage medium, as shown in fig. 7, where the computer readable storage medium stores 701 a computer program, which when read and executed by a processor 702, implements a method for time synchronization of zero crossing detection as described above.
The technical solution of the embodiment of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing 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 perform all or part of the steps of the method of the embodiment of the present application. The storage medium includes various media capable of storing program codes such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk.
The computer readable storage medium provided by the above embodiment of the present application and the method for detecting the zero crossing point time synchronization provided by the embodiment of the present application have the same advantageous effects as the method adopted, operated or implemented by the application program stored therein, because of the same inventive concept.
Embodiments of the present application provide a computer program product comprising a computer program for execution by a processor to perform a method as described above.
The computer program product provided by the above embodiment of the present application and the method for detecting the zero crossing point time synchronization provided by the embodiment of the present application have the same advantageous effects as the method adopted, operated or implemented by the application program stored therein, because of the same inventive concept.
It is noted that in the present application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The embodiments of the present application are described in a related manner, and the same similar parts between the embodiments are all mutually referred, and each embodiment is mainly described in the differences from the other embodiments. In particular, for embodiments of the method, the electronic device, the electronic apparatus, and the readable storage medium for detecting the time synchronization of the zero crossing point, since the embodiments of the method for detecting the time synchronization of the zero crossing point are basically similar to those described above, the description is relatively simple, and the relevant points are referred to the part of the description of the embodiments of the method for detecting the time synchronization of the zero crossing point.
Although the present application is disclosed above, the present application is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the application, and the scope of the application should be assessed accordingly to that of the appended claims.