JPH084256B2 - Data transmission method - Google Patents

Data transmission method

Info

Publication number
JPH084256B2
JPH084256B2 JP19950086A JP19950086A JPH084256B2 JP H084256 B2 JPH084256 B2 JP H084256B2 JP 19950086 A JP19950086 A JP 19950086A JP 19950086 A JP19950086 A JP 19950086A JP H084256 B2 JPH084256 B2 JP H084256B2
Authority
JP
Japan
Prior art keywords
level
signal
time
vehicle height
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.)
Expired - Fee Related
Application number
JP19950086A
Other languages
Japanese (ja)
Other versions
JPS6356034A (en
Inventor
浩 井口
憲児 早瀬
孝一 近藤
謙 浅見
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Aisin Corp
Original Assignee
Aisin Seiki Co Ltd
Toyota Motor Corp
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 Aisin Seiki Co Ltd, Toyota Motor Corp filed Critical Aisin Seiki Co Ltd
Priority to JP19950086A priority Critical patent/JPH084256B2/en
Publication of JPS6356034A publication Critical patent/JPS6356034A/en
Publication of JPH084256B2 publication Critical patent/JPH084256B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Selective Calling Equipment (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Vehicle Body Suspensions (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、2以上の任意の自然数を表わす数をn(以
下、nの意味は同じ)とすると、一本の信号ラインでn
種の情報を伝送するデータ伝送に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] In the present invention, when a number representing an arbitrary natural number of 2 or more is n (hereinafter, the meaning of n is the same), n is used in one signal line.
It relates to data transmission for transmitting seed information.

〔従来の技術〕[Conventional technology]

例えば、ある種の車輛のハイトコントロールシステム
においては、車高センサにより車高を読み取り、読み取
つたデータを制御装置に伝送して、車高の調整を行なっ
ている。
For example, in a certain type of vehicle height control system, the vehicle height is read by a vehicle height sensor, and the read data is transmitted to a control device to adjust the vehicle height.

第15図を参照されたい。この装置は、車体と車軸との
間の距離に応じて回動する、16種の回動角を示すスリッ
トパターンを配設したスリツト板Sli、および、該スリ
ット板Sliを挟んで対向する、発光ダイオードL1〜L4お
よびフォトトランジスタPH1〜PH4を備えて、フォトトラ
ンジスタPH1〜PH4のオン/オフにより、4ビットの信号
として車高を読み取る。読み取った信号は、4ビットの
パラレルデータとして、4本の信号ラインを介して制御
装置に伝送される。
See FIG. This device includes a slit plate Sli provided with slit patterns showing 16 kinds of rotation angles, which rotate according to a distance between a vehicle body and an axle, and a light emitting device which faces the slit plate Sli with the slit plate Sli interposed therebetween. The diodes L1 to L4 and the phototransistors PH1 to PH4 are provided, and the vehicle height is read as a 4-bit signal by turning on / off the phototransistors PH1 to PH4. The read signal is transmitted as 4-bit parallel data to the control device via the four signal lines.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上記の場合、4本の信号ラインのうちの1本に断線又
は短絡を生ずると、データは正確に伝達されない。この
種の障碍は、振動や温湿度等に関して苛酷な条件の下に
置かれる車輛においては、特に考慮しなければならない
事項である。しかしながら、第15図に示した装置におい
ては、障碍発生を検知する手段を有しないので、誤った
データにより制御が行なわれる可能性が高くなる。
In the above case, if one of the four signal lines is broken or short-circuited, the data will not be transmitted correctly. This type of obstacle is a matter that must be particularly taken into consideration in a vehicle that is placed under severe conditions such as vibration and temperature / humidity. However, since the device shown in FIG. 15 does not have a means for detecting the occurrence of obstacles, there is a high possibility that control will be performed by incorrect data.

そこで、第16図に示す装置では、端子CHより所定時間
毎に断線検知用の信号を発して、データ伝送ラインの断
線の有無をチェックしている。これによれば、信号ライ
ンの断線に起因する誤ったデータによる制御が行なわれ
る可能性が低くなる。ところで、データをパラレル伝送
する場合に、考慮しなければならない事項の1つに信号
ラインの増加がある。パラレル伝送においては、データ
ビット数分の信号ラインを必要とする。これに加えて、
断線チェック用の信号ラインを設けることにより、さら
に保守性が低下する。
Therefore, in the device shown in FIG. 16, a signal for disconnection detection is issued from the terminal CH at predetermined intervals to check whether or not the data transmission line is disconnected. This reduces the possibility that control will be performed by incorrect data due to the disconnection of the signal line. By the way, one of the items to be considered when transmitting data in parallel is an increase in the number of signal lines. Parallel transmission requires signal lines for the number of data bits. In addition to this,
By providing the signal line for disconnection check, the maintainability is further reduced.

一方、センサ等の読み取りデータを一本の信号ライン
でシリアル伝送する伝送方法には、次のようなものが知
られている。1つは、読み取りデータをパルス周波数に
変換して伝送する方法である(パルス周波数変調)。こ
れにおいては、個々のデータに対応する繰り返し周波数
のパルス列を送受してデータ伝送を行なっている。この
場合、比較的に高い周波数のパルス列を使用して制御装
置の割り込み処理により、所定時間のパルス数カウント
を行なう方法と、比較的に低い周波数のパルス列を使用
してパルス繰り返し周期を測定する方法とがある。前者
によれば、制御装置の割り込み回数が増大するために、
他の制御、例えば車高調整用のアクチュエータ等の制御
に支障を来たすことになる。さらにこの方法において
は、比較的に高い周波数を使用するので、特に信号ライ
ンが長くなる場合には、線間容量やイングクタンスによ
る波形の歪み、あるいは信号の減衰等を考慮しなければ
ならない。また後者によれば、パルスの繰り返し周波数
により、データを検出するサンプリング周期が変動する
ため、例えば、検出データを頻度処理する場合には、そ
の処理が複雑化するという問題がある。いずれの場合に
おいても、パルスの繰り返し周波数が情報の種類(デー
タ)に対応するので、データ伝送系の基準クロックに精
度の高いものが要求される。
On the other hand, the following is known as a transmission method for serially transmitting read data from a sensor or the like through one signal line. One is a method of converting read data into a pulse frequency and transmitting it (pulse frequency modulation). In this, data transmission is performed by transmitting / receiving a pulse train having a repetition frequency corresponding to individual data. In this case, a method of counting the number of pulses for a predetermined time by interrupt processing of the control device using a pulse train of a relatively high frequency, and a method of measuring a pulse repetition period using a pulse train of a relatively low frequency There is. According to the former, because the number of interrupts of the control device increases,
This will interfere with other controls, such as the control of the vehicle height adjusting actuator. Further, in this method, since a relatively high frequency is used, especially when the signal line becomes long, waveform distortion due to line capacitance or inductance, or signal attenuation must be taken into consideration. Further, according to the latter, the sampling cycle for detecting the data varies depending on the pulse repetition frequency, so that there is a problem that, for example, when the detection data is frequency processed, the processing becomes complicated. In either case, since the pulse repetition frequency corresponds to the type of information (data), a highly accurate reference clock for the data transmission system is required.

また、読み取りデータをパルスコードに変換して伝送
する方法(パルスコード変調)においては、パルスのあ
りなしによりデータを伝送している。この場合、受け側
の制御装置では、少くともパルスコードの始まりを検出
する必要があり、このため、スタートビットの検出とい
う処理を行なった後、パルス列の読み取りを行なう。し
たがって、制御装置において、データ伝送に要する処理
時間が長くなり、他の制御(例えば車高調整用のアクチ
ュエータ等の制御)に支障を来たすことになる。また、
パルスのありなしがデータに対応するので、この場合も
データ伝送系の基準クロックに精度の高いものが要求さ
れる。
Further, in the method of converting read data into a pulse code and transmitting it (pulse code modulation), data is transmitted with or without a pulse. In this case, the control device on the receiving side needs to detect at least the beginning of the pulse code. Therefore, the pulse train is read after the start bit is detected. Therefore, in the control device, the processing time required for data transmission becomes long, and other control (for example, control of an actuator for vehicle height adjustment) is hindered. Also,
Since the presence / absence of pulses corresponds to data, in this case as well, a highly accurate reference clock of the data transmission system is required.

本発明は、信号ラインの障碍検知が容易で、伝送系の
基準クロツクの精度誤差の影響を受けにくくデータ伝送
にかかわる処理が簡単なデータ伝送方法を提供すること
を目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a data transmission method which can easily detect a fault in a signal line, is hardly affected by an accuracy error of a reference clock of a transmission system, and can easily perform a process related to data transmission.

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

上記目的を達成するため、本発明のデータ伝送方法に
おいては、 2以上の任意の自然数をnで表わし、1≦p≦nなる
任意の自然数をpで表わすと、n種の情報のうちの第p
番を、下記の周期T、 T=k×(n+l+m)、 k:単位時間、 l:0あるいは任意の自然数、 m:任意の自然数 なる、〔k×(p+l)〕時間連続する第1レベルおよ
びこの第1レベルに連続しかつ〔k×(n−p+m)〕
時間連続する第2レベルの、相対的にレベル差がある第
1レベルと第2レベルでなる2値信号で表わし、これを
一本の信号ラインの一端に送出し、 該信号ラインの他端において、第2値信号の周期T,第
1レベルの連続時間および第2レベルの連続時間、のう
ちの少くとも2者を検出し、 これらの検出値とn,l,mに従って、pを表わすデータ
を生成する。
In order to achieve the above object, in the data transmission method of the present invention, when an arbitrary natural number of 2 or more is represented by n and an arbitrary natural number satisfying 1 ≦ p ≦ n is represented by p, the number of n kinds of information is calculated. p
The following cycle T, T = k × (n + 1 + m), k: unit time, l: 0 or any natural number, m: any natural number, the first level continuous for [k × (p + 1)] time and Continue to this first level and [k × (n−p + m)]
It is represented by a binary signal composed of a first level and a second level having a relative level difference of a second level continuous for time, and this is sent to one end of one signal line, and at the other end of the signal line. , The period T of the second value signal, at least two of the first level continuous time and the second level continuous time, and data representing p according to these detected values and n, l, m. To generate.

〔作用〕[Action]

T=〔k×(p+l)〕+〔k×(n−p+m)〕 =k×(n+l+m) であり、ここで、第1レベルの連続時間をT1、第2レベ
ルの連続時間をT2とすると、すなわち、 T1=〔k×(p+l)〕 T2=〔k×(n−p+m)〕 とすると、 T=T1+T2 k=T/(n+p+m) p=(T1/k)−l =−(T2/k)+n+m である。送信側と受信側でn,lおよびmを既知しておく
ことにより、受信側では、Tを検出することにより、 k=T/(n+l+m) により、単位時間kを算出することができる。kが得ら
れると、第1レベルの連続時間T1又は第2レベルの連続
時間T2を検出することにより、 p=(T1/k)−l 又は、 =−(T2/k)+n+m により、pを算出することができる。
T = [k × (p + 1)] + [k × (n−p + m)] = k × (n + l + m), where the first-level continuous time is T 1 and the second-level continuous time is T 2. If T 1 = [k × (p + 1)] T 2 = [k × (n−p + m)], then T = T 1 + T 2 k = T / (n + p + m) p = (T 1 / k ) -l = - a (T 2 / k) + n + m. By knowing n, l, and m on the transmitting side and the receiving side, the receiving side can detect the T, and the unit time k can be calculated by k = T / (n + 1 + m). When k is obtained, by detecting the continuous time T 1 of the first level or the continuous time T 2 of the second level, p = (T 1 / k) -1 or =-(T 2 / k) + n + m From this, p can be calculated.

すなわち、受信側において次の態様のいずれかによ
り、pを算出しこれを表わすデータを生成しうる。
That is, p can be calculated and data representing this can be generated on the receiving side in any of the following modes.

態様1 第1レベル信号の始点から次の始点までの時間Tを計
測し、かつ第1レベル信号の始点から終点までの時間T1
を計測し、 k=T/(n+l+m) にて単位時間kを算出し、 p=(T1/k)−l にてpを算出する。
Mode 1 A time T from the start point of the first level signal to the next start point is measured, and the time T 1 from the start point to the end point of the first level signal is measured.
Was measured, to calculate the k = T / (n + l + m) units at time k, to calculate the p by p = (T 1 / k) -l.

態様2 第2レベル信号の始点から次の始点までの時間Tを計
測し、かつ第2レベル信号の始点から終点までの時間T2
を計測し、 k=T/(n+l+m) にて単位時間kを算出し、 p=−(T2/k)+n+m にてpを算出する。
Aspect 2 The time T from the start point of the second level signal to the next start point is measured, and the time T 2 from the start point to the end point of the second level signal is measured.
Was measured, to calculate the k = T / (n + l + m) units at time k, p = - calculating the p in (T 2 / k) + n + m.

態様3 第1レベル信号の始点から終点までの時間T1と、第2
レベル信号の始点から終点までの時間T2を計測し、周期
T=T1+T2を算出し、 k=T/(n+l+m) にて単位時間kを算出し、 p=(T1/k)−l にてpを算出する。
Mode 3 Time T 1 from the start point to the end point of the first level signal, and the second
The time T 2 from the start point to the end point of the level signal is measured, the cycle T = T 1 + T 2 is calculated, the unit time k is calculated by k = T / (n + 1 + m), and p = (T 1 / k) Calculate p with -l.

態様4 第1レベル信号の始点から終点までの時間T1と、第2
レベル信号の始点から終点までの時間T2を計測し、周期
T=T1+T2を算出し、 k=T/(n+l+m) にて単位時間kを算出し、 p=−(T2/k)+n+m にてpを算出する。
Mode 4 Time T 1 from the start point to the end point of the first level signal, and the second
The time T 2 from the start point to the end point of the level signal is measured, the cycle T = T 1 + T 2 is calculated, and the unit time k is calculated by k = T / (n + 1 + m), and p = − (T 2 / k ) + N + m to calculate p.

ところで、T1=〔k×(p+l)〕,T2=〔k×(n
−p+m)〕,n≧2および1≦p≦nより、 k×(1+l)≦T1≦k×(n+l) k×m≦T2≦k×(n−1+m) であり、信号ラインの一端から他端に送信するpが如何
なる値であっても、T1およびT2のいずれも零となること
はない。周期T内に、第1レベルは必ずk×(1+l)
以上存在し、第2レベルは必ずk×m以上存在する。
By the way, T 1 = [k × (p + 1)], T 2 = [k × (n
−p + m)], n ≧ 2 and 1 ≦ p ≦ n, k × (1 + 1) ≦ T 1 ≦ k × (n + l) k × m ≦ T 2 ≦ k × (n-1 + m), and Regardless of the value of p transmitted from one end to the other, neither T 1 nor T 2 will be zero. Within the cycle T, the first level is always k × (1 + 1)
The above is present, and the second level is always present in k × m or more.

すなわち、信号ラインに異常がなく伝送が正常に行な
われているときは、2値信号の第1レベル(以下第1レ
ベル信号)および第2レベル(以下第2レベル信号)
は、周期T内で信号なし(連続時間零)となることがな
い。つまり、データ伝送系で送受する第1および第2レ
ベル信号のデューティ(T1/T)×100(%)および(T2/
T)×100(%)がいずれも、0(%)あるいは100
(%)となることが無いので、データ伝送系の障碍を容
易に検出できる。いいかえると、第1レベル信号と第2
レベル信号の少くとも一方のデューティが0(%)ある
いは100(%)となるとき、すなわち、第1レベル信号
または第2レベル信号が所定時間(T=k×(n+l+
m)以上の設定値)を超えて断続するとき、をデータ伝
送系の障碍、最も代表的には信号ラインの断線異常又は
短絡異常、と見做せば良い。
That is, when there is no abnormality in the signal line and the transmission is normally performed, the first level (hereinafter referred to as the first level signal) and the second level (hereinafter referred to as the second level signal) of the binary signal.
Does not become a signal within the period T (zero continuous time). That is, the duty of the first and second level signals transmitted and received in the data transmission system (T 1 / T) × 100 (%) and (T 2 /
T) x 100 (%) is 0 (%) or 100
(%), It is possible to easily detect an obstacle in the data transmission system. In other words, the first level signal and the second level signal
When the duty of at least one of the level signals is 0 (%) or 100 (%), that is, when the first level signal or the second level signal is for a predetermined time (T = k × (n + l +
m) When the connection is interrupted for more than the set value), it may be regarded as a failure of the data transmission system, most typically a signal line disconnection abnormality or a short circuit abnormality.

受信側は、周期T,第1レベル信号の連続時間T1および
第2レベル信号の連続時間T2の少くとも2者を検出し
て、これらの検出者より、pを求めることができるの
で、送信側のクロックと受信側のクロックが一致する必
要は全くない。つまり、伝送系の基準クロックの精度誤
差の影響をほとんど受けない。
Since the receiving side can detect at least two of the period T, the continuous time T 1 of the first level signal and the continuous time T 2 of the second level signal, and can obtain p from these detected persons, It is not necessary for the clock on the transmitting side to match the clock on the receiving side. That is, it is hardly affected by the accuracy error of the reference clock of the transmission system.

送信する情報の種類数nが多くても、一本の信号ライ
ンで数種類nの中のいずれであるかを示すpを示す情報
が送られるので、データ伝送にかかわる処理が非常に簡
単になる。
Even if the number n of types of information to be transmitted is large, since information indicating p indicating which of the types n is transmitted is transmitted by one signal line, the processing related to data transmission becomes very simple.

第1レベル信号の連続時間T1と第2レベル信号の連続
時間T2は、 T1=〔k×(p+l)〕 T2=〔k×(n−p+m)〕 であって、両者共にpと一意的な対応関係があり、pの
値の増,減に対してT1は正対応(p値が大きいと大き
い)の関係、T2は逆対応(p値が大きいと小さい)の関
係であるので、受信側で2値信号のレベルを時系列平均
(時間平均)することにより、p値にレベルが一意的に
対応するアナログ信号を得ることができる。
The continuous time T 1 of the first level signal and the continuous time T 2 of the second level signal are T 1 = [k × (p + 1)] T 2 = [k × (n−p + m)], and both are p There is a unique correspondence relationship with, and T 1 is a positive correspondence (large when the p value is large) and T 2 is a reverse correspondence (small when the p value is large) as the value of p increases or decreases. Therefore, by averaging the levels of the binary signals on the receiving side in time series (time average), an analog signal whose level uniquely corresponds to the p-value can be obtained.

以上を具体的に説明するために、第1a図を参照する。
ここでは、第1レベルをHレベル(高レベル),第2レ
ベルをLレベル(低レベル)としている。
To specifically explain the above, refer to FIG. 1a.
Here, the first level is H level (high level) and the second level is L level (low level).

第1レベル信号は、p+l個の単位時間のHレベル成
分k1,k2,k3,……,kp+l,の集合であり、pは、1≦p≦
nであるので、Hレベル成分が0となることはない。第
2レベル信号は、n−p+m個の単位時間のLレベル成
分kp+l+1,kp+l+2,kp+l+3,……,kn+l+m,の
集合であり、mは、自然数であるので、Lレベル成分が
0となることはない。
The first level signal is a set of p + 1 unit time-level H-level components k1, k2, k3, ..., Kp + 1, where p is 1 ≦ p ≦
Since it is n, the H level component does not become 0. The second level signal is a set of n-p + m L-level components kp + 1 + 1, kp + l + 2, kp + l + 3, ..., Kn + l + m, in unit time. Since m is a natural number, the L-level component is 0. Absent.

例えば、第1b図は、l=0,m=1とした場合の信号を
示すが、第1番のデータを示す信号は、k1のみがHレベ
ルとなり、k2〜kn+1がLレベルとなる。以下、第2
番,第3番,・・・とHレベルが1単位時間ずつ増加
し、第n番のデータを示す信号は、k1〜KnがHレベル
で、kn+1のみがLレベルとなる。
For example, FIG. 1b shows a signal when 1 = 0 and m = 1. In the signal indicating the first data, only k1 is at H level, and k2 to kn + 1 are at L level. Below, the second
, No. 3, No. 3, ... H-level increases by one unit time, and in the signal indicating the n-th data, k1 to Kn are H level and only kn + 1 is L level.

さらに具体的には、第1c図に、n=2,l=0,m=1とし
た場合の信号を示すが、データ“0"またはデータ“1"を
示す信号のいずれにおいてもデューティが0(%)ある
いは100(%)とはならない。
More specifically, FIG. 1c shows a signal when n = 2, l = 0, m = 1. However, the duty is 0 for any of the signals indicating data “0” or data “1”. It cannot be (%) or 100 (%).

したがって、少なくともk×(n+l+m)時間を超
えてLレベルあるいはHレベルが断続するとき、伝送ラ
インの断線あるいは短絡等の障碍が発生したものと容易
に判定することができる。
Therefore, when the L level or the H level is intermittent for at least k × (n + 1 + m) time, it can be easily determined that a failure such as disconnection or short circuit of the transmission line has occurred.

再度第1a図を参照する。例えば、受信側で単位時間k
に関する情報がないときでも、第1レベル信号の連続時
間T1と第2レベル信号の連続時間T2を合計して周期Tを
得て、(n+l+m)で除することによりそれを知るこ
とができる。このようにして単位時間kを求めて、それ
で第1レベル信号の連続時間T1を除することにより、p
+lが求まり、それからlを減ずると送られた信号が第
p番であることが容易にわかる。これに関して、送受間
に絶対的な値の取ら決めがないので、第1レベル信号の
連続時間T1および第2レベル信号の連続時間T2の測定
は、送受それぞれで任意の基準を用いて行なうことがで
きる。
Referring again to FIG. 1a. For example, the unit time k on the receiving side
Even when there is no information on the above, it can be known by summing the continuous time T 1 of the first level signal and the continuous time T 2 of the second level signal to obtain the cycle T, and dividing by (n + 1 + m). . Thus, the unit time k is obtained, and the continuous time T 1 of the first level signal is divided by the unit time k to obtain p
If + l is found and then l is subtracted, it is easy to see that the signal sent is the pth. In this regard, since there is no absolute value agreement between transmission and reception, measurement of the continuous time T 1 of the first level signal and the continuous time T 2 of the second level signal is carried out using an arbitrary standard for each transmission and reception. be able to.

第1b図に示す場合では、l=0,m=1であるので、第
1レベル信号の連続時間T1と第2レベル信号の連続時間
T2を合計して周期Tを得てこれを(n+1)で除した値
kで、さらに第1レベル信号の連続時間T1を除すること
によりpを表わすデータが求まる。
In the case shown in FIG. 1b, since 1 = 0 and m = 1, the continuous time T 1 of the first level signal and the continuous time of the second level signal are
By summing T 2 to obtain the period T and dividing it by (n + 1), the value k is divided, and by further dividing the continuous time T 1 of the first level signal, data representing p can be obtained.

さらに具体的に、第1c図に示すように、パルス繰り返
し周期を3分割した値で、Hレベルのパルス幅を除し、
1であればデータ“0"が、2であればデータ“1"が、送
信されたことを知ることができる。
More specifically, as shown in FIG. 1c, the pulse width of H level is divided by a value obtained by dividing the pulse repetition period into three,
It is possible to know that the data “0” has been transmitted if it is 1, and the data “1” has been transmitted if it is 2.

第1a図,第1b図および第1c図に示す信号を構成する要
素は、第1レベル信号および第2レベル信号でなる2値
信号であり、信号レベルの立上りから立上りまでの時間
を計測することにより第1レベル信号の連続する時間と
第2レベル信号の連続する時間の合計すなわち周期T
が、立上りから立下りまでの時間を計測することにより
第1レベル信号の連続時間T1が、立下りから立上りまで
の時間を計測することにより第2レベル信号の連続時間
T2が、それぞれ求まり、これらの少なくとも2つを計測
すれば良いので、処理は極めて簡単になる。この処理
は、信号の情報量の大小に因らない。
The elements that make up the signals shown in FIGS. 1a, 1b, and 1c are binary signals consisting of a first level signal and a second level signal, and the time from the rise of the signal level to the rise must be measured. Therefore, the sum of the continuous time of the first level signal and the continuous time of the second level signal, that is, the period T
, The continuous time T 1 of the first level signal by measuring the time from the rising edge to the falling edge, and the continuous time of the second level signal by measuring the time from the falling edge to the rising edge.
Since each T 2 is obtained and at least two of these can be measured, the processing becomes extremely simple. This processing does not depend on the amount of information in the signal.

つまり、ダミーデータを除くと、nがいかに多くなっ
ても、n=2の場合と同じ処理でデータを送,受信する
ことができる。
That is, if dummy data is excluded, data can be sent and received by the same process as in the case of n = 2, no matter how many n.

ここで、第1c図に示す各信号(断線,“0",“1",短
絡)のそれぞれを時系列平均すると、それらの各状態
は、レベル0,1,2,3で表わされる。つまり、各信号を平
均値型の電圧計に印加すると、第2a図,第2b図,第2c図
および第2d図に示すように、該電圧計の指針で、データ
を検出することができる。つまり、これにおいては、受
け側で第1レベル信号の連続時間T1および第2レベル信
号の連続時間T2を測定することなく、送られたデータお
よび障碍の有無を検出することができる。
Here, when each of the signals (disconnection, “0”, “1”, short circuit) shown in FIG. 1c is time-sequentially averaged, their respective states are represented by levels 0, 1, 2, and 3. That is, when each signal is applied to the average value type voltmeter, the data can be detected by the pointer of the voltmeter as shown in FIGS. 2a, 2b, 2c and 2d. That is, in this case, it is possible to detect the transmitted data and the presence / absence of an obstacle without measuring the continuous time T 1 of the first level signal and the continuous time T 2 of the second level signal on the receiving side.

なお、第1a図,第1b図および第1c図では、第1レベル
信号をHレベルとし、第2レベル信号をLレベルとした
が、その逆に第1レベル信号をLレベル、第2レベル信
号をHレベルとしてもよい。どちらにHレベルを割り当
てるかに本発明は何ら影響されるものではなく、また、
第1レベル信号および第2レベル信号の時間順序も本発
明の主旨とは無関係である。
In addition, in FIGS. 1a, 1b and 1c, the first level signal is set to the H level and the second level signal is set to the L level. Conversely, the first level signal is set to the L level and the second level signal. May be H level. The present invention is not affected by which H level is assigned, and
The time sequence of the first level signal and the second level signal is also irrelevant to the spirit of the invention.

本発明の他の目的および特徴は、以下の図面を参照し
た実施例の説明より明らかになろう。
Other objects and features of the present invention will become apparent from the following description of the embodiments with reference to the drawings.

〔実施例〕〔Example〕

第3図は、本発明を一態様で実施する車高検出装置の
車高検出機構1の外観を示す正面図である。車高検出機
構1は、回動軸30の回転角に応じた電気信号を出力する
車高センサ(SNS)を擁する車高センサ組体10,車高セン
サ組体10に結合されたブラケット2,回動軸30に係合され
たリンク機構3および、カバー8によりなる。
FIG. 3 is a front view showing the external appearance of the vehicle height detection mechanism 1 of the vehicle height detection device that implements the present invention in one aspect. The vehicle height detection mechanism 1 includes a vehicle height sensor assembly 10 having a vehicle height sensor (SNS) that outputs an electric signal according to the rotation angle of the rotating shaft 30, a bracket 2 connected to the vehicle height sensor assembly 10, It is composed of the link mechanism 3 engaged with the rotating shaft 30 and the cover 8.

車高センサ組体10はブラケット2を介して図示を省略
した車体に固着される。2aは取り付け用のネジ穴であ
る。
The vehicle height sensor assembly 10 is fixed to the vehicle body (not shown) via the bracket 2. 2a is a screw hole for mounting.

リンク機構3は、回動アーム6およびプッシュプルバ
ー7よりなる。回動アーム6の一端はナット4により回
動軸30に螺着され、他端はナット5によりプッシュプル
バー7のソケット7bに枢着されている。ソケット7bには
内ネジが備わっており、それにはロッド7aが螺着され、
ロックナット7dにより固定されている。ロッド7aの他端
は、ナックル7cの内ネジと係合しており、ロックナット
7eにより固定されている。ナックル7cは、図示を省略し
た車軸に係合される。
The link mechanism 3 includes a rotating arm 6 and a push pull bar 7. One end of the rotating arm 6 is screwed to the rotating shaft 30 by the nut 4, and the other end is pivotally connected to the socket 7b of the push-pull bar 7 by the nut 5. The socket 7b has an internal thread, to which the rod 7a is screwed,
It is fixed by a lock nut 7d. The other end of the rod 7a is engaged with the inner screw of the knuckle 7c, and the lock nut
It is fixed by 7e. The knuckle 7c is engaged with an axle (not shown).

つまり、車体と車軸との間の距離が変化すると、いい
かえると、車高が変化すると、プッシュプルバー7によ
り回動アーム6が回動される。第3図で2点鎖線で示し
た状態が基準であり、実線は車高が高くなった状態を示
す。
That is, when the distance between the vehicle body and the axle changes, in other words, when the vehicle height changes, the push-pull bar 7 turns the turning arm 6. The state shown by the chain double-dashed line in FIG. 3 is the reference, and the solid line shows the state where the vehicle height is high.

第4図は、車高センサ組体10を、図示しない防塵用の
カバーを取り外して第3図の反対側から見た平面図であ
り、第5図は第4図のV−V線断面図である。
4 is a plan view of the vehicle height sensor assembly 10 seen from the opposite side of FIG. 3 with a dustproof cover (not shown) removed, and FIG. 5 is a sectional view taken along line VV of FIG. Is.

これらの図面を参照すると、ハウジング20の中央突破
20aには回動軸30を枢支する軸受け21が嵌挿されてい
る。回動軸30の頂部には、カシメ30aにより回動スリッ
ト板31が固着されている。スリット板31には、16段階の
回動角度をグレイコードに変換するための多数のスリッ
トが備わっている。この回動スリット板31と平行に、回
動スリット板上のスリットを特定するための4つのスリ
ットを備えた固定スリット板11が備わっている。
Referring to these drawings, the central breakthrough of the housing 20
A bearing 21 that pivotally supports the rotating shaft 30 is fitted into the 20a. A rotary slit plate 31 is fixed to the top of the rotary shaft 30 by caulking 30a. The slit plate 31 is provided with a large number of slits for converting a 16-step rotation angle into a gray code. A fixed slit plate 11 having four slits for specifying slits on the rotary slit plate is provided in parallel with the rotary slit plate 31.

ハウジング20には、後述する車高センサSNSを構成す
る電気素子25等を実装したプリント基板22固着されてい
る。プリント基板22は、ハウジング20に形成された位置
決め突起24および突部20aにより位置決めされ、ネジ26
により螺着されている。
A printed circuit board 22 mounted with an electric element 25 and the like that form a vehicle height sensor SNS described later is fixed to the housing 20. The printed circuit board 22 is positioned by the positioning protrusion 24 and the protrusion 20a formed on the housing 20, and the screw 26
Is screwed on.

フォトカプラ基体23aは、プリント基板22にネジ27に
より螺着されており、後述する車高センサSNSの発光ダ
イオードLED1,LED2およびフォトトランジスタPH01,PHO2
を、回動スリット板31および固定スリット板11を間に置
いてそれぞれ対向支持し、フォトカプラ基体23bは、プ
リント基板22にネジ27により螺着されており、後述する
車高センサSNSの発光ダイオードLED3,LED4およびフォト
トランジスタPH01,PHO2を、回動スリット板31および固
定スリット板11を間に置いてそれぞれ対向支持してい
る。
The photocoupler base 23a is screwed to the printed circuit board 22 with screws 27, and is used for the light emitting diodes LED1 and LED2 and the phototransistors PH01 and PHO2 of the vehicle height sensor SNS described later.
Are opposed to each other with the rotary slit plate 31 and the fixed slit plate 11 interposed therebetween, and the photocoupler base 23b is screwed to the printed circuit board 22 with the screw 27, and the light emitting diode of the vehicle height sensor SNS described later. The LED3, LED4 and the phototransistors PH01, PHO2 are supported opposite to each other with the rotary slit plate 31 and the fixed slit plate 11 interposed therebetween.

固定スリット板11には、位置決め穴12aおよび12bが穿
設されており、そこにフォトカプラ基板23aの位置決め
突起28aおよびフォトカプラ基板23bの位置決め突起28b
が進入し、それぞれカシメ29aおよび29bにより固着され
ている。これにより固定スリット板11の各スリットは、
正確にLED1とPH01,LED2とPH02,LED3とPH03,LED4とPH04,
とをそれぞれ結ぶ線上に位置決めされる。また、固定ス
リット板11には、中心孔13が穿設されており、そこには
ハウジング20の突部20aが進入する。
Positioning holes 12a and 12b are formed in the fixed slit plate 11, and the positioning protrusions 28a of the photocoupler substrate 23a and the positioning protrusions 28b of the photocoupler substrate 23b are formed therein.
Enter and are fixed by caulking 29a and 29b, respectively. Thereby, each slit of the fixed slit plate 11 is
Exactly LED1 and PH01, LED2 and PH02, LED3 and PH03, LED4 and PH04,
Positioned on the line connecting the and. Further, the fixed slit plate 11 is provided with a central hole 13 into which the protrusion 20a of the housing 20 enters.

第6図は車高センサSNSの電気回路の概略構成を示す
ブロック図であり、第8図はこの車高センサSNSの動作
例を示すタイミングチャートである。
FIG. 6 is a block diagram showing a schematic configuration of an electric circuit of the vehicle height sensor SNS, and FIG. 8 is a timing chart showing an operation example of the vehicle height sensor SNS.

第6図を参照すると、この車高センサSNSは、発光ダ
イオードLED1〜4,フォトセンサPHO1〜4,ラッチするラッ
チLA1,エクスクルーシブオアゲートEOR1〜3,デジタル比
較器CMP,発振ユニットOSC,17進カウンタCNT,オアゲート
OR1およびトランジスタTr1を主体としてなる。なお、こ
の第6図においては、回動スリット板31,LED1〜4,PHO1
〜4の関係を略式図示している。
Referring to FIG. 6, the vehicle height sensor SNS includes light emitting diodes LED1 to LED4, photosensors PHO1 to 4, latch LA1 for latching, exclusive OR gates EOR1 to 3, digital comparator CMP, oscillator unit OSC, hex counter. CNT, OR gate
Mainly consists of OR1 and transistor Tr1. In FIG. 6, the rotary slit plate 31, LEDs1 to 4, PHO1 are shown.
4 shows a schematic diagram of the relationship of ~ 4.

以下、第6図および第8図を参照して車高センサSNS
の動作を説明する。
Hereinafter, referring to FIGS. 6 and 8, a vehicle height sensor SNS
Will be described.

フォトトランジスタPHO1,PHO2,PHO3,PHO4のエミッタ
はそれぞれLA1の入力端子DO,D1,D2,D3に接続されてい
る。
The emitters of the phototransistors PHO1, PHO2, PHO3, PHO4 are connected to the input terminals DO, D1, D2, D3 of LA1, respectively.

発振ユニットOSCは所定周期(以下これをkとする)
のクロックパルス(基準クロック)を出力する。
Oscillation unit OSC has a predetermined cycle (hereinafter this is k)
The clock pulse (reference clock) of is output.

17進カウンタCNTは、発振ユニットOSCの出力パルス
(基準クロック)をカウントして、“00000",“00001",
“00010",……,“10000",“00000",“00001",“0001
0",……,なる5ビットのカウントデータを、出力端子
0〜4から繰り返し出力する(これにおいて“1"はHレ
ベルを、“0"はLレベルを、それぞれ示すものとする:
以下同じ)。カウントデータのLSB(出力端子0出力)
〜第4ビット(出力端子3出力)は、それぞれデジタル
比較器CMPの入力端子A0〜A3に与えられ、カウントデー
タのMSB(出力端子4出力)は、オアゲートOR1の一方の
入力端子、およびラッチLA1のクロック入力端子CKに、
それぞれ与えられる。ラッチLA1は、カウントデータが
“01111"から“10000"となるとき、すなわち、MSBがL
レベルからHレベルに切り換わるとき、その出力の立上
りでラッチされる。
The hexadecimal counter CNT counts the output pulse (reference clock) of the oscillation unit OSC, and outputs "00000", "00001",
"00010", ..., "10000", "00000", "00001", "0001
0 ", ..., 5-bit count data is repeatedly output from the output terminals 0 to 4 (where" 1 "indicates H level and" 0 "indicates L level:
same as below). LSB of count data (output terminal 0 output)
~ The fourth bit (output terminal 3 output) is applied to the input terminals A0 to A3 of the digital comparator CMP, and the MSB of the count data (output terminal 4 output) is one input terminal of the OR gate OR1 and the latch LA1. To the clock input terminal CK of
Given each. The latch LA1 is used when the count data changes from “01111” to “10000”, that is, when the MSB is L.
When the level is switched to the H level, it is latched at the rising edge of the output.

前述したように、車高の変化に応じて回動スリット板
31が回動するので、該スリット板31に備わるスリットを
発光ダイオードLED1〜4およびフォトトランジスタPHO1
〜4により読み取ることにより、角度に対応付けして16
段階の車高を検出している。第8図では、実際の車高を
1点鎖線で、PHO1〜4により読み取った車高のデータ
(つまりラッチLA1入力)を実線で示している。このデ
ータはグレイコードであるので、ラッチLA1の出力は、
エクスクルーシブオアゲートEOR1〜3によりバイナリコ
ードに変換した後、車高データとしてデジタル比較器CM
Pの入力端子B0〜B3に与えている。本実施例において、
車高データ0(“0000"),1(“0001"),2(“001
0"),・・・・・・,14(“1110"),15(“1111")は、
それぞれ第1段階,第2段階,第3段階,・・・・・
・,第15段階,第16段階の車高を示すものとする。
As mentioned above, the rotating slit plate responds to changes in vehicle height.
Since 31 rotates, the slits provided on the slit plate 31 are connected to the light emitting diodes LED1 to LED4 and the phototransistor PHO1.
By reading from ~ 4, 16
The vehicle height of the stage is detected. In FIG. 8, the actual vehicle height is shown by a one-dot chain line, and the vehicle height data read by PHO1 to PHO4 (that is, the latch LA1 input) is shown by a solid line. Since this data is Gray code, the output of latch LA1 is
After converting to binary code by exclusive OR gate EOR1 ~ 3, digital comparator CM as vehicle height data
It is given to the input terminals B0 to B3 of P. In this example,
Vehicle height data 0 (“0000”), 1 (“0001”), 2 (“001
0 "), ..., 14 (" 1110 "), 15 (" 1111 ")
First stage, second stage, third stage ...
・ The vehicle heights of the 15th and 16th stages are shown.

デジタル比較器CMPは、入力端子A0〜A3の入力(以下
これをAとする)と、入力端子B0〜B3の入力(以下これ
をBとする)とを比較し、A<Bであれば、Hレベルを
出力する。例えば、入力Bが第5段階の車高を示す値4
(“0100")であれば、入力A(カウントデータ)が16
〜3(“10000"〜“00011")の間Hレベルを出力し、入
力Aが4〜15(“00100"〜“01111")の間Lレベルを出
力する。この出力はオアゲートOR1の他方の入力端子に
与えられる。
The digital comparator CMP compares the inputs of the input terminals A0 to A3 (hereinafter referred to as A) with the inputs of the input terminals B0 to B3 (hereinafter referred to as B), and if A <B, Outputs H level. For example, input B is a value 4 indicating the vehicle height at the fifth stage.
If it is (“0100”), input A (count data) is 16
3 to "3"("10000" to "00011"), the H level is output, and when the input A is 4 to 15 ("00100" to "01111"), the L level is output. This output is given to the other input terminal of the OR gate OR1.

ところで、厳密にいうと、ラッチLA1はMSB出力でラッ
チされるので、デジタル比較器CMPはMSBの立上りよりわ
ずかに遅れてHレベルを出力する。このため、カウント
データが16のときのHレベル出力時間が他に比較して短
くなる。これを防止するために、オアゲートOR1におい
て、デジタルコンパレータCMP出力と、カウントデータ
のMSBとを合成している。
Strictly speaking, since the latch LA1 is latched by the MSB output, the digital comparator CMP outputs the H level slightly after the rising edge of the MSB. Therefore, the H level output time when the count data is 16 is shorter than the others. In order to prevent this, the OR gate OR1 combines the output of the digital comparator CMP and the MSB of the count data.

この場合のオアゲートOR1は、5k時間連続するHレベ
ルを出力した後、12k時間連続するLレベルを出力す
る。OR1出力は、トランジスタTr1において反転されて、
信号SigとしてセンサSNSから出力される。
In this case, the OR gate OR1 outputs an H level that continues for 5k hours and then outputs an L level that continues for 12k hours. The OR1 output is inverted in the transistor Tr1,
The signal Sig is output from the sensor SNS.

第7図は、伝送路を介して車高センサSNSより送られ
て来た信号Sigより車高を検出し、該車高に応じてアク
チュエータを制御する制御装置COMを示すブロック図で
ある。
FIG. 7 is a block diagram showing a control unit COM that detects the vehicle height from the signal Sig sent from the vehicle height sensor SNS via the transmission path and controls the actuator according to the vehicle height.

制御装置COMはマイクロプロセッサCPU1を中心に構成
される。CPU1は、立上り検出および立下り検出の切換え
が可能なインプットキャプチャ割込み入力端子INTを有
し、該端子INTには、トランジスタTr2により反転された
(つまり前記OR1出力に等しい)信号Sigが入力する。以
下、第9図,第10図および第11図に示すフローチャート
を参照してCPU1の概略動作を説明する。
The control unit COM is mainly composed of a microprocessor CPU1. The CPU1 has an input capture interrupt input terminal INT capable of switching between rising edge detection and falling edge detection, and the signal Sig inverted by the transistor Tr2 (that is, equal to the OR1 output) is input to the terminal INT. The schematic operation of the CPU 1 will be described below with reference to the flowcharts shown in FIGS. 9, 10, and 11.

電源が投入されると、内部メモリ,レジスタ等を初期
化してタイマ1およびタイマ2をクリア&スタートし、
割込みを許可する。この後、割込み処理の安定期間のデ
ィレイを行なって、割込み処理で検出した車高(Hレジ
スタに格納される)に応じた処理を繰り返し行なう。こ
の間に異常があれば、異常処理を実行する。
When the power is turned on, the internal memory, registers, etc. are initialized to clear and start timer 1 and timer 2,
Enable interrupts. After that, a delay of the stable period of the interrupt process is performed, and the process according to the vehicle height (stored in the H register) detected by the interrupt process is repeated. If there is any abnormality during this period, the abnormality process is executed.

信号Sigによる割込み処理を第10図のフローチャート
および第12図の波形図を参照して説明する。
The interrupt process by the signal Sig will be described with reference to the flowchart of FIG. 10 and the waveform diagram of FIG.

立上りエッジ検出にセットしているときに、信号Sig
がLレベルからHレベルに変化すると、タイマ1をクリ
ア&スタートする。これによりタイマ1は、時間計測を
開始する。この他のステップは、説明の便宜上後述する
ものとして、INTを立下りエッジ検出にセットしてメイ
ンルーチンにリターンする。
When set for rising edge detection, signal Sig
When is changed from L level to H level, timer 1 is cleared and started. As a result, the timer 1 starts measuring time. In the other steps, as will be described later for convenience of description, INT is set to the falling edge detection and the process returns to the main routine.

立下りエッジ検出をセットしているので、信号タイマ
1の値をTbレジスタに格納する。タイマ1はSigの立上
りからの時間を計測しているので、Tbレジスタの値は、
第12図に示すようにSigのHレベルのパルス幅(Hレベ
ルの連続する時間)となる。その後、INTを立上りエッ
ジ検出にセットしてメインルーチンにリターンする。
Since the falling edge detection is set, the value of the signal timer 1 is stored in the Tb register. Since the timer 1 measures the time from the rising of Sig, the value of the Tb register is
As shown in FIG. 12, the pulse width of the H level of Sig (the time when the H level continues) becomes. After that, INT is set to the rising edge detection and the process returns to the main routine.

再度、SigがHレベルからLレベルに変化して、Sigに
よる割込み処理を実行すると、タイマ1の値をTaレジス
タに格納し、タイマ1をクリア&スタートして、新たな
時間計測を開始する。
When Sig changes from H level to L level again and interrupt processing by Sig is executed, the value of timer 1 is stored in the Ta register, timer 1 is cleared and started, and new time measurement is started.

タイマ1は、前回のSigの立上りからの時間を計測し
ているので、Taレジスタの値は、第12図に示すように、
Sigの繰り返し周期(Hレベル連続する時間とLレベル
の連続する時間の合計)を示し、このTaレジスタの値を
17で除した値は、前記基準クロックの1周期kに相当す
る。したがって、この値でTbレジスタに格納しているH
レベルのパルス幅を除することにより、車高の段階を検
出することができる。つまり、Taレジスタの値を17で除
してTsレジスタに格納し、Tsレジスタの値をTsレジスタ
の値で除してHレジスタに格納する。
Since the timer 1 measures the time from the previous rise of Sig, the value of the Ta register is as shown in FIG.
Indicates the Sig repetition period (total of H-level continuous time and L-level continuous time), and the value of this Ta register
The value divided by 17 corresponds to one cycle k of the reference clock. Therefore, the H value stored in the Tb register with this value
By dividing the level pulse width, it is possible to detect the vehicle height stage. That is, the value of the Ta register is divided by 17 and stored in the Ts register, and the value of the Ts register is divided by the value of the Ts register and stored in the H register.

この後、Fレジスタを車高の検出終了を示す1にセッ
トして、INTを立下りエッジ検出にセットし、メインル
ーチンにリターンする。
After that, the F register is set to 1 indicating the end of the vehicle height detection, INT is set to the falling edge detection, and the process returns to the main routine.

第11図に示すフローチャートは、タイマ2による割り
込み処理を示す。この割り込み処理は、信号Sigの繰り
返し周期(Taレジスタに格納される値)の約2倍の周期
で実行される。
The flowchart shown in FIG. 11 shows the interrupt processing by the timer 2. This interrupt process is executed in a cycle that is approximately twice the cycle of the signal Sig (the value stored in the Ta register).

タイマ2がオーバフローすると、車高の検出終了あり
なしを示すFレジスタを参照する。タイマ2による割り
込み周期は、Sigの繰り返し周期の略2倍であるので、
センサSNSからの信号が正常である場合には、Fレジス
タは必ず1にセットされている。そこで、Fレジスタが
0であれば異常をセットし、1であればFレジスタを0
にリセットした後、タイマ2をクリア&スタートしてメ
インルーチンにリターンする。
When the timer 2 overflows, the F register indicating whether or not the vehicle height detection is completed is referred to. Since the interrupt cycle by timer 2 is almost twice the cycle cycle of Sig,
The F register is always set to 1 when the signal from the sensor SNS is normal. Therefore, if the F register is 0, an error is set, and if the F register is 1, the F register is set to 0.
After resetting to, clear and start timer 2 and return to the main routine.

次に、本発明を別の態様で実施する実施例を説明す
る。これにおいては、第13図に示すように、車高センサ
SNS′の電気回路が、マイクロプロセッサCPUを中心に構
成されている。第13図を参照して説明する。
Next, examples for carrying out the present invention in another mode will be described. In this, as shown in Fig. 13, the vehicle height sensor
The electric circuit of SNS 'is mainly composed of a microprocessor CPU. This will be described with reference to FIG.

フォトトランジスタPHO1〜PHO4の各エミッタは、それ
ぞれマイクロプロセッサCPUの入力端子I1〜I4に接続さ
れている。マイクロプロセッサCPU2は入力端子I1〜I4の
入力に応じて適宜出力端子OUTをHレベルまたはLレベ
ルにセットし、この出力は、トランジスタTr3により反
転されて車高データに対応する信号Sigとなる。
The emitters of the phototransistors PHO1 to PHO4 are connected to the input terminals I1 to I4 of the microprocessor CPU, respectively. The microprocessor CPU2 appropriately sets the output terminal OUT to H level or L level according to the input of the input terminals I1 to I4, and this output is inverted by the transistor Tr3 and becomes the signal Sig corresponding to the vehicle height data.

第14図を参照してマイクロプロセッサCPU2の動作を説
明する。
The operation of the microprocessor CPU2 will be described with reference to FIG.

電源が投入されると、内部メモリ,レジスタ等を初期
化してタイマをクリア&スタートする。このタイマは、
第1実施例の、基準クロックに相当する。
When the power is turned on, the internal memory, registers, etc. are initialized and the timer is cleared and started. This timer
It corresponds to the reference clock of the first embodiment.

タイマオーバとなるとCレジスタを1インクリメント
する。Cレジスタは、第1実施例の17進カウンタに相当
するので、Cレジスタの値が17になると入力端子I1〜I4
から読み取った車高データをXレジスタに格納し(前述
のラッチ)、Cレジスタを0にリセットして、出力端子
OUTをHレベルにセットする。
When the timer is over, the C register is incremented by 1. Since the C register corresponds to the 17-ary counter of the first embodiment, when the value of the C register becomes 17, the input terminals I1 to I4
Store the vehicle height data read from the X register in the X register (later-mentioned latch), reset the C register to 0, and output terminal
Set OUT to H level.

次に、タイマをリセット&スタートして、タイムオー
バとなると、Cレジスタを1インクリメントし、Cレジ
スタの値とXレジスタの値とを比較する。このとき、C
≦Xであれば、出力端子OUTをHレベルにセットする。
以上をループ状に繰り返し、Cレジスタの値がXレジス
タの値を超えると、出力端子をLレベルにセットする。
Next, the timer is reset and started, and when the time is over, the C register is incremented by 1 and the value of the C register is compared with the value of the X register. At this time, C
If ≤X, the output terminal OUT is set to the H level.
The above is repeated in a loop, and when the value of the C register exceeds the value of the X register, the output terminal is set to the L level.

例えば、車高データが段階5を表わす値4であれば、
Cレジスタが0〜4となる間、すなわち、5基準クロッ
クの間、Hレベルを出力し、その後、Cレジスタの値が
5〜16となる間、すなわち、12基準クロックの間、Lレ
ベルを出力する。信号Sigは、第7図に示した制御装置C
OMに与えられ、COMでの処理は前述に同一となる。
For example, if the vehicle height data is the value 4 representing step 5,
Outputs the H level while the C register is 0 to 4, that is, 5 reference clocks, and then outputs the L level while the value of the C register is 5 to 16, that is, 12 reference clocks. To do. The signal Sig is the control device C shown in FIG.
It is given to OM, and the processing in COM is the same as above.

ところで、第1実施例および第2実施例の出力信号Si
gは、平均レベルがレベル0を含めると18段階に変化す
る。そこで、Sigを、例えば、平均型の電圧計に入力し
て表示するように、アナログ処理することもできる。こ
れについては、第2a図〜第2d図を参照して説明したとお
りである。
By the way, the output signal Si of the first and second embodiments
g changes in 18 steps when the average level includes level 0. Therefore, Sig can be analog-processed so as to be input to an averaging voltmeter for display. This is as described with reference to FIGS. 2a to 2d.

なお、上記2つの実施例は、いずれも車高検出装置に
本発明を実施したものであるが、本発明はこれに限らな
い。例えば、スロットルポジションセンサ、操舵角セン
サ等にも同様に実施できる。
In addition, although the present invention is applied to the vehicle height detection device in each of the above-described two embodiments, the present invention is not limited to this. For example, a throttle position sensor, a steering angle sensor, etc. can be similarly implemented.

〔発明の効果〕〔The invention's effect〕

以上説明したとおり、本発明によれば、データ伝送が
正常に行なわれているときは、必ず第1レベル信号およ
び第2レベル信号を存在する。つまり、データ伝送系で
送受する信号のデューティが0(%)あるいは100
(%)となることが無いので、データ伝送系の障碍が容
易に検出できる。いいかえると、信号のデューティが0
(%)あるいは100(%)となるとき、すなわち、第1
レベル信号または第2レベル信号が所定時間を超えて継
続するとき、をデータ伝送系の障碍と見做せば良い。
As described above, according to the present invention, the first level signal and the second level signal always exist when the data transmission is normally performed. In other words, the duty of the signal transmitted and received in the data transmission system is 0 (%) or 100.
(%), It is possible to easily detect an obstacle in the data transmission system. In other words, the signal duty is 0.
(%) Or 100 (%), that is, the first
When the level signal or the second level signal continues for a predetermined time or longer, it may be regarded as a failure of the data transmission system.

また、第1レベル信号の連続する時間,および、第2
レベル信号の連続する時間,に基づいて、送信されたデ
ータを検出するので、相対的な値としてデータが送受さ
れ、送り側のクロックと受け側のクロックが一致する必
要は全くない。つまり、伝送系の基準クロックの精度誤
差の影響をほとんど受けない。
In addition, the continuous time of the first level signal and the second time
Since the transmitted data is detected based on the continuous time of the level signal, it is not necessary to transmit / receive the data as a relative value and the clock of the transmitting side and the clock of the receiving side need to coincide with each other. That is, it is hardly affected by the accuracy error of the reference clock of the transmission system.

さらに、データの情報量がいかに多くても、送受され
る信号は第1レベル信号および第2レベル信号の2つよ
りなり、データ伝送にかかわる処理が非常に簡単にな
る。
Furthermore, no matter how much the information amount of the data is, the signal to be transmitted / received is composed of the first level signal and the second level signal, so that the processing related to the data transmission becomes very simple.

第1レベル信号の連続する時間と第2レベル信号の連
続する時間との相対関係は、信号の平均レベルに対応す
るので、受け側で信号レベルを平均することにより、ア
ナログ信号として処理することができる。
Since the relative relationship between the continuous time of the first level signal and the continuous time of the second level signal corresponds to the average level of the signal, it can be processed as an analog signal by averaging the signal levels on the receiving side. it can.

【図面の簡単な説明】[Brief description of drawings]

第1a図は本発明で送受される信号の構成を示す波形図で
あり、第1b図および第1c図は該信号の具体例を示す波形
図である。 第2a図,第2b図,第2c図および第2d図は第1c図に示した
信号を平均型の電圧計に印加した場合の指針位置を示す
平面図である。 第3図は本発明を一態様で実施する車高検出装置の機構
部外観を示す正面図,第4図は第3図の車高センサ組体
10の詳細を示す平面図,第5図は第4図のV−V線断面
図である。 第6図は第4図に示した車高センサ組体10に実装される
車高センサSNSの電気回路を示すブロック図である。 第7図は車高センサSNSの信号Sigを受ける制御装置COM
の構成を示すブロック図である。 第8図は第6図を示した車高センサSNSの動作例を示す
タイミングチャートである。 第9図,第10図および第11図は第7図に示したマイクロ
プロセッサCPU1の動作を示すフローチャートである。 第12図は第10図のフローチャートに示した各レジスタの
内容と信号の関係を示す波形図である。 第13図は本発明を別な態様で実施する車高センサSNS′
の電化回路の構成概略を示すブロック図である。 第14図は第13図に示したマイクロプロセッサCPU2の動作
を示すフローチャートである。 第15図および第16図は従来例を示す電気回路図である。 1:車高検出機構、2:ブラケット 3:リンク機構、4,5:ナット 6:回動アーム、7:プッシュプルバー 7a:ロッド、7b:ソケット 7c:ナックル、7d,7e:ロックナット 8:カバー、10:車高センサ組体 11:固定スリット 12a,12b:位置決め穴 13:中心孔 20:ハウジング、20a:突部 21:軸受け、22:プリント基板 23a,23b:フォトカプラ基体 24:位置決め突起、25:素子 26,27:ネジ 28a,28b:位置決め突起 29a,29b,30a:カシメ 30:回動軸、31:回動スリット板 SNS,SNS′:車高センサ LED1〜4,L1〜4:発光ダイオード PHO1〜4,PH1〜4:フォトトランジスタ LA:ラッチ、OSC:発振ユニット CNT:17進カウンタ CMP:デジタル比較器 COM:制御装置 CPU1,CPU2:マイクロプロセッサ ACT:アクチュエータ Sli:スリット板
FIG. 1a is a waveform diagram showing a configuration of a signal transmitted and received in the present invention, and FIGS. 1b and 1c are waveform diagrams showing a concrete example of the signal. FIGS. 2a, 2b, 2c and 2d are plan views showing the pointer position when the signal shown in FIG. 1c is applied to an average type voltmeter. FIG. 3 is a front view showing the external appearance of a mechanism portion of a vehicle height detection device embodying the present invention, and FIG. 4 is a vehicle height sensor assembly of FIG.
FIG. 5 is a plan view showing details of 10, and FIG. 5 is a sectional view taken along line VV of FIG. FIG. 6 is a block diagram showing an electric circuit of the vehicle height sensor SNS mounted on the vehicle height sensor assembly 10 shown in FIG. FIG. 7 shows a control unit COM that receives the signal Sig from the vehicle height sensor SNS.
FIG. 3 is a block diagram showing the configuration of FIG. FIG. 8 is a timing chart showing an operation example of the vehicle height sensor SNS shown in FIG. FIGS. 9, 10, and 11 are flowcharts showing the operation of the microprocessor CPU1 shown in FIG. FIG. 12 is a waveform chart showing the relationship between the contents of each register and the signals shown in the flowchart of FIG. FIG. 13 shows a vehicle height sensor SNS 'for implementing the present invention in another mode.
3 is a block diagram showing a schematic configuration of an electric circuit of FIG. FIG. 14 is a flow chart showing the operation of the microprocessor CPU2 shown in FIG. 15 and 16 are electric circuit diagrams showing a conventional example. 1: Vehicle height detection mechanism, 2: Bracket 3: Link mechanism, 4,5: Nut 6: Rotating arm, 7: Push pull bar 7a: Rod, 7b: Socket 7c: Knuckle, 7d, 7e: Lock nut 8: Cover, 10: Vehicle height sensor assembly 11: Fixed slit 12a, 12b: Positioning hole 13: Center hole 20: Housing, 20a: Projection 21: Bearing, 22: Printed circuit board 23a, 23b: Photo coupler base 24: Positioning protrusion , 25: Element 26, 27: Screw 28a, 28b: Positioning protrusion 29a, 29b, 30a: Caulking 30: Rotating shaft, 31: Rotating slit plate SNS, SNS ′: Vehicle height sensor LEDs 1 to 4, L1 to 4: Light emitting diode PHO1 to 4, PH1 to 4: Phototransistor LA: Latch, OSC: Oscillation unit CNT: Hexadecimal counter CMP: Digital comparator COM: Controller CPU1, CPU2: Microprocessor ACT: Actuator Sli: Slit plate

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04L 25/02 301 B 9199−5K 25/49 H 9199−5K (72)発明者 浅見 謙 愛知県豊田市トヨタ町1番地 トヨタ自動 車株式会社内 審査官 朽名 一夫Continuation of front page (51) Int.Cl. 6 Identification number Office reference number FI Technical indication location H04L 25/02 301 B 9199-5K 25/49 H 9199-5K (72) Inventor Ken Asami Toyota City, Aichi Prefecture Toyota Kachina Kutana, Examiner, Toyota Motor Corporation

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】2以上の任意の自然数をnで表わし、1≦
p≦nなる任意の自然数をpで表わすと、n種の情報の
うちの第p番を、下記の周期T、 T=k×(n+l+m)、 k:単位時間、 l:0あるいは任意の自然数、 m:任意の自然数 なる、〔k×(p+l)〕時間連続する第1レベルおよ
びこの第1レベルに連続しかつ〔k×(n−p+m)〕
時間連続する第2レベルの、相対的にレベル差がある第
1レベルと第2レベルでなる2値信号で表わし、これを
一本の信号ラインの一端に送出し、 該信号ラインの他端において、第2値信号の周期T,第1
レベルの連続時間および第2レベルの連続時間、のうち
の少くとも2者を検出し、 これらの検出値とn,l,mに従って、pを表わすデータを
生成するデータ伝送方法。
1. An arbitrary natural number of 2 or more is represented by n, and 1 ≦
When an arbitrary natural number p ≦ n is represented by p, the p-th number of n kinds of information is the following period T, T = k × (n + l + m), k: unit time, l: 0 or any natural number. , M: an arbitrary natural number, [k × (p + 1)] time-continuous first level and [k × (n−p + m)] continuous to this first level
It is represented by a binary signal composed of a first level and a second level having a relative level difference of a second level continuous for time, and this is sent to one end of one signal line, and at the other end of the signal line. , Period T of the second value signal, first
A data transmission method for detecting at least two of a level continuous time and a second level continuous time, and generating data representing p according to these detected values and n, l, m.
【請求項2】前記信号ラインの他端におけるpを表わす
データの生成においては、前記2値信号の第1レベルの
連続時間と第2レベルの連続時間を検出し、それらの和
Tを(n+l+m)で除して単位時間kを算定し、さら
に該単位時間kを用いて第1レベル信号の連続時間を除
した後lを減じてpを表わすデータを生成する、特許請
求の範囲第1項記載のデータ伝送方法。
2. In generating data representing p at the other end of the signal line, the continuous time of the first level and the continuous time of the second level of the binary signal are detected, and the sum T thereof is (n + 1 + m). 3. The unit time k is calculated by dividing by 1), the unit time k is used to divide the continuous time of the first level signal, and then l is subtracted to generate data representing p. Described data transmission method.
【請求項3】前記信号ラインの他端において、第1レベ
ルが所定時間を越えて連続すると異常と検出する、特許
請求の範囲第1項記載のデータ伝送方法。
3. The data transmission method according to claim 1, wherein an abnormality is detected when the first level continues at the other end of the signal line for a predetermined time or longer.
【請求項4】前記信号ラインの他端において、第2レベ
ルが所定時間を越えて連続すると異常と検出する、特許
請求の範囲第1項記載のデータ伝送方法。
4. The data transmission method according to claim 1, wherein an abnormality is detected at the other end of the signal line when the second level continues for a predetermined time or longer.
JP19950086A 1986-08-26 1986-08-26 Data transmission method Expired - Fee Related JPH084256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19950086A JPH084256B2 (en) 1986-08-26 1986-08-26 Data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19950086A JPH084256B2 (en) 1986-08-26 1986-08-26 Data transmission method

Publications (2)

Publication Number Publication Date
JPS6356034A JPS6356034A (en) 1988-03-10
JPH084256B2 true JPH084256B2 (en) 1996-01-17

Family

ID=16408858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19950086A Expired - Fee Related JPH084256B2 (en) 1986-08-26 1986-08-26 Data transmission method

Country Status (1)

Country Link
JP (1) JPH084256B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19811431A1 (en) * 1998-03-17 1999-09-23 Hella Kg Hueck & Co Vehicle level sensor

Also Published As

Publication number Publication date
JPS6356034A (en) 1988-03-10

Similar Documents

Publication Publication Date Title
US5787132A (en) Data communication system having improved synchronization capability
JP3173174B2 (en) Speed detector
JPH084256B2 (en) Data transmission method
US4558304A (en) Incremental encoder synchronous decode circuit
US5525899A (en) Physical quantity change detection device which detects change by detecting a phase difference between two pulses
US4983826A (en) Rotation angle detecting apparatus
JP2504881B2 (en) Data output encoder
JP2903798B2 (en) In-vehicle serial data communication method
JP2556156B2 (en) In-vehicle control device microcomputer runaway monitoring device
JPH11264742A (en) Encoder misalignment detector
JP3241138B2 (en) Absolute encoder output signal abnormality detection method
JP2742829B2 (en) Origin circuit
JPH0228900A (en) Encoder transmission line abnormality detection circuit
CN105509777A (en) Programmable realization method and encoder with combination of processor and magnetic sensor
JP2742828B2 (en) Origin circuit
JP2793627B2 (en) Analog-to-digital converter
JP2613903B2 (en) Integral type analog-digital converter
KR100286043B1 (en) speed detecting system and method thereof
JPS6311914Y2 (en)
JPS6022672Y2 (en) Photoelectric switch device
SU1499490A1 (en) Pulse repetition rate divider with variable pulse duration
JP2826883B2 (en) Signal time interval monitoring device
KR900005307Y1 (en) Frequency change detection circuit
JPH113484A (en) Signal transmitter with communication function
JPH0663877B2 (en) Phase difference type torque detector

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees