[go: up one dir, main page]

JP2022185496A - Abnormality determination apparatus - Google Patents

Abnormality determination apparatus Download PDF

Info

Publication number
JP2022185496A
JP2022185496A JP2021093231A JP2021093231A JP2022185496A JP 2022185496 A JP2022185496 A JP 2022185496A JP 2021093231 A JP2021093231 A JP 2021093231A JP 2021093231 A JP2021093231 A JP 2021093231A JP 2022185496 A JP2022185496 A JP 2022185496A
Authority
JP
Japan
Prior art keywords
switch
microcomputer
shift
contact
abnormality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2021093231A
Other languages
Japanese (ja)
Other versions
JP7582074B2 (en
Inventor
泰広 久世
Yasuhiro Kuze
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)

Abstract

To suppress the occurrence of erroneous determination in monitoring control for changing shift ranges of a vehicle.SOLUTION: An abnormality determination apparatus includes a first microcomputer and a second microcomputer, which respectively execute controls in accordance with an operation of a switch for changing shift ranges of a vehicle, the second microcomputer executing monitor control for determining whether an abnormality has occurred. In the case of detecting an event where change control for switching the shift range to a shift range corresponding to the switch is executed by the first microcomputer during a period between an input state of a signal input from the switch and a passage of a given period of time, the second microcomputer determines to be normal; whereas in the case of detecting an event where the change control for switching the shift range to a shift range corresponding to the switch is executed by the first microcomputer after the given period of time has elapsed since the input state of the signal changed, the second microcomputer determines to be abnormal.SELECTED DRAWING: Figure 3

Description

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

特許文献1には、車両用制御装置がシフトレンジの変更を制御するうえで、メインマイコンによる演算結果とサブマイコンによる演算結果とを用いて、シフトレンジの変更制御が正常に行われているか否かを判定することが開示されている。 In Patent Document 1, when a vehicle control device controls shift range change, it is determined whether shift range change control is normally performed using calculation results by a main microcomputer and calculation results by a sub-microcomputer. It is disclosed to determine whether

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

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

本発明は、上記事情に鑑みてなされたものであって、車両のシフトレンジを変更する制御を監視する際に異常との誤判定が発生することを抑制することができる異常判定装置を提供することを目的とする。 SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and provides an abnormality determination device capable of suppressing the occurrence of an erroneous determination of an abnormality when monitoring control for changing the shift range of a vehicle. for the purpose.

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

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

また、前記第2マイコンは、前記スイッチから入力される信号の入力状態が変化していないときに、前記第1マイコンにより当該スイッチに対応するシフトレンジへと切り替える変更制御が実行されたことを検知した場合、異常と仮判定してもよい。 Further, the second microcomputer 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. If so, it may be tentatively determined to be abnormal.

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

また、前記第2マイコンは、前記異常と仮判定した場合、所定の猶予時間を設定し、前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化した場合、前記仮判定を取り消し、前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化しない場合、異常と判定してもよい。 Further, when the second microcomputer temporarily determines that there is an abnormality, it sets a predetermined grace period. If the input state of the switch changes, the temporary determination is canceled, and if the input state of the signal input from the switch does not change during the period from the temporary determination of abnormality until the grace period elapses, it is determined to be abnormal. You can judge.

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

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

この構成によれば、ノーマルオープン型の接点とノーマルクローズ型の接点のように特性の異なる接点を複数有するスイッチにおいて、スイッチの各接点から各マイコンに入力される信号の入力状態を比較することにより、異常の発生を判定することができる。また、各接点から各マイコンに入力される信号の組合せに基づいて、異常の種類を判別することが可能である。 According to this configuration, in a switch having a plurality of contacts with different characteristics such as a normally open contact and a normally closed contact, by comparing the input state of the signal input from each contact of the switch to each microcomputer, , the occurrence of an abnormality can be determined. Further, 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マイコンの処理で用いる前記所定時間よりも長くてもよい。 Further, the first microcomputer maintains a state in which all signals input from the contacts of the switch are off for a second predetermined time or longer before the second microcomputer determines that the abnormality has occurred. If it continues, it may be determined that an abnormality has occurred in the input circuit of the first microcomputer, and the second predetermined time may be longer than the predetermined time used in the processing of the second microcomputer.

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

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

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

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

この構成によれば、第1マイコンの入力回路に異常が生じていると判断した後、第1マイコンは、スイッチから第2マイコンに入力される信号を用いて変更制御を継続することができる。 According to this configuration, after determining that the input circuit of the first microcomputer has an abnormality, the first microcomputer can continue the change control using the 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信号とが全てオフである場合に、当該スイッチから入力される信号が全てオフであると判断してもよい。 The switch includes an operating member that is displaced between a first position and a second position, and an ON switch that connects the signal line by displacing the operating member between the first position and the second position. three contacts whose states are switched between a state and an off state for disconnecting the signal line, the three contacts being the normally open contacts, and the operation member being in the first position. is composed of a first contact that switches from the off state to the on state in the middle of displacement from the operating member to the second position, and the normally open contact, and the operating member moves from the first position to the second position is composed of a second contact that switches from the off state to the on state at a timing later than that of the first contact during the displacement of the operating member, and the normally closed contact, and the operating member moves from the first position to the first contact. In the middle of the displacement to position 2, the ON state occurs later than the switching of the first contact from the OFF state to the ON state and earlier than the switching of the second contact from the OFF state to the ON state. a first signal output from the first contact and the second contact as signals from the switch to the first microcomputer and the second microcomputer. A second signal output from the switch and a third signal output from the third contact are input, and the first microcomputer and the second microcomputer receive the first signal and the second signal in the switch. If all of the third signals are off, it may be determined that all of the signals input from the switch are off.

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

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

図1は、第1実施形態の車両を模式的に示すスケルトン図である。FIG. 1 is a skeleton diagram that schematically shows the vehicle of the 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 control shift range monitoring process. 図4は、第1実施形態の変形例における制御用シフトレンジの監視処理を示すフローチャート図である。FIG. 4 is a flow chart showing control shift range monitoring processing in a modification of the first embodiment. 図5は、第2実施形態におけるシフトスイッチの概略構成を示す図である。FIG. 5 is a diagram showing a schematic configuration of a shift switch in 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 short-circuited. 図9は、第2実施形態におけるシフト操作の監視処理を示すフローチャート図である。FIG. 9 is a flow chart showing shift operation monitoring processing in the second embodiment. 図10は、第2実施形態における制御用シフトレンジの判断処理を示すフローチャート図である。FIG. 10 is a flow chart showing the control shift range determination process in the second embodiment. 図11は、第2実施形態の変形例におけるシフト操作の監視処理を示すフローチャート図である。FIG. 11 is a flow chart showing shift operation monitoring processing in a modification of the second embodiment. 図12は、第2実施形態の変形例における制御用シフトレンジの判断処理を示すフローチャート図である。FIG. 12 is a flow chart showing a control shift range determination process in a modification 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に示すシフトスイッチの動作を示す図である。14A and 14B are diagrams showing the operation of the shift switch shown in FIG. 13. FIG. 図15は、図13に示すシフトスイッチの動作を示す図である。15 is a diagram showing the operation of the shift switch shown in FIG. 13. FIG. 図16は、図13に示すシフトスイッチの動作を示す図である。16 is a diagram showing the operation of the shift switch shown in FIG. 13. 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に示すシフトスイッチの動作を示す図である。18 is a diagram showing the operation of the shift switch shown in FIG. 17. FIG. 図19は、図17に示すシフトスイッチの動作を示す図である。19 is a diagram showing the operation of the shift switch shown in FIG. 17. FIG. 図20は、図17に示すシフトスイッチの動作を示す図である。20 is a diagram showing the operation of the shift switch shown in FIG. 17. FIG.

以下、図面を参照して、本発明の実施形態における異常判定装置について具体的に説明する。なお、本発明は、以下に説明する実施形態に限定されるものではない。 An abnormality determination device according to an embodiment of the present invention will be specifically described below with reference to the drawings. In addition, this invention is not limited to 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 schematically shows the vehicle of the first embodiment. A vehicle 1 includes an engine 2 as a power source for running, a transmission 3 , a differential gear 4 , an axle 5 , and drive wheels 6 . This vehicle 1 is a FF (front engine/front drive) vehicle. The power output from the engine 2 is transmitted to the left and right drive wheels 6 through the transmission 3, the differential gear 4, and the left and right axles 5 in sequence. The transmission 3 is, for example, a multi-stage transmission including a plurality of planetary gear units and engagement devices.

車両1は、運転席の近傍に配設されたシフトスイッチ10によって選択されたシフトレンジに応じて変速機3のシフトレンジを電気的に切り替えるシフトバイワイヤシステム20を備えている。シフトバイワイヤシステム20は、シフトスイッチ10を備えるシフト操作装置30と、電子制御装置(ECU)40と、パーキングロック装置50とを含んで構成されている。 The vehicle 1 includes a shift-by-wire system 20 that electrically switches the shift range of the transmission 3 according to the shift range selected by the shift switch 10 arranged near the driver's seat. The shift-by-wire system 20 includes a shift operating device 30 having a 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 arranged, 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 when the driver selects a shift range, and is composed of, for example, a momentary push button switch. This shift switch 10 is an ON/OFF switch for designating a shift range, and has a plurality of contacts for determining ON and OFF with one switch.

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

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 transmission 3 is blocked and parking lock is performed by parking lock device 50 . The parking lock device 50 is a mechanism that mechanically prevents the drive wheels 6 from rotating when the vehicle is parked. For example, when the parking lock is not executed by the parking lock device 50 (non-parking lock state), when the driver presses the P switch 11 when a predetermined condition is satisfied, a signal is output from the P switch 11. The electronic control unit 40 that receives the output signal switches the shift range of the transmission 3 to the P range. The non-parking lock state is a state in which the drive wheels 6 are allowed to rotate.

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 running 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 a 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 is in a neutral state. In this N range, the power transmission path from the engine 2 to the drive wheels 6 is blocked, but the rotation of the drive wheels 6 is permitted.

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 running range (D range), and is operated when the driver selects the D range. The D range is a shift range in which driving force for driving 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 deceleration forward driving range (B range), and is operated when the driver selects the B range. The B range is a shift range in which the vehicle 1 exerts an engine braking effect to decelerate the rotation of the driving wheels 6 in the D range. That is, the B range can be selected by pressing the B switch 15 while 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 it is pressed by the driver. The shift signal is an electrical signal indicating that the shift switch 10 has been turned ON or OFF. Electronic control unit 40 electrically detects that shift switch 10 has been operated in response to a shift signal from shift switch 10 .

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

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

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

また、電子制御装置40は、制御用マイコン41と、監視用マイコン42とを備える。シフトスイッチ10からの信号は、図2に示すように、制御用マイコン41と監視用マイコン42とにそれぞれ入力される。シフトスイッチ10から制御用マイコン41に入力される信号は、制御用のシフト信号である。シフトスイッチ10から監視用マイコン42に入力される信号は、監視用のシフト信号である。この電子制御装置40では、制御用マイコン41が第1マイコンであり、監視用マイコン42が第2マイコンである。 The electronic control unit 40 also includes a control microcomputer 41 and a monitoring microcomputer 42 . A signal from the shift switch 10 is input to a control microcomputer 41 and a monitoring microcomputer 42, as shown in FIG. A signal input from the shift switch 10 to the control microcomputer 41 is a control shift signal. A signal input from the shift switch 10 to the monitoring microcomputer 42 is a monitoring shift signal. In this electronic control unit 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 switches the shift range to the shift range corresponding to the shift switch 10 based on the signal output from the shift switch 10 when one of the shift switches 10 is pressed by the driver. It is the main microcomputer that executes change control. The control microcomputer 41 has a determination section 41a.

決定部41aは、シフトスイッチ10から入力されるシフト信号に基づいて制御用シフトレンジを決定する。第1マイコンである制御用マイコン41は、決定部41aにより決定された制御用シフトレンジに基づいて変速機3のシフトレンジを切り替える。また、制御用マイコン41から表示装置60に信号が出力される。そのため、決定部41aにより決定された制御用シフトレンジは、選択中のシフトレンジを表示する表示装置60に表示される。 The determination unit 41 a 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 determining section 41a. Also, 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 that displays the currently selected shift range.

監視用マイコン42は、制御用マイコン41による変更制御を監視するサブマイコンである。この第2マイコンである監視用マイコン42は、シフトスイッチ10から入力される信号と制御用マイコン41から入力される信号とに基づいて、異常が発生したか否かを判定する監視制御を実行する。この監視用マイコン42は、監視部42aを有する。 The monitoring microcomputer 42 is a sub-microcomputer that monitors change control by the control microcomputer 41 . The monitoring microcomputer 42, which is the second microcomputer, 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. . The monitoring microcomputer 42 has a monitoring section 42a.

監視部42aは、電子制御装置40によるシフトレンジの変更制御を監視する。この監視部42aには、決定部41aから出力された信号が入力されるとともに、押圧操作を受けたシフトスイッチ10から出力されたシフト信号が入力される。決定部41aから監視部42aに入力される信号は、決定部41aにより決定された制御用シフトレンジを示す信号である。そのため、監視部42aは、シフトスイッチ10から監視用マイコン42に入力される信号と、制御用マイコン41から監視用マイコン42に入力される信号とに基づいて、シフトスイッチ10の操作により選択されたシフトレンジと制御用マイコン41により決定された制御用シフトレンジとが一致するか否かを判定することができる。 The monitoring unit 42 a monitors shift range change control by the electronic control unit 40 . The monitoring unit 42a receives the signal output from the determining unit 41a and the shift signal output from the shift switch 10 that has been pressed. A signal input from the determining unit 41a to the monitoring unit 42a is a signal indicating the control shift range determined by the determining unit 41a. Therefore, the monitoring unit 42a is selected by operating the shift switch 10 based on a signal input from the shift switch 10 to the monitoring microcomputer 42 and a signal input from the control microcomputer 41 to the monitoring microcomputer 42. It can be determined whether or not the shift range 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 of the control microcomputer 41 . In this case, since the signal output from the determination unit 41a of the control microcomputer 41 is input to the monitoring unit 42a, the monitoring microcomputer 42 detects that the control microcomputer 41 has executed change control to switch the control shift range. can be detected. For example, when the signal from the D switch 14 is not input to the monitoring microcomputer 42, when the control microcomputer 41 performs control to switch the control shift range to the D range, the monitoring microcomputer 42 It is determined that an abnormality has occurred in shift range change control. In this way, the electronic control device 40 is a device that monitors malfunction of the shift-by-wire system 20 and is an abnormality determination device that determines abnormality of the shift-by-wire system 20 .

図3は、制御用シフトレンジの監視処理を示すフローチャート図である。なお、図3には、複数のシフトレンジのうち、Dレンジを監視する場合が示されている。また、図3に示す処理は、所定の演算周期にて監視用マイコン42により繰り返し実行される。 FIG. 3 is a flow chart showing the control shift range monitoring process. Note that FIG. 3 shows a case of monitoring the D range among a plurality of shift ranges. Further, the processing shown in FIG. 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 or not the input state of the monitoring shift signal from the D switch 14 has changed (step S101). In step S101, it is determined whether or not the input state of the signal from the D switch 14 among the shift signals input from the shift operating 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 can be determined whether or not the input state of even one of the signals input from the plurality of contacts of the D switch 14 has changed. In short, the signal whose input state changes may be the signal output from any of the contacts having different characteristics. When the input state of even one of the signals input from the plurality of contacts of the D switch 14 changes, it is not the case that the shift signal changes due to an operation other than the D range, but rather the operation of selecting the D range. I know you are doing

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

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

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

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 kept 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 or not the control shift range has changed from other than the D range to the D range (step S106). In step S106, based on a signal input from the control microcomputer 41 to the monitoring microcomputer 42, it is determined whether or not the control shift range has been switched to the D range.

制御用シフトレンジがDレンジ以外からDレンジに変化した場合(ステップS106:Yes)、監視用マイコン42は、Dレンジ許可フラグがONであるか否かを判定する(ステップS107)。 When the control shift range has changed from other than the D range to the D range (step S106: Yes), the monitoring microcomputer 42 determines whether or not 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 an abnormality treatment 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 while the change to the D range is not permitted, and determines that the shift-by-wire system 20 has an abnormality. . The case where the process of step S108 is executed is the case where the shift range for control is switched to the D range when the input state of the shift signal for monitoring has not changed at all. In other words, this case occurs when all of the signal lines for inputting the shift signal for monitoring (multiple signal lines provided for each contact) are disconnected or short-circuited, and the input signal does not change (first abnormality ), if only the input of the shift signal for control is input with noise that erroneously determines that there is a pressing operation (second abnormality), even if there is no input of the shift signal due to a bug or malfunction of the control Regardless, it is one of the cases where it is determined that there is a pressing operation (third abnormality). Therefore, the electronic control unit 40 executes fail-safe control, such as cutting the driving force of the vehicle 1, as an abnormality measure for the control shift range. After the process of step S108 is executed, this control routine ends.

制御用シフトレンジがDレンジ以外からDレンジに変化しない場合(ステップS106:No)、または、Dレンジ許可フラグがONである場合(ステップS107:Yes)には、この制御ルーチンは終了する。この場合、監視用マイコン42は制御用シフトレンジのうちDレンジに関する処理が正常であると判断する。 If the control shift range does not change from 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 for the D range of 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の処理が実施される。 Since the monitoring microcomputer 42 repeats the processing at a predetermined calculation cycle, the processing shown in FIG. 3 is looped. Therefore, after it is determined that the input state of the signal from the D switch 14 has been switched to ON, a loop is entered in which a negative determination is made in step S101. Once this loop is entered, the D range counter is counted down to 0 each time the process of step S104 is performed. If the D-range counter is greater than zero, the D-range permission flag remains ON, so a loop is formed in which the determination in step S107 is affirmative. Then, when the D range counter reaches 0 in the loop several times, a negative determination is made in step S103, and the D range permission flag is switched from ON to OFF in step S105. That is, after the permission time (predetermined time corresponding to the predetermined value A) elapses after the input state of the signal from the D switch 14 changes, the D range permission flag is turned OFF, so that the shift range for control is set to D. If it changes to the range, it is determined to be abnormal, 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 a malfunction, the monitoring microcomputer 42 receives a predetermined shift signal from the time when the state of the monitoring shift signal input from the shift switch 10 to the monitoring microcomputer 42 changes. The change to that shift range is permitted until the permitted time of . When the control microcomputer 41 changes the control shift range to the shift range when the monitoring microcomputer 42 does not permit the change to the shift range, the monitoring microcomputer 42 determines that there is an abnormality. . As a result, since it is not determined that there is an abnormality until the predetermined permission time elapses after the input state of the shift signal changes, a difference occurs between the calculation timings of the control microcomputer 41 and the monitoring microcomputer 42. However, it is possible to suppress the occurrence of erroneous determination of abnormality.

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

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

図4は、第1実施形態の変形例における制御用シフトレンジの監視処理を示すフローチャート図である。なお、図4に示す処理は、複数のシフトレンジのうちDレンジを監視する場合であり、所定の演算周期にて監視用マイコン42により繰り返し実行される。また、図4に示すステップS201~ステップS205の処理は、図3に示すステップS101~ステップS105の処理と同様であるため説明を省略する。 FIG. 4 is a flow chart showing control shift range monitoring processing in a modification of the first embodiment. The processing shown in FIG. 4 is for monitoring the D range among a plurality of shift ranges, and is repeatedly executed by the monitoring microcomputer 42 at a predetermined calculation cycle. Further, the processing of steps S201 to S205 shown in FIG. 4 is the same as the processing of steps S101 to S105 shown in FIG. 3, so the 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 microcomputer 42 determines whether or not 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 microcomputer 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 microcomputer 42 determines whether or not the control shift range has changed from 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 has changed from 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 represents a grace period until it is determined that the processing of the D-range is abnormal. The predetermined value B is a value greater than zero. That is, by setting the predetermined value B to the D-range abnormality counter, a grace period (predetermined time corresponding to the predetermined value B) until determination of abnormality is established. In other words, when the monitoring microcomputer 42 detects that the control shift range has switched to the D range when the D range permission flag is OFF, it provisionally determines that there is an abnormality. Further, the monitoring microcomputer 42 sets a grace period during which this provisional determination remains. That is, after step S209 provisionally determines that there is an abnormality, step S210 sets a grace period until the D-range permission flag is changed to ON. After performing the process of step S210, this control routine ends.

制御用シフトレンジがDレンジ以外からDレンジに変化しない場合(ステップS209:No)、制御ルーチンはステップS207へ進む。 If the control shift range does not change from other than the D range to the 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に応じた所定時間からのカウントダウンが行われる。 When the D range abnormality counter is greater than zero (step S208: Yes), the monitoring microcomputer 42 subtracts the D range abnormality counter (step S211). In step S211, for example, the value of the D range abnormality counter is subtracted by one. Assuming that the D range abnormality counter before subtraction is "B", the D range abnormality counter after subtraction can be expressed as "B-1". In short, in step S211, a countdown from a predetermined time corresponding to the predetermined value B set in the D range abnormality counter is performed.

ステップS211の処理を実施後、監視用マイコン42は、Dレンジ異常カウンタがゼロよりも大きいか否かを判定する(ステップS212)。 After performing the process of step S211, the monitoring microcomputer 42 determines whether or not 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 loop is performed while maintaining the state temporarily 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 treatment for the control shift range (step S213). A negative determination in step S212 means that the grace period has elapsed. In other words, the state in which the abnormality has been provisionally determined has shifted to the state in which the determination of the abnormality has been finalized. Therefore, the electronic control unit 40 executes fail-safe control, such as cutting the driving force of the vehicle 1, as an abnormality measure for the control shift range. After executing the process of step S213, this control routine ends.

そして、監視用マイコン42が所定の演算周期にて処理を繰り返すため、図4に示す処理はループする。そのため、Dスイッチ14からの信号の入力状態が変化していない状態で制御用シフトレンジがDレンジに切り替わって以降は、ステップS208で肯定的に判定されるループに入る。このループに入ると、ステップS211の処理が実施されるたびにDレンジ異常カウンタが0に向けてカウントダウンされる。Dレンジ異常カウンタがゼロよりも大きい場合にはステップS212で肯定的に判定されるため、異常と仮判定された状態に維持される。そして、何度目かのループでDレンジ異常カウンタが0になると、ステップS212で否定的に判定されるため、異常との判定が確定される。つまり、Dスイッチ14からの信号の入力状態が変化していないときに制御用シフトレンジがDレンジに切り替わってから猶予時間が経過した後は、異常との判定が確定され、ステップS213の処理が実施される。 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 remains unchanged, a loop is entered in which the determination in step S208 is affirmative. Once this loop is entered, the D-range abnormality counter is counted down to 0 each time the process of step S211 is performed. If the D-range abnormality counter is greater than zero, affirmative determination is made in step S212, so the state of provisional determination of abnormality is maintained. Then, when the D-range abnormality counter becomes 0 in the loop several times, the determination of abnormality is confirmed because the determination in step S212 is negative. In other words, after the delay time has elapsed since the control shift range was switched to the D range when the input state of the signal from the D switch 14 has not changed, the determination of the abnormality is confirmed, and the process of step S213 is terminated. be implemented.

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

(第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 the occurrence of an abnormality using a signal output from each contact of the shift switch. In addition, in the description of the second embodiment, the description of the same configuration as that of the first embodiment is omitted, and the reference numerals thereof are 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に搭載することが可能である。 FIG. 5 is a diagram showing a schematic configuration of a shift switch in the second embodiment. The shift switch 100 of the second embodiment includes one movable terminal 110 functioning as an operating member, and three fixed terminals, namely a first fixed terminal 111, a second fixed terminal 112 and a third fixed terminal 113. there is 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 wire 117 is connected to the movable terminal 110 . In this description, normally open may be described as NO, and normally closed as NC. Moreover, the shift switch 100 can be mounted on the vehicle 1 in place of the shift switch 10 of 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 is a terminal that forms a normally open contact with the movable terminal 110 and forms the first contact of the three contacts. This first fixed terminal 111 is a first NO terminal forming a first NO contact. The second fixed terminal 112 is a terminal that forms a normally open contact with the movable terminal 110 and forms the second of the three contacts. This second fixed terminal 112 is a second NO terminal forming a second NO contact. The third fixed terminal 113 is a terminal that forms a normally closed contact with the movable terminal 110 and forms the third contact of the three contacts. This third fixed terminal 113 is an NC terminal forming 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, 113 in a range from a first position indicated by a solid line to a second position indicated by a dashed line in FIG. The black circles shown in FIG. 5 indicate the state in which the contacts are closed, and the white circles in FIG. 5 indicate the state in which the contacts are open. At 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接点のみが開いた状態となる。 Moreover, when the movable terminal 110 moves from the first position to the second position, the movable terminal 110 also contacts 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接点のみが閉じた状態となる。 Further, when the movable terminal 110 moves further toward the second position, the movable terminal 110 comes out of contact with the third fixed terminal 113 and contacts only the first fixed terminal 111 . As a result, the NC contact and the second NO contact are opened and only the first NO contact is closed.

そして、可動端子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, the movable terminal 110 reaches the second position. At 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, and 113 are arranged so that one or two of them come into contact with the movable terminal 110 when the movable terminal 110 slides from the first position to the second position. arrayed. In other words, until the shift switch 100 is switched from the OFF state to the ON state, none of the fixed terminals 111, 112, 113 are in contact with the movable terminal 110, and none of the fixed terminals 111, 112, 113, 113 The three fixed terminals 111 , 112 , 113 are arranged so that neither the 113 nor the movable terminal 110 is in contact with each other.

また、各接点から延びる信号線114,115,116は電子制御装置40に接続されている。図6に示すように、各信号線114,115,116は、制御用マイコン41と監視用マイコン42とに接続されている。信号線114は、第1NO接点からの信号である第1信号を伝達する。信号線115は、第2NO接点からの信号である第2信号を伝達する。信号線116は、NC接点からの信号である第3信号を伝達する。開状態の接点からはOFF信号が出力される。閉状態の接点からはON信号が出力される。 Signal lines 114 , 115 , 116 extending from each contact are connected to the electronic control unit 40 . As shown in FIG. 6, the signal lines 114, 115, 116 are connected to the control microcomputer 41 and the monitoring microcomputer 42, respectively. 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. A signal line 116 transmits a third signal, which is a signal from the NC contact. An OFF signal is output from the open contact. An ON signal is output from the 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と記載する場合がある。 Electronic control unit 40 determines the operation performed on shift switch 100 based on the combination of signals input from signal lines 114 , 115 , and 116 . For example, when the combination of signals on signal lines 114, 115, and 116 is ON/ON/OFF, electronic control unit 40 determines that shift switch 100 has been turned on. When the combination of signals on signal lines 114, 115, and 116 is OFF/OFF/ON, electronic control unit 40 determines that shift switch 100 has been turned off. One shift switch 100 is provided for each range such as P, R, N, D, and B. Switching to each range is assigned to the ON operation of shift switch 100 . In the second embodiment, at least the D switch 14 is provided as the shift switch 100 . Therefore, the shift switch 100 may be referred to as the D switch 14 when describing the D range.

また、電子制御装置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に入力される。 Further, electronic control unit 40 determines whether or not an abnormality has occurred based on the combination of signals input from signal lines 114 , 115 , and 116 . The control microcomputer 41 has an abnormality determination section 41b that determines whether there is an abnormality using signals from the signal lines 114, 115, and 116. FIG. Based on the signal input from each contact of the shift switch 100 and the information indicating the determination result input from the monitoring microcomputer 42, the abnormality determination unit 41b determines whether an abnormality has occurred on the control microcomputer 41 side. determine whether The monitoring microcomputer 42 also has an abnormality determination section 42b that determines whether there is an abnormality using signals from the signal lines 114, 115, and 116. FIG. Based on the signals input to the monitoring microcomputer 42 from each contact of the shift switch 100 and the signals input to the control microcomputer 41 from each contact of the shift switch 100, the abnormality determination unit 42b determines the monitoring microcomputer 42 side. determines whether or not an abnormality has occurred. The result of determination by the abnormality determination section 42b is input to the abnormality determination section 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, when there is no abnormality in any of the three contacts and the movable terminal 110 is in the first position, the first NO contact and the second NO contact are open, and the NC contact is closed. Further, when there is no abnormality in any of the three contacts and the movable terminal 110 is in the second position, the first NO contact and the second NO contact are closed, and the NC contact is open. . When none of the three contacts has an abnormality, none of the contacts are opened during the process of displacing the movable terminal 110 from the first position to the second position. It cannot be closed.

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

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

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

可動端子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 indicated 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 signals input from the signal lines 114 and 115 to the electronic control unit 40 are switched from OFF to ON. On the other hand, the signal input to the electronic control unit 40 from the signal line 116 corresponding to the third fixed terminal 113 is kept OFF. When it becomes clear from changes in the signals 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 abnormal contact is the NC contact and that the abnormality is disconnection. It turns out. In other words, it is determined that disconnection has occurred in the NC contact.

次に、図8を参照して、NC接点のショートについて説明する。図8に示すように、可動端子110が一点鎖線で示す位置にある場合において、全ての接点が閉状態になっていたとする。この場合、各信号線114,115,116から電子制御装置40に入力される信号の組み合わせはON・ON・ONとなる。ところが、そのような信号の組み合わせは正常な状態のシフトスイッチ100では存在しない。よって、どこかの接点においてオン固着、つまりショートが起きていることが確定する。 Next, short-circuiting of the NC contact will be described with reference to FIG. As shown in FIG. 8, it is assumed that all the contacts are closed when the movable terminal 110 is at the position indicated by the dashed line. In this case, the combination of the signals input to the electronic control unit 40 from the signal lines 114, 115 and 116 is ON-ON-ON. However, such a combination of signals does not exist in shift switch 100 in a normal state. Therefore, it is determined that some contact is stuck on, that is, 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 indicated by the solid line in FIG. 8, the first fixed terminal 111 and the second fixed terminal 112 are opened if both are normal. Therefore, the signals input to the electronic control unit 40 from the signal lines 114 and 115 are switched from ON to OFF. On the other hand, the signal input to the electronic control unit 40 from the signal line 116 corresponding to the third fixed terminal 113 is kept ON. When it becomes clear from changes in the signals 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 abnormal contact is the NC contact and that the abnormality is a short circuit. It turns out. That is, it is determined that the NC contact is short-circuited.

これらの異常判定方法が可能であることは、シフトスイッチ100について、可動端子110が全ての固定端子111,112,113と接触する状態がなく、かつ、可動端子110がどの固定端子111,112,113にも接触していない状態がないように構成されているためである。仮に、可動端子が摺動する過程でどの固定端子にも接触しない状態となるように構成された場合には、全ての信号がOFFであることを根拠に、すぐには断線が起きているとは確定できない。この場合、実際に断線が起きているかどうか判定するためには、例えば、全ての信号がOFFの状態が所定時間続くかどうかを判定することが考えられる。しかし、この場合には、運転者が可動端子を少しだけ動かした状態が続いた際、実際には異常が起きていないにも関わらず、シフトスイッチに断線が生じたと誤判定される虞がある。あるいは、可動端子が摺動する過程で全ての固定端子と接触する状態となるように構成された場合には、全ての信号がONであることを根拠に、すぐにはショートが起きていると確定できない。この場合も、運転者が可動端子を少しだけ動かした状態が続いた際、実際には異常が起きていないにも関わらず、シフトスイッチにショートが生じたと誤判定される虞がある。 These abnormality determination methods are possible because the shift switch 100 does not contact the movable terminal 110 with any of the fixed terminals 111, 112, and 113, and the movable terminal 110 does not contact any of the fixed terminals 111, 112, This is because there is no non-contact state with 113 . If the movable terminal were configured so as not to contact any fixed terminal during the sliding process, it would be assumed that disconnection would occur immediately based on the fact that all the signals are OFF. cannot be determined. In this case, in order to determine whether disconnection has actually occurred, for example, it is conceivable to determine whether or not all the signals have been in the OFF state for a predetermined period of time. However, in this case, when the driver continues to move the movable terminal by a small amount, it may be erroneously determined that the shift switch is disconnected even though there is no actual abnormality. . Alternatively, in the case where the movable terminal is configured to come into contact with all the fixed terminals in the process of sliding, it is immediately determined that a short circuit has occurred based on all the signals being ON. Not sure. In this case as well, when the driver continues to move the movable terminal by a small amount, it may be erroneously determined that the shift switch is short-circuited, even though there is actually no abnormality.

図9は、第2実施形態におけるシフト操作の監視処理を示すフローチャート図である。なお、図9に示す処理は、複数のシフトレンジのうちのDレンジにおけるシフト操作を監視する場合であり、所定の演算周期にて監視用マイコン42により繰り返し実行される。 FIG. 9 is a flow chart showing shift operation monitoring processing in the second embodiment. The processing shown in FIG. 9 is for monitoring the shift operation in the D range among the plurality of 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 unit 40 , a 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, a signal input from the shift switch 10 to the control microcomputer 41 is input to the monitoring microcomputer . That is, a 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 the signal from the D switch 14 has been input with respect to the monitoring shift signal (step S302). In step S302, the signal output from each contact of the shift switch 10 is input to the monitoring microcomputer .

監視用マイコン42は、監視用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFであるか否かを判定する(ステップS303)。ステップS303では、各信号線114,115,116から監視用マイコン42に入力される信号の組合せがOFF・OFF・OFFであるか否かが判定される。 The monitoring microcomputer 42 determines whether or not 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 or not 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となる状態が継続している時間を表すものである。 Regarding the shift signal for monitoring, if all the signals input from the contacts of the D switch 14 are not OFF (step S303: No), the monitoring microcomputer 42 clears the duration (step S304). The continuation time represents the time during which all the signals input from the contacts of the D switch 14 to the monitoring microcomputer 42 remain OFF.

ステップS304の処理を実施後、監視用マイコン42は、監視側は異常なしと判断する(ステップS305)。ステップS305では、監視側の異常なしを示す判定結果が制御用マイコン41に出力される。 After executing 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. FIG.

ステップS305の処理を実施後、監視用マイコン42は、Dレンジの監視制御を実施する(ステップS306)。ステップS306では、制御用シフトレンジのうちのDレンジに関する処理の監視制御が実施される。つまり、正常時の監視制御が実施される。ステップS306の処理を実施すると、この制御ルーチンは終了する。 After performing the processing of step S305, the monitoring microcomputer 42 performs monitoring control of the D range (step S306). In step S306, monitoring control of processing relating to the D range of the control shift ranges is performed. In other words, normal monitoring control 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である状態の継続時間が加算される。 Regarding the monitoring shift signal, if all the 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 of the state in which all the signals input to the monitoring microcomputer 42 from each contact of the D switch 14 are OFF is added.

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

所定時間Cが経過したと判定されていない場合(ステップS308:No)、制御ルーチンはステップS305へ進む。 If it is not determined that the predetermined time C has passed (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に入力される信号とが一致しているか否かを判定する。 When it is determined that the predetermined time C has passed (step S308: Yes), the monitoring microcomputer 42 checks whether or not all the signals input from the respective contacts of the D switch 14 regarding the shift signal for control are OFF. Determine (step S309). In step S309, it is determined using the shift signal for control acquired in step S301 whether or not all the signals input to the control microcomputer 41 from each contact of the D switch 14 are OFF. That is, in step S309, the monitoring microcomputer 42 determines whether or not the signal input from the shift switch 100 to the control microcomputer 41 matches the signal input from the shift switch 100 to the monitoring microcomputer 42. do.

制御用のシフト信号について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の処理を実施すると、この制御ルーチンは終了する。 Regarding the shift signal for control, if all the signals input from the contacts of the D switch 14 are OFF (step S309: Yes), the monitoring microcomputer 42 determines that there is an abnormality in the wire harness or the shift switch 100 in the shift-by-wire system 20. Determine (step S310). In step S310, it is determined that the wire harness (W/H) provided between the shift switch 100 and the monitoring microcomputer 42 or the module of the shift switch 100 is abnormal. This abnormality includes wire harness disconnection or short circuit, or shift switch 100 disconnection or short circuit. That is, it is determined that an abnormality has occurred in the signal lines 114, 115, 116 connected to the D switch 14 or the shift switch 100 itself. Further, in step S310, a determination result indicating abnormality of the wire harness or the shift switch 100 is output to the control microcomputer 41. FIG. After performing the process of step S310, this control routine ends.

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

そして、監視用マイコン42が所定の演算周期にて処理を繰り返すため、図9に示す処理はループする。そのため、監視用のシフト信号についてDスイッチ14の各接点から入力される信号が全てOFFである判定されて以降は、ステップS307の処理を実施するループに入る。このループに入ると、ステップS307の処理が実施されるたびに、継続時間がカウントアップされる。継続時間が所定時間Cよりも短い場合にはステップS308で否定的に判定されるため、監視側の異常なしと判断される。そして、何度目かのループで継続時間が所定時間Cを超えると、ステップS308で肯定的に判定されるため、異常と判定される。 Since the monitoring microcomputer 42 repeats the process at a predetermined calculation cycle, the process shown in FIG. 9 is looped. Therefore, after it is determined that all of the signals input from the respective contacts of the D switch 14 regarding the shift signal for monitoring are OFF, a loop for executing the processing of step S307 is entered. Once this loop is entered, the duration is counted up each time the process of step S307 is performed. 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, when the duration exceeds the predetermined time C in the loop several times, the affirmative determination is made in step S308, so that it is determined to be abnormal.

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

図10は、第2実施形態における制御用シフトレンジの判断処理を示すフローチャート図である。なお、図10に示す処理は、制御用シフトレンジにDレンジを判断する場合であり、所定の演算周期にて制御用マイコン41により繰り返し実行される。 FIG. 10 is a flow chart showing the control shift range determination process in the second embodiment. The processing shown in FIG. 10 is for determining the D range as the control shift 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 input from the D switch 14 (step S401). In step S401, the signal output from each contact of the shift switch 10 is input to the control microcomputer 41. FIG.

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

制御用マイコン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 or not 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となる状態が継続している時間を表すものである。 Regarding the shift signal for control, if all the signals input from the contacts of the D switch 14 are not OFF (step S403: No), the control microcomputer 41 clears the duration (step S404). The continuation time represents the time during which all the signals input to the control microcomputer 41 from the contacts of the D switch 14 remain OFF.

ステップS403の処理を実施後、制御用マイコン41は、制御側には異常なしと判断する(ステップS405)。 After executing the process of step S403, the control microcomputer 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 processing of step S405, the control microcomputer 41 performs determination control for switching the control shift range to the D range (step S406). In step S406, control for changing the shift range in normal operation is performed. That is, in step S406, the electronic control unit 40 determines whether or not the D range is selected based on the shift signal input from the D switch 14 to the control microcomputer 41, and sets the control shift range to the D range. Make a decision to switch. After performing the process of step S406, this control routine ends.

制御用のシフト信号についてDスイッチ14の各接点から入力された信号が全てOFFである場合(ステップS403:Yes)、制御用マイコン41は、継続時間をカウントアップする(ステップS407)。ステップS407では、Dスイッチ14の各接点から制御用マイコン41に入力される信号が全てOFFである状態の継続時間が加算される。 Regarding the shift signal for control, if all the 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 of the state in which all the signals input to the control microcomputer 41 from the respective contacts of the D switch 14 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 a predetermined time D has passed (step S408). In step S408, it is determined whether or not the duration added in step S407 exceeds a predetermined time D. When the duration exceeds the predetermined time D, it is determined that the predetermined time D has passed. Also, the predetermined time D is a second predetermined time longer than the predetermined time C. As shown in FIG.

所定時間Dが経過したと判定されていない場合(ステップS408:No)、制御ルーチンはステップS405へ進む。 If it is not determined that the predetermined time D has passed (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 passed (step S408: Yes), the control microcomputer 41 determines whether the result of determination on the monitoring side indicates an abnormality in the wire harness or the shift switch 100 ( step S409). In step S409, it is determined whether or not the result of the determination on the monitoring side obtained in step S402 indicates that the wire harness or shift switch 100 is abnormal. That is, it is determined whether or not 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 the wire harness or the shift switch 100 in the shift-by-wire system 20 is abnormal ( step S410). The process of step S410 is the same as the process of step S310 on the monitoring side. After performing the process of step S410, 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 input circuit on the control side is abnormal (step S411). In step S411, it is determined that the input circuit of the control microcomputer 41 is abnormal. After executing the process of step S411, this control routine ends.

そして、制御用マイコン41が所定の演算周期にて処理を繰り返すため、図10に示す処理はループする。そのため、制御用のシフト信号についてDスイッチ14の各接点から入力される信号が全てOFFであると判定されて以降は、ステップS407の処理を実施するループに入る。このループに入ると、ステップS407の処理が実施されるたびに、継続時間がカウントアップされる。継続時間が所定時間Dよりも短い場合にはステップS408で否定的に判定されるため、制御側の異常なしと判断される。そして、何度目かのループで継続時間が所定時間Dを超えると、ステップS408で肯定的に判定されるため、異常と判定される。 Since the control microcomputer 41 repeats the process at a predetermined calculation cycle, the process shown in FIG. 10 loops. Therefore, after it is determined that all the signals input from the respective contacts of the D switch 14 regarding the shift signals for control are OFF, a loop for executing the processing of step S407 is entered. Once this loop is entered, the duration is counted up each time the process of step S407 is performed. 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, when the duration exceeds the predetermined time D in the loop several times, the determination in step S408 is affirmative, so that it is determined to be abnormal.

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

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

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

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

ステップ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 monitoring and controlling the shift operation of the D range using the shift signal for control.

図12は、第2実施形態の変形例における制御用シフトレンジの判断処理を示すフローチャート図である。なお、図12に示す処理は、図10に示す処理の変形例である。図12に示すステップS601,S603~S612の処理は、図10に示すステップS401~S411の処理と同様であるため説明を省略する。 FIG. 12 is a flow chart showing a control shift range determination process in a modification of the second embodiment. Note that the process shown in FIG. 12 is a modification of the process shown in FIG. The processing of steps S601 and S603 to S612 shown in FIG. 12 is the same as the processing of steps S401 to S411 shown in FIG. 10, so description thereof will be omitted.

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

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

ステップ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 switching to the D range using the shift signal for monitoring.

また、シフトスイッチ100について変形例を構成することが可能である。シフトスイッチの変形例を図13~図20に例示する。 Moreover, it is possible to configure a modified example of the shift switch 100 . Modifications of the shift switch are illustrated in FIGS. 13 to 20. FIG.

図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 to face a ground terminal 216 whose position is fixed. The NC terminal 213 is installed to face a ground terminal 217 whose position is fixed. However, the direction in which NC terminal 213 faces ground terminal 217 is opposite to the direction in which first NO terminal 211 and second NO terminal 212 face ground 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 arranged between the operating member 210 and the ground terminal 216 . The first NO terminal 211 is connected to the operating member 210 by a spring 214 having a small spring constant, and is connected to a ground terminal 216 by a spring 215 having a large spring constant. Conversely, the second NO terminal 212 is connected to the operating member 210 by the spring 215 and is connected to the ground terminal 216 by the spring 214 . The NC terminal 213 is arranged 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 and the spring 214 and is connected to the fixing member 218 and the 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 separated from the ground terminal 216 and the NC terminal 213 is in contact with the ground terminal 217 . The first NO terminal 211 and the ground terminal 216 constitute a first NO contact as a first contact, and the second NO terminal 212 and the ground terminal 216 constitute a second NO contact as a second contact. Also, the NC terminal 213 constitutes an NC contact as a third contact together with the ground terminal 217 .

第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 applied to the operating member 210, the operating member 210 is positioned at the first position as shown in FIG. In this state, the first NO contact and the second NO contact are open, and OFF signals are 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 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 pushed down, the spring 214 having a small spring constant contracts, and the first NO terminal 211 contacts the ground terminal 216, as shown in FIG. As a result, the signal output from the first NO contact becomes an ON signal. As the operation member 210 is further pushed down, the spring 215 having a large spring constant begins to contract, and the NC terminal 213 is separated from the ground terminal 217, as shown in FIG. As a result, the signal output from the NC contact becomes an OFF signal.

そして、操作部材210がさらに押し下げられていくと、図16に示すように、操作部材210は第2位置に達する。第2位置では、第2NO端子212がアース端子216に接触する。これにより、第2NO接点から出力される信号はON信号となる。このとき、第1NO接点と第2NO接点は閉じ、NC接点は開いた状態になっている。この状態がシフトスイッチ200のオン状態である。 When the operating member 210 is further pushed down, the operating member 210 reaches the second position as shown in FIG. In the second position, second NO terminal 212 contacts ground terminal 216 . 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 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接点を構成している。 Also, as shown in FIG. 17, a shift switch 300 in another modification is a hybrid switch having two sliding contacts and one opposing contact. This shift switch 300 has two NO terminals 311 and 312 whose positions are fixed, and one movable terminal 310 which is grounded. Each NO terminal 311 , 312 constitutes a sliding contact with the movable terminal 310 . The shift switch 300 also has an NC terminal 313 and a ground terminal 317 whose position is fixed. NC terminal 313 constitutes an opposing contact with earth terminal 317 . The NC terminal 313 is arranged 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 having a small spring constant, and is connected to a fixed member 316 by a spring 315 having a large spring constant. Each NO terminal 311 , 312 constitutes a NO contact with the movable terminal 310 . The NC terminal 313 constitutes an NC contact with the earth terminal 317 .

可動端子310に力を加えられていない状態では、図17に示すように、可動端子310は第1位置に位置している。この状態では、第1NO接点と第2NO接点は開いており、それらからはOFF信号が出力されている。図17に示す白丸は接点が開いている状態を示している。一方、NC接点は閉じており、それからはON信号が出力されている。この状態がシフトスイッチ300のオフ状態である。 When no force is applied to the movable terminal 310, the movable terminal 310 is positioned at the first position as shown in FIG. In this state, the first NO contact and the second NO contact are open, and OFF signals are output from them. A white circle shown in FIG. 17 indicates a state in which the contact is open. On the other hand, the NC contact is closed and an ON signal is output from it. This state is the OFF state of 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 the direction of contracting the springs 314 and 315, the movable terminal 310 comes into contact with the first NO terminal 311 as shown in FIG. As a result, the NC contact and the first NO contact are closed and only the second NO contact is open. A black circle shown in FIG. 18 indicates a state in which the contact is open. At this time, the NC terminal 313 is still in contact with the ground terminal 317 although the spring 314 having a large spring constant begins to contract. As the movable terminal 310 is further slid, the spring 315 having a large spring constant begins to contract, and the NC terminal 313 separates from the ground terminal 317, as shown in FIG. As a result, the signal output from the NC contact becomes an OFF signal.

そして、可動端子310をさらに摺動させていくと、図20に示すように、可動端子310は第2位置に達する。第2位置では、可動端子310が第2NO端子312に接触する。これにより、第2NO接点から出力される信号はON信号となる。このとき、第1NO接点と第2NO接点は閉じ、NC接点は開いた状態になっている。この状態がシフトスイッチ300のオン状態である。 When the movable terminal 310 is further slid, the movable terminal 310 reaches the second position as shown in FIG. At the second position, movable terminal 310 contacts 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 shift switch 300 .

なお、第2実施形態および各変形例で説明したシフトスイッチ100,200,300はいずれも、第1実施形態に適用することが可能である。つまり、第1実施形態のシフトスイッチ10は、第2実施形態のシフトスイッチ200のように構成することが可能である。 All of the shift switches 100, 200, and 300 described in the second embodiment and each modification can be applied to the first embodiment. That is, 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 that respectively execute control according to the operation of the switch for changing the shift range of the vehicle when the switch is operated;
The first microcomputer performs change control to switch a 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 monitoring control to determine whether an abnormality has occurred based on a signal input from the switch and a signal input from the first microcomputer,
The second microcomputer
setting a permission time for permitting a change to a shift range corresponding to the switch when the input state of the signal input from the switch changes;
When it is detected that the change control for switching the shift range to the shift range corresponding to the switch is executed by the first microcomputer during the period from when the input state changes until the permission time elapses, normal determined to be
When it is detected that the change control for switching the shift range to the shift range corresponding to the switch is executed by the first microcomputer after the allowable time has passed since the input state changed, it is determined as abnormal. An abnormality determination device characterized by:
前記第2マイコンは、前記スイッチから入力される信号の入力状態が変化していないときに、前記第1マイコンにより当該スイッチに対応するシフトレンジへと切り替える変更制御が実行されたことを検知した場合、異常と仮判定する
ことを特徴とする請求項1に記載の異常判定装置。
When the second microcomputer 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. , is provisionally determined to be abnormal.
前記第2マイコンは、
前記異常と仮判定した場合、所定の猶予時間を設定し、
前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化した場合、前記仮判定を取り消し、
前記異常と仮判定したときから前記猶予時間が経過するまでの間に、当該スイッチから入力される信号の入力状態が変化しない場合、異常と判定する
ことを特徴とする請求項2に記載の異常判定装置。
The second microcomputer
When it is provisionally determined that there is an abnormality, a predetermined grace period is set,
canceling the provisional determination when the input state of the signal input from the switch changes during the period from when the provisional determination of the abnormality is made until the grace period elapses;
3. The abnormality according to claim 2, wherein the abnormality is determined when the input state of the signal input from the switch does not change during the period from when the abnormality is provisionally determined until the grace period elapses. judgment device.
車両のシフトレンジを変更するためのスイッチが操作された際に前記スイッチの操作に応じた制御をそれぞれに実行する第1マイコンおよび第2マイコンを備え、
前記第1マイコンは、前記スイッチが操作された際に当該スイッチから入力される信号に基づいて、当該スイッチに対応するシフトレンジへとシフトレンジを切り替える変更制御を実行し、
前記第2マイコンは、前記スイッチから入力される信号と前記第1マイコンから入力される信号とに基づいて、異常が発生したか否かを判定する監視制御を実行する異常判定装置であって、
前記スイッチは、ノーマルオープン型の接点とノーマルクローズ型の接点とを有し、各接点から出力される信号に応じて当該スイッチのオンとオフとを制御し、
前記第2マイコンは、
前記スイッチの各接点から入力される信号が全てオフである状態が所定時間以上継続した際に、当該スイッチの各接点から前記第1マイコンに入力される信号が全てオフであることを検知した場合には、当該スイッチと各マイコンとの間に設けられたワイヤハーネス、または当該スイッチに異常が生じていると判定し、
前記スイッチから入力される信号が全てオフである状態が所定時間以上継続した際に、前記スイッチから前記第1マイコンに入力される信号が全てオフではないことを検知した場合、当該第2マイコンの入力回路に異常が生じていると判定する
ことを特徴とする異常判定装置。
a first microcomputer and a second microcomputer that respectively execute control according to the operation of the switch for changing the shift range of the vehicle when the switch is operated;
The first microcomputer performs change control to switch a 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 monitoring control to determine whether 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, controls on and off of the switch according to a signal output from each contact,
The second microcomputer
When it is detected that all the signals input to the first microcomputer from the contacts of the switch are off when the state in which all the signals input from the contacts of the switch are off continues for a predetermined time or longer. , it is determined that an abnormality has occurred in the wire harness provided between the switch and each microcomputer or in the switch,
When it is detected that all the signals input from the switches to the first microcomputer are not off when the state in which all the signals input from the switches are off continues for a predetermined time or longer, the second microcomputer An anomaly judgment device characterized by judging that an abnormality has occurred in an input circuit.
前記第1マイコンは、前記第2マイコンにより前記異常が生じていると判定されるよりも前に、前記スイッチの各接点から入力される信号が全てオフである状態が第2所定時間以上継続した場合、当該第1マイコンの入力回路に異常が生じていると判定し、
前記第2所定時間は、前記第2マイコンの処理で用いる前記所定時間よりも長い
ことを特徴とする請求項4に記載の異常判定装置。
Before the first microcomputer determines that the abnormality has occurred, the state in which all the signals input from the contacts of the switch are off continues for a second predetermined time or longer. , it is determined that an abnormality has occurred in the input circuit of the first microcomputer,
5. The abnormality determination device according to claim 4, wherein said second predetermined time is longer than said predetermined time used in processing of said second microcomputer.
前記第2マイコンは、当該第2マイコンの入力回路の異常と判定した後は、前記スイッチから前記第1マイコンに入力される信号を用いて前記監視制御を実行する
ことを特徴とする請求項4または5に記載の異常判定装置。
5. After determining that the input circuit of the second microcomputer is abnormal, the second microcomputer executes the monitoring control using the signal input from the switch to the first microcomputer. 6. The abnormality determination device according to 5.
前記第1マイコンは、当該第1マイコンの入力回路の異常と判定した後は、前記スイッチから前記第2マイコンに入力される信号を用いて前記変更制御を実行する
ことを特徴とする請求項5に記載の異常判定装置。
6. After determining that the input circuit of the first microcomputer is abnormal, the first microcomputer executes the change control using a signal input from the switch to the second microcomputer. Abnormality determination device according to.
前記スイッチは、
第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 for connecting a signal line and an OFF state for disconnecting the signal line by displacement of the operating member between the first position and the second position; with
The three contacts are
a first contact that is composed of the normally open contact and that switches from the off state to the on state while the operation member is being displaced from the first position to the second position;
A second contact, which is composed of the normally open type contact and switches from the off state to the on state at a timing later than that of the first contact while the operating member is being displaced from the first position to the second position. a point of contact;
During the displacement of the operating member from the first position to the second position, the first contact is switched from the OFF state to the ON state, and the first contact is switched to the ON state. a third contact that switches from the on state to the off state at an earlier timing than the two contacts switch from the off state to the on state;
In the first microcomputer and the second microcomputer, as signals from the switch, a first signal output from the first contact, a second signal output from the second contact, and a signal output from the third contact A third signal to be output and a are input,
The first microcomputer and the second microcomputer determine that all the signals input from the switch are off when the first signal, the second signal, and the third signal in the switch are all off. 8. The abnormality determination device according to any one of claims 4 to 7, characterized in that it determines.
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 true JP2022185496A (en) 2022-12-14
JP7582074B2 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)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5939220B2 (en) 2013-09-10 2016-06-22 トヨタ自動車株式会社 Shift lever position determination device

Also Published As

Publication number Publication date
JP7582074B2 (en) 2024-11-13

Similar Documents

Publication Publication Date Title
EP3260740B1 (en) Control system for vehicle
JP5359459B2 (en) Vehicle shift control device
CN102271951B (en) Vehicle control device
CN105650261B (en) Shift lever position decision maker for vehicle
CN102047011A (en) vehicle control device
WO2010110177A1 (en) Vehicle shift control apparatus
EP2730818B1 (en) Vehicle and method for controlling vehicle
JP5267270B2 (en) Vehicle shift control device
CN103906658B (en) Vehicle console device
JP2022185496A (en) Abnormality determination apparatus
JP5724936B2 (en) Shift position determination device
JP6700748B2 (en) Shift position control device
JP7211898B2 (en) Switch abnormality detector
JP2009002486A (en) Control device and control method for automatic transmission
KR20210064503A (en) Emergency stop control method and device when slope brake system error occur
JP6624168B2 (en) Shift lever type vehicle shift operation device
JP7002983B2 (en) Range judgment device
JP6164254B2 (en) Power transmission device for vehicle
JPH0548379B2 (en)
JP4577643B2 (en) Automatic transmission control device
JP2015010678A (en) Actuator control device
KR20250109456A (en) SCU Failure Response Method and Apparatus
JP5873357B2 (en) Range detection switch
JP7002982B2 (en) Range judgment device
CN116697029A (en) Transmission selection device for vehicle

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