[go: up one dir, main page]

JP7582074B2 - Anomaly detection device - Google Patents

Anomaly detection device Download PDF

Info

Publication number
JP7582074B2
JP7582074B2 JP2021093231A JP2021093231A JP7582074B2 JP 7582074 B2 JP7582074 B2 JP 7582074B2 JP 2021093231 A JP2021093231 A JP 2021093231A JP 2021093231 A JP2021093231 A JP 2021093231A JP 7582074 B2 JP7582074 B2 JP 7582074B2
Authority
JP
Japan
Prior art keywords
switch
microcomputer
abnormality
shift
contact
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.)
Active
Application number
JP2021093231A
Other languages
Japanese (ja)
Other versions
JP2022185496A (en
Inventor
泰広 久世
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
Original Assignee
Toyota Motor 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 filed Critical Toyota Motor Corp
Priority to JP2021093231A priority Critical patent/JP7582074B2/en
Publication of JP2022185496A publication Critical patent/JP2022185496A/en
Application granted granted Critical
Publication of JP7582074B2 publication Critical patent/JP7582074B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Transmission Device (AREA)
  • Debugging And Monitoring (AREA)

Description

本発明は、異常判定装置に関する。 The present invention relates to an abnormality determination device.

特許文献1には、車両用制御装置がシフトレンジの変更を制御するうえで、メインマイコンによる演算結果とサブマイコンによる演算結果とを用いて、シフトレンジの変更制御が正常に行われているか否かを判定することが開示されている。 Patent document 1 discloses that a vehicle control device uses the results of calculations by a main microcomputer and a sub-microcomputer to determine whether or not the shift range change control is being performed normally when controlling the shift range change.

特開2013-23859号公報JP 2013-23859 A

特許文献1に記載の構成では、メインマイコンで演算した制御用シフトレンジと、サブマイコンで演算した比較用シフトレンジとが一致しているか否かを判定する。しかしながら、メインマイコンとサブマイコンとは必ずしも同一の演算周期で処理を実行するとは限らない。そのため、各マイコンの演算周期のずれに起因して、比較用シフトレンジが変化しないときに制御用シフトレンジだけが切り替わることや、制御用シフトレンジが変化しないときに比較用シフトレンジだけが切り替わることが起こりえる。つまり、各マイコンからは正常と判断した演算結果が出力されるものの、演算周期の違いによってその出力タイミングがずれてしまい制御用シフトレンジと比較用シフトレンジとが一致しないと判定された場合には、異常が発生していると誤判定される虞がある。 In the configuration described in Patent Document 1, it is determined whether the control shift range calculated by the main microcomputer and the comparison shift range calculated by the sub-microcomputer match. However, the main microcomputer and the sub-microcomputer do not necessarily execute processing at the same calculation cycle. Therefore, due to a difference in the calculation cycle of each microcomputer, it is possible that only the control shift range switches when the comparison shift range does not change, or that only the comparison shift range switches when the control shift range does not change. In other words, although each microcomputer outputs a calculation result that is determined to be normal, if the output timing is shifted due to differences in the calculation cycle and it is determined that the control shift range and the comparison shift range do not match, there is a risk of it being erroneously determined that an abnormality has occurred.

本発明は、上記事情に鑑みてなされたものであって、車両のシフトレンジを変更する制御を監視する際に異常との誤判定が発生することを抑制することができる異常判定装置を提供することを目的とする。 The present invention was made in consideration of the above circumstances, and aims to provide an abnormality determination device that can suppress the occurrence of erroneous abnormality determinations when monitoring control that changes the vehicle's shift range.

本発明は、車両のシフトレンジを変更するためのスイッチが操作された際に前記スイッチの操作に応じた制御をそれぞれに実行する第1マイコンおよび第2マイコンを備え、前記第1マイコンは、前記スイッチが操作された際に当該スイッチから入力される信号に基づいて、当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御を実行し、前記第2マイコンは、前記スイッチから入力される信号と前記第1マイコンから入力される信号とに基づいて、異常が発生したか否かを判定する監視制御を実行する異常判定装置であって、前記第2マイコンは、前記スイッチから入力される信号の入力状態が変化した場合、当該スイッチに対応するシフトレンジへの変更を許可する許可時間を設定し、前記入力状態が変化してから前記許可時間が経過するまでの間に、前記第1マイコンにより当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御が実行されたことを検知した場合、正常と判定し、前記入力状態が変化してから前記許可時間が経過した後に、前記第1マイコンにより当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御が実行されたことを検知した場合、異常と判定することを特徴とする。 The present invention is an abnormality determination device that includes a first microcomputer and a second microcomputer that each execute a control according to the operation of a switch for changing a shift range of a vehicle when the switch is operated, and the first microcomputer executes change control to switch the shift range to the shift range corresponding to the switch based on a signal input from the switch when the switch is operated, and the second microcomputer executes monitoring control to determine whether an abnormality has occurred based on the signal input from the switch and the signal input from the first microcomputer, and is characterized in that the second microcomputer sets an allowed time to allow a change to the shift range corresponding to the switch when the input state of the signal input from the switch changes, and determines that the system is normal when it detects that the first microcomputer has executed change control to switch the shift range to the shift range corresponding to the switch between the time when the input state changed and the time when the allowed time has elapsed, and determines that an abnormality has occurred when it detects that the first microcomputer has executed change control to switch the shift range to the shift range corresponding to the switch after the time when the input state changed.

この構成によれば、スイッチから第2マイコンに入力される信号の入力状態が変化してから許可時間が経過するまでの間に、第1マイコンにより当該スイッチに対応するシフトレンジへの変更制御が実行された場合には、第2マイコンは正常と判定することができる。このように許可時間を設けることによりその間に実施されるシフトレンジの変更は正常と判定されるため、第1マイコンの演算タイミングと第2マイコンの演算タイミングとにずれが生じる場合であっても、異常と誤判定されることを抑制することができる。 According to this configuration, if the first microcomputer executes control to change the shift range to the one corresponding to the switch between the time when the input state of the signal input from the switch to the second microcomputer changes and the time when the permission time has elapsed, the second microcomputer can be determined to be normal. By setting the permission time in this way, the change in the shift range executed during that time is determined to be normal, so that even if there is a discrepancy between the calculation timing of the first microcomputer and the calculation timing of the second microcomputer, it is possible to prevent a misjudgment of an abnormality.

また、前記第2マイコンは、前記スイッチから入力される信号の入力状態が変化していないときに、前記第1マイコンにより当該スイッチに対応するシフトレンジへと切り替える変更制御が実行されたことを検知した場合、異常と仮判定してもよい。 The second microcomputer may also provisionally determine that an abnormality has occurred if it detects that the first microcomputer has executed change control to switch to the shift range corresponding to the switch when the input state of the signal input from the switch has not changed.

この構成によれば、スイッチから第2マイコンに入力される信号の入力状態が変化する前に、第1マイコンにより当該スイッチに対応するシフトレンジへの変更制御が実行された場合には、第2マイコンは、異常との仮判定を行うことができる。 With this configuration, if the first microcomputer executes control to change the shift range to the one corresponding to the switch before the input state of the signal input from the switch to the second microcomputer changes, the second microcomputer can make a provisional determination that an abnormality has occurred.

また、前記第2マイコンは、前記異常と仮判定した場合、所定の猶予時間を設定し、前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化した場合、前記仮判定を取り消し、前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化しない場合、異常と判定してもよい。 The second microcomputer may also set a predetermined grace period when it has provisionally determined that an abnormality has occurred, and if the input state of the signal input from the switch changes between the time when it provisionally determined that an abnormality has occurred and the time when the grace period has elapsed, cancel the provisional determination, and if the input state of the signal input from the switch does not change between the time when it provisionally determined that an abnormality has occurred and the time when the grace period has elapsed, determine that an abnormality has occurred.

この構成によれば、仮判定後に所定の猶予時間を設けることにより、猶予時間が経過前の仮判定の取り消しと、猶予時間が経過後の異常判定の決定とが可能になる。これにより、誤判定の発生を抑制することができる。 According to this configuration, by providing a predetermined grace period after a provisional judgment, it is possible to cancel the provisional judgment before the grace period has elapsed and to determine an abnormality judgment after the grace period has elapsed. This makes it possible to prevent erroneous judgments from occurring.

本発明は、車両のシフトレンジを変更するためのスイッチが操作された際に前記スイッチの操作に応じた制御をそれぞれに実行する第1マイコンおよび第2マイコンを備え、前記第1マイコンは、前記スイッチが操作された際に当該スイッチから入力される信号に基づいて、当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御を実行し、前記第2マイコンは、前記スイッチから入力される信号と前記第1マイコンから入力される信号とに基づいて、異常が発生したか否かを判定する監視制御を実行する異常判定装置であって、前記スイッチは、ノーマルオープン型の接点とノーマルクローズ型の接点とを有し、各接点から出力される信号に応じて当該スイッチのオンとオフとを制御し、前記第2マイコンは、前記スイッチの各接点から入力される信号が全てオフである状態が所定時間以上継続した際に、当該スイッチの各接点から前記第1マイコンに入力される信号が全てオフであることを検知した場合には、当該スイッチと各マイコンとの間に設けられたワイヤハーネス、または当該スイッチに異常が生じていると判定し、前記スイッチから入力される信号が全てオフである状態が所定時間以上継続した際に、前記スイッチから前記第1マイコンに入力される信号が全てオフではないことを検知した場合、当該第2マイコンの入力回路に異常が生じていると判定することを特徴とする。 The present invention is an abnormality determination device that includes a first microcomputer and a second microcomputer that each execute a control according to the operation of a switch for changing a shift range of a vehicle when the switch is operated, and the first microcomputer executes a change control to switch the shift range to the shift range corresponding to the switch based on a signal input from the switch when the switch is operated, and the second microcomputer executes a monitoring control to determine whether an abnormality has occurred based on the signal input from the switch and the signal input from the first microcomputer, and the switch has a normally open contact and a normally closed contact, and a signal output from each contact is The switch is controlled to be turned on and off in response to a signal, and when the second microcomputer detects that all signals input from the contacts of the switch to the first microcomputer are off after the state in which all signals input from the contacts of the switch are off continues for a predetermined time or more, it determines that an abnormality has occurred in the wire harness provided between the switch and each microcomputer or in the switch, and when the second microcomputer detects that all signals input from the switch to the first microcomputer are not off after the state in which all signals input from the switch are off continues for a predetermined time or more, it determines that an abnormality has occurred in the input circuit of the second microcomputer.

この構成によれば、ノーマルオープン型の接点とノーマルクローズ型の接点のように特性の異なる接点を複数有するスイッチにおいて、スイッチの各接点から各マイコンに入力される信号の入力状態を比較することにより、異常の発生を判定することができる。また、各接点から各マイコンに入力される信号の組合せに基づいて、異常の種類を判別することが可能である。 With this configuration, in a switch that has multiple contacts with different characteristics, such as normally open contacts and normally closed contacts, the occurrence of an abnormality can be determined by comparing the input state of the signals input from each contact of the switch to each microcomputer. In addition, it is possible to determine the type of abnormality based on the combination of signals input from each contact to each microcomputer.

また、前記第1マイコンは、前記第2マイコンにより前記異常が生じていると判定されるよりも前に、前記スイッチの各接点から入力される信号が全てオフである状態が第2所定時間以上継続した場合、当該第1マイコンの入力回路に異常が生じていると判定し、前記第2所定時間は、前記第2マイコンの処理で用いる前記所定時間よりも長くてもよい。 In addition, if the state in which all signals input from each contact of the switch remain off for a second predetermined time or more before the second microcontroller determines that the abnormality has occurred, the first microcontroller determines that an abnormality has occurred in the input circuit of the first microcontroller, and the second predetermined time may be longer than the predetermined time used in the processing of the second microcontroller.

この構成によれば、第1マイコンは、当該第1マイコンの入力回路に異常が生じていることを判定することができる。 With this configuration, the first microcontroller can determine that an abnormality has occurred in the input circuit of the first microcontroller.

また、前記第2マイコンは、当該第2マイコンの入力回路の異常と判定した後は、前記スイッチから前記第1マイコンに入力される信号を用いて前記監視制御を実行してもよい。 In addition, after determining that an abnormality has occurred in the input circuit of the second microcomputer, the second microcomputer may execute the monitoring control using a signal input from the switch to the first microcomputer.

この構成によれば、第2マイコンの入力回路に異常が生じていると判断した後、第2マイコンは、スイッチから第1マイコンに入力される信号を用いて監視制御を継続することができる。 With this configuration, after determining that an abnormality has occurred in the input circuit of the second microcontroller, the second microcontroller can continue monitoring and control using the signal input from the switch to the first microcontroller.

また、前記第1マイコンは、当該第1マイコンの入力回路の異常と判定した後は、前記スイッチから前記第2マイコンに入力される信号を用いて前記変更制御を実行してもよい。 In addition, after determining that an abnormality exists in the input circuit of the first microcomputer, the first microcomputer may execute the change control using a signal input from the switch to the second microcomputer.

この構成によれば、第1マイコンの入力回路に異常が生じていると判断した後、第1マイコンは、スイッチから第2マイコンに入力される信号を用いて変更制御を継続することができる。 With this configuration, after determining that an abnormality has occurred in the input circuit of the first microcontroller, the first microcontroller can continue change control using the signal input from the switch to the second microcontroller.

また、前記スイッチは、第1位置と第2位置との間で変位する操作部材と、前記操作部材の前記第1位置と前記第2位置との間での変位により、信号線を接続するオン状態と、前記信号線を切断するオフ状態との間で状態が切り替わる三つの接点と、を備え、前記三つの接点は、前記ノーマルオープン型の接点により構成され、前記操作部材の前記第1位置から前記第2位置への変位の途中で、前記オフ状態から前記オン状態へ切り替わる第1接点と、前記ノーマルオープン型の接点により構成され、前記操作部材の前記第1位置から前記第2位置への変位の途中、前記第1接点よりも遅いタイミングで、前記オフ状態から前記オン状態へ切り替わる第2接点と、前記ノーマルクローズ型の接点により構成され、前記操作部材の前記第1位置から前記第2位置への変位の途中、前記第1接点が前記オフ状態から前記オン状態へ切り替わるよりも遅く、かつ前記第2接点が前記オフ状態から前記オン状態へ切り替わるよりも早いタイミングで、前記オン状態から前記オフ状態へ切り替わる第3接点と、を含み、前記第1マイコンおよび前記第2マイコンには、前記スイッチからの信号として、前記第1接点から出力される第1信号と、前記第2接点から出力される第2信号と、前記第3接点から出力される第3信号と、が入力され、前記第1マイコンおよび前記第2マイコンは、前記スイッチにおける前記第1信号と前記第2信号と前記第3信号とが全てオフである場合に、当該スイッチから入力される信号が全てオフであると判断してもよい。 The switch further comprises an operating member that is displaced between a first position and a second position, and three contacts whose states change between an on state in which a signal line is connected and an off state in which the signal line is disconnected by the displacement of the operating member between the first position and the second position, and the three contacts are constituted by the normally open type contacts, a first contact that changes from the off state to the on state during the displacement of the operating member from the first position to the second position, a second contact that changes from the off state to the on state at a timing slower than that of the first contact during the displacement of the operating member from the first position to the second position, and a normally closed type contact, and the operating unit and a third contact that switches from the on state to the off state during the displacement of the material from the first position to the second position, at a timing slower than when the first contact switches from the off state to the on state and earlier than when the second contact switches from the off state to the on state, and the first microcomputer and the second microcomputer receive as signals from the switch a first signal output from the first contact, a second signal output from the second contact, and a third signal output from the third contact, and the first microcomputer and the second microcomputer may determine that all signals input from the switch are off when the first signal, the second signal, and the third signal in the switch are all off.

この構成によれば、特性が異なる第1接点と第2接点と第3接点とを有するスイッチについて、第1マイコンと第2マイコンとにより異常の発生を監視することができる。 With this configuration, the first microcomputer and the second microcomputer can monitor the occurrence of abnormalities in a switch having a first contact, a second contact, and a third contact with different characteristics.

本発明では、スイッチから各マイコンに入力される信号の入力状態に基づいてシフトレンジの変更制御を監視する際、その信号の入力状態が変化してから所定時間が経過するまでは異常との判定を行わない。また、所定時間が経過するまでに正常と判断できる場合には正常との判定が可能である。これにより、異常との誤判定が発生することを抑制することができる。 In the present invention, when monitoring shift range change control based on the input state of the signal input from the switch to each microcomputer, an abnormality determination is not made until a predetermined time has passed since the input state of the signal changed. Also, if it can be determined that the condition is normal before the predetermined time has passed, it can be determined that the condition is normal. This makes it possible to prevent erroneous abnormality determinations from occurring.

図1は、第1実施形態の車両を模式的に示すスケルトン図である。FIG. 1 is a skeleton diagram that illustrates a vehicle according to a first embodiment. 図2は、第1実施形態の電子制御装置を説明するための機能ブロック図である。FIG. 2 is a functional block diagram for explaining the electronic control device of the first embodiment. 図3は、制御用シフトレンジの監視処理を示すフローチャート図である。FIG. 3 is a flow chart showing the process of monitoring the control shift range. 図4は、第1実施形態の変形例における制御用シフトレンジの監視処理を示すフローチャート図である。FIG. 4 is a flow chart showing a process for monitoring the control shift range in the modified example of the first embodiment. 図5は、第2実施形態におけるシフトスイッチの概略構成を示す図である。FIG. 5 is a diagram showing a schematic configuration of a shift switch according to the second embodiment. 図6は、第2実施形態の電子制御装置を説明するための機能ブロック図である。FIG. 6 is a functional block diagram for explaining the electronic control device of the second embodiment. 図7は、シフトスイッチのNC接点が断線した場合を説明するための図である。FIG. 7 is a diagram for explaining a case where the NC contact of the shift switch is broken. 図8は、シフトスイッチのNC接点がショートした場合を説明するための図である。FIG. 8 is a diagram for explaining a case where the NC contact of the shift switch is shorted. 図9は、第2実施形態におけるシフト操作の監視処理を示すフローチャート図である。FIG. 9 is a flow chart showing the shift operation monitoring process in the second embodiment. 図10は、第2実施形態における制御用シフトレンジの判断処理を示すフローチャート図である。FIG. 10 is a flow chart showing the process of determining the control shift range in the second embodiment. 図11は、第2実施形態の変形例におけるシフト操作の監視処理を示すフローチャート図である。FIG. 11 is a flow chart showing a shift operation monitoring process in a modified example of the second embodiment. 図12は、第2実施形態の変形例における制御用シフトレンジの判断処理を示すフローチャート図である。FIG. 12 is a flow chart showing a process for determining the control shift range in a modified example of the second embodiment. 図13は、第2実施形態の変形例におけるシフトスイッチの概略構成を示す図である。FIG. 13 is a diagram showing a schematic configuration of a shift switch in a modified example of the second embodiment. 図14は、図13に示すシフトスイッチの動作を示す図である。FIG. 14 is a diagram showing the operation of the shift switch shown in FIG. 図15は、図13に示すシフトスイッチの動作を示す図である。FIG. 15 is a diagram showing the operation of the shift switch shown in FIG. 図16は、図13に示すシフトスイッチの動作を示す図である。FIG. 16 is a diagram showing the operation of the shift switch shown in FIG. 図17は、第2実施形態の別の変形例におけるシフトスイッチの概略構成を示す図である。FIG. 17 is a diagram showing a schematic configuration of a shift switch in another modified example of the second embodiment. 図18は、図17に示すシフトスイッチの動作を示す図である。FIG. 18 is a diagram showing the operation of the shift switch shown in FIG. 図19は、図17に示すシフトスイッチの動作を示す図である。FIG. 19 is a diagram showing the operation of the shift switch shown in FIG. 図20は、図17に示すシフトスイッチの動作を示す図である。FIG. 20 is a diagram showing the operation of the shift switch shown in FIG.

以下、図面を参照して、本発明の実施形態における異常判定装置について具体的に説明する。なお、本発明は、以下に説明する実施形態に限定されるものではない。 The following describes in detail an abnormality determination device according to an embodiment of the present invention with reference to the drawings. Note that the present invention is not limited to the embodiment described below.

(第1実施形態)
図1は、第1実施形態の車両を模式的に示すスケルトン図である。車両1は、走行用の動力源であるエンジン2と、変速機3と、デファレンシャルギヤ4と、車軸5と、駆動輪6とを備えている。この車両1はFF(フロントエンジン・フロントドライブ)車である。エンジン2から出力された動力は、変速機3、デファレンシャルギヤ4、左右の車軸5を順次介して左右の駆動輪6へ伝達される。変速機3は、例えば複数の遊星歯車装置および係合装置を含んで構成された多段変速機である。
First Embodiment
Fig. 1 is a skeleton diagram that shows a vehicle according to a first embodiment. The vehicle 1 includes an engine 2, which is a power source for driving the vehicle, a transmission 3, a differential gear 4, an axle 5, and drive wheels 6. The vehicle 1 is a front-engine, front-drive (FF) vehicle. Power output from the engine 2 is transmitted to left and right drive wheels 6 via the transmission 3, the differential gear 4, and the left and right axles 5 in this order. The transmission 3 is, for example, a multi-speed transmission that includes a plurality of planetary gear devices and engagement devices.

車両1は、運転席の近傍に配設されたシフトスイッチ10によって選択されたシフトレンジに応じて変速機3のシフトレンジを電気的に切り替えるシフトバイワイヤシステム20を備えている。シフトバイワイヤシステム20は、シフトスイッチ10を備えるシフト操作装置30と、電子制御装置(ECU)40と、パーキングロック装置50とを含んで構成されている。 The vehicle 1 is equipped with a shift-by-wire system 20 that electrically switches the shift range of the transmission 3 according to the shift range selected by a shift switch 10 disposed near the driver's seat. The shift-by-wire system 20 includes a shift operation device 30 equipped with the shift switch 10, an electronic control unit (ECU) 40, and a parking lock device 50.

シフト操作装置30は、例えば運転席近傍の内装パネルなどに配設され、変速機3のシフトレンジを変更するためのシフトスイッチ10を備えている。シフトスイッチ10は、運転者がシフトレンジを選択する際に操作されるものであり、例えばモーメンタリ式の押しボタンスイッチにより構成されている。このシフトスイッチ10は、シフトレンジを指定するためのON/OFFスイッチであって、一つのスイッチでONとOFFとを判断するための複数の接点を有する。 The shift operation device 30 is provided, for example, on an interior panel near the driver's seat, and includes a shift switch 10 for changing the shift range of the transmission 3. The shift switch 10 is operated by the driver to select the shift range, and is configured, for example, as a momentary push button switch. This shift switch 10 is an ON/OFF switch for specifying the shift range, and has multiple contacts for determining ON and OFF with a single switch.

また、シフト操作装置30には、各シフトレンジを選択するために複数のシフトスイッチ10が設けられている。このシフト操作装置30には、シフトスイッチ10として、駐車レンジを選択するためのPスイッチ11と、後進走行レンジを選択するためのRスイッチ12と、動力伝達を遮断する中立レンジを選択するためのNスイッチ13と、前進走行レンジを選択するためのDスイッチ14と、減速前進走行レンジを選択するためのBスイッチ15とが設けられている。 The shift operation device 30 is also provided with multiple shift switches 10 for selecting each shift range. The shift operation device 30 is provided with the following shift switches 10: a P switch 11 for selecting a parking range, an R switch 12 for selecting a reverse driving range, an N switch 13 for selecting a neutral range in which power transmission is cut off, a D switch 14 for selecting a forward driving range, and a B switch 15 for selecting a deceleration forward driving range.

Pスイッチ11は、変速機3のシフトレンジを駐車レンジ(Pレンジ)へ切り替えるためのスイッチであり、運転者がPレンジを選択するときに操作されるものである。Pレンジは、変速機3内の動力伝達経路が遮断され、かつパーキングロック装置50によってパーキングロックが実行されたシフトレンジである。パーキングロック装置50は、駐車時に駆動輪6の回転を機械的に阻止する機構である。例えば、パーキングロック装置50によるパーキングロックが実行されていない場合(非パーキングロック状態)において、所定の条件が成立しているときに運転者がPスイッチ11を押圧操作すると、Pスイッチ11から信号が出力され、その信号を受けた電子制御装置40は変速機3のシフトレンジをPレンジに切り替える。非パーキングロック状態は、駆動輪6の回転が許容された状態である。 The P switch 11 is a switch for switching the shift range of the transmission 3 to the parking range (P range) and is operated when the driver selects the P range. The P range is a shift range in which the power transmission path in the transmission 3 is interrupted and the parking lock is performed by the parking lock device 50. The parking lock device 50 is a mechanism that mechanically prevents the rotation of the drive wheels 6 when parking. For example, when the parking lock is not performed by the parking lock device 50 (non-parking lock state), if the driver presses the P switch 11 when a certain condition is met, a signal is output from the P switch 11, and the electronic control device 40 that receives the signal switches the shift range of the transmission 3 to the P range. The non-parking lock state is a state in which the rotation of the drive wheels 6 is permitted.

Rスイッチ12は、変速機3のシフトレンジを後進走行レンジ(Rレンジ)へ切り替えるためのスイッチであり、運転者がRレンジを選択するときに操作されるものである。Rレンジは、車両1を後進させる駆動力が駆動輪6に伝達されるシフトレンジである。 The R switch 12 is a switch for switching the shift range of the transmission 3 to a reverse driving range (R range) and is operated when the driver selects the R range. The R range is a shift range in which the driving force for moving the vehicle 1 backward is transmitted to the drive wheels 6.

Nスイッチ13は、変速機3のシフトレンジを中立レンジ(Nレンジ)へ切り替えるためのスイッチであり、運転者がNレンジを選択するときに操作されるものである。Nレンジは、変速機3内の動力伝達経路が遮断されたニュートラル状態となるシフトレンジである。このNレンジでは、エンジン2から駆動輪6への動力伝達経路が遮断されるものの、駆動輪6の回転は許容される。 The N switch 13 is a switch for switching the shift range of the transmission 3 to the neutral range (N range) and is operated when the driver selects the N range. The N range is a shift range in which the power transmission path within the transmission 3 is cut off and the vehicle is in a neutral state. In this N range, the power transmission path from the engine 2 to the drive wheels 6 is cut off, but the drive wheels 6 are allowed to rotate.

Dスイッチ14は、変速機3のシフトレンジを前進走行レンジ(Dレンジ)へ切り替えるためのスイッチであり、運転者がDレンジを選択するときに操作されるものである。Dレンジは、車両1を前進させる駆動力が駆動輪6に伝達されるシフトレンジである。 The D switch 14 is a switch for switching the shift range of the transmission 3 to a forward driving range (D range) and is operated when the driver selects the D range. The D range is a shift range in which the driving force for moving the vehicle 1 forward is transmitted to the drive wheels 6.

Bスイッチ15は、変速機3のシフトレンジを減速前進走行レンジ(Bレンジ)へ切り替えるためのスイッチであり、運転者がBレンジを選択するときに操作されるものである。Bレンジは、Dレンジにおいて車両1にエンジンブレーキ効果を発揮させて駆動輪6の回転を減速させるシフトレンジである。つまり、Dレンジが選択された状態においてBスイッチ15が押圧操作されることによりBレンジを選択することができる。 The B switch 15 is a switch for switching the shift range of the transmission 3 to a decelerated forward driving range (B range) and is operated when the driver selects the B range. The B range is a shift range that exerts an engine braking effect on the vehicle 1 in the D range, slowing down the rotation of the drive wheels 6. In other words, the B range can be selected by pressing the B switch 15 when the D range is selected.

そして、シフトスイッチ10は、運転者により押圧操作される毎にシフト信号を電子制御装置40へ出力する。シフト信号は、シフトスイッチ10がON操作またはOFF操作されたことを示す電気信号である。電子制御装置40は、シフトスイッチ10からのシフト信号に応じて、シフトスイッチ10が操作されたことを電気的に検出する。 The shift switch 10 outputs a shift signal to the electronic control unit 40 each time the driver presses the shift switch 10. The shift signal is an electrical signal that indicates that the shift switch 10 has been turned ON or OFF. The electronic control unit 40 electrically detects that the shift switch 10 has been operated in response to the shift signal from the shift switch 10.

電子制御装置40は、CPU、RAM、ROM、入出力インターフェースを備えたマイクロコンピュータを含んで構成されている。この電子制御装置40は、ROMに予め記憶されたプログラムに従って信号処理を行う。例えば、電子制御装置40は、エンジン2の出力制御、変速機3の変速制御、シフトバイワイヤシステム20におけるシフトレンジの変更制御などを実行する。そして、電子制御装置40からは、エンジン2を制御するための指令信号や変速機3を制御するための指令信号が出力される。 The electronic control unit 40 includes a microcomputer equipped with a CPU, RAM, ROM, and an input/output interface. This electronic control unit 40 processes signals according to a program prestored in the ROM. For example, the electronic control unit 40 controls the output of the engine 2, the shifting of the transmission 3, and changes the shift range in the shift-by-wire system 20. The electronic control unit 40 outputs a command signal for controlling the engine 2 and a command signal for controlling the transmission 3.

シフトレンジの変更制御について説明すると、シフトスイッチ10においていずれかのシフトレンジが選択された際、電子制御装置40は、選択されたシフトレンジに対応して変速機3やパーキングロック装置50や表示装置60などを制御する。例えば、電子制御装置40は、前進走行レンジ以外の非前進走行レンジ(非Dレンジ)から前進走行レンジ(Dレンジ)へ切り替える制御を実行する。この場合、電子制御装置40から表示装置60に指令信号が出力される。その結果、選択中のシフトレンジを表示する表示装置60にはDレンジが表示される。 Regarding the shift range change control, when one of the shift ranges is selected with the shift switch 10, the electronic control unit 40 controls the transmission 3, the parking lock device 50, the display device 60, etc. in accordance with the selected shift range. For example, the electronic control unit 40 executes control to switch from a non-forward driving range (non-D range) other than the forward driving range to the forward driving range (D range). In this case, a command signal is output from the electronic control unit 40 to the display device 60. As a result, the D range is displayed on the display device 60, which displays the selected shift range.

また、シフトレンジの変更制御には、パーキングロック装置50の状態を切り替える制御が含まれる。例えば、パーキングロック装置50が非パーキングロック状態にあるときにPスイッチ11からの信号が電子制御装置40に入力されると、電子制御装置40は、パーキングロック装置50によるパーキングロックを実行する。そして、パーキングロック装置50がパーキングロック状態であるときに、Rスイッチ12、Nスイッチ13、Dスイッチ14のうちのいずれかが押圧操作された場合には、ブレーキペダルが踏込操作されているなどの所定の条件が満たされていることを条件に、電子制御装置40はパーキングロックを解除する。 The shift range change control also includes control to switch the state of the parking lock device 50. For example, when the parking lock device 50 is in a non-parking lock state and a signal is input from the P switch 11 to the electronic control unit 40, the electronic control unit 40 executes parking lock using the parking lock device 50. When the parking lock device 50 is in a parking lock state and any of the R switch 12, N switch 13, and D switch 14 is pressed, the electronic control unit 40 releases the parking lock, provided that a certain condition, such as the brake pedal being depressed, is met.

また、電子制御装置40は、制御用マイコン41と、監視用マイコン42とを備える。シフトスイッチ10からの信号は、図2に示すように、制御用マイコン41と監視用マイコン42とにそれぞれ入力される。シフトスイッチ10から制御用マイコン41に入力される信号は、制御用のシフト信号である。シフトスイッチ10から監視用マイコン42に入力される信号は、監視用のシフト信号である。この電子制御装置40では、制御用マイコン41が第1マイコンであり、監視用マイコン42が第2マイコンである。 The electronic control device 40 also includes a control microcomputer 41 and a monitoring microcomputer 42. As shown in FIG. 2, a signal from the shift switch 10 is input to both the control microcomputer 41 and the monitoring microcomputer 42. The signal input from the shift switch 10 to the control microcomputer 41 is a control shift signal. The signal input from the shift switch 10 to the monitoring microcomputer 42 is a monitoring shift signal. In this electronic control device 40, the control microcomputer 41 is the first microcomputer, and the monitoring microcomputer 42 is the second microcomputer.

制御用マイコン41は、運転者によりいずれかのシフトスイッチ10が押圧操作された際にそのシフトスイッチ10から出力される信号に基づいて、そのシフトスイッチ10に対応するシフトレンジへとシフトレンジを切り替える変更制御を実行するメインマイコンである。この制御用マイコン41は、決定部41aを有する。 The control microcomputer 41 is a main microcomputer that executes change control to switch the shift range to the shift range corresponding to a shift switch 10 based on a signal output from the shift switch 10 when the driver presses the shift switch 10. This control microcomputer 41 has a determination unit 41a.

決定部41aは、シフトスイッチ10から入力されるシフト信号に基づいて制御用シフトレンジを決定する。第1マイコンである制御用マイコン41は、決定部41aにより決定された制御用シフトレンジに基づいて変速機3のシフトレンジを切り替える。また、制御用マイコン41から表示装置60に信号が出力される。そのため、決定部41aにより決定された制御用シフトレンジは、選択中のシフトレンジを表示する表示装置60に表示される。 The determination unit 41a determines the control shift range based on the shift signal input from the shift switch 10. The control microcomputer 41, which is the first microcomputer, switches the shift range of the transmission 3 based on the control shift range determined by the determination unit 41a. In addition, a signal is output from the control microcomputer 41 to the display device 60. Therefore, the control shift range determined by the determination unit 41a is displayed on the display device 60, which displays the selected shift range.

監視用マイコン42は、制御用マイコン41による変更制御を監視するサブマイコンである。この第2マイコンである監視用マイコン42は、シフトスイッチ10から入力される信号と制御用マイコン41から入力される信号とに基づいて、異常が発生したか否かを判定する監視制御を実行する。この監視用マイコン42は、監視部42aを有する。 The monitoring microcomputer 42 is a sub-microcomputer that monitors the change control by the control microcomputer 41. This second microcomputer, the monitoring microcomputer 42, executes monitoring control to determine whether or not an abnormality has occurred based on the signal input from the shift switch 10 and the signal input from the control microcomputer 41. This monitoring microcomputer 42 has a monitoring unit 42a.

監視部42aは、電子制御装置40によるシフトレンジの変更制御を監視する。この監視部42aには、決定部41aから出力された信号が入力されるとともに、押圧操作を受けたシフトスイッチ10から出力されたシフト信号が入力される。決定部41aから監視部42aに入力される信号は、決定部41aにより決定された制御用シフトレンジを示す信号である。そのため、監視部42aは、シフトスイッチ10から監視用マイコン42に入力される信号と、制御用マイコン41から監視用マイコン42に入力される信号とに基づいて、シフトスイッチ10の操作により選択されたシフトレンジと制御用マイコン41により決定された制御用シフトレンジとが一致するか否かを判定することができる。 The monitoring unit 42a monitors the shift range change control by the electronic control unit 40. The monitoring unit 42a receives the signal output from the determination unit 41a and the shift signal output from the pressed shift switch 10. The signal input from the determination unit 41a to the monitoring unit 42a is a signal indicating the control shift range determined by the determination unit 41a. Therefore, based on the signal input from the shift switch 10 to the monitoring microcomputer 42 and the signal input from the control microcomputer 41 to the monitoring microcomputer 42, the monitoring unit 42a can determine whether the shift range selected by the operation of the shift switch 10 matches the control shift range determined by the control microcomputer 41.

このように、監視用マイコン42は、シフトスイッチ10からのシフト信号と制御用マイコン41での演算結果とを監視することにより、シフトバイワイヤシステム20での異常発生を監視する。この場合、制御用マイコン41の決定部41aから出力された信号が監視部42aに入力されるため、監視用マイコン42は、制御用マイコン41により制御用シフトレンジを切り替える変更制御が実行されたことを検知することができる。例えば、Dスイッチ14からの信号が監視用マイコン42に入力されていないときに、制御用マイコン41が制御用シフトレンジをDレンジへと切り替える制御を実行した場合、監視用マイコン42は、制御用シフトレンジの変更制御に関して異常が発生していると判定する。このように、電子制御装置40は、シフトバイワイヤシステム20の誤作動を監視する装置であって、シフトバイワイヤシステム20の異常を判定する異常判定装置である。 In this way, the monitoring microcomputer 42 monitors the occurrence of an abnormality in the shift-by-wire system 20 by monitoring the shift signal from the shift switch 10 and the calculation result in the control microcomputer 41. In this case, the signal output from the decision unit 41a of the control microcomputer 41 is input to the monitoring unit 42a, so that the monitoring microcomputer 42 can detect that the control microcomputer 41 has executed change control to switch the control shift range. For example, when the control microcomputer 41 executes control to switch the control shift range to the D range when the signal from the D switch 14 is not input to the monitoring microcomputer 42, the monitoring microcomputer 42 determines that an abnormality has occurred with respect to the change control of the control shift range. In this way, the electronic control unit 40 is a device that monitors malfunctions of the shift-by-wire system 20 and is an abnormality determination device that determines abnormalities in the shift-by-wire system 20.

図3は、制御用シフトレンジの監視処理を示すフローチャート図である。なお、図3には、複数のシフトレンジのうち、Dレンジを監視する場合が示されている。また、図3に示す処理は、所定の演算周期にて監視用マイコン42により繰り返し実行される。 Figure 3 is a flow chart showing the process of monitoring the control shift range. Note that Figure 3 shows a case where the D range is monitored among multiple shift ranges. The process shown in Figure 3 is repeatedly executed by the monitoring microcomputer 42 at a predetermined calculation cycle.

監視用マイコン42は、監視用のシフト信号についてDスイッチ14からの信号の入力状態が変化したか否かを判定する(ステップS101)。ステップS101では、シフト操作装置30から監視用マイコン42に入力されるシフト信号のうち、Dスイッチ14からの信号の入力状態がOFFからONに変化したか否かが判定される。 The monitoring microcomputer 42 determines whether the input state of the signal from the D switch 14 has changed for the monitoring shift signal (step S101). In step S101, it is determined whether the input state of the signal from the D switch 14, among the shift signals input from the shift operation device 30 to the monitoring microcomputer 42, has changed from OFF to ON.

このステップS101では、Dスイッチ14における複数の接点から入力される信号のうち、一つの信号でも入力状態が変化したか否かを判定することができる。要するに、入力状態が変化する信号は、特性が異なる接点のうち、どの接点から出力された信号であってもよい。Dスイッチ14における複数の接点から入力される信号のうちの一つでも入力状態が変化した時とは、Dレンジ以外の操作によりシフト信号が変化したことではなく、明らかにDレンジを選択する操作をしていることが分かる。 In this step S101, it is possible to determine whether the input state of even one of the signals input from the multiple contacts in the D switch 14 has changed. In short, the signal whose input state changes may be a signal output from any of the contacts with different characteristics. When the input state of even one of the signals input from the multiple contacts in the D switch 14 has changed, it is clear that an operation to select the D range has clearly been performed, rather than a change in the shift signal due to an operation other than the D range.

監視用のシフト信号についてDスイッチ14からの信号の入力状態が変化した場合(ステップS101:Yes)、監視用マイコン42は、Dレンジ許可フラグをONに設定するとともに、Dレンジカウンタを所定値Aに設定する(ステップS102)。Dレンジ許可フラグとは、制御用シフトレンジがDレンジに切り替わることを許可するフラグである。Dレンジカウンタとは、Dレンジへの変更を許可する許可時間を表すものである。所定値Aは、ゼロよりも大きい値である。つまり、Dレンジカウンタに所定値Aが設定されることにより、Dレンジへの変更を許可する許可時間として所定時間が設定されたことになる。 When the input state of the signal from the D switch 14 for the monitoring shift signal changes (step S101: Yes), the monitoring microcomputer 42 sets the D range permission flag to ON and sets the D range counter to a predetermined value A (step S102). The D range permission flag is a flag that permits the control shift range to be switched to the D range. The D range counter indicates the permission time for permitting a change to the D range. The predetermined value A is a value greater than zero. In other words, by setting the predetermined value A in the D range counter, the predetermined time is set as the permission time for permitting a change to the D range.

監視用のシフト信号についてDスイッチ14からの信号の入力状態が変化していない場合(ステップS101:No)、または、ステップS102の処理を実施後に、監視用マイコン42は、Dレンジカウンタがゼロよりも大きいか否かを判定する(ステップS103)。 If the input state of the signal from the D switch 14 has not changed for the monitoring shift signal (step S101: No), or after performing the processing of step S102, the monitoring microcontroller 42 determines whether the D range counter is greater than zero (step S103).

Dレンジカウンタがゼロよりも大きい場合(ステップS103:Yes)、監視用マイコン42は、Dレンジカウンタを減算する(ステップS104)。ステップS104では、例えばDレンジカウンタの値がひとつ減算される。減算前のDレンジカウンタが「A」であるとすると、減算後のDレンジカウンタは「A-1」で表すことができる。要するに、ステップS104では、Dレンジカウンタに設定された所定値Aに応じた所定時間からのカウントダウンが行われる。 If the D range counter is greater than zero (step S103: Yes), the monitoring microcomputer 42 decrements the D range counter (step S104). In step S104, for example, the value of the D range counter is decremented by one. If the D range counter before the decrement is "A", the D range counter after the decrement can be expressed as "A-1". In short, in step S104, a countdown is performed from a predetermined time according to the predetermined value A set in the D range counter.

Dレンジカウンタがゼロよりも大きくない場合(ステップS103:No)、監視用マイコン42は、Dレンジ許可フラグをOFFに設定する(ステップS105)。ステップS105では、現在のDレンジ許可フラグがONである場合にはONからOFFに切り替えられ、現在のDレンジ許可フラグがOFFである場合にはOFFに維持される。 If the D-range counter is not greater than zero (step S103: No), the monitoring microcomputer 42 sets the D-range permission flag to OFF (step S105). In step S105, if the current D-range permission flag is ON, it is switched from ON to OFF, and if the current D-range permission flag is OFF, it is maintained OFF.

ステップS104の処理を実施後、または、ステップS105の処理を実施後に、監視用マイコン42は、制御用シフトレンジがDレンジ以外からDレンジに変化したか否かを判定する(ステップS106)。ステップS106では、制御用マイコン41から監視用マイコン42に入力される信号に基づいて、制御用シフトレンジがDレンジに切り替わったか否かが判定される。 After performing the process of step S104 or after performing the process of step S105, the monitoring microcomputer 42 determines whether the control shift range has changed from a range other than the D range to the D range (step S106). In step S106, based on the signal input from the control microcomputer 41 to the monitoring microcomputer 42, it is determined whether the control shift range has switched to the D range.

制御用シフトレンジがDレンジ以外からDレンジに変化した場合(ステップS106:Yes)、監視用マイコン42は、Dレンジ許可フラグがONであるか否かを判定する(ステップS107)。 If the control shift range changes from a range other than the D range to the D range (step S106: Yes), the monitoring microcontroller 42 determines whether the D range permission flag is ON (step S107).

Dレンジ許可フラグがONでない場合(ステップS107:No)、監視用マイコン42は、制御シフトレンジの異常処置を行う(ステップS108)。ステップS108において、監視用マイコン42は、Dレンジへの変更が許可されていない状態で制御用シフトレンジがDレンジに切り替わったことを検知し、シフトバイワイヤシステム20に異常が生じていると判断する。そして、このステップS108の処理が実施される場合とは、監視用のシフト信号の入力状態が一つも変化していないときに制御用シフトレンジがDレンジに切り替わる場合である。つまり、この場合となるは、監視用のシフト信号を入力する信号線(接点ごとに設けられた複数の信号線)が全て断線またはショートしたことにより入力信号が変化しなくなった場合(第1異常)、制御用のシフト信号の入力のみに、誤って押圧操作ありと判断するようなノイズが入力された場合(第2異常)、制御のバグや誤作動により、シフト信号の入力がないにもかかわらず押圧操作ありと判断した場合(第3異常)のいずれかである。そのため、電子制御装置40は、制御シフトレンジの異常処置として、車両1の駆動力をカットするなどのフェールセーフ制御を実行する。ステップS108の処理を実施すると、この制御ルーチンは終了する。 If the D range permission flag is not ON (step S107: No), the monitoring microcomputer 42 performs abnormality processing for the control shift range (step S108). In step S108, the monitoring microcomputer 42 detects that the control shift range has been switched to the D range in a state in which changing to the D range is not permitted, and determines that an abnormality has occurred in the shift-by-wire system 20. The processing of step S108 is performed when the control shift range is switched to the D range when none of the input states of the monitoring shift signals have changed. In other words, this case occurs when the input signal does not change due to all of the signal lines (multiple signal lines provided for each contact) that input the monitoring shift signals are disconnected or shorted (first abnormality), when noise that erroneously determines that a pressing operation has occurred is input only to the input of the control shift signal (second abnormality), or when a bug or malfunction in the control causes a determination that a pressing operation has occurred despite the absence of a shift signal input (third abnormality). Therefore, the electronic control unit 40 performs fail-safe control, such as cutting off the driving force of the vehicle 1, as a countermeasure to the abnormality of the controlled shift range. After performing the process of step S108, this control routine ends.

制御用シフトレンジがDレンジ以外からDレンジに変化しない場合(ステップS106:No)、または、Dレンジ許可フラグがONである場合(ステップS107:Yes)には、この制御ルーチンは終了する。この場合、監視用マイコン42は制御用シフトレンジのうちDレンジに関する処理が正常であると判断する。 If the control shift range does not change from a range other than the D range to the D range (step S106: No), or if the D range permission flag is ON (step S107: Yes), this control routine ends. In this case, the monitoring microcomputer 42 determines that the processing related to the D range among the control shift ranges is normal.

そして、監視用マイコン42が所定の演算周期にて処理を繰り返すため、図3に示す処理はループする。そのため、Dスイッチ14からの信号の入力状態がONに切り替わったと判定されて以降は、ステップS101で否定的に判定されるループに入る。このループに入ると、ステップS104の処理が実施されるたびに、Dレンジカウンタが0に向けてカウントダウンされる。Dレンジカウンタがゼロよりも大きい場合にはDレンジ許可フラグがONに維持されるため、ステップS107で肯定的に判定されるループとなる。そして、何度目かのループでDレンジカウンタが0になると、ステップS103で否定的に判定されて、ステップS105においてDレンジ許可フラグがONからOFFに切り替わる。つまり、Dスイッチ14からの信号の入力状態が変化してから許可時間(所定値Aに応じた所定時間)が経過した後は、Dレンジ許可フラグがOFFとなるため、制御用シフトレンジがDレンジに変化した場合には異常と判定され、ステップS108の処理が実施される。 Then, since the monitoring microcomputer 42 repeats the process at a predetermined calculation cycle, the process shown in FIG. 3 loops. Therefore, after it is determined that the input state of the signal from the D switch 14 has switched to ON, the process enters a loop in which the result is determined negatively in step S101. When this loop is entered, the D range counter counts down toward 0 each time the process of step S104 is performed. If the D range counter is greater than zero, the D range permission flag is maintained ON, so the process enters a loop in which the result is determined positively in step S107. Then, when the D range counter reaches 0 in a certain number of loops, the result is determined negatively in step S103, and the D range permission flag is switched from ON to OFF in step S105. In other words, after the permission time (a predetermined time according to the predetermined value A) has elapsed since the input state of the signal from the D switch 14 changed, the D range permission flag is OFF, so if the control shift range changes to the D range, it is determined that an abnormality has occurred, and the process of step S108 is performed.

以上説明した通り、第1実施形態によれば、監視用マイコン42によって誤作動を監視する際、シフトスイッチ10から監視用マイコン42に入力される監視用のシフト信号の状態が変化したときから所定の許可時間が経過するまでの間は、そのシフトレンジへの変更を許可する。そして、監視用マイコン42がそのシフトレンジへの変更を許可していないときに制御用マイコン41が制御用シフトレンジをそのシフトレンジへ変更した場合には、監視用マイコン42は、異常と判定する。これにより、シフト信号の入力状態が変化してから所定の許可時間が経過するまでの間は異常との判定を行わないので、制御用マイコン41と監視用マイコン42との演算タイミングにずれが生じても、異常との誤判定が発生することを抑制することができる。 As described above, according to the first embodiment, when the monitoring microcomputer 42 monitors for malfunctions, it permits a change to that shift range from when the state of the monitoring shift signal input from the shift switch 10 to the monitoring microcomputer 42 changes until a predetermined permitted time has elapsed. Then, if the control microcomputer 41 changes the control shift range to that shift range when the monitoring microcomputer 42 does not permit a change to that shift range, the monitoring microcomputer 42 determines that an abnormality has occurred. As a result, since no abnormality determination is made from when the input state of the shift signal changes until the predetermined permitted time has elapsed, even if there is a discrepancy in the calculation timing between the control microcomputer 41 and the monitoring microcomputer 42, it is possible to suppress the occurrence of erroneous abnormality determinations.

また、第1実施形態では、シフトスイッチ10が各シフトレンジに対応して一つずつ設けられている構成について説明したがこれに限定されない。シフトスイッチ10は、Pレンジ、Rレンジ、Nレンジ、Dレンジ、Bレンジなどのうち、少なくとも一つ以上に設けられていればよい。例えば、シフトスイッチ10はPスイッチ11とDスイッチ14とにより構成されてもよい。さらに、図3に示す処理はDレンジ以外の制御用シフトレンジにも適用可能である。例えば、電子制御装置40はPレンジを対象にして図3に示す処理を実行することも可能である。要するに、シフトスイッチ10が設けられたシフトレンジについて図3に示す処理を適用することができる。 In the first embodiment, the shift switch 10 is provided for each shift range, but the present invention is not limited to this. The shift switch 10 may be provided for at least one of the P range, R range, N range, D range, B range, etc. For example, the shift switch 10 may be composed of a P switch 11 and a D switch 14. Furthermore, the process shown in FIG. 3 can be applied to control shift ranges other than the D range. For example, the electronic control unit 40 can execute the process shown in FIG. 3 for the P range. In short, the process shown in FIG. 3 can be applied to the shift range in which the shift switch 10 is provided.

また、第1実施形態の変形例として、監視用マイコン42は、異常との仮判定を行い、この仮判定をしてから所定の猶予時間が経過した後に、異常と判定するように構成することができる。この変形例の制御が図4に示されている。 As a modification of the first embodiment, the monitoring microcomputer 42 can be configured to make a provisional determination of an abnormality, and then determine that an abnormality has occurred after a predetermined grace period has elapsed since making this provisional determination. The control of this modification is shown in FIG. 4.

図4は、第1実施形態の変形例における制御用シフトレンジの監視処理を示すフローチャート図である。なお、図4に示す処理は、複数のシフトレンジのうちDレンジを監視する場合であり、所定の演算周期にて監視用マイコン42により繰り返し実行される。また、図4に示すステップS201~ステップS205の処理は、図3に示すステップS101~ステップS105の処理と同様であるため説明を省略する。 Figure 4 is a flow chart showing the monitoring process of the control shift range in a modified example of the first embodiment. The process shown in Figure 4 is for monitoring the D range among multiple shift ranges, and is repeatedly executed by the monitoring microcomputer 42 at a predetermined calculation cycle. Also, the process of steps S201 to S205 shown in Figure 4 is similar to the process of steps S101 to S105 shown in Figure 3, so a description thereof will be omitted.

ステップS204の処理を実施後、または、ステップS205の処理を実施後に、監視用マイコン42は、Dレンジ許可フラグがONであるか否かを判定する(ステップS206)。 After performing the process of step S204 or after performing the process of step S205, the monitoring microcontroller 42 determines whether the D-range permission flag is ON (step S206).

Dレンジ許可フラグがONである場合(ステップS206:Yes)、監視用マイコン42は、Dレンジ異常カウンタをゼロに設定する(ステップS207)。ステップS207の処理を実施すると、この制御ルーチンは終了する。 If the D-range permission flag is ON (step S206: Yes), the monitoring microcomputer 42 sets the D-range abnormality counter to zero (step S207). After performing the process of step S207, this control routine ends.

Dレンジ許可フラグがONでない場合(ステップS206:No)、監視用マイコン42は、Dレンジ異常カウンタがゼロよりも大きいか否かを判定する(ステップS208)。 If the D-range permission flag is not ON (step S206: No), the monitoring microcontroller 42 determines whether the D-range abnormality counter is greater than zero (step S208).

Dレンジ異常カウンタがゼロよりも大きくない場合(ステップS208:No)、監視用マイコン42は、制御用シフトレンジがDレンジ以外からDレンジに変化したか否かを判定する(ステップS209)。 If the D-range abnormality counter is not greater than zero (step S208: No), the monitoring microcontroller 42 determines whether the control shift range has changed from a range other than the D range to the D range (step S209).

制御用シフトレンジがDレンジ以外からDレンジに変化した場合(ステップS209:Yes)、監視用マイコン42は、Dレンジ異常カウンタを所定値Bに設定する(ステップS210)。Dレンジ異常カウンタとは、Dレンジの処理について異常と判定するまでの猶予時間を表すものである。所定値Bは、ゼロよりも大きい値である。つまり、Dレンジ異常カウンタに所定値Bが設定されることにより、異常との判定が確定するまでの猶予時間(所定値Bに応じた所定時間)が設定されたことになる。言い換えれば、監視用マイコン42は、Dレンジ許可フラグがOFFのときに制御用シフトレンジがDレンジへ切り替わったことを検知した場合、異常と仮判定する。さらに、監視用マイコン42は、この仮判定のままとなる猶予時間を設定する。すなわち、ステップS209の処理により異常と仮判定された後に、ステップS210では、Dレンジ許可フラグがONに変更されるまでの猶予時間が設定されたことになる。ステップS210の処理を実施すると、この制御ルーチンは終了する。 When the control shift range changes from a range other than the D range to the D range (step S209: Yes), the monitoring microcomputer 42 sets the D range abnormality counter to a predetermined value B (step S210). The D range abnormality counter indicates the grace period until the D range processing is determined to be abnormal. The predetermined value B is a value greater than zero. In other words, by setting the predetermined value B in the D range abnormality counter, the grace period (a predetermined period according to the predetermined value B) until the determination of the abnormality is confirmed is set. In other words, when the monitoring microcomputer 42 detects that the control shift range has been switched to the D range when the D range permission flag is OFF, it provisionally determines that there is an abnormality. Furthermore, the monitoring microcomputer 42 sets a grace period during which this provisional determination remains. In other words, after the provisional determination of an abnormality is made by the processing of step S209, the grace period until the D range permission flag is changed to ON is set in step S210. When the processing of step S210 is performed, this control routine ends.

制御用シフトレンジがDレンジ以外からDレンジに変化しない場合(ステップS209:No)、制御ルーチンはステップS207へ進む。 If the control shift range does not change from a range other than D range to D range (step S209: No), the control routine proceeds to step S207.

Dレンジ異常カウンタがゼロよりも大きい場合(ステップS208:Yes)、監視用マイコン42は、Dレンジ異常カウンタを減算する(ステップS211)。ステップS211では、例えばDレンジ異常カウンタの値がひとつ減算される。減算前のDレンジ異常カウンタが「B」であるとすると、減算後のDレンジ異常カウンタは「B-1」で表すことができる。要するに、ステップS211では、Dレンジ異常カウンタに設定された所定値Bに応じた所定時間からのカウントダウンが行われる。 If the D-range abnormality counter is greater than zero (step S208: Yes), the monitoring microcomputer 42 decrements the D-range abnormality counter (step S211). In step S211, for example, the value of the D-range abnormality counter is decremented by one. If the D-range abnormality counter before the decrement is "B", the D-range abnormality counter after the decrement can be expressed as "B-1". In short, in step S211, a countdown is performed from a predetermined time according to the predetermined value B set in the D-range abnormality counter.

ステップS211の処理を実施後、監視用マイコン42は、Dレンジ異常カウンタがゼロよりも大きいか否かを判定する(ステップS212)。 After performing the processing of step S211, the monitoring microcontroller 42 determines whether the D-range abnormality counter is greater than zero (step S212).

Dレンジ異常カウンタがゼロよりも大きい場合(ステップS212:Yes)、この制御ルーチンは終了する。この場合、異常と仮判定した状態を維持したままループする。 If the D-range abnormality counter is greater than zero (step S212: Yes), this control routine ends. In this case, the system continues to loop while maintaining the state tentatively determined to be abnormal.

Dレンジ異常カウンタがゼロよりも大きくない場合(ステップS212:No)、監視用マイコン42は、制御シフトレンジの異常処置を行う(ステップS213)。ステップS212で否定的に判定された場合とは、猶予時間が経過したことを意味する。つまり、異常と仮判定した状態から、異常との判定が確定した状態に移行したことになる。そのため、電子制御装置40は、制御シフトレンジの異常処置として、車両1の駆動力をカットするなどのフェールセーフ制御を実行する。ステップS213の処理を実施後、この制御ルーチンは終了する。 If the D-range abnormality counter is not greater than zero (step S212: No), the monitoring microcomputer 42 performs abnormality processing for the controlled shift range (step S213). A negative determination in step S212 means that the grace period has elapsed. In other words, the state has moved from a state in which an abnormality has been provisionally determined to a state in which an abnormality has been confirmed. Therefore, the electronic control unit 40 performs fail-safe control, such as cutting off the driving force of the vehicle 1, as an abnormality processing for the controlled shift range. After performing the processing in step S213, this control routine ends.

そして、監視用マイコン42が所定の演算周期にて処理を繰り返すため、図4に示す処理はループする。そのため、Dスイッチ14からの信号の入力状態が変化していない状態で制御用シフトレンジがDレンジに切り替わって以降は、ステップS208で肯定的に判定されるループに入る。このループに入ると、ステップS211の処理が実施されるたびにDレンジ異常カウンタが0に向けてカウントダウンされる。Dレンジ異常カウンタがゼロよりも大きい場合にはステップS212で肯定的に判定されるため、異常と仮判定された状態に維持される。そして、何度目かのループでDレンジ異常カウンタが0になると、ステップS212で否定的に判定されるため、異常との判定が確定される。つまり、Dスイッチ14からの信号の入力状態が変化していないときに制御用シフトレンジがDレンジに切り替わってから猶予時間が経過した後は、異常との判定が確定され、ステップS213の処理が実施される。 Then, since the monitoring microcomputer 42 repeats the process at a predetermined calculation cycle, the process shown in FIG. 4 loops. Therefore, after the control shift range is switched to the D range while the input state of the signal from the D switch 14 has not changed, a loop is entered in which a positive judgment is made in step S208. When this loop is entered, the D range abnormality counter counts down toward 0 each time the process of step S211 is performed. If the D range abnormality counter is greater than zero, a positive judgment is made in step S212, and the state in which a provisional judgment of an abnormality is made is maintained. Then, when the D range abnormality counter reaches 0 in a certain number of loops, a negative judgment is made in step S212, and the judgment of an abnormality is confirmed. In other words, after the grace time has elapsed since the control shift range was switched to the D range while the input state of the signal from the D switch 14 has not changed, the judgment of an abnormality is confirmed, and the process of step S213 is performed.

この変形例によれば、監視用のシフト信号の入力状態が変化していないときに、そのシフトスイッチ10に対応するシフトレンジへと制御用シフトレンジが切り替わった際には、異常との仮判定を行うことができる。そして、仮判定の状態で所定の猶予時間を経過するまでの間に、対応するシフトスイッチ10について、監視用のシフト信号の入力状態が変化した場合には、異常との仮判定を取り消すことができる。これにより、制御用マイコン41と監視用マイコン42との演算タイミングにずれが生じても、異常との誤判定が発生することを抑制することができる。つまり、各マイコンの演算周期が非同期であることや、シフト制御情報をマイコン間の通信でやり取りするためのタイムラグにより、監視側が許可を判断するよりも先に制御側がシフトレンジを変えてしまう虞があるため、これを考慮して、所定の猶予時間だけ待ってから異常判断することでこれを防止することができる。 According to this modification, when the input state of the monitoring shift signal has not changed and the control shift range has switched to the shift range corresponding to that shift switch 10, a provisional abnormality determination can be made. Then, if the input state of the monitoring shift signal has changed for the corresponding shift switch 10 before a predetermined grace period has elapsed in the provisional determination state, the provisional abnormality determination can be cancelled. This makes it possible to prevent erroneous abnormality determinations from occurring even if there is a difference in the calculation timing between the control microcomputer 41 and the monitoring microcomputer 42. In other words, because the calculation cycles of the microcomputers are asynchronous and there is a time lag for exchanging shift control information by communication between the microcomputers, there is a risk that the control side will change the shift range before the monitoring side determines permission. Taking this into consideration, this can be prevented by waiting a predetermined grace period before determining abnormality.

(第2実施形態)
次に、第2実施形態について説明する。第2実施形態では、ノーマルオープン型の接点とノーマルクローズ型の接点とを有するシフトスイッチについて、シフトスイッチの各接点から出力される信号を用いて異常の発生を監視するように構成されている。なお、第2実施形態の説明では、第1実施形態と同様の構成については説明を省略しその参照符号を引用する。
Second Embodiment
Next, a second embodiment will be described. In the second embodiment, a shift switch having a normally open contact and a normally closed contact is configured to monitor occurrence of an abnormality using signals output from each contact of the shift switch. In the description of the second embodiment, description of the same configuration as the first embodiment will be omitted and the same reference numerals will be used.

図5は、第2実施形態におけるシフトスイッチの概略構成を示す図である。第2実施形態のシフトスイッチ100は、操作部材として機能する一つの可動端子110と、三つの固定端子としての第1固定端子111、第2固定端子112、第3固定端子113と、を備えている。このシフトスイッチ100は摺動接点型スイッチである。各固定端子111,112,113には、それぞれ信号線114,115,116が接続されている。また、可動端子110にはアース線117が接続されている。なお、この説明では、ノーマルオープンをNOと記載し、ノーマルクローズをNCと記載する場合がある。また、シフトスイッチ100は、第1実施形態のシフトスイッチ10に代えて車両1に搭載することが可能である。 Figure 5 is a diagram showing the schematic configuration of a shift switch in the second embodiment. The shift switch 100 in the second embodiment has one movable terminal 110 that functions as an operating member, and three fixed terminals, a first fixed terminal 111, a second fixed terminal 112, and a third fixed terminal 113. This shift switch 100 is a sliding contact type switch. Signal lines 114, 115, and 116 are connected to the fixed terminals 111, 112, and 113, respectively. A ground line 117 is connected to the movable terminal 110. In this description, normally open may be written as NO, and normally closed may be written as NC. The shift switch 100 may be installed in the vehicle 1 in place of the shift switch 10 in the first embodiment.

第1固定端子111は、可動端子110との間でノーマルオープン型の接点を構成し、三つの接点のうちの第1接点を構成する端子である。この第1固定端子111は、第1NO接点を構成する第1NO端子である。第2固定端子112は、可動端子110との間でノーマルオープン型の接点を構成し、三つの接点のうちの第2接点を構成する端子である。この第2固定端子112は、第2NO接点を構成する第2NO端子である。第3固定端子113は、可動端子110との間でノーマルクローズ型の接点を構成し、三つの接点のうちの第3接点を構成する端子である。この第3固定端子113は、NC接点を構成するNC端子である。 The first fixed terminal 111 forms a normally open contact with the movable terminal 110, and is a terminal that forms the first of the three contacts. This first fixed terminal 111 is a first NO terminal that forms the first NO contact. The second fixed terminal 112 forms a normally open contact with the movable terminal 110, and is a terminal that forms the second of the three contacts. This second fixed terminal 112 is a second NO terminal that forms the second NO contact. The third fixed terminal 113 forms a normally closed contact with the movable terminal 110, and is a terminal that forms the third of the three contacts. This third fixed terminal 113 is an NC terminal that forms an NC contact.

可動端子110は、図5において実線で示す第1位置から一点鎖線で示す第2位置までの範囲で各固定端子111,112,113の上を摺動する。図5に示す黒丸は接点が閉じている状態を示し、図5に示す白丸は接点が開いている状態を示している。第1位置では、可動端子110が第3固定端子113のみと接触している。すなわち、第1位置では、NC接点が閉じて第1NO接点と第2NO接点とは開いている。この状態がシフトスイッチ100のオフ状態である。 The movable terminal 110 slides over the fixed terminals 111, 112, and 113 in a range from a first position indicated by a solid line in FIG. 5 to a second position indicated by a dashed line. The black circles in FIG. 5 indicate a state in which the contacts are closed, and the white circles in FIG. 5 indicate a state in which the contacts are open. In the first position, the movable terminal 110 is in contact only with the third fixed terminal 113. That is, in the first position, the NC contact is closed and the first NO contact and the second NO contact are open. This state is the off state of the shift switch 100.

また、可動端子110が第1位置から第2位置の方向へと移動すると、可動端子110は第1固定端子111にも接触する。これにより、NC接点と第1NO接点とが閉じて第2NO接点のみが開いた状態となる。 In addition, when the movable terminal 110 moves from the first position to the second position, the movable terminal 110 also comes into contact with the first fixed terminal 111. As a result, the NC contact and the first NO contact are closed, and only the second NO contact is open.

また、可動端子110がさらに第2位置の方向へ移動すると、可動端子110は第3固定端子113との接触が外れて、第1固定端子111のみに接触する。これにより、NC接点と第2NO接点とが開いて第1NO接点のみが閉じた状態となる。 When the movable terminal 110 moves further toward the second position, the movable terminal 110 loses contact with the third fixed terminal 113 and comes into contact only with the first fixed terminal 111. This causes the NC contact and the second NO contact to open, and only the first NO contact to close.

そして、可動端子110がさらに第2位置の方向へ移動すると、可動端子110は第2位置に到着する。第2位置では、可動端子110は第1固定端子111と第2固定端子112とに接触する。すなわち、第2位置では、第1NO接点と第2NO接点とが閉じてNC接点は開いている。この状態がシフトスイッチ100のオン状態である。 When the movable terminal 110 moves further toward the second position, it reaches the second position. In the second position, the movable terminal 110 contacts the first fixed terminal 111 and the second fixed terminal 112. That is, in the second position, the first NO contact and the second NO contact are closed and the NC contact is open. This state is the ON state of the shift switch 100.

このように、三つの固定端子111,112,113は、可動端子110が第1位置から第2位置までの範囲を摺動する際、そのうちの一つまたは二つが可動端子110に接触するように配列されている。つまり、シフトスイッチ100がオフ状態からオン状態に切り替わるまでの間、全ての固定端子111,112,113が可動端子110と接触している状態は発生せず、かつ、どの固定端子111,112,113も可動端子110と接触していない状態も発生しないように、三つの固定端子111,112,113が配列されている。 In this way, the three fixed terminals 111, 112, 113 are arranged so that one or two of them come into contact with the movable terminal 110 when the movable terminal 110 slides in the range from the first position to the second position. In other words, the three fixed terminals 111, 112, 113 are arranged so that a state in which all of the fixed terminals 111, 112, 113 are in contact with the movable terminal 110 does not occur, and a state in which none of the fixed terminals 111, 112, 113 are not in contact with the movable terminal 110 occurs, during the time period from the OFF state to the ON state of the shift switch 100.

また、各接点から延びる信号線114,115,116は電子制御装置40に接続されている。図6に示すように、各信号線114,115,116は、制御用マイコン41と監視用マイコン42とに接続されている。信号線114は、第1NO接点からの信号である第1信号を伝達する。信号線115は、第2NO接点からの信号である第2信号を伝達する。信号線116は、NC接点からの信号である第3信号を伝達する。開状態の接点からはOFF信号が出力される。閉状態の接点からはON信号が出力される。 Furthermore, signal lines 114, 115, and 116 extending from each contact are connected to the electronic control device 40. As shown in FIG. 6, each signal line 114, 115, and 116 is connected to the control microcomputer 41 and the monitoring microcomputer 42. Signal line 114 transmits a first signal which is a signal from the first NO contact. Signal line 115 transmits a second signal which is a signal from the second NO contact. Signal line 116 transmits a third signal which is a signal from the NC contact. An OFF signal is output from an open contact. An ON signal is output from a closed contact.

電子制御装置40は、各信号線114,115,116から入力される信号の組み合わせに基づいて、シフトスイッチ100に対して行われた操作を判定する。例えば信号線114,115,116の信号の組み合わせがON・ON・OFFとなる場合、電子制御装置40は、シフトスイッチ100に対してオン操作されたと判定する。信号線114,115,116の信号の組み合わせがOFF・OFF・ONとなる場合、電子制御装置40は、シフトスイッチ100に対してオフ操作されたと判定する。このシフトスイッチ100は、P,R,N,D,Bなどレンジ毎に一つ設けられる。そして、シフトスイッチ100に対するオン操作には、各レンジへの切り替え処理が割り当てられる。第2実施形態では、シフトスイッチ100として、少なくともDスイッチ14を備えている。そのため、Dレンジについて説明する際に、シフトスイッチ100をDスイッチ14と記載する場合がある。 The electronic control unit 40 judges the operation performed on the shift switch 100 based on the combination of signals input from each signal line 114, 115, 116. For example, when the combination of the signals of the signal lines 114, 115, 116 is ON, ON, OFF, the electronic control unit 40 judges that the shift switch 100 has been turned on. When the combination of the signals of the signal lines 114, 115, 116 is OFF, OFF, ON, the electronic control unit 40 judges that the shift switch 100 has been turned off. This shift switch 100 is provided for each range such as P, R, N, D, B. Then, the on operation of the shift switch 100 is assigned to a switching process to each range. In the second embodiment, at least the D switch 14 is provided as the shift switch 100. Therefore, when explaining the D range, the shift switch 100 may be described as the D switch 14.

また、電子制御装置40は、各信号線114,115,116から入力される信号の組み合わせに基づいて、異常が発生したか否かを判定する。制御用マイコン41は、各信号線114,115,116からの信号を用いて異常の有無を判定する異常判定部41bを有する。異常判定部41bは、シフトスイッチ100の各接点から入力される信号と、監視用マイコン42から入力される判定結果を示す情報とに基づいて、制御用マイコン41側で異常が発生しているか否かを判定する。また、監視用マイコン42は、各信号線114,115,116からの信号を用いて異常の有無を判定する異常判定部42bを有する。異常判定部42bは、シフトスイッチ100の各接点から監視用マイコン42に入力される信号と、シフトスイッチ100の各接点から制御用マイコン41に入力される信号とに基づいて、監視用マイコン42側で異常が発生しているか否かを判定する。この異常判定部42bによる判定結果は制御側の異常判定部41bに入力される。 The electronic control unit 40 judges whether an abnormality has occurred based on a combination of signals input from each signal line 114, 115, 116. The control microcomputer 41 has an abnormality judgment unit 41b that judges whether an abnormality has occurred using signals from each signal line 114, 115, 116. The abnormality judgment unit 41b judges whether an abnormality has occurred on the control microcomputer 41 side based on signals input from each contact of the shift switch 100 and information indicating the judgment result input from the monitoring microcomputer 42. The monitoring microcomputer 42 has an abnormality judgment unit 42b that judges whether an abnormality has occurred using signals from each signal line 114, 115, 116. The abnormality judgment unit 42b judges whether an abnormality has occurred on the monitoring microcomputer 42 side based on signals input from each contact of the shift switch 100 to the monitoring microcomputer 42 and signals input from each contact of the shift switch 100 to the control microcomputer 41. The result of this determination by the abnormality determination unit 42b is input to the abnormality determination unit 41b on the control side.

シフトスイッチ100によれば、三つの接点のどれにも異常が発生していない場合、可動端子110が第1位置にあるときは、第1NO接点と第2NO接点とは開状態であり、NC接点は閉状態である。また、三つの接点のどれにも異常が発生していない場合、可動端子110が第2位置にあるときは、第1NO接点と第2NO接点とは閉状態であり、NC接点は開状態である。そして、三つの接点のどれにも異常が発生していない場合、可動端子110を第1位置から第2位置へ変位させる過程で、全ての接点が開状態になることはなく、全ての接点が閉状態になることもない。 According to the shift switch 100, if no abnormality occurs in any of the three contacts, when the movable terminal 110 is in the first position, the first NO contact and the second NO contact are in an open state, and the NC contact is in a closed state. Also, if no abnormality occurs in any of the three contacts, when the movable terminal 110 is in the second position, the first NO contact and the second NO contact are in a closed state, and the NC contact is in an open state. And, if no abnormality occurs in any of the three contacts, in the process of displacing the movable terminal 110 from the first position to the second position, not all of the contacts are in an open state, and not all of the contacts are in a closed state.

つまり、シフトスイッチ100によれば、第1NO接点と第2NO接点とNC接点との全てが開状態になる場合は、シフトスイッチ100に異常が生じた場合に限られる。同様に、これらの接点の全てが閉状態になる場合も、シフトスイッチ100に異常が生じた場合に限られる。仮に、オン操作あるいはオフ操作の過程で全ての接点が同じ状態になる状態を経由するように構成されたスイッチの場合、全ての接点が同じ状態になったことがオフ固着やオン固着といった接点の異常によるものなのかどうか、すぐには判断することができない。これに対して、シフトスイッチ100によれば、正常であれば全ての接点が同じ状態になることはないので、異常との誤判定を抑制することができる。 In other words, with the shift switch 100, the first NO contact, the second NO contact, and the NC contact are all open only when an abnormality occurs in the shift switch 100. Similarly, all of these contacts are closed only when an abnormality occurs in the shift switch 100. If the switch is configured so that all of the contacts go through a state in which they are in the same state during the on or off operation, it is not possible to immediately determine whether the fact that all of the contacts are in the same state is due to an abnormality in the contacts, such as being stuck off or stuck on. In contrast, with the shift switch 100, if the switch is normal, all of the contacts will not be in the same state, so it is possible to suppress erroneous determination of an abnormality.

ここで、シフトスイッチ100に生じる異常の種類について説明する。 Here, we will explain the types of abnormalities that can occur in the shift switch 100.

まず、図7を参照して、NC接点の断線について説明する。図7に示すように、可動端子110が一点鎖線で示す位置にある場合において、全ての接点が開状態になっていたとする。この場合、各信号線114,115,116から電子制御装置40に入力される信号の組み合わせはOFF・OFF・OFFとなるが、このような信号の組み合わせは正常な状態のシフトスイッチ100では存在しない。よって、どこかの接点においてオフ固着、つまり断線が起きていることが確定する。 First, referring to FIG. 7, a disconnection of the NC contacts will be described. As shown in FIG. 7, when the movable terminal 110 is in the position shown by the dashed line, all of the contacts are in an open state. In this case, the combination of signals input to the electronic control device 40 from each of the signal lines 114, 115, and 116 is OFF-OFF-OFF, but such a combination of signals does not exist in a normal shift switch 100. Therefore, it is determined that one of the contacts is stuck OFF, that is, a disconnection has occurred.

可動端子110が図7に実線で示す位置に移動すると、第1固定端子111と第2固定端子112とがともに正常である場合には、それらは閉状態になる。そのため、信号線114,115から電子制御装置40に入力される信号はOFFからONに切り替わる。一方、第3固定端子113に対応する信号線116から電子制御装置40に入力される信号はOFFに維持される。信号線114,115の信号の変化から第1NO接点と第2NO接点がともに正常であることが判明した時点で、異常が生じている接点はNC接点であることと、その異常が断線であることとが判明する。つまり、NC接点に断線が起きていることが確定する。 When the movable terminal 110 moves to the position shown by the solid line in FIG. 7, the first fixed terminal 111 and the second fixed terminal 112 are closed if both are normal. Therefore, the signal input from the signal lines 114 and 115 to the electronic control unit 40 switches from OFF to ON. Meanwhile, the signal input from the signal line 116 corresponding to the third fixed terminal 113 to the electronic control unit 40 is maintained OFF. When it is determined from the change in the signal on the signal lines 114 and 115 that both the first NO contact and the second NO contact are normal, it is determined that the contact where the abnormality is occurring is the NC contact, and that the abnormality is an open circuit. In other words, it is confirmed that an open circuit has occurred in the NC contact.

次に、図8を参照して、NC接点のショートについて説明する。図8に示すように、可動端子110が一点鎖線で示す位置にある場合において、全ての接点が閉状態になっていたとする。この場合、各信号線114,115,116から電子制御装置40に入力される信号の組み合わせはON・ON・ONとなる。ところが、そのような信号の組み合わせは正常な状態のシフトスイッチ100では存在しない。よって、どこかの接点においてオン固着、つまりショートが起きていることが確定する。 Next, referring to Figure 8, a short circuit of the NC contacts will be described. As shown in Figure 8, when the movable terminal 110 is in the position shown by the dashed line, all of the contacts are in a closed state. In this case, the combination of signals input to the electronic control unit 40 from each of the signal lines 114, 115, and 116 is ON-ON-ON. However, such a combination of signals does not exist in a normal shift switch 100. Therefore, it is determined that one of the contacts is stuck on, in other words, a short circuit has occurred.

可動端子110が図8に実線で示す位置に移動すると、第1固定端子111と第2固定端子112とがともに正常である場合には、それらは開状態になる。そのため、信号線114,115から電子制御装置40に入力される信号はONからOFFに切り替わる。一方、第3固定端子113に対応する信号線116から電子制御装置40に入力される信号はONに維持される。信号線114,115の信号の変化から第1NO接点と第2NO接点がともに正常であることが判明した時点で、異常が生じている接点はNC接点であることと、その異常がショートであることとが判明する。つまり、NC接点にショートが起きていることが確定する。 When the movable terminal 110 moves to the position shown by the solid line in Figure 8, if the first fixed terminal 111 and the second fixed terminal 112 are both normal, they will be in an open state. Therefore, the signal input from signal lines 114 and 115 to the electronic control unit 40 switches from ON to OFF. Meanwhile, the signal input from signal line 116 corresponding to the third fixed terminal 113 to the electronic control unit 40 is maintained ON. When it is determined from the change in the signal on signal lines 114 and 115 that both the first NO contact and the second NO contact are normal, it is determined that the contact where the abnormality is occurring is the NC contact, and that the abnormality is a short circuit. In other words, it is confirmed that a short circuit has occurred in the NC contact.

これらの異常判定方法が可能であることは、シフトスイッチ100について、可動端子110が全ての固定端子111,112,113と接触する状態がなく、かつ、可動端子110がどの固定端子111,112,113にも接触していない状態がないように構成されているためである。仮に、可動端子が摺動する過程でどの固定端子にも接触しない状態となるように構成された場合には、全ての信号がOFFであることを根拠に、すぐには断線が起きているとは確定できない。この場合、実際に断線が起きているかどうか判定するためには、例えば、全ての信号がOFFの状態が所定時間続くかどうかを判定することが考えられる。しかし、この場合には、運転者が可動端子を少しだけ動かした状態が続いた際、実際には異常が起きていないにも関わらず、シフトスイッチに断線が生じたと誤判定される虞がある。あるいは、可動端子が摺動する過程で全ての固定端子と接触する状態となるように構成された場合には、全ての信号がONであることを根拠に、すぐにはショートが起きていると確定できない。この場合も、運転者が可動端子を少しだけ動かした状態が続いた際、実際には異常が起きていないにも関わらず、シフトスイッチにショートが生じたと誤判定される虞がある。 These abnormality determination methods are possible because the shift switch 100 is configured so that the movable terminal 110 is not in contact with all the fixed terminals 111, 112, and 113, and is not in contact with any of the fixed terminals 111, 112, and 113. If the movable terminal is configured so that it does not contact any of the fixed terminals in the process of sliding, it cannot be immediately determined that a break has occurred on the basis that all signals are OFF. In this case, in order to determine whether a break has actually occurred, for example, it can be considered to determine whether all signals remain OFF for a predetermined period of time. However, in this case, when the driver continues to move the movable terminal slightly, there is a risk that it will be erroneously determined that a break has occurred in the shift switch, even though no abnormality actually occurs. Alternatively, if the movable terminal is configured so that it contacts all the fixed terminals in the process of sliding, it cannot be immediately determined that a short has occurred on the basis that all signals are ON. In this case, too, if the driver continues to move the movable terminal slightly, there is a risk that the system will mistakenly determine that a short has occurred in the shift switch, even though no abnormality is actually occurring.

図9は、第2実施形態におけるシフト操作の監視処理を示すフローチャート図である。なお、図9に示す処理は、複数のシフトレンジのうちのDレンジにおけるシフト操作を監視する場合であり、所定の演算周期にて監視用マイコン42により繰り返し実行される。 Figure 9 is a flow chart showing the shift operation monitoring process in the second embodiment. Note that the process shown in Figure 9 is for monitoring the shift operation in the D range among the multiple shift ranges, and is repeatedly executed by the monitoring microcomputer 42 at a predetermined calculation cycle.

監視用マイコン42は、制御用マイコン41からの制御用のシフト信号を受信する(ステップS301)。電子制御装置40では、シフトスイッチ10から制御用マイコン41に入力された制御用のシフト信号が、制御用マイコン41から監視用マイコン42へ出力される。ステップS301では、シフトスイッチ10から制御用マイコン41に入力される信号が監視用マイコン42に入力される。つまり、制御用マイコン41で制御に用いる制御用のシフト信号が監視用マイコン42に入力される。 The monitoring microcomputer 42 receives a control shift signal from the control microcomputer 41 (step S301). In the electronic control device 40, the control shift signal input from the shift switch 10 to the control microcomputer 41 is output from the control microcomputer 41 to the monitoring microcomputer 42. In step S301, the signal input from the shift switch 10 to the control microcomputer 41 is input to the monitoring microcomputer 42. In other words, the control shift signal used for control by the control microcomputer 41 is input to the monitoring microcomputer 42.

監視用マイコン42は、監視用のシフト信号についてDスイッチ14からの信号が入力されたことを検出する(ステップS302)。ステップS302では、シフトスイッチ10の各接点から出力された信号が監視用マイコン42に入力される。 The monitoring microcomputer 42 detects that a signal from the D switch 14 has been input as a monitoring shift signal (step S302). In step S302, the signals output from each contact of the shift switch 10 are input to the monitoring microcomputer 42.

監視用マイコン42は、監視用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFであるか否かを判定する(ステップS303)。ステップS303では、各信号線114,115,116から監視用マイコン42に入力される信号の組合せがOFF・OFF・OFFであるか否かが判定される。 The monitoring microcomputer 42 determines whether all of the monitoring shift signals input from the contacts of the D switch 14 are OFF (step S303). In step S303, it is determined whether the combination of signals input to the monitoring microcomputer 42 from the signal lines 114, 115, and 116 is OFF-OFF-OFF.

監視用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFではない場合(ステップS303:No)、監視用マイコン42は、継続時間をクリアする(ステップS304)。継続時間とは、Dスイッチ14の各接点から監視用マイコン42に入力される信号が全てOFFとなる状態が継続している時間を表すものである。 If the monitoring shift signals input from each contact of the D switch 14 are not all OFF (step S303: No), the monitoring microcomputer 42 clears the duration (step S304). The duration indicates the time during which the state in which all signals input from each contact of the D switch 14 to the monitoring microcomputer 42 are OFF continues.

ステップS304の処理を実施後、監視用マイコン42は、監視側は異常なしと判断する(ステップS305)。ステップS305では、監視側の異常なしを示す判定結果が制御用マイコン41に出力される。 After performing the process of step S304, the monitoring microcomputer 42 determines that there is no abnormality on the monitoring side (step S305). In step S305, a determination result indicating that there is no abnormality on the monitoring side is output to the control microcomputer 41.

ステップS305の処理を実施後、監視用マイコン42は、Dレンジの監視制御を実施する(ステップS306)。ステップS306では、制御用シフトレンジのうちのDレンジに関する処理の監視制御が実施される。つまり、正常時の監視制御が実施される。ステップS306の処理を実施すると、この制御ルーチンは終了する。 After performing the process of step S305, the monitoring microcomputer 42 performs monitoring control of the D range (step S306). In step S306, monitoring control of processing related to the D range of the control shift ranges is performed. In other words, monitoring control under normal conditions is performed. After performing the process of step S306, this control routine ends.

監視用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFである場合(ステップS303:Yes)、監視用マイコン42は、継続時間をカウントアップする(ステップS307)。ステップS307では、Dスイッチ14の各接点から監視用マイコン42に入力される信号が全てOFFである状態の継続時間が加算される。 If all of the monitoring shift signals input from the contacts of the D switch 14 are OFF (step S303: Yes), the monitoring microcomputer 42 counts up the duration (step S307). In step S307, the duration during which all of the signals input from the contacts of the D switch 14 to the monitoring microcomputer 42 are OFF is added.

ステップS307の処理を実施後、監視用マイコン42は、所定時間Cが経過したか否かを判定する(ステップS308)。ステップS308では、ステップS307によりカウントアップされた継続時間が、所定時間Cを超えているか否かが判定される。所定時間Cは予め設定された所定値である。継続時間が所定時間Cを超えている場合には、所定時間Cが経過したと判定される。 After performing the process of step S307, the monitoring microcontroller 42 determines whether or not a predetermined time C has elapsed (step S308). In step S308, it is determined whether or not the duration counted up in step S307 exceeds the predetermined time C. The predetermined time C is a preset value. If the duration exceeds the predetermined time C, it is determined that the predetermined time C has elapsed.

所定時間Cが経過したと判定されていない場合(ステップS308:No)、制御ルーチンはステップS305へ進む。 If it is not determined that the predetermined time C has elapsed (step S308: No), the control routine proceeds to step S305.

所定時間Cが経過したと判定された場合(ステップS308:Yes)、監視用マイコン42は、制御用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFであるか否かを判定する(ステップS309)。ステップS309では、ステップS301で取得した制御用のシフト信号を用いて、Dスイッチ14の各接点から制御用マイコン41に入力された信号が全てOFFであるか否かが判定される。つまり、ステップS309において、監視用マイコン42は、シフトスイッチ100から制御用マイコン41に入力される信号と、シフトスイッチ100から監視用マイコン42に入力される信号とが一致しているか否かを判定する。 If it is determined that the predetermined time C has elapsed (step S308: Yes), the monitoring microcomputer 42 determines whether or not all of the control shift signals input from each contact of the D switch 14 are OFF (step S309). In step S309, using the control shift signals acquired in step S301, it is determined whether or not all of the signals input from each contact of the D switch 14 to the control microcomputer 41 are OFF. In other words, in step S309, the monitoring microcomputer 42 determines whether or not the signal input from the shift switch 100 to the control microcomputer 41 and the signal input from the shift switch 100 to the monitoring microcomputer 42 match.

制御用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFである場合(ステップS309:Yes)、監視用マイコン42は、シフトバイワイヤシステム20におけるワイヤハーネスまたはシフトスイッチ100の異常と判定する(ステップS310)。ステップS310では、シフトスイッチ100と監視用マイコン42との間に設けられたワイヤハーネス(W/H)、またはシフトスイッチ100のモジュールに異常が発生していると判定される。この異常には、ワイヤハーネスの断線またはショート、あるいは、シフトスイッチ100の断線またはショートが含まれる。すなわち、Dスイッチ14に接続された信号線114,115,116、またはシフトスイッチ100自体に異常が発生していると判定される。また、ステップS310では、ワイヤハーネスまたはシフトスイッチ100の異常を示す判定結果が制御用マイコン41に出力される。ステップS310の処理を実施すると、この制御ルーチンは終了する。 When all the control shift signals input from the contacts of the D switch 14 are OFF (step S309: Yes), the monitoring microcomputer 42 judges that there is an abnormality in the wire harness or the shift switch 100 in the shift-by-wire system 20 (step S310). In step S310, it is judged that there is an abnormality in the wire harness (W/H) provided between the shift switch 100 and the monitoring microcomputer 42, or in the module of the shift switch 100. This abnormality includes a break or short in the wire harness, or a break or short in the shift switch 100. In other words, it is judged that there is an abnormality in the signal lines 114, 115, 116 connected to the D switch 14, or in the shift switch 100 itself. In addition, in step S310, a judgment result indicating an abnormality in the wire harness or the shift switch 100 is output to the control microcomputer 41. When the process of step S310 is performed, this control routine ends.

制御用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFではない場合(ステップS309:No)、監視用マイコン42は、監視側の入力回路の異常と判定する(ステップS311)。ステップS311では、監視用マイコン42の入力回路に異常が発生していると判定される。また、ステップS311では、監視用マイコン42の入力回路の異常を示す判定結果が制御用マイコン41に出力される。ステップS311の処理を実施すると、この制御ルーチンは終了する。 If the control shift signals input from the contacts of the D switch 14 are not all OFF (step S309: No), the monitoring microcomputer 42 determines that an abnormality has occurred in the input circuit on the monitoring side (step S311). In step S311, it is determined that an abnormality has occurred in the input circuit of the monitoring microcomputer 42. Also, in step S311, a determination result indicating an abnormality in the input circuit of the monitoring microcomputer 42 is output to the control microcomputer 41. When the process of step S311 is performed, this control routine ends.

そして、監視用マイコン42が所定の演算周期にて処理を繰り返すため、図9に示す処理はループする。そのため、監視用のシフト信号についてDスイッチ14の各接点から入力される信号が全てOFFである判定されて以降は、ステップS307の処理を実施するループに入る。このループに入ると、ステップS307の処理が実施されるたびに、継続時間がカウントアップされる。継続時間が所定時間Cよりも短い場合にはステップS308で否定的に判定されるため、監視側の異常なしと判断される。そして、何度目かのループで継続時間が所定時間Cを超えると、ステップS308で肯定的に判定されるため、異常と判定される。 Then, the monitoring microcomputer 42 repeats the process at a predetermined calculation cycle, so the process shown in FIG. 9 loops. Therefore, after it is determined that all monitoring shift signals input from each contact of the D switch 14 are OFF, the process enters a loop in which the process of step S307 is carried out. Once in this loop, the duration is counted up each time the process of step S307 is carried out. If the duration is shorter than the predetermined time C, a negative determination is made in step S308, so it is determined that there is no abnormality on the monitoring side. Then, if the duration exceeds the predetermined time C in a certain number of loops, a positive determination is made in step S308, so it is determined that there is an abnormality.

また、図9に示す処理フローにおいて、異常の有無に関する判定結果として監視用マイコン42から制御用マイコン41に出力されるため、制御用マイコン41は、監視用マイコン42の制御を監視することができる。 In addition, in the process flow shown in FIG. 9, the monitoring microcomputer 42 outputs the determination result regarding the presence or absence of an abnormality to the control microcomputer 41, so that the control microcomputer 41 can monitor the control of the monitoring microcomputer 42.

図10は、第2実施形態における制御用シフトレンジの判断処理を示すフローチャート図である。なお、図10に示す処理は、制御用シフトレンジにDレンジを判断する場合であり、所定の演算周期にて制御用マイコン41により繰り返し実行される。 Figure 10 is a flow chart showing the process for determining the control shift range in the second embodiment. Note that the process shown in Figure 10 is for the case where the control shift range is determined to be the D range, and is repeatedly executed by the control microcomputer 41 at a predetermined calculation cycle.

制御用マイコン41は、制御用のシフト信号についてDスイッチ14からの信号が入力されていることを検出する(ステップS401)。ステップS401では、シフトスイッチ10の各接点から出力された信号が制御用マイコン41に入力される。 The control microcomputer 41 detects that a control shift signal is being input from the D switch 14 (step S401). In step S401, the signals output from each contact of the shift switch 10 are input to the control microcomputer 41.

制御用マイコン41は、監視側の判定結果を監視用マイコン42から受信する(ステップS402)。ステップS402では、監視側の判定結果として、図9に示すステップS305の処理を実施したこと、ステップS310の処理を実施したこと、ステップS3111を実施したこと、これらのうちのいずれかを示す情報が制御用マイコン41に入力される。 The control microcomputer 41 receives the result of the determination made by the monitoring side from the monitoring microcomputer 42 (step S402). In step S402, information indicating that the processing of step S305 shown in FIG. 9 has been performed, that the processing of step S310 has been performed, or that step S3111 has been performed is input to the control microcomputer 41 as the result of the determination made by the monitoring side.

制御用マイコン41は、制御用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFであるか否かを判定する(ステップS403)。ステップS403では、Dスイッチ14に接続された各信号線114,115,116から制御用マイコン41に入力される信号の組合せがOFF・OFF・OFFであるか否かが判定される。 The control microcomputer 41 determines whether all of the control shift signals input from the contacts of the D switch 14 are OFF (step S403). In step S403, it is determined whether the combination of signals input to the control microcomputer 41 from the signal lines 114, 115, and 116 connected to the D switch 14 is OFF-OFF-OFF.

制御用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFではない場合(ステップS403:No)、制御用マイコン41は、継続時間をクリアする(ステップS404)。この継続時間とは、Dスイッチ14の各接点から制御用マイコン41に入力される信号が全てOFFとなる状態が継続している時間を表すものである。 If the control shift signals input from each contact of the D switch 14 are not all OFF (step S403: No), the control microcomputer 41 clears the duration (step S404). This duration indicates the time during which the state in which all signals input from each contact of the D switch 14 to the control microcomputer 41 are OFF continues.

ステップS403の処理を実施後、制御用マイコン41は、制御側には異常なしと判断する(ステップS405)。 After performing the processing of step S403, the control microcontroller 41 determines that there is no abnormality on the control side (step S405).

ステップS405の処理を実施後、制御用マイコン41は、制御用シフトレンジをDレンジに切り替えるための判断制御を実施する(ステップS406)。ステップS406では、正常時におけるシフトレンジの変更制御が実施される。つまり、ステップS406において、電子制御装置40は、Dスイッチ14から制御用マイコン41に入力されるシフト信号に基づいてDレンジが選択されたかを否かを判定し、制御用シフトレンジをDレンジに切り替えるための判断を行う。ステップS406の処理を実施すると、この制御ルーチンは終了する。 After performing the process of step S405, the control microcomputer 41 performs decision control to switch the control shift range to the D range (step S406). In step S406, control to change the shift range during normal operation is performed. That is, in step S406, the electronic control unit 40 determines whether the D range has been selected based on the shift signal input from the D switch 14 to the control microcomputer 41, and makes a decision to switch the control shift range to the D range. After performing the process of step S406, this control routine ends.

制御用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFである場合(ステップS403:Yes)、制御用マイコン41は、継続時間をカウントアップする(ステップS407)。ステップS407では、Dスイッチ14の各接点から制御用マイコン41に入力される信号が全てOFFである状態の継続時間が加算される。 When all of the control shift signals input from the contacts of the D switch 14 are OFF (step S403: Yes), the control microcomputer 41 counts up the duration (step S407). In step S407, the duration during which all of the signals input from the contacts of the D switch 14 to the control microcomputer 41 are OFF is added.

ステップS407の処理を実施後、制御用マイコン41は、所定時間Dを経過しているか否かを判定する(ステップS408)。ステップS408では、ステップS407により加算された継続時間が、所定時間Dを超えているか否かが判定される。継続時間が所定時間Dを超えている場合には、所定時間Dが経過したと判定される。また、所定時間Dは、所定時間Cよりも長い第2所定時間である。 After performing the process of step S407, the control microcomputer 41 determines whether or not the predetermined time D has elapsed (step S408). In step S408, it is determined whether or not the duration added in step S407 exceeds the predetermined time D. If the duration exceeds the predetermined time D, it is determined that the predetermined time D has elapsed. In addition, the predetermined time D is a second predetermined time that is longer than the predetermined time C.

所定時間Dが経過したと判定されていない場合(ステップS408:No)、制御ルーチンはステップS405へ進む。 If it is not determined that the predetermined time D has elapsed (step S408: No), the control routine proceeds to step S405.

所定時間Dが経過したと判定された場合(ステップS408:Yes)、制御用マイコン41は、監視側の判定結果がワイヤハーネスまたはシフトスイッチ100の異常を示すものであるか否かを判定する(ステップS409)。ステップS409では、ステップS402で取得した監視側の判定結果が、ワイヤハーネスまたはシフトスイッチ100の異常であるか否かが判定される。すなわち、図9に示すステップS310を実施したか否かが判定される。 If it is determined that the predetermined time D has elapsed (step S408: Yes), the control microcomputer 41 determines whether the monitoring side determination result indicates an abnormality in the wire harness or the shift switch 100 (step S409). In step S409, it is determined whether the monitoring side determination result acquired in step S402 indicates an abnormality in the wire harness or the shift switch 100. In other words, it is determined whether step S310 shown in FIG. 9 has been performed.

監視用の判定結果がワイヤハーネスまたはシフトスイッチ100の異常を示すものである場合(ステップS409:Yes)、制御用マイコン41は、シフトバイワイヤシステム20におけるワイヤハーネスまたはシフトスイッチ100の異常と判定する(ステップS410)。ステップS410の処理は、監視側のステップS310の処理と同様である。ステップS410の処理を実施すると、この制御ルーチンは終了する。 If the monitoring determination result indicates an abnormality in the wire harness or the shift switch 100 (step S409: Yes), the control microcomputer 41 determines that there is an abnormality in the wire harness or the shift switch 100 in the shift-by-wire system 20 (step S410). The process of step S410 is the same as the process of step S310 on the monitoring side. After the process of step S410 is performed, this control routine ends.

監視用の判定結果がワイヤハーネスまたはシフトスイッチ100の異常を示すものではない場合(ステップS409:No)、制御用マイコン41は、制御側の入力回路の異常と判定する(ステップS411)。ステップS411では、制御用マイコン41の入力回路に異常が発生していると判定される。ステップS411の処理を実施すると、この制御ルーチンは終了する。 If the monitoring determination result does not indicate an abnormality in the wire harness or the shift switch 100 (step S409: No), the control microcomputer 41 determines that an abnormality has occurred in the input circuit on the control side (step S411). In step S411, it is determined that an abnormality has occurred in the input circuit of the control microcomputer 41. After the processing of step S411 is performed, this control routine ends.

そして、制御用マイコン41が所定の演算周期にて処理を繰り返すため、図10に示す処理はループする。そのため、制御用のシフト信号についてDスイッチ14の各接点から入力される信号が全てOFFであると判定されて以降は、ステップS407の処理を実施するループに入る。このループに入ると、ステップS407の処理が実施されるたびに、継続時間がカウントアップされる。継続時間が所定時間Dよりも短い場合にはステップS408で否定的に判定されるため、制御側の異常なしと判断される。そして、何度目かのループで継続時間が所定時間Dを超えると、ステップS408で肯定的に判定されるため、異常と判定される。 Then, the control microcomputer 41 repeats the process at a predetermined calculation cycle, so the process shown in FIG. 10 loops. Therefore, after it is determined that all control shift signals input from each contact of the D switch 14 are OFF, the process enters a loop in which the process of step S407 is executed. Once in this loop, the duration is counted up each time the process of step S407 is executed. If the duration is shorter than the predetermined time D, a negative determination is made in step S408, so it is determined that there is no abnormality on the control side. Then, if the duration exceeds the predetermined time D in a certain number of loops, a positive determination is made in step S408, so it is determined that there is an abnormality.

以上説明した通り、第2実施形態によれば、シフトスイッチ10の各接点から制御用マイコン41と監視用マイコン42とに入力される信号とを比較することにより、異常が発生しているか否かを判定する。制御用マイコン41と監視用マイコン42とは、相手側のマイコンから取得した情報を用いて、シフトスイッチ10の各接点から入力される信号が全てOFFである状態が所定時間継続した後に異常と判定することができる。これにより、制御用マイコン41と監視用マイコン42との演算タイミングにずれが生じても、異常との誤判定が発生することを抑制することができる。 As described above, according to the second embodiment, the signals input from each contact of the shift switch 10 to the control microcomputer 41 and the monitoring microcomputer 42 are compared to determine whether an abnormality has occurred. Using information acquired from the other microcomputer, the control microcomputer 41 and the monitoring microcomputer 42 can determine that an abnormality has occurred after a predetermined period of time has passed during which all signals input from each contact of the shift switch 10 remain OFF. This makes it possible to prevent erroneous determinations of an abnormality from occurring even if there is a discrepancy in the calculation timing between the control microcomputer 41 and the monitoring microcomputer 42.

また、第2実施形態の変形例として、監視用マイコン42が自身の入力回路に異常が生じていると判定した際に、制御用マイコン41における制御用のシフト信号を用いて監視制御を実施するように構成することができる。さらに、制御用マイコン41が自身の入力回路に異常が生じていると判定した際に、監視用マイコン42における監視用のシフト信号を用いてシフトレンジの変更制御を実施するように構成することができる。この変形例の制御が図11と図12とに示されている。 As a modified example of the second embodiment, when the monitoring microcomputer 42 determines that an abnormality has occurred in its own input circuit, the monitoring control can be performed using a control shift signal in the control microcomputer 41. Furthermore, when the control microcomputer 41 determines that an abnormality has occurred in its own input circuit, the monitoring shift signal in the monitoring microcomputer 42 can be used to perform shift range change control. The control of this modified example is shown in Figures 11 and 12.

図11は、第2実施形態の変形例におけるシフト操作の監視処理を示すフローチャート図である。なお、図11に示す処理は、図9に示す処理の変形例である。図11に示すステップS501~S511の処理は、図9に示すステップS301~S311の処理と同様であるため説明を省略する。 Figure 11 is a flow chart showing the shift operation monitoring process in a modified example of the second embodiment. Note that the process shown in Figure 11 is a modified example of the process shown in Figure 9. The processes of steps S501 to S511 shown in Figure 11 are similar to the processes of steps S301 to S311 shown in Figure 9, so a description thereof will be omitted.

ステップS511の処理を実施後、監視用マイコン42は、制御用のシフト信号を監視用のシフト信号として代用する制御状態に移行する(ステップS512)。ステップS512では、監視用のシフト信号の代わりに、ステップS501で取得した制御用のシフト信号を用いる制御状態に切り替わる。 After performing the process of step S511, the monitoring microcomputer 42 transitions to a control state in which the control shift signal is substituted for the monitoring shift signal (step S512). In step S512, the control state is switched to one in which the control shift signal acquired in step S501 is used instead of the monitoring shift signal.

ステップS512の処理を実施後、制御ルーチンはステップS506に進む。この場合、監視用マイコン42は制御用のシフト信号を用いてDレンジのシフト操作に関する監視制御を継続する。 After performing the process of step S512, the control routine proceeds to step S506. In this case, the monitoring microcomputer 42 continues to monitor and control the shift operation of the D range using the control shift signal.

図12は、第2実施形態の変形例における制御用シフトレンジの判断処理を示すフローチャート図である。なお、図12に示す処理は、図10に示す処理の変形例である。図12に示すステップS601,S603~S612の処理は、図10に示すステップS401~S411の処理と同様であるため説明を省略する。 Figure 12 is a flow chart showing the process for determining the control shift range in a modified example of the second embodiment. The process shown in Figure 12 is a modified example of the process shown in Figure 10. The processes of steps S601 and S603 to S612 shown in Figure 12 are similar to the processes of steps S401 to S411 shown in Figure 10, and therefore will not be described.

ステップS601の処理を実施後、制御用マイコン41は、監視用のシフト信号を監視用マイコン42から受信する(ステップS602)。電子制御装置40では、シフトスイッチ10から監視用マイコン42に入力された監視用のシフト信号が、監視用マイコン42から制御用マイコン41へ出力される。監視用マイコン42で監視制御に用いる監視用のシフト信号が制御用マイコン41に入力される。ステップS602の処理を実施後、この制御ルーチンはステップS603へ進む。 After performing the process of step S601, the control microcomputer 41 receives a monitoring shift signal from the monitoring microcomputer 42 (step S602). In the electronic control device 40, the monitoring shift signal input from the shift switch 10 to the monitoring microcomputer 42 is output from the monitoring microcomputer 42 to the control microcomputer 41. The monitoring shift signal used for monitoring control by the monitoring microcomputer 42 is input to the control microcomputer 41. After performing the process of step S602, this control routine proceeds to step S603.

また、ステップS612の処理を実施後、制御用マイコン41は、監視用のシフト信号を制御用のシフト信号として代用する制御状態に移行する(ステップS613)。ステップS613では、制御用のシフト信号の代わりに、ステップS602で取得した監視用のシフト信号を用いる制御状態に切り替わる。 After performing the process of step S612, the control microcomputer 41 transitions to a control state in which the monitoring shift signal is substituted for the control shift signal (step S613). In step S613, the control state is switched to one in which the monitoring shift signal acquired in step S602 is used instead of the control shift signal.

ステップS613の処理を実施後、制御ルーチンはステップS607に進む。この場合、制御用マイコン41は監視用のシフト信号を用いてDレンジへの切り替えを判断する制御を実施する。 After performing the process of step S613, the control routine proceeds to step S607. In this case, the control microcomputer 41 performs control to determine whether to switch to D range using the monitoring shift signal.

また、シフトスイッチ100について変形例を構成することが可能である。シフトスイッチの変形例を図13~図20に例示する。 Modifications of the shift switch 100 are also possible. Modifications of the shift switch are shown in Figures 13 to 20.

図13に示すように、変形例におけるシフトスイッチ200は、対向接点型スイッチである。第1NO端子211と第2NO端子212とは、位置を固定されたアース端子216に対向して配置されている。NC端子213は、位置が固定されたアース端子217に対向して設置されている。ただし、NC端子213がアース端子217と対向する方向は、第1NO端子211および第2NO端子212がアース端子216と対向する方向と逆方向である。 As shown in FIG. 13, the shift switch 200 in the modified example is an opposed contact type switch. The first NO terminal 211 and the second NO terminal 212 are arranged opposite to an earth terminal 216 whose position is fixed. The NC terminal 213 is installed opposite to an earth terminal 217 whose position is fixed. However, the direction in which the NC terminal 213 faces the earth terminal 217 is opposite to the direction in which the first NO terminal 211 and the second NO terminal 212 face the earth terminal 216.

第1NO端子211と第2NO端子212は、操作部材210とアース端子216との間に配置されている。第1NO端子211は、操作部材210とばね定数の小さいばね214により接続され、かつアース端子216とばね定数の大きいばね215により接続されている。逆に、第2NO端子212は、操作部材210とばね215により接続され、かつアース端子216とばね214により接続されている。NC端子213は、操作部材210と位置を固定された固定部材218との間に配置されている。NC端子213は、操作部材210とばね214により接続され、かつ固定部材218とばね215により接続されている。 The first NO terminal 211 and the second NO terminal 212 are disposed between the operating member 210 and the earth terminal 216. The first NO terminal 211 is connected to the operating member 210 by a spring 214 with a small spring constant, and is connected to the earth terminal 216 by a spring 215 with a large spring constant. Conversely, the second NO terminal 212 is connected to the operating member 210 by a spring 215, and is connected to the earth terminal 216 by a spring 214. The NC terminal 213 is disposed between the operating member 210 and a fixed member 218 whose position is fixed. The NC terminal 213 is connected to the operating member 210 by a spring 214, and is connected to the fixed member 218 by a spring 215.

操作部材210に力を入れていない状態では、第1NO端子211および第2NO端子212はアース端子216から離れており、NC端子213はアース端子217に接触している。第1NO端子211はアース端子216とともに第1接点としての第1NO接点を構成し、第2NO端子212はアース端子216とともに第2接点としての第2NO接点を構成している。また、NC端子213はアース端子217とともに第3接点としてのNC接点を構成している。 When no force is applied to the operating member 210, the first NO terminal 211 and the second NO terminal 212 are away from the earth terminal 216, and the NC terminal 213 is in contact with the earth terminal 217. The first NO terminal 211 and the earth terminal 216 form a first NO contact as a first contact, and the second NO terminal 212 and the earth terminal 216 form a second NO contact as a second contact. The NC terminal 213 and the earth terminal 217 form an NC contact as a third contact.

第1NO端子211、第2NO端子212およびNC端子213のそれぞれには信号線が接続されている。操作部材210に力を加えられていない状態では、図13に示すように、操作部材210は第1位置に位置している。この状態では、第1NO接点と第2NO接点は開いており、それらからはOFF信号が出力されている。一方、NC接点は閉じており、それからはON信号が出力されている。この状態がシフトスイッチ200のオフ状態である。 A signal line is connected to each of the first NO terminal 211, the second NO terminal 212, and the NC terminal 213. When no force is being applied to the operating member 210, as shown in FIG. 13, the operating member 210 is located in the first position. In this state, the first NO contact and the second NO contact are open, and an OFF signal is output from them. On the other hand, the NC contact is closed, and an ON signal is output from it. This state is the OFF state of the shift switch 200.

このシフトスイッチ200において、操作部材210を押し下げていくと、図14に示すように、ばね定数の小さいばね214が縮み、第1NO端子211がアース端子216に接触する。これにより、第1NO接点から出力される信号はON信号となる。さらに操作部材210を押し下げていくと、図15に示すように、ばね定数の大きいばね215が縮み始め、NC端子213がアース端子217から離れる。これにより、NC接点から出力される信号はOFF信号となる。 In this shift switch 200, when the operating member 210 is pressed down, the spring 214 with the small spring constant contracts, and the first NO terminal 211 comes into contact with the ground terminal 216, as shown in FIG. 14. This causes the signal output from the first NO contact to become an ON signal. When the operating member 210 is pressed down further, the spring 215 with the large spring constant begins to contract, and the NC terminal 213 moves away from the ground terminal 217, as shown in FIG. 15. This causes the signal output from the NC contact to become an OFF signal.

そして、操作部材210がさらに押し下げられていくと、図16に示すように、操作部材210は第2位置に達する。第2位置では、第2NO端子212がアース端子216に接触する。これにより、第2NO接点から出力される信号はON信号となる。このとき、第1NO接点と第2NO接点は閉じ、NC接点は開いた状態になっている。この状態がシフトスイッチ200のオン状態である。 When the operating member 210 is further pressed down, it reaches the second position as shown in FIG. 16. In the second position, the second NO terminal 212 comes into contact with the ground terminal 216. This causes the signal output from the second NO contact to be an ON signal. At this time, the first NO contact and the second NO contact are closed, and the NC contact is open. This state is the ON state of the shift switch 200.

また、図17に示すように、別の変形例におけるシフトスイッチ300は、二つの摺動接点と一つの対向接点とを有する混合型スイッチである。このシフトスイッチ300は、位置を固定された二つのNO端子311,312と、アース接続された一つの可動端子310とを備えている。各NO端子311,312は、可動端子310との間で摺動接点を構成する。また、シフトスイッチ300は、NC端子313と位置を固定されたアース端子317とを備えている。NC端子313は、アース端子317との間で対向接点を構成する。NC端子313は、操作部材としての可動端子310と固定部材316との間に配置されている。NC端子313は、可動端子310とばね定数の小さいばね314により接続され、かつ固定部材316とばね定数の大きいばね315により接続されている。各NO端子311,312は、可動端子310との間でNO接点を構成している。NC端子313は、アース端子317との間でNC接点を構成している。 As shown in FIG. 17, a shift switch 300 in another modified example is a mixed switch having two sliding contacts and one opposing contact. This shift switch 300 has two NO terminals 311, 312 whose positions are fixed, and one movable terminal 310 connected to earth. Each NO terminal 311, 312 forms a sliding contact between the movable terminal 310. The shift switch 300 also has an NC terminal 313 and an earth terminal 317 whose position is fixed. The NC terminal 313 forms an opposing contact between the earth terminal 317. The NC terminal 313 is disposed between the movable terminal 310 as an operating member and the fixed member 316. The NC terminal 313 is connected to the movable terminal 310 by a spring 314 with a small spring constant, and is connected to the fixed member 316 by a spring 315 with a large spring constant. Each NO terminal 311, 312 forms a NO contact between the movable terminal 310. The NC terminal 313 forms an NC contact with the earth terminal 317.

可動端子310に力を加えられていない状態では、図17に示すように、可動端子310は第1位置に位置している。この状態では、第1NO接点と第2NO接点は開いており、それらからはOFF信号が出力されている。図17に示す白丸は接点が開いている状態を示している。一方、NC接点は閉じており、それからはON信号が出力されている。この状態がシフトスイッチ300のオフ状態である。 When no force is being applied to the movable terminal 310, as shown in FIG. 17, the movable terminal 310 is in the first position. In this state, the first NO contact and the second NO contact are open, and an OFF signal is output from them. The white circles in FIG. 17 indicate the open contact state. On the other hand, the NC contact is closed, and an ON signal is output from it. This state is the OFF state of the shift switch 300.

このシフトスイッチ300において、ばね314,315を収縮させる方向に可動端子310を摺動させていくと、図18に示すように、可動端子310が第1NO端子311に接触する。これにより、NC接点と第1NO接点が閉じて第2NO接点のみが開いた状態となる。図18に示す黒丸は接点が開いている状態を示している。このとき、ばね定数の大きいばね314に縮み始めているが、NC端子313はアース端子317に接触したままである。可動端子310をさらに摺動させていくと、図19に示すように、ばね定数の大きいばね315が縮み始め、NC端子313がアース端子317から離れる。これにより、NC接点から出力される信号はOFF信号となる。 In this shift switch 300, when the movable terminal 310 is slid in a direction that contracts the springs 314 and 315, the movable terminal 310 comes into contact with the first NO terminal 311, as shown in FIG. 18. This closes the NC contact and the first NO contact, and only the second NO contact is open. The black circles in FIG. 18 indicate the open contact state. At this time, the spring 314 with the large spring constant begins to contract, but the NC terminal 313 remains in contact with the earth terminal 317. When the movable terminal 310 is slid further, the spring 315 with the large spring constant begins to contract, as shown in FIG. 19, and the NC terminal 313 separates from the earth terminal 317. This causes the signal output from the NC contact to become an OFF signal.

そして、可動端子310をさらに摺動させていくと、図20に示すように、可動端子310は第2位置に達する。第2位置では、可動端子310が第2NO端子312に接触する。これにより、第2NO接点から出力される信号はON信号となる。このとき、第1NO接点と第2NO接点は閉じ、NC接点は開いた状態になっている。この状態がシフトスイッチ300のオン状態である。 Then, when the movable terminal 310 is further slid, it reaches the second position as shown in FIG. 20. In the second position, the movable terminal 310 comes into contact with the second NO terminal 312. As a result, the signal output from the second NO contact becomes an ON signal. At this time, the first NO contact and the second NO contact are closed, and the NC contact is open. This state is the ON state of the shift switch 300.

なお、第2実施形態および各変形例で説明したシフトスイッチ100,200,300はいずれも、第1実施形態に適用することが可能である。つまり、第1実施形態のシフトスイッチ10は、第2実施形態のシフトスイッチ200のように構成することが可能である。 The shift switches 100, 200, and 300 described in the second embodiment and each of the modified examples can all be applied to the first embodiment. In other words, the shift switch 10 of the first embodiment can be configured like the shift switch 200 of the second embodiment.

1 車両
3 変速機
10 シフトスイッチ(スイッチ)
11 Pスイッチ
14 Dスイッチ
20 シフトバイワイヤシステム
30 シフト操作装置
40 電子制御装置(異常判定装置)
41 制御用マイコン(第1マイコン)
42 監視用マイコン(第2マイコン)
100 シフトスイッチ
110 可動端子
111 第1固定端子(第1NO端子)
112 第2固定端子(第2NO端子)
113 第3固定端子(NC端子)
1 Vehicle 3 Transmission 10 Shift switch (switch)
11 P switch 14 D switch 20 Shift-by-wire system 30 Shift operation device 40 Electronic control device (abnormality determination device)
41 Control microcomputer (first microcomputer)
42 Monitoring microcomputer (second microcomputer)
100 Shift switch 110 Movable terminal 111 First fixed terminal (first NO terminal)
112 Second fixed terminal (second NO terminal)
113 Third fixed terminal (NC terminal)

Claims (8)

車両のシフトレンジを変更するためのスイッチが操作された際に前記スイッチの操作に応じた制御をそれぞれに実行する第1マイコンおよび第2マイコンを備え、
前記第1マイコンは、前記スイッチが操作された際に当該スイッチから入力される信号に基づいて、当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御を実行し、
前記第2マイコンは、前記スイッチから入力される信号と前記第1マイコンから入力される信号とに基づいて、異常が発生したか否かを判定する監視制御を実行する異常判定装置であって、
前記第2マイコンは、
前記スイッチから入力される信号の入力状態が変化した場合、当該スイッチに対応するシフトレンジへの変更を許可する許可時間を設定し、
前記入力状態が変化してから前記許可時間が経過するまでの間に、前記第1マイコンにより当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御が実行されたことを検知した場合、正常と判定し、
前記入力状態が変化してから前記許可時間が経過した後に、前記第1マイコンにより当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御が実行されたことを検知した場合、異常と判定する
ことを特徴とする異常判定装置。
a first microcomputer and a second microcomputer each executing a control in response to an operation of a switch for changing a shift range of a vehicle, when the switch is operated;
the first microcomputer executes a change control for switching the shift range to a shift range corresponding to the switch based on a signal input from the switch when the switch is operated;
The second microcomputer is an abnormality determination device that executes a monitoring control to determine whether or not an abnormality has occurred based on a signal input from the switch and a signal input from the first microcomputer,
The second microcomputer is
When an input state of a signal input from the switch is changed, an allowance time for allowing a change to the shift range corresponding to the switch is set;
When it is detected that the first microcomputer has executed a change control to switch the shift range to the shift range corresponding to the switch during the period from when the input state has changed to when the permitted time has elapsed, the determination is made that the switch is normal;
an abnormality determination device that determines that an abnormality has occurred when it is detected that the first microcomputer has executed a change control to switch the shift range to the shift range corresponding to the switch after the permitted time has elapsed since the input state changed.
前記第2マイコンは、前記スイッチから入力される信号の入力状態が変化していないときに、前記第1マイコンにより当該スイッチに対応するシフトレンジへと切り替える変更制御が実行されたことを検知した場合、異常と仮判定する
ことを特徴とする請求項1に記載の異常判定装置。
The abnormality determination device according to claim 1, characterized in that the second microcomputer provisionally determines that an abnormality has occurred when it detects that the first microcomputer has executed a change control to switch to the shift range corresponding to the switch while the input state of the signal input from the switch has not changed.
前記第2マイコンは、
前記異常と仮判定した場合、所定の猶予時間を設定し、
前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化した場合、前記仮判定を取り消し、
前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化しない場合、異常と判定する
ことを特徴とする請求項2に記載の異常判定装置。
The second microcomputer is
If the abnormality is provisionally determined, a predetermined grace period is set,
If an input state of a signal input from the switch changes during the period from when the provisional abnormality is determined to have occurred until the grace period has elapsed, the provisional abnormality is cancelled;
3. The abnormality determination device according to claim 2, further comprising: a step of determining that an abnormality has occurred if an input state of a signal input from the switch does not change during a period from when the abnormality has been provisionally determined until the grace period has elapsed.
車両のシフトレンジを変更するためのスイッチが操作された際に前記スイッチの操作に応じた制御をそれぞれに実行する第1マイコンおよび第2マイコンを備え、
前記第1マイコンは、前記スイッチが操作された際に当該スイッチから入力される信号に基づいて、当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御を実行し、
前記第2マイコンは、前記スイッチから入力される信号と前記第1マイコンから入力される信号とに基づいて、異常が発生したか否かを判定する監視制御を実行する異常判定装置であって、
前記スイッチは、ノーマルオープン型の接点とノーマルクローズ型の接点とを有し、各接点から出力される信号に応じて当該スイッチのオンとオフとを制御し、
前記第2マイコンは、
前記スイッチの各接点から入力される信号が全てオフである状態が所定時間以上継続した際に、当該スイッチの各接点から前記第1マイコンに入力される信号が全てオフであることを検知した場合には、当該スイッチと各マイコンとの間に設けられたワイヤハーネス、または当該スイッチに異常が生じていると判定し、
前記スイッチから入力される信号が全てオフである状態が所定時間以上継続した際に、前記スイッチから前記第1マイコンに入力される信号が全てオフではないことを検知した場合、当該第2マイコンの入力回路に異常が生じていると判定する
ことを特徴とする異常判定装置。
a first microcomputer and a second microcomputer each executing a control in response to an operation of a switch for changing a shift range of a vehicle,
the first microcomputer executes a change control for switching the shift range to a shift range corresponding to the switch based on a signal input from the switch when the switch is operated;
The second microcomputer is an abnormality determination device that executes a monitoring control to determine whether or not an abnormality has occurred based on a signal input from the switch and a signal input from the first microcomputer,
the switch has a normally open contact and a normally closed contact, and controls the on/off of the switch in response to a signal output from each contact;
The second microcomputer is
when it is detected that all signals input from the contacts of the switches to the first microcomputer are off when the state in which all signals input from the contacts of the switches are off continues for a predetermined time or more, it is determined that an abnormality has occurred in the wire harness provided between the switch and each microcomputer or in the switch,
An abnormality determination device characterized by determining that an abnormality has occurred in the input circuit of the second microcomputer when it detects that all signals input from the switch to the first microcomputer are not off when a state in which all signals input from the switch are off continues for a predetermined period of time or more.
前記第1マイコンは、前記第2マイコンにより前記異常が生じていると判定されるよりも前に、前記スイッチの各接点から入力される信号が全てオフである状態が第2所定時間以上継続した場合、当該第1マイコンの入力回路に異常が生じていると判定し、
前記第2所定時間は、前記第2マイコンの処理で用いる前記所定時間よりも長い
ことを特徴とする請求項4に記載の異常判定装置。
the first microcomputer determines that an abnormality has occurred in an input circuit of the first microcomputer when a state in which all signals input from each contact of the switch are off continues for a second predetermined time or more before the second microcomputer determines that the abnormality has occurred;
5. The abnormality determination device according to claim 4, wherein the second predetermined time is longer than the predetermined time used in the process of the second microcomputer.
前記第2マイコンは、当該第2マイコンの入力回路の異常と判定した後は、前記スイッチから前記第1マイコンに入力される信号を用いて前記監視制御を実行する
ことを特徴とする請求項4または5に記載の異常判定装置。
The abnormality determination device according to claim 4 or 5, characterized in that after the second microcomputer determines that an abnormality has occurred in the input circuit of the second microcomputer, the second microcomputer executes the monitoring control using a signal input from the switch to the first microcomputer.
前記第1マイコンは、当該第1マイコンの入力回路の異常と判定した後は、前記スイッチから前記第2マイコンに入力される信号を用いて前記変更制御を実行する
ことを特徴とする請求項5に記載の異常判定装置。
6. The abnormality determination device according to claim 5, wherein after determining that an abnormality exists in the input circuit of the first microcomputer, the first microcomputer executes the change control using a signal input from the switch to the second microcomputer.
前記スイッチは、
第1位置と第2位置との間で変位する操作部材と、
前記操作部材の前記第1位置と前記第2位置との間での変位により、信号線を接続するオン状態と、前記信号線を切断するオフ状態との間で状態が切り替わる三つの接点と、を備え、
前記三つの接点は、
前記ノーマルオープン型の接点により構成され、前記操作部材の前記第1位置から前記第2位置への変位の途中で、前記オフ状態から前記オン状態へ切り替わる第1接点と、
前記ノーマルオープン型の接点により構成され、前記操作部材の前記第1位置から前記第2位置への変位の途中、前記第1接点よりも遅いタイミングで、前記オフ状態から前記オン状態へ切り替わる第2接点と、
前記ノーマルクローズ型の接点により構成され、前記操作部材の前記第1位置から前記第2位置への変位の途中、前記第1接点が前記オフ状態から前記オン状態へ切り替わるよりも遅く、かつ前記第2接点が前記オフ状態から前記オン状態へ切り替わるよりも早いタイミングで、前記オン状態から前記オフ状態へ切り替わる第3接点と、を含み、
前記第1マイコンおよび前記第2マイコンには、前記スイッチからの信号として、前記第1接点から出力される第1信号と、前記第2接点から出力される第2信号と、前記第3接点から出力される第3信号と、が入力され、
前記第1マイコンおよび前記第2マイコンは、前記スイッチにおける前記第1信号と前記第2信号と前記第3信号とが全てオフである場合に、当該スイッチから入力される信号が全てオフであると判断する
ことを特徴とする請求項4から7のうちのいずれか一項に記載の異常判定装置。
The switch is
an operating member displaceable between a first position and a second position;
three contacts whose states are switched between an ON state in which a signal line is connected and an OFF state in which the signal line is disconnected in response to a displacement of the operation member between the first position and the second position,
The three contacts are:
a first contact configured by the normally open type contact and switching from the off state to the on state during the displacement of the operating member from the first position to the second position;
a second contact configured by the normally open type contact and switching from the off state to the on state at a timing slower than that of the first contact during the displacement of the operating member from the first position to the second position;
a third contact that is configured by the normally closed type contact and that switches from the on state to the off state at a timing slower than the first contact switching from the off state to the on state and earlier than the second contact switching from the off state to the on state during the displacement of the operating member from the first position to the second position,
a first signal output from the first contact, a second signal output from the second contact, and a third signal output from the third contact are input to the first microcomputer and the second microcomputer as signals from the switch;
The abnormality determination device according to any one of claims 4 to 7, characterized in that the first microcontroller and the second microcontroller determine that all signals input from the switch are off when the first signal, the second signal, and the third signal in the switch are all off.
JP2021093231A 2021-06-02 2021-06-02 Anomaly detection device Active JP7582074B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021093231A JP7582074B2 (en) 2021-06-02 2021-06-02 Anomaly detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021093231A JP7582074B2 (en) 2021-06-02 2021-06-02 Anomaly detection device

Publications (2)

Publication Number Publication Date
JP2022185496A JP2022185496A (en) 2022-12-14
JP7582074B2 true JP7582074B2 (en) 2024-11-13

Family

ID=84438706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021093231A Active JP7582074B2 (en) 2021-06-02 2021-06-02 Anomaly detection device

Country Status (1)

Country Link
JP (1) JP7582074B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015054533A (en) 2013-09-10 2015-03-23 トヨタ自動車株式会社 Shift lever position determination device
JP2016084539A (en) 2011-03-30 2016-05-19 新日鐵住金株式会社 Electroseamed steel pipe for line pipe and manufacturing method therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016084539A (en) 2011-03-30 2016-05-19 新日鐵住金株式会社 Electroseamed steel pipe for line pipe and manufacturing method therefor
JP2015054533A (en) 2013-09-10 2015-03-23 トヨタ自動車株式会社 Shift lever position determination device

Also Published As

Publication number Publication date
JP2022185496A (en) 2022-12-14

Similar Documents

Publication Publication Date Title
CN102365480B (en) Shift control device for vehicle
EP3260740B1 (en) Control system for vehicle
US8620542B2 (en) Vehicle shift control apparatus
CN102271951B (en) Control device for vehicle
JPH0861475A (en) Detector for position of shift adjusted by transmission for automobile
JP7582074B2 (en) Anomaly detection device
JP2006046451A (en) Controller of automatic transmission
CN103906658B (en) Vehicle console device
JP5040467B2 (en) Control device and control method for automatic transmission
JP7211898B2 (en) Switch abnormality detector
JP5724936B2 (en) Shift position determination device
JP4529123B2 (en) Fault detection device for automatic transmission
JPH0562270B2 (en)
JP4358194B2 (en) Control device for automatic transmission
JP4940513B2 (en) Shift control device for transmission
JP4577643B2 (en) Automatic transmission control device
JP6624168B2 (en) Shift lever type vehicle shift operation device
JP6164254B2 (en) Power transmission device for vehicle
KR20210064503A (en) Emergency stop control method and device when slope brake system error occur
JPH0548379B2 (en)
JP2000127806A (en) Emergency stop device for construction vehicle
KR102759418B1 (en) Switch monitoring device for gear shifting
JP4935951B2 (en) Shift control device
JP2015010678A (en) Actuator control device
JP4310985B2 (en) Shift control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240125

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

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240930

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241014

R150 Certificate of patent or registration of utility model

Ref document number: 7582074

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150