CN112054819A - Method and apparatus for transmitting and receiving data using power line - Google Patents

Method and apparatus for transmitting and receiving data using power line Download PDF

Info

Publication number
CN112054819A
CN112054819A CN201910490101.4A CN201910490101A CN112054819A CN 112054819 A CN112054819 A CN 112054819A CN 201910490101 A CN201910490101 A CN 201910490101A CN 112054819 A CN112054819 A CN 112054819A
Authority
CN
China
Prior art keywords
signals
signal
data
synchronization
preset
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.)
Granted
Application number
CN201910490101.4A
Other languages
Chinese (zh)
Other versions
CN112054819B (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 CN201910490101.4A priority Critical patent/CN112054819B/en
Publication of CN112054819A publication Critical patent/CN112054819A/en
Application granted granted Critical
Publication of CN112054819B publication Critical patent/CN112054819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0008Synchronisation information channels, e.g. clock distribution lines

Landscapes

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

Abstract

The invention provides a method for transmitting and receiving data by using a power line, transmitting equipment and receiving equipment, wherein the transmitting method comprises the following steps: setting i to 1, and j to 1; at a point in time tiReceiving the ith zero-crossing point signal, determining the start time of sending the synchronous signal of the jth data packet according to the ith zero-crossing point signal, wherein the start time of sending the synchronous signal of the jth data packet is ti+ t; sending the synchronization signal of the jth data packet at the starting time of sending the synchronization signal of the jth data packet; modulating a bit signal on the power line according to the control signal; sequentially sending data signals of a jth data packet, and modulating data bit signals on a power line; and judging whether j is equal to M or not, if j is not equal to M, continuing to transmit, and if j is equal to M, finishing transmitting, wherein M is the number of data packets divided by data to be transmitted.

Description

Method and apparatus for transmitting and receiving data using power line
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method for transmitting data using a power line, a method for receiving data using a power line, an apparatus for transmitting data using a power line, and an apparatus for receiving data using a power line.
Background
Along with the development of electronic technology and network technology, the signal transmission by using a power line as a carrier is more and more emphasized by people, wherein the low-voltage power line carrier communication (PLC) technology realizes data transmission by using the existing low-voltage power supply line, has the advantages of no need of rewiring, saving of system construction cost, practicality and the like, and is widely applied to the aspects of automatic meter reading, illumination control, intelligent communities, intelligent buildings, home networks, household intelligent control, household security and the like.
However, due to the access of various electrical appliances in the power line channel, the low voltage power line network has a very harsh environment for data communication, which is mainly reflected in: the circuit has the characteristics of low line impedance, large attenuation, strong interference, large noise and no short-time change, wherein typical interference and noise sources comprise a switching power supply, an energy-saving lamp, various electric appliances and the like, and signal attenuation mainly comes from line impedance comprising electric appliance access impedance, EMC (electro magnetic compatibility) capacitance, interphase coupling and the like.
Therefore, in order to ensure reliable transmission of information between devices in the power line carrier communication system and ensure accurate identification of transmitted data, it is important to select an efficient communication method, and a technical problem to be solved in the technical field is also urgent.
Disclosure of Invention
The present invention is directed to solving the above problems.
The invention mainly aims to provide a method for transmitting data by using a power line, which comprises the following steps: s1, setting i to 1 and j to 1; s2, at time tiReceiving the ith zero-crossing point signal, and determining the start time of sending the synchronization signal of the jth data packet according to the ith zero-crossing point signal, wherein the start time of sending the synchronization signal of the jth data packet is ti+ t, and ti+ t being earlier than the point in time t when the i +1 th zero-crossing signal is receivedi+1T is a first preset fixed value; s3, sequentially sending the synchronization signal of the jth data packet at the start time of sending the synchronization signal of the jth data packet, wherein sequentially sending the synchronization signal of the jth data packet comprises sequentially sending S synchronization control signals and S flip synchronization control signals, and the time point t isi+1The method comprises the steps that in a time period from a time point of sending a first synchronous control signal to a time point of an S-th overturning synchronous control signal, the first overturning synchronous control signal to the S-th overturning synchronous control signal in the S-th overturning synchronous control signal are respectively signals with the same level as the level of the S-th synchronous control signal to the level of the first synchronous control signal, S is a second preset fixed value, and S is a positive integer greater than or equal to 2; s4, modulating S synchronous bit signals on the power line according to the S synchronous control signals, and inverting the S synchronous control signals on the power lineUp-modulating S flip synchronous bit signals; s5, sequentially sending the data signals of the jth data packet, wherein sequentially sending the data signals of the jth data packet comprises sequentially sending N data control signals; wherein, N is the number of data bits included in each data packet, and N is a positive integer; s6, modulating N data bit signals on the power line according to the N data control signals; s7, judging whether j is equal to M or not, if j is not equal to M, executing a step S8, and if j is equal to M, executing a step S9, wherein M is the number of data packets divided by data to be transmitted, and M is a positive integer; s8, setting i to i + n, j to j +1, and returning to step S2, where i is a positive integer, j is a positive integer, n is a third preset fixed value, and n is a positive integer; and S9, ending the data transmission.
In addition, the time point ti+1Included in a period from a time point of transmitting the S-th sync control signal to a time point of the second flip sync control signal.
Further, S5, sequentially transmitting the data signals of the jth data packet, wherein sequentially transmitting the data signals of the jth data packet includes sequentially transmitting N data control signals; further comprising: after sequentially sending the data signals of the jth data packet, sequentially sending stop signals of the jth data packet, wherein the sequentially sending the stop signals of the jth data packet comprises sequentially sending P stop control signals; s6, modulating N data bit signals on the power line according to the N data control signals, further comprising: after the N data bit signals are modulated, P stop bit signals are modulated on the power line according to the P stop control signals.
Another main object of the present invention is to provide a method for receiving data using a power line, including: receiving a transmission signal; judging whether the transmission signals contain 2S signals which accord with a preset synchronization rule or not, wherein the preset synchronization rule comprises that the first signal to the S signal of the last S data signals are respectively signals with the same level as the S signal to the first signal of the previous S data signals, S is a preset fixed value and is a positive integer which is more than or equal to 2; if the transmission signal contains 2S signals which accord with the preset synchronization rule, judging whether a zero crossing point signal is received within the duration time of the received 2S signals which accord with the preset synchronization rule; if a zero crossing point signal is received within the duration of the received 2S signals which accord with the preset synchronization rule, determining the 2S signals which accord with the preset synchronization rule as synchronization signals; the signals after receiving 2S signals are stored.
In addition, judging whether the zero crossing point signal is received within the duration of the received 2S signals which accord with the preset rule comprises the following steps: judging whether a zero crossing point signal is received within the duration from the S signal of the S signals before being received to the first signal of the S signals after being received; if a zero crossing point signal is received within the duration of the received 2S signals that meet the preset rule, determining the 2S signals that meet the preset rule as synchronization signals includes: and if the zero-crossing point signal is received within the duration from the S signal of the first S signals to the first signal of the second S signals, determining the 2S signals which accord with the preset rule as synchronous signals.
Further, storing the signals after receiving the 2S signals includes: judging whether the signals after receiving the 2S signals contain signals which accord with a preset stopping rule or not; and if the signals after receiving the 2S signals contain the signals meeting the preset stop rule, storing the signals before the signals meeting the preset stop rule after the 2S signals.
The main object of the present invention is also to provide an apparatus for data transmission using a power line, the apparatus comprising: the device comprises a setting module, a starting time determining module, a sending module, a modulating module and a judging module, wherein the setting module is used for setting i to be 1 and j to be 1 and informing the starting time determining module to start executing operation; a start time determination module for determining the start time at the time point tiReceiving the ith zero-crossing point signal, determining the starting time of sending the synchronous signal of the jth data packet according to the ith zero-crossing point signal, and sending the starting time to a sending module, wherein the starting time of sending the synchronous signal of the jth data packet is ti+ t, and ti+ t being earlier than the point in time t when the i +1 th zero-crossing signal is receivedi+1T is a first preset fixed value;a sending module, configured to send the synchronization signal of the jth data packet to the modulation module sequentially at an initial time of sending the synchronization signal of the jth data packet, where sending the synchronization signal of the jth data packet sequentially includes sending S synchronization control signals and S flip synchronization control signals sequentially, and a time point t isi+1The method comprises the steps that in a time period from a time point of sending a first synchronous control signal to a time point of an S-th overturning synchronous control signal, the first overturning synchronous control signal to the S-th overturning synchronous control signal in the S-th overturning synchronous control signal are respectively signals with the same level as the level of the S-th synchronous control signal to the level of the first synchronous control signal, S is a second preset fixed value, and S is a positive integer greater than or equal to 2; the modulation module is used for modulating S synchronous bit signals on the power line according to the S synchronous control signals and modulating S turnover synchronous bit signals on the power line according to the S turnover synchronous control signals; the transmitting module is further used for sequentially transmitting the data signals of the jth data packet to the modulating module, wherein the sequentially transmitting the data signals of the jth data packet comprises sequentially transmitting N data control signals; n is the number of data bits included in each data packet, and N is a positive integer; the modulation module is also used for modulating N data bit signals on the power line according to the N data control signals; the judging module is used for judging whether j is equal to M or not, and if j is not equal to M, the setting module is informed to continue to finish the operation; if j is equal to M, ending the data transmission, wherein M is the number of data packets divided by data to be transmitted, and M is a positive integer; the setting module is further configured to set i + n, j +1, and notify the start time determination module to start executing the operation, where i is a positive integer, j is a positive integer, n is a third preset fixed value, and n is a positive integer.
In addition, the time point ti+1Included in a period from a time point of transmitting the S-th sync control signal to a time point of the second flip sync control signal.
In addition, the sending module is further configured to send data signals of the jth data packet to the modulation module in sequence, where sending the data signals of the jth data packet in sequence includes sending N data control signals in sequence; further comprising: after sequentially sending the data signals of the jth data packet, sequentially sending stop signals of the jth data packet, wherein the sequentially sending the stop signals of the jth data packet comprises sequentially sending P stop control signals; the modulation module is further configured to modulate N data bit signals on the power line according to the N data control signals, and further includes: after the N data bit signals are modulated, P stop bit signals are modulated on the power line according to the P stop control signals.
Another main object of the present invention is to provide an apparatus for data reception using a power line, including: the device comprises a receiving module, a judging module and a storage module, wherein the receiving module is used for receiving a transmission signal and sending the transmission signal to the judging module; the device comprises a judging module, a synchronization module and a synchronization module, wherein the judging module is used for judging whether 2S signals which accord with a preset synchronization rule are contained in transmission signals, the preset synchronization rule comprises that the first signal to the S signal of the last S data signals are respectively signals with the same level as the S signal to the first signal of the previous S data signals, S is a preset fixed value and is a positive integer which is more than or equal to 2; if the transmission signal contains 2S signals which accord with the preset synchronization rule, judging whether a zero crossing point signal is received within the duration time of the received 2S signals which accord with the preset synchronization rule; if a zero crossing point signal is received within the duration time of the received 2S signals which accord with the preset synchronization rule, determining the 2S signals which accord with the preset synchronization rule as synchronization signals and sending the synchronization signals to a storage module; and the storage module is used for storing the signals after receiving the 2S signals.
In addition, the judging module is configured to judge whether an operation of receiving a zero crossing point signal within a duration of the received 2S signals that meet the preset rule includes: judging whether a zero crossing point signal is received within the duration from the S signal of the S signals before being received to the first signal of the S signals after being received; a judging module, configured to determine, if a zero crossing point signal is received within a duration of the received 2S signals that meet the preset rule, an operation of determining the 2S signals that meet the preset rule as synchronization signals, including: and if the zero-crossing point signal is received within the duration from the S signal of the first S signals to the first signal of the second S signals, determining the 2S signals which accord with the preset rule as synchronous signals.
In addition, the storage module is configured to perform an operation of storing the signals after receiving the 2S signals, and includes: judging whether the signals after receiving the 2S signals contain signals which accord with a preset stopping rule or not; and if the signals after receiving the 2S signals contain the signals meeting the preset stop rule, storing the signals before the signals meeting the preset stop rule after the 2S signals.
According to the technical scheme provided by the invention, the invention provides the method and the equipment for transmitting the data by using the power line, the synchronous information of the data is transmitted at the zero crossing point, the preset format of the synchronous information is 2S signals, the level of the first overturning synchronous control signal to the level of the second overturning synchronous control signal to the level of the first synchronous control signal in the S overturning synchronous control signals are respectively the same as that of the second synchronous control signal to the level of the first synchronous control signal, the synchronous information in the preset format is transmitted at the zero crossing point, the interference is less based on the characteristic of minimum interference at the zero crossing point, the synchronous information is easier to identify on the basis of ensuring the communication rate, the stability and the accuracy of each data transmission are improved, and the technical problems that the receiving error is caused when the synchronous information is judged incorrectly and the communication efficiency is reduced are effectively prevented. In addition, the method and the equipment for receiving data by using the power line receive transmission signals, judge whether 2S signals with a preset format exist, wherein the preset format is that the first signal to the S-th signal in the last S signals are respectively the same as the level of the S-th signal to the first signal in the first S signals, if 2S signals with the preset format exist, judge whether a zero crossing point signal is received in a time period for receiving the 2S signals, if the 2S signals are received, judge that the 2S signals are synchronous information, store the signals after the 2S signals, and identify the synchronous signals by judging whether the signals accord with the preset format and whether the zero crossing point signal appears in the transmission time of the information, thereby having higher accuracy when identifying the synchronous signals, improving the stability and the accuracy of each data transmission, effectively preventing the receiving error caused by the error judgment of the synchronous information, the technical problem of reduced communication efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of a method for transmitting data by using a power line according to embodiment 1 of the present invention;
fig. 2 is a waveform diagram illustrating synchronization information when data is transmitted or received by using a power line according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for receiving data by using a power line according to embodiment 2 of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for data transmission using a power line according to embodiment 3 of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for receiving data by using a power line according to embodiment 4 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to 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 location.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled 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 method for transmitting data by using a power line, and to achieve the above object, the technical solution of the present invention is specifically implemented as follows:
s1, setting i to 1 and j to 1;
s2, at time tiReceiving the ith zero-crossing point signal, and determining the start time of sending the synchronization signal of the jth data packet according to the ith zero-crossing point signal, wherein the start time of sending the synchronization signal of the jth data packet is ti+ t, and ti+ t being earlier than the point in time t when the i +1 th zero-crossing signal is receivedi+1And t is a first preset fixed value.
In this embodiment, since the power system can generally provide a stable power frequency voltage of 50HZ, that is, a power frequency voltage with a period of 20ms, for the alternating current, two times with zero voltage values, that is, zero-crossing points, exist in each alternating current period. At a point in time tiReceiving the ith zero-crossing point signal, that is, applying the terminal (hereinafter referred to as "transmitting end") using the method for transmitting data by using the power line provided by the embodiment, at a time pointtiAnd receiving the ith zero-crossing point signal, wherein the moment of occurrence of the ith zero-crossing point signal can be obtained by detecting the voltage by other equipment connected with the ith zero-crossing point signal or by detecting the voltage by the terminal. Determining the starting time of sending the synchronous signal of the jth data packet according to the ith zero-crossing point signal, wherein the starting time of sending the synchronous signal of the jth data packet is ti+ t, and ti+ t being earlier than the point in time t when the i +1 th zero-crossing signal is receivedi+1That is, the transmission of the synchronization signal of the data packet is started after receiving the zero-crossing signal, and the start time of the transmission of the synchronization signal is before receiving the next zero-crossing signal. For example, when i is 1, j is 1, t is 8ms, the 1 st zero-crossing signal is received at the clock timing 10ms, and if the preset data transmission rule is that the synchronization signal of the data packet is transmitted at the 8 th ms after the reception of the zero-crossing signal, that is, the synchronization signal of the 1 st data packet is determined to be transmitted at the clock timing 18ms, the transmission timing of the synchronization signal is 20ms before the 2 nd zero-crossing signal is received.
S3, sequentially sending the synchronization signal of the jth data packet at the start time of sending the synchronization signal of the jth data packet, wherein sequentially sending the synchronization signal of the jth data packet comprises sequentially sending S synchronization control signals and S flip synchronization control signals, and the time point t isi+1The method comprises the steps that in a time period from a time point of sending a first synchronous control signal to a time point of an S-th overturning synchronous control signal, the first overturning synchronous control signal to the S-th overturning synchronous control signal in the S-th overturning synchronous control signal are respectively signals with the same level as the level of the S-th synchronous control signal to the level of the first synchronous control signal, S is a second preset fixed value, and S is a positive integer greater than or equal to 2.
In this embodiment, the synchronization signals include S synchronization control signals and S flip synchronization control signals, wherein the first to S flip synchronization control signals of the S flip synchronization control signals are respectively signals with the same level as the S to S synchronization control signals, that is, the level of the 1 st synchronization control signal is the same as the level of the S flip synchronization control signal, and the level of the 2 nd synchronization control signal is the same as the level of the S-1 st flip synchronization control signal … … the level of the S th synchronization control signal is the same as the level of the 1 st flip synchronization control signal. For example, if the sync control signal is 1010, the inverted sync control signal is 0101 and the sync signal is 10100101. In the power line communication, the synchronization signal is set to be the rule, so that the synchronization signal is easier to identify, and the stability and the accuracy of each data transmission are improved.
As a preferred embodiment of this embodiment, the synchronization signal is a 4-bit signal, and the 4-bit synchronization signal is used, so that the transmission time of the synchronization signal is shorter and the communication efficiency is higher on the premise that the identification rate is high.
In the present embodiment, the time point ti+1Included in a period from a time point of transmitting the first synchronization control signal to a time point of the S-th inverted synchronization control signal, that is, included in a transmission period of the synchronization signal, is a zero-crossing point. For example, as shown in fig. 2, during the time period T1 when the synchronization signal 10100101 is transmitted, the 2 nd zero-crossing point is received, and the 2 nd zero-crossing point may be at any time in the time period T1. For example, the transmission timing of the jth packet may be determined in such a manner that the 2 nd zero-crossing point is included in the period of time during which the synchronization signal is transmitted: when i is 1, j is 1, t is 8ms, and the 1 st zero-crossing signal is received at the clock timing time 10ms, it can be estimated that the next zero-crossing signal is received at the clock timing time 20ms, and if the transmission time of the synchronization signal 10100101 is 1.5ms, the synchronization signal for transmitting the 1 st data packet at the clock timing time 18.5ms to 21.5ms can be calculated by the transmitting end.
In this embodiment, since two voltage values in each ac cycle of the ac power of the power system are zero, and the voltage value of each sub-harmonic at the zero-crossing point is also zero, for power line carrier communication, interference at the zero-crossing point is also minimum, communication is also most reliable, when the transmitting end transmits the synchronization signal near the zero-crossing point, interference in the channel is minimum, and the receiving end can determine whether to receive the synchronization signal according to whether there is a zero-crossing point in a time period for receiving the preset format signal, so that the receiving end can more easily determine and identify the synchronization signal, and then start to receive data after the synchronization signal, and communication efficiency is higher.
As a preferred embodiment of this embodiment, the time ti+1Included in a period from a time point of transmitting the S-th sync control signal to a time point of the second flip sync control signal. For example, as shown in FIG. 2, when the synchronization signal 10100101 is, the time point t isi+1Contained in the period T2 in which 00 bits in the synchronization signal are transmitted. In the preferred embodiment, the zero-crossing point is included in the time period from the last synchronization control signal to the second inverted synchronization control signal, that is, the zero-crossing point is in the middle of the time period for sending the synchronization signal, so that each bit of the synchronization signal is as close to the zero-crossing point as possible, the interference of the synchronization signal is further reduced, and the communication efficiency is higher.
And S4, modulating S synchronous bit signals on the power line according to the S synchronous control signals, and modulating S turnover synchronous bit signals on the power line according to the S turnover synchronous control signals.
In this embodiment, a synchronous bit signal is modulated on the power line according to the synchronous control signal, or an inverted synchronous bit signal is modulated on the power line according to the inverted synchronous control signal, that is, a digital signal is modulated to obtain a modulated signal, and the modulated signal is coupled to the power line for transmission.
And S5, sequentially sending the data signals of the jth data packet, wherein sequentially sending the data signals of the jth data packet includes sequentially sending N data control signals, where N is the number of data bits included in each data packet, and N is a positive integer.
In this embodiment, the data packet includes at least synchronization information and a data signal, and the data signal may be valid data such as audio data, video data, operation instructions, and the like after the synchronization information.
And S6, modulating N data bit signals on the power line according to the N data control signals.
In this embodiment, a data bit signal is modulated on the power line according to a data control signal, that is, a digital signal is modulated to obtain a modulated signal, and the modulated signal is coupled to the power line for transmission.
As a preferred implementation manner of this embodiment, S5, sequentially sending the data signals of the jth data packet, where sequentially sending the data signals of the jth data packet includes sequentially sending N data control signals; further comprising: after sequentially sending the data signals of the jth data packet, sequentially sending stop signals of the jth data packet, wherein the sequentially sending the stop signals of the jth data packet comprises sequentially sending P stop control signals; s6, modulating N data bit signals on the power line according to the N data control signals, further comprising: after the N data bit signals are modulated, P stop bit signals are modulated on the power line according to the P stop control signals.
In the preferred embodiment, the data packet further includes a stop signal, so that a receiving end receiving the data packet can stop demodulating and storing the power line carrier after receiving the stop signal, thereby reducing unnecessary operations and improving the use efficiency of the device.
S7, judging whether j is equal to M, if j is not equal to M, executing step S8, if j is equal to M, executing step S9, wherein M is the number M of data packets divided by data to be sent and is a positive integer.
In this embodiment, it is determined whether j is equal to M, and if j is not equal to M, step S8 is executed, that is, the sending end divides the data to be sent into M data packets and sends the M data packets in sequence, and if j is not equal to M, it is determined that the jth data packet is not the last data packet, and the sending is continued. If j is equal to M, step S9 is executed, i.e. if j is equal to M, the jth data packet is determined to be the last data packet, and the transmission is finished.
S8, setting i to i + n, j to j +1, and returning to step S2, where i is a positive integer, j is a positive integer, n is a third preset fixed value, and n is a positive integer.
In this embodiment, the sending end may calculate the value of n according to the following method: the method comprises the steps that in the first mode, the time length required for sending the jth data packet is estimated according to the length of the data packet, the number of received zero-crossing point information in the time period for sending the data packet is further calculated according to the period of power frequency voltage, and the value of n is determined; in the second mode, the transmitting end continuously receives zero-crossing point information while transmitting the jth data packet, and determines the value of n according to the number of the received zero-crossing point information; and thirdly, recording the clock time of the data packet sending starting time and the clock time of the data packet sending stopping time by the sending end to obtain the time length of sending the data packet, calculating the quantity of received zero-crossing point information in the time period of sending the data packet according to the period of the power frequency voltage, and determining the value of n. After the jth data packet is sent, the sending end returns to S2 to continue sending the next data packet.
And S9, ending the data transmission.
According to the technical scheme provided by the invention, the method for transmitting the data by using the power line is provided, the synchronous information of the data is transmitted at the zero crossing point, the preset format of the synchronous information is 2S signals, the level of the first overturning synchronous control signal to the level of the second overturning synchronous control signal to the level of the first synchronous control signal in the S overturning synchronous control signals are respectively the same as that of the second synchronous control signal to the level of the first synchronous control signal, the synchronous information in the preset format is transmitted at the zero crossing point, the interference is less based on the characteristic of minimum interference at the zero crossing point, the synchronous information is easier to identify on the basis of ensuring the communication rate, the stability and the accuracy of each data transmission are improved, and the technical problems of receiving error and reduction of the communication efficiency caused by wrong judgment of the synchronous information are effectively prevented.
Example 2
As shown in fig. 3, this embodiment provides a method for receiving data by using a power line, where the data receiving method may correspond to the data sending method provided in embodiment 1, and completes the operation of sending and receiving data by using the power line together, and the same points as those in embodiment 1 are not described again.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
step a, receiving a transmission signal.
In this embodiment, a transmission signal, that is, a carrier signal transmitted on a power line is received, the carrier signal is demodulated, and the demodulation result is converted into a digital signal, where the specific demodulation method corresponds to a modulation method, such as FSK (Frequency Shift Keying) or PSK (Phase Shift Keying).
And b, judging whether the transmission signals contain 2S signals which accord with a preset synchronization rule or not, wherein the preset synchronization rule comprises that the first signal to the S signal of the next S data signals are respectively signals with the same level as the S signal to the first signal of the previous S data signals, S is a preset fixed value and is a positive integer which is more than or equal to 2.
In this embodiment, the preset synchronization rule includes that the first to S-th signals of the last S data signals are the same signals as the S-th to S-th signals of the previous S data signals, i.e., the 1 st signal of the last S data signals is the same as the S-th signal of the previous S signals in level, the 2 nd signal of the last S data signals is the same as the S-1 st signal of the previous S signals in level, and the … … th signal of the last S data signals is the same as the 1 st signal of the previous S signals in level. For example, if a signal 10100101 is received, where the last 4 signals are 0101 and the first 4 signals are 1010, it can be seen that the signal conforms to the preset synchronization rule, and the signal is determined to be a signal conforming to the synchronization rule. In power line communication, the rule is used as a setting rule of the synchronous signal for data transmission, a receiving end can judge and identify the synchronous signal more easily, and then starts to receive data after the synchronous signal, so that the communication efficiency is higher.
And c, if the transmission signals contain 2S signals which accord with the preset synchronization rule, judging whether zero crossing point signals are received within the duration time of the received 2S signals which accord with the preset synchronization rule.
And d, if the zero crossing point signal is received within the duration of the received 2S signals which accord with the preset synchronization rule, determining the 2S signals which accord with the preset synchronization rule as the synchronization signals.
In this embodiment, it is determined whether the received signal is a synchronization signal, and two conditions need to be met: the method comprises the following steps that firstly, a received signal accords with a synchronization rule; and secondly, receiving a zero crossing point signal within the duration of receiving the signal conforming to the synchronization rule. When the two conditions are achieved simultaneously, the received signal can be judged to be a synchronous signal. For power line carrier communication, the interference of a zero crossing point is also minimum, the communication is also most reliable, when a synchronization signal is transmitted near the zero crossing point time, the interference in a channel is minimum, when a receiving end judges whether the received signal contains the synchronization signal, the interference in the transmission process of the synchronization signal is less, the synchronization signal is easier to identify, and the communication efficiency is higher. If a zero-crossing point signal is received within the duration of the received 2S signals that meet the preset synchronization rule, it is determined that the 2S signals that meet the preset synchronization rule are synchronization signals, that is, for example, as shown in fig. 2, the 2S signals that meet the preset synchronization rule are 10100101, and it is determined whether a zero-crossing point is received at any time within a time period T1 in which the signals are received.
And e, storing the signals after 2S signals are received.
As a preferred implementation manner of this embodiment, in step c, determining whether a zero-crossing point signal is received within the duration of the received 2S signals that meet the preset rule includes: judging whether a zero crossing point signal is received within the duration from the S signal of the S signals before being received to the first signal of the S signals after being received; in step d, if a zero crossing point signal is received within the duration of the received 2S signals conforming to the preset rule, determining the 2S signals conforming to the preset rule as the synchronization signal includes: and if the zero-crossing point signal is received within the duration from the S signal of the first S signals to the first signal of the second S signals, determining the 2S signals which accord with the preset rule as synchronous signals. For example, as shown in fig. 2, when 2S signals meeting the preset rule are 10100101, it is determined whether a zero-crossing point signal is received in a time period T2 in which 00 bits of the signal are received, and if the zero-crossing point signal is received in a time period T2, the signal is determined to be a synchronization signal.
In the preferred embodiment, the zero-crossing point is included in the time period from the last synchronization control signal to the second inverted synchronization control signal, that is, the zero-crossing point is in the middle of the time period of the transmission of the synchronization signal, and each bit is as close to the zero-crossing point as possible during the transmission of the synchronization signal, so that the interference of the synchronization signal is further reduced, the identification efficiency of the synchronization signal is also improved, and the communication is more reliable.
As an optional implementation manner of this embodiment, in step e, storing the signals after receiving the 2S signals includes: judging whether the signals after receiving the 2S signals contain signals which accord with a preset stopping rule or not; and if the signals after receiving the 2S signals contain the signals meeting the preset stop rule, storing the signals before the signals meeting the preset stop rule after the 2S signals. In this optional embodiment, if the receiving end receives a signal that meets the preset stop rule, the receiving end may stop demodulating and storing the power line carrier after receiving the data packet, or store a signal before the signal that meets the preset stop rule, so as to improve the communication efficiency of the device, and further reduce the storage amount of data at the receiving end.
By adopting the method for receiving data by using the power line provided by the embodiment, the transmission signal is received, whether 2S signals with a preset format exist is judged, the preset format is that the first signal to the S-th signal in the last S signals are respectively the same as the level of the S-th signal to the first signal in the previous S signals, if 2S signals with the preset format exist, whether a zero-crossing point signal is received in the time period for receiving the 2S signals is judged, if the 2S signals are received, the 2S signals are judged to be synchronous information, the signals after the 2S signals are stored, and by judging whether the signals conform to the preset format and whether the zero-crossing point signal appears in the transmission time of the information, the accuracy in identifying the synchronous signals is higher, the stability and the accuracy of each data transmission are improved, and the receiving error caused by the error judgment of the synchronous information is effectively prevented, the technical problem of reduced communication efficiency.
Example 3
In this embodiment, there is provided an apparatus for performing data transmission by using a power line, where the apparatus corresponds to the data transmission method in embodiment 1 one to one, and details are not repeated herein, and only briefly described, and in an optional implementation manner of this embodiment, specific operations performed by each unit in the data transmission apparatus may refer to embodiment 1.
In the present embodiment, the device that performs data transmission using the power line may be any communication terminal in power line communication, for example, a camera, a PC, or the like.
Fig. 4 is a schematic structural diagram of an alternative device 100 for data transmission using a power line according to the embodiment, where the device includes: a setting module 101, a start time determining module 102, a sending module 103, a modulating module 104 and a judging module 105, wherein,
a setting module 101, configured to set i equal to 1 and j equal to 1, and notify the start time determining module 102 to start executing the operation;
a start time determination module 102 for determining a time tiReceiving the ith zero-crossing point signal, and determining the start time of sending the synchronization signal of the jth data packet according to the ith zero-crossing point signal, wherein the start time of sending the synchronization signal of the jth data packet is ti+ t and sent to the sending module 103, and ti+ t being earlier than the point in time t when the i +1 th zero-crossing signal is receivedi+1And t is a first preset fixed value.
A sending module 103, configured to send the synchronization signal of the jth data packet to the modulation module 104 sequentially at a start time of sending the synchronization signal of the jth data packet, where sending the synchronization signal of the jth data packet sequentially includes sending S synchronization control signals and S flip synchronization control signals sequentially, and a time point t isi+1Including at the time point of transmission of the first synchronization control signalIn a time period from the time point of the S-th turnover synchronous control signal, a first turnover synchronous control signal to an S-th turnover synchronous control signal in the S-th turnover synchronous control signal are respectively signals with the same level as the level of the S-th synchronous control signal to the level of the first synchronous control signal, S is a second preset fixed value, and S is a positive integer greater than or equal to 2;
a modulation module 104, configured to modulate S synchronous bit signals on the power line according to the S synchronous control signals, and modulate S flipping synchronous bit signals on the power line according to the S flipping synchronous control signals;
the sending module 103 is further configured to send data signals of a jth data packet to the modulation module 104 in sequence, where sending the data signals of the jth data packet in sequence includes sending N data control signals in sequence; n is the number of data bits included in each data packet, and N is a positive integer;
the modulation module 104 is further configured to modulate N data bit signals on the power line according to the N data control signals;
a judging module 105, configured to judge whether j is equal to M, and if j is not equal to M, notify the setting module 101 to continue to complete the operation; if j is equal to M, ending the data transmission, wherein M is the number of data packets divided by data to be transmitted, and M is a positive integer;
the setting module 101 is further configured to set i + n, j +1, and notify the start time determining module 102 to start executing the operation, where i is a positive integer, j is a positive integer, n is a third preset fixed value, and n is a positive integer.
As a preferred embodiment of this embodiment, the time ti+1Included in a period from a time point of transmitting the S-th sync control signal to a time point of the second flip sync control signal. For example, as shown in FIG. 2, when the synchronization signal 10100101 is, the time point t isi+1Contained in the period T2 in which 00 bits in the synchronization signal are transmitted. In the present preferred embodiment, the zero-crossing point is included in the period from the last synchronization control signal to the point of time of the second inverted synchronization control signal, that is, the zero-crossing point is included in the middle of the period in which the synchronization signal is transmittedAnd each bit of the synchronous signal is close to a zero crossing point as much as possible, so that the interference of the synchronous signal is further reduced, and the communication efficiency is higher.
As a preferred implementation manner of this embodiment, the sending module 103 is further configured to send data signals of a jth data packet to the modulating module 104 in sequence, where sending data signals of the jth data packet in sequence includes sending N data control signals in sequence; further comprising: after sequentially sending the data signals of the jth data packet, sequentially sending stop signals of the jth data packet, wherein the sequentially sending the stop signals of the jth data packet comprises sequentially sending P stop control signals; the modulation module 104 is further configured to modulate N data bit signals on the power line according to the N data control signals, and further includes: after the N data bit signals are modulated, P stop bit signals are modulated on the power line according to the P stop control signals.
In the preferred embodiment, the data packet further includes a stop signal, so that a receiving end receiving the data packet can stop demodulating and storing the power line carrier after receiving the stop signal, thereby reducing unnecessary operations and improving the use efficiency of the device.
According to the technical scheme provided by the invention, the equipment for transmitting the data by using the power line transmits the synchronous information of the data at the zero crossing point, the preset format of the synchronous information is 2S signals, the level of the first overturning synchronous control signal to the level of the second overturning synchronous control signal to the level of the first synchronous control signal are respectively the same as that of the first overturning synchronous control signal to the level of the second overturning synchronous control signal, and the synchronous information in the preset format is transmitted at the zero crossing point.
Example 4
In this embodiment, a device for receiving data by using a power line is provided, where the device corresponds to the data receiving method in embodiment 2 one to one, and details are not repeated herein, and only briefly described, and in an optional implementation manner of this embodiment, specific operations performed by each unit in the data receiving device may refer to embodiment 2.
In the present embodiment, the device for receiving data by using the power line may be any communication terminal in power line communication, for example, a camera, a PC, a server, and the like.
Fig. 5 is a schematic structural diagram of an alternative device 200 for data reception using a power line according to the embodiment, where the device includes: a receiving module 201, a judging module 202 and a storing module 203, wherein,
a receiving module 201, configured to receive a transmission signal, and send the transmission signal to a determining module 202;
the determining module 202 is configured to determine whether the transmission signal includes 2S signals that meet a preset synchronization rule, where the preset synchronization rule includes that a first signal to an S-th signal of the last S data signals are signals with the same level as an S-th signal to a first signal of the previous S data signals, S is a preset fixed value, and S is a positive integer greater than or equal to 2; if the transmission signal contains 2S signals which accord with the preset synchronization rule, judging whether a zero crossing point signal is received within the duration time of the received 2S signals which accord with the preset synchronization rule; if a zero crossing point signal is received within the duration of the received 2S signals conforming to the preset synchronization rule, determining the 2S signals conforming to the preset synchronization rule as synchronization signals, and sending the synchronization signals to the storage module 203;
and the storage module 203 is configured to store the signals after receiving the 2S signals.
As a preferred implementation manner of this embodiment, the determining module 202, configured to determine whether a zero-crossing point signal is received within a duration of 2S received signals that meet a preset rule, includes: judging whether a zero crossing point signal is received within the duration from the S signal of the S signals before being received to the first signal of the S signals after being received; the determining module 202 is configured to determine, if a zero crossing point signal is received within a duration of the received 2S signals that meet the preset rule, that the 2S signals that meet the preset rule are synchronization signals, and includes: and if the zero-crossing point signal is received within the duration from the S signal of the first S signals to the first signal of the second S signals, determining the 2S signals which accord with the preset rule as synchronous signals. For example, as shown in fig. 2, when 2S signals meeting the preset rule are 10100101, it is determined whether a zero-crossing point signal is received in a time period T2 in which 00 bits of the signal are received, and if the zero-crossing point signal is received in a time period T2, the signal is determined to be a synchronization signal.
In the preferred embodiment, the zero-crossing point is included in the time period from the last synchronization control signal to the second inverted synchronization control signal, that is, the zero-crossing point is in the middle of the time period of the transmission of the synchronization signal, and each bit is as close to the zero-crossing point as possible during the transmission of the synchronization signal, so that the interference of the synchronization signal is further reduced, the identification efficiency of the synchronization signal is also improved, and the communication is more reliable.
As an optional implementation manner of this embodiment, the storing module 203, configured to store the signals after receiving the 2S signals, includes: judging whether the signals after receiving the 2S signals contain signals which accord with a preset stopping rule or not; and if the signals after receiving the 2S signals contain the signals meeting the preset stop rule, storing the signals before the signals meeting the preset stop rule after the 2S signals. In this optional embodiment, if the receiving device receives a signal that meets the preset stop rule, and the data packet has been received completely, demodulation and storage of the power line carrier may be stopped, or a signal before the signal that meets the preset stop rule may be stored, so as to improve the device communication efficiency, and further reduce the data storage amount of the receiving device.
By adopting the device for receiving data by using the power line provided by the embodiment, the receiving module 201 receives the transmission signal, the judging module 202 judges whether 2S signals in a preset format exist, the preset format is that the first signal to the S-th signal in the last S signals are respectively the same as the S-th signal to the first signal level in the first S signals, if 2S signals in the preset format exist, whether a zero-crossing signal is received in the time period for receiving the 2S signals is judged, if the 2S signals are received, the 2S signals are judged to be synchronous information, the signals after the 2S signals are stored, the accuracy in identifying the synchronous signals is higher by judging whether the signals conform to the preset format and whether the zero-crossing signal occurs in the transmission time of the information, the stability and the accuracy of each data transmission are improved, and the error in judging the synchronous information is effectively prevented, causing the technical problems of receiving error and communication efficiency reduction.
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 alternate 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 should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. 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 is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (12)

1. A method of transmitting data using a power line, comprising:
s1, setting i to 1 and j to 1;
s2, at time tiReceiving an ith zero-crossing signal and determining according to the ith zero-crossing signalThe start time of the sending of the synchronization signal of the jth data packet is ti+ t, and said ti+ t being earlier than the point in time t when the i +1 th zero-crossing signal is receivedi+1T is a first preset fixed value;
s3, sequentially sending the synchronization signal of the jth data packet at the start time of sending the synchronization signal of the jth data packet, wherein sequentially sending the synchronization signal of the jth data packet comprises sequentially sending S synchronization control signals and S flip synchronization control signals, and the time point t isi+1The method comprises the steps that in a time period from a time point of sending a first synchronous control signal to a time point of an S-th overturning synchronous control signal, the first overturning synchronous control signal to the S-th overturning synchronous control signal in the S-th overturning synchronous control signal are respectively signals with the same level as the level of the S-th synchronous control signal to the level of the first synchronous control signal, S is a second preset fixed value, and S is a positive integer greater than or equal to 2;
s4, modulating S sync bit signals on the power line according to the S sync control signals, and modulating S inverted sync bit signals on the power line according to the S inverted sync control signals;
s5, sequentially sending data signals of a jth data packet, wherein sequentially sending the data signals of the jth data packet comprises sequentially sending N data control signals; wherein, N is the number of data bits included in each data packet, and N is a positive integer;
s6, modulating N data bit signals on the power line according to the N data control signals;
s7, judging whether j is equal to M or not, if j is not equal to M, executing a step S8, and if j is equal to M, executing a step S9, wherein M is the number of data packets divided by data to be sent, and M is a positive integer;
s8, setting i to i + n, j to j +1, and returning to step S2, where i is a positive integer, j is a positive integer, n is a third preset fixed value, and n is a positive integer;
and S9, ending the data transmission.
2. The transmission method according to claim 1, wherein the time point t isi+1Included in a period from a time point of transmitting the S-th sync control signal to a time point of the second flip sync control signal.
3. The transmission method of claim 1,
the S5, sequentially sending the data signals of the jth data packet, where sequentially sending the data signals of the jth data packet includes sequentially sending N data control signals; further comprising: after sequentially sending data signals of a jth data packet, sequentially sending stop signals of the jth data packet, wherein the sequentially sending the stop signals of the jth data packet comprises sequentially sending P stop control signals;
the S6, modulating N data bit signals on the power line according to the N data control signals, further comprising: and after N data bit signals are modulated, P stop bit signals are modulated on the power line according to the P stop control signals.
4. A method of data reception using a power line, comprising:
receiving a transmission signal;
judging whether the transmission signals contain 2S signals which accord with a preset synchronization rule or not, wherein the preset synchronization rule comprises that the first signal to the S signal of the last S data signals are respectively signals with the same level as the S signal to the first signal of the previous S data signals, S is a preset fixed value and is a positive integer which is more than or equal to 2;
if the transmission signal contains 2S signals which accord with a preset synchronization rule, judging whether a zero crossing point signal is received within the duration time of the 2S received signals which accord with the preset synchronization rule;
if a zero crossing point signal is received within the duration of the received 2S signals which accord with the preset synchronization rule, determining the 2S signals which accord with the preset synchronization rule as synchronization signals;
and storing the signals after receiving the 2S signals.
5. The receiving method according to claim 1, wherein the determining whether a zero-crossing signal is received within the duration of the 2S received signals that meet a preset rule comprises: judging whether a zero-crossing point signal is received within the duration from the receiving of the S-th signal of the first S signals to the receiving of the first signal of the last S signals;
if a zero-crossing point signal is received within the duration of the received 2S signals conforming to the preset rule, determining that the 2S signals conforming to the preset rule are synchronization signals includes: and if a zero-crossing signal is received within the duration from the reception of the S-th signal of the first S signals to the reception of the first signal of the last S signals, determining the 2S signals which accord with the preset rule as synchronous signals.
6. The receiving method of claim 1, wherein storing the signals after receiving the 2S signals comprises:
judging whether the signals after receiving the 2S signals contain signals which accord with a preset stopping rule or not;
and if the signals after receiving the 2S signals contain the signals which accord with the preset stop rule, storing the signals after the 2S signals and before the signals which accord with the preset stop rule.
7. An apparatus for data transmission using a power line, comprising: a setting module, a starting time determining module, a sending module, a modulating module and a judging module, wherein,
the setting module is used for setting i to 1 and j to 1 and informing the starting time determining module to start executing operation;
the starting moment determining module is used for determining the starting moment at the time point tiReceiving an ith zero-crossing point signal, determining the starting time of sending the synchronization signal of the jth data packet according to the ith zero-crossing point signal, and sending the starting time to the sending module, wherein the starting time of sending the synchronization signal of the jth data packet is ti+ t, and said ti+ t being earlier than the point in time t when the i +1 th zero-crossing signal is receivedi+1T is a first preset fixed value;
the sending module is configured to send the synchronization signal of the jth data packet to the modulation module sequentially at a start time of sending the synchronization signal of the jth data packet, where sending the synchronization signal of the jth data packet sequentially includes sending S synchronization control signals and S flip synchronization control signals sequentially, and the time point t isi+1The method comprises the steps that in a time period from a time point of sending a first synchronous control signal to a time point of an S-th overturning synchronous control signal, the first overturning synchronous control signal to the S-th overturning synchronous control signal in the S-th overturning synchronous control signal are respectively signals with the same level as the level of the S-th synchronous control signal to the level of the first synchronous control signal, S is a second preset fixed value, and S is a positive integer greater than or equal to 2;
the modulation module is configured to modulate S synchronization bit signals on the power line according to the S synchronization control signals, and modulate S flipping synchronization bit signals on the power line according to the S flipping synchronization control signals;
the transmitting module is further configured to sequentially transmit data signals of a jth data packet to the modulating module, where sequentially transmitting the data signals of the jth data packet includes sequentially transmitting N data control signals; n is the number of data bits included in each data packet, and N is a positive integer;
the modulation module is further configured to modulate N data bit signals on the power line according to the N data control signals;
the judging module is used for judging whether j is equal to M or not, and if j is not equal to M, the setting module is informed to continue to finish the operation; if j is equal to M, ending the data transmission, wherein M is the number of data packets divided by data to be transmitted, and M is a positive integer;
the setting module is further configured to set i + n, j +1, and notify the start time determining module to start executing an operation, where i is a positive integer, j is a positive integer, n is a third preset fixed value, and n is a positive integer.
8. Transmission device according to claim 7, characterized in that said point in time ti+1Included in a period from a time point of transmitting the S-th sync control signal to a time point of the second flip sync control signal.
9. The transmitting device of claim 1,
the transmitting module is further configured to sequentially transmit data signals of a jth data packet to the modulating module, where sequentially transmitting the data signals of the jth data packet includes sequentially transmitting N data control signals; further comprising: after sequentially sending data signals of a jth data packet, sequentially sending stop signals of the jth data packet, wherein the sequentially sending the stop signals of the jth data packet comprises sequentially sending P stop control signals;
the modulation module is further configured to modulate N data bit signals on the power line according to the N data control signals, and further includes: and after N data bit signals are modulated, P stop bit signals are modulated on the power line according to the P stop control signals.
10. An apparatus for data reception using a power line, comprising: a receiving module, a judging module and a storage module, wherein,
the receiving module is used for receiving the transmission signal and sending the transmission signal to the judging module;
the judging module is used for judging whether the transmission signals contain 2S signals which accord with a preset synchronization rule or not, wherein,
the preset synchronization rule comprises that the first signal to the S-th signal of the last S data signals are respectively signals with the same level as the S-th signal to the first signal of the previous S data signals, S is a preset fixed value and is a positive integer more than or equal to 2; if the transmission signal contains 2S signals which accord with a preset synchronization rule, judging whether a zero crossing point signal is received within the duration time of the 2S received signals which accord with the preset synchronization rule; if a zero crossing point signal is received within the duration time of the received 2S signals which accord with the preset synchronization rule, determining the 2S signals which accord with the preset synchronization rule as synchronization signals and sending the synchronization signals to the storage module;
and the storage module is used for storing the signals after the 2S signals are received.
11. The receiving device according to claim 10, wherein the judging module is configured to perform the operation of judging whether a zero-crossing signal is received within a duration of the received 2S signals that meet a preset rule, and specifically includes: the judging module is configured to judge whether a zero-crossing point signal is received within a duration from receiving an S-th signal of the first S signals to receiving a first signal of the last S signals;
the determining module is configured to determine, if a zero crossing point signal is received within a duration of the received 2S signals that meet a preset rule, that the 2S signals that meet the preset rule are synchronization signals, and specifically includes: the determining module is configured to determine that the 2S signals that meet a preset rule are synchronization signals if a zero-crossing point signal is received within a duration from receiving an S-th signal of the first S signals to receiving a first signal of the last S signals.
12. The receiving device of claim 10, wherein the storing module, configured to store the signals after receiving the 2S signals, comprises: the storage module is used for judging whether the signals after receiving the 2S signals contain signals which accord with a preset stop rule or not; and if the signals after receiving the 2S signals contain the signals which accord with the preset stop rule, storing the signals after the 2S signals and before the signals which accord with the preset stop rule.
CN201910490101.4A 2019-06-06 2019-06-06 Method and apparatus for transmitting and receiving data using power line Active CN112054819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910490101.4A CN112054819B (en) 2019-06-06 2019-06-06 Method and apparatus for transmitting and receiving data using power line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910490101.4A CN112054819B (en) 2019-06-06 2019-06-06 Method and apparatus for transmitting and receiving data using power line

Publications (2)

Publication Number Publication Date
CN112054819A true CN112054819A (en) 2020-12-08
CN112054819B CN112054819B (en) 2021-08-17

Family

ID=73609604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910490101.4A Active CN112054819B (en) 2019-06-06 2019-06-06 Method and apparatus for transmitting and receiving data using power line

Country Status (1)

Country Link
CN (1) CN112054819B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4815106A (en) * 1986-04-16 1989-03-21 Adaptive Networks, Inc. Power line communication apparatus
CN101666834A (en) * 2009-09-15 2010-03-10 深圳市汇顶科技有限公司 Industrial frequency-harmonic interference resistant signal sampling method and system
CN105991499A (en) * 2015-02-06 2016-10-05 钜泉光电科技(上海)股份有限公司 OFDM power-frequency synchronous power carrier communication and physical layer coded modulation method
CN109802719A (en) * 2019-01-03 2019-05-24 长沙天仪空间科技研究院有限公司 A kind of satellite communication system based on the interference of inhibition narrowband

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4815106A (en) * 1986-04-16 1989-03-21 Adaptive Networks, Inc. Power line communication apparatus
CN101666834A (en) * 2009-09-15 2010-03-10 深圳市汇顶科技有限公司 Industrial frequency-harmonic interference resistant signal sampling method and system
CN105991499A (en) * 2015-02-06 2016-10-05 钜泉光电科技(上海)股份有限公司 OFDM power-frequency synchronous power carrier communication and physical layer coded modulation method
CN109802719A (en) * 2019-01-03 2019-05-24 长沙天仪空间科技研究院有限公司 A kind of satellite communication system based on the interference of inhibition narrowband

Also Published As

Publication number Publication date
CN112054819B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US9960643B2 (en) Bidirectional communication demodulation for wireless charging system
CN101048669B (en) Method and system for detecting the phase wiring of an unknown phase voltage relative to a reference phase voltage
US20110285379A1 (en) Method and apparatus for detecting the phase wiring of any arbitrary unknown phase voltage relative to a reference phase voltage
WO2019174344A1 (en) Method and apparatus for power line communication
CN103532592B (en) A kind of power line carrier code modulating method and device thereof
JP2001237904A (en) Power line carrier communication device
CN112054819B (en) Method and apparatus for transmitting and receiving data using power line
CN112054820B (en) Method and apparatus for transmitting and receiving data using power line
CN101552623B (en) Chaotic synchronous realizing method based on GPS
CN103840914B (en) Data communication method, terminal and information security equipment
CN110011886A (en) A kind of household electric appliances control system
CN107147601B (en) FSK demodulation method based on pulse width equal length mechanism
CN113133097B (en) Wireless communication method and system
CN111147108B (en) Transmission signal receiving method and equipment
EA008784B1 (en) System for data collection through an alternate current supply network
CN109035743A (en) A kind of home intelligence tele-control system
CN111147107B (en) Data receiving method and device
CN110086738A (en) A kind of carrier frequency bias estimation and system
JP2018157561A (en) Signal transmitter-receiver and method for detecting synchronization point in signal
CN108897295A (en) A kind of tele-control system of household electric appliances
CN107453838B (en) Data frame header sending method and sending device
RU2348938C2 (en) Method and device for rating phase connection of arbitrary unknown phase voltage regarding reference phase
CN108964709A (en) A kind of residential block tap water meter Automatic meter reading system
CN117459191A (en) Communication method and device
JPH07250109A (en) Signal discrimination system for fsk communication

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