JP2011120167A - Communication system and communication method - Google Patents

Communication system and communication method Download PDF

Info

Publication number
JP2011120167A
JP2011120167A JP2009277789A JP2009277789A JP2011120167A JP 2011120167 A JP2011120167 A JP 2011120167A JP 2009277789 A JP2009277789 A JP 2009277789A JP 2009277789 A JP2009277789 A JP 2009277789A JP 2011120167 A JP2011120167 A JP 2011120167A
Authority
JP
Japan
Prior art keywords
data
information
setting
communication device
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009277789A
Other languages
Japanese (ja)
Other versions
JP5476956B2 (en
Inventor
Ikunosuke Kurosaki
郁之助 黒崎
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2009277789A priority Critical patent/JP5476956B2/en
Publication of JP2011120167A publication Critical patent/JP2011120167A/en
Application granted granted Critical
Publication of JP5476956B2 publication Critical patent/JP5476956B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication system and communication method where communication efficiency is improved by allowing a system configuration to be flexibly changed. <P>SOLUTION: The communication system where a master ECU 1 and slave input/output devices 2a, 2b, 2c, 2d are ring or daisy chain connected is achieved by: allowing the master ECU1 to transmit address and data setting information to an input/output device 2a being a slave device; allowing the input/output device 2a to not only rewrite the address information while determining address thereof from the address information but also write the setting of the data used thereby in the data setting information so as to transfer the written data setting information to the adjacent input/output device 2b; further allowing the address and data setting information to be rewritten and written by each device in the input/output devices 2b, 2c, 2d so as to be transferred to the master ECU 1; and finally allowing the master ECU 1 to receive the transferred information so that the entire system configuration is confirmed for the start of the communication. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、複数の通信装置を含む通信システムに関し、特に、各通信装置に固有の識別情報を与えずとも識別を可能として構成を同一とし、更に、システムの構成の変更に柔軟に対応させ、通信効率を向上させることができる通信システム及び通信方法に関する。   The present invention relates to a communication system including a plurality of communication devices, in particular, the configuration can be made the same without giving unique identification information to each communication device, and moreover, the system configuration can be flexibly dealt with, The present invention relates to a communication system and a communication method that can improve communication efficiency.

近年では、多数の機器を制御して、全体として多様な機能を実現させる制御システムが普及している。機器には夫々を制御する制御装置が接続され、更に各制御装置に通信手段を設けて相互にデータを交換させ、個々の制御装置が独立した制御を行なうのではなく、他の制御装置などを介して得られるデータに基づいて自身に対応する制御対象の機器を制御するなど、連携して制御を実行する通信システムとして実現し、多様な分野で利用されている。   In recent years, control systems that control a large number of devices and realize various functions as a whole have become widespread. A control device for controlling each device is connected to each device, and each control device is provided with a communication means to exchange data with each other so that each control device does not perform independent control, but other control devices, etc. It is realized as a communication system that executes control in cooperation, such as controlling a device to be controlled corresponding to itself based on data obtained through the network, and is used in various fields.

このようなシステムでは、機能の増加に伴い、制御対象の機器の数も増加すると共に、制御に用いるデータを取得、又は測定するセンサなどの機器の数も増加する。特に車両の分野では、各種機能に対応するアクチュエータ又はセンサなどの機器が多数車内に配され、各機器を制御する制御装置としてECU(Electronic Control Unit)が各々に対応して配され、通信機能により相互にデータを送受信して動作する。   In such a system, as the function increases, the number of devices to be controlled increases, and the number of devices such as sensors that acquire or measure data used for control also increases. Especially in the field of vehicles, a lot of devices such as actuators or sensors corresponding to various functions are arranged in the vehicle, and an ECU (Electronic Control Unit) is arranged corresponding to each as a control device for controlling each device. Operates by sending and receiving data to and from each other.

多数の制御装置夫々に通信機能を持たせて通信装置として連携しあう通信システムでは従来、予め固有の識別情報が設定されて各自メモリに記憶しており、各通信装置はデータを送信する際に識別情報を送信する構成としてきた。これにより、通信装置は夫々データを送信する際に、送信元として記憶してある自身の識別情報と、宛先の装置の識別情報とを共に送信する。これにより、各装置が自身宛のデータがあるかを各自で判断し、データの送信元の装置の識別情報を認識することができる。   In a communication system in which a large number of control devices each have a communication function and cooperate as a communication device, unique identification information is set in advance and stored in its own memory, and when each communication device transmits data, It has been configured to transmit identification information. Thereby, when each communication device transmits data, it transmits both its own identification information stored as the transmission source and the identification information of the destination device. Thus, each device can determine whether or not there is data addressed to itself, and can recognize the identification information of the device that is the data transmission source.

しかしながら、従来の方法では予め固有の識別情報を設定して記憶させておくために、手間がかかる。また制御装置を大量に必要とする場合、夫々に固有の識別情報を設定しなければならず、識別情報の情報量が膨大となる。   However, in the conventional method, it takes time to set and store unique identification information in advance. In addition, when a large amount of control devices are required, unique identification information must be set for each, and the information amount of the identification information becomes enormous.

そこで、特許文献1には、リング型又はディジーチェーン型の接続形態にて接続される複数の通信装置が、各自固有の識別情報を設定しておくことなしに相互のアドレスを特定することができる発明が開示されている。この発明では、複数の通信装置は1つのマスタと複数のスレーブとで構成され、マスタが任意のアドレス値Xを送信した場合に各スレーブがアドレス値Xに一定値を加算して転送する。これにより、各装置は受信したアドレス値又は送信するアドレス値を基準に自身のアドレス値として認識する。また、マスタは全装置へ送信された後のアドレス値に基づき、スレーブの数を認識できる。これにより、予め識別情報を設定しておかなくとも、複数の通信装置は相互に認識することができるから、通信装置を同一の構成で作製でき、大量生産に適する。   Therefore, in Patent Document 1, a plurality of communication devices connected in a ring type or daisy chain type connection form can specify mutual addresses without setting their own identification information. The invention is disclosed. In this invention, a plurality of communication devices are composed of one master and a plurality of slaves. When the master transmits an arbitrary address value X, each slave adds a fixed value to the address value X and transfers it. As a result, each device recognizes the received address value or the address value to be transmitted as its own address value. Also, the master can recognize the number of slaves based on the address value after being transmitted to all devices. Thereby, even if the identification information is not set in advance, the plurality of communication devices can recognize each other. Therefore, the communication device can be manufactured with the same configuration, and is suitable for mass production.

特開平3−72740号公報Japanese Patent Laid-Open No. 3-72740

特許文献1に開示されている発明により、予め固有の識別情報を設定しておくことなしに、実際に通信線に各通信装置を接続した後の状態にて順次、接続処理、又はデータの送受信処理を行なうことによって各通信装置にマスタからの接続順序に対応する識別情報を付与し、通信時に用いることが可能となる。   According to the invention disclosed in Patent Document 1, connection processing or data transmission / reception is sequentially performed in a state after each communication device is actually connected to a communication line without setting unique identification information in advance. By performing the processing, identification information corresponding to the connection order from the master can be given to each communication device, and can be used during communication.

しかしながら、各スレーブに、マスタからの接続順序に対応する識別情報を付与した後に、スレーブを更に追加するか、又はいずれかのスレーブを入れ替えるなどの必要がある場合、再度識別情報の付与が必要である。また、各通信装置に識別情報を付与した後は、マスタが宛先のスレーブの識別情報とデータとの組み合わせにて各スレーブへ逐一、送信することとなり、通信効率が不十分となる可能性がある。   However, after adding identification information corresponding to the connection order from the master to each slave, it is necessary to add identification information again when it is necessary to add more slaves or replace any of the slaves. is there. In addition, after giving identification information to each communication device, the master will transmit to each slave one by one with a combination of the identification information and data of the destination slave, and communication efficiency may be insufficient. .

本発明は斯かる事情に鑑みてなされたものであり、システムの構成の変更に柔軟に対応させ、通信効率を向上させることができる通信システム及び通信方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide a communication system and a communication method that can flexibly cope with a change in system configuration and improve communication efficiency.

第1発明に係る通信システムは、1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されて通信する通信システムにおいて、前記マスタ通信装置は、各スレーブ通信装置のアドレス情報、及び各スレーブ通信装置が使用するデータを判別するために設定するデータ設定情報を送信する手段と、前記複数のスレーブ通信装置のいずれかから転送される前記アドレス情報及びデータ設定情報を受信する手段とを備え、前記複数のスレーブ通信装置は夫々、隣り合う通信装置の一方から前記アドレス情報及びデータ設定情報を受信する手段と、受信したアドレス情報に基づき自アドレスを決定して記憶する手段と、前記アドレス情報を用いた演算結果に基づき、受信したアドレス情報を書き換える手段と、受信したデータ設定情報に、自身が使用するデータを判別するための情報を設定する手段と、書き換え後のアドレス情報及び設定後のデータ設定情報を隣り合う通信装置の他方へ転送する手段とを備えることを特徴とする。   The communication system according to the first invention is a communication system in which one master communication device and a plurality of slave communication devices communicate by ring connection or daisy chain connection, wherein the master communication device includes address information of each slave communication device, And means for transmitting data setting information set to determine data used by each slave communication device; and means for receiving the address information and data setting information transferred from any of the plurality of slave communication devices Each of the plurality of slave communication devices receives means for receiving the address information and data setting information from one of the adjacent communication devices, means for determining and storing its own address based on the received address information, and A means for rewriting the received address information based on a calculation result using the address information; Means for setting information for determining data used by itself in the received data setting information, and means for transferring the address information after rewriting and the data setting information after setting to the other of the adjacent communication devices. It is characterized by that.

第2発明に係る通信システムは、前記マスタ通信装置は、受信したデータ設定情報に基づき、各スレーブ通信装置が夫々使用する複数のデータを含むデータフレームを送信する手段を備え、各スレーブ通信装置は、前記データフレームから、前記設定に基づきデータを受信するか、又は前記設定に基づき、前記データフレーム内の対応する位置にデータを送信することを特徴とする。   In the communication system according to a second aspect of the present invention, the master communication device includes means for transmitting a data frame including a plurality of data used by each slave communication device based on the received data setting information. Receiving data from the data frame based on the setting or transmitting data to a corresponding position in the data frame based on the setting.

第3発明に係る通信システムは、1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されてデジタル信号を送受信する通信システムにおいて、前記マスタ通信装置は、夫々複数ビットからなるアドレス値ビット及びデータ設定ビットを含む設定信号を送信する手段と、スレーブ通信装置から転送される前記設定信号を受信する手段とを備え、前記複数のスレーブ通信装置は夫々、隣り合う通信装置の一方から前記設定信号を受信する手段と、受信した設定信号の内のアドレス値ビットからアドレス値を読み取る手段と、読み取ったアドレス値に基づきアドレスを決定して記憶する手段と、前記アドレス値と所定値との演算結果に基づき、受信した前記設定信号の内のアドレス値ビットを書き換える手段と、受信した設定信号のデータ設定ビットの内、自身が使用する1又は複数のビットを書き換える書換手段と、書き換え後のアドレス値ビット及びデータ設定ビットを含む設定信号を隣り合う通信装置の他方へ転送する手段とを備えることを特徴とする。   A communication system according to a third aspect of the present invention is a communication system in which one master communication device and a plurality of slave communication devices are connected in a ring connection or daisy chain to transmit and receive digital signals, and each of the master communication devices comprises a plurality of bits. Means for transmitting a setting signal including an address value bit and a data setting bit, and means for receiving the setting signal transferred from the slave communication device, wherein each of the plurality of slave communication devices is one of adjacent communication devices. Means for receiving the setting signal from, means for reading an address value from an address value bit in the received setting signal, means for determining and storing an address based on the read address value, and the address value and a predetermined value Based on the calculation result, the address value bits in the received setting signal are rewritten. And rewriting means for rewriting one or more bits used by itself among the data setting bits of the received setting signal, and the setting signal including the rewritten address value bit and data setting bit to the other of the adjacent communication devices. And means for transferring.

第4発明に係る通信システムは、前記データ設定書換手段は、受信した設定信号のデータ設定ビットの内、自身が使用する1又は複数のビットの先頭位置を特定する手段と、特定した先頭位置を記憶する手段と、前記データ設定ビットの内、記憶した先頭位置から自身が使用するビット数分を反転させる手段とを備えることを特徴とする。   In the communication system according to a fourth aspect of the present invention, the data setting rewriting means includes a means for specifying a head position of one or a plurality of bits used by itself among data setting bits of the received setting signal, and a specified head position. And means for inverting the number of bits used by itself from the stored head position among the data setting bits.

第5発明に係る通信システムは、前記マスタ通信装置は、受信した設定信号に基づき、各スレーブ通信装置が夫々使用するビットからなるデータ信号を送信する手段を備え、各スレーブ通信装置は、前記データ信号から、記憶してある先頭位置に基づき自身が使用するビットを取り出すか、又は前記先頭位置から自身が使用するビットにデータを書き込み、送信することを特徴とする。   In the communication system according to a fifth aspect of the present invention, the master communication device includes means for transmitting a data signal composed of bits used by each slave communication device based on the received setting signal, and each slave communication device includes the data A bit used by itself is extracted from a signal based on a stored head position, or data is written to a bit used by the head from the head position and transmitted.

第6発明に係る通信方法は、1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されて通信する通信方法において、前記マスタ通信装置は、各スレーブ通信装置のアドレス情報、及び各スレーブ通信装置が使用するデータを判別するために設定するデータ設定情報を送信し、前記複数のスレーブ通信装置は夫々、隣り合う通信装置の一方から前記設定情報を受信し、受信したアドレス情報に基づき自アドレスを決定し、前記アドレス情報を用いた演算結果に基づき、受信したアドレス情報を書き換え、受信したデータ設定情報に、自身が使用するデータを判別するための情報を設定し、書き換え後のアドレス情報及び設定後のデータ設定情報を隣り合う通信装置の他方へ転送し、前記マスタ通信装置は、隣り合うスレーブ通信装置の一方から転送される前記アドレス情報及びデータ設定情報を受信し、受信したアドレス情報及びデータ設定情報に基づき、各スレーブ通信装置によるデータの送受信を制御することを特徴とする。   A communication method according to a sixth aspect of the present invention is a communication method in which one master communication device and a plurality of slave communication devices communicate with each other by ring connection or daisy chain connection, wherein the master communication device includes address information of each slave communication device, And data setting information set to determine data used by each slave communication device, and each of the plurality of slave communication devices receives the setting information from one of the adjacent communication devices, and receives the received address information. Based on the calculation result using the address information, the received address information is rewritten, and the received data setting information is set with information for determining the data used by the self-address. The address information and post-setting data setting information to the other of the adjacent communication devices, and the master communication device Receiving the address information and data setting information transferred from one of the adjacent slave communication devices, and controlling transmission / reception of data by each slave communication device based on the received address information and data setting information .

第7発明に係る通信方法は、1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されてデジタル信号を送受信する通信方法において、前記マスタ通信装置は、夫々複数ビットからなるアドレス値ビット及びデータ設定ビットを含む設定信号を送信し、前記複数のスレーブ通信装置は夫々、隣り合う通信装置の一方から前記設定信号を受信し、受信した設定信号の内のアドレス値ビットからアドレス値を読み取り、読み取ったアドレス値に基づきアドレスを決定し、前記アドレス値と所定値との演算結果に基づき、受信した前記設定信号の内のアドレス値ビットを書き換え、受信した設定信号のデータ設定ビットの内、自身が使用する1又は複数のビットを書き換え、書き換え後のアドレス値ビット及びデータ設定ビットを含む設定信号を隣り合う通信装置の他方へ転送し、前記マスタ通信装置は、隣り合うスレーブ通信装置の一方から転送される前記設定信号を受信し、受信した設定信号に基づき、各スレーブ通信装置によるデータの送受信を制御することを特徴とする。   A communication method according to a seventh aspect of the present invention is a communication method in which one master communication device and a plurality of slave communication devices are connected in a ring connection or daisy chain to transmit and receive a digital signal. Each of the master communication devices comprises a plurality of bits. A setting signal including an address value bit and a data setting bit is transmitted, and each of the plurality of slave communication devices receives the setting signal from one of the adjacent communication devices, and addresses from the address value bits in the received setting signal. Read the value, determine the address based on the read address value, rewrite the address value bit in the received setting signal based on the calculation result of the address value and a predetermined value, and the data setting bit of the received setting signal Among them, one or more bits used by itself are rewritten, and the address value bits after rewriting and A setting signal including a data setting bit is transferred to the other of the adjacent communication devices, the master communication device receives the setting signal transferred from one of the adjacent slave communication devices, and based on the received setting signal, Controlling transmission / reception of data by the slave communication device.

本発明では、マスタ通信装置と複数のスレーブ通信装置とが、リング接続又はディジーチェーン接続されており、マスタ通信装置により通信が制御される。まずマスタ通信装置が各スレーブ通信装置のアドレス値情報、及び各スレーブ通信装置が設定するデータ設定情報を含む設定情報を送信する。マスタ通信装置と隣り合うスレーブ通信装置から順に、設定情報を受信し、受信した設定情報に含まれるアドレス値情報からアドレス値を読み取り、読み取ったアドレス値に基づき自アドレスを決定し、以後決定した自アドレスに基づき、データを受信する。更に、スレーブ通信装置は受信した設定情報に含まれるアドレス値情報のアドレス値に対し、所定値との演算を行なって演算結果に基づいて、受信した設定情報に含まれていたアドレス値情報を書き換える。また、スレーブ通信装置は、受信した設定情報に含まれているデータ設定情報に、自身が使用するデータを判別するための情報を設定し、以後送信される情報から当該設定に基づき使用するデータを判別する。各スレーブ通信装置は、書き換えたアドレス値情報及び設定後のデータ設定情報を含む設定情報を隣り合う他の通信装置へ転送する。
設定情報は各スレーブ通信装置を転々とするから、当該設定情報に含まれるアドレス値情報は、各スレーブ通信装置のアドレス値に対する演算結果によって更新され、データ設定情報には各スレーブ通信装置が使用するデータを判別するための情報が設定される。転々と転送された後の設定情報は、マスタ通信装置が再度受信し、受信した設定情報に含まれる更新後のアドレス値情報、及びデータ設定情報から各スレーブ通信装置の情報を取得できる。
これにより、マスタ通信装置では転送後の設定情報に基づき通信システム全体の構成を把握して通信を制御することが可能である。また、各スレーブ通信装置は、接続順序に関わらず、通信システムの構成が変更された後も、自身が使用するデータを判別できる。
In the present invention, the master communication device and the plurality of slave communication devices are ring-connected or daisy-chain connected, and communication is controlled by the master communication device. First, the master communication device transmits setting information including address value information of each slave communication device and data setting information set by each slave communication device. The setting information is received in order from the slave communication device adjacent to the master communication device, the address value is read from the address value information included in the received setting information, and the own address is determined based on the read address value. Receive data based on address. Further, the slave communication device performs an operation with a predetermined value on the address value of the address value information included in the received setting information, and rewrites the address value information included in the received setting information based on the calculation result. . In addition, the slave communication device sets information for determining data used by itself in the data setting information included in the received setting information, and sets data to be used based on the setting from information transmitted thereafter. Determine. Each slave communication device transfers the rewritten address value information and setting information including the set data setting information to another adjacent communication device.
Since the setting information changes from one slave communication device to another, the address value information included in the setting information is updated by the calculation result for the address value of each slave communication device, and each slave communication device uses the data setting information. Information for determining data is set. The setting information after being transferred repeatedly is received again by the master communication device, and the information of each slave communication device can be acquired from the updated address value information and data setting information included in the received setting information.
As a result, the master communication device can grasp the configuration of the entire communication system based on the setting information after transfer and control communication. In addition, each slave communication device can determine data used by itself even after the configuration of the communication system is changed, regardless of the connection order.

本発明では更に、マスタ通信装置は受信した転送後の設定情報に基づき、各スレーブ通信装置へ向けて、各スレーブ通信装置が送信又は受信するデータをまとめたデータフレームを送信する。各スレーブ通信装置は、データフレーム内で自身が使用するデータを判別するための情報を設定済みであるから、当該設定に基づき必要なデータを取り出すか、又はフレーム内に送信する。
これにより、データの送受信の際にデータの宛先のアドレスとデータとの対で逐一各スレーブ通信装置が送受信する必要はなく、各スレーブ通信装置は、一度に送信されてリング接続又はディジーチェーン接続により転々と送信されるデータフレームから、各自必要なデータを受信するか又は送信することが可能である。
In the present invention, the master communication device further transmits a data frame in which the data transmitted or received by each slave communication device is collected to each slave communication device based on the received setting information after transfer. Since each slave communication device has already set information for determining data used by itself in the data frame, the slave communication device extracts necessary data based on the setting or transmits it in the frame.
As a result, it is not necessary for each slave communication device to transmit and receive data at a pair of data destination address and data at the time of data transmission / reception, and each slave communication device is transmitted at a time by ring connection or daisy chain connection. It is possible to receive or transmit the necessary data from the data frames transmitted from time to time.

本発明では、アドレス値情報としてアドレス値を示す複数のビットからなるアドレス値ビット、データ設定情報として複数のビットからなるデータ設定ビットが含まれる設定信号がマスタ通信装置から送信される。マスタ通信装置と隣り合うスレーブ通信装置から順に、各スレーブ通信装置が設定信号を受信し、設定信号の内のアドレス値ビットからアドレス値を読み取ってアドレス値を決定し、更に、設定信号のアドレス値ビットをアドレス値と所定値との演算結果に基づき書き換える。更に、スレーブ通信装置は、受信した設定情報の内のデータ設定ビットの内の、自身が使用する1又は複数のビットを書き換える。各スレーブ通信装置は、自身が使用するビットを書き換えるから、後から設定信号を受信したスレーブ通信装置は、書き換えてられていないビットを使用する。そしてスレーブ通信装置は、書き換え後のアドレス値ビット及びデータ設定ビットを含む設定信号を隣り合うスレーブ通信装置又はマスタ通信装置へ転送する。
設定信号は、各スレーブ通信装置にて書き換えられて転々とするので、設定信号に含まれるアドレス値ビット及びデータ設定ビットには、全てのスレーブ通信装置により書き換えられた情報を示す。当該設定信号は、マスタ通信装置が再度受信し、受信した設定信号のアドレス値ビット及びデータ設定ビットに基づき、通信システム全体の構成を把握して通信を制御することが可能である。
これにより、マスタ通信装置では転送後の設定信号に基づき通信システム全体の構成を把握して通信を制御することが可能である。また、各スレーブ通信装置は、接続順序に関わらず、通信システムの構成が変更された後も、自身が使用するデータを判別できる。
In the present invention, a setting signal including an address value bit including a plurality of bits indicating an address value as address value information and a data setting bit including a plurality of bits as data setting information is transmitted from the master communication device. In order from the slave communication device adjacent to the master communication device, each slave communication device receives the setting signal, reads the address value from the address value bits in the setting signal, determines the address value, and further, the address value of the setting signal The bit is rewritten based on the calculation result of the address value and the predetermined value. Further, the slave communication device rewrites one or a plurality of bits used by itself among the data setting bits in the received setting information. Since each slave communication device rewrites the bit used by itself, the slave communication device that receives the setting signal later uses a bit that has not been rewritten. Then, the slave communication device transfers the setting signal including the rewritten address value bit and the data setting bit to the adjacent slave communication device or master communication device.
Since the setting signal is rewritten by each slave communication device and changes, the address value bits and the data setting bits included in the setting signal indicate information rewritten by all the slave communication devices. The setting signal can be received again by the master communication apparatus, and the communication can be controlled by grasping the configuration of the entire communication system based on the address value bit and the data setting bit of the received setting signal.
As a result, the master communication device can grasp the configuration of the entire communication system based on the transferred setting signal and control communication. In addition, each slave communication device can determine data used by itself even after the configuration of the communication system is changed, regardless of the connection order.

本発明では更に、スレーブ通信装置は、データ設定ビットにて自身が使用するビットを書き換えるに際し、まず使用するデータを設定すべき先頭位置を特定し、当該先頭位置を記憶しておく。そして、先頭位置から自身が使用するビット分を書き換えるようにしてある。これにより、以後、各スレーブ通信装置へのデータを含む信号が送信された場合に、当該先頭位置から自身が使用するビット分だけ読み取ればよい。各スレーブ通信装置が夫々、データ信号の先頭から順に自身が使用する1又は複数のビットを判別できるので、複数の宛先のデータを1つのデータ信号にまとめることができる。   Further, in the present invention, when rewriting the bit used by the slave communication device with the data setting bit, the slave communication device first specifies the head position where the data to be used is to be set, and stores the head position. The bit used by itself is rewritten from the head position. As a result, when a signal including data is transmitted to each slave communication device thereafter, only the bit used by itself can be read from the head position. Since each slave communication device can determine one or a plurality of bits used by the slave communication device in order from the top of the data signal, the data of a plurality of destinations can be combined into one data signal.

本発明による場合、予め各スレーブ通信装置に固有の識別情報を設定しておく必要がない。更に、1つの設定情報をリング接続又はディジーチェーン接続に接続される通信装置間で転送させることによって、各自が使用するデータを判別するための情報が設定され、以後、マスタ通信装置の制御に基づいて各スレーブ通信装置へのデータがまとめて送信されるとしても、スレーブ通信装置は各自、自身が使用するデータをその中から判別することができる。システム構成が変更となって接続順序が変更となっても設定に基づきデータを判別でき、柔軟に対応できると共に、まとめてデータを送受信できるから通信効率が向上する。   According to the present invention, it is not necessary to set identification information unique to each slave communication device in advance. Furthermore, by transferring one setting information between communication devices connected to the ring connection or daisy chain connection, information for determining data used by each device is set, and thereafter, based on the control of the master communication device. Even if data is sent to each slave communication device in a batch, each slave communication device can determine the data used by itself. Even if the system configuration is changed and the connection order is changed, data can be discriminated based on the setting, and it is possible to flexibly cope with it, and it is possible to transmit and receive data collectively, thereby improving communication efficiency.

本実施の形態における車載通信システムの構成を示す構成図である。It is a block diagram which shows the structure of the vehicle-mounted communication system in this Embodiment. 本実施の形態の車載通信システムにおけるECU及び入出力装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of ECU and the input / output device in the vehicle-mounted communication system of this Embodiment. 本実施の形態の車載通信システムにおけるマスタであるECUが行なう初期設定の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process procedure of the initial setting which ECU which is a master in the vehicle-mounted communication system of this Embodiment performs. 本実施の形態の車載通信システムにおけるスレーブである入出力装置が行なう初期設定の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the initial setting which the input / output device which is a slave in the vehicle-mounted communication system of this Embodiment performs. 本実施の形態の車載通信システムを構成するECU及び入出力装置間を転々とする初期設定フレームの内容例を示す説明図である。It is explanatory drawing which shows the example of the content of the initialization frame which changes between ECU which comprises the vehicle-mounted communication system of this Embodiment, and an input-output device. 本実施の形態の車載通信システムを構成するECU及び入出力装置間で初期設定フレームが転送される状況を模式的に示す説明図である。It is explanatory drawing which shows typically the condition where the initial setting flame | frame is transferred between ECU which comprises the vehicle-mounted communication system of this Embodiment, and an input / output device. 本実施の形態における車載通信システムにてECU及び入出力装置間で送受信されるデータフレームの内容例を示す説明図である。It is explanatory drawing which shows the example of the content of the data frame transmitted / received between ECU and input / output devices in the vehicle-mounted communication system in this Embodiment.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。なお、以下に示す実施の形態では、車両に搭載されている多数のアクチュエータ、センサ及びECUが相互にデータを通信して多様な機能を実現する車載通信システムに、本発明に係る通信システムを適用した例を挙げて説明する。   Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof. In the following embodiment, the communication system according to the present invention is applied to an in-vehicle communication system in which a large number of actuators, sensors, and ECUs mounted on a vehicle communicate data with each other to realize various functions. An example will be described.

図1は、本実施の形態における車載通信システムの構成を示す構成図である。実施の形態1における車載通信システムは、ECU1と、入出力装置2a,2b,2c,2dと、入出力装置2a,2b,2c,2dに接続される各種センサ3,3,…又はアクチュエータ4,4,…と、ECU1及び入出力装置2a,2b,2c,2dが接続される通信線5とを含む。   FIG. 1 is a configuration diagram showing the configuration of the in-vehicle communication system in the present embodiment. The in-vehicle communication system according to the first embodiment includes an ECU 1, input / output devices 2a, 2b, 2c, 2d, and various sensors 3, 3,... Or actuators 4 connected to the input / output devices 2a, 2b, 2c, 2d. , And a communication line 5 to which the ECU 1 and the input / output devices 2a, 2b, 2c, and 2d are connected.

図1に示すように、ECU1及び入出力装置2a,2b,2c,2dはリング型に接続されている。なお、ECU1と入出力装置2dとの間の通信線5が存在せずに、ディジーチェーン型に接続されていてもよい。   As shown in FIG. 1, the ECU 1 and the input / output devices 2a, 2b, 2c, and 2d are connected in a ring shape. Note that the communication line 5 between the ECU 1 and the input / output device 2d does not exist and may be connected in a daisy chain type.

ECU1は、各種センサから得られるデータに基づいてアクチュエータの動作を制御する。入出力装置2a,2b,2c,2dは夫々、各センサ3,3,…又はアクチュエータ4,4,…が入出力するデータの通信線5における通信を実行する。センサ3,3,…又はアクチュエータ4,4,…は夫々、車両内外に設置されてECU1又は図示しない他のECUからの制御情報に基づき動作する。   The ECU 1 controls the operation of the actuator based on data obtained from various sensors. The input / output devices 2a, 2b, 2c, and 2d execute communication on the communication line 5 of data input / output by the sensors 3, 3,. Sensors 3, 3,... Or actuators 4, 4,... Are installed inside and outside the vehicle and operate based on control information from ECU 1 or another ECU (not shown).

このように、センサ3,3,…又はアクチュエータ4,4,…が直接的にECU1に接続する構成ではなく、各々が入出力装置2a,2b,2c,2dに接続され、入出力装置2a,2b,2c,2dがECU1と、又は相互にデータを送受信する構成とすることにより、入出力装置2a,2b,2c,2dが夫々各データに適切な送受信のタイミングにてデータをまとめて通信させることができ、ECU1の負荷を軽減することが可能である。   In this way, the sensors 3, 3,... Or the actuators 4, 4,... Are not directly connected to the ECU 1, but are connected to the input / output devices 2a, 2b, 2c, 2d, respectively. By adopting a configuration in which 2b, 2c, and 2d transmit and receive data to / from the ECU 1, the input / output devices 2a, 2b, 2c, and 2d collectively communicate the data with each data at an appropriate transmission / reception timing. It is possible to reduce the load on the ECU 1.

ECU1と入出力装置2a,2b,2c,2dとの間における通信は、通信のプロトコルは限定しないが、マスタ・スレーブ方式に基づきマスタが制御する方式にて実行される。具体的には、実施の形態1では、ECU1及び入出力装置2a,2b,2c,2d間で各センサ3,3,…又はアクチュエータ4,4,…が入出力するデータを送受信するために、ECU1がマスタとなり、入出力装置2aがスレーブ1、入出力装置2bがスレーブ2、入出力装置2cがスレーブ3、入出力装置2dがスレーブ4として動作し、ECU1が入出力装置2a,2b,2c,2dによる通信を制御する。   The communication between the ECU 1 and the input / output devices 2a, 2b, 2c, and 2d is executed by a method controlled by the master based on the master / slave method, although the communication protocol is not limited. Specifically, in the first embodiment, in order to transmit / receive data input / output by the sensors 3, 3,... Or the actuators 4, 4,... Between the ECU 1 and the input / output devices 2a, 2b, 2c, 2d, The ECU 1 serves as a master, the input / output device 2a operates as a slave 1, the input / output device 2b operates as a slave 2, the input / output device 2c operates as a slave 3, and the input / output device 2d operates as a slave 4, and the ECU 1 operates as the input / output devices 2a, 2b, 2c. , 2d is controlled.

図2は、本実施の形態の車載通信システムにおけるECU1及び入出力装置2aの内部構成を示すブロック図である。入出力装置2b,2c,2dの内部構成は入出力装置2aの内部構成と同様であるので詳細な説明を省略する。   FIG. 2 is a block diagram showing an internal configuration of the ECU 1 and the input / output device 2a in the in-vehicle communication system according to the present embodiment. Since the internal configurations of the input / output devices 2b, 2c, and 2d are the same as the internal configuration of the input / output device 2a, detailed description thereof is omitted.

ECU1は、制御部10、記憶部11及び通信部12を備える。制御部10は、CPU(コア)を用い、記憶部11に記憶されてあるプログラムに基づき、各センサ3,3,…又はアクチュエータ4,4,…を制御する処理を実行する。回路の組み合わせによりハードウェア的に実現してもよい。記憶部11は、フラッシュメモリ等の不揮発性メモリを用い、上述のようにプログラムが記憶されるほか、制御時に参照する設定情報などが記憶される。制御部10は、図示しないRAM(Random Access Memory)を用い、各センサ3,3,…又はアクチュエータ4,4,…から入力される状態情報又はセンサ3,3,…又はアクチュエータ4,4,…へ出力する制御情報などを一時的に記憶する。   The ECU 1 includes a control unit 10, a storage unit 11, and a communication unit 12. The control unit 10 uses a CPU (core) to execute processing for controlling each of the sensors 3, 3,... Or the actuators 4, 4, ... based on a program stored in the storage unit 11. You may implement | achieve in hardware by the combination of a circuit. The storage unit 11 uses a non-volatile memory such as a flash memory, and stores a program as described above, as well as setting information referred to during control. The control unit 10 uses a RAM (Random Access Memory) (not shown), and state information input from the sensors 3, 3,... Or the actuators 4, 4,. Control information to be output to is temporarily stored.

通信部12は、制御部10からの指示に基づき、所定のプロトコルに従って通信線5を介した通信処理を行なう。具体的には、制御部10から与えられた制御情報を、プロトコルに準じたフォーマットの信号に変換して出力する処理又は通信線5から受信した信号から、プロトコルに準じて情報を取り出す処理などを行なう。なお通信部12は図2に示すように、ポートを2つ備え(121,122)、直接的に接続する2つの入出力装置2aとの通信と入出力装置2dとの通信とを区別することが可能である。   The communication unit 12 performs communication processing via the communication line 5 according to a predetermined protocol based on an instruction from the control unit 10. Specifically, a process of converting the control information given from the control unit 10 into a signal of a format conforming to the protocol and outputting it, or a process of extracting information from the signal received from the communication line 5 according to the protocol, etc. Do. As shown in FIG. 2, the communication unit 12 has two ports (121, 122), and distinguishes between communication with the two input / output devices 2a directly connected and communication with the input / output device 2d. Is possible.

入出力装置2aは、演算処理部20a、通信部21a、記憶部22a、及び入出力部23aを備える。入出力装置2aは、これらの各構成部が形成されるASIC(Application Specific Integrated Circuit)により構成される。FPGA(Field Programmable Gate Array)でもよい。なお、マイクロコンピュータによるソフトウェア的処理により、各構成部の機能を実現する構成としてもよい。   The input / output device 2a includes an arithmetic processing unit 20a, a communication unit 21a, a storage unit 22a, and an input / output unit 23a. The input / output device 2a is configured by an ASIC (Application Specific Integrated Circuit) in which these components are formed. An FPGA (Field Programmable Gate Array) may be used. It should be noted that the function of each component may be realized by software processing by a microcomputer.

演算処理部20aは、通信部21aから受信する信号に対する所定の演算処理、又は受信した信号に基づく情報を記憶部22aに記憶するなどの処理を行なう。また、入出力部23aから入力するセンサ3又はアクチュエータ4の状態情報を作成して通信部21aへ出力する処理を行なってもよい。   The arithmetic processing unit 20a performs predetermined arithmetic processing on the signal received from the communication unit 21a, or processing such as storing information based on the received signal in the storage unit 22a. Moreover, the process which produces | generates the status information of the sensor 3 or the actuator 4 input from the input / output part 23a, and outputs it to the communication part 21a may be performed.

記憶部22aは、フラッシュメモリ等のメモリ又はRAMを用い、演算処理部20aが通信部21aを介して受信した情報、又は演算処理部20aの演算処理によって得られる情報を記憶する。   The storage unit 22a uses a memory such as a flash memory or a RAM, and stores information received by the arithmetic processing unit 20a via the communication unit 21a or information obtained by arithmetic processing of the arithmetic processing unit 20a.

通信部21aは、演算処理部20aからの指示に基づき、所定のプロトコルに従って通信線5を介して通信処理を行なう。演算処理部20aから与えられた制御情報を、プロトコルに準じたフォーマットの信号に変換して出力する処理、又は通信線5から受信した信号からプロトコルに準じて情報を取り出し、演算処理部20aに通知するなどの処理を行なう。入出力装置2aの通信部21aも、図2に示すようにポートを2つ備え(211a,212a)、直接的に接続するECU1との通信と、入出力装置2bとの通信とを区別することが可能である。   The communication unit 21a performs communication processing via the communication line 5 according to a predetermined protocol based on an instruction from the arithmetic processing unit 20a. Processing for converting control information given from the arithmetic processing unit 20a into a signal in a format conforming to the protocol and outputting it, or extracting information from the signal received from the communication line 5 according to the protocol and notifying the arithmetic processing unit 20a Perform processing such as. The communication unit 21a of the input / output device 2a also includes two ports (211a and 212a) as shown in FIG. 2, and distinguishes between communication with the ECU 1 directly connected and communication with the input / output device 2b. Is possible.

入出力部23aは、センサ3及びアクチュエータ4が接続されるインタフェースである。D/A変換、A/D変換を行なうことが可能に構成されていてもよい。入出力部23aは、センサ3からの入力信号から情報を取得して演算処理部20aへ通知するか、演算処理部20aからの制御情報を制御信号へ変換してアクチュエータ4へ出力するなどの処理を行なう。   The input / output unit 23a is an interface to which the sensor 3 and the actuator 4 are connected. You may be comprised so that D / A conversion and A / D conversion can be performed. The input / output unit 23a acquires information from the input signal from the sensor 3 and notifies the arithmetic processing unit 20a, or converts the control information from the arithmetic processing unit 20a into a control signal and outputs the control signal to the actuator 4. To do.

このように構成されるECU1及び入出力装置2a,2b,2c,2d間における通信方法について説明する。通信を行なうためには、マスタであるECU1が、スレーブ1〜4である入出力装置2a,2b,2c,2d夫々を識別し、また、各入出力装置2a,2b,2c,2dも自身が宛先であるのか否かなどを認識する必要がある。つまり、夫々を識別する識別情報としてアドレスが必要となる。しかしながら上述したように、スレーブ1〜4である各入出力装置2a,2b,2c,2dには、自身を識別する自アドレス(識別情報)は予め設定されていない。そこで、以下に説明するように、マスタであるECU1とスレーブ1〜4である入出力装置2a,2b,2c,2dの間で情報を送受信することにより、設定を行なう。   A communication method between the ECU 1 and the input / output devices 2a, 2b, 2c, and 2d configured as described above will be described. In order to perform communication, the ECU 1 as the master identifies the input / output devices 2a, 2b, 2c, and 2d that are the slaves 1 to 4, and the input / output devices 2a, 2b, 2c, and 2d themselves It is necessary to recognize whether it is a destination or not. That is, an address is required as identification information for identifying each. However, as described above, each of the input / output devices 2a, 2b, 2c, and 2d that are the slaves 1 to 4 is not preset with its own address (identification information) for identifying itself. Therefore, as described below, setting is performed by transmitting and receiving information between the ECU 1 as the master and the input / output devices 2a, 2b, 2c, and 2d as the slaves 1 to 4.

図3は、本実施の形態の車載通信システムにおけるマスタであるECU1が行なう初期設定の処理手順の一例を示すフローチャートである。ECU1の制御部10は、通信線5を介して入出力装置2a,2b,2c,2dが接続された状態で、図示しないバッテリ又はオルタネータなどの電力供給装置から電力の供給を受けると、初期設定として以下の処理を実行するようにしてある。   FIG. 3 is a flowchart illustrating an example of an initial setting procedure performed by the ECU 1 serving as a master in the in-vehicle communication system according to the present embodiment. When the control unit 10 of the ECU 1 receives power supply from a power supply device such as a battery or an alternator (not shown) in a state where the input / output devices 2a, 2b, 2c, and 2d are connected via the communication line 5, the initial setting is performed. The following processing is executed as follows.

制御部10は、アドレス情報と各スレーブのデータ設定情報とを含む初期設定フレームを隣り合う入出力装置2a及び入出力装置2bの内の一方、ここでは入出力装置2aへ通信部12のポート122から送信する(ステップS11)。その後、制御部10は、隣り合う他方の入出力装置2dから転送された初期設定フレームを受信したか否かを判断する(ステップS12)。初期設定フレームの内容の詳細については、後述する。   The control unit 10 transmits an initial setting frame including address information and data setting information of each slave to one of the adjacent input / output device 2a and input / output device 2b, here, to the input / output device 2a, the port 122 of the communication unit 12. (Step S11). Thereafter, the control unit 10 determines whether or not an initial setting frame transferred from the other adjacent input / output device 2d has been received (step S12). Details of the contents of the initial setting frame will be described later.

制御部10は、通信部12から、転送された初期設定フレームを受信していないと判断した場合(S12:NO)、処理をステップS12へ戻して受信したと判断するまで待機する。   When it is determined that the transferred initial setting frame has not been received from the communication unit 12 (S12: NO), the control unit 10 returns to step S12 and waits until it is determined that it has been received.

制御部10は、通信部12から、転送された初期設定フレームを受信したと判断した場合(S12:YES)、受信した初期設定フレームのアドレス情報から、スレーブである入出力装置2a,2b,2c,2dの数を求める(ステップS13)。また、制御部10は、受信した初期設定フレームのデータ設定情報から、データ入出力のためのデータフレームを送信した場合に各スレーブ1〜4のデータ入出力に夫々使用される領域を認識し(ステップS14)、スレーブの数(4)及び各スレーブ1〜4のデータ入出力に夫々使用される領域の認識に対応して通信を開始し(ステップS15)、初期設定の処理を終了する。   When the control unit 10 determines that the transferred initial setting frame has been received from the communication unit 12 (S12: YES), the input / output devices 2a, 2b, and 2c that are slaves are obtained from the address information of the received initial setting frame. , 2d (step S13). Further, the control unit 10 recognizes areas used for data input / output of each of the slaves 1 to 4 when a data frame for data input / output is transmitted from the data setting information of the received initial setting frame ( In step S14), communication is started in response to recognition of the number of slaves (4) and areas used for data input / output of each of the slaves 1 to 4 (step S15), and the initial setting process is terminated.

なお、ECU1では、夫々にセンサ3,3,…及びアクチュエータ4,4,…、又はいずれか一方が接続された4つの入出力装置2a,2b,2c,2dがリング接続されることに対応する設定されてあるとする。これにより、ECU1は、設定されているスレーブの数と、ステップS13で求めたスレーブの数とが合致しているかの確認が可能である。また、設定されている各スレーブ1〜4による使用領域と、ステップS14で認識した使用領域とが合致しているかの確認が可能である。   The ECU 1 corresponds to the ring connection of the four input / output devices 2a, 2b, 2c, 2d to which the sensors 3, 3,... And the actuators 4, 4,. Suppose that it is set. As a result, the ECU 1 can confirm whether the set number of slaves matches the number of slaves obtained in step S13. In addition, it is possible to confirm whether the set use area by each of the slaves 1 to 4 matches the use area recognized in step S14.

図4は、本実施の形態の車載通信システムにおけるスレーブである入出力装置2aが行なう初期設定の処理手順の一例を示すフローチャートである。他の入出力装置2b,2c,2dにより行われる処理も同様であるので、詳細な説明は省略する。   FIG. 4 is a flowchart showing an example of an initial setting process performed by the input / output device 2a which is a slave in the in-vehicle communication system according to the present embodiment. Since the processes performed by the other input / output devices 2b, 2c, and 2d are the same, detailed description thereof is omitted.

入出力装置2aの演算処理部20aがECU1と共に通信線5を介してリング接続(ディジーチェーン接続)した状態で、図示しないバッテリ又はオルタネータなどの電力供給装置から電力の供給を受けると、初期設定として以下の処理を実行するようにしてある。   When power is supplied from a power supply device such as a battery or an alternator (not shown) while the arithmetic processing unit 20a of the input / output device 2a is ring-connected (daisy chain connected) via the communication line 5 together with the ECU 1, as an initial setting The following processing is executed.

演算処理部20aは、通信部21aのポート211a,212aの一方から、ECU1を送信元とする初期設定フレームを受信したか否かを判断する(ステップS21)。演算処理部20aは、初期設定フレームを受信していないと判断した場合(S21:NO)、処理をステップS21へ戻し、受信したと判断するまで待機する。   The arithmetic processing unit 20a determines whether or not an initial setting frame having the ECU 1 as a transmission source has been received from one of the ports 211a and 212a of the communication unit 21a (step S21). If it is determined that the initial setting frame has not been received (S21: NO), the arithmetic processing unit 20a returns the process to step S21 and waits until it is determined that it has been received.

演算処理部20aは、通信部21aからの通知により初期設定フレームを受信したと判断した場合(S21:YES)、受信した初期設定フレームからアドレス情報を取り出す(ステップS22)。演算処理部20aは取り出したアドレス情報に基づき自アドレスを決定する(ステップS23)。本実施の形態では、後述にて詳細を説明するように、アドレス情報はアドレス値を示しており、演算処理部20aは受信したアドレス情報が示すアドレス値を自身のアドレスとして決定する。なお、アドレスの決定方法はこれに限らず、受信したアドレス情報が示す予め規定された符号列に対応するアドレス値を、テーブルを用いて求める構成としてもよいし、アドレス情報が示すアドレス値に例えば「10」を乗算した結果をアドレスとして決定するなどしてもよい。   When the arithmetic processing unit 20a determines that the initial setting frame has been received by the notification from the communication unit 21a (S21: YES), the arithmetic processing unit 20a extracts the address information from the received initial setting frame (step S22). The arithmetic processing unit 20a determines its own address based on the extracted address information (step S23). In the present embodiment, as will be described in detail later, the address information indicates an address value, and the arithmetic processing unit 20a determines the address value indicated by the received address information as its own address. Note that the address determination method is not limited to this, and an address value corresponding to a pre-defined code string indicated by the received address information may be obtained using a table. A result obtained by multiplying “10” may be determined as an address.

演算処理部20aは次に、受信した初期設定フレームのアドレス情報を、所定の演算結果に基づき書き換える(ステップS24)。具体的には、演算処理部20aは、受信した初期設定フレームのアドレス情報が示すアドレス値に「1」を加算し、加算した結果を示すようにアドレス情報を書き換える。加算される値は「1」でなくともよいし、加算に限らず減算でも乗算でも除算でも、それらの組み合わせでもよい。これにより、次の入出力装置2bが当該初期設定フレームを受信した場合、当該アドレス情報は「1」が加算された後の値を示す。   Next, the arithmetic processing unit 20a rewrites the address information of the received initial setting frame based on a predetermined calculation result (step S24). Specifically, the arithmetic processing unit 20a adds “1” to the address value indicated by the address information of the received initial setting frame, and rewrites the address information to indicate the addition result. The value to be added may not be “1”, and is not limited to addition, and may be subtraction, multiplication, division, or a combination thereof. Thereby, when the next input / output device 2b receives the initial setting frame, the address information indicates a value after “1” is added.

演算処理部20aは更に、受信した初期設定フレームのデータ設定情報に、自身が使用するデータの設定を書き込む(ステップS25)。具体的には、演算処理部20aは、受信した初期設定フレームのデータ設定情報を示すビット列の内、既に他の入出力装置によって書き換えられていないビット列の先頭から、自身が入出力するデータに使用する分だけのビット数分のビットを書き換える。次の入出力装置2bが当該初期設定フレームを受信した場合、入出力装置2aで書き換えられたビットの次のビット以降を書き換える。   The arithmetic processing unit 20a further writes the setting of data used by itself in the data setting information of the received initial setting frame (step S25). Specifically, the arithmetic processing unit 20a uses the bit string indicating the data setting information of the received initial setting frame for the data input / output by itself from the beginning of the bit string that has not been rewritten by another input / output device. Rewrite as many bits as there are bits. When the next input / output device 2b receives the initial setting frame, the subsequent bit after the bit rewritten by the input / output device 2a is rewritten.

演算処理部20aは、ステップS24及びステップS25によって書き換えられ、書き込まれた初期設定フレームを、隣り合う他方の入出力装置2bへ通信部21aから転送し(ステップS26)、処理を終了する。   The arithmetic processing unit 20a transfers the initial setting frame rewritten and written in step S24 and step S25 from the communication unit 21a to the other adjacent input / output device 2b (step S26), and ends the process.

図4のフローチャートに示した処理が、入出力装置2b,2c,2dでも行なわれることにより、全ての入出力装置2a,2b,2c,2dによって書き換え、書込みがされた初期設定フレームが、最後にはマスタであるECU1で受信される。そして、図3のフローチャートに示したように、ECU1の制御部10が、書き換え、書込みがされた初期設定フレームの内容に基づき、スレーブの数の確認及び全入出力装置2a,2b,2c,2dを介した通信が正常に行なわれていることの確認を行なって、通信を開始することができる。   Since the processing shown in the flowchart of FIG. 4 is also performed in the input / output devices 2b, 2c, and 2d, the initial setting frame rewritten and written by all the input / output devices 2a, 2b, 2c, and 2d Is received by the ECU 1 as a master. As shown in the flowchart of FIG. 3, the control unit 10 of the ECU 1 confirms the number of slaves and all the input / output devices 2a, 2b, 2c, 2d based on the contents of the initial setting frame that has been rewritten and written. The communication can be started after confirming that the communication via the network is normally performed.

初期設定フレームの詳細を説明する。図5は、本実施の形態の車載通信システムを構成するECU1及び入出力装置2a,2b,2c,2d間を転々とする初期設定フレームの内容例を示す説明図である。   Details of the initial setting frame will be described. FIG. 5 is an explanatory diagram showing an example of the contents of an initial setting frame that repeatedly passes between the ECU 1 and the input / output devices 2a, 2b, 2c, and 2d that constitute the in-vehicle communication system of the present embodiment.

本実施の形態における初期設定フレームは、図5に示すように、1バイト即ち8ビットのアドレス値ビットと、3バイト即ち24ビットのデータ設定ビットとからなる。当該初期設定フレームが1つの情報としてECU1から送信される。   As shown in FIG. 5, the initial setting frame in this embodiment is composed of 1 byte, that is, 8 address value bits, and 3 bytes, that is, 24 data setting bits. The initial setting frame is transmitted from the ECU 1 as one piece of information.

なお、本実施の形態における初期設定フレームは、ECU1から送信される時点で、図5に示すように、アドレス値ビットは全て「0」、データ設定ビットは全て「1」である。   Note that, when the initial setting frame in the present embodiment is transmitted from the ECU 1, as shown in FIG. 5, the address value bits are all “0” and the data setting bits are all “1”.

図6は、本実施の形態の車載通信システムを構成するECU1及び入出力装置2a,2b,2c,2d間で初期設定フレームが転送される状況を模式的に示す説明図である。   FIG. 6 is an explanatory diagram schematically showing a situation in which the initial setting frame is transferred between the ECU 1 and the input / output devices 2a, 2b, 2c, and 2d that constitute the in-vehicle communication system of the present embodiment.

図6の下部には、書き換え及び書き込みによって内容が変化する初期設定フレームの変移が示されている。   The lower part of FIG. 6 shows the transition of the initial setting frame whose contents change by rewriting and writing.

最初にマスタであるECU1からスレーブ1である入出力装置2aへ送信される初期設定フレームは、図5に示したように、アドレス値ビットは全て「0」、データ設定ビットは全て「1」である。スレーブ1である入出力装置2aの演算処理部20aは、アドレス値ビットを数値として読み取り、自アドレスと決定する。つまり、「0000 0000」=「0」をアドレスと決定する。そして演算処理部20aは、アドレス値ビットが示す値に「1」を加算した数値「1」=(0+1)を求め、当該数値「1」を示すようにアドレス値ビットを書き換える。更に演算処理部20aは、データ設定ビットの内の「1」のまま書き換えられていないビット列の先頭ビットを特定する。演算処理部20aは、特定した先頭ビットの位置、つまり「0ビット目」を記憶部22aに記憶しておく。そして、演算処理部20aは、センサ3から入力される状態情報を表す4ビット、及びアクチュエータ4の制御情報に用いる2ビットを使用するため、特定した先頭ビットから「6」ビット分にビット「0」を書き込む。演算処理部20aは、書き換え及び書き込み後の初期設定フレームを、スレーブ2である入出力装置2bへ転送する。   Initially, the initial setting frame transmitted from the ECU 1 as the master to the input / output device 2a as the slave 1 has all address value bits “0” and data setting bits “1” as shown in FIG. is there. The arithmetic processing unit 20a of the input / output device 2a, which is the slave 1, reads the address value bit as a numerical value and determines it as its own address. That is, “0000 0000” = “0” is determined as the address. The arithmetic processing unit 20a obtains a numerical value “1” = (0 + 1) obtained by adding “1” to the value indicated by the address value bit, and rewrites the address value bit so as to indicate the numerical value “1”. Furthermore, the arithmetic processing unit 20a specifies the first bit of the bit string that is not rewritten as “1” in the data setting bits. The arithmetic processing unit 20a stores the specified position of the first bit, that is, the “0th bit” in the storage unit 22a. Since the arithmetic processing unit 20a uses 4 bits representing the state information input from the sensor 3 and 2 bits used for the control information of the actuator 4, the bit “0” is added to “6” bits from the identified first bit. Is written. The arithmetic processing unit 20 a transfers the initial setting frame after rewriting and writing to the input / output device 2 b that is the slave 2.

スレーブ2である入出力装置2bでは、演算処理部がアドレス値ビットを数値として読み取る。このときスレーブ1である入出力装置2aから転送された初期設定フレームでは、アドレス値ビットは「0000 0001」に書き換えられている。したがって入出力装置2bの演算処理部は、「1」をアドレスと決定し、アドレス値ビットが示す値に「1」を加算した数値「2」=(1+1)を求め、当該数値「2」を示すようにアドレス値ビットを書き換え、「0000 0010」とする。更に、入出力装置2bの演算処理部は、データ設定ビットの内の「1」のまま書き換えられていないビット列の先頭ビット(「7ビット目」)を特定し、先頭ビットの位置を記憶しておく。そして、入出力装置2bの演算処理部は、センサ3から入力される状態情報を表す4ビット、並びにアクチュエータ4,4の制御情報に用いる2ビット及び2ビットを使用するため、特定した先頭ビットから「8」ビット分にビット「0」を書き込む。入出力装置2bの演算処理部は、書き換え及び書き込み後の初期設定フレームを、スレーブ3である入出力装置2cへ転送する。   In the input / output device 2b that is the slave 2, the arithmetic processing unit reads the address value bits as a numerical value. At this time, in the initial setting frame transferred from the input / output device 2a which is the slave 1, the address value bits are rewritten to “0000 0001”. Therefore, the arithmetic processing unit of the input / output device 2b determines “1” as an address, obtains a value “2” = (1 + 1) obtained by adding “1” to the value indicated by the address value bit, and obtains the value “2”. As shown, the address value bits are rewritten to “0000 0010”. Further, the arithmetic processing unit of the input / output device 2b specifies the first bit (“7th bit”) of the bit string that is not rewritten as “1” among the data setting bits, and stores the position of the first bit. deep. Since the arithmetic processing unit of the input / output device 2b uses 4 bits representing the state information input from the sensor 3 and 2 bits and 2 bits used for the control information of the actuators 4 and 4, the specified first bit is used. Write bit “0” into “8” bits. The arithmetic processing unit of the input / output device 2b transfers the initial setting frame after rewriting and writing to the input / output device 2c that is the slave 3.

同様にして、スレーブ3である入出力装置2cではアドレス値ビットからアドレスが「2」と決定され、データ設定ビットの内、使用する「5」ビット分にビット「0」が書き込まれる。そして、書き換え及び書き込み後の初期設定フレームが、スレーブ4である入出力装置2dへ転送される。スレーブ4である入出力装置2dでも同様に、アドレス値ビットからアドレスが「3」と決定され、データ設定ビットの内、使用する「5」ビット分にビット「0」が書き込まれる。そして、書き換え及び書き込み後の初期設定フレームが、リング接続されているマスタであるECU1へ転送される。   Similarly, in the input / output device 2c which is the slave 3, the address is determined to be “2” from the address value bits, and the bit “0” is written in the “5” bits to be used among the data setting bits. Then, the initial setting frame after rewriting and writing is transferred to the input / output device 2 d which is the slave 4. Similarly, in the input / output device 2d that is the slave 4, the address is determined to be “3” from the address value bits, and the bit “0” is written into “5” bits to be used among the data setting bits. Then, the initial setting frame after rewriting and writing is transferred to the ECU 1 which is the master connected in the ring.

この場合、ECU1の制御部10は、図6に示すように、アドレス値ビットが「0000 0100」であり、データ設定ビット全てに「0」が書き込まれた初期設定フレームを通信部12から受信する。これにより、ECU1の制御部10は、アドレス値ビットが示す数値=「4」からスレーブの数を「4」と確認することができる。また、制御部10は、データ設定ビットから、予め設定されている使用ビットと合致しているか否かを確認し、通信を開始することができる。   In this case, as shown in FIG. 6, the control unit 10 of the ECU 1 receives from the communication unit 12 an initial setting frame in which the address value bits are “0000 0100” and “0” is written in all the data setting bits. . Thereby, the control part 10 of ECU1 can confirm the number of slaves with "4" from the numerical value = "4" which an address value bit shows. Further, the control unit 10 can confirm whether or not the data setting bit matches a preset use bit and can start communication.

なおこのとき制御部10は、確認の結果、予め設定されているスレーブの数、使用ビットと合致しない場合には、通信を開始できないと判断し、異常であると認識して処理を終了することも可能である。   At this time, the control unit 10 determines that communication cannot be started if the number of slaves and bits used do not match as a result of confirmation, recognizes that the communication is abnormal, and terminates the process. Is also possible.

新たに入出力装置がシステムに加えられるなど、システムが変更される場合、既に書き換え及び書き込みがされている初期設定フレームをECU1から送信し、既に初期設定を完了している入出力装置2a,2b,2c,2dは書き換えを行なわずに転送のみ行ない、新たに追加された初期設定が未完了の入出力装置が初期設定フレームからアドレスの決定及び使用領域の設定を行なってECU1へ送信する。再度初期設定フレームを全体に送信してもよいが、上述のように既に書き換え及び書き込みがされている初期設定フレームを再度送信することにより、他の既に接続されていた入出力装置2a,2b,2c,2dは、自身のアドレスを変更することなく、また、使用するデータの領域の設定を変えることもなく、新たに加えられた入出力装置が自身にて設定を行ない、ECU1にて新たに追加される入出力装置に対応させるように予め設定を変更しておけば、継続して通信を行なうことができる。   When the system is changed, for example, when an input / output device is newly added to the system, an initial setting frame that has already been rewritten and written is transmitted from the ECU 1, and the input / output devices 2a, 2b that have already completed the initial setting , 2c, and 2d are transferred only without rewriting, and the newly added input / output device that has not yet been initialized determines the address and sets the use area from the initial setting frame, and transmits it to the ECU 1. The initial setting frame may be transmitted again as a whole, but by transmitting again the initial setting frame that has already been rewritten and written as described above, the other input / output devices 2a, 2b, 2c and 2d do not change their own address, and do not change the setting of the area of data to be used, and the newly added input / output device performs the setting by itself, and the ECU 1 newly sets If the setting is changed in advance so as to correspond to the added input / output device, communication can be continued.

図7は、本実施の形態における車載通信システムにてECU1及び入出力装置2a,2b,2c,2d間で送受信されるデータフレームの内容例を示す説明図である。初期設定フレームが送受信されて設定処理が終了した後、ECU1が図7に示すようなデータフレームを送信する。   FIG. 7 is an explanatory diagram showing a content example of a data frame transmitted and received between the ECU 1 and the input / output devices 2a, 2b, 2c, and 2d in the in-vehicle communication system according to the present embodiment. After the initial setting frame is transmitted and received and the setting process is completed, the ECU 1 transmits a data frame as shown in FIG.

図7に示すように、データフレームは、データフレームであることを示す任意の識別情報と、データビットとからなる。データビットには、各入出力装置2a,2b,2c,2dが用いるデータがビット単位で組み合わされて記載されている。   As shown in FIG. 7, the data frame includes arbitrary identification information indicating that it is a data frame and data bits. In the data bit, data used by each of the input / output devices 2a, 2b, 2c, and 2d is described in combination in bit units.

各データビットは、ECU1から最初に送信するときには全て「0」又は「1」であってよい。なお、ECU1の制御部10は、入出力装置2aのアクチュエータ4を制御するための制御情報を、入出力装置2aが用いる「6」ビットの最後の2ビットに書き込んでおいてもよい。そして、最初に入出力装置2aがデータフレームを受信した場合に、自身が使用するビットの先頭ビットの位置を記憶部22aから読み出し、当該先頭ビットから6ビット分の中に、接続しているセンサ3から入力される状態情報を示す「1101」を書込み転送する。   Each data bit may be “0” or “1” when it is first transmitted from the ECU 1. The control unit 10 of the ECU 1 may write control information for controlling the actuator 4 of the input / output device 2a in the last two bits of the “6” bit used by the input / output device 2a. When the input / output device 2a first receives a data frame, the position of the first bit of the bit used by itself is read from the storage unit 22a, and the connected sensor is included in 6 bits from the first bit. “1101” indicating the state information input from 3 is written and transferred.

同様に、入出力装置2b,2c,2dでも、自身が使用するビットを先頭ビットの位置及びビット数で記憶しているから、夫々使用するビットから情報を読み出すか、又は情報を書き込んで他の入出力装置2a,2b,2c,2d及びECU1へ転送する。   Similarly, in the input / output devices 2b, 2c, and 2d, since the bits used by the input / output devices 2b, 2c, and 2d are stored in the position of the first bit and the number of bits, the information is read from the bits used or written to the other bits. The data is transferred to the input / output devices 2a, 2b, 2c, 2d and the ECU 1.

このようにして、1つのデータフレームにて複数のスレーブ1〜4が夫々使用する情報を相互に干渉させることなく送受信することができ、通信効率が向上する。この場合も、新たに入出力装置が加えられたとしても、当該新たな入出力装置が使用するビットについては、マスタであるECU1と、新たな入出力装置自身が記憶すればよいから、既存の入出力装置2a,2b,2c,2dでの設定を変更することなく、システム変更に対応させることができる。   In this way, information used by the plurality of slaves 1 to 4 can be transmitted and received without interfering with each other in one data frame, and communication efficiency is improved. In this case as well, even if a new input / output device is added, the bit used by the new input / output device only needs to be stored by the master ECU 1 and the new input / output device itself. System changes can be handled without changing the settings in the input / output devices 2a, 2b, 2c, and 2d.

なお、本実施の形態では、ECU1及び入出力装置2a,2b,2c,2dは、リング接続しており、入出力装置2dは書き換え後の初期設定フレームを、受信した方と異なるポートから転送することによりマスタであるECU1で初期設定フレームを受信できた。しかしながら本発明はこれに限らない。ECU1及び入出力装置2a,2b,2c,2dは、ディジーチェーン接続、即ち入出力装置2dとECU1とが通信線5によって接続されていない場合であっても実現可能である。この場合、入出力装置2dだけは、書き換え後の初期設定フレームを受信した方と同一のポートから戻し、他の入出力装置2a,2b、2cは同様に受信した一方から他方へ初期設定フレームの転送のみ行なうことで実現する。   In the present embodiment, the ECU 1 and the input / output devices 2a, 2b, 2c, 2d are ring-connected, and the input / output device 2d transfers the rewritten initial setting frame from a port different from the one that received it. Thus, the initial setting frame could be received by the ECU 1 as the master. However, the present invention is not limited to this. The ECU 1 and the input / output devices 2 a, 2 b, 2 c, 2 d can be realized even when daisy chain connection, that is, when the input / output device 2 d and the ECU 1 are not connected by the communication line 5. In this case, only the input / output device 2d returns from the same port that received the rewritten initial setting frame, and the other input / output devices 2a, 2b, and 2c transmit the initial setting frame from one received to the other in the same manner. This is achieved by performing only transfer.

なお、本実施の形態では、上述のように初期設定フレームを用い、複数のビットからなるアドレス情報及びデータ設定情報を送信し、スレーブが各ビットへの書き換えを行なって転送する処理を行なう構成とした。しかしながら、本発明はこれに限らず、アドレス情報及びデータ設定情報を夫々適宜送信し、夫々に対して書き換え処理を行なうようにしてもよい。また、データ設定情報については、使用するビット分を書き換えるのみならず、夫々が使用するビットをマスタが自動的に特定できるように、入出力されるデータの識別情報と対にした情報を組み合わせたものであってもよい。使用するビット分を書き換える構成では上述したように、各スレーブ1〜4がいずれの領域を使用するかを認識させるためには、マスタで予め設定しておくことが必要となる。自動的に特定できるようにすれば、更に柔軟にシステム構成の変更に対応させることが可能である。   In the present embodiment, as described above, the initial setting frame is used, the address information and data setting information including a plurality of bits are transmitted, and the slave performs rewriting to each bit to transfer the information. did. However, the present invention is not limited to this, and the address information and the data setting information may be appropriately transmitted, and the rewriting process may be performed on each. For data setting information, not only rewriting the bits to be used, but also combining the information paired with the identification information of the input / output data so that the master can automatically identify the bits used by each. It may be a thing. In the configuration for rewriting the bits to be used, as described above, in order to recognize which area each slave 1 to 4 uses, it is necessary to set in advance by the master. If it can be automatically specified, it is possible to deal with changes in the system configuration more flexibly.

なお、開示された実施の形態は、全ての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上述の説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内での全ての変更が含まれることが意図される。   The disclosed embodiments should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 ECU(マスタ通信装置)
2a,2b,2c,2d 入出力装置(スレーブ通信装置)
5 通信線
1 ECU (master communication device)
2a, 2b, 2c, 2d I / O device (slave communication device)
5 communication lines

Claims (7)

1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されて通信する通信システムにおいて、
前記マスタ通信装置は、
各スレーブ通信装置のアドレス情報、及び各スレーブ通信装置が使用するデータを判別するために設定するデータ設定情報を送信する手段と、
前記複数のスレーブ通信装置のいずれかから転送される前記アドレス情報及びデータ設定情報を受信する手段と
を備え、
前記複数のスレーブ通信装置は夫々、
隣り合う通信装置の一方から前記アドレス情報及びデータ設定情報を受信する手段と、
受信したアドレス情報に基づき自アドレスを決定して記憶する手段と、
前記アドレス情報を用いた演算結果に基づき、受信したアドレス情報を書き換える手段と、
受信したデータ設定情報に、自身が使用するデータを判別するための情報を設定する手段と、
書き換え後のアドレス情報及び設定後のデータ設定情報を隣り合う通信装置の他方へ転送する手段と
を備えることを特徴とする通信システム。
In a communication system in which one master communication device and a plurality of slave communication devices communicate by ring connection or daisy chain connection,
The master communication device is
Means for transmitting address information of each slave communication device, and data setting information set to determine data used by each slave communication device;
Means for receiving the address information and data setting information transferred from any of the plurality of slave communication devices,
Each of the plurality of slave communication devices is
Means for receiving the address information and data setting information from one of the adjacent communication devices;
Means for determining and storing its own address based on the received address information;
Means for rewriting the received address information based on a calculation result using the address information;
Means for setting information for determining data used by itself in the received data setting information;
Means for transferring the address information after rewriting and the data setting information after setting to the other of the adjacent communication devices.
前記マスタ通信装置は、受信したデータ設定情報に基づき、各スレーブ通信装置が夫々使用する複数のデータを含むデータフレームを送信する手段を備え、
各スレーブ通信装置は、前記データフレームから、前記設定に基づきデータを受信するか、又は前記設定に基づき、前記データフレーム内の対応する位置にデータを送信すること
を特徴とする請求項1に記載の通信システム。
The master communication device includes means for transmitting a data frame including a plurality of data used by each slave communication device based on the received data setting information,
Each slave communication device receives data from the data frame based on the setting, or transmits data to a corresponding position in the data frame based on the setting. Communication system.
1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されてデジタル信号を送受信する通信システムにおいて、
前記マスタ通信装置は、
夫々複数ビットからなるアドレス値ビット及びデータ設定ビットを含む設定信号を送信する手段と、
スレーブ通信装置から転送される前記設定信号を受信する手段と
を備え、
前記複数のスレーブ通信装置は夫々、
隣り合う通信装置の一方から前記設定信号を受信する手段と、
受信した設定信号の内のアドレス値ビットからアドレス値を読み取る手段と、
読み取ったアドレス値に基づきアドレスを決定して記憶する手段と、
前記アドレス値と所定値との演算結果に基づき、受信した前記設定信号の内のアドレス値ビットを書き換える手段と、
受信した設定信号のデータ設定ビットの内、自身が使用する1又は複数のビットを書き換える書換手段と、
書き換え後のアドレス値ビット及びデータ設定ビットを含む設定信号を隣り合う通信装置の他方へ転送する手段と
を備えることを特徴とする通信システム。
In a communication system in which one master communication device and a plurality of slave communication devices are ring-connected or daisy-chain connected to transmit / receive digital signals,
The master communication device is
Means for transmitting a setting signal including an address value bit and a data setting bit each consisting of a plurality of bits;
Means for receiving the setting signal transferred from the slave communication device,
Each of the plurality of slave communication devices is
Means for receiving the setting signal from one of adjacent communication devices;
Means for reading the address value from the address value bits in the received setting signal;
Means for determining and storing an address based on the read address value;
Means for rewriting an address value bit in the received setting signal based on a calculation result of the address value and a predetermined value;
Rewriting means for rewriting one or more bits used by itself among data setting bits of the received setting signal;
And a means for transferring a setting signal including the rewritten address value bit and the data setting bit to the other of the adjacent communication devices.
前記データ設定書換手段は、
受信した設定信号のデータ設定ビットの内、自身が使用する1又は複数のビットの先頭位置を特定する手段と、
特定した先頭位置を記憶する手段と、
前記データ設定ビットの内、記憶した先頭位置から自身が使用するビット数分を反転させる手段と
を備えることを特徴とする請求項3に記載の通信システム。
The data setting rewriting means includes
Means for specifying the head position of one or more bits used by itself among the data setting bits of the received setting signal;
Means for storing the identified head position;
4. The communication system according to claim 3, further comprising means for inverting the number of bits used by itself from the stored head position among the data setting bits.
前記マスタ通信装置は、受信した設定信号に基づき、各スレーブ通信装置が夫々使用するビットからなるデータ信号を送信する手段を備え、
各スレーブ通信装置は、前記データ信号から、記憶してある先頭位置に基づき自身が使用するビットを取り出すか、又は前記先頭位置から自身が使用するビットにデータを書き込み、送信すること
を特徴とする請求項4に記載の通信システム。
The master communication device includes means for transmitting a data signal composed of bits used by each slave communication device based on the received setting signal,
Each slave communication device extracts the bit used by itself based on the stored head position from the data signal, or writes and transmits data from the head position to the bit used by itself. The communication system according to claim 4.
1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されて通信する通信方法において、
前記マスタ通信装置は、各スレーブ通信装置のアドレス情報、及び各スレーブ通信装置が使用するデータを判別するために設定するデータ設定情報を送信し、
前記複数のスレーブ通信装置は夫々、
隣り合う通信装置の一方から前記設定情報を受信し、
受信したアドレス情報に基づき自アドレスを決定し、
前記アドレス情報を用いた演算結果に基づき、受信したアドレス情報を書き換え、
受信したデータ設定情報に、自身が使用するデータを判別するための情報を設定し、
書き換え後のアドレス情報及び設定後のデータ設定情報を隣り合う通信装置の他方へ転送し、
前記マスタ通信装置は、
隣り合うスレーブ通信装置の一方から転送される前記アドレス情報及びデータ設定情報を受信し、
受信したアドレス情報及びデータ設定情報に基づき、各スレーブ通信装置によるデータの送受信を制御する
ことを特徴とする通信方法。
In a communication method in which one master communication device and a plurality of slave communication devices communicate by ring connection or daisy chain connection,
The master communication device transmits address information of each slave communication device and data setting information set to determine data used by each slave communication device,
Each of the plurality of slave communication devices is
Receiving the setting information from one of the adjacent communication devices;
Determine your address based on the received address information,
Based on the calculation result using the address information, rewrite the received address information,
In the received data setting information, set information to determine the data used by itself,
Transfer the address information after rewriting and the data setting information after setting to the other of the adjacent communication devices,
The master communication device is
Receiving the address information and data setting information transferred from one of the adjacent slave communication devices;
A communication method characterized by controlling transmission / reception of data by each slave communication device based on received address information and data setting information.
1つのマスタ通信装置及び複数のスレーブ通信装置が、リング接続又はディジーチェーン接続されてデジタル信号を送受信する通信方法において、
前記マスタ通信装置は、夫々複数ビットからなるアドレス値ビット及びデータ設定ビットを含む設定信号を送信し、
前記複数のスレーブ通信装置は夫々、
隣り合う通信装置の一方から前記設定信号を受信し、
受信した設定信号の内のアドレス値ビットからアドレス値を読み取り、
読み取ったアドレス値に基づきアドレスを決定し、
前記アドレス値と所定値との演算結果に基づき、受信した前記設定信号の内のアドレス値ビットを書き換え、
受信した設定信号のデータ設定ビットの内、自身が使用する1又は複数のビットを書き換え、
書き換え後のアドレス値ビット及びデータ設定ビットを含む設定信号を隣り合う通信装置の他方へ転送し、
前記マスタ通信装置は、
隣り合うスレーブ通信装置の一方から転送される前記設定信号を受信し、
受信した設定信号に基づき、各スレーブ通信装置によるデータの送受信を制御する
ことを特徴とする通信方法。
In a communication method in which one master communication device and a plurality of slave communication devices transmit and receive digital signals by ring connection or daisy chain connection,
The master communication device transmits a setting signal including an address value bit and a data setting bit each consisting of a plurality of bits,
Each of the plurality of slave communication devices is
Receiving the setting signal from one of the adjacent communication devices;
Read the address value from the address value bits in the received setting signal,
Determine the address based on the read address value,
Based on the calculation result of the address value and the predetermined value, rewrite the address value bit in the received setting signal,
Of the data setting bits of the received setting signal, rewrite one or more bits used by itself,
Transfer the setting signal including the address value bit and the data setting bit after rewriting to the other of the adjacent communication devices,
The master communication device is
Receiving the setting signal transferred from one of the adjacent slave communication devices;
A communication method comprising controlling transmission / reception of data by each slave communication device based on a received setting signal.
JP2009277789A 2009-12-07 2009-12-07 Communication system and communication method Expired - Fee Related JP5476956B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009277789A JP5476956B2 (en) 2009-12-07 2009-12-07 Communication system and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009277789A JP5476956B2 (en) 2009-12-07 2009-12-07 Communication system and communication method

Publications (2)

Publication Number Publication Date
JP2011120167A true JP2011120167A (en) 2011-06-16
JP5476956B2 JP5476956B2 (en) 2014-04-23

Family

ID=44284900

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009277789A Expired - Fee Related JP5476956B2 (en) 2009-12-07 2009-12-07 Communication system and communication method

Country Status (1)

Country Link
JP (1) JP5476956B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013034144A (en) * 2011-08-03 2013-02-14 O2 Micro Inc Intelligent bus address self-configuration in multi-module system
US8700814B2 (en) 2010-05-18 2014-04-15 O2Micro, Inc. Intelligent bus address self-configuration in a multi-module system
JP2016103817A (en) * 2014-11-18 2016-06-02 株式会社デンソー Communication system
JP7389685B2 (en) 2020-03-11 2023-11-30 シャープ株式会社 Communication equipment, communication system, and communication system control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6276339A (en) * 1985-09-28 1987-04-08 Toshiba Corp Local area network having line exchange function
JPH0372740A (en) * 1989-05-22 1991-03-27 Fuji Electric Co Ltd Addressing method for multi-station communication system
JPH1023050A (en) * 1996-07-08 1998-01-23 Fuji Electric Co Ltd Signal transmission system in ring network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6276339A (en) * 1985-09-28 1987-04-08 Toshiba Corp Local area network having line exchange function
JPH0372740A (en) * 1989-05-22 1991-03-27 Fuji Electric Co Ltd Addressing method for multi-station communication system
JPH1023050A (en) * 1996-07-08 1998-01-23 Fuji Electric Co Ltd Signal transmission system in ring network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700814B2 (en) 2010-05-18 2014-04-15 O2Micro, Inc. Intelligent bus address self-configuration in a multi-module system
JP2013034144A (en) * 2011-08-03 2013-02-14 O2 Micro Inc Intelligent bus address self-configuration in multi-module system
JP2016103817A (en) * 2014-11-18 2016-06-02 株式会社デンソー Communication system
JP7389685B2 (en) 2020-03-11 2023-11-30 シャープ株式会社 Communication equipment, communication system, and communication system control method

Also Published As

Publication number Publication date
JP5476956B2 (en) 2014-04-23

Similar Documents

Publication Publication Date Title
JP6652702B2 (en) Transmission system and master device
JP2010258990A (en) Control system and control program updating method
US9667699B2 (en) Method for transmitting data via a CANopen bus
JP6627571B2 (en) Programmable controller, programmable controller control method, and programmable controller control program
JP2010272971A (en) Control system and method for rewriting control program
JP5363192B2 (en) Gateway device and data transmission method
JP6225431B2 (en) Optical transceiver with microprogram update
JP5476956B2 (en) Communication system and communication method
JP6233418B2 (en) Motor control program transfer system, host controller, motor control device, and motor control program transfer method
JP2013135430A (en) Repeating device, communication harness, and communication system
JP6391373B2 (en) Master / slave network device
JP6192334B2 (en) Electronic control device program rewriting method, electronic control device, and rewriting device
CN110278716B (en) PLC, network unit, CPU unit, and data transfer method
JP4634026B2 (en) Remote I / O system, data communication method, data communication control program, and recording medium
JP2011248456A (en) Electronic device and microcontroller
US20090312886A1 (en) Temperature controller system
JP2009104283A (en) System for transmitting/receiving data by modbus and control equipment such as programmable controller
KR20140043401A (en) Method and device for parameterizing an as-i slave
JP3695334B2 (en) Internal communication method of communication terminal
JP2019176208A (en) Communication system
KR100917542B1 (en) Method for selecting communication protocol of slave unit
JP2009010851A (en) On-vehicle gateway device
JP2021150732A (en) Master-slave communication system, electronic device, control method of master-slave communication system, and control method of electronic device
WO2020166131A1 (en) Remote i/o system
JP4854598B2 (en) Data transfer control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121015

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131112

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131211

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20131211

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140127

R150 Certificate of patent or registration of utility model

Ref document number: 5476956

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees