JPH04203343A - Serial communication changing-over - Google Patents

Serial communication changing-over

Info

Publication number
JPH04203343A
JPH04203343A JP32917290A JP32917290A JPH04203343A JP H04203343 A JPH04203343 A JP H04203343A JP 32917290 A JP32917290 A JP 32917290A JP 32917290 A JP32917290 A JP 32917290A JP H04203343 A JPH04203343 A JP H04203343A
Authority
JP
Japan
Prior art keywords
communication
control device
changing
over
signal
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
JP32917290A
Other languages
Japanese (ja)
Inventor
Seiichi Kikuchi
菊地 誠一
Takashi Shiraishi
隆 白石
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.)
Hitachi Ltd
Hitachi Automotive Systems Engineering Co Ltd
Original Assignee
Hitachi Automotive Engineering Co Ltd
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Automotive Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Automotive Engineering Co Ltd
Priority to JP32917290A priority Critical patent/JPH04203343A/en
Publication of JPH04203343A publication Critical patent/JPH04203343A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make a communication with a device of different communication speed by the identical communication line, by selectively-changing over a signal inputted into a terminal for serial communication provided in a micro-computer. CONSTITUTION:One of communication signals from a diagnosis tool 5 is connected to a changing-over circuit 3 in an engine control device 1 and the other is connected to the input port 8 of CPU2 through a waveform shaping circuit 6. In the CPU2, the condition of the input port 8 is monitored, and according to the condition, a changing-over signal of 'high' or 'low' is outputted to the changing-over circuit 3 from an output port 7 to control the changing-over circuit 3. In the changing-over circuit 3, when 'low' is inputted as a changing- over signal, a transmission control device 4 is selected and when 'high' is selected, the diagnosis tool 5 is selected. It is thus possible to make a communication with two external devices of different communication speed from each other by one serial communication line and change-over the external devices which make a communication with no need of a signal line for communication changing-over or the like.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はエンジン制御装置の備える1組の通信回線によ
って外部に接続される複数の装置との通信切替方法に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a communication switching method with a plurality of devices connected to the outside through a set of communication lines provided in an engine control device.

〔従来の技術〕[Conventional technology]

従来のエンジン制御装置において主局となるエンジン制
御装置に接続される複数の従局となる外部装置と通信を
行う場合は、公開昭63−204939号公報に記載の
ように主局となるエンジン制御装置が通信を行いたい従
局となる外部装置をそれぞれに割り付けられた呼び出し
番号によって呼び出し、従局がそれに答えることにより
通信を行っていた。
In a conventional engine control device, when communicating with multiple external devices that are slave stations connected to an engine control device that is a master station, the engine control device that is a master station is used as described in Publication No. 63-204939. Communication was carried out by calling external devices that would become slave stations with which it wanted to communicate using call numbers assigned to each device, and the slave stations answered the calls.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら上記従来技術は、通信速度の異なる装置間
の通信方法については考慮されておらず一組の通信回線
を利用して、エンジン制御装置とトランスミッション制
御装置間のような高速シリアル通信を行う一方、ディー
ラ−でのチエツクの為に診断ツール等の低速通信を行い
たい場合、上記の従来技術では同一の回線でお互いに通
信相手を呼び出しながら行っているという理由で通信速
度を切替えることができなかった。
However, the above-mentioned conventional technology does not take into consideration the communication method between devices with different communication speeds, and while a set of communication lines is used to perform high-speed serial communication such as between an engine control device and a transmission control device, If you want to perform low-speed communication with a diagnostic tool, etc. for checking at a dealer, it is not possible to switch the communication speed with the above-mentioned conventional technology because both devices call the other party on the same line. .

本発明の目的は他の制御装置と一対一で通信を行ってい
るエンジン制御装置において同一の通信回線にて通信速
度の異なる装置との通信を行うことを可能にしたエンジ
ン制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an engine control device that communicates with other control devices on a one-to-one basis and is capable of communicating with devices having different communication speeds through the same communication line. It is in.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、通信先を切替えるための切
替回路を主局側装置内に設け、かつ通信先を切替えるた
めに通信信号の中に切替要求信号を設けて、これを主局
側装置が認識して切替回路を作動させ、さらに通信速度
の異なる装置に対応するために切替要求信号を検出した
時は通信速度を設定し直したのち、・切替回路に対し切
替信号を出す構成としたものである。
In order to achieve the above purpose, a switching circuit for switching the communication destination is provided in the main station side device, and a switching request signal is provided in the communication signal to switch the communication destination, and this is sent to the main station side device. recognizes the device and activates the switching circuit, and when a switching request signal is detected to support devices with different communication speeds, the communication speed is reset, and then a switching signal is issued to the switching circuit. It is something.

〔作用〕[Effect]

エンジン制御装置のマイコンにて通信信号の中に発生し
た切替要求信号を検出すると通信速度を設定し直した後
、切替回路に対して通信相手を切替えるように動作する
。それによって通信速度の異なる相手を一組の通信線を
用いて接続することができ、また通信信号と切替要求信
号とを同一の通信線にて送信させることにより切替要求
信号専用の信号線を設けることなく通信先を切替えられ
るので、通信線を増すことなく本構成を可能とすること
ができる。
When the microcomputer of the engine control device detects the switching request signal generated in the communication signal, it resets the communication speed and then operates the switching circuit to switch the communication partner. This allows parties with different communication speeds to be connected using one set of communication lines, and by transmitting communication signals and switching request signals over the same communication line, a signal line exclusively for switching request signals is provided. Since the communication destination can be switched without any trouble, this configuration can be achieved without increasing the number of communication lines.

〔実施例〕〔Example〕

以下1本発明の一実施例を第1図〜第3図により説明す
る。第1図は本発明の全体構成図で、1はエンジン制御
装置、2はCPU、3は切替回路、4はトランスミッシ
ョン制御装置、5は診断ツールである。通常、エンジン
制御装置1はトランスミッション制御装置4と1対1の
通信を行っている診断ツール5はディーラ−などで故障
診断等を行う時のみに接続するものである。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 3. FIG. 1 is an overall configuration diagram of the present invention, in which 1 is an engine control device, 2 is a CPU, 3 is a switching circuit, 4 is a transmission control device, and 5 is a diagnostic tool. Normally, the engine control device 1 communicates with the transmission control device 4 on a one-to-one basis, and the diagnostic tool 5 is connected only when diagnosing a failure at a dealer or the like.

診断ツール5からの通信信号はエンジン制御装置内1で
一方は切替回路3に、もう一方は波形整形回路6を介し
てCPU2の入力ポート8に接続される。CPU2では
入力ポート8の状態をモニタし、状態に応じて出力ポー
ドアから切替回路3に対して第2図の10に示すHig
hまたはLowの切替信号を出力し、組替回路3を制御
する。切替回路3では切替信号10としてLovが入力
されるとトランスミッション制御装置4を選択し、 H
ighが入力されると診断ツール5を選択する。
A communication signal from the diagnostic tool 5 is connected in the engine control device 1 to the switching circuit 3 on one side and to the input port 8 of the CPU 2 via the waveform shaping circuit 6 on the other side. The CPU 2 monitors the state of the input port 8, and depending on the state, outputs a high signal from the output port door to the switching circuit 3 as shown in 10 in FIG.
A switching signal of h or Low is output to control the recombination circuit 3. In the switching circuit 3, when Lov is input as the switching signal 10, the transmission control device 4 is selected, and H
When igh is input, the diagnostic tool 5 is selected.

切替方法を具体的に説明する。The switching method will be specifically explained.

通常の状態では、CPU2の入力ポートはLowでかつ
切替回路がトランスミッション制御装置を選択するよう
にCPU2の出力ポードアから切替回路3に対してLo
wを出力しており、エンジン制御装置1とトランスミッ
ション制御装置4との一対一の通信を実現している。こ
の状態から診断ツール5に通信を切替える時は、第2図
の9に示す通信信号のように診断ツール5より所定期間
Hi g h信号を出力する。CPU2では診断ツール
5からの通信信号9を2ms毎にモニタしており、所定
時間以上Highの状態を検出したら診断ツール5が接
続された判断して、まず診断ツール5に合わせて通信速
度を設定し直し、そして切替回路3に対−5= して診断ツール5を選択するように切替信号10として
Highを出力する。診断ツールは上記の所定期間Hi
ghを出力した後に通信を開始する。
Under normal conditions, the input port of the CPU 2 is Low, and the output port of the CPU 2 is Low to the switching circuit 3 so that the switching circuit selects the transmission control device.
w, thereby realizing one-to-one communication between the engine control device 1 and the transmission control device 4. When switching communication to the diagnostic tool 5 from this state, the diagnostic tool 5 outputs a High signal for a predetermined period of time, as shown in the communication signal 9 in FIG. The CPU 2 monitors the communication signal 9 from the diagnostic tool 5 every 2 ms, and if it detects a high state for a predetermined time or longer, it determines that the diagnostic tool 5 is connected, and first sets the communication speed according to the diagnostic tool 5. Then, it outputs High as the switching signal 10 to the switching circuit 3 so that the diagnostic tool 5 is selected by -5=. The diagnostic tool remains Hi for the specified period above.
Communication starts after outputting gh.

また、診断ツール5での通信を終了し1通常の状態に戻
すためには診断ツール5より終了コマンドを送信し、こ
れを受信したCPU2はまずトランスミッション制御装
置4に合わせて通信速度を設定し直し、そして切替回路
3に対してトランスミッション制御装置4を選択する信
号を出力する。
In addition, in order to end the communication with the diagnostic tool 5 and return to the normal state, the diagnostic tool 5 sends a termination command, and upon receiving this, the CPU 2 first resets the communication speed according to the transmission control device 4. , and outputs a signal for selecting the transmission control device 4 to the switching circuit 3.

これらの一連の処理内容を第3図のフローチャートを用
いて説明する。
The contents of a series of these processes will be explained using the flowchart shown in FIG.

まず、ステップ100にて診断ツールと通信を行ってい
るか否かを判定する。通信を行っていない場合はCPU
2の出力ポードアはLot+であり、その時はステップ
101に進む。また、通信を行っている場合はステップ
108に進む。ステップ101では診断ツールから通信
の切替要求が有るか否か判定する。切替要求が有る場合
はCPU2の入力ポート8はHighであり、その時は
ステップ102に進み、切替要求が無い場合はステップ
=6− 106に進む。ステップ102ではある一定期間以上C
PUの入力ボート8がHighの状態、つまり切替要求
が有る状態を継続していたかを判定し、継続していたら
ステップ103に進み、継続していない場合はステップ
107に進む。ステップ103ではトランスミッション
制御装置に対して通信停止要求を出し、ステップ104
に進む。ステップ1.04では診断ツール5に合わせて
通信速度の設定を行いステップ105に進む。ステップ
105ではCPU2の出力ポードアをHighとし。
First, in step 100, it is determined whether or not communication is being performed with the diagnostic tool. CPU if not communicating
The output port door of No. 2 is Lot+, in which case the process proceeds to step 101. If communication is being performed, the process advances to step 108. In step 101, it is determined whether there is a communication switching request from the diagnostic tool. If there is a switching request, the input port 8 of the CPU 2 is High, in which case the process proceeds to step 102, and if there is no switching request, the process proceeds to step 6-106. In step 102, C
It is determined whether the input port 8 of the PU continues to be in a High state, that is, a state in which there is a switching request. If it continues, the process proceeds to step 103; if not, the process proceeds to step 107. In step 103, a communication stop request is issued to the transmission control device, and in step 104
Proceed to. In step 1.04, the communication speed is set according to the diagnostic tool 5, and the process proceeds to step 105. In step 105, the output port door of the CPU 2 is set to High.

通信相手を診断ツール5に切替えステップ106に進む
。ステップ106では切替要求が有る状態を継続してい
たか判定するタイマーの初期化、つまりタイマーをクリ
アし、ステップ107ではタイマーのカウントアツプを
行う。
The communication partner is switched to the diagnostic tool 5 and the process proceeds to step 106. In step 106, a timer for determining whether a state in which a switching request has been made is initialized, that is, the timer is cleared, and in step 107, the timer is counted up.

ステップ108は、診断ツール5と通信中に通信終了コ
マンドを受信したか否か判定する。通信終了コマンドを
受信した場合はステップ109に進む。ステップ109
ではトランスミッション制御袋w4に合わせて通信速度
の設定を行い、ステップ110に進む。ステップ110
ではCPU2の出力ポードアをLowとし、通信相手を
トランスミッション制御装置4に切替え、ステップ11
1に進む。ステップ111ではトランスミッション制御
装置に対して通信開始要求を出す。
In step 108, it is determined whether a communication termination command has been received during communication with the diagnostic tool 5. If a communication end command is received, the process advances to step 109. Step 109
Then, the communication speed is set according to the transmission control bag w4, and the process proceeds to step 110. Step 110
Then, set the output port door of the CPU 2 to Low, switch the communication partner to the transmission control device 4, and proceed to step 11.
Go to 1. In step 111, a communication start request is issued to the transmission control device.

〔発明の効果〕〔Effect of the invention〕

本発明によれば1つのシリアル通信回線にて通信速度の
全く異なる2つの外部装置と通信を行うことができる。
According to the present invention, it is possible to communicate with two external devices having completely different communication speeds through one serial communication line.

さらにシリアル通信回線を使用して切替要求信号を送付
することにより、通信切替用信号線などを設けることな
く、通信を行う外部装置を切替えることが可能となる。
Furthermore, by sending a switching request signal using a serial communication line, it becomes possible to switch external devices for communication without providing a communication switching signal line or the like.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例のシステム構成図、第2図は
第1図で通信を行う外部装置を切替える時のタイミング
・チャート図、第3図は通信切替えを行うフローチャー
ト図である。 1・・・制御装置、2・・・CPU、3・・・切替回路
、4・・・トランスミッション制御装置、5・・・診断
ツール、6・・・波形整形回路、7・・・出力ポート、
8・・・入カポ−ト、9・・・パソコン等からの通信信
号、10・・・切替信号。 →
FIG. 1 is a system configuration diagram of an embodiment of the present invention, FIG. 2 is a timing chart when switching external devices with which communication is performed in FIG. 1, and FIG. 3 is a flowchart for switching communications. DESCRIPTION OF SYMBOLS 1... Control device, 2... CPU, 3... Switching circuit, 4... Transmission control device, 5... Diagnostic tool, 6... Waveform shaping circuit, 7... Output port,
8... Input port, 9... Communication signal from a personal computer, etc., 10... Switching signal. →

Claims (1)

【特許請求の範囲】 1、外部に接続される装置とシリアル通信を行うエンジ
ン制御装置において、マイクロコンピュータに具備され
たシリアル通信用端子に入力される信号を選択して切替
ることにより、複数の外部装置との通信を可能としたこ
とを特徴とするエンジン制御装置。 2、請求項1項に記載したエンジン制御装置において、
1組のシリアル通信回線に通信の切替を要求する信号を
設けたことを特徴とするシリアル通信切替方法。 3、外部からの2組以上の通信速度の異なる装置に対し
、一組の通信回線を用いて外部信号を切替えて通信を行
えエンジン制御装置において、通信速度を設定してから
次に外部信号を切替ることを特徴とするエンジン制御装
置。
[Claims] 1. In an engine control device that performs serial communication with an externally connected device, a plurality of An engine control device characterized by enabling communication with an external device. 2. In the engine control device according to claim 1,
A serial communication switching method characterized in that a signal requesting communication switching is provided on one set of serial communication lines. 3. Use one set of communication lines to communicate with two or more external devices with different communication speeds by switching the external signals.In the engine control device, set the communication speed and then transmit the external signal. An engine control device characterized by switching.
JP32917290A 1990-11-30 1990-11-30 Serial communication changing-over Pending JPH04203343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32917290A JPH04203343A (en) 1990-11-30 1990-11-30 Serial communication changing-over

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32917290A JPH04203343A (en) 1990-11-30 1990-11-30 Serial communication changing-over

Publications (1)

Publication Number Publication Date
JPH04203343A true JPH04203343A (en) 1992-07-23

Family

ID=18218450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32917290A Pending JPH04203343A (en) 1990-11-30 1990-11-30 Serial communication changing-over

Country Status (1)

Country Link
JP (1) JPH04203343A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848856B2 (en) 2006-11-27 2010-12-07 Denso Corporation Communication system and electronic control unit including communication system for vehicle control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848856B2 (en) 2006-11-27 2010-12-07 Denso Corporation Communication system and electronic control unit including communication system for vehicle control

Similar Documents

Publication Publication Date Title
JPH021671A (en) Load control system for packet switchboard
CA1264863A (en) Transmit-secure non-blocking circuit-switched local area network
JPH04203343A (en) Serial communication changing-over
JP2002094600A (en) Communication equipment and method
CA2212072A1 (en) Method for dynamic channel allocation in radio systems, especially for wireless local loop (wll) systems, and devices for carrying out the method
JP3369035B2 (en) Communication control method between microcontrollers
CN215067812U (en) CAN network based on CAN controller and gate circuit are constituteed
KR900004030B1 (en) Multi access network device
JP4012340B2 (en) CTI adapter, connection device, and system
JPS63202154A (en) Serial communication system
JPH01253358A (en) Composite telephone system
JPS63250237A (en) Multi-protocol control system
JPS62200856A (en) Voice signal and data transmission system
JPH01168151A (en) Dss console device
JPH0336837A (en) Shared line connection system
JPH04310035A (en) Omnibus teleprinter system
JPH01106643A (en) Radio telephone set
JPS588622B2 (en) Data Densou Houshiki
JPS6146645A (en) Data transmission equipment
JPH01129695A (en) Key telephone system
JPS63228897A (en) Key telephone set
JPH01146496A (en) Connection control system
JPS61135258A (en) Register system for terminal attribute information for exchange
JPS6327135A (en) Transmission control equipment
JPH01155741A (en) Serial data communication system