Power line carrier communication method and power line carrier communication system

Through square wave signal modulation and pulse period adjustment, power carrier communication is simplified, solving the problems of complexity and high cost of existing technology, and achieving low-cost information interaction and communication efficiency improvement.

CN118611705APending Publication Date: 2024-09-06DONGGUAN ZKTECO ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410703368.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing power carrier technology is complex in signal processing and has high hardware costs. It requires the cooperation of multiple circuit modules and has complex communication principles.

Method used

The square wave signal is used for carrier modulation, and information is transmitted by adjusting the high level and low level duration of the pulse cycle, simplifying signal processing and reducing hardware costs. The master device and the slave device exchange information through the bus, and the subcarrier signal is superimposed on the low level of the main carrier signal for communication.

Benefits of technology

It realizes the information interaction between the master device and the slave device without processing high-frequency signals, simplifies the communication principle and reduces the cost of data communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611705A
    Figure CN118611705A
Patent Text Reader

Abstract

The invention relates to a power line carrier communication method and a power line carrier communication system. The method is applied to slave equipment, and specifically comprises the following steps: acquiring a main carrier signal input to a bus from main equipment so as to take electricity from the main carrier signal, and decoding the main carrier signal so as to acquire main equipment transmission information; wherein the main carrier signal is configured to be a square wave signal, and the high level duration time and / or the low level duration time of each pulse period in the square wave signal are / is set based on the transmission information of the main device; modulating a subcarrier signal capable of transmitting the transmission information of the slave equipment according to the transmission information of the slave equipment; and monitoring the level change of the main carrier signal so as to input the subcarrier signal to the bus within the low level duration of the main carrier signal, so that the main device obtains the subcarrier signal. According to the invention, information interaction between the master device and the slave device can be realized on the basis of not processing the high-frequency signal, and the data communication cost can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power line carrier communication, and in particular to a power line carrier communication method and a power line carrier communication system. Background Art

[0002] At present, most of the power carrier technologies on the market are to superimpose a carrier modulated data signal on the transmitted AC or DC voltage. Since the superimposed data signal is similar to the wireless transmission signal, its communication principle is basically the same as the principle of wireless communication technology, and it is necessary to implement signal processing technologies such as local oscillation, mixing, frequency selection, encoding, decoding, modulation, demodulation, and coupling. However, these signal processing technologies often require the cooperation of various circuit modules to be realized. Not only are the communication principles complicated, but there is also the defect of high hardware cost. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a power line carrier communication method and a power line carrier communication system.

[0004] The technical solution adopted by the present invention to solve the technical problem is: constructing a power carrier communication method, which is applied to a main device, and the method includes:

[0005] Modulating a main carrier signal capable of conveying transmission information of a main device; wherein the main carrier signal is configured as a square wave signal, and a high level duration and / or a low level duration of each pulse period in the square wave signal is set based on the transmission information of the main device;

[0006] Outputting the main carrier signal to a bus, so as to transmit the master device transmission information and supply power to the slave devices connected to the bus through the main carrier signal;

[0007] Obtain a subcarrier signal input from the slave device to the bus, and decode the subcarrier signal to obtain information transmitted by the slave device; wherein the subcarrier signal is modulated into: a periodic signal that is superimposed on the low level duration of the main carrier signal and can convey the information transmitted by the slave device.

[0008] Preferably, the master device transmits information as binary data;

[0009] The high level duration and / or low level duration of each pulse period in the square wave signal is set based on the master device transmission information, including:

[0010] Based on different binary code setting values, the binary code of the master device transmission information is translated into two first time period values ​​to obtain a plurality of first time period values; wherein the two first time period values ​​are respectively used to set the high level duration of the pulse period corresponding to the two different binary codes;

[0011] The high level duration of each pulse period in the square wave signal is set according to the first time period value, so that each pulse period of the square wave signal can represent the corresponding binary code in the master device transmission information through a different high level duration.

[0012] Preferably, the high level duration and / or low level duration of each pulse period in the square wave signal is set based on the master device transmission information, and further comprises:

[0013] Based on different binary code setting values, the binary code of the master device transmission information is translated into two second time period values ​​to obtain a plurality of second time period values; wherein the two second time period values ​​are used to set the low level duration of the pulse period corresponding to the two different binary codes;

[0014] The low level duration of each pulse period in the square wave signal is set according to each second time period value, so that the pulse periods representing two different binary codes in the square wave signal are kept consistent.

[0015] Preferably, the acquiring of the subcarrier signal input from the slave device to the bus and decoding the subcarrier signal comprises:

[0016] During the low level duration of each pulse period of the main carrier signal, the following are performed:

[0017] collecting a subcarrier signal on the bus;

[0018] comparing the subcarrier signal with a first comparison signal to generate a square wave sequence according to the comparison result;

[0019] Counting the number of pulses in the square wave sequence to obtain a pulse sequence statistical value;

[0020] The binary code value corresponding to the pulse period is determined according to the pulse sequence statistics and a preset communication protocol.

[0021] The present invention also constructs a power carrier communication method, which is applied to a slave device, and the method comprises:

[0022] Acquire a main carrier signal inputted by a master device to a bus to obtain power from the main carrier signal, and decode the main carrier signal to obtain master device transmission information; wherein the main carrier signal is configured as a square wave signal, and a high level duration and / or a low level duration of each pulse period in the square wave signal is set based on the master device transmission information;

[0023] modulate a subcarrier signal capable of conveying the information transmitted from the slave device according to the information transmitted from the slave device;

[0024] The level change of the main carrier signal is monitored, so that the sub-carrier signal is input to the bus during the low level duration of the main carrier signal, so that the main device acquires the sub-carrier signal.

[0025] Preferably, the information transmitted from the device is binary data;

[0026] The step of modulating a subcarrier signal capable of conveying the information transmitted from the slave device according to the information transmitted from the slave device comprises:

[0027] Based on the different binary code values, the binary code of the information transmitted from the device is modulated into two voltage waveform signals with different forms; wherein the two voltage waveform signals with different forms include two voltage waveform signals with different pulse numbers.

[0028] Preferably, the decoding of the main carrier signal comprises:

[0029] For each pulse period in the main carrier signal, the following steps are performed:

[0030] Determine the high level duration and the low level duration of the pulse cycle;

[0031] Restoring the high level duration to a first time period value, and restoring the low level duration to a second time period value;

[0032] The first time period value and the second time period value are translated to obtain a binary code value corresponding to the pulse period.

[0033] Preferably, the frequency of the subcarrier signal is modulated to be more than three times the frequency of the main carrier signal.

[0034] The present invention also constructs a main device, including:

[0035] A first encoding circuit, used for modulating a main carrier signal capable of conveying transmission information of a main device; wherein the main carrier signal is configured as a square wave signal, and a high level duration and / or a low level duration of each pulse period in the square wave signal is set based on the transmission information of the main device;

[0036] A first driving circuit, used for outputting the main carrier signal to a bus, so as to transmit the master device transmission information and supply power to the slave device connected to the bus through the main carrier signal;

[0037] A zero-sequence sampler, used to obtain a subcarrier signal input from the slave device to the bus; wherein the subcarrier signal is modulated into: a periodic signal superimposed on the low level duration of the main carrier signal and capable of conveying the transmission information of the slave device; and

[0038] The first decoding circuit is used to decode the subcarrier signal to obtain information transmitted from the device.

[0039] Preferably, the first encoding circuit includes a first encoder and a timer;

[0040] The first encoder is used to translate the binary code of the master device transmission information into two time period combinations based on different binary code setting values; wherein each of the time period combinations includes a first time period value for setting a high level duration of a pulse period corresponding to the binary code and a second time period value for setting a low level duration of the pulse period corresponding to the binary code;

[0041] The timer is used to set the high level duration and high level duration of each pulse period in the square wave signal according to the time period combination to obtain the main carrier signal;

[0042] The first decoding circuit includes a first comparator, a zero-sequence counter and a first decoder;

[0043] The first comparator is used to compare the subcarrier signal with the first comparison signal to generate a square wave sequence according to the comparison result;

[0044] The zero-sequence counter is used to count the number of pulses in the square wave sequence to obtain a pulse sequence statistical value;

[0045] The first decoder is used to determine the binary code value corresponding to each pulse period according to the pulse sequence statistics and a preset communication protocol.

[0046] The present invention also constructs a slave device, comprising:

[0047] An acquisition circuit, used for acquiring a main carrier signal inputted by a master device to a bus to obtain power from the main carrier signal; wherein the main carrier signal is configured as a square wave signal, and a high level duration and / or a low level duration of each pulse cycle in the square wave signal is set based on the master device transmission information;

[0048] A second decoding circuit is used to decode the main carrier signal to obtain main device transmission information;

[0049] A second encoding circuit is used to modulate a subcarrier signal capable of conveying the information transmitted from the slave device according to the information transmitted from the slave device; and

[0050] The second driving circuit is used to monitor the level change of the main carrier signal, so as to input the sub-carrier signal to the bus during the low level duration of the main carrier signal, so that the main device can obtain the sub-carrier signal.

[0051] Preferably, the acquisition circuit comprises a rectifier and a sampling circuit;

[0052] The rectifier is used to rectify the main carrier signal to obtain electrical energy;

[0053] The sampling circuit is used to divide the voltage of the main carrier signal to obtain the divided main carrier signal;

[0054] The second decoding circuit includes a second comparator, a timing counter and a second decoder;

[0055] The second comparator is used to determine the start and end time of the high level and low level of each pulse period in the main carrier signal after voltage division;

[0056] The timing counter is used to determine the high level duration and low level duration of each pulse period at the start and end time of the high level and the low level, and restore the high level duration to the first time period value, and restore the low level duration to the second time period value;

[0057] The second decoder is used to translate the first time period value and the second time period value of each pulse period to obtain a binary code value corresponding to each pulse period;

[0058] The second encoding circuit includes a subcarrier generator and a second encoder;

[0059] The subcarrier generator is used to generate a high frequency signal with a frequency more than three times the frequency of the main carrier signal;

[0060] The second encoder is used to modulate the high frequency signal according to the transmission information of the slave device to obtain a subcarrier signal capable of conveying the transmission information of the slave device;

[0061] The second driving circuit includes a zero-sequence modulator and a second driver;

[0062] The zero-sequence modulator is used to monitor the level change of the main carrier signal, so as to input the sub-carrier signal to the bus through the second driver when the main carrier signal is at a low level for a certain period of time.

[0063] The present invention also constructs a power line carrier communication system, comprising:

[0064] The master device described above;

[0065] The plurality of slave devices mentioned above; and

[0066] A bus connected to the master device and the plurality of slave devices.

[0067] By implementing the technical solution of the present invention, information exchange can be achieved between the master device and the slave device without processing the high-frequency signal. The communication principle is simple and the data communication cost can be effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0069] Figure 1 is a flowchart of a power line carrier communication method in some embodiments of the present invention;

[0070] Figure 2 is a schematic diagram of waveforms of a main carrier signal and a subcarrier signal in some embodiments of the present invention;

[0071] Figure 3 is a circuit structure block diagram of a power line carrier communication system in some embodiments of the present invention;

[0072] Figure 4 is a program flow chart of a power line carrier communication method in other embodiments of the present invention;

[0073] Figure 5 is a circuit structure block diagram of a main device in some embodiments of the present invention;

[0074] Figure 6 is a circuit structure block diagram of a slave device in some embodiments of the present invention. DETAILED DESCRIPTION

[0075] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

[0076] It should be noted that the flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0077] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0078] Figure 1 is a flowchart of a power line carrier communication method in some embodiments of the present invention, Figure 1 The power carrier communication method shown is applied to the master device, which can enable the master device and the slave device to realize information exchange without processing the high-frequency signal. The communication principle is simple and can effectively reduce the data communication cost. Figure 1 The method includes step S10, step S20 and step S30.

[0079] Step S10 includes: modulating a main carrier signal capable of conveying the main device transmission information; wherein the main carrier signal is configured as a square wave signal, and the high level duration and / or low level duration of each pulse period in the square wave signal is set based on the main device transmission information.

[0080] It should be noted that the master device transmission information refers to the data information that the master device will send to the slave device, including but not limited to control instructions, image data, audio data and monitoring data.

[0081] This step is performed by setting the high level duration and / or low level duration of each pulse period in the square wave signal according to the master device transmission information, so that each pulse period of the square wave signal can represent part or even all of the information data that the master device transmission information wants to convey to the slave device through different waveforms. In this way, the combination of each pulse period can completely represent the master device transmission information.

[0082] In some embodiments, the master device transmission information is binary data; accordingly, the high level duration of each pulse period in the square wave signal can be set based on the master device transmission information by executing steps S101 and S102.

[0083] Step S101 includes: based on different binary code setting values, translating the binary code of the master device transmission information into two first time period values ​​to obtain a plurality of first time period values; wherein the two first time period values ​​are respectively used to set the high level duration of the pulse period corresponding to the two different binary codes.

[0084] Step S102 includes: setting the high level duration of each pulse period in the square wave signal according to the first time period values, so that each pulse period of the square wave signal can represent the corresponding binary code in the master device transmission information through a different high level duration.

[0085] In this embodiment, the binary codes with the values ​​of "0" and "1" contained in the information transmitted by the master device are respectively translated into different first time period values, so that each pulse period can represent the corresponding binary code value through different high-level durations. For example, a pulse period with a high-level duration of X represents the binary code "0", and a pulse period with a high-level duration of Y (Y is not equal to X) represents the binary code "1", for example Figure 2 As shown in waveform diagram b (Figure b is a waveform diagram of the main carrier signal that needs to transmit information to the main device in some embodiments), the high-level duration of the pulse signal from the coordinate origin to t1 (recorded as the first pulse) and the pulse signal from t1 to t2 (recorded as the second pulse) are different. Then the first pulse can represent the binary code "0", and the second pulse can represent the binary code "1". In this way, the slave device can determine the binary code value corresponding to the pulse signal by detecting the high-level duration of the pulse signal.

[0086] It is understandable that if the function of the first time period value in step S101 and step S102 is changed to set the low level duration, then each pulse period can also represent the corresponding binary code in the master device transmission information through different low level durations.

[0087] If the main device transmission information is analog data, then the main device transmission information can be converted into binary data through the existing analog-to-digital conversion algorithm, and then steps S101 and S102 provided in the embodiment of the present invention are executed to modulate a main carrier signal that can convey the main device transmission information.

[0088] In some embodiments, the high level duration of each pulse cycle in the square wave signal is set based on the master device transmission information by executing step S103 and step S104.

[0089] Step S103 includes: based on different binary code setting values, translating the binary code of the master device transmission information into two second time period values ​​to obtain a plurality of second time period values; wherein the two second time period values ​​are used to set the low level duration of the pulse period corresponding to the two different binary codes.

[0090] Step S104 includes: setting the low level duration of each pulse period in the square wave signal according to the value of each second time period, so that the pulse periods representing two different binary codes in the square wave signal remain consistent.

[0091] This embodiment translates different binary code values ​​into different second time period values, so that the low-level duration of the pulse period corresponding to each binary code is fixed to the corresponding time. For example, the low-level duration of the pulse period corresponding to the binary code "0" is M, and the low-level duration of the pulse period corresponding to the binary code "1" is N (N is not equal to M), and X+M=Y+N, where X represents the high-level duration of the pulse period corresponding to the binary code "0", and Y represents the high-level duration of the pulse period corresponding to the binary code "1". That is, it is equivalent to keeping each pulse period in the main carrier signal consistent, so that each pulse signal in the main carrier signal has a certain regularity, so that when the slave device obtains the main carrier signal, it can determine the legitimacy of the main carrier signal by judging whether the actual period of the pulse signal meets the relevant requirements with the pulse period error agreed in advance, which can reduce the influence of the interference signal on the main carrier signal and improve the transmission quality of the main carrier signal.

[0092] Furthermore, for this embodiment, since the periods of the pulse signals are substantially consistent, the slave device can also determine the setting value of the binary code corresponding to the pulse signal according to the duty cycle of the pulse signal.

[0093] Step S20 includes: outputting the main carrier signal to the bus, so as to transmit the main device transmission information and power the slave devices connected to the bus through the main carrier signal. In this step, the main device outputs the main carrier signal to the bus, so that the slave devices connected to the bus can not only use the main carrier signal for power supply, but also decode the main carrier signal to obtain the main device transmission information. The direct connection relationship between the main device, the bus and the slave devices can refer to Figure 3 , where label 3 represents the bus.

[0094] In order to ensure that the main carrier signal is sufficient to power multiple slave devices at the same time, in some embodiments, step S20 may also include: power amplifying the main carrier signal, and outputting the power-amplified main carrier signal to the bus. In this embodiment, the current and voltage of the main carrier signal can be amplified by an existing power amplifier circuit provided in the master device, thereby improving the driving ability of the main carrier signal.

[0095] Step S30 includes: obtaining a subcarrier signal input to the bus by the slave device, decoding the subcarrier signal to obtain the transmission information of the slave device; wherein the subcarrier signal is modulated into: a periodic signal that is superimposed on the low level duration of the main carrier signal and can convey the transmission information of the slave device. In this step, since the subcarrier signal is modulated into a waveform superimposed on the low level duration of the main carrier signal, the effective communication levels of the main carrier signal and the subcarrier signal can be separated to achieve non-interference in communication, so that when the master device sends out the main carrier signal, the slave device can also send out the subcarrier signal, which significantly improves the communication efficiency between the master device and the slave device.

[0096] In some embodiments, the subcarrier signal may be acquired and the subcarrier signal may be decoded by executing step S301.

[0097] Step S301 includes: during the low level duration of each pulse cycle of the main carrier signal, the following steps are performed: collecting the subcarrier signal on the bus (equivalent to the voltage of the acquisition bus); comparing the subcarrier signal with the first comparison signal to generate a square wave sequence according to the comparison result; counting the number of pulses in the square wave sequence to obtain a pulse sequence statistical value; and determining the binary code value corresponding to the pulse cycle according to the pulse sequence statistical value and the preset communication protocol. In this step, since the subcarrier signal is a periodic signal, the subcarrier signal is compared with the first comparison signal to output a level signal according to the comparison result. For example, when the voltage of the subcarrier signal is greater than the first comparison signal, the level signal is set to a high level, and when the voltage of the subcarrier signal is less than the first comparison signal, the level signal is set to a low level. Since the subcarrier signal has continuity in the low level duration of each pulse cycle of the main carrier signal, the level signal will be presented in the form of a square wave signal, that is, a square wave sequence is obtained. Then, the number of high or low levels (i.e., the number of pulses) in the square wave sequence is counted to obtain a pulse sequence statistical value. Next, the pulse values ​​or pulse value ranges corresponding to different binary code values ​​are determined based on the preset communication protocol, and finally, the binary code value corresponding to the pulse sequence statistics is determined by comparing the pulse value or pulse value range with the pulse value. It should be noted that the subcarrier signal can be composed of several electrical signals superimposed on different main carrier signal pulse periods, which depends on the amount of data transmitted from the device.

[0098] Since there is no need for information exchange between the master device and the slave device under some working conditions, but the slave device still needs to operate normally, in some embodiments, before step S20, the following may also be included: step S11, if there is no master device transmission information to be sent to the slave device, that is, the main carrier is in an idle state, then the main carrier signal is modulated into a square wave signal with a set duty cycle. The set duty cycle can be 50%, which can be specifically referred to Figure 2 Waveform diagram a is shown (Figure a is a waveform diagram of a main carrier signal in some embodiments in which no main device needs to transmit information).

[0099] Figure 4 is a flowchart of a power carrier communication method in other embodiments of the present invention, Figure 4 The power carrier communication method shown is applied to the slave device, which can enable the master device and the slave device to realize information exchange without processing the high-frequency signal. The communication principle is simple and can effectively reduce the data communication cost. Figure 4 The method includes step SS10, step SS20 and step SS30.

[0100] Step SS10 includes: obtaining a main carrier signal input by the main device to the bus to draw power from the main carrier signal, and decoding the main carrier signal to obtain the main device transmission information; wherein the main carrier signal is configured as a square wave signal, and the high level duration and / or low level duration of each pulse period in the square wave signal is set based on the main device transmission information.

[0101] In some embodiments, the main carrier signal may be decoded by executing step SS101 .

[0102] Step SS101 includes: performing the following operations for each pulse cycle in the main carrier signal: determining the high level duration and low level duration of the pulse cycle; restoring the high level duration to the first time period value, and restoring the low level duration to the second time period value; translating the first time period value and the second time period value to obtain the binary code value corresponding to the pulse cycle. In this embodiment, the high level duration can be restored to the first time period value, and the low level duration can be restored to the second time period value with reference to step S102 and step S104 for inverse operation; then reverse translation is performed based on the translation process of step S101 and step S103 to obtain the binary code value corresponding to the pulse cycle.

[0103] Step SS20 includes: modulating a subcarrier signal capable of conveying the information transmitted from the slave device according to the information transmitted from the slave device.

[0104] In some embodiments, the information transmitted from the device is binary data. Accordingly, step SS201 can be performed to modulate a subcarrier signal capable of conveying the information transmitted from the device according to the information transmitted from the device.

[0105] Step SS201 includes: modulating the binary code of the information transmitted from the device into two voltage waveform signals with different forms based on different binary code values.

[0106] In some embodiments, the two voltage waveform signals with different forms may include any one of two voltage waveform signals with different periods, two voltage waveform signals with different pulse numbers, and two voltage waveform signals with different amplitudes. In this embodiment, the two voltage waveform signals with different forms include two voltage waveform signals with different pulse numbers. Specifically, refer to Figure 2 In waveform c (waveform c is the waveform of the subcarrier signal after modulation in some embodiments), the slave device modulates a voltage waveform signal with a pulse number of J to represent the binary code "0" in the information transmitted by the slave device, and modulates a voltage waveform signal with a pulse number of L to represent the binary code "1" in the information transmitted by the slave device, so that the master device can obtain the binary code value by detecting the pulse number of the voltage waveform signal, thereby obtaining the information transmitted by the slave device. It should be noted that all relevant voltage waveform signals modulated based on the information transmitted by the slave device are equivalent to the subcarrier signal after superposition.

[0107] Since the amplitude of the subcarrier signal is affected by the transmission distance (the longer the transmission distance, the smaller the amplitude), and the bus may be interfered with and cause the subcarrier signal to be distorted, in order to improve the transmission information quality of the subcarrier signal, the voltage waveform signal corresponding to one of the binary code values ​​(such as the code "0") can be modulated into a continuous low-level signal, so that the voltage waveform signals corresponding to the two binary code values ​​are obviously different, which helps to improve the transmission signal stability of the subcarrier signal.

[0108] It should be noted that the subcarrier signal may be composed of several electrical signals respectively superimposed in different main carrier signal pulse periods, depending on the amount of data transmitted from the device.

[0109] In some embodiments, the information transmitted from the device is analog data. Then, the information transmitted from the device can be converted into binary data by using an existing analog-to-digital conversion algorithm, and then step SS201 provided in the embodiment of the present invention can be executed to modulate a main carrier signal that can convey the information transmitted from the device.

[0110] Step SS30 includes: monitoring the level change of the main carrier signal, so as to input the sub-carrier signal to the bus during the low level duration of the main carrier signal, so that the main device can obtain the sub-carrier signal.

[0111] In some embodiments, step SS30 further includes: superimposing the voltage waveform signal one-to-one on the low level duration of each pulse cycle of the main carrier signal. That is, at most one voltage waveform signal can be transmitted during the low level duration of each pulse cycle of the main carrier signal. Figure 2 Waveform d in (waveform d is a waveform diagram after the subcarrier signal is superimposed on the main carrier signal in some embodiments). It can be understood that this embodiment can make it easier for the main device to distinguish the duration of each voltage waveform signal, which helps to improve the accuracy of the main device in identifying the subcarrier signal.

[0112] In order to avoid confusion between the main carrier signal and the sub-carrier signal when the master device and the slave device identify the phase carrier signal, in some embodiments, the slave device can modulate the frequency of the sub-carrier signal to more than three times the frequency of the main carrier signal, so that the sub-carrier signal can be clearly distinguished from the main carrier signal.

[0113] like Figure 5 As shown, the present invention further provides a master device, which includes a first encoding circuit 11, a first driving circuit 12, a zero-sequence sampler 13 and a first decoding circuit 14.

[0114] The first encoding circuit 11 is used to modulate a main carrier signal capable of conveying the main device transmission information, wherein the main carrier signal is configured as a square wave signal, and the high level duration and / or low level duration of each pulse period in the square wave signal is set based on the main device transmission information.

[0115] In some embodiments, Figure 5 As shown, the first encoding circuit 11 may include a first encoder 111 and a timer 112 .

[0116] The first encoder 111 is used to translate the binary code of the master device transmission information into two time period combinations based on different binary code setting values; wherein each time period combination includes a first time period value for setting the high level duration of the pulse period corresponding to the binary code and a second time period value for setting the low level duration of the pulse period corresponding to the binary code.

[0117] The timer 112 is connected to the first encoder 111, the first driving circuit 12 and the zero-sequence sampler 13. The timer 112 is used to set the high level duration and high level duration of each pulse period in the square wave signal according to the time period combination to obtain the main carrier signal.

[0118] The first driving circuit 12 is connected to the first encoding circuit 11. The first driving circuit 12 is used to output a main carrier signal to the bus, so as to transmit the master device transmission information and supply power to the slave device connected to the bus through the main carrier signal.

[0119] The zero-sequence sampler 13 is connected to the first encoding circuit 11. The zero-sequence sampler 13 is used to obtain the subcarrier signal input to the bus from the slave device. The subcarrier signal is modulated into a periodic signal that is superimposed on the low level duration of the main carrier signal and can convey the information transmitted by the slave device.

[0120] The first decoding circuit 14 is connected to the zero-sequence sampler 13. The first decoding circuit 14 is used to decode the subcarrier signal to obtain the transmission information from the device.

[0121] In some embodiments, Figure 5 As shown, the first decoding circuit 14 may include a first comparator 141 , a zero-sequence counter 142 and a first decoder 143 .

[0122] The first comparator 141 is connected to the zero-sequence sampler 13. The first comparator 141 is used to compare the subcarrier signal with the first comparison signal to generate a square wave sequence according to the comparison result.

[0123] The zero sequence counter 142 is connected to the first comparator 141. The zero sequence counter 142 is used to count the number of pulses in the square wave sequence to obtain a pulse sequence statistical value.

[0124] The first decoder 143 and the zero sequence counter 142. The first decoder 143 is used to determine the binary code value corresponding to each pulse period according to the pulse sequence statistics and the preset communication protocol.

[0125] In some embodiments, Figure 5 As shown, the master device further includes a first coupling unit 15 connected in series between the bus and the first driving circuit 12. The first coupling unit 15 may be an existing coupler, and its functions include but are not limited to improving the transmission quality of the main carrier signal, achieving better impedance matching between the master device and the bus, etc.

[0126] like Figure 6 As shown, the present invention further provides a slave device, which includes an acquisition circuit 21, a second decoding circuit 22, a second encoding circuit 23 and a second driving circuit 24.

[0127] The acquisition circuit 21 is used to acquire the main carrier signal input by the master device to the bus to obtain power from the main carrier signal. The main carrier signal is configured as a square wave signal, and the high level duration and / or low level duration of each pulse cycle in the square wave signal is set based on the master device transmission information.

[0128] In some embodiments, Figure 6 As shown, the acquisition circuit 21 includes a rectifier 211 and a sampling circuit 212 .

[0129] The rectifier 211 is connected to the bus and is used to rectify the main carrier signal to obtain electric energy that can power the slave device.

[0130] The sampling circuit 212 is connected to the bus. The sampling circuit 212 is used to divide the voltage of the main carrier signal to obtain the divided main carrier signal. It can be understood that since the main carrier signal also bears the work of supplying power to the slave device, the voltage amplitude of the main carrier signal on the bus may be relatively large. Under the action of the sampling circuit 212, the main carrier signal on the bus will be divided (i.e., reduced) to avoid overvoltage in the subsequent processing circuit.

[0131] The second decoding circuit 22 is connected to the sampling circuit 212 in the acquisition circuit 21. The second decoding circuit 22 is used to decode the main carrier signal to obtain the main device transmission information.

[0132] In some instances, such as Figure 6 As shown, the second decoding circuit 22 includes a second comparator 221 , a timing counter 222 and a second decoder 223 .

[0133] The second comparator 221 is connected to the sampling circuit 212. The second comparator 221 is used to determine the start and end time of the high level and the low level of each pulse period in the voltage-divided main carrier signal.

[0134] The timing counter 222 is connected to the second comparator 221. The timing counter 222 is used to determine the high level duration and low level duration of each pulse cycle at the start and end time of the high level and the low level, and restore the high level duration to the first time period value and the low level duration to the second time period value.

[0135] The second decoder 223 is connected to the timing counter 222. The second decoder 223 is used to translate the first time period value and the second time period value of each pulse period to obtain the binary code value corresponding to each pulse period.

[0136] The second encoding circuit 23 is used for modulating a subcarrier signal capable of conveying the transmission information of the slave device according to the transmission information of the slave device.

[0137] In some embodiments, Figure 6 As shown, the second encoding circuit 23 includes a subcarrier generator 231 and a second encoder 232 .

[0138] The subcarrier generator 231 is used to generate a high frequency signal having a frequency three times higher than the frequency of the main carrier signal.

[0139] The second encoder 232 is used to modulate the high frequency signal according to the information transmitted from the slave device to obtain a subcarrier signal capable of conveying the information transmitted from the slave device.

[0140] The second driving circuit 24 is connected to the bus, the second encoding circuit 23 and the second decoding circuit 22. The second driving circuit 24 is used to monitor the level change of the main carrier signal, so as to input the subcarrier signal to the bus during the low level duration of the main carrier signal, so that the main device can obtain the subcarrier signal.

[0141] In some embodiments, Figure 6 As shown, the second driving circuit 24 includes a zero-sequence modulator 241 and a second driver 242 .

[0142] The second driver 242 is connected to the second comparator 221 to monitor the level change of the main carrier signal, and then determine when the main carrier signal is in the low level duration. The second driver 242 is connected to the subcarrier generator 231 to obtain the high-frequency signal. The second driver 242 is connected to the second encoder 232 so that the second encoder 232 can modulate the high-frequency signal according to the transmission information from the device. The zero-sequence modulator 241 is also connected to the second driver 242 to input the subcarrier signal to the bus through the second driver 242 when the main carrier signal is in the low level duration.

[0143] In some embodiments, Figure 6 As shown, the master device further includes a second coupling unit 25 connected in series between the bus and the second driver 242. The second coupling unit 25 may be an existing coupler, and its functions include but are not limited to improving the transmission quality of the subcarrier signal and achieving better impedance matching between the slave device and the bus.

[0144] like Figure 3 As shown, the present invention further provides a power line carrier communication system, which includes a master device and several slave devices provided by an embodiment of the present invention, and a bus connecting the master device and the several slave devices.

[0145] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0146] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0147] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0148] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.

Claims

1. A power carrier communication method, applied to a master device, characterized in that: The method comprises: Modulating a main carrier signal capable of conveying transmission information of the master device; wherein the main carrier signal is configured as a square wave signal, and the high level duration and / or low level duration of each pulse period in the square wave signal is set based on the transmission information of the master device; Outputting the main carrier signal to a bus, so as to transmit the master device transmission information and supply power to the slave devices connected to the bus through the main carrier signal; Obtain a subcarrier signal input to the bus by the slave device, and decode the subcarrier signal to obtain the slave device transmission information; wherein the subcarrier signal is modulated into: a periodic signal superimposed on the low level duration of the main carrier signal and capable of conveying the slave device transmission information.

2. The power carrier communication method according to claim 1, characterized in that: The master device transmits information as binary data; The high level duration and / or low level duration of each pulse period in the square wave signal is set based on the master device transmission information, including: Based on different binary code values, the binary code of the master device transmission information is translated into two first time period values ​​to obtain a plurality of first time period values; wherein the two first time period values ​​are respectively used to set the high level duration of the pulse period corresponding to the two different binary codes; The high level duration of each pulse period in the square wave signal is set according to the first time period value, so that each pulse period of the square wave signal can represent the corresponding binary code in the master device transmission information through a different high level duration.

3. The power carrier communication method according to claim 2, characterized in that: The high level duration and / or low level duration of each pulse period in the square wave signal is set based on the master device transmission information, further comprising: Based on different binary code values, the binary code of the master device transmission information is translated into two second time period values ​​to obtain a plurality of second time period values; wherein the two second time period values ​​are used to set the low-level duration of the pulse period corresponding to the two different binary codes; The low level duration of each pulse period in the square wave signal is set according to the value of each second time period, so that the pulse periods representing two different binary codes in the square wave signal are kept consistent.

4. The power carrier communication method according to any one of claims 1 to 3, characterized in that: The acquiring of the subcarrier signal inputted to the bus by the slave device and decoding the subcarrier signal comprises: During the low level duration of each pulse period of the main carrier signal, the following are performed: collecting a subcarrier signal on the bus; comparing the subcarrier signal with a first comparison signal to generate a square wave sequence according to a comparison result; Counting the number of pulses in the square wave sequence to obtain a pulse sequence statistical value; The binary code value corresponding to the pulse period is determined according to the pulse sequence statistics and a preset communication protocol.

5. A power carrier communication method, applied to a slave device, characterized in that: The method comprises: Obtaining a main carrier signal inputted by a master device onto a bus to draw power from the main carrier signal, and further decoding the main carrier signal to obtain master device transmission information; wherein the main carrier signal is configured as a square wave signal, and a high-level duration and / or a low-level duration of each pulse period in the square wave signal is set based on the master device transmission information; modulating a subcarrier signal capable of conveying the information transmitted from the slave device according to the information transmitted from the slave device; The level change of the main carrier signal is monitored, so that the sub-carrier signal is input to the bus during the low level duration of the main carrier signal, so that the master device obtains the sub-carrier signal.

6. The power carrier communication method according to claim 5, characterized in that: The information transmitted from the device is binary data; The step of modulating a subcarrier signal capable of conveying the information transmitted from the slave device according to the information transmitted from the slave device comprises: Based on the different binary code values, the binary code of the information transmitted from the device is modulated into two voltage waveform signals with different forms; wherein the two voltage waveform signals with different forms include two voltage waveform signals with different numbers of pulses.

7. The power carrier communication method according to claim 5, characterized in that: The decoding of the main carrier signal includes: For each pulse period in the main carrier signal, the following steps are performed: Determine the high level duration and low level duration of the pulse cycle; Restoring the high-level duration to a first time period value, and restoring the low-level duration to a second time period value; The first time period value and the second time period value are translated to obtain a binary code value corresponding to the pulse period.

8. The power line carrier communication method according to any one of claims 5 to 7, characterized in that: The frequency of the subcarrier signal is modulated to be three times or more of the frequency of the main carrier signal.

9. A master device, characterized in that: include: A first encoding circuit (11) is configured to modulate a main carrier signal capable of conveying transmission information of a master device; wherein the main carrier signal is configured as a square wave signal, and a high level duration and / or a low level duration of each pulse period in the square wave signal is set based on the transmission information of the master device; A first driving circuit (12) is used to output the main carrier signal to a bus, so as to transmit the master device transmission information to the slave devices connected to the bus through the main carrier signal and to supply power; A zero-sequence sampler (13) is used to obtain a subcarrier signal input from the slave device to the bus; wherein the subcarrier signal is modulated into a periodic signal that is superimposed on the low-level duration of the main carrier signal and can convey the transmission information of the slave device; and The first decoding circuit (14) is used for decoding the subcarrier signal to obtain information transmitted from the device.

10. The master device according to claim 9, wherein: The first encoding circuit (11) includes a first encoder (111) and a timer (112); The first encoder (111) is used to translate the binary code of the master device transmission information into two time period combinations based on different binary code setting values; wherein each time period combination includes a first time period value for setting the high level duration of the pulse period corresponding to the binary code and a second time period value for setting the low level duration of the pulse period corresponding to the binary code; The timer (112) is used to set the high level duration and the high level duration of each pulse period in the square wave signal according to the time period combination to obtain the main carrier signal; The first decoding circuit (14) includes a first comparator (141), a zero sequence counter (142) and a first decoder (143); The first comparator (141) is used to compare the subcarrier signal with a first comparison signal to generate a square wave sequence according to the comparison result; The zero sequence counter (142) is used to count the number of pulses in the square wave sequence to obtain a pulse sequence statistical value; The first decoder (143) is used to determine the binary code value corresponding to each pulse period according to the pulse sequence statistics and a preset communication protocol.

11. A slave device, characterized in that: include: An acquisition circuit (21) is used to acquire a main carrier signal inputted by a master device onto a bus to draw power from the main carrier signal; wherein the main carrier signal is configured as a square wave signal, and a high level duration and / or a low level duration of each pulse period in the square wave signal is set based on information transmitted by the master device; a second decoding circuit (22), configured to decode the main carrier signal to obtain main device transmission information; A second encoding circuit (23) is used for modulating a subcarrier signal capable of conveying the information transmitted from the slave device according to the information transmitted from the slave device; and The second driving circuit (24) is used for monitoring the level change of the main carrier signal, so as to input the sub-carrier signal to the bus during the low level duration of the main carrier signal, so that the main device can obtain the sub-carrier signal.

12. The slave device according to claim 11, wherein: The acquisition circuit (21) includes a rectifier (211) and a sampling circuit (212); The rectifier (211) is used to rectify the main carrier signal to obtain electrical energy; The sampling circuit (212) is used to divide the voltage of the main carrier signal to obtain a divided main carrier signal; The second decoding circuit (22) includes a second comparator (221), a timing counter (222) and a second decoder (223); The second comparator (221) is used to determine the high level and low level start and end time of each pulse period in the main carrier signal after voltage division; The timing counter (222) is used to determine the high level duration and low level duration of each pulse period at the start and end times of the high level and low level, and to restore the high level duration to a first time period value and the low level duration to a second time period value; The second decoder (223) is used to translate the first time period value and the second time period value of each pulse period to obtain a binary code value corresponding to each pulse period; The second encoding circuit (23) includes a subcarrier generator (231) and a second encoder (232); The subcarrier generator (231) is used to generate a high-frequency signal having a frequency more than three times the frequency of the main carrier signal; The second encoder (232) is used to modulate the high-frequency signal according to the information transmitted from the device to obtain a subcarrier signal capable of conveying the information transmitted from the device; The second driving circuit (24) includes a zero-sequence modulator (241) and a second driver (242); The zero-sequence modulator (241) is used to monitor the level change of the main carrier signal, so as to input the sub-carrier signal to the bus through the second driver (242) when the main carrier signal is at a low level for a certain period of time.

13. A power carrier communication system, characterized in that: include: The main device according to claim 9 or 10; A plurality of slave devices as claimed in claim 11 or 12; as well as A bus connected to the master device and the plurality of slave devices.