CN112129993B - Zero crossing signal output and power line data transmission method and device - Google Patents

Zero crossing signal output and power line data transmission method and device Download PDF

Info

Publication number
CN112129993B
CN112129993B CN201910547382.2A CN201910547382A CN112129993B CN 112129993 B CN112129993 B CN 112129993B CN 201910547382 A CN201910547382 A CN 201910547382A CN 112129993 B CN112129993 B CN 112129993B
Authority
CN
China
Prior art keywords
zero crossing
zero
square wave
preset
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910547382.2A
Other languages
Chinese (zh)
Other versions
CN112129993A (en
Inventor
李东声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tendyron Corp
Original Assignee
Tendyron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tendyron Corp filed Critical Tendyron Corp
Priority to CN201910547382.2A priority Critical patent/CN112129993B/en
Publication of CN112129993A publication Critical patent/CN112129993A/en
Application granted granted Critical
Publication of CN112129993B publication Critical patent/CN112129993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/175Indicating the instants of passage of current or voltage through a given value, e.g. passage through zero
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R29/00Arrangements for measuring or indicating electric quantities not covered by groups G01R19/00 - G01R27/00
    • G01R29/02Measuring characteristics of individual pulses, e.g. deviation from pulse flatness, rise time or duration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/542Systems for transmission via power distribution lines the information being in digital form
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/06Dc level restoring means; Bias distortion correction ; Decision circuits providing symbol by symbol detection
    • H04L25/069Dc level restoring means; Bias distortion correction ; Decision circuits providing symbol by symbol detection by detecting edges or zero crossings

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The invention provides a zero crossing signal output method and device and a power line data transmission method and device, wherein the zero crossing signal output method comprises the following steps: step 1, continuously receiving zero-crossing square wave signals, and periodically sampling according to a preset sampling frequency; step 2, obtaining the sampling number of the 1 st to M th zero crossing point square wave signals, obtaining an average sampling number S, and calculating to obtain an initial interval T1 of the zero crossing points; setting the zero crossing signal output interval as a zero crossing initial interval T1; step 3, continuously outputting zero crossing signals with the interval being the zero crossing signal output interval; acquiring the sampling number of the square wave signals from the M+1th to the M+N zero crossing points, and calculating to obtain an accumulated change value delta s; step 4, if the delta s is not in the preset variation range, obtaining a zero crossing point correction interval T2 according to a second preset rule, and setting the zero crossing point signal output interval as the zero crossing point correction interval T2; if delta s is in the preset change range, the zero crossing signal output interval is unchanged; and 5, setting M=M+N, and returning to the step 3.

Description

Zero crossing signal output and power line data transmission method and device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a zero crossing signal output method and apparatus, and a power line data transmission method and apparatus.
Background
With the development of electronic technology and network technology, the signal transmission by using a power line as a carrier is receiving more and more attention, wherein the existing low-voltage power line carrier communication (PLC) technology realizes data transmission by using an existing low-voltage power supply line, has the advantages of no need of rewiring, saving the construction cost of a system, practicality and the like, and is widely applied to the aspects of automatic meter reading, lighting control, intelligent communities, intelligent buildings, home networks, home intelligent control, home security and the like.
Because of the characteristics of the mains supply (50 HZ/60 HZ) transmitted by the power line, pulse interference of certain frequency (100 HZ/120 HZ) exists on the power line, the pulse interference of the mains supply can be avoided by adopting zero-crossing transmission on the power line, the zero-crossing transmission means that signal transmission is carried out by utilizing short time of the mains supply passing through a zero point, namely the vicinity of the zero point, but because certain errors exist in the period of the mains supply and the detection of the zero-crossing point of the mains supply, in practical application, the synchronization of the signal transmission and an alternating current waveform is difficult to control, and therefore, how to obtain accurate zero-crossing point time and finish reliable transmission of information among devices in a power line communication system according to the time, so that the transmitted data is accurately identified is a technical problem to be solved in the technical field.
Disclosure of Invention
The present invention aims to solve the above-mentioned problems.
The invention mainly aims to provide a zero crossing point signal output method, which comprises the following steps: step 1, continuously receiving zero crossing square wave signals input by a zero crossing detection circuit, and periodically sampling each zero crossing square wave signal according to a preset sampling frequency; step 2, obtaining the sampling number of each zero crossing square wave signal in the 1 st to M th zero crossing square wave signals, obtaining the sampling number of the M zero crossing square wave signals, calculating the average value of the sampling numbers of the M zero crossing square wave signals, obtaining an average sampling number S, and calculating to obtain a zero crossing initial interval T1 according to the average sampling number S and a preset sampling frequency; setting the zero crossing signal output interval as a zero crossing initial interval T1; wherein M is a preset value, M is a positive integer, and M is equal to or greater than 1; step 3, continuously outputting zero crossing signals with the interval being the zero crossing signal output interval; acquiring the sampling number of each zero crossing square wave signal in the M+1th to M+N zero crossing square wave signals, obtaining the sampling number of the N zero crossing square wave signals, and obtaining the accumulated change value delta s of the sampling number of the N zero crossing square wave signals according to a first preset calculation rule; wherein N is a preset value, N is a positive integer, and N is equal to or greater than 1; step 4, if the delta s is not in the preset variation range, calculating to obtain a zero crossing point correction interval T2 according to a second preset rule, and setting a zero crossing point signal output interval as the zero crossing point correction interval T2; if the delta s is in the preset change range, the zero crossing signal output interval is unchanged; and 5, setting M=M+N, and returning to the step 3.
In addition, in step 1, continuously receiving zero-crossing square wave signals input by the zero-crossing detection circuit, and periodically sampling each zero-crossing square wave signal according to a preset sampling frequency, including: and continuously receiving zero-crossing square wave signals input by the zero-crossing detection circuit, filtering each received zero-crossing square wave signal, filtering high-frequency noise in each zero-crossing square wave signal, and periodically sampling each zero-crossing square wave signal according to a preset sampling frequency.
Furthermore, the first preset calculation rule includes: and calculating N sampling number difference values according to the sampling numbers of the N zero crossing point square wave signals, the preset sampling frequency and the zero crossing point signal interval, and summing the N sampling number difference values to obtain an accumulated change value delta s.
In addition, if Δs is not within the preset variation range, calculating according to a second preset rule to obtain a zero-crossing correction interval T2, including: if Δs is smaller than the minimum value of the preset variation range, t2=t1- Δt, and if Δs is larger than the maximum value of the preset variation range, t2=t1+Δt, wherein Δt is a preset correction value.
Another object of the present invention is to provide a power line data transmission method, including any one of the above zero crossing signal output methods, in step 3, after continuously outputting a zero crossing signal with a zero crossing signal output interval T, further including: determining a 1 st zero crossing point time t according to the zero crossing point signal, and determining the starting time of synchronous signal transmission of the data packet to be transmitted according to the 1 st zero crossing point time, wherein the starting time of synchronous signal transmission of the data packet to be transmitted is t+t 1 And t+t 1 Earlier than the 2 nd zero crossing point time t+t, and the 2 nd zero crossing point time t+t is included in a period from a time point when the first synchronization signal is transmitted to a time point when the last synchronization signal is transmitted, T 1 A first preset fixed value; and sequentially transmitting data bit signals of the data packets to be transmitted.
Another object of the present invention is to provide a zero crossing signal output apparatus, comprising: the device comprises a receiving module, a sampling module, a calculating module and an output module, wherein the receiving module is used for continuously receiving zero crossing square wave signals input by a zero crossing detection circuit; the sampling module is used for periodically sampling each zero crossing square wave signal according to a preset sampling frequency; the calculation module is used for obtaining the sampling number of each zero crossing point square wave signal in the 1 st to M th zero crossing point square wave signals, obtaining the sampling number of the M zero crossing point square wave signals, calculating the average value of the sampling numbers of the M zero crossing point square wave signals, obtaining the average sampling number S, and calculating the zero crossing point initial interval T1 according to the average sampling number S and a preset sampling frequency; setting the zero crossing signal output interval as a zero crossing initial interval T1; wherein M is a preset value, M is a positive integer, and M is equal to or greater than 1; the output module is used for continuously outputting zero crossing signals with the zero crossing signal output interval; the computing module is used for obtaining the sampling number of each zero crossing square wave signal in the M+1th to M+N zero crossing square wave signals, obtaining the sampling number of the N zero crossing square wave signals, and obtaining the accumulated change value delta s of the sampling number of the N zero crossing square wave signals according to a first preset computing rule; wherein N is a preset value, N is a positive integer, and N is equal to or greater than 1; if the delta s is not in the preset variation range, calculating to obtain a zero crossing point correction interval T2 according to a second preset rule, and setting a zero crossing point signal output interval as the zero crossing point correction interval T2; if Δs is within the preset variation range, the zero crossing signal output interval is unchanged, and m=m+n is set.
In addition, the device also comprises a filtering module; the filtering module is used for filtering each received zero-crossing square wave signal after the receiving module continuously receives the zero-crossing square wave signal input by the zero-crossing detection circuit, and filtering high-frequency noise in each zero-crossing square wave signal.
Furthermore, the first preset calculation rule includes: and calculating N sampling number difference values according to the sampling numbers of the N zero crossing point square wave signals, the preset sampling frequency and the zero crossing point signal interval, and summing the N sampling number difference values to obtain an accumulated change value delta s.
In addition, the calculating module is configured to calculate a zero-crossing correction interval T2 according to a second preset rule if Δs is not within a preset variation range, and includes: the calculation module is configured to, if Δs is smaller than a minimum value of a preset variation range, t2=t1- Δt, and if Δs is greater than a maximum value of the preset variation range, t2=t1+Δt, where Δt is a preset correction value.
Another object of the present invention is to provide a power line data transmission apparatus, including any one of the above zero crossing signal output devices, and a data output module, wherein the data output module is configured to determine a 1 st zero crossing point time t according to the zero crossing signal after receiving the zero crossing signal whose output interval is the zero crossing signal output interval outputted by the output module, and root Determining the starting time of the transmission of the synchronizing signal of the data packet to be transmitted according to the 1 st zero crossing point time, wherein the starting time of the transmission of the synchronizing signal of the data packet to be transmitted is t+t 1 And t+t 1 Earlier than the 2 nd zero crossing point time t+t, and the time point t+t is included in the time period from the time point when the first synchronization bit signal is transmitted to the time point when the last synchronization bit signal is transmitted, T 1 A first preset fixed value; and sequentially transmitting data bit signals of the data packets to be transmitted.
As can be seen from the technical scheme provided by the invention, the embodiment provides a zero crossing signal output method and device, and a power line data transmission method and device. After the zero crossing square wave signals input by the zero crossing detection circuit are received, the average sampling number is obtained by calculating the sampling number of each zero crossing square wave signal in the 1 st to M th zero crossing square wave signals, the zero crossing signal output interval is obtained according to the average sampling number and the preset sampling frequency, the zero crossing signal is output according to the zero crossing signal output interval, the sampling number of the subsequent zero crossing square wave signals is continuously calculated, the zero crossing signal output interval is adjusted according to the subsequent zero crossing square wave signals, the zero crossing signal is output according to the adjusted result, the detection result of the zero crossing detection circuit is corrected and the zero crossing signal is output by the method or the device, the zero crossing signal error output by the method is small, and when the power line communication is completed by using the zero crossing signal, the problem that the zero crossing communication efficiency is low due to the large error of the detection result of the zero crossing detection circuit is avoided, and the communication efficiency is improved. After receiving zero crossing square wave signals input by a zero crossing detection circuit, obtaining an average sampling number by calculating the sampling number of each zero crossing square wave signal in the 1 st to M th zero crossing square wave signals, obtaining a zero crossing signal output interval according to the average sampling number and a preset sampling frequency, outputting the zero crossing signal according to the zero crossing signal output interval, determining a zero crossing point moment according to the zero crossing signal, determining a starting moment of synchronous signal transmission of a data packet to be transmitted, continuously calculating the sampling number of the subsequent zero crossing square wave signals in a time period of transmitting the synchronous signal, adjusting the zero crossing signal output interval according to the subsequent zero crossing square wave signals, outputting the zero crossing signal according to the adjusted result, correcting the detection result of the zero crossing detection circuit by the method or the device, and outputting the zero crossing signal.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a zero crossing signal output method provided in embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a zero crossing square wave signal input by the zero crossing detection circuit according to embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a zero crossing signal output waveform provided in embodiment 1 of the present invention;
fig. 4 is a schematic diagram of another zero crossing signal output waveform provided in embodiment 1 of the present invention;
fig. 5 is a flowchart of a power line data transmission method provided in embodiment 2 of the present invention;
fig. 6 is a schematic structural diagram of a zero crossing signal output device provided in embodiment 3 of the present invention;
fig. 7 is a schematic structural diagram of a power line data transmission device according to embodiment 4 of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or quantity or position.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
As shown in fig. 1, the present embodiment provides a zero crossing signal output method, and in order to achieve the above purpose, the technical solution of the present invention includes the following steps:
step 1, continuously receiving zero-crossing square wave signals input by a zero-crossing detection circuit, and periodically sampling each zero-crossing square wave signal according to a preset sampling frequency.
In this embodiment, the power system may generally provide a power frequency voltage of 50HZ, that is, a power frequency voltage with a period of 20ms, and for ac, there are two times when the voltage value is zero, that is, zero crossing points, in each ac period, however, since the period of the mains supply generally has an error of about 1% -2%, when the power line carrier communication is performed by using the zero crossing points, the period and the zero crossing points cannot be determined directly by using the specified mains frequency of 50HZ, and it is necessary to re-obtain the actual period and the zero crossing points by detecting and calculating, and then complete the power line carrier communication by using the actual period and the zero crossing points. The zero-crossing detection circuit generally consists of analog devices, the error of the detection result of the zero crossing point is larger, and the zero-crossing square wave signal output by the zero-crossing detection circuit also has larger error, for example, the zero-crossing square wave signal output by the zero-crossing detection circuit has larger difference in period as shown in fig. 2. Hereinafter, the scheme of the present embodiment will be described by taking the received zero-crossing square wave signal as an example of the zero-crossing square wave signal shown in fig. 2.
In this embodiment, each zero-crossing square wave signal is periodically sampled according to a preset sampling frequency, that is, each zero-crossing square wave signal is sampled by using a high-speed clock, for example, the preset sampling frequency may be set to 2000HZ, and the sampling number of the zero-crossing square wave signal is typically about 40 times, taking the mains frequency of 50HZ as an example. And (3) periodically sampling each zero crossing square wave signal to acquire the period of each zero crossing square wave signal, and further performing the next calculation.
In an optional implementation manner of this embodiment, after the zero-crossing square wave signal input by the zero-crossing detection circuit is continuously received, filtering is further performed on each received zero-crossing square wave signal, and after the high-frequency noise in each zero-crossing square wave signal is filtered, periodic sampling is performed on each zero-crossing square wave signal according to a preset sampling frequency. In the alternative embodiment, the zero crossing square wave signal is periodically sampled after the high-frequency noise is filtered, so that the situation of erroneous sampling results caused by misjudgment of the zero crossing square wave signal due to the existence of the high-frequency noise is avoided.
Step 2, obtaining the sampling number of each zero crossing square wave signal in the 1 st to M th zero crossing square wave signals, obtaining the sampling number of the M zero crossing square wave signals, calculating the average value of the sampling numbers of the M zero crossing square wave signals, obtaining an average sampling number S, and calculating to obtain a zero crossing initial interval T1 according to the average sampling number S and a preset sampling frequency; setting the zero crossing signal output interval as a zero crossing initial interval T1; wherein M is a preset value, M is a positive integer, and M is equal to or greater than 1.
In this embodiment, the partial sampling result of periodically sampling each zero-crossing square wave signal in step 1 may be, for example, a preset value m=5, the sampling number of each zero-crossing square wave signal in the 1 st to 5 th zero-crossing square wave signals is obtained, the sampling numbers of the 1 st to 5 th zero-crossing square wave signals are 38, 39, 45, 36, and 37, respectively, and the average value of the sampling numbers of the 5 zero-crossing square wave signals is calculated to be 39, that is, the average sampling number s=39.
In this embodiment, the zero crossing initial interval T1 is calculated according to the average sampling number S and a preset sampling frequency. The average period of the zero crossing square wave signal is calculated according to the average sampling number S and the preset sampling frequency, and then the zero crossing initial interval T1 is obtained according to the average period of the zero crossing square wave signal. Alternatively, since there are 2 zero crossings in each period of the zero crossing square wave signal in the alternating current, i.e. each zero crossing should be spaced one half of the period. For example, when the average sampling number S is 39 and the preset sampling frequency is 2000HZ, the average period of the zero-crossing square wave signal is 0.0195S, that is, the zero-crossing initial interval T1 is 0.00975S, and the zero-crossing signal output interval is 0.00975S. By calculating the average value of the sampling numbers of the M zero crossing square wave signals and utilizing the average sampling number to obtain the zero crossing initial interval T1, the error of the zero crossing square wave signals output by the zero crossing detection circuit can be reduced, and the accurate zero crossing interval can be obtained.
Step 3, continuously outputting zero crossing signals with the interval being the zero crossing signal output interval; acquiring the sampling number of each zero crossing square wave signal in the M+1th to M+N zero crossing square wave signals, obtaining the sampling number of the N zero crossing square wave signals, and obtaining the accumulated change value delta s of the sampling number of the N zero crossing square wave signals according to a first preset calculation rule; wherein N is a preset value, N is a positive integer, and N is equal to or greater than 1.
In this embodiment, the zero crossing signal output modes may be various, for example: in the first mode, a zero crossing signal is output by adopting a high-frequency pulse mode, as shown in fig. 3, when the zero crossing signal output interval is 0.00975s, a high-frequency pulse is output every 0.00975s, and the time when the high-frequency pulse appears is the zero crossing time; in the second mode, the zero-crossing signal is outputted by alternately high and low levels, and when the zero-crossing signal output interval is 0.00975s, the high-level signal with the duration of 0.00975s and the low-level signal with the duration of 0.00975s are outputted alternately, and the time of level change is the zero-crossing time, as shown in fig. 4. The output interval is zero crossing signal of zero crossing signal output interval, can utilize this zero crossing signal to accomplish the power line communication of zero crossing, avoid because of the great error that the analog device's of zero crossing detection circuit detected result exists, the inaccurate communication inefficiency's of zero crossing point moment of time problem.
In the embodiment, the zero crossing signal is output by using the zero crossing signal output interval, and the zero crossing signal output interval is calculated and corrected, so that the output of the zero crossing signal is not interrupted by the operation of calculation and correction, and the communication safety is ensured.
In an optional implementation manner of this embodiment, the first preset calculation rule includes: and calculating N sampling number difference values according to the sampling numbers of the N zero crossing point square wave signals, the preset sampling frequency and the zero crossing point signal interval, and summing the N sampling number difference values to obtain an accumulated change value delta s. For example, as shown in fig. 2, a preset value n=5, the sampling number of each zero crossing square wave signal in the 6 th to 10 th zero crossing square wave signals is obtained, the sampling numbers of the obtained 5 zero crossing square wave signals are 38, 36, 35, 32, 40, and the periods corresponding to the sampling numbers of the 5 zero crossing square wave signals are calculated according to a preset sampling frequency, and are respectively: 0.019s, 0.018s, 0.0175s, 0.016s and 0.02s, the zero crossing intervals in the 5 zero crossing square wave signals are respectively: 0.0095s, 0.009s, 0.00875s, 0.008s and 0.01s, and calculating the difference between the period of the zero crossing square wave signal and the interval 0.00975s of the zero crossing signal to obtain 5 sampling number differences, wherein the difference is respectively: -0.00025s, -0.00075s, -0.001s, -0.00175s, 0.00025s, and summing the 5 sample number differences to obtain a cumulative variation value Δs= -0.0035s.
Step 4, if the delta s is not in the preset variation range, calculating to obtain a zero crossing point correction interval T2 according to a second preset rule, and setting a zero crossing point signal output interval as the zero crossing point correction interval T2; if deltas is within the preset variation range, the zero crossing signal output interval is unchanged.
In this embodiment, after the accumulated difference value Δs is calculated, the zero-crossing signal output interval is adjusted according to Δs, that is, whether the zero-crossing correction interval T2 is calculated according to a second preset rule is determined by judging whether Δs is within a preset variation range, if Δs is not within the preset variation range, the zero-crossing correction interval T2 is calculated according to the second preset rule, the zero-crossing correction interval T2 is used as the zero-crossing signal output interval, if Δs is within the preset variation range, the zero-crossing signal output interval is still T1, and by judging whether the accumulated difference value Δs is within the preset variation range, the effect that the zero-crossing signal output interval is more accurate and the communication efficiency is improved can be achieved. For example, if the preset variation range is [ -0.002 to 0.002], and Δs= -0.0035 is not within the preset variation range, the current zero crossing point signal output interval is considered to be inaccurate, adjustment is needed, and the zero crossing point correction interval T2 is calculated according to a second preset rule; if Δs=0.001 is within the preset variation range, the current zero crossing signal output interval is considered to be more accurate, no adjustment is needed, and the zero crossing signal output interval is still T1.
As an alternative implementation of this embodiment, t2=t1- Δt if Δs is smaller than the minimum value of the preset variation range, and t2=t1+Δt if Δs is greater than the maximum value of the preset variation range, where Δt is a preset correction value. For example, the preset variation range is [ -0.002 to 0.002], the preset correction value Δt is 0.00005S, if Δs= -0.0035S, i.e. Δs is smaller than the minimum value of the preset variation range, the zero crossing correction interval t2=t1- Δt= 0.00975S-0.00005 s=0.0097S, if Δs=0.0035S, i.e. Δs is larger than the maximum value of the preset variation range, the zero crossing correction interval t2=t1+Δt=0.0098S. In the alternative embodiment, the zero crossing point signal output interval is corrected by setting the preset correction value delta t instead of directly setting the zero crossing point signal output interval according to the sampling number of the zero crossing point square wave signal, so that the inaccurate condition of the zero crossing point signal output interval caused by the fact that the output zero crossing point square wave signal fluctuates greatly and the error is overlarge due to the influence of environmental change and the like on components of the zero crossing detection circuit is avoided.
And 5, setting M=M+N, and returning to the step 3.
In this embodiment, after setting m=m+n, the zero-crossing signal whose interval is the zero-crossing signal output interval is continuously output, and the operation of obtaining the sampling number of each zero-crossing square wave signal from the m+1st to the m+n-th zero-crossing square wave signals is restarted, and the zero-crossing square wave signal input by the zero-crossing detection circuit is continuously corrected.
In this embodiment, if the zero crossing output interval is T1, the zero crossing signal with the interval 0.00975s is continuously output, and if the zero crossing output interval is T2, the zero crossing signal with the interval 0.0098s is continuously output. The zero crossing signal may be output in the same manner as in step 3. The zero crossing signal output interval is adjusted according to the sampling number of the input zero crossing square wave signal, so that the accuracy of zero crossing signal output can be improved, and the communication efficiency is improved.
As can be seen from the above technical solution provided by the present invention, the present embodiment provides a zero crossing signal output method, after receiving zero crossing square wave signals input by a zero crossing detection circuit, by calculating the sampling number of each zero crossing square wave signal in the 1 st to M-th zero crossing square wave signals, obtaining an average sampling number, obtaining a zero crossing signal output interval according to the average sampling number and a preset sampling frequency, outputting a zero crossing signal according to the zero crossing signal output interval, continuously calculating the sampling number of a subsequent zero crossing square wave signal, adjusting the zero crossing signal output interval according to the subsequent zero crossing square wave signal, and outputting a zero crossing signal according to the adjusted result. The method corrects the detection result of the zero-crossing detection circuit and outputs the zero-crossing signal, the zero-crossing signal output by the method has small error, and when the power line communication is completed by using the zero-crossing signal, the problem of low zero-crossing communication efficiency caused by larger error of the detection result of the zero-crossing detection circuit is avoided, and the communication efficiency is improved.
Example 2
As shown in fig. 5, this embodiment provides a power line data sending method, which includes the zero crossing signal output method in embodiment 1, so that specific implementations and optional implementations of step a, step B, step D and step E are the same as step 1, step 2, step 4 and step 5 in embodiment 1, respectively, and the same points as embodiment 1 are not repeated, and only differences are described in detail:
and step A, continuously receiving zero-crossing square wave signals input by a zero-crossing detection circuit, and periodically sampling each zero-crossing square wave signal according to a preset sampling frequency.
Step B, obtaining the sampling number of each zero crossing square wave signal in the 1 st to M th zero crossing square wave signals, obtaining the sampling number of the M zero crossing square wave signals, calculating the average value of the sampling numbers of the M zero crossing square wave signals, obtaining an average sampling number S, and calculating to obtain a zero crossing initial interval T1 according to the average sampling number S and a preset sampling frequency; setting the zero crossing signal output interval as a zero crossing initial interval T1; wherein M is a preset value, M is a positive integer, and M is equal to or greater than 1.
Step C, continuously outputting zero crossing signals with the interval of zero crossing signal output intervals; determining a 1 st zero crossing point moment t according to the zero crossing point signal, and determining the starting moment of synchronous signal transmission of the data packet to be transmitted according to the 1 st zero crossing point moment, wherein the data packet to be transmitted is identical The starting time of the step signal transmission is t+t 1 And t+t 1 Earlier than the 2 nd zero crossing point time t+t, and the 2 nd zero crossing point time t+t is included in a period from a time point when the first synchronization signal is transmitted to a time point when the last synchronization signal is transmitted, T 1 A first preset fixed value; sequentially transmitting data bit signals of data packets to be transmitted; acquiring the sampling number of each zero crossing square wave signal in the M+1th to M+N zero crossing square wave signals, obtaining the sampling number of the N zero crossing square wave signals, and obtaining the accumulated change value delta s of the sampling number of the N zero crossing square wave signals according to a first preset calculation rule; wherein N is a preset value, N is a positive integer, and N is equal to or greater than 1.
In this embodiment, after the continuous output interval is the zero crossing signal of the zero crossing signal output interval, the 1 st zero crossing time is determined according to the zero crossing signal, and the start time of the synchronizing signal of the data packet to be sent is determined according to the 1 st zero crossing time, where the start time is earlier than the 2 nd zero crossing time, so that the sending time period of the synchronizing signal of the data packet to be sent includes the 2 nd zero crossing time, and after the sending of the synchronizing signal is finished, the data bit signals of the data packet to be sent are sequentially sent. The transmission time period of the synchronous signal of the data packet to be transmitted contains zero crossing point moment, and the signal transmission efficiency is higher because of less interference near the zero crossing point, so that the receiving end of the signal can conveniently judge whether the received signal is near the zero crossing point or not and judge whether the signal is the synchronous signal or not, thereby being capable of transmitting information with high efficiency and completeness.
Step D, if the delta s is not in the preset variation range, calculating to obtain a zero crossing point correction interval T2 according to a second preset rule, and setting a zero crossing point signal output interval as the zero crossing point correction interval T2; if deltas is within the preset variation range, the zero crossing signal output interval is unchanged.
Step E, setting m=m+n, and returning to step C.
According to the technical scheme provided by the invention, after the zero crossing square wave signals input by the zero crossing detection circuit are received, the average sampling number is obtained by calculating the sampling number of each zero crossing square wave signal in the 1 st to M th zero crossing square wave signals, the zero crossing signal output interval is obtained according to the average sampling number and the preset sampling frequency, the zero crossing signal is output according to the zero crossing signal output interval, the zero crossing moment is determined according to the zero crossing signal, the starting moment of synchronous signal transmission of a data packet to be transmitted is determined, the zero crossing moment is included in the time period of transmitting the synchronous signal, the sampling number of the subsequent zero crossing square wave signals is continuously calculated, the zero crossing signal output interval is adjusted according to the subsequent zero crossing square wave signals, and the zero crossing signal is output according to the adjusted result. By the method, the detection result of the zero-crossing detection circuit is corrected, the zero-crossing signal is output, and when the power line communication is completed by the zero-crossing signal output by the method, the problem of low zero-crossing communication efficiency caused by a large error of the detection result of the zero-crossing detection circuit is avoided, the communication efficiency is improved, and meanwhile, the time period of sending the synchronous signal of the data packet to be sent contains the zero-crossing signal, so that a receiving end can judge whether the received signal is near the zero-crossing point or not and judge whether the signal is the synchronous signal or not, thereby being capable of efficiently and completely transmitting information.
Example 3
The embodiment provides a zero-crossing signal output device, which is in one-to-one correspondence with the zero-crossing signal output method in embodiment 1, and is not described herein again, but only briefly described, and in an alternative implementation manner of this embodiment, specific operations performed by each unit in the zero-crossing signal output device may refer to embodiment 1.
In this embodiment, the zero crossing signal output device may be included in any communication terminal in power line communication, for example, a camera, a PC, a server, or the like, or may be a stand-alone device.
Fig. 6 is an alternative zero crossing signal output apparatus 300 of the present embodiment, including: a receiving module 301, a sampling module 302, a calculating module 303 and an output module 304, wherein,
a receiving module 301, configured to continuously receive a zero crossing square wave signal input by the zero crossing detection circuit;
the sampling module 302 is configured to periodically sample each zero crossing square wave signal according to a preset sampling frequency;
the calculating module 303 is configured to obtain the sampling number of each zero crossing square wave signal in the 1 st to M th zero crossing square wave signals, obtain the sampling number of the M zero crossing square wave signals, calculate an average value of the sampling numbers of the M zero crossing square wave signals, obtain an average sampling number S, and calculate a zero crossing initial interval T1 according to the average sampling number S and a preset sampling frequency; setting the zero crossing signal output interval as a zero crossing initial interval T1; wherein M is a preset value, M is a positive integer, and M is equal to or greater than 1;
An output module 304, configured to continuously output a zero crossing signal with a zero crossing signal output interval;
the calculating module 303 is further configured to obtain the sampling number of each zero crossing square wave signal from the (m+1) -th to (m+n) -th zero crossing square wave signals, obtain the sampling number of the N zero crossing square wave signals, and obtain the cumulative variation value Δs of the sampling number of the N zero crossing square wave signals according to a first preset calculation rule; wherein N is a preset value, N is a positive integer, and N is equal to or greater than 1; if the delta s is not in the preset variation range, calculating to obtain a zero crossing point correction interval T2 according to a second preset rule, and setting a zero crossing point signal output interval as the zero crossing point correction interval T2; if Δs is within the preset variation range, the zero crossing signal output interval is unchanged, and m=m+n is set.
In this embodiment, the calculating module 303 is configured to restart the operation of obtaining the sampling number of each zero-crossing square wave signal from the (m+1) -th to (m+n) -th zero-crossing square wave signals after setting m=m+n.
As a preferred implementation manner of this embodiment, the zero crossing signal output device 300 of this embodiment further includes a filtering module (not shown), and the filtering module is configured to filter each received zero crossing square wave signal after the receiving module continuously receives the zero crossing square wave signal input by the zero crossing detection circuit, and filter high frequency noise in each zero crossing square wave signal. In the alternative embodiment, the filtering module is used for periodically sampling the zero crossing square wave signal after filtering high-frequency noise, so that the situation of erroneous sampling results caused by erroneous judgment of the zero crossing square wave signal due to the existence of the high-frequency noise is avoided.
As a preferred implementation manner of this embodiment, the first preset calculation rule includes: and calculating N sampling number difference values according to the sampling numbers of the N zero crossing point square wave signals, the preset sampling frequency and the zero crossing point signal interval, and summing the N sampling number difference values to obtain an accumulated change value delta s. For example, as shown in fig. 2, a preset value n=5, the sampling number of each zero crossing square wave signal in the 6 th to 10 th zero crossing square wave signals is obtained, the sampling numbers of the obtained 5 zero crossing square wave signals are 38, 36, 35, 32, 40, and the periods corresponding to the sampling numbers of the 5 zero crossing square wave signals are calculated according to a preset sampling frequency, and are respectively: 0.019s, 0.018s, 0.0175s, 0.016s and 0.02s, the zero crossing intervals in the 5 zero crossing square wave signals are respectively: 0.0095s, 0.009s, 0.00875s, 0.008s and 0.01s, and calculating the difference between the period of the zero crossing square wave signal and the interval 0.00975s of the zero crossing signal to obtain 5 sampling number differences, wherein the difference is respectively: -0.00025s, -0.00075s, -0.001s, -0.00175s, 0.00025s, and summing the 5 sample number differences to obtain a cumulative variation value Δs= -0.0035s.
As a preferred implementation manner of this embodiment, the calculating module 303, configured to calculate the zero-crossing correction interval T2 according to the second preset rule if Δs is not within the preset variation range, includes: the calculating module 303 is configured to, if Δs is smaller than the minimum value of the preset variation range, t2=t1- Δt, and if Δs is greater than the maximum value of the preset variation range, t2=t1+Δt, where Δt is a preset correction value. For example, the preset variation range is [ -0.002 to 0.002], the preset correction value Δt is 0.00005S, if Δs= -0.0035S, i.e. Δs is smaller than the minimum value of the preset variation range, the zero crossing correction interval t2=t1- Δt= 0.00975S-0.00005 s=0.0097S, if Δs=0.0035S, i.e. Δs is larger than the maximum value of the preset variation range, the zero crossing correction interval t2=t1+Δt=0.0098S. In the alternative embodiment, the zero crossing point signal output interval is corrected by setting the preset correction value delta t instead of directly setting the zero crossing point signal output interval according to the sampling number of the zero crossing point square wave signal, so that the inaccurate condition of the zero crossing point signal output interval caused by the fact that the output zero crossing point square wave signal fluctuates greatly and the error is overlarge due to the influence of environmental change and the like on components of the zero crossing detection circuit is avoided.
As can be seen from the above technical solution provided by the present invention, the present embodiment provides a zero-crossing signal output device 300, after a receiving module 301 receives a zero-crossing square wave signal input by a zero-crossing detection circuit, a sampling module 302 periodically samples the zero-crossing square wave signal, a calculating module 303 obtains an average sampling number by calculating the sampling number of each zero-crossing square wave signal in the 1 st to M-th zero-crossing square wave signals, and obtains a zero-crossing signal output interval according to the average sampling number and a preset sampling frequency, an output module 304 outputs a zero-crossing signal according to the zero-crossing signal output interval, the calculating module 303 continuously calculates the sampling number of a subsequent zero-crossing square wave signal, adjusts the zero-crossing signal output interval according to the subsequent zero-crossing square wave signal, and an output module 304 outputs a zero-crossing signal according to the adjusted result. The device corrects the detection result of the zero-crossing detection circuit and outputs the zero-crossing signal, the zero-crossing signal output by the device has small error, and when the power line communication is completed by using the zero-crossing signal, the problem of low zero-crossing communication efficiency caused by large error of the detection result of the zero-crossing detection circuit is avoided, and the communication efficiency is improved.
Example 4
The present embodiment provides a power line data transmission apparatus, which includes the zero crossing point signal output device 300 in embodiment 3, and corresponds to the power line data transmission method in embodiment 2 one by one, and the same points are not described herein again, and only a brief description will be given, and in an alternative implementation manner of this embodiment, specific operations performed by each unit in the power line data transmission apparatus may refer to embodiment 2 and embodiment 3.
In this embodiment, the over-power-line data transmission device may be any communication terminal in power line communication, for example, a camera, a PC, a server, or the like, and may be included in other terminal devices.
Fig. 7 is an alternative power line data transmission apparatus 400 of the present embodiment, including the zero crossing signal output device 300 disclosed in embodiment 3, and a data output module 401, wherein,
the data output module 401 is configured to determine, after receiving the zero crossing signal output by the output module 304 and having the interval of continuous output being the zero crossing signal output interval, a 1 st zero crossing time t according to the zero crossing signal, and determine, according to the 1 st zero crossing time, a start time of transmission of a synchronization signal of a data packet to be transmitted, where the start time of transmission of the synchronization signal of the data packet to be transmitted is t+t 1 And t+t 1 Earlier than the 2 nd zero crossing point time t+t, and the time point t+t is included in the time period from the time point when the first synchronization bit signal is transmitted to the time point when the last synchronization bit signal is transmitted, T 1 A first preset fixed value; and sequentially transmitting data bit signals of the data packets to be transmitted.
As can be seen from the foregoing technical solutions provided by the present invention, the present embodiment provides a power line data sending apparatus 400, which includes a zero-crossing signal output device 300 of embodiment 3, after a receiving module 301 receives a zero-crossing square wave signal input by a zero-crossing detection circuit, a sampling module 302 periodically samples the zero-crossing square wave signal, a calculating module 303 obtains an average sampling number by calculating a sampling number of each zero-crossing square wave signal from the 1 st to the M-th zero-crossing square wave signals, and obtains a zero-crossing signal output interval according to the average sampling number and a preset sampling frequency, an output module 304 outputs a zero-crossing signal according to the zero-crossing signal output interval, a data output module 401 determines a zero-crossing time according to the zero-crossing signal, and determines a start time of transmission of a synchronization signal of a data packet to be sent, so that the time period for transmitting the synchronization signal includes the zero-crossing time, the calculating module 303 continuously calculates the sampling number of the subsequent zero-crossing square wave signal, adjusts the zero-crossing signal output interval according to the subsequent zero-crossing square wave signal, and the output module 304 outputs the zero-crossing signal according to the adjusted result. The device corrects the detection result of the zero-crossing detection circuit and outputs the zero-crossing signal, when the power line communication is completed by utilizing the zero-crossing signal output by the device, the problem of low zero-crossing communication efficiency caused by a large error of the detection result of the zero-crossing detection circuit is avoided, the communication efficiency is improved, and meanwhile, the time period of sending the synchronous signal of the data packet to be sent contains the zero-crossing signal, so that the receiving end can judge whether the received signal is near the zero-crossing point or not and judge whether the signal is the synchronous signal or not, thereby being capable of efficiently and completely transmitting information.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or part of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, where the program when executed includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives, and variations may be made in the above embodiments by those skilled in the art without departing from the spirit and principles of the invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (6)

1. A zero crossing signal output method, comprising:
step 1, continuously receiving zero crossing square wave signals input by a zero crossing detection circuit, and periodically sampling each zero crossing square wave signal according to a preset sampling frequency;
step 2, obtaining the sampling number of each zero crossing point square wave signal in the 1 st to M th zero crossing point square wave signals, obtaining the sampling number of M zero crossing point square wave signals, calculating the average value of the sampling numbers of the M zero crossing point square wave signals, obtaining an average sampling number S, and calculating to obtain a zero crossing point initial interval T1 according to the average sampling number S and the preset sampling frequency; setting a zero crossing signal output interval as the zero crossing initial interval T1; wherein M is a preset value, M is a positive integer, and M is equal to or greater than 1;
Step 3, continuously outputting zero crossing signals with the interval of zero crossing signal output interval; acquiring the sampling number of each zero crossing square wave signal in the M+1th to M+N zero crossing square wave signals, obtaining the sampling number of N zero crossing square wave signals, and obtaining the accumulated change value delta s of the sampling number of the N zero crossing square wave signals according to a first preset calculation rule; wherein N is a preset value, N is a positive integer, and N is equal to or greater than 1;
step 4, if the delta s is not in the preset variation range, calculating to obtain a zero crossing point correction interval T2 according to a second preset rule, and setting the zero crossing point signal output interval as the zero crossing point correction interval T2; if delta s is in the preset change range, the zero crossing signal output interval is unchanged;
step 5, setting m=m+n, and returning to step 3;
wherein:
the first preset calculation rule includes: calculating N sampling number difference values according to the sampling numbers of the N zero crossing point square wave signals, the preset sampling frequency and the zero crossing point signal interval, and summing the N sampling number difference values to obtain an accumulated change value delta s;
and if Δs is not within the preset variation range, calculating to obtain a zero-crossing correction interval T2 according to a second preset rule, including:
If Δs is smaller than the minimum value of the preset variation range, t2=t1- Δt, and if Δs is larger than the maximum value of the preset variation range, t2=t1+Δt, wherein Δt is a preset correction value.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
in step 1, the continuously receiving zero crossing square wave signals input by the zero crossing detection circuit periodically samples each zero crossing square wave signal according to a preset sampling frequency, and includes:
and continuously receiving zero-crossing square wave signals input by a zero-crossing detection circuit, filtering each received zero-crossing square wave signal, filtering high-frequency noise in each zero-crossing square wave signal, and periodically sampling each zero-crossing square wave signal according to a preset sampling frequency.
3. A power line data transmission method, characterized by comprising the zero crossing signal output method according to any one of the preceding claims 1-2, wherein in step 3, after the continuous output interval is the zero crossing signal of the zero crossing signal output interval T, the method further comprises:
determining a 1 st zero crossing point time t according to the zero crossing point signal, and determining the starting time of synchronous signal transmission of a data packet to be transmitted according to the 1 st zero crossing point time, wherein the starting time of synchronous signal transmission of the data packet to be transmitted is t+t 1 And t+t 1 Earlier than the 2 nd zero crossing point time t+T, and the 2 nd zero crossing point time t+T is included in a period from a time point when the first synchronizing signal is transmitted to a time point when the last synchronizing signal is transmitted, T 1 A first preset fixed value; and sequentially transmitting the data bit signals of the data packets to be transmitted.
4. A zero crossing signal output device, comprising: a receiving module, a sampling module, a calculating module and an output module, wherein,
the receiving module is used for continuously receiving zero crossing square wave signals input by the zero crossing detection circuit;
the sampling module is used for periodically sampling each zero crossing point square wave signal according to a preset sampling frequency;
the calculation module is used for obtaining the sampling number of each zero crossing point square wave signal in the 1 st to M th zero crossing point square wave signals, obtaining the sampling number of M zero crossing point square wave signals, calculating the average value of the sampling numbers of the M zero crossing point square wave signals, obtaining an average sampling number S, and calculating a zero crossing point initial interval T1 according to the average sampling number S and the preset sampling frequency; setting a zero crossing signal output interval as the zero crossing initial interval T1; wherein M is a preset value, M is a positive integer, and M is equal to or greater than 1;
The output module is used for continuously outputting zero crossing signals with the interval being the zero crossing signal output interval;
the computing module is further configured to obtain the sampling number of each zero crossing square wave signal in the (m+1) -th to (m+n) -th zero crossing square wave signals, obtain the sampling number of the N zero crossing square wave signals, and obtain the cumulative variation value deltas of the sampling number of the N zero crossing square wave signals according to a first preset computing rule; wherein N is a preset value, N is a positive integer, and N is equal to or greater than 1; if the delta s is not in the preset variation range, calculating a zero crossing point correction interval T2 according to a second preset rule, and setting the zero crossing point signal output interval as the zero crossing point correction interval T2; if Δs is within the preset variation range, the zero crossing signal output interval is unchanged, and m=m+n is set;
wherein:
the first preset calculation rule includes: calculating N sampling number difference values according to the sampling numbers of the N zero crossing point square wave signals, the preset sampling frequency and the zero crossing point signal interval, and summing the N sampling number difference values to obtain an accumulated change value delta s;
the calculation module is configured to calculate a zero-crossing correction interval T2 according to a second preset rule if Δs is not within a preset variation range, and includes:
The calculation module is configured to, if Δs is smaller than a minimum value of a preset variation range, t2=t1- Δt, and if Δs is greater than a maximum value of the preset variation range, t2=t1+Δt, where Δt is a preset correction value.
5. The apparatus of claim 4, further comprising a filtering module;
the filtering module is used for filtering each received zero-crossing square wave signal after the receiving module continuously receives the zero-crossing square wave signal input by the zero-crossing detection circuit, and filtering high-frequency noise in each zero-crossing square wave signal.
6. A power line data transmission apparatus comprising the zero crossing signal output device of any one of the preceding claims 4 to 5, and a data output module, wherein,
the data output module is configured to determine a 1 st zero crossing point time t according to the zero crossing point signal after receiving the zero crossing point signal with the interval of continuous output of the output module being the zero crossing point signal output interval, and determine a start time of transmission of a synchronization signal of a data packet to be transmitted according to the 1 st zero crossing point time, where the start time of transmission of the synchronization signal of the data packet to be transmitted is t+t 1 And t+t 1 Earlier than the 2 nd zero crossing point instant t+t, and said time point t+t is comprised in the time period from the time point of transmitting the first synchronization bit signal to the time point of the last synchronization bit signal, T 1 A first preset fixed value; and sequentially transmitting the data bit signals of the data packets to be transmitted.
CN201910547382.2A 2019-06-24 2019-06-24 Zero crossing signal output and power line data transmission method and device Active CN112129993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910547382.2A CN112129993B (en) 2019-06-24 2019-06-24 Zero crossing signal output and power line data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910547382.2A CN112129993B (en) 2019-06-24 2019-06-24 Zero crossing signal output and power line data transmission method and device

Publications (2)

Publication Number Publication Date
CN112129993A CN112129993A (en) 2020-12-25
CN112129993B true CN112129993B (en) 2023-09-12

Family

ID=73849184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910547382.2A Active CN112129993B (en) 2019-06-24 2019-06-24 Zero crossing signal output and power line data transmission method and device

Country Status (1)

Country Link
CN (1) CN112129993B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5052027A (en) * 1989-12-22 1991-09-24 Comsat Laboratories Programmable noise bandwidth reduction by means of digital averaging
US5828983A (en) * 1996-08-29 1998-10-27 Allen Bradley Company, Llc Method and apparatus for processing a sampled waveform
US5834930A (en) * 1997-03-12 1998-11-10 Industrial Technology Research Institute Device for sensing the period of a digitized signal including noise evaluation and averaging over a plurality of zero crossing
CN101833036A (en) * 2010-04-15 2010-09-15 南京邮电大学 Method for measuring instantaneous phase of alternating current
CN102081116A (en) * 2009-12-01 2011-06-01 广芯电子技术(上海)有限公司 Adaptive digital method for detecting zero crossing point of alternating voltage
JP2011106856A (en) * 2009-11-13 2011-06-02 Hioki Ee Corp Electric characteristic measuring device and electric characteristic measuring method
CN102478599A (en) * 2010-11-22 2012-05-30 浙江昱能光伏科技集成有限公司 Power grid alternating voltage, and method and device for detecting zero crossing point of power grid alternating voltage
CN102788901A (en) * 2012-08-14 2012-11-21 上海电器科学研究院 High accuracy synchronous dynamic phasor measurement method
CN103197129A (en) * 2013-04-10 2013-07-10 安徽节源节能科技有限公司 Electric power signal zero crossing point detection method
CN107643442A (en) * 2016-07-22 2018-01-30 刘铮 A kind of new high-precision zero passage detection method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5052027A (en) * 1989-12-22 1991-09-24 Comsat Laboratories Programmable noise bandwidth reduction by means of digital averaging
US5828983A (en) * 1996-08-29 1998-10-27 Allen Bradley Company, Llc Method and apparatus for processing a sampled waveform
US5834930A (en) * 1997-03-12 1998-11-10 Industrial Technology Research Institute Device for sensing the period of a digitized signal including noise evaluation and averaging over a plurality of zero crossing
JP2011106856A (en) * 2009-11-13 2011-06-02 Hioki Ee Corp Electric characteristic measuring device and electric characteristic measuring method
CN102081116A (en) * 2009-12-01 2011-06-01 广芯电子技术(上海)有限公司 Adaptive digital method for detecting zero crossing point of alternating voltage
CN101833036A (en) * 2010-04-15 2010-09-15 南京邮电大学 Method for measuring instantaneous phase of alternating current
CN102478599A (en) * 2010-11-22 2012-05-30 浙江昱能光伏科技集成有限公司 Power grid alternating voltage, and method and device for detecting zero crossing point of power grid alternating voltage
CN102788901A (en) * 2012-08-14 2012-11-21 上海电器科学研究院 High accuracy synchronous dynamic phasor measurement method
CN103197129A (en) * 2013-04-10 2013-07-10 安徽节源节能科技有限公司 Electric power signal zero crossing point detection method
CN107643442A (en) * 2016-07-22 2018-01-30 刘铮 A kind of new high-precision zero passage detection method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
尤德斐.《数字化测量技术及仪器》.机械工业出版社,1980,225-227. *

Also Published As

Publication number Publication date
CN112129993A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN105850021B (en) Ammeter for loading modulation communication receiver architecture
CN109075742B (en) Baud rate calibration circuit and serial port chip
CN113676162B (en) Pulse signal level calculating method and circuit
CN105245203B (en) High-precision low-speed clock duty ratio detecting system and method
CN101090311B (en) Method and system for generating clock output maintenance after GPS failure in radio communication system
US11860200B2 (en) Zero crossing point signal output and power line data transmitting method and device
CN101582732A (en) Clock detection method and device
CN103618588A (en) Automatic Baud rate detection method and detection module
TWI470942B (en) Driver circuit of light emitting diode, decoding circuit and decoding method thereof
US20110026572A1 (en) Baud rate error detection circuit and baud rate error detection method
KR20150128658A (en) Dithering circuit for serial data transmission
CN203574663U (en) Automatic baud rate detection module
CN112129993B (en) Zero crossing signal output and power line data transmission method and device
CN102854374A (en) Device and method for detecting direct-current voltage of power unit element
US20160112183A1 (en) Signal sampling timing drift compensation
CN108061564B (en) Single-wire transmission identification and synchronization method for incremental encoder phase signals
CN102289194B (en) Method and device for operating clock
CN109256998A (en) Control the method and system and servo motor of current of electric sampling with high precision
JP2003242130A (en) Synchronization method of collected data and data processing system
US6567487B1 (en) Method for the sampling of biphase coded digital signals
JP4486871B2 (en) Signal decoding apparatus and signal decoding method
CN107656132B (en) Correction method for alternating voltage zero crossing point detection of power carrier module
JPH11308282A (en) Jitter correction circuit for field path transmission signal
JP2702773B2 (en) Data monitoring device
US9020012B1 (en) Oversampled receiver for transition encoded signaling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant