JP2009248938A - On-vehicle electronic control apparatus - Google Patents

On-vehicle electronic control apparatus Download PDF

Info

Publication number
JP2009248938A
JP2009248938A JP2008102946A JP2008102946A JP2009248938A JP 2009248938 A JP2009248938 A JP 2009248938A JP 2008102946 A JP2008102946 A JP 2008102946A JP 2008102946 A JP2008102946 A JP 2008102946A JP 2009248938 A JP2009248938 A JP 2009248938A
Authority
JP
Japan
Prior art keywords
detection signal
switch
unit
bit
input latch
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.)
Withdrawn
Application number
JP2008102946A
Other languages
Japanese (ja)
Inventor
Eiji Yanada
英二 梁田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2008102946A priority Critical patent/JP2009248938A/en
Publication of JP2009248938A publication Critical patent/JP2009248938A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To carry out detection of communication abnormality with good accuracy and with less time lag in communication between ICs of an on-vehicle electronic control apparatus. <P>SOLUTION: The on-vehicle electronic control apparatus 10 is provided with: a transmission side IC 20 having a communication interface for receiving an on/of detection signal of a switch of an on-vehicle device; a receive side IC 30 for receiving the on/off detection signal; and abnormality checking function for the on/off detection signal which the receive side IC receives. The transmission side IC 20 is provided with: an input latch part 21 having a bit assigned per a receiving switch; a register part 22; a comparison part 23 which is connected with a branched wire branched from wiring connecting the register part with the receive side IC and is connected with the input latch part; and a switching part 24 which is connected with each bit in the input latch part and inputs the on/off signal to the comparison part. In the comparison part, the on/of signal output to a wiring side is compared with the on/off signal output per bit from the input latch part, and a non-matching bit is determined to be an error bit. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、車載用の電子制御装置に関し、詳しくは、電子制御装置内で車載機器のスイッチのオンオフ検知信号の通信異常検出を行うものである。   The present invention relates to an on-vehicle electronic control device, and more specifically, detects communication abnormality of an on / off detection signal of a switch of an on-vehicle device within the electronic control device.

従来、車両に搭載されたライトやパワーウィンドウなどの電装品は、電子制御装置により制御されている。
具体的には、電子制御装置は送信側ICと受信側ICを備えており、乗員がスイッチ操作を行うと該スイッチのオンオフ検知信号が電子制御装置の送信側ICに入力される。さらに、オンオフ検知信号は送信側ICから受信側ICに入力され、受信側ICによってスイッチがオンであると判断された場合には、電子制御装置は電装品の制御を行っている。
Conventionally, electrical components such as lights and power windows mounted on vehicles are controlled by an electronic control unit.
Specifically, the electronic control device includes a transmission-side IC and a reception-side IC. When the occupant performs a switch operation, an on / off detection signal of the switch is input to the transmission-side IC of the electronic control device. Further, the on / off detection signal is input from the transmission side IC to the reception side IC, and when the reception side IC determines that the switch is on, the electronic control device controls the electrical component.

しかし、車両には数多くの電装品が搭載されているため、電子制御装置に他の電装品からのノイズが混入する場合がある。このとき、電子制御装置内で送信側ICから受信側ICにオンオフ検知信号を入力する際に、該オンオフ検知信号がノイズの影響を受け異常となり、受信側ICがスイッチのオンオフを正しく検知できないことがある。   However, since many electrical components are mounted on the vehicle, noise from other electrical components may be mixed into the electronic control device. At this time, when an on / off detection signal is input from the transmission side IC to the reception side IC in the electronic control unit, the on / off detection signal becomes abnormal due to the influence of noise, and the reception side IC cannot correctly detect the on / off of the switch. There is.

このため、特開平7ー269409号公報(特許文献1)においては、2個のCPU間のシリアル通信において、送信側のCPUが全データのSUM値をデータに付加して受信側CPUに送信し、受信側CPUで改めてデータのSUM値を演算し、受信したSUM値と比較してデータの異常チェックを行う構成が開示されている。比較結果が正しい場合には、データは異常ではないものとして扱われる。
また、データの異常チェック方法として、一方のICに入力したデータを他方のICに返送し、他方のICで前回送信したデータと比較することでデータの通信異常の検出を行うエコーバックや、データにパリティビットをつけるなどの方法も行われている。
For this reason, in Japanese Patent Application Laid-Open No. 7-269409 (Patent Document 1), in serial communication between two CPUs, the CPU on the transmission side adds the SUM value of all data to the data and transmits it to the CPU on the reception side. A configuration is disclosed in which the SUM value of data is calculated again by the receiving CPU, and the data is checked for abnormality by comparing with the received SUM value. If the comparison result is correct, the data is treated as not abnormal.
In addition, as a data abnormality check method, data input to one IC is returned to the other IC, and compared with the data transmitted last time by the other IC, echo back for detecting data communication abnormality, There are also methods such as adding parity bits to.

しかし、エコーバックは異常判断が通信の1サイクル分遅れるという問題がある。また、パリティビットを付ける方法は、ノイズの入り方によっては通信異常検出ができないという問題がある。   However, the echo back has a problem that abnormality determination is delayed by one cycle of communication. Further, the method of adding a parity bit has a problem that communication abnormality cannot be detected depending on how noise is introduced.

特開平7ー269409号公報JP-A-7-269409

本発明は、前記問題に鑑みてなされたもので、車載用の電子制御装置のIC間のデータ通信において、タイムラグが少なく精度の良い通信異常検出を行うことを課題としている。   The present invention has been made in view of the above problems, and an object of the present invention is to perform communication abnormality detection with a small time lag and high accuracy in data communication between ICs of an on-vehicle electronic control device.

前記課題を解決するため、本発明は、車載機器のスイッチのオンオフ検知信号を受信する通信インターフェースを備えた送信側ICと、該送信側ICから前記オンオフ検知信号を配線を介して受信する受信側ICとを備え、前記受信側ICが受信するオンオフ検知信号の異常チェック機能を備えた車載用の電子制御装置であって、
前記送信側ICの通信インターフェースは、受信するスイッチのオンオフ検知信号毎に割り当てたビットを備えた入力ラッチ部と、該入力ラッチ部と各ビットからオンオフ検知信号を受信するビットを備えると共に受信したオンオフ検知信号を前記受信側ICに前記配線を介して順次シリアル通信で送信するレジスタ部とを備え、
さらに、前記送信側ICは、
前記レジスタ部と前記受信側ICとを接続する前記配線から分岐した分岐線と接続されると共に前記入力ラッチ部と接続される比較部と、
前記入力ラッチ部の各ビットと接続し、前記入力ラッチ部から出力されたオンオフ検知信号を各スイッチ毎に切り替えて前記比較部に入力する切替部とを備え、
前記比較部で、前記配線側に出力された前記オンオフ検知信号と前記入力ラッチ部からビット毎に出力されたオンオフ検知信号とを比較し、一致していないビットはエラービットとして判定していることを特徴とする車載用の電子制御装置を提供している。
In order to solve the above problems, the present invention provides a transmission side IC having a communication interface that receives an on / off detection signal of a switch of an in-vehicle device, and a reception side that receives the on / off detection signal from the transmission side IC via a wiring. An on-vehicle electronic control device having an on-off detection signal abnormality check function received by the receiving side IC,
The communication interface of the transmission side IC includes an input latch unit having a bit assigned for each on / off detection signal of a switch to be received, a bit for receiving an on / off detection signal from the input latch unit and each bit, and the received on / off A register unit that sequentially transmits a detection signal to the reception-side IC through the wiring via serial communication;
Furthermore, the transmitting side IC
A comparison unit connected to the branch line branched from the wiring connecting the register unit and the receiving side IC and connected to the input latch unit;
A switching unit that connects to each bit of the input latch unit, and switches the on / off detection signal output from the input latch unit for each switch and inputs the switch to the comparison unit;
The comparison unit compares the on / off detection signal output to the wiring side with the on / off detection signal output for each bit from the input latch unit, and determines that the bit does not match as an error bit. An in-vehicle electronic control device is provided.

前記構成によれば、通信インターフェースである送信側ICから受信側ICにスイッチのオンオフ検知信号を送信する際にノイズが混入して通信異常が発生しているか否かを検知するために、送信側ICから受信側ICに送信されるオンオフ検知信号と、通信インターフェースの入力ラッチ部にスイッチから入力されたオンオフ検知信号とを比較している。これらのオンオフ検知信号が一致していない場合は、スイッチのオンオフ検知信号に異常が発生していると判定している。
このように、送信側ICから受信側ICに送信されるオンオフ検知信号を、スイッチから直接入力されノイズが混入している可能性が最も少ない入力ラッチ部に記憶されたオンオフ検知信号と比較することで、送信側ICから受信側ICに送信されるオンオフ検知信号の通信異常を精度良く検知することができる。
According to the above configuration, in order to detect whether or not a communication abnormality has occurred due to noise mixing when transmitting a switch on / off detection signal from the transmission side IC, which is a communication interface, to the reception side IC, The on / off detection signal transmitted from the IC to the receiving side IC is compared with the on / off detection signal input from the switch to the input latch portion of the communication interface. If these on / off detection signals do not match, it is determined that an abnormality has occurred in the on / off detection signal of the switch.
In this way, the on / off detection signal transmitted from the transmission side IC to the reception side IC is compared with the on / off detection signal stored in the input latch unit that is directly input from the switch and is least likely to be mixed with noise. Thus, it is possible to accurately detect the communication abnormality of the on / off detection signal transmitted from the transmission side IC to the reception side IC.

また、通信インターフェースのレジスタ部がオンオフ検知信号を受信側ICに送信するタイミングで通信異常の判定を行うため、通信異常判定が1サイクル遅れる等のタイムラグの発生を防ぐことができる。   In addition, since the communication interface register unit performs communication abnormality determination at the timing when the on / off detection signal is transmitted to the reception-side IC, it is possible to prevent occurrence of a time lag such as a communication abnormality determination being delayed by one cycle.

前記入力ラッチ部は、前記比較部から出力される判定結果を記憶するエラービットを備え、該エラービットの判定結果をレジスタ部に送り、前記レジスタ部は該判定結果を前記マイコンに送信していることが好ましい。   The input latch unit includes an error bit for storing a determination result output from the comparison unit, and transmits the determination result of the error bit to the register unit, and the register unit transmits the determination result to the microcomputer. It is preferable.

前記構成によれば、マイコンは、送信側ICから受信側ICに送信されるスイッチのオンオフ検知信号の通信異常の判定結果を得るため、通信異常である場合には再送要求等のエラー処理を行うことができる。   According to the above configuration, the microcomputer performs error processing such as a retransmission request when there is a communication abnormality in order to obtain a communication abnormality determination result of the switch on / off detection signal transmitted from the transmission side IC to the reception side IC. be able to.

前記比較部と前記入力ラッチ部のエラービットの間に異常判定結果を保持する保持部を備えていることが好ましい。
複数のスイッチが接続されている場合に、送信側ICのレジスタ部は接続された全てのスイッチのオンオフ検知信号を順に受信側ICに送信する。このとき、複数のオンオフ検知信号のうち一つでも通信異常が発生している場合には、保持部により該通信異常の判定結果を保持し、通信異常が発生していると判定する。
It is preferable that a holding unit for holding an abnormality determination result is provided between error bits of the comparison unit and the input latch unit.
When a plurality of switches are connected, the register unit of the transmission side IC sequentially transmits on / off detection signals of all the connected switches to the reception side IC. At this time, if any one of the plurality of on / off detection signals has a communication abnormality, the holding unit holds the determination result of the communication abnormality and determines that a communication abnormality has occurred.

前記送信側ICと受信側ICは同一ハウジング内に収容した同一プリント基板上に搭載し、該プリント基板上の導体を前記比較部と接続した分岐線を有する配線とし、または別体のプリント基板上に搭載し、これらプリント基板上の導体および導体間を接続するジャンパー線を前記比較部と接続した分岐線を有する配線としていることが好ましい。   The transmission side IC and the reception side IC are mounted on the same printed circuit board accommodated in the same housing, and the conductor on the printed circuit board is a wiring having a branch line connected to the comparison unit, or on a separate printed circuit board It is preferable that the wiring on the printed circuit board and the jumper wire connecting between the conductors have a branch line connected to the comparison portion.

前記送信側ICと受信側ICとは別体のハウジング内に収容したプリント基板上に搭載し、該プリント基板上の導体および導体同士を接続する電線を前記比較部と接続した分岐線を有する配線としていてもよい。   The transmission side IC and the reception side IC are mounted on a printed circuit board housed in a separate housing, and have a branch line in which a conductor on the printed circuit board and a wire connecting the conductors are connected to the comparison unit It may be.

前記送信側ICの通信インターフェースと接続するスイッチは、ドアロックスイッチ、アンロックスイッチ、ヘッドライトスイッチ、サンルーフスイッチ、ワイパスイッチ、エアコンスイッチの少なくとも1つであり、乗員が操作するものである。
これらのスイッチが接続される電子制御装置は、シールドのない樹脂ケース内に収容されていることが多く導線にノイズが混入しやすいため、通信異常の判定が必要とされるからである。
The switch connected to the communication interface of the transmitting side IC is at least one of a door lock switch, an unlock switch, a headlight switch, a sunroof switch, a wiper switch, and an air conditioner switch, and is operated by a passenger.
This is because an electronic control device to which these switches are connected is often housed in a resin case without a shield, and noise is likely to be mixed into the conductive wire, so that it is necessary to determine a communication abnormality.

前述したように、本発明の車載用の電子制御装置によれば、送信側ICから受信側ICに送信されるオンオフ検知信号を、スイッチから直接入力されノイズが混入している可能性が最も少ない入力ラッチ部に記憶されたオンオフ検知信号と比較することで、送信側ICから受信側ICに送信されるオンオフ検知信号の通信異常を精度良く検知することができる。
また、通信インターフェースのレジスタ部がオンオフ検知信号を受信側ICに送信するタイミングで通信異常の判定を行うため、通信異常判定が1サイクル遅れる等のタイムラグの発生を防ぐことができる。
As described above, according to the on-vehicle electronic control device of the present invention, the on / off detection signal transmitted from the transmission side IC to the reception side IC is directly input from the switch, and the possibility that noise is mixed is the least. By comparing with the on / off detection signal stored in the input latch unit, it is possible to accurately detect the communication abnormality of the on / off detection signal transmitted from the transmission side IC to the reception side IC.
In addition, since the communication interface register unit performs communication abnormality determination at the timing when the on / off detection signal is transmitted to the reception-side IC, it is possible to prevent occurrence of a time lag such as a communication abnormality determination being delayed by one cycle.

図1及び図2に本発明の第1実施形態を示す。
図1に示すように、本発明の車載用の電子制御装置(ECU)10は、車載機器のスイッチ11のオンオフ検知信号を受信する送信側ICを構成する通信インターフェース20と、該送信側ICからオンオフ検知信号を配線を介して受信する受信側ICを構成するマイコン30とを備えている。
1 and 2 show a first embodiment of the present invention.
As shown in FIG. 1, an on-vehicle electronic control unit (ECU) 10 of the present invention includes a communication interface 20 that constitutes a transmission-side IC that receives an on / off detection signal of a switch 11 of an on-vehicle device, and the transmission-side IC. And a microcomputer 30 constituting a receiving side IC that receives an on / off detection signal via a wiring.

通信インターフェース20とマイコン30は同一ハウジング内に収容した同一プリント基板12上に搭載し、プリント基板12上の導体13により接続しており、該導体13を介して通信インターフェース20で受信したスイッチ11のオンオフ検知信号をマイコン30に送信している。また、該プリント基板12上の導体13の分岐点から分岐線14を延在させ、該分岐線14を再び通信インターフェース20と接続しており、分岐点はマイコン30になるべく近い位置としている。
ECU10は該導体13から入るノイズによって生じる通信異常のチェックを行っている。
The communication interface 20 and the microcomputer 30 are mounted on the same printed circuit board 12 accommodated in the same housing, and are connected by a conductor 13 on the printed circuit board 12, and the switch 11 received by the communication interface 20 through the conductor 13. An on / off detection signal is transmitted to the microcomputer 30. Further, the branch line 14 extends from the branch point of the conductor 13 on the printed circuit board 12, and the branch line 14 is connected to the communication interface 20 again. The branch point is located as close as possible to the microcomputer 30.
The ECU 10 checks a communication abnormality caused by noise entering from the conductor 13.

通信インターフェース20は、入力ラッチ部21と、レジスタ部22と、比較部23と、切替部24と、保持部25を備えている。
入力ラッチ部21の各ビットは、受信するスイッチ11のオンオフ検知信号毎に割り当てている。また、最終ビットをエラービット21aとし、比較部23から出力される判定結果を記憶している。本実施形態では入力ラッチ部21には24個のビットを備え、1ビットから23ビット目までを各スイッチ11と接続してオンオフ検知信号を受信し、24ビット目をエラービット21aとしている。
The communication interface 20 includes an input latch unit 21, a register unit 22, a comparison unit 23, a switching unit 24, and a holding unit 25.
Each bit of the input latch unit 21 is assigned for each on / off detection signal of the switch 11 to be received. In addition, the final bit is the error bit 21a, and the determination result output from the comparison unit 23 is stored. In this embodiment, the input latch unit 21 has 24 bits, and the 1st to 23rd bits are connected to each switch 11 to receive an on / off detection signal, and the 24th bit is used as an error bit 21a.

レジスタ部22は、入力ラッチ部21の各ビットからオンオフ検知信号を受信するビットを備えており、受信したオンオフ検知信号をマイコン30に導線13を介して順次シリアル通信で送信するシフトレジスタである。
比較部23は、入力ラッチ部21から各ビットに出力されたオンオフ検知信号(第1オンオフ検知信号S1と称す)と、レジスタ部22がマイコン30に送信するオンオフ検知信号であって、レジスタ部22とマイコン30とを接続する配線から分岐した分岐線14を介して入力するオンオフ検知信号(第2オンオフ検知信号S2と称す)とを入力信号として比較している。第1オンオフ検知信号S1と第2オンオフ検知信号S2が一致する場合は通信は正常であり、第1オンオフ検知信号S1と第2オンオフ検知信号S2が異なる場合は通信が異常であると判断して、異常判定結果を保持部25を介してエラービット21aに出力している。
The register unit 22 includes a bit that receives an on / off detection signal from each bit of the input latch unit 21, and is a shift register that sequentially transmits the received on / off detection signal to the microcomputer 30 via the conductor 13 through serial communication.
The comparison unit 23 is an on / off detection signal (referred to as a first on / off detection signal S1) output to each bit from the input latch unit 21 and an on / off detection signal transmitted from the register unit 22 to the microcomputer 30. And an on / off detection signal (referred to as a second on / off detection signal S2) input via a branch line 14 branched from a wiring connecting the microcomputer 30 and the microcomputer 30 as an input signal. When the first on / off detection signal S1 and the second on / off detection signal S2 match, the communication is normal, and when the first on / off detection signal S1 and the second on / off detection signal S2 are different, it is determined that the communication is abnormal. The abnormality determination result is output to the error bit 21a via the holding unit 25.

切替部24は入力ラッチ部21の各ビットと接続すると共に比較部23と接続しており、入力ラッチ部21から出力されたオンオフ検知信号を各スイッチ11毎に切り替えて比較部23に入力している。
また、保持部25は比較部23と入力ラッチ部21のエラービット21aの間に介在しており、比較部23からの異常判定結果を保持してエラービット21aに入力している。保持部25は、例えばD?F/F回路(フリップフロップ回路)で構成している。
The switching unit 24 is connected to each bit of the input latch unit 21 and is also connected to the comparison unit 23. The on / off detection signal output from the input latch unit 21 is switched for each switch 11 and input to the comparison unit 23. Yes.
The holding unit 25 is interposed between the comparison unit 23 and the error bit 21a of the input latch unit 21, holds the abnormality determination result from the comparison unit 23, and inputs it to the error bit 21a. The holding unit 25 is configured by, for example, a D? F / F circuit (flip-flop circuit).

通信インターフェース20の入力ラッチ部21と接続される車載機器のスイッチ11は、例えば、ドアロックスイッチ、アンロックスイッチ、ヘッドライトスイッチ、サンルーフスイッチ、ワイパスイッチ、エアコンスイッチであり、乗員が操作するものである。
またスイッチ11はバッテリ及び抵抗と接続しており、バッテリ及び抵抗によりスイッチ11のオンオフ検知信号を発生させて通信インターフェース20の入力ラッチ部21に入力している。
The on-vehicle equipment switch 11 connected to the input latch portion 21 of the communication interface 20 is, for example, a door lock switch, an unlock switch, a headlight switch, a sunroof switch, a wiper switch, or an air conditioner switch, which is operated by a passenger. is there.
The switch 11 is connected to a battery and a resistor, and an on / off detection signal of the switch 11 is generated by the battery and the resistor and input to the input latch portion 21 of the communication interface 20.

マイコン30はFET15と接続しており、マイコン30がサンプリング信号をFET15に送信している。サンプリング信号がFET15に入力されている間は、スイッチ11のオンオフによりオンオフ検知信号が発生する状態としている。
また、マイコン30は通信インターフェース20に通信許可信号を送信しており、該信号が通信インターフェース20に送信されることで、マイコン30と通信インターフェース20間のオンオフ検知信号の通信を開始している。
さらに、マイコン30は通信インターフェース20に通信クロック信号を送信している。該通信クロック信号が「1」または「0」になるタイミングに基づいて、レジスタ部22はマイコン30にオンオフ検知信号を出力している。
The microcomputer 30 is connected to the FET 15, and the microcomputer 30 transmits a sampling signal to the FET 15. While the sampling signal is input to the FET 15, an on / off detection signal is generated by the on / off of the switch 11.
The microcomputer 30 transmits a communication permission signal to the communication interface 20, and the communication of the on / off detection signal between the microcomputer 30 and the communication interface 20 is started by transmitting the signal to the communication interface 20.
Further, the microcomputer 30 transmits a communication clock signal to the communication interface 20. The register unit 22 outputs an on / off detection signal to the microcomputer 30 based on the timing when the communication clock signal becomes “1” or “0”.

次に、本発明のECU10の動作について、図2のタイミングチャートの例を用いて説明する。
まず、タイミング1では、マイコン30がバッテリにサンプリング信号を送信し、スイッチ11のオンオフによりオンオフ検知信号が発生する状態としている。このとき、入力ラッチ部21の各ビットにはスイッチ11のオンオフ検知信号がスイッチ11側から入力され、レジスタ部22に送られる。
タイミング2では、マイコン30は通信許可信号を通信インターフェース20に送信し、マイコン30と通信インターフェース20間のシリアル通信の許可を出している。
Next, operation | movement of ECU10 of this invention is demonstrated using the example of the timing chart of FIG.
First, at timing 1, the microcomputer 30 transmits a sampling signal to the battery, and an on / off detection signal is generated when the switch 11 is turned on / off. At this time, an ON / OFF detection signal of the switch 11 is input from the switch 11 side to each bit of the input latch unit 21 and is sent to the register unit 22.
At timing 2, the microcomputer 30 transmits a communication permission signal to the communication interface 20 to give permission for serial communication between the microcomputer 30 and the communication interface 20.

タイミング3は、マイコン30が送信する通信クロック信号の立ち下がりのタイミングであり、レジスタ部22の1ビット目のオンオフ検知信号がマイコン30に送られる。同時に、切替部24を切り替えて入力ラッチ部21の1ビット目の第1オンオフ検知信号S1が比較部23に送られ、かつ、レジスタ部22がマイコン30に送った1ビット目の第2オンオフ検知信号S2が導体13の分岐線14を介して比較部23に送られる。
タイミング4は、マイコン30が送信する通信クロック信号の立ち上がりのタイミングであり、比較部23は第1オンオフ検知信号S1と第2オンオフ検知信号S2を比較している。第1オンオフ検知信号S1と第2オンオフ検知信号S2が同じである場合は、比較部23は通信異常は発生していないものとして、例えば「1」を出力し、保持部25を介してエラービット21aに書き込む。
Timing 3 is the falling timing of the communication clock signal transmitted by the microcomputer 30, and the on / off detection signal of the first bit of the register unit 22 is sent to the microcomputer 30. At the same time, the switching unit 24 is switched to send the first on / off detection signal S1 of the first bit of the input latch unit 21 to the comparison unit 23, and the second on / off detection of the first bit sent from the register unit 22 to the microcomputer 30. The signal S2 is sent to the comparison unit 23 via the branch line 14 of the conductor 13.
Timing 4 is the rising timing of the communication clock signal transmitted by the microcomputer 30, and the comparison unit 23 compares the first on / off detection signal S1 and the second on / off detection signal S2. When the first on / off detection signal S1 and the second on / off detection signal S2 are the same, the comparison unit 23 outputs, for example, “1”, assuming that no communication abnormality has occurred, and an error bit via the holding unit 25. Write to 21a.

タイミング5において、レジスタ部22の2ビット目のオンオフ検知信号がマイコン30に送られると同時に、切替部24を切り替えて入力ラッチ部21の2ビット目の第1オンオフ検知信号S1が比較部23に送られる。
タイミング6では、比較部23は第1オンオフ検知信号S1と第2オンオフ検知信号S2を比較している。図2の例では、第1オンオフ検知信号S1と第2オンオフ検知信号S2が異なっているので、比較部23は「0」を出力し、保持部25を介してエラービット21aに書き込む。
At timing 5, the second bit on / off detection signal of the register unit 22 is sent to the microcomputer 30, and at the same time, the switching unit 24 is switched and the second on / off detection signal S 1 of the input latch unit 21 is sent to the comparison unit 23. Sent.
At timing 6, the comparison unit 23 compares the first on / off detection signal S1 and the second on / off detection signal S2. In the example of FIG. 2, since the first on / off detection signal S1 and the second on / off detection signal S2 are different, the comparison unit 23 outputs “0” and writes the error bit 21a via the holding unit 25.

タイミング7では、レジスタ部22の3ビット目のオンオフ検知信号がマイコン30に送られると同時に、切替部24を切り替えて入力ラッチ部21の3ビット目の第1オンオフ検知信号S1が比較部23に送られる。
タイミング8では、比較部23が第1オンオフ検知信号S1と第2オンオフ検知信号S2を比較している。図2の例では、第1オンオフ検知信号S1と第2オンオフ検知信号S2が同じであるため、比較部23は「1」を保持部25に出力する。しかし、タイミング6で保持部25は「0」を一度出力しており、保持部25は一旦「0」を出力すると、入力ラッチ部21の全スイッチ11のオンオフ検知信号をマイコン30に送信し終わるまでは出力を「0」に保持するため、エラービット21aの値は「0」を保っている。
At timing 7, the on / off detection signal of the third bit of the register unit 22 is sent to the microcomputer 30, and at the same time, the switching unit 24 is switched and the first on / off detection signal S 1 of the third bit of the input latch unit 21 is sent to the comparison unit 23. Sent.
At timing 8, the comparison unit 23 compares the first on / off detection signal S1 and the second on / off detection signal S2. In the example of FIG. 2, since the first on / off detection signal S <b> 1 and the second on / off detection signal S <b> 2 are the same, the comparison unit 23 outputs “1” to the holding unit 25. However, the holding unit 25 outputs “0” once at timing 6, and once the holding unit 25 outputs “0”, the transmission of the on / off detection signals of all the switches 11 of the input latch unit 21 to the microcomputer 30 is completed. Since the output is held at “0” until then, the value of the error bit 21a is kept at “0”.

このように、入力ラッチ部21が全てのスイッチ11のオンオフ検知信号をレジスタ部22に送った後、最後にエラービット21aの値、即ち通信異常の判定結果をレジスタ部22に送っており、レジスタ部22は該判定結果をマイコン30に送信している。
マイコン30は該判定結果に基づき、通信インターフェース20に対するオンオフ検知信号の再送要求等の処理を行う。
As described above, after the input latch unit 21 sends the on / off detection signals of all the switches 11 to the register unit 22, the value of the error bit 21 a, that is, the determination result of the communication abnormality is finally sent to the register unit 22. The unit 22 transmits the determination result to the microcomputer 30.
The microcomputer 30 performs processing such as a request for retransmission of the on / off detection signal to the communication interface 20 based on the determination result.

本発明によれば、通信インターフェース20からマイコン30に送信されるオンオフ検知信号を、スイッチ11から直接入力されノイズが混入している可能性が最も少ない入力ラッチ部21に記憶されたオンオフ検知信号と比較することで、通信インターフェース20からマイコン30に送信されるオンオフ検知信号の通信異常を精度良く検知することができる。
また、通信インターフェース20のレジスタ部22がオンオフ検知信号を受信側ICに送信するタイミングで通信異常の判定を行うため、通信異常判定が1サイクル遅れる等のタイムラグの発生を防ぐことができる。
According to the present invention, the on / off detection signal transmitted from the communication interface 20 to the microcomputer 30 is directly input from the switch 11 and stored in the input latch unit 21 with the least possibility of noise being mixed. By comparing, it is possible to accurately detect the communication abnormality of the on / off detection signal transmitted from the communication interface 20 to the microcomputer 30.
Further, since the register 22 of the communication interface 20 determines the communication abnormality at the timing when the on / off detection signal is transmitted to the receiving side IC, it is possible to prevent the occurrence of a time lag such as the communication abnormality determination being delayed by one cycle.

図3に本発明の第2実施形態を示す。
第2実施形態においては、通信インターフェース20とマイコン30を別体のプリント基板12a、12b上に搭載し、これらプリント基板12上の導体13および導体13間を接続するジャンパー線を比較部23と接続した分岐線14を有する配線としている。
本発明によっても、通信インターフェース20からマイコン30に送信されるオンオフ検知信号の通信異常を精度良く検知することができる。
なお、別体のプリント基板12は、同一ハウジング内に収容していてもよく、別体のハウジング内に収容していてもよい。
なお、他の構成および作用効果は第1実施形態と同様のため、同一の符号を付して説明を省略する。
FIG. 3 shows a second embodiment of the present invention.
In the second embodiment, the communication interface 20 and the microcomputer 30 are mounted on separate printed circuit boards 12a and 12b, and the conductor 13 on the printed circuit board 12 and the jumper wire connecting the conductors 13 are connected to the comparison unit 23. The wiring has the branched line 14.
Also according to the present invention, it is possible to accurately detect a communication abnormality in an on / off detection signal transmitted from the communication interface 20 to the microcomputer 30.
In addition, the separate printed circuit board 12 may be accommodated in the same housing, or may be accommodated in a separate housing.
In addition, since another structure and an effect are the same as that of 1st Embodiment, the same code | symbol is attached | subjected and description is abbreviate | omitted.

本発明である車載用の電子制御装置の第1実施形態を示す構成図である。It is a block diagram which shows 1st Embodiment of the vehicle-mounted electronic control apparatus which is this invention. 電子制御装置の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of an electronic control apparatus. 車載用の電子制御装置の第2実施形態を示す構成図である。It is a block diagram which shows 2nd Embodiment of the vehicle-mounted electronic control apparatus.

符号の説明Explanation of symbols

10 電子制御装置(ECU)
11 車載機器のスイッチ
12 プリント基板
13 導体
14 分岐線
20 通信インターフェース
21 入力ラッチ部
21a エラービット
22 レジスタ部
23 比較部
24 切替部
25 保持部
30 マイコン
S1 第1オンオフ検知信号
S2 第2オンオフ検知信号
10 Electronic control unit (ECU)
DESCRIPTION OF SYMBOLS 11 Switch 12 of vehicle equipment Printed circuit board 13 Conductor 14 Branch line 20 Communication interface 21 Input latch part 21a Error bit 22 Register part 23 Comparison part 24 Switching part 25 Holding part 30 Microcomputer S1 1st on-off detection signal S2 2nd on-off detection signal

Claims (6)

車載機器のスイッチのオンオフ検知信号を受信する通信インターフェースを備えた送信側ICと、該送信側ICから前記オンオフ検知信号を配線を介して受信する受信側ICとを備え、前記受信側ICが受信するオンオフ検知信号の異常チェック機能を備えた車載用の電子制御装置であって、
前記送信側ICの通信インターフェースは、受信するスイッチのオンオフ検知信号毎に割り当てたビットを備えた入力ラッチ部と、該入力ラッチ部と各ビットからオンオフ検知信号を受信するビットを備えると共に受信したオンオフ検知信号を前記受信側ICに前記配線を介して順次シリアル通信で送信するレジスタ部とを備え、
さらに、前記送信側ICは、
前記レジスタ部と前記受信側ICとを接続する前記配線から分岐した分岐線と接続されると共に前記入力ラッチ部と接続される比較部と、
前記入力ラッチ部の各ビットと接続し、前記入力ラッチ部から出力されたオンオフ検知信号を各スイッチ毎に切り替えて前記比較部に入力する切替部とを備え、
前記比較部で、前記配線側に出力された前記オンオフ検知信号と前記入力ラッチ部からビット毎に出力されたオンオフ検知信号とを比較し、一致していないビットはエラービットとして判定していることを特徴とする車載用の電子制御装置。
A transmission side IC having a communication interface for receiving an on / off detection signal of a switch of an in-vehicle device, and a reception side IC for receiving the on / off detection signal from the transmission side IC via a wiring, the reception side IC receiving An on-vehicle electronic control device equipped with an on / off detection signal abnormality check function,
The communication interface of the transmission side IC includes an input latch unit having a bit assigned for each on / off detection signal of a switch to be received, a bit for receiving an on / off detection signal from the input latch unit and each bit, and the received on / off A register unit that sequentially transmits a detection signal to the reception-side IC through the wiring via serial communication;
Furthermore, the transmitting side IC
A comparison unit connected to the branch line branched from the wiring connecting the register unit and the receiving side IC and connected to the input latch unit;
A switching unit that connects to each bit of the input latch unit, and switches the on / off detection signal output from the input latch unit for each switch and inputs the switch to the comparison unit;
The comparison unit compares the on / off detection signal output to the wiring side with the on / off detection signal output for each bit from the input latch unit, and determines that the bit does not match as an error bit. An on-vehicle electronic control device characterized by the above.
前記入力ラッチ部は、前記比較部から出力される判定結果を記憶するエラービットを備え、該エラービットの判定結果をレジスタ部に送り、前記レジスタ部は該判定結果を前記マイコンに送信している請求項1に記載の車載用の電子制御装置。   The input latch unit includes an error bit for storing a determination result output from the comparison unit, and transmits the determination result of the error bit to the register unit, and the register unit transmits the determination result to the microcomputer. The in-vehicle electronic control device according to claim 1. 前記比較部と前記入力ラッチ部のエラービットの間に異常判定結果を保持する保持部を備えている請求項1または請求項2に記載の車載用の電子制御装置。   The in-vehicle electronic control device according to claim 1, further comprising a holding unit that holds an abnormality determination result between error bits of the comparison unit and the input latch unit. 前記送信側ICと受信側ICは同一ハウジング内に収容した同一プリント基板上に搭載し、該プリント基板上の導体を前記比較部と接続した分岐線を有する配線とし、または別体のプリント基板上に搭載し、これらプリント基板上の導体および導体間を接続するジャンパー線を前記比較部と接続した分岐線を有する配線としている請求項1乃至請求項3のいずれか1項に記載の車載用の電子制御装置。   The transmission side IC and the reception side IC are mounted on the same printed circuit board accommodated in the same housing, and the conductor on the printed circuit board is a wiring having a branch line connected to the comparison unit, or on a separate printed circuit board 4. The vehicle-mounted device according to claim 1, wherein the wiring on the printed circuit board is a wiring having a branch line connecting the conductor and a jumper line connecting the conductors to the comparison unit. 5. Electronic control device. 前記送信側ICと受信側ICとは別体のハウジング内に収容したプリント基板上に搭載し、該プリント基板上の導体および導体同士を接続する電線を前記比較部と接続した分岐線を有する配線としている請求項1乃至請求項3のいずれか1項に記載の車載用の電子制御装置。   The transmission side IC and the reception side IC are mounted on a printed circuit board housed in a separate housing, and have a branch line in which a conductor on the printed circuit board and a wire connecting the conductors are connected to the comparison unit The on-vehicle electronic control device according to any one of claims 1 to 3. 前記送信側ICの通信インターフェースと接続するスイッチは、ドアロックスイッチ、アンロックスイッチ、ヘッドライトスイッチ、サンルーフスイッチ、ワイパスイッチ、エアコンスイッチから選択される少なくとも1種以上であり、乗員が操作するものである請求項1乃至請求項5のいずれか1項に記載の車載用の電子制御装置。   The switch connected to the communication interface of the transmission side IC is at least one selected from a door lock switch, an unlock switch, a headlight switch, a sunroof switch, a wiper switch, and an air conditioner switch, and is operated by a passenger. The vehicle-mounted electronic control apparatus of any one of Claims 1 thru | or 5.
JP2008102946A 2008-04-10 2008-04-10 On-vehicle electronic control apparatus Withdrawn JP2009248938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008102946A JP2009248938A (en) 2008-04-10 2008-04-10 On-vehicle electronic control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008102946A JP2009248938A (en) 2008-04-10 2008-04-10 On-vehicle electronic control apparatus

Publications (1)

Publication Number Publication Date
JP2009248938A true JP2009248938A (en) 2009-10-29

Family

ID=41310018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008102946A Withdrawn JP2009248938A (en) 2008-04-10 2008-04-10 On-vehicle electronic control apparatus

Country Status (1)

Country Link
JP (1) JP2009248938A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210072378A (en) * 2019-12-09 2021-06-17 현대오트론 주식회사 Driver system of vehicle with feedback logic and operation method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210072378A (en) * 2019-12-09 2021-06-17 현대오트론 주식회사 Driver system of vehicle with feedback logic and operation method thereof
KR102379558B1 (en) 2019-12-09 2022-03-28 현대모비스 주식회사 Driver system of vehicle with feedback logic and operation method thereof

Similar Documents

Publication Publication Date Title
US7883107B2 (en) Air bag control apparatus
CN109714072B (en) Electronic control device, communication management method, and non-transitory storage medium
CN1773071A (en) Remote-controlled in-vehicle device
US8719650B2 (en) Self-diagnosis system and test circuit determination method
US20090210171A1 (en) Monitoring device and monitoring method for a sensor, and sensor
EP2600251B1 (en) Debug system, electronic control unit, information processing unit, semiconductor package, and transceiver circuit
JP2006513471A (en) Memory access error detection and / or correction method and electronic circuit configuration for performing the method
JP2009248938A (en) On-vehicle electronic control apparatus
US9065560B2 (en) Method for checking the operation of a PSI5 reception unit in a motor vehicle controller, and corresponding PSI5 reception unit
JP2013071611A (en) Vehicle data setting system and output setting method thereof
JP2014232351A (en) Semiconductor data processing device and degradation determination control method
US20240013648A1 (en) Ground short failure detection device and node device
KR102001420B1 (en) Electronic Control Unit, Communication Security System and Method for Vehicle
JP2011178237A (en) Signal input device and on-vehicle processing system
US8965735B2 (en) Signal processing device
JP6768887B2 (en) Circuit equipment
US7831897B2 (en) Data transmission path including a device for checking the data integrity
JP2011121545A (en) On-vehicle control device
KR20140030159A (en) Control device having a digital interface
JP7535002B2 (en) In-vehicle electronic system, vehicle, control method, and program
JPH07210237A (en) Self-diagnostic device for on-vehicle electronic control circuit
US20230063924A1 (en) Primary check system
JPH11338594A (en) Defective contact detecting circuit
KR101876356B1 (en) Error detection circuit, vehicle electronic control system having the same, and operating method thereof
JP2017126858A (en) Electronic controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110705