JP2009290409A - Address setting device, communication unit, communication system and address setting method - Google Patents

Address setting device, communication unit, communication system and address setting method Download PDF

Info

Publication number
JP2009290409A
JP2009290409A JP2008139062A JP2008139062A JP2009290409A JP 2009290409 A JP2009290409 A JP 2009290409A JP 2008139062 A JP2008139062 A JP 2008139062A JP 2008139062 A JP2008139062 A JP 2008139062A JP 2009290409 A JP2009290409 A JP 2009290409A
Authority
JP
Japan
Prior art keywords
address
slave
communication
switch
setting
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.)
Abandoned
Application number
JP2008139062A
Other languages
Japanese (ja)
Inventor
Takeshi Ito
健 伊藤
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.)
Yazaki Corp
Original Assignee
Yazaki 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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP2008139062A priority Critical patent/JP2009290409A/en
Publication of JP2009290409A publication Critical patent/JP2009290409A/en
Abandoned legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an address setting device capable of eliminating erroneous connection of a communication unit such as a relay connector and suppressing a cost increase, a communication unit, a communication system and an address setting method. <P>SOLUTION: A slave 3 is provided with a switch 35 for restricting the transmission of a frame from a master 2 to a slave in downstream from the slave 3 itself. When the frame transmitted from the master 2 is a frame for resetting an address, a communication transceiver 36 resets an address set inside, and a control part 37 controls to open the switch 35. In addition, when the frame transmitted from the master 2 is a telegraphic message for setting its own address, the communication transceiver 36 sets an address, and the control part 37 controls to close the switch 35. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、バス形式の通信ラインに接続される通信ユニットなどのアドレスを設定するアドレス設定装置およびアドレス設定方法と、そのアドレス設定装置を備えた通信ユニットおよび通信システムに関するものである。   The present invention relates to an address setting device and an address setting method for setting an address of a communication unit or the like connected to a bus-type communication line, and a communication unit and a communication system including the address setting device.

近年、自動車の電子部品(電装ユニット)の増加に伴い、電装ユニット間を結ぶ通信ラインなどの配線となるワイヤハーネスの肥大化、複雑化を解消するために複数の電装ユニットに対応して設けられた通信ユニットを共通の通信ラインに接続し、各通信ユニットを介して電装ユニット間の通信を行う方法が行われている(例えば特許文献1参照)。   In recent years, with the increase in the number of electronic parts (electrical units) in automobiles, it has been provided corresponding to multiple electrical units in order to eliminate the enlargement and complexity of wire harnesses used as wiring for communication lines connecting electrical units. There is a method in which the communication units are connected to a common communication line and communication is performed between the electrical units via each communication unit (see, for example, Patent Document 1).

上述したような通信方法において、通信ユニットとして中継コネクタが用いられることがある。この中継コネクタには、通信ラインと電装ユニットとの間を中継するために、通信ラインから接続された電装ユニットへの通信データ(電文)を判別したり、他の通信ユニットへの電文を通信ラインへ出力したりする機能が内蔵されている。   In the communication method as described above, a relay connector may be used as a communication unit. In this relay connector, in order to relay between the communication line and the electrical unit, the communication data (telegram) from the communication line to the connected electrical unit is discriminated, and the telegram to other communication units is transmitted to the communication line. The function to output to is built in.

上述した中継コネクタは、同じ通信ラインに複数が接続されるために、それぞれ専用のID(アドレス)を設定する必要がある。そのために従来は、外付け部品や半導体メモリなどを用いて各中継コネクタに予めアドレスを設定(記憶)させておく必要があった。
特開平8−275268号公報
Since a plurality of relay connectors described above are connected to the same communication line, it is necessary to set a dedicated ID (address) for each. Therefore, conventionally, it has been necessary to set (store) addresses in advance in each relay connector using an external component or a semiconductor memory.
JP-A-8-275268

しかしながら、アドレスを予め設定する方法の場合、各中継コネクタの外観形状が同一であると、自動車の製造時に誤接続される可能性がある。誤接続されると、電装ユニットに対して正規の制御ができなくなってしまうために製造不良となってしまう。   However, in the case of the method for setting the address in advance, if the external shape of each relay connector is the same, there is a possibility of erroneous connection during manufacture of the automobile. If it is erroneously connected, regular control cannot be performed on the electrical unit, resulting in a manufacturing failure.

この誤接続を回避するために、例えば各中継コネクタの外観形状を異ならせると、必要アドレス分の異なる外観形状の中継コネクタを製造しなければならずコストアップとなってしまうという問題があった。   In order to avoid this erroneous connection, for example, if the external shape of each relay connector is changed, there is a problem in that the relay connector having a different external shape corresponding to the required address must be manufactured, resulting in an increase in cost.

そこで、本発明は、上記のような問題点に着目し、中継コネクタなどの通信ユニットの誤接続を無くすとともにコストアップも抑えることができるアドレス設定装置、通信ユニット、通信システムおよびアドレス設定方法を提供することを課題とする。   Accordingly, the present invention provides an address setting device, a communication unit, a communication system, and an address setting method capable of eliminating erroneous connection of a communication unit such as a relay connector and suppressing an increase in cost while paying attention to the above problems. The task is to do.

上記課題を解決するためになされた請求項1に記載の発明は、バス方式の通信ラインに接続される通信ユニットのアドレスを設定するアドレス設定装置であって、前記通信ラインの上流から下流への電文の送信を制限するスイッチと、前記スイッチの閉開を制御するスイッチ制御手段と、前記通信ラインの上流から送信されてきた電文から設定対象となる通信ユニットのアドレスを抽出して設定するアドレス設定手段と、を備え、前記スイッチ制御手段が、前記アドレス設定手段がアドレスを設定した後には前記スイッチを閉制御することを特徴としている。   In order to solve the above-mentioned problem, the invention according to claim 1 is an address setting device for setting an address of a communication unit connected to a bus-type communication line, which is arranged from upstream to downstream of the communication line. A switch for restricting transmission of a message, switch control means for controlling opening and closing of the switch, and address setting for extracting and setting an address of a communication unit to be set from a message transmitted from the upstream of the communication line And the switch control means closes the switch after the address setting means sets an address.

請求項2に記載の発明は、請求項1に記載の発明において、前記通信ラインの上流から送信されてきた電文に基づいて、前記アドレス設定手段が設定したアドレスをリセットするアドレスリセット手段と、を備え、前記スイッチ制御手段が、前記アドレスリセット手段がアドレスをリセットした後には前記スイッチを開制御することを特徴としている。   According to a second aspect of the present invention, in the first aspect of the invention, an address resetting unit for resetting an address set by the address setting unit based on a message transmitted from upstream of the communication line, The switch control means opens the switch after the address reset means resets the address.

請求項3に記載の発明は、通信ユニットに請求項1または2に記載のアドレス設定装置を備えたことを特徴としている。   According to a third aspect of the present invention, the communication unit includes the address setting device according to the first or second aspect.

請求項4に記載の発明は、請求項3に記載の発明において、前記通信ラインの上流側に接続される第1の端子と、前記通信ラインの下流側に接続される第2の端子と、を備えたことを特徴としている。   The invention according to claim 4 is the invention according to claim 3, wherein the first terminal connected to the upstream side of the communication line, the second terminal connected to the downstream side of the communication line, It is characterized by having.

請求項5に記載の発明は、前記通信ラインの最上流に接続されてマスタとなる通信装置と、前記通信装置のスレーブとなる複数の請求項4に記載の通信ユニットと、を備えた通信システムであって、前記スレーブの前記第1の端子には該スレーブの上流に位置するスレーブまたはマスタが接続されるとともに、前記第2の端子には該スレーブの下流に位置するスレーブが接続されることを特徴としている。   The invention according to claim 5 is a communication system comprising: a communication device that is connected to the uppermost stream of the communication line and serves as a master; and a plurality of communication units that are slaves of the communication device. The slave or master located upstream of the slave is connected to the first terminal of the slave, and the slave located downstream of the slave is connected to the second terminal. It is characterized by.

請求項6に記載の発明は、バス方式の通信ラインに接続される通信ユニットのアドレスを設定するアドレス設定方法であって、前記通信ラインの上流から下流への電文の送信を制限するスイッチを備え、前記通信ラインの上流から送信されてきた電文から設定対象となる通信ユニットのアドレスを抽出して設定し、その後に前記スイッチを閉制御することを特徴としている。   The invention according to claim 6 is an address setting method for setting an address of a communication unit connected to a bus-type communication line, comprising a switch for restricting transmission of a message from upstream to downstream of the communication line. The address of the communication unit to be set is extracted and set from the message transmitted from the upstream of the communication line, and then the switch is closed.

請求項7に記載の発明は、請求項6に記載の発明において、前記通信ラインの上流から送信されてきた電文に基づいて、前記設定したアドレスをリセットし、その後に前記スイッチを開制御することを特徴としている。   According to a seventh aspect of the invention, in the sixth aspect of the invention, the set address is reset based on a message transmitted from the upstream of the communication line, and then the switch is controlled to open. It is characterized by.

以上説明したように請求項1に記載の発明によれば、通信ラインの上流から下流への電文の送信を制限するスイッチを備えて、通信ラインの上流から送信されてきた電文からアドレス設定手段がアドレスを設定し、スイッチ制御手段がスイッチを閉制御する。このように構成しているので、上流からアドレスが設定された後に、初めてスイッチを閉制御して下流に電文を送信できるため、予め通信ユニット自体にアドレスの設定を行う必要がなく通信ラインに接続後にアドレスを設定するので誤接続による製造不良がなくなり、また、機能追加も回路部分に限定できるので外観形状を異ならせることと比較してコストアップも抑えることができる。   As described above, according to the first aspect of the present invention, the address setting means includes the switch for restricting transmission of the message from the upstream to the downstream of the communication line, and the address setting means from the message transmitted from the upstream of the communication line. The address is set, and the switch control means controls the switch to close. Since it is configured in this way, after the address is set from the upstream, the switch can be closed for the first time and a message can be sent downstream, so it is not necessary to set the address in advance in the communication unit itself and connect to the communication line Since an address is set later, manufacturing defects due to erroneous connection are eliminated, and addition of functions can be limited to the circuit portion, so that an increase in cost can be suppressed as compared to changing the external shape.

請求項2に記載の発明によれば、通信ラインの上流から送信されてきた電文に基づいてアドレス設定手段が設定したアドレスをアドレスリセット手段がリセットし、その後スイッチ制御手段がスイッチを開制御しているので、上流からの電文によってアドレスをリセットし、アドレスを設定する状態とすることができる。   According to the second aspect of the present invention, the address reset unit resets the address set by the address setting unit based on the message transmitted from the upstream of the communication line, and then the switch control unit controls the opening of the switch. Therefore, it is possible to set the address by resetting the address by a message from upstream.

請求項3に記載の発明によれば、通信ユニットにアドレス設定装置を備えたので、通信ユニット内の回路と一体的にアドレス設定装置を構成することができ、アドレス設定装置追加によるコストアップを更に抑えることができる。   According to the third aspect of the present invention, since the communication unit includes the address setting device, the address setting device can be configured integrally with the circuit in the communication unit, which further increases the cost by adding the address setting device. Can be suppressed.

請求項4に記載の発明によれば、通信ラインの上流側に接続される第1の端子と、通信ラインの下流側に接続される第2の端子と、を備えたので、上流側に接続される配線と下流側に接続される配線とを分けることができる。   According to the fourth aspect of the present invention, since the first terminal connected to the upstream side of the communication line and the second terminal connected to the downstream side of the communication line are provided, the connection is made upstream. The wiring to be connected and the wiring connected to the downstream side can be separated.

請求項5に記載の発明によれば、複数のスレーブが数珠繋ぎとなって接続されるので、通信システムの構成がシンプルになり、従来のバス接続のように通信ラインからの分岐線や分岐するための部品等が不要となる。   According to the fifth aspect of the present invention, since a plurality of slaves are connected in a daisy chain, the configuration of the communication system is simplified, and branch lines and branches from the communication line are performed as in the conventional bus connection. These parts are unnecessary.

請求項6に記載の発明によれば、通信ラインの上流から下流への電文の送信を制限するスイッチを備えて、通信ラインの上流から送信されてきた電文からアドレス設定手段がアドレスを設定し、アドレスを設定しスイッチを閉制御する。このため、上流からアドレスが設定された後に、初めてスイッチを閉制御して下流に電文を送信できるため、予め通信ユニット自体にアドレスの設定を行う必要がなく通信ラインに接続後にアドレスを設定するので誤接続による製造不良がなくなり、また、機能追加も回路部分に限定できるので外観形状を異ならせることと比較してコストアップも抑えることができる。   According to the sixth aspect of the present invention, the switch includes a switch for restricting transmission of the message from the upstream to the downstream of the communication line, and the address setting means sets the address from the message transmitted from the upstream of the communication line, Set the address and control the switch to close. For this reason, after the address is set from the upstream, the switch can be closed for the first time and a message can be sent downstream, so it is not necessary to set the address in the communication unit in advance, and the address is set after connecting to the communication line. Manufacturing failure due to erroneous connection is eliminated, and addition of functions can be limited to the circuit portion, so that an increase in cost can be suppressed as compared with changing the external shape.

請求項7に記載の発明によれば、通信ラインの上流から送信されてきた電文に基づいてアドレスをアドレスリセット手段がリセットし、その後スイッチを開制御しているので、上流からの電文によってアドレスをリセットし、アドレスを設定する状態とすることができる。   According to the seventh aspect of the present invention, the address reset means resets the address based on the message transmitted from the upstream of the communication line, and then controls the opening of the switch. It is possible to reset and enter an address setting state.

以下、本発明の一実施形態にかかる通信システムを図1ないし図4に基づいて説明する。本発明の第1の実施形態にかかる通信システム1は、図1に示すようにマスタ2と、スレーブ3、スレーブ4、スレーブ5、スレーブ6、スレーブ7と、から構成されている。   A communication system according to an embodiment of the present invention will be described below with reference to FIGS. The communication system 1 according to the first embodiment of the present invention includes a master 2, a slave 3, a slave 4, a slave 5, a slave 6, and a slave 7, as shown in FIG.

通信システム1は、図1に示すように、マスタ2の通信端子21とスレーブ3の通信端子A31が通信ライン81で接続され、スレーブ3の通信端子B32とスレーブ4の通信端子A41が通信ライン82で接続され、スレーブ4の通信端子B42とスレーブ5の通信端子A51が通信ライン83で接続され、スレーブ5の通信端子B52とスレーブ6の通信端子A61が通信ライン84で接続され、スレーブ6の通信端子B62とスレーブ7の通信端子A71が通信ライン85で接続されている。すなわち、各スレーブが数珠繋ぎに接続されている。   As shown in FIG. 1, in the communication system 1, the communication terminal 21 of the master 2 and the communication terminal A31 of the slave 3 are connected by a communication line 81, and the communication terminal B32 of the slave 3 and the communication terminal A41 of the slave 4 are connected by a communication line 82. Communication terminal B42 of slave 4 and communication terminal A51 of slave 5 are connected by communication line 83, communication terminal B52 of slave 5 and communication terminal A61 of slave 6 are connected by communication line 84, and communication of slave 6 The terminal B62 and the communication terminal A71 of the slave 7 are connected by a communication line 85. That is, each slave is connected in a daisy chain.

マスタ2は、通信システム1のマスタとなる通信ユニットであり、各スレーブへの通信データ(電文)の出力や、各スレーブからの通信データの入力が行われる。本実施形態においては、特に各スレーブのアドレスの設定を行う。   The master 2 is a communication unit serving as a master of the communication system 1, and outputs communication data (telegram) to each slave and inputs communication data from each slave. In this embodiment, the address of each slave is set.

スレーブ3、スレーブ4、スレーブ5、スレーブ6、スレーブ7は、全て同じ構成であり、マスタ2から送信された電文を隣接するスレーブへ出力することや、マスタ2から送信された電文を解析して、各スレーブに接続された図示しない電装ユニットへのデータの出力および、電装ユニットから入力されたデータを電文として通信ライン81などへ出力する。また、スレーブ3、スレーブ4、スレーブ5、スレーブ6、スレーブ7は、マスタ2からそれぞれ異なるアドレスが設定される。   Slave 3, slave 4, slave 5, slave 6, and slave 7 all have the same configuration, outputting a message sent from master 2 to an adjacent slave, or analyzing a message sent from master 2 The data output to the electrical unit (not shown) connected to each slave and the data input from the electrical unit are output to the communication line 81 as a message. The slave 3, the slave 4, the slave 5, the slave 6, and the slave 7 are set with different addresses from the master 2.

通信ユニットとしてのスレーブ3、スレーブ4、スレーブ5、スレーブ6、スレーブ7の構成を図2を参照して説明する。図2はスレーブ3を示しているが上述したようにスレーブ4、スレーブ5、スレーブ6、スレーブ7も同様の構成である。   The configuration of slave 3, slave 4, slave 5, slave 6, and slave 7 as communication units will be described with reference to FIG. Although FIG. 2 shows the slave 3, as described above, the slave 4, the slave 5, the slave 6, and the slave 7 have the same configuration.

スレーブ3は、図2に示すように通信端子A31と、通信端子B32と、GND端子33と、電源端子34と、スイッチ35と、通信トランシーバ36と、制御部37と、I/F38と、外部端子39と、を備えている。   As shown in FIG. 2, the slave 3 includes a communication terminal A31, a communication terminal B32, a GND terminal 33, a power supply terminal 34, a switch 35, a communication transceiver 36, a control unit 37, an I / F 38, an external And a terminal 39.

第1の端子としての通信端子A31は、通信ラインの上流側(マスタ2側つまり通信ライン81)に電文を送受信するための端子である。第2の端子としての通信端子B32は、通信ラインの下流側(スレーブ側つまり通信ライン82)に電文を送受信するための端子である。   The communication terminal A31 as a first terminal is a terminal for transmitting and receiving a message to the upstream side of the communication line (master 2 side, that is, the communication line 81). The communication terminal B32 as the second terminal is a terminal for transmitting and receiving a message to and from the downstream side of the communication line (slave side, that is, the communication line 82).

GND端子33は、図示しない接地線と接続するための接続端子である。電源端子34は図示しない電源電圧が供給される電源線と接続するための接続端子である。   The GND terminal 33 is a connection terminal for connecting to a ground line (not shown). The power supply terminal 34 is a connection terminal for connecting to a power supply line to which a power supply voltage (not shown) is supplied.

スイッチ35は、トランジスタなどの無接点式のスイッチで構成され、通信端子A31から入力された電文が通信端子B32から出力されるのを制限する。すなわち、通信ラインの上流から下流への電文の送信を制限している。勿論スイッチ35は接点式のスイッチで構成してもよい。スイッチ35は、後述する制御部37から開閉が制御される。なお、スイッチ35を開制御すると通信端子A31から入力された電文が通信端子B32から出力できない状態(逆方向、つまり通信端子B32から通信端子A31へ向かう方向も同様)となり、スイッチ35を閉制御すると通信端子A31から入力された電文が通信端子B32から出力できる状態(逆方向も同様)となる。   The switch 35 is configured by a contactless switch such as a transistor, and restricts the telegram input from the communication terminal A31 from being output from the communication terminal B32. That is, transmission of a message from upstream to downstream of the communication line is restricted. Of course, the switch 35 may be a contact type switch. The switch 35 is controlled to be opened and closed by a control unit 37 described later. Note that when the switch 35 is controlled to open, a message input from the communication terminal A31 cannot be output from the communication terminal B32 (the reverse direction, that is, the direction from the communication terminal B32 to the communication terminal A31 is the same). A message input from the communication terminal A31 can be output from the communication terminal B32 (the reverse direction is the same).

アドレス設定手段、アドレスリセット手段としての通信トランシーバ36は、通信端子A31から入力された電文を解析し、アドレスを設定する電文の場合は内部のメモリ等の記憶領域にアドレスを格納し、アドレスリセットの電文の場合は内部のメモリ等の記憶領域に格納したアドレスをリセットする。また、アドレス設定やリセットに応じて制御部37に制御信号を出力する。また、アドレスが設定された後は、自アドレスを示す電文からスレーブ3の外部端子39に接続される図示しない電装ユニットへ出力するデータの抽出および電装ユニットから入力されたデータを電文形式に構成して出力することも行う。   The communication transceiver 36 as an address setting unit and an address reset unit analyzes a message input from the communication terminal A31, and in the case of a message for setting an address, stores the address in a storage area such as an internal memory, and resets the address. In the case of a message, the address stored in the storage area such as the internal memory is reset. In addition, a control signal is output to the control unit 37 according to the address setting or reset. In addition, after the address is set, the data that is output from the message indicating its own address to the electrical unit (not shown) connected to the external terminal 39 of the slave 3 is extracted and the data input from the electrical unit is configured in a message format. Output.

スイッチ制御手段としての制御部37は、通信トランシーバ36からの制御信号に基づいて、アドレスが設定された場合はスイッチ35を閉制御し、アドレスがリセットされた場合はスイッチ35を開制御する。また、後述するI/F38を介してスレーブ3の外部端子39に接続される図示しない電装ユニットとのデータの入出力制御を行う。   Based on a control signal from the communication transceiver 36, the control unit 37 serving as a switch control unit controls the switch 35 to be closed when the address is set, and controls the switch 35 to be opened when the address is reset. Further, input / output control of data with an electrical unit (not shown) connected to the external terminal 39 of the slave 3 is performed via an I / F 38 described later.

I/F38は、スレーブ3の外部端子39に接続される図示しない電装ユニットへのデータの入出力するためのインタフェース動作を行う。   The I / F 38 performs an interface operation for inputting / outputting data to / from an electrical unit (not shown) connected to the external terminal 39 of the slave 3.

外部端子39は、スレーブ3に接続される図示しない電装ユニットとの配線等が接続される端子である。   The external terminal 39 is a terminal to which wiring or the like with an electrical unit (not shown) connected to the slave 3 is connected.

本実施形態においては、上述したスイッチ35、通信トランシーバ36および制御部37でアドレス設定装置を構成している。   In the present embodiment, the switch 35, the communication transceiver 36, and the control unit 37 described above constitute an address setting device.

なお、図2に示したようにスレーブ3は通信端子A31と通信端子B32とが、通信トランシーバ36とスイッチ35とを介して接続されているが、通信トランシーバ36は図3に示すように機能的には入力された電文はそのまま通過させるとともに内部へも取り込み自アドレス宛の電文のみを内部処理回路で処理をするという構成としているので、図1に示した通信システム1はアドレス設定後はバス接続となる。   As shown in FIG. 2, the slave 3 is connected to the communication terminal A31 and the communication terminal B32 via the communication transceiver 36 and the switch 35. The communication transceiver 36 is functional as shown in FIG. 1 is configured to pass the input message as it is and fetch it into the inside and process only the message addressed to its own address in the internal processing circuit. Therefore, the communication system 1 shown in FIG. It becomes.

次に、上述した構成の通信システム1においてアドレス設定の動作を図4のタイミングチャートを参照して説明する。図4は紙面の都合上スレーブ5までの動作を示すが、スレーブ6やスレーブ7についても同様である。   Next, the address setting operation in the communication system 1 configured as described above will be described with reference to the timing chart of FIG. FIG. 4 shows the operation up to the slave 5 for the sake of space, but the same applies to the slave 6 and the slave 7.

本実施形態においては、通信システム1で用いられる通信方式としてLIN(Local Interconnect Network)を採用している。LINは、車載LANの通信プロトコルの一種であり、マスタ、スレーブ構成で使用され、主に、自動車のワイパー、ドアスイッチ、パワーウィンド、ドアミラーなどの制御に用いられることが多い。   In the present embodiment, LIN (Local Interconnect Network) is adopted as a communication method used in the communication system 1. LIN is a type of communication protocol for in-vehicle LAN, and is used in a master / slave configuration, and is often used mainly for controlling automobile wipers, door switches, power windows, door mirrors, and the like.

まず、通常動作後あるいは初期動作後に電文として各スレーブに設定したアドレスを再設定(リセット)するフレームRをマスタ2が出力する。このとき各スレーブのスイッチは閉制御されている。このリセットするフレームは図4に示すように、Breakとデリミタ(図4中はAと記載)とSynchとID0とアドレス再設定とチェックサムとから構成され、SynchとID0とアドレス再設定とチェックサムはそれぞれstart bit(図4中はBと記載)とstop bit(図4中はCと記載)とが前後に付加される。このうちBreakとSynchまではマスタ2および各スレーブの同期を取るためのデータであり、ID0はアドレス再設定(リセット)を行うフレームRであることを示すデータである。アドレス再設定は受信したスレーブに対して設定されているアドレスをリセットすることを指示するデータであり、チェックサムはフレームデータの誤り検出のために付加されるデータである。   First, the master 2 outputs a frame R for resetting (resetting) the address set in each slave as a message after the normal operation or after the initial operation. At this time, each slave switch is closed. As shown in FIG. 4, the frame to be reset is composed of a break, a delimiter (denoted as A in FIG. 4), a sync, ID0, an address reset, and a checksum, and a sync, ID0, an address reset, and a checksum. Are respectively appended with a start bit (described as B in FIG. 4) and a stop bit (described as C in FIG. 4). Of these, data up to Break and Sync are data for synchronizing the master 2 and each slave, and ID0 is data indicating that it is a frame R for address reset (reset). The address reset is data for instructing the received slave to reset the set address, and the checksum is data added for error detection of the frame data.

このアドレスを再設定するフレームRをマスタ2が出力すると、各スレーブのスイッチは閉制御されているので略同時に各スレーブにアドレスを再設定するフレームRが到達し、各スレーブでは、データを受け取るタイミングの遅延を考慮して、チェックサム正常終了から若干の時間経過後に通信トランシーバ36が、内部に設定されているアドレスをリセットし、続いて制御信号を制御部37に出力して、制御部37がスイッチ35を開制御する。この動作はスレーブ3のみでなく全てのスレーブで行われスイッチが開制御される。この時点で各スレーブのアドレスは確実にリセット状態になり、スイッチ35も開制御されているので、マスタ2とスレーブ3とが接続された状態となる。   When the master 2 outputs the frame R for resetting the address, since the switches of the slaves are controlled to be closed, the frame R for resetting the address arrives at each slave almost at the same time. The communication transceiver 36 resets the address set inside after a lapse of some time from the normal checksum, and then outputs a control signal to the control unit 37. The switch 35 is controlled to open. This operation is performed not only in the slave 3 but also in all slaves, and the switch is controlled to be opened. At this time, the address of each slave is surely reset and the switch 35 is also controlled to open, so that the master 2 and the slave 3 are connected.

次に、電文としてスレーブ3にアドレス設定をするフレームAD1をマスタ2から出力する。このフレームは図4に示すように、BreakとデリミタとSynchとID1とアドレス設定1とチェックサムとから構成され、SynchとID1とアドレス設定1とチェックサムはそれぞれstart bitとstop bitとが前後に付加される。このうちBreakからSynchまでとチェックサムはアドレスを再設定するフレームRと同様の意味である。ID1はアドレス設定を行うフレームであることを示すデータである。アドレス設定1はスレーブ3に対して設定するアドレスが含まれるデータである。   Next, a frame AD1 for setting an address in the slave 3 as a message is output from the master 2. As shown in FIG. 4, this frame is composed of a break, a delimiter, a sync, ID1, an address setting 1, and a checksum. The sync, ID1, address setting 1, and checksum are preceded and followed by a start bit and a stop bit, respectively. Added. Among these, from Break to Sync, the checksum has the same meaning as the frame R whose address is reset. ID1 is data indicating that the frame is for address setting. Address setting 1 is data including an address to be set for the slave 3.

このスレーブ3にアドレス設定をするフレームAD1をマスタ2が出力すると、スレーブ3のみが受信し、スレーブ4以降はスイッチ35が開制御されているので到達しない。スレーブ3では、通信トランシーバ36が、自身にアドレスを設定するフレームであることを認識して当該フレームのアドレス設定1から新たなアドレスを抽出して内部に設定し、続いて制御信号を制御部37に出力して、制御部37がスイッチ35を閉制御する。この時点でスレーブ3のみアドレスが設定され、スイッチ35は閉制御されているので、マスタ2とスレーブ3とスレーブ4と接続された状態となる。   When the master 2 outputs the frame AD1 for setting an address to the slave 3, only the slave 3 receives it, and the slave 4 and later are not reached because the switch 35 is controlled to be opened. In the slave 3, the communication transceiver 36 recognizes that it is a frame for setting an address in itself, extracts a new address from the address setting 1 of the frame, sets it inside, and subsequently sends a control signal to the control unit 37. The control unit 37 controls the switch 35 to be closed. At this time, only the address of the slave 3 is set and the switch 35 is controlled to be closed, so that the master 2, the slave 3, and the slave 4 are connected.

次に、電文としてスレーブ4にアドレス設定をするフレームAD2をマスタ2から出力する。このフレームは図4に示すように、BreakとデリミタとSynchとID1とアドレス設定2とチェックサムとから構成され、SynchとID1とアドレス設定2とチェックサムはそれぞれstart bitとstop bitとが前後に付加される。このうちBreakからSynchまでとID1およびチェックサムはスレーブ3にアドレスを設定するフレームAD1と同様の意味である。アドレス設定2はスレーブ4に対して設定するアドレスが含まれるデータである。   Next, a frame AD2 for setting an address in the slave 4 is output from the master 2 as a message. As shown in FIG. 4, this frame is composed of a break, a delimiter, a sync, ID1, an address setting 2, and a checksum. The sync, ID1, address setting 2, and the checksum are preceded and followed by a start bit and a stop bit, respectively. Added. Among these, from Break to Sync, ID1 and checksum have the same meaning as the frame AD1 for setting an address in the slave 3. Address setting 2 is data including an address to be set for the slave 4.

このスレーブ4にアドレス設定をするフレームAD2をマスタ2が出力すると、スレーブ3とスレーブ4が受信する。スレーブ5以降はスイッチが開制御されているので到達しない。スレーブ4では、スレーブ3のアドレス設定時と同様に、通信トランシーバが、自身にアドレスを設定するフレームであることを認識して当該フレームのアドレス設定2から新たなアドレスを抽出して内部に設定し、続いて制御信号を制御部に出力して、制御部がスイッチを閉制御する。この時点でスレーブ4までのアドレスが設定され、スレーブ4のスイッチは閉制御されているので、マスタ2とスレーブ3からスレーブ5までが接続された状態となる。一方、スレーブ3では、このフレームのID1から先に設定された自身のアドレス宛でないことを認識し、以降このフレームに対する処理は何も行わない。   When the master 2 outputs the frame AD2 for setting the address to the slave 4, the slave 3 and the slave 4 receive it. The slave 5 and later do not reach the switch because the switch is controlled to open. In the slave 4, as in the address setting of the slave 3, the communication transceiver recognizes that it is a frame for setting an address in itself, extracts a new address from the address setting 2 of the frame, and sets it internally. Subsequently, a control signal is output to the control unit, and the control unit controls the switch to close. At this time, the address up to the slave 4 is set and the switch of the slave 4 is controlled to be closed, so that the master 2 and the slave 3 to the slave 5 are connected. On the other hand, the slave 3 recognizes that it is not addressed to its own address set earlier from ID1 of this frame, and thereafter does not perform any processing for this frame.

次に、電文としてスレーブ5にアドレス設定をするフレームAD3をマスタ2から出力する。このフレームは図4に示すように、BreakとデリミタとSynchとID1とアドレス設定3とチェックサムとから構成され、SynchとID1とアドレス設定3とチェックサムはそれぞれstart bitとstop bitとが前後に付加される。このうちBreakからSynchまでとID1およびチェックサムはスレーブ3にアドレスを設定するフレームと同様の意味である。アドレス設定3はスレーブ5に対して設定するアドレスが含まれるデータである。   Next, a frame AD3 for setting an address to the slave 5 is output from the master 2 as a message. As shown in FIG. 4, this frame is composed of a break, a delimiter, a sync, ID1, an address setting 3, and a checksum. The sync, ID1, address setting 3, and checksum are preceded and followed by a start bit and a stop bit, respectively. Added. Among these, from Break to Sync, ID1 and checksum have the same meaning as a frame for setting an address in the slave 3. Address setting 3 is data including an address to be set for the slave 5.

このスレーブ5にアドレス設定をするフレームAD3をマスタ2が出力すると、スレーブ3とスレーブ4とスレーブ5が受信する。スレーブ6以降はスイッチが開制御されているので到達しない。スレーブ5では、スレーブ3やスレーブ4のアドレス設定時と同様に、通信トランシーバが、自身にアドレスを設定するフレームであることを認識して当該フレームのアドレス設定3から新たなアドレスを抽出して内部に設定し、続いて制御信号を制御部に出力して、制御部がスイッチを閉制御する。この時点でスレーブ5までのアドレスが設定され、スレーブ5のスイッチは閉制御されているので、マスタ2とスレーブ3からスレーブ6までが接続された状態となる。一方、スレーブ3およびスレーブ4では、このフレームのID1から先に設定された自身のアドレス宛でないことを認識し、以降このフレームに対する処理は何も行わない。   When the master 2 outputs the frame AD3 for setting the address to the slave 5, the slave 3, the slave 4, and the slave 5 receive it. Since the switch is controlled to open after the slave 6, it does not reach. In the slave 5, similarly to the address setting of the slave 3 and the slave 4, the communication transceiver recognizes that it is a frame for setting an address in itself, extracts a new address from the address setting 3 of the frame, and internally Then, a control signal is output to the control unit, and the control unit controls the switch to be closed. At this time, the address up to the slave 5 is set and the switch of the slave 5 is closed, so that the master 2 and the slave 3 to the slave 6 are connected. On the other hand, the slave 3 and the slave 4 recognize that they are not addressed to their own addresses set from the ID1 of this frame, and thereafter do not perform any processing for this frame.

スレーブ6およびスレーブ7も、図4では省略したが同様の方法でアドレスを設定する。そして、全てのスレーブのアドレスが設定されると、全てのスレーブに含まれるスイッチが閉制御されるために、通信システム1はバス方式の通信システムとして機能することができる。   The slaves 6 and 7 are also set in the same manner, although not shown in FIG. When all the slave addresses are set, the switches included in all the slaves are controlled to be closed, so that the communication system 1 can function as a bus communication system.

本実施形態によれば、マスタ2とバス形式で接続されたスレーブ3において、マスタ2から自身よりも下流のスレーブへのフレームの送信を制限するスイッチ35を備えて、マスタ2から送信されてきたフレームがアドレスを再設定するフレームRであった場合は、通信トランシーバ36が内部に設定されているアドレスをリセットし、制御部37がスイッチ35を開制御する。また、マスタ2から送信されてきたフレームが自身のアドレスを設定するフレームAD1であった場合は、通信トランシーバ36が、当該フレームからアドレスを抽出して設定し、制御部37がスイッチ35を閉制御する。このように構成しているので、アドレスがリセットされた後はマスタ2からアドレスを設定するフレームにより自身のアドレスを設定するまではスイッチ35を開制御することによりフレームを下流に送信しないようでき、アドレスが設定された後に、初めてスイッチを閉制御して下流にフレームを送信できるため、確実に各スレーブに異なるアドレスを設定できるとともに、予めアドレスの設定を行う必要がなく通信ライン81、82、83、84、85に接続後にアドレスを設定するので誤接続による製造不良がなくなり、また、機能追加も回路部分に限定できるので外観形状を異ならせることと比較してコストアップも抑えることができる。   According to the present embodiment, the slave 3 connected to the master 2 in a bus format includes the switch 35 that restricts transmission of frames from the master 2 to the slave downstream from itself, and has been transmitted from the master 2. If the frame is a frame R for resetting the address, the communication transceiver 36 resets the address set inside, and the control unit 37 controls the switch 35 to open. When the frame transmitted from the master 2 is the frame AD1 for setting its own address, the communication transceiver 36 extracts and sets the address from the frame, and the control unit 37 controls the switch 35 to be closed. To do. Since it is configured in this way, after the address is reset, until the address is set from the master 2 by the frame for setting the address, the switch 35 is controlled to open so that the frame is not transmitted downstream. After the address is set, the switch can be closed for the first time and the frame can be transmitted downstream, so that a different address can be reliably set for each slave, and there is no need to set the address in advance, and the communication lines 81, 82, 83 , 84 and 85, the address is set after connection, so that there is no manufacturing failure due to erroneous connection, and the addition of functions can be limited to the circuit portion, so that an increase in cost can be suppressed compared to changing the external shape.

また、通信システム1は、マスタ2とスレーブ3、スレーブ4、スレーブ5、スレーブ6、スレーブ7と、を数珠繋ぎにして構成しているので、通信システム1の構成が従来のバス接続と比較してシンプルになり、従来のバス接続のように通信ラインからの分岐線や分岐するための部品等が不要となる。   In addition, since the communication system 1 is configured by connecting the master 2 and the slave 3, the slave 4, the slave 5, the slave 6, and the slave 7 in a daisy chain, the configuration of the communication system 1 is compared with the conventional bus connection. This simplifies and eliminates the need for branch lines from the communication line, parts for branching, and the like as in the conventional bus connection.

なお、上述した実施形態でスレーブ(通信ユニット)にアドレス設定装置を備えたが、 図5に示すように、従来のバス接続において、通信ラインの分岐点にアドレス設定装置100を設けてもよい。アドレス設定装置100には、スイッチとそのスイッチの制御部および受信したフレームを解析してアドレスを設定しておくブロックが備えられていればよい。受信したフレームを解析してアドレスを設定しておくブロックは受信したフレームが対応するスレーブ(通信ユニット)宛のフレームの場合のみ必要なデータを抽出してスレーブ(通信ユニット)に出力する。あるいは、アドレス設定装置100にスイッチのみ備えて、スイッチの制御はスレーブ(通信ユニット)から行うようにしてもよい。   In the embodiment described above, the slave (communication unit) is provided with the address setting device. However, as shown in FIG. 5, in the conventional bus connection, the address setting device 100 may be provided at the branch point of the communication line. The address setting device 100 only needs to include a switch, a control unit for the switch, and a block for analyzing the received frame and setting an address. The block which analyzes the received frame and sets the address extracts necessary data only when the received frame is a frame addressed to the corresponding slave (communication unit) and outputs it to the slave (communication unit). Alternatively, the address setting device 100 may be provided with only a switch, and the switch may be controlled from a slave (communication unit).

但し、図5の構成は分岐点にアドレス設定装置100を設けることから従来のバス接続と同様に部品点数が増加してしまうために、図1に示した構成とした方が環境に対する影響を少なくすることができ好ましい。   However, since the configuration of FIG. 5 is provided with the address setting device 100 at the branch point, the number of parts increases as in the case of the conventional bus connection. Therefore, the configuration shown in FIG. This is preferable.

また、本発明は、上述した実施形態で採用したLINに限らずバス方式の通信方式に適用できるプロトコルであれば適用可能である。例えば、スレーブ3がアドレス設定後にスレーブ4のアドレスを設定するフレームを生成し、スイッチ35を閉制御後に生成したフレームをスレーブ4に出力するというようなマスタ2が全て制御しない方法でもよい。   In addition, the present invention is not limited to the LIN employed in the above-described embodiment, but can be applied to any protocol that can be applied to a bus communication system. For example, a method in which the master 2 does not control all such that the slave 3 generates a frame for setting the address of the slave 4 after setting the address and outputs the frame generated after the switch 35 is closed to the slave 4 may be used.

要するに、本発明は上記実施形態に限定されるものではない。即ち、本発明の骨子を逸脱しない範囲で種々変形して実施することができる。   In short, the present invention is not limited to the above embodiment. That is, various modifications can be made without departing from the scope of the present invention.

本発明の一実施形態にかかる通信システムのブロック図である。It is a block diagram of the communication system concerning one Embodiment of this invention. 本発明の一実施形態にかかるアドレス設定装置を含むスレーブのブロック図である。It is a block diagram of the slave containing the address setting apparatus concerning one Embodiment of this invention. 通信トランシーバの内部機能構成図である。It is an internal function block diagram of a communication transceiver. 図1に示された通信システムのアドレス設定の動作を示すタイミングチャートである。3 is a timing chart showing an address setting operation of the communication system shown in FIG. 1. 本発明の他の実施形態にかかる通信システムのブロック図である。It is a block diagram of the communication system concerning other embodiment of this invention.

符号の説明Explanation of symbols

1 通信システム
3〜7 スレーブ(通信ユニット)
31 通信端子A(第1の端子)
32 通信端子B(第2の端子)
35 スイッチ
36 通信トランシーバ(アドレス設定手段、アドレスリセット手段)
37 制御部(スイッチ制御手段)
1 Communication system 3-7 Slave (communication unit)
31 Communication terminal A (first terminal)
32 Communication terminal B (second terminal)
35 switch 36 communication transceiver (address setting means, address reset means)
37 Control unit (switch control means)

Claims (7)

バス方式の通信ラインに接続される通信ユニットのアドレスを設定するアドレス設定装置であって、
前記通信ラインの上流から下流への電文の送信を制限するスイッチと、
前記スイッチの閉開を制御するスイッチ制御手段と、
前記通信ラインの上流から送信されてきた電文から設定対象となる通信ユニットのアドレスを抽出して設定するアドレス設定手段と、を備え、
前記スイッチ制御手段が、前記アドレス設定手段がアドレスを設定した後には前記スイッチを閉制御する
ことを特徴とするアドレス設定装置。
An address setting device for setting an address of a communication unit connected to a bus communication line,
A switch for restricting transmission of messages from upstream to downstream of the communication line;
Switch control means for controlling closing and opening of the switch;
Address setting means for extracting and setting the address of a communication unit to be set from a message transmitted from the upstream of the communication line,
The address setting device, wherein the switch control means controls the switch to be closed after the address setting means has set an address.
前記通信ラインの上流から送信されてきた電文に基づいて、前記アドレス設定手段が設定したアドレスをリセットするアドレスリセット手段と、を備え、
前記スイッチ制御手段が、前記アドレスリセット手段がアドレスをリセットした後には前記スイッチを開制御する
ことを特徴とする請求項1に記載のアドレス設定装置。
An address reset means for resetting the address set by the address setting means based on a message transmitted from the upstream of the communication line,
2. The address setting device according to claim 1, wherein the switch control means opens the switch after the address reset means resets the address.
請求項1または2に記載のアドレス設定装置を備えたことを特徴とする通信ユニット。   A communication unit comprising the address setting device according to claim 1. 前記通信ラインの上流側に接続される第1の端子と、前記通信ラインの下流側に接続される第2の端子と、を備えたことを特徴とする請求項3に記載の通信ユニット。   The communication unit according to claim 3, further comprising: a first terminal connected to the upstream side of the communication line; and a second terminal connected to the downstream side of the communication line. 前記通信ラインの最上流に接続されてマスタとなる通信装置と、
前記通信装置のスレーブとなる複数の請求項4に記載の通信ユニットと、
を備えた通信システムであって、
前記スレーブの前記第1の端子には該スレーブの上流に位置するスレーブまたはマスタが接続されるとともに、前記第2の端子には該スレーブの下流に位置するスレーブが接続されることを特徴とする通信システム。
A communication device connected to the most upstream of the communication line and serving as a master;
A plurality of communication units according to claim 4, which are slaves of the communication device;
A communication system comprising:
A slave or a master located upstream of the slave is connected to the first terminal of the slave, and a slave located downstream of the slave is connected to the second terminal. Communications system.
バス方式の通信ラインに接続される通信ユニットのアドレスを設定するアドレス設定方法であって、
前記通信ラインの上流から下流への電文の送信を制限するスイッチを備え、
前記通信ラインの上流から送信されてきた電文から設定対象となる通信ユニットのアドレスを抽出して設定し、その後に前記スイッチを閉制御する
ことを特徴とするアドレス設定方法。
An address setting method for setting an address of a communication unit connected to a bus communication line,
A switch for restricting transmission of messages from upstream to downstream of the communication line;
An address setting method comprising: extracting and setting an address of a communication unit to be set from a message transmitted from an upstream side of the communication line, and then closing the switch.
前記通信ラインの上流から送信されてきた電文に基づいて、前記設定したアドレスをリセットし、その後に前記スイッチを開制御することを特徴とする請求項6に記載のアドレス設定方法。   The address setting method according to claim 6, wherein the set address is reset based on a message transmitted from the upstream of the communication line, and then the switch is controlled to be opened.
JP2008139062A 2008-05-28 2008-05-28 Address setting device, communication unit, communication system and address setting method Abandoned JP2009290409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008139062A JP2009290409A (en) 2008-05-28 2008-05-28 Address setting device, communication unit, communication system and address setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008139062A JP2009290409A (en) 2008-05-28 2008-05-28 Address setting device, communication unit, communication system and address setting method

Publications (1)

Publication Number Publication Date
JP2009290409A true JP2009290409A (en) 2009-12-10

Family

ID=41459216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008139062A Abandoned JP2009290409A (en) 2008-05-28 2008-05-28 Address setting device, communication unit, communication system and address setting method

Country Status (1)

Country Link
JP (1) JP2009290409A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105793115A (en) * 2014-01-09 2016-07-20 矢崎总业株式会社 Electrical wiring device for vehicle
JP2016181795A (en) * 2015-03-24 2016-10-13 Necディスプレイソリューションズ株式会社 Network system and network setting method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004039010A1 (en) * 2002-10-25 2004-05-06 Citizen Watch Co., Ltd. Electronic device system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004039010A1 (en) * 2002-10-25 2004-05-06 Citizen Watch Co., Ltd. Electronic device system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105793115A (en) * 2014-01-09 2016-07-20 矢崎总业株式会社 Electrical wiring device for vehicle
CN105793115B (en) * 2014-01-09 2018-03-27 矢崎总业株式会社 Vehicle electrical packaging connecton layout
US10676049B2 (en) 2014-01-09 2020-06-09 Yazaki Corporation Electrical wiring device for vehicle
JP2016181795A (en) * 2015-03-24 2016-10-13 Necディスプレイソリューションズ株式会社 Network system and network setting method

Similar Documents

Publication Publication Date Title
JP6438982B2 (en) Feedforward ringing suppression circuit
US8750351B2 (en) Configuration of bus transceiver
US9832038B2 (en) Communication system having a can bus and a method for operating such a communication system
US7366115B2 (en) Multiplex transmission system with in-circuit addressing
US10523462B2 (en) Communication network for transmission of messages
US10572428B2 (en) Bus system
CN105612734B (en) Adapter device for a bus system and method for operating a CAN subscriber station and a CAN FD subscriber station in a bus system
EP2346214B1 (en) Communication circuit, relay connecting circuit, and communication network
RU2678715C2 (en) Data transmission protocol with protocol exception state
CN112075063B (en) Gateway for data communication in a vehicle
CN108353016B (en) Relay device, electronic control device, and in-vehicle network system
CN103490906A (en) Power supply processing method and device and power supply system
JP2006129235A (en) Network system, master device, slave device, and network system startup controlling method
JP2008278403A (en) Monitoring apparatus and method of network system
CN110301115B (en) Subscriber station for a bus system and method for data transmission in a bus system
JP2011182123A (en) Communication system, communication apparatus, and communication method
WO2009144843A1 (en) Communication system, test device, communication device, communication method, and test method
CN110768880A (en) Ethernet network node, fault processing method, computer device and storage medium
US10162777B2 (en) Transmission unit with checking function
JP2009290409A (en) Address setting device, communication unit, communication system and address setting method
JP5301088B2 (en) Serial communication device for motor control
US20230198800A1 (en) Apparatus for a controller area network
US20140153381A1 (en) Information transmission network and corresponding network node
CN102724144A (en) Self-adaptive gateway device and data transmission method thereof
JP2012074779A (en) Communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110329

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130108

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20130301