JP5814994B2 - Motorcycle lighting equipment - Google Patents

Motorcycle lighting equipment Download PDF

Info

Publication number
JP5814994B2
JP5814994B2 JP2013194379A JP2013194379A JP5814994B2 JP 5814994 B2 JP5814994 B2 JP 5814994B2 JP 2013194379 A JP2013194379 A JP 2013194379A JP 2013194379 A JP2013194379 A JP 2013194379A JP 5814994 B2 JP5814994 B2 JP 5814994B2
Authority
JP
Japan
Prior art keywords
ecu
state
pulse
timer
input
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
Application number
JP2013194379A
Other languages
Japanese (ja)
Other versions
JP2015058830A (en
Inventor
純也 丹羽
純也 丹羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2013194379A priority Critical patent/JP5814994B2/en
Publication of JP2015058830A publication Critical patent/JP2015058830A/en
Application granted granted Critical
Publication of JP5814994B2 publication Critical patent/JP5814994B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Description

本発明は、自動二輪車の灯火装置に係り、特に、ヘッドライトスイッチのオンオフ判定を行うことができる自動二輪車の灯火装置に関する。   The present invention relates to a motorcycle lighting device, and more particularly, to a motorcycle lighting device capable of determining on / off of a headlight switch.

従来から、ヘッドライトスイッチがオンまたはオフのいずれにあるかをECUによって判定できるようにした車両の灯火装置が知られている。   2. Description of the Related Art Conventionally, there is known a vehicle lighting device that allows an ECU to determine whether a headlight switch is on or off.

特許文献1には、直流電流で点灯するヘッドライトのヘッドライトスイッチにおいて、ヘッドライトスイッチに印加される直流電流をECU(CPU)のA/D入力ポートに入力し、このA/D入力ポートがHレベルまたはLレベルであることに基づいてヘッドライトスイッチのオンオフ状態を判定するようにした構成が開示されている。   In Patent Literature 1, in a headlight switch of a headlight that is lit with a direct current, a direct current applied to the headlight switch is input to an A / D input port of an ECU (CPU), and this A / D input port is A configuration is disclosed in which the on / off state of the headlight switch is determined based on the H level or the L level.

特開2009−259622号公報JP 2009-259622 A

しかしながら、特許文献1に記載された技術では、交流電流で点灯するヘッドライトにおいてヘッドライトスイッチに印加される電流が交流となる場合には、ECUのA/D入力ポートに交流電流を直接入力できないことからヘッドライトスイッチの状態判定を行うことができない。   However, in the technique described in Patent Document 1, when the current applied to the headlight switch is alternating current in a headlight that is lit with alternating current, alternating current cannot be directly input to the A / D input port of the ECU. Therefore, it is impossible to determine the state of the headlight switch.

この場合、ヘッドライトライトスイッチに印加される交流電流を直流電流に変換する構成を追加するとコストが上昇してしまうし、また、交流電流をECUで処理しやすいようにデジタル形式(パルス信号)に変換する方法では、パルス信号が入力される度にヘッドライトスイッチの状態判定が行われることとなり、本来ECUが実行すべきタスクが遅れる可能性があるという課題があった。   In this case, adding a configuration for converting the alternating current applied to the headlight switch to direct current increases the cost, and also converts the alternating current into a digital format (pulse signal) so that the ECU can easily process the alternating current. In the conversion method, the state determination of the headlight switch is performed every time a pulse signal is input, and there is a problem that a task that the ECU should originally perform may be delayed.

本発明の目的は、上記従来技術の課題を解決し、交流電流が印加されるヘッドライトスイッチの状態判定が可能で、かつコストの上昇を抑えながら制御部の負担も軽減できる自動二輪車の灯火装置を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to solve the above-described problems of the prior art, and to determine the state of a headlight switch to which an alternating current is applied, and to reduce the burden on the control unit while suppressing an increase in cost. Is to provide.

前記目的を達成するために、本発明は、エンジン(1)の回転により発電する発電機(2)と、前記発電機(2)の交流電流を灯火器(7)に供給する半波電流に変換するレギュレータ部(3)と、前記レギュレータ部(3)と前記灯火器(7)との間に介設される灯火器スイッチ(6)と、車両の状態を判別する制御部(8)とを有する自動二輪車の灯火装置において、前記レギュレータ部(3)で変換された半波電流に同期するパルス信号(Pf)を生成する入力回路(10)と、前記パルス信号(Pf)の状態を予め定められたタイミング(T)で一時的に記憶する記憶部(12)と、前記記憶部(12)に記憶された前記パルス信号(Pf)の状態に基づいてECU内変換パルス(Pe)を生成する変換パルス生成部(11)とを具備し、前記制御部(8)が、前記ECU内変換パルス(Pe)の状態に基づいて、前記灯火器スイッチ(6)のオンオフ状態を判定する点に第1の特徴がある。   In order to achieve the above object, the present invention provides a generator (2) that generates electric power by rotating an engine (1) and a half-wave current that supplies an alternating current of the generator (2) to a lamp (7). A regulator unit (3) for conversion, a lamp switch (6) interposed between the regulator unit (3) and the lamp (7), and a control unit (8) for determining the state of the vehicle; The input circuit (10) for generating a pulse signal (Pf) synchronized with the half-wave current converted by the regulator unit (3), and the state of the pulse signal (Pf) in advance A storage unit (12) that temporarily stores at a predetermined timing (T), and a conversion pulse (Pe) in the ECU is generated based on the state of the pulse signal (Pf) stored in the storage unit (12) A conversion pulse generator (11) And, the control section (8), on the basis of the state of the ECU in the conversion pulse (Pe), is first characterized in that to determine the on-off state of the lighting device switch (6).

また、前記制御部(8)は、前記ECU内変換パルス(Pe)の入力に応じてタイマ(13)のカウント値のカウントを行い、前記カウントの結果に基づいて前記灯火器スイッチ(6)の状態を判定する点に第2の特徴がある。   Further, the control unit (8) counts the count value of the timer (13) in response to the input of the ECU internal conversion pulse (Pe), and based on the result of the count, the lamp switch (6) The second feature is that the state is determined.

また、前記制御部(8)は、前記ECU内変換パルス(Pe)の入力に応じて、前記タイマ(13)のカウンタ値を初期値(MAX)から所定時間毎にデクリメントする減算処理を開始し、その後、前記カウンタ値がゼロに戻る前に、再度、前記ECU内変換パルス(Pe)が入力されると、前記カウント値を初期値(MAX)に戻すリセットを実行する点に第3の特徴がある。   Further, the control unit (8) starts a subtraction process for decrementing the counter value of the timer (13) from the initial value (MAX) every predetermined time in response to the input of the in-ECU conversion pulse (Pe). Thereafter, when the ECU internal conversion pulse (Pe) is input again before the counter value returns to zero, a reset is performed to return the count value to the initial value (MAX). There is.

また、前記制御部(8)は、入力された前記ECU内変換パルス(Pe)のパルス幅(W)が所定値よりも短い場合には、前記タイマ(13)によるカウントを実行しない点に第4の特徴がある。   Further, the control unit (8) does not execute the counting by the timer (13) when the pulse width (W) of the input conversion pulse (Pe) in the ECU is shorter than a predetermined value. There are four features.

さらに、前記制御部(8)は、前記自動二輪車の電源オンから所定時間内に前記ECU内変換パルス(Pe)が入力された場合には、前記カウンタ値のリセットを実行しない点に第5の特徴がある。   Further, the control unit (8) is configured not to reset the counter value when the ECU conversion pulse (Pe) is input within a predetermined time from turning on the power of the motorcycle. There are features.

第1の特徴によれば、レギュレータ部で変換された半波電流に同期するパルス信号を生成する入力回路と、パルス信号の状態を予め定められたタイミングで一時的に記憶する記憶部と、記憶部に記憶されたパルス信号の状態に基づいてECU内変換パルスを生成する変換パルス生成部とを具備し、制御部が、ECU内変換パルスの状態に基づいて灯火器スイッチのオンオフ状態を判定するので、パルス信号の状態を検知することで、交流電流で点灯する灯火器の灯火器スイッチの状態を判定することが可能となる。これにより、灯火器スイッチに印加される電流を直流に変換するような仕掛けが不要になりコストの上昇が抑えられる。   According to the first feature, the input circuit that generates the pulse signal synchronized with the half-wave current converted by the regulator unit, the storage unit that temporarily stores the state of the pulse signal at a predetermined timing, A conversion pulse generation unit that generates an in-ECU conversion pulse based on the state of the pulse signal stored in the unit, and the control unit determines the on / off state of the lamp switch based on the state of the in-ECU conversion pulse Therefore, by detecting the state of the pulse signal, it is possible to determine the state of the lamp switch of the lamp that is lit with an alternating current. This eliminates the need for a device that converts the current applied to the lamp switch to direct current, thereby suppressing an increase in cost.

また、パルス信号の状態が一旦レジスタ等の記憶部に格納され、その後、制御部が予め定められたタイミングでそのパルス信号のステータスを読み込んでECU内変換パルスを生成し、このECU内変換パルスに基づいて灯火器スイッチの状態を判定するので、制御部が行うべきタスクを行ってから灯火器スイッチのオンオフ状態を判定することができ、制御部への負荷集中を低減させることができる。   In addition, the state of the pulse signal is temporarily stored in a storage unit such as a register, and then the control unit reads the status of the pulse signal at a predetermined timing to generate a conversion pulse in the ECU, and the conversion pulse in the ECU Since the state of the lighting device switch is determined based on this, it is possible to determine the on / off state of the lighting device switch after performing a task to be performed by the control unit, and to reduce load concentration on the control unit.

第2の特徴によれば、制御部は、ECU内変換パルスの入力に応じてタイマのカウント値のカウントを行い、カウントの結果に基づいて灯火器スイッチの状態を判定するので、交流波形に同期したパルス信号に基づいて灯火器スイッチのオンオフ状態を適切に判定できる。   According to the second feature, the control unit counts the count value of the timer according to the input of the conversion pulse in the ECU, and determines the state of the lighting switch based on the result of the count, so that it is synchronized with the AC waveform. The on / off state of the lamp switch can be appropriately determined based on the pulse signal thus obtained.

第3の特徴によれば、制御部は、ECU内変換パルスの入力に応じて、タイマのカウンタ値を初期値から所定時間毎にデクリメントする減算処理を開始し、その後、カウンタ値がゼロに戻る前に、再度、ECU内変換パルスが入力されると、カウント値を初期値に戻すリセットを実行するので、灯火器スイッチがオン状態にある間は、カウンタ値がリセットに戻ってデクリメント処理が継続されることで灯火器スイッチのオン状態を検知できる。また、灯火器スイッチがオフにされて所定時間が経過するとカウンタ値がゼロに戻り、これにより灯火器スイッチのオフ状態を検知できる。   According to the third feature, the control unit starts a subtraction process for decrementing the counter value of the timer every predetermined time from the initial value in response to the input of the conversion pulse in the ECU, and then the counter value returns to zero. If the conversion pulse in the ECU is input again before, a reset is executed to return the count value to the initial value. Therefore, while the lamp switch is on, the counter value returns to reset and the decrement process continues. As a result, the on state of the lamp switch can be detected. Further, when a predetermined time elapses after the lighting device switch is turned off, the counter value returns to zero, thereby detecting the off state of the lighting device switch.

第4の特徴によれば、制御部は、入力されたECU内変換パルスのパルス幅が所定値よりも短い場合には、タイマによるカウントを実行しないので、パルス幅が所定値より短い場合にはノイズによるものと判断して、制御部の負担を軽減することができる。   According to the fourth feature, when the pulse width of the input ECU conversion pulse is shorter than a predetermined value, the control unit does not perform counting by the timer, so when the pulse width is shorter than the predetermined value, It is possible to reduce the burden on the control unit by judging that it is due to noise.

第5の特徴によれば、制御部は、自動二輪車の電源オンから所定時間内にECU内変換パルスが入力された場合には、カウンタ値のリセットを実行しないので、イニシャル時に押しがけ等を行って車両を起動する場合に、灯火器スイッチがオンされていると判定されることを防止できる。   According to the fifth feature, the control unit does not reset the counter value when the conversion pulse in the ECU is input within a predetermined time from the power-on of the motorcycle. Thus, when starting the vehicle, it can be determined that the lamp switch is turned on.

本発明の一実施形態に係る自動二輪車の灯火装置の全体構成を示すブロック図である。1 is a block diagram showing an overall configuration of a motorcycle lighting device according to an embodiment of the present invention. 発電機出力信号、ECU入力信号およびECU内変換パルスの比較図である。It is a comparison figure of a generator output signal, ECU input signal, and the conversion pulse in ECU. ヘッドライトスイッチの状態判定の流れを示すタイムチャートである。It is a time chart which shows the flow of the state determination of a headlight switch. 変換パルス生成部によるECU内変換パルスの生成方法の説明図である。It is explanatory drawing of the production | generation method of the conversion pulse in ECU by the conversion pulse production | generation part. ヘッドライトスイッチの状態検知処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the state detection process of a headlight switch. 消灯判定の手順を示すサブフローである。It is a subflow which shows the procedure of light extinction determination. 点灯判定の手順を示すサブフローである。It is a subflow which shows the procedure of lighting determination.

以下、図面を参照して本発明の好ましい実施の形態について詳細に説明する。図1は、本発明の一実施形態に係る自動二輪車の灯火装置の全体構成を示すブロック図である。発電機2は、自動二輪車のエンジン1のクランクシャフトと同期回転することで、自動二輪車が必要とする電力を発生する交流発電機である。発電機2で発電された交流電流は、整流処理を行うレギュレータ部3の入力部4に入力される。入力部3に入力された交流電流は、灯火器としてのヘッドライト7に供給するマイナス側の半波電流と車載バッテリ(不図示)の充電に用いられるプラス側の半波電流とに分割される。そして、出力部5から出力されるマイナス側の半波電流が、ヘッドライトスイッチ(灯火器スイッチ)6を介してヘッドライト7に供給される。ヘッドライト7は、例えば、35Wのポジションライトバルブと35Wのハイ/ローバルブとから構成することができる。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the overall configuration of a motorcycle lighting device according to an embodiment of the present invention. The generator 2 is an AC generator that generates electric power required by the motorcycle by rotating synchronously with the crankshaft of the engine 1 of the motorcycle. The alternating current generated by the generator 2 is input to the input unit 4 of the regulator unit 3 that performs rectification processing. The alternating current input to the input unit 3 is divided into a negative half-wave current supplied to a headlight 7 as a lighting device and a positive half-wave current used for charging an in-vehicle battery (not shown). . Then, the negative half-wave current output from the output unit 5 is supplied to the headlight 7 via the headlight switch 6 (lighting device switch). The headlight 7 can be composed of, for example, a 35 W position light bulb and a 35 W high / low bulb.

制御部としてのECU8には、A/D入力ポート9と、A/D入力ポート9に入力された半波電流を矩形波(ECU検出パルスPf)に変換する入力回路10と、入力回路10で生成されたECU検出パルス信号Pfに基づいてヘッドライトスイッチのオンオフを判定するためのECU内変換パルスPeを生成する変換パルス生成部11と、レジスタ等の記憶素子からなる記憶部12と、所定時間を計測するタイマ13と、ヘッドライトスイッチ6のオンオフ状態を検知するスイッチ状態検知手段14とが含まれる。入力回路10は、図示するような、ツェナーダイオード、比較器および抵抗からなる周知のアナログ回路によって構成することができる。   The ECU 8 as the control unit includes an A / D input port 9, an input circuit 10 that converts a half-wave current input to the A / D input port 9 into a rectangular wave (ECU detection pulse Pf), and an input circuit 10. Based on the generated ECU detection pulse signal Pf, a conversion pulse generation unit 11 that generates an in-ECU conversion pulse Pe for determining on / off of the headlight switch, a storage unit 12 including a storage element such as a register, and a predetermined time Includes a timer 13 for measuring the on / off state, and a switch state detecting means 14 for detecting the on / off state of the headlight switch 6. The input circuit 10 can be constituted by a well-known analog circuit including a Zener diode, a comparator, and a resistor as shown in the figure.

本実施形態に係る入力回路10では、演算増幅器(オペアンプ)の反転入力端子に対し、電圧Vccを分圧抵抗R1およびR2で分圧した電圧(Vcc・R2/(R1+R2))が基準値(Ref)として入力され、一方の非反転入力端子には、ツェナーダイオードを通過した電圧が印加される。   In the input circuit 10 according to the present embodiment, the voltage (Vcc · R2 / (R1 + R2)) obtained by dividing the voltage Vcc by the voltage dividing resistors R1 and R2 with respect to the inverting input terminal of the operational amplifier (op amp) is the reference value (Ref. ) And a voltage passing through the Zener diode is applied to one non-inverting input terminal.

この場合、入力回路10は、比較器として用いられ、非反転入力端子に入力された電圧が反転入力端子に入力される電圧Refよりも高い場合には、High(例えば5V)の信号を出力し、そうでない場合には、Low(例えば0V)の信号を出力するように構成されている。   In this case, the input circuit 10 is used as a comparator, and outputs a High (for example, 5 V) signal when the voltage input to the non-inverting input terminal is higher than the voltage Ref input to the inverting input terminal. Otherwise, it is configured to output a Low (for example, 0 V) signal.

図2は、発電機出力信号、ECU入力信号およびECU内変換パルスの比較図である。発電機2によって生成される交流電流の「発電機出力信号」は、グラフ上段に示すように正負に同じ振幅を有する正弦波である。これに対し、レギュレータ部3における整流処理後の「ECU入力信号」は、グラフ中段に示すように、グラフ上段の正弦波に同期して時刻t1,t3で電圧がゼロとなるマイナス側の半波波形となる。つまり、発電機出力信号のゼロクロスポイントを境に半波整流が生成されるようになっている。   FIG. 2 is a comparison diagram of a generator output signal, an ECU input signal, and a conversion pulse in the ECU. The “generator output signal” of the alternating current generated by the generator 2 is a sine wave having the same positive and negative amplitude as shown in the upper part of the graph. On the other hand, the “ECU input signal” after the rectification process in the regulator unit 3 is a negative half-wave whose voltage becomes zero at times t1 and t3 in synchronization with the sine wave in the upper part of the graph, as shown in the middle part of the graph. It becomes a waveform. That is, half-wave rectification is generated at the zero cross point of the generator output signal.

これに対し、変換パルス生成部11によって生成され、ヘッドライトスイッチ6のオンオフ状態を検知するためのパルス信号である「ECU内変換パルスPe」は、半波波形がマイナス側に振れる時刻t1より後の時刻t2で電圧V1に立ち上がり、かつ半波波形がゼロに戻る時刻t3より後の時刻t4で立ち下がってゼロに戻るパルス信号とされる。換言すれば、「ECU内変換パルスPe」は、パルス幅Wが時刻t1〜t2の長さとほぼ同じである一方、常に半波波形より少し遅れたタイミングで生成されるものである。「ECU内変換パルスPe」の生成方法は後述する。   In contrast, the “in-ECU conversion pulse Pe”, which is generated by the conversion pulse generation unit 11 and is a pulse signal for detecting the on / off state of the headlight switch 6, is after the time t1 when the half-wave waveform swings to the negative side. The pulse signal rises to voltage V1 at time t2 and falls to zero after time t4 after time t3 when the half-wave waveform returns to zero. In other words, the “in-ECU conversion pulse Pe” is generated at a timing that is always slightly delayed from the half-wave waveform, while the pulse width W is substantially the same as the length of the times t1 to t2. A method for generating the “in-ECU conversion pulse Pe” will be described later.

図3は、ヘッドライトスイッチの状態判定の流れを示すタイムチャートである。このタイムチャートでは、上段から順に、スイッチ状態検知手段14によるスイッチ判定値(0,1,2)、図2に示したECU内変換パルスPe(H,L)、タイマ13によるタイマカウント(0〜MAX)の状態を示している。   FIG. 3 is a time chart showing a flow of state determination of the headlight switch. In this time chart, the switch determination value (0, 1, 2) by the switch state detection means 14, the in-ECU conversion pulse Pe (H, L) shown in FIG. MAX) state.

本発明に係る自動二輪車の灯火装置では、ECU内変換パルスPeの状態と、所定のMAX値から時間経過に伴ってカウンタ値が減算されるタイマカウントとを組み合わせることで、ヘッドライトスイッチ6の状態判定を行う。これは、A/D入力ポートに直流電源が入力されるのであれば、HレベルまたはLレベルが維持されていることに基づいてヘッドライトスイッチの状態判定が可能だが、交流電流に基づくパルス波形ではHレベルとLレベルとが交互に繰り返されて同じ方法での判定ができないためである。   In the motorcycle lighting device according to the present invention, the state of the headlight switch 6 is obtained by combining the state of the conversion pulse Pe in the ECU and the timer count in which the counter value is subtracted from the predetermined MAX value as time elapses. Make a decision. If DC power is input to the A / D input port, the state of the headlight switch can be determined based on the fact that the H level or L level is maintained. However, in the pulse waveform based on the AC current, This is because the H level and the L level are alternately repeated, and determination by the same method cannot be performed.

まず、時刻t1で車両のメインスイッチ(電源スイッチ)がオンにされると、リセット状態から「点灯判定タイマA」のカウント、すなわち、MAX値からのデクリメントが開始される。このとき、スイッチ判定値の設定は、イニシャル時を示す「0(ゼロ)」にあり、ECU内変換パルスPeの入力に関わらず点灯判定タイマAがゼロになるまで継続される。この設定によれば、例えば、メインスイッチがオンにされた直後に押しがけによるエンジン始動が試みられた場合でも、この押しがけに基づく発電機出力によってスイッチ判定値が変わることがなく、ヘッドライトスイッチが点灯状態にあると判定されることを防ぐことができる。   First, when the main switch (power switch) of the vehicle is turned on at time t1, counting of the “lighting determination timer A”, that is, decrement from the MAX value is started from the reset state. At this time, the setting of the switch determination value is at “0 (zero)” indicating the initial time, and is continued until the lighting determination timer A becomes zero regardless of the input of the in-ECU conversion pulse Pe. According to this setting, for example, even when an engine start by pushing is attempted immediately after the main switch is turned on, the switch determination value is not changed by the generator output based on this pushing, and the headlight switch Can be determined to be in the lighting state.

次に、時刻t2では、点灯判定タイマAがゼロになると共に、ECU内変換パルスPeの立下り信号が入力される(HレベルからLレベルに変化する)ことでスイッチ判定値が0から1に切り替わる。これに応じて、スイッチ状態検知手段14がヘッドライトスイッチ6の点灯状態を検知すると共に「消灯判定タイマB」が開始される。   Next, at time t2, the lighting determination timer A becomes zero, and the falling signal of the conversion pulse Pe in the ECU is input (change from H level to L level), so that the switch determination value is changed from 0 to 1. Switch. In response to this, the switch state detection means 14 detects the lighting state of the headlight switch 6 and the “light-off determination timer B” is started.

消灯判定タイマBは、ECU内変換パルスPeの立下り信号が入力されるたびにリセットされてMAX値に戻る。このタイムチャートでは、時刻t3および時刻t4でECU内変換パルスが立ち下がり、これに伴って消灯判定タイマBがリセットされている。すなわち、ヘッドライトスイッチ6をオンにしているために生じるパルス信号が入力されている限りは、消灯判定タイマBの減算およびリセットが繰り返されて、スイッチ判定値が1のまま維持されることとなる。   The extinction determination timer B is reset and returns to the MAX value every time the falling signal of the in-ECU conversion pulse Pe is input. In this time chart, the in-ECU conversion pulse falls at time t3 and time t4, and the turn-off determination timer B is reset accordingly. In other words, as long as the pulse signal generated because the headlight switch 6 is turned on is inputted, the subtraction and reset of the extinction judgment timer B are repeated, and the switch judgment value is maintained at 1. .

そして、時刻t4の後は、ヘッドライトスイッチ6がオフされることでECU内変換パルスの入力がなくなっている。そうすると、消灯判定タイマBはリセットされる機会がなく、時刻t5でゼロとなる。スイッチ状態検知手段14は、この消灯判定タイマBがゼロに戻ったことをトリガとしてスイッチ判定値を1から2に切り替え、ヘッドライトスイッチ6が消灯状態であることを検知する。   Then, after the time t4, the headlight switch 6 is turned off so that the conversion pulse in the ECU is not input. Then, the turn-off determination timer B has no opportunity to be reset and becomes zero at time t5. The switch state detection unit 14 switches the switch determination value from 1 to 2 with the turn-off determination timer B returning to zero as a trigger, and detects that the headlight switch 6 is turned off.

なお、制御部24は、イニシャル時の終了後、消灯状態と判定されている状態からヘッドライトスイッチ6がオンに切り替えられた場合は、ECU内変換パルスPeの入力をトリガとして消灯判定タイマBを開始するが、パルス幅Wが所定値よりも短い場合(例えば1μs以下)には、これを電気的ノイズと判断して、カウンタ値のカウントやリセットを行わず、ヘッドライトスイッチの状態判定に影響を与えないようにしている。   When the headlight switch 6 is turned on after the initial state is finished, the control unit 24 sets the extinction determination timer B using the input of the ECU internal conversion pulse Pe as a trigger. Start, but if the pulse width W is shorter than a predetermined value (for example, 1 μs or less), this is judged as electric noise, and the counter value is not counted or reset, affecting the state determination of the headlight switch. Not to give.

図4は、変換パルス生成部11によるECU内変換パルスPeの生成方法の説明図である。この図では、上段から順に、入力回路10(図2参照)により変換されたECU検出パルスPf、タイマ処理タイミングT、変換パルス生成部11により生成されたECU内変換パルスPeを示す。   FIG. 4 is an explanatory diagram of a method for generating the in-ECU conversion pulse Pe by the conversion pulse generation unit 11. In this figure, the ECU detection pulse Pf converted by the input circuit 10 (see FIG. 2), the timer processing timing T, and the in-ECU conversion pulse Pe generated by the conversion pulse generator 11 are shown in order from the top.

ECU8は、本来、各種センサ信号に基づいて燃料噴射装置や点火装置等を制御するタスクを処理している。このため、例えば、ECU検出パルスPfの立下りパルスが入力される度にカウント処理を実行しようとすると、他のタスクの実行タイミングと干渉して他のタスクに影響を与える可能性も考えられる。   The ECU 8 originally processes a task for controlling the fuel injection device, the ignition device, and the like based on various sensor signals. For this reason, for example, if it is attempted to execute the count process every time a falling pulse of the ECU detection pulse Pf is input, there is a possibility that it interferes with the execution timing of other tasks and affects other tasks.

そこで、本願発明では、ECU検出パルスPfの立下り信号が入力された(HレベルからLレベルに変化した)ことをレジスタ等からなる記憶部12で記憶しておき、一連のタスク中に予め定められたタイミングで確保されているタイマ処理タイミングTが到来したときに、記憶部12からECU検出パルスPfの状態を読み出してECU内変換パルスPeを生成するようにすることで、他のタスクの実行に影響を与えないようにしている。なお、図2で示したECU入力信号とECU検出パルスPfとのタイミングのずれは、この一連の処理により生じるものである。   Therefore, in the present invention, the fact that the falling signal of the ECU detection pulse Pf has been input (changed from the H level to the L level) is stored in the storage unit 12 including a register or the like, and predetermined during a series of tasks. When the timer processing timing T secured at the given timing arrives, the state of the ECU detection pulse Pf is read from the storage unit 12 to generate the in-ECU conversion pulse Pe, thereby executing other tasks. So that it does not affect Note that the timing shift between the ECU input signal and the ECU detection pulse Pf shown in FIG. 2 is caused by this series of processes.

以下、図5〜図7を参照して、ヘッドライトスイッチの状態検知処理の手順を確認する。図5は、ECU8が交流電流に基づいてヘッドライトスイッチの状態検知処理を行う「AC負荷信号の受取処理」の手順を示すフローチャートである。ステップS1では、ヘッドライト7が点灯中か否かが判定され、肯定判定されるとステップS2に進み、消灯判定が実行される。一方、ステップS1で否定判定されると、ステップS3に進んで、点灯判定が実行される。   Hereinafter, the procedure of the headlight switch state detection process will be confirmed with reference to FIGS. FIG. 5 is a flowchart showing a procedure of “AC load signal reception process” in which the ECU 8 performs the headlight switch state detection process based on the alternating current. In step S1, it is determined whether or not the headlight 7 is turned on. If an affirmative determination is made, the process proceeds to step S2 where a light extinction determination is performed. On the other hand, if a negative determination is made in step S1, the process proceeds to step S3 and a lighting determination is executed.

図6は、図5のステップS2の消灯判定の手順を示すサブフローである。ステップS10では、ECU内変換パルスPeに立下りがあったか否かが判定される。ステップS10で肯定判定されると、ステップS11に進んで消灯判定タイマBがリセットされる。ステップS12では、消灯判定タイマBのリセットに応じて、ヘッドライトスイッチがオン状態にあり、ヘッドライトが点灯状態にあると判定される。一方、ステップS10で否定判定されると、図ステップS13に進んで、消灯判定タイマBが満了した(ゼロとなった)か否かが判定される。ステップS13で肯定判定されると、ヘッドライトスイッチがオフ状態にあり、ヘッドライトが消灯状態にあると判定される。ステップS13で否定判定されると、一連の制御を終了して図5のメインフローに戻る。   FIG. 6 is a sub-flow showing a procedure for turning off the light in step S2 of FIG. In step S10, it is determined whether or not the ECU internal conversion pulse Pe has fallen. If an affirmative determination is made in step S10, the process proceeds to step S11, and the extinction determination timer B is reset. In step S12, in response to the reset of the extinction determination timer B, it is determined that the headlight switch is on and the headlight is on. On the other hand, if a negative determination is made in step S10, the process proceeds to step S13 in the figure to determine whether or not the extinction determination timer B has expired (becomes zero). If an affirmative determination is made in step S13, it is determined that the headlight switch is in an off state and the headlight is in an extinguished state. If a negative determination is made in step S13, the series of control is terminated and the process returns to the main flow in FIG.

図7は、図5のステップS3の点灯判定の手順を示すサブフローである。ステップS20では、ECU内変換パルスPeに立下りがあったか否かが判定される。ステップS20で肯定判定されると、ステップS21に進んで点灯判定タイマAが満了したか否かが判定される。ステップS21で肯定判定される、すなわち、点灯判定タイマAが満了したと判定されると、ステップS22に進んでヘッドライト状態を点灯と判定する。一方、ステップS20で否定判定されると、ステップS23に進んで消灯判定タイマBをリセットして、ステップS24でヘッドライト状態を消灯と判定し、図5のメインフローに戻る。   FIG. 7 is a subflow showing the procedure of lighting determination in step S3 of FIG. In step S20, it is determined whether or not the ECU internal conversion pulse Pe has fallen. If an affirmative determination is made in step S20, the process proceeds to step S21 to determine whether or not the lighting determination timer A has expired. If an affirmative determination is made in step S21, that is, it is determined that the lighting determination timer A has expired, the process proceeds to step S22, and the headlight state is determined to be lighted. On the other hand, if a negative determination is made in step S20, the process proceeds to step S23, the extinction determination timer B is reset, the headlight state is determined to be extinguished in step S24, and the process returns to the main flow in FIG.

なお、車両の形態、エンジンや発電機の構成、レギュレータ部の構成、ヘッドライトやヘッドライトスイッチの形状や構造、制御部内の入力回路、変換パルス生成部、記憶部、タイマおよびスイッチ状態検知手段の構造、タイマ処理タイミングの設定、タイマリセット時のMAX値の設定等は、上記実施形態に限られず、種々の変更が可能である。例えば、ECU検出パルスの立ち上がり部を基準としてECU内変換パルスを生成してもよい。本発明に係る灯火器スイッチの状態検知手法は、自動二輪車に限られず、交流電流でヘッドライトを点灯する各種車両等に適用することが可能である。   The form of the vehicle, the configuration of the engine and generator, the configuration of the regulator unit, the shape and structure of the headlight and headlight switch, the input circuit in the control unit, the conversion pulse generation unit, the storage unit, the timer, and the switch state detection means The structure, the setting of the timer processing timing, the setting of the MAX value at the time of timer reset, etc. are not limited to the above embodiment, and various changes can be made. For example, the intra-ECU conversion pulse may be generated with reference to the rising edge of the ECU detection pulse. The state detection method of the lighting device switch according to the present invention is not limited to a motorcycle, and can be applied to various vehicles that turn on a headlight with an alternating current.

1…エンジン、2…発電機、3…レギュレータ部、6…ヘッドライトスイッチ(灯火器スイッチ)、7…ヘッドライト(灯火器)、9…A/D入力ポート、10…入力回路、11…変換パルス生成部、12…記憶部、13…タイマ、A…点灯判定タイマ、B…消灯判定タイマ、T…タイマ処理タイミング、Pf…ECU検出パルス、Pe…ECU内変換パルス   DESCRIPTION OF SYMBOLS 1 ... Engine, 2 ... Generator, 3 ... Regulator part, 6 ... Headlight switch (lighting device switch), 7 ... Headlight (lighting device), 9 ... A / D input port, 10 ... Input circuit, 11 ... Conversion Pulse generation unit, 12 ... storage unit, 13 ... timer, A ... lighting determination timer, B ... extinction determination timer, T ... timer processing timing, Pf ... ECU detection pulse, Pe ... conversion pulse in ECU

Claims (2)

エンジン(1)の回転により発電する発電機(2)と、前記発電機(2)の交流電流を灯火器(7)に供給する半波電流に変換するレギュレータ部(3)と、前記レギュレータ部(3)と前記灯火器(7)との間に介設される灯火器スイッチ(6)と、車両の状態を判別する制御部(8)とを有する自動二輪車の灯火装置において、
前記レギュレータ部(3)で変換された半波電流に同期するパルス信号(Pf)を生成する入力回路(10)と、
前記パルス信号(Pf)の状態を一時的に記憶する記憶部(12)と、
前記記憶部(12)に記憶された前記パルス信号(Pf)の状態に基づいてECU内変換パルス(Pe)を生成する変換パルス生成部(11)とを具備し、
前記制御部(8)が、前記ECU内変換パルス(Pe)の状態に基づいて、前記灯火器スイッチ(6)のオンオフ状態を判定し、
前記制御部(8)は、少なくとも車両の燃料噴射装置や点火装置の制御を含む一連のタスク中に、予め定められたタイマ処理タイミング(T)を確保しており、
前記変換パルス生成部(11)は、前記記憶部(12)に一時的に記憶された前記パルス信号(Pf)の状態を、前記タイマ処理タイミング(T)が到来したときに出力することで前記ECU内変換パルス(Pe)を生成し、
前記制御部(8)は、前記ECU内変換パルス(Pe)の入力に応じてタイマ(13)のカウント値のカウントを行い、前記カウントの結果に基づいて前記灯火器スイッチ(6)の状態を判定する消灯判定タイマ(B)を備え、
前記消灯判定タイマ(B)は、前記ECU内変換パルス(Pe)の入力に応じて前記灯火器スイッチ(6)が点灯状態にあると判定すると共に、前記タイマ(13)のカウンタ値を初期値(MAX)から所定時間毎にデクリメントする減算処理を開始し、その後、前記カウンタ値がゼロに戻る前に、再度、前記ECU内変換パルス(Pe)が入力されると、前記カウント値を初期値(MAX)に戻すリセットを実行する一方、前記カウンタ値がゼロに戻ると前記灯火器スイッチ(6)が消灯状態にあると判定し、
前記制御部(8)は、前記自動二輪車の電源オンから所定時間内に前記ECU内変換パルス(Pe)が入力された場合には、前記カウンタ値のリセットを実行しないように設定された点灯判定タイマ(A)を備え、
前記消灯判定タイマ(B)が、前記点灯判定タイマ(A)の終了に応じて開始されることを特徴とする自動二輪車の灯火装置。
A generator (2) that generates electricity by rotation of the engine (1), a regulator unit (3) that converts an alternating current of the generator (2) into a half-wave current that is supplied to a lamp (7), and the regulator unit (2) In a lighting device for a motorcycle having a lighting device switch (6) interposed between the lighting device (7) and a control unit (8) for determining the state of the vehicle,
An input circuit (10) for generating a pulse signal (Pf) synchronized with the half-wave current converted by the regulator unit (3);
A storage unit (12) for temporarily storing the state of the pulse signal (Pf);
A conversion pulse generator (11) for generating an in-ECU conversion pulse (Pe) based on the state of the pulse signal (Pf) stored in the storage unit (12),
The controller (8) determines the on / off state of the lamp switch (6) based on the state of the ECU internal conversion pulse (Pe),
The control unit (8) secures a predetermined timer processing timing (T) during a series of tasks including at least control of a fuel injection device and an ignition device of a vehicle,
The conversion pulse generation unit (11) outputs the state of the pulse signal (Pf) temporarily stored in the storage unit (12) when the timer processing timing (T) arrives. An in-ECU conversion pulse (Pe) is generated ,
The control unit (8) counts the count value of the timer (13) in response to the input of the in-ECU conversion pulse (Pe), and determines the state of the lamp switch (6) based on the count result. It includes a turn-off determination timer (B) for determining,
The extinction determination timer (B) determines that the lamp switch (6) is in an on state in response to the input of the ECU internal conversion pulse (Pe), and sets the counter value of the timer (13) to an initial value. (MAX) starts a subtraction process for decrementing every predetermined time, and then when the ECU conversion pulse (Pe) is input again before the counter value returns to zero, the count value is set to the initial value. While executing the reset to return to (MAX), when the counter value returns to zero, it is determined that the lamp switch (6) is in the off state,
The controller (8) is a lighting determination set so as not to reset the counter value when the in-ECU conversion pulse (Pe) is input within a predetermined time from turning on the power of the motorcycle. With a timer (A),
The motorcycle lighting device, wherein the turn-off determination timer (B) is started in response to the end of the turn-on determination timer (A) .
前記制御部(8)は、入力された前記ECU内変換パルス(Pe)のパルス幅(W)が所定値よりも短い場合には、前記タイマ(13)によるカウントを実行しないことを特徴とする請求項に記載の自動二輪車の灯火装置。 The control unit (8) does not execute the counting by the timer (13) when the pulse width (W) of the input conversion pulse (Pe) in the ECU is shorter than a predetermined value. The motorcycle lighting device according to claim 1 .
JP2013194379A 2013-09-19 2013-09-19 Motorcycle lighting equipment Expired - Fee Related JP5814994B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013194379A JP5814994B2 (en) 2013-09-19 2013-09-19 Motorcycle lighting equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013194379A JP5814994B2 (en) 2013-09-19 2013-09-19 Motorcycle lighting equipment

Publications (2)

Publication Number Publication Date
JP2015058830A JP2015058830A (en) 2015-03-30
JP5814994B2 true JP5814994B2 (en) 2015-11-17

Family

ID=52816703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013194379A Expired - Fee Related JP5814994B2 (en) 2013-09-19 2013-09-19 Motorcycle lighting equipment

Country Status (1)

Country Link
JP (1) JP5814994B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5094462B2 (en) * 2008-02-21 2012-12-12 三菱電機株式会社 Control circuit, discharge lamp lighting device and lighting fixture
JP5624952B2 (en) * 2011-07-08 2014-11-12 新電元工業株式会社 Control device and control method
US8731757B2 (en) * 2012-02-15 2014-05-20 Toyota Jidosha Kabushiki Kaisha Control apparatus and control system

Also Published As

Publication number Publication date
JP2015058830A (en) 2015-03-30

Similar Documents

Publication Publication Date Title
US7348782B2 (en) Ignition device and spark condition detection method
JP5814994B2 (en) Motorcycle lighting equipment
JP5084570B2 (en) Method for determining the combustion state of an internal combustion engine
JP5304724B2 (en) Engine control device
US10578660B2 (en) Reactance measurement apparatus
JP4830991B2 (en) Ignition control device for internal combustion engine
JP6115582B2 (en) Gas sensor control device
JP2016105065A (en) Oxygen concentration sensor control unit
JP2017110955A (en) Liquid level estimating device
JP5184263B2 (en) Vehicle power supply
JP5560437B2 (en) Combustion control device for internal combustion engine
JP2009117121A (en) Led drive circuit
JP2011232915A (en) Timer
JP4556690B2 (en) Ignition system for engine
JP5005640B2 (en) Misfire detection device for internal combustion engine
JP2019110629A5 (en)
JP5940945B2 (en) Automotive control device
JP2011153609A (en) Combustion control device for internal combustion engine
JP2011172417A (en) Relay welding detector
JP5598906B2 (en) Combustion control device for internal combustion engine
JP2017207382A (en) Electronic controller
JP6384353B2 (en) Electronic control unit
JP5888773B2 (en) Combustion control device for internal combustion engine
JP5207888B2 (en) Combustion control device for internal combustion engine
JP5544509B2 (en) Phase control dimmer

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150528

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150617

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150807

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150918

R150 Certificate of patent or registration of utility model

Ref document number: 5814994

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees