JPH02312418A - Communication equipment for vehicle use - Google Patents

Communication equipment for vehicle use

Info

Publication number
JPH02312418A
JPH02312418A JP13265289A JP13265289A JPH02312418A JP H02312418 A JPH02312418 A JP H02312418A JP 13265289 A JP13265289 A JP 13265289A JP 13265289 A JP13265289 A JP 13265289A JP H02312418 A JPH02312418 A JP H02312418A
Authority
JP
Japan
Prior art keywords
information
data
parity
communication
logical value
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
JP13265289A
Other languages
Japanese (ja)
Inventor
Katsumi Hosoya
細矢 克美
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP13265289A priority Critical patent/JPH02312418A/en
Publication of JPH02312418A publication Critical patent/JPH02312418A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To transmit more information by the limited number of bits by inverting a logical value of parity information in accordance with flag information related to communication. CONSTITUTION:Parity information for detecting a communication error is added to data information and transmitted. Also, this equipment is provided with an inverting means 4 for inverting a logical value of the parity information in accordance with flag information related to communication. For instance, at a usual time, when the flag information for showing abnormality of a system is obtained in a state that a transmission means 2 adds the parity information of an even number parity and transmits it, the logical value of the parity information is inverted by the inverting means 4, therefore, the parity information of an odd number parity is added to the data information. In such a way, a discriminating means 6 can discriminate the flag information and a communication error, based on the logical value of the parity information added to the data information. Accordingly, various information related to the data and the communication can be transmitted by the limited number of bits.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は車両用通信装置に関し、通信エラーに関する情
報及び通信に関するフラグ情報をも伝送し得る車両用通
信装置に関するものである。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a vehicle communication device, and more particularly, to a vehicle communication device that can also transmit information regarding communication errors and flag information regarding communication. .

(従来の技術) 近年においては車両内でのエレクトロニクス化が推し進
められており、複数の操作部の操作に関する情報等を少
ない信号線を用いて伝送し、CPUの制御によって対応
するアクチュエータを作動させるようにしている。
(Prior art) In recent years, the use of electronics in vehicles has been promoted, and information regarding the operation of multiple operation parts is transmitted using fewer signal lines, and the corresponding actuators are operated by control of the CPU. I have to.

このような情報を伝送するための従来の車両用通信装置
としては第5図に示すようなものが知られている。
As a conventional vehicle communication device for transmitting such information, the one shown in FIG. 5 is known.

CPU101はデータバス103及び信号線105を介
してパラレル/シリアル変換H107と接続され、複数
のビットで成るパラレルデータがデータバス103を介
して伝送されるとともに、誤り検出を行うためのパリテ
ィ情報、すなわち誤り検出専用のパリティビットの情報
が信号線105を介して伝送される。パラレル/シリア
ル変換器107は入力したパラレルデータをシリアルデ
ータに変換し、このシリアルデータに前記パリティビッ
トの情報を付加して出ツノする。PWM送信器109は
入力したシリアルのデータ情報をパルス幅変調して送信
ザる。この送信情報はPWM受信器111で復調された
後にシリアル/パラレル変換器113によってパラレル
のデータ情報に変換される。パラレルのデータ情報のう
ち、複数ビットのパラレルデータがデータバス115を
介して伝送されるとともに、パリティどットの情報が信
号線117を介して伝送される。CPU119は複数ビ
ットのパラレルデータを入力するとともに、パリティビ
ットの情報を入力し、このパリティビットの情報を考慮
してパリティチェックを行い通信エラーが生じたか否か
を判断する。
The CPU 101 is connected to a parallel/serial converter H 107 via a data bus 103 and a signal line 105, and parallel data consisting of a plurality of bits is transmitted via the data bus 103, and parity information for error detection, i.e. Parity bit information dedicated to error detection is transmitted via signal line 105. The parallel/serial converter 107 converts the input parallel data into serial data, adds the parity bit information to the serial data, and outputs the serial data. The PWM transmitter 109 pulse width modulates the input serial data information and transmits it. This transmission information is demodulated by a PWM receiver 111 and then converted into parallel data information by a serial/parallel converter 113. Among the parallel data information, multiple bits of parallel data are transmitted via the data bus 115, and parity dot information is transmitted via the signal line 117. The CPU 119 receives multiple bits of parallel data as well as parity bit information, performs a parity check in consideration of the parity bit information, and determines whether a communication error has occurred.

(発明が解決しようとする課題) しかしながら第5図に示す従来例はパリティチェックを
行うための専用のパリティビットを設けており、限られ
たビット数でデータ及び各種情報の伝送を行う場合には
、データの情報最が多くなると他の情報を伝送するだめ
のビットが確保できないという問題が生じた。
(Problem to be Solved by the Invention) However, the conventional example shown in FIG. A problem has arisen in that when the number of pieces of information in the data increases, it is not possible to secure enough bits to transmit other information.

本発明は上記課題に鑑みてなされたもので、限られたビ
ット数でデータ及び通信に関する各種情報を伝送するこ
とのできる車両用通信装置を提供づることを目的とする
The present invention has been made in view of the above problems, and an object of the present invention is to provide a communication device for a vehicle that can transmit various information regarding data and communication using a limited number of bits.

[発明の構成1 (課題を解決するための手段) 上記目的を達成するだめの本発明が提供する車両用通信
装置は、第1図に示すように通信エラーを検出するため
のパリティ情報をデータ情報に付加して伝送する伝送手
段2と、通信に関づるフラグ情報に応じて前記パリティ
情報の論理値を反転させる反転手段4と、前記伝送手段
から伝送されたデータ情報を受信したときに当該データ
情報に付加されたパリティ情報の論理値に基づいてフラ
グ情報及び通信エラーを判別する判別手段6とを有して
構成した。
[Structure 1 of the Invention (Means for Solving the Problems) A vehicle communication device provided by the present invention to achieve the above-mentioned object, as shown in FIG. a transmission means 2 for transmitting the parity information by adding it to the information; an inversion means 4 for inverting the logical value of the parity information according to flag information related to communication; The apparatus includes a determination means 6 for determining flag information and communication errors based on the logical value of parity information added to data information.

(作用) 本発明は通信エラーを検出するためのパリティ情報をデ
ータ情報に付加して伝送する。また通信に関するフラグ
情報に応じて前記パリティ情報の論理値を反転させる反
転手段4を有している。
(Operation) The present invention adds parity information for detecting communication errors to data information and transmits the data. It also includes inverting means 4 for inverting the logical value of the parity information in accordance with flag information regarding communication.

例えば通常時において伝送手段2が偶数パリティのパリ
ティ情報をデータ情報に付加して伝送している状態でシ
ステムの異常を示すフラグ情報が得られたときには、反
転手段4によってパリティ情報の論理値が反転されるの
で、奇数パリティのパリティ情報がデータ情報に付加さ
れる。これにより判別手段6はデータ情報に付加された
パリティ情報の論理値に基づいてフラグ情報及び通信エ
ラーを判別することができる。
For example, when flag information indicating a system abnormality is obtained while the transmission means 2 is transmitting data information with even parity added to the parity information in normal times, the logical value of the parity information is inverted by the inversion means 4. Therefore, parity information of odd parity is added to the data information. This allows the determining means 6 to determine flag information and communication errors based on the logical value of the parity information added to the data information.

(実施例) 以下図面を参照して本発明に係る一実施例を詳細に説明
する。
(Embodiment) An embodiment of the present invention will be described in detail below with reference to the drawings.

まず第2図を参照して構成を説明する。First, the configuration will be explained with reference to FIG.

CPtJlはデータバス3及び信号線5を介してパラレ
ル/シリアル変換器7と接続されている。
CPtJl is connected to a parallel/serial converter 7 via a data bus 3 and a signal line 5.

データバス3を介して複数のビットデータで成るパラレ
ルデータのデータ情報が伝送されるとともに、信号線5
を介してパリティビットの情報、すなわち誤り検出を行
うためのパリティ情報が伝送される。パラレル/シリア
ル変換器7はPWM送信器9と接続されており、入力し
たパラレルデー夕をシリアルデータに変換し、このシリ
アルデータに前記パリティ情報を付加してPWM送信器
9へ出力する。
Data information of parallel data consisting of a plurality of bit data is transmitted via the data bus 3, and the signal line 5
Parity bit information, that is, parity information for error detection, is transmitted via the . The parallel/serial converter 7 is connected to the PWM transmitter 9, converts the input parallel data into serial data, adds the parity information to the serial data, and outputs the serial data to the PWM transmitter 9.

ここでパリティ情報について説明すると、例えば通常時
において偶数パリティによる誤り検出が設定されている
場合には、複数のビットデータで成るデータ情報のうち
、Hレベルのごットデータの数を検出し、このHレベル
のビットデータの数が奇数である場合はパリティ情報の
論理値をHレベルに設定する。逆に1ルベルのビットデ
ータの数が偶数である場合にはパリティ情報の論理値を
Lレベルに設定する。またシステムの非定常を示すフラ
グ情報が得られたとぎにはCPjJlがパリティ情報の
論理値を反転させるので、パラレル/シリアル変換器7
は奇数パリティによる誤り検出の時と同様なパリティ情
報をデータ情報へ付加することになる。
To explain the parity information here, for example, when error detection using even parity is set in normal times, the number of H-level bit data is detected among the data information consisting of multiple bit data, and this H-level data is detected. If the number of level bit data is odd, the logic value of the parity information is set to H level. Conversely, if the number of bit data of one level is an even number, the logical value of the parity information is set to L level. Furthermore, as soon as flag information indicating that the system is unsteady is obtained, CPjJl inverts the logic value of the parity information, so the parallel/serial converter 7
In this case, parity information similar to that used in error detection using odd parity is added to data information.

PWM送信器9はパルス幅変調回路及び送信回路を有し
ており、入力したシリアルデータのデータ情報及びこの
データ情報に付加されたパリティ6一 情報をパルス幅変調してPWM受信器11へ送出する。
The PWM transmitter 9 has a pulse width modulation circuit and a transmission circuit, and pulse width modulates the data information of the input serial data and the parity 6 information added to this data information and sends it to the PWM receiver 11. .

PWM受信器11は受信回路及び復調回路を有しており
、前記PWM送信器9からの送信情報、すなわちデータ
情報及びこのデータ情報に付加されたパリティ情報を受
信すると元の信号に復調する。PWM受信器11はシリ
アル/パラレル変換器13と接続され、前記復調した信
号すなわち受信情報をシリアル/パラレル変換器13へ
出力する。
The PWM receiver 11 has a receiving circuit and a demodulating circuit, and upon receiving the transmitted information from the PWM transmitter 9, that is, the data information and the parity information added to this data information, demodulates it into the original signal. The PWM receiver 11 is connected to a serial/parallel converter 13 and outputs the demodulated signal, that is, received information to the serial/parallel converter 13.

シリアル/パラレル変換器13は入力したシリアルの受
信情報をパラレルの情報に変換する。またシリアル/パ
ラレル変換器13はデータバス15及び信号線17を介
してcpu 19と接続されており、前記変換したパラ
レルの情報のうち、複数のごットデータで成るパラレル
データのデータ情報がデータパスコ5を介して伝送され
るとともに、こ゛のデータ情報に付加されたパリティ情
報が信号線17を介して伝送される。
The serial/parallel converter 13 converts input serial reception information into parallel information. Further, the serial/parallel converter 13 is connected to the CPU 19 via a data bus 15 and a signal line 17, and among the converted parallel information, data information of parallel data consisting of a plurality of pieces of data is transferred to the data path controller 5. At the same time, parity information added to this data information is transmitted via the signal line 17.

CPU19はデータ情報及びパリティ情報を入力すると
、これらの情報のパリティチェックを実行し通信エラー
が生じたか否かを判断する。例えばデータ情報とパリテ
ィ情報との複数のビットデータのうち、l」レベルのビ
ットデータの数が偶数である場合には適正に通信がなさ
れたことを判断する。またパリティ情報の論理値が反転
している場合、すなわちデータ情報とパリティ情報との
全てのごットデータのうち、トルベルのビットデータの
数が奇数である場合には、システムの非定常若しくは通
信エラーが生じたことを判断する。
When the CPU 19 receives data information and parity information, it executes a parity check on these information to determine whether a communication error has occurred. For example, if the number of l'' level bit data among a plurality of bit data of data information and parity information is an even number, it is determined that communication has been properly performed. In addition, if the logical value of the parity information is inverted, that is, if the number of Trubel bit data is an odd number among all the data information and parity information, the system may be unsteady or a communication error may occur. judge what has happened.

次に第3図及び第4図を参照して作用を説明する。Next, the operation will be explained with reference to FIGS. 3 and 4.

まずシステムの正常時における作用を説明する。First, the operation of the system during normal operation will be explained.

第3図(A)に示すような元データがCPU 1から出
ノjされる。すなわちトルベルのビットデータb1.し
レベルのビットデータb 2.トルベルのビットデータ
b3.Lレベルのビットデータb4゜b 5.b 6.
トルベルのビットデータb8がデータバス3を介して伝
送されるとともに、ビットデータb6とじットデータb
8とのあいだのタイミングでトルベルのフラグデータF
eが信号線5を介して伝送される。
Original data as shown in FIG. 3(A) is output from the CPU 1. That is, Trubel's bit data b1. level bit data b 2. Trubel bit data b3. L level bit data b4°b 5. b6.
The bit data b8 of Trubel is transmitted via the data bus 3, and the bit data b6 and the bit data b
At the timing between 8 and 8, Trubel's flag data F
e is transmitted via signal line 5.

第4図に示すステップ21ではシステムの異常フラグビ
ット、すなわちフラグデータFeの値に基づいてシステ
ムが正常であるか又は非定常であるかを判断する。ステ
ップ21においてフラグデータFeの値がトルベルであ
る場合にはシステムが正常であることを判断してステッ
プ23へ進む。
In step 21 shown in FIG. 4, it is determined whether the system is normal or unsteady based on the value of the abnormality flag bit of the system, that is, the flag data Fe. If the value of the flag data Fe is Torbel in step 21, it is determined that the system is normal, and the process proceeds to step 23.

ステップ23ではフラグデータFe以外のビットデータ
のうち、トルベルのビットデータの数をカウントする。
In step 23, the number of Trubel bit data among the bit data other than the flag data Fe is counted.

続いてステップ25ではトルベルのビットデータの数が
偶数であるか否かを判別しており、奇数である場合はス
テップ27へ進み第3図(B)に示す如くパリティ情報
のビット、すなわちパリティビットbwの論理値をトル
ベルに設定する。また魂にステップ25においてトルベ
ルのビットデータの数が偶数である場合にはステップ2
9へ進みパリティビットbwの論理値をトルベルに設定
する。
Next, in step 25, it is determined whether the number of bit data of the Trubel is an even number or not. If it is an odd number, the process proceeds to step 27 and the bits of parity information, that is, the parity bit, are determined as shown in FIG. 3(B). Set the logical value of bw to trubel. Also, if the number of Trubel bit data is an even number in step 25, step 2
Proceed to step 9 and set the logical value of the parity bit bw to trubel.

これらの複数のごットデータで成るデータ情報と、この
データ情報に付加されたパリティ情報とがCPLJ19
へ入力すると、CPU 19はパリティ情報の論理値に
基づいて通信エラーが生じたか否かを判断する。すなわ
ちCPU19はデータ情報とパリティ情報とのパリティ
チェックを実行し、これらの情報のうち、トルベルのビ
ットデータの数が偶数である場合には適正に通信がなさ
れたことを判断する。
The data information consisting of these multiple pieces of data and the parity information added to this data information are CPLJ19
, the CPU 19 determines whether a communication error has occurred based on the logical value of the parity information. That is, the CPU 19 executes a parity check between data information and parity information, and determines that communication has been properly performed if the number of Trubel bit data among these pieces of information is an even number.

次にシステムが非定常である場合の作用を説明する。Next, the effect when the system is unsteady will be explained.

CPU1はシステムが非定常である場合には第3図(C
)に示す如くトルベルのフラグデータFeを出力づ−る
When the system is unsteady, CPU1
), outputs the Trubel flag data Fe.

第4図に示すステップ21では1」レベルのフラグ情報
Feに基づいてシステムが非定常であることを判断して
ステップ33へ進む。
In step 21 shown in FIG. 4, it is determined that the system is unsteady based on the flag information Fe at the 1'' level, and the process proceeds to step 33.

ステップ33ではフラグデータFe以外のビットデータ
のうら、トルベルのピッ1〜データの数をカウントする
。続いてステップ35ではトルベルのビットデータの数
が偶数であるか否かを判別し、奇数である場合にはステ
ップ37へ進み第3図(D)に示イパリティビットbw
の論理値をLレベルに設定する。。また逆にステップ3
5においてHレベルのビットデータの数が偶数である場
合にはステップ39へ進みパリティビットbwの論理値
をHレベルに設定する。
In step 33, the number of bit data other than the flag data Fe, and the number of bits 1 to 1 of the trubel, is counted. Next, in step 35, it is determined whether the number of bit data of the Trubel is an even number or not. If it is an odd number, the process proceeds to step 37 and the parity bit bw shown in FIG. 3(D) is determined.
The logical value of is set to L level. . Conversely, step 3
If the number of H level bit data is an even number in step 5, the process advances to step 39 and the logic value of the parity bit bw is set to the H level.

これらの複数のビットデータで成るデータ情報と、この
データ情報に付加されたパリティ情報とがCPU19へ
入力すると、CPU19はパリティ情報の論理値に基づ
いてフラグ情報又は通信エラーを判別する。すなわちC
PU19はデータ情報とパリティ情報とのパリティチェ
ックを実行し、これらの情報のうち、Hレベルのビット
データの数が奇数である場合には通信エラーが生じたか
若しくはシステムが正常でないことを判別する。
When the data information consisting of these plurality of bit data and the parity information added to this data information are input to the CPU 19, the CPU 19 determines flag information or a communication error based on the logical value of the parity information. That is, C
The PU 19 executes a parity check between the data information and the parity information, and determines that a communication error has occurred or that the system is not normal if the number of H level bit data is an odd number.

以上の如くシステムが正常でない場合はパリティビット
の論理値を反転させるようにしたので、この単一のパリ
ティビットに対してフラグ情報と通信エラーに関する情
報とを含ませることができる。
As described above, since the logic value of the parity bit is inverted when the system is not normal, this single parity bit can contain flag information and information regarding communication errors.

尚、前述した実施例では偶数パリティによる誤り検出が
設定されている場合を例にとって説明したが、奇数パリ
ティによる誤り検出が設定される場合についても適用す
ることができる。
In the above-described embodiment, the case where error detection using even parity is set is explained as an example, but the present invention can also be applied to a case where error detection using odd parity is set.

[発明の効果] 以上説明してきたように本発明によれば、通信に関する
フラグ情報に応じてパリティ情報の論理値を反転させる
ように構成したので、限られたビット数で更に多くの情
報を伝送することができる。
[Effects of the Invention] As explained above, according to the present invention, since the logical value of parity information is inverted according to communication-related flag information, more information can be transmitted using a limited number of bits. can do.

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

第1図はクレーム対応図、第2図は本発明に係る一実施
例を示したブロック図、第3図は伝送されるデータ情報
とパリティ情報を示した信号波形図、第4図は第2図に
示した実施例の作用を示したフローチャート、第5図は
従来例を示したブロック図である。 2・・・伝送手段 4・・・反転手段 6・・・判別手段
FIG. 1 is a claim correspondence diagram, FIG. 2 is a block diagram showing an embodiment of the present invention, FIG. 3 is a signal waveform diagram showing transmitted data information and parity information, and FIG. FIG. 5 is a flow chart showing the operation of the embodiment shown in the figure, and FIG. 5 is a block diagram showing a conventional example. 2...Transmission means 4...Inversion means 6...Discrimination means

Claims (1)

【特許請求の範囲】 通信エラーを検出するためのパリテイ情報をデータ情報
に付加して伝送する伝送手段と、 通信に関するフラグ情報に応じて前記パリテイ情報の論
理値を反転させる反転手段と、 前記伝送手段から伝送されたデータ情報を受信したとき
に当該データ情報に付加されたパリテイ情報の論理値に
基づいてフラグ情報及び通信エラーを判別する判別手段
と、 を有することを特徴とする車両用通信装置。
[Scope of Claims] Transmission means for adding parity information to data information and transmitting the data information for detecting communication errors; inversion means for inverting the logical value of the parity information according to flag information regarding communication; A communication device for a vehicle, comprising: determination means for determining flag information and a communication error based on the logical value of parity information added to the data information when the data information transmitted from the means is received. .
JP13265289A 1989-05-29 1989-05-29 Communication equipment for vehicle use Pending JPH02312418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13265289A JPH02312418A (en) 1989-05-29 1989-05-29 Communication equipment for vehicle use

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13265289A JPH02312418A (en) 1989-05-29 1989-05-29 Communication equipment for vehicle use

Publications (1)

Publication Number Publication Date
JPH02312418A true JPH02312418A (en) 1990-12-27

Family

ID=15086329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13265289A Pending JPH02312418A (en) 1989-05-29 1989-05-29 Communication equipment for vehicle use

Country Status (1)

Country Link
JP (1) JPH02312418A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0951326A (en) * 1995-08-04 1997-02-18 Nec Corp Information transmitting system/method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63102517A (en) * 1986-10-20 1988-05-07 Nec Corp Transmission system for equipment fault signal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63102517A (en) * 1986-10-20 1988-05-07 Nec Corp Transmission system for equipment fault signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0951326A (en) * 1995-08-04 1997-02-18 Nec Corp Information transmitting system/method

Similar Documents

Publication Publication Date Title
US4347609A (en) Method and system for transmission of serial data
KR890000031B1 (en) Automatic train control apparatus
JPH02312418A (en) Communication equipment for vehicle use
US5285459A (en) HDB3 code violation detector
US4866705A (en) Data transmission system with means for distributing collision signals via the transmission line
JPH0918461A (en) Data receiver
JPH07264263A (en) Serial communication interface device
JP2864611B2 (en) Semiconductor memory
JPH0614530Y2 (en) Vehicle electrical component control device
JPH0231828B2 (en)
JPH04267631A (en) Parity bit addition system
KR100225043B1 (en) Multiple serial communication method by using interrupt and its apparatus
JP2576539B2 (en) I / O signal monitoring circuit
JPH02134035A (en) Error rate checker for digital signal transmission system
JPH0124456B2 (en)
JPH0353642A (en) Asynchronous serial data transmitter and transmission system and transmission method for same
JPH06244822A (en) Data communication system
JPH05130107A (en) Data collision detector
JPH034623A (en) Serial data transmission system
JPH03209941A (en) Data transmitting method
JPS594907B2 (en) remote printing system
JPH05191414A (en) Data collision deciding device
JPS62137938A (en) Data transmission equipment
JPS59135561A (en) Detecting and transmitting circuit of circuit control signal
JPH06296294A (en) Communication control equipment