The disclosure of Japanese Patent Application No. 2011-15301 filed on Jan. 27, 2011 including the specification, drawings and abstract is incorporated herein by reference in its entirety.
The present invention relates to power line communication apparatuses and noise detection methods, and more particularly to a power line communication apparatus capable of detecting periodic noises and a noise detection method capable of detecting periodic noises.
In recent years, a power line communication that utilizes a power line has become widely used as an interior communication. The power line communication is a communication system that is performed through a medium full of noises. For example, many electric appliances are coupled to a power line. As a result, noises are generated from the electric appliances coupled to the power line, and these generated noises are overlapped with each other, with the result that the sum of the noises becomes large. Among noises generated from electric appliances are impulse noises in sync with alternate currents (referred to as AC cycles hereinafter) in power lines and noises owing to impedance variations. Therefore, in order to improve the communication quality of the power line communication, it is necessary that the power line communication has to be performed to avoid being affected by impulse noises and impedance variations.
A synchronous impulse noise will be explained with reference to
The impulse noise generated in the power line brings about a situation where a large impulse noise is input into an analog-to-digital (A/D) converter, and at the same time the impulse noise input into the A/D converter exceeds the input dynamic range of the A/D converter. In such a situation, it becomes difficult for a time-domain signal to be accurately A/D converted, and the digital signal obtained by the A/D conversion will often represents a rectangular wave when it is afterward D/A converted. Therefore, after the FFT processing is performed on signals to be transmitted, a phenomenon for a SNR over the entire frequency band to deteriorate occurs. However, this phenomenon occurs owning to the operation of the A/D converter, and does not directly indicate the actual quality of the power line.
In order to avoid being affected by impulse noises and the like, a power-line carrier communication apparatus according to Japanese Unexamined Patent Application Publication. No. 2007-258897 discloses a technology in which periodic noises are detected in a MAC layer, and a power line is not used for communication in time slots when the communication quality of the power line is inferior, with the result that the communication quality is improved. An example of a concrete configuration of the power-line carrier communication apparatus according to Japanese Unexamined Patent Application Publication No. 2007-258897 will be explained with reference to
The carrier frequency synchronization unit 106 abstracts a sync signal from the digital signal, and sends the sync signal to an FFT 107. The FFT 107 converts the received digital signal in time domain to a digital signal in frequency domain. Each subcarrier signal is equalized in a channel estimation unit 108 on the basis of each transmission channel distortion estimated by the channel estimation unit 108. After the equalized signal is demodulated in a subcarrier demodulator 110, error correction processing is performed on the signal in an error correction_decoding unit 111, and the error-corrected signal is sent to a MAC layer 120.
In a case where data is transmitted, encode processing is performed on a signal output from the MAC layer 120 in an error correction_encoding unit 112 so that error correction can be performed on the signal. Next, the signal output from the error correction_encoding unit 112 is sent to an IFFT, in which the IFFT processing is performed on the signal. The signal on which the IFFT processing is performed are converted into an analog signal by a D/A 104, and the analog signal is sent to the AFE 102.
The MAC layer 120 includes a quality control unit 121, a periodic noise determination unit 122, a training unit 123, and a scheduling unit 124. The quality control unit 121 monitors the variation of a transmission channel with the use of information regarding the signal intensity that is monitored in the physical layer 100 and the like. Upon receiving a training command from the quality control unit 121, the training unit 123 performs a predefined training, and informs the scheduling unit of the training result.
The periodic noise determination unit 122 quantitatively captures the condition of the transmission channel per a certain time interval on the basis of the signal intensity, the estimated result of channel distortion or the like obtained in the physical layer 100, and determines a periodic noise. The scheduling unit 124 assigns suitable slots for communication so as to avoid being affected by the periodic noise detected by the periodic noise determination unit 122 to form a frame.
In addition, in a power line communication system according to Japanese Unexamined Patent Application Publication No. 2008-010948, a technology in which an impulse noise and an impedance variation are detected by measuring a received power value of a transmission datum sent from another apparatus is disclosed.
However, in a receiving apparatus disclosed in Japanese Unexamined Patent Application Publication No. 2007-258897 or Japanese Unexamined Patent Application Publication No. 2008-010948, an analog signal is converted into a digital signal by an A/D converter, and interferences owing to noises are detected on the basis of an error rate and an SNR of data that is obtained by demodulating the digital signal. In this case, it is necessary that an A/D converter of the receiving apparatus has a wide dynamic range in order to accurately demodulate a reception signal that includes a large impulse noise. Therefore, it is necessary that the A/D converter has a large effective conversion bit number. As a result, the wide dynamic range of the A/D converter leads to the increase of the circuit size of the A/D converter and the increase of power consumption, and there arises a problem in that the cost of the apparatus goes up.
According to one aspect of the present invention, a power line communication apparatus includes: an power detection unit that detects powers in communication slots used for transmitting and receiving data via a power line; a channel (transmission line) estimation unit that estimates the condition of a transmission channel on the basis of an average power through unused communication slots, which are not assigned for transmitting and receiving the data, among the communication slots, and an instantaneous power regarding the unused communication slots; and a periodicity determination unit that detects a noise periodically generated on the basis of the condition of the estimated transmission channel and an alternating-current cycle of the power line.
With the use of the above-described power line communication apparatus, it becomes possible to estimate the condition of a transmission channel on the basis of powers in unused communication slots. Therefore, it is not necessary to accurately demodulate data sent from another apparatus, so that it is possible to detect periodically generated noises without widening the dynamic range of an A/D converter used in the power line communication apparatus.
According to another aspect of the present invention, a noise detection method includes the steps of: detecting powers in communication slots used for transmitting and receiving data via a power line; estimating the condition of a transmission channel on the basis of an average power through unused slots that are not assigned for transmitting and receiving the data among the communication slots, and an instantaneous power regarding the unused slots; and detecting a noise periodically generated on the basis of the estimated condition of the transmission channel and an alternating-current cycle in the power line.
With the use of the above-described noise detection method, it becomes possible to estimate the condition of a transmission channel on the basis of powers in unused communication slots. Therefore, it is not necessary to accurately demodulate data sent from another apparatus, so that it is possible to detect periodically generated noises without widening the dynamic range of an A/D converter used in the power line communication apparatus.
According to the aspects of the present invention there can be provided a power line communication apparatus and a noise detection method that are capable of detecting periodically generated noises without widening the dynamic range of an A/D converter used therein.
An embodiment of the present invention will be explained with reference to the accompanying drawings hereinafter. A power line communication apparatus according to a first embodiment of the present invention includes: a physical layer 10; a power line 11; an AFE (analog front end) 12, an ADC (analog-to-digital conversion unit) 13; a DAC (digital-to-analog conversion unit) 14; an AC cycle detection unit 15; an power detection unit 16; an AGC (automatic gain control) 17; an FFT 18; an equalizer 19; a demodulator 20; an error correction_decoding unit 21; a RX framer 22; a TX framer 23; an error correction_encoding unit 24; a modulator 25; an IFFT 26; a channel (transmission line) estimation unit 27; an impulse detection unit 28; an impedance detection unit 29; a periodicity determination unit 30; and a MAC layer 40.
The AFE 12 receives data sent from other power line communication apparatuses and the like via the power line 11. The AFE 12 receives data, which is sent from other power line communication apparatuses and the like, in the form of analog signals. The AFE 12 sends the received data to the ADC 13. In addition, the AFE 12 transmits the analog signal data, which is sent from the DAC 14, to other power line communication apparatuses and the like via the power line 11.
The ADC 13 converts the data sent from the AFE 12 as analog data into digital signals. The ADC 13 sends the data, which has been converted into the digital signals, to the power detection unit 16. It is conceivable that, if an analog signal with its power exceeding the dynamic range of the ADC 13 enters the ADC 13, the input analog signal is set to be converted into a digital signal representing a specific value.
The power detection unit 16 detects the received power of the digital signal data sent from the ADC 13. Otherwise, the power detection unit 16 detects the received level of the digital signal data sent from the ADC 13. The power detection unit 16 detects the received power per unit of time (in units of communication slots). The power detection unit 16 sends the received power, which it has detected, to the AGC 17 and the channel (transmission line) estimation unit 27. In addition, the power detection unit 16 sends the digital signal data to the FFT 18.
The AGC 17 adjusts the gain of the AFE 12 in accordance with the received power value sent from the power detection unit 16 so that the level of the analog signal, which is output from the AFE 12 and sent to the ADC 13, is kept constant.
The FFT 18 performs the FFT processing on the digital signal data sent from the power detection unit 16. In other worlds, the FFT 18 converts the digital signal data, which represent a time-domain signal, sent from the power detection unit 16 into digital signal data representing a frequency-domain signal. The digital signal data, which are converted into the digital signal data representing the frequency-domain signal, have plural subcarriers. Each subcarrier has a signal having a constant frequency bandwidth. The FFT 18 sends the digital signal data representing the frequency-domain signal to the equalizer 19.
The equalizer 19 performs distortion compensation on the signal distorted owing to a transmission channel such as the power line 11. The equalizer 19 sends the digital signal data, on which the distortion compensation is performed, to the demodulator 20. The demodulator 20 demodulates the received digital signal data. The demodulator 20 sends the signal obtained by the above demodulation to the error correction_decoding unit 21. The error correction_decoding unit 21 performs error detection on the demodulated signal sent by the demodulator 20, and corrects detected errors. The error correction_decoding unit 21 sends the signal on which the error correction has been performed to the MAC layer 40 via the RX framer 22.
When data communication is performed, the TX framer 23 sends the data it received from the MAC layer 40 to the error correction_encoding unit 24. The error correction_encoding unit 24 performs encoding processing on the data it received so that error correction can be performed on the data, and sends the processed data to the modulator 25. The modulator 25 modulates the received data, and sends the modulated data to the IFFT 26. The IFFT 26 performs IFFT processing on the data sent from the modulator 25, that is to say, converts the data representing a frequency-domain signal into data representing a frequency-domain signal. The DAC 14 converts the digital signal data it received from the IFFT 26 into an analog signal and sends the analog signal to the AFE 12.
Next, the function of the channel (transmission line) estimation unit 27 and the periodicity determination unit 30 will be explained hereinafter. The channel (transmission line) estimation unit 27 includes the impulse detection unit 28 and the impedance detection unit 29. The channel (transmission line) estimation unit 27 receives information regarding the received power values detected by the power detection unit 16. The channel (transmission line) estimation unit 27 receives information regarding a received power value for each communication slot. The channel (transmission line) estimation unit 27 estimates the condition of the transmission channel on the basis of received power values in unused communication slots that are not assigned for transmitting and receiving data.
Here, an explanation regarding an unused slot will be made. It will be assumed that a unit of time obtained by dividing a period of an AC cycle by an arbitrary integer number is a slot, and an unused slot is defined as a slot that is not used for transmitting and receiving data via the power line 11.
In the channel (transmission line) estimation unit 27, the impulse detection unit 28 and the impedance detection unit 29 receive the information regarding received power values sent from the power detection unit 16.
The impulse detection unit 28 detects an impulse noise on the basis of a difference between an average power through unused slots during a predetermined time period and an instantaneous power regarding the unused slots. The average power through the unused slots represents an average value of received powers in plural unused slots. The instantaneous power regarding the unused slots is, for example, a received power in one of the unused slots. Alternatively, the instantaneous power can be an average received power of received powers in unused slots whose number is less than the number of the plural unused slots used for calculation of the average power. The impulse detection unit 28 can determine that an impulse noise is being generated if the ratio of an instantaneous power to an average power exceeds a predetermined threshold value.
The impedance detection unit 29 detects an impedance variation on the basis of an average power through the unused slots during a predetermined time period and an average power through the unused slots during a time period shorter than the predetermined time period used for calculation of the average power through the unused slots. Here, the average power through the unused slots during a time period shorter than the predetermined time period used for calculation of the average power through the unused slots is defined as a quasi-instantaneous power. The impedance variation unit 29 can determine that an impedance variation is being generated if the ratio of a quasi-instantaneous power to an average power is less than a predetermined threshold value.
The impulse detection unit 28 and the impedance detection unit 29 send the result of the impulse detection processing regarding the unused slots and the result of the impedance variation detection processing regarding the unused slots respectively to the periodicity determination unit 30. For example, the impulse detection unit 28 can send a high-level signal to the periodicity determination unit 30 if it detects an impulse noise, and can send a low-level signal to the periodicity determination unit 30 if it does not detect an impulse noise. The impedance detection unit 29 can also operate in the similar way.
The AC cycle detection unit 15 detects an AC cycle with the use of the analog signal sent from the power line 11. For example, the AC cycle detection unit 15 can detect the AC cycle by detecting a communication slot in which the received power of the analog signal becomes zero. The AC cycle detection unit 15 sends the detection result of the AC cycle to the periodicity determination unit 30.
The periodicity determination unit 30 detects a noise periodically generated with the use of the detection result of the AC cycle, the detection result of the impulse noise, and the detection result of the impedance variation. The periodicity determination unit 30 determines whether there are impulse noises and impedance variations that are periodically generated over plural periods of the AC cycle or not. The impulse noises and impedance variations that are periodically generated over plural periods of the AC cycle will be referred to as periodic noises hereinafter. The periodicity determination unit 30 sends information regarding whether periodic noises are generated or not to the MAC layer 40. The MAC layer 40 stores the information regarding whether periodic noises are generated or not in a memory or the like of the MAC layer 40.
The MAC layer 40 assigns suitable communication slots for communication so as not to assign communication slots in which periodic noises are being generated for communication.
Next, a flow showing processes regarding a communication request according to the first embodiment of the present invention will be explained with reference to
Next, a flow showing processes regarding a determination whether a communication slot can be used or not according to the first embodiment of the present invention with reference to
Here, the control unit of the MAC layer 40 can be informed of information regarding whether data destined for its own station is set in the selected communication slot or not; whether the selected slot is assigned to its own station or not; whether the selected slot is to be used by another power line communication apparatus or not; or data destined for another power line communication apparatus is set in the selected communication slot or not by a beacon signal sent from another power line communication apparatus that operates as a master apparatus. Alternatively, the control unit of the MAC layer 40 can be informed of unused slots with the use of a beacon signal. Alternatively, it is also conceivable that unused slots are determined in advance, and all the power line communication apparatuses recognize the positions of the unused slots in advance. The master apparatus can regularly send beacon signals to power line communication apparatuses coupled to the power line 11.
Next, a flow showing processes regarding an estimation of the condition of a transmission channel according to the first embodiment of the present invention will be explained with reference to
Next, a configuration example of the impulse detection unit 28 according to the first embodiment of the present invention will be explained with reference to
The square power calculation unit 52 of the average power estimation unit 51 receives information regarding the received power values of the digital data sent from the power detection unit 16. The square power calculation unit 52 calculates square powers using the received power values. The square power calculation unit 52 calculates a square power per communication slot. The square power calculation unit 52 sends information regarding values of the calculated square powers to the moving average calculation unit 53.
The average term holding unit 54 holds information regarding a time interval or a time period through which an average power is calculated. For example, it is conceivable that the average term holding unit 54 holds the number of communication slots through which an average power is calculated. The communication slots through which the average power is calculated are unused communication slots. The average term holding unit 54 sends the information regarding the time interval or the time period through which the average power is calculated to the moving average calculation unit 53.
The moving average calculation unit 53 calculates an average power through a time interval or a time period with the use of squared powers during the time interval or the time period which is sent by the average term holding unit 54 and through which the average power is calculated. The moving average calculation unit 53 sends information regarding the calculated average power to the comparison unit 58.
The square power calculation unit 56 of the instantaneous power estimation unit 55 receives information regarding the received power values of the digital data sent from the power detection unit 16, and calculates square powers using the received power values in the same way as the square power calculation unit 52 of the average power estimation unit 51 does. The square power calculation unit 56 sends the calculated square power values to the comparison unit 58. In this figure, although the average power estimation unit 51 and the instantaneous power estimation unit 55 respectively have their own square power calculation units, it is conceivable that one square power calculation unit is shared by both average power estimation unit 51 and instantaneous power estimation unit 55.
The comparison unit 58 determines whether an impulse noise is being generated or not on the basis of the average power calculated by the average power estimation unit 51 and the instantaneous power calculated by the instantaneous power estimation unit 55. For example, the comparison unit 58 determines that an impulse noise is being generated in a communication slot where the instantaneous power is calculated if the ratio of the instantaneous power to the average power is larger than a predetermined value. The predetermined value used for determining whether an impulse noise is being generated or not is held in the threshold determination holding unit 57. The comparison unit 58 determines whether an impulse noise is generated or not by judging whether the ratio of an instantaneous power to an average power is larger than a value sent from the threshold determination holding unit 57. The comparison unit 58 sends information regarding whether an impulse noise is generated or not to the periodicity determination unit 30.
Next, a configuration example of the impedance detection unit 29 according to the first embodiment of the present invention will be explained with reference to
Because the units included in the average power estimation unit 61 and the units included in the quasi-instantaneous power estimation unit 65 are respectively similar to those included in the average power estimation unit 51 of the impulse detection unit 28, detailed explanations about these units will be omitted. Here, the difference between the moving average calculation unit 63 of the average power estimation unit 61 and the moving average calculation unit 67 of the quasi-instantaneous power estimation unit 65 will be explained. The moving average calculation unit 63 calculates an average power through a time interval longer than a time interval used for the calculation by the moving average calculation unit 67. In the impedance detection unit 29, a power calculated by the moving average calculation unit 67, that is, an average power calculated through a time interval shorter than a time interval used for calculation by the moving average calculation unit 63 is sent to the comparison unit 70 as an instantaneous power.
A flow showing processes regarding an detection of an impulse noise according to the first embodiment of the present invention will be explained with reference to
A flow showing processes regarding a detection of an impedance variation according to the first embodiment of the present invention will be explained with reference to
Next, the outline of processes performed by the periodicity determination unit 30 according to the first embodiment of the present invention will be explained with reference to
Next, a configuration example of the periodicity determination unit 30 according to the first embodiment of the present invention will be explained with reference to
The OR circuit 71 receives the detection result of an impulse noise from the impulse detection unit 28 and the detection result of an impedance variation from the impedance detection unit 29. Upon receiving at least one of the detection result telling that there is an impulse noise from the impulse detection unit 28 and the detection result telling that there is an impedance variation from the impedance detection unit 29, the OR circuit 71 sends a High level signal telling the existence of a noise to the data generation unit 72.
The data generation unit 72 determines a bit position in the memory 74 in which the noise detection result sent from the OR circuit 71 is written. If the noise is detected in the communication slot #i at the cycle j, the bit position in the memory 74 is determined by the number i of the communication slot and the number j of the cycle. The data generation unit 72 writes the noise detection result sent from the OR circuit 71 in the determined bit position in the memory 74. The write control unit 73 controls a timing at which the data generation unit 72 writes the noise detection result in the memory 74.
As explained with reference to
The addition unit 75 accumulates values held by bits in the memory 74 along the bit direction per slot. Each bit holds a value “1” which indicates that a noise is detected, or a value “0” which indicates that a noise is not detected. The read control unit 76 controls a timing at which the addition unit 75 reads a datum in the memory 74. The addition unit 75 sends the value obtained by accumulating the values to the comparison unit 78.
The comparison unit 78 compares a threshold held in the threshold holding unit 77 with the value output by the addition unit 75, and determines whether there is a periodic noise or not. If the value output by the addition unit 75 is larger than the threshold, the comparison unit 78 informs the register 80 that a periodic noise is being generated in the relevant communication slot. If the value output by the addition unit 75 is not larger than the threshold, the comparison unit 78 informs the register 80 that a periodic noise is not being generated in the relevant communication slot. The write control unit 79 controls a timing at which the comparison unit 78 informs (writes into) the register 80 whether a periodic noise is not generated or not.
The register 80 holds information regarding whether a periodic noise is generated or not, which is provided by the comparison unit 78, and sends the information to the MAC layer 40.
Next, a configuration example of the register 80 according to the first embodiment of the present invention will be explained with reference to
Next, a timing chart regarding operations of the power line communication apparatus according to the first embodiment of the present invention will be explained with reference to
An AC cycle represents an alternating signal on a power line. An AC cycle detection unit output becomes a High level at a zero crossover point of the AC cycle. An impulse detection becomes a High level in communication slots where an impulse noise is detected by the impulse detection unit 28. An impedance variation becomes a High level in communication slots where an impedance variation is detected by the impedance detection unit 29.
An OR circuit output becomes a High level when it is determined that a noise is detected by the OR circuit 71. In
As explained above, with the use of the power line communication apparatus according to the first embodiment of the present invention, it can be determined whether periodic noises are being generated or not using values of received powers in unused slots on which the FFT processing has not been performed yet. Therefore, the generation of the periodic noises can be detected without widening the dynamic range of the ADC 13 in order to accurately perform the FFT processing, the demodulation processing and the like on data sent from another apparatus.
In addition, the present invention is not limited to the above-described embodiments, and proper modifications may be made to the above-described embodiments without departing from the spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2011-015301 | Jan 2011 | JP | national |