JP2010195133A - Onboard device control system and identifier setting method in onboard device control system - Google Patents

Onboard device control system and identifier setting method in onboard device control system Download PDF

Info

Publication number
JP2010195133A
JP2010195133A JP2009040587A JP2009040587A JP2010195133A JP 2010195133 A JP2010195133 A JP 2010195133A JP 2009040587 A JP2009040587 A JP 2009040587A JP 2009040587 A JP2009040587 A JP 2009040587A JP 2010195133 A JP2010195133 A JP 2010195133A
Authority
JP
Japan
Prior art keywords
identifier
slave
master device
bus
slave device
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.)
Pending
Application number
JP2009040587A
Other languages
Japanese (ja)
Inventor
Toshibumi Sugito
俊文 杉戸
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.)
Sanden Corp
Original Assignee
Sanden 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 Sanden Corp filed Critical Sanden Corp
Priority to JP2009040587A priority Critical patent/JP2010195133A/en
Publication of JP2010195133A publication Critical patent/JP2010195133A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Air-Conditioning For Vehicles (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an onboard device control system with excellent versatility, preventing wrong attachment of a slave device. <P>SOLUTION: The slave device 200 is connected to a signal line 13 of a bus 10 by daisy chain connection, a resistor 201 is connected between the signal lines 13 in series, and a switch means 202 is connected to the resistor 201 in parallel. One end of the signal line of the bus 10 is connected to a master device 100, and the other end is terminated at the resistor 15. When setting an identifier, the switch means 202 is opened in each slave device 200, and the master device 100 applies a D.C. voltage to the signal line 13. Each slave device 200 detects the potential of one end of the resistor 15, and sets an identifier corresponding to the potential as its own identifier. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、マスター装置とスレーブ装置がバス接続された車載機器制御システムに関する。   The present invention relates to an in-vehicle device control system in which a master device and a slave device are connected by a bus.

車載機器制御システムにおいては車内に車載LANが設置され、該車載LANに多数の電子制御ユニット(ECU:Electronic Control Unit)が接続されている。ここでECUは、車載LANに接続されたノードに該当し、制御対象となる車載機器が接続されているノードも含む。車載LANの規格には例えばCAN(Controller Area Network)やLIN(Local Interconnect Network)などがある。LIN規格においてはシングルマスタ方式が採用されており、1つのECUがマスタ装置として動作し、他のECUはスレーブ装置として動作する。通常、マスタ装置として動作するECU(以下、単に「マスタ装置」と言う。)は、バスとの通信インタフェイス回路と、マイクロコンピュータやメモリ等からなる制御回路とを備えている。スレーブ装置として動作するECU(以下、単に「スレーブ装置」と言う。)は、バスとの通信インタフェイス回路と、車載機器の制御回路及び該車載機器やセンサとのインタフェイス回路とを備えている。   In an in-vehicle device control system, an in-vehicle LAN is installed in a vehicle, and a large number of electronic control units (ECUs) are connected to the in-vehicle LAN. Here, the ECU corresponds to a node connected to the in-vehicle LAN, and includes a node to which an in-vehicle device to be controlled is connected. For example, in-vehicle LAN standards include CAN (Controller Area Network) and LIN (Local Interconnect Network). In the LIN standard, a single master system is adopted, and one ECU operates as a master device, and the other ECU operates as a slave device. Usually, an ECU that operates as a master device (hereinafter simply referred to as “master device”) includes a communication interface circuit with a bus and a control circuit including a microcomputer, a memory, and the like. An ECU that operates as a slave device (hereinafter simply referred to as a “slave device”) includes a communication interface circuit with a bus, a control circuit for an in-vehicle device, and an interface circuit for the in-vehicle device or sensor. .

各スレーブ装置には予め識別子が定められており、マスタ装置からスレーブ装置への通信電文のヘッダ部にはスレーブ装置の識別子が含まれる。なお、識別子と各スレーブ装置とは必ずしも1対1の関係である必要はなく、1つのスレーブ装置に対して複数の識別子を割り当てることにより、識別子を一種のコマンドとして用いる場合もある。   An identifier is determined in advance for each slave device, and the header of the communication message from the master device to the slave device includes the identifier of the slave device. The identifier and each slave device do not necessarily have a one-to-one relationship, and the identifier may be used as a kind of command by assigning a plurality of identifiers to one slave device.

マスタ装置のメモリには、スレーブ装置に接続された車載機器の制御に必要なパラメータや各スレーブ装置の識別子が記憶されている。マスタ装置の制御回路は、該識別子及びパラメータに基づき車載機器の制御を行う(特許文献1参照)。例えば、エアコンのダンパを開閉するアクチュエータを制御する場合について説明する。該アクチュエータには回転角度を検出するセンサとしてポテンションメータが付設されている。マスタ装置のメモリには、ダンパの開放時及び閉鎖時のポテンションメータの値が記憶されている。マスタ装置はスレーブ装置に対してポテンションメータの値を送信することによりアクチュエータの動作を指示する。スレーブ装置は、ポテンションメータの検出値がマスタ装置から受信した値となるようにアクチュエータをフィードバック制御する。   The memory of the master device stores parameters necessary for controlling the in-vehicle device connected to the slave device and the identifier of each slave device. The control circuit of the master device controls the in-vehicle device based on the identifier and parameter (see Patent Document 1). For example, the case of controlling an actuator that opens and closes a damper of an air conditioner will be described. A potentiometer is attached to the actuator as a sensor for detecting a rotation angle. The potentiometer value when the damper is opened and closed is stored in the memory of the master device. The master device instructs the operation of the actuator by transmitting the potentiometer value to the slave device. The slave device feedback-controls the actuator so that the detected value of the potentiometer becomes the value received from the master device.

特開2005−335607号公報JP 2005-335607 A

ところで前述のLINのような規格ではコスト等の観点からシステムが簡便化されており各スレーブ装置の識別子は予め割り当てられたものが固定的に設定されている。同様にマスタ装置においても各スレーブ装置の識別子は固定的に設定されている。このため、同種のスレーブ装置を複数個バス接続する場合や、複数のシステム間で同種のスレーブ装置を用いる場合などには、スレーブ装置のハードウェア的構成は共通であるにもかかわらず識別子が異なるため、それぞれ異なるスレーブ装置として製造・管理する必要があった。これにより、スレーブ装置は汎用性に欠けたものとなり、組立て作業時に誤ったスレーブ装置を取り付けてしまう恐れがあった。   By the way, the standard such as LIN described above simplifies the system from the viewpoint of cost and the like, and the identifiers assigned to the respective slave devices are fixedly set in advance. Similarly, in the master device, the identifier of each slave device is fixedly set. For this reason, when multiple slave devices of the same type are connected by a bus, or when the same type of slave device is used between a plurality of systems, the identifiers differ even though the hardware configuration of the slave devices is common. Therefore, it was necessary to manufacture and manage each as a different slave device. As a result, the slave device lacks versatility, and there is a risk that an incorrect slave device may be attached during assembly work.

本発明は、上記事情に鑑みてなされたものであり、その目的とするところは、汎用性が高く且つ誤ったスレーブ装置の取付けの防止を図ることができる車載機器制御システムを提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an in-vehicle device control system that is highly versatile and can prevent erroneous attachment of a slave device. .

上記目的を達成するために、本願発明は、車両内に設置されるマスタ装置と該マスタ装置に接続された一又は複数のスレーブ装置とを備え、マスタ装置とスレーブ装置との間でシングルマスタ方式の通信を行う車載機器制御システムにおいて、バスの一方の端部にマスタ装置を接続するとともに他方の端部をグランドに接地し、マスタ装置とグランド間のバスにスレーブ装置をディージーチェーン接続し、スレーブ装置は、一対のバス間を電気的に短絡又は開放するスイッチ手段と、スイッチ手段に並行接続されたインピーダンス素子と、インピーダンス手段の少なくとも一端の電位を検出する手段と、通信制御手段とを備え、スレーブ装置の通信制御手段は、識別子設定モード時にはスイッチ手段を開放した状態で前記検出手段によりインピーダンス素子の少なくとも一端の電位を検出し、該検出処理の後にはスイッチ手段を短絡させ、検出した電位に対応する識別子を自身の識別子として設定し、マスタ装置の通信制御手段は、識別子設定モード時にはバスに所定の直流電圧を印加することを特徴とする。   To achieve the above object, the present invention comprises a master device installed in a vehicle and one or a plurality of slave devices connected to the master device, and a single master system is provided between the master device and the slave device. In the in-vehicle device control system that performs communication, the master device is connected to one end of the bus, the other end is grounded, and the slave device is daisy chain connected to the bus between the master device and the ground. The apparatus includes switch means for electrically short-circuiting or opening a pair of buses, impedance elements connected in parallel to the switch means, means for detecting the potential of at least one end of the impedance means, and communication control means, In the identifier setting mode, the communication control means of the slave device is inserted by the detection means with the switch means opened. The potential of at least one end of the inductance element is detected, and after the detection process, the switch means is short-circuited, and an identifier corresponding to the detected potential is set as its own identifier, and the communication control means of the master device is in the identifier setting mode. A predetermined DC voltage is applied to the bus.

本発明によれば、識別子設定モード時にはバスはスレーブ装置の数だけインピーダンス素子が直列接続された状態となる。そして、バスの一端側はマスター装置により所定の直流電圧が印加され且つ他端側は接地されているので、各スレーブ装置におけるインピーダンス素子の所定の一方の端部は、マスタ装置から供給される直流電圧が分圧された電位となる。したがって、各スレーブ装置は、マスタ装置側から数えて何番目にバスに接続されているかを前記電位から認識することができるので、該電位に対応した識別子を設定することが可能になる。このように各スレーブ装置では、バス上の位置を自己認識して識別子が自動的に設定されるので、組み付け前のスレーブ装置を汎用化することができるとともに組み付け作業性も向上する。   According to the present invention, in the identifier setting mode, the bus is in a state where impedance elements are connected in series by the number of slave devices. Since one end of the bus is applied with a predetermined DC voltage by the master device and the other end is grounded, one end of the impedance element in each slave device is connected to the DC supplied from the master device. The voltage becomes a divided potential. Accordingly, since each slave device can recognize from the potential how many times it is connected to the bus from the master device side, an identifier corresponding to the potential can be set. As described above, each slave device recognizes the position on the bus and automatically sets the identifier, so that the slave device before assembly can be generalized and the assembly workability is improved.

検出電位から対応する識別子を設定するより具体的な方法の一例としては、スレーブ装置の通信制御手段は、検出電位と識別子との対応関係を記憶した記憶手段を備え、該記憶手段に記憶された対応関係を参照して検出電位から識別子を取得することが挙げられる。なお、検出電位と識別子との対応関係はバスに接続されたスレーブ装置の台数によって異なってくる。そこで、スレーブ装置の記憶手段はバスに接続するスレーブ台数毎に検出電位と識別子との対応関係を記憶し、マスタ装置の通信制御手段は、バスへの所定の直流電圧の印可を終了した後にスレーブ装置に対してバスに接続されたスレーブ装置の台数を通知し、スレーブ装置の通信制御手段は、該記憶手段に記憶された対応関係を参照してマスタ装置から受信したスレーブ装置の台数及び検出電位から識別子を取得すると、確実に識別子をできる。   As an example of a more specific method for setting the corresponding identifier from the detection potential, the communication control unit of the slave device includes a storage unit that stores a correspondence relationship between the detection potential and the identifier, and is stored in the storage unit. For example, the identifier is obtained from the detected potential with reference to the correspondence relationship. The correspondence relationship between the detected potential and the identifier varies depending on the number of slave devices connected to the bus. Therefore, the storage means of the slave device stores the correspondence relationship between the detected potential and the identifier for each number of slaves connected to the bus, and the communication control means of the master device slaves after the application of the predetermined DC voltage to the bus is completed. Notifying the number of slave devices connected to the bus to the device, the communication control means of the slave device refers to the correspondence stored in the storage means, the number of slave devices received from the master device and the detection potential If the identifier is obtained from the identifier, the identifier can be surely obtained.

また、検出電位から対応する識別子を設定する他の具体的な例としては、マスタ装置の通信制御手段は、バスへの所定の直流電圧の印可を終了した後にスレーブ装置に対してバスに接続されたスレーブ装置の台数を通知し、スレーブ装置の通信制御手段は、マスタ装置がバスに印加する所定の直流電圧の値とマスタ装置から受信したスレーブ装置の台数とに基づき検出電位から識別子を算出することが挙げられる。   As another specific example of setting the corresponding identifier from the detected potential, the communication control means of the master device is connected to the slave device after the application of the predetermined DC voltage to the bus. The communication control means of the slave device calculates the identifier from the detected potential based on the value of a predetermined DC voltage applied to the bus by the master device and the number of slave devices received from the master device. Can be mentioned.

なお、マスタ装置からスレーブ装置へのスレーブ装置台数の通知は、全てのスレーブ装置で共通の識別子を用いて行えばよい。また、マスタ装置・スレーブ装置間の通信規格としては例えばLIN(Local Interconnect Network)が挙げられる。   Note that the notification of the number of slave devices from the master device to the slave devices may be performed using an identifier common to all slave devices. Moreover, as a communication standard between the master device and the slave device, for example, LIN (Local Interconnect Network) can be cited.

以上説明したように本発明によれば、各スレーブ装置では、バス上の位置を自己認識して識別子が自動的に設定されるので、組み付け前のスレーブ装置を汎用化することができるとともに組み付け作業性も向上する。   As described above, according to the present invention, each slave device recognizes the position on the bus and automatically sets an identifier, so that the slave device before assembly can be generalized and assembled. Also improves.

車載機器制御システムの構成図Configuration diagram of in-vehicle device control system マスタ装置の構成図Master unit configuration diagram スレーブ層装置の構成図Configuration diagram of slave layer device 車内空調システムの構成図Configuration diagram of interior air conditioning system 識別子リストの一例を説明する図The figure explaining an example of an identifier list 識別子テーブルの一例を説明する図The figure explaining an example of an identifier table マスタ装置の動作を説明するフローチャートFlow chart explaining operation of master device スレーブ装置の動作を説明するフローチャートFlow chart explaining operation of slave device スレーブ装置の動作を説明するフローチャートFlow chart explaining operation of slave device 車載機器制御システムの初期動作を説明するシーケンスチャートSequence chart explaining initial operation of in-vehicle device control system 他の例にかかるスレーブ装置の識別子算出方法を説明するフローチャートThe flowchart explaining the identifier calculation method of the slave apparatus concerning another example

本発明の一実施の形態に係る車載機器制御システムについて図面を参照して説明する。図1は車載機器制御システムの構成図である。なお本実施の形態では、車内空調システムの制御システムを例にとって説明する。   An in-vehicle device control system according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of an in-vehicle device control system. In the present embodiment, a control system for an in-vehicle air conditioning system will be described as an example.

この車載機器制御システムは、図1に示すように、複数のECUが車載LANにバス10に接続している。本実施の形態では車載LANの規格としてLINを採用する。したがって、1つのECUのみマスタとして動作し、他のECUはスレーブとして動作する。本実施の形態では、マスタ装置100と、複数のスレーブ装置200とが車載LANのバス10に接続している。スレーブ装置200には、後述するように、例えばダンパを開閉するためのアクチュエータが接続されている。マスタ装置100は、各スレーブ装置200に接続されたアクチュエータの動作を制御する。   In this in-vehicle device control system, as shown in FIG. 1, a plurality of ECUs are connected to a bus 10 in an in-vehicle LAN. In this embodiment, LIN is adopted as a standard for the in-vehicle LAN. Therefore, only one ECU operates as a master, and the other ECUs operate as slaves. In the present embodiment, master device 100 and a plurality of slave devices 200 are connected to bus 10 of the in-vehicle LAN. As will be described later, for example, an actuator for opening and closing a damper is connected to the slave device 200. The master device 100 controls the operation of the actuator connected to each slave device 200.

本実施の形態では上述のように車載LANの規格としてLINを採用しているため、バス10は、電源線11,グランド線12,信号線13からなる。本発明の特徴的な点は、図1に示すように、各スレーブ装置200と信号線13との物理的な接続形態をバス接続ではなくディージーチェーン接続している点にある。なお、後述するようにスレーブ装置200の内部においては信号線13との接続は状況によってバス接続とディージーチェーン接続が切り替えられる。また、図1に示すように、各スレーブ装置200と電源線11及びグランド線12との物理的な接続形態はバス接続としているがディージーチェーン接続としてもよい。バス10の一方の端部はマスタ装置100に接続している。バス10の他方の端部は、電源線11及びグランド線12は開放されている。一方、信号線13はインピーダンス素子である抵抗器15を介して接地されている。換言すれば、バス10の信号線13は終端抵抗によりターミネートされている。   In the present embodiment, as described above, LIN is adopted as the standard of the in-vehicle LAN, so that the bus 10 includes a power supply line 11, a ground line 12, and a signal line 13. A characteristic point of the present invention is that, as shown in FIG. 1, the physical connection form between each slave device 200 and the signal line 13 is not a bus connection but a daisy chain connection. As will be described later, in the slave device 200, the connection to the signal line 13 is switched between the bus connection and the daisy chain connection depending on the situation. As shown in FIG. 1, the physical connection form between each slave device 200 and the power supply line 11 and the ground line 12 is bus connection, but may be daisy chain connection. One end of the bus 10 is connected to the master device 100. At the other end of the bus 10, the power line 11 and the ground line 12 are open. On the other hand, the signal line 13 is grounded via a resistor 15 which is an impedance element. In other words, the signal line 13 of the bus 10 is terminated by the termination resistor.

マスタ装置100は、図2に示すように、車載LANのバス10の信号線13との接続用のトランシーバ101と、各スレーブ装置200に接続されたアクチュエータを制御するための制御回路110とを備えている。制御回路110は、主演算装置111と、不揮発性の記憶手段であるROM112と、揮発性の記憶手段であるRAM115とを備えている。ROM112には制御プログラム113と各スレーブ装置200の識別子のリスト114とが記憶されている。制御回路110は、ROM112に記憶されている制御プログラム113を実行することにより動作する。識別子リスト114の詳細について後述する。また、マスタ装置100は、バス10の電源線11・グランド線12間に直流電源120を印加している。なお、図2では説明の簡単のためマスタ装置100に電源を内蔵した例を図示したが、車両から供給される電源をバス10に供給する形態であってもよい。   As shown in FIG. 2, the master device 100 includes a transceiver 101 for connection to the signal line 13 of the in-vehicle LAN bus 10 and a control circuit 110 for controlling the actuator connected to each slave device 200. ing. The control circuit 110 includes a main arithmetic unit 111, a ROM 112 that is a nonvolatile storage unit, and a RAM 115 that is a volatile storage unit. The ROM 112 stores a control program 113 and an identifier list 114 of each slave device 200. The control circuit 110 operates by executing a control program 113 stored in the ROM 112. Details of the identifier list 114 will be described later. Further, the master device 100 applies a DC power source 120 between the power line 11 and the ground line 12 of the bus 10. In FIG. 2, an example in which a power source is built in the master device 100 is illustrated for simplicity of explanation, but a mode in which power supplied from a vehicle is supplied to the bus 10 may be used.

スレーブ装置200は、図3に示すように、バス10の信号線13に直列に接続したインピーダンス素子である抵抗器201と、該抵抗器201に並列接続したリレースイッチ202とを備えている。ここで抵抗器201の抵抗値は、計算・設計の容易という観点から、前記信号線13の終端用の抵抗器15と同じ値とした。また、スレーブ装置200は、抵抗器201の一端側に接続された通信用のトランシーバ203と、マスタ装置100との通信を制御する通信制御部204と、アクチュエータ制御回路207と、前述のアクチュエータ208と、アクチュエータ208の回転角度を検出するポテンションメータ209と、抵抗器201の一端側の電位をグランドを基準として検出する電圧検出手段210とを備えている。前記リレースイッチ202は、通信制御部204により制御可能となっている。   As shown in FIG. 3, the slave device 200 includes a resistor 201 that is an impedance element connected in series to the signal line 13 of the bus 10, and a relay switch 202 connected in parallel to the resistor 201. Here, the resistance value of the resistor 201 is set to the same value as that of the terminating resistor 15 of the signal line 13 from the viewpoint of easy calculation and design. The slave device 200 includes a communication transceiver 203 connected to one end of the resistor 201, a communication control unit 204 that controls communication with the master device 100, an actuator control circuit 207, and the actuator 208 described above. A potentiometer 209 for detecting the rotation angle of the actuator 208 and a voltage detection means 210 for detecting the potential at one end of the resistor 201 with reference to the ground. The relay switch 202 can be controlled by the communication control unit 204.

通信制御部204は、後述する識別子設定モードで参照される識別子テーブル205と、自己の識別子を記憶する自己識別子記憶部206とを備えている。識別子テーブル205の詳細については後述する。自己識別子記憶部206は、組み付け前には自己の識別子は記憶されておらず、識別子設定モードにおける処理により登録される。該識別子設定モードではマスタ装置100からの通信電文を受信する必要がある。このため、通信制御部204は、自己識別子記憶部206に記憶された識別子宛のマスタ装置100から通信電文を処理するだけでなく、組み付け前の全てのスレーブ装置200に共通の特定の識別子宛の通信電文も処理する。前者の通信電文はアクチュエータ208の制御に関するものであり、後者は識別子の自己識別子記憶部206への登録処理に関するものである。換言すれば、通信制御部204は、自己の識別子を割り当てられていない場合であっても、全てのスレーブ装置200に共通の特定の識別子を用いた通信処理を行う。   The communication control unit 204 includes an identifier table 205 referred to in an identifier setting mode, which will be described later, and a self-identifier storage unit 206 that stores its own identifier. Details of the identifier table 205 will be described later. The self identifier storage unit 206 does not store its own identifier before assembly, and is registered by processing in the identifier setting mode. In the identifier setting mode, it is necessary to receive a communication message from the master device 100. For this reason, the communication control unit 204 not only processes a communication message from the master device 100 addressed to the identifier stored in the self-identifier storage unit 206 but also addresses a specific identifier common to all slave devices 200 before assembly. It also handles communication messages. The former communication message relates to the control of the actuator 208, and the latter relates to the registration processing of the identifier in the self-identifier storage unit 206. In other words, the communication control unit 204 performs a communication process using a specific identifier common to all the slave devices 200 even when the identifier is not assigned.

アクチュエータ制御回路207は、ポテンションメータ209の抵抗値(検出値)がマスタ装置100からの動作指示に含まれる目標値となるようにアクチュエータ208を駆動制御する。   The actuator control circuit 207 drives and controls the actuator 208 so that the resistance value (detected value) of the potentiometer 209 becomes a target value included in the operation instruction from the master device 100.

次に、スレーブ装置200により制御される車載機器の構成の一例について図4を参照して説明する。本実施の形態では、図4に示すように、空調装置本体300は、外気取入口301と内気取入口302とが形成されており、外気取入口301と内気取入口302の合流部には外気と内気の流入割合を調節するための取入口ダンパ303が回動自在に付設されている。該ダンパ303の下流にはファン304が配置されている。該ファン304により外気取入口301又は内気取入口302から外気又は内気が吸引される。ファン304の下流には蒸発器305が設けられている。該蒸発器305は冷凍サイクルを構成する装置であり図示しない圧縮機等に接続されている。さらに、蒸発器305の下流にはヒータ306が設けられており、該ヒータ306の蒸発器305側にはヒータへの空気の流入量を調節するヒータ用ダンパ307が回動自在に設けられている。さらに、空調装置本体300には、デフ吹出口308,ベント吹出口309,フット吹出口310が形成されている。各吹出口308,309,310には、デフ吹出口ダンパ311,ベント吹出口ダンパ312,フット吹出口ダンパ313がそれぞれ回動自在に設けられている。   Next, an example of the configuration of the in-vehicle device controlled by the slave device 200 will be described with reference to FIG. In the present embodiment, as shown in FIG. 4, the air conditioner main body 300 is formed with an outside air inlet 301 and an inside air inlet 302, and outside air is provided at the junction of the outside air inlet 301 and the inside air inlet 302. An intake damper 303 for adjusting the inflow rate of the inside air is rotatably attached. A fan 304 is disposed downstream of the damper 303. The fan 304 sucks outside air or inside air from the outside air inlet 301 or the inside air inlet 302. An evaporator 305 is provided downstream of the fan 304. The evaporator 305 is a device constituting a refrigeration cycle, and is connected to a compressor or the like (not shown). Further, a heater 306 is provided downstream of the evaporator 305, and a heater damper 307 for adjusting the amount of air flowing into the heater is rotatably provided on the evaporator 305 side of the heater 306. . Further, the air conditioner body 300 is formed with a differential outlet 308, a vent outlet 309, and a foot outlet 310. In each of the air outlets 308, 309, and 310, a differential air outlet damper 311, a vent air outlet damper 312 and a foot air outlet damper 313 are rotatably provided.

スレーブ装置200は、それぞれ1つのダンパの駆動制御を行う。すなわち各ダンパに対して1つのスレーブ装置200が対応して設けられている。上記各ダンパ303,307,311,312,313は、それぞれ図示しないリンク機構を介してスレーブ装置200のアクチュエータ208に接続している。   Each of the slave devices 200 performs drive control of one damper. That is, one slave device 200 is provided corresponding to each damper. Each of the dampers 303, 307, 311, 312, and 313 is connected to the actuator 208 of the slave device 200 via a link mechanism (not shown).

次に、図5を参照して前記マスタ装置100に記憶されている識別子リスト114について説明する。なお、図5における識別子リスト114の「説明」の欄は各識別子の意味を解説するものであり、実際にROM112に記憶される識別子リスト114は「識別子」の欄のみである。   Next, the identifier list 114 stored in the master device 100 will be described with reference to FIG. The “Description” column of the identifier list 114 in FIG. 5 explains the meaning of each identifier, and the identifier list 114 actually stored in the ROM 112 is only the “Identifier” column.

図5に示すように、各スレーブ装置200にはそれぞれ動作要求送信用の識別子とステータス要求送信用の識別子が割り当てられている。ステータス要求送信用の識別子は、動作要求送信用の識別子の次の値となっている。また、識別子リスト114は、スレーブ装置200の種類用途により所定の順序に予め定められて記憶されている。図5の例では、取入口ダンパ制御用のスレーブ装置、デフ吹出口ダンパ制御用のスレーブ装置、ベント吹出口ダンパ制御用のスレーブ装置…、となっている。また、識別子リスト114は、各スレーブ装置200で共通の特定の識別子が割り当てられている。図5の例では、識別子の登録要求送信用の識別子(0x3A)とステータス要求送信用の識別子(0x3B)である。前述したように、該識別子宛の通信電文は全てのスレーブ装置200で受信可能である。すなわち、各スレーブ装置200で共通の特定の識別子は、自身の識別子が未付与のスレーブ装置200とマスタ装置100との通信に用いられる。   As shown in FIG. 5, each slave device 200 is assigned an identifier for transmitting an operation request and an identifier for transmitting a status request. The identifier for status request transmission is the next value of the identifier for operation request transmission. Further, the identifier list 114 is stored in advance in a predetermined order depending on the type of use of the slave device 200. In the example of FIG. 5, there are a slave device for intake damper control, a slave device for differential outlet damper control, a slave device for vent outlet damper control, and so on. The identifier list 114 is assigned a specific identifier common to the slave devices 200. In the example of FIG. 5, an identifier registration request transmission identifier (0x3A) and a status request transmission identifier (0x3B). As described above, the communication message addressed to the identifier can be received by all the slave devices 200. That is, the specific identifier common to the slave devices 200 is used for communication between the slave device 200 to which the identifier is not assigned and the master device 100.

次に、図6を参照して前記スレーブ装置200に記憶されている識別子テーブル205について説明する。該識別子テーブル205は、電圧検出手段210で検出された電圧と識別子との対応関係を記述したリストである。この電圧と識別子との対応関係はバス10に接続されたスレーブ装置200の台数に依存する。後述するように電圧検出手段210による電圧検出は、バス10に全てのスレーブ装置200が接続され且つ各スレーブ装置200のリレースイッチ202がオフのときに実施される。このときマスタ装置100とグランドとの間の信号線13は、各スレーブ装置200の抵抗器201と終端用の抵抗器15が直列接続された状態となる。したがって電圧検出手段210により検出された電圧は、マスタ装置100が信号線13に印加した直流電圧を、スレーブ装置200の抵抗器201及び終端用の抵抗器15で分圧された値となる。この値は、スレーブ装置200のマスタ装置100から見た順番により異なるとともに、スレーブ装置200の台数によっても異なる。このため識別子テーブル205は、図6に示すように、スレーブ装置200の台数毎に電圧と識別子の対応関係を記述したものとなる。なお、図6の例では、マスタ装置100において信号線13に印加される電圧の変動を考慮して電圧には±5%の幅を持たせた。   Next, the identifier table 205 stored in the slave device 200 will be described with reference to FIG. The identifier table 205 is a list describing the correspondence between the voltage detected by the voltage detecting means 210 and the identifier. The correspondence between the voltage and the identifier depends on the number of slave devices 200 connected to the bus 10. As will be described later, the voltage detection by the voltage detection means 210 is performed when all the slave devices 200 are connected to the bus 10 and the relay switch 202 of each slave device 200 is off. At this time, the signal line 13 between the master device 100 and the ground is in a state in which the resistor 201 and the terminating resistor 15 of each slave device 200 are connected in series. Therefore, the voltage detected by the voltage detection unit 210 is a value obtained by dividing the DC voltage applied to the signal line 13 by the master device 100 by the resistor 201 and the terminating resistor 15 of the slave device 200. This value varies depending on the order of the slave device 200 as viewed from the master device 100, and also varies depending on the number of slave devices 200. Therefore, as shown in FIG. 6, the identifier table 205 describes the correspondence between the voltage and the identifier for each slave device 200. In the example of FIG. 6, the voltage has a width of ± 5% in consideration of the fluctuation of the voltage applied to the signal line 13 in the master device 100.

なお、前述のように各スレーブ装置200は動作要求用とステータス要求用の2つの識別子を用いるが、両者の識別子は隣接した値をとる。そこで、図6の例では各電圧に対応する識別子をそれぞれ1つのみ記述し、もう1つの識別子の記述は省略した。   As described above, each slave device 200 uses two identifiers for operation request and status request, but both identifiers take adjacent values. Therefore, in the example of FIG. 6, only one identifier corresponding to each voltage is described, and the description of the other identifier is omitted.

次に、本実施の形態に係る車載機器制御システムの組み付け処理について説明する。当該処理は、マスタ装置100及び全てのスレーブ装置200並びに終端用の抵抗器15をバス10に接続した状態で、マスタ装置100に電源が投入されることにより開始される。   Next, an assembly process of the in-vehicle device control system according to the present embodiment will be described. The process is started when the master device 100 is turned on with the master device 100 and all the slave devices 200 and the terminating resistor 15 connected to the bus 10.

まずマスタ装置100の動作について図7を参照して説明する。図7はマスタ装置の動作を説明するフローチャートである。マスタ装置100の制御回路110は、車載機器制御システムの最初の起動時(電源投入時)には、識別子設定モードとして動作する。具体的にはマスタ装置100の制御回路110は、まず所定時間信号線13をハイレベルに維持することにより直流電圧を印加する(ステップSM1)。なお、本実施の形態ではLIN規格を採用しているので該電圧値は電源電圧(バッテリ電圧)の電圧値となる。マスタ装置100の制御回路110は、各スレーブ装置200で共通であり且つ識別子の動作要求送信用の識別子(図5の例では0x3A)に対して、バス10に接続されているスレーブ装置200の台数を送出する(ステップSM2)。なお、スレーブ装置200の台数は図5に示す識別子リスト114を参照することにより取得可能である。このスレーブ装置200の台数通知により各スレーブ装置200では識別子の設定処理が完了する。次に、マスタ装置100の制御回路110は、識別子リスト114を参照して各スレーブ装置200に対して個別の識別子を用いてステータス要求を送信し、各スレーブ装置200から応答があることを確認する(ステップSM3〜6)。そして、マスタ装置100の制御回路110は、全てのスレーブ装置200からの応答を確認すると、通常モードに移行してスレーブ装置200の制御処理を開始する(ステップSM7,SM8)。一方、1つでもスレーブ装置200からの応答がなかった場合には、前記ステップSM2に処理を戻して再試行する。なお、前記ステップSM8の制御処理は従来周知の処理であり、スレーブ装置200に割り当てられた動作要求送信用の識別子及びステータス要求送信用の識別子を用いてスレーブ装置200と通信を行う。   First, the operation of the master device 100 will be described with reference to FIG. FIG. 7 is a flowchart for explaining the operation of the master device. The control circuit 110 of the master device 100 operates as an identifier setting mode when the vehicle-mounted device control system is first activated (when power is turned on). Specifically, the control circuit 110 of the master device 100 first applies a DC voltage by maintaining the signal line 13 at a high level for a predetermined time (step SM1). In this embodiment, since the LIN standard is adopted, the voltage value is the voltage value of the power supply voltage (battery voltage). The control circuit 110 of the master device 100 is common to the slave devices 200, and the number of slave devices 200 connected to the bus 10 for the identifier for transmitting the operation request for the identifier (0x3A in the example of FIG. 5). Is transmitted (step SM2). The number of slave devices 200 can be acquired by referring to the identifier list 114 shown in FIG. By this notification of the number of slave devices 200, each slave device 200 completes the identifier setting process. Next, the control circuit 110 of the master device 100 refers to the identifier list 114, transmits a status request to each slave device 200 using an individual identifier, and confirms that there is a response from each slave device 200. (Steps SM3-6). When the control circuit 110 of the master device 100 confirms responses from all the slave devices 200, the control circuit 110 shifts to the normal mode and starts control processing of the slave device 200 (steps SM7 and SM8). On the other hand, if there is no response from the slave device 200, the process returns to step SM2 and is retried. The control process in step SM8 is a conventionally known process, and communicates with the slave device 200 using the operation request transmission identifier and the status request transmission identifier assigned to the slave device 200.

次にスレーブ装置の動作について図8及び図9を参照して説明する。図8は識別子設定モードにおけるスレーブ装置の動作を説明するフローチャート、図9は通常モードにおけるスレーブ装置の動作を説明するフローチャートである。   Next, the operation of the slave device will be described with reference to FIGS. FIG. 8 is a flowchart for explaining the operation of the slave device in the identifier setting mode, and FIG. 9 is a flowchart for explaining the operation of the slave device in the normal mode.

スレーブ装置200の通信制御部204は、バス10を介してマスタ装置100から直流電源が供給されると動作を開始する。まず通信制御部204は、図8に示すように、自己識別子記憶部206に自身の識別子が既に登録されているかを判定し(ステップSS1)、既登録の場合には通常モードの待機状態に移行する。一方、未登録の場合には識別子設定モードとして動作する。該識別子設定モードでは、まず通信制御部204はリレースイッチ202をオフに制御する(ステップSS2)。これによりバス10の信号線は複数の抵抗器201及び抵抗器15が直列接続された状態となる。次に、グランドを基準とした信号線13の電位を電圧検出手段210により取得し、該電圧値を所定の記憶手段に記憶しておく(ステップSS3)。次に、通信制御部204は所定時間経過後にリレースイッチ202をオンに制御する(ステップSS4,SS5)。これにより抵抗器201は短絡されるのでバス10の信号線はLIN規格の通信が可能となる。なおリレースイッチ202をオンにするまでの所定時間は、少なくともマスタ装置100による信号線13への直流電圧印加時間より大きく設定しておく。   The communication control unit 204 of the slave device 200 starts operating when DC power is supplied from the master device 100 via the bus 10. First, as shown in FIG. 8, the communication control unit 204 determines whether or not its own identifier has already been registered in the self-identifier storage unit 206 (step SS1), and if already registered, shifts to the normal mode standby state. To do. On the other hand, when it is not registered, it operates as an identifier setting mode. In the identifier setting mode, first, the communication control unit 204 controls the relay switch 202 to be turned off (step SS2). As a result, the signal line of the bus 10 is in a state in which the plurality of resistors 201 and the resistor 15 are connected in series. Next, the potential of the signal line 13 with respect to the ground is acquired by the voltage detection unit 210, and the voltage value is stored in a predetermined storage unit (step SS3). Next, the communication control unit 204 controls the relay switch 202 to be turned on after a predetermined time has elapsed (steps SS4 and SS5). As a result, the resistor 201 is short-circuited, so that the signal line of the bus 10 can communicate according to the LIN standard. The predetermined time until the relay switch 202 is turned on is set to be longer than at least the DC voltage application time to the signal line 13 by the master device 100.

次に、通信制御部204は、マスタ装置100から各スレーブ装置200で共通であり且つ識別子の動作要求送信用の識別子宛(図5の例では0x3A)の通信電文を受信する(ステップSS6)。該通信電文にはバス10に接続したスレーブ装置200の台数が含まれる。次に、通信制御部204は、マスタ装置100から受信したスレーブ装置200の台数、前記ステップSS3で検出・記憶した電圧値に基づき、識別子テーブル205から識別子を取得し、該識別子を自己識別子記憶部206に記憶する(ステップSS7)。なお、本実施の形態では、各スレーブ装置200は自身の識別子を2つ用いるが識別子テーブル205から取得した識別子は1つである。一方、2つの識別子はそれぞれ連続した値となっているので、通信制御部204は識別子テーブル205から取得した識別子と、該識別子に連続する値を他方の識別子として自己識別子記憶部206に記憶する。以上の処理によりスレーブ装置200には自己の識別子が設定されたので識別子設定モードから通常モードの待機状態に移行する。   Next, the communication control unit 204 receives from the master device 100 a communication message that is common to each slave device 200 and is addressed to the identifier for transmitting the operation request for the identifier (0x3A in the example of FIG. 5) (step SS6). The communication message includes the number of slave devices 200 connected to the bus 10. Next, the communication control unit 204 acquires an identifier from the identifier table 205 based on the number of slave devices 200 received from the master device 100 and the voltage value detected and stored in step SS3, and the identifier is stored in the self-identifier storage unit. It memorize | stores in 206 (step SS7). In the present embodiment, each slave device 200 uses two identifiers, but the identifier acquired from the identifier table 205 is one. On the other hand, since the two identifiers have consecutive values, the communication control unit 204 stores the identifier acquired from the identifier table 205 and the value consecutive to the identifier in the self-identifier storage unit 206 as the other identifier. As a result of the above processing, the slave device 200 is set with its own identifier, so that it shifts from the identifier setting mode to the standby mode of the normal mode.

スレーブ装置200の通信制御部204は、図9に示すように、待機状態においてマスタ装置100から自身の識別子宛の通信電文を受信すると、当該通信電文が自己識別子記憶部206に記憶された自身の識別子宛の場合、それぞれの処理を行う。具体的には、通信制御部204は、動作要求送信用の識別子宛の通信電文の場合には、該動作要求をアクチュエータ制御回路207に送りアクチュエータ208を駆動制御する(ステップSS11)。アクチュエータ制御回路207は、ポテンションメータ209の検出値がマスタ装置100から受信した目標値となるようにアクチュエータ208をフィードバック制御する。他方、通信制御部204は、ステータス要求送信用の識別子宛の通信電文の場合には、アクチュエータ制御回路207がアクチュエータ208の駆動制御中の場合には「駆動中」である旨をマスタ装置100に応答し、アクチュエータ208が停止中の場合には「停止中」である旨をマスタ装置100に応答する(ステップSS21,S22,S23)。   As illustrated in FIG. 9, when the communication control unit 204 of the slave device 200 receives a communication message addressed to its own identifier from the master device 100 in the standby state, the communication message is stored in the self-identifier storage unit 206. When addressed to an identifier, the respective processing is performed. Specifically, in the case of a communication message addressed to an identifier for operation request transmission, the communication control unit 204 sends the operation request to the actuator control circuit 207 to drive and control the actuator 208 (step SS11). The actuator control circuit 207 feedback-controls the actuator 208 so that the detected value of the potentiometer 209 becomes the target value received from the master device 100. On the other hand, in the case of a communication message addressed to an identifier for status request transmission, the communication control unit 204 informs the master device 100 that the actuator control circuit 207 is “driving” when the actuator 208 is in the drive control. In response, if the actuator 208 is stopped, it responds to the master device 100 that it is “stopped” (steps SS21, S22, S23).

次に、本実施の形態に係る車載機器制御システム全体の初期動作について図10を参照して説明する。図10は車載機器制御システムの初期動作を説明するシーケンスチャートである。ここでは初めて車載機器制御システムを起動する場合について説明する。また、初期状態では、マスタ装置100及びスレーブ装置200が車載LANのバス10に接続されているものとする。   Next, the initial operation of the entire in-vehicle device control system according to the present embodiment will be described with reference to FIG. FIG. 10 is a sequence chart for explaining the initial operation of the in-vehicle device control system. Here, a case where the vehicle-mounted device control system is activated for the first time will be described. In the initial state, it is assumed that the master device 100 and the slave device 200 are connected to the bus 10 of the in-vehicle LAN.

マスタ装置100の制御回路110は、まず信号線13をオンにすることにより該信号線13に直流電圧を所定時間印可する。図10においてはこの期間を符号SA1の斜線により表すものとする。マスタ装置100の起動によりスレーブ装置200には電源線11及びグランド線12を介して電源が供給され、動作を開始する。スレーブ装置200の通信制御部204は、リレースイッチ202をオフにした状態で抵抗器201の一端側とグランドとの電圧を測定し、該電圧値を所定の記憶手段に記憶する(ステップSA2)。マスタ装置100の制御回路110は所定時間経過後に信号線13への電圧印可を停止し、一方スレーブ装置200の通信制御部204は所定時間経過後リレースイッチ202をオンにして抵抗器201を短絡させる。これによりバス10は通信可能な状態となる。   The control circuit 110 of the master apparatus 100 first applies a DC voltage to the signal line 13 for a predetermined time by turning on the signal line 13. In FIG. 10, this period is represented by a hatched line with a symbol SA1. When the master device 100 is activated, power is supplied to the slave device 200 via the power line 11 and the ground line 12, and the operation starts. The communication control unit 204 of the slave device 200 measures the voltage between one end of the resistor 201 and the ground with the relay switch 202 turned off, and stores the voltage value in a predetermined storage unit (step SA2). The control circuit 110 of the master device 100 stops applying the voltage to the signal line 13 after a predetermined time elapses, while the communication control unit 204 of the slave device 200 turns on the relay switch 202 to short-circuit the resistor 201 after the predetermined time elapses. . As a result, the bus 10 becomes communicable.

次に、マスタ装置100の制御回路110は、各スレーブ装置200で共通であり且つ動作要求送信用の識別子宛にスレーブ装置200の台数を通知する(ステップSA3)。この通知はバス10に接続された全てのスレーブ装置200で受信される。各スレーブ装置200の通信制御部204は、前記通知を受信すると、スレーブ装置200の台数・前記ステップSA2で検出した電圧値に基づき識別子テーブル205から識別子を取得し、自信の識別子を自己識別子記憶部206に記憶する(ステップSA4)。次いで、マスタ装置100の制御回路110は、各スレーブ装置200に対してステータス要求を送信する(ステップSA5)。該ステータス要求の送信は識別子リスト114に格納されている各スレーブ装置200を個々に識別する識別子を用いる。各スレーブ装置200はマスタ装置100からのステータス要求に対して応答する(ステップSA6)。マスタ装置100の制御回路110は、全てのスレーブ装置200からの応答を確認すると通常モードに移行する。   Next, the control circuit 110 of the master device 100 notifies the number of slave devices 200 to the identifier for operation request transmission that is common to the slave devices 200 (step SA3). This notification is received by all the slave devices 200 connected to the bus 10. Upon receipt of the notification, the communication control unit 204 of each slave device 200 acquires an identifier from the identifier table 205 based on the number of slave devices 200 and the voltage value detected in step SA2, and a self-identifier storage unit It memorize | stores in 206 (step SA4). Next, the control circuit 110 of the master device 100 transmits a status request to each slave device 200 (step SA5). The transmission of the status request uses an identifier for individually identifying each slave device 200 stored in the identifier list 114. Each slave device 200 responds to the status request from the master device 100 (step SA6). When the control circuit 110 of the master device 100 confirms responses from all the slave devices 200, it shifts to the normal mode.

以上の処理により車載LANのバス10にマスタ装置100及びスレーブ装置200を接続してシステムを起動させると自動的に各スレーブ装置200に識別子が設定される。なお、各スレーブ装置200に設定される識別子は抵抗器201により検出される電圧により定められ、該電圧値はスレーブ装置200がマスタ装置100から数えて何番目に接続されているかによる。一方、マスタ装置100では識別子リスト114によりスレーブ装置200に対応する識別子が予め定められている。したがって、各スレーブ装置200は識別子リスト114及び識別子テーブル205により規定される位置(マスタ装置100からの順番)でバス10に接続する必要がある。もっとも、スレーブ装置200の物理的な位置は通常は例えば空調装置本体300など組み付け先の形状により一義的に定まれるので組み付け作業性には余り影響はしない。   When the master device 100 and the slave device 200 are connected to the in-vehicle LAN bus 10 and the system is activated by the above processing, an identifier is automatically set for each slave device 200. The identifier set for each slave device 200 is determined by the voltage detected by the resistor 201, and the voltage value depends on what number the slave device 200 is connected to when counted from the master device 100. On the other hand, in the master device 100, the identifier corresponding to the slave device 200 is determined in advance by the identifier list 114. Therefore, each slave device 200 needs to be connected to the bus 10 at a position defined by the identifier list 114 and the identifier table 205 (in order from the master device 100). However, since the physical position of the slave device 200 is usually uniquely determined by the shape of the assembly destination such as the air conditioner main body 300, the assembly workability is not significantly affected.

このように本実施の形態に係る車載機器制御システムによれば、各スレーブ装置200の識別子は組み付け作業時に自動的に付与されるので、組み付け前のスレーブ装置200を汎用化することができる。   As described above, according to the in-vehicle device control system according to the present embodiment, the identifier of each slave device 200 is automatically given at the time of assembly work, so that the slave device 200 before assembly can be generalized.

以上本発明の一実施の形態について詳述したが本発明はこれに限定されるものではない。例えば上記実施の形態では、電圧検出手段210で検出した信号線13とグランド間の電圧に基づき識別子テーブル205から識別子を取得している。しかし信号線13に印可される直流電圧は変動することがある。例えば車載機器制御システムでは電源がバッテリにより供給されるため、接続されたバッテリによっては電源電圧が所定の基準電圧より低い場合がある。一方、識別子テーブル205に記憶されている電圧値は、信号線13に印可される直流電圧が所定の基準電圧であることを前提としている。このため、バス10に接続されたスレーブ装置200の台数が多い場合には、信号線13に印可される直流電圧が大幅に低下すると適切な識別子の取得ができないことが考えられる。そこで、電圧検出手段210において電源線11とグランド間の電圧を検出し、信号線13の検出電圧に補正をかけると好適である。具体的には、信号線13の検出電圧値に(所定の基準電圧値/電源線11の電圧値)を乗じて補正し、該補正値に基づき識別子テーブル205を参照すればよい。   Although one embodiment of the present invention has been described in detail above, the present invention is not limited to this. For example, in the above embodiment, the identifier is acquired from the identifier table 205 based on the voltage between the signal line 13 and the ground detected by the voltage detection unit 210. However, the DC voltage applied to the signal line 13 may fluctuate. For example, in an in-vehicle device control system, power is supplied by a battery, so that the power supply voltage may be lower than a predetermined reference voltage depending on the connected battery. On the other hand, the voltage value stored in the identifier table 205 is based on the premise that the DC voltage applied to the signal line 13 is a predetermined reference voltage. For this reason, when the number of slave devices 200 connected to the bus 10 is large, it is conceivable that an appropriate identifier cannot be acquired if the DC voltage applied to the signal line 13 is significantly reduced. Therefore, it is preferable that the voltage detection unit 210 detects the voltage between the power supply line 11 and the ground and corrects the detection voltage of the signal line 13. Specifically, the detection voltage value of the signal line 13 may be corrected by multiplying by (predetermined reference voltage value / voltage value of the power supply line 11), and the identifier table 205 may be referred to based on the correction value.

また上記実施の形態では、スレーブ装置200に電圧値と識別子との対応関係を記述した識別子テーブル205を予め記憶しておき、該識別子テーブル205を参照することにより識別子を設定していた。このような方法では電圧値に対応する識別子を任意に設定できるので設定の自由度が高いものとなる。一方、電圧値と識別子との対応関係が所定のルールで定められている場合には、該ルールにしたがって測定電圧値から識別子を算出することも可能である。例えば「マスタ装置100に近い順に識別子を0から二つずつ割り当てる」というルールが挙げられる。この場合の識別子の算出処理について図11のフローチャートを参照して説明する。   In the above-described embodiment, the identifier table 205 describing the correspondence between the voltage value and the identifier is stored in advance in the slave device 200, and the identifier is set by referring to the identifier table 205. In such a method, the identifier corresponding to the voltage value can be arbitrarily set, so that the degree of freedom of setting is high. On the other hand, when the correspondence relationship between the voltage value and the identifier is determined by a predetermined rule, it is also possible to calculate the identifier from the measured voltage value according to the rule. For example, there is a rule that “identifiers are assigned two by two in order from the closest to the master device 100”. An identifier calculation process in this case will be described with reference to the flowchart of FIG.

スレーブ装置200の通信制御部204は、バス10に接続されたスレーブ装置200で検出される理論的な電圧値をマスタ装置100から近い順に算出する。具体的に通信制御部204は、マスタ装置100からの位置を変数Nで表すとし、該変数Nを0からスレーブ台数−1まで1ずつ増加させながらループさせる(ステップSS31〜SS34)。そして通信制御部204は、スレーブ装置200で検出される理論的な電圧値の中心値を「マスタ装置100が信号線13に印可する基準電圧*(スレーブ台数−N)/(スレーブ台数+1)」により算出する(ステップSS32)。なお、「+1」は信号線13を終端する抵抗器15があるためである。通信制御部204は、電圧検出手段210で検出した電圧値が前記中心電圧値を中心とした所定範囲内(例えば±5%)にある場合には(ステップSS33)、動作要求用の識別子を変数N*2の値、ステータス要求用の識別子を変数N*2+1の値として設定・記憶する(ステップSS36)。なお、上記処理により識別子を算出できない場合には所定のエラー処理を行う(ステップSS35)。なお、前記ステップSS33では電圧検出手段210で検出した電圧値をそのまま用いたが、前述のように電源線11の検出電圧値により補正をかけると好適である。このように方法によりスレーブ装置200では識別子テーブル205保持する必要がなくなる。   The communication control unit 204 of the slave device 200 calculates a theoretical voltage value detected by the slave device 200 connected to the bus 10 in order from the master device 100. Specifically, the communication control unit 204 represents the position from the master device 100 as a variable N, and loops the variable N while increasing the variable N by 1 from 0 to the number of slaves −1 (steps SS31 to SS34). Then, the communication control unit 204 sets the center value of theoretical voltage values detected by the slave device 200 as “reference voltage applied by the master device 100 to the signal line 13 * (number of slaves−N) / (number of slaves + 1)”. (Step SS32). “+1” is because there is a resistor 15 that terminates the signal line 13. When the voltage value detected by the voltage detection unit 210 is within a predetermined range (for example, ± 5%) centered on the center voltage value (step SS33), the communication control unit 204 sets the operation request identifier as a variable. The value of N * 2 and the identifier for status request are set and stored as the value of variable N * 2 + 1 (step SS36). If the identifier cannot be calculated by the above process, a predetermined error process is performed (step SS35). In step SS33, the voltage value detected by the voltage detection unit 210 is used as it is. However, it is preferable that correction is performed by the detected voltage value of the power supply line 11 as described above. In this way, the slave device 200 does not need to hold the identifier table 205 by this method.

また、上記実施の形態では、マスタ装置100が信号線13に直流電圧を印可する方法としてハイレベルを出力するようトランシーバ101を制御することにより行っていたが、別途スイッチ手段を設けて直流電源120から直接信号線13に直流電圧を印可するようにしてもよい。   In the above embodiment, the master device 100 controls the transceiver 101 so as to output a high level as a method of applying a DC voltage to the signal line 13. Alternatively, a direct current voltage may be applied directly to the signal line 13.

また、上記実施の形態では、スレーブ装置200において抵抗器201を短絡させるスイッチ手段としてリレースイッチを用いたが、他の手段を用いてもよい。例えば、バイポーラトランジスタ・電界効果トランジスタ・ダイオードなどの半導体素子を用いてもよい。   Moreover, in the said embodiment, although the relay switch was used as a switch means which short-circuits the resistor 201 in the slave apparatus 200, you may use another means. For example, semiconductor elements such as bipolar transistors, field effect transistors, and diodes may be used.

また、上記実施の形態では、スレーブ装置200に割り当てる識別子を識別子リスト114としてマスタ装置100のROM112に記憶していたが、該識別子は制御プログラム113に埋め込む形態で記憶するようにしてもよい。   In the above embodiment, identifiers assigned to the slave devices 200 are stored in the ROM 112 of the master device 100 as the identifier list 114. However, the identifiers may be stored in a form embedded in the control program 113.

また、上記実施の形態では、各スレーブ装置200に割り当てる識別子はそれぞれ2つとしたが、スレーブ装置200の種類によっては1つ或いは3つ以上であってもよい。   In the above embodiment, two identifiers are assigned to each slave device 200, but may be one or three or more depending on the type of the slave device 200.

また、上記の実施の形態では回動運動を行うアクチュエータ205の駆動制御について例示したが他の機器であっても本発明を実施できる。   In the above-described embodiment, the drive control of the actuator 205 that performs the rotational motion is illustrated, but the present invention can be implemented even with other devices.

また、上記実施の形態では車内空調システムにおける適用例について説明したが、例えばパワーウィンドウやミラーの制御システムなど他のシステムにおいても本発明を適用できる。   Moreover, although the application example in the vehicle interior air conditioning system has been described in the above embodiment, the present invention can be applied to other systems such as a power window and a mirror control system.

10…バス、11…電源線、12…グランド線、13…信号線、100…マスタ装置、110…制御回路、112…ROM、113…制御プログラム、114…識別子リスト、200…スレーブ装置、201…抵抗器、202…リレースイッチ、204…通信制御部、205…識別子テーブル、206…自己識別子記憶部、207…アクチュエータ制御回路、208…アクチュエータ、209…ポテンションメータ、210…電圧検出手段、300…空調装置本体、301…外気取入口、302…内気取入口、303…取入口ダンパ、304…ファン、305…蒸発器、306…ヒータ、307…ヒータ用ダンパ、308…デフ吹出口、309…ベント吹出口、310…フット吹出口、311…デフ吹出口ダンパ、312…ベント吹出口ダンパ、313…フット吹出口ダンパ。   DESCRIPTION OF SYMBOLS 10 ... Bus, 11 ... Power supply line, 12 ... Ground line, 13 ... Signal line, 100 ... Master device, 110 ... Control circuit, 112 ... ROM, 113 ... Control program, 114 ... Identifier list, 200 ... Slave device, 201 ... Resistor 202 ... Relay switch 204 ... Communication control unit 205 ... Identifier table 206 ... Self-identifier storage unit 207 ... Actuator control circuit 208 ... Actuator 209 ... Potentiometer 210 ... Voltage detection means 300 ... Air conditioning apparatus main body 301 ... Outside air intake port 302 ... Inside air intake port 303 ... Intake air intake damper 304 ... Fan 305 ... Evaporator 306 ... Heater Air outlet, 310 ... Foot air outlet, 311 ... Differential air outlet damper, 312 ... Vent air outlet damper , 313 ... foot outlet damper.

Claims (7)

車両内に設置されるマスタ装置と該マスタ装置に接続された一又は複数のスレーブ装置とを備え、マスタ装置とスレーブ装置との間でシングルマスタ方式の通信を行う車載機器制御システムにおいて、
バスの一方の端部にマスタ装置を接続するとともに他方の端部をグランドに接地し、マスタ装置とグランド間のバスにスレーブ装置をディージーチェーン接続し、
スレーブ装置は、一対のバス間を電気的に短絡又は開放するスイッチ手段と、スイッチ手段に並行接続されたインピーダンス素子と、インピーダンス手段の少なくとも一端の電位を検出する手段と、通信制御手段とを備え、
スレーブ装置の通信制御手段は、識別子設定モード時にはスイッチ手段を開放した状態で前記検出手段によりインピーダンス素子の少なくとも一端の電位を検出し、該検出処理の後にはスイッチ手段を短絡させ、検出した電位に対応する識別子を自身の識別子として設定し、
マスタ装置の通信制御手段は、識別子設定モード時にはバスに所定の直流電圧を印加する
ことを特徴とする車載機器制御システム。
In a vehicle-mounted device control system that includes a master device installed in a vehicle and one or more slave devices connected to the master device, and performs single master communication between the master device and the slave device.
Connect the master device to one end of the bus and ground the other end to the ground, daisy chain the slave device to the bus between the master device and the ground,
The slave device includes switch means for electrically short-circuiting or opening a pair of buses, an impedance element connected in parallel to the switch means, means for detecting the potential of at least one end of the impedance means, and communication control means. ,
In the identifier setting mode, the communication control means of the slave device detects the potential of at least one end of the impedance element by the detection means in a state where the switch means is opened, and shorts the switch means after the detection processing to obtain the detected potential. Set the corresponding identifier as its own identifier,
The communication control means of the master device applies a predetermined DC voltage to the bus in the identifier setting mode.
スレーブ装置の通信制御手段は、検出電位と識別子との対応関係を記憶した記憶手段を備え、該記憶手段に記憶された対応関係を参照して検出電位から識別子を取得する
ことを特徴とする請求項1記載の車載機器制御システム。
The communication control means of the slave device comprises storage means for storing the correspondence relationship between the detection potential and the identifier, and acquires the identifier from the detection potential with reference to the correspondence relationship stored in the storage means. Item 1. The vehicle equipment control system according to Item 1.
スレーブ装置の記憶手段はバスに接続するスレーブ台数毎に検出電位と識別子との対応関係を記憶し、
マスタ装置の通信制御手段は、バスへの所定の直流電圧の印可を終了した後にスレーブ装置に対してバスに接続されたスレーブ装置の台数を通知し、
スレーブ装置の通信制御手段は、該記憶手段に記憶された対応関係を参照してマスタ装置から受信したスレーブ装置の台数及び検出電位から識別子を取得する
ことを特徴とする請求項2記載の車載機器制御システム。
The storage means of the slave device stores the correspondence between the detected potential and the identifier for each number of slaves connected to the bus,
The communication control means of the master device notifies the slave device of the number of slave devices connected to the bus after completing the application of the predetermined DC voltage to the bus,
The in-vehicle device according to claim 2, wherein the communication control means of the slave device acquires the identifier from the number of slave devices and the detected potential received from the master device with reference to the correspondence relationship stored in the storage means. Control system.
マスタ装置の通信制御手段は、バスへの所定の直流電圧の印可を終了した後にスレーブ装置に対してバスに接続されたスレーブ装置の台数を通知し、
スレーブ装置の通信制御手段は、マスタ装置がバスに印加する所定の直流電圧の値とマスタ装置から受信したスレーブ装置の台数とに基づき検出電位から識別子を算出する
ことを特徴とする請求項1記載の車載機器制御システム。
The communication control means of the master device notifies the slave device of the number of slave devices connected to the bus after completing the application of the predetermined DC voltage to the bus,
The communication control means of the slave device calculates the identifier from the detected potential based on a value of a predetermined DC voltage applied to the bus by the master device and the number of slave devices received from the master device. In-vehicle device control system.
マスタ装置からスレーブ装置へのスレーブ装置台数の通知は、全てのスレーブ装置で共通の識別子を用いて行われる
ことを特徴とする請求項3又は4記載の車載機器制御システム。
The in-vehicle device control system according to claim 3 or 4, wherein the notification of the number of slave devices from the master device to the slave devices is performed using an identifier common to all slave devices.
マスタ装置・スレーブ装置間の通信規格としてLIN(Local Interconnect Network)を用いた
ことを特徴とする請求項1乃至5何れか1項記載の車載機器制御システム。
The in-vehicle device control system according to any one of claims 1 to 5, wherein LIN (Local Interconnect Network) is used as a communication standard between a master device and a slave device.
車両内に設置されるマスタ装置と該マスタ装置に接続された一又は複数のスレーブ装置とを備え、マスタ装置とスレーブ装置との間でシングルマスタ方式の通信を行う車載機器制御システムにおけるスレーブ装置の識別子を設定する方法であって、
バスの一方の端部にマスタ装置を接続するとともに他方の端部をグランドに接地し、マスタ装置とグランド間のバスにスレーブ装置をディージーチェーン接続し、
スレーブ装置は、一対のバス間を電気的に短絡又は開放するスイッチ手段と、スイッチ手段に並行接続されたインピーダンス素子と、インピーダンス手段の少なくとも一端の電位を検出する手段と、通信制御手段とを備え、
スレーブ装置の識別子の設定時には、マスタ装置の通信制御手段は、識別子設定モード時にはバスに所定の直流電圧を印加し、スレーブ装置の通信制御手段は、スイッチ手段を開放した状態で前記検出手段によりインピーダンス素子の少なくとも一端の電位を検出し、該検出処理の後にはスイッチ手段を短絡させ、検出した電位に対応する識別子を自身の識別子として設定する
ことを特徴とする車載機器制御システムにおける識別子設定方法。
A slave device in an in-vehicle device control system that includes a master device installed in a vehicle and one or more slave devices connected to the master device, and performs single-master communication between the master device and the slave device. A method for setting an identifier,
Connect the master device to one end of the bus and ground the other end to the ground, daisy chain the slave device to the bus between the master device and the ground,
The slave device includes switch means for electrically short-circuiting or opening a pair of buses, an impedance element connected in parallel to the switch means, means for detecting the potential of at least one end of the impedance means, and communication control means. ,
At the time of setting the identifier of the slave device, the communication control means of the master device applies a predetermined DC voltage to the bus in the identifier setting mode, and the communication control means of the slave device is connected to the impedance by the detecting means with the switch means opened. An identifier setting method in an in-vehicle device control system, wherein the potential of at least one end of the element is detected, the switch means is short-circuited after the detection process, and an identifier corresponding to the detected potential is set as its own identifier.
JP2009040587A 2009-02-24 2009-02-24 Onboard device control system and identifier setting method in onboard device control system Pending JP2010195133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009040587A JP2010195133A (en) 2009-02-24 2009-02-24 Onboard device control system and identifier setting method in onboard device control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009040587A JP2010195133A (en) 2009-02-24 2009-02-24 Onboard device control system and identifier setting method in onboard device control system

Publications (1)

Publication Number Publication Date
JP2010195133A true JP2010195133A (en) 2010-09-09

Family

ID=42820337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009040587A Pending JP2010195133A (en) 2009-02-24 2009-02-24 Onboard device control system and identifier setting method in onboard device control system

Country Status (1)

Country Link
JP (1) JP2010195133A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012105409A1 (en) * 2011-01-31 2012-08-09 株式会社パトライト Automatic identification code setting system and method
KR20140143076A (en) * 2013-06-05 2014-12-15 삼성에스디아이 주식회사 Battery management system, and method of managing the same
EP2940593A1 (en) * 2014-04-30 2015-11-04 Samsung Electronics Co., Ltd Method and apparatus for generating slave device identifier
JP2016210269A (en) * 2015-05-07 2016-12-15 矢崎総業株式会社 Vehicle network system
JP2017087884A (en) * 2015-11-06 2017-05-25 矢崎総業株式会社 On-vehicle communication system
JP2018046413A (en) * 2016-09-14 2018-03-22 矢崎総業株式会社 Communication system
JP2018060934A (en) * 2016-10-06 2018-04-12 矢崎総業株式会社 Custom IC
DE102018207957A1 (en) 2017-05-22 2018-11-22 Yazaki Corporation CONTROL DEVICE AND CONTROL SYSTEM
US10230539B2 (en) 2016-03-08 2019-03-12 Lsis Co., Ltd. Communications device having relay
CN111083188A (en) * 2018-10-18 2020-04-28 矢崎总业株式会社 Communication system
US10915080B2 (en) 2017-10-31 2021-02-09 Silicon Works Co., Ltd. Communication method between master controller and slave controller, slave controller for the same, and battery management system using the same
US11084435B2 (en) 2015-12-22 2021-08-10 Yazaki Corporation Control device and control system
CN118004065A (en) * 2024-04-08 2024-05-10 福建万安华科电子科技有限公司 Communication data transmission monitoring system for vehicle equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06152611A (en) * 1992-11-04 1994-05-31 Oki Electric Ind Co Ltd Communication method
JP2005051507A (en) * 2003-07-29 2005-02-24 Yaskawa Electric Corp Communication system and address setup method therefor
JP2005193741A (en) * 2004-01-05 2005-07-21 Asmo Co Ltd Actuator system, air-conditioner system for vehicle, and actuator
JP2005335607A (en) * 2004-05-28 2005-12-08 Calsonic Kansei Corp In-vehicle instrument control system and master device of on-vehicle network
JP2006256547A (en) * 2005-03-18 2006-09-28 Denso Corp Electronic control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06152611A (en) * 1992-11-04 1994-05-31 Oki Electric Ind Co Ltd Communication method
JP2005051507A (en) * 2003-07-29 2005-02-24 Yaskawa Electric Corp Communication system and address setup method therefor
JP2005193741A (en) * 2004-01-05 2005-07-21 Asmo Co Ltd Actuator system, air-conditioner system for vehicle, and actuator
JP2005335607A (en) * 2004-05-28 2005-12-08 Calsonic Kansei Corp In-vehicle instrument control system and master device of on-vehicle network
JP2006256547A (en) * 2005-03-18 2006-09-28 Denso Corp Electronic control device

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012160891A (en) * 2011-01-31 2012-08-23 Patoraito:Kk Identification code automatic setting system and method
WO2012105409A1 (en) * 2011-01-31 2012-08-09 株式会社パトライト Automatic identification code setting system and method
KR102210890B1 (en) 2013-06-05 2021-02-02 삼성에스디아이 주식회사 Battery management system, and method of managing the same
KR20140143076A (en) * 2013-06-05 2014-12-15 삼성에스디아이 주식회사 Battery management system, and method of managing the same
EP2940593A1 (en) * 2014-04-30 2015-11-04 Samsung Electronics Co., Ltd Method and apparatus for generating slave device identifier
JP2016210269A (en) * 2015-05-07 2016-12-15 矢崎総業株式会社 Vehicle network system
JP2017087884A (en) * 2015-11-06 2017-05-25 矢崎総業株式会社 On-vehicle communication system
US11084435B2 (en) 2015-12-22 2021-08-10 Yazaki Corporation Control device and control system
US10230539B2 (en) 2016-03-08 2019-03-12 Lsis Co., Ltd. Communications device having relay
JP2018046413A (en) * 2016-09-14 2018-03-22 矢崎総業株式会社 Communication system
JP2018060934A (en) * 2016-10-06 2018-04-12 矢崎総業株式会社 Custom IC
US10773661B2 (en) 2017-05-22 2020-09-15 Yazaki Corporation Control device and control system
DE102018207957A1 (en) 2017-05-22 2018-11-22 Yazaki Corporation CONTROL DEVICE AND CONTROL SYSTEM
DE102018207957B4 (en) 2017-05-22 2022-07-14 Yazaki Corporation CONTROL EQUIPMENT AND CONTROL SYSTEM
US10915080B2 (en) 2017-10-31 2021-02-09 Silicon Works Co., Ltd. Communication method between master controller and slave controller, slave controller for the same, and battery management system using the same
US11474491B2 (en) 2017-10-31 2022-10-18 Silicon Works Co., Ltd. Communication method between master controller and slave controller, slave controller for the same, and battery management system using the same
CN111083188A (en) * 2018-10-18 2020-04-28 矢崎总业株式会社 Communication system
CN111083188B (en) * 2018-10-18 2022-03-18 矢崎总业株式会社 Communication system
CN118004065A (en) * 2024-04-08 2024-05-10 福建万安华科电子科技有限公司 Communication data transmission monitoring system for vehicle equipment

Similar Documents

Publication Publication Date Title
JP2010195133A (en) Onboard device control system and identifier setting method in onboard device control system
US11162702B2 (en) Method of associating a diagnostic module to HVAC system components
EP1600315B1 (en) In-vehicle network control system
US20030052180A1 (en) Method and apparatus for establishing addresses for plural actuators connected to a bus
JP2010184575A (en) In-vehicle instrument control system
US10647176B2 (en) Actuator control system
KR101846722B1 (en) Cooling system for vehicle and control method thereof
JP2010268624A (en) Servo motor control circuit
US20180083798A1 (en) Automatic addressing of networked nodes
US9960727B2 (en) Stall diagnosis apparatus for motor of air conditioning actuator
KR102311505B1 (en) Method and mobile terminal for controlling at least one air conditioning device
JP2015081725A (en) Air conditioner
JP6679568B2 (en) Bus system, air conditioner, and method for controlling bus system
JP2010215163A (en) On-vehicle equipment control system, and identifier setting method in the same system
KR102493150B1 (en) Air-conditioner and the controlling method for the same
RU2729846C1 (en) Air conditioning system for a vehicle, a gate, a method of setting an air conditioning system parameter for a vehicle and a machine-readable data medium for realizing the method
JP2000088321A (en) Transmitter of air conditioner
CN109506324A (en) Air-conditioner set control method and air-conditioner set
CN110398049B (en) Air conditioner control method, air conditioner and computer readable storage medium
JP2011011710A (en) On-vehicle equipment control system
JP2007137342A (en) Air conditioner for vehicle
JP3018929B2 (en) Air conditioner transmission equipment
JP2010179697A (en) On-vehicle equipment control system
EP1895379B1 (en) Improved control panel
JP7461821B2 (en) MOTOR DRIVE CONTROL DEVICE, ACTUATOR, AND COMMUNICATION SYSTEM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100827

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120619

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121031