JP2017092638A - Id assignment correction method and onboard communication system - Google Patents

Id assignment correction method and onboard communication system Download PDF

Info

Publication number
JP2017092638A
JP2017092638A JP2015218425A JP2015218425A JP2017092638A JP 2017092638 A JP2017092638 A JP 2017092638A JP 2015218425 A JP2015218425 A JP 2015218425A JP 2015218425 A JP2015218425 A JP 2015218425A JP 2017092638 A JP2017092638 A JP 2017092638A
Authority
JP
Japan
Prior art keywords
control unit
slave control
vehicle
slave
assignment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015218425A
Other languages
Japanese (ja)
Other versions
JP6568454B2 (en
Inventor
牧 陽一
Yoichi Maki
陽一 牧
元辰 松永
Genshin Matsunaga
元辰 松永
智則 鈴木
Tomonori Suzuki
鈴木  智則
啓佑 土井
Keisuke Doi
啓佑 土井
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.)
Toyota Motor Corp
Yazaki Corp
Original Assignee
Toyota Motor Corp
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 Toyota Motor Corp, Yazaki Corp filed Critical Toyota Motor Corp
Priority to JP2015218425A priority Critical patent/JP6568454B2/en
Publication of JP2017092638A publication Critical patent/JP2017092638A/en
Application granted granted Critical
Publication of JP6568454B2 publication Critical patent/JP6568454B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To assign a proper ID by a slave control part even when an attachment position of the slave control part is changed due to influence of a difference in a car model or the like, and a resistance value is changed.SOLUTION: A master control part 20 recognizes equipment table 23 showing a kinds of equipment connected to a slave control part 30 in each car model, and automatically correct an ID assignment of the slave control part on the basis of an alignment order of the slave control part along with a flow of a wiring harness in a target car model. When the alignment order of equipment is not changed, the ID is assigned in order from an upstream of the wiring harness. When the alignment order of equipment is changed, the ID is assigned in order from the upstream in accordance with the alignment order of the equipment corresponding to the car model. Even when the car model mounting the system is changed, a common ID is assigned to each equipment. Therefore, a construction and an operation of the master control part 20 can be used in common. Thus, a cost is reduced.SELECTED DRAWING: Figure 2

Description

本発明は、車両に搭載される通信システムにおいて、スレーブ制御部のIDの割り当てを修正するためのID割り当て修正方法および車載通信システムに関する。   The present invention relates to an ID allocation correction method and an in-vehicle communication system for correcting ID allocation of a slave control unit in a communication system mounted on a vehicle.

車両においては、制御すべき多数の負荷、すなわちランプ、ヒータ、電気モータ等が様々な部位に分散した状態で配置されている。これらの負荷を制御するために、電子制御ユニット(ECU)などの制御部も多数設けられている。そして多数の制御部が互いに通信できるように、これらは車両上の通信ネットワークを介して接続されている。実際には、車両上の各部を接続するワイヤハーネスに設けられた通信線を利用して通信ネットワークを構成する。   In a vehicle, a large number of loads to be controlled, that is, lamps, heaters, electric motors, and the like, are arranged in various states. In order to control these loads, a large number of control units such as an electronic control unit (ECU) are also provided. And these are connected via the communication network on a vehicle so that many control parts can mutually communicate. In practice, a communication network is configured using communication lines provided in a wire harness that connects each part on the vehicle.

このように通信ネットワークで互いに接続された多数の制御部により通信システムを構成する場合には、特許文献1に示されているように、システム全体を管理するためのマスタ制御部と、その配下に接続される多数のスレーブ制御部とを設けるのが一般的である。また、このような通信システムにおいては、各々の制御部がネットワーク上で複数の通信相手を区別して通信できるように、それぞれの制御部に固有のIDを事前に割り当てる必要がある。   When a communication system is configured by a large number of control units connected to each other through a communication network in this way, as shown in Patent Document 1, a master control unit for managing the entire system and its subordinates are provided. In general, a large number of slave control units to be connected are provided. Further, in such a communication system, it is necessary to assign a unique ID to each control unit in advance so that each control unit can distinguish and communicate with a plurality of communication partners on the network.

特許文献1においては、各々のスレーブ制御部を接続するコネクタ内に、2つの抵抗器を直列に接続して構成した分圧回路を配置してあり、この分圧回路の分圧比により接続先のスレーブ制御部に割り当てるIDが決定される。   In Patent Document 1, a voltage dividing circuit configured by connecting two resistors in series is arranged in a connector connecting each slave control unit, and the connection destination is determined by the voltage dividing ratio of this voltage dividing circuit. An ID to be assigned to the slave control unit is determined.

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

ところで、車両においては、車種の違い、グレードの違い、仕向地の違い、ユーザの希望する各種オプション装備の有無等に応じて、システムに接続される車載電装機器(例えばランプ、電気モータなど)の数や種類が変化する。したがって、上記のような車両の通信システムにおいては、実際のシステムの構成に合わせて、各スレーブ制御部のIDを適切に定める必要がある。   By the way, in a vehicle, depending on the type of vehicle, the difference in grade, the difference in destination, the presence of various optional equipment desired by the user, etc., the in-vehicle electrical equipment (for example, lamp, electric motor, etc.) connected to the system Numbers and types vary. Therefore, in the vehicle communication system as described above, it is necessary to appropriately determine the ID of each slave control unit in accordance with the actual system configuration.

そのため、特許文献1の技術を採用する場合には、予め固有のIDが割り当てられた多種類の車載コネクタを事前に用意しておき、最初にネットワークを構築する場合や、構築したネットワークに新たな機能の追加を行う場合にコネクタの種類を変更する必要があった。したがって、各車載コネクタ内の基板の種類数や品番が増えてしまうという問題があり、部品の交換作業も必要になる。   Therefore, when adopting the technique of Patent Document 1, a variety of in-vehicle connectors to which unique IDs are assigned in advance are prepared in advance, and when a network is constructed for the first time or a new network is created. It was necessary to change the connector type when adding functions. Therefore, there is a problem that the number of types and product numbers of the boards in each in-vehicle connector increases, and parts replacement work is also required.

そこで、抵抗体により構成される特別な電線(ID割り当て用電線)をワイヤハーネスに組み込み、マスタ制御部からスレーブ制御部までの前記ID割り当て用電線の長さにより定まる抵抗値を、IDを決定する分圧回路の一方の抵抗器として代用することが考えられる。このようにすると、各コネクタに組み込む分圧回路の抵抗器の抵抗値を共通化することができ、部品数や品番数の削減が可能になる。また、ワイヤハーネス上の取り付け位置が異なる複数のスレーブ制御部に対して、それぞれ異なるIDを自動的に割り当てることが可能になる。   Therefore, a special electric wire (ID assigning wire) constituted by a resistor is incorporated in the wire harness, and the resistance value determined by the length of the ID assigning wire from the master control unit to the slave control unit is determined as the ID. It is conceivable to substitute one resistor of the voltage dividing circuit. In this way, the resistance values of the resistors of the voltage dividing circuit incorporated in each connector can be made common, and the number of parts and the number of product numbers can be reduced. Further, different IDs can be automatically assigned to a plurality of slave control units having different attachment positions on the wire harness.

しかしながら、上記のID割り当て用電線を用いる場合には、各スレーブ制御部のワイヤハーネス上の取り付け位置が変化すると、その取り付け位置からマスタ制御部までのID割り当て用電線の長さが変わり、前記分圧回路の分圧比が変化して、割り当てられるIDも変化してしまう。例えば、大型車と小型車の違いのような車種の違いにより、スレーブ制御部を取り付けるワイヤハーネス上の位置が変化する。また、ワイヤハーネス上にスレーブ制御部を取り付ける際の製造公差により、取り付け位置が変化する。   However, in the case of using the above-described ID assignment wires, if the attachment position of each slave control unit on the wire harness changes, the length of the ID assignment wire from the attachment position to the master control unit changes, and The voltage dividing ratio of the pressure circuit changes, and the assigned ID also changes. For example, the position on the wire harness to which the slave control unit is attached changes due to the difference in vehicle type such as the difference between a large vehicle and a small vehicle. Also, the mounting position changes due to manufacturing tolerances when mounting the slave control unit on the wire harness.

上記のような取り付け位置の変化により各スレーブ制御部に割り当てたIDが変化すると、マスタ側の制御を変更しなければならない。つまり、車種の違いや個体差により制御対象のIDが変わる可能性があるので、適切に制御できるようにマスタ側のプログラムや制御用のパラメータを変更しなければならない。この変更をしない場合には、例えばマスタ制御部がホーンを鳴動させようとした時に、実際にはフォグランプを点灯させる動作が行われてしまうような状況になる。したがって、車種の違いに対してマスタ制御部を共通化することができず、個体差の調整も必要になる。   If the ID assigned to each slave control unit changes due to the change in the mounting position as described above, the control on the master side must be changed. In other words, the ID of the control target may change depending on the vehicle type or individual difference. Therefore, the master-side program and control parameters must be changed so that the control can be performed appropriately. If this change is not made, for example, when the master control unit tries to ring the horn, an operation for turning on the fog lamp is actually performed. Therefore, the master control unit cannot be shared with respect to the difference in the vehicle type, and adjustment of individual differences is also necessary.

本発明は、上述した事情に鑑みてなされたものであり、その目的は、スレーブ制御部の取り付け位置の変化に対して、各スレーブ制御部のIDを適切に割り当てることが可能なID割り当て修正方法および車載通信システムを提供することにある。   The present invention has been made in view of the above-described circumstances, and an object thereof is an ID assignment correction method capable of appropriately assigning the ID of each slave control unit to a change in the attachment position of the slave control unit. And providing an in-vehicle communication system.

前述した目的を達成するために、本発明に係るID割り当て修正方法は、下記(1)〜(5)を特徴としている。
(1) マスタ制御部と複数のスレーブ制御部とがワイヤハーネスを介して互いに通信可能な状態で接続され、抵抗体で構成されるID割り当て用電線が前記ワイヤハーネスに含まれ、前記複数のスレーブ制御部の各々に内蔵された基準抵抗器の抵抗値と、前記ID割り当て用電線の抵抗値とに応じて前記各スレーブ制御部のIDが決定される車両上の通信システムにおいて、前記各スレーブ制御部のIDの割り当てを修正するためのID割り当て修正方法であって、
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順に基づき、前記各スレーブ制御部のIDの割り当てを修正する、
ことを特徴とする。
(2) 上記(1)の構成のID割り当て修正方法において、
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順と、前記各スレーブ制御部に割り当てられたID値の順序とに基づき、前記各スレーブ制御部のIDの割り当てを修正する、
ことを特徴とする。
(3) 上記(1)の構成のID割り当て修正方法において、
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報、および車種毎の前記ワイヤハーネスの流れに沿った前記機器の並び順を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記機器の並び順と、前記各スレーブ制御部に割り当てられたID値の順序とに基づき、前記各スレーブ制御部のIDの割り当てを修正する、
ことを特徴とする。
(4) 上記(3)の構成のID割り当て修正方法において、
前記マスタ制御部は、車種毎の前記ワイヤハーネスの流れに沿った前記機器の並び順と、前記各機器に割り当てるIDの基準値とが事前に登録された機器管理テーブルを利用する、
ことを特徴とする。
(5) 上記(1)の構成のID割り当て修正方法において、
前記マスタ制御部は、未登録の新たな機器が前記通信システムに追加される場合には、それまでに割り当てられていない新たなIDを、追加される前記機器に割り当てる、
ことを特徴とする。
In order to achieve the above-described object, the ID allocation correction method according to the present invention is characterized by the following (1) to (5).
(1) The master control unit and the plurality of slave control units are connected to each other via a wire harness so as to communicate with each other, and an ID assignment electric wire configured by a resistor is included in the wire harness, and the plurality of slaves In the communication system on the vehicle in which the ID of each slave control unit is determined according to the resistance value of the reference resistor built in each of the control units and the resistance value of the ID assigning wire, each slave control An ID allocation correction method for correcting the allocation of part IDs,
The master control unit grasps information indicating the type of device connected to each slave control unit for each vehicle type, and based on the order of the slave control units along the flow of the wire harness in the target vehicle type, Correct the ID assignment of each slave controller,
It is characterized by that.
(2) In the ID allocation correction method having the configuration of (1) above,
The master control unit grasps information representing the type of equipment connected to each slave control unit for each vehicle type, and the order of the slave control units along the flow of the wire harness in the target vehicle type, Based on the order of the ID values assigned to each slave control unit, modify the ID assignment of each slave control unit;
It is characterized by that.
(3) In the ID assignment correction method having the configuration of (1) above,
The master control unit grasps information indicating the type of device connected to each slave control unit for each vehicle type, and the arrangement order of the devices along the flow of the wire harness for each vehicle type, and Correcting the assignment of the IDs of the slave control units based on the arrangement order of the devices along the flow of the wire harness and the order of the ID values assigned to the slave control units;
It is characterized by that.
(4) In the ID allocation correction method having the configuration of (3) above,
The master control unit uses a device management table in which an arrangement order of the devices along the flow of the wire harness for each vehicle type and a reference value of an ID assigned to each device is registered in advance.
It is characterized by that.
(5) In the ID assignment correction method having the configuration of (1) above,
When a new unregistered device is added to the communication system, the master control unit assigns a new ID that has not been assigned to the device to be added,
It is characterized by that.

上記(1)の構成のID割り当て修正方法によれば、前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握しているので、通信システムを搭載する車両の車種が変化した場合であっても、同じ種類の機器を制御するスレーブ制御部に対して、共通のIDを割り当てるように、IDを修正することができる。これにより、複数の車種に搭載する通信システムについてマスタ制御部の制御を共通化することができ、プログラムや制御パラメータを変更する必要もなくなり、製造コストや調整作業に伴うコストを低減できる。
上記(2)の構成のID割り当て修正方法によれば、通信システムを搭載する車両の車種が変化した場合であっても、同じ種類の機器を制御するスレーブ制御部に対して、共通のIDを割り当てるように、IDを修正することができる。すなわち、ワイヤハーネスに接続する様々な機器の並び順が、全ての車種について共通である状況を想定した場合には、各スレーブ制御部の取り付け位置の違いによりID値が変化したとしても、各機器に最初に付与されるID値の変化順序は同じである。したがって、前記各スレーブ制御部に割り当てられたID値の順序に基づいて、車種によりIDの違いが生じないように、前記各スレーブ制御部のIDの割り当てを修正することができる。
上記(3)の構成のID割り当て修正方法によれば、通信システムを搭載する車両の車種が変化した場合であっても、同じ種類の機器を制御するスレーブ制御部に対して、共通のIDを割り当てるように、IDを修正することができる。すなわち、車種毎の前記各スレーブ制御部に接続される機器の種類、および車種毎の前記ワイヤハーネスの流れに沿った前記機器の並び順が既知の場合には、各スレーブ制御部の取り付け位置の違いによりID値が変化したとしても、既知の情報と、前記各スレーブ制御部に割り当てられたID値の順序とに基づいて、車種によりIDの違いが生じないように、前記各スレーブ制御部のIDの割り当てを修正することができる。
上記(4)の構成のID割り当て修正方法によれば、前記マスタ制御部が、事前に登録された情報を前記機器管理テーブルから取り出すことにより、前記IDの修正に必要な情報を容易に取得できる。
上記(5)の構成のID割り当て修正方法によれば、未登録の新たな機器をシステムに追加することができる。しかも、車種の違いによりIDが変化するのを避けることができるため、前記マスタ制御部の制御を共通化できる。
According to the ID allocation correction method having the configuration of (1) above, the master control unit grasps the information indicating the type of device connected to each slave control unit for each vehicle type, so the communication system is installed. Even when the vehicle type of the vehicle to be changed is changed, the ID can be corrected so that a common ID is assigned to the slave control unit that controls the same type of device. As a result, the control of the master control unit can be made common for communication systems mounted on a plurality of vehicle types, and it is not necessary to change programs and control parameters, thereby reducing manufacturing costs and costs associated with adjustment work.
According to the ID allocation correction method having the configuration (2) above, even when the vehicle type of the vehicle on which the communication system is mounted is changed, a common ID is assigned to the slave control unit that controls the same type of device. The ID can be modified to assign. In other words, assuming that the arrangement order of various devices connected to the wire harness is common to all vehicle types, even if the ID value changes due to a difference in the attachment position of each slave control unit, each device The change order of the ID values that are initially assigned to the same is the same. Therefore, based on the order of the ID values assigned to each slave control unit, the ID assignment of each slave control unit can be corrected so that the difference in ID does not occur depending on the vehicle type.
According to the ID allocation correction method having the configuration of (3) above, even when the vehicle type of the vehicle on which the communication system is mounted changes, a common ID is assigned to the slave control unit that controls the same type of device. The ID can be modified to assign. That is, when the type of device connected to each slave control unit for each vehicle type and the arrangement order of the devices along the flow of the wire harness for each vehicle type are known, the attachment position of each slave control unit is determined. Even if the ID value changes due to the difference, based on the known information and the order of the ID values assigned to the slave control units, the slave control unit ID assignments can be modified.
According to the ID allocation correction method having the configuration (4), the master control unit can easily acquire information necessary for correcting the ID by taking out information registered in advance from the device management table. .
According to the ID allocation correcting method having the configuration (5), a new unregistered device can be added to the system. And since it can avoid changing ID by the difference in a vehicle model, control of the said master control part can be made shared.

前述した目的を達成するために、本発明に係る車載通信システムは、下記(6)を特徴としている。
(6) マスタ制御部と複数のスレーブ制御部とがワイヤハーネスを介して互いに通信可能な状態で接続され、抵抗体で構成されるID割り当て用電線が前記ワイヤハーネスに含まれ、前記複数のスレーブ制御部の各々に内蔵された基準抵抗器の抵抗値と、前記ID割り当て用電線の抵抗値とに応じて前記各スレーブ制御部のIDが決定される車載通信システムであって、
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順に基づき、前記各スレーブ制御部のIDの割り当てを修正する修正制御部を備える、ことを特徴とする。
In order to achieve the above-described object, the in-vehicle communication system according to the present invention is characterized by the following (6).
(6) The master control unit and the plurality of slave control units are connected in a state where they can communicate with each other via a wire harness, and an ID assignment electric wire configured by a resistor is included in the wire harness, and the plurality of slaves An in-vehicle communication system in which an ID of each slave control unit is determined according to a resistance value of a reference resistor built in each of the control units and a resistance value of the ID assigning wire,
The master control unit grasps information indicating the type of device connected to each slave control unit for each vehicle type, and based on the order of the slave control units along the flow of the wire harness in the target vehicle type, A correction control unit that corrects the ID assignment of each slave control unit is provided.

上記(6)の構成の車載通信システムによれば、前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握しているので、通信システムを搭載する車両の車種が変化した場合であっても、同じ種類の機器を制御するスレーブ制御部に対して、共通のIDを割り当てるように、IDを修正することができる。   According to the in-vehicle communication system having the configuration of (6) above, the master control unit grasps information indicating the type of device connected to each slave control unit for each vehicle type, so the communication system is mounted. Even when the vehicle type changes, the ID can be corrected so that a common ID is assigned to the slave control unit that controls the same type of device.

本発明のID割り当て修正方法によれば、スレーブ制御部の取り付け位置の変化に対して、各スレーブ制御部のIDを適切に割り当てることが可能である。これにより、複数の車種に搭載する通信システムについてマスタ制御部の制御を共通化することができ、プログラムや制御パラメータを変更する必要もなくなり、製造コストや調整作業に伴うコストを低減できる。   According to the ID assignment correction method of the present invention, it is possible to appropriately assign the ID of each slave control unit to a change in the attachment position of the slave control unit. As a result, the control of the master control unit can be made common for communication systems mounted on a plurality of vehicle types, and it is not necessary to change programs and control parameters, thereby reducing manufacturing costs and costs associated with adjustment work.

以上、本発明について簡潔に説明した。更に、以下に説明される発明を実施するための形態(以下、「実施形態」という。)を添付の図面を参照して通読することにより、本発明の詳細は更に明確化されるであろう。   The present invention has been briefly described above. Further, the details of the present invention will be further clarified by reading through a mode for carrying out the invention described below (hereinafter referred to as “embodiment”) with reference to the accompanying drawings. .

図1は、本発明の実施形態における車載通信システムの構成の概要を示すブロック図である。FIG. 1 is a block diagram showing an outline of a configuration of an in-vehicle communication system according to an embodiment of the present invention. 図2は、本発明の実施形態における車載通信システムの一部分を詳細に示すブロック図である。FIG. 2 is a block diagram showing in detail a part of the in-vehicle communication system in the embodiment of the present invention. 図3(A)および図3(B)は、車種の異なる車両にそれぞれ搭載される車載通信システムの構成例を示すブロック図である。FIG. 3A and FIG. 3B are block diagrams illustrating a configuration example of an in-vehicle communication system mounted on vehicles of different vehicle types. 図4は、マスタ制御部が利用可能な機器テーブルの構成例を示す模式図である。FIG. 4 is a schematic diagram illustrating a configuration example of a device table that can be used by the master control unit. 図5は、マスタ制御部が各スレーブ制御部のIDを修正するための制御(1)を示すフローチャートである。FIG. 5 is a flowchart showing the control (1) for the master control unit to correct the ID of each slave control unit. 図6(A)、図6(B)、および図6(C)は、各スレーブに接続される機器の並び順が車種により変化しない場合を想定した各位置およびID割り当て状態を表すブロック図であり、図6(A)は、A車種に搭載するシステムのID割り当てを示し、図6(B)は、B車種に搭載するシステムの修正前のID割り当てを示し、図6(C)は、B車種に搭載するシステムの修正後のID割り当てを示す。6 (A), 6 (B), and 6 (C) are block diagrams showing positions and ID assignment states assuming that the arrangement order of devices connected to each slave does not change depending on the vehicle type. Yes, FIG. 6 (A) shows the ID assignment of the system mounted on the A model, FIG. 6 (B) shows the ID assignment before correction of the system mounted on the B model, and FIG. The ID assignment after the correction of the system mounted on the B model is shown. 図7(A)、図7(B)、および図7(C)は、各スレーブに接続される機器の並び順が車種により変化する場合を想定した各位置およびID割り当て状態を表すブロック図であり、図7(A)は、A車種に搭載するシステムのID割り当てを示し、図7(B)は、B車種に搭載するシステムの修正前のID割り当てを示し、図7(C)は、B車種に搭載するシステムの修正後のID割り当てを示す。FIG. 7A, FIG. 7B, and FIG. 7C are block diagrams showing positions and ID assignment states assuming that the arrangement order of devices connected to each slave changes depending on the vehicle type. Yes, FIG. 7 (A) shows the ID assignment of the system mounted on the A model, FIG. 7 (B) shows the ID assignment before correction of the system mounted on the B model, and FIG. The ID assignment after the correction of the system mounted on the B model is shown. 図8は、各スレーブに接続される機器の並び順が車種により変化する場合に使用する機器テーブルの構成例を示す模式図である。FIG. 8 is a schematic diagram showing a configuration example of a device table used when the arrangement order of devices connected to each slave changes depending on the vehicle type. 図9は、マスタ制御部が各スレーブ制御部のIDを修正するための制御(2)を示すフローチャートである。FIG. 9 is a flowchart showing the control (2) for the master control unit to correct the ID of each slave control unit. 図10(A)および図10(B)は、システムに未登録の機器を追加する場合を想定した各位置およびID割り当て状態を表すブロック図であり、図10(A)は機器追加前かつ修正前のIDの状態を表し、図10(B)は機器追加後に修正されたIDの割り当て状態を表す。FIG. 10A and FIG. 10B are block diagrams showing the positions and ID assignment states assuming the case where an unregistered device is added to the system. FIG. The previous ID state is shown, and FIG. 10B shows the ID assignment state corrected after the device is added. 図11は、A車からB車に変化する場合の変化前後の各位置およびID割り当て状態を表すブロック図である。FIG. 11 is a block diagram showing the positions before and after the change and the ID assignment state when changing from the A car to the B car.

本発明のID割り当て修正方法および車載通信システムに関する具体的な実施の形態について、各図を参照しながら以下に説明する。   Specific embodiments of the ID allocation correction method and the in-vehicle communication system according to the present invention will be described below with reference to the drawings.

<システムの概要の説明>
本発明の実施形態における車載通信システムの構成の概要を図1に示す。また、この車載通信システムの一部分の詳細な構成例を図2に示す。
<Description of system overview>
An outline of the configuration of the in-vehicle communication system in the embodiment of the present invention is shown in FIG. A detailed configuration example of a part of the in-vehicle communication system is shown in FIG.

図1に示した車載通信システム100は、オプション装備を含む様々な種類の電装品を車両に搭載する際に、電源電力の供給を行ったり、負荷の通電のオンオフ等を制御する制御信号を伝送するための電気接続を実現するための構成を含んでいる。   The in-vehicle communication system 100 shown in FIG. 1 transmits a control signal for supplying power or controlling turning on / off of a load when various types of electrical components including optional equipment are mounted on a vehicle. The structure for realizing the electrical connection for doing is included.

図1に示した例では、補機40(1)、40(2)、及び40(3)として、3つの電装品を接続する場合を想定しているが、実際に接続される電装品の数、種類、接続位置などについては、このシステムを搭載する車両の仕様、すなわち車種の違い、仕向地の違い、グレードの違いなどにより変化する。補機40(1)、40(2)、及び40(3)の代表例としては、エアコン、ヘッドランプ等の照明装置、パワーウインドゥ装置、ドアロック装置、パワースライドドア装置、ドアクローザー装置、ドアミラー装置、サンシェード装置などがある。   In the example shown in FIG. 1, it is assumed that three electrical components are connected as auxiliary machines 40 (1), 40 (2), and 40 (3). The number, type, connection position, and the like vary depending on the specifications of the vehicle on which the system is installed, that is, the difference in the vehicle type, the destination, the grade, and the like. Representative examples of the auxiliary machines 40 (1), 40 (2), and 40 (3) include lighting devices such as air conditioners and headlamps, power window devices, door lock devices, power slide door devices, door closer devices, and door mirrors. Devices, sunshade devices, etc.

上記のような補機は、例えば電気モータ、ランプ、リレーのような電気的に駆動可能な負荷を内蔵しているので、車両側から電源電力を供給すると共に、通電のオンオフ等を外部から制御する必要がある。   The auxiliary machine as described above incorporates an electrically drivable load such as an electric motor, a lamp, and a relay, for example, so that it supplies power from the vehicle side and controls on / off of energization from the outside. There is a need to.

また、上記のような補機は、例えば車種の違いに応じて搭載の有無が決まったり、ユーザの選択可能なオプション装備として用意される場合がある。したがって、図1に示した補機40(1)、40(2)、及び40(3)の各々は、実際には搭載されない場合もあるし、種類の異なる補機が必要に応じて接続される場合もある。   In addition, the above-mentioned auxiliary machine may be provided as optional equipment that can be selected by the user, for example, depending on the type of vehicle. Therefore, each of the auxiliary machines 40 (1), 40 (2), and 40 (3) shown in FIG. 1 may not actually be mounted, and different types of auxiliary machines may be connected as necessary. There is also a case.

そこで、図1の車載通信システム100においては、各補機40(1)、40(2)、及び40(3)を、ワイヤハーネスW/Hの任意の箇所に後付けで接続できるように構成してある。実際には、ワイヤハーネスW/Hにスレーブ制御部30(1)を接続し、このスレーブ制御部30(1)の配下に補機40(1)を接続してある。また、ワイヤハーネスW/Hの別の箇所にスレーブ制御部30(2)を接続し、このスレーブ制御部30(2)の配下に補機40(2)を接続してある。更に、ワイヤハーネスW/Hの別の箇所にスレーブ制御部30(3)を接続し、このスレーブ制御部30(3)の配下に補機40(3)を接続してある。各スレーブ制御部30は、ワイヤハーネス端部のコネクタに内蔵された制御用の電子回路である。   Therefore, the in-vehicle communication system 100 of FIG. 1 is configured such that each auxiliary machine 40 (1), 40 (2), and 40 (3) can be retrofitted to any part of the wire harness W / H. It is. Actually, the slave control unit 30 (1) is connected to the wire harness W / H, and the auxiliary machine 40 (1) is connected to the slave control unit 30 (1). Moreover, the slave control part 30 (2) is connected to another location of the wire harness W / H, and the auxiliary machine 40 (2) is connected under the slave control part 30 (2). Furthermore, the slave control unit 30 (3) is connected to another part of the wire harness W / H, and the auxiliary device 40 (3) is connected to the slave control unit 30 (3). Each slave control unit 30 is an electronic circuit for control built in the connector at the end of the wire harness.

したがって、接続対象の補機毎に幹線から分岐した特別なサブハーネスを用意しておかなくても各補機40をワイヤハーネスW/Hに直接的に接続できるので、ワイヤハーネスの構成を簡素化することができる。また、補機を接続しない場合に、付け捨てになる部品(サブハーネス等)が増えることもない。   Therefore, each auxiliary machine 40 can be directly connected to the wire harness W / H without preparing a special sub-harness branched from the main line for each auxiliary machine to be connected, thus simplifying the configuration of the wire harness. can do. Further, when the auxiliary machine is not connected, there is no increase in the number of parts (sub-harness, etc.) that are discarded.

図1に示した車載通信システム100の例では、接続に用いるワイヤハーネスW/Hは、電源線W1、通信線W2、及びID割り当て用電線W3の3本の電線で構成されている。なお、アース線をワイヤハーネスW/Hに含める場合もあるが、アース接続については、各Eコネクタの近傍や、各補機の近傍で車体アースと接続することが可能であるため、必ずしもワイヤハーネスW/Hにアース線を含める必要はない。   In the example of the in-vehicle communication system 100 shown in FIG. 1, the wire harness W / H used for connection is composed of three electric wires: a power line W1, a communication line W2, and an ID assignment electric wire W3. In addition, although a ground wire may be included in the wire harness W / H, since the ground connection can be connected to the vehicle body ground in the vicinity of each E connector or in the vicinity of each auxiliary machine, the wire harness is not necessarily provided. It is not necessary to include a ground wire in W / H.

ワイヤハーネスW/Hの電源線W1には、車両上の主電源であるバッテリー等の出力から、ジャンクションボックス10の内部で分配された1つの系統の電源電力、例えば+12Vの直流電圧が供給される。   The power supply line W1 of the wire harness W / H is supplied with power supply power of one system distributed within the junction box 10, for example, a DC voltage of +12 V, from the output of a battery or the like as a main power supply on the vehicle. .

ワイヤハーネスW/Hの通信線W2は、マスタ制御部20と各スレーブ制御部30(1)、30(2)、30(3)との間でデータ通信を行うための伝送路を形成する。例えば、CAN (Controller Area Network)のような通信規格に従って通信するためのインタフェースをマスタ制御部20及び各スレーブ制御部30が内蔵しており、これらが通信線W2を経由して相互にデータ通信を行うことができる。   The communication line W2 of the wire harness W / H forms a transmission path for performing data communication between the master control unit 20 and each slave control unit 30 (1), 30 (2), 30 (3). For example, an interface for communicating according to a communication standard such as CAN (Controller Area Network) is built in the master control unit 20 and each slave control unit 30, and these perform data communication with each other via the communication line W 2. It can be carried out.

ID割り当て用電線W3は、通常の導電体よりも抵抗率が大きい抵抗体で構成される特別な電線であり、ID割り当てのために特別に設けられている。つまり、長さに応じてID割り当て用電線W3の抵抗値が変化する。また、長さによる抵抗値の違いを各スレーブ制御部30が把握することも容易である。   The ID assignment electric wire W3 is a special electric wire made of a resistor having a resistivity higher than that of a normal conductor, and is provided specifically for ID assignment. That is, the resistance value of the ID assignment electric wire W3 changes according to the length. Further, it is easy for each slave control unit 30 to grasp the difference in resistance value depending on the length.

ID割り当て用電線W3は、マスタ制御部20側の一端がアース25に接続されており、ID割り当て用電線W3の途中の接続点Pe1、Pe2、およびPe3の各位置でスレーブ制御部30(1)、30(2)、および30(3)の各々と接続されている。   One end of the ID assignment electric wire W3 on the master control unit 20 side is connected to the ground 25, and the slave control unit 30 (1) at each of the connection points Pe1, Pe2 and Pe3 in the middle of the ID assignment electric wire W3. , 30 (2), and 30 (3).

したがって、スレーブ制御部30(1)は、アース点Pgndから接続点Pe1までの距離に相当する抵抗体長Lw1に応じたID割り当て用電線W3の抵抗値を検出できる。また、スレーブ制御部30(2)は、アース点Pgndから接続点Pe2までの距離に相当する抵抗体長Lw2に応じたID割り当て用電線W3の抵抗値を検出できる。スレーブ制御部30(3)は、アース点Pgndから接続点Pe3までの距離に相当する抵抗体長Lw3に応じたID割り当て用電線W3の抵抗値を検出できる。   Therefore, the slave control unit 30 (1) can detect the resistance value of the ID assigning wire W3 corresponding to the resistor length Lw1 corresponding to the distance from the ground point Pgnd to the connection point Pe1. Further, the slave control unit 30 (2) can detect the resistance value of the ID assignment electric wire W3 corresponding to the resistor length Lw2 corresponding to the distance from the ground point Pgnd to the connection point Pe2. The slave control unit 30 (3) can detect the resistance value of the ID assignment electric wire W3 corresponding to the resistor length Lw3 corresponding to the distance from the ground point Pgnd to the connection point Pe3.

例えば、補機40(1)に内蔵される負荷を駆動するために前記負荷に通電する場合には、スレーブ制御部30(1)に内蔵されたスイッチング回路を導通状態にすることで、電源線W1、前記スイッチング回路、前記負荷を経由して、アースに電流が流れ、前記負荷が動作する。前記スイッチング回路のオンオフを制御するための指示については、マスタ制御部20から通信線W2を経由してスレーブ制御部30(1)に送ることができる。   For example, when energizing the load to drive a load built in the auxiliary machine 40 (1), the switching circuit built in the slave control unit 30 (1) is brought into a conductive state, whereby the power line A current flows to the ground via W1, the switching circuit, and the load, and the load operates. An instruction for controlling on / off of the switching circuit can be sent from the master control unit 20 to the slave control unit 30 (1) via the communication line W2.

同様に、スレーブ制御部30(2)に内蔵されたスイッチング回路を導通状態にすることで、電源線W1、前記スイッチング回路、補機40(2)内の負荷を経由して、アースに電流が流れ、前記負荷が動作する。また、スレーブ制御部30(3)に内蔵されたスイッチング回路を導通状態にすることで、電源線W1、前記スイッチング回路、補機40(3)内の負荷を経由して、アースに電流が流れ、前記負荷が動作する。   Similarly, by turning on the switching circuit built in the slave control unit 30 (2), a current is connected to the ground via the power line W1, the switching circuit, and the load in the auxiliary device 40 (2). The load operates. In addition, when the switching circuit built in the slave control unit 30 (3) is turned on, a current flows to the ground via the power line W1, the switching circuit, and the load in the auxiliary device 40 (3). The load operates.

尚、ワイヤハーネスW/Hと後付けする各スレーブ制御部30の内部回路との現実の電気接続については、「圧接」、「接着」、「溶着」などの物理的接続形態で実現することができる。また、スレーブ制御部30と補機40との接続形態については、専用の電線を用いて電線同士を接続する形態(WtoW)で接続しても良いし、スレーブ制御部30と補機40とを物理的及び電気的に直結しても良いし、ワイヤハーネスW/H上の短い電線を経由して接続する形態(ピックテールW/H)を用いても良い。また、スレーブ制御部30及び補機40をワイヤハーネスW/Hに直接取り付ける形態も考えられる。   The actual electrical connection between the wire harness W / H and the internal circuit of each slave control unit 30 to be retrofitted can be realized by physical connection forms such as “pressure welding”, “adhesion”, and “welding”. . Moreover, about the connection form of the slave control part 30 and the auxiliary machine 40, you may connect by the form (WtoW) which connects electric wires using an exclusive electric wire, and the slave control part 30 and the auxiliary machine 40 are connected. It may be physically and electrically connected directly, or may be connected via a short electric wire on the wire harness W / H (pick tail W / H). A configuration in which the slave control unit 30 and the auxiliary device 40 are directly attached to the wire harness W / H is also conceivable.

<詳細な構成の具体例>
図1に示したマスタ制御部20及びスレーブ制御部30の詳細な構成例を図2に示す。
<Specific example of detailed configuration>
2 shows a detailed configuration example of the master control unit 20 and the slave control unit 30 shown in FIG.

<マスタ制御部20の構成>
図2の構成例においては、マスタ制御部20は、マイクロコンピュータ(CPU)21、データ通信用トランシーバ22、および機器テーブル23を内蔵している。機器テーブル23は、例えば不揮発性メモリ上に配置される。また、マイクロコンピュータ21が実現する機能として、図2に示すようにデータ通信制御機能21a、負荷制御機能21b、およびID修正制御部21cが存在する。
<Configuration of Master Control Unit 20>
In the configuration example of FIG. 2, the master control unit 20 includes a microcomputer (CPU) 21, a data communication transceiver 22, and a device table 23. The device table 23 is arranged on a nonvolatile memory, for example. As functions realized by the microcomputer 21, there are a data communication control function 21a, a load control function 21b, and an ID correction control unit 21c as shown in FIG.

データ通信用トランシーバ22は、CANのような所定の通信規格に適合する信号を送信及び受信する機能を搭載している。マイクロコンピュータ21は、予め組み込まれたプログラムを実行することにより、データ通信制御機能21a、負荷制御機能21b、およびID修正制御部21cを実現する。   The data communication transceiver 22 has a function of transmitting and receiving a signal conforming to a predetermined communication standard such as CAN. The microcomputer 21 implements a data communication control function 21a, a load control function 21b, and an ID correction control unit 21c by executing a program incorporated in advance.

データ通信制御機能21aは、データ通信用トランシーバ22及び通信線W2を利用して、ワイヤハーネスW/Hに接続された各スレーブ制御部30との間でデータ通信を行うための制御を実施する。   The data communication control function 21a performs control for performing data communication with each slave control unit 30 connected to the wire harness W / H using the data communication transceiver 22 and the communication line W2.

負荷制御機能21bは、ワイヤハーネスW/Hの各位置に接続されているスレーブ制御部30を経由して、その配下に接続された補機40内部の負荷のオンオフ等を制御する機能である。例えば、負荷を制御するためのユーザのスイッチ操作や、図示しない上位の電子制御ユニット(ECU)からの指示を負荷制御機能21bが検出すると、データ通信制御機能21aが目的の負荷を管理しているEコネクタに対して通信線W2を介して制御情報を送信し、負荷のオンオフを切り替えることができる。   The load control function 21b is a function for controlling on / off of a load in the auxiliary machine 40 connected under the slave control unit 30 connected to each position of the wire harness W / H. For example, when the load control function 21b detects a user's switch operation for controlling the load or an instruction from a host electronic control unit (ECU) (not shown), the data communication control function 21a manages the target load. Control information can be transmitted to the E connector via the communication line W2 to switch the load on and off.

図1に示した車載通信システム100においては、複数のスレーブ制御部30(1)、30(2)、および30(3)が共通の通信線W2に接続されているので、マスタ制御部20および複数のスレーブ制御部30のそれぞれが通信線W2に送出する信号の送信元を受信側で識別したり、複数の信号が通信線W2上で衝突しないように管理する必要がある。そのため、固有の識別番号であるIDを、マスタ制御部20および各スレーブ制御部30に割り当てる必要がある。マスタ制御部20のIDについては固定でよいが、各スレーブ制御部30については適切なIDを割り当てる必要がある。   In the in-vehicle communication system 100 shown in FIG. 1, since the plurality of slave control units 30 (1), 30 (2), and 30 (3) are connected to the common communication line W2, the master control unit 20 and Each of the plurality of slave control units 30 needs to identify the transmission source of the signal transmitted to the communication line W2 on the receiving side, or manage the plurality of signals so that they do not collide on the communication line W2. Therefore, it is necessary to assign an ID that is a unique identification number to the master control unit 20 and each slave control unit 30. The ID of the master control unit 20 may be fixed, but an appropriate ID needs to be assigned to each slave control unit 30.

図1に示した車載通信システム100においては、ID割り当て用電線W3を用いているので、各スレーブ制御部30の接続点におけるID割り当て用電線W3の抵抗値の違いに基づき、各スレーブ制御部30にIDを自動的に割り当てることができる。   In the in-vehicle communication system 100 shown in FIG. 1, since the ID assignment wire W3 is used, each slave control unit 30 is based on the difference in resistance value of the ID assignment wire W3 at the connection point of each slave control unit 30. Can be automatically assigned an ID.

しかし、ID割り当て用電線W3上の取り付け位置に応じて決定されるIDについては、修正を必要とする場合がある。修正が必要な理由については後で説明する。この修正を自動的に行うために、ID修正制御部21cが設けてある。つまり、ID修正制御部21cは、ID割り当て用電線W3上の取り付け位置に応じて決定されたIDをより適切なIDに自動的に修正する機能を有している。   However, the ID determined in accordance with the attachment position on the ID assignment electric wire W3 may need to be corrected. The reason why correction is necessary will be described later. In order to perform this correction automatically, an ID correction control unit 21c is provided. That is, the ID correction control unit 21c has a function of automatically correcting the ID determined according to the attachment position on the ID assignment wire W3 to a more appropriate ID.

<スレーブ制御部30の構成>
図2の構成例においては、スレーブ制御部30はマイクロコンピュータ(CPU)31、データ通信用トランシーバ32、スイッチング素子33、および基準抵抗器34を内蔵している。また、マイクロコンピュータ31が実現する機能として、図2に示すようにデータ通信制御機能31aおよび負荷制御機能31bがある。更に、マイクロコンピュータ31にはA/D変換器31cが内蔵されている。
<Configuration of slave control unit 30>
In the configuration example of FIG. 2, the slave control unit 30 includes a microcomputer (CPU) 31, a data communication transceiver 32, a switching element 33, and a reference resistor 34. The functions realized by the microcomputer 31 include a data communication control function 31a and a load control function 31b as shown in FIG. Further, the microcomputer 31 includes an A / D converter 31c.

尚、スレーブ制御部30(1)〜30(3)のそれぞれは、基準抵抗器34の抵抗値Rsも含めて、全て共通の構成を有している。動作の内容も共通である。このような構成の共通化により、スレーブ制御部30のコストを低減できる。   Each of the slave control units 30 (1) to 30 (3) has a common configuration including the resistance value Rs of the reference resistor 34. The contents of the operation are also common. By sharing such a configuration, the cost of the slave control unit 30 can be reduced.

データ通信用トランシーバ32は、CANのような所定の通信規格に適合する信号を送信及び受信する機能を搭載している。マイクロコンピュータ31は、予め組み込まれたプログラムを実行することにより、データ通信制御機能31aおよび負荷制御機能31bを実現する。   The data communication transceiver 32 has a function of transmitting and receiving a signal conforming to a predetermined communication standard such as CAN. The microcomputer 31 implements a data communication control function 31a and a load control function 31b by executing a program incorporated in advance.

基準抵抗器34は、一端がマイクロコンピュータのA/D変換用基準電圧出力端子と接続され、他端がID割り当て用電線W3と接続されている。したがって、基準抵抗器34とID割り当て用電線W3の抵抗(抵抗値がRw)との直列回路は、A/D変換用基準電位Vrとアース25の電位との間の電圧を分圧する分圧回路を構成する。   One end of the reference resistor 34 is connected to the reference voltage output terminal for A / D conversion of the microcomputer, and the other end is connected to the ID assignment electric wire W3. Therefore, the series circuit of the reference resistor 34 and the resistance (resistance value Rw) of the ID assigning wire W3 is a voltage dividing circuit that divides the voltage between the A / D conversion reference potential Vr and the ground 25 potential. Configure.

そして、この分圧回路から出力される分圧回路出力電圧VadがA/D変換器31cのアナログ信号入力ポートに印加される。基準抵抗器34の抵抗値Rsは全てのスレーブ制御部30に共通であるので、分圧回路出力電圧Vadは、ID割り当て用電線W3の抵抗値Rw、すなわち各スレーブ制御部30の取り付け位置(Pe1、Pe2、Pe3)に応じて変化する。そして、この分圧回路出力電圧VadがIDの割り当てに利用される。   The voltage dividing circuit output voltage Vad output from the voltage dividing circuit is applied to the analog signal input port of the A / D converter 31c. Since the resistance value Rs of the reference resistor 34 is common to all the slave control units 30, the voltage dividing circuit output voltage Vad is equal to the resistance value Rw of the ID assignment wire W3, that is, the attachment position (Pe1) of each slave control unit 30. , Pe2, Pe3). The voltage dividing circuit output voltage Vad is used for ID assignment.

本実施形態では、スイッチング素子33としてIPD(Intelligent Power Device)を採用している。このIPDは、パワーMOSFETのようなスイッチング素子と、ゲートドライバ、電流検出回路、及び各種保護回路を含んでいる。スイッチング素子33は、図2に示すように補機40内の負荷と接続され、前記負荷の通電を制御するためのスイッチング回路として動作する。   In the present embodiment, an IPD (Intelligent Power Device) is adopted as the switching element 33. The IPD includes a switching element such as a power MOSFET, a gate driver, a current detection circuit, and various protection circuits. As shown in FIG. 2, the switching element 33 is connected to a load in the auxiliary machine 40 and operates as a switching circuit for controlling energization of the load.

データ通信制御機能31aは、データ通信用トランシーバ32及び通信線W2を利用して、ワイヤハーネスW/Hの上流側に接続されているマスタ制御部20との間、および他のスレーブ制御部30との間でそれぞれデータ通信を行うための制御を実施する。   The data communication control function 31a uses the data communication transceiver 32 and the communication line W2 to communicate with the master control unit 20 connected to the upstream side of the wire harness W / H and with other slave control units 30. The control for performing data communication between each is implemented.

また、本実施形態では、スレーブ制御部30が検出したID割り当て用電線W3の抵抗値Rwの情報を、スレーブ制御部30からマスタ制御部20に送信する必要がある。この機能もデータ通信制御機能31aに含まれている。   In the present embodiment, information on the resistance value Rw of the ID assignment wire W3 detected by the slave control unit 30 needs to be transmitted from the slave control unit 30 to the master control unit 20. This function is also included in the data communication control function 31a.

ここで分圧回路出力電圧Vadは次式で表される。
Vad=Vr・Rw/(Rs+Rw) ・・・(1)
Vr:A/D変換用基準電位とアース25との間の電位差[V]
Here, the voltage dividing circuit output voltage Vad is expressed by the following equation.
Vad = Vr · Rw / (Rs + Rw) (1)
Vr: Potential difference between the reference potential for A / D conversion and the ground 25 [V]

また、基準抵抗器34の抵抗値Rsは既知であるので、分圧回路出力電圧VadをA/D変換器31cで計測した結果を用いて、前記第(1)式からID割り当て用電線W3の抵抗値Rwを算出できる。例えば、Vr=10[V]、Rs=1[kΩ]の条件でVad=1[V]の時は、Rw=111[Ω]として算出される。この抵抗値Rwをデータ通信制御機能31aが算出してマスタ制御部20に送信する。   Further, since the resistance value Rs of the reference resistor 34 is known, the result of measuring the voltage dividing circuit output voltage Vad by the A / D converter 31c is used to calculate the ID assignment electric wire W3 from the equation (1). The resistance value Rw can be calculated. For example, when Vad = 1 [V] under the conditions of Vr = 10 [V] and Rs = 1 [kΩ], Rw = 111 [Ω] is calculated. The resistance value Rw is calculated by the data communication control function 31 a and transmitted to the master control unit 20.

尚、本実施形態では、スレーブ制御部30が抵抗値Rwの情報を送信する場合を想定しているが、スレーブ制御部30が分圧回路出力電圧Vadの情報を送信し、マスタ制御部20側で分圧回路出力電圧Vadから抵抗値Rwを算出することも可能である。   In this embodiment, it is assumed that the slave control unit 30 transmits information on the resistance value Rw. However, the slave control unit 30 transmits information on the voltage divider circuit output voltage Vad, and the master control unit 20 side It is also possible to calculate the resistance value Rw from the voltage divider circuit output voltage Vad.

負荷制御機能31bは、マスタ制御部20側から送信された指示に従って、スイッチング素子33の制御を実施する。通常はスイッチング素子33のオンオフにより負荷の通電状態と非通電状態との切り替えを行う。また、負荷に流す電流の調整が必要な場合には、パルス幅変調(PWM)信号を用いてスイッチング素子33のオンオフを周期的に繰り返す。そして、パルス幅又はオンオフデューティの調整により、負荷に流れる電流の平均値を調整することができる。   The load control function 31b controls the switching element 33 in accordance with the instruction transmitted from the master control unit 20 side. Usually, the load element is switched between an energized state and a non-energized state by turning on and off the switching element 33. When adjustment of the current flowing through the load is necessary, the switching element 33 is periodically turned on and off using a pulse width modulation (PWM) signal. The average value of the current flowing through the load can be adjusted by adjusting the pulse width or the on / off duty.

<ID割り当て修正の必要性の説明>
車種の異なる車両にそれぞれ搭載される車載通信システムの構成例を図3(A)および図3(B)に示す。つまり、図3(A)に示す車載通信システムは、車種(A)の車両に搭載され、図3(B)に示す車載通信システムは、車種(B)の車両に搭載される。
<Explanation of necessity of ID assignment correction>
3A and 3B show a configuration example of an in-vehicle communication system mounted on vehicles of different vehicle types. That is, the in-vehicle communication system illustrated in FIG. 3A is mounted on the vehicle of the vehicle type (A), and the in-vehicle communication system illustrated in FIG. 3B is mounted on the vehicle of the vehicle type (B).

ここで、車種(A)の車両は例えば軽自動車のような小型車、車種(B)の車両は例えばトラックのような大型車を想定しており、車種(A)と車種(B)とでは車体の幅が大きく異なる状況である。   Here, it is assumed that the vehicle of the vehicle type (A) is a small vehicle such as a light vehicle, and the vehicle of the vehicle type (B) is a large vehicle such as a truck, and the vehicle type (A) and the vehicle type (B) are vehicle bodies. This is a situation where the width of

図3(A)および図3(B)のどちらの車載通信システムも、マスタ制御部20と2つのスレーブ制御部51および52を含み、通信線W2およびID割り当て用電線W3を含むワイヤハーネスを介して、マスタ制御部20とスレーブ制御部51および52とが接続されている。また、スレーブ制御部51の配下に補機61が接続され、スレーブ制御部52の配下に補機62が接続されている。   Each of the in-vehicle communication systems shown in FIGS. 3A and 3B includes a master control unit 20 and two slave control units 51 and 52, and a wire harness including a communication line W2 and an ID assignment electric wire W3. Thus, the master control unit 20 and the slave control units 51 and 52 are connected. Further, an auxiliary machine 61 is connected under the slave control unit 51, and an auxiliary machine 62 is connected under the slave control unit 52.

また、補機61は車体の左上部に配置されるヘッドライトのランプ(H−LP_LH)を負荷として含み、補機62は車体の右上部に配置されるヘッドライトのランプ(H−LP_RH)を負荷として含んでいる。   The auxiliary machine 61 includes a headlight lamp (H-LP_LH) disposed at the upper left part of the vehicle body as a load, and the auxiliary machine 62 includes a headlight lamp (H-LP_RH) disposed at the upper right part of the vehicle body. Includes as a load.

図3(A)に示す車載通信システムの中で、マスタ制御部20とスレーブ制御部51との間を接続する領域をAW1で示し、スレーブ制御部51とスレーブ制御部52との間を接続する領域をAW2で示してある。また、図3(B)に示す車載通信システムの中で、マスタ制御部20とスレーブ制御部51との間を接続する領域をBW1で示し、スレーブ制御部51とスレーブ制御部52との間を接続する領域をBW2で示してある。   In the in-vehicle communication system shown in FIG. 3A, an area connecting the master control unit 20 and the slave control unit 51 is indicated by AW1, and the slave control unit 51 and the slave control unit 52 are connected. The area is indicated by AW2. Also, in the in-vehicle communication system shown in FIG. 3B, an area connecting the master control unit 20 and the slave control unit 51 is indicated by BW1, and between the slave control unit 51 and the slave control unit 52, The area to be connected is indicated by BW2.

図3(A)に示す車載通信システムと、図3(B)に示す車載通信システムとはほぼ同じ構成である。但し、車種の違いにより車体の幅が大きく異なるため、ワイヤハーネスの領域AW1と領域BW1とは長さが大きく異なり、領域AW2と領域BW2とも長さが大きく異なっている。   The in-vehicle communication system shown in FIG. 3A and the in-vehicle communication system shown in FIG. However, since the width of the vehicle body varies greatly depending on the vehicle type, the lengths of the wire harness regions AW1 and BW1 are greatly different, and the regions AW2 and BW2 are also greatly different in length.

また、図3(A)に示す車載通信システムにおいて、スレーブ制御部51に割り当てられるIDは、ID割り当て用電線W3の領域AW1の長さにより定まり、スレーブ制御部52に割り当てられるIDは、ID割り当て用電線W3の領域(AW1+AW2)の長さにより定まる。また、図3(B)に示す車載通信システムにおいて、スレーブ制御部51に割り当てられるIDは、ID割り当て用電線W3の領域BW1の長さにより定まり、スレーブ制御部52に割り当てられるIDは、ID割り当て用電線W3の領域(BW1+BW2)の長さにより定まる。   3A, the ID assigned to the slave control unit 51 is determined by the length of the area AW1 of the ID assignment electric wire W3, and the ID assigned to the slave control unit 52 is an ID assignment. It is determined by the length of the area (AW1 + AW2) of the electric wire W3. In the in-vehicle communication system shown in FIG. 3B, the ID assigned to the slave control unit 51 is determined by the length of the area BW1 of the ID assignment electric wire W3, and the ID assigned to the slave control unit 52 is an ID assignment. It is determined by the length of the area (BW1 + BW2) of the electric wire W3.

したがって、図3(A)、図3(B)に示すように、車体の幅が大きく異なる環境では、ID割り当て用電線W3の領域AW1と、領域BW1との長さの違いにより、スレーブ制御部51に割り当てられるIDが変化する。また、ID割り当て用電線W3の領域(AW1+AW2)と、領域(BW1+BW2)との長さの違いにより、スレーブ制御部52に割り当てられるIDが変化する。   Therefore, as shown in FIGS. 3A and 3B, in an environment where the widths of the vehicle bodies are greatly different, the slave control unit is caused by a difference in length between the area AW1 of the ID assignment electric wire W3 and the area BW1. The ID assigned to 51 changes. Further, the ID assigned to the slave control unit 52 changes depending on the length difference between the area (AW1 + AW2) of the ID assignment electric wire W3 and the area (BW1 + BW2).

したがって、マスタ制御部20が通信線W2を介した通信により、スレーブ制御部51の配下に接続された補機61の負荷を制御しようとする場合に、図3(A)の車載通信システムと図3(B)の車載通信システムとでは、相手先のスレーブ制御部51のIDが異なる。また、マスタ制御部20が通信線W2を介した通信により、スレーブ制御部52の配下に接続された補機62の負荷を制御しようとする場合に、図3(A)の車載通信システムと、図3(B)の車載通信システムとでは、相手先のスレーブ制御部52のIDが異なる。   Therefore, when the master control unit 20 tries to control the load of the auxiliary device 61 connected under the slave control unit 51 by communication via the communication line W2, the on-vehicle communication system of FIG. The ID of the slave control unit 51 of the other party is different from that of the in-vehicle communication system 3 (B). Further, when the master control unit 20 tries to control the load of the auxiliary machine 62 connected under the slave control unit 52 by communication via the communication line W2, the in-vehicle communication system of FIG. The ID of the slave control unit 52 of the other party is different from the in-vehicle communication system of FIG.

そのため、図3(A)の車載通信システムに搭載するマスタ制御部20と、図3(B)の車載通信システムに搭載するマスタ制御部20とでは互いに動作が異なることになり、これらを共通化することができない。つまり、基本的な構成が同一であるにもかかわらず、車載通信システムを搭載する車種毎に、動作および品番が異なるマスタ制御部20を用意しなければならず、コスト低減の妨げになる。   Therefore, the master control unit 20 installed in the in-vehicle communication system in FIG. 3A and the master control unit 20 installed in the in-vehicle communication system in FIG. Can not do it. That is, although the basic configuration is the same, a master control unit 20 having a different operation and product number must be prepared for each vehicle type in which the in-vehicle communication system is mounted, which hinders cost reduction.

本実施形態においては、図2に示したように、マスタ制御部20の内部に機器テーブル23を設け、マイクロコンピュータ21にID修正制御部21cの機能を設けることにより、車種の違いにかかわらずマスタ制御部20を共通化するためのID修正を自動的に行うことができる。   In the present embodiment, as shown in FIG. 2, the device table 23 is provided inside the master control unit 20, and the function of the ID correction control unit 21 c is provided in the microcomputer 21. ID correction for sharing the control unit 20 can be automatically performed.

<ID割り当て修正動作の説明>
<修正制御(1)の場合>
<前提条件の説明>
各スレーブ制御部に接続される機器の並び順が車種により変化しない場合を想定した各位置およびID割り当て状態の例を図6(A)、図6(B)、および図6(C)に示す。図6(A)は車種(A)に搭載するシステムのID割り当てを示し、図6(B)は車種(B)に搭載するシステムの修正前のID割り当てを示し、図6(C)は車種(B)に搭載するシステムの修正後のID割り当てを示す。
<Description of ID allocation correction operation>
<In case of correction control (1)>
<Description of preconditions>
An example of each position and ID assignment state assuming that the arrangement order of the devices connected to each slave control unit does not change depending on the vehicle type is shown in FIGS. 6 (A), 6 (B), and 6 (C). . 6A shows the ID assignment of the system mounted on the vehicle type (A), FIG. 6B shows the ID assignment before correction of the system mounted on the vehicle type (B), and FIG. 6C shows the vehicle type. (B) shows ID assignment after correction of the system mounted.

ここでは、図6(B)に示すように、通信線W2およびID割り当て用電線W3を含むワイヤハーネス上に、マスタ制御部20と、最大で5つのスレーブ制御部51〜55とが接続される車載通信システムを想定している。また、車種(A)のシステムの場合は、図6(A)に示すように3つのスレーブ制御部51、53、および55が接続され、車種(B)のシステムの場合は、図6(B)に示すように5つのスレーブ制御部51、52、53、54、および55が接続される。   Here, as shown in FIG. 6B, the master control unit 20 and a maximum of five slave control units 51 to 55 are connected on the wire harness including the communication line W2 and the ID assignment electric wire W3. An in-vehicle communication system is assumed. In the case of the vehicle type (A) system, as shown in FIG. 6A, three slave control units 51, 53, and 55 are connected. In the case of the vehicle type (B) system, FIG. ), Five slave controllers 51, 52, 53, 54, and 55 are connected.

図6(B)に示すように、マスタ制御部20に近い最も上流側の1番目のスレーブ制御部51に接続される補機61は、車体の左上部に配置されるヘッドライトのランプ(H−LP_LH)を負荷として含む。また、2番目のスレーブ制御部52に接続される補機62は、車体の左上部に配置されるフォグランプ(FOG−LP_LH)を負荷として含む。また、3番目のスレーブ制御部53に接続される補機63は、車体の中央近傍に配置される標準仕様のホーン(HORN)を負荷として含む。4番目のスレーブ制御部54に接続される補機64は、車体の右上部に配置されるフォグランプ(FOG−LP_RH)を負荷として含む。5番目のスレーブ制御部55に接続される補機65は、車体の右上部に配置されるヘッドライトのランプ(H−LP_RH)を負荷として含む。   As shown in FIG. 6B, the auxiliary device 61 connected to the first upstream slave control unit 51 closest to the master control unit 20 is a headlight lamp (H -LP_LH) as a load. The auxiliary machine 62 connected to the second slave control unit 52 includes a fog lamp (FOG-LP_LH) arranged at the upper left part of the vehicle body as a load. The auxiliary machine 63 connected to the third slave control unit 53 includes a standard specification horn (HORN) disposed near the center of the vehicle body as a load. The auxiliary machine 64 connected to the fourth slave control unit 54 includes, as a load, a fog lamp (FOG-LP_RH) arranged at the upper right part of the vehicle body. The auxiliary machine 65 connected to the fifth slave control unit 55 includes a headlight lamp (H-LP_RH) arranged at the upper right part of the vehicle body as a load.

また、車種(A)の仕様では、左右のフォグランプは搭載しないので、図6(A)に示すシステムの場合は、図6(B)に示すスレーブ制御部52および54が存在しない。つまり、車種の違いに応じて、ワイヤハーネスに接続するスレーブ制御部51〜55の数が変化する。   Further, in the specification of the vehicle type (A), the right and left fog lights are not mounted. Therefore, in the case of the system shown in FIG. 6 (A), the slave control units 52 and 54 shown in FIG. 6 (B) do not exist. That is, the number of slave control units 51 to 55 connected to the wire harness varies depending on the vehicle type.

ただし、ワイヤハーネスの流れの方向に対する各補機61〜65の並び順については、車種の違いの影響を受けない。つまり、図6(A)、図6(B)のどちらの車載通信システムについても、スレーブ制御部51および補機61が最も上流側に位置し、スレーブ制御部55および補機65が最も下流側に位置する。また、補機61、補機62、補機63、補機64、及び補機65の順番で並んでいる。図6(A)の車載通信システムの場合は補機62および64が存在しないが、補機63が補機61よりも下流側にあり、補機63が補機65より上流側にある点では図6(B)の構成と同様である。   However, the arrangement order of the auxiliary devices 61 to 65 with respect to the flow direction of the wire harness is not affected by the difference in the vehicle type. That is, in both the in-vehicle communication systems shown in FIGS. 6A and 6B, the slave control unit 51 and the auxiliary device 61 are located on the most upstream side, and the slave control unit 55 and the auxiliary device 65 are located on the most downstream side. Located in. Further, the auxiliary machine 61, the auxiliary machine 62, the auxiliary machine 63, the auxiliary machine 64, and the auxiliary machine 65 are arranged in this order. In the case of the in-vehicle communication system of FIG. 6A, the auxiliary machines 62 and 64 do not exist, but the auxiliary machine 63 is on the downstream side of the auxiliary machine 61 and the auxiliary machine 63 is on the upstream side of the auxiliary machine 65. The configuration is the same as that in FIG.

しかし、図3(A)、図3(B)に示した例の場合と同様に、車種が違うと補機61〜65を取り付ける位置が変化し、スレーブ制御部51〜55をワイヤハーネスに取り付ける位置も変化する。   However, as in the case of the example shown in FIGS. 3A and 3B, the position where the auxiliary devices 61 to 65 are attached changes when the vehicle type is different, and the slave control units 51 to 55 are attached to the wire harness. The position also changes.

<初期状態のID割り当ての説明>
図6(A)、図6(B)に示すように、これらの車載通信システムでは車種の違いによりスレーブ制御部51〜55のワイヤハーネス上の取り付け位置が異なっている。したがって、接地位置から取り付け位置までのID割り当て用電線W3の長さの違いにより、異なるIDが各スレーブ制御部51〜55に割り当てられる。
<Description of ID assignment in initial state>
As shown in FIGS. 6 (A) and 6 (B), in these in-vehicle communication systems, the attachment positions on the wire harness of the slave control units 51 to 55 are different depending on the vehicle type. Accordingly, different IDs are assigned to the slave control units 51 to 55 due to the difference in the length of the ID assignment electric wire W3 from the grounding position to the attachment position.

つまり、図6(A)の車載通信システムの場合は、スレーブ制御部51に(ID=1)が割り当てられ、スレーブ制御部53に(ID=3)が割り当てられ、スレーブ制御部55に(ID=5)が割り当てられる。   6A, (ID = 1) is assigned to the slave control unit 51, (ID = 3) is assigned to the slave control unit 53, and (ID) is assigned to the slave control unit 55. = 5) is assigned.

また、図6(B)の車載通信システムの場合は、スレーブ制御部51に(ID=2)が割り当てられ、スレーブ制御部52に(ID=3)が割り当てられ、スレーブ制御部53に(ID=5)が割り当てられる。また、補機の数が最大で「5」の場合を想定しているので、(ID=5)が割り当てられたスレーブ制御部53よりも下流側のスレーブ制御部54および55については、IDが未定になる。したがって、図6(B)の場合は取り付け位置を考慮して、暫定的に、(ID=6)をスレーブ制御部54に割り当て、(ID=7)をスレーブ制御部55に割り当てることになる。   6B, (ID = 2) is assigned to the slave control unit 51, (ID = 3) is assigned to the slave control unit 52, and (ID) is assigned to the slave control unit 53. = 5) is assigned. Since the maximum number of auxiliary machines is assumed to be “5”, the IDs of the slave control units 54 and 55 downstream of the slave control unit 53 to which (ID = 5) is assigned are IDs. To be determined. Therefore, in the case of FIG. 6B, the ID is assigned to the slave control unit 54 and (ID = 7) is temporarily assigned to the slave control unit 55 in consideration of the mounting position.

図6(A)、図6(B)のようなID割り当てのままでは、マスタ制御部20の制御の内容を車種によって変更しなければならない。したがって、マスタ制御部20の制御の内容を車種によらず共通化するために、ID割り当てを修正する必要がある。   With the ID assignment as shown in FIGS. 6A and 6B, the control content of the master control unit 20 must be changed depending on the vehicle type. Therefore, it is necessary to correct the ID assignment in order to share the control content of the master control unit 20 regardless of the vehicle type.

<使用する機器テーブルの構成例>
マスタ制御部20が利用可能な機器テーブルTB1の構成例を図4に示す。つまり、図6(A)、図6(B)に示したような前提条件において、図6(B)に示したID割り当てを、図6(C)に示すように修正するために、図2に示したID修正制御部21cが、機器テーブル23として、図4の機器テーブルTB1を使用する。
<Configuration example of device table to be used>
A configuration example of the device table TB1 that can be used by the master control unit 20 is shown in FIG. That is, in order to correct the ID allocation shown in FIG. 6B as shown in FIG. 6C under the preconditions shown in FIGS. 6A and 6B, FIG. 4 uses the device table TB1 of FIG. 4 as the device table 23. The ID correction control unit 21c shown in FIG.

図4に示すように、この機器テーブルTB1は、5つの機器K01〜K05のそれぞれの情報を保持している。ここで、機器K01〜K05の各々は、図6(B)に示した補機61〜65に相当する。つまり、機器K01は(H−LP_LH)の負荷に対応し、機器K02は(FOG−LP_LH)の負荷に対応し、機器K03は(HORN)の負荷に対応し、機器K04は(FOG−LP_RH)の負荷に対応し、機器K05は(H−LP_RH)の負荷に対応する。   As shown in FIG. 4, the device table TB1 holds information on each of the five devices K01 to K05. Here, each of the devices K01 to K05 corresponds to the auxiliary devices 61 to 65 shown in FIG. That is, the device K01 corresponds to the load of (H-LP_LH), the device K02 corresponds to the load of (FOG-LP_LH), the device K03 corresponds to the load of (HORN), and the device K04 corresponds to (FOG-LP_RH). The device K05 corresponds to the load (H-LP_RH).

また、図4に示す機器テーブルTB1は、5つの機器K01〜K05のそれぞれについて、「基準ID」の情報と、車種毎に独立した「基準抵抗値」の情報と、「車種Aにおける存在の有無」と、「車種Bにおける存在の有無」とを保持している。基準抵抗値の情報R01〜R05の各々は、基準状態の機器K01〜K05の取り付け位置におけるID割り当て用電線W3の抵抗値Rwを表している。機器テーブルTB1上の基準IDは、機器K01〜K05が基準状態の取り付け位置にある場合に各スレーブ制御部51〜55に割り当てるべきIDを表している。また、車種Aにおける機器K01〜K05の存在の有無は、図6(A)に示した車載通信システムの構成と対応している。また、車種Bにおける機器K01〜K05の存在の有無は、図6(B)に示した車載通信システムの構成と対応している。   The device table TB1 shown in FIG. 4 includes information on “reference ID”, information on “reference resistance value” independent for each vehicle type, and “presence / absence of presence in vehicle type A” for each of the five devices K01 to K05. And “presence / absence of presence in vehicle type B”. Each of the reference resistance value information R01 to R05 represents the resistance value Rw of the ID assigning wire W3 at the attachment position of the devices K01 to K05 in the reference state. The reference ID on the device table TB1 represents an ID to be assigned to each of the slave control units 51 to 55 when the devices K01 to K05 are at the attachment positions in the reference state. Further, the presence or absence of the devices K01 to K05 in the vehicle type A corresponds to the configuration of the in-vehicle communication system shown in FIG. Further, the presence or absence of the devices K01 to K05 in the vehicle type B corresponds to the configuration of the in-vehicle communication system shown in FIG.

<制御手順の具体例>
上記の前提条件の下で、図2に示したマスタ制御部20が各スレーブ制御部、すなわち各スレーブ制御部30のIDを修正するための制御(1)の処理手順を図5に示す。図5の処理手順について以下に説明する。
<Specific example of control procedure>
FIG. 5 shows a processing procedure of control (1) for the master control unit 20 shown in FIG. 2 to correct the ID of each slave control unit, that is, each slave control unit 30 under the above-mentioned preconditions. The processing procedure of FIG. 5 will be described below.

ステップS11では、ID修正制御部21cは、通信線W2を用いたデータ通信により、各スレーブ制御部、すなわち各スレーブ制御部30からID割り当て用電線W3の抵抗値Rwの情報を取得する。この抵抗値Rwは、各スレーブ制御部30が取り付けられた位置に応じて変化する。   In step S11, the ID correction control unit 21c acquires information on the resistance value Rw of the ID assignment wire W3 from each slave control unit, that is, each slave control unit 30, by data communication using the communication line W2. This resistance value Rw changes according to the position where each slave control unit 30 is attached.

ステップS12では、ID修正制御部21cは、この車載通信システム100が搭載される車両の種類を特定する。例えば、車種(A)と車種(B)との2種類が存在する場合には、車種(A)と車種(B)とのいずれであるかを識別する。例えば、図示しないスイッチの状態により車種を特定する。   In step S12, the ID correction control unit 21c specifies the type of vehicle on which the in-vehicle communication system 100 is mounted. For example, when there are two types of vehicle type (A) and vehicle type (B), the vehicle type (A) or vehicle type (B) is identified. For example, the vehicle type is specified by the state of a switch (not shown).

ステップS13では、ID修正制御部21cは、機器テーブル23、つまり図4に示した機器テーブルTB1を参照し、ワイヤハーネスの上流側から順番にn番目の機器(K01〜K05の各々)を選択する。そして、ステップS14を通りステップS15に進む。   In step S13, the ID correction control unit 21c refers to the device table 23, that is, the device table TB1 shown in FIG. 4, and selects the nth device (each of K01 to K05) in order from the upstream side of the wire harness. . Then, the process proceeds through step S14 to step S15.

ステップS15では、ID修正制御部21cは、S13で選択したn番目の機器(K01〜K05の各々)が当車種に存在するか否かを機器テーブルTB1により識別し、「有」の場合は、S17に進み、「無」の場合はS16に進む。   In step S15, the ID correction control unit 21c identifies from the device table TB1 whether or not the n-th device (each of K01 to K05) selected in S13 exists in this vehicle type. The process proceeds to S17, and if “NO”, the process proceeds to S16.

例えば、車種(A)であって、機器K02を選択している場合は、当該機器が「無」であることが機器テーブルTB1から分かるので、その場合はS15からS16に進む。また、車種(B)であって、機器K02を選択している場合は、この機器が「有」であることが機器テーブルTB1から分かるので、その場合はS15からS17に進む。   For example, in the case of the vehicle type (A) and the device K02 is selected, it can be seen from the device table TB1 that the device is “none”, and in this case, the process proceeds from S15 to S16. If the device type is B and the device K02 is selected, it can be seen from the device table TB1 that this device is “present”. In this case, the process proceeds from S15 to S17.

ステップS16では、ID修正制御部21cは、現在選択しているn番目の機器のIDを欠番として扱う。例えば、図6(A)に示す構成のように、補機61と補機63との間に補機62が存在しない場合には、(ID=1)が割り当てられたスレーブ制御部51の次の(ID=2)を欠番とし、下流側の次のスレーブ制御部53には(ID=3)を割り当てる。   In step S16, the ID correction control unit 21c treats the ID of the currently selected nth device as a missing number. For example, as in the configuration shown in FIG. 6A, when the auxiliary device 62 does not exist between the auxiliary device 61 and the auxiliary device 63, the slave controller 51 to which (ID = 1) is assigned. (ID = 2) is a missing number, and (ID = 3) is assigned to the next slave control unit 53 on the downstream side.

ステップS17では、ID修正制御部21cは、S11で取得した抵抗値Rwが小さい上流側のスレーブ制御部から順番に、m番目のスレーブ制御部を選択する。なお、処理済みのスレーブ制御部については、S17の処理の対象外として、次のスレーブ制御部を選択する。   In step S17, the ID correction control unit 21c selects the m-th slave control unit in order from the upstream slave control unit with the small resistance value Rw acquired in S11. For the slave control unit that has already been processed, the next slave control unit is selected as being out of the process of S17.

また、次のステップS18では、ID修正制御部21cは、S17で選択したm番目のスレーブ制御部の抵抗値Rwと、機器テーブルTB1上の該当する基準抵抗値とを比較して選択中のm番目のスレーブ制御部のIDを特定する。   In the next step S18, the ID correction control unit 21c compares the resistance value Rw of the mth slave control unit selected in S17 with the corresponding reference resistance value on the device table TB1, and selects m The ID of the second slave control unit is specified.

ステップS19では、ID修正制御部21cは、S18で特定したIDがn番目の機器の基準IDと同じか否かを識別し、同じであればS13に戻り、異なる場合はS20に進む。   In step S19, the ID correction control unit 21c identifies whether or not the ID specified in S18 is the same as the reference ID of the nth device. If they are the same, the process returns to S13, and if they are different, the process proceeds to S20.

ステップS20では、ID修正制御部21cは、現在選択しているm番目のスレーブ制御部のIDを、現在選択しているn番目の機器に機器テーブルTB1上で対応付けられた「基準ID」に修正する。   In step S20, the ID correction control unit 21c sets the ID of the currently selected mth slave control unit to the “reference ID” associated with the currently selected nth device on the device table TB1. Correct it.

機器テーブルTB1上の機器K01〜K05の全てについて処理が終了した場合には、ID修正制御部21cはステップS14を通りこの処理を終了する。   When the process is completed for all the devices K01 to K05 on the device table TB1, the ID correction control unit 21c goes through step S14 and ends this process.

<動作例の説明>
例えば、図6(B)に示した最も上流のスレーブ制御部51については、ID割り当て用電線W3に接続した位置により定まる抵抗値Rwに従い、初期状態で(ID=2)が割り当てられる。つまり、この場合のスレーブ制御部51の抵抗値Rwは、機器テーブルTB1上の2番目の基準抵抗値R02と同等の値になる。しかし、この場合のスレーブ制御部51は最も上流側の1番目の機器K01に対応している。したがって、マスタ制御部20を共通化するためには、マスタ制御部20が1番目の機器K01に対応する(ID=1)で図6(B)のスレーブ制御部51を認識する必要がある。
<Description of operation example>
For example, with respect to the most upstream slave control unit 51 shown in FIG. 6B, (ID = 2) is assigned in the initial state according to the resistance value Rw determined by the position connected to the ID assignment wire W3. That is, the resistance value Rw of the slave control unit 51 in this case is a value equivalent to the second reference resistance value R02 on the device table TB1. However, the slave control unit 51 in this case corresponds to the most upstream first device K01. Therefore, in order to make the master control unit 20 common, it is necessary for the master control unit 20 to recognize the slave control unit 51 in FIG. 6B corresponding to the first device K01 (ID = 1).

そして、図5に示した処理手順をID修正制御部21cが実行する際には、図6(B)のスレーブ制御部51をS17で選択し、次のS18で特定されるスレーブ制御部51のIDが基準抵抗値R02に対応する(ID=2)であり、1番目の機器K01の基準IDである(ID=1)と一致しないので、次のS19からS20に進む。したがって、S20でスレーブ制御部51のIDが1番目の機器K01の基準ID(ID=1)に修正される。つまり、この修正の結果として、図6(C)に示すように、スレーブ制御部51に(ID=1)が割り当てられる。   When the ID correction control unit 21c executes the processing procedure shown in FIG. 5, the slave control unit 51 in FIG. 6B is selected in S17, and the slave control unit 51 specified in the next S18 is selected. Since the ID corresponds to the reference resistance value R02 (ID = 2) and does not match the reference ID (ID = 1) of the first device K01, the process proceeds from the next S19 to S20. Therefore, in S20, the ID of the slave control unit 51 is corrected to the reference ID (ID = 1) of the first device K01. That is, as a result of this correction, (ID = 1) is assigned to the slave control unit 51 as shown in FIG.

上記の場合と同様に、図5に示した処理手順をID修正制御部21cが実行することにより、図6(B)に示す車載通信システムにおける各IDの割り当てが、図6(B)の状態から図6(C)の状態に修正される。つまり、図6(B)のスレーブ制御部52は(ID=3)から(ID=2)に修正され、図6(B)のスレーブ制御部53は(ID=5)から(ID=3)に修正され、図6(B)のスレーブ制御部54は(ID=6)から(ID=4)に修正され、図6(B)のスレーブ制御部55は(ID=7)から(ID=5)に修正される。   As in the case described above, the ID correction control unit 21c executes the processing procedure shown in FIG. 5 so that the assignment of each ID in the in-vehicle communication system shown in FIG. 6B is as shown in FIG. To the state of FIG. 6C. That is, the slave control unit 52 in FIG. 6B is modified from (ID = 3) to (ID = 2), and the slave control unit 53 in FIG. 6B is changed from (ID = 5) to (ID = 3). The slave control unit 54 in FIG. 6B is modified from (ID = 6) to (ID = 4), and the slave control unit 55 in FIG. 6B is modified from (ID = 7) to (ID = 6). It is corrected to 5).

したがって、マスタ制御部20が図6(A)に示す車載通信システムの補機61、63、および65をそれぞれ制御する場合の相手先のスレーブ制御部のIDと、図6(C)に示す車載通信システムの補機61、63、および65をそれぞれ制御する場合の相手先のスレーブ制御部のIDとが同一になる。そのため、スレーブ制御部51〜55の取り付け位置が異なる場合であっても、車種の異なる車両に搭載する車載通信システム100に、構成および動作が共通のマスタ制御部20を利用できることになり、コストの低減が可能になる。   Therefore, when the master control unit 20 controls the auxiliary devices 61, 63, and 65 of the in-vehicle communication system shown in FIG. 6A, respectively, the ID of the slave control unit of the counterpart, and the in-vehicle shown in FIG. The IDs of the slave control units of the counterparts when controlling the auxiliary devices 61, 63, and 65 of the communication system are the same. Therefore, even if the attachment positions of the slave control units 51 to 55 are different, the master control unit 20 having a common configuration and operation can be used for the in-vehicle communication system 100 mounted on a vehicle of a different vehicle type. Reduction is possible.

<修正制御(2)の場合>
<前提条件の説明>
各スレーブ制御部に接続される機器の並び順が車種により変化する場合を想定した各位置およびID割り当て状態の例を図7(A)、図7(B)、および図7(C)に示す。図7(A)は車種(A)に搭載するシステムのID割り当てを示し、図7(B)は車種(B)に搭載するシステムの修正前のID割り当てを示し、図7(C)は車種(B)に搭載するシステムの修正後のID割り当てを示す。
<In case of correction control (2)>
<Description of preconditions>
Examples of positions and ID assignment states assuming a case where the arrangement order of devices connected to each slave control unit changes depending on the vehicle type are shown in FIGS. 7A, 7B, and 7C. . 7A shows the ID assignment of the system mounted on the vehicle type (A), FIG. 7B shows the ID assignment before correction of the system mounted on the vehicle type (B), and FIG. 7C shows the vehicle type. (B) shows ID assignment after correction of the system mounted.

ここでは、図7(B)に示すように、通信線W2およびID割り当て用電線W3を含むワイヤハーネス上に、マスタ制御部20と、最大で5つのスレーブ制御部51〜55とが接続される車載通信システムを想定している。また、車種(A)のシステムの場合は、図7(A)に示すように3つのスレーブ制御部51、53、および55が接続され、車種(B)のシステムの場合は、図7(B)に示すように5つのスレーブ制御部51、52、53、54、および55が接続される。   Here, as shown in FIG. 7B, the master control unit 20 and a maximum of five slave control units 51 to 55 are connected on the wire harness including the communication line W2 and the ID assignment electric wire W3. An in-vehicle communication system is assumed. In the case of the vehicle type (A) system, as shown in FIG. 7A, three slave control units 51, 53, and 55 are connected. In the case of the vehicle type (B) system, FIG. ), Five slave controllers 51, 52, 53, 54, and 55 are connected.

図7(B)に示すように、マスタ制御部20に近い最も上流側の1番目のスレーブ制御部53に接続される補機63は、標準仕様のホーン(HORN)を負荷として含む。また、2番目のスレーブ制御部51に接続される補機61は、車体の左上部に配置されるヘッドライトのランプ(H−LP_LH)を負荷として含む。また、3番目のスレーブ制御部52に接続される補機62は、車体の左上部に配置されるフォグランプ(FOG−LP_LH)を負荷として含む。4番目のスレーブ制御部54に接続される補機64は、車体の右上部に配置されるフォグランプ(FOG−LP_RH)を負荷として含む。5番目のスレーブ制御部55に接続される補機65は、車体の右上部に配置されるヘッドライトのランプ(H−LP_RH)を負荷として含む。   As shown in FIG. 7B, the auxiliary machine 63 connected to the first slave control unit 53 on the most upstream side near the master control unit 20 includes a standard specification horn (HORN) as a load. The auxiliary machine 61 connected to the second slave control unit 51 includes a headlight lamp (H-LP_LH) arranged at the upper left of the vehicle body as a load. The auxiliary machine 62 connected to the third slave control unit 52 includes a fog lamp (FOG-LP_LH) arranged at the upper left part of the vehicle body as a load. The auxiliary machine 64 connected to the fourth slave control unit 54 includes, as a load, a fog lamp (FOG-LP_RH) arranged at the upper right part of the vehicle body. The auxiliary machine 65 connected to the fifth slave control unit 55 includes a headlight lamp (H-LP_RH) arranged at the upper right part of the vehicle body as a load.

また、車種(A)の仕様では、左右のフォグランプは搭載しないので、図7(A)に示すシステムの場合は、図7(B)に示すスレーブ制御部52および54が存在しない。つまり、車種の違いに応じて、ワイヤハーネスに接続するスレーブ制御部51〜55の数が変化する。   Further, in the specification of the vehicle type (A), the right and left fog lights are not mounted. Therefore, in the case of the system shown in FIG. 7A, the slave control units 52 and 54 shown in FIG. 7B do not exist. That is, the number of slave control units 51 to 55 connected to the wire harness varies depending on the vehicle type.

また、ワイヤハーネスの流れの方向に対する各補機61〜65の並び順も、車種に応じて変化する。つまり、図7(A)の車載通信システムの場合には、補機63が補機61よりも下流側に位置するのに対し、図7(B)の車載通信システムの場合には、補機63が最も上流側に配置され、補機61は補機63よりも下流側に接続されている。   Further, the order in which the auxiliary devices 61 to 65 are arranged with respect to the direction of flow of the wire harness also changes depending on the vehicle type. That is, in the case of the in-vehicle communication system of FIG. 7A, the auxiliary machine 63 is located downstream of the auxiliary machine 61, whereas in the case of the in-vehicle communication system of FIG. 63 is arranged on the most upstream side, and the auxiliary machine 61 is connected to the downstream side of the auxiliary machine 63.

つまり、図7(A)の車載通信システムの場合には、補機61、補機63、補機65の順番に並ぶようにワイヤハーネスに接続され、図7(B)の車載通信システムの場合には、補機63、補機61、補機62、補機64、補機65の順番に並ぶようにワイヤハーネスに接続される。   That is, in the case of the in-vehicle communication system of FIG. 7A, the auxiliary device 61, the auxiliary device 63, and the auxiliary device 65 are connected to the wire harness in the order shown in FIG. Are connected to the wire harness so that the auxiliary machine 63, the auxiliary machine 61, the auxiliary machine 62, the auxiliary machine 64, and the auxiliary machine 65 are arranged in this order.

また、図3(A)、図3(B)に示した例の場合と同様に、車種が違うと補機61〜65を取り付ける位置が変化し、スレーブ制御部51〜55をワイヤハーネスに取り付ける位置も変化する。   Similarly to the example shown in FIGS. 3 (A) and 3 (B), if the vehicle type is different, the position where the auxiliary machines 61 to 65 are attached changes, and the slave control units 51 to 55 are attached to the wire harness. The position also changes.

図7(A)、図7(B)に示すように補機61〜65の並び順が変化する車載通信システムの場合には、図4に示した機器テーブルTB1および図5に示した処理手順では正しく対応できない。   As shown in FIGS. 7A and 7B, in the case of the in-vehicle communication system in which the arrangement order of the auxiliary machines 61 to 65 changes, the equipment table TB1 shown in FIG. 4 and the processing procedure shown in FIG. It cannot respond correctly.

<初期状態のID割り当ての説明>
図7(A)、図7(B)に示すように、これらの車載通信システムでは車種の違いによりスレーブ制御部51〜55のワイヤハーネス上の取り付け位置および並び順が異なっている。したがって、接地位置から取り付け位置までのID割り当て用電線W3の長さの違いにより、異なるIDが各スレーブ制御部51〜55に割り当てられる。
<Description of ID assignment in initial state>
As shown in FIGS. 7 (A) and 7 (B), in these in-vehicle communication systems, the attachment positions and the arrangement order of the slave control units 51 to 55 on the wire harness differ depending on the vehicle type. Accordingly, different IDs are assigned to the slave control units 51 to 55 due to the difference in the length of the ID assignment electric wire W3 from the grounding position to the attachment position.

つまり、図7(A)の車載通信システムの場合は、スレーブ制御部51に(ID=1)が割り当てられ、スレーブ制御部53に(ID=3)が割り当てられ、スレーブ制御部55に(ID=5)が割り当てられる。   That is, in the in-vehicle communication system of FIG. 7A, (ID = 1) is assigned to the slave control unit 51, (ID = 3) is assigned to the slave control unit 53, and (ID) is assigned to the slave control unit 55. = 5) is assigned.

また、図7(B)の車載通信システムの場合は、1番目のスレーブ制御部53に(ID=1)が割り当てられ、2番目のスレーブ制御部51に(ID=2)が割り当てられ、スレーブ制御部52に(ID=3)が割り当てられる。また、補機の数が最大で「5」の場合を想定しているので、(ID=5)が割り当てられる位置よりも下流側のスレーブ制御部54および55については、IDが未定になる。したがって、図7(B)の場合は取り付け位置を考慮して、暫定的に、(ID=6)をスレーブ制御部54に割り当て、(ID=7)をスレーブ制御部55に割り当てることになる。   7B, (ID = 1) is assigned to the first slave controller 53, (ID = 2) is assigned to the second slave controller 51, and the slave (ID = 3) is assigned to the control unit 52. Further, since it is assumed that the number of auxiliary machines is “5” at the maximum, the IDs of slave control units 54 and 55 downstream from the position to which (ID = 5) is assigned are undetermined. Therefore, in the case of FIG. 7B, the ID is determined to be temporarily assigned (ID = 6) to the slave control unit 54 and (ID = 7) is assigned to the slave control unit 55 in consideration of the mounting position.

図7(A)、図7(B)のようなID割り当てのままでは、マスタ制御部20の制御の内容を車種によって変更しなければならない。したがって、マスタ制御部20の制御の内容を車種によらず共通化するために、ID割り当てを修正する必要がある。   With the ID assignment as shown in FIGS. 7A and 7B, the control content of the master control unit 20 must be changed depending on the vehicle type. Therefore, it is necessary to correct the ID assignment in order to share the control content of the master control unit 20 regardless of the vehicle type.

<使用する機器テーブルの構成例>
マスタ制御部20が利用可能な機器テーブルTB2の構成例を図8に示す。この機器テーブルTB2は、機器の並び順の変更に対応するために必要な情報を含んでいる。つまり、図7(A)、図7(B)に示したような前提条件において、図7(B)に示したID割り当てを、図7(C)に示すように修正するために、図2に示したID修正制御部21cが、機器テーブル23として、図8の機器テーブルTB2を使用する。
<Configuration example of device table to be used>
A configuration example of the device table TB2 that can be used by the master control unit 20 is shown in FIG. The device table TB2 includes information necessary to cope with a change in the arrangement order of devices. That is, in order to correct the ID assignment shown in FIG. 7B as shown in FIG. 7C under the preconditions shown in FIGS. 7A and 7B, FIG. 8 uses the device table TB2 of FIG. 8 as the device table 23. The ID correction control unit 21c shown in FIG.

図8に示すように、この機器テーブルTB2は、5つの機器K01〜K05のそれぞれの情報を保持している。ここで、機器K01〜K05の各々は、図7(B)に示した補機61〜65に相当する。つまり、機器K01は(H−LP_LH)の負荷に対応し、機器K02は(FOG−LP_LH)の負荷に対応し、機器K03は(HORN)の負荷に対応し、機器K04は(FOG−LP_RH)の負荷に対応し、機器K05は(H−LP_RH)の負荷に対応する。   As shown in FIG. 8, the device table TB2 holds information on each of the five devices K01 to K05. Here, each of the devices K01 to K05 corresponds to the auxiliary devices 61 to 65 shown in FIG. That is, the device K01 corresponds to the load of (H-LP_LH), the device K02 corresponds to the load of (FOG-LP_LH), the device K03 corresponds to the load of (HORN), and the device K04 corresponds to (FOG-LP_RH). The device K05 corresponds to the load (H-LP_RH).

また、図8に示す機器テーブルTB2は、5つの機器K01〜K05のそれぞれについて、「基準ID」の情報と、車種毎に独立した「基準抵抗値」の情報と、「車種Aにおける存在の有無および並び順」と、「車種Bにおける存在の有無および並び順」とを保持している。基準抵抗値の情報R01〜R05の各々は、基準状態の機器K01〜K05の取り付け位置におけるID割り当て用電線W3の抵抗値Rwを表している。機器テーブルTB2上の基準IDは、機器K01〜K05が基準状態の取り付け位置にある場合に各スレーブ制御部51〜55に割り当てるべきIDを表している。   Further, the device table TB2 illustrated in FIG. 8 includes information on “reference ID”, information on “reference resistance value” independent for each vehicle type, and “presence / absence of presence in vehicle type A” for each of the five devices K01 to K05. And “order of arrangement” and “presence / absence of vehicle B and arrangement order”. Each of the reference resistance value information R01 to R05 represents the resistance value Rw of the ID assigning wire W3 at the attachment position of the devices K01 to K05 in the reference state. The reference ID on the device table TB2 represents an ID to be assigned to each of the slave control units 51 to 55 when the devices K01 to K05 are at the attachment positions in the reference state.

また、車種Aにおける機器K01〜K05の存在の有無および並び順は、図7(A)に示した車載通信システムの構成および位置関係と対応している。また、車種Bにおける機器K01〜K05の存在の有無および並び順は、図7(B)に示した車載通信システムの構成および位置関係と対応している。   The presence / absence and arrangement order of the devices K01 to K05 in the vehicle type A correspond to the configuration and positional relationship of the in-vehicle communication system shown in FIG. The presence / absence and arrangement order of the devices K01 to K05 in the vehicle type B correspond to the configuration and positional relationship of the in-vehicle communication system shown in FIG.

<制御手順の具体例>
上記の前提条件の下で、図2に示したマスタ制御部20が各スレーブ制御部、すなわち各スレーブ制御部30のIDを修正するための制御(2)の処理手順を図9に示す。なお、図9において、図5の処理手順と共通の処理ステップについては、同一の番号を付けて示してある。図9の処理手順について以下に説明する。
<Specific example of control procedure>
FIG. 9 shows a processing procedure of control (2) for the master control unit 20 shown in FIG. 2 to correct the ID of each slave control unit, that is, each slave control unit 30, under the above-mentioned preconditions. In FIG. 9, processing steps common to the processing procedure of FIG. 5 are denoted by the same numbers. The processing procedure of FIG. 9 will be described below.

既に説明した図5の処理手順と同様に、ID修正制御部21cは図9のステップS11で各スレーブ制御部における抵抗値Rwの情報を取得する。また、図9のステップS12でID修正制御部21cは、この車載通信システム100が搭載される車両の種類を特定する。   Similar to the processing procedure of FIG. 5 already described, the ID correction control unit 21c acquires information on the resistance value Rw in each slave control unit in step S11 of FIG. Moreover, ID correction control part 21c specifies the kind of vehicle by which this vehicle-mounted communication system 100 is mounted by step S12 of FIG.

次のステップS13Bでは、ID修正制御部21cは、機器テーブル23、つまり図8に示した機器テーブルTB2を参照し、当車種における各機器の並び順に従い、ワイヤハーネスの上流側から順番にn番目の機器(K01〜K05の各々)を選択する。そして、ステップS14を通りステップS15に進む。   In the next step S13B, the ID correction control unit 21c refers to the device table 23, that is, the device table TB2 shown in FIG. Devices (each of K01 to K05) are selected. Then, the process proceeds through step S14 to step S15.

図9のステップS17では、ID修正制御部21cは、S11で取得した抵抗値Rwが小さい上流側のスレーブ制御部から順番に、m番目のスレーブ制御部を選択する。なお、処理済みのスレーブ制御部については、S17の処理の対象外として、次のスレーブ制御部を選択する。   In step S <b> 17 of FIG. 9, the ID correction control unit 21 c selects the m-th slave control unit in order from the upstream slave control unit with the small resistance value Rw acquired in S <b> 11. For the slave control unit that has already been processed, the next slave control unit is selected as being out of the process of S17.

また、次のステップS18では、ID修正制御部21cは、S17で選択したm番目のスレーブ制御部の抵抗値Rwと、機器テーブルTB2上の該当する基準抵抗値とを比較して選択中のm番目のスレーブ制御部のIDを特定する。   In the next step S18, the ID correction control unit 21c compares the resistance value Rw of the mth slave control unit selected in S17 with the corresponding reference resistance value on the device table TB2, and selects m The ID of the second slave control unit is specified.

ステップS19では、ID修正制御部21cは、S18で特定したIDがn番目の機器の基準IDと同じか否かを識別し、同じであればS13Bに戻り、異なる場合はS20に進む。   In step S19, the ID correction control unit 21c identifies whether or not the ID specified in S18 is the same as the reference ID of the nth device. If the ID is the same, the process returns to S13B, and if different, the process proceeds to S20.

ステップS20では、ID修正制御部21cは、現在選択しているm番目のスレーブ制御部のIDを、現在選択しているn番目の機器に機器テーブルTB2上で対応付けられた「基準ID」に修正する。   In step S20, the ID correction control unit 21c sets the ID of the currently selected mth slave control unit to the “reference ID” associated with the currently selected nth device on the device table TB2. Correct it.

機器テーブルTB2上の機器K01〜K05の全てについて処理が終了した場合には、ID修正制御部21cはステップS14を通りこの処理を終了する。   When the processing is completed for all the devices K01 to K05 on the device table TB2, the ID correction control unit 21c passes through step S14 and ends this processing.

<動作例の説明>
例えば、図7(B)に示した最も上流のスレーブ制御部53については、ID割り当て用電線W3に接続した位置により定まる抵抗値Rwに従い、初期状態で(ID=1)が割り当てられる。つまり、この場合のスレーブ制御部53の抵抗値Rwは、機器テーブルTB2上の1番目の基準抵抗値R01と同等の値になる。しかし、図7(B)の構成では最も上流の位置に接続されているスレーブ制御部53の配下には、補機63が接続されている。また、この補機63は機器テーブルTB2における3番目の機器K03に対応しているので、機器テーブルTB2上で機器K03に対応付けられている基準IDの(ID=3)にスレーブ制御部53のIDを修正する必要がある。
<Description of operation example>
For example, with respect to the most upstream slave control unit 53 shown in FIG. 7B, (ID = 1) is assigned in the initial state according to the resistance value Rw determined by the position connected to the ID assigning wire W3. That is, in this case, the resistance value Rw of the slave control unit 53 is equal to the first reference resistance value R01 on the device table TB2. However, in the configuration of FIG. 7B, the auxiliary machine 63 is connected under the slave control unit 53 connected to the most upstream position. Further, since the auxiliary machine 63 corresponds to the third device K03 in the device table TB2, the slave control unit 53 sets the reference ID (ID = 3) associated with the device K03 on the device table TB2. It is necessary to correct the ID.

ID修正制御部21cは、車種(B)に相当する図7(B)の構成に対して図9に示した処理手順を実行する際には、S13Bで最初に、並び順が1番の機器K03を選択する。   When executing the processing procedure shown in FIG. 9 for the configuration shown in FIG. 7B corresponding to the vehicle type (B), the ID correction control unit 21c is the first device in the arrangement order in S13B. Select K03.

そして、図7(B)の最も上流の位置にあるスレーブ制御部53を最初にS17で選択し、次のS18で特定されるスレーブ制御部53のIDが基準抵抗値R01に対応する(ID=1)であり、並び順が先頭の機器K03の基準IDである(ID=3)と一致しないので、次のS19からS20に進む。したがって、S20でスレーブ制御部53のIDが、並び順が1番目の機器K03の基準ID(ID=3)に修正される。つまり、この修正の結果として、図7(C)に示すように、スレーブ制御部53に(ID=3)が割り当てられる。   Then, the slave control unit 53 at the most upstream position in FIG. 7B is first selected in S17, and the ID of the slave control unit 53 specified in the next S18 corresponds to the reference resistance value R01 (ID = 1), and the order of arrangement does not match the reference ID (ID = 3) of the first device K03, so the process proceeds from S19 to S20. Therefore, in S20, the ID of the slave control unit 53 is corrected to the reference ID (ID = 3) of the first device K03 in the arrangement order. That is, as a result of this correction, (ID = 3) is assigned to the slave control unit 53 as shown in FIG.

上記の場合と同様に、図9に示した処理手順をID修正制御部21cが実行することにより、図7(B)に示す車載通信システムにおける各IDの割り当てが、図7(B)の状態から図7(C)の状態に修正される。つまり、図7(B)のスレーブ制御部51は(ID=2)から(ID=1)に修正され、図7(B)のスレーブ制御部52は(ID=3)から(ID=2)に修正され、図7(B)のスレーブ制御部54は(ID=6)から(ID=4)に修正され、図7(B)のスレーブ制御部55は(ID=7)から(ID=5)に修正される。   As in the above case, the ID correction control unit 21c executes the processing procedure shown in FIG. 9, so that each ID assignment in the in-vehicle communication system shown in FIG. 7B is in the state shown in FIG. To the state shown in FIG. That is, the slave control unit 51 in FIG. 7B is modified from (ID = 2) to (ID = 1), and the slave control unit 52 in FIG. 7B is changed from (ID = 3) to (ID = 2). The slave control unit 54 in FIG. 7B is modified from (ID = 6) to (ID = 4), and the slave control unit 55 in FIG. 7B is modified from (ID = 7) to (ID = It is corrected to 5).

したがって、マスタ制御部20が図7(A)に示す車載通信システムの補機61、63、および65をそれぞれ制御する場合の相手先のスレーブ制御部のIDと、図7(C)に示す車載通信システムの補機61、63、および65をそれぞれ制御する場合の相手先のスレーブ制御部のIDとが同一になる。そのため、スレーブ制御部51〜55の取り付け位置および並び順が異なる場合であっても、車種の異なる車両に搭載する車載通信システム100に、構成および動作が共通のマスタ制御部20を利用できることになり、コストの低減が可能になる。   Therefore, when the master control unit 20 controls the auxiliary devices 61, 63, and 65 of the in-vehicle communication system shown in FIG. 7A, the ID of the slave control unit of the counterpart, and the in-vehicle shown in FIG. The IDs of the slave control units of the counterparts when controlling the auxiliary devices 61, 63, and 65 of the communication system are the same. Therefore, even if the attachment positions and the arrangement order of the slave control units 51 to 55 are different, the master control unit 20 having a common configuration and operation can be used for the in-vehicle communication system 100 mounted on a vehicle having a different vehicle type. Cost can be reduced.

<修正制御(3)の場合>
<車種が変わらない場合>
車載通信システム100に未登録の新規機器を追加する場合を想定した各位置およびID割り当て状態を図10(A)および図10(B)に示す。また、図10(A)は機器追加前かつ修正前のIDの状態を表し、図10(B)は機器追加後に修正されたIDの割り当て状態を表す。
<In case of correction control (3)>
<When the car model does not change>
FIG. 10A and FIG. 10B show positions and ID assignment states assuming a case where a new unregistered device is added to the in-vehicle communication system 100. FIG. 10A shows the ID state before the device addition and before the correction, and FIG. 10B shows the ID assignment state corrected after the device addition.

ここでは、図10(A)に示すように、通信線W2およびID割り当て用電線W3を含むワイヤハーネス上に、マスタ制御部20と、最大で5つのスレーブ制御部51〜55とが接続される車載通信システムを想定している。また、車種(B)のシステムの場合は、図10(A)に示すように5つのスレーブ制御部51、52、53、54、および55が順番に並んた状態で接続される。   Here, as shown in FIG. 10A, the master control unit 20 and a maximum of five slave control units 51 to 55 are connected on the wire harness including the communication line W2 and the ID assignment electric wire W3. An in-vehicle communication system is assumed. Further, in the case of the vehicle type (B) system, as shown in FIG. 10A, the five slave control units 51, 52, 53, 54, and 55 are connected in order.

図10(A)に示すように、マスタ制御部20に近い最も上流側の1番目のスレーブ制御部51に接続される補機61は、車体の左上部に配置されるヘッドライトのランプ(H−LP_LH)を負荷として含む。また、2番目のスレーブ制御部52に接続される補機62は、車体の左上部に配置されるフォグランプ(FOG−LP_LH)を負荷として含む。また、3番目のスレーブ制御部53に接続される補機63は、車体の中央近傍に配置される標準仕様のホーン(HORN)を負荷として含む。4番目のスレーブ制御部54に接続される補機64は、車体の右上部に配置されるフォグランプ(FOG−LP_RH)を負荷として含む。5番目のスレーブ制御部55に接続される補機65は、車体の右上部に配置されるヘッドライトのランプ(H−LP_RH)を負荷として含む。   As shown in FIG. 10A, the auxiliary machine 61 connected to the first slave control unit 51 on the most upstream side near the master control unit 20 is a headlight lamp (H -LP_LH) as a load. The auxiliary machine 62 connected to the second slave control unit 52 includes a fog lamp (FOG-LP_LH) arranged at the upper left part of the vehicle body as a load. The auxiliary machine 63 connected to the third slave control unit 53 includes a standard specification horn (HORN) disposed near the center of the vehicle body as a load. The auxiliary machine 64 connected to the fourth slave control unit 54 includes, as a load, a fog lamp (FOG-LP_RH) arranged at the upper right part of the vehicle body. The auxiliary machine 65 connected to the fifth slave control unit 55 includes a headlight lamp (H-LP_RH) arranged at the upper right part of the vehicle body as a load.

ところで、未登録の新規機器を車載通信システム100に追加する場合がある。図10(B)に示した車載通信システムは、図10(A)の車載通信システムに、更にスレーブ制御部56および補機66を追加した構成を有している。つまり、補機66を新たにシステムに追加する場合を想定している。補機66としては、例えば特別仕様のホーン(S−HORN)が想定される。スレーブ制御部56は、補機66をワイヤハーネスに接続するために追加されるスレーブ制御部30に相当する。   By the way, an unregistered new device may be added to the in-vehicle communication system 100. The in-vehicle communication system shown in FIG. 10B has a configuration in which a slave control unit 56 and an auxiliary device 66 are further added to the in-vehicle communication system in FIG. That is, it is assumed that the auxiliary machine 66 is newly added to the system. As the auxiliary machine 66, for example, a special specification horn (S-HORN) is assumed. The slave control unit 56 corresponds to the slave control unit 30 added to connect the auxiliary machine 66 to the wire harness.

図10(B)に示す車載通信システムにおいては、スレーブ制御部56が、スレーブ制御部53とスレーブ制御部54との間の位置に接続されている。したがって、スレーブ制御部56が検出するID割り当て用電線W3の抵抗値Rwは、スレーブ制御部53が検出する抵抗値Rwよりも大きく、スレーブ制御部54が検出する抵抗値Rwよりも小さくなる。   In the in-vehicle communication system shown in FIG. 10B, the slave control unit 56 is connected to a position between the slave control unit 53 and the slave control unit 54. Therefore, the resistance value Rw of the ID assignment electric wire W3 detected by the slave control unit 56 is larger than the resistance value Rw detected by the slave control unit 53 and smaller than the resistance value Rw detected by the slave control unit 54.

したがって、初期状態のままであると、追加するスレーブ制御部56に割り当てられるIDは、スレーブ制御部53よりも大きく、スレーブ制御部54よりも小さい値になる。しかし、スレーブ制御部56および補機66の影響で各スレーブ制御部51〜55のIDが変化してしまうと、マスタ制御部20の制御の内容を変更しなければならず、マスタ制御部20の共通化ができなくなる。   Therefore, in the initial state, the ID assigned to the added slave control unit 56 is larger than the slave control unit 53 and smaller than the slave control unit 54. However, if the IDs of the slave control units 51 to 55 change due to the influence of the slave control unit 56 and the auxiliary machine 66, the control content of the master control unit 20 must be changed. Cannot be shared.

そこで、図10(B)のように新たな機器(66)を追加する場合には、マスタ制御部20は、先に登録されている機器を優先的に扱い、追加する機器の影響でIDが修正されないように制御する。そして、追加する機器に対しては、前記マスタ制御部は、それまでに割り当てられていない新たなIDを割り当てる。   Therefore, when adding a new device (66) as shown in FIG. 10B, the master control unit 20 preferentially handles the previously registered device, and the ID is influenced by the added device. Control so that it is not modified. Then, the master controller assigns a new ID that has not been assigned to the device to be added.

つまり、図10(A)に示す構成のように、マスタ制御部20に登録されている機器(61〜65)に対してID割り当てを修正する場合には、図5に示した処理手順または図9に示した処理手順を適用し、優先的にIDを割り当てる。その結果、図10(B)に示すように、スレーブ制御部51、52、53、54、および55に、それぞれ(ID=1)、(ID=2)、(ID=3)、(ID=4)、および(ID=5)が割り当てられる。そして、既に割り当てられているIDの最大値(ID=5)よりも大きい(ID=6)を、追加する補機66を制御するスレーブ制御部56に対してマスタ制御部20が割り当てる。   That is, when the ID assignment is corrected for the devices (61 to 65) registered in the master control unit 20 as in the configuration shown in FIG. 10A, the processing procedure shown in FIG. The processing procedure shown in FIG. 9 is applied, and IDs are preferentially assigned. As a result, as shown in FIG. 10B, the slave controllers 51, 52, 53, 54, and 55 have (ID = 1), (ID = 2), (ID = 3), (ID = 4) and (ID = 5) are assigned. Then, the master control unit 20 assigns (ID = 6) larger than the maximum ID (ID = 5) already assigned to the slave control unit 56 that controls the auxiliary machine 66 to be added.

これにより、先に登録されている機器(61〜65)を制御するためのマスタ制御部20の動作については変更を加える必要がなく、追加する補機66を制御するための機能だけをマスタ制御部20に追加すればそのまま使用できる。つまり、新規機能の追加に関して、変更が必要な箇所を減らすことができる。
<車種が変化する場合>
A車からB車に変化する場合の変化前後の各位置およびID割り当て状態を図11に示す。すなわち、マスタ制御部20にワイヤハーネスを介して接続されるシステムの種類が図11の上側に示すA車から下側に示すB車に変化する場合には、図11に示すようにようにIDの割り当てが変化する。
マスタ制御部20が最初にA車のシステムを認識している場合には、図11の上側に示すように順番に並んだ各位置のスレーブ制御部51、52、53、54、および55にそれぞれ(ID=1)、(ID=2)、(ID=3)、(ID=4)、および(ID=5)が割り当てられる。但し実際にはスレーブ制御部52、54は存在していない。
マスタ制御部20に接続されるシステムが図11の上側の構成から下側の構成のように変化した直後には、図11の上側の時と同じ位置関係に基づき、各スレーブ制御部52、53、54、および55にそれぞれ(ID=2)、(ID=3)、(ID=4)、および(ID=5)が割り当てられる(補正前)。
そして、システムの構成がB車に変化したことをマスタ制御部20が認識すると、B車のシステムに合わせてマスタ制御部20がID割り当てを自動的に補正する。つまり、A車に付く機能と、B車に付く機能とをマスタ制御部20が事前に把握しており、且つA車に付く機能の順序と、B車に付く機能の順序が同じであることを前提として、ID割り当てを正しく補正できる。
つまり、図11の上側に示すシステムのスレーブ制御部51、52、53、54、および55と、図11の下側に示すシステムのスレーブ制御部52、53、54、56、および57の並び順が同じであるので、下側のB車のシステムについては、スレーブ制御部52のIDを(ID=2)から(ID=1)に補正し、スレーブ制御部53のIDを(ID=3)から(ID=2)に補正し、スレーブ制御部54のIDを(ID=4)から(ID=3)に補正し、スレーブ制御部56のIDを(ID=4)に補正し、スレーブ制御部57のIDを(ID=5)に補正する。また、追加されたスレーブ制御部55にはそれまでに割り当てられていない(ID=6)を割り当てる。
Accordingly, it is not necessary to change the operation of the master control unit 20 for controlling the previously registered devices (61 to 65), and only the function for controlling the auxiliary machine 66 to be added is master controlled. If it is added to the section 20, it can be used as it is. That is, it is possible to reduce the number of places that need to be changed with respect to the addition of new functions.
<When the vehicle type changes>
FIG. 11 shows the positions and ID assignment states before and after the change when the vehicle changes from the A car to the B car. That is, when the type of the system connected to the master control unit 20 via the wire harness changes from the A car shown in the upper side of FIG. 11 to the B car shown in the lower side, the ID as shown in FIG. Assignment changes.
When the master control unit 20 first recognizes the system of the A car, the slave control units 51, 52, 53, 54, and 55 at the respective positions arranged in order as shown in the upper side of FIG. (ID = 1), (ID = 2), (ID = 3), (ID = 4), and (ID = 5) are assigned. However, the slave control units 52 and 54 do not actually exist.
Immediately after the system connected to the master control unit 20 changes from the upper configuration in FIG. 11 to the lower configuration, each slave control unit 52, 53 is based on the same positional relationship as in the upper configuration in FIG. , 54, and 55 are assigned (ID = 2), (ID = 3), (ID = 4), and (ID = 5), respectively (before correction).
When the master control unit 20 recognizes that the system configuration has changed to the B car, the master control unit 20 automatically corrects the ID assignment in accordance with the B car system. That is, the master control unit 20 knows in advance the function attached to the A car and the function attached to the B car, and the order of the functions attached to the A car is the same as the order attached to the B car. As a premise, the ID assignment can be corrected correctly.
That is, the arrangement order of the slave control units 51, 52, 53, 54, and 55 of the system shown in the upper side of FIG. 11 and the slave control units 52, 53, 54, 56, and 57 of the system shown in the lower side of FIG. Therefore, for the lower B vehicle system, the ID of the slave control unit 52 is corrected from (ID = 2) to (ID = 1), and the ID of the slave control unit 53 is (ID = 3). To (ID = 2), the ID of the slave controller 54 is corrected from (ID = 4) to (ID = 3), the ID of the slave controller 56 is corrected to (ID = 4), and slave control is performed. The ID of the unit 57 is corrected to (ID = 5). Further, the added slave control unit 55 is assigned an ID that has not been assigned so far (ID = 6).

以上のように、マスタ制御部20が機器テーブルTB1またはTB2を用いて図5または図9に示した処理手順を実行することにより、各スレーブ制御部に割り当てるIDをより適切な内容に自動的に修正することができる。そして、搭載車種の違いにより各スレーブ制御部の取り付け位置が変化する場合であっても、共通の機器を共通のIDを用いてマスタ制御部20が制御可能になる。その結果、スレーブ制御部30だけでなく、マスタ制御部20の構成および動作も車種の違いとは関係なく共通化できるため、システムを構成する部品の種類数や品番を削減することができ製造コストの低減が可能になる。   As described above, when the master control unit 20 executes the processing procedure shown in FIG. 5 or 9 using the device table TB1 or TB2, the ID assigned to each slave control unit is automatically set to a more appropriate content. It can be corrected. And even if it is a case where the attachment position of each slave control part changes with the difference in a mounting vehicle type, the master control part 20 becomes controllable using a common ID for a common apparatus. As a result, the configuration and operation of not only the slave control unit 30 but also the master control unit 20 can be made common regardless of the type of vehicle, so the number of types and part numbers of components constituting the system can be reduced and the manufacturing cost can be reduced. Can be reduced.

ここで、上述した本発明に係るID割り当て修正方法および車載通信システムの実施形態の特徴をそれぞれ以下[1]〜[6]に簡潔に纏めて列記する。
[1] マスタ制御部(20)と複数のスレーブ制御部(スレーブ制御部30)とがワイヤハーネス(W/H)を介して互いに通信可能な状態で接続され、抵抗体で構成されるID割り当て用電線(W3)が前記ワイヤハーネスに含まれ、前記複数のスレーブ制御部の各々に内蔵された基準抵抗器(34)の抵抗値(Rs)と、前記ID割り当て用電線の抵抗値(Rw)とに応じて前記各スレーブ制御部のIDが決定される車両上の通信システム(100)において、前記各スレーブ制御部のIDの割り当てを修正するためのID割り当て修正方法であって、
前記マスタ制御部(20)が、車種毎の前記各スレーブ制御部に接続される機器(K01K〜05)の種類を表す情報(TB1)を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順に基づき、前記各スレーブ制御部のIDの割り当てを修正する(図5参照)、
ことを特徴とするID割り当て修正方法。
[2] 前記マスタ制御部(20)が、車種毎の前記各スレーブ制御部に接続される機器(K01K〜05)の種類を表す情報(TB1)を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順と、前記各スレーブ制御部に割り当てられたID値の順序とに基づき、前記各スレーブ制御部のIDの割り当てを修正する、
ことを特徴とする上記[1]に記載のID割り当て修正方法。
[3] 前記マスタ制御部(20)が、車種毎の前記各スレーブ制御部に接続される機器(K01K〜05)の種類を表す情報、および車種毎の前記ワイヤハーネスの流れに沿った前記機器の並び順(TB2)を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記機器の並び順と、前記各スレーブ制御部に割り当てられたID値の順序とに基づき、前記各スレーブ制御部のIDの割り当てを修正する(図9参照)、
ことを特徴とする上記[1]に記載のID割り当て修正方法。
[4] 前記マスタ制御部は、車種毎の前記ワイヤハーネスの流れに沿った前記機器の並び順と、前記各機器に割り当てるIDの基準値とが事前に登録された機器管理テーブル(TB2)を利用する、
ことを特徴とする上記[3]に記載のID割り当て修正方法。
[5] 前記マスタ制御部は、未登録の新たな機器が前記通信システムに追加される場合には、それまでに割り当てられていない新たなIDを、追加される前記機器に割り当てる、
ことを特徴とする上記[1]に記載のID割り当て修正方法。
[6] マスタ制御部(20)と複数のスレーブ制御部(30)とがワイヤハーネス(W/H)を介して互いに通信可能な状態で接続され、抵抗体で構成されるID割り当て用電線(W3)が前記ワイヤハーネスに含まれ、前記複数のスレーブ制御部の各々に内蔵された基準抵抗器(34)の抵抗値(Rs)と、前記ID割り当て用電線の抵抗値(Rw)とに応じて前記各スレーブ制御部のIDが決定される車載通信システム(100)であって、
前記マスタ制御部(20)が、車種毎の前記各スレーブ制御部に接続される機器(K01K〜05)の種類を表す情報(TB1)を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順に基づき、前記各スレーブ制御部のIDの割り当てを修正する(図5参照)修正制御部(21c)を備える、
ことを特徴とする車載通信システム。
Here, the characteristics of the embodiment of the ID allocation correction method and the in-vehicle communication system according to the present invention described above are briefly summarized and listed in the following [1] to [6], respectively.
[1] ID assignment configured by connecting a master control unit (20) and a plurality of slave control units (slave control unit 30) through a wire harness (W / H) in a state where they can communicate with each other The wire harness (W3) is included in the wire harness, the resistance value (Rs) of the reference resistor (34) built in each of the plurality of slave control units, and the resistance value (Rw) of the ID assignment wire In the communication system (100) on the vehicle in which the ID of each slave control unit is determined according to the above, an ID allocation correction method for correcting the ID allocation of each slave control unit,
The master control unit (20) grasps information (TB1) indicating the type of equipment (K01K to 05) connected to each slave control unit for each vehicle type, and follows the flow of the wire harness in the target vehicle type Based on the order of the slave control units, the ID assignment of each slave control unit is corrected (see FIG. 5).
An ID allocation correction method characterized by the above.
[2] The master control unit (20) grasps information (TB1) indicating the type of equipment (K01K to 05) connected to each slave control unit for each vehicle type, and the flow of the wire harness in the target vehicle type Correcting the assignment of the IDs of the slave control units based on the arrangement order of the slave control units along the order of the ID values assigned to the slave control units,
The ID allocation correction method according to [1] above, wherein
[3] Information indicating the type of device (K01K to 05) connected to each slave control unit for each vehicle type by the master control unit (20), and the device along the flow of the wire harness for each vehicle type Each of the slave control units based on the sequence of the devices along the flow of the wire harness in the target vehicle type and the order of the ID values assigned to the slave control units. Modify the ID assignment (see FIG. 9),
The ID allocation correction method according to [1] above, wherein
[4] The master control unit stores a device management table (TB2) in which the arrangement order of the devices along the flow of the wire harness for each vehicle type and the reference value of the ID assigned to each device are registered in advance. To use,
The ID allocation correction method according to [3] above, wherein
[5] When a new unregistered device is added to the communication system, the master control unit assigns a new ID that has not been assigned to the device to be added,
The ID allocation correction method according to [1] above, wherein
[6] An ID assignment wire (a resistor is connected to the master control unit (20) and the plurality of slave control units (30) in a state where they can communicate with each other via a wire harness (W / H)). W3) is included in the wire harness, and depends on the resistance value (Rs) of the reference resistor (34) built in each of the plurality of slave control units and the resistance value (Rw) of the ID assigning wire. An in-vehicle communication system (100) in which the ID of each slave control unit is determined,
The master control unit (20) grasps information (TB1) indicating the type of equipment (K01K to 05) connected to each slave control unit for each vehicle type, and follows the flow of the wire harness in the target vehicle type Based on the arrangement order of the slave control units, a correction control unit (21c) for correcting the assignment of IDs of the slave control units (see FIG. 5),
An in-vehicle communication system characterized by the above.

10 ジャンクションボックス
20 マスタ制御部
21 マイクロコンピュータ
21a データ通信制御機能
21b 負荷制御機能
21c ID修正制御部
22 データ通信用トランシーバ
23,TB1,TB2 機器テーブル
25 アース
30 スレーブ制御部
31 マイクロコンピュータ
31a データ通信制御機能
31b 負荷制御機能
31c A/D変換器
32 データ通信用トランシーバ
33 スイッチング素子
34 基準抵抗器
40 補機
51,52,53,54,55,56 スレーブ制御部
61,62,63,64,65,66 補機
100 車載通信システム
W/H ワイヤハーネス
W1 電源線
W2 通信線
W3 ID割り当て用電線
Vad 分圧回路出力電圧
Lw1,Lw2,Lw3 抵抗体長
Pgnd アース点
Pe1,Pe2,Pe3 接続点
Rs,Rw 抵抗値
K01,K02,K03,K04,K05 機器
DESCRIPTION OF SYMBOLS 10 Junction box 20 Master control part 21 Microcomputer 21a Data communication control function 21b Load control function 21c ID correction control part 22 Data communication transceiver 23, TB1, TB2 Equipment table 25 Ground 30 Slave control part 31 Microcomputer 31a Data communication control function 31b Load control function 31c A / D converter 32 Transceiver for data communication 33 Switching element 34 Reference resistor 40 Auxiliary machine 51, 52, 53, 54, 55, 56 Slave controller 61, 62, 63, 64, 65, 66 Auxiliary machine 100 In-vehicle communication system W / H Wire harness W1 Power line W2 Communication line W3 ID assignment electric wire Vad Voltage divider circuit output voltage Lw1, Lw2, Lw3 Resistor length Pgnd Ground point Pe1, Pe2, Pe Connection point Rs, Rw resistance K01, K02, K03, K04, K05 equipment

Claims (6)

マスタ制御部と複数のスレーブ制御部とがワイヤハーネスを介して互いに通信可能な状態で接続され、抵抗体で構成されるID割り当て用電線が前記ワイヤハーネスに含まれ、前記複数のスレーブ制御部の各々に内蔵された基準抵抗器の抵抗値と、前記ID割り当て用電線の抵抗値とに応じて前記各スレーブ制御部のIDが決定される車両上の通信システムにおいて、前記各スレーブ制御部のIDの割り当てを修正するためのID割り当て修正方法であって、
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順に基づき、前記各スレーブ制御部のIDの割り当てを修正する、
ことを特徴とするID割り当て修正方法。
The master control unit and the plurality of slave control units are connected in a state where they can communicate with each other via a wire harness, and an ID assignment electric wire configured by a resistor is included in the wire harness, and the plurality of slave control units In the communication system on the vehicle in which the ID of each slave control unit is determined according to the resistance value of the reference resistor built in each and the resistance value of the ID assigning wire, the ID of each slave control unit An ID allocation correction method for correcting the allocation of
The master control unit grasps information indicating the type of device connected to each slave control unit for each vehicle type, and based on the order of the slave control units along the flow of the wire harness in the target vehicle type, Correct the ID assignment of each slave controller,
An ID allocation correction method characterized by the above.
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順と、前記各スレーブ制御部に割り当てられたID値の順序とに基づき、前記各スレーブ制御部のIDの割り当てを修正する、
ことを特徴とする請求項1に記載のID割り当て修正方法。
The master control unit grasps information representing the type of equipment connected to each slave control unit for each vehicle type, and the order of the slave control units along the flow of the wire harness in the target vehicle type, Based on the order of the ID values assigned to each slave control unit, modify the ID assignment of each slave control unit;
The ID allocation correction method according to claim 1, wherein:
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報、および車種毎の前記ワイヤハーネスの流れに沿った前記機器の並び順を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記機器の並び順と、前記各スレーブ制御部に割り当てられたID値の順序とに基づき、前記各スレーブ制御部のIDの割り当てを修正する、
ことを特徴とする請求項1に記載のID割り当て修正方法。
The master control unit grasps information indicating the type of device connected to each slave control unit for each vehicle type, and the arrangement order of the devices along the flow of the wire harness for each vehicle type, and Correcting the assignment of the IDs of the slave control units based on the arrangement order of the devices along the flow of the wire harness and the order of the ID values assigned to the slave control units;
The ID allocation correction method according to claim 1, wherein:
前記マスタ制御部は、車種毎の前記ワイヤハーネスの流れに沿った前記機器の並び順と、前記各機器に割り当てるIDの基準値とが事前に登録された機器管理テーブルを利用する、
ことを特徴とする請求項3に記載のID割り当て修正方法。
The master control unit uses a device management table in which an arrangement order of the devices along the flow of the wire harness for each vehicle type and a reference value of an ID assigned to each device is registered in advance.
The ID allocation correction method according to claim 3, wherein:
前記マスタ制御部は、未登録の新たな機器が前記通信システムに追加される場合には、それまでに割り当てられていない新たなIDを、追加される前記機器に割り当てる、
ことを特徴とする請求項1に記載のID割り当て修正方法。
When a new unregistered device is added to the communication system, the master control unit assigns a new ID that has not been assigned to the device to be added,
The ID allocation correction method according to claim 1, wherein:
マスタ制御部と複数のスレーブ制御部とがワイヤハーネスを介して互いに通信可能な状態で接続され、抵抗体で構成されるID割り当て用電線が前記ワイヤハーネスに含まれ、前記複数のスレーブ制御部の各々に内蔵された基準抵抗器の抵抗値と、前記ID割り当て用電線の抵抗値とに応じて前記各スレーブ制御部のIDが決定される車載通信システムであって、
前記マスタ制御部が、車種毎の前記各スレーブ制御部に接続される機器の種類を表す情報を把握し、対象車種における前記ワイヤハーネスの流れに沿った前記各スレーブ制御部の並び順に基づき、前記各スレーブ制御部のIDの割り当てを修正する修正制御部を備える、
ことを特徴とする車載通信システム。
The master control unit and the plurality of slave control units are connected in a state where they can communicate with each other via a wire harness, and an ID assignment electric wire configured by a resistor is included in the wire harness, and the plurality of slave control units An in-vehicle communication system in which an ID of each slave control unit is determined according to a resistance value of a reference resistor built in each and a resistance value of the ID assigning wire,
The master control unit grasps information indicating the type of device connected to each slave control unit for each vehicle type, and based on the order of the slave control units along the flow of the wire harness in the target vehicle type, A correction control unit that corrects the ID assignment of each slave control unit;
An in-vehicle communication system characterized by the above.
JP2015218425A 2015-11-06 2015-11-06 ID allocation correction method and in-vehicle communication system Active JP6568454B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015218425A JP6568454B2 (en) 2015-11-06 2015-11-06 ID allocation correction method and in-vehicle communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015218425A JP6568454B2 (en) 2015-11-06 2015-11-06 ID allocation correction method and in-vehicle communication system

Publications (2)

Publication Number Publication Date
JP2017092638A true JP2017092638A (en) 2017-05-25
JP6568454B2 JP6568454B2 (en) 2019-08-28

Family

ID=58771715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015218425A Active JP6568454B2 (en) 2015-11-06 2015-11-06 ID allocation correction method and in-vehicle communication system

Country Status (1)

Country Link
JP (1) JP6568454B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022031235A (en) * 2020-08-06 2022-02-18 孕龍科技股▲分▼有限公司 Device for measuring cable quality of electric circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022031235A (en) * 2020-08-06 2022-02-18 孕龍科技股▲分▼有限公司 Device for measuring cable quality of electric circuit
JP7245427B2 (en) 2020-08-06 2023-03-24 孕龍科技股▲分▼有限公司 Electric circuit cable quality inspection equipment

Also Published As

Publication number Publication date
JP6568454B2 (en) 2019-08-28

Similar Documents

Publication Publication Date Title
US10749706B2 (en) Local interconnect network bus architecture
WO2017222058A1 (en) Vehicle circuit structure
US20190366872A1 (en) Vehicular power supply system
JP6568455B2 (en) ID allocation correction method and in-vehicle communication system
US11981274B2 (en) Onboard network system
JP6408816B2 (en) Vehicle electrical equipment connection system
US20170008464A1 (en) Communication system
JP2017091782A (en) Illumination control device
JP6768272B2 (en) Electrical connection device for vehicles
JP6798417B2 (en) In-vehicle power supply system
US6950882B1 (en) Control for a plurality of electrical consumers of a motor vehicle
US20160142102A1 (en) Motor vehicle on-board power system and method for transmitting data signals in a motor vehicle on-board power system
JP6568454B2 (en) ID allocation correction method and in-vehicle communication system
JP6587510B2 (en) In-vehicle communication system
US20220250558A1 (en) Onboard network system
JP6568456B2 (en) In-vehicle communication system
JPH1022006A (en) Interface connector
CN110001552B (en) Vehicle-mounted controller
CN112867634A (en) Distribution branch box
JP6322535B2 (en) Electrical connection system for vehicles
JP6562882B2 (en) Communications system
US20130179033A1 (en) Vehicle control circuit
WO2020070993A1 (en) Automobile wiring system
JP6499912B2 (en) Vehicle network system
JP7470546B2 (en) Power System

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181018

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190705

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190723

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190802

R150 Certificate of patent or registration of utility model

Ref document number: 6568454

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250