Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4905808B2 - Serial communication network system - Google Patents
[go: Go Back, main page]

JP4905808B2 - Serial communication network system - Google Patents

Serial communication network system Download PDF

Info

Publication number
JP4905808B2
JP4905808B2 JP2008204235A JP2008204235A JP4905808B2 JP 4905808 B2 JP4905808 B2 JP 4905808B2 JP 2008204235 A JP2008204235 A JP 2008204235A JP 2008204235 A JP2008204235 A JP 2008204235A JP 4905808 B2 JP4905808 B2 JP 4905808B2
Authority
JP
Japan
Prior art keywords
slave
baud rate
node
master
slave node
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.)
Expired - Fee Related
Application number
JP2008204235A
Other languages
Japanese (ja)
Other versions
JP2010041567A (en
Inventor
賢造 加納
伸一 妹尾
啓資 松田
友久 岸上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2008204235A priority Critical patent/JP4905808B2/en
Publication of JP2010041567A publication Critical patent/JP2010041567A/en
Application granted granted Critical
Publication of JP4905808B2 publication Critical patent/JP4905808B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

この発明はシリアル通信ネットワークシステムに関する。   The present invention relates to a serial communication network system.

特開昭61−81235号公報JP-A-61-81235 特開平7−42609号公報JP 7-42609 A 特開平7−42609号公報JP 7-42609 A

近年、自動車には多くの安全・快適機能が搭載され、こうした個々の機能の制御を司るECU(electronic control unit)を車載ネットワークで接続して連携動作させることが行なわれている。こうした車載ネットワークとして代表的なものにCAN(Controller Area Network)があり、パワートレイン系、シャーシ系、ボデー系及び情報系の標準型シリアル通信ネットワークとして広く採用されている。CANは比較的高伝送レートに対応できるマルチマスタ方式のシリアル通信プロトコルであり、非同期式(調歩同期型)であるが、エッジ検出による再同期処理やビットスタッフィングなど、高精度のノード間同期を実現している。また、ノイズマージンを高めるためにツイストペア線を用いた差動伝送方式を採用し、バスアービトレーションや、エラーカウンタを用いたバス状態遷移など、信頼性の高いマルチマスタ方式通信を実現するため、プロトコル上種々の工夫がなされている。   In recent years, many safety and comfort functions are installed in automobiles, and ECUs (electronic control units) that control these individual functions are connected via an in-vehicle network to perform cooperative operation. A typical example of such an in-vehicle network is a CAN (Controller Area Network), which is widely adopted as a standard serial communication network for powertrain, chassis, body, and information systems. CAN is a multi-master serial communication protocol that can handle relatively high transmission rates, and is asynchronous (start-stop synchronization), but realizes high-accuracy node synchronization such as resynchronization processing by edge detection and bit stuffing. is doing. In order to increase the noise margin, a differential transmission method using twisted pair wires is adopted, and in order to realize highly reliable multi-master communication such as bus arbitration and bus state transition using an error counter, Various ideas have been made.

しかし、上記のようなCANの特徴は、ネットワークコストの高騰化を招きやすい側面も有しており、例えばボデー系に分類される車体装備の中でも、電動ドアミラーやパワーウィンドウなど、高速できめ細かい制御がそれほど求められない機器制御用のネットワークとしては過剰スペックになりやすい欠点がる。そこで、この欠点を補うべく、簡易型のシリアル通信ネットワークとしてLIN(Local Interconnect Network)が提唱され、実搭載が進んでいる。LINはCANと同様、非同期式(調歩同期型)であるが、シングルマスタ方式であり、これを受けて半二重式UART(Universal Asynchronous Receiver
Transmitter)によるノード構成やバスのシングルワイヤ化といった簡略なハードウェア構成に加え、マスタタスクをなすヘッダに同期フレームを組み込み、その時間補正用基準波形を参照してスレーブボーレートを補正する簡易型同期プロトコルを採用することにより、伝送レートは低いもののCANと比較して大幅なコスト削減が実現できる。
However, the above-mentioned features of CAN also have a side where network costs are likely to rise. For example, among body equipment classified as body systems, high-speed and detailed control such as electric door mirrors and power windows is possible. As a network for device control that is not so required, there is a drawback that it tends to become excessive specifications. Therefore, in order to make up for this drawback, LIN (Local Interconnect Network) has been proposed as a simple serial communication network, and actual implementation is progressing. Like CAN, LIN is asynchronous (start-stop synchronization), but is a single master system, and in response to this, half-duplex UART (Universal Asynchronous Receiver)
In addition to a simple hardware configuration such as a node configuration by Transmitter) and a single-wire bus, a synchronization frame is incorporated into the header that makes up the master task, and a simple synchronization protocol that corrects the slave baud rate by referring to the reference waveform for time correction. By adopting, although the transmission rate is low, a significant cost reduction can be realized as compared with CAN.

ところで、LINにおいては、従来は、マスタ/スレーブ間通信のみで機器制御を行なこと、つまり、スレーブノードからのデータはマスタノードにのみレスポンスとして返す形で全ての制御が構築されるケースも多かった。一例を挙げれば、センサの検出値を参照して対象機器を駆動制御したい場合、センサ制御スレーブノードからセンサ検出値をデータ(レスポンス)としてマスタノードに送り、マスタノードは該検出値を取得して、次のタスク(ヘッダ)で制御先となる対象機器を指定する形となる。例えば、シフトポジションに応じてカーナビの画面をバックモニタに切り替えるような単純な制御であれば、マスタノードは、シフトポジションセンサが「後退」かどうかに応じてモニタ切り替えの判断をすればよく、モニタ切替制御を行なうスレーブノードにシフトポジションセンサの情報を直接送る必要性はなかった。   By the way, in LIN, conventionally, there are many cases in which device control is performed only by master / slave communication, that is, all control is constructed in such a manner that data from the slave node is returned as a response only to the master node. It was. For example, when it is desired to drive and control the target device with reference to the detection value of the sensor, the sensor control slave node sends the sensor detection value as data (response) to the master node, and the master node acquires the detection value. In the next task (header), the target device to be controlled is designated. For example, in the case of simple control that switches the car navigation screen to the back monitor according to the shift position, the master node may determine whether to switch the monitor according to whether the shift position sensor is “reverse”. There was no need to send the shift position sensor information directly to the slave node that performs switching control.

他方、制御の形態によっては、データをマスタノードではなく、送信元とは別のスレーブノードに伝送したほうが有利な場合がある。例えば、障害物センサが検出する距離に応じてソナーの出力形態(例えば、鳴動間隔)を多段にないし連続的に変化させる制御を行なう場合、マスタ/スレーブ間通信のみで制御を行なおうとすると、センサ検出値に応じて鳴動間隔の異なるソナー動作を、それぞれ個別のタスクとして扱わなければならなくなり、非常に面倒である。しかし、ソナー制御スレーブノードがセンサ制御スレーブノードからセンサ検出値を直接取得し、自発的にソナー鳴動間隔を決定するように構成すれば、制御ははるかに簡略化される。この場合、センサ制御スレーブノードからソナー制御スレーブノードへのデータ(センサ検出値)転送、すなわちスレーブ/スレーブ間通信を行なうこととなる。   On the other hand, depending on the form of control, it may be advantageous to transmit the data not to the master node but to a slave node different from the transmission source. For example, when performing control to change the sonar output form (for example, ringing interval) in multiple stages or continuously according to the distance detected by the obstacle sensor, if the control is to be performed only by communication between the master and slave, Sonar operations with different ringing intervals according to sensor detection values must be handled as individual tasks, which is very troublesome. However, if the sonar control slave node is configured to directly acquire the sensor detection value from the sensor control slave node and voluntarily determine the sonar ringing interval, the control is greatly simplified. In this case, data (sensor detection value) transfer from the sensor control slave node to the sonar control slave node, that is, communication between the slave and the slave is performed.

スレーブ/スレーブ間通信を行なう場合、LINプロトコルに整合する手順として、次のような方式が採用可能である。すなわち、同期フィールドとIDフィールドとを有したヘッダが通信バスに送出される。ヘッダは全てのスレーブノードに受信され、そこで各スレーブノードはROM等に格納されているスケジューリングテーブルを参照し、ヘッダに書き込まれているIDが自身を送信ノード又は受信ノードとして指定しているかどうかを確認する。送信ノード指定がなされている場合は、当該IDにて一義的に指定されるデータをレスポンスとして通信バスに送出する。一方、受信ノードとして指定されていた場合は、該データを含む送信ノードからのレスポンスを受信する。つまり、送信ノードからのレスポンスはマスタノードだけでなく、他の全てのスレーブノードにも同時送信されるから、ヘッダのIDにより自身が受信ノードであることを認識することで、マスタノードに向けたレスポンスをいわば傍受する形でデータ受信することが可能になるのである(なお、受信ノードを指定するIDを別途ヘッダに組み込み、データ伝送の都度、受信ノードを動的に決定する方式も可能である)。   When performing communication between slaves / slave, the following method can be adopted as a procedure for matching with the LIN protocol. That is, a header having a synchronization field and an ID field is sent to the communication bus. The header is received by all slave nodes, and each slave node refers to the scheduling table stored in the ROM or the like, and checks whether the ID written in the header designates itself as a transmission node or a reception node. Check. If the transmission node is designated, data uniquely designated by the ID is sent as a response to the communication bus. On the other hand, if it is designated as a receiving node, it receives a response from the transmitting node containing the data. In other words, since the response from the sending node is sent not only to the master node but also to all other slave nodes at the same time, it is directed to the master node by recognizing that it is the receiving node by the header ID. It is possible to receive data in the form of intercepting the response (in addition, an ID specifying the receiving node is separately incorporated in the header, and the receiving node is dynamically determined each time data is transmitted. ).

前述のごとく、LINにおいては、データ送信を行なう毎にマスタノードからの時間補正用基準波形に合わせてスレーブノードがボーレートを補正し、同期をとるようにしている。特に、UARTを用いて車載ECU(ノード)間の通信を行なう場合、1データ単位(データ幅が8ビットであれば、調歩同期の場合スタートビットとストップビットとを含めた計10ビット)でしか同期できないので、ボーレートに対しては特に厳しい精度が要求されている(例えばISO9141では±1.0%)。   As described above, in the LIN, every time data transmission is performed, the slave node corrects the baud rate according to the time correction reference waveform from the master node, and synchronizes. In particular, when communication between in-vehicle ECUs (nodes) is performed using UART, it is only in one data unit (if the data width is 8 bits, a total of 10 bits including start bit and stop bit for start-stop synchronization). Since synchronization is not possible, particularly strict accuracy is required for the baud rate (for example, ± 1.0% for ISO 9141).

ここで、マスタ/スレーブ間通信のみが用いられる場合であれば、伝送クロックパルス幅を決めるマスタノードの発振精度(つまり、それを用いた時間補正用基準波形の安定性)が安定に確保されていれば、これを計測するスレーブノードは、スレーブ側の発振周波数が(例えば温特等により)変動しても、マスタノードの安定した伝送クロックに合わせてダウンコンバート比率をその都度調整することで問題なく同期精度を確保できる。従って、これを見越して、マスタノードについては水晶やセラミックなどの高精度の発振回路を採用しつつ、スレーブノードの発振回路はCR発振器などにより低廉に構成することも行なわれている。   Here, if only master-slave communication is used, the oscillation accuracy of the master node that determines the transmission clock pulse width (that is, the stability of the reference waveform for time correction using the master node) is stably secured. Therefore, the slave node that measures this can adjust the down-conversion ratio in accordance with the stable transmission clock of the master node each time, even if the oscillation frequency on the slave side fluctuates (for example, due to temperature characteristics). Synchronization accuracy can be ensured. Therefore, in anticipation of this, the master node employs a high-precision oscillation circuit such as crystal or ceramic, while the slave node oscillation circuit is configured at a low cost by a CR oscillator or the like.

しかし、スレーブ/スレーブ間通信を行なわれるようになると、送信スレーブノードからのレスポンスは、該送信スレーブノードの発振周波数を基準としてマスタノードに合わせたボーレートにより送信される。一方、これを受ける受信スレーブノードは、該受信スレーブノードの発振周波数を基準としてマスタノードに合わせたボーレートによりこれを受ける。このとき、送信スレーブノードの発振精度と受信スレーブノードの発振精度との間に無視できない差が存在していると、送信側と受信側とでボーレートに大きなずれが生じ、要求される同期精度を充足できなくなってしまう問題がある。特に、スレーブノードの発振回路を、前述のごとくCR発振器など安価ではあるが発振精度の低い回路で構成した場合、この問題はより深刻となる。   However, when the slave / slave communication is performed, the response from the transmission slave node is transmitted at a baud rate that matches the master node with the oscillation frequency of the transmission slave node as a reference. On the other hand, the receiving slave node receiving this receives this by the baud rate adapted to the master node with reference to the oscillation frequency of the receiving slave node. At this time, if there is a non-negligible difference between the oscillation accuracy of the transmission slave node and the oscillation accuracy of the reception slave node, a large deviation occurs in the baud rate between the transmission side and the reception side, and the required synchronization accuracy is reduced. There is a problem that cannot be satisfied. In particular, this problem becomes more serious when the oscillation circuit of the slave node is configured with a low-cost but low-oscillation circuit such as a CR oscillator as described above.

本発明の課題は、時間補正用基準波形を用いてボーレート補正を行なうシングルマスタ方式のシリアル通信において、スレーブ/スレーブ間通信時の同期精度も問題なく確保できるシリアル通信ネットワークシステムを提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide a serial communication network system capable of ensuring the synchronization accuracy at the time of communication between slaves / slaves without problems in single master type serial communication in which baud rate correction is performed using a reference waveform for time correction. .

課題を解決するための手段及び発明の効果Means for Solving the Problems and Effects of the Invention

上記の課題を解決するために、本発明のシリアル通信ネットワークシステムは、
調歩同期型シリアル通信により接続された1つのマスタノードと複数のスレーブノードとからなるシリアル通信ネットワークシステムであって、
マスタノードに設けられ、スレーブノードとマスタ/スレーブ間通信を行なう際に、マスタノードのボーレートを反映したマスタ時間補正用基準波形をシリアル通信バスに送出するマスタ時間補正用基準波形送出手段と、
各スレーブノードに設けられ、通信相手となる他のスレーブノードとスレーブ/スレーブ間通信を行なう際に、自スレーブノードのボーレートを反映したスレーブ時間補正用基準波形をシリアル通信バスに送出するスレーブ時間補正用基準波形送出手段と、
各スレーブノードに設けられ、マスタノードから取得したマスタ時間補正用基準波形と、他のスレーブノードから取得したスレーブ時間補正用基準波形との双方に基づき自スレーブノードのボーレートを補正するボーレート補正手段と、を備えたことを特徴とする。
In order to solve the above problems, the serial communication network system of the present invention is:
A serial communication network system comprising one master node and a plurality of slave nodes connected by asynchronous serial communication,
A master time correction reference waveform sending means for sending a master time correction reference waveform reflecting the baud rate of the master node to the serial communication bus when the master node performs communication between the slave node and the master / slave;
Slave time correction that is provided in each slave node and sends a slave time correction reference waveform that reflects the baud rate of its own slave node to the serial communication bus when communicating with other slave nodes that are communicating with each other. Reference waveform sending means,
Baud rate correction means provided in each slave node, for correcting the baud rate of the slave node based on both the master time correction reference waveform acquired from the master node and the slave time correction reference waveform acquired from the other slave node; , Provided.

上記の構成によると、スレーブノードは、スレーブ/スレーブ間通信を行なう際に、マスタノードだけでなく、通信相手となるスレーブノードからも時間補正用基準波形を取得し、それらマスタ時間補正用基準波形とスレーブ時間補正用基準波形との双方に基づいて自スレーブノードのボーレートを補正するようにしたから、従来は全く考慮されていなかったスレーブノード間のボーレート補正が可能となり、スレーブ/スレーブ間通信時の同期精度を問題なく確保できるようになる。   According to the above configuration, when performing slave-slave communication, the slave node acquires time correction reference waveforms from not only the master node but also the slave node that is the communication partner, and these master time correction reference waveforms. Since the baud rate of its own slave node is corrected based on both the slave time and the reference waveform for slave time correction, baud rate correction between slave nodes, which was not considered at all in the past, is now possible. Synchronization accuracy can be secured without problems.

本発明は、シングルマスタ方式の調歩同期型シリアル通信ネットワークとして、車載通信ネットワーク等に特に広く普及しているLIN通信ネットワークに特に好適に採用可能である(この場合、シリアル通信バスはLIN通信バスとなる)。背景技術にて既に説明したLIN通信の利点をそのまま踏襲しつつ、従来のLIN通信では不可能だったスレーブ/スレーブ間通信時のボーレート補正を可能とし、ひいてはスレーブ/スレーブ間通信の利用を拡大し、車載機能等に係るネットワーク制御の多様化にも貢献できる。   INDUSTRIAL APPLICABILITY The present invention is particularly preferably applicable to a LIN communication network that is particularly widespread as an in-vehicle communication network or the like as a single-master asynchronous serial communication network (in this case, the serial communication bus is a LIN communication bus). Become). While following the advantages of LIN communication already explained in the background art, baud rate correction at the time of slave / slave communication, which was impossible with conventional LIN communication, is possible, and the use of communication between slave / slave is expanded. It can also contribute to the diversification of network control related to in-vehicle functions.

マスタノードには、マスタ基準クロック信号を生成するマスタ発振回路と、該マスタ基準クロック信号をダウンコンバートしてマスタ伝送クロック信号を生成するマスタ伝送クロック信号生成回路とを設けることができる。そして、各スレーブノードには、マスタ基準クロック信号に対応する周波数のスレーブ基準クロック信号を生成するスレーブ発振回路と、該スレーブ基準クロック信号をダウンコンバートしてマスタ伝送クロック信号に対応する周波数のスレーブ伝送クロック信号を生成するスレーブ伝送クロック信号生成回路とが設けられる。マスタ基準クロック信号とスレーブ基準クロック信号は、それぞれマスタノード及びスレーブノードの主体をなすCPUの動作クロックを与えるものであり、車載通信では例えば1MHz〜100MHz(例えば24MHz)程度の範囲で設定される。他方、マスタ伝送クロック信号及びスレーブ伝送クロック信号は、上記の基準クロック信号を数百分の1から数千分の1の周波数にダウンコンバートすることにより生成され、ボーレートは、例えばLIN通信の場合は0.5kbps〜から最大でも20kbpsである。   The master node may be provided with a master oscillation circuit that generates a master reference clock signal and a master transmission clock signal generation circuit that generates a master transmission clock signal by down-converting the master reference clock signal. Each slave node includes a slave oscillation circuit that generates a slave reference clock signal having a frequency corresponding to the master reference clock signal, and a slave transmission having a frequency corresponding to the master transmission clock signal by down-converting the slave reference clock signal. A slave transmission clock signal generation circuit for generating a clock signal is provided. The master reference clock signal and the slave reference clock signal provide operation clocks of the CPUs that are the master node and the slave node, respectively, and are set in a range of, for example, about 1 MHz to 100 MHz (for example, 24 MHz) in in-vehicle communication. On the other hand, the master transmission clock signal and the slave transmission clock signal are generated by down-converting the above-mentioned reference clock signal from a hundredth to a thousandth frequency, and the baud rate is, for example, in the case of LIN communication. From 0.5 kbps to 20 kbps at the maximum.

そして、個々のスレーブノードに設けるボーレート補正手段は、具体的には次のような要件を有するものとして構成できる。
・マスタボーレート計測手段:マスタ時間補正用基準波形が示すマスタノードのボーレートを、(自スレーブノードの)スレーブ基準クロック信号を用いて計測する。具体的には、マスタ時間補正用基準波形のクロックパルス幅(隣接するパルスエッジ(一方が立ち上がりエッジ、他方が立ち下がりエッジ)間の時間間隔)を、スレーブ基準クロック信号によりタイマー計測する。該機構は、従来のLIN通信においても採用されていたものである。
The baud rate correction means provided in each slave node can be specifically configured as having the following requirements.
Master baud rate measuring means: measures the baud rate of the master node indicated by the master time correction reference waveform using the slave reference clock signal (of its own slave node). Specifically, the clock pulse width of the master time correction reference waveform (time interval between adjacent pulse edges (one rising edge and the other falling edge)) is measured by a timer using a slave reference clock signal. This mechanism is also used in the conventional LIN communication.

・スレーブボーレート計測手段:スレーブ時間補正用基準波形が示す、通信相手となるスレーブノードのボーレートを、スレーブ基準クロック信号を用いて計測する。具体的には、通信相手から送られてくるスレーブ時間補正用基準波形のクロックパルス幅((逆数がボーレートに対応する)を、同様に、スレーブ基準クロック信号によりタイマー計測する。つまり、周知のマスタボーレート計測手段とほとんど同様の構成にてスレーブノードのボーレート計測を実施できる利点がある(当然、タイマー計測のためのハードウェア及びソフトウェアをマスタボーレート計測手段と共用化できる利点も生ずる)。 Slave baud rate measuring means: The slave baud rate of the slave node that is the communication partner indicated by the slave time correction reference waveform is measured using the slave reference clock signal. More specifically, the clock pulse width of the slave time correction reference waveform sent from the communication partner (where the reciprocal corresponds to the baud rate) is similarly measured by the timer using the slave reference clock signal. There is an advantage that the baud rate measurement of the slave node can be carried out with almost the same configuration as the baud rate measuring means (of course, there is an advantage that the hardware and software for timer measurement can be shared with the master baud rate measuring means).

そして、自スレーブノードのボーレートは、マスタノードのボーレートの計測結果と、通信相手となるスレーブノードのボーレートの計測結果との双方を参照して補正することで、スレーブノード間のボーレート偏差を効果的に縮小できる。具体的には、マスタボーレート計測手段とスレーブボーレート計測手段は、それぞれマスタ時間補正用基準波形及びスレーブ時間補正用基準波形のクロックパルス幅を計測するものとでき、ボーレート補正手段は、マスタ時間補正用基準波形のクロックパルス幅とスレーブ時間補正用基準波形のクロックパルス幅との平均値に基づいて自スレーブノードのボーレートを補正することが可能である。なお、該平均値は、相加平均であっても、相乗平均であってもいずれでもよく、マスタとスレーブの各クロックパルス幅の計測値に適宜重みを付与して平均を演算してもよい。   The baud rate of the slave node is corrected by referring to both the measurement result of the baud rate of the master node and the measurement result of the baud rate of the slave node that is the communication partner. Can be reduced. Specifically, the master baud rate measuring means and the slave baud rate measuring means can respectively measure the clock pulse widths of the master time correction reference waveform and the slave time correction reference waveform, and the baud rate correction means can be used for master time correction. The baud rate of the slave node can be corrected based on the average value of the clock pulse width of the reference waveform and the clock pulse width of the reference waveform for slave time correction. The average value may be an arithmetic average or a geometric average, and an average may be calculated by appropriately weighting the measured values of the clock pulse widths of the master and slave. .

なお、スレーブ基準クロック信号のダウンコンバート比率が大きいほど、マスタ伝送クロック信号及びスレーブ伝送クロック信号のパルス幅計測の量子化レベルは高くなる。また、スレーブ発振回路はマスタ発振回路よりも発振精度の低い(つまり、安価な)発振回路にて構成できる。例えば、マスタ発振回路を水晶発振回路ないしセラミック発振回路にて構成し、スレーブ発振回路をCR発振回路で構成することが可能である。   Note that the greater the down-conversion ratio of the slave reference clock signal, the higher the quantization level for measuring the pulse width of the master transmission clock signal and the slave transmission clock signal. Further, the slave oscillation circuit can be configured by an oscillation circuit with lower oscillation accuracy (that is, less expensive) than the master oscillation circuit. For example, the master oscillation circuit can be constituted by a crystal oscillation circuit or a ceramic oscillation circuit, and the slave oscillation circuit can be constituted by a CR oscillation circuit.

LIN通信では、データ伝送に際してのメッセージフレーム構造がプロトコルにより規定されており、本発明特有のスレーブ時間補正用基準波形も、該LINプロトコルに整合する範囲にてメッセージフレームに組み込む必要がある。背景技術でも述べたごとく、LIN通信はシングルマスタ方式であり、複数のスレーブノードの1つを送信スレーブノードとし、他の1以上を受信スレーブノードとして、送信スレーブノードから受信スレーブノードへデータ送信する際(すなわち、スレーブ/スレーブ間通信する際)も、通信自体は、マスタタスクであるヘッダの送信から必ず開始されるプロトコル上の取り決めがある。   In LIN communication, a message frame structure for data transmission is defined by a protocol, and a slave time correction reference waveform unique to the present invention must also be incorporated into a message frame within a range consistent with the LIN protocol. As described in the background art, the LIN communication is a single master system, and one of a plurality of slave nodes is set as a transmission slave node, and the other one or more is set as a reception slave node to transmit data from the transmission slave node to the reception slave node. At that time (that is, when communicating between slaves / slave), the communication itself has a protocol agreement that always starts from transmission of a header as a master task.

具体的には、LIN通信においてマスタノードは、メッセージの開始を示すブレークフィールドと、マスタ時間補正用基準波形を組み込んだマスタ同期フィールドと、データ送信スレーブノードを特定するスレーブノード特定フィールド(IDフィールド)とが配列したヘッダを通信バスに送出するヘッダ送出手段を有する。各スレーブノードは、ヘッダを受信するヘッダ受信手段を有し、このヘッダを受けて、スレーブタスクとなるレスポンスをマスタノードへ返す。   Specifically, in the LIN communication, the master node has a break field indicating the start of a message, a master synchronization field incorporating a master time correction reference waveform, and a slave node specification field (ID field) for specifying a data transmission slave node. And a header sending means for sending a header arranged on the communication bus. Each slave node has header receiving means for receiving a header, and receives this header and returns a response as a slave task to the master node.

既に説明したごとく、ヘッダは全てのスレーブノードにより受信され、各スレーブノードはスレーブノード特定フィールドにて自ノードが(データの)送信ノードとして指定されているかどうかを確認する。送信ノード指定がなされている場合は、データをレスポンスとして通信バスに送出する。このレスポンスは、本来マスタノードに向けられたものであるが、通信バス上に送出されたレスポンスの内容はどのスレーブノードからも見えるので、受信ノードとして事前に指定されたスレーブノードはこのレスポンスを傍受することができる。従って、スレーブ/スレーブ間のボーレート補正に用いるスレーブ時間補正用基準波形は、該レスポンスの先頭に配置することが最も妥当である。すなわち、スレーブノードに設けるレスポンス送出手段は、スレーブノード特定フィールドが示す送信スレーブノードとして自スレーブノードが指定されている場合に、スレーブ時間補正用基準波形を組み込んだスレーブ同期フィールドと、送信対象となるデータを組み込んだデータフィールドと、エラーチェックフィールドとが配列したレスポンスを通信バスに送出するものとして構成するとよい。逆にいえば、本発明の概念を適用したLIN通信では、レスポンスの先頭にスレーブ同期フィールドが新たに追加される点が大きな特徴の一つとなる。   As described above, the header is received by all the slave nodes, and each slave node confirms whether or not its own node is designated as a (data) transmission node in the slave node specification field. If the transmission node is designated, the data is sent as a response to the communication bus. Although this response is originally directed to the master node, the contents of the response sent on the communication bus can be seen by any slave node, so the slave node designated in advance as the receiving node intercepts this response. can do. Therefore, it is most appropriate to place the slave time correction reference waveform used for baud rate correction between the slave and slave at the head of the response. In other words, the response sending means provided in the slave node is the transmission target when the slave slave field is designated as the transmission slave node indicated by the slave node identification field and the slave synchronization field incorporating the slave time correction reference waveform. A response in which a data field in which data is incorporated and an error check field are arranged may be sent to the communication bus. Conversely, in LIN communication to which the concept of the present invention is applied, one of the major features is that a slave synchronization field is newly added at the head of the response.

各スレーブノードに設けられるスレーブ発振回路の発振精度の差異が大きい場合(例えば、スレーブ発振回路の仕様がノード間で異なる場合、あるいは同一仕様であってもロット間ばらつき等の影響を大きく受けている場合など)、スレーブ時間補正用基準波形を用いた各スレーブノードでのボーレート補正は、過去に受信したスレーブ時間補正用基準波形による計測結果も統計的に加味して補正を行なうようにすると、スレーブ/スレーブ間の同期精度も一層高めることができる。通信バス上では、通信イベントが発生するたびに絶えずどれかのスレーブノードからレスポンスが送出され、前述のごとく、該レスポンスひいてはそれに含まれるスレーブ時間補正用基準波形を、当該通信イベントに関与しているかいないかとは無関係に、どのスレーブノードにおいても傍受できる。従って、各スレーブノードは、自身が送信ノードないし受信ノードとして指定されていないイベントのレスポンスに対しても、含まれるスレーブ時間補正用基準波形を取得して伝送クロックパルス幅(逆数がボーレートである)の計測を行なうことが可能であり、その計測結果を自ノードの伝送クロックパルス幅の補正に使用することも可能である。しかし、この方式では、スレーブノード間の発振精度の差異が大きいと、自ノードの通信相手として関与しないスレーブノードまで、その発振精度の影響を不必要に大きく受けることになり、ボーレート補正によるスレーブ/スレーブ間同期精度を十分に向上できない場合もありえる。   When the difference in the oscillation accuracy of the slave oscillation circuit provided in each slave node is large (for example, when the specification of the slave oscillation circuit is different between nodes, or even if it is the same specification, it is greatly affected by variations between lots, etc. For example, the baud rate correction at each slave node using the slave time correction reference waveform can be corrected by statistically taking into account the measurement result of the slave time correction reference waveform received in the past. / The synchronization accuracy between slaves can be further improved. On the communication bus, every time a communication event occurs, a response is continuously sent from one of the slave nodes. As described above, whether the response and the slave time correction reference waveform included in the response are involved in the communication event. Regardless of whether it is present or not, any slave node can intercept it. Therefore, each slave node acquires a reference waveform for slave time correction included in response to an event that is not designated as a transmission node or a reception node, and transmits a transmission clock pulse width (the reciprocal is a baud rate). It is also possible to use the measurement result to correct the transmission clock pulse width of the own node. However, in this method, if the difference in oscillation accuracy between slave nodes is large, the slave node that is not involved as the communication partner of the local node is unnecessarily affected by the oscillation accuracy, and slave / In some cases, the synchronization accuracy between slaves cannot be sufficiently improved.

そこで、各スレーブノードにおいてボーレート補正手段に、通信相手となるマスタノード及びスレーブノードのボーレート計測結果に係る実績値を、通信相手を特定する情報と対応付けた形で記憶するボーレート計測実績値記憶手段を設け、ボーレート計測実績値記憶手段に記憶されているボーレート計測実績値のうち、現在の通信相手に対応するものを選択的に読み出し、該ボーレート計測実績値に基づいて自スレーブノードのボーレートを補正するように構成することができる。現在の通信相手に対応するスレーブノードのボーレート計測実績値のみを選んで自ノードのボーレート補正に反映させるようにすれば、当然のことながら、自ノードの通信相手として関与しないスレーブノードの発振精度の影響を排除することができ、補正精度を高めることができる。   Therefore, the baud rate measurement result value storage means for storing the actual values related to the baud rate measurement results of the master node and the slave node that are communication partners in the baud rate correction means in each slave node in association with the information that identifies the communication partner. The baud rate measurement result value stored in the baud rate measurement result value storage means is selectively read out corresponding to the current communication partner, and the baud rate of the slave node is corrected based on the baud rate measurement result value. Can be configured to. If only the baud rate measurement result value of the slave node corresponding to the current communication partner is selected and reflected in the baud rate correction of the own node, it is natural that the oscillation accuracy of the slave node not involved as the communication partner of the own node is improved. The influence can be eliminated and the correction accuracy can be increased.

例えば、各スレーブノードにおいて、ボーレート補正手段は、自スレーブノードがマスタノードにより受信スレーブノードとして指定された場合に、ボーレート計測実績値記憶手段に記憶されている、それらマスタノード及び送信側となるスレーブノードに係る各ボーレート計測実績値に基づいて自スレーブノードのボーレートを補正するように構成できる。また、ボーレート計測実績値は、マスタボーレート及びスレーブボーレートの最新の計測値を用いて更新する。マスタボーレート及びスレーブボーレートの最新の計測値に過去の計測実績値を加味することで、計測誤差やばらつき、あるいは計測温度などの環境誤差の影響を軽減でき、ボーレート補正精度を向上できる。   For example, in each slave node, the baud rate correction means, when the slave node is designated as a reception slave node by the master node, is stored in the baud rate measurement result value storage means, and the slave on the master node and the transmission side The baud rate of the slave node can be corrected based on each baud rate measurement result value related to the node. The baud rate measurement result value is updated using the latest measurement values of the master baud rate and slave baud rate. By adding past measurement results to the latest measurement values of the master baud rate and slave baud rate, it is possible to reduce the influence of measurement errors and variations, or environmental errors such as measurement temperature, and improve baud rate correction accuracy.

一方、各スレーブノードにおいて、ボーレート補正手段は、自スレーブノードが送信スレーブノードとして指定された場合に、マスタノード及びスレーブノードのうち送信相手となる全てのノードに係る各ボーレート計測実績値をボーレート計測実績値記憶手段から読み出し、該ボーレート計測実績値に基づいて自スレーブノードのボーレートを補正するように構成することもできる。自ノードが送信スレーブノードとなる場合は、該ノードはスレーブ時間補正用基準波形の出力元となるので、当該通信イベントでの新たなボーレート測定結果を補正に使用する余地はない。しかし、通信相手が送信ノードとなったときの過去のボーレート測定結果が実績値として記憶されていれば、これを用いて自ノードが送信スレーブノードとなる場合にもボーレート補正が可能となり、補正精度の向上に寄与できる。   On the other hand, in each slave node, when the own slave node is designated as a transmission slave node, the baud rate correction means performs baud rate measurement results for all the nodes that are transmission partners of the master node and the slave node. It is also possible to read out from the actual value storage means and correct the baud rate of the slave node based on the baud rate measurement actual value. When the own node becomes a transmission slave node, the node becomes an output source of the slave time correction reference waveform, so there is no room for using a new baud rate measurement result at the communication event for correction. However, if the past baud rate measurement result when the communication partner becomes the transmission node is stored as the actual value, the baud rate can be corrected even when the own node becomes the transmission slave node using this, and the correction accuracy It can contribute to improvement.

各スレーブノードにおいてボーレート補正手段は、通信相手となるマスタノード及びスレーブノードのボーレート計測結果に係る実績値を、通信相手を区別せずに記憶するボーレート計測実績値記憶手段を設け、ボーレート計測実績値記憶手段に記憶されている自スレーブノード以外の全てのノードのボーレート計測実績値を読み出し、該ボーレート計測実績値に基づいて自スレーブノードのボーレートを補正するように構成することもできる。この方式は、スレーブ発振回路の発振精度の差異が大きい場合は望ましくないが、スレーブ発振回路の仕様が統一され、かつロットばらつき等の影響も小さく発振精度が比較的そろっている場合は、比較的良好なボーレート補正効果を達成でき、かつ、ボーレート計測結果に係る実績値を、通信相手を区別せずに採用するので補正方式が単純化され、ソフトウェア開発工数の削減を図ることができる。   The baud rate correction means in each slave node is provided with a baud rate measurement result value storage means for storing the actual values related to the baud rate measurement results of the master node and the slave node as communication partners without distinguishing the communication counterpart, and the baud rate measurement result value The baud rate measurement result values of all nodes other than the own slave node stored in the storage means may be read out, and the baud rate of the own slave node may be corrected based on the baud rate measurement result values. This method is not desirable when the difference in the oscillation accuracy of the slave oscillation circuit is large, but if the specification of the slave oscillation circuit is uniform and the influence of lot variation is small and the oscillation accuracy is relatively uniform, A good baud rate correction effect can be achieved, and the actual value related to the baud rate measurement result is adopted without distinguishing the communication partner, so that the correction method is simplified and the software development man-hours can be reduced.

以下、本発明の実施の形態を、図面を参照して説明する。
図1は、本発明のシリアル通信ネットワークシステムの全体構成を示すブロック図である。シリアル通信ネットワークシステム1は、1つのマスタノード10(M)と複数のスレーブノード10(S)とをLIN通信バス20により接続したものであり、ボデー系車載ネットワークを構成するものである。各ノード10は半二重式URATを組み込んだマイクロコントローラICからなり、それぞれトランシーバIC11を介して、シングルメタルワイヤからなるLIN通信バス20に接続されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing the overall configuration of the serial communication network system of the present invention. The serial communication network system 1 is a system in which one master node 10 (M) and a plurality of slave nodes 10 (S) are connected by a LIN communication bus 20 and constitute a body-based in-vehicle network. Each node 10 is composed of a microcontroller IC incorporating a half-duplex URAT, and is connected to a LIN communication bus 20 composed of a single metal wire via a transceiver IC 11.

図2は、各ノードをなすマイクロコントローラICの内部ブロック図である。該マイクロコントローラICは、CPU、RAM及びROMからなるマイクロプロセッサ101と、該マイクロプロセッサ101のペリフェラルの一部をなすURAT集積回路110とを主体に構成されている。LIN通信のプロトコル部分(後述のボーレート補正のためのプログラムを含む)はマイクロプロセッサ101のROMに格納されている。一方、URAT集積回路110はバス102にてマイクロプロセッサ101に接続され、受信レジスタ103、送信レジスタ104、発振回路105、分周回路106、受信回路107、送信回路108及びボーレート計測用のタイマカウンタ109を有するものである。   FIG. 2 is an internal block diagram of a microcontroller IC constituting each node. The microcontroller IC mainly includes a microprocessor 101 including a CPU, a RAM, and a ROM, and a URAT integrated circuit 110 that forms a part of the peripheral of the microprocessor 101. The protocol part of LIN communication (including a program for baud rate correction described later) is stored in the ROM of the microprocessor 101. On the other hand, the URAT integrated circuit 110 is connected to the microprocessor 101 by a bus 102, and receives a reception register 103, a transmission register 104, an oscillation circuit 105, a frequency dividing circuit 106, a reception circuit 107, a transmission circuit 108, and a timer counter 109 for baud rate measurement. It is what has.

マイクロコントローラICの基本ブロック自体はマスタノードとスレーブノードとで差異はないが、発振回路については、マスタノード10(M)では水晶発振回路105Q(又は、セラミック発振回路105C)で構成されるのに対し、スレーブノード10(S)ではCR発振回路105CRで構成される違いがある。この発振回路105からの基準クロック信号(マスタノードの場合はマスタ基準クロック信号、スレーブノードの場合はスレーブ基準クロック信号;いずれも1MHz〜100MHz(例えば24MHz)の範囲に設定される)は、そのままマイクロプロセッサ101に動作クロック信号として入力される一方、分周回路106により、該マイクロプロセッサ101からの指示値に対応する周波数(0.5〜20kHz(例えば、10kHz(9600bps)))にダウンコンバートされ、シリアル通信の伝送クロック信号として受信回路107及び送信回路108に分配入力される。   Although the basic block of the microcontroller IC itself is not different between the master node and the slave node, the master node 10 (M) is composed of the crystal oscillator circuit 105Q (or ceramic oscillator circuit 105C). On the other hand, the slave node 10 (S) has a difference constituted by the CR oscillation circuit 105CR. The reference clock signal from the oscillation circuit 105 (master reference clock signal in the case of a master node, slave reference clock signal in the case of a slave node; both are set in a range of 1 MHz to 100 MHz (for example, 24 MHz)) While being input to the processor 101 as an operation clock signal, the frequency dividing circuit 106 down-converts it to a frequency (0.5 to 20 kHz (for example, 10 kHz (9600 bps)) corresponding to an instruction value from the microprocessor 101. It is distributed and input to the receiving circuit 107 and the transmitting circuit 108 as a transmission clock signal for serial communication.

LIN通信では、データ伝送に際してのメッセージフレーム構造がプロトコルにより規定されている。図3は、本発明にて採用されるメッセージフレーム構造を、従来例と対比して示す概念図である。メッセージフレームはヘッダHDとレスポンスRSPとからなり、ヘッダHDはマスタタスクとして、レスポンスRSPはスレーブタスクとしてそれぞれ動作する。   In LIN communication, a message frame structure for data transmission is defined by a protocol. FIG. 3 is a conceptual diagram showing the message frame structure employed in the present invention in comparison with the conventional example. The message frame includes a header HD and a response RSP. The header HD operates as a master task, and the response RSP operates as a slave task.

ヘッダHDは、メッセージの開始を示すブレークフィールドBFと、マスタ時間補正用基準波形を組み込んだマスタ同期フィールドSF(MS)と、データ送信スレーブノード10(S)を特定するスレーブノード特定フィールド(以下、IDフィールドともいう)IDFとをこの順序で配列したものである。一方、レスポンスRSPは、従来は、送信対象となるデータを組み込んだデータフィールドDFと、エラーチェックフィールド(具体的には、チェックサムを送信するチャックサムフィールド)CSFとからのみ構成されていたが、本発明の実施形態では、データフィールドDFの前、つまり、レスポンスRSFの先頭に、スレーブ時間補正用基準波形を送信するスレーブ同期フィールドSF(SS)が新たに追加される。   The header HD includes a break field BF indicating the start of a message, a master synchronization field SF (MS) incorporating a master time correction reference waveform, and a slave node specification field (hereinafter, referred to as a data transmission slave node 10 (S)). IDFs (also called ID fields) are arranged in this order. On the other hand, the response RSP is conventionally composed only of a data field DF in which data to be transmitted is incorporated and an error check field (specifically, a chuck sum field for transmitting a checksum) CSF. In the embodiment of the present invention, a slave synchronization field SF (SS) for transmitting a slave time correction reference waveform is newly added before the data field DF, that is, at the head of the response RSF.

マスタノード10(M)によるヘッダHDの内容ならびにスレーブノード10(S)によるレスポンスRSPの内容は、マイコン101から送信レジスタ104に一旦格納され、送信回路108から送出される。これらは、受信ノードにて受信回路107により受信され、受信レジスタ103を経てマイコン101により内容が読み取られる。   The contents of the header HD by the master node 10 (M) and the contents of the response RSP by the slave node 10 (S) are temporarily stored in the transmission register 104 from the microcomputer 101 and transmitted from the transmission circuit 108. These are received by the reception circuit 107 at the reception node, and the contents are read by the microcomputer 101 via the reception register 103.

データフィールドDFにより1回に伝送されるデータ幅は例えば8ビットであり、調歩同期のためのスタートビットとストップビットとが前後に付加されて、例えば計10ビットが1データ単位となる。ただし、データ幅は可変設定とすることも可能である。UARTを用いてノード間の通信を行なう場合、該1データ単位でしか同期できないので、ボーレートに対しては、例えばISO9141では±1.0%と、特に厳しい精度が要求されている。   The data width transmitted at one time by the data field DF is, for example, 8 bits, and start bits and stop bits for start / stop synchronization are added to the front and back, for example, a total of 10 bits becomes one data unit. However, the data width can be variably set. When communication between nodes is performed using UART, only one data unit can be synchronized. Therefore, for baud rate, for example, ISO 9141 requires ± 1.0%, and particularly strict accuracy is required.

マスタ同期フィールドSF(MS)では、スレーブノード10(S)とマスタ/スレーブ間通信を行なう際の、マスタノード10(M)のボーレートを反映したマスタ時間補正用基準波形が送出される(マスタ時間補正用基準波形送出手段)。また、スレーブ同期フィールドSF(SS)では、2つのスレーブノード10(S)同士でスレーブ/スレーブ間通信を行なう際に、自スレーブノード10(S)(送信スレーブノード)のボーレートを反映したスレーブ時間補正用基準波形をシリアル通信バスに送出する(スレーブ時間補正用基準波形送出手段)。そして、各スレーブノード10(S)では、それらマスタ時間補正用基準波形と、スレーブ時間補正用基準波形との双方に基づき自スレーブノード10(S)のボーレートを補正する(ボーレート補正手段)。   In the master synchronization field SF (MS), a master time correction reference waveform reflecting the baud rate of the master node 10 (M) when the master / slave communication is performed with the slave node 10 (S) is transmitted (master time). Correction reference waveform sending means). In the slave synchronization field SF (SS), when the slave / slave communication is performed between the two slave nodes 10 (S), the slave time reflecting the baud rate of the own slave node 10 (S) (transmission slave node). A correction reference waveform is sent to the serial communication bus (slave time correction reference waveform sending means). Each slave node 10 (S) corrects the baud rate of its own slave node 10 (S) based on both the master time correction reference waveform and the slave time correction reference waveform (baud rate correction means).

マスタ同期フィールドSF(MS)とスレーブ同期フィールドSF(SS)とにおいて、各時間補正用基準波形は、それぞれマスタ伝送クロック信号とスレーブ伝送クロック信号とにより、図9に示すごとく、それぞれ一定ビット数のクロックパルス波形として生成される。なお、図9ではクロックパルス幅の計測対象としてA〜Hの9ビットが定められており、最初のビットであるAはスタートビットに兼用され、また、最後のビットIの後には計測に用いないストップビットが続いている。なお、スタートビットAを除くB〜Hの8ビットのみを計測対象としてもよい。   In the master synchronization field SF (MS) and the slave synchronization field SF (SS), each time correction reference waveform has a fixed number of bits as shown in FIG. 9 by the master transmission clock signal and the slave transmission clock signal, respectively. Generated as a clock pulse waveform. In FIG. 9, 9 bits A to H are determined as clock pulse width measurement targets, and the first bit A is also used as a start bit, and is not used for measurement after the last bit I. A stop bit follows. Note that only 8 bits B to H excluding the start bit A may be measured.

クロックパルス幅の計測は、マスタ基準クロック信号ないしスレーブ基準クロック信号にてカウントアップするタイマカウンタ109(デュアルカウンタとして構成しておくとよい)により、図10のようにして行なわれる。波形上に連続するドミナントレベル区間とレセッシブレベル区間とがそれぞれ計測の対象となり、その区間開始位置を示すエッジをトリガとして第一タイマーが計数開始し、区間終了位置を示すエッジを受けて計数を終了する。該エッジは、マイコンに対する第一タイマーの計数値読み取りの指令信号と、第二タイマーの計数開始のトリガとに兼用され、次区間の計数を該第二タイマーにて同様に実施し、区間終了位置を示すエッジ位置にて計数終了する。該エッジは、再び第一タイマーのトリガとなり、同様の動作が繰り返される。第一タイマー及び第二タイマーは、それぞれ計数開始後の適当なタイミングで、他方のタイマーにリセット信号を送出するようにしておく。   The clock pulse width is measured as shown in FIG. 10 by a timer counter 109 (which may be configured as a dual counter) that counts up with a master reference clock signal or a slave reference clock signal. The dominant level section and recessive level section that are continuous on the waveform are measured, and the first timer starts counting using the edge indicating the section start position as a trigger, and ends counting upon receiving the edge indicating the section end position. . The edge is used both as a command signal for reading the count value of the first timer to the microcomputer and as a trigger for starting the counting of the second timer, and the counting of the next section is similarly performed by the second timer. The counting ends at the edge position indicating. The edge again triggers the first timer, and the same operation is repeated. Each of the first timer and the second timer sends a reset signal to the other timer at an appropriate timing after the start of counting.

LIN通信においては、通信イベントは必ずマスタノードから開始される。図7上に示すように、マスタノードMNはヘッダHDを通信バス20に送出する(ヘッダ送出手段)。通信バス20はシングルワイヤであり、該通信バス20上に送出されたヘッダHDは全てのスレーブノードSNから見える状態、つまり、受信可能な状態になっている。ヘッダHDを受信した各スレーブノード10Sは、(受信/送信ノードの別なく)マスタ同期フィールドSF(MS)のマスタ時間補正用基準波形を受信しつつ、波形中の各クロックパルス幅を計測し、例えばそれらの加算平均値を、マスタボーレートを反映した値として演算する(以下、「ボーレートを演算する」等ともいう)。   In LIN communication, a communication event is always started from the master node. As shown in FIG. 7, the master node MN sends the header HD to the communication bus 20 (header sending means). The communication bus 20 is a single wire, and the header HD sent on the communication bus 20 is in a state where it can be seen from all the slave nodes SN, that is, in a receivable state. Each slave node 10S that has received the header HD measures the clock pulse width in the waveform while receiving the master time correction reference waveform of the master synchronization field SF (MS) (regardless of the reception / transmission node) For example, the average of these values is calculated as a value reflecting the master baud rate (hereinafter also referred to as “calculating the baud rate”).

マスタ基準クロック信号とスレーブ基準クロック信号とは同一の目標発振周波数に設定されており、マスタ時間補正用基準波形のクロックパルス幅の計測値には、上記目標発振周波数の計数したときの基準計測値が定められている。しかし、スレーブ基準クロック信号に誤差変動があればクロックパルス幅の計測値が該基準計測値からずれるので、図2において通信に関与するスレーブノード10(S)のマイコン101は、そのずれが縮小されるように自ノードのクロックパルス幅を補正演算し、分周回路106に、その補正結果に対応する周波数指示値を出力する。これを受けて、分周回路106は指示された周波数にダウンコンバート比率を変更し、スレーブボーレートを補正する。補正演算の詳細については後述する。   The master reference clock signal and the slave reference clock signal are set to the same target oscillation frequency, and the clock pulse width measurement value of the master time correction reference waveform is the reference measurement value when the target oscillation frequency is counted. Is stipulated. However, if there is an error variation in the slave reference clock signal, the measurement value of the clock pulse width deviates from the reference measurement value. Therefore, the deviation of the microcomputer 101 of the slave node 10 (S) involved in communication in FIG. 2 is reduced. Thus, the clock pulse width of the own node is corrected and calculated, and the frequency instruction value corresponding to the correction result is output to the frequency dividing circuit 106. In response to this, the frequency dividing circuit 106 changes the down-conversion ratio to the instructed frequency and corrects the slave baud rate. Details of the correction calculation will be described later.

次いで、IDフィールドIDFには識別子(ID)が記述されており、識別子の内容に応じて通信イベント、ひいては該通信イベントに関与するスレーブノードが一義的に特定される。具体的には、各スレーブノードSNのROM内には、図4に示すようなスケジューリングテーブルが格納されており、識別子の内容毎に送信スレーブノード(及び送信データ)と、受信スレーブノードとの特定情報が一義的に対応付けられた形で記憶されている。   Next, an identifier (ID) is described in the ID field IDF, and a communication event and, consequently, a slave node involved in the communication event is uniquely specified according to the content of the identifier. Specifically, a scheduling table as shown in FIG. 4 is stored in the ROM of each slave node SN, and a transmission slave node (and transmission data) and a reception slave node are specified for each identifier content. Information is stored in a uniquely associated form.

各スレーブノード10(S)は上記スケジューリングテーブルを参照して、識別子(ID)が自ノードを送信スレーブノードとして指定するものであるかどうかを確認する。送信スレーブノードとして指定されている場合は、該識別子にて要求されるデータをレスポンスとして通信バスに送出する(レスポンス送出手段)。一方、ヘッダは、受信スレーブノード10(S)Rにも送信されており、ここでもスケジューリングテーブルを参照して自ノードを受信スレーブノードとなっていることを確認できる。送信スレーブノード10(S)Tからのレスポンスは、本来マスタノード10(M)に向けられたものであるが、通信バス上に送出されたレスポンスの内容はどのスレーブノード10(S)からも見えるので、受信スレーブノード10(S)Rはこのレスポンスを傍受する形でデータを受信することができる。このようにしてスレーブ/スレーブ間のデータ通信が成立する。   Each slave node 10 (S) refers to the scheduling table and confirms whether the identifier (ID) designates the own node as a transmission slave node. If it is designated as a transmission slave node, data requested by the identifier is sent as a response to the communication bus (response sending means). On the other hand, the header is also transmitted to the receiving slave node 10 (S) R, and it can be confirmed here that the own node is the receiving slave node with reference to the scheduling table. The response from the transmission slave node 10 (S) T is originally directed to the master node 10 (M), but the content of the response sent on the communication bus is visible from any slave node 10 (S). Therefore, the receiving slave node 10 (S) R can receive data in the form of intercepting this response. In this way, data communication between slaves / slave is established.

そして、本発明のシステムでは、送信スレーブノード10(S)Tが、自身のスレーブ基準クロック信号をダウンコンバートする形でスレーブ時間補正用基準波形を生成し、図7の下に示すように、スレーブ同期フィールドSF(SS)としてこれを先頭に付加した形でレスポンスRSPを送出する。受信スレーブノード10(S)Rは、データフィールドDFを受信するに先立って、このスレーブ同期フィールドSF(SS)を受信し、前述のマスタ時間補正用基準波形の場合と全く同様に、波形中の各クロックパルス幅を計測し、例えばそれらの加算平均値を送信スレーブノードのボーレートを反映したクロックパルス幅として演算する。他方、受信スレーブノード10(S)Rは、レスポンスRSPの受信前にヘッダHDも受信し、その時計測したマスタノードのボーレートと、レスポンス受信時に計測した送信スレーブノードのボーレートとの双方を参照して自ノードのボーレートを補正するようにしている。   In the system of the present invention, the transmission slave node 10 (S) T generates a slave time correction reference waveform by down-converting its slave reference clock signal, and as shown in the lower part of FIG. The response RSP is sent in the form of adding it to the head as the synchronization field SF (SS). Prior to receiving the data field DF, the receiving slave node 10 (S) R receives this slave synchronization field SF (SS), and in the same way as in the case of the reference waveform for master time correction described above, Each clock pulse width is measured, and for example, an average value of these is calculated as a clock pulse width reflecting the baud rate of the transmission slave node. On the other hand, the receiving slave node 10 (S) R also receives the header HD before receiving the response RSP, and refers to both the baud rate of the master node measured at that time and the baud rate of the transmitting slave node measured at the time of receiving the response. The baud rate of the own node is corrected.

すなわち、スレーブ/スレーブ間通信を行なう際に、マスタノード10(M)だけでなく、送信スレーブノード10(S)Tからも時間補正用基準波形を取得し、それらマスタ時間補正用基準波形とスレーブ時間補正用基準波形との双方に基づいて自スレーブノード10(S)のボーレートを補正するので、従来は全く考慮されていなかったスレーブノード10(S)間のボーレート補正が可能となり、スレーブ/スレーブ間通信時の同期精度を問題なく確保できるようになる。また、後述のごとく過去のボーレート計測の実績値を記憶しておき、その実績値を用いてボーレート補正する方式を採用すれば、現在の通信イベントで他ノードからスレーブ時間補正用基準波形を取得できない送信スレーブノード10(S)Tにおいてもボーレート補正が可能となる。   That is, when performing slave-slave communication, time correction reference waveforms are acquired not only from the master node 10 (M) but also from the transmission slave node 10 (S) T, and these master time correction reference waveforms and slaves are acquired. Since the baud rate of the slave node 10 (S) is corrected based on both the time correction reference waveform, the baud rate correction between the slave nodes 10 (S), which has not been considered in the past, can be performed. Synchronization accuracy during inter-communication can be ensured without problems. In addition, if a method for storing the past baud rate measurement values and correcting the baud rate using the actual values as described later is adopted, a slave time correction reference waveform cannot be acquired from another node at the current communication event. The baud rate can also be corrected at the transmission slave node 10 (S) T.

以下、スレーブノードにおけるボーレート補正方法についてさらに詳細に説明する。各スレーブノード(SN1,SN2‥)は、マスタノードからのヘッダを受信するたびにマスタ時間補正用基準波形のクロックパルス幅を計測し、図5に示すように、これをマスタノード(MN)のボーレート計測結果実績値として、RAM内の実績値メモリに記憶する(ボーレート計測実績値記憶手段)。また、受信スレーブノードとなる場合に、受信スレーブノードからのレスポンスに含まれるスレーブ時間補正用基準波形のクロックパルス幅を計測し、これをスレーブボーレートの計測結果実績値として、受信スレーブノードを特定する情報(SN2,SN3,‥)と対応付けて同様に実績値メモリに記憶する。   Hereinafter, the baud rate correction method in the slave node will be described in more detail. Each slave node (SN1, SN2,...) Measures the clock pulse width of the master time correction reference waveform every time it receives a header from the master node, and this is measured by the master node (MN) as shown in FIG. The baud rate measurement result result value is stored in a result value memory in the RAM (baud rate measurement result value storage means). Also, when becoming a receiving slave node, measure the clock pulse width of the reference waveform for slave time correction included in the response from the receiving slave node, and specify the receiving slave node using this as the measurement result actual value of the slave baud rate Corresponding to the information (SN2, SN3,...) Is stored in the result value memory in the same manner.

図5に示すように、実績値メモリには、時間補正用基準波形の送信元ノード毎に、クロックパルス幅の計測実績値が過去の一定回数分(図5では5回)だけ蓄積されている。図5の上にスレーブノードSN1の実績値メモリの内容を模式的に示しており、例えば、マスタノードMNからのボーレート(クロックパルス幅)計測実績値がそれぞれf m1,f m2,f m3,‥、スレーブノードSN2からのボーレート(クロックパルス幅)計測実績値がそれぞれf 21,f 22,f 23,‥、等としてシフトメモリ形態に記憶されている。そして、蓄積された計測実績値の送信元ノード別の平均値(f mn,f 2n,f 3n‥)が、各送信元ノードの現在のボーレートを反映した情報として計算され、実績値メモリに合わせて記憶されている。各送信元ノードから新たな時間補正用基準波形を受ければ、その送信元ノードの最新のボーレート計測実績値が計測され、記憶されている最も古い実績値を消去するとともに、該最新の計測実績値を反映した平均値が演算しなおされ、実績値メモリの記憶内容が更新される。 As shown in FIG. 5, the measurement value value of the clock pulse width is accumulated in the actual value memory for a certain past number of times (five times in FIG. 5) for each transmission source node of the time correction reference waveform. . FIG. 5 schematically shows the contents of the actual value memory of the slave node SN1, for example, the baud rate (clock pulse width) measurement actual values from the master node MN are f 1 m1 , f 1 m2 , and f 1 , respectively. m3, ‥, f 1 21 baud rate from the slave node SN2 (clock pulse width) measured actual values, respectively, f 1 22, f 1 23 , ‥, stored in the shift memory form as such. Then, the average value (f 1 mn , f 1 2n , f 1 3n ...) Of the accumulated measurement performance values for each transmission source node is calculated as information reflecting the current baud rate of each transmission source node. It is stored according to the memory. When a new time correction reference waveform is received from each transmission source node, the latest baud rate measurement actual value of the transmission source node is measured, and the oldest actual measurement value stored is erased, and the latest measurement actual value The average value reflecting the above is recalculated, and the stored contents of the result value memory are updated.

図8に、各スレーブノードのマイコン101(図2)におけるボーレート補正の処理流れの一例を示す。S1においては、マスタ同期フィールド(ヘッダ)を受けているかどうかを確認し、受けていればS2に進み、前述の方式によりマスタボーレート(クロックパルス幅)を計測して、図5の実績値メモリに記憶し、平均値の更新を行なう。一方、マスタ同期フィールドを受けていなければS2をスキップする。次に、S3ではIDフィールドを受けているかどうかを確認する。受けていればS4に進み、図4のスケジューリングテーブルを参照して、IDフィールド内の識別子(ID)が、自ノードを送信スレーブノードとして指定するものであるかどうかを確認する。自ノードが送信スレーブノードに指定されていればS5に進み、同様にスケジューリングテーブルを参照して、受信スレーブノードがどれであるかを特定し(複数のこともありえる)、S6に進む。   FIG. 8 shows an example of a processing flow of baud rate correction in the microcomputer 101 (FIG. 2) of each slave node. In S1, it is confirmed whether or not the master synchronization field (header) is received. If received, the process proceeds to S2, and the master baud rate (clock pulse width) is measured by the above-described method, and the result value memory of FIG. Store and update the average value. On the other hand, if the master synchronization field has not been received, S2 is skipped. Next, in S3, it is confirmed whether or not the ID field is received. If it has been received, the process proceeds to S4, and with reference to the scheduling table of FIG. 4, it is confirmed whether or not the identifier (ID) in the ID field designates the own node as a transmission slave node. If the own node is designated as a transmission slave node, the process proceeds to S5, similarly, referring to the scheduling table, identifies which reception slave node is (possibly a plurality of), and proceeds to S6.

S6では図5の実績値メモリを参照し、特定された受信スレーブノードのボーレート(クロックパルス間隔)計測実績値の平均値を全て読み出す。例えば、自ノードがスレーブノードSN1であり、受信スレーブノードがSN2のみであった場合、自ノードに設定する伝送クロックパルス間隔を次のように算出する。すなわち、図5の実績値メモリには、S2で演算・更新されたマスタノードMNのクロックパルス間隔計測値の平均値がf mnとして、また、上記S6で読み出した受信スレーブノードSN2のクロックパルス間隔計測値の平均値がf 2nとして記憶されているので、これらを読み出し、自ノードに設定する伝送クロックパルス間隔fpを、
fp=(f mn+f 2n)/2
として演算する。他方、受信スレーブノードがSN2とSN3であった場合は、受信スレーブノードSN2,SN3のクロックパルス間隔計測値の平均値f 2n及びf 2nを読み出し、自ノードに設定する伝送クロックパルス間隔fpを、
fp=(f mn+f 2n+f 3n)/3
として演算する。いずれも、ボーレートνpは、
νp=1/fp
であり、この値が、分周回路106(図2)に設定周波数として出力され、自ノード(送信スレーブノード)のボーレート補正がなされる。
In S6, referring to the actual value memory of FIG. 5, all the average values of the measured actual values of the baud rate (clock pulse interval) of the specified receiving slave node are read. For example, when the own node is the slave node SN1 and the receiving slave node is only the SN2, the transmission clock pulse interval set in the own node is calculated as follows. That is, in the actual value memory of FIG. 5, the average value of the clock pulse interval measurement values of the master node MN calculated and updated in S2 is f 1 mn , and the clock pulse of the reception slave node SN2 read out in S6 above Since the average value of the interval measurement values is stored as f 1 2n , these are read out, and the transmission clock pulse interval fp set in the own node is
fp = (f 1 mn + f 1 2n ) / 2
Calculate as On the other hand, when the receiving slave nodes are SN2 and SN3, the average values f 1 2n and f 1 2n of the clock pulse interval measurement values of the receiving slave nodes SN2 and SN3 are read and the transmission clock pulse interval fp set in the own node is read. The
fp = (f 1 mn + f 1 2n + f 1 3n ) / 3
Calculate as In both cases, the baud rate νp is
νp = 1 / fp
This value is output as a set frequency to the frequency dividing circuit 106 (FIG. 2), and the baud rate correction of the own node (transmission slave node) is performed.

次に、S4で自ノードが送信スレーブノードとして指定されていなかった場合にはS5及びS6をスキップしてS7に進み、自ノードを受信スレーブノードとして指定するものであるかどうかを確認する。自ノードが受信スレーブノードに指定されていればS8に進み、スケジューリングテーブルを参照して、送信スレーブノードがどれであるかを特定し、S9に進む。   Next, when the own node is not designated as the transmission slave node in S4, the process skips S5 and S6 and proceeds to S7 to check whether or not the own node is designated as the reception slave node. If the own node is designated as the receiving slave node, the process proceeds to S8, the scheduling table is referred to identify the transmitting slave node, and the process proceeds to S9.

S9では図5の実績値メモリを参照し、特定された送信スレーブノードのボーレート(クロックパルス間隔)計測実績値の平均値を読み出す。例えば、自ノードがスレーブノードSN1であり、送信スレーブノードがSN5であった場合、自ノードに設定する伝送クロックパルス間隔fpを、
fp=(f mn+f 5n)/2
として演算する。ボーレートνpは、
νp=1/fp
であり、この値が、分周回路106(図2)に設定周波数として出力され、自ノード(受信スレーブノード)のボーレート補正がなされる。
In S9, the actual value memory of FIG. 5 is referred to, and the average value of the measured actual values of the baud rate (clock pulse interval) of the specified transmission slave node is read. For example, when the local node is the slave node SN1 and the transmission slave node is SN5, the transmission clock pulse interval fp set in the local node is
fp = (f 1 mn + f 1 5n ) / 2
Calculate as The baud rate νp is
νp = 1 / fp
This value is output as a set frequency to the frequency dividing circuit 106 (FIG. 2), and the baud rate correction of the own node (receiving slave node) is performed.

S4ないしS7で、自ノードが送信スレーブノードにも受信スレーブノードにもいずれにも指定されていなかった場合には、S5、S6、S8、S9はスキップされ、ボーレート補正は実施されない。また、S1でヘッダが受信されていない場合は、S3でIDフィールドが受信されず、S10にジャンプする。このときは、送信スレーブノードからのレスポンスを受ける流れとなる。すなわち、S10では、すでに受信しているヘッダ(のIDフィールド)で、どのノードが受信スレーブノードであるかが特定できているので(S8)、その受信スレーブノードの特定情報をメモリ保持する。   In S4 to S7, when the own node is not designated as either the transmission slave node or the reception slave node, S5, S6, S8, and S9 are skipped, and the baud rate correction is not performed. If no header is received in S1, the ID field is not received in S3, and the process jumps to S10. At this time, a response is received from the transmission slave node. That is, in S10, since it is possible to identify which node is the receiving slave node by the header (ID field) that has already been received (S8), the identification information of the receiving slave node is held in the memory.

続いてS11ではレスポンスの先頭にあるスレーブ同期フィールドを受信しているかどうかを判定する。受信していればS12に進み、メモリ保持されている受信スレーブノードの特定情報を読み出す。そして、スレーブ同期フィールド内のスレーブ時間補正用基準波形から前述の方式によりスレーブボーレート(クロックパルス幅)を計測し、S13にて、図5の実績値メモリの対応するスレーブボーレートのエリアに記憶し、平均値の更新を行なう。   Subsequently, in S11, it is determined whether or not the slave synchronization field at the head of the response has been received. If it is received, the process proceeds to S12, and the specific information of the receiving slave node held in the memory is read. Then, the slave baud rate (clock pulse width) is measured by the above-described method from the slave time correction reference waveform in the slave synchronization field, and in S13, it is stored in the corresponding slave baud rate area of the actual value memory of FIG. Update the average value.

以上の処理では、各スレーブノードにおいて、自ノードが受信スレーブノードとして指定された場合に、マスタノードと送信スレーブノードとのボーレート計測実績値のみを用いて自ノードのボーレートを補正するようにしていた。また、自ノードが送信スレーブノードとして指定された場合には、マスタノードと受信スレーブノードとのボーレート計測実績値のみを用いて自ノードのボーレートを補正するようにしていた。すなわち、現在の通信相手に対応するスレーブノードのボーレート計測実績値のみを選んで自ノードのボーレート補正を行なうことで、自ノードの通信相手として関与しないスレーブノードの発振精度の影響を排除することができ、補正精度を高めることができる。   In the above processing, in each slave node, when the own node is designated as the receiving slave node, the baud rate of the own node is corrected using only the actual baud rate measurement values of the master node and the transmitting slave node. . When the own node is designated as a transmission slave node, the baud rate of the own node is corrected using only the actual baud rate measurement values of the master node and the receiving slave node. In other words, by selecting only the baud rate measurement value of the slave node corresponding to the current communication partner and correcting the baud rate of the own node, the influence of the oscillation accuracy of the slave node not involved as the communication partner of the own node can be eliminated. It is possible to improve the correction accuracy.

しかし、スレーブノード間の発振精度のばらつきが比較的小さい場合は、図6に示すように、各スレーブノードにおいて、通信相手となるマスタノード及びスレーブノードのボーレート計測結果に係る実績値を、通信相手を区別せずに記憶するようにしておき(f1,f2,f3,‥)、これら自ノード以外の全てのノード(つまり、自ノード以外のスレーブノードとマスタノード)のボーレート計測実績値を読み出して、例えば、その平均値として自ノードの設定ボーレートを算出するようにしてもよい。   However, when the variation in oscillation accuracy between the slave nodes is relatively small, as shown in FIG. 6, in each slave node, the master node that is the communication partner and the actual value related to the baud rate measurement result of the slave node are Are stored without distinction (f1, f2, f3,...), And the baud rate measurement result values of all the nodes other than the own node (that is, slave nodes and master nodes other than the own node) are read out. For example, the set baud rate of the own node may be calculated as the average value.

そこで、各スレーブノード10(S)においてボーレート補正手段に、通信相手となるマスタノード10(M)及びスレーブノード10(S)のボーレート計測結果に係る実績値を、通信相手を特定する情報と対応付けた形で記憶するボーレート計測実績値記憶手段を設け、ボーレート計測実績値記憶手段に記憶されているボーレート計測実績値のうち、現在の通信相手に対応するものを選択的に読み出し、該ボーレート計測実績値に基づいて自スレーブノード10(S)のボーレートを補正するように構成することができる。現在の通信相手に対応するスレーブノード10(S)のボーレート計測実績値のみを選んで自ノードのボーレート補正に反映させるようにすれば、当然のことながら、自ノードの通信相手として関与しないスレーブノード10(S)の発振精度の影響を排除することができ、補正精度を高めることができる。   Therefore, in each slave node 10 (S), the baud rate correction means corresponds to the master node 10 (M) and the actual value related to the baud rate measurement result of the slave node 10 (S) with the information specifying the communication partner. Baud rate measurement result value storage means for storing in the attached form is provided, and the baud rate measurement result values stored in the baud rate measurement result value storage means are selectively read out corresponding to the current communication partner, and the baud rate measurement is performed. The baud rate of the slave node 10 (S) can be corrected based on the actual value. If only the baud rate measurement result value of the slave node 10 (S) corresponding to the current communication partner is selected and reflected in the baud rate correction of the own node, it is natural that the slave node is not involved as the communication partner of the own node. The influence of 10 (S) oscillation accuracy can be eliminated, and the correction accuracy can be increased.

例えば、各スレーブノード10(S)において、ボーレート補正手段は、自スレーブノード10(S)がマスタノード10(M)により受信スレーブノード10(S)として指定された場合に、当該受信時におけるマスタボーレートの最新の計測結果と、同じく送信側となるスレーブノード10(S)に係るスレーブボーレートの最新の計測結果とに、ボーレート計測実績値記憶手段に記憶されている、それらマスタノード10(M)及び送信側となるスレーブノード10(S)に係る各ボーレート計測実績値をそれぞれ加味した形で自スレーブノード10(S)のボーレートを補正するように構成できる。また、ボーレート計測実績値は、マスタボーレート及びスレーブボーレートの最新の計測値を用いて更新する。マスタボーレート及びスレーブボーレートの最新の計測値に過去の計測実績値を加味することで、計測誤差やばらつき、あるいは計測温度などの環境誤差の影響を軽減でき、ボーレート補正精度を向上できる。なお、自スレーブノード10(S)がマスタノード10(M)により受信スレーブノード10(S)として指定された場合において、ボーレート計測実績値を加味せず、マスタボーレート及びスレーブボーレートの最新の計測値のみに基づいてボーレート補正を行なうことも可能である。この場合は、ボーレート計測実績値記憶手段を省略することができる。   For example, in each slave node 10 (S), the baud rate correction means, when the slave node 10 (S) is designated as the receiving slave node 10 (S) by the master node 10 (M), the master at the time of reception. The latest measurement result of the baud rate and the latest measurement result of the slave baud rate related to the slave node 10 (S) on the transmission side are stored in the baud rate measurement result value storage means, and these master nodes 10 (M) In addition, the baud rate of the slave node 10 (S) can be corrected in consideration of each baud rate measurement result value related to the slave node 10 (S) on the transmission side. The baud rate measurement result value is updated using the latest measurement values of the master baud rate and slave baud rate. By adding past measurement results to the latest measurement values of the master baud rate and slave baud rate, it is possible to reduce the influence of measurement errors and variations, or environmental errors such as measurement temperature, and improve baud rate correction accuracy. When the slave node 10 (S) is designated as the receiving slave node 10 (S) by the master node 10 (M), the latest measured values of the master baud rate and slave baud rate are not taken into account, without considering the actual baud rate measurement values. It is also possible to correct the baud rate based only on the above. In this case, the baud rate measurement result value storage means can be omitted.

一方、各スレーブノード10(S)において、ボーレート補正手段は、自スレーブノード10(S)が送信スレーブノード10(S)として指定された場合に、マスタノード10(M)及びスレーブノード10(S)のうち送信相手となる全てのノードに係る各ボーレート計測実績値をボーレート計測実績値記憶手段から読み出し、該ボーレート計測実績値に基づいて自スレーブノード10(S)のボーレートを補正するように構成することもできる。自ノードが送信スレーブノード10(S)となる場合は、該ノードはスレーブ時間補正用基準波形の出力元となるので、当該通信イベントでの新たなボーレート測定結果を補正に使用する余地はない。しかし、通信相手が送信ノードとなったときの過去のボーレート測定結果が実績値として記憶されていれば、これを用いて自ノードが送信スレーブノード10(S)となる場合にもボーレート補正が可能となり、補正精度の向上に寄与できる。   On the other hand, in each slave node 10 (S), the baud rate correction means, when its own slave node 10 (S) is designated as the transmission slave node 10 (S), the master node 10 (M) and the slave node 10 (S ) Is read from the baud rate measurement result value storage means, and the baud rate of the slave node 10 (S) is corrected based on the baud rate measurement result value. You can also When the own node becomes the transmission slave node 10 (S), the node becomes the output source of the slave time correction reference waveform, so there is no room for using a new baud rate measurement result at the communication event for correction. However, if the past baud rate measurement result when the communication partner becomes the transmission node is stored as the actual value, the baud rate can be corrected even when the own node becomes the transmission slave node 10 (S) using this result. Thus, the correction accuracy can be improved.

各スレーブノード10(S)においてボーレート補正手段は、通信相手となるマスタノード10(M)及びスレーブノード10(S)のボーレート計測結果に係る実績値を、通信相手を区別せずに記憶するボーレート計測実績値記憶手段を設け、ボーレート計測実績値記憶手段に記憶されている自スレーブノード10(S)以外の全ノードのボーレート計測実績値を読み出し、該ボーレート計測実績値に基づいて自スレーブノード10(S)のボーレートを補正するように構成することもできる。この方式は、スレーブ発振回路105RCの発振精度の差異が大きい場合は望ましくないが、スレーブ発振回路105RCの仕様が統一され、かつロットばらつき等の影響も小さく発振精度が比較的そろっている場合は、比較的良好なボーレート補正効果を達成でき、かつ、ボーレート計測結果に係る実績値を、通信相手を区別せずに採用するので補正方式が単純化され、ソフトウェア開発工数の削減を図ることができる。   In each slave node 10 (S), the baud rate correction means stores the actual value related to the baud rate measurement result of the master node 10 (M) and the slave node 10 (S) as communication partners without distinguishing the communication partner. Measurement result value storage means is provided, the baud rate measurement result values of all nodes other than the own slave node 10 (S) stored in the baud rate measurement result value storage means are read, and the own slave node 10 is read based on the baud rate measurement result value. It can also be configured to correct the baud rate of (S). This method is not desirable when the difference in oscillation accuracy of the slave oscillation circuit 105RC is large, but when the specifications of the slave oscillation circuit 105RC are unified and the influence of lot variation is small and the oscillation accuracy is relatively uniform, A relatively good baud rate correction effect can be achieved, and the actual value related to the baud rate measurement result is adopted without distinguishing the communication partner, so that the correction method is simplified and the software development man-hours can be reduced.

以下、本発明の効果を示すいくつかの実例について説明する。
図11においては、スレーブノード1を送信スレーブノードとし、スレーブノード2を受信スレーブノードとしてスレーブ/スレーブ間通信を行なう場合の、各ノード間のボーレート誤差発生状況の一例を示すものである。ボーレート誤差は、送信スレーブノード(すなわち、スレーブノード1)を基準とした相対値により示しており、送信スレーブノードよりもボーレートが大きい場合を「+」、同じく小さい場合を「−」で表している。マスタノードの相対誤差は−0.4%と比較的小さいが、スレーブノード2の相対誤差は−2.2%と大きい。スレーブノード1がヘッダをマスタノードから受けるとき、及びスレーブノード1がレスポンスをマスタノードに返すときはマスタ/スレーブ間通信となり、相対誤差は−0.4%と小さく、前述のISO9141の許容範囲(±1.0%:幅にして2.0%)にも収まっている。しかし、スレーブノード1のレスポンスをスレーブノード2でも受信する場合は、許容範囲を外れる+2.2%である。
Hereinafter, some examples showing the effects of the present invention will be described.
FIG. 11 shows an example of a baud rate error occurrence state between nodes when slave-slave communication is performed using slave node 1 as a transmission slave node and slave node 2 as a reception slave node. The baud rate error is indicated by a relative value based on the transmission slave node (that is, slave node 1), and the case where the baud rate is larger than that of the transmission slave node is represented by “+”, and the case where the baud rate is smaller is represented by “−”. . The relative error of the master node is relatively small as −0.4%, but the relative error of the slave node 2 is as large as −2.2%. When the slave node 1 receives a header from the master node, and when the slave node 1 returns a response to the master node, communication between the master and slave is performed, and the relative error is as small as −0.4%, and the above-described allowable range of ISO 9141 ( ± 1.0%: 2.0% in width). However, when the response of the slave node 1 is also received by the slave node 2, it is + 2.2% outside the allowable range.

そこで、既に説明したスレーブ時間補正用基準波形とマスタ時間補正用基準波形との双方を用いて、スレーブノード1のボーレートを、マスタノードとスレーブノード2との各ボーレートの平均値を目標として補正すると、スレーブノード1のボーレートの相対誤差換算で、マスタノードに対する値−0.4%とスレーブノード2に対する値−2.2%との平均値、すなわち、
{−0.4+(−2.2)}/2=−1.3%
分だけ(ボーレートが縮小する側に)補正されるので、図12に示すように、スレーブノード1から見たマスタノードの相対誤差は+0.9%、同じくスレーブノード2の相対誤差は−0.9%となり、いずれも許容範囲内に収めることができる。
Therefore, using both the slave time correction reference waveform and the master time correction reference waveform described above, the baud rate of the slave node 1 is corrected with the average value of the baud rates of the master node and the slave node 2 as a target. In the relative error conversion of the baud rate of the slave node 1, the average value of the value -0.4% for the master node and -2.2% for the slave node 2, that is,
{−0.4 + (− 2.2)} / 2 = −1.3%
Therefore, the relative error of the master node viewed from the slave node 1 is + 0.9%, and the relative error of the slave node 2 is −0. 9%, which can be all within the allowable range.

次に、図13に示すように、マスタノードと5つのスレーブノードとからなるネットワークにて、スレーブノード3を送信スレーブノード、スレーブノード1,4が受信ノードとなる場合を考える(スレーブノード3を基準とした各ノードのボーレートの相対誤差を図中に表示している)。そして、スレーブノード3のボーレート補正を、受信ノードのボーレート計測値だけを選択的に用いて行なう場合(以下、受信ノード選択補正という)と、通信に関与しないノードも含めた全ノードのボーレート計測値を用いて行なう場合(以下、全ノード補正という)とで、その効果の比較を行なう。   Next, as shown in FIG. 13, in a network composed of a master node and five slave nodes, consider a case where slave node 3 is a transmission slave node and slave nodes 1 and 4 are reception nodes (slave node 3 is The relative error of the baud rate of each node as a reference is displayed in the figure). Then, when the baud rate correction of the slave node 3 is performed selectively using only the baud rate measurement value of the receiving node (hereinafter referred to as receiving node selection correction), the baud rate measurement values of all nodes including nodes not involved in communication are used. The effect is compared with the case of using (hereinafter referred to as all node correction).

受信ノード選択補正の場合は、スレーブノード3のボーレートは、マスタノード、スレーブノード1及びスレーブノード4の各ボーレートの平均値を目標として補正されるので、スレーブノード3のボーレートの相対誤差換算での補正量は、
{+0.4(マスタ)+2.2(スレーブ1)+0.6(スレーブ4)}/3=+1.0%(小数点第2桁を切り捨て表示)
となり、1.0%だけボーレートが拡大する側に補正される。他方、全ノード補正の場合は、同様に、
{+0.4(マスタ)+2.2(スレーブ1)+0.6(スレーブ2)+0.6(スレーブ4)+0.4(スレーブ5)}/5=+0.8%(小数点第2桁を切り捨て表示)
となり、0.8%だけボーレートが拡大する側に補正される。しかし、この補正量は、受信ノード選択補正の場合より明らかに小さい。
In the case of the reception node selection correction, the baud rate of the slave node 3 is corrected with the average value of each baud rate of the master node, the slave node 1 and the slave node 4 as a target. The amount of correction is
{+0.4 (master) +2.2 (slave 1) +0.6 (slave 4)} / 3 = + 1.0% (the second decimal place is truncated)
Thus, the baud rate is corrected to be increased by 1.0%. On the other hand, in the case of all node correction,
{+0.4 (master) +2.2 (slave 1) +0.6 (slave 2) +0.6 (slave 4) +0.4 (slave 5)} / 5 = + 0.8% (the second decimal place is rounded down) display)
Thus, the baud rate is corrected by 0.8%. However, this correction amount is clearly smaller than in the case of receiving node selection correction.

補正後の結果を図14に示す。スレーブノード3(送信)に対する相対誤差が最も大きいスレーブノード1での補正効果で比較すると、補正前は+2.2%であった相対誤差が、受信ノード選択補正では1.0%縮小されて+1.2%となり、全ノード補正では0.8%縮小されて+1.4%となる。いずれも、誤差は縮小されているが、受信ノード選択補正のほうがその効果が大きいことがわかる。なお、理解を容易にするために、スレーブノード3のみをボーレート補正した結果にて示したので、スレーブノード1については補正後の相対誤差は許容範囲外となっているが、スレーブノード1についてもボーレート補正を行なうことで相対誤差を許容範囲内に収めることができる。   The result after correction is shown in FIG. Comparing with the correction effect in slave node 1 having the largest relative error with respect to slave node 3 (transmission), the relative error that was + 2.2% before correction is reduced by 1.0% in the reception node selection correction, and +1 .2%, with all node corrections reduced by 0.8% to + 1.4%. In either case, the error is reduced, but it can be seen that the effect of receiving node selection correction is greater. For ease of understanding, only the slave node 3 is shown as a result of the baud rate correction. Therefore, the corrected relative error is out of the allowable range for the slave node 1, but the slave node 1 also By performing baud rate correction, the relative error can be kept within an allowable range.

次に、図15に示す同様のシステム構成で、従来のごとくマスタ時間補正用基準波形のみを用いてマスタ/スレーブ間のみのボーレート補正を行なった場合を比較例とし、スレーブ時間補正用基準波形も併用して、スレーブ/スレーブ間のボーレート補正も行なう場合を実施例として、その効果の差を対比して説明する。ここでもスレーブノード3が送信スレーブノードであり、受信スレーブノードはスレーブノード1のみとする。スレーブノード3はマスタノードに合わせてボーレートを補正し同期をとるが、このときの同期誤差が±0.1%存在していると考える。   Next, in the same system configuration shown in FIG. 15, a case where baud rate correction only between the master and slave is performed using only the master time correction reference waveform as in the conventional case, and the slave time correction reference waveform is also shown. A case where the baud rate correction between the slaves and the slaves is also performed will be described as an example, and the difference in the effects will be compared. Here again, the slave node 3 is a transmission slave node, and the reception slave node is only the slave node 1. The slave node 3 corrects the baud rate and synchronizes with the master node, but it is considered that there is ± 0.1% synchronization error at this time.

まず比較例であるが、スレーブノード3はマスタノードに同期することで、図16に示すように、マスタノードとの相対誤差が縮小する向き、具体的には+0.2%ボーレートが補正される。すると、補正前は+2.2%あったスレーブノード1との相対誤差は+0.2%縮小し、補正後は+2.0%となり、許容範囲の辛くも収まる形となる。しかし、これはマスタノードに対する同期誤差を考慮しない場合であって、実際には同期誤差が負側に存在するとき、補正後の相対誤差も許容範囲外となってしまう懸念が生ずる。   First, as a comparative example, the slave node 3 is synchronized with the master node, thereby correcting the relative error with the master node, specifically, + 0.2% baud rate, as shown in FIG. . Then, the relative error with the slave node 1 which was + 2.2% before the correction is reduced by + 0.2%, and after the correction is + 2.0%, which is within the allowable range. However, this is a case where the synchronization error with respect to the master node is not taken into consideration, and when the synchronization error actually exists on the negative side, there is a concern that the corrected relative error is also outside the allowable range.

そこで、実施例のごとく、スレーブノード3とスレーブノード1との同期も考慮すると、スレーブノード3のボーレートは、
{+0.2(マスタ)+2.2(スレーブ3)}/2=+1.2%
だけスレーブノードに近づく向きに補正されるので、図17に示すように、スレーブノード3から見たマスタノードの相対誤差は−1.0%、同じくスレーブノード1の相対誤差は+1.0%となり、仮に同期誤差が±0.1%存在しても、余裕をもって許容範囲内に収めることができることがわかる。
Therefore, as in the embodiment, considering the synchronization between the slave node 3 and the slave node 1, the baud rate of the slave node 3 is
{+0.2 (master) +2.2 (slave 3)} / 2 = + 1.2%
Therefore, as shown in FIG. 17, the relative error of the master node viewed from the slave node 3 is −1.0%, and the relative error of the slave node 1 is + 1.0%. Even if there is a synchronization error of ± 0.1%, it can be seen that it can be within an allowable range with a margin.

本発明のシリアル通信ネットワークシステムの全体構成例を示すブロック図。The block diagram which shows the example of whole structure of the serial communication network system of this invention. 図1の通信ネットワークを構成する各ノードのブロック図。The block diagram of each node which comprises the communication network of FIG. 本発明を採用したLIN通信のメッセージフレーム構造を、従来の構造と対比してしめす模式図。The schematic diagram which shows the message frame structure of LIN communication which employ | adopted this invention as contrasted with the conventional structure. スケジューリングテーブルの模式図。The schematic diagram of a scheduling table. スレーブノードにおける実績値メモリの第一例を示す図。The figure which shows the 1st example of the performance value memory in a slave node. 同じく第二例を示す図。The figure which shows a 2nd example similarly. 図1のネットワークにおける通信手順の概略を示す説明図。Explanatory drawing which shows the outline of the communication procedure in the network of FIG. 本発明に従うボーレート補正処理の一例を示すフローチャート。The flowchart which shows an example of the baud rate correction | amendment process according to this invention. 時間補正用基準波形の模式図。The schematic diagram of the reference waveform for time correction. タイマカウンタによるボーレート計測の説明図。Explanatory drawing of baud rate measurement by a timer counter. ノード間のボーレート誤差発生状況の一例を示す図。The figure which shows an example of the baud rate error occurrence condition between nodes. 図11に本発明を適用したときの効果説明図。FIG. 12 is an effect explanatory diagram when the present invention is applied to FIG. 11. 本発明の効果検証に使用した第一のシステム構成をボーレート誤差とともに示す図。The figure which shows the 1st system configuration used for the effect verification of this invention with a baud rate error. 図13のシステムにおける本発明の効果を、受信ノード選択補正を行なった場合と全ノード補正を行なった場合とで対比して示す説明図。Explanatory drawing which shows the effect of this invention in the system of FIG. 13 by contrast with the case where receiving node selection correction | amendment is performed, and the case where all node correction | amendment is performed. 本発明の効果検証に使用した第二のシステム構成をボーレート誤差とともに示す図。The figure which shows the 2nd system configuration | structure used for the effect verification of this invention with the baud rate error. 図13のシステムにおいて、マスタ/スレーブ間同期のみを考慮する比較例の作用説明図。FIG. 14 is an operation explanatory diagram of a comparative example in which only master / slave synchronization is considered in the system of FIG. 13. 同じくスレーブ/スレーブ間同期も考慮した実施例の作用・効果説明図。FIG. 6 is a diagram for explaining the operation and effect of the embodiment in consideration of slave / slave synchronization.

符号の説明Explanation of symbols

1 シリアル通信ネットワークシステム
10(M) マスタノード
10(S) スレーブノード
20 シリアル通信バス
101 マイコン(ボーレート補正手段)
105Q(105C) マスタ発振回路
105RC スレーブ発振回路
106 分周回路(マスタ伝送クロック信号生成回路、スレーブ伝送クロック信号生成回路)
109 タイマカウンタ(マスタボーレート計測手段、スレーブボーレート計測手段)
HD ヘッダ
BF ブレークフィールド
SF(MS) マスタ同期フィールド
IDF スレーブノード特定フィールド
RSP レスポンス
SF(SS) スレーブ同期フィールド
DF データフィールド
CSF エラーチェックフィールド
DESCRIPTION OF SYMBOLS 1 Serial communication network system 10 (M) Master node 10 (S) Slave node 20 Serial communication bus 101 Microcomputer (baud rate correction means)
105Q (105C) Master oscillation circuit 105RC Slave oscillation circuit 106 Divider circuit (master transmission clock signal generation circuit, slave transmission clock signal generation circuit)
109 Timer counter (master baud rate measuring means, slave baud rate measuring means)
HD header BF break field SF (MS) master synchronization field IDF slave node specific field RSP response SF (SS) slave synchronization field DF data field CSF error check field

Claims (9)

調歩同期型シリアル通信により接続された1つのマスタノードと複数のスレーブノードとからなるシリアル通信ネットワークシステムであって、
前記マスタノードに設けられ、前記スレーブノードとマスタ/スレーブ間通信を行なう際に、前記マスタノードのボーレートを反映したマスタ時間補正用基準波形をシリアル通信バスに送出するマスタ時間補正用基準波形送出手段と、
各前記スレーブノードに設けられ、通信相手となる他のスレーブノードとスレーブ/スレーブ間通信を行なう際に、自スレーブノードのボーレートを反映したスレーブ時間補正用基準波形を前記シリアル通信バスに送出するスレーブ時間補正用基準波形送出手段と、
各前記スレーブノードに設けられ、前記マスタノードから取得したマスタ時間補正用基準波形と、他のスレーブノードから取得した前記スレーブ時間補正用基準波形との双方に基づき自スレーブノードのボーレートを補正するボーレート補正手段と、
を備えたことを特徴とするシリアル通信ネットワークシステム。
A serial communication network system comprising one master node and a plurality of slave nodes connected by asynchronous serial communication,
A master time correction reference waveform transmitting means provided in the master node for transmitting a master time correction reference waveform reflecting the baud rate of the master node to the serial communication bus when performing communication between the slave node and the master / slave. When,
A slave that is provided in each of the slave nodes and that transmits a slave time correction reference waveform reflecting the baud rate of the slave node to the serial communication bus when performing communication between the slave and the slave that is a communication partner. Time correction reference waveform sending means;
A baud rate that is provided in each slave node and corrects the baud rate of the slave node based on both the master time correction reference waveform acquired from the master node and the slave time correction reference waveform acquired from another slave node. Correction means;
A serial communication network system comprising:
前記マスタノードには、マスタ基準クロック信号を生成するマスタ発振回路と、該マスタ基準クロック信号をダウンコンバートして前記マスタ伝送クロック信号を生成するマスタ伝送クロック信号生成回路とが設けられ、
各前記スレーブノードには、前記マスタ基準クロック信号に対応する周波数のスレーブ基準クロック信号を生成するスレーブ発振回路と、該スレーブ基準クロック信号をダウンコンバートして前記マスタ伝送クロック信号に対応する周波数の前記スレーブ伝送クロック信号を生成するスレーブ伝送クロック信号生成回路とを備え、前記ボーレート補正手段は、前記マスタ時間補正用基準波形が示す前記マスタノードのボーレートを、前記スレーブ基準クロック信号を用いて計測するマスタボーレート計測手段と、前記スレーブ時間補正用基準波形が示す、通信相手となるスレーブノードのボーレートを、前記スレーブ基準クロック信号を用いて計測するスレーブボーレート計測手段とを備え、自スレーブノードのボーレートを前記マスタノードのボーレートの計測結果と、前記通信相手となるスレーブノードのボーレートの計測結果との双方を参照して補正する請求項1記載のシリアル通信ネットワークシステム。
The master node is provided with a master oscillation circuit that generates a master reference clock signal, and a master transmission clock signal generation circuit that downconverts the master reference clock signal to generate the master transmission clock signal,
Each of the slave nodes includes a slave oscillation circuit that generates a slave reference clock signal having a frequency corresponding to the master reference clock signal, and downconverting the slave reference clock signal to a frequency corresponding to the master transmission clock signal. A slave transmission clock signal generation circuit for generating a slave transmission clock signal, wherein the baud rate correction means measures the baud rate of the master node indicated by the master time correction reference waveform using the slave reference clock signal. Baud rate measuring means, and slave baud rate measuring means for measuring the baud rate of the slave node that is the communication partner indicated by the reference waveform for slave time correction using the slave reference clock signal, and the baud rate of the slave node is Master no Serial communication network system according to claim 1, wherein the measurement result of the baud rate, is corrected with reference to both the measurement result of the baud rate of the slave node serving as the communication partner.
前記マスタボーレート計測手段と前記スレーブボーレート計測手段は、それぞれ前記マスタ時間補正用基準波形及び前記スレーブ時間補正用基準波形のクロックパルス幅を計測するものであり、前記ボーレート補正手段は、前記マスタ時間補正用基準波形のクロックパルス幅と前記スレーブ時間補正用基準波形のクロックパルス幅との平均値に基づいて前記自スレーブノードのボーレートを補正するものである請求項2記載のシリアル通信ネットワークシステム。   The master baud rate measuring means and the slave baud rate measuring means measure clock pulse widths of the master time correction reference waveform and the slave time correction reference waveform, respectively, and the baud rate correction means includes the master time correction. 3. The serial communication network system according to claim 2, wherein the baud rate of the slave node is corrected based on an average value of a clock pulse width of the reference waveform for use and a clock pulse width of the reference waveform for correction of the slave time. 前記シリアル通信バスはLIN通信バスである請求項2又は請求項3に記載のシリアル通信ネットワークシステム。   4. The serial communication network system according to claim 2, wherein the serial communication bus is a LIN communication bus. 複数の前記スレーブノードの1つを送信スレーブノードとし、他の1以上を受信スレーブノードとして、前記送信スレーブノードから前記受信スレーブノードへデータ送信する際に、
前記マスタノードは、メッセージの開始を示すブレークフィールドと、前記マスタ時間補正用基準波形を組み込んだマスタ同期フィールドと、前記データ送信スレーブノードを特定するスレーブノード特定フィールドとが配列したヘッダを前記通信バスに送出するヘッダ送出手段を有し、
各前記スレーブノードは、前記ヘッダを受信するヘッダ受信手段と、前記スレーブノード特定フィールドが示す前記送信スレーブノードとして自スレーブノードが指定されている場合に、前記スレーブ時間補正用基準波形を組み込んだスレーブ同期フィールドと、送信対象となるデータを組み込んだデータフィールドと、エラーチェックフィールドとが配列したレスポンスを前記通信バスに送出するレスポンス送出手段とを備える請求項4記載のシリアル通信ネットワークシステム。
When transmitting data from the transmission slave node to the reception slave node, one of the plurality of slave nodes as a transmission slave node and the other one or more as a reception slave node,
The master node has a header in which a break field indicating the start of a message, a master synchronization field incorporating the master time correction reference waveform, and a slave node specification field for specifying the data transmission slave node are arranged in the communication bus A header sending means for sending to
Each of the slave nodes includes a header receiving means for receiving the header, and a slave incorporating the slave time correction reference waveform when the own slave node is designated as the transmission slave node indicated by the slave node specifying field. 5. The serial communication network system according to claim 4, further comprising response sending means for sending a response in which a synchronization field, a data field incorporating data to be transmitted, and an error check field are arranged to the communication bus.
各前記スレーブノードにおいて、前記ボーレート補正手段は、通信相手となる前記マスタノード及び前記スレーブノードのボーレート計測結果に係る実績値を、前記通信相手を特定する情報と対応付けた形で記憶するボーレート計測実績値記憶手段を備え、前記ボーレート計測実績値記憶手段に記憶されているボーレート計測実績値のうち、現在の通信相手に対応するものを選択的に読み出し、該ボーレート計測実績値に基づいて前記自スレーブノードのボーレートを補正するものである請求項2ないし請求項5のいずれか1項に記載のシリアル通信ネットワークシステム。   In each of the slave nodes, the baud rate correction means stores a performance value related to a baud rate measurement result of the master node and the slave node that are communication partners in association with information for specifying the communication partner. A baud rate measurement result value stored in the baud rate measurement result value storage unit is selectively read out from the baud rate measurement result value corresponding to the current communication partner, and based on the baud rate measurement result value 6. The serial communication network system according to claim 2, wherein the baud rate of the slave node is corrected. 各前記スレーブノードにおいて、前記ボーレート補正手段は、自スレーブノードが前記マスタノードにより受信スレーブノードとして指定された場合に、前記ボーレート計測実績値記憶手段に記憶されている、それらマスタノード及び送信側となるスレーブノードに係る各ボーレート計測実績値に基づいて前記自スレーブノードのボーレートを補正する請求項6記載のシリアル通信ネットワークシステム。   In each of the slave nodes, the baud rate correction means includes a master node and a transmission side stored in the baud rate measurement result value storage means when the slave node is designated as a reception slave node by the master node. The serial communication network system according to claim 6, wherein the baud rate of the slave node is corrected based on each baud rate measurement result value related to the slave node. 各前記スレーブノードにおいて、前記ボーレート補正手段は、自スレーブノードが送信スレーブノードとして指定された場合に、前記マスタノード及びスレーブノードのうち送信相手となる全てのノードに係る各ボーレート計測実績値を前記ボーレート計測実績値記憶手段から読み出し、該ボーレート計測実績値に基づいて前記自スレーブノードのボーレートを補正する請求項6記載のシリアル通信ネットワークシステム。   In each of the slave nodes, the baud rate correction means, when the slave node is designated as a transmission slave node, the baud rate measurement actual values for all the nodes that are transmission partners of the master node and the slave node. The serial communication network system according to claim 6, wherein the serial communication network system reads out from the baud rate measurement result value storage means and corrects the baud rate of the slave node based on the baud rate measurement result value. 各前記スレーブノードにおいて、前記ボーレート補正手段は、通信相手となる前記マスタノード及び前記スレーブノードのボーレート計測結果に係る実績値を、前記通信相手を区別せずに記憶するボーレート計測実績値記憶手段と、前記ボーレート計測実績値記憶手段に記憶されている自スレーブノード以外の全てのノードのボーレート計測実績値を読み出し、該ボーレート計測実績値に基づいて前記自スレーブノードのボーレートを補正するものである請求項2ないし請求項5のいずれか1項に記載のシリアル通信ネットワークシステム。   In each of the slave nodes, the baud rate correction unit includes a baud rate measurement result value storage unit that stores a record value related to a baud rate measurement result of the master node and the slave node that are communication partners without distinguishing the communication partner. The baud rate measurement result values of all nodes other than the own slave node stored in the baud rate measurement result value storage means are read, and the baud rate of the own slave node is corrected based on the baud rate measurement result value. The serial communication network system according to any one of claims 2 to 5.
JP2008204235A 2008-08-07 2008-08-07 Serial communication network system Expired - Fee Related JP4905808B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008204235A JP4905808B2 (en) 2008-08-07 2008-08-07 Serial communication network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008204235A JP4905808B2 (en) 2008-08-07 2008-08-07 Serial communication network system

Publications (2)

Publication Number Publication Date
JP2010041567A JP2010041567A (en) 2010-02-18
JP4905808B2 true JP4905808B2 (en) 2012-03-28

Family

ID=42013606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008204235A Expired - Fee Related JP4905808B2 (en) 2008-08-07 2008-08-07 Serial communication network system

Country Status (1)

Country Link
JP (1) JP4905808B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101135235B1 (en) 2010-04-08 2012-04-12 성균관대학교산학협력단 Method for dynamic clock drift compensation in network based systmem and apparatus for the same
JP5549513B2 (en) * 2010-10-01 2014-07-16 富士通株式会社 Transmission system, slave transmission device, and clock synchronization method
JP2013026835A (en) * 2011-07-21 2013-02-04 Denso Corp Communication device
JP5598441B2 (en) * 2011-07-27 2014-10-01 株式会社デンソー Communication device
KR102405889B1 (en) * 2020-04-27 2022-06-08 에스큐아이소프트(주) Edge device for data collection and processing to self-diagnose communication status
CN111585681B (en) * 2020-05-08 2023-04-14 海信容声(广东)冰箱有限公司 a household appliance
US12542641B2 (en) * 2022-04-01 2026-02-03 AyDeeKay LLC Single-thread detection of valid synchronization headers

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10111151A (en) * 1996-10-09 1998-04-28 Yokogawa Electric Corp Measuring sequence controller
JP3386777B2 (en) * 1999-05-11 2003-03-17 ファナック株式会社 Numerical control system
JP2006157271A (en) * 2004-11-26 2006-06-15 Yaskawa Electric Corp Synchronizing method of serial transmission device
JP2006352340A (en) * 2005-06-14 2006-12-28 Yaskawa Electric Corp Master device, slave device and communication system
JP2007324679A (en) * 2006-05-30 2007-12-13 Nec Electronics Corp Baud rate generator for serial communication

Also Published As

Publication number Publication date
JP2010041567A (en) 2010-02-18

Similar Documents

Publication Publication Date Title
JP4905808B2 (en) Serial communication network system
US10146725B2 (en) Method and device for checking the correct functioning of a serial data transmission
US9209942B2 (en) Communication system and communication apparatus
JP4116073B2 (en) Method for periodically transmitting data between at least two distributed controllers
CN101960771B (en) Communication system comprising a data bus and several subscriber nodes connected thereto and method for operating such a communication system
JP7542307B2 (en) Slave node, method for synchronizing communication between a slave node and a master node, and control component of a slave node - Patents.com
US8448035B2 (en) Communication system adapting for car, communication apparatus adapting for car, and communication method adapting for car
EP1472607B1 (en) Distributed control and monitoring system
US20130290580A1 (en) Method and device for serial data transmission at a switchable data rate
US9461937B2 (en) Method and device for a serial data transmission with additionally inserted data
CN102761385A (en) Cross-network synchronization of application s/w execution using Flexray global time
JP2020108144A (en) Master node of a distributed acquisition system, method of synchronizing communication between a master node and one or more slave nodes, and control component
JP2011010190A (en) Disconnection abnormality detecting device
CN112448874A (en) Vehicle-mounted communication device and time synchronization method thereof
JP5892890B2 (en) Communication control device
JP6477438B2 (en) Communication apparatus and communication system
JP5742693B2 (en) Communication apparatus and clock synchronous communication system
JP2958601B2 (en) Data communication method
JP2668898B2 (en) Bus control circuit
KR100597436B1 (en) Apparatus and Method for Synchronizing Cycle Time in Wireless 1394 System
JPH08202653A (en) Parallel signal transmission device
CN113868178B (en) A communication method, system and storage medium based on I2C bus
CN116069698B (en) SPI data transmission method and device
JP2007166179A (en) Serial communication device
Kammerer TTCAN

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110310

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111208

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: 20111215

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111228

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

Free format text: PAYMENT UNTIL: 20150120

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4905808

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150120

Year of fee payment: 3

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees