JP2008050987A - Vehicular electronic control system - Google Patents

Vehicular electronic control system Download PDF

Info

Publication number
JP2008050987A
JP2008050987A JP2006227562A JP2006227562A JP2008050987A JP 2008050987 A JP2008050987 A JP 2008050987A JP 2006227562 A JP2006227562 A JP 2006227562A JP 2006227562 A JP2006227562 A JP 2006227562A JP 2008050987 A JP2008050987 A JP 2008050987A
Authority
JP
Japan
Prior art keywords
vehicle speed
vehicle
speed
output
data
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.)
Pending
Application number
JP2006227562A
Other languages
Japanese (ja)
Inventor
Yuji Tomita
祐史 富田
Masaharu Nukaga
雅治 額賀
Katsuhiro Suetsugu
克洋 末次
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.)
BLITZ KK
Original Assignee
BLITZ KK
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 BLITZ KK filed Critical BLITZ KK
Priority to JP2006227562A priority Critical patent/JP2008050987A/en
Publication of JP2008050987A publication Critical patent/JP2008050987A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a vehicular electronic control system discriminating whether a vehicle is in a speed limit region or not from a vehicle speed sensor, converting only signal necessary for release of speed limiter, and acknowledging ECU that vehicle speed is not more than the limit speed. <P>SOLUTION: The vehicular electronic control system connects an engine control unit and the vehicle speed sensor by LAN cable performing CAN communication. A speed limiter releasing device converting vehicle speed data output by the vehicle speed sensor and sending the same to the engine control unit is installed in the LAN cable connecting the vehicle speed sensor to the engine control unit. The speed limiter releasing device is provided with a function sending converted vehicle speed data lower than predetermined limit speed to the engine control unit when vehicle speed data on CAN communication output by the vehicle speed sensor is in a speed limiter removal region. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、車両用電子制御システムに関し、詳しくは、CAN通信(Controller Area Network)(ISO11898)等のLAN(Local Area Network)ケーブルを通して車両の各種制御を行う車両用電子制御システムにおいて、(a)CAN通信上の車速データ、(b)メータパネルからの車速パルス(SPD)、ATトランスミッションからの出力軸回転センサー信号(SP2+)、の両者からの信号をその都度使い分けて、例えば純正の車では180km/hでリミッターが効き、それ以上スピードがでないように制御するが、CAN通信の特定の制御数値を固定することでエンジン制御ユニットECU(Engine Control Unit)をごまかしリミッターを解除する機能を備えることで特定車両に対応させたリミッター解除を行う車両用電子制御システムに関する。   The present invention relates to an electronic control system for a vehicle, and more particularly, in an electronic control system for a vehicle that performs various controls of a vehicle through a LAN (Local Area Network) cable such as CAN communication (Controller Area Network) (ISO 11898). The vehicle speed data on CAN communication, (b) the vehicle speed pulse (SPD) from the meter panel, and the output shaft rotation sensor signal (SP2 +) from the AT transmission are used separately each time, for example, 180 km for a genuine car The limiter is effective at / h, and the speed is controlled so that it does not exceed that, but it has a function to defeat the engine control unit ECU (Engine Control Unit) by fixing a specific control value of CAN communication. An electronic control system for a vehicle that performs limiter release which was corresponding to a specific vehicle Rukoto.

従来技術における車両用電子制御システム10は、図17に示すように、複数の電子制御装置11A〜11Gとデータ出力装置12をLANケーブル13により接続する。
電子制御装置11Aは、例えばECU、電子制御装置11Bはメータユニット、電子制御装置11Cは車体制御ユニット、電子制御装置11Dは舵角センサユニットであり、それらの電子制御装置11A〜11Dは例えば図19に示す各種信号を送受信する。黒丸印は送信、白丸印は受信を示す。
データ出力装置12は、例えば車速センサであり、この車速センサはメータユニットを構成する電子制御装置11B等が保有している車速センサを用いるもの等でも良く、電子制御装置11〜11Gが保有しているセンサ類を利用するものでも良い。
As shown in FIG. 17, the vehicle electronic control system 10 in the prior art connects a plurality of electronic control devices 11 </ b> A to 11 </ b> G and a data output device 12 through a LAN cable 13.
The electronic control device 11A is an ECU, the electronic control device 11B is a meter unit, the electronic control device 11C is a vehicle body control unit, the electronic control device 11D is a rudder angle sensor unit, and the electronic control devices 11A to 11D are, for example, FIG. Transmit and receive various signals shown in. A black circle indicates transmission, and a white circle indicates reception.
The data output device 12 is, for example, a vehicle speed sensor. The vehicle speed sensor may be one using a vehicle speed sensor possessed by the electronic control device 11B constituting the meter unit or the like, and is possessed by the electronic control devices 11 to 11G. It is also possible to use existing sensors.

LANケーブル13は、CAN_H線と、CAN_L線の2本の通信線により1組をなし、各種車両情報データを通信する。   The LAN cable 13 forms one set by two communication lines, a CAN_H line and a CAN_L line, and communicates various vehicle information data.

車両用電子制御システム10において、電子制御装置11A〜11G、データ出力装置12の相互間でLANケーブル13(CAN H線13A、CAN L線13B)を介して送受信される車両情報データは、電子制御装置11A〜11G、データ出力装置12のそれぞれに内蔵のデータ化装置(CANコントローラ及びCANドライバ)により、通信プロトコルに基づいてデータ化されたものであり、図20に示すように、情報毎に個別のID(識別子)によって識別される。例えば、車速情報は、図20の中で4d2というIDにより識別され、このIDにより識別されるデータのD6、06という数値のデータが車速を表す。尚、データは、16進法により速度表示等0〜Fの記号により変換されている。
図20の中のデータバイト数がデータの個数であり、その個数のデータがLANシステム上で絶えず送受信されている。
In the vehicle electronic control system 10, vehicle information data transmitted and received between the electronic control devices 11A to 11G and the data output device 12 via the LAN cable 13 (CAN H line 13A, CAN L line 13B) is electronically controlled. Each of the devices 11A to 11G and the data output device 12 is converted into data based on a communication protocol by a built-in data conversion device (CAN controller and CAN driver). As shown in FIG. Are identified by an ID (identifier). For example, the vehicle speed information is identified by the ID 4d2 in FIG. 20, and the numerical data D6 and 06 of the data identified by this ID represents the vehicle speed. The data is converted by a symbol of 0 to F such as a speed display by a hexadecimal system.
The number of data bytes in FIG. 20 is the number of data, and that number of data is continuously transmitted and received on the LAN system.

車両用電子制御システム10は、データ出力装置12がLANケーブルを介して接続されている電子制御装置11A〜11Gのうち、データ出力装置(車速センサ)12の出力データを変換して伝えるものであり、電子制御装置(エンジン制御ユニットECU)11Aに接続されているLANケーブル13において電子制御装置(エンジン制御ユニットECU)11Aだけに接続されている通信線部分、電子制御装置(エンジン制御ユニットECU)11Aに対する直前部分に、データ出力装置(車速センサ)12が出力しているデータを変換して当該電子制御装置(エンジン制御ユニットECU)11Aに送信するデータ変換装置14を介装する。データ変換装置14は、データ出力装置(車速センサ)12の出力データの変化に応じて予め設定されている任意の変換データを送信可能にする。   The vehicle electronic control system 10 converts and transmits output data of the data output device (vehicle speed sensor) 12 among the electronic control devices 11A to 11G to which the data output device 12 is connected via a LAN cable. In the LAN cable 13 connected to the electronic control unit (engine control unit ECU) 11A, the communication line portion connected only to the electronic control unit (engine control unit ECU) 11A, the electronic control unit (engine control unit ECU) 11A A data conversion device 14 that converts data output from the data output device (vehicle speed sensor) 12 and transmits the data to the electronic control device (engine control unit ECU) 11A is provided immediately before the above. The data conversion device 14 enables transmission of arbitrary conversion data set in advance according to a change in output data of the data output device (vehicle speed sensor) 12.

データ変換装置14は、図18に示すように、記憶部14A、送受信部(CANコントローラ)14B、演算部14Cを有する。記憶部14Aは、任意の変換データを記憶する。送受信部14Bは、LANケーブル13に接続され、演算部14Cの指示に基づき車両情報データの送受信を行う。演算部14Cは記憶部14A、送受信部14Bの各種制御を行う。記憶部14Aに設定する車両情報データを監視し、必要とする車両情報データが入ったときに、このデータに代わる変換データを電子制御装置(エンジン制御ユニットECU)11Aに送受信させる。   As shown in FIG. 18, the data conversion device 14 includes a storage unit 14A, a transmission / reception unit (CAN controller) 14B, and a calculation unit 14C. The storage unit 14A stores arbitrary conversion data. The transmission / reception unit 14B is connected to the LAN cable 13 and transmits / receives vehicle information data based on instructions from the calculation unit 14C. The calculation unit 14C performs various controls of the storage unit 14A and the transmission / reception unit 14B. The vehicle information data set in the storage unit 14A is monitored, and when necessary vehicle information data is entered, conversion data in place of this data is transmitted / received to / from the electronic control unit (engine control unit ECU) 11A.

このように、データ出力装置(車速センサ)12は、この出力される速度データ(出力速度)はLANケーブル13を介して電子制御装置(メータユニット)11Bにそのまま送信されて電子制御装置11Bの車速メータに実際の車速を表示する。同時に、データ出力装置12の出力速度は、LANケーブル13を介してデータ変換装置14に送信される。データ変換装置14は、データ出力装置(車速センサ)12からの当該出力速度が予め設定されている制限速度(例えば180km/時)より低いときにはLANケーブル13を介してこれをそのまま電子制御装置(エンジン制御ユニットECU)11Aに送信し、当該出力速度が当該制限速度に達する直前では、予め設定されている変換データとしての当該制限速度より低い変換速度(例えば175km/時)をLANケーブル13により電子制御装置(エンジン制御ユニットECU)11Aに送信する。   In this way, the data output device (vehicle speed sensor) 12 transmits the output speed data (output speed) to the electronic control device (meter unit) 11B as it is via the LAN cable 13 and the vehicle speed of the electronic control device 11B. The actual vehicle speed is displayed on the meter. At the same time, the output speed of the data output device 12 is transmitted to the data conversion device 14 via the LAN cable 13. When the output speed from the data output device (vehicle speed sensor) 12 is lower than a preset speed limit (for example, 180 km / hour), the data conversion device 14 directly uses the electronic control device (engine) via the LAN cable 13. Control unit ECU) 11A, and immediately before the output speed reaches the speed limit, the LAN cable 13 electronically controls a conversion speed (for example, 175 km / hour) lower than the speed limit as preset conversion data. It transmits to apparatus (engine control unit ECU) 11A.

電子制御装置(エンジン制御ユニットECU)11Aでは、実際の車速が制限速度に達しているにもかかわらず、データ変換装置14から送信される車速(変換速度)が制限速度よりも低いためにスピードリミッタが不動作になり、車両はエンジン出力に応じた速度にて走行するものになる。   In the electronic control unit (engine control unit ECU) 11A, the vehicle speed (conversion speed) transmitted from the data converter 14 is lower than the speed limit even though the actual vehicle speed has reached the speed limit. Becomes inoperative and the vehicle travels at a speed corresponding to the engine output.

このように、データ変換装置14が、任意の車両情報データを電子制御装置11Aへ送信するものになり、車両の各種の電子制御を使用者の好みに応じた特性に変更できる。
又、データ出力装置(車速センサ)12が出力する実際の車速より低い車速データを電子制御装置(エンジン制御ユニットECU)11Aへ送信するものになり、車両に装備しているスピードリミッタを働かせず、車両をエンジン出力に応じた車速にて走行させることができる。
In this way, the data conversion device 14 transmits arbitrary vehicle information data to the electronic control device 11A, and various electronic controls of the vehicle can be changed to characteristics according to the user's preference.
In addition, vehicle speed data lower than the actual vehicle speed output from the data output device (vehicle speed sensor) 12 is transmitted to the electronic control device (engine control unit ECU) 11A, and the speed limiter equipped in the vehicle is not operated. The vehicle can be driven at a vehicle speed corresponding to the engine output.

特開2004−207782号公報(第3頁乃至第5頁、第1図)JP 2004-207782 A (3rd to 5th pages, FIG. 1)

しかしながら、上記背景技術の項で説明した従来技術の車両用電子制御システムにおいて、使用されるCAN通信は、ISOで規格化されており、自動車内の車内LANとして搭載されることが多い。そして、この車内LANで構築されたシステムにおいて、流れる情報ごとにIDが割り振られ、IDとデータはセットになっている。
自動車で使われる情報(車速、エンジン回転数、水温等)をIDの何番に割り振るか、データの何バイト目に割り振るかなどは統一されていない。このため、同じCAN通信搭載車でもN社のZはID:0x2D1、2、3バイト目が車速データを表すが、S社のLは、ID:0x512、3,4バイト目が車速データを表すというようにメーカ、車種ごとに車速データのID、データの位置は違う。
これに対応するため、上記示した従来技術のCAN通信搭載用電子制御システムは、N社Z用、S社L用とメーカ、車種ごとにスピードリミッタ解除装置を用意する必要があり、使用者側からみると装置の汎用性に欠け、使い勝手が悪いという問題があった。
更に、CAN通信以外のデータ、例えば、ATトランスミッションからの出力軸回転センサー信号やメータ&パネルからの車速パルス信号等を利用してスピードリミッタ解除機能を働かせるといった工夫がなされていないという問題もある。
従って、CAN通信機能を備えた車種においては自動的に車種を判別して、判別した車種によって速度データを変換してECUに送信する機能を備え、CAN通信機能を使わずにATトランスミッションやメーター&パネル等からの車速データを使用してスピードリミッタ解除機能を働かせるような車両用電子制御システムに解決しなければならない課題を有する。
However, in the vehicle electronic control system of the prior art described in the background section above, the CAN communication used is standardized by ISO and is often mounted as an in-vehicle LAN in an automobile. In the system constructed with this in-vehicle LAN, an ID is assigned to each piece of flowing information, and the ID and data are a set.
The number of IDs assigned to information used in automobiles (vehicle speed, engine speed, water temperature, etc.) and the number of bytes in the data are not unified. For this reason, even in the same CAN communication vehicle, Z of N company represents vehicle speed data with ID: 0x2D1, 2, 3 bytes, while L of S company represents vehicle speed data with ID: 0x512, 3rd, 4th bytes. As such, the vehicle speed data ID and data position differ for each manufacturer and vehicle type.
In order to cope with this, the above-described conventional electronic control system for mounting CAN communication requires the preparation of a speed limiter canceling device for each of N company Z, S company L, manufacturer, and vehicle type. From the viewpoint of the device, there is a problem that the device is not versatile and is not easy to use.
In addition, there is a problem that the speed limiter canceling function is not used by using data other than CAN communication, for example, an output shaft rotation sensor signal from an AT transmission, a vehicle speed pulse signal from a meter & panel, or the like.
Therefore, the vehicle type equipped with the CAN communication function has a function of automatically discriminating the vehicle type, converting the speed data according to the discriminated vehicle type and transmitting it to the ECU, and without using the CAN communication function, the AT transmission, the meter & There is a problem to be solved in an electronic control system for a vehicle that uses a vehicle speed data from a panel or the like to activate a speed limiter cancel function.

上記課題を解決するために、本発明に係る車両用電子制御システムは、次に示す構成にすることである。   In order to solve the above problems, an electronic control system for a vehicle according to the present invention is configured as follows.

(1)車両用電子制御システムは、エンジン制御ユニットと車速センサをCAN通信が行われるLANケーブルにより接続する車両用電子制御システムであって、前記車速センサを前記エンジン制御ユニットに接続しているLANケーブルに、前記車速センサが出力している車速データを変換して当該エンジン制御ユニットに送信するスピードリミッタ解除装置を介装し、
前記スピードリミッタ解除装置は、
前記車速センサが出力しているCAN通信上の車速データがスピードリミッタ解除領域である時に、予め設定されている制限速度より低い変換車速データを前記エンジン制御ユニットに送信する機能と、メータ&パネルからの車速パルスから求めた車速がスピードリミッタ解除領域である時に、前記車速パルスを前回出力した車速パルスのまま前記エンジン制御ユニットに出力する機能と、
ATトランスミッションからの出力軸回転センサからのSP2+信号を前記エンジン制御ユニットに出力するときに、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時に、前記SP2+信号は前回の固定された信号を前記エンジン制御ユニットに出力する機能と、
ATトランスミッションからの入力軸回転センサからのNT+信号を前記エンジン制御ユニットに出力するときに、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時に、前記NT+信号は前回の固定された信号を前記エンジン制御ユニットに出力する機能と、
前記エンジン制御ユニットからのソレノイド制御信号をソレノイドに出力するときに、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時に、ソレノイド制御信号は前回の固定された信号を前記ソレノイドに出力する機能と、
を備えたことである。
(2)前記スピードリミッタ解除装置は、更に、CAN通信上の車速データを使用して、CAN対応車種とCAN以外の車種を判別する車種判別手段を備えたことを特徴とする(1)に記載の車両用電子制御システム。
(3)前記スピードリミッタ解除装置は、更に、CAN通信上の車速データを利用して、馬力と瞬間燃費を算出する手段と、該算出されたデータ及び少なくとも車速を適宜表示する表示手段とを備えたことを特徴とする(1)に記載の車両用電子制御システム。
(1) The vehicle electronic control system is a vehicle electronic control system in which the engine control unit and the vehicle speed sensor are connected by a LAN cable for performing CAN communication, and the vehicle speed sensor is connected to the engine control unit. A cable is provided with a speed limiter release device that converts vehicle speed data output by the vehicle speed sensor and transmits the converted data to the engine control unit,
The speed limiter canceling device is:
A function of transmitting converted vehicle speed data lower than a preset speed limit to the engine control unit when the vehicle speed data on CAN communication output from the vehicle speed sensor is in a speed limiter release region; When the vehicle speed obtained from the vehicle speed pulse is a speed limiter release region, the function of outputting the vehicle speed pulse to the engine control unit as it was previously output,
When the SP2 + signal from the output shaft rotation sensor from the AT transmission is output to the engine control unit, the SP2 + signal is fixed when the flag indicating that the vehicle speed is in the speed limiter release region is ON. A function of outputting the processed signal to the engine control unit;
When the NT + signal from the input shaft rotation sensor from the AT transmission is output to the engine control unit, when the flag indicating that the vehicle speed is in the speed limiter release region is ON, the NT + signal is fixed last time. A function of outputting the processed signal to the engine control unit;
When the solenoid control signal from the engine control unit is output to the solenoid, and the flag indicating that the vehicle speed is in the speed limiter release region is ON, the solenoid control signal is the previous fixed signal. A function to output to
It is to have.
(2) The speed limiter canceling device further includes vehicle type discriminating means for discriminating a CAN-compatible vehicle type and a vehicle type other than CAN by using vehicle speed data on CAN communication. Vehicle electronic control system.
(3) The speed limiter canceling device further includes means for calculating horsepower and instantaneous fuel consumption using vehicle speed data on CAN communication, and display means for appropriately displaying the calculated data and at least the vehicle speed. The vehicular electronic control system described in (1) above.

本発明の車両用電子制御システムは、一つの筐体にCAN通信上の車速データを処理する機能と、メータパネルからの車速パルス(SPD)、ATトランスミッションからの出力軸回転センサー信号(SP2+)を処理する機能と、入力軸回転軸センサー信号(NT+)とソレノイド制御信号を処理する機能とを兼ね備えた構成にして、それぞれからの信号をその都度使い分けて、例えば純正の車では180km/hでリミッターが効き、それ以上スピードがでないように制御するが、CAN通信の特定の制御数値を固定することでエンジン制御ユニットECU(Engine Control Unit)をごまかしリミッターを解除する機能を備えることで特定車両に対応させたリミッター解除を行うことができる。   The vehicle electronic control system of the present invention has a function of processing vehicle speed data on CAN communication in one housing, a vehicle speed pulse (SPD) from a meter panel, and an output shaft rotation sensor signal (SP2 +) from an AT transmission. It is configured to have a function to process and a function to process the input shaft rotation axis sensor signal (NT +) and solenoid control signal, and each signal is used properly each time. For example, in a genuine car, the limiter is 180 km / h Is effective and the speed is controlled so that it does not exceed that, but it is compatible with specific vehicles by providing a function to defeat the engine control unit ECU (Engine Control Unit) by fixing specific control values for CAN communication. It is possible to cancel the limiter.

本願発明の車両用電子制御システムは、車種によって異なるデータ通信態様に適合させるように一つの筐体で作成してスピードリミッタ解除を達成させるようにした点に特徴がある。
スピードリミッタは、ECUに入るデータが制限速度(例えば、180km)以上になるとフューエルカットやスロットルが閉じられ速度が上がらないようにする仕組みである。自動車のECUに搭載されているスピードリミッタを解除するには、主に以下に示す車速に関する信号を変換して制限速度以上の車速をECUが認識しないようにすればよい。
a.CAN通信機能;CAN通信上の車速データ
b.車体通信機能;メータパネルからの車速パルス信号(SPD)、ATトランスミッションからの出力軸回転センサー信号(SP2+)、ATトランスミッション不具合防止用に使用される入力軸回転センサー信号(NT+)、ソレノイド制御信号も変換する。
The electronic control system for a vehicle according to the present invention is characterized in that the speed limiter is canceled by creating a single housing so as to be adapted to different data communication modes depending on the vehicle type.
The speed limiter is a mechanism that prevents the speed from being increased by closing the fuel cut or the throttle when the data entering the ECU exceeds a speed limit (for example, 180 km). In order to cancel the speed limiter installed in the ECU of the automobile, it is only necessary to convert the following signals relating to the vehicle speed so that the ECU does not recognize a vehicle speed exceeding the speed limit.
a. CAN communication function; vehicle speed data on CAN communication b. Vehicle body communication function; vehicle speed pulse signal (SPD) from meter panel, output shaft rotation sensor signal (SP2 +) from AT transmission, input shaft rotation sensor signal (NT +) used for preventing AT transmission malfunction, solenoid control signal Convert.

a、bどちらの信号を変換すれば良いかは車種に依存する。従来は車種ごとに必要な信号を変換する機能を搭載したスピードリミッタ解除装置を用意していた。本装置は全ての信号を変換する機能を搭載する。接続信号から自動的に車種を判別し、スピードリミッタ解除に必要な信号のみを変換する。これにより、一つの装置で異なるスピードリミッタ装置に使用することができるようになる。また、本装置は表示器を搭載し車速や車速から計算される馬力、瞬間燃費を表示することができる。表示器にはスイッチが設けられており各種設定を行うことができる。   Which signal a or b should be converted depends on the vehicle type. Conventionally, a speed limiter canceling device equipped with a function for converting a necessary signal for each vehicle type has been prepared. This device is equipped with a function to convert all signals. The vehicle type is automatically identified from the connection signal, and only the signal necessary for canceling the speed limiter is converted. As a result, a single device can be used for different speed limiter devices. In addition, this device is equipped with a display and can display vehicle speed, horsepower calculated from the vehicle speed, and instantaneous fuel consumption. The display is provided with a switch, and various settings can be made.

図1は本願発明の車両用電子制御システムの構成を示したものであり、自動車に搭載されているECU20に対してLANケーブル21を介在させてスピードリミッタ解除装置22が接続され、このスピードリミッタ解除装置22には表示器23が接続された構成になっている。   FIG. 1 shows the configuration of an electronic control system for a vehicle according to the present invention. A speed limiter canceling device 22 is connected to an ECU 20 mounted on an automobile with a LAN cable 21 interposed therebetween. A display 23 is connected to the device 22.

図2は、スピードリミッタ解除装置22におけるスピードリミッタ解除に関する各種信号を示したもので、ATトランスミッション24からの入力軸回転センサー信号(NT+)、出力軸回転センサー(SP+)を入力、ECU20からのソレノイド制御信号を入力、CANライン26からの車速CANデータを入力、メータ&パネルASSY27からの車速パルス信号を入力し、ECU側に対して入力軸回転センサー信号(NT+)、出力軸回転センサー信号(SP+)、ソレノイド25に対してソレノイド制御信号を出力し、更に、変換後の車速CANデータ、変換後の車速パルス信号を出力する。   FIG. 2 shows various signals related to the speed limiter cancellation in the speed limiter canceling device 22. The input shaft rotation sensor signal (NT +) and output shaft rotation sensor (SP +) from the AT transmission 24 are input, and the solenoid from the ECU 20 is input. Input control signal, input vehicle speed CAN data from CAN line 26, input vehicle speed pulse signal from meter & panel assembly 27, input shaft rotation sensor signal (NT +), output shaft rotation sensor signal (SP +) to ECU side ), A solenoid control signal is output to the solenoid 25, and further, the converted vehicle speed CAN data and the converted vehicle speed pulse signal are output.

メーター&パネルASSY27は、CANライン26へ車速CANデータを出力し、ABSコントロールユニット28から車速パルス信号を入力する。   The meter & panel ASSY 27 outputs vehicle speed CAN data to the CAN line 26 and inputs a vehicle speed pulse signal from the ABS control unit 28.

ABSコントロールユニット28は、4つの車速センサー29a、29b、29c、29dからの信号を入力し、CANライン26へ4輪車速CANデータを出力する。   The ABS control unit 28 inputs signals from the four vehicle speed sensors 29a, 29b, 29c, and 29d, and outputs four-wheel vehicle speed CAN data to the CAN line 26.

図3は、図2に示したスピードリミッタ解除装置22の構造をブロック図で示したものであり、マイコンで処理することができる様々な機能で構成され、それはCAN通信中継機能(スピードリミッタ解除機能が含まれる)からなるCAN通信機能部31と、SP2+・NT+・SPDパルス中継機能(スピードリミッタ解除機能が含まれる)、ソレノイド制御信号中継機能(スピードリミッタ解除機能が含まれる)からなる車体通信機能部32と、車種を判別するための車種判別機能部33と、車速、馬力、瞬間燃費を計算する車速・馬力・瞬間燃費計算・記録機能部34と、EEPROM35からプログラム等を読み出すためのEEPROM制御機能部36と、表示器23と通信して様々なデータを送受信制御する表示器通信機能部37と、各種のモードに関する処理形態を処理するメイン処理各種モード機能部38と、から大略構成されている。   FIG. 3 is a block diagram showing the structure of the speed limiter canceling device 22 shown in FIG. 2, and it is composed of various functions that can be processed by a microcomputer. The CAN communication relay function (speed limiter canceling function) Vehicle communication function comprising a CAN communication function unit 31 including SP2 + · NT + · SPD pulse relay function (including a speed limiter canceling function) and solenoid control signal relay function (including a speed limiter canceling function). Unit 32, vehicle type discriminating function unit 33 for discriminating the vehicle type, vehicle speed / horsepower / instantaneous fuel consumption calculating / recording function unit 34 for calculating vehicle speed, horsepower and instantaneous fuel consumption, and EEPROM control for reading out programs and the like from EEPROM 35 A display unit communication function unit 37 that communicates with the function unit 36 and the display unit 23 to control transmission and reception of various data. A main processing various modes function unit 38 for processing a processing mode relating to various modes, and is largely constituted by.

これらの機能のうち、CAN通信機能部31がCAN通信上の車速データを処理するものであり、車体通信機能部32がメータ&パネルASSY27からの車速パルス信号(SPD)、ATトランスミッション24からの出力軸回転センサー信号(SP2+)、入力軸回転センサー信号(NT+)、ソレノイド制御信号を処理するものである。
これらの両者の機能部には、スピードリミッタ解除機能を備えており、それは、例えば純正の車では180km/hでリミッターが効き、それ以上スピードがでないように制御するが、特定の制御数値を固定することでエンジン制御ユニットECU(Engine Control Unit)をごまかしリミッターを解除し、例えば180km/h以上の速度であってもリミッタをきかないようにすることができる。
Among these functions, the CAN communication function unit 31 processes vehicle speed data on CAN communication. The vehicle body communication function unit 32 outputs a vehicle speed pulse signal (SPD) from the meter & panel ASSY 27 and an output from the AT transmission 24. The shaft rotation sensor signal (SP2 +), the input shaft rotation sensor signal (NT +), and the solenoid control signal are processed.
Both of these functions have a speed limiter release function, which controls the limiter to work at 180 km / h for a genuine car, for example, and no more speed, but fixes specific control values. By doing so, the engine control unit ECU (Engine Control Unit) is deceived and the limiter is released, so that the limiter cannot be stopped even at a speed of, for example, 180 km / h or higher.

このCAN通信機能部31は、ch2側にCANI/F39、ch1側にCANI/F41を備え、マイコンにスピードリミッタ解除機能を備えたCAN通信中継機能42を備えている。
ch2側のCANI/F39はCANライン26に接続され、CAM通信中継機能42のch1のCANI/F41はECU20に接続されている。
The CAN communication function unit 31 includes a CAN / F 39 on the ch2 side, a CANI / F 41 on the ch1 side, and a CAN communication relay function 42 that includes a speed limiter cancel function in the microcomputer.
The ch2 side CANI / F 39 is connected to the CAN line 26, and the ch1 CANI / F 41 of the CAM communication relay function 42 is connected to the ECU 20.

車体通信機能部32は、ATトランスミッション24からの出力軸回転センサー信号(SP2+パルス)を受信するSP2+パルス入力回路43、入力軸回転センサー信号(NT+パルス)を受信するNT+パルス入力回路44、メーター&パネルASSY27からの車速パルス信号(SPDパルス)を受信するSPDパルス入力回路45を備え、それぞれの入力回路からの信号を受信するスピードリミッタ解除機能を備えたSP2+・NT+・SPDパルス中継機能46と、ECU20からの信号を受信するソレノイド制御信号入力回路53からの信号を受信するスピードリミッタ解除機能を備えたソレノイド制御信号中継機能48とからなる。   The vehicle body communication function unit 32 includes an SP2 + pulse input circuit 43 that receives an output shaft rotation sensor signal (SP2 + pulse) from the AT transmission 24, an NT + pulse input circuit 44 that receives an input shaft rotation sensor signal (NT + pulse), a meter & SP2 + / NT + / SPD pulse relay function 46 having an SPD pulse input circuit 45 for receiving a vehicle speed pulse signal (SPD pulse) from panel ASSY 27 and having a speed limiter canceling function for receiving a signal from each input circuit; It comprises a solenoid control signal relay function 48 having a speed limiter release function for receiving a signal from the solenoid control signal input circuit 53 for receiving a signal from the ECU 20.

SP2+・NT+・SPDパルス中継機能46は、その入力側はそれぞれSP2+パルス入力回路43、NT+パルス入力回路44、SPDパルス入力回路45に接続され、SP2+パルス入力回路43はATトランスミッション24の出力軸回転センサー信号を入力、NT+パルス入力回路44はATトランスミッション24の入力軸回転センサー信号を入力、SPDパルス入力回路45はメータ&パネルASSY27から車速パルス信号を入力する。
これらの出力側はSP2+パルス出力回路49、NT+パルス出力回路51、SPDパルス出力回路52に接続され、SP2+パルス出力回路49はECU20のポート0に出力軸回転センサー信号を出力、NT+パルス出力回路51はECU20のポート1に入力軸回転センサー信号を出力、SPDパルス出力回路52はECU20のポート2に車速パルス信号を出力する。
The SP2 + / NT + / SPD pulse relay function 46 is connected to the SP2 + pulse input circuit 43, the NT + pulse input circuit 44, and the SPD pulse input circuit 45 on the input side. The SP2 + pulse input circuit 43 rotates the output shaft of the AT transmission 24. The sensor signal is input, the NT + pulse input circuit 44 inputs the input shaft rotation sensor signal of the AT transmission 24, and the SPD pulse input circuit 45 inputs the vehicle speed pulse signal from the meter & panel ASSY 27.
These outputs are connected to an SP2 + pulse output circuit 49, an NT + pulse output circuit 51, and an SPD pulse output circuit 52. The SP2 + pulse output circuit 49 outputs an output shaft rotation sensor signal to port 0 of the ECU 20, and an NT + pulse output circuit 51 Outputs an input shaft rotation sensor signal to port 1 of the ECU 20, and the SPD pulse output circuit 52 outputs a vehicle speed pulse signal to port 2 of the ECU 20.

車体通信機能部32のソレノイド制御信号中継機能48は、その入力側はソレノイド制御信号入力回路53に接続され、ソレノイド制御信号を入力する。
この出力側はソレノイド制御出力回路47に接続され、ソレノイド制御出力回路47はソレノイド25にソレノイド制御信号を出力する。
The solenoid control signal relay function 48 of the vehicle body communication function unit 32 is connected to the solenoid control signal input circuit 53 on the input side and inputs a solenoid control signal.
This output side is connected to a solenoid control output circuit 47, and the solenoid control output circuit 47 outputs a solenoid control signal to the solenoid 25.

車種判別機能部33は、車種を自動的に決定する機能を備えており、CAN通信機能部31と連携して機能する。   The vehicle type discrimination function unit 33 has a function of automatically determining the vehicle type, and functions in cooperation with the CAN communication function unit 31.

車速・馬力・瞬間燃費計算・記録機能部34は、CAN通信機能部31に接続してCANデータの中から車速データ等を抽出して、車速や馬力、瞬間燃費を計算して記録するというものである。   The vehicle speed / horsepower / instantaneous fuel consumption calculation / recording function unit 34 is connected to the CAN communication function unit 31 to extract vehicle speed data from the CAN data and calculate and record the vehicle speed, horsepower, and instantaneous fuel consumption. It is.

EEPROM制御機能部36は、EEPROM35から所望のデータを読み書きすることで、メイン処理各種モード機能部38と車速・馬力・瞬間燃費計算・記録機能部34の信号処理を行う。   The EEPROM control function unit 36 reads and writes desired data from the EEPROM 35 to perform signal processing of the main processing various mode function unit 38 and the vehicle speed / horsepower / instantaneous fuel consumption calculation / recording function unit 34.

表示器通信機能部37は、表示器との通信回路54に接続され、表示器23への様々な表示を制御する機能と表示器23からのスイッチ状態の取得を行う機能を備えている。   The display device communication function unit 37 is connected to a communication circuit 54 with the display device, and has a function of controlling various displays on the display device 23 and a function of acquiring a switch state from the display device 23.

メイン処理各種モード機能部38は、マイコンにおける様々な機能を処理するもので、プログラムに従って各種のモードの処理を行う。この具体的なものに関しては、フローチャートに従った様々な処理について、以下説明する。   The main process various mode function unit 38 processes various functions in the microcomputer, and performs various modes according to a program. With regard to this specific process, various processes according to the flowchart will be described below.

先ず、マイコンに電源がオンされたときのメイン処理各種モード機能部38の動作について、図4及び図5に示すフローチャートを参照にして説明する。
電源がオンされると、初期設定関数(void initialize(void))を実行しマイコンの初期設定を行う(ステップST11)。
First, the operation of the main processing various mode function unit 38 when the power is turned on to the microcomputer will be described with reference to the flowcharts shown in FIGS.
When the power is turned on, an initialization function (void initialize (void)) is executed to initialize the microcomputer (step ST11).

CAN通信機能部31、車体通信機能部32が動作を開始すると共に、両者におけるスピードリミッタ解除機能は動作しない(en_limit_cut=OFF)(ステップST12)。CAN通信機能部31を構成するCAN通信中継機能42が動作を開始し、車体通信機能部32を構成するSP2+・NT+・SPDパルス中継機能46、ソレノイド制御信号中継機能48が動作を開始する。   The CAN communication function unit 31 and the vehicle body communication function unit 32 start operating, and the speed limiter cancel function in both does not operate (en_limit_cut = OFF) (step ST12). The CAN communication relay function 42 configuring the CAN communication function unit 31 starts operating, and the SP2 + / NT + / SPD pulse relay function 46 and the solenoid control signal relay function 48 configuring the vehicle body communication function unit 32 start operating.

このCAN通信中継機能42、SP2+・NT+・SPDパルス中継機能は割り込みによってCANデータ受信時或はパルス受信時に実行されるものであり、ソレノイド制御信号中継機能48は、一定周期(24ms)ごとに割り込みにより実行される。この点については後述する。   This CAN communication relay function 42 and SP2 + / NT + / SPD pulse relay function are executed when CAN data is received or a pulse is received by an interrupt, and the solenoid control signal relay function 48 is interrupted at regular intervals (24 ms). It is executed by. This point will be described later.

次に、メイン処理各種モード機能部38はEEPROM制御機能部36を動作させてEEPROM35からデータをロードする(void read_eeprom_data(void))(ステップST13)。
そして、表示器通信機能部37を動作させて表示器23との通信を開始し、電源ON時にSELECTスイッチが押されていたかを確認し、押されていた場合「単位変更モード」に移動する(ステップST14、ST15、ST16)。この表示器23との通信は一定周期(24ms)ごとに割り込みにより実行される。
Next, the main processing various mode function unit 38 operates the EEPROM control function unit 36 to load data from the EEPROM 35 (void read_eeprom_data (void)) (step ST13).
Then, the display unit communication function unit 37 is operated to start communication with the display unit 23, and it is confirmed whether the SELECT switch is pressed when the power is turned on. If the SELECT switch is pressed, the unit moves to the “unit change mode” ( Steps ST14, ST15, ST16). Communication with the display device 23 is executed by interruption every fixed period (24 ms).

次に、表示器23に初期画面を表示するように制御すると共に、車種判別機能部33に対して車種判定の動作をさせる。
車種判別機能部33による接続している車種を判定するには、接続車種を判定する関数(char findout_kind_car(void))を実行することにより行われる。
この関数を実行することにより、戻り値(kind_car)が第1特定車種(例えば、“TOYOTA”)の場合、CAN通信機能部31のCAN通信中継機能42を停止する(ステップST19、ST23)。
戻り値(kind_car)がCAN通信車種である第2特定車種(例えば、“Z33”)或は第3特定車種(例えば、“BP5”)の場合は、車体通信機能部32のSP2+・NT+・SPDパルス中継機能46の停止、ソレノイド制御信号中継機能48を停止する(ステップST19、ST20、ST21)。
ここで、いずれの車種にも該当しない場合、即ち、CAN通信車種でもなく、車速パルス(SPD)等の信号を利用した車種でもない、所謂、未対応車種(UNCORRESPOND)の場合、中継機能は継続したまま表示器23にエラー表示をする(ステップST22)。
Next, the display 23 is controlled to display an initial screen, and the vehicle type determination function unit 33 is caused to perform a vehicle type determination operation.
The vehicle type determination function unit 33 determines the connected vehicle type by executing a function (char findout_kind_car (void)) for determining the connected vehicle type.
By executing this function, if the return value (kind_car) is the first specific vehicle type (for example, “TOYOTA”), the CAN communication relay function 42 of the CAN communication function unit 31 is stopped (steps ST19 and ST23).
When the return value (kind_car) is the second specific vehicle type (for example, “Z33”) or the third specific vehicle type (for example, “BP5”), which is the CAN communication vehicle type, SP2 + · NT + · SPD of the vehicle body communication function unit 32 The pulse relay function 46 is stopped and the solenoid control signal relay function 48 is stopped (steps ST19, ST20, ST21).
Here, when the vehicle does not correspond to any vehicle type, that is, the vehicle is not a CAN communication vehicle model or a vehicle model using a signal such as a vehicle speed pulse (SPD), so-called unsupported vehicle model (UNCORRESPOND), the relay function is continued. An error is displayed on the display unit 23 as it is (step ST22).

次に、車種が決定した後において、それ以外の車速・馬力・燃費計算・記録機能部34を制御して、車速、馬力、燃費計算、記録機能の動作を開始する(ステップST24)。これらは、一定周期(24ms)ごとに割り込みにより実行され、それぞれについては後述する。   Next, after the vehicle type is determined, the other vehicle speed / horsepower / fuel consumption calculation / recording function unit 34 is controlled to start operation of the vehicle speed, horsepower / fuel consumption calculation / recording function (step ST24). These are executed by interruption every fixed period (24 ms), and each will be described later.

次に、表示器23のスイッチによって各種モードの表示、実行をする。
車速表示モードの場合は、車速表示モード関数(uchar dsp_spd(void))を駆動させ、車速の表示を行い、その他に車速に関する設定、スピードリミッタ解除設定(en_limit_cut=ONorOFF)を行う(ステップST25、ST26)。
Next, various modes are displayed and executed by the switch of the display 23.
In the case of the vehicle speed display mode, the vehicle speed display mode function (uchar dsp_spd (void)) is driven to display the vehicle speed, and other settings related to the vehicle speed and speed limiter release setting (en_limit_cut = ONorOFF) are performed (steps ST25 and ST26). ).

馬力表示モードの場合は、馬力表示モード関数(uchar dsp_pow(void))を駆動させ、燃費の表示を行い、その他に馬力に関する設定を行う(ステップST27、ST28)。   In the case of the horsepower display mode, the horsepower display mode function (uchar dsp_pow (void)) is driven to display the fuel consumption, and other settings relating to horsepower are performed (steps ST27 and ST28).

燃費表示モードの場合は、燃費表示モード関数(uchar fuel_exp(void))を駆動させ、燃費の表示を行い、その他に燃費に関する設定を行う(ステップST29、ST30)。   In the fuel consumption display mode, the fuel consumption display mode function (uchar fuel_exp (void)) is driven to display the fuel consumption, and other settings related to the fuel consumption are performed (steps ST29 and ST30).

DASH計測モードの場合は、DASH計測モード関数(uchar meas_time(void)を駆動させ、各種DASH計測を行う(ステップST31、ST32)。
DASH計測モードとは、スタートしてから、ある時間までの到達時間や、スタートしてから、ある速度までの到達時間、ある速度からある速度までの到達時間を計測するモードである。
このモードではCAN通信上の車速データや車速パルス(SPD)を利用する。
例えば、距離の場合であれば、
0〜200m到達時間
0〜400m到達時間
0〜1000m到達時間を測定する。
速度であれば、
0〜100km/h到達時間
0〜200km/h到達時間
0〜300km/h到達時間を測定する。
ある速度からある速度までの到達時間であれば、
100〜200km/h到達時間
200〜300km/h到達時間を測定する。
In the DASH measurement mode, the DASH measurement mode function (uchar meas_time (void) is driven to perform various DASH measurements (steps ST31 and ST32).
The DASH measurement mode is a mode for measuring an arrival time from a start to a certain time, an arrival time from a start to a certain speed, and an arrival time from a certain speed to a certain speed.
In this mode, vehicle speed data and vehicle speed pulses (SPD) on CAN communication are used.
For example, in the case of distance,
0-200 m arrival time 0-400 m arrival time 0-1000 m arrival time is measured.
If speed,
0 to 100 km / h arrival time 0 to 200 km / h arrival time 0 to 300 km / h arrival time is measured.
If the arrival time from a certain speed to a certain speed,
100 to 200 km / h arrival time 200 to 300 km / h arrival time is measured.

DASH記録表示モードの場合は、DASH記録表示モード関数(uchar dsp_time(void))を駆動させ、各種DASH計測の結果を表示する(ステップST33、ST34)。   In the DASH recording display mode, the DASH recording display mode function (uchar dsp_time (void)) is driven to display various DASH measurement results (steps ST33 and ST34).

上記いずれのモードにも該当しない場合は、OFF設定関数(uchar off_mode(void))を駆動させ、表示をOFF状態にし、SP2+・NT+・SPDパルス中継機能46は継続したまま、車速・馬力・燃費計算・記録機能部34の動作を停止する。   If none of the above modes is applicable, the OFF setting function (uchar off_mode (void)) is driven to turn the display OFF, and the SP2 + / NT + / SPD pulse relay function 46 continues and the vehicle speed / horsepower / fuel consumption is maintained. The operation of the calculation / recording function unit 34 is stopped.

次に、上記CAN通信機能部31におけるCAN通信中継機能42のCAN CH1の受信割込みについて、図6に示すフローチャートを参照して以下説明する。
CAN通信中継機能42のCAN CH1の受信割込みは、ECU側に接続されたCAN CH1の受信ポートCRX0でCANデータを受信するとCAN受信割り込み(C0RECTIC)が発生する(ステップST41)。CH1のCAN受信割込みルーチン内で受信したCANデータをCH2の送信バッファへコピーする(ステップST42)。ここでコピーされるものは、特に標準ID、拡張ID、データ長、データである。
Next, the CAN CH1 reception interrupt of the CAN communication relay function 42 in the CAN communication function unit 31 will be described below with reference to the flowchart shown in FIG.
As for the CAN CH1 reception interrupt of the CAN communication relay function 42, when CAN data is received at the reception port CRX0 of CAN CH1 connected to the ECU side, a CAN reception interrupt (C0RECTIC) is generated (step ST41). The CAN data received in the CH1 CAN reception interrupt routine is copied to the CH2 transmission buffer (step ST42). What is copied here is, in particular, a standard ID, an extended ID, a data length, and data.

そして、CAN CH2の送信ポートCTX1からBUS側へCANデータを送信するための送信リクエスト(c1mct10.trmreq=1)をセットして、CTX1からCANデータを送信する。
CANライン26から車種を判定するために受信データのIDをバッファ(can_rev_buf[num_can_rev])に保存していく。保存データ回数(num_can_rev)を数えておき、保存回数がnum_can_buffより大きくなったら保存することを止める。
Then, a transmission request (c1mct10.trmreq = 1) for transmitting CAN data from the transmission port CTX1 of CAN CH2 to the BUS side is set, and CAN data is transmitted from CTX1.
In order to determine the vehicle type from the CAN line 26, the received data ID is stored in a buffer (can_rev_buf [num_can_rev]). The number of times of saving data (num_can_rev) is counted, and when the number of times of saving becomes larger than num_can_buff, saving is stopped.

次に、BUS側に接続されたCAN CH2の受信ポートCRX1でCANデータを受信するとCAN受信割込み(C1RECTIC)が発生する様子を、図7に示すフローチャートを参照して以下説明する。
ここでは、CAN CH2のCAN受信データから車速を求め、スピードリミッタ解除領域(spd limit)以上、例えば180km/hに入っている時に、CAN CH2で受信した車速データを変換(spd_limit固定 例180km/h)してCAN CH1から送信し、他のデータはそのまま送信する。
CAN CH2のCAN受信データから車速を求め、スピードリミッタ解除領域以下の時は、CAN CH2で受信した車速データ、他のデータをそのままCAN CH1から送信する。
Next, how CAN reception interrupt (C1RECTIC) occurs when CAN data is received at the reception port CRX1 of CAN CH2 connected to the BUS side will be described below with reference to the flowchart shown in FIG.
Here, the vehicle speed is obtained from the CAN reception data of CAN CH2, and the vehicle speed data received on CAN CH2 is converted (spd_limit fixed example 180 km / h) when the vehicle is in the speed limiter release area (spd limit) or more, for example, 180 km / h. ) And transmit from CAN CH1, and transmit other data as it is.
The vehicle speed is obtained from the CAN reception data of CAN CH2, and when it is below the speed limiter release area, the vehicle speed data received by CAN CH2 and other data are transmitted as they are from CAN CH1.

先ず、CAN受信割込み(C1RECTIC)が発生すると、CH2のCAN受信割込みルーチン内で受信したCANデータをCH1の送信バッファへコピーする(ステップST45、ST46)。
次に、車種がZ33であれば車速ID(can_z33.spd_id)のデータから車速(spd)を計算する(ステップST47、ST48、ST49)。
そして、次に、スピードリミッタ解除機能を動作させる。スピードリミッタ解除機能が動作する時(en_limit_cut=ON)、BUS側へCANデータを中継する際、CANデータIDが車速IDであり車速(spd)が設定値(spd_limit)以上の時に車速データを設定値(spd_limit)に変換して送信する(ステップST50、ST51)。スピードリミッタ解除フラグ(spd_over_flg)をONにする(ステップST52)。
First, when a CAN reception interrupt (C1RECTIC) occurs, the CAN data received in the CH2 CAN reception interrupt routine is copied to the CH1 transmission buffer (steps ST45 and ST46).
Next, if the vehicle type is Z33, the vehicle speed (spd) is calculated from the data of the vehicle speed ID (can_z33.spd_id) (steps ST47, ST48, ST49).
Next, the speed limiter cancel function is operated. When the speed limiter cancel function operates (en_limit_cut = ON), when CAN data is relayed to the BUS side, the vehicle speed data is set when the CAN data ID is the vehicle speed ID and the vehicle speed (spd) is greater than or equal to the set value (spd_limit). The data is converted into (spd_limit) and transmitted (steps ST50 and ST51). The speed limiter release flag (spd_over_flg) is turned ON (step ST52).

上述のステップST47において、車種がZ33でない場合で、車種がBP5であるときには、車速ID(can_bp5.spd_id)のデータから車速(spd)を計算する(ステップST54、ST55、ST56)。
そして、次に、スピードリミッタ解除機能を動作させる。スピードリミッタ解除機能が動作する時(en_limit_cut=ON)、BUS側へCANデータを中継する際、CANデータIDが車速IDであり車速(spd)が設定値(spd_limit)以上の時に車速データを設定値(spd_limit)に変換して送信する(ステップST57、ST58)。スピードリミッタ解除フラグ(spd_over_flg)をONにする(ステップST59)。
In the above-described step ST47, when the vehicle type is not Z33 and the vehicle type is BP5, the vehicle speed (spd) is calculated from the data of the vehicle speed ID (can_bp5.spd_id) (steps ST54, ST55, ST56).
Next, the speed limiter cancel function is operated. When the speed limiter cancel function operates (en_limit_cut = ON), when CAN data is relayed to the BUS side, the vehicle speed data is set when the CAN data ID is the vehicle speed ID and the vehicle speed (spd) is greater than or equal to the set value (spd_limit). It is converted into (spd_limit) and transmitted (steps ST57 and ST58). The speed limiter release flag (spd_over_flg) is turned ON (step ST59).

そして、CAN CH2の送信ポートCTX1からBUS側へCANデータを送信するための送信リクエスト(c1mct10.trmreq=1)をセットして、CTX1からCANデータを送信する。
CANラインから車種を判定するために受信データのIDをバッフア(can_rev_buf[num_can_rev])に保存していく。保存データ回数(num_can_rev)を数えておき、保存回数がnum_can_buffより大きくなったら保存することを止める。
Then, a transmission request (c1mct10.trmreq = 1) for transmitting CAN data from the transmission port CTX1 of CAN CH2 to the BUS side is set, and CAN data is transmitted from CTX1.
In order to determine the vehicle type from the CAN line, the ID of the received data is stored in the buffer (can_rev_buf [num_can_rev]). The number of times of saving data (num_can_rev) is counted, and when the number of times of saving becomes larger than num_can_buff, saving is stopped.

次に、上記車体通信機能部32におけるSP2+・NT+・SPDパルス中継機能46の割込みについて、フローチャートを参照して以下説明する。   Next, the interruption of the SP2 + / NT + / SPD pulse relay function 46 in the vehicle body communication function unit 32 will be described with reference to a flowchart.

先ず、車速パルス信号に基づくSPDパルス中継機能の割込みについて、図8に示すフローチャートを参照して説明する。
ここでは、BUS側のSPDパルスから求めた車速がスピードリミッタ解除領域(パルス幅測定タイマTB2INで測定したカウントがspd_limit_cnt以上、例180km/h)に入っている時には、ECU側spdパルスに出力するTA2OUTのパルスカウントを変更せず、そのまま出力する(前回の設定のまま固定、例178km/h)。そして、車速がスピードリミッタ解除領域にあることを示すフラグをONにする(spd_flg_limit_over=ON)。
SPDパルスから求めた車速がスピードリミッタ解除領域以下の時には、ECU側SPDパルスをECU側SPDパルスからそのまま出力する(TA2OUTのパルスカウントをパルス幅測定タイマTB2INで測定したカウントに設定する)。そして、車速がスピードリミッタ解除領域にあることを示すフラグをOFFにする(spd_flg_limit_over=OFF)。
First, the interruption of the SPD pulse relay function based on the vehicle speed pulse signal will be described with reference to the flowchart shown in FIG.
Here, when the vehicle speed obtained from the SPD pulse on the BUS side is in the speed limiter release region (the count measured by the pulse width measurement timer TB2IN is greater than or equal to spd_limit_cnt, eg 180 km / h), TA2OUT output to the ECU side spd pulse The pulse count is output without change (fixed at the previous setting, eg 178 km / h). Then, a flag indicating that the vehicle speed is in the speed limiter release region is turned ON (spd_flg_limit_over = ON).
When the vehicle speed obtained from the SPD pulse is below the speed limiter release region, the ECU-side SPD pulse is output as it is from the ECU-side SPD pulse (the pulse count of TA2OUT is set to the count measured by the pulse width measurement timer TB2IN). Then, a flag indicating that the vehicle speed is in the speed limiter release region is turned OFF (spd_flg_limit_over = OFF).

BUSからのSPDパルス信号(車速パルス信号)が入力されると割込みINT2で立上がり、立下り両エッジを検出する(ステップST71)。
カウント値(spd_rev_cnt)があるカウント値(spd_change_cnt_h)より小さい時に、ECU20へSPDパルス信号が出力される出力ポートP7_4の信号を反転させる(ステップST72、ST73)。
以上のことをBUSからのSPDパルス信号が入力される毎に割込みINT2が発生する。
When an SPD pulse signal (vehicle speed pulse signal) is input from BUS, the signal rises at interrupt INT2, and both falling edges are detected (step ST71).
When the count value (spd_rev_cnt) is smaller than a certain count value (spd_change_cnt_h), the signal of the output port P7_4 from which the SPD pulse signal is output to the ECU 20 is inverted (steps ST72 and ST73).
The interrupt INT2 is generated every time the SPD pulse signal from the BUS is input.

そして、カウント値(spd_rev_cnt)があるカウント値(spd_chenge_cnt_h)以上になった時、割込みINT2をディセーブルにし、出力ポートP7_4をパルス出力TA2OUTに切り替えTB2INで測定したパルス幅のパルスを出力する(ステップST72、ST74、ST75、ST76)。
以降、TB2INの測定完了割込みルーチン内で測定したカウントをTA2OUTの出力パルスカウントに設定する。
尚、出力SPDパルスが乱れることを防ぐために出力ポートP7_4が“L”のタイミングで切換を行う。
When the count value (spd_rev_cnt) becomes equal to or greater than a certain count value (spd_change_cnt_h), the interrupt INT2 is disabled, the output port P7_4 is switched to the pulse output TA2OUT, and a pulse with a pulse width measured at TB2IN is output (step ST72). , ST74, ST75, ST76).
Thereafter, the count measured in the TB2IN measurement completion interrupt routine is set as the output pulse count of TA2OUT.
In order to prevent the output SPD pulse from being disturbed, the output port P7_4 is switched at the timing of “L”.

TB2INで測定したカウントがある値(spd_chenge_cnt_1)以下になった時、TA2OUTのパルス出力を停止し出力ポートP7_4に切り替える。割込みINT2をイネーブルにし、以降割込みINT2の割込みルーチン内で出力ポートP7_4の信号を反転させる。
カウント値上昇、下降で切り替えにヒステリシスを持たせるため、spd_chenge_cnt_h、spd_chenge_cnt_1と違う値を用いている。
When the count measured by TB2IN becomes a certain value (spd_change_cnt_1) or less, the TA2OUT pulse output is stopped and switched to the output port P7_4. The interrupt INT2 is enabled, and thereafter the signal of the output port P7_4 is inverted in the interrupt routine of the interrupt INT2.
A value different from spd_change_cnt_h and spd_change_cnt_1 is used in order to give hysteresis to the switching when the count value rises and falls.

上記のSPDパルス信号の入力を検出して割込みINT2が発生すると同時にパルス周期測定モードのタイマTB2INで測定すると共にスピードリミッタ解除機能が駆動する点につき図9に示すフローチャートを参照して以下説明する。   With reference to the flowchart shown in FIG. 9, the following description will be made on the point that the input of the SPD pulse signal is detected and the interrupt INT2 is generated and the timer TB2IN in the pulse period measurement mode is measured and the speed limiter cancel function is driven.

SPDパルス信号を検出して割込みINT2が発生すると同時に、BUSからSPDパルス信号をパルス周期測定モードのタイマTB2INで測定する(ステップST81)。
そして、オーバーフローフラグがセットされていないかを確認してタイマを32ビットにするためTB2INのオーバーフローをタイマTA4でカウントする(ステップST82、ST83、ST86、ST87)。
The SPD pulse signal is detected and an interrupt INT2 is generated. At the same time, the SPD pulse signal is measured from the BUS by the timer TB2IN in the pulse period measurement mode (step ST81).
Then, in order to check whether the overflow flag is set and set the timer to 32 bits, the overflow of TB2IN is counted by the timer TA4 (steps ST82, ST83, ST86, ST87).

次に、SPDパルス信号がスピードリミット信号よりも大きいときには、スピードオーバーフラグをオンにして、スピードリミッタ解除機能が働く(ステップST88、ST94)。
ステップST88で、SPDパルス信号がスピードリミット信号よりも小さいときには、スピードオーバーフラグをオフにして、TB2INで測定したカウントがある値(spd_chenge_cnt_1)以下になった時、TA2OUTのパルス出力を停止し出力ポートP7_4に切り替える。割込みINT2をイネーブルにし、以降割込みINT2の割込みルーチン内で出力ポートP7_4の信号を反転させる(ステップST89、ST90、ST91)。
ステップST88で、パルス幅測定タイマTB2INの測定完了割込みルーチン内で測定したカウントが設定値(spd_limit_cnt)以上の時、パルス出力タイマTA2OUTのパルスカウントは変更しない(前回の設定のまま)。車速が設定値以上になったことを示すフラグ(spd_flg_limit_over)をONにする(ステップST94)。
Next, when the SPD pulse signal is larger than the speed limit signal, the speed over flag is turned on and the speed limiter canceling function is activated (steps ST88 and ST94).
In step ST88, when the SPD pulse signal is smaller than the speed limit signal, the speed over flag is turned off, and when the count measured by TB2IN falls below a certain value (spd_change_cnt_1), the TA2OUT pulse output is stopped and the output port Switch to P7_4. The interrupt INT2 is enabled, and thereafter the signal of the output port P7_4 is inverted in the interrupt routine of the interrupt INT2 (steps ST89, ST90, ST91).
In step ST88, when the count measured in the measurement completion interrupt routine of the pulse width measurement timer TB2IN is equal to or larger than the set value (spd_limit_cnt), the pulse count of the pulse output timer TA2OUT is not changed (the previous setting is maintained). A flag (spd_flg_limit_over) indicating that the vehicle speed is equal to or higher than the set value is turned ON (step ST94).

次に、出力軸回転センサー信号(SP2+パルス)による割込みについて図10に示すフローチャート、及び図11に示すフローチャートを参照して説明する。
SP2+パルスによる割込みはSPDパルスとほぼ同じ方法で中継するのであるが、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時(spd_flg_limit_over=ON)、ECU側SP2+パルスに出力するTA0OUTのパルスカウントを変更せず、そのまま出力する(前回の設定のまま固定、例178km/h)。
車速がスピードリミッタ解除領域にあることを示すフラグがOFFになっている時(spd_flg_limit_over=OFF)、BUS側SP2+パルスをECU側SPD2+パルスからそのまま出力する(TA0OUTのパルスカウントをパルス幅測定タイマTB0INで測定したカウントに設定する)。
Next, the interruption by the output shaft rotation sensor signal (SP2 + pulse) will be described with reference to the flowchart shown in FIG. 10 and the flowchart shown in FIG.
Interrupt by SP2 + pulse is relayed in almost the same way as SPD pulse, but when the flag indicating that the vehicle speed is in the speed limiter release region is ON (spd_flg_limit_over = ON), it is output to the ECU side SP2 + pulse The TA0OUT pulse count is not changed and is output as it is (fixed at the previous setting, eg 178 km / h).
When the flag indicating that the vehicle speed is in the speed limiter release region is OFF (spd_flg_limit_over = OFF), the BUS side SP2 + pulse is output as it is from the ECU side SPD2 + pulse (the pulse count of TA0OUT is set by the pulse width measurement timer TB0IN) Set to the measured count).

先ず、BUSからSP2+パルス信号が入力されると割込みINT0で立ち上がり、立ち下り両エッジを検出する(ステップST110)。
割込みルーチン内でECUへSP2+パルス信号が出力される出力ポートP7_0の信号を反転させる。
First, when an SP2 + pulse signal is input from BUS, the rising edge is detected by the interrupt INT0, and both falling edges are detected (step ST110).
In the interrupt routine, the signal of the output port P7_0 from which the SP2 + pulse signal is output to the ECU is inverted.

同時にBUSからのSP2+パルスをパルス幅測定モードのタイマTB0INで測定する。これについては、後述の図11に示すフローチャートを参照して説明する。   At the same time, the SP2 + pulse from the BUS is measured by the timer TB0IN in the pulse width measurement mode. This will be described with reference to a flowchart shown in FIG.

SP2+パルスの出力がポートP7_4からタイマTA2OUTに切り替わった時(フラグspd_flg_ta2=ON)、割込みINT0をディセーブルにし、出力ポートP7_0をパルス出力TA0OUTに切り替えTB0INで測定したパルス幅のパルスを出力する(ステップST110、ST111)。
以降、TB0INの測定完了割込みルーチン内で測定したカウントをTA0OUTの出力パルスカウントに設定する。
尚、出力SP2+パルスが乱れることを防ぐために出力ポートP7_0が“L”のタイミングで切換を行う。
When the output of the SP2 + pulse is switched from the port P7_4 to the timer TA2OUT (flag spd_flg_ta2 = ON), the interrupt INT0 is disabled, the output port P7_0 is switched to the pulse output TA0OUT, and a pulse with a pulse width measured at TB0IN is output ( Steps ST110 and ST111).
Thereafter, the count measured in the TB0IN measurement completion interrupt routine is set as the output pulse count of TA0OUT.
In order to prevent the output SP2 + pulse from being disturbed, the output port P7_0 is switched at the timing of “L”.

そして、スピードリミッタ解除機能を発生させ、パルス幅測定タイマTB2INの測定完了割込みルーチン内でSPDパルスから読み取った車速が設定値以上になったことを示すフラグ(spd_flg_limit_over)がONの時、パルス出力タイマTA0OUTのパルスカウントは変更しない(前回の設定のまま)(ステップST112)。   Then, when the flag (spd_flg_limit_over) indicating that the vehicle speed read from the SPD pulse has exceeded the set value in the measurement completion interrupt routine of the pulse width measurement timer TB2IN is generated, the pulse output timer is generated. The pulse count of TA0OUT is not changed (the previous setting is maintained) (step ST112).

ステップST111で、SPDパルスの出力がタイマTA2OUTからポートP7_4に切り替わった時(フラグspd_flg_ta2=OFF)、SP2+のパルス出力がタイマTA0OUTからポートP7_0に切り替わっていない時(フラグflg_int0=OFF)、TA0OUTのパルス出力を停止し出力ポートP7_0に切り替える。割込みINT0をイネーブルにし、以降割込みINT0の割込みINT0の割込みルーチン内で出力ポートP7_0の信号を反転させる。   In step ST111, when the output of the SPD pulse is switched from the timer TA2OUT to the port P7_4 (flag spd_flg_ta2 = OFF), when the SP2 + pulse output is not switched from the timer TA0OUT to the port P7_0 (flag flg_int0 = OFF), the pulse of TA0OUT The output is stopped and switched to the output port P7_0. The interrupt INT0 is enabled, and the signal of the output port P7_0 is inverted in the interrupt routine of the interrupt INT0 of the interrupt INT0.

次に、入力軸回転センサー信号(NT+パルス)による割込みについて図12に示すフローチャート、及び図13に示すフローチャートを参照して説明する。
NT+パルスは、SP2+パルスと同じ方法で中継するのであり、車速がスピードリミット解除領域にあることを示すフラグがONになっている時(spd_flg_limit_over=ON)、ECU側NT+パルスに出力するTA1OUTのパルスカウントを変更せず、そのまま出力する(前回の設定のまま固定、例178km/h)。
車速がスピードリミット解除領域にあることを示すフラグがOFFになっている時(spd_flg_limit_over=OFF)、BUS側NT+パルスをECU側SPDパルスからそのまま出力する(TA1OUTのパルスカウントをパルス幅測定タイマTB1INで測定したカウントに設定する)。
Next, the interruption by the input shaft rotation sensor signal (NT + pulse) will be described with reference to the flowchart shown in FIG. 12 and the flowchart shown in FIG.
The NT + pulse is relayed in the same manner as the SP2 + pulse, and when the flag indicating that the vehicle speed is in the speed limit release region is ON (spd_flg_limit_over = ON), the TA1OUT pulse output to the ECU NT + pulse The count is not changed and output as it is (fixed at the previous setting, example 178 km / h).
When the flag indicating that the vehicle speed is in the speed limit release region is OFF (spd_flg_limit_over = OFF), the BUS side NT + pulse is output as it is from the ECU side SPD pulse (the pulse count of TA1OUT is set by the pulse width measurement timer TB1IN) Set to the measured count).

先ず、BUSからのNT+パルスが入力される割込みINT1で立ち上り、立ち下り両エッジを検出する(ステップST120)。
フラグspd_flg_ta2=offであるときに、割込みルーチン内でECU20へNT+パルスが出力される出力ポートP7_2の信号を反転させ、NT+パルス信号を出力する(ステップST121、ST122)。
First, both rising and falling edges are detected by an interrupt INT1 to which an NT + pulse from BUS is input (step ST120).
When the flag spd_flg_ta2 = off, the signal of the output port P7_2 from which the NT + pulse is output to the ECU 20 in the interrupt routine is inverted and the NT + pulse signal is output (steps ST121 and ST122).

ステップST121でフラグspd_flg_ta2=offでないときには、ポートP7_2が“H”であるときには出力ポートP7_2の信号を反転させ、NT+パルス信号を出力する(ステップST123、ST122)。
ステップST123で、ポートP7_2が“H”でないときには、割込みINT1をディゼーブルにし、出力ポートP7_2をパルス出力TA1OUTに変更し、割込みフラグfig_int1をオフにする(ステップST123、ST124、ST125)。
When the flag spd_flg_ta2 is not off in step ST121, when the port P7_2 is "H", the signal of the output port P7_2 is inverted and the NT + pulse signal is output (steps ST123 and ST122).
If the port P7_2 is not "H" in step ST123, the interrupt INT1 is disabled, the output port P7_2 is changed to the pulse output TA1OUT, and the interrupt flag fig_int1 is turned off (steps ST123, ST124, ST125).

割込みINT1の割込みがあると、図13のフローチャートに示すように、同時にBUSからのNT+パルスをパルス幅測定モードのタイマTB1INで測定する(ステップST126)。
SPD出力パルスがポートP7_4からタイマTA2OUTに切り替わった時(フラグspd_flg_ta2=ON)、割込みINT1をディセーブルにし、出力ポートP7_2をパルス出力TA1OUTに切り替えTB1INで測定したパルス幅のパルスを出力する(ステップST127、ST128、ST129)。
以降、TB1INの測定完了割込みルーチン内で測定したカウントをTA1OUTの出力パルスカウントに設定する。尚、出力NT+パルスが乱れることを防ぐために出力ポートP7_2が“L”のタイミングで切換を行う。
そして、スピードリミッタ解除機能を動作させ、パルス幅測定タイマTB1INの測定完了割込みルーチン内でSPDパルスから読み取った車速が設定値以上になったことを示すフラグ(spd_flg_limit_over)がONの時、パルス出力タイマTA1OUTのパルスカウントは変更しない(前回の設定のまま)に設定(ta1=tb−1)とする(ステップST127、ST128、ST129)。
When there is an interrupt INT1, the NT + pulse from the BUS is simultaneously measured by the timer TB1IN in the pulse width measurement mode as shown in the flowchart of FIG. 13 (step ST126).
When the SPD output pulse is switched from the port P7_4 to the timer TA2OUT (flag spd_flg_ta2 = ON), the interrupt INT1 is disabled, the output port P7_2 is switched to the pulse output TA1OUT, and a pulse having a pulse width measured at TB1IN is output (step ST127). , ST128, ST129).
Thereafter, the count measured in the TB1IN measurement completion interrupt routine is set as the TA1OUT output pulse count. In order to prevent the output NT + pulse from being disturbed, the output port P7_2 is switched at the timing of "L".
When the speed limiter canceling function is activated and the flag (spd_flg_limit_over) indicating that the vehicle speed read from the SPD pulse has exceeded the set value in the measurement completion interrupt routine of the pulse width measurement timer TB1IN is ON, the pulse output timer The pulse count of TA1OUT is set not to be changed (the previous setting is maintained) (ta1 = tb−1) (steps ST127, ST128, ST129).

ステップST127において、SPD出力パルスがタイマTA2OUTからポートP7_4に切り替わった時(フラグspd_flg_ta2=OFF)、TA1OUTのパルス出力を停止し出力ポートP7_2に切り替える。割込みINT1をイネーブルにし、以降割込みINT1の割込みINT0の割込みルーチン内で出力ポートP7_2の信号を反転させる(ステップST130、ST131、ST132)。   In step ST127, when the SPD output pulse is switched from the timer TA2OUT to the port P7_4 (flag spd_flg_ta2 = OFF), the pulse output of the TA1OUT is stopped and switched to the output port P7_2. The interrupt INT1 is enabled, and then the signal of the output port P7_2 is inverted in the interrupt routine of the interrupt INT0 of the interrupt INT1 (steps ST130, ST131, ST132).

次に、ソレノイド制御信号中継機能48について、図14に示すフローチャートを参照して説明する。
ここで、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時(spd_limit_over=ON)、BUS側ソレノイド制御信号は固定出力(HiorLo)、ATトランスミッションのギヤチェンジが固定(例6速)される。
車速がスピードリミッタ解除領域にあることを示すフラグがOFFになっている時(spd_limit_over=OFF)、入力されたECU側ソレノイド制御信号をそのままBUS側ソレノイド制御信号へ出力する。
Next, the solenoid control signal relay function 48 will be described with reference to the flowchart shown in FIG.
Here, when the flag indicating that the vehicle speed is in the speed limiter release region is ON (spd_limit_over = ON), the BUS side solenoid control signal is fixed output (HiorLo), and the AT transmission gear change is fixed (example 6). Speed).
When the flag indicating that the vehicle speed is in the speed limiter release region is OFF (spd_limit_over = OFF), the input ECU side solenoid control signal is output as it is to the BUS side solenoid control signal.

ソレノイド制御信号中継機能48は、24ms間隔でソレノイド制御信号の入出力を中継するものであり、タイマTB4を基本周期2μs、カウント24000で設定し動作する。割込み間隔24msで割込みTB4ICを発生させる(ステップST135)。
割込みルーチン内でソレノイド制御信号の入力を見て、そのままソレノイド制御信号の出力に反映させる(ステップST136、ST137)。
そして、ステップST136において、スピードリミッタ解除機能(ソレノイド制御信号)が動作させ、割込みTB4ICの割込みルーチン内でSPDパルスから読み取った車速が設定値以上になったことを示すフラグ(spd_flg_limit_over)がONの時、ソレノイド制御信号の出力ポートを固定する(ステップST138)。
The solenoid control signal relay function 48 relays input / output of the solenoid control signal at intervals of 24 ms, and operates by setting the timer TB4 with a basic period of 2 μs and a count of 24,000. An interrupt TB4IC is generated at an interrupt interval of 24 ms (step ST135).
In the interrupt routine, the input of the solenoid control signal is seen and reflected in the output of the solenoid control signal as it is (steps ST136 and ST137).
In step ST136, when the speed limiter cancel function (solenoid control signal) is activated and the flag (spd_flg_limit_over) indicating that the vehicle speed read from the SPD pulse has exceeded the set value in the interrupt routine of the interrupt TB4IC is ON. Then, the output port of the solenoid control signal is fixed (step ST138).

次に、車種判別機能部33による接続車種を判定する関数(char findout_kind_car(void))について、図15、図16に示すフローチャートを参照して説明する。   Next, a function (char findout_kind_car (void)) for determining the connected vehicle type by the vehicle type determination function unit 33 will be described with reference to the flowcharts shown in FIGS.

先ず、初めにwait関数により1sec待つ(ステップST141)。ここで、wait関数(void 500ms_wait(char num_multiply))は、タイマTB3を基本周期2μs、カウント50000で設定し動作するもので、割込み回数(num_tb3ic)が設定回数(num_multiply)と等しくなるまでループし、等しくなったらループを抜けwait関数から戻る。割込みTB3ICの割込みTB3ICの割込みルーチン内では割込み回数(num_tb3ic)をカウントするようになっている。
そして、CAN CH1、CH2のCANデータ受信割込みルーチン内で受信データのIDをバッファ(can_rev_buf[num_can_buff])に保存していく。保存データ回数(num_can_rev)を数えておき、保存回数がnum_can_buff以上になったら保存することを止める。
First, it waits for 1 sec by a wait function (step ST141). Here, the wait function (void 500 ms_wait (char num_multiple)) operates by setting the timer TB3 with a basic period of 2 μs and a count of 50000, and loops until the interrupt count (num_tb3ic) becomes equal to the set count (num_multiple). When they are equal, exit the loop and return from the wait function. The interrupt count (num_tb3ic) is counted in the interrupt routine of the interrupt TB3IC.
Then, the ID of the received data is stored in the buffer (can_rev_buf [num_can_buff]) in the CAN data reception interrupt routine of CAN CH1 and CH2. The number of times of saving data (num_can_rev) is counted, and when the number of times of saving becomes num_can_buff or more, saving is stopped.

次に、保存データ回数(num_can_rev)をチェックし、num_can_buff以下ならばCAN以外の車種(TOYOTA)と判断し、戻り値toyotaを返す(ステップST142、ST143)。
ステップST142で、保存データ回数(num_can_rev)がnum_can_buffより大きいならばCAN対応車種(Z33、BP5)と判別する(ステップST144)。
Next, the number of stored data (num_can_rev) is checked, and if it is less than or equal to num_can_buff, it is determined that the vehicle type is other than CAN (TOYOTA), and a return value Toyota is returned (steps ST142 and ST143).
If the number of stored data (num_can_rev) is larger than num_can_buff in step ST142, it is determined as a CAN-compatible vehicle model (Z33, BP5) (step ST144).

車種別CAN通信に使われるID(can_id[z33、num_id]、can_id[bp5、num_match_id]と保存受信データID(can_rev_buff[num_can_buff])を比較し、一致する数が一番多く、設定値(num_uncorres)以上のものを接続車種と判断し、戻り値Z33orBP5を返す。   The IDs (can_id [z33, num_id], can_id [bp5, num_match_id] and stored received data ID (can_rev_buff [num_can_buff]) used for the CAN communication for each vehicle type are compared, and the number of matches is the largest, and the setting value (num_uncorres) The above is determined as the connected vehicle type, and a return value Z33orBP5 is returned.

次に、車速・馬力・瞬間燃費計算・記録機能部34について説明する。
先ず、24ms周期で車速を取得するようにタイマTA3を基本周期2μs、カウント24000で設定し動作させる。タイマTA3の割込み(TA3IC)ルーチン内で、SPDパルス、CAN通信中継機能42から得た車速(spd)を40個のリングバッファ(spd_buff[40])に保存する。
リングバッファが20個たまるごとに直近12個の値を平均し、その値を瞬間車速(present_spd)とする。
最大車速(max_spd)と比較して越えていたら更新する。
瞬間車速(present_spd)と前回の瞬間車速(last_spd)から瞬間馬力NET値(present_fuel_exp)が求められる。
これによって480ms間隔で車速と馬力、瞬間燃費が求められる。
Next, the vehicle speed / horsepower / instantaneous fuel consumption calculation / recording function unit 34 will be described.
First, the timer TA3 is set and operated with a basic period of 2 μs and a count of 24000 so as to acquire the vehicle speed at a period of 24 ms. In the timer TA3 interrupt (TA3IC) routine, the SPD pulse and the vehicle speed (spd) obtained from the CAN communication relay function 42 are stored in 40 ring buffers (spd_buff [40]).
For every 20 ring buffers accumulated, the latest 12 values are averaged, and the value is taken as the instantaneous vehicle speed (present_spd).
If it exceeds the maximum vehicle speed (max_spd), it is updated.
The instantaneous horsepower NET value (present_fuel_exp) is obtained from the instantaneous vehicle speed (present_spd) and the previous instantaneous vehicle speed (last_spd).
As a result, vehicle speed, horsepower, and instantaneous fuel consumption are required at intervals of 480 ms.

馬力計算式は、
P=(1/2)×m(V1−V0)×(1/t)
P:馬力(w)
m:重量(kg)
V1:瞬間車速(m/s)
V0:前回の瞬間車速(m/s)
t:V1とV0間の時間(s)
The horsepower calculation formula is
P = (1/2) × m (V1 2 −V0 2 ) × (1 / t)
P: Horsepower (w)
m: Weight (kg)
V1: Instantaneous vehicle speed (m / s)
V0: Last instantaneous vehicle speed (m / s)
t: Time between V1 and V0 (s)

上記計算式で求めた馬力は駆動ロスや空気抵抗を考えない馬力である。エンジン単体での馬力(NET値)を求めるためには上記馬力に空気抵抗ロス分と駆動ロスを足さなくてはいけない。
空気抵抗ロス計算式
La=aV
La:空気抵抗ロス(PS)
a:係数
V:車速(km/h)
駆動ロス計算式
Ld=bV
Ld:駆動ロス(PS)
b:係数
V:車速(km/h)
エンジン出力(NET値)
Pow=1.3596×10−3(La+Lb)+P
Pow:NET馬力(w)
1w:1.3596×10−3PS
瞬間燃費計算式
Fexp=(V/3600)/(Pow×(1/Ee))
Fexp:瞬間燃費(km/l)
V:車速(km/h)
Pow:NET馬力(w)
Ee:エンジン効率(w/l)
The horsepower determined by the above formula is a horsepower that does not consider drive loss or air resistance. In order to obtain the horsepower (NET value) of the engine alone, the air resistance loss and the drive loss must be added to the horsepower.
Air resistance loss calculation formula La = aV 3
La: Air resistance loss (PS)
a: Coefficient V: Vehicle speed (km / h)
Drive loss calculation formula Ld = bV
Ld: Driving loss (PS)
b: Coefficient V: Vehicle speed (km / h)
Engine output (NET value)
Pow = 1.596 × 10 −3 (La + Lb) + P
Pow: NET horsepower (w)
1w: 1.3596 × 10 −3 PS
Instantaneous fuel consumption calculation formula Fexp = (V / 3600) / (Pow × (1 / Ee))
Fexp: Instantaneous fuel consumption (km / l)
V: Vehicle speed (km / h)
Pow: NET horsepower (w)
Ee: Engine efficiency (w / l)

CAN通信上の車速データ或はメータパネルからの車速パルス(SPD)、ATトランスミッションからの出力軸回転センサー信号(SP2+)、トランスミッション不具合防止用に入力軸回転センサー(NT+)、ソレノイド制御信号を取り込んで車速からスピードリミット領域であるかいなかを判別して、スピードリミッタ解除に必要な信号のみを変換してECU20に対してあたかも制限速度以上の車速でないように認識させるようにした車両用電子制御システムを提供する。   Car speed data on CAN communication or vehicle speed pulse (SPD) from meter panel, output shaft rotation sensor signal (SP2 +) from AT transmission, input shaft rotation sensor (NT +) and solenoid control signal to prevent transmission malfunction An electronic control system for a vehicle that discriminates whether the vehicle is in the speed limit range from the vehicle speed, converts only a signal necessary for canceling the speed limiter, and causes the ECU 20 to recognize that the vehicle speed does not exceed the speed limit. provide.

本願発明に係る車両用電子制御システムを略示的に示したブロック図である。It is the block diagram which showed schematically the vehicle electronic control system which concerns on this invention. 本願発明に係るスピードリミッタ解除装置の各種信号を略示的に示したブロック図である。It is the block diagram which showed roughly the various signals of the speed limiter cancellation | release apparatus which concerns on this invention. 同、スピードリミッタ解除装置を略示的に示したブロック図である。It is the block diagram which showed schematically the speed limiter cancellation | release apparatus similarly. 同、マイコンに搭載されているメインプログラムのフローチャートである。It is a flowchart of the main program installed in the microcomputer. 同、マイコンに搭載されているメインプログラムのフローチャートである。It is a flowchart of the main program installed in the microcomputer. 同、CAN通信におけるCH1受信割り込み処理を示すフローチャートである。4 is a flowchart showing CH1 reception interrupt processing in CAN communication. 同、CAN通信におけるCH2受信割り込み処理を示すフローチャートである。4 is a flowchart showing CH2 reception interrupt processing in CAN communication. 同、メータ&パネルからのSPDパルス立上り立下り割り込み処理を示すフローチャートである。4 is a flowchart showing an SPD pulse rising / falling interrupt process from the meter & panel. 同、メータ&パネルからのSPDパルス幅測定完了割り込み処理を示すフローチャートである。4 is a flowchart showing SPD pulse width measurement completion interrupt processing from the meter & panel. 同、ATトランスミッションからの出力軸回転センサのSP+パルス立上り立下り割り込み処理を示すフローチャートである。4 is a flowchart showing SP + pulse rise / fall interrupt processing of an output shaft rotation sensor from the AT transmission. 同、ATトランスミッションからの出力軸回転センサのSP+パルス幅測定完了割り込み処理を示すフローチャートである。4 is a flowchart showing SP + pulse width measurement completion interrupt processing of the output shaft rotation sensor from the AT transmission. 同、ATトランスミッションからの入力軸回転センサのNT+パルス立上り立下り割り込み処理を示すフローチャートである。6 is a flowchart showing NT + pulse rising / falling interrupt processing of the input shaft rotation sensor from the AT transmission. 同、ATトランスミッションからの入力軸回転センサのNT+パルス幅測定完了割り込み処理を示すフローチャートである。4 is a flowchart showing NT + pulse width measurement completion interrupt processing of the input shaft rotation sensor from the AT transmission. 同、ソレノイドからのソレノイド制御信号中継用タイマTB4の割り込み処理を示すフローチャートである。4 is a flowchart showing interrupt processing of a solenoid control signal relay timer TB4 from the solenoid. 同、接続車種判別関数のフローチャートである。4 is a flowchart of a connected vehicle type discrimination function. 同、接続車種判別関数のフローチャートである。4 is a flowchart of a connected vehicle type discrimination function. 従来技術における車両用電子制御システムを示すブロック図である。It is a block diagram which shows the electronic control system for vehicles in a prior art. 同、データ変換装置を示すブロック図である。It is a block diagram which shows a data converter same as the above. 同、電子制御装置が送受信する信号データを示す図表である。4 is a chart showing signal data transmitted and received by the electronic control unit. 同、通信データを示す図表である。2 is a chart showing communication data.

符号の説明Explanation of symbols

20 ECU
21 LANケーブル
22 スピードリミッタ解除装置
23 表示器
24 ATトランスミッション
25 ソレノイド
26 CANライン
27 メータ&パネルASSY
28 ABSコントロールユニット
29a 車速センサ
29b 車速センサ
29c 車速センサ
29d 車速センサ
31 CAN通信機能部
32 車体通信機能部
33 車種判別機能部
34 車速・馬力・瞬間燃費計算記録機能部
35 EEPROM
36 EEPROM制御機能部
37 表示器通信機能部
38 メイン処理各種モード機能部
39 CANI/F
41 CANI/F
42 CAN通信中継機能
43 SP2+パルス入力回路
44 NT+パルス入力回路
45 SPDパルス入力回路
46 SP2+・NT+・SPDパルス中継機能
47 ソレノイド制御信号中継機能
48 ソレノイド制御中継機能
49 SP2+パルス出力回路
51 NT+パルス出力回路
52 SPDパルス出力回路
53 ソレノイド制御信号出力回路
54 表示器通信回路。
20 ECU
21 LAN cable 22 Speed limiter canceling device 23 Display 24 AT transmission 25 Solenoid 26 CAN line 27 Meter & panel ASSY
28 ABS control unit 29a Vehicle speed sensor 29b Vehicle speed sensor 29c Vehicle speed sensor 29d Vehicle speed sensor 31 CAN communication function unit 32 Car body communication function unit 33 Vehicle type discrimination function unit 34 Vehicle speed / horsepower / instantaneous fuel consumption calculation recording function unit 35 EEPROM
36 EEPROM control function part 37 Display communication function part 38 Main processing various mode function part 39 CANI / F
41 CANI / F
42 CAN communication relay function 43 SP2 + pulse input circuit 44 NT + pulse input circuit 45 SPD pulse input circuit 46 SP2 + / NT + / SPD pulse relay function 47 Solenoid control signal relay function 48 Solenoid control relay function 49 SP2 + pulse output circuit 51 NT + pulse output circuit 52 SPD pulse output circuit 53 Solenoid control signal output circuit 54 Display communication circuit.

Claims (3)

エンジン制御ユニットと車速センサをCAN通信が行われるLANケーブルにより接続する車両用電子制御システムであって、
前記車速センサを前記エンジン制御ユニットに接続しているLANケーブルに、前記車速センサが出力している車速データを変換して当該エンジン制御ユニットに送信するスピードリミッタ解除装置を介装し、
前記スピードリミッタ解除装置は、
前記車速センサが出力しているCAN通信上の車速データがスピードリミッタ解除領域である時に、予め設定されている制限速度より低い変換車速データを前記エンジン制御ユニットに送信する機能と、
メータ&パネルからの車速パルスから求めた車速がスピードリミッタ解除領域である時に、前記車速パルスを前回出力した車速パルスのまま前記エンジン制御ユニットに出力する機能と、
ATトランスミッションからの出力軸回転センサからのSP2+信号を前記エンジン制御ユニットに出力するときに、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時に、前記SP2+信号は前回の固定された信号を前記エンジン制御ユニットに出力する機能と、
ATトランスミッションからの入力軸回転センサからのNT+信号を前記エンジン制御ユニットに出力するときに、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時に、前記NT+信号は前回の固定された信号を前記エンジン制御ユニットに出力する機能と、
前記エンジン制御ユニットからのソレノイド制御信号をソレノイドに出力するときに、車速がスピードリミッタ解除領域にあることを示すフラグがONになっている時に、ソレノイド制御信号は前回の固定された信号を前記ソレノイドに出力する機能と、
を備えたことを特徴とする車両用電子制御システム。
An electronic control system for a vehicle in which an engine control unit and a vehicle speed sensor are connected by a LAN cable in which CAN communication is performed,
A LAN cable connecting the vehicle speed sensor to the engine control unit is provided with a speed limiter releasing device that converts vehicle speed data output from the vehicle speed sensor and transmits the converted data to the engine control unit.
The speed limiter canceling device is:
A function of transmitting converted vehicle speed data lower than a preset speed limit to the engine control unit when vehicle speed data on CAN communication output from the vehicle speed sensor is in a speed limiter release region;
When the vehicle speed obtained from the vehicle speed pulse from the meter & panel is the speed limiter release region, the function of outputting the vehicle speed pulse to the engine control unit as the vehicle speed pulse output last time;
When the SP2 + signal from the output shaft rotation sensor from the AT transmission is output to the engine control unit, the SP2 + signal is fixed when the flag indicating that the vehicle speed is in the speed limiter release region is ON. A function of outputting the processed signal to the engine control unit;
When the NT + signal from the input shaft rotation sensor from the AT transmission is output to the engine control unit, when the flag indicating that the vehicle speed is in the speed limiter release region is ON, the NT + signal is fixed last time. A function of outputting the processed signal to the engine control unit;
When the solenoid control signal from the engine control unit is output to the solenoid, and the flag indicating that the vehicle speed is in the speed limiter release region is ON, the solenoid control signal is the previous fixed signal. A function to output to
An electronic control system for a vehicle, comprising:
前記スピードリミッタ解除装置は、更に、CAN通信上の車速データを使用して、CAN対応車種とCAN以外の車種を判別する車種判別手段を備えたことを特徴とする請求項1に記載の車両用電子制御システム。   2. The vehicle according to claim 1, wherein the speed limiter canceling device further includes vehicle type determination means for determining a vehicle type other than CAN and a vehicle type other than CAN using vehicle speed data on CAN communication. Electronic control system. 前記スピードリミッタ解除装置は、更に、
CAN通信上の車速データを利用して、馬力と瞬間燃費を算出する手段と、
該算出されたデータ及び少なくとも車速を適宜表示する表示手段と
を備えたことを特徴とする請求項1に記載の車両用電子制御システム。
The speed limiter canceling device further includes:
Means for calculating horsepower and instantaneous fuel consumption using vehicle speed data on CAN communication;
The vehicle electronic control system according to claim 1, further comprising display means for appropriately displaying the calculated data and at least the vehicle speed.
JP2006227562A 2006-08-24 2006-08-24 Vehicular electronic control system Pending JP2008050987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006227562A JP2008050987A (en) 2006-08-24 2006-08-24 Vehicular electronic control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006227562A JP2008050987A (en) 2006-08-24 2006-08-24 Vehicular electronic control system

Publications (1)

Publication Number Publication Date
JP2008050987A true JP2008050987A (en) 2008-03-06

Family

ID=39235289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006227562A Pending JP2008050987A (en) 2006-08-24 2006-08-24 Vehicular electronic control system

Country Status (1)

Country Link
JP (1) JP2008050987A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016190634A (en) * 2016-04-27 2016-11-10 株式会社ユピテル Control system and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09189567A (en) * 1996-01-08 1997-07-22 H K S:Kk Display apparatus for information on vehicle
JP2000104583A (en) * 1998-09-29 2000-04-11 Nissan Diesel Motor Co Ltd Vehicle speed limit device
JP2002081345A (en) * 2000-06-22 2002-03-22 Denso Corp Vehicle integrated control system
JP2003049704A (en) * 2001-08-02 2003-02-21 Mitsubishi Motors Corp Vehicle specification identifying device
JP2004207782A (en) * 2002-12-20 2004-07-22 Hks Co Ltd Electronic control system for vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09189567A (en) * 1996-01-08 1997-07-22 H K S:Kk Display apparatus for information on vehicle
JP2000104583A (en) * 1998-09-29 2000-04-11 Nissan Diesel Motor Co Ltd Vehicle speed limit device
JP2002081345A (en) * 2000-06-22 2002-03-22 Denso Corp Vehicle integrated control system
JP2003049704A (en) * 2001-08-02 2003-02-21 Mitsubishi Motors Corp Vehicle specification identifying device
JP2004207782A (en) * 2002-12-20 2004-07-22 Hks Co Ltd Electronic control system for vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016190634A (en) * 2016-04-27 2016-11-10 株式会社ユピテル Control system and program

Similar Documents

Publication Publication Date Title
JP4069836B2 (en) Electronic control device for vehicle, electronic control unit, program and recording medium
EP0773650B1 (en) Multiplex distributed communication system having high sleep mode responsiveness
EP3360718B1 (en) Eco-drive assist apparatus, eco-drive assist information generating apparatus, eco-drive assist information calculation apparatus, eco-drive state display apparatus, eco-drive assist system, and eco-drive assist information calculation method
JP4753604B2 (en) Eco-run system, eco-run control device, and navigation device
CN1307379C (en) Fault diagnostic method for drive shaft speed sensor with automatic transmission
EP1992815A2 (en) Eco-Run control device and engine restart method
CN101628579A (en) Electronic transmission shifting architecture with maximized availability
CN104859533B (en) For artificially changing the system for the motor noise of motor vehicle felt
EP2644467B1 (en) Auxiliary braking device of vehicle
JP4326924B2 (en) Outboard motor identification number setting device and ship
EP1712424B1 (en) Vehicle control apparatus
JP2008050987A (en) Vehicular electronic control system
US20060031016A1 (en) Obstacle detecting apparatus
CN203332001U (en) Parking window closing system and vehicle provided with parking window closing system
CN103328865A (en) A method for selecting a starting gear
JPH10109515A (en) Air-conditioning control device of vehicular air-conditioning system
US20030004631A1 (en) Filter method for engine speed to vehicle speed ratios
CN108104960B (en) Hybrid power engine revolving speed communication strategy
JP2007137161A (en) Fuel consumption saving operation system
JP2005205997A (en) Vehicle-mounted system
JPH11257114A (en) Engine automatic stopping and starting device
JPH06200792A (en) Start/stop device for vehicle
JP2007184696A (en) On-vehicle electronic control system
JP4245160B2 (en) Vehicle door opening position control device
JP3647349B2 (en) Vehicle speed limiter

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101130

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110324