JP3589049B2 - Ignition key detection processing method - Google Patents
Ignition key detection processing method Download PDFInfo
- Publication number
- JP3589049B2 JP3589049B2 JP31176698A JP31176698A JP3589049B2 JP 3589049 B2 JP3589049 B2 JP 3589049B2 JP 31176698 A JP31176698 A JP 31176698A JP 31176698 A JP31176698 A JP 31176698A JP 3589049 B2 JP3589049 B2 JP 3589049B2
- Authority
- JP
- Japan
- Prior art keywords
- ignition key
- ignition
- value
- turned
- level
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/72—Electric energy management in electromobility
Landscapes
- Electric Propulsion And Braking For Vehicles (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は電気自動車などの走行用モータのコントローラでイグニッションキーのオフを検出する方法に関するものである。
【0002】
【従来の技術】
近年、地球環境保護の面から排気ガスのでない電気自動車が注目され、イグニッションキーをオンすることで、従来のエンジンに相当する走行用モータをそのコントローラで起動させ、イグニッションキーがオフすることで安全に車両を停止させる必要がある。
【0003】
イグニッションキーがオンかオフかを判定する従来例として、イグニッションキーのオンオフ信号をマイコンに入力してソフトウエアで判定させる場合、ある一定の周期で先の入力状態を監視し、一定時間オフの状態が継続すればイグニッションキーがオフしていると判定していた。
【0004】
【発明が解決しようとする課題】
しかしながら、上記従来の一定周期で入力を監視する方法では、一定周期を作り出すためにタイマ割り込みを利用し、もしそのタイマ割り込みが何らかの原因で動作しなくなれば、イグニッションキーがオフしているのに検出できず、機械的にキーがオフされていても電気的にはオンのままという問題があった。
【0005】
また、イグニッションキーがオフされても走行用モータが所定速度に下降するまでマイコンの指令でインバータを運転しており、その時に何らかの異常が発生しても走行用モータが停止に近い低速状態でなければ、インバータは運転された状態にあり、運転者に違和感をあたえる問題があった。
【0006】
本発明は上記従来の課題を解決するもので、イグニッションキーオフを確実に検出し、モータ駆動を停止させることができる安全性の高い電気自動車駆動用コントローラを提供することを目的とする。
【0007】
【課題を解決するための手段】
上記の課題を解決するために本発明は、割り込み等によらないメイン処理中にイグニッションキーがオンかオフかを検出し、ある一定時間内に検出したオンとオフの比率でオフの比率が一定値以上のとき、イグニッションキーがオフと判定するものである。
【0008】
【発明の実施の形態】
上記の課題を解決するために本発明は、割り込み等によらないメイン処理中にイグニッションキーがオンかオフかを検出し、ある一定時間内に検出したオンとオフの比率でオフの比率が一定値以上のとき、イグニッションキーがオフと判定するイグニッションキーの検出処理方法である。
【0009】
また、イグニッションキーがオフと判定されれば、モータを駆動するインバータを停止させるためサーボオフおよびバッテリからの電源供給を遮断する請求項1記載のイグニッションキーの検出処理方法である。
【0010】
このように、割り込み等によらないメイン処理中でイグニッションキーがオフしたことを確実に検出できる。
【0011】
また、イグニッションキーオフを検出すればモータを駆動するインバータを停止させるためサーボオフおよびバッテリからの電源供給を遮断できる。
【0012】
したがって、確実に車両を停止できる安全な走行用モータのコントローラを提供できる。
【0013】
【実施例】
以下本発明の一実施例について図を用いて説明する。
【0014】
(実施例1)
図1において、メイン処理は最下層の優先順位で処理を実行しているため、不定間隔周期でイグニッション検出処理が実行される。
【0015】
まず、マイコンにイグニッションキーの論理レベルを入力する。ここで、入力された論理レベルとイグニッションキーのオン,オフレベルを対応させ、ロウレベルの時にイグニッションキーがオフ、ハイレベルの時にイグニッションキーがオンであるとする。
【0016】
マイコンに入力される論理レベルで、オフであればIGOFF(イグニッションオフ)カウンタをインクリメントし、またオンであればIGON(イグニッションオン)カウンタをインクリメントする。あらかじめ、上記のカウンタには別々にオンオフを判定するための設定値を設定しておき、先にそれぞれの設定値と一致した論理レベルで、イグニッションキーンのオンオフを確定させる。
【0017】
このとき、上記の設定値の比率がオフを判定するための条件となり、イグニッションキーがオンと判定されれば、IGONカウンタとIGOFFカウンタをクリアし、最短でオンオフレベルを確定させる。
【0018】
次に、イグニッションの信号、IGONカウンタ,IGOFFカウンタの動き、そしてレベル確定までの流れを図2を用いて説明する。
【0019】
図2において、aはイグニッションキーの状態に対応する信号で、マイコンに入力するためにレベル変換をしており、イグニッションキーオンがハイレベル、イグニッションキーオフがロウレベルで、横軸は時間変化を示す。bはIGONカウンタの値、cはIGOFFカウンタの値、dはイグニッションキーがオンと判定するための設定値で、本説明では5とする。eはイグニッションキーがオフと判定するための設定値で、本説明では10とする。矢印fはイグニッション検出処理を実行するタイミングを表しており、このタイミングは不定間隔周期であるが、本説明では一定周期で図示している。
【0020】
次に、イグニッションがオンからオフへ切り替わる場合を説明すると、仮に機械的なチャタリングあるいはノイズで信号レベルがオンオフしている場合、矢印fに示す検出タイミングで時間0から順次処理を実行すると、3回目まではイグニッションオンと検出するためIGONカウンタ値は1,2,3と更新していく。このとき、イグニッションオフとは検出していないため、IGOFFカウンタ値は0のままである。
【0021】
さらに、4回目以降11回目まではイグニッションオフと検出するため、IGOFFカウンタ値が1から8まで更新していく。このときイグニッションオンとは検出していないため、IGONカウンタは3のままで更新はされない。
【0022】
そして12回目にイグニッションオンを検出するため、IGONカウンタは更新して4となるが、IGOFFカウンタは更新されずに8のままである。さらに13回目はオフなのでIGOFFカウンタのみ更新され、14回目も同様にオフなのでIGOFFカウンタが更新され10となる。
【0023】
上記にてIGOFF判定用のカウンタ設定値を10としており、14回目でカウンタ値とIGOFF判定用のカウンタ設定値が10で一致した時点で、イグニッションキーがオフと判定する。
【0024】
つまり、IGON,IGOFF判定用のカウンタの設定値をいくらにするかで、一定時間内におけるイグニッションキーのオンオフレベルの比率でオフを判定することが可能となる。上記の例では検出タイミング14回中にオフが10回の約71%の比率でオフと判定できることになる。
【0025】
イグニッションキーオフ検出の応答性を上げるためには、従来のタイマ割り込み処理での検出と合わせ実行するとより有効で、そのタイマ割り込み処理での検出を図4を用いて説明する。
【0026】
一定時間毎に発生する割り込み処理において、まずイグニッションキーのレベルを検出する。そして、前回取り込んだ値と比較し、もし前回値と今回値が等しければカウントアップし、あらかじめ設定された設定値と一致すれば今回読込んだレベルがイグニッションキーのレベルと確定し、処理終了前に今回読込んだレベルを前回値と記憶して処理を終了する。
【0027】
すなわち、一定周期毎にイグニッションキーのレベルを検出し、その読込みレベルが連続して設定された回数すなわち時間継続した時に、イグニッションキーのレベルを現在読込んだレベルで確定する。
【0028】
このタイマ割り込みを用いたイグニッションキーの検出処理方法と、実施例1で説明したメイン処理での検出処理方法とを並列に実行し、2つの検出処理方法のいずれかでイグニッションキーのオフレベルを検出したときに、イグニッションキーがオフと判定することで、応答性を確保することが可能となる。
【0029】
(実施例2)
イグニッションキーオフを検出した場合のインバータの停止処理について、図3に示す。
【0030】
まず、イグニッションキーオフを検出すると、モータへの電流指令をゼロにする。次にインバータを停止させるためサーボオフ信号を出力する。さらに、バッテリからの電源供給を遮断し必要な終了処理を行うものである。
【0031】
なお、図示はしないがモータの電源をバッテリから供給する際、インバータより電源供給の可否を制御している。また、インバータの動作、停止を指示する信号をサーボ信号と呼んでいる。
【0032】
【発明の効果】
上記の実施例から明らかなように請求項1記載の発明によれば、タイマ割り込み処理が何等かの原因で実行されない場合にも、確実にイグニッションキーのオフを検出でき、また、従来のタイマ割り込み処理での検出方法と合わせて実行すれば、さらに検出の応答性を上げることができる。
【0033】
また、請求項2記載の発明によれば、イグニッションキーオフを検出したとき、ただちにインバータを停止しバッテリからの電源供給を遮断することで、イグニッションキーの機械的な位置に合ったモータ制御が可能となり、運転者の違和感を防止することが可能となる。
【0034】
このようにイグニッションキーオフを確実に検出し、モータ駆動を停止させることができるので、安全性の高い電気自動車駆動用コントローラを提供することができる。
【図面の簡単な説明】
【図1】本発明の実施例1のイグニッションキー検出を説明するフローチャート
【図2】本発明の実施例1のイグニッションキーのレベル確定までの流れを説明する概念図
【図3】本発明の実施例のイグニッションキーオフ判定後の処理を説明するフローチャート
【図4】従来のタイマ割り込みを用いたイグニッションキーレベルの判定を説明するフローチャート[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a method for detecting an ignition key being turned off by a controller of a traveling motor of an electric vehicle or the like.
[0002]
[Prior art]
In recent years, electric vehicles without exhaust gas have attracted attention in terms of global environmental protection, and by turning on the ignition key, the driving motor equivalent to a conventional engine is started by its controller, and the ignition key is turned off to ensure safety. Need to stop the vehicle.
[0003]
As a conventional example of determining whether the ignition key is on or off, when inputting the ignition key on / off signal to the microcomputer and making it determined by software, the previous input state is monitored at a certain cycle and the state of off for a certain time It was determined that the ignition key was turned off if continued.
[0004]
[Problems to be solved by the invention]
However, the conventional method of monitoring input at a fixed cycle uses a timer interrupt to create a fixed cycle, and if the timer interrupt stops operating for some reason, it is detected that the ignition key is turned off. There is a problem that the key cannot be turned off mechanically and electrically turned on.
[0005]
In addition, even if the ignition key is turned off, the inverter is driven by the microcomputer until the traveling motor drops to the predetermined speed, and if any abnormality occurs at that time, the traveling motor must be in a low speed state close to stop. For example, there is a problem that the inverter is in a driving state and gives a sense of strangeness to the driver.
[0006]
An object of the present invention is to solve the above-mentioned conventional problems, and an object of the present invention is to provide a highly safe electric vehicle drive controller capable of reliably detecting an ignition key-off and stopping a motor drive.
[0007]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, the present invention detects whether an ignition key is on or off during a main process that does not depend on an interrupt or the like, and a ratio of off is constant at an on / off ratio detected within a certain period of time. When the value is equal to or larger than the value, it is determined that the ignition key is turned off.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
In order to solve the above-mentioned problem, the present invention detects whether an ignition key is on or off during a main process that does not depend on an interrupt or the like, and a ratio of off is constant at an on / off ratio detected within a certain period of time. This is an ignition key detection processing method for determining that the ignition key is turned off when the value is not less than the value.
[0009]
The ignition key detecting method according to
[0010]
In this way, it is possible to reliably detect that the ignition key has been turned off during the main processing without interruption or the like.
[0011]
If the ignition key is detected to be off, the inverter for driving the motor is stopped, so that the servo can be turned off and the power supply from the battery can be cut off.
[0012]
Therefore, it is possible to provide a safe controller for the traveling motor that can surely stop the vehicle.
[0013]
【Example】
An embodiment of the present invention will be described below with reference to the drawings.
[0014]
(Example 1)
In FIG. 1, the main process executes the process in the lowest priority order, so that the ignition detection process is executed at an irregular interval.
[0015]
First, the logic level of the ignition key is input to the microcomputer. Here, it is assumed that the input logic level is associated with the on / off level of the ignition key, and that the ignition key is off when the level is low, and that the ignition key is on when the level is high.
[0016]
The logic level input to the microcomputer, if it is off, the IGOFF (ignition off) counter is incremented, and if it is on, the IGON (ignition on) counter is incremented. In advance, set values for judging ON / OFF are separately set in the above counters, and ON / OFF of the ignition key is determined first at a logic level that matches each set value.
[0017]
At this time, the ratio of the above set values is a condition for judging off, and if it is judged that the ignition key is on, the IGON counter and the IGOFF counter are cleared, and the on / off level is determined at the shortest.
[0018]
Next, the ignition signal, the operation of the IGON counter and the IGOFF counter, and the flow until the level is determined will be described with reference to FIG.
[0019]
In FIG. 2, a is a signal corresponding to the state of the ignition key, which is level-converted to be input to the microcomputer. The ignition key-on is at a high level, the ignition key-off is at a low level, and the horizontal axis represents time change. b is the value of the IGON counter, c is the value of the IGOFF counter, and d is the set value for determining that the ignition key is turned on. e is a set value for determining that the ignition key is turned off, and is set to 10 in this description. The arrow f indicates the timing at which the ignition detection process is executed. This timing has an indefinite interval period, but is shown at a constant period in this description.
[0020]
Next, the case where the ignition is switched from on to off will be described. If the signal level is on or off due to mechanical chattering or noise, if the processing is sequentially performed from
[0021]
Further, the ignition-off is detected from the fourth time to the eleventh time, so that the IGOFF counter value is updated from 1 to 8. At this time, since ignition-on is not detected, the IGON counter remains at 3 and is not updated.
[0022]
The IGON counter is updated to 4 to detect the ignition on at the twelfth time, but the IGOFF counter remains at 8 without being updated. Further, since the thirteenth operation is off, only the IGOFF counter is updated, and the fourteenth operation is similarly off, so that the IGOFF counter is updated to 10.
[0023]
In the above description, the counter setting value for IGOFF determination is set to 10. When the counter value matches the counter setting value for IGOFF determination at the 14th time, the ignition key is determined to be off.
[0024]
That is, by setting the value of the IGON / IGOFF determination counter, it is possible to determine whether the ignition key is turned off in the ratio of the on / off level of the ignition key within a certain period of time. In the above example, during the 14 detection timings, the OFF can be determined at a rate of about 71% of the 10 times.
[0025]
In order to improve the responsiveness of the ignition key-off detection, it is more effective to execute it together with the detection in the conventional timer interrupt processing. The detection in the timer interrupt processing will be described with reference to FIG.
[0026]
In the interrupt processing that occurs at regular intervals, first, the level of the ignition key is detected. Then, the value is compared with the previously acquired value, and if the previous value is equal to the current value, the count is incremented. If the value matches the preset value, the currently read level is determined as the level of the ignition key. Is stored as the previous value, and the process ends.
[0027]
That is, the level of the ignition key is detected at regular intervals, and when the read level is continuously set for a set number of times, that is, for a predetermined time, the level of the ignition key is determined at the currently read level.
[0028]
The ignition key detection processing method using the timer interrupt and the detection processing method in the main processing described in the first embodiment are executed in parallel, and the ignition key off level is detected by one of the two detection processing methods. At this time, it is possible to ensure responsiveness by determining that the ignition key is turned off.
[0029]
(Example 2)
FIG. 3 shows a process of stopping the inverter when the ignition key is detected to be off.
[0030]
First, when the ignition key is detected, the current command to the motor is set to zero. Next, a servo-off signal is output to stop the inverter. Further, the power supply from the battery is cut off and necessary termination processing is performed.
[0031]
Although not shown, when the power of the motor is supplied from the battery, the availability of the power is controlled by the inverter. Also, a signal instructing the operation and stop of the inverter is called a servo signal.
[0032]
【The invention's effect】
As is apparent from the above embodiment, according to the first aspect of the present invention, even when the timer interrupt processing is not executed for some reason, it is possible to reliably detect the ignition key being turned off, and to realize the conventional timer interrupt processing. If executed in conjunction with the detection method in the processing, the responsiveness of detection can be further increased.
[0033]
According to the second aspect of the invention, when the ignition key is detected to be off, the inverter is immediately stopped and the power supply from the battery is cut off, so that the motor can be controlled in accordance with the mechanical position of the ignition key. Therefore, it is possible to prevent the driver from feeling uncomfortable.
[0034]
As described above, since the ignition key-off can be reliably detected and the motor drive can be stopped, it is possible to provide a highly safe electric vehicle drive controller.
[Brief description of the drawings]
FIG. 1 is a flowchart illustrating ignition key detection according to a first embodiment of the present invention. FIG. 2 is a conceptual diagram illustrating a flow up to determination of an ignition key level according to a first embodiment of the present invention. FIG. 4 is a flowchart for explaining processing after an ignition key off determination in an example. FIG. 4 is a flowchart for explaining ignition key level determination using a conventional timer interrupt.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31176698A JP3589049B2 (en) | 1998-11-02 | 1998-11-02 | Ignition key detection processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31176698A JP3589049B2 (en) | 1998-11-02 | 1998-11-02 | Ignition key detection processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000139001A JP2000139001A (en) | 2000-05-16 |
| JP3589049B2 true JP3589049B2 (en) | 2004-11-17 |
Family
ID=18021233
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP31176698A Expired - Fee Related JP3589049B2 (en) | 1998-11-02 | 1998-11-02 | Ignition key detection processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3589049B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5787065B2 (en) * | 2011-04-26 | 2015-09-30 | 株式会社ユーシン | Vehicle locking device |
-
1998
- 1998-11-02 JP JP31176698A patent/JP3589049B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2000139001A (en) | 2000-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7377349B2 (en) | Slip control device for vehicle, vehicle mounted with the device, and the method of controlling vehicle slip | |
| JPS6261868A (en) | Drive controller for motor negative pressure pump | |
| JP5568527B2 (en) | Vehicle control device | |
| CN103419839A (en) | Power-steering control system | |
| JP4172222B2 (en) | Control device for electric vehicle | |
| JP3883917B2 (en) | Control device for throttle valve drive device | |
| JPH08318757A (en) | Motor control method | |
| JP4306624B2 (en) | Starter control device | |
| JP2010261346A (en) | Sudden start prevention device | |
| JP3589049B2 (en) | Ignition key detection processing method | |
| JP4626088B2 (en) | High voltage system shutoff device for automobiles | |
| JP4465664B2 (en) | Automatic start control device for internal combustion engine | |
| JPH05122801A (en) | Controller for electric automobile | |
| JPS60107430A (en) | Slip prevention device for car | |
| JP5181617B2 (en) | Vehicle power supply | |
| KR100288242B1 (en) | Method for diagnosis and threatment accel pedal sensor trouble in diesel vehicle | |
| KR100507467B1 (en) | Apparatus for failure detection of acceleration pedal sensor on diesel vehicle and method thereof | |
| JPH0599058A (en) | Controller mounted on vehicle | |
| JP3663269B2 (en) | Abnormality detection apparatus and method for internal combustion engine | |
| JP4134669B2 (en) | Vehicle blinker failure diagnosis device | |
| JP3171132B2 (en) | Rotation speed signal transmission error detection device | |
| JP2001061202A (en) | Electric Vehicle Safety Protection Methods | |
| JPH06233594A (en) | Controller of stepping motor | |
| JPS5823253A (en) | Automatically starting and stopping method of automobile engine | |
| JPH08270487A (en) | Throttle abnormality detecting device for internal combustion engine |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 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: 20040727 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040809 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070827 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080827 Year of fee payment: 4 |
|
| LAPS | Cancellation because of no payment of annual fees |