JP6379925B2 - Communication waveform generator - Google Patents
Communication waveform generator Download PDFInfo
- Publication number
- JP6379925B2 JP6379925B2 JP2014194256A JP2014194256A JP6379925B2 JP 6379925 B2 JP6379925 B2 JP 6379925B2 JP 2014194256 A JP2014194256 A JP 2014194256A JP 2014194256 A JP2014194256 A JP 2014194256A JP 6379925 B2 JP6379925 B2 JP 6379925B2
- Authority
- JP
- Japan
- Prior art keywords
- pwm signal
- output
- communication
- signal
- communication bus
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims description 119
- 238000012937 correction Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 description 21
- 238000005070 sampling Methods 0.000 description 8
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 230000000052 comparative effect Effects 0.000 description 5
- 230000001934 delay Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Images
Landscapes
- Dc Digital Transmission (AREA)
Description
本発明は、第1PWM信号及び第1PWM信号よりもデューティー比の小さい第2PWM信号を用いる通信システムを構成する複数のノードそれぞれに適用される通信波形生成装置に関する。 The present invention relates to a communication waveform generation device applied to each of a plurality of nodes constituting a communication system using a first PWM signal and a second PWM signal having a duty ratio smaller than that of the first PWM signal.
車両に搭載される通信システムとして、CAN(Controller Area Network)やLIN(Local Interconnect Network)等、通信バスを利用するものが知られている。この種の通信システムでは、クロック成分を含む同期信号を通信バスへ出力するマスターノードと、通信バスを介して当該同期信号を受信することで動作するスレーブノードとを備えたものがある。 As a communication system mounted on a vehicle, one using a communication bus such as a CAN (Controller Area Network) or a LIN (Local Interconnect Network) is known. Some types of communication systems include a master node that outputs a synchronization signal including a clock component to a communication bus, and a slave node that operates by receiving the synchronization signal via the communication bus.
このような通信システムでは、デューティー比が互いに異なる複数のPWM(Pulse width modulation)信号を用いることが一般的に行われている。互いに異なる論理値を示す複数のPWM信号を用いた通信システムにおいて、精度の高い通信を行うためには、各PWM信号のサンプリングを適正に行うことが必要となる。したがって、ノイズ等を要因による誤サンプリングを防止するため、各PWM信号は、そのデューティー比が互いに大きく異なるように設定されている。すなわち、各PWM信号は、そのLow出力幅が互いに大きく異なるものに設定され、両者の識別を容易なものとされている。 In such a communication system, a plurality of PWM (Pulse width modulation) signals having different duty ratios are generally used. In a communication system using a plurality of PWM signals having different logical values, in order to perform highly accurate communication, it is necessary to appropriately sample each PWM signal. Therefore, in order to prevent erroneous sampling due to noise or the like, the PWM signals are set so that their duty ratios are greatly different from each other. That is, the PWM signals are set so that their Low output widths are greatly different from each other, so that they can be easily identified.
しかしながら、各ノードは、製造誤差等により内部の抵抗値等にばらつきが生じる。このため、例えば、スレーブノードが通信バスを介してマスターノードからPWM信号を受信し、スレーブノードがPWM信号を出力するまでの時間や、その精度等に、個体ごとのばらつきが生じるおそれがある。 However, the internal resistance value of each node varies due to a manufacturing error or the like. For this reason, for example, the time until the slave node receives the PWM signal from the master node via the communication bus and the slave node outputs the PWM signal, the accuracy, etc. may vary from individual to individual.
このようなばらつきの影響を受けることにより、通信バスで伝送されるPWM信号のLow出力幅は、適正なものから乖離する。このため、各ノードから出力される異なる論理値のPWM信号には、それぞれのLow出力幅に差が設けられているはずであるが、このような乖離によってその差が小さくなる場合がある。これにより、PWM信号の誤サンプリングが生じやすくなるというおそれがあった。 Due to the influence of such variations, the Low output width of the PWM signal transmitted through the communication bus deviates from an appropriate one. For this reason, the PWM signals having different logical values output from the respective nodes should have a difference in the Low output width, but the difference may be reduced due to such divergence. As a result, erroneous sampling of the PWM signal is likely to occur.
本発明はこのような課題に鑑みてなされたものであり、その目的は、デューティー比が互いに異なり通信バスに出力される第1PWM信号及び第2PWM信号のサンプリング精度を向上させることが可能な通信波形生成装置を提供することにある。 The present invention has been made in view of such a problem, and an object thereof is a communication waveform capable of improving the sampling accuracy of the first PWM signal and the second PWM signal which are different from each other in duty ratio and output to the communication bus. It is to provide a generation device.
上記課題を解決するために、本発明に係る通信波形生成装置は、第1PWM信号及び前記第1PWM信号よりもデューティー比の小さい第2PWM信号を用いる通信システム(CS)を構成する複数のノード(10,100〜n)それぞれに適用される通信波形生成装置(30,130)であって、前記第1PWM信号又は前記第2PWM信号を前記通信システムの通信バス(BS)に出力する出力手段(31,131)と、前記通信バスに出力された前記第1PWM信号又は前記第2PWM信号を受信する受信手段(35,135)と、前記出力手段が出力する前記第1PWM信号又は前記第2PWM信号を補正する補正手段(35,135)と、を備え、前記補正手段は、前記出力手段が出力し前記受信手段が受信した前記第1PWM信号又は前記第2PWM信号のLow出力幅(LW)と、予め定められたLow出力基準幅(LW1)との差分(LW2)に基づいて、前記出力手段が出力する前記第1PWM信号又は前記第2PWM信号のLow出力幅を補正するものである。出力手段は、受信手段が受信した第1PWM信号に所定のLow出力幅を重ねあわせて第2PWM信号として通信バスに出力する。受信手段は、このように出力された第2PWM信号を受信するものである。補正手段は、第2PWM信号が他の通信波形生成装置が出力したものであるか否かを特定する自他判別を実行し、当該自他判別の結果、他の通信波形生成装置が出力したものではない場合に、第2PWM信号のLow出力幅を補正する。 In order to solve the above problems, a communication waveform generation device according to the present invention includes a plurality of nodes (10) constituting a communication system (CS) using a first PWM signal and a second PWM signal having a duty ratio smaller than that of the first PWM signal. , 100 to n) is a communication waveform generation device (30, 130) applied to each, and an output means (31, 130) for outputting the first PWM signal or the second PWM signal to the communication bus (BS) of the communication system. 131), receiving means (35, 135) for receiving the first PWM signal or the second PWM signal output to the communication bus, and correcting the first PWM signal or the second PWM signal output by the output means. Correction means (35, 135), wherein the correction means outputs the first PWM signal output from the output means and received by the reception means. Alternatively, the first PWM signal or the second PWM signal output by the output unit based on a difference (LW2) between a Low output width (LW) of the second PWM signal and a predetermined Low output reference width (LW1) a shall be corrected for Low output width. The output unit superimposes a predetermined Low output width on the first PWM signal received by the receiving unit and outputs the first PWM signal as a second PWM signal to the communication bus. The receiving means receives the second PWM signal output in this way. The correction means performs self-other discrimination that specifies whether or not the second PWM signal is output from another communication waveform generation device, and is output from another communication waveform generation device as a result of the self-other determination. If not, the Low output width of the second PWM signal is corrected.
本発明では、通信バスから受信した第1PWM信号又は第2PWM信号のLow出力幅と、予め定められたLow出力基準幅との差分に基づいて、通信バスに出力する第1PWM信号又は第2PWM信号のLow出力幅を補正する。したがって、種々の誤差要因の影響を受けながら通信バスで伝送されている第1PWM信号又は第2PWM信号の状態に基づいて、通信バスに出力する第1PWM信号又は第2PWM信号のLow出力幅をLow出力基準幅に近づけるように補正することが可能となる。これにより、第1PWM信号及び第2PWM信号を、互いに明確に異なるものとすることができ、そのサンプリング精度を向上させることが可能となる。 In the present invention, the first PWM signal or the second PWM signal output to the communication bus based on the difference between the Low output width of the first PWM signal or the second PWM signal received from the communication bus and a predetermined Low output reference width. The Low output width is corrected. Therefore, based on the state of the first PWM signal or the second PWM signal transmitted through the communication bus while being influenced by various error factors, the Low output width of the first PWM signal or the second PWM signal output to the communication bus is output as Low. It is possible to perform correction so as to approach the reference width. Thus, the first PWM signal and the second PWM signal can be clearly different from each other, and the sampling accuracy can be improved.
本発明によれば、デューティー比が互いに異なり通信バスに出力される第1PWM信号及び第2PWM信号のサンプリング精度を向上させることが可能な通信波形生成装置を提供することができる。 According to the present invention, it is possible to provide a communication waveform generation device capable of improving the sampling accuracy of the first PWM signal and the second PWM signal that are different from each other in duty ratio and output to the communication bus.
以下、添付図面を参照しながら本発明の実施形態について説明する。説明の理解を容易にするため、各図面において同一の構成要素に対しては可能な限り同一の符号を付して、重複する説明は省略する。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In order to facilitate the understanding of the description, the same constituent elements in the drawings will be denoted by the same reference numerals as much as possible, and redundant description will be omitted.
まず、図1及び図2を参照しながら、本発明の実施形態に係る通信波形生成装置が適用された通信システムCSの構成について説明する。通信システムCSは、マスタースレーブ方式の通信プロトコルが適用された車載用の通信システムである。また、通信システムCSは、通信バスBSを介して接続されるマスターノード10と、複数のスレーブノード100〜nを備えている。以下、マスターノード10を単にマスタ10と称し、また、スレーブノード100,200〜nを、単にスレーブ100〜nと称する。
First, the configuration of a communication system CS to which a communication waveform generation device according to an embodiment of the present invention is applied will be described with reference to FIGS. 1 and 2. The communication system CS is an in-vehicle communication system to which a master-slave communication protocol is applied. In addition, the communication system CS includes a
ここで、スレーブ100〜nのハードウェア構成は、マスタ10のハードウェア構成と互いに同一である。したがって、以下、マスタ10の構成について主に説明し、スレーブ100〜nの構成については説明を適宜省略する。図1では、マスタ10の構成要素には例えば「コントローラ20」のように2桁の符号を付し、スレーブ100の構成要素には例えば「コントローラ120」のように100番台の符号を付すなど、互いに対応する構成要素の符号は下2桁を共通させている。また、スレーブ100以外のスレーブノードについては、その構成の図示を省略している。
Here, the hardware configurations of the
マスタ10は、車両に搭載された各種機器が検出した車両の状態を取得したり、当該機器に対してPWM信号を出力して車両を制御したりする電子制御装置(ECU)であり、通信システムCS内に1つだけ設けられている。マスタ10は、コントローラ20と、トランシーバIC30と、を有している。
The
コントローラ20は、CPU、ROM、RAM、IOポート等からなる周知のマイコンである。コントローラ20は、データTX,RXを送受信する。
The
トランシーバIC30は、PWM処理部31と、アナログ回路33と、更新処理部35と、メモリ36と、を有している。図1は、トランシーバIC30が有する各機能をブロックとして図示している。
The
PWM処理部31は、コントローラ20から入力されたデータTXを、後述するメモリ36に格納されている目標幅に基づいてPWM符号化し、PWM信号を生成する。PWM処理部31は、このPWM信号をアナログ回路33に出力する。
The
アナログ回路33は、PWM処理部31から通信バスBSに出力されるPWM信号を遅延させるディレー回路である。
The
更新処理部35は、通信バスBSから信号を受信するほか、PWM処理部31の動作を監視し、PWM処理部31に対し、PWM出力部31が出力するPWM信号のLow出力幅を指示する。また、更新処理部35は、後述するメモリ36に格納された目標幅を適宜更新する。
In addition to receiving signals from the communication bus BS, the
メモリ36は、種々の情報が記憶されており、その情報のひとつとして、PWM処理部31から出力するPWM信号のLow出力幅の目標値である「目標幅」がある。この目標幅は、更新処理部35によって適宜更新される。また、PWM処理部31は、このメモリ36に格納された目標幅を読み込み、それに基づいてPWM符号化を行う。
Various information is stored in the
以上のように構成された通信システムCSにおいて、通信バスBSで伝送される信号は、図2に示されるように、ビットの途中で信号レベルがLowレベルからHighレベルに変化するPWM信号である。 In the communication system CS configured as described above, a signal transmitted through the communication bus BS is a PWM signal whose signal level changes from a low level to a high level in the middle of a bit, as shown in FIG.
通信システムCSの優性信号(本実施形態では論理値1に対応)と劣性信号(本実施形態では論理値0に対応)のそれぞれは、2種類のデューティー比によって表現される。具体的には、マスタ10は通信バスBSに第1PWM信号と第2PWM信号を出力し、スレーブ100〜nの少なくともいずれかは、マスタ10が通信バスBSに出力するデューティー比が比較的大きい第1PWM信号(Low出力幅が比較的小さい信号。論理値1に対応)に、スレーブ100〜nの少なくともいずれかが所定のLow出力幅を重ねあわせることで、デューティー比が比較的小さい第2PWM信号(Low出力幅が比較的大きい信号。論理値0に対応)を生成する。第1PWM信号及び第2PWM信号は、いずれも、そのビットの先頭に立下りが発生するものとなる。通信バスBSで伝送される第1PWM信号及び第2PWM信号は、通信バスBSの抵抗の影響を受けるため、図2に示されるように、その立下りや立ち上がりはやや傾斜したものとなる。
Each of the dominant signal (corresponding to the logical value 1 in the present embodiment) and the recessive signal (corresponding to the logical value 0 in the present embodiment) of the communication system CS is expressed by two types of duty ratios. Specifically, the
通信システムCSは、通信バスBSにおいて第1PWM信号と第2PWM信号とが衝突した場合は、優性信号である第2PWM信号が調停勝ちするように設定されている。これにより、マスタ10又はスレーブ100〜nのうち、調停負けしたノードは直ちに信号の出力を停止し、調停勝ちしたノードのみが出力を継続することができる。
The communication system CS is set so that when the first PWM signal and the second PWM signal collide with each other on the communication bus BS, the second PWM signal that is the dominant signal wins arbitration. As a result, of the
次に、図3を参照しながら、比較例に係る通信システムによる通信とその課題について説明する。この比較例に係る通信システムは、本発明の実施形態に係る通信システムCS同様に、周知のマスタースレーブ方式の通信プロトコルが適用された通信システムであり、優性信号(論理値0に対応)と劣性信号(論理値1に対応)のそれぞれを、2種類のデューティー比によって表現するものである。ただし、この比較例に係る通信システムは、出力する信号のLow出力幅の更新を行わない点で、通信システムCSと異なる。 Next, communication by the communication system according to the comparative example and its problems will be described with reference to FIG. Similar to the communication system CS according to the embodiment of the present invention, the communication system according to this comparative example is a communication system to which a well-known master-slave communication protocol is applied, and has a superiority signal (corresponding to logical value 0) and inferiority. Each of the signals (corresponding to logical value 1) is expressed by two types of duty ratios. However, the communication system according to this comparative example differs from the communication system CS in that the Low output width of the output signal is not updated.
通信システムCS及び比較例に係る通信システムのいずれも、製造誤差等により、マスターノードや各スレーブノードの特性に個体差が生じることがある。すなわち、ノードごとに、トランシーバICの内部の抵抗値等にばらつきが生じ、それに基づく影響が通信にも及ぶことになる。 In both the communication system CS and the communication system according to the comparative example, individual differences may occur in the characteristics of the master node and each slave node due to a manufacturing error or the like. That is, the resistance value and the like in the transceiver IC vary for each node, and the influence based on this also affects communication.
例えば、マスターノードが出力する第1PWM信号に、スレーブノードAが所定のLow出力幅を重ねあわせることで第2PWM信号を生成する場合、遅延d1〜d5が生じうる。以下、この遅延d1〜d5について説明する。 For example, when the slave node A generates a second PWM signal by superimposing a predetermined low output width on the first PWM signal output from the master node, delays d1 to d5 may occur. Hereinafter, the delays d1 to d5 will be described.
まず、マスターノードから通信バスに出力された第1PWM信号を、スレーブノードAにおいて受信するまでの遅延d1が生じうる。すなわち、通信バスで伝送されているマスターノードからの第1PWM信号の信号レベルが、ある所定の閾値Xを下回ってから、スレーブノードAにおいて受信されるまでに、コンパレータ等の要因により遅延d1が生じうる。 First, a delay d1 until the first PWM signal output from the master node to the communication bus is received by the slave node A may occur. That is, a delay d1 occurs due to a factor such as a comparator until the signal level of the first PWM signal transmitted from the master node transmitted through the communication bus falls below a predetermined threshold value X and is received at the slave node A. sell.
また、スレーブノードAのトランシーバICが、マスターノードから通信バスに出力された第1PWM信号を検出し、第2PWM信号を出力するまでに遅延d2が生じうる。これは、当該トランシーバICのクロック周波数のばらつきによるものである。 Further, there may be a delay d2 until the transceiver IC of the slave node A detects the first PWM signal output from the master node to the communication bus and outputs the second PWM signal. This is due to variations in the clock frequency of the transceiver IC.
スレーブノードAのトランシーバICの発信精度のばらつきにより、スレーブノードAのLow出力幅にも遅延d3が生じうる。また、信号がスレーブノードAのトランシーバICのアナログ回路を通過する際にも遅延d4が生じうる。さらに、トランシーバICのアナログ回路の性能のばらつきにより、当該アナログ回路によって設けられる遅延量にも遅延d5が生じうる。 Due to variations in the transmission accuracy of the transceiver IC of the slave node A, a delay d3 can also occur in the Low output width of the slave node A. The delay d4 can also occur when the signal passes through the analog circuit of the transceiver IC of the slave node A. Further, due to variations in the performance of the analog circuit of the transceiver IC, a delay d5 may also occur in the delay amount provided by the analog circuit.
一方、上記遅延d1〜d5が非常に小さいスレーブノードBの場合、スレーブノードBから通信バスに出力された第2PWM信号は、Low出力幅がスレーブノードAに比べて非常に小さいものとなる。この場合、第2PWM信号のデューティー比が大きくなり、第1PWM信号と第2PWM信号とで、Low出力幅の差が非常に小さい状態となる。 On the other hand, in the case of the slave node B where the delays d1 to d5 are very small, the Low PWM output width of the second PWM signal output from the slave node B to the communication bus is much smaller than that of the slave node A. In this case, the duty ratio of the second PWM signal becomes large, and the difference in Low output width between the first PWM signal and the second PWM signal becomes very small.
このように、第1PWM信号と第2PWM信号とでLow出力幅の差が小さくなることで、他のノードにおいて誤サンプリングが生じるおそれがある。このため、通信システムの通信精度が低下し、正確な制御が行われなくなるおそれがある。 As described above, since the difference in the Low output width between the first PWM signal and the second PWM signal becomes small, erroneous sampling may occur in other nodes. For this reason, the communication accuracy of a communication system falls and there exists a possibility that exact control may not be performed.
このような課題に対し、本発明の実施形態に係る通信システムCSでは、各ノードは、メモリに格納されている目標幅を更新し、各ノードから出力する第1PWM信号又は第2PWM信号のLow出力幅を補正することで、誤サンプリングを防止している。以下、図4及び図5を参照しながら、通信システムCSによるPWM信号のLow出力幅の補正について説明する。ここでは、マスタ10が出力する第1PWM信号に、スレーブ100が所定のLow出力幅を重ねあわせることで、第2PWM信号を生成する場合について説明する。
For such a problem, in the communication system CS according to the embodiment of the present invention, each node updates the target width stored in the memory, and the Low output of the first PWM signal or the second PWM signal output from each node. By correcting the width, erroneous sampling is prevented. Hereinafter, correction of the Low output width of the PWM signal by the communication system CS will be described with reference to FIGS. 4 and 5. Here, a case will be described in which the
まず、スレーブ100のトランシーバIC130が、マスタ10から通信バスBSに出力され、通信バスBSで伝送されている第1PWM信号を受信すると、PWM処理部131は、メモリ36に格納されている目標幅に基づいてPWM符号化を行う。PWM処理部131は、アナログ回路33を介して、第2PWM信号を通信バスBSへと出力する。
First, when the
次に、スレーブ100のトランシーバIC130の更新処理部135は、自身が通信バスBSに出力して通信バスBSで伝送されている第2PWM信号を、通信バスBSから受信する。さらに、トランシーバIC130の更新処理部135は、この通信バスBSから受信した第2PWM信号のLow出力幅LWと、論理値0に相当する予め定められたLow出力幅であるLow出力基準幅LW1との差分LW2を計算する。
Next, the
当該計算の結果、差分LW2が得られると、更新処理部135は、通信バスBSで伝送される第2PWM信号のLow出力幅が差分LW2だけ大きくなるように、メモリ36に格納されている目標幅を更新する。
When the difference LW2 is obtained as a result of the calculation, the
更新処理部135による更新後、スレーブ100のトランシーバIC130が、メモリ36に格納されている更新後の目標幅に基づいてPWM符号化を行う。これにより、スレーブ100から通信バスBSに出力され、通信バスBSで伝送される第2PWM信号のLow出力幅が補正される。これにより、論理値0に相当する当該第2PWM信号は、論理値1に相当する第1PWM信号とは明確に異なるものとなる。
After updating by the
ここで、Low出力幅の補正のためにトランシーバIC130が通信バスBSから受信する信号は、トランシーバIC130自身が通信バスBSに出力し、伝送されているものでなければならない。すなわち、トランシーバIC130は、通信バスBSから受信する信号が、トランシーバIC130自身が出力したものであるか、他のノードのトランシーバICが出力したものであるかを判断する自他判断を実行する必要がある。
Here, the signal received by the
そこで、トランシーバIC130は、通信システムCSの通信プロトコルに基づいて上記自他判断を行っている。当該通信プロトコルでは、図5に示されるように、マスタ10からスレーブ100〜nのいずれかに第2PWM信号の出力を要求するための信号を出力する場合、その出力信号にスレーブ100〜nを特定するためのID情報を含むように設定されている。当該ID情報によって特定されるスレーブ100〜nのいずれかのノードは、これに対するレスポンスとして、第2PWM信号を出力するように構成されている。
Therefore, the
この動作についてスレーブ100を例にとって説明する。スレーブ100は、無信号を示す期間の後にトランシーバIC130が受信する出力信号に含まれるID情報が、自身に該当するものであるか否かを判断する。そして、当該ID情報が、自身に該当するものであった場合は、その後に受信する第2PWM信号は自身によって出力されたものであると判断する。スレーブ100は、その場合のみ、メモリ36に格納されている目標幅を更新してLow出力幅の補正を行う。これにより、誤って他のスレーブやマスタ10が通信バスBSに出力した信号に基づいて、目標幅を更新してしまうことが無い。
This operation will be described taking the
このように、通信システムCSのスレーブ100は、種々の誤差要因の影響を受けながら通信バスBSで伝送されている第2PWM信号の状態に基づいて、自身が出力する第2PWM信号のLow出力幅をLow出力基準幅LW1に近づけるよう補正することが可能となる。これにより、第1PWM信号と第2PWM信号とを互いに明確に異なるものとすることができ、そのサンプリング精度を向上させることが可能となる。
As described above, the
次に、図6を参照しながら、本発明の実施形態の第1変形例について説明する。この第1変形例では、各ノードが通信バスBSから受信した信号が、そのノード自身が出力したものであるか、他のノードが出力したものであるかを判断する自他判断の方法が、前述の実施形態と異なるものである。 Next, a first modification of the embodiment of the present invention will be described with reference to FIG. In the first modified example, the self-other determination method for determining whether the signal received from the communication bus BS by each node is output by the node itself or output by another node, This is different from the previous embodiment.
この第1変形例では、各ノードが信号を出力する期間が予め定められており、当該期間に基づいて上記自他判断を実行するものである。すなわち、車両の起動時に通信バスBSに出力される起動信号をトリガーとして、マスタ10、スレーブ100〜nと順次信号の出力を許可する期間をそれぞれに設定し、マスタ10及びスレーブ100〜nは、自身が出力を許可された期間に、目標幅の更新を許可されるものである。したがって、マスタ10及びスレーブ100〜nのトランシーバICは、誤って他のスレーブやマスタ10が通信バスBSに出力した信号に基づいて、メモリに格納されている目標幅を更新してしまうことが無い。また、このような処理を車両の起動時に行うことで、車両の走行に影響を与えることなく更新を行うことが可能となる。
In the first modification, a period during which each node outputs a signal is determined in advance, and the self-other determination is executed based on the period. That is, using the start signal output to the communication bus BS when the vehicle is started as a trigger, the
次に、図7を参照しながら、本発明の実施形態の第2変形例について説明する。この第2変形例も、各ノードが通信バスBSから受信した信号が、そのノード自身が出力したものであるか、他のノードが出力したものであるかを判断する自他判断の方法が、前述の実施形態と異なるものである。 Next, a second modification of the embodiment of the present invention will be described with reference to FIG. Also in this second modified example, a method of self-other judgment for judging whether a signal received from a communication bus BS by each node is a signal output by the node itself or a signal output by another node, This is different from the previous embodiment.
この第2変形例では、マスタ10及びスレーブ100〜nのそれぞれが、通信バスBSに信号を出力するのに先駆けて、自身が出力することを示す識別信号を出力する。この識別信号は、マスタ10がスレーブ100〜nに出力信号を送信する際に、マスタ10が出力するようにしてもよい。通信バスBSで識別信号が伝送されると、マスタ10及びスレーブ100〜nは、その識別信号を受信してから所定期間内は、その識別信号が特定するマスタ及びスレーブ100〜nのいずれかが信号を出力したものと判断し、自他判断を実行する。第2変形例は、このように通信バスBSに流れる識別信号に基づいて上記自他判断を実行するものである。したがって、マスタ10及びスレーブ100〜nのトランシーバICは、誤って他のスレーブやマスタ10が通信バスBSに出力した信号に基づいて、メモリに格納されている目標幅を更新してしまうことが無い。
In the second modification, each of the
以上、具体例を参照しつつ本発明の実施の形態について説明した。しかし、本発明はこれらの具体例に限定されるものではない。すなわち、これら具体例に、当業者が適宜設計変更を加えたものも、本発明の特徴を備えている限り、本発明の範囲に包含される。例えば、前述した各具体例が備える各要素およびその配置、材料、条件、形状、サイズなどは、例示したものに限定されるわけではなく適宜変更することができる。また、前述した各実施の形態が備える各要素は、技術的に可能な限りにおいて組み合わせることができ、これらを組み合わせたものも本発明の特徴を含む限り本発明の範囲に包含される。 The embodiments of the present invention have been described above with reference to specific examples. However, the present invention is not limited to these specific examples. In other words, those specific examples that have been appropriately modified by those skilled in the art are also included in the scope of the present invention as long as they have the characteristics of the present invention. For example, the elements included in each of the specific examples described above and their arrangement, materials, conditions, shapes, sizes, and the like are not limited to those illustrated, but can be changed as appropriate. Moreover, each element with which each embodiment mentioned above is provided can be combined as long as technically possible, and the combination of these is also included in the scope of the present invention as long as it includes the features of the present invention.
BS :通信バス
CS :通信システム
10 :マスターノード(ノード)
30,130:トランシーバIC(通信波形生成手段)
31,131:PWM処理部(出力手段)
35,135:更新処理部(受信手段、補正手段)
100,200,n:スレーブノード(ノード)
BS: Communication bus CS: Communication system 10: Master node (node)
30, 130: transceiver IC (communication waveform generation means)
31, 131: PWM processing section (output means)
35, 135: Update processing unit (reception means, correction means)
100, 200, n: slave node (node)
Claims (4)
前記第1PWM信号又は前記第2PWM信号を前記通信システムの通信バス(BS)に出力する出力手段(31,131)と、
前記通信バスに出力された前記第1PWM信号又は前記第2PWM信号を受信する受信手段(35,135)と、
前記出力手段が出力する前記第1PWM信号又は前記第2PWM信号を補正する補正手段(35,135)と、を備え、
前記補正手段は、前記出力手段が出力し前記受信手段が受信した前記第1PWM信号又は前記第2PWM信号のLow出力幅(LW)と、予め定められたLow出力基準幅(LW1)との差分(LW2)に基づいて、前記出力手段が出力する前記第1PWM信号又は前記第2PWM信号のLow出力幅を補正するものであり、
前記出力手段は、前記受信手段が受信した前記第1PWM信号に所定のLow出力幅を重ねあわせて前記第2PWM信号として前記通信バスに出力し、
前記受信手段は、このように出力された前記第2PWM信号を受信するものであって、
前記補正手段は、前記第2PWM信号が他の通信波形生成装置が出力したものであるか否かを特定する自他判別を実行し、当該自他判別の結果、他の通信波形生成装置が出力したものではない場合に、前記第2PWM信号のLow出力幅を補正することを特徴とする通信波形生成装置。 Communication waveform generator (30, 130) applied to each of a plurality of nodes (10, 100 to n) constituting a communication system (CS) using a first PWM signal and a second PWM signal having a duty ratio smaller than that of the first PWM signal. ) And
Output means (31, 131) for outputting the first PWM signal or the second PWM signal to a communication bus (BS) of the communication system;
Receiving means (35, 135) for receiving the first PWM signal or the second PWM signal output to the communication bus;
Correction means (35, 135) for correcting the first PWM signal or the second PWM signal output by the output means,
The correcting means outputs a difference between a Low output width (LW) of the first PWM signal or the second PWM signal output from the output means and received by the receiving means, and a predetermined Low output reference width (LW1) ( LW2), the Low output width of the first PWM signal or the second PWM signal output from the output means is corrected ,
The output means superimposes a predetermined Low output width on the first PWM signal received by the receiving means and outputs the second PWM signal to the communication bus,
The receiving means receives the second PWM signal output in this way,
The correction means executes self-other discrimination for specifying whether or not the second PWM signal is output by another communication waveform generation device, and outputs the other communication waveform generation device as a result of the self-other discrimination. If not , the communication waveform generation apparatus corrects the Low output width of the second PWM signal .
前記補正手段は、自身が出力を許可された期間に前記自他判別を行うことを特徴とする請求項1に記載の通信波形生成装置。 At least two or more nodes constituting the plurality of nodes are configured to output the second PWM signal to the communication bus during a predetermined period,
The communication waveform generation apparatus according to claim 1 , wherein the correction unit performs the self-other discrimination in a period during which the output is permitted.
前記補正手段は、前記受信手段が自己を特定する前記識別信号を受信した後に前記第2PWM信号を受信した場合に前記自他判別を行うことを特徴とする請求項1に記載の通信波形生成装置。 At least two or more nodes constituting the plurality of nodes are configured to output identification signals that identify themselves prior to the output of the second PWM signal to the communication bus,
2. The communication waveform generating apparatus according to claim 1 , wherein the correction unit performs the self-other discrimination when the receiving unit receives the second PWM signal after receiving the identification signal that identifies the self. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014194256A JP6379925B2 (en) | 2014-09-24 | 2014-09-24 | Communication waveform generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014194256A JP6379925B2 (en) | 2014-09-24 | 2014-09-24 | Communication waveform generator |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016066886A JP2016066886A (en) | 2016-04-28 |
JP6379925B2 true JP6379925B2 (en) | 2018-08-29 |
Family
ID=55805966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014194256A Active JP6379925B2 (en) | 2014-09-24 | 2014-09-24 | Communication waveform generator |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6379925B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9705697B1 (en) * | 2016-03-14 | 2017-07-11 | Cypress Semiconductor Corporation | Transceiver for communication and method for controlling communication |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2741704B2 (en) * | 1990-08-01 | 1998-04-22 | 三田工業 株式会社 | Data generator for pulse generator |
JP5644725B2 (en) * | 2011-09-14 | 2014-12-24 | 株式会社デンソー | Transceiver |
-
2014
- 2014-09-24 JP JP2014194256A patent/JP6379925B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016066886A (en) | 2016-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10146725B2 (en) | Method and device for checking the correct functioning of a serial data transmission | |
US10713106B2 (en) | Communication device, communication method and non-transitory storage medium | |
US10491530B2 (en) | Communication system and communication device | |
US7620075B2 (en) | Serial communication system with baud rate generator | |
KR101519719B1 (en) | Message process method of gateway | |
KR101936450B1 (en) | Method and device for serial data transmission which is adapted to memory sizes | |
WO2017026359A1 (en) | Communication device | |
US10320640B2 (en) | Communication system, abnormality detection device and abnormality detection method | |
US10397332B2 (en) | In-vehicle communication system | |
JP2007060400A (en) | Method and system for controlling communication timing | |
US9965406B2 (en) | Setting method, communication device, and master device | |
JP5977152B2 (en) | Communication device | |
KR20140004954A (en) | Method for diagnosing error of can communication | |
JP2011035473A (en) | Baud rate error detection circuit and baud rate error detection method | |
JP6379925B2 (en) | Communication waveform generator | |
JP2014524692A (en) | Measurement value transmitter | |
KR101669397B1 (en) | Distance measurement device and distance measurement method | |
JP6115478B2 (en) | Communications system | |
JP5892890B2 (en) | Communication control device | |
JP4732926B2 (en) | Electronic control unit | |
JP2017092856A (en) | Communication equipment and communication system | |
JP6969215B2 (en) | Communication equipment and communication systems | |
WO2013011684A1 (en) | Communication network system | |
US20210051090A1 (en) | Frame transfer method and secure star coupler | |
WO2020230537A1 (en) | Node device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170324 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180129 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180227 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180329 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20180703 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180716 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6379925 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |