JP7733054B2 - Vehicle control device - Google Patents
Vehicle control deviceInfo
- Publication number
- JP7733054B2 JP7733054B2 JP2023068944A JP2023068944A JP7733054B2 JP 7733054 B2 JP7733054 B2 JP 7733054B2 JP 2023068944 A JP2023068944 A JP 2023068944A JP 2023068944 A JP2023068944 A JP 2023068944A JP 7733054 B2 JP7733054 B2 JP 7733054B2
- Authority
- JP
- Japan
- Prior art keywords
- indicator
- turn lamp
- state
- turn
- mcu
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control 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 vehicle control device that changes a turn lamp indicator to an indicator state (e.g., blinks) corresponding to a change in the turn lamp state (e.g., in response to turning on or off) of the turn lamp.
従来から、点滅するインジケータと、図形や画像などを表示するモニタと、モニタを制御するモニタ制御回路と、点滅の基準周期となる基準パルスを生成してインジケータとモニタ制御回路とに入力する基準回路とを備え、さらに、モニタ制御回路に基準回路から基準パルスが入力されてからモニタ制御回路がモニタを制御する所定処理を行った後に、基準パルスの1周期から当該所定処理に要した処理時間を差し引いた時間だけ遅らせて、モニタに対するブリンクを開始する同期手段を備えたブリンク装置がある(例えば、特許文献1参照)。 Conventionally, blinking devices have been provided with a blinking indicator, a monitor that displays graphics and images, a monitor control circuit that controls the monitor, and a reference circuit that generates a reference pulse that serves as a reference period for blinking and inputs it to the indicator and monitor control circuit. They also have synchronization means that, after the reference pulse is input from the reference circuit to the monitor control circuit and the monitor control circuit performs a predetermined process to control the monitor, start blinking the monitor by a delay equal to one reference pulse period minus the processing time required for that predetermined process (see, for example, Patent Document 1).
しかしながら、インジケータとモニタとを同期させるために、モニタに対するブリンクの開始を遅らせていたため、ユーザに違和感を与える虞がある。 However, in order to synchronize the indicator with the monitor, the start of blinking on the monitor was delayed, which may cause discomfort to the user.
ところで、ターンランプと、ターンランプの点消灯状態(点灯状態、消灯状態)を示すLEDを用いたターンランプインジケータとを備える車両では、ターンランプの点消灯を制御するECU(Electronic Control Unit)が直接LEDの駆動制御を行っていたが、消線化によるコスト低減のために、ECUがCAN(Controller Area Network)を用いてターンランプインジケータの点滅に関わるインジケータ信号を送信する方式が自動車業界のトレンドとなっている。また、フル液晶メータなどの普及により、LEDを用いてきたターンランプインジケータを、ディスプレイに表示する車両が増加しつつある。 In vehicles equipped with turn lamps and LED-based turn lamp indicators that indicate the on/off state of the turn lamps (on/off), the ECU (Electronic Control Unit) that controls the on/off of the turn lamps previously directly controls the driving of the LEDs. However, in order to reduce costs by eliminating this, the automotive industry is now moving to a system where the ECU uses a Controller Area Network (CAN) to transmit indicator signals related to the blinking of the turn lamp indicators. Furthermore, with the spread of full LCD meters and other devices, an increasing number of vehicles are displaying turn lamp indicators, which previously used LEDs, on their displays.
このように、CANを使用し、ターンランプインジケータをディスプレイに表示する場合、CANの送信周期およびターンランプインジケータをディスプレイに描画するための描画処理により、ターンランプの点消灯に対してターンランプインジケータの点滅が遅延し、ユーザに違和感を与える虞があるという問題がある。 As such, when using CAN to display turn lamp indicators on a display, the CAN transmission cycle and the drawing process for drawing the turn lamp indicators on the display can cause a delay in the blinking of the turn lamp indicators relative to the turning on and off of the turn lamps, which can be a problem and can cause discomfort to the user.
そこで、本発明は、上記課題に鑑みてなされたものであり、ターンランプが所定のターンランプ状態になるタイミング(例えば、点消灯のタイミング)とターンランプインジケータが当該所定のターンランプ状態に対応する所定のインジケータ状態になるタイミング(例えば、点滅のタイミング)との時間差を小さく抑えることができる車両制御装置を提供することを目的とする。 The present invention was made in consideration of the above-mentioned problems, and aims to provide a vehicle control device that can minimize the time difference between the timing at which a turn lamp enters a predetermined turn lamp state (e.g., the timing at which it turns on and off) and the timing at which a turn lamp indicator enters a predetermined indicator state corresponding to that predetermined turn lamp state (e.g., the timing at which it flashes).
前記の目的を達成するため、本発明に係る車両制御装置は、ターンランプと、ディスプレイ、および、前記ターンランプのターンランプ状態をインジケータ状態により示すターンランプインジケータを当該ディスプレイに描画する描画処理部を有する表示装置と、ユーザの操作を受け付け、前記ターンランプの前記ターンランプ状態の制御、および、ネットワークを介して前記表示装置に前記ターンランプインジケータの前記インジケータ状態に関わるインジケータ信号を送信する制御部とを備える車両制御装置であって、前記ターンランプ状態には、第1のターンランプ状態と、第2のターンランプ状態とがあり、前記インジケータ状態には、前記第1のターンランプ状態に対応する第1のインジケータ状態と、前記第2のターンランプ状態に対応する第2のインジケータ状態とがあり、前記インジケータ信号には、前記第1のインジケータ状態の描画に関わる第1のインジケータ信号と、前記第2のインジケータ状態の描画に関わる第2のインジケータ信号とがあり、前記描画処理部は、前記制御部が前記ターンランプを前記第1のターンランプ状態にする今回の制御に対応して送信する前記第1のインジケータ信号を当該制御部から受信を開始する受信開始タイミングと、当該描画処理部が前記ターンランプインジケータを前記第1のインジケータ状態に描画する今回の描画処理を完了する完了タイミングとの時間差を算出し、前記ターンランプの前記第1のターンランプ状態への次回の制御に対応する、前記ターンランプインジケータを前記第1のインジケータ状態に描画する次回の描画処理を含む次回の所定の処理を、前記時間差に基づいて当該次回の描画処理を含む当該次回の所定の処理の開始タイミングを予測して行い、前記時間差に基づいて、前記今回の描画処理を含む今回の所定の処理で描画された前記第1のインジケータ状態に続く前記第2のインジケータ状態の期間が、前記ターンランプの1回の前記第2のターンランプ状態の期間よりも短くなるようにして、前記次回の描画処理を含む前記次回の所定の処理を行うことを特徴としている。 In order to achieve the above object, a vehicle control device according to the present invention is a vehicle control device comprising: a display device having a turn lamp, a display, and a drawing processing unit that draws a turn lamp indicator on the display that indicates the turn lamp state of the turn lamp by an indicator state; and a control unit that receives a user's operation, controls the turn lamp state of the turn lamp, and transmits an indicator signal related to the indicator state of the turn lamp indicator to the display device via a network, wherein the turn lamp states include a first turn lamp state and a second turn lamp state, the indicator states include a first indicator state corresponding to the first turn lamp state and a second indicator state corresponding to the second turn lamp state, the indicator signals include a first indicator signal related to drawing the first indicator state and a second indicator signal related to drawing the second indicator state, and the drawing processing unit The control unit calculates a time difference between a reception start timing at which the control unit starts receiving the first indicator signal transmitted from the control unit in response to a current control of changing the turn lamp to the first turn lamp state and a completion timing at which the drawing processing unit completes a current drawing process of drawing the turn lamp indicator in the first indicator state, and performs a next predetermined process including a next drawing process of drawing the turn lamp indicator in the first indicator state corresponding to a next control of the turn lamp to the first turn lamp state by predicting a start timing of the next predetermined process including the next drawing process based on the time difference, and performs the next predetermined process including the next drawing process based on the time difference so that a period of the second indicator state following the first indicator state drawn in the current predetermined process including the current drawing process is shorter than a period of one second turn lamp state of the turn lamp .
この構成によれば、描画処理部は、ターンランプの第1のターンランプ状態への今回の制御に対応する今回の第1のインジケータ信号の受信開始タイミングと今回の描画処理を完了する完了タイミングとの時間差を算出し、ターンランプの第1のターンランプ状態への次回の制御に対応するターンランプインジケータを第1のインジケータ状態に描画する次回の描画処理を含む次回の所定の処理を、時間差に基づいて、当該次回の描画処理を含む当該次回の所定の処理の開始タイミングを予測して行う。このため、次回ターンランプが第1のターンランプ状態になるタイミングと、次回ターンランプインジケータが当該第1のターンランプ状態に対応する第1のインジケータ状態になるタイミングと、の時間差を小さく抑えることができる。この結果、ターンランプの状態変化とターンランプインジケータの状態変化との時間ずれによるユーザの違和感を低減させることができる。また、次回ターンランプが第1のターンランプ状態になるタイミングと、次回ターンランプインジケータが当該第1のターンランプ状態に対応する第1のインジケータ状態になるタイミングと、の時間差を小さく抑えることができる。この結果、ターンランプの状態変化とターンランプインジケータの状態変化との時間ずれによるユーザの違和感を低減させることができる。 According to this configuration, the rendering processing unit calculates the time difference between the start timing of reception of the current first indicator signal corresponding to the current control of the turn lamp to the first turn lamp state and the completion timing of the current rendering processing, and performs the next predetermined processing, including the next rendering processing for rendering the turn lamp indicator in the first indicator state corresponding to the next control of the turn lamp to the first turn lamp state, by predicting the start timing of the next predetermined processing, including the next rendering processing, based on the time difference. This makes it possible to minimize the time difference between the timing when the next turn lamp changes to the first turn lamp state and the timing when the next turn lamp indicator changes to the first indicator state corresponding to the first turn lamp state. As a result, it is possible to reduce the discomfort felt by the user due to the time lag between the state change of the turn lamp and the state change of the turn lamp indicator. Furthermore, it is possible to minimize the time difference between the timing when the next turn lamp changes to the first turn lamp state and the timing when the next turn lamp indicator changes to the first indicator state corresponding to the first turn lamp state. As a result, it is possible to reduce the discomfort felt by the user due to the time lag between the state change of the turn lamp and the state change of the turn lamp indicator.
本発明によれば、描画処理部は、ターンランプの第1のターンランプ状態への今回の制御に対応する今回の第1のインジケータ信号の受信開始タイミングと今回の描画処理を完了する完了タイミングとの時間差を算出し、ターンランプの第1のターンランプ状態への次回の制御に対応するターンランプインジケータを第1のインジケータ状態に描画する次回の描画処理を含む次回の所定の処理を、時間差に基づいて、当該次回の描画処理を含む当該次回の所定の処理の開始タイミングを予測して行う。このため、次回ターンランプが第1のターンランプ状態になるタイミングと、次回ターンランプインジケータが当該第1のターンランプ状態に対応する第1のインジケータ状態になるタイミングと、の時間差を小さく抑えることができる。この結果、ターンランプの状態変化とターンランプインジケータの状態変化との時間ずれによるユーザの違和感を低減させることができる。 According to the present invention, the drawing processing unit calculates the time difference between the start timing of reception of the current first indicator signal corresponding to the current control of the turn lamp to the first turn lamp state and the completion timing of the current drawing processing, and performs the next predetermined processing, including the next drawing processing to draw the turn lamp indicator in the first indicator state corresponding to the next control of the turn lamp to the first turn lamp state, by predicting the start timing of the next predetermined processing, including the next drawing processing, based on the time difference. This makes it possible to minimize the time difference between the timing when the next turn lamp changes to the first turn lamp state and the timing when the next turn lamp indicator changes to the first indicator state corresponding to the first turn lamp state. As a result, it is possible to reduce the sense of discomfort felt by the user due to the time lag between the state change of the turn lamp and the state change of the turn lamp indicator.
以下では、本発明の一実施形態について、添付図面を参照しつつ詳細に説明する。 One embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
まず、本発明の一実施形態に係る車両制御装置1の構成について図1を参照しつつ説明する。車両制御装置1は、車両に搭載されるものであり、ターンランプ20の点消灯に対応させて、ターンランプインジケータ33aを点滅させるものである。 First, the configuration of a vehicle control device 1 according to one embodiment of the present invention will be described with reference to Figure 1. The vehicle control device 1 is mounted on a vehicle and causes the turn lamp indicator 33a to flash in response to the turning on and off of the turn lamp 20.
車両制御装置1は、図1に示すように、ボデーECU10、ターンランプ20、メータ30、ターンランプスイッチ15、および、CAN(Controller Area Network)40を備える。また、メータ30は、図1に示すように、MCU(Micro Controller Unit)31と、SoC(System-on-a-chip)32と、ディスプレイ33とを備え、ディスプレイ33にはターンランプ20の点消灯を点滅で示すターンランプインジケータ33aが表示される。ボデーECU10とMCU31はそれぞれCAN40に接続されている。なお、CAN40は本発明の「ネットワーク」に相当する。 As shown in FIG. 1, the vehicle control device 1 includes a body ECU 10, turn lamps 20, a meter 30, a turn lamp switch 15, and a CAN (Controller Area Network) 40. Also, as shown in FIG. 1, the meter 30 includes an MCU (Micro Controller Unit) 31, a SoC (System-on-a-chip) 32, and a display 33, which displays a turn lamp indicator 33a that flashes to indicate whether the turn lamps 20 are on or off. The body ECU 10 and MCU 31 are each connected to a CAN 40. The CAN 40 corresponds to the "network" in this invention.
なお、車両制御装置1には、左折に対応した左ターンランプおよび右折に対応した右ターンランプ、並びに、左ターンランプに対応する左ターンランプインジケータおよび右ターンランプに対応する右ターンランプインジケータがあるが、左ターンランプおよび左ターンランプインジケータに対する制御と、右ターンランプおよび右ターンランプインジケータに対する制御とは、本実施形態における特徴部分に関しては同じであるため、本実施形態では、記載を簡略化するために、それらをターンランプ20およびターンランプインジケータ33aとしてまとめて記載することにする。 The vehicle control device 1 has a left turn lamp corresponding to a left turn and a right turn lamp corresponding to a right turn, as well as a left turn lamp indicator corresponding to the left turn lamp and a right turn lamp indicator corresponding to the right turn lamp. However, since the control of the left turn lamp and left turn lamp indicator and the control of the right turn lamp and right turn lamp indicator are the same in terms of the features in this embodiment, in this embodiment, for the sake of simplicity, they will be collectively referred to as turn lamp 20 and turn lamp indicator 33a.
ボデーECU10は、CAN40に繋がっており、CAN40に繋がっているメータ30のMCU31などの機器とCAN通信を行うことが可能である。ボデーECU10は、本実施形態では、車両制御装置1を備える車両のユーザ(運転者など)がターンランプスイッチ15をオンにする操作を受付けると、ターンランプ20が備える後述するLED21に対して通電と非通電とを繰り返すことでターンランプ20が点灯と消灯とを繰り返すようにターンランプ20の制御を行う。また、ボデーECU10は、本実施形態では、ターンランプ20を点灯に制御した場合、CAN40を用いてターンランプインジケータ33aを点いた状態(以下、「インジケータ点灯状態」と記載することもある。)に描画することに関わるインジケータ信号(以下、「インジケータ点灯描画信号」と記載することもある。)をメータ30のMCU31へ送信し、ターンランプ20を消灯に制御した場合、CAN40を用いてターンランプインジケータ33aを消した状態(以下、「インジケータ消灯状態」と記載することもある。)に描画することに関わるインジケータ信号(以下、「インジケータ消灯描画信号」と記載することもある。)をメータ30のMCU31へ送信する。なお、ボデーECU10が本発明の「制御部」に相当する。また、インジケータ信号が本発明の「インジケータ信号」に対応し、インジケータ点灯信号が本発明の「第1のインジケータ信号」または「第2のインジケータ信号」に対応し、インジケータ消灯信号が本発明の「第2のインジケータ信号」または「第1のインジケータ信号」に対応する。 The body ECU 10 is connected to the CAN 40 and is capable of CAN communication with devices such as the MCU 31 of the meter 30 that are connected to the CAN 40. In this embodiment, when the body ECU 10 receives an operation to turn on the turn lamp switch 15 from a user (such as a driver) of a vehicle equipped with the vehicle control device 1, it controls the turn lamp 20 so that the turn lamp 20 is repeatedly turned on and off by repeatedly energizing and de-energizing the LEDs 21 (described below) provided in the turn lamp 20. In this embodiment, when the body ECU 10 controls the turn lamps 20 to be turned on, it uses the CAN 40 to send an indicator signal (hereinafter sometimes referred to as an "indicator on drawing signal") related to drawing the turn lamp indicator 33a in an on state (hereinafter sometimes referred to as the "indicator on state") to the MCU 31 of the meter 30. When the body ECU 10 controls the turn lamps 20 to be turned off, it uses the CAN 40 to send an indicator signal (hereinafter sometimes referred to as an "indicator off drawing signal") related to drawing the turn lamp indicator 33a in an off state (hereinafter sometimes referred to as the "indicator off state") to the MCU 31 of the meter 30. The body ECU 10 corresponds to the "controller" of the present invention. The indicator signal corresponds to the "indicator signal" of the present invention, the indicator on signal corresponds to the "first indicator signal" or "second indicator signal" of the present invention, and the indicator off signal corresponds to the "second indicator signal" or "first indicator signal" of the present invention.
ターンランプ20はLED21を備えるように構成されている。LED21に通電されるとLED21が発光してターンランプ20は点灯し、LED21に通電されないと(LED21が非通電であると)LED21が発光せずに(非発光)ターンランプ20は消灯する。LED21に対する通電、非通電はボデーECU10により行われ、ターンランプスイッチ15がオンである場合には通電と非通電とが繰り返されて(例えば、通電時間340ms、非通電時間340ms、通電時間340ms、非通電時間340ms、通電時間340ms、非通電時間340ms、通電時間340ms、非通電時間340ms、・・・)、LED21が発光、非発光を繰り返すことでターンランプ20が点灯と消灯とを繰り返す。また、ターンランプスイッチ15がオフである場合には非通電が続き、LED21が発光せずターンランプ20の消灯が続く。なお、ターンランプ20が本発明の「ターンランプ」に相当し、ターンランプ20の点灯が本発明の「第1のターンランプ状態」または「第2のターンランプ状態」に相当し、ターンランプ20の消灯が本発明の「第2のターンランプ状態」または「第1のターンランプ状態」に相当する。 The turn signal lamp 20 is configured to include an LED 21. When power is applied to the LED 21, the LED 21 emits light, turning the turn signal lamp 20 on. When power is not applied to the LED 21 (when the LED 21 is not energized), the LED 21 does not emit light (does not emit light), turning the turn signal lamp 20 off. The body ECU 10 controls the application and de-energization of the LED 21. When the turn signal lamp switch 15 is on, the LED 21 is repeatedly energized and de-energized (e.g., energized time 340 ms, de-energized time 340 ms, energized time 340 ms, de-energized time 340 ms, energized time 340 ms, de-energized time 340 ms, energized time 340 ms, de-energized time 340 ms, energized time 340 ms, de-energized time 340 ms, etc.), causing the LED 21 to repeatedly emit and de-energize, turning the turn signal lamp 20 on and off. Furthermore, when the turn lamp switch 15 is off, the LED 21 remains de-energized, does not emit light, and the turn lamp 20 remains off. Note that the turn lamp 20 corresponds to the "turn lamp" of the present invention, the lighting of the turn lamp 20 corresponds to the "first turn lamp state" or "second turn lamp state" of the present invention, and the turning off of the turn lamp 20 corresponds to the "second turn lamp state" or "first turn lamp state" of the present invention.
MCU31は、例えば、車載用のRH850 MCUである。MCU31は、CAN40に繋がっており、CAN40に繋がっているボデーECU10などの機器とCAN通信を行うことが可能である。また、MCU31は、SoC32とクロック同期方式のシリアルインターフェースの一種であるSPI(Serial Peripheral Interface)による通信(SPI通信)を行うことが可能になっている。 The MCU 31 is, for example, an in-vehicle RH850 MCU. The MCU 31 is connected to the CAN 40 and is capable of CAN communication with devices such as the body ECU 10 that are also connected to the CAN 40. The MCU 31 is also capable of communication with the SoC 32 via SPI (Serial Peripheral Interface), a type of clock-synchronized serial interface (SPI communication).
SoC32は、MCU31とSPI通信を行うことが可能になっている。また、SoC32は、ディスプレイ33と低電圧差動伝送方式の一つであるLVDS(Low Voltage Differential Signaling)による通信(LVDS通信)を行うことが可能になっている。 SoC32 is capable of SPI communication with MCU31. SoC32 is also capable of LVDS communication with display 33, which is a low-voltage differential signaling (LVDS) communication method.
本実施形態では、SPI通信に関しては、MCU31がマスター側であり、SoCがスレーブ側である。MCU31は、SPIの同期クロック(Serial Clock:SCLK)をカウントする(当該カウントを「SPI msg count(MCU)」と記載することもある。)。また、SoC32は、SPIの同期クロックをカウントする(当該カウントを「SPI msg count(SoC)」と記載することもある。)。本実施形態において、SPI msg count(MCU)の値と、SPI msg count(SoC)の値とは、同じタイミングでは同じである。本実施形態では、SCLKのクロック周期を10msとするが、これは一例であって、他のクロック周期であってもよい。 In this embodiment, with regard to SPI communication, MCU31 is the master side and SoC is the slave side. MCU31 counts the SPI synchronous clock (Serial Clock: SCLK) (this count is sometimes referred to as "SPI msg count (MCU)"). SoC32 counts the SPI synchronous clock (this count is sometimes referred to as "SPI msg count (SoC)"). In this embodiment, the SPI msg count (MCU) value and the SPI msg count (SoC) value are the same at the same timing. In this embodiment, the clock period of SCLK is 10 ms, but this is just an example and other clock periods may be used.
MCU31とSoC32とにより次の処理が行われる。
ボデーECU10がターンランプ20を点灯状態にする今回の制御に対応する、MCU31によるインジケータ点灯描画信号受信開始時のSPI msg count(MCU)の値とSoC32による描画処理完了時のSPI msg count(SoC)の値とに基づいて、SoC32による描画処理の完了タイミングからMCU31によるインジケータ点灯描画信号の受信開始タイミングを引いた両者の時間差TA(図2参照)を算出する。SoC32による描画処理の完了タイミングよりも、ターンランプインジケータ33aをディスプレイ33にインジケータ点灯状態で表示するための垂直同期(V-Sync)表示処理が完了するタイミング(ターンランプインジケータ33aがディスプレイ33にインジケータ点灯状態で表示される表示タイミング)が遅れる時間差TB(図2参照)は、SoC32では把握できないため、本実施形態では予め定められた定数としている。ターンランプインジケータ33aがインジケータ点灯状態で表示される表示タイミングから、MCU31によるインジケータ点灯描画信号の受信開始タイミングを引いた、両者の時間差TA+TBを算出する。ボデーECU10がターンランプ20を点灯状態にする次回の制御に対応する次回のターンランプインジケータ33aをインジケータ点灯状態でディスプレイ33に表示するタイミングが、ターンランプインジケータ33aが今回インジケータ点灯状態になってから次にインジケータ点灯状態になるまでの時間がターンランプ20の点消灯の1周期分の時間長TP×2よりも時間差TA+TB分短くなるタイミングとなるように、インジケータ点灯状態に関わる次回の描画処理を含む次回の所定の処理(当該所定の処理は受信データ通知処理、共有メモリ格納処理、描画処理を含む。)の開始タイミングを予測して当該所定の処理を開始する。ただし、TA+TBの値(正、0、負)によって、ターンランプインジケータ33aがインジケータ消灯状態で表示される時間がターンランプ20の消灯時間TPよりも短くなったり、同じになったり、長くなったりする。なお、この処理の詳細は図2から図4を参照して説明する。
The following processing is performed by the MCU 31 and the SoC 32.
Based on the value of the SPI msg count (MCU) at the start of reception of the indicator light drawing signal by the MCU 31 and the value of the SPI msg count (SoC) at the completion of the drawing process by the SoC 32, which corresponds to the current control by the body ECU 10 to turn on the turn lamp 20, the body ECU 10 calculates a time difference TA (see FIG. 2) between the completion timing of the drawing process by the SoC 32 and the start timing of reception of the indicator light drawing signal by the MCU 31. The time difference TB (see FIG. 2) is the delay between the completion timing of the drawing process by the SoC 32 and the completion timing of the vertical synchronization (V-Sync) display process for displaying the turn lamp indicator 33a on the display 33 with the indicator light on (the display timing at which the turn lamp indicator 33a is displayed on the display 33 with the indicator light on). This time difference TB is a predetermined constant in this embodiment because it cannot be determined by the SoC 32. The time difference TA+TB between the display timing of the turn lamp indicator 33a in the indicator-on state and the start timing of the reception of the indicator-on drawing signal by the MCU 31 is calculated. The timing at which the body ECU 10 displays the turn lamp indicator 33a in the indicator-on state on the display 33 next time, corresponding to the next control to turn the turn lamp 20 on, is predicted and the next predetermined process (including the received data notification process, the shared memory storage process, and the drawing process) including the next drawing process related to the indicator-on state is started so that the time from when the turn lamp indicator 33a is currently in the indicator-on state until the next time the indicator is in the indicator-on state is shorter by the time difference TA+TB than the time length TP×2 for one cycle of turning on and off the turn lamp 20. However, depending on the value of TA+TB (positive, zero, negative), the time at which the turn lamp indicator 33a is displayed in the indicator-off state may be shorter, the same as, or longer than the turn lamp 20 off time TP. Details of this process will be described with reference to FIGS. 2 to 4.
ボデーECU10がターンランプ20を消灯状態にする今回の制御に対応する、MCU31によるインジケータ消灯描画信号受信開始時のSPI msg count(MCU)の値とSoC32による描画処理完了時のSPI msg count(SoC)の値とに基づいて、SoC32による描画処理の完了タイミングからMCU31によるインジケータ消灯描画信号の受信開始タイミングを引いた両者の時間差Ta(図3参照)を算出する。SoC32による描画処理の完了タイミングよりも、ターンランプインジケータ33aをディスプレイ33にインジケータ消灯状態で表示するための垂直同期(V-Sync)表示処理が完了するタイミング(ターンランプインジケータ33aがインジケータ消灯状態で表示される表示タイミング)が遅れる時間差Tb(図3参照)は、SoC32では把握できないため、本実施形態では予め定められた定数としている。ターンランプインジケータ33aがインジケータ消灯状態で表示される表示タイミングから、MCU31によるインジケータ消灯描画信号の受信開始タイミングを引いた、両者の時間差Ta+Tbを算出する。ボデーECU10がターンランプ20を消灯状態にする次回の制御に対応する次回のターンランプインジケータ33aをインジケータ消灯状態でディスプレイ33に表示するタイミングが、ターンランプインジケータ33aが今回インジケータ消灯状態になってから次にインジケータ消灯状態になるまでの時間がターンランプ20の点消灯の1周期分の時間長TP×2よりも時間差Ta+Tb分短くなるタイミングとなるように、インジケータ消灯状態に関わる次回の描画処理を含む次回の所定の処理(当該所定の処理は受信データ通知処理、共有メモリ格納処理、描画処理を含む。)の開始タイミングを予測して当該所定の処理を開始する。ただし、Ta+Tbの値(正、0、負)によって、ターンランプインジケータ33aがインジケータ点灯状態で表示される時間がターンランプ20の点灯時間TPよりも短くなったり、同じになったり、長くなったりする。なお、この処理の詳細は図2から図4を参照して説明する。 Based on the value of the SPI msg count (MCU) at the start of receiving the indicator-off drawing signal by the MCU 31 and the value of the SPI msg count (SoC) at the completion of the drawing process by the SoC 32, which corresponds to the current control by the body ECU 10 to turn off the turn lamp 20, the time difference Ta (see Figure 3) is calculated by subtracting the start of receiving the indicator-off drawing signal by the MCU 31 from the completion of the drawing process by the SoC 32. The time difference Tb (see Figure 3), which is the delay between the completion of the vertical synchronization (V-Sync) display process for displaying the turn lamp indicator 33a on the display 33 with the indicator off (the display timing at which the turn lamp indicator 33a is displayed with the indicator off) and the completion of the drawing process by the SoC 32, is a predetermined constant in this embodiment because it cannot be determined by the SoC 32. The time difference Ta+Tb between the display timing of the turn lamp indicator 33a in the indicator-off state and the start timing of receiving the indicator-off drawing signal from the MCU 31 is calculated. The start timing of the next predetermined process (including the received data notification process, the shared memory storage process, and the drawing process) including the next drawing process related to the indicator-off state is predicted and the predetermined process is started so that the timing when the next turn lamp indicator 33a is displayed on the display 33 in the indicator-off state corresponding to the next control by the body ECU 10 to turn the turn lamp 20 off is shorter by the time difference Ta+Tb than the time length TP×2 for one cycle of turning on and off the turn lamp 20. However, depending on the value of Ta+Tb (positive, 0, negative), the time when the turn lamp indicator 33a is displayed in the indicator-on state may be shorter, the same as, or longer than the turn lamp 20 lighting period TP. Details of this process will be explained with reference to Figures 2 to 4.
なお、MCU31およびSoC32が本発明の「描画処理部」に相当する。 Note that MCU31 and SoC32 correspond to the "drawing processing unit" of the present invention.
ディスプレイ33は、例えば、TFT液晶(Thin Film Transistor liquid crystal display)などである。ディスプレイ33は、SoC32とLVDS通信を行うことが可能になっている。 Display 33 is, for example, a TFT liquid crystal display (Thin Film Transistor liquid crystal display). Display 33 is capable of LVDS communication with SoC 32.
ディスプレイ33にはターンランプインジケータ33aが表示される。ターンランプインジケータ33aのインジケータ状態には、ターンランプ20の点灯に対応するターンランプインジケータ33aが表示された(点灯した)状態(インジケータ点灯状態)と、ターンランプ20の消灯に対応するターンランプインジケータ33aが表示されていない(消灯した)状態(インジケータ消灯状態)とがある。ターンランプインジケータ33aは、ターンランプスイッチ15がオンである場合、ターンランプ20の点灯と消灯との繰り返しに対応して、インジケータ点灯状態とインジケータ消灯状態とを繰り返す。また、ターンランプスイッチ15がオフである場合、ターンランプ20が消灯し続けるのに対応して、ターンランプインジケータ33aではインジケータ消灯状態が続く。なお、ターンランプインジケータ33aが本発明の「ターンランプインジケータ」に相当する。また、インジケータ状態が本発明の「インジケータ状態」に相当し、インジケータ点灯状態が本発明の「第1のインジケータ状態」または「第2のインジケータ状態」に相当し、インジケータ消灯状態が本発明の「第2のインジケータ状態」または「第1のインジケータ状態」に相当する。 The display 33 displays a turn lamp indicator 33a. The indicator states of the turn lamp indicator 33a include a state in which the turn lamp indicator 33a is displayed (lit) (indicator on state), corresponding to the lighting of the turn lamp 20, and a state in which the turn lamp indicator 33a is not displayed (off), corresponding to the lighting of the turn lamp 20 (indicator off state). When the turn lamp switch 15 is on, the turn lamp indicator 33a alternates between the indicator on state and the indicator off state, corresponding to the repeated lighting and off of the turn lamp 20. Furthermore, when the turn lamp switch 15 is off, the turn lamp indicator 33a remains in the indicator off state, corresponding to the continued extinction of the turn lamp 20. Note that the turn lamp indicator 33a corresponds to the "turn lamp indicator" of the present invention. Furthermore, the indicator state corresponds to the "indicator state" of the present invention, the indicator on state corresponds to the "first indicator state" or "second indicator state" of the present invention, and the indicator off state corresponds to the "second indicator state" or "first indicator state" of the present invention.
続いて、車両制御装置1によるターンランプ20の点消灯およびターンランプインジケータ33aの点滅の処理シーケンスについて図2から図4を参照しつつ説明する。なお、図2から図4で用いる値は一例であって他の値となっていてもよい。 Next, the processing sequence for turning on and off the turn lamps 20 and flashing the turn lamp indicators 33a by the vehicle control device 1 will be described with reference to Figures 2 to 4. Note that the values used in Figures 2 to 4 are merely examples and other values may be used.
ボデーECU10は、ユーザ操作によりターンランプスイッチ15がオフからオンになった場合、ターンランプ20の点灯と消灯とを繰り返す制御を行い、図2に示すように、まず、LED21に通電してLED21を発光させることでターンランプ20を点灯させる(ステップS1)。 When the turn lamp switch 15 is changed from off to on by user operation, the body ECU 10 controls the turn lamp 20 to repeatedly turn on and off. As shown in FIG. 2, the body ECU 10 first energizes the LED 21 to cause it to emit light, thereby turning on the turn lamp 20 (step S1).
ボデーECU10は、ターンランプ20を点灯させるのにあわせて、ターンランプインジケータ33aのインジケータ点灯状態に関わるデータ(インジケータ点灯描画データ)をペイロードに含めたインジケータ点灯描画信号をCAN通信によりメータ30のMCU31へ送信する(ステップS2)。 In conjunction with turning on the turn lamp 20, the body ECU 10 transmits an indicator lighting drawing signal, the payload of which includes data related to the indicator lighting state of the turn lamp indicator 33a (indicator lighting drawing data), to the MCU 31 of the meter 30 via CAN communication (step S2).
MCU31は、SPIの同期クロック(本実施形態では、周期が10ms)をカウントし(SPI msg count(MCU))、SoC32は、SPIの同期クロックをカウントする(SPI msg count(SoC))。本実施形態において、SPI msg count(MCU)の値と、SPI msg count(SoC)の値とは、同じタイミングでは同じである。 MCU31 counts the SPI synchronization clock (which has a period of 10 ms in this embodiment) (SPI msg count (MCU)), and SoC32 counts the SPI synchronization clock (SPI msg count (SoC)). In this embodiment, the value of SPI msg count (MCU) and the value of SPI msg count (SoC) are the same at the same timing.
MCU31は、CAN通信により、ボデーECU10からインジケータ点灯描画信号を受信する(ステップS3)。ステップS3では、インジケータ点灯描画信号の受信を開始したときのSPI msg count(MCU)の値(以下、「インジケータ点灯描画信号受信開始時MCUカウント値」と記載することもある。)を保持する。この処理シーケンスでは、インジケータ点灯描画信号受信開始時MCUカウント値は1である。MCU31は、ステップS3で受信したインジケータ点灯描画信号のペイロードのデータ(インジケータ点灯描画データなど)を抽出する(ステップS4)。MCU31は、SoC32をSPI通信の相手とするためのSPIポーリングを行う(ステップS5)。 The MCU 31 receives the indicator light drawing signal from the body ECU 10 via CAN communication (step S3). In step S3, the value of the SPI msg count (MCU) when reception of the indicator light drawing signal begins is retained (hereinafter, this may be referred to as the "MCU count value at the start of reception of the indicator light drawing signal"). In this processing sequence, the MCU count value at the start of reception of the indicator light drawing signal is 1. The MCU 31 extracts the payload data (e.g., indicator light drawing data) of the indicator light drawing signal received in step S3 (step S4). The MCU 31 performs SPI polling to make the SoC 32 the partner of SPI communication (step S5).
MCU31とSoC32との間でSPI通信による信号の送受信(SPI送受信処理)を行う(ステップS6)。ステップS6では、MCU31は、ターンランプインジケータ33aのインジケータ点灯状態に関わるデータ(インジケータ点灯描画データ)と、ステップS3で保持したインジケータ点灯描画信号受信開始時MCUカウント値を示すデータ(以下、「インジケータ点灯描画信号受信開始時MCUカウント値データ」と記載することもある。)とを含む信号(以下、「インジケータ点灯描画・MCUカウント値信号」と記載することもある。)を、SoC32へ送信する。SoC32の通信処理を行う機能部は、MCU31からインジケータ点灯描画・MCUカウント値信号を受信する。インジケータ点灯描画・MCUカウント値信号で送られてきたインジケータ点灯描画信号受信開始時MCUカウント値(MCU31がステップS3でインジケータ点灯描画信号の受信を開始したときのSPI msg count(MCU)の値)は保持されて点灯タイミング予測処理(ステップS25)で用いられる。なお、SPI送受信処理のリトライの最大回数は3である。 Signals are sent and received between MCU 31 and SoC 32 via SPI communication (SPI sending and receiving processing) (step S6). In step S6, MCU 31 sends to SoC 32 a signal (hereinafter sometimes referred to as the "indicator lighting drawing/MCU count value signal") including data related to the indicator lighting state of turn lamp indicator 33a (indicator lighting drawing data) and data indicating the MCU count value at the start of indicator lighting drawing signal reception held in step S3 (hereinafter sometimes referred to as the "indicator lighting drawing/MCU count value data"). The functional unit of SoC 32 that performs communication processing receives the indicator lighting drawing/MCU count value signal from MCU 31. The MCU count value at the start of indicator lighting drawing signal reception sent in the indicator lighting drawing/MCU count value signal (the value of SPI msg count (MCU) when MCU 31 started receiving the indicator lighting drawing signal in step S3) is held and used in the lighting timing prediction processing (step S25). The maximum number of retries for SPI sending and receiving is 3.
SoC32の通信処理を行う機能部は、受信データ(受信したインジケータ点灯描画・MCUカウント値信号で送られてきたデータ)を、SoC32の制御処理を行う機能部に通知する受信データ通知処理を行う(ステップS7)。また、ステップS7では、受信データ通知処理を開始した時のSPI msg count(SoC)の値(以下、「インジケータ点灯関連受信データ通知処理開始時SoCカウント値」と記載することもある。)を保持する。この処理シーケンスでは、インジケータ点灯関連受信データ通知処理開始時SoCカウント値は14である。SoC32の制御処理を行う機能部は、通知された受信データを共有メモリに格納する(ステップS8)。 The functional unit that performs communication processing on SoC32 performs received data notification processing, notifying the functional unit that performs control processing on SoC32 of the received data (data sent via the received indicator lighting drawing/MCU count value signal) (step S7). Also, in step S7, the value of the SPI msg count (SoC) at the start of the received data notification processing (hereinafter sometimes referred to as the "SoC count value at the start of the indicator lighting related received data notification processing") is retained. In this processing sequence, the SoC count value at the start of the indicator lighting related received data notification processing is 14. The functional unit that performs control processing on SoC32 stores the notified received data in shared memory (step S8).
SoC32の制御処理を行う機能部は、ターンランプインジケータ33aをインジケータ点灯状態でディスプレイ33に描画するための描画データを生成するなどの描画処理を行う(ステップS9)。また、ステップS9では、描画処理が完了したときのSPI msg count(SoC)の値(以下、「インジケータ点灯描画処理完了時SoCカウント値」と記載することもある。)を保持する。この処理シーケンスでは、インジケータ点灯描画処理完了時SoCカウント値は21である。 The functional unit that performs control processing on the SoC 32 performs drawing processing, such as generating drawing data for drawing the turn lamp indicator 33a on the display 33 with the indicator lit (step S9). Also, in step S9, the value of the SPI msg count (SoC) when the drawing processing is completed (hereinafter sometimes referred to as the "SoC count value at the completion of the indicator lit drawing processing") is retained. In this processing sequence, the SoC count value at the completion of the indicator lit drawing processing is 21.
SoC32は、ディスプレイ33をLVDS通信の相手とするためのLVDSポーリングを行う(ステップS10)。SoC32とディスプレイ33との間でLDVS通信による信号の送受信(LVDS送受信処理)を行う(ステップS11)。ステップS11では、SoC32は描画データなどを含む映像信号をディスプレイ33へ送信し、ディスプレイ33はSoC32から映像信号を受信する。 SoC32 performs LVDS polling to make display 33 the partner of LVDS communication (step S10). LVDS communication signals are sent and received between SoC32 and display 33 (LVDS sending and receiving processing) (step S11). In step S11, SoC32 sends a video signal including drawing data to display 33, and display 33 receives the video signal from SoC32.
ディスプレイ33は、映像信号に含まれる描画データに基づいて、垂直同期(V-Sync)により、インジケータ点灯状態でターンランプインジケータ33aをディスプレイ33の表示画面に表示する(ステップS12)。 Based on the drawing data contained in the video signal, the display 33 displays the turn lamp indicator 33a on the display screen of the display 33 using vertical synchronization (V-Sync) with the indicator lit (step S12).
この処理シーケンスでは、ターンランプ20の点消灯の1周期分の時間長TP×2(1回のターンランプ20の点灯時間TPと1回のターンランプ20の消灯時間TPとの合計時間)を680msとし、ターンランプ20の1回の点灯時間TPを340msとし、ターンランプ20の1回の消灯時間TPを340msとする。 In this processing sequence, the time length TP x 2 for one cycle of turning on and off the turn lamp 20 (the total time of one turn lamp 20 on time TP and one turn lamp 20 off time TP) is set to 680 ms, the turn lamp 20 on time TP for one turn lamp 20 is set to 340 ms, and the turn lamp 20 off time TP for one turn lamp 20 is set to 340 ms.
ボデーECU31は、ターンランプ20を点灯させてからターンランプ20の点灯時間TP=340msが経過した場合、図3に示すように、LED21に通電するのを止めてLED21を発光させないことでターンランプ20を消灯させる(ステップS13)。 When the turn lamp 20 lighting time TP = 340 ms has elapsed since the turn lamp 20 was turned on, the body ECU 31 turns off the turn lamp 20 by stopping the supply of electricity to the LED 21 and preventing the LED 21 from emitting light, as shown in Figure 3 (step S13).
ボデーECU10は、ターンランプ20を消灯させるのにあわせて、ターンランプインジケータ33aのインジケータ消灯状態に関わるデータ(インジケータ消灯描画データ)をペイロードに含めたインジケータ消灯描画信号をCAN通信によりメータ30のMCU31へ送信する(ステップS14)。 In conjunction with turning off the turn lamp 20, the body ECU 10 transmits an indicator-off drawing signal, the payload of which includes data relating to the indicator-off state of the turn lamp indicator 33a (indicator-off drawing data), to the MCU 31 of the meter 30 via CAN communication (step S14).
MCU31は、CAN通信により、ボデーECU10からインジケータ消灯描画信号を受信する(ステップS15)。ステップS15では、インジケータ消灯描画信号の受信を開始したときのSPI msg count(MCU)の値(以下、「インジケータ消灯描画信号受信開始時MCUカウント値」と記載することもある。)を保持する。この処理シーケンスでは、インジケータ消灯描画信号受信開始時MCUカウント値は35である。MCU31は、ステップS15で受信したインジケータ消灯描画信号のペイロードのデータ(インジケータ消灯描画データなど)を抽出する(ステップS16)。MCU31は、SoC32をSPI通信の相手とするためのSPIポーリングを行う(ステップS17)。 The MCU 31 receives the indicator-off drawing signal from the body ECU 10 via CAN communication (step S15). In step S15, the SPI msg count (MCU) value at the start of reception of the indicator-off drawing signal is retained (hereinafter, sometimes referred to as the "MCU count value at the start of reception of the indicator-off drawing signal"). In this processing sequence, the MCU count value at the start of reception of the indicator-off drawing signal is 35. The MCU 31 extracts the payload data (e.g., indicator-off drawing data) of the indicator-off drawing signal received in step S15 (step S16). The MCU 31 performs SPI polling to make the SoC 32 the partner of SPI communication (step S17).
MCU31とSoC32との間でSPI通信による信号の送受信(SPI送受信処理)を行う(ステップS18)。ステップS18では、MCU31は、ターンランプインジケータ33aのインジケータ消灯状態に関わるデータ(インジケータ消灯描画データ)と、ステップS15で保持したインジケータ消灯描画信号受信開始時MCUカウント値を示すデータ(以下、「インジケータ消灯描画信号受信開始時MCUカウント値データ」と記載することもある。)とを含む信号(以下、「インジケータ消灯描画・MCUカウント値信号」と記載することもある。)を、SoC32へ送信する。SoC32の通信処理を行う機能部は、MCU31からインジケータ消灯描画・MCUカウント値信号を受信する。インジケータ消灯描画・MCUカウント値信号で送られてきたインジケータ消灯描画信号受信開始時MCUカウント値(MCU31がステップS15でインジケータ消灯描画信号の受信を開始したときのSPI msg count(MCU)の値)は保持されて消灯タイミング予測処理(ステップS38)で用いられる。なお、SPI送受信処理のリトライの最大回数は3である。 Signals are sent and received between MCU31 and SoC32 via SPI communication (SPI sending and receiving processing) (step S18). In step S18, MCU31 sends to SoC32 a signal (hereinafter sometimes referred to as the "indicator off drawing/MCU count value signal") that includes data related to the indicator off state of the turn lamp indicator 33a (indicator off drawing data) and data indicating the MCU count value at the start of receiving the indicator off drawing signal that was held in step S15 (hereinafter sometimes referred to as the "MCU count value data at the start of receiving the indicator off drawing signal"). The functional unit that performs communication processing in SoC32 receives the indicator off drawing/MCU count value signal from MCU31. The MCU count value at the start of receiving the indicator turn-off drawing signal sent in the indicator turn-off drawing MCU count value signal (the value of the SPI msg count (MCU) when MCU 31 starts receiving the indicator turn-off drawing signal in step S15) is retained and used in the turn-off timing prediction process (step S38). Note that the maximum number of retries for the SPI transmission/reception process is 3.
SoC32の通信処理を行う機能部は、受信データ(受信したインジケータ消灯描画・MCUカウント値信号で送られてきたデータ)を、SoC32の制御処理を行う機能部に通知する受信データ通知処理を行う(ステップS19)。また、ステップS19では、受信データ通知処理を開始した時のSPI msg count(SoC)の値(以下、「インジケータ消灯関連受信データ通知処理開始時SoCカウント値」と記載することもある。)を保持する。この処理シーケンスでは、インジケータ消灯関連受信データ通知処理開始時SoCカウント値は48である。SoC32の制御処理を行う機能部は、通知された受信データを共有メモリに格納する(ステップS20)。 The functional unit that performs communication processing on SoC32 performs received data notification processing, notifying the functional unit that performs control processing on SoC32 of the received data (data sent via the received indicator extinguishing drawing/MCU count value signal) (step S19). Also, in step S19, the value of the SPI msg count (SoC) at the start of the received data notification processing (hereinafter sometimes referred to as the "SoC count value at the start of the indicator extinguishing related received data notification processing") is retained. In this processing sequence, the SoC count value at the start of the indicator extinguishing related received data notification processing is 48. The functional unit that performs control processing on SoC32 stores the notified received data in shared memory (step S20).
SoC32の制御処理を行う機能部は、ターンランプインジケータ33aをインジケータ消灯状態でディスプレイ33に描画するための描画データを生成するなどの描画処理を行う(ステップS21)。また、ステップS21では、描画処理が完了したときのSPI msg count(SoC)の値(以下、「インジケータ消灯描画処理完了時SoCカウント値」と記載することもある。)を保持する。この処理シーケンスでは、インジケータ消灯描画処理完了時SoCカウント値は55である。 The functional unit that performs control processing on the SoC 32 performs drawing processing, such as generating drawing data for drawing the turn lamp indicator 33a on the display 33 with the indicator turned off (step S21). Also, in step S21, the value of the SPI msg count (SoC) when the drawing processing is completed (hereinafter sometimes referred to as the "SoC count value at the completion of the indicator turned off drawing processing") is retained. In this processing sequence, the SoC count value at the completion of the indicator turned off drawing processing is 55.
SoC32は、ディスプレイ33をLVDS通信の相手とするためのLVDSポーリングを行う(ステップS22)。SoC32とディスプレイ33との間でLDVS通信による信号の送受信(LVDS送受信処理)を行う(ステップS23)。ステップS23では、SoC32は描画データなどを含む映像信号をディスプレイ33へ送信し、ディスプレイ33はSoC32から映像信号を受信する。 SoC32 performs LVDS polling to make display 33 the partner of LVDS communication (step S22). LVDS communication signals are sent and received between SoC32 and display 33 (LVDS sending and receiving processing) (step S23). In step S23, SoC32 sends a video signal including drawing data to display 33, and display 33 receives the video signal from SoC32.
ディスプレイ33は、映像信号に含まれる描画データに基づいて、垂直同期(V-Sync)により、インジケータ消灯状態でターンランプインジケータ33aをディスプレイ33の表示画面に表示する(ステップS24)。 Based on the drawing data contained in the video signal, the display 33 displays the turn lamp indicator 33a on the display screen of the display 33 using vertical synchronization (V-Sync) with the indicator turned off (step S24).
SoC32は、次回ターンランプインジケータ33aをインジケータ点灯状態にするタイミング(以下、「次回ターンランプインジケータ点灯タイミング」と記載することもある。)を算出する点灯タイミング予測処理を行う(ステップS25)。ステップS25の点灯タイミング予測処理は次のようにして行う。 The SoC 32 performs a lighting timing prediction process to calculate the timing when the next turn lamp indicator 33a will be turned on (hereinafter, sometimes referred to as the "next turn lamp indicator lighting timing") (step S25). The lighting timing prediction process in step S25 is performed as follows.
ターンランプ20の点灯時間(ターンランプ20がステップS1で点灯されてからステップS13で消灯するまでの時間)TPを算出する。この処理シーケンスでは、ステップS6でMCU31から送られてきたインジケータ点灯信号受信開始時MCUカウント値=1、ステップS18でMCU31から送られてきたインジケータ消灯信号受信開始時MCUカウント値=35、同期クロックの1周期分の時間長=10msを用いて、ターンランプ20の点灯時間TP=(35-1)×10=340msを算出する。本実施形態では、ターンランプ20の点灯時間TP=ターンランプ20の消灯時間TPとしているので、ターンランプ20の点灯時間TP=340msからターンランプ20の消灯時間TP=340msを算出する。 The turn lamp 20 illumination time TP (the time from when the turn lamp 20 is illuminated in step S1 to when it is extinguished in step S13) is calculated. In this processing sequence, the MCU count value at the start of receiving the indicator illumination signal sent from the MCU 31 in step S6 is 1, the MCU count value at the start of receiving the indicator extinguishing signal sent from the MCU 31 in step S18 is 35, and the time length of one cycle of the synchronization clock is 10 ms. In this embodiment, the turn lamp 20 illumination time TP = the turn lamp 20 extinguishing time TP, so the turn lamp 20 extinguishing time TP = 340 ms is calculated from the turn lamp 20 illumination time TP = 340 ms.
なお、ターンランプ20の点消灯の周期が複数用意されている場合に点灯時間TPや消灯時間TPを算出する処理を行う。一方で、ターンランプ20の点消灯の周期が1つだけ用意されている場合は、点灯時間TPや消灯時間TPを算出する算出処理を行わずに予めSoC32に点灯時間TPや消灯時間TPを設定して設定した点灯時間TPや消灯時間を用いるようにしてもよいし、点灯時間TPや消灯時間TPを算出するようにしてもよい。 Note that if multiple on/off cycles for the turn lamp 20 are provided, a process for calculating the on time TP and off time TP is performed. On the other hand, if only one on/off cycle for the turn lamp 20 is provided, the process for calculating the on time TP and off time TP may be omitted, and the on time TP and off time TP may be set in the SoC 32 in advance and the set on time TP and off time may be used, or the on time TP and off time TP may be calculated.
ステップS9でSoC32による描画処理が完了した完了タイミングから、ステップS3でMCU31によるインジケータ点灯描画信号の受信を開始した受信開始タイミングを引いた両者の時間差TAを算出する。ステップS6でMCU31から送られてきたインジケータ点灯信号受信開始時MCUカウント値=1、ステップS9で保持したインジケータ点灯描画処理完了時SoCカウント値=21、同期クロックの1周期分の時間長=10msを用いて、時間差TA=(21-1+1)×10=210msを算出する。 In step S9, the time difference TA is calculated by subtracting the start time when MCU31 started receiving the indicator light drawing signal in step S3 from the completion time when SoC32 completed the drawing process. Using the MCU count value at the start of reception of the indicator light signal sent from MCU31 in step S6 = 1, the SoC count value at the completion of the indicator light drawing process held in step S9 = 21, and the time length of one cycle of the synchronization clock = 10 ms, the time difference TA = (21 - 1 + 1) x 10 = 210 ms is calculated.
ステップS9でSoC32による描画処理が完了した完了タイミングよりも、ステップS12の垂直同期(V-Sync)表示処理が完了した完了タイミング(ターンランプインジケータ33aがインジケータ点灯状態でディスプレイ33に表示される表示タイミング)が遅れる時間差TBを算出する。この処理シーケンスでは、時間差TB=22ms(定数)であるとして時間差TB=22msを算出する。 Calculate the time difference TB between the completion timing of the vertical synchronization (V-Sync) display process in step S12 (the display timing when the turn lamp indicator 33a is displayed on the display 33 with the indicator lit) and the completion timing of the drawing process by the SoC 32 in step S9. In this processing sequence, the time difference TB is calculated as 22 ms (constant).
ターンランプインジケータ33aがインジケータ点灯状態でディスプレイ33に表示される表示タイミングから、ステップS3でMCU31によるインジケータ点灯描画信号の受信を開始した受信開始タイミングを引いた、両者の時間差TA+TBを算出する。この処理シーケンスでは、時間差TA=210ms、時間差TB=22msを用いて、時間差TA+TB=210+22=232msを算出する。 The time difference TA + TB between the display timing of the turn lamp indicator 33a on the display 33 is calculated by subtracting the reception start timing at which the MCU 31 started receiving the indicator lighting drawing signal in step S3 from the display timing at which the indicator is turned on. In this processing sequence, the time difference TA = 210 ms and the time difference TB = 22 ms are used to calculate the time difference TA + TB = 210 + 22 = 232 ms.
ターンランプインジケータ33aが今回インジケータ点灯状態になってから次にインジケータ点灯状態になるまでの時間がターンランプ20の点消灯の1周期分の時間長TP×2よりも時間差TA+TB分短くなるように、次回のターンランプインジケータ33aをインジケータ点灯状態にするタイミングを予測し、次回インジケータ点灯状態に関わる所定の処理(当該所定の処理は受信データ通知処理、共有メモリ格納処理、描画処理を含む。)の開始タイミングを算出して当該所定の処理を開始する。この処理シーケンスでは、ターンランプインジケータ33aが今回インジケータ点灯状態になってから次にインジケータ点灯状態になるまでの時間TABを、ターンランプ20の点消灯の1周期分の時間長TP×2=680msと、時間差TA+TB=232msを用いて、時間TAB=ターンランプ20の点消灯の1周期分の時間長TP×2-時間差(TA+TB)=680-232=448msを算出する。この処理シーケンスでは、ターンランプインジケータ33aがインジケータ消灯状態で表示される時間(以下、「インジケータ消灯時間」と記載する場合もある。)TCは、インジケータ消灯時間TC=消灯時間TP-時間差(TA+TB)=340-232=108msになり、ターンランプ20の消灯時間TPより232ms短くなっている。なお、時間差TA+TBの値(正、0、負)によって、ターンランプインジケータ33aのインジケータ消灯時間TCがターンランプ20の消灯時間TPよりも短くなったり、同じになったり、長くなったりする。 The system predicts the next timing for the turn lamp indicator 33a to be turned on so that the time from when the indicator 33a is currently turned on until the next time it is turned on is shorter by the time difference TA + TB than the time length TP x 2 for one cycle of the turn lamp 20 turning on/off. The system calculates the start timing of the specified processing related to the next indicator lighting state (including received data notification processing, shared memory storage processing, and drawing processing) and starts the specified processing. In this processing sequence, the time TAB from when the turn lamp indicator 33a is currently turned on until the next time it is turned on is calculated as follows: Time TAB = Time length TP x 2 for one cycle of the turn lamp 20 turning on/off - Time difference (TA + TB) = 680 - 232 = 448 ms, using the time length TP x 2 = 680 ms for one cycle of the turn lamp 20 turning on/off and the time difference TA + TB = 232 ms. In this processing sequence, the time TC during which the turn lamp indicator 33a is displayed in the indicator-off state (hereinafter sometimes referred to as the "indicator-off time") is calculated as follows: Indicator-off time TC = Off time TP - Time difference (TA + TB) = 340 - 232 = 108 ms, which is 232 ms shorter than the off time TP of the turn lamp 20. Note that depending on the value of the time difference TA + TB (positive, 0, negative), the indicator-off time TC of the turn lamp indicator 33a can be shorter, the same as, or longer than the off time TP of the turn lamp 20.
この処理シーケンスでは、SoC32は、次回ターンランプインジケータ33aをインジケータ点灯状態とするための処理を受信データ通知処理(ステップS26)から開始するため、受信データ通知処理(ステップS26)の開始を、受信データ通知処理(ステップS7)の開始よりも時間TAB=448ms分遅れるようにする。この処理シーケンスでは、ステップS7で保持したインジケータ点灯関連受信データ通知処理開始時SoCカウント値=14、同期クロックの1周期分の時間長=10ms、時間TAB=448msを用いて、ステップS7の受信データ通知処理の開始後の44同期クロック目または45同期クロック目のSPI msg count(SoC)=58または59で受信データ通知処理(ステップS26)を開始することを決定する。この処理シーケンスでは45同期クロック目のSPI msg count(SoC)=59に受信データ通知処理(ステップS26)を開始することを決定する。 In this processing sequence, the SoC 32 starts the process for turning the next turn lamp indicator 33a on with the received data notification process (step S26), so the start of the received data notification process (step S26) is delayed by a time TAB of 448 ms from the start of the received data notification process (step S7). In this processing sequence, using the SoC count value at the start of the indicator illumination-related received data notification process (stored in step S7) of 14, the time length of one synchronous clock cycle of 10 ms, and the time TAB of 448 ms, it determines to start the received data notification process (step S26) when the SPI msg count (SoC) is 58 or 59 on the 44th or 45th synchronous clock after the start of the received data notification process in step S7. In this processing sequence, it determines to start the received data notification process (step S26) when the SPI msg count (SoC) is 59 on the 45th synchronous clock.
図4に示すように、SoC32の通信処理を行う機能部は、SPI msg count(SoC)の値=59のタイミングで、次のターンランプ20の点灯にあわせて受信することになるインジケータ点灯描画・MCUカウント値信号を受信していないが、インジケータ点灯描画・MCUカウント値信号で受信することになるインジケータ点灯描画データなどを、受信データとして、SoC32の制御処理を行う機能部に通知する受信データ通知処理を行う(ステップS26)。また、ステップS26では、受信データ通知処理を開始した時のSPI msg count(SoC)の値(インジケータ点灯関連受信データ通知処理開始時SoCカウント値)を保持する。この処理シーケンスでは、インジケータ点灯関連受信データ通知処理開始時SoCカウント値は59である。SoC32の制御処理を行う機能部は、通知された受信データを共有メモリに格納する(ステップS27)。 As shown in FIG. 4, the communication processing functional unit of SoC 32 does not receive the indicator lighting drawing/MCU count value signal that would be received in conjunction with the next illumination of the turn signal 20 at the timing when the SPI msg count (SoC) value is 59. However, it performs received data notification processing to notify the control processing functional unit of SoC 32 of the indicator lighting drawing data and other data that would be received via the indicator lighting drawing/MCU count value signal as received data (step S26). Also, in step S26, the SPI msg count (SoC) value at the start of the received data notification processing (the SoC count value at the start of the indicator lighting related received data notification processing) is retained. In this processing sequence, the SoC count value at the start of the indicator lighting related received data notification processing is 59. The control processing functional unit of SoC 32 stores the notified received data in shared memory (step S27).
SoC32の制御処理を行う機能部は、ターンランプインジケータ33aをインジケータ点灯状態でディスプレイ33に描画するための画像データを生成するなどの描画処理を行う(ステップS28)。また、ステップS28では、描画処理が完了したときのSPI msg count(SoC)の値(インジケータ点灯描画処理完了時SoCカウント値)を保持する。この処理シーケンスでは、インジケータ点灯描画処理完了時SoCカウント値は66である。 The functional unit that performs control processing on the SoC 32 performs drawing processing, such as generating image data for drawing the turn lamp indicator 33a on the display 33 with the indicator lit (step S28). Also, in step S28, the value of the SPI msg count (SoC) when the drawing processing is completed (the SoC count value at the completion of the indicator lit drawing processing) is retained. In this processing sequence, the SoC count value at the completion of the indicator lit drawing processing is 66.
SoC32は、ディスプレイ33をLDVS通信の相手とするためのLVDSポーリングを行う(ステップS29)。SoC32とディスプレイ33との間でLDVS通信による信号の送受信(LVDS送受信処理)を行う(ステップS30)。ステップS30では、SoC32は描画データなどを含む映像信号をディスプレイ33へ送信し、ディスプレイ33はSoC32から映像信号を受信する。 SoC32 performs LVDS polling to make display 33 the partner of LDVS communication (step S29). LDVS communication signals are sent and received between SoC32 and display 33 (LVDS sending and receiving processing) (step S30). In step S30, SoC32 sends a video signal including drawing data to display 33, and display 33 receives the video signal from SoC32.
ディスプレイ33は、映像信号に含まれる描画データに基づいて、垂直同期(V-Sync)により、インジケータ点灯状態でターンランプインジケータ33aをディスプレイ33の表示画面に表示する(ステップS31)。 Based on the drawing data contained in the video signal, the display 33 displays the turn lamp indicator 33a on the display screen of the display 33 using vertical synchronization (V-Sync) with the indicator lit (step S31).
ボデーECU31は、ターンランプ20を消灯させてからターンランプ20の消灯時間TP=340msが経過した場合、LED21に通電してLED21を発光させることでターンランプ20を点灯させる(ステップS32)。 When the turn lamp 20 extinguishing time TP = 340 ms has elapsed since the body ECU 31 turned off the turn lamp 20, the body ECU 31 energizes the LED 21 to cause the LED 21 to emit light, thereby turning on the turn lamp 20 (step S32).
ボデーECU31は、ターンランプ20を点灯させるのにあわせて、ターンランプインジケータ33aのインジケータ点灯状態に関わるデータ(インジケータ点灯描画データ)をペイロードに含めたインジケータ点灯描画信号をCAN40通信によりメータ30のMCU31へ送信する(ステップS33)。 In conjunction with turning on the turn lamp 20, the body ECU 31 transmits an indicator lighting drawing signal, the payload of which includes data relating to the indicator lighting state of the turn lamp indicator 33a (indicator lighting drawing data), to the MCU 31 of the meter 30 via CAN 40 communication (step S33).
MCU31は、CAN通信により、ボデーECU10からインジケータ点灯描画信号を受信する(ステップS34)。ステップS34では、インジケータ点灯描画信号の受信を開始したときのSPI msg count(MCU)の値(インジケータ点灯描画信号受信開始時MCUカウント値)を保持する。この処理シーケンスでは、インジケータ点灯描画信号受信開始時MCUカウント値は69である。MCU31は、ステップS34で受信したインジケータ点灯描画信号のペイロードのデータ(インジケータ点灯描画データなど)を抽出する(ステップS35)。MCU31は、SoC32をSPI通信の相手とするためのSPIポーリングを行う(ステップS36)。 The MCU 31 receives the indicator light drawing signal from the body ECU 10 via CAN communication (step S34). In step S34, the value of the SPI msg count (MCU) when reception of the indicator light drawing signal begins is retained (the MCU count value when reception of the indicator light drawing signal begins). In this processing sequence, the MCU count value when reception of the indicator light drawing signal begins is 69. The MCU 31 extracts the payload data (e.g., indicator light drawing data) of the indicator light drawing signal received in step S34 (step S35). The MCU 31 performs SPI polling to make the SoC 32 the partner of SPI communication (step S36).
MCU31とSoC32との間でSPI通信による信号の送受信(SPI送受信処理)を行う(ステップS37)。ステップS37では、MCU31は、ターンランプインジケータ33aのインジケータ点灯状態に関わるデータ(インジケータ点灯描画データ)と、ステップS34で保持したインジケータ点灯描画信号受信開始時MCUカウント値を示すデータ(インジケータ点灯描画信号受信開始時MCUカウント値データ)とを含む信号(インジケータ点灯描画・MCUカウント値信号)を、SoC32へ送信する。SoC32の通信処理を行う機能部は、MCU31からインジケータ点灯描画・MCUカウント値信号を受信する。インジケータ点灯描画・MCUカウント値信号で送られてきたインジケータ点灯描画信号受信開始時MCUカウント値(MCU31がステップS34でインジケータ点灯描画信号の受信を開始したときのSPI msg count(MCU)の値)は保持されてステップS32のターンランプ20の点灯の次のターンランプ20の点灯にあわせてターンランプインジケータ33aをインジケータ点灯状態にする点灯タイミング予測処理で用いられる。なお、SPI送信受信処理のリトライの最大回数は3回である。 Signals are sent and received between MCU31 and SoC32 via SPI communication (SPI sending and receiving processing) (step S37). In step S37, MCU31 sends to SoC32 a signal (indicator lighting drawing/MCU count value signal) that includes data related to the indicator lighting state of turn lamp indicator 33a (indicator lighting drawing data) and data indicating the MCU count value at the start of receiving the indicator lighting drawing signal (MCU count value data at the start of receiving the indicator lighting drawing signal) that was held in step S34. The functional unit that performs communication processing in SoC32 receives the indicator lighting drawing/MCU count value signal from MCU31. The MCU count value at the start of receiving the indicator light drawing signal sent in the indicator light drawing/MCU count value signal (the value of the SPI msg count (MCU) when the MCU 31 starts receiving the indicator light drawing signal in step S34) is retained and used in the lighting timing prediction process that sets the turn lamp indicator 33a to the indicator lighting state in time with the lighting of the turn lamp 20 following the lighting of the turn lamp 20 in step S32. Note that the maximum number of retries for the SPI sending and receiving process is three.
なお、ステップS37のSPI送受信処理に対応する受信データ通知処理から垂直同期(V-Sync)表示処理に該当する処理は、ステップS26の受信データ通知処理からステップS31の垂直同期(V-Sync)表示処理である。 Note that the processes corresponding to the SPI transmission/reception process in step S37, from the received data notification process to the vertical synchronization (V-Sync) display process, are the received data notification process in step S26 to the vertical synchronization (V-Sync) display process in step S31.
SoC32は、次回ターンランプインジケータ33aをインジケータ消灯状態にするタイミング(以下、「次回ターンランプインジケータ消灯タイミング」と記載することもある。)を算出する消灯タイミング予測処理を行う(ステップS38)。ステップS38の消灯タイミング予測処理は次のようにして行う。 The SoC 32 performs a turn-off timing prediction process to calculate the timing at which the next turn lamp indicator 33a will be turned off (hereinafter, sometimes referred to as the "next turn lamp indicator turn-off timing") (step S38). The turn-off timing prediction process in step S38 is performed as follows.
ターンランプ20の消灯時間(ターンランプ20がステップS13で消灯されてからステップS32で点灯するまでの時間)TPを算出する。この処理シーケンスでは、ステップS18でMCU31から送られてきたインジケータ消灯信号受信開始時MCUカウント値=35、ステップS37でMCU31から送られてきたインジケータ点灯信号受信開始時MCUカウント値=69、同期クロックの1周期分の時間長=10msを用いて、ターンランプ20の消灯時間TP=(69-35)×10=340msを算出する。本実施形態では、ターンランプ20の消灯時間TP=ターンランプ20の点灯時間TPとしているので、ターンランプ20の消灯時間TP=340msからターンランプ20の点灯時間TP=340msを算出する。 The turn lamp 20 extinguishing time TP (the time from when the turn lamp 20 is turned off in step S13 to when it is turned on in step S32) is calculated. In this processing sequence, the MCU count value at the start of receiving the indicator turn-off signal sent from MCU 31 in step S18 = 35, the MCU count value at the start of receiving the indicator turn-on signal sent from MCU 31 in step S37 = 69, and the time length of one cycle of the synchronization clock = 10 ms are used to calculate the turn lamp 20 extinguishing time TP = (69 - 35) x 10 = 340 ms. In this embodiment, the turn lamp 20 extinguishing time TP = the turn lamp 20 on time TP, so the turn lamp 20 on time TP = 340 ms is calculated from the turn lamp 20 extinguishing time TP = 340 ms.
ステップS21でSoC32による描画処理が完了した完了タイミングから、ステップS15でMCU31によるインジケータ消灯描画信号の受信を開始した受信開始タイミングを引いた両者の時間差Taを算出する。ステップS18でMCU31から送られてきたインジケータ消灯信号受信開始時MCUカウント値=35、ステップS21で保持したインジケータ消灯描画処理完了時SoCカウント値=55、同期クロックの1周期分の時間長=10msを用いて、時間差Ta=(55-35+1)×10=210msを算出する。 In step S21, the time difference Ta is calculated by subtracting the start time when MCU 31 started receiving the indicator-off drawing signal in step S15 from the completion time when SoC 32 completed the drawing process. Using the MCU count value at the start of reception of the indicator-off signal sent from MCU 31 in step S18 = 35, the SoC count value at the completion of the indicator-off drawing process held in step S21 = 55, and the time length of one cycle of the synchronization clock = 10 ms, the time difference Ta = (55 - 35 + 1) x 10 = 210 ms is calculated.
ステップS21でSoC32による描画処理が完了した完了タイミングよりも、ステップS24の垂直同期(V-Sync)表示処理が完了した完了タイミング(ターンランプインジケータ33aがインジケータ消灯状態でディスプレイ33に表示される表示タイミング)が遅れる時間差Tbを算出する。この処理シーケンスでは、時間差Tb=22ms(定数)であるとして時間差Tb=22msを算出する。 The time difference Tb between the completion timing of the drawing process by the SoC 32 in step S21 and the completion timing of the vertical synchronization (V-Sync) display process in step S24 (the display timing when the turn lamp indicator 33a is displayed on the display 33 with the indicator turned off) is calculated. In this processing sequence, the time difference Tb is calculated as 22 ms (constant) assuming that the time difference Tb = 22 ms.
ターンランプインジケータ33aがインジケータ消灯状態で表示される表示タイミングから、ステップS15でMCU31によるインジケータ消灯描画信号の受信を開始した受信開始タイミングを引いた、両者の時間差Ta+Tbを算出する。この処理シーケンスでは、時間差Ta=210ms、時間差Tb=22msを用いて、時間差Ta+Tb=210+22=232msを算出する。 The time difference Ta + Tb is calculated by subtracting the reception start timing when the MCU 31 started receiving the indicator-off drawing signal in step S15 from the display timing when the turn lamp indicator 33a is displayed in the indicator-off state. In this processing sequence, the time difference Ta = 210 ms and the time difference Tb = 22 ms are used to calculate the time difference Ta + Tb = 210 + 22 = 232 ms.
ターンランプインジケータ33aが今回インジケータ消灯状態になってから次にインジケータ消灯状態になるまでの時間がターンランプ20の点消灯の1周期分の時間長TP×2よりも時間差Ta+Tb分短くなるように、次回のターンランプインジケータ33aをインジケータ消灯状態にするタイミングを予測し、次回インジケータ消灯状態に関わる所定の処理(当該所定の処理は受信データ通知処理、共有メモリ格納処理、描画処理を含む。)の開始タイミングを算出して当該所定の処理を開始する。この処理シーケンスでは、ターンランプインジケータ33aが今回インジケータ消灯状態になってから次にインジケータ消灯状態になるまでの時間Tabを、ターンランプ20の点消灯の1周期分の時間長TP×2=680msと、時間差Ta+Tb=232msを用いて、時間Tab=ターンランプ20の点消灯の1周期分の時間長TP×2-時間差(Ta+Tb)=680-232=448msを算出する。 The system predicts the next time the turn lamp indicator 33a will be turned off so that the time from when the indicator 33a is turned off until the next time is shorter than the time length TP x 2 for one cycle of the turn lamp 20 on/off by the time difference Ta + Tb. It then calculates the start timing of the specified processing related to the next indicator off state (including received data notification processing, shared memory storage processing, and drawing processing) and starts the specified processing. In this processing sequence, the time Tab from when the turn lamp indicator 33a is turned off until the next time is calculated as follows: Time length TP x 2 - Time difference (Ta + Tb) = 680 - 232 = 448 ms, using the time length TP x 2 = 680 ms for one cycle of the turn lamp 20 on/off and the time difference Ta + Tb = 232 ms.
この処理シーケンスでは、SoC32は、次回ターンランプインジケータ33aをインジケータ消灯状態とするための処理を受信データ通知処理(ここでは、「次回受信データ通知処理」と記載する。)から開始するため、次回受信データ通知処理の開始を、受信データ通知処理(ステップS19)の開始よりも時間Tab=448ms分遅れるようにする。この処理シーケンスでは、ステップS19で保持したインジケータ消灯関連受信データ通知処理開始時SoCカウント値=48、同期クロックの1周期分の時間長=10ms、時間Tab=448msを用いて、ステップS19の受信データ通知処理の開始後の44同期クロック目または45同期クロック目のSPI msg count(SoC)=92または93で次回受信データ通知処理を開始することを決定する。この処理シーケンスでは45同期クロック目のSPI msg count(SoC)=93に次回受信データ通知処理を開始することを決定する。 In this processing sequence, the SoC 32 starts the process for turning the next turn lamp indicator 33a off with the received data notification process (here referred to as the "next received data notification process"), so the start of the next received data notification process is delayed by a time Tab = 448 ms from the start of the received data notification process (step S19). In this processing sequence, using the SoC count value at the start of the indicator-turn-off related received data notification process (held in step S19) of 48, the time length of one synchronous clock cycle of 10 ms, and the time Tab = 448 ms, it determines to start the next received data notification process at SPI msg count (SoC) = 92 or 93 on the 44th or 45th synchronous clock after the start of the received data notification process in step S19. In this processing sequence, it determines to start the next received data notification process at SPI msg count (SoC) = 93 on the 45th synchronous clock.
なお、以降のターンランプインジケータ33aをインジケータ点灯状態とするタイミング制御のために、ステップS25の点灯タイミング予測処理と同様の点灯タイミング予測処理が行われる。例えば、ステップS32のターンランプ20の点灯の次のターンランプ20の点灯にあわせてターンランプインジケータ33aをインジケータ点灯状態にする点灯タイミング予測処理では、ステップS37においてSoC32が受け取ったインジケータ点灯描画信号受信開始時MCUカウント値=69、ステップS28で描画処理が完了したときに保持したインジケータ点灯描画処理完了時SoCカウント値=66などを用いて、点灯タイミング予測処理が行われる。また、以降のターンランプインジケータ33aをインジケータ消灯状態とするタイミング制御のために、ステップS38の消灯タイミング予測処理と同様の消灯タイミング予測処理が行われる。 Note that, for subsequent timing control of the turn lamp indicator 33a to the indicator-on state, a lighting timing prediction process similar to the lighting timing prediction process of step S25 is performed. For example, in the lighting timing prediction process for turning the turn lamp indicator 33a to the indicator-on state in time with the lighting of the turn lamp 20 following the lighting of the turn lamp 20 in step S32, the lighting timing prediction process is performed using the MCU count value (=69) at the start of reception of the indicator lighting drawing signal received by the SoC 32 in step S37, and the SoC count value (=66) at the completion of the indicator lighting drawing process held when the drawing process is completed in step S28. Note that, for subsequent timing control of the turn lamp indicator 33a to the indicator-off state, a lighting timing prediction process similar to the lighting timing prediction process of step S38 is performed.
上記した実施形態によれば、ターンランプ20の点消灯タイミングに対応するターンランプインジケータ33aの点滅タイミングを、MCU31がインジケータ点灯信号またはインジケータ消灯信号の受信を開始してからSoC32が描画処理を完了するまでの時間差TA,Taと、SoC32が描画処理を完了してからインジケータ点灯状態またはインジケータ消灯状態でディスプレイに表示される(垂直同期(V-Sync)表示処理が完了する)までの時間差TB,Tbとを用いて制御することで、ターンランプ20の点消灯タイミングとターンランプインジケータ33aの点滅タイミングとの時間差を小さく抑えることができる。この結果、ターンランプ20の点消灯タイミングとターンランプインジケータ33aの点滅タイミングとの時間ずれによるユーザの違和感を低減させることができる。 In the above-described embodiment, the blinking timing of the turn lamp indicator 33a, which corresponds to the timing of turning on and off the turn lamp 20, is controlled using the time difference TA, Ta between when the MCU 31 starts receiving the indicator on/off signal or indicator off signal and when the SoC 32 completes the drawing process, and the time difference TB, Tb between when the SoC 32 completes the drawing process and when the indicator is displayed on the display with the indicator on or off (when the vertical synchronization (V-Sync) display process is completed). This makes it possible to minimize the time difference between the timing of turning on and off the turn lamp 20 and the blinking timing of the turn lamp indicator 33a. As a result, it is possible to reduce the sense of discomfort felt by the user due to the time difference between the timing of turning on and off the turn lamp 20 and the blinking timing of the turn lamp indicator 33a.
その他、前述の構成には、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。 In addition, various design modifications may be made to the above-described configuration within the scope of the claims.
例えば、上記実施形態では、時間差TAをMCU31がインジケータ点灯信号の受信を開始したときのSPI msg count(MCU)の値と、SoC32が描画処理を完了したときのSPI msg count(SoC)の値とに基づいて算出したが、これに限定されるものではなく、例えば、時間差TAを予め定めた定数としてもよい。なお、時間差TBも予め定めた定数であることから、時間差TAと時間差TBとのそれぞれの定数を予め定めておくようにしてもよいし、時間差TAと時間差TBとを合わせた時間差TA+TBで定数を予め定めるようにしてもよい。 For example, in the above embodiment, the time difference TA was calculated based on the value of SPI msg count (MCU) when MCU31 started receiving the indicator illumination signal and the value of SPI msg count (SoC) when SoC32 completed the drawing process. However, this is not limited to this, and the time difference TA may be a predetermined constant, for example. Note that since the time difference TB is also a predetermined constant, the constants for the time difference TA and the time difference TB may be predetermined, or a constant may be predetermined that combines the time difference TA and the time difference TB, i.e., TA+TB.
また、上記実施形態では、ターンランプインジケータ33aのインジケータ状態を、ターンランプ20の点灯時には表示(点灯)とし、ターンランプ20の消灯時には非表示(消灯)としているが、これに限定されるものではなく、例えば、ターンランプ20の点灯時には明るく表示(明るく点灯)とし、ターンランプ20の点灯時には暗く表示(暗く点灯)とするなどであってもよい。 In addition, in the above embodiment, the indicator state of the turn lamp indicator 33a is displayed (lit) when the turn lamp 20 is lit, and is not displayed (off) when the turn lamp 20 is off, but this is not limited to this. For example, the indicator may be displayed brightly (lit brightly) when the turn lamp 20 is lit, and displayed dimly (lit dimly) when the turn lamp 20 is lit.
また、上記の実施形態で説明した内容や上記の変形例で説明した内容を適宜組み合わせるようにしてもよい。 In addition, the contents described in the above embodiment and the contents described in the above modified example may be combined as appropriate.
本発明は、ターンランプのターンランプ状態の変化に対応させて、ターンランプインジケータを当該ターンランプ状態に対応するインジケータ状態に変化させる車両制御装置に広く適用可能である。 The present invention is widely applicable to vehicle control devices that change the turn lamp indicator to an indicator state corresponding to a change in the turn lamp state of the turn lamp.
1:車両制御装置
10:ボデーECU
15:ターンランプスイッチ
20:ターンランプ
21:LED
30:メータ
31:MCU
32:SoC
33:ディスプレイ
33a:ターンランプインジケータ
40:CAN
1: Vehicle control device 10: Body ECU
15: Turn lamp switch 20: Turn lamp 21: LED
30: Meter 31: MCU
32: SoC
33: Display 33a: Turn lamp indicator 40: CAN
Claims (1)
ディスプレイ、および、前記ターンランプのターンランプ状態をインジケータ状態により示すターンランプインジケータを当該ディスプレイに描画する描画処理部を有する表示装置と、
ユーザの操作を受け付け、前記ターンランプの前記ターンランプ状態の制御、および、ネットワークを介して前記表示装置に前記ターンランプインジケータの前記インジケータ状態に関わるインジケータ信号を送信する制御部と
を備える車両制御装置であって、
前記ターンランプ状態には、第1のターンランプ状態と、第2のターンランプ状態とがあり、
前記インジケータ状態には、前記第1のターンランプ状態に対応する第1のインジケータ状態と、前記第2のターンランプ状態に対応する第2のインジケータ状態とがあり、
前記インジケータ信号には、前記第1のインジケータ状態の描画に関わる第1のインジケータ信号と、前記第2のインジケータ状態の描画に関わる第2のインジケータ信号とがあり、
前記描画処理部は、
前記制御部が前記ターンランプを前記第1のターンランプ状態にする今回の制御に対応して送信する前記第1のインジケータ信号を当該制御部から受信を開始する受信開始タイミングと、当該描画処理部が前記ターンランプインジケータを前記第1のインジケータ状態に描画する今回の描画処理を完了する完了タイミングとの時間差を算出し、
前記ターンランプの前記第1のターンランプ状態への次回の制御に対応する、前記ターンランプインジケータを前記第1のインジケータ状態に描画する次回の描画処理を含む次回の所定の処理を、前記時間差に基づいて当該次回の描画処理を含む当該次回の所定の処理の開始タイミングを予測して行い、
前記時間差に基づいて、前記今回の描画処理を含む今回の所定の処理で描画された前記第1のインジケータ状態に続く前記第2のインジケータ状態の期間が、前記ターンランプの1回の前記第2のターンランプ状態の期間よりも短くなるようにして、前記次回の描画処理を含む前記次回の所定の処理を行う
ことを特徴とする車両制御装置。 Turn lamps and
a display device having a display and a drawing processing unit that draws a turn lamp indicator on the display, the turn lamp indicator indicating the turn lamp state of the turn lamp by an indicator state;
a control unit that receives a user's operation, controls the turn lamp state of the turn lamp, and transmits an indicator signal related to the indicator state of the turn lamp indicator to the display device via a network,
The turn lamp state includes a first turn lamp state and a second turn lamp state,
the indicator states include a first indicator state corresponding to the first turn lamp state and a second indicator state corresponding to the second turn lamp state;
the indicator signals include a first indicator signal associated with depicting the first indicator state and a second indicator signal associated with depicting the second indicator state;
The drawing processing unit
calculating a time difference between a reception start timing at which the control unit starts receiving the first indicator signal transmitted from the control unit in response to the current control of changing the turn lamp to the first turn lamp state, and a completion timing at which the drawing processing unit completes the current drawing process of drawing the turn lamp indicator to the first indicator state;
performing a next predetermined process including a next drawing process for drawing the turn lamp indicator in the first indicator state, which corresponds to a next control of the turn lamp to the first turn lamp state, by predicting a start timing of the next predetermined process including the next drawing process based on the time difference ;
Based on the time difference, the next predetermined processing including the next drawing processing is performed so that the period of the second indicator state following the first indicator state drawn in the current predetermined processing including the current drawing processing is shorter than the period of one second turn lamp state of the turn lamp.
A vehicle control device characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2023068944A JP7733054B2 (en) | 2023-04-20 | 2023-04-20 | Vehicle control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2023068944A JP7733054B2 (en) | 2023-04-20 | 2023-04-20 | Vehicle control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2024154831A JP2024154831A (en) | 2024-10-31 |
| JP7733054B2 true JP7733054B2 (en) | 2025-09-02 |
Family
ID=93259374
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2023068944A Active JP7733054B2 (en) | 2023-04-20 | 2023-04-20 | Vehicle control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7733054B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008292949A (en) | 2007-05-28 | 2008-12-04 | Denso Corp | Display device |
-
2023
- 2023-04-20 JP JP2023068944A patent/JP7733054B2/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008292949A (en) | 2007-05-28 | 2008-12-04 | Denso Corp | Display device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2024154831A (en) | 2024-10-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI701170B (en) | Bicycle control device and bicycle control system | |
| KR101857942B1 (en) | Vehicle Display System and Method using the same | |
| CN110936908A (en) | Quick response method and device of vehicle-mounted display system based on operating system | |
| TWM530279U (en) | Control device of bicycle and bicycle control system comprising the control device | |
| JP7733054B2 (en) | Vehicle control device | |
| JP2011150135A (en) | Image display element | |
| JP2019108095A (en) | Meter display device | |
| CN110494319A (en) | Vehicle display device | |
| JP5263247B2 (en) | Liquid crystal display | |
| JP3494833B2 (en) | Hazard display device | |
| JP5061846B2 (en) | Vehicle display device | |
| JP2008292949A (en) | Display device | |
| JP7314737B2 (en) | vehicle display | |
| JP2024099587A (en) | Display control device, display control system, and display control program | |
| KR101873654B1 (en) | Bicycle safety equipment | |
| JP5985365B2 (en) | Display device | |
| JP2023027692A (en) | Vehicular electric light indicator | |
| JP2008298926A (en) | Display device | |
| KR200165216Y1 (en) | Traffic signal lamp using lcd | |
| JP2008203768A (en) | Display device | |
| JP3634129B2 (en) | display | |
| JP7793937B2 (en) | Vehicle Notification System | |
| JP2025123792A (en) | Vehicle display device and vehicle display program | |
| JP2015122917A (en) | Display device for vehicle | |
| JP2011243437A (en) | Illumination dimming device for vehicle |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240506 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250312 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250401 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250507 |
|
| 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: 20250819 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250821 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7733054 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |