JP2000174731A - Electric lamp line communication equipment - Google Patents

Electric lamp line communication equipment

Info

Publication number
JP2000174731A
JP2000174731A JP34219998A JP34219998A JP2000174731A JP 2000174731 A JP2000174731 A JP 2000174731A JP 34219998 A JP34219998 A JP 34219998A JP 34219998 A JP34219998 A JP 34219998A JP 2000174731 A JP2000174731 A JP 2000174731A
Authority
JP
Japan
Prior art keywords
transmission
data
error
power line
frame
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
JP34219998A
Other languages
Japanese (ja)
Other versions
JP3485248B2 (en
Inventor
Kenichi Sakagami
賢一 阪上
Kazuo Toda
和郎 戸田
Koji Iwamoto
幸治 岩本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP34219998A priority Critical patent/JP3485248B2/en
Publication of JP2000174731A publication Critical patent/JP2000174731A/en
Application granted granted Critical
Publication of JP3485248B2 publication Critical patent/JP3485248B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve transmission efficiency by using a transmission parameter corresponding to quality as the data transmission line of an electric lamp line in electric lamp communication. SOLUTION: In a transmission side, a transmission result based on a response from a reception side is stored in a transmission result storage part 10. The types of the transmission results are normal transmission, a transmission frame error, a response frame error and a non-response. Points are allocated to the transmission results. A transmission line state judgment part 11 reads the past transmission result from the transmission result storage part 10 and executes an operation for grasping the quality of a data transmission line from the points of the transmission results. A transmission control part 9 sets a transmission parameter such as information frame length in accordance with the quality of the data transmission line, which is obtained in the operation. Thus, the generation frequency of retransmission is reduced and transmission efficiency improves.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電灯線を用いてデ
ィジタルデータの送受信を行う電灯線通信装置に関し、
特に伝送誤り発生率の変動に伴って最適の伝送効率が得
られるようにフレーム長などの伝送パラメータを設定す
る電灯線通信装置に関する。
The present invention relates to a power line communication apparatus for transmitting and receiving digital data using a power line.
In particular, the present invention relates to a power line communication device that sets a transmission parameter such as a frame length so as to obtain an optimum transmission efficiency with a change in a transmission error occurrence rate.

【0002】[0002]

【従来の技術】電灯線通信は、既設の電灯線をデータ伝
送に利用するものであって、新たなデータ伝送路の敷設
が不要であるため、従来よりホームネットワークやLA
N等への応用が検討されている。しかし、電灯線には、
家電機器が多数接続され、それらの機器から発生するノ
イズが現れるので、データ伝送路の環境としては劣悪で
ある。また、家電機器が多数接続されるため、データ伝
送に使用する周波数領域においてはインピーダンスが非
常に低くなり、データ信号の減衰が激しい。
2. Description of the Related Art In power line communication, an existing power line is used for data transmission, and it is not necessary to lay a new data transmission line.
Application to N and the like is being studied. However, in the power line,
Since a large number of home electric appliances are connected and noise generated from those appliances appears, the environment of the data transmission path is poor. Further, since a large number of home appliances are connected, the impedance is extremely low in a frequency region used for data transmission, and the data signal is greatly attenuated.

【0003】このような劣悪なノイズ環境においてもデ
ータ通信を良好に行うために、スペクトラム拡散変調方
式などの適用が検討されてきたが、データ誤りの発生は
避けられず、データ誤りの発生時には再送によってデー
タの信頼性を確保する必要がある。ところが、電灯線の
ノイズレベルが高い時には、データ誤りの発生が繰り返
され、データ再送が頻繁に行われるので、データの伝送
効率が著しく低下する。
[0003] In order to perform data communication well even in such a bad noise environment, application of a spread spectrum modulation method or the like has been studied. However, occurrence of a data error is unavoidable. It is necessary to ensure the reliability of data. However, when the noise level of the power line is high, the occurrence of data errors is repeated, and data is retransmitted frequently, so that the data transmission efficiency is significantly reduced.

【0004】電灯線通信におけるデータ再送の回数を低
減するために、例えば特開平4−322519号公報の
方式が提案されている。この方式においては、電灯線に
発生する高レベルのバーストノイズが商用交流電源の周
期(50Hzまたは60Hz)に同期していることに着
目し、再送データの送信開始の時刻を交流電源の周期を
基にして制御することにより、データのフレーム長を変
更することなくバーストノイズを避け、再送回数の低減
を図っている。
In order to reduce the number of data retransmissions in power line communication, for example, a system disclosed in Japanese Patent Laid-Open No. 4-322519 has been proposed. In this method, attention is paid to the fact that the high-level burst noise generated in the power line is synchronized with the cycle of the commercial AC power supply (50 Hz or 60 Hz), and the transmission start time of the retransmission data is determined based on the cycle of the AC power supply. In this way, burst noise is avoided without changing the data frame length, and the number of retransmissions is reduced.

【0005】[0005]

【発明が解決しようとする課題】しかしながら近年、家
電機器の電源にインバータ回路が採用されるものが増加
し、電灯線におけるノイズの発生状況が変化してきてい
る。インバータ回路を搭載した各種の機器から発生する
ノイズは、その時間的な特性が電源周期に同期している
ものの、発生の仕方がバースト的ではなく連続的であ
る。しかも、平均的なノイズレベルが高いため、上記の
ような送信開始時刻の制御によってノイズを避けること
は困難である。また、電灯線上のデータ信号の減衰に起
因するデータ誤りに対しても対応が困難である。
However, in recent years, the number of power supplies for home electric appliances that employ an inverter circuit has increased, and the occurrence of noise in a power line has changed. Noise generated from various devices equipped with an inverter circuit has a temporal characteristic synchronized with a power supply cycle, but is generated not continuously but in a burst manner. Moreover, since the average noise level is high, it is difficult to avoid noise by controlling the transmission start time as described above. Also, it is difficult to cope with a data error caused by attenuation of a data signal on a power line.

【0006】そこで、本発明は、上記従来の課題に鑑み
なされたものであり、送信側からデータを含む情報フレ
ームを送り、受信側から応答フレームを返すデータ伝送
手順において、受信側からの応答に基づいて電灯線のデ
ータ伝送路としての品質を把握し、この品質に応じて送
信される情報フレーム長や、受信側からの応答を待たず
に一度に連続して送信し得る最大連続情報フレーム数等
の伝送パラメータを変更し、これによってデータの再送
回数の低減を図ることが可能な電灯線通信装置を提供す
ることを目的とする。
In view of the above, the present invention has been made in view of the above-mentioned conventional problems. In a data transmission procedure in which an information frame including data is transmitted from a transmitting side and a response frame is returned from a receiving side, a response from a receiving side is used. Based on the quality of the power line data transmission path, the information frame length transmitted according to this quality and the maximum number of continuous information frames that can be transmitted at one time without waiting for a response from the receiving side It is an object of the present invention to provide a power line communication device capable of changing transmission parameters such as the above and thereby reducing the number of retransmissions of data.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
め、本発明の電灯線通信装置は、電灯線を通じてデータ
の送受信を行う通信手段と、受信したデータの誤り検出
を行う誤り検出手段と、データ送信の際に、通信相手毎
に伝送結果を記憶して蓄積する伝送結果記憶手段と、前
記伝送結果を用いて前記電灯線のデータ伝送路としての
品質を判定する伝送路状態解析手段と、前記伝送路状態
解析手段によって判定されたデータ伝送路の品質に基づ
いて、送信データのフレーム長、及び一度に連続して送
信し得る最大連続フレーム数のうち少なくとも1つを含
む伝送パラメータを決定する伝送パラメータ決定手段
と、前記伝送パラメータを参照して送信データのフレー
ムを生成するフレーム生成手段と、前記フレームに誤り
検出符号を付加する誤り検出符号生成付加手段と、デー
タ送信に対して受信側からの応答がないことを検知する
無応答判定手段とを備えている。
To achieve the above object, a power line communication device according to the present invention comprises a communication unit for transmitting and receiving data through a power line, and an error detection unit for detecting an error in received data. A transmission result storing means for storing and storing a transmission result for each communication partner at the time of data transmission, and a transmission path state analyzing means for determining a quality of the power line as a data transmission path using the transmission result. Determining a transmission parameter including at least one of a frame length of transmission data and a maximum number of consecutive frames that can be transmitted at one time based on the quality of the data transmission path determined by the transmission path state analyzing means. Transmission parameter determination means, frame generation means for generating a frame of transmission data with reference to the transmission parameters, and adding an error detection code to the frame And Ri code generating adding means, and a no-response determination means for detecting that there is no response from the receiving side for the data transmission.

【0008】本発明によれば、データ伝送路の品質に基
づいて、送信データのフレーム長、及び一度に連続して
送信し得る最大連続フレーム数のうち少なくとも1つを
含む伝送パラメータを決定し、この伝送パラメータを参
照して送信データのフレームを生成して送信している。
例えば、データ伝送路の品質が良ければ、送信データの
フレーム長を長く、かつ最大連続フレーム数を多くし、
データ伝送路の品質が悪ければ、送信データのフレーム
長を短く、かつ最大連続フレーム数を少なくし、これに
よってデータの伝送効率の向上と再送回数の低減を図っ
ている。
According to the present invention, a transmission parameter including at least one of a frame length of transmission data and a maximum number of consecutive frames that can be transmitted at one time is determined based on the quality of a data transmission path. The transmission data frame is generated and transmitted with reference to the transmission parameters.
For example, if the quality of the data transmission path is good, increase the frame length of the transmission data and increase the maximum number of continuous frames,
If the quality of the data transmission path is poor, the frame length of the transmission data is shortened and the maximum number of continuous frames is reduced, thereby improving the data transmission efficiency and reducing the number of retransmissions.

【0009】一実施形態では、送信データに誤り訂正符
号化を施す符号化手段と、誤り訂正符号化された受信デ
ータを復号する復号手段を更に備え、前記パラメータ決
定手段によって決定される伝送パラメータが、前記符号
化手段における符号化の有無、符号の種類、符号化率の
うちの少なくとも1つを含む。
In one embodiment, the apparatus further comprises coding means for performing error correction coding on transmission data, and decoding means for decoding received data subjected to error correction coding, wherein the transmission parameter determined by the parameter determination means is , At least one of the presence or absence of encoding in the encoding means, the type of code, and the encoding rate.

【0010】例えば、データ伝送路の品質が良ければ、
符号化をせず、冗長度の少ない符号の種類を選択し、符
号化率を小さくし、データ伝送路の品質が悪ければ、符
号化を行い、冗長度の多い符号の種類を選択し、符号化
率を大きくする。これによって、データの伝送効率の更
なる向上と再送回数の更なる低減を図ることができる。
For example, if the quality of the data transmission path is good,
Without encoding, select the type of code with low redundancy, reduce the coding rate, if the quality of the data transmission path is poor, perform encoding, select the type of code with high redundancy, select the code Increase the conversion rate. As a result, it is possible to further improve the data transmission efficiency and further reduce the number of retransmissions.

【0011】一実施形態では、各伝送毎に、前記伝送結
果記憶手段に記憶される伝送結果の種類は、送信データ
が受信側に誤りなく伝送されたことを示す情報と、送信
データに誤りが存在したこと、あるいは誤りの存在する
程度を示す情報と、受信側からの応答データに誤りが存
在したこと、あるいは誤りの存在する程度を示す情報
と、データの送信に対して受信側からの応答がなかった
ことを示す情報である。
In one embodiment, for each transmission, the type of transmission result stored in the transmission result storage means includes information indicating that the transmission data has been transmitted to the receiving side without error, and an error in the transmission data. Information indicating the existence or the extent of the error, information indicating the existence of an error in the response data from the receiving side, or the degree of the error, and the response from the receiving side to the data transmission Is information indicating that there was no.

【0012】この様な伝送結果に基づいて、データ伝送
路の品質を正確に判定することができる。
The quality of the data transmission path can be accurately determined based on such a transmission result.

【0013】一実施形態では、前記伝送結果記憶手段に
記憶される伝送結果の種類には、予め定められたそれぞ
れの点数が割り当てられ、前記伝送路状態解析手段は、
前記伝送結果記憶手段に記憶されている過去の伝送結果
に対応した前記点数を利用して演算を行い、前記演算の
結果に基づいてデータ伝送路の品質を判定する。
In one embodiment, a predetermined score is assigned to the type of the transmission result stored in the transmission result storage means, and the transmission path state analysis means includes:
An operation is performed using the score corresponding to the past transmission result stored in the transmission result storage means, and the quality of the data transmission path is determined based on the result of the operation.

【0014】この様に伝送結果の種類にそれぞれの点数
を割り当てることによって、データ伝送路の品質の判定
を簡単化することができる。
By allocating each score to the type of transmission result in this way, it is possible to simplify the determination of the quality of the data transmission path.

【0015】一実施形態では、前記伝送路状態解析手段
による演算は、過去の複数の伝送結果に対応したそれぞ
れの点数から単位伝送当たりの平均点数を求めるための
演算である。
In one embodiment, the calculation by the transmission path state analyzing means is a calculation for obtaining an average number of points per unit transmission from respective points corresponding to a plurality of past transmission results.

【0016】この様に過去の伝送結果の履歴を参照すれ
ば、データ伝送路の品質をより確実に判定することがで
きる。
By referring to the history of the transmission results in the past, the quality of the data transmission path can be determined more reliably.

【0017】一実施形態では、前記伝送路状態解析手段
による演算は、伝送が行われてからの経過時間によって
重み付けがなされる加重平均演算であり、時間的に新し
い伝送結果に対応する前記点数ほど重みが大きい。
In one embodiment, the calculation by the transmission path state analysis means is a weighted average calculation weighted by the elapsed time since the transmission was performed. Weight is large.

【0018】この様に時間的に新しい伝送結果に対応す
る点数ほど重みを大きくすることによって、データ伝送
路の品質をより正確に判定することができる。
As described above, the quality of the data transmission path can be determined more accurately by increasing the weight as the score corresponding to the temporally new transmission result.

【0019】[0019]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0020】(実施形態1)図1は、本発明の電灯線通
信装置の実施形態1を示すブロック図である。この電灯
線通信装置は、送信装置及び受信装置兼用であり、送信
装置として動作する場合は、情報フレームを送信して、
受信装置からの応答フレームを受信し、受信装置として
動作する場合は、送信装置からの情報フレームを受信し
て、応答フレームを送信する。
(Embodiment 1) FIG. 1 is a block diagram showing Embodiment 1 of a power line communication device according to the present invention. This power line communication device is also used as a transmission device and a reception device, and when operating as a transmission device, transmits an information frame,
When receiving a response frame from the receiving device and operating as a receiving device, the information frame from the transmitting device is received and the response frame is transmitted.

【0021】本実施形態の電灯線通信装置の送信装置と
しての概略動作は次の通りである。
The general operation of the power line communication device of the present embodiment as a transmission device is as follows.

【0022】フレーム構成部1は、送信データを入力
し、この送信データを含む情報フレームを形成する。ま
た、フレーム構成部1は、例えば情報フレームの長さ、
受信側からの応答を待たずに一度に連続して送信し得る
最大連続情報フレーム数等を示す伝送パラメータを伝送
制御部9から入力し、この伝送パラメータに基づいて少
なくとも1つの情報フレーム(1つの情報フレーム又は
最大連続情報フレーム数以下の連続する各情報フレー
ム)を構成する。フレーム構成部1によって構成された
情報フレームは、誤り検出符号付加部2に出力される。
The frame forming unit 1 receives transmission data and forms an information frame including the transmission data. In addition, the frame configuration unit 1 has, for example,
A transmission parameter indicating the maximum number of continuous information frames that can be transmitted at one time without waiting for a response from the receiving side is input from the transmission control unit 9 and at least one information frame (one (Information frames or continuous information frames equal to or less than the maximum number of continuous information frames). The information frame configured by the frame configuration unit 1 is output to the error detection code addition unit 2.

【0023】誤り検出符号付加部2は、フレーム構成部
1からの各情報フレーム毎に、誤り検出符号を計算して
求め、この誤り検出符号を情報フレームに組み入れて、
この情報フレームを変調部3に出力する。
The error detecting code adding section 2 calculates and finds an error detecting code for each information frame from the frame forming section 1 and incorporates this error detecting code into the information frame.
This information frame is output to modulation section 3.

【0024】変調部3は、誤り検出符号付加部2からの
情報フレームに対して変調を施し、変調された信号を電
灯線結合部4に出力する。電灯線結合部4は、電灯線
(図示せず)と接続されており、変調部3からの変調さ
れた信号を電灯線に重畳する。また、変調部3は、1つ
の情報フレームの変調が終了した時点で、無応答判定部
5にタイミング信号を出力する。
The modulation section 3 modulates the information frame from the error detection code adding section 2 and outputs a modulated signal to the power line coupling section 4. The power line coupling unit 4 is connected to a power line (not shown), and superposes a modulated signal from the modulation unit 3 on the power line. Further, the modulation unit 3 outputs a timing signal to the no-response determination unit 5 when the modulation of one information frame is completed.

【0025】電灯線結合部4は、電灯線上に重畳されて
いる変調された信号を抽出し、復調部6に出力する。復
調部6は、該変調された信号を復調し、受信側からの応
答フレームを再生する。誤り検出部7は、復調された応
答フレームを入力し、該応答フレームに含まれるデータ
の誤りを検出するための演算を行い、該応答フレームの
データ誤りの有無を示すデータを受信内容解析部8、伝
送制御部9及び伝送結果記憶部10に出力し、応答フレ
ームのデータを受信内容解析部8に出力する。
The power line coupling unit 4 extracts the modulated signal superimposed on the power line and outputs it to the demodulation unit 6. The demodulation unit 6 demodulates the modulated signal and reproduces a response frame from the receiving side. The error detection unit 7 receives the demodulated response frame, performs an operation for detecting an error in data included in the response frame, and outputs data indicating the presence or absence of a data error in the response frame to the reception content analysis unit 8. , And outputs the data of the response frame to the reception content analysis unit 8.

【0026】無応答判定部5は、変調回路3からのタイ
ミング信号を入力すると、このタイミング信号の入力時
点から一定時間、情報フレームの送信に対する受信側か
らの応答フレームがあるか否かを復調部6の復調出力に
基づいて判定する。受信側からの応答フレームがないと
判定された場合、無応答判定部5は、伝送制御部9及び
伝送結果記憶部10に受信側からの応答が無いことを示
すデータを出力する。
Upon receiving the timing signal from the modulation circuit 3, the no-response determining unit 5 determines whether there is a response frame from the receiving side to the transmission of the information frame for a certain period of time after the timing signal is input. 6 is determined based on the demodulated output. When it is determined that there is no response frame from the receiving side, the no-response determining unit 5 outputs data indicating that there is no response from the receiving side to the transmission control unit 9 and the transmission result storage unit 10.

【0027】受信内容解析部8は、誤り検出部7によっ
て応答フレームに含まれるデータの誤りが検出されなけ
れば、該応答フレームの内容を解析し、応答フレームの
内容が肯定応答(以下ACKと記す)及び否定応答(以
下NAKと記す)のいずれであるかを示すデータを伝送
制御部9および伝送結果記憶部10に出力する。
If the error detection unit 7 does not detect an error in the data included in the response frame, the received content analysis unit 8 analyzes the content of the response frame and determines that the content of the response frame is an acknowledgment (hereinafter referred to as ACK). ) And a negative acknowledgment (hereinafter referred to as NAK) are output to the transmission control unit 9 and the transmission result storage unit 10.

【0028】伝送結果記憶部10は、誤り検出部7から
のデータ(応答フレームに含まれるデータの誤りの有無
を示す)、受信内容解析部8からのデータ(一定期間あ
るいは一定回数の送信に対する応答フレームの内容を示
す)、及び無応答判定部5からのデータ(無応答を示
す)を記憶する。伝送路状態判定部11は、伝送結果記
憶部10内のデータ(応答フレームに含まれるデータの
誤りの有無、一定期間あるいは一定回数の送信に対する
応答フレームの内容、及び無応答を示す)を利用して電
灯線のデータ伝送路としての品質を判定し、伝送制御部
9に出力する。
The transmission result storage unit 10 stores data from the error detection unit 7 (indicating the presence or absence of an error in the data included in the response frame) and data from the reception content analysis unit 8 (response to a certain period or a certain number of transmissions). (Shows the contents of the frame) and data (shows no response) from the no-response determination unit 5. The transmission path state determination unit 11 uses the data in the transmission result storage unit 10 (indicating the presence or absence of an error in the data included in the response frame, the content of the response frame for a certain period or a certain number of transmissions, and no response). Then, the quality of the power line as a data transmission path is determined and output to the transmission control unit 9.

【0029】伝送制御部9は、電灯線のデータ伝送路と
しての品質に基づいて、情報フレーム長や受信側からの
応答を待たずに一度に連続して送信し得る最大連続情報
フレーム数等を示す伝送パラメータを決定し、この伝送
パラメータをフレーム構成部1に出力する。また、伝送
制御部9は、誤り検出部7によって応答フレームに含ま
れるデータの誤りが検出されたり、無応答判定部5によ
って無応答が判定されたり、受信内容解析部8によって
応答フレームのNAKが抽出されると、送信データの再
送を決定して、この結果を示すデータをフレーム構成部
1に出力する。これに応答してフレーム構成部1は、送
信データの再送を判定し、かつ伝送制御部9からの伝送
パラメータに基づいて少なくとも1度は既に送信された
送信データを含む情報フレームを構成し、この情報フレ
ームを変調部3に出力して、該送信データを再送する。
The transmission control unit 9 determines the information frame length and the maximum number of continuous information frames that can be transmitted continuously at one time without waiting for a response from the receiving side, based on the quality of the power line as a data transmission path. The transmission parameter to be indicated is determined, and the transmission parameter is output to the frame configuration unit 1. In addition, the transmission control unit 9 detects an error in the data included in the response frame by the error detection unit 7, determines that there is no response by the no-response determination unit 5, and determines whether the NAK of the response frame is When the data is extracted, retransmission of the transmission data is determined, and data indicating the result is output to the frame configuration unit 1. In response to this, the frame composing unit 1 determines retransmission of the transmission data, and composes an information frame including the transmission data that has been transmitted at least once based on the transmission parameter from the transmission control unit 9. The information frame is output to the modulator 3 and the transmission data is retransmitted.

【0030】本実施形態の電灯線通信装置の受信装置と
しての概略動作は次の通りである。
The schematic operation of the power line communication device of the present embodiment as a receiving device is as follows.

【0031】電灯線結合部4は、電灯線上に重畳されて
いる変調された信号を抽出し、復調部6に出力する。復
調部6は、該変調された信号を復調し、送信側からの情
報フレームを再生して出力する。誤り検出部7は、復調
された情報フレームを入力し、該情報フレームに含まれ
るデータの誤りを検出するための演算を行い、情報フレ
ームのデータ誤りの有無を示すデータを受信内容解析部
8、伝送制御部9及び伝送結果記憶部10に出力し、情
報フレームのデータを受信内容解析部8に出力する。
The power line coupling unit 4 extracts the modulated signal superimposed on the power line and outputs the signal to the demodulation unit 6. The demodulation unit 6 demodulates the modulated signal, reproduces and outputs an information frame from the transmission side. The error detection unit 7 receives the demodulated information frame, performs an operation for detecting an error in data included in the information frame, and outputs data indicating the presence or absence of a data error in the information frame to the reception content analysis unit 8. The data is output to the transmission control unit 9 and the transmission result storage unit 10, and the data of the information frame is output to the reception content analysis unit 8.

【0032】受信内容解析部8は、誤り検出部7によっ
て情報フレームに含まれるデータの誤りが検出されなけ
れば、該情報フレームのデータを出力する。
If the error detector 7 does not detect an error in the data contained in the information frame, the received content analyzer 8 outputs the data of the information frame.

【0033】伝送制御部9は、誤り検出部7によって情
報フレームに含まれるデータの誤りが検出されなけれ
ば、ACKを示す応答フレームを形成し、また情報フレ
ームに含まれるデータの誤りが検出されれば、NAKを
示す応答フレームを形成し、この応答フレームを変調部
3に出力する。
If the error detection unit 7 does not detect an error in the data included in the information frame, the transmission control unit 9 forms a response frame indicating ACK, and if the error in the data included in the information frame is detected. For example, a response frame indicating NAK is formed, and this response frame is output to the modulation unit 3.

【0034】変調部3は、誤り検出符号付加部2からの
応答フレームに対して変調を施し、変調された信号を電
灯線結合部4に出力する。
The modulating section 3 modulates the response frame from the error detecting code adding section 2 and outputs a modulated signal to the power line coupling section 4.

【0035】図2は、図1に示した構成の2台の電灯線
通信装置の接続状態を示すものである。図2において、
一方の電灯線通信装置100は送信側として動作し、他
方の電灯線通信装置200は受信側として動作する。送
信側の電灯線通信装置100においては、情報フレーム
を送信して、受信装置からの応答フレームを受信するの
に必要な各ブロックが記されており、図1の装置と同様
の構成となっている。また、受信側の電灯線通信装置1
00においては、送信装置からの情報フレームを受信し
て、応答フレームを送信するのに必要な各ブロックの
み、つまり無応答判定部5、伝送結果記憶部10及び伝
送路状態判定部11を除く他の各ブロックが記されてい
る。
FIG. 2 shows a connection state of two power line communication devices having the configuration shown in FIG. In FIG.
One power line communication device 100 operates as a transmitting side, and the other power line communication device 200 operates as a receiving side. In the power line communication device 100 on the transmission side, blocks necessary for transmitting an information frame and receiving a response frame from the reception device are described, and have the same configuration as the device of FIG. I have. Also, the power line communication device 1 on the receiving side
At 00, only the blocks necessary to receive the information frame from the transmitting device and transmit the response frame, that is, except for the no-response determining unit 5, the transmission result storage unit 10, and the transmission path state determining unit 11, Each block is described.

【0036】また、図3は、送信側の電灯線通信装置1
00の動作を示すフローチャートであり、図4は、受信
側の電灯線通信装置200の動作を示すフローチャート
である。これらのフローチャートを参照して、送信側の
電灯線通信装置100の動作及び受信側の電灯線通信装
置200の動作を更に詳しく説明する。
FIG. 3 shows a power line communication device 1 on the transmitting side.
FIG. 4 is a flowchart showing the operation of the power line communication device 200 on the receiving side. The operation of the power line communication device 100 on the transmission side and the operation of the power line communication device 200 on the reception side will be described in more detail with reference to these flowcharts.

【0037】まず、図3に示すフローチャートに従っ
て、送信側の電灯線通信装置100の動作を述べる。送
信側の電灯線通信装置100において、フレーム構成部
1は、送信データの有無を判定しており(S1)、送信
データ有り(S1,Yes)となるまで待機する。送信デ
ータ有り(S1,Yes)となると、フレーム構成部1
は、伝送制御部9からのデータに基づいて、その送信デ
ータの送信が初回の送信であるか、又は伝送誤り発生に
よる再送であるかを判定する(S2)。先に述べた様
に、伝送制御部9は、誤り検出部7によって応答フレー
ムに含まれるデータの誤りが検出されたり、無応答判定
部5によって無応答が判定されたり、受信内容解析部8
によって応答フレームのNAKが抽出されると、送信デ
ータの再送を決定する。これに応答してフレーム構成部
1は、送信データの再送を判定する。
First, the operation of the power line communication device 100 on the transmitting side will be described with reference to the flowchart shown in FIG. In the power line communication device 100 on the transmitting side, the frame composing unit 1 determines the presence or absence of transmission data (S1), and waits until transmission data is present (S1, Yes). When there is transmission data (S1, Yes), the frame forming unit 1
Determines whether the transmission of the transmission data is the first transmission or retransmission due to the occurrence of a transmission error based on the data from the transmission control unit 9 (S2). As described above, the transmission control unit 9 controls the error detection unit 7 to detect an error in the data included in the response frame, the non-response determination unit 5 to determine no response, the reception content analysis unit 8
Then, when the NAK of the response frame is extracted, retransmission of transmission data is determined. In response to this, the frame configuration unit 1 determines retransmission of the transmission data.

【0038】初回送信の場合、伝送制御部9は、伝送路
状態判定部11から電灯線のデータ伝送路としての品質
に基づいて、例えば情報フレーム長、受信側からの応答
を待たずに一度に連続して送信し得る最大連続情報フレ
ーム数等を示す伝送パラメータを決定する(S3)。こ
の伝送パラメータの決定に際し、電灯線のデータ伝送路
としての品質が悪いと判定されている場合は、電灯線上
のデータ伝送期間とノイズ発生期間が重なる確率を低く
して、情報フレームの再送の発生頻度を低減するため
に、例えば情報フレーム長の短いものが選択され、最大
連続情報フレーム数は少なく設定される。
In the case of the initial transmission, the transmission control unit 9 determines, for example, the information frame length and the information frame length at once without waiting for a response from the receiving side based on the quality of the power line as the data transmission line from the transmission line state determining unit 11. A transmission parameter indicating the maximum number of continuous information frames that can be continuously transmitted is determined (S3). When determining the transmission parameters, if it is determined that the quality of the power line as a data transmission path is poor, the probability that the data transmission period on the power line and the noise generation period overlap is reduced to reduce the occurrence of information frame retransmission. In order to reduce the frequency, for example, a short information frame length is selected, and the maximum number of continuous information frames is set small.

【0039】情報フレームの再送の場合は、伝送制御部
9は、情報フレームの前回の伝送で使用した伝送パラメ
ータを参照し、その設定値よりも短い情報フレーム長、
少ない最大連続情報フレーム数を再設定する(S4)。
In the case of retransmission of the information frame, the transmission control unit 9 refers to the transmission parameter used in the previous transmission of the information frame, and sets the information frame length shorter than the set value.
A small maximum number of continuous information frames is reset (S4).

【0040】フレーム構成部1は、伝送制御部9が決定
した情報フレーム長を越えない範囲で、送信データを情
報フレームに組み込む。また、フレーム構成部1は、伝
送制御部9が決定した最大連続情報フレーム数を越えな
い範囲で、送信データの長さと情報フレーム長の関係か
ら、必要に応じて情報フレームを複数の情報フレームに
分割する(S5)。
The frame forming unit 1 incorporates transmission data into an information frame within a range not exceeding the information frame length determined by the transmission control unit 9. In addition, the frame forming unit 1 converts the information frame into a plurality of information frames as necessary based on the relationship between the transmission data length and the information frame length within a range not exceeding the maximum number of continuous information frames determined by the transmission control unit 9. It is divided (S5).

【0041】尚、一度に連続して送信し得る各情報フレ
ームに送信データの全体を組み込むことができなけれ
ば、送信データを複数に分割し、分割された各データ部
分毎に、データ部分を一度に連続して送信し得る各情報
フレームに組み込んで送信することになる。
If the entire transmission data cannot be incorporated into each information frame that can be transmitted continuously at one time, the transmission data is divided into a plurality of parts, and the data part is once divided for each divided data part. In each information frame which can be continuously transmitted.

【0042】誤り検出符号付加部2は、フレーム構成部
1からの各情報フレーム毎に、誤り検出符号を算出して
求め、この誤り符号を情報フレームに付加する(S
6)。誤り検出用の符号としては、例えばCRC符号を
用いる。
The error detecting code adding section 2 calculates and finds an error detecting code for each information frame from the frame composing section 1 and adds this error code to the information frame (S
6). As a code for error detection, for example, a CRC code is used.

【0043】変調部3は、誤り検出符号を付加された情
報フレームに対して変調を施し(S7)、変調された信
号を電灯線結合部4を介して電灯線300へと送出す
る。ここで用いられる変調方式としては、電灯線通信で
問題となるノイズや歪み等の影響を受け難い方式が好ま
しく、例えばスペクトラム拡散変調方式が良い。
The modulator 3 modulates the information frame to which the error detection code has been added (S7), and sends the modulated signal to the power line 300 via the power line coupler 4. As a modulation method used here, a method that is not easily affected by noise, distortion, or the like, which is a problem in power line communication, is preferable. For example, a spread spectrum modulation method is preferable.

【0044】無応答判定部5は、変調部3からの変調信
号の出力終了を示すタイミング信号の入力時点から、該
無応答判定部5に内蔵のタイマ回路によって一定時間を
計時し、この一定時間内に応答フレームがあるか否かを
復調部6の復調出力に基づいて判定する(S8)。応答
フレームがなければ(S8,Yes)、無応答判定部5
は、無応答を示すデータを伝送結果記憶部10に記録す
る(S10)。この後にS14へと移る。
The non-response determining unit 5 counts a predetermined time from a time point when a timing signal indicating the end of the output of the modulation signal from the modulation unit 3 is input by a timer circuit built in the non-response determining unit 5. Is determined based on the demodulation output of the demodulation unit 6 (S8). If there is no response frame (S8, Yes), the non-response determination unit 5
Records data indicating no response in the transmission result storage unit 10 (S10). Thereafter, the process proceeds to S14.

【0045】応答フレームがあれば(S8,No)、該応
答フレームの復調が復調部6によって行われる(S
9)。
If there is a response frame (S8, No), the response frame is demodulated by the demodulation unit 6 (S8).
9).

【0046】誤り検出部7は、復調された応答フレーム
に含まれるデータの誤りを検出し(S11)、データ誤
りが検出された場合は(S11,Yes)、応答フレーム
の伝送エラーを示すデータを伝送結果記憶部10に記録
する(S13)。この後にS14へと移る。
The error detector 7 detects an error in the data contained in the demodulated response frame (S11). If a data error is detected (S11, Yes), the error detector 7 generates data indicating the transmission error of the response frame. It is recorded in the transmission result storage unit 10 (S13). Thereafter, the process proceeds to S14.

【0047】また、データ誤りが検出されなかった場合
は(S11,No)、受信内容解析部8は、応答フレーム
のデータを解析し、受信側からの応答がACK及びNA
Kのいずれを示すのかを判別する(S12)。
If no data error has been detected (S11, No), the received content analysis unit 8 analyzes the data of the response frame and determines whether the response from the receiving side is ACK or NA.
It is determined which of K is indicated (S12).

【0048】受信側からの応答がACKと判定された場
合は(S12,Yes)、送信側装置100から送信した
情報フレームが誤りなく受信側に届いたものと判断でき
るので、受信内容解析部8は、情報フレームの正常伝送
を示すデータを伝送結果記憶部10に記録する(S1
5)。この後にS14へと移る。
If the response from the receiving side is determined to be ACK (S12, Yes), it is possible to determine that the information frame transmitted from the transmitting side device 100 has reached the receiving side without error, so that the received content analysis unit 8 Records data indicating normal transmission of the information frame in the transmission result storage unit 10 (S1).
5). Thereafter, the process proceeds to S14.

【0049】受信側からの応答がNAKと判定された場
合は(S12,No)、送信側装置100から送信した情
報フレームが誤って受信側に届いたものと判断できるの
で、情報フレームの伝送エラーを示すデータを伝送結果
記憶部10に記録する(S16)。この後にS14へと
移る。
If the response from the receiving side is determined to be NAK (S12, No), it can be determined that the information frame transmitted from the transmitting side device 100 has arrived at the receiving side by mistake, so that the information frame transmission error Is recorded in the transmission result storage unit 10 (S16). Thereafter, the process proceeds to S14.

【0050】これまでの説明から明らかな様に、情報フ
レームの1回の伝送に際し、無応答、応答フレームの伝
送エラー、情報フレームの正常伝送、及び情報フレーム
の伝送エラーのいずれかの伝送結果が伝送結果記憶部1
0に記憶されたことになる。この情報フレームの伝送を
行う以前の一定回数あるいは一定時間内の各伝送結果
も、伝送結果記憶部10には同様の手順で時系列に記憶
されている。
As is apparent from the above description, in one transmission of the information frame, any one of the transmission results of no response, transmission error of the response frame, normal transmission of the information frame, and transmission error of the information frame is obtained. Transmission result storage unit 1
0 is stored. Each transmission result within a certain number of times or within a certain time before the transmission of this information frame is also stored in the transmission result storage unit 10 in a time series in the same procedure.

【0051】伝送路状態判定部11は、伝送結果記憶部
10に記憶されている今回の伝送結果と上記過去の伝送
結果を利用して、データ伝送路の品質を推定するための
演算を行い、この演算により求められたデータ伝送路の
品質を最新のものとして記憶する(S14)。この後に
S1へと戻る。伝送路の品質を推定するための演算につ
いては後述する。
The transmission path state determination unit 11 performs an operation for estimating the quality of the data transmission path by using the current transmission result stored in the transmission result storage unit 10 and the past transmission result, The quality of the data transmission path obtained by this calculation is stored as the latest one (S14). Thereafter, the process returns to S1. The calculation for estimating the quality of the transmission path will be described later.

【0052】以上の手順によって、1回の情報フレーム
の伝送に際し、最新の伝送路の品質を把握することがで
き、次回以降の伝送に際し、伝送制御部9は、伝送路状
態判定部11からの最新の伝送路の品質に基づいて最適
なフレーム長、最大連続情報フレーム数を選択すること
が可能となる。
According to the above procedure, the quality of the latest transmission path can be ascertained in one transmission of an information frame. In the next and subsequent transmissions, the transmission control unit 9 transmits It is possible to select the optimum frame length and the maximum number of continuous information frames based on the latest quality of the transmission path.

【0053】次に、図4に示すフローチャートに従っ
て、受信側の電灯線通信装置200の動作を述べる。受
信側の電灯線通信装置200において、電灯線結合部4
は、電灯線300上に変調された信号があるか否かを判
定し(S20)、該信号有り(S20,Yes)となるま
で待機する。変調された信号有り(S20,Yes)とな
ると、復調部6は、該変調された信号を復調し、送信側
からの情報フレームを再生し(S21)、この情報フレ
ームを誤り検出部7に出力する。
Next, the operation of the power line communication device 200 on the receiving side will be described with reference to the flowchart shown in FIG. In the power line communication device 200 on the receiving side, the power line coupling unit 4
Determines whether there is a modulated signal on the power line 300 (S20), and waits until the signal is present (S20, Yes). If there is a modulated signal (S20, Yes), the demodulation unit 6 demodulates the modulated signal, reproduces an information frame from the transmission side (S21), and outputs this information frame to the error detection unit 7. I do.

【0054】誤り検出部7は、情報フレームに含まれる
データの誤りを検出する(S22)。データの誤りが検
出された場合は(S22,Yes)、受信内容解析部8
は、情報フレームのデータを破棄する(S23b)。こ
のとき、伝送制御部9は、誤り検出部7から情報フレー
ムの伝送エラーを示すデータを入力し、送信側に返され
るNAKを示すデータを生成する(S25)。
The error detector 7 detects an error in the data contained in the information frame (S22). If a data error is detected (S22, Yes), the received content analysis unit 8
Discards the data of the information frame (S23b). At this time, the transmission control unit 9 receives data indicating a transmission error of the information frame from the error detection unit 7 and generates data indicating a NAK to be returned to the transmission side (S25).

【0055】データの誤りが検出されなかった場合は
(S22,No)、受信内容解析部8は、受信された情報
フレームのデータを出力する(S23a)。また、伝送
制御部9は、誤り検出部7から情報フレームの正常伝送
を示すデータを入力し、送信側に返されるACKを示す
データを生成する(S24)。
If no data error is detected (S22, No), the received content analysis unit 8 outputs the data of the received information frame (S23a). Further, the transmission control unit 9 receives data indicating normal transmission of the information frame from the error detection unit 7 and generates data indicating ACK returned to the transmission side (S24).

【0056】伝送制御部9によって先に生成されたAC
KまたはNAKのいずれかを示すデータは、フレーム構
成部1に出力され、ここで応答フレームに組み込まれ
(S26)、更に誤り検出符号付加部2によって該応答
フレームに誤り検出符号が付加される(S27)。この
誤り検出符号が付加された応答フレームは、変調部3に
よって変調されてから、電灯線結合部4を介して電灯線
300へと送出される(S28)。
The AC previously generated by the transmission control unit 9
The data indicating either K or NAK is output to the frame forming unit 1 and is incorporated into the response frame (S26), and the error detection code adding unit 2 adds an error detection code to the response frame (S26). S27). The response frame to which the error detection code is added is modulated by the modulation unit 3 and then transmitted to the power line 300 via the power line coupling unit 4 (S28).

【0057】以上で、情報フレームの受信およびそれに
対する応答が完了したことになり、S20に戻って次の
受信を待つ。
Thus, the reception of the information frame and the response thereto have been completed, and the process returns to S20 to wait for the next reception.

【0058】次に、伝送路状態判定部11において行わ
れる演算について説明する。伝送結果記憶部10には、
連続する少なくとも1つの情報フレームを1回伝送する
度に、無応答、応答フレームの伝送エラー、情報フレー
ムの正常伝送、及び情報フレームの伝送エラーのいずれ
かの伝送結果が記憶され、これによって一定回数あるい
は一定時間内の各伝送結果が記憶されている。
Next, the calculation performed in the transmission path state determination unit 11 will be described. In the transmission result storage unit 10,
Each time at least one continuous information frame is transmitted once, a transmission result of one of a no-response, a transmission error of a response frame, a normal transmission of an information frame, and a transmission error of an information frame is stored. Alternatively, each transmission result within a fixed time is stored.

【0059】これらの4種類の伝送結果を比較すると、
まず情報フレームの正常伝送の場合は、送信側からの情
報フレーム、受信側からの応答フレームを共に誤りなく
伝送できたことになり、電灯線のデータ伝送路としての
品質は最も良いと推定される。
When these four types of transmission results are compared,
First, in the case of normal transmission of an information frame, both the information frame from the transmission side and the response frame from the reception side were transmitted without error, and the quality of the power line data transmission path is estimated to be the best. .

【0060】また、無応答の場合は、情報フレーム、応
答フレームの信号のうち少なくとも一方が、復調不可能
な程度まで、データ伝送路において劣化したものと考え
られるので、データ伝送路の品質は最も悪いと推定され
る。
In the case of no response, it is considered that at least one of the information frame signal and the response frame signal has deteriorated in the data transmission path to such an extent that demodulation cannot be performed. Presumed to be bad.

【0061】次に、情報フレームの伝送エラーと応答フ
レームの伝送エラーを比較する。情報フレームの伝送エ
ラーが発生するのは、受信側で情報フレームに誤りが検
出され、かつ送信側で応答フレームに誤りが検出されな
かったときである。これに対して、応答フレームの伝送
エラーが発生するのは、受信側での情報フレームの誤り
検出結果に関係なく、送信側で応答フレームに誤りが検
出されたときであり、情報フレーム及び応答フレームの
両方共に誤りがある場合も、伝送結果が応答フレームの
伝送エラーとなり得る。従って、情報フレームの伝送エ
ラーのときの方が、伝送路の品質が良い状態となってい
る確率は高いと推定される。
Next, the transmission error of the information frame and the transmission error of the response frame are compared. An information frame transmission error occurs when an error is detected in the information frame on the receiving side and no error is detected in the response frame on the transmitting side. On the other hand, the transmission error of the response frame occurs when an error is detected in the response frame on the transmission side regardless of the error detection result of the information frame on the reception side. If there is an error in both, the transmission result may be a transmission error of the response frame. Therefore, it is estimated that the probability that the quality of the transmission path is in a good state is higher in the case of an information frame transmission error.

【0062】この様に各伝送結果によって推定されるそ
れぞれの伝送路の品質に順位がついたので、各伝送結果
に対してそれぞれの伝送路品質ポイントを割り当てる。
例えば、情報フレームの正常伝送に対して4ポイント、
情報フレームの伝送エラーに対して3ポイント、応答フ
レームの伝送エラーに対して2ポイント、無応答に対し
て1ポイントを割り当てておき、連続する少なくとも1
つの情報フレームを1回伝送する度に、その伝送結果の
ポイントを伝送結果記憶部10に記憶する。そして、伝
送制御部9は、過去の一定回数あるいは一定時間内の各
伝送結果のポイントから情報フレーム伝送の1回当たり
の平均ポイントを算出し、この平均ポイント、及び新た
な伝送に伴う該平均ポイントの変動に応じて、現在の伝
送路の品質を判定する。上述した各伝送結果に対するそ
れぞれのポイントの割り当ての場合は、平均ポイントが
大きい程伝送路品質が良いことがわかる。
Since the quality of each transmission path estimated based on each transmission result is ranked as described above, each transmission path quality point is assigned to each transmission result.
For example, 4 points for normal transmission of an information frame,
At least three points are allocated for information frame transmission errors, two points for response frame transmission errors, and one point for no response.
Each time one information frame is transmitted, the point of the transmission result is stored in the transmission result storage unit 10. Then, the transmission control unit 9 calculates an average point per information frame transmission from points of each transmission result within a predetermined number of times or within a predetermined time in the past, and calculates the average point and the average point associated with a new transmission. , The quality of the current transmission path is determined. In the case of assigning each point to each transmission result described above, it can be seen that the larger the average point, the better the transmission path quality.

【0063】尚、伝送結果として伝送エラーの程度、つ
まりフレーム内のデータのエラーの程度を求める場合
は、伝送エラーの程度に応じてポイントをより細かく設
定すれば良い。
When the degree of transmission error, that is, the degree of data error in a frame, is obtained as a transmission result, points may be set more finely in accordance with the degree of transmission error.

【0064】また、伝送結果記憶部10は、各伝送結果
を時系列に記憶しているので、上記平均ポイントを算出
する際に、時間的に新しい伝送結果のポイントに対して
大きな加重をかけた加重平均を求めることも可能であ
る。例えば、最新の伝送結果に対するポイントには1を
乗じ、1回前の伝送結果に対するポイントには0.9を
乗じ、2回前の伝送結果に対するポイントには0.8を
乗じるという様な演算を行ってから、一定回数分の各伝
送結果のポイントを集計して加重平均を求めれば、より
正確なデータ伝送路の品質を把握することが可能とな
る。特に、データ伝送路の品質が急激に変化する電灯線
通信においては、伝送効率を維持するためにデータ伝送
路の品質に応じて最適な伝送パラメータ、つまり情報フ
レーム長や最大連続情報フレーム数等を設定することが
必要であり、そのために現時点での正確なデータ伝送路
の品質を知ることが重要であるので、上記のデータ伝送
路の品質の推定は有効である。
Since the transmission result storage unit 10 stores each transmission result in time series, a large weight is applied to a point of a transmission result that is newer in time when calculating the average point. It is also possible to obtain a weighted average. For example, an operation such as multiplying the point for the latest transmission result by 1, multiplying the point for the previous transmission result by 0.9, and multiplying the point for the second previous transmission result by 0.8. After that, if the points of each transmission result for a certain number of times are totaled and a weighted average is calculated, it is possible to grasp the quality of the data transmission path more accurately. Particularly, in power line communication where the quality of the data transmission line changes rapidly, optimal transmission parameters according to the quality of the data transmission line, that is, the information frame length and the maximum number of continuous information frames, etc., are required to maintain the transmission efficiency. Since it is necessary to make settings and it is important to know the correct quality of the data transmission path at the present time, the above estimation of the quality of the data transmission path is effective.

【0065】以上のように、本実施形態によれば、伝送
結果記憶部10に記憶された過去の伝送結果から、正確
なデータ伝送路の品質を推定することが可能であり、最
適な伝送パラメータ、つまりフレーム長や最大連続情報
フレーム数を決定することができる。これによって、デ
ータ伝送路の品質が劣化した場合でも、再送の発生頻度
を低減することができ、データ伝送の効率の低下を抑え
ることができ、また、データ伝送路の品質が良い場合に
は、伝送パラメータの変更によって、伝送効率の向上を
迅速に図ることができる。
As described above, according to the present embodiment, it is possible to accurately estimate the quality of the data transmission path from the past transmission results stored in the transmission result storage unit 10, and to obtain the optimum transmission parameters. That is, the frame length and the maximum number of continuous information frames can be determined. Thereby, even when the quality of the data transmission path is deteriorated, it is possible to reduce the frequency of occurrence of retransmission, suppress a decrease in the efficiency of data transmission, and when the quality of the data transmission path is good, By changing the transmission parameters, the transmission efficiency can be quickly improved.

【0066】尚、本実施形態では、各伝送結果のポイン
トの平均演算によってデータ伝送路の品質を求めている
が、ポイントの時間的変化を近似する近似関数を求め
て、その関数の積分演算、あるいは微分演算などを行う
ことによりデータ伝送路の品質を求めてもよく、データ
伝送路の品質を反映できるいかなるその他の方法によっ
ても本発明の効果は得られる。
In this embodiment, the quality of the data transmission path is obtained by averaging the points of each transmission result. However, an approximation function that approximates the temporal change of the points is obtained, and the integration operation of the function is performed. Alternatively, the quality of the data transmission path may be obtained by performing a differential operation or the like, and the effect of the present invention can be obtained by any other method that can reflect the quality of the data transmission path.

【0067】また、本実施形態においては、2台の電灯
線通信装置を電灯線に接続し、一方を送信側装置、他方
を受信側装置としてデータ通信の動作を説明したが、送
信側装置、受信側装置が通常は同一の機能および構成を
持つので、送信側と受信側が入れ替わったとしても同様
の動作をなし、効果も変わらない。また、3つ以上の電
灯線通信装置が電灯線に接続されている場合は、各電灯
線通信装置においては、通信相手となる他の全ての電灯
線通信装置別に過去の各伝送結果(伝送結果履歴)を伝
送結果記憶部10に記憶し、伝送制御部9が各通信相手
とのそれぞれの伝送結果履歴を利用することにより、同
様の効果を達成する。
In the present embodiment, two power line communication devices are connected to a power line, and one device is a transmitting device and the other device is a receiving device. Since the receiving side device usually has the same function and configuration, the same operation is performed even if the transmitting side and the receiving side are switched, and the effect is not changed. Also, when three or more power line communication devices are connected to the power line, each power line communication device uses a past transmission result (transmission result) for every other power line communication device that is a communication partner. History) is stored in the transmission result storage unit 10, and the same effect is achieved by the transmission control unit 9 using the transmission result history of each communication partner.

【0068】(実施形態2)図5は、本発明の電灯線通
信装置の実施形態2を示すブロック図である。本実施形
態の電灯線通信装置は、図1に示す装置に誤り訂正符号
化部13と誤り訂正復号部12を追加挿入したものであ
る。尚、図5において、図1と同一の作用を果たす部位
には同じ符号を付して説明を省略する。
(Embodiment 2) FIG. 5 is a block diagram showing Embodiment 2 of the power line communication device of the present invention. The power line communication device of the present embodiment is obtained by additionally inserting an error correction encoding unit 13 and an error correction decoding unit 12 into the device shown in FIG. In FIG. 5, the same reference numerals are given to portions that perform the same operations as in FIG. 1, and description thereof will be omitted.

【0069】送信側の電灯線通信装置において、伝送制
御部9は、伝送路状態判定部11からのデータ伝送路の
品質に基づいて誤り符号化を行うか否かを伝送パラメー
タとして求め、この伝送パラメータを訂正符号化部13
に与える。
In the power line communication device on the transmission side, the transmission control unit 9 determines whether or not to perform error coding based on the quality of the data transmission path from the transmission path state determination unit 11 as a transmission parameter. Correction encoding section 13
Give to.

【0070】訂正符号化部13は、伝送パラメータによ
って誤り符号化を行うことが指示されると、検出符号付
加部2からの情報フレームに対して誤り訂正符号処理を
施し、更に誤り符号化有りを示すデータを該情報フレー
ムに含ませ、これによって得られた情報フレームを出力
する。また、訂正符号化部13は、伝送パラメータによ
って誤り符号化を行わないことが指示されると、検出符
号付加部2からの情報フレームに対して誤り訂正符号処
理を施さず、更に誤り符号化無しを示すデータを該情報
フレームに含ませ、この情報フレームを出力する。訂正
符号化部13から出力された情報フレームは、変調部3
によって変調されてから電灯線結合部4に出力される。
When the error encoding is instructed by the transmission parameter, the error encoding unit 13 performs an error correction code process on the information frame from the detection code adding unit 2 and further determines that the error encoding is performed. The indicated data is included in the information frame, and the obtained information frame is output. Further, when it is instructed not to perform the error coding by the transmission parameter, the correction coding unit 13 does not perform the error correction coding process on the information frame from the detection code adding unit 2 and further does not perform the error coding. Is included in the information frame, and the information frame is output. The information frame output from the correction encoding unit 13 is
And then output to the power line coupling unit 4.

【0071】受信側の電灯線通信装置において、誤り訂
正復号部12は、電灯線結合部4から復調部6を介して
情報フレームを入力すると、この情報フレーム内のデー
タに基づいて誤り訂正符号処理が施されているか否かを
判定する。そして、誤り訂正復号部12は、誤り訂正符
号処理が施されているとの判定をなすと、情報フレーム
に対して誤り訂正復号処理を施し、これによって得られ
た情報フレームを誤り検出部7に出力する。また、誤り
訂正復号部12は、誤り訂正符号処理が施されていない
との判定をなすと、情報フレームに対して誤り訂正復号
処理を施さずに、この情報フレームを誤り検出部7に出
力する。
In the power line communication device on the receiving side, when the information frame is input from the power line coupling unit 4 via the demodulation unit 6, the error correction decoding unit 12 performs error correction code processing based on the data in the information frame. Is determined. When the error correction decoding unit 12 determines that the error correction code processing has been performed, the error correction decoding unit 12 performs error correction decoding processing on the information frame, and outputs the obtained information frame to the error detection unit 7. Output. When the error correction decoding unit 12 determines that the error correction code processing has not been performed, the error correction decoding unit 12 outputs the information frame to the error detection unit 7 without performing the error correction decoding processing on the information frame. .

【0072】尚、送信側の電灯線通信装置においては、
実施形態1と同様の処理によってデータ伝送路の品質を
判定している。伝送制御部9は、データ伝送路の品質に
応じて訂正符号化の有無を判定するだけでなく、誤り訂
正処理の符号化率、符号の種類などを伝送パラメータと
して決定することが可能である。訂正符号化部13は、
判定された符号化の有無、決定された符号化率及び符号
の種類に基づいて、情報フレームを符号化したり符号化
せず、符号化するときには情報フレームに対して該符号
化率で該種類の誤り訂正符号処理を施し、更に誤り符号
化の有無、符号化率及び符号の種類を示すデータを情報
フレームに含ませ、この情報フレームを変調部3に出力
する。受信側の電灯線通信装置において、誤り訂正復号
部12は、受信した情報フレームを入力すると、この情
報フレーム内のデータに基づいて誤り訂正符号化の有
無、符号化率及び符号の種類を判定し、誤り訂正符号処
理が施されているときには該符号化率かつ該種類の誤り
訂正符号化に対応する誤り訂正復号処理を情報フレーム
に対して施し、これによって得られた情報フレームを出
力する。
In the power line communication device on the transmitting side,
The quality of the data transmission path is determined by the same processing as in the first embodiment. The transmission control unit 9 can determine not only the presence or absence of correction coding according to the quality of the data transmission path, but also the coding rate of error correction processing, the type of code, and the like as transmission parameters. The correction encoding unit 13
Based on the determined presence / absence of coding, the determined coding rate and code type, the information frame is not coded or not coded. An error correction code process is performed, and data indicating presence / absence of error coding, a coding rate, and a code type is included in an information frame, and the information frame is output to the modulation unit 3. In the power line communication device on the receiving side, when the received information frame is input, the error correction decoding unit 12 determines presence / absence of error correction coding, a coding rate, and a code type based on data in the information frame. When the error correction code processing is performed, the information frame is subjected to error correction decoding processing corresponding to the coding rate and the type of error correction coding, and the information frame obtained by this is output.

【0073】これによって、例えばデータ伝送路の品質
が良い場合は、符号化を行わないか、あるいは符号化率
を小さくするか、あるいは冗長ビットの少ない符号化方
法を使用するなどを選択し、逆にデータ伝送路の品質が
悪い場合は、符号化を行うか、あるいは符号化率を大き
くするか、あるいは冗長ビットの多い符号化方法を使用
するなどを選択することにより、伝送効率の向上を図る
ことが可能となる。
Thus, for example, when the quality of the data transmission path is good, it is possible to select not to perform coding, to reduce the coding rate, or to use a coding method with less redundant bits. If the quality of the data transmission path is poor, improve the transmission efficiency by selecting coding, increasing the coding rate, or using a coding method with many redundant bits. It becomes possible.

【0074】誤り訂正符号の種類についてはBCH符
号、リードソロモン符号など受信側の復号処理で自動的
に誤りビットの訂正が行えるような符号ならばいかなる
符号でも同様の効果が得られる。
Regarding the type of error correction code, the same effect can be obtained with any code such as a BCH code or Reed-Solomon code that can automatically correct error bits in the decoding process on the receiving side.

【0075】[0075]

【発明の効果】以上説明した様に本発明によれば、送信
側において、各データの伝送毎に、受信側からの応答に
基づく伝送結果を記憶しておき、それを利用することに
よってデータ伝送路の品質を正確に把握している。この
ことによって、データ伝送路の品質に適した情報フレー
ム長などの伝送パラメータを選択することができるの
で、再送の発生頻度が低減し伝送効率が向上する。
As described above, according to the present invention, the transmission side stores the transmission result based on the response from the reception side for each data transmission, and uses the result to transmit the data. Know the quality of the road accurately. This makes it possible to select a transmission parameter such as an information frame length suitable for the quality of the data transmission path, thereby reducing the frequency of retransmissions and improving transmission efficiency.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の電灯線通信装置の実施形態1を示すブ
ロック図である。
FIG. 1 is a block diagram illustrating a power line communication device according to a first embodiment of the present invention.

【図2】図1の装置における送信側に必要な構成要素を
抽出してなる送信側の電灯線通信装置、及び図1の装置
における受信側に必要な構成要素を抽出してなる受信側
の電灯線通信装置を示すブロック図である。
FIG. 2 is a power line communication device on the transmitting side, which extracts components necessary for the transmitting side in the apparatus of FIG. 1, and the receiving side which extracts components necessary for the receiving side in the apparatus of FIG. It is a block diagram showing a power line communication device.

【図3】図2の送信側の電灯線通信装置の動作を示すフ
ローチャートである。
FIG. 3 is a flowchart illustrating an operation of the power line communication device on the transmission side in FIG. 2;

【図4】図2の受信側の電灯線通信装置の動作を示すフ
ローチャートである。
FIG. 4 is a flowchart showing an operation of the power line communication device on the receiving side in FIG. 2;

【図5】本発明の電灯線通信装置の実施形態2を示すブ
ロック図である。
FIG. 5 is a block diagram illustrating a power line communication device according to a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 フレーム構成部 2 誤り検出符号付加部 3 変調部 4 電灯線結合部 5 無応答判定部 6 復調部 7 誤り検出部 8 受信内容解析部 9 伝送制御部 10 伝送結果記憶部 11 伝送路状態判定部 12 誤り訂正復号部 13 誤り訂正符号化部 100 送信側装置 200 受信側装置 300 電灯線 DESCRIPTION OF SYMBOLS 1 Frame structure part 2 Error detection code addition part 3 Modulation part 4 Light line coupling part 5 No response determination part 6 Demodulation part 7 Error detection part 8 Reception content analysis part 9 Transmission control part 10 Transmission result storage part 11 Transmission path state determination part REFERENCE SIGNS LIST 12 error correction decoding unit 13 error correction encoding unit 100 transmitting apparatus 200 receiving apparatus 300 power line

───────────────────────────────────────────────────── フロントページの続き (72)発明者 岩本 幸治 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 5K014 AA01 DA01 DA03 EA00 FA03 FA11 FA13 HA00 5K046 AA03 BB05 PS39 PS44 PS49 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Koji Iwamoto, Inventor 1006 Kazuma, Kadoma, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. F-term (reference) 5K014 AA01 DA01 DA03 EA00 FA03 FA11 FA13 HA00 5K046 AA03 BB05 PS39 PS44 PS49

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 電灯線を通じてデータの送受信を行う通
信手段と、 受信したデータの誤り検出を行う誤り検出手段と、 データ送信の際に、通信相手毎に伝送結果を記憶して蓄
積する伝送結果記憶手段と、 前記伝送結果を用いて前記電灯線のデータ伝送路として
の品質を判定する伝送路状態解析手段と、 前記伝送路状態解析手段によって判定されたデータ伝送
路の品質に基づいて、送信データのフレーム長、及び一
度に連続して送信し得る最大連続フレーム数のうち少な
くとも1つを含む伝送パラメータを決定する伝送パラメ
ータ決定手段と、 前記伝送パラメータを参照して送信データのフレームを
生成するフレーム生成手段と、 前記フレームに誤り検出符号を付加する誤り検出符号生
成付加手段と、 データ送信に対して受信側からの応答がないことを検知
する無応答判定手段とを備えたことを特徴とする電灯線
通信装置。
1. A communication means for transmitting and receiving data through a power line, an error detection means for detecting an error in received data, and a transmission result for storing and storing a transmission result for each communication partner when transmitting data. A storage unit, a transmission line state analysis unit that determines the quality of the power line as a data transmission line using the transmission result, and a transmission based on the quality of the data transmission line determined by the transmission line state analysis unit. Transmission parameter determining means for determining a transmission parameter including at least one of a data frame length and a maximum number of continuous frames that can be transmitted continuously at one time; and generating a frame of transmission data with reference to the transmission parameter. Frame generating means; error detecting code generating and adding means for adding an error detecting code to the frame; and a response from the receiving side to data transmission. Power line communication device being characterized in that a no-response determination means for detecting the absence.
【請求項2】 送信データに誤り訂正符号化を施す符号
化手段と、 誤り訂正符号化された受信データを復号する復号手段を
更に備え、 前記パラメータ決定手段によって決定される伝送パラメ
ータが、前記符号化手段における符号化の有無、符号の
種類、符号化率のうちの少なくとも1つを含むことを特
徴とする請求項1に記載の電灯線通信装置。
2. An apparatus according to claim 1, further comprising: an encoding unit that performs error correction encoding on the transmission data; and a decoding unit that decodes the error correction encoded reception data. 2. The power line communication device according to claim 1, wherein the power line communication device includes at least one of the presence or absence of encoding in the encoding unit, the type of code, and the encoding rate.
【請求項3】 各伝送毎に、前記伝送結果記憶手段に記
憶される伝送結果の種類は、送信データが受信側に誤り
なく伝送されたことを示す情報と、送信データに誤りが
存在したこと、あるいは誤りの存在する程度を示す情報
と、受信側からの応答データに誤りが存在したこと、あ
るいは誤りの存在する程度を示す情報と、データの送信
に対して受信側からの応答がなかったことを示す情報で
あることを特徴とする請求項1または請求項2に記載の
電灯線通信装置。
3. For each transmission, the type of transmission result stored in the transmission result storage means includes information indicating that transmission data has been transmitted to the receiving side without error, and information indicating that an error exists in the transmission data. Or information indicating the extent of the error, and information indicating the presence of an error in the response data from the receiving side, or information indicating the extent of the error, and no response from the receiving side to the data transmission. 3. The power line communication device according to claim 1, wherein the power line communication device is information indicating the power line communication device.
【請求項4】 前記伝送結果記憶手段に記憶される伝送
結果の種類には、予め定められたそれぞれの点数が割り
当てられ、 前記伝送路状態解析手段は、前記伝送結果記憶手段に記
憶されている過去の伝送結果に対応した前記点数を利用
して演算を行い、前記演算の結果に基づいてデータ伝送
路の品質を判定することを特徴とする請求項3に記載の
電灯線通信装置。
4. A predetermined score is assigned to each type of transmission result stored in said transmission result storage means, and said transmission path state analysis means is stored in said transmission result storage means. The power line communication device according to claim 3, wherein an operation is performed using the score corresponding to a past transmission result, and the quality of the data transmission path is determined based on the result of the operation.
【請求項5】 前記伝送路状態解析手段による演算は、
過去の複数の伝送結果に対応したそれぞれの点数から単
位伝送当たりの平均点数を求めるための演算であること
を特徴とする請求項4に記載の電灯線通信装置。
5. The calculation by the transmission path state analysis means is as follows:
5. The power line communication device according to claim 4, wherein the calculation is for calculating an average number of points per unit transmission from respective points corresponding to a plurality of past transmission results.
【請求項6】 前記伝送路状態解析手段による演算は、
伝送が行われてからの経過時間によって重み付けがなさ
れる加重平均演算であり、時間的に新しい伝送結果に対
応する前記点数ほど重みが大きいことを特徴とする請求
項4に記載の電灯線通信装置。
6. The calculation by the transmission path state analysis means includes:
5. The power line communication apparatus according to claim 4, wherein the weighted average calculation is weighted based on an elapsed time since the transmission is performed, and the score corresponding to the temporally new transmission result has a larger weight. .
JP34219998A 1998-12-01 1998-12-01 Power line communication device Expired - Fee Related JP3485248B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34219998A JP3485248B2 (en) 1998-12-01 1998-12-01 Power line communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34219998A JP3485248B2 (en) 1998-12-01 1998-12-01 Power line communication device

Publications (2)

Publication Number Publication Date
JP2000174731A true JP2000174731A (en) 2000-06-23
JP3485248B2 JP3485248B2 (en) 2004-01-13

Family

ID=18351893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34219998A Expired - Fee Related JP3485248B2 (en) 1998-12-01 1998-12-01 Power line communication device

Country Status (1)

Country Link
JP (1) JP3485248B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002124895A (en) * 2000-10-18 2002-04-26 Mitsubishi Electric Corp Power-line carrier communication equipment and method therefor
US7305605B2 (en) 2002-11-19 2007-12-04 Hitachi, Ltd. Storage system
JP2009206609A (en) * 2008-02-26 2009-09-10 Pioneer Electronic Corp Communication controller, communication control method, program and recording medium
US7912490B2 (en) 2002-11-01 2011-03-22 Interdigital Technology Corporation Method for channel quality prediction for wireless communication systems
WO2012144311A1 (en) * 2011-04-20 2012-10-26 パナソニック株式会社 Load control system, dc load and terminal device
WO2019142751A1 (en) * 2018-01-18 2019-07-25 日本電気株式会社 Message delivery device, method, and recording medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002124895A (en) * 2000-10-18 2002-04-26 Mitsubishi Electric Corp Power-line carrier communication equipment and method therefor
US7912490B2 (en) 2002-11-01 2011-03-22 Interdigital Technology Corporation Method for channel quality prediction for wireless communication systems
US8280428B2 (en) 2002-11-01 2012-10-02 Interdigital Technology Corporation Mobile station with improved channel quality prediction for wireless communications
US7305605B2 (en) 2002-11-19 2007-12-04 Hitachi, Ltd. Storage system
JP2009206609A (en) * 2008-02-26 2009-09-10 Pioneer Electronic Corp Communication controller, communication control method, program and recording medium
WO2012144311A1 (en) * 2011-04-20 2012-10-26 パナソニック株式会社 Load control system, dc load and terminal device
JP2012228088A (en) * 2011-04-20 2012-11-15 Panasonic Corp Load control system, dc load, and terminal device
WO2019142751A1 (en) * 2018-01-18 2019-07-25 日本電気株式会社 Message delivery device, method, and recording medium
JPWO2019142751A1 (en) * 2018-01-18 2021-01-07 日本電気株式会社 Message delivery device, method and program
JP7001105B2 (en) 2018-01-18 2022-01-19 日本電気株式会社 Message delivery device, method and program
US11252539B2 (en) 2018-01-18 2022-02-15 Nec Corporation Message delivery device, Method, and recording medium

Also Published As

Publication number Publication date
JP3485248B2 (en) 2004-01-13

Similar Documents

Publication Publication Date Title
US7236740B2 (en) Data retransmission apparatus and method in a mobile communication system employing HARQ technique
EP0197545B1 (en) Error control encoding system, method and device
KR100584028B1 (en) Multicast signal transmission power control method and base station using the same
JP4446338B2 (en) Retransmission request method, radio communication system, and receiver
JP2000244461A (en) Method and system for transmitting packet data with high reliability
JP2002281003A (en) Packet transmission system and its method
JPH08511400A (en) Forward error correction method
JPH06103876B2 (en) Automatic mating backup and restoration method
JP2000174731A (en) Electric lamp line communication equipment
JP2003304299A (en) Method, apparatus and system for transmitting compressed header data
TWI246839B (en) Method and apparatus for providing biasing criteria for binary decisions for use in wireless communications to enhance protection
JP2004032467A (en) Packet communication apparatus
JPH09247132A (en) Radio packet communication equipment and transmitting device
JP3817367B2 (en) Line state adaptive communication method
WO2002093820A1 (en) Communicating method, transmitting apparatus, receiving apparatus, and communicating system including them
JP2001007788A (en) Method for identifying data unit in communication channel
JP2001094574A (en) Radio lan system
JP2002101006A (en) Receiver and transmitter used for spread spectrum communication system
JPH046140B2 (en)
KR100355761B1 (en) Method and device for determining thresholds of metric values used in viterbi synchronization evaluation circuits
JPH0371739A (en) Adaptive error controller
EP2360963A1 (en) Wireless communications system and wireless device
JP3084777B2 (en) Power line communication system and power line communication device
JP2002111637A (en) Retransmission correction method
JPH08213974A (en) Data communication retransmission method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20031009

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071024

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091024

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091024

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101024

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees