JP3939327B2 - Data transmission and reception method, data transmission and reception device - Google Patents

Data transmission and reception method, data transmission and reception device Download PDF

Info

Publication number
JP3939327B2
JP3939327B2 JP2005027533A JP2005027533A JP3939327B2 JP 3939327 B2 JP3939327 B2 JP 3939327B2 JP 2005027533 A JP2005027533 A JP 2005027533A JP 2005027533 A JP2005027533 A JP 2005027533A JP 3939327 B2 JP3939327 B2 JP 3939327B2
Authority
JP
Japan
Prior art keywords
data
transmission
character
pwm
communication
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 - Lifetime
Application number
JP2005027533A
Other languages
Japanese (ja)
Other versions
JP2005160119A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2005027533A priority Critical patent/JP3939327B2/en
Publication of JP2005160119A publication Critical patent/JP2005160119A/en
Application granted granted Critical
Publication of JP3939327B2 publication Critical patent/JP3939327B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

この発明は、シリアル伝送インターフェースを使用してデータ通信を行う場合の特殊データを送受信する方法に関するものであり、特に、将来の自動車のインビーグルネットワーク技術の要素技術となる車両用デジタル通信における特殊データの送受信方法に関するものである。   The present invention relates to a method for transmitting / receiving special data when performing data communication using a serial transmission interface, and in particular, special data in digital communication for vehicles that will be an elemental technology of an in-beagle network technology for future automobiles. It is related with the transmission / reception method.

インビーグルネットワーク(IN−VEHICLE NETWORK)は、車両用電装品が相互の情報を共有するために、又は車両内の省配線化のために、ネットワーク接続する技術である。そして、その中の情報の交換は自動車用に規格化されたデジタル通信方式によって実施される。ここで、自動車用のデータ通信であるため、信頼性と情報交換の効率性向上を目的として、汎用デジタル通信とは味付けの違ったデジタル通信が適用される場合が多く、特殊な信号と送受手段を必要とすることが多々ある。   The in-beagle network (IN-VEHICLE NETWORK) is a technology for connecting to a network so that vehicle electrical components can share information with each other or reduce wiring in the vehicle. The exchange of information therein is performed by a digital communication system standardized for automobiles. Here, because it is data communication for automobiles, for the purpose of improving the reliability and efficiency of information exchange, digital communication that is different in flavor from general-purpose digital communication is often applied, special signals and transmission / reception means Is often required.

車両用デジタル通信規格の一つとして、LIN(Local Interconnect Network)がある。
図10はLINのネットワーク構成と伝送概念を示す図である。図において、データはマスターコントロールユニット内のスレーブタスクによりマスターコントロールユニットからスレーブコントロールユニットに伝送され、スレーブコントロールユニット間のデータの伝送はメッセージIDによって行われる。また、メッセージフレームは、同期フィールド(synch field)、確認フィールド(identifier field)、2、4、又は8ビットのデータフィールド(data field)、チェックフィールド(check field)から構成される。なお、LINの詳細な仕様は、LIN Protocol Specificatoin Rivision 1.2に記載されている。
One of vehicle digital communication standards is LIN (Local Interconnect Network).
FIG. 10 is a diagram showing a network configuration and transmission concept of LIN. In the figure, data is transmitted from the master control unit to the slave control unit by a slave task in the master control unit, and data transmission between the slave control units is performed by a message ID. The message frame includes a synch field, an identifier field, a 2, 4, or 8-bit data field, and a check field. Detailed specifications of LIN are described in LIN Protocol Specificatoin Rivision 1.2.

次に、シリアル伝送インターフェースを使用したデータ通信について説明する。図11はインビーグルネットワークのデータ通信を行うノードの一つを示す構成図である。
図において、車両用電装品(ONE OF ELECTRICAL COMPONENTS FOR CAR)1には電子制御ユニット(ECU)2が搭載されており、この電子制御ユニット2はシリアル伝送インターフェース(SCI)10、マイクロコンピュータユニット(MCU)20を備えている。
この電子制御ユニット2はインビーグルネットワークの一つのノードを構成し、他のノードとは伝送線30を介してシリアル通信、すなわち伝送線30の電位をHigh/Lowにして情報を送受信している。
Next, data communication using a serial transmission interface will be described. FIG. 11 is a configuration diagram showing one of the nodes performing data communication of the in-beagle network.
In the figure, an electronic control unit (ECU) 2 is mounted on a vehicle electrical component (ONE OF ELECTRICAL COMPONENTS FOR CAR) 1, and this electronic control unit 2 includes a serial transmission interface (SCI) 10, a microcomputer unit (MCU). ) 20.
The electronic control unit 2 constitutes one node of the in-beagle network, and transmits / receives information to / from other nodes through serial transmission, that is, the potential of the transmission line 30 is set to High / Low.

図11に基づいてシリアル伝送インターフェース10によるデータの送受信を説明する。
(1)相手側ノードが伝送線電位を通信情報に基づいて操作する場合(自分側ノードが受信する場合)。
伝送線Highの時、トランジスタT1はオンし、トランジスタT2がオンする。つまり、MCU20のレシーブポートRxはHighとなる。
伝送線Lowの時、トランジスタT1はオフし、トランジスタT2がオフする。つまり、MCU20のレシーブポートRxはLowとなる。
このように、レシーブポートRxは相手側ノードからの伝送線電位のHigh/Lowレベルを確認する。
(2)自分側ノードが伝送線電位を通信情報に基づいて操作する場合(自分側ノードが送信する場合)。
伝送線Highにする時、トランスミションポートTxをHighとする。つまりトランジスタT4はオフ、トランジスタT3がオフとなり。伝送線30はHighとなる。
伝送線Lowにする時、トランスミションポートTxをLowとする。つまりトランジスタT4はオン、トランジスタT3がオンとなり、伝送線はLowとなる。
Data transmission / reception by the serial transmission interface 10 will be described with reference to FIG.
(1) When the counterpart node operates the transmission line potential based on the communication information (when the own node receives it).
When the transmission line is High, the transistor T1 is turned on and the transistor T2 is turned on. That is, the receive port Rx of the MCU 20 is High.
When the transmission line is Low, the transistor T1 is turned off and the transistor T2 is turned off. That is, the receive port Rx of the MCU 20 is Low.
In this way, the receive port Rx confirms the High / Low level of the transmission line potential from the counterpart node.
(2) When the own node operates the transmission line potential based on the communication information (when the own node transmits).
When the transmission line is high, the transmission port Tx is high. That is, the transistor T4 is off and the transistor T3 is off. The transmission line 30 is High.
When the transmission line is Low, the transmission port Tx is Low. That is, the transistor T4 is on, the transistor T3 is on, and the transmission line is low.

ここで、MCU20のレシーブポートRxは、伝送線の連続High/Lowのデータを、あらかじめ準備している格納庫(レジスタ)に自動的に0/1データとして格納する。図12に示すように、調歩同期式通信の場合、スタートビットb1と、ストップビットb2と、スタートビットb1とスタートビットb2で挟まれたデータビットb3から構成される一つのキャラクタS2を、通信データの一単位として認識し、その内のデータビットb3を受信情報として格納することが一般的である。   Here, the receive port Rx of the MCU 20 automatically stores the continuous High / Low data of the transmission line as 0/1 data in a storage (register) prepared in advance. As shown in FIG. 12, in asynchronous communication, one character S2 composed of a start bit b1, a stop bit b2, and a data bit b3 sandwiched between the start bit b1 and the start bit b2 is transferred to the communication data. In general, the data bit b3 is recognized as received information and stored as received information.

一方、MCU20のトランスミションポートTxは、伝送線の連続High/Lowのデータを、あらかじめ準備している格納庫内データに基づいて、自動的に0/1データとして伝送線30の電位操作をする。そして、調歩同期式通信では、上記と同様、一つのキャラクタS2を通信データの一単位として操作することが一般的である。   On the other hand, the transmission port Tx of the MCU 20 automatically controls the potential of the transmission line 30 as 0/1 data based on the data in the hangar prepared in advance for the continuous high / low data of the transmission line. In asynchronous communication, it is common to operate one character S2 as a unit of communication data as described above.

従来方法1.
ところで、シリアル伝送インターフェースを使用して決められた伝送速度に基づいて調歩同期式通信を行う場合、一つのキャラクタ(通信データの1単位)中に設定された送受信のビット数で構成し得るビット数n分の伝送線連続優性レベルより多いビット数Nの伝送線連続優性レベルからなる特殊データを送信する場合がある。ここで、伝送線に電源を入れた状態で何も操作しない初期状態の伝送線レベルを伝送線劣性レベルとし、操作した状態の伝送線レベルを伝送線優性レベルとする。
例えば、図12に示す一つのキャラクタとして、スタートビットb1が1ビット、ストップビットb2が1ビット、データビットb3が8ビットに設定されており、図10に示すLINのSYNCH BRAKE信号(メッセージフレームの開始を知らせる信号)のような連続13ビットからなるLowデータを送出する場合である。
このような場合、下記に示すハードウエアとソフトウエアを備える必要がある。
Conventional method
By the way, when performing asynchronous communication based on the transmission rate determined using the serial transmission interface, the number of bits that can be configured by the number of transmission / reception bits set in one character (one unit of communication data) In some cases, special data having a transmission line continuous dominant level of N bits, which is larger than the transmission line continuous dominant level of n minutes, is transmitted. Here, the transmission line level in the initial state in which no operation is performed with the power on the transmission line is defined as the transmission line recessive level, and the transmission line level in the operated state is defined as the transmission line dominant level.
For example, as one character shown in FIG. 12, the start bit b1 is set to 1 bit, the stop bit b2 is set to 1 bit, and the data bit b3 is set to 8 bits. The LIN SYNCH BRAKE signal (message frame) shown in FIG. This is a case of sending low data consisting of continuous 13 bits such as a signal indicating the start).
In such a case, it is necessary to provide the hardware and software described below.

すなわち、ハードウエアとして、図13に示すように、MCU20にI/O端子40を追加設定すると共に、I/O端子40と伝送線30の間に遮断回路50を追加する。   That is, as hardware, as shown in FIG. 13, an I / O terminal 40 is additionally set in the MCU 20, and a cutoff circuit 50 is added between the I / O terminal 40 and the transmission line 30.

また、ソフトウエアとして、MCU20に上記追加設定したI/O端子40の制御プログラムを追加する。図14は、例えば4つのキャラクタを送信する場合で、第1キャラクタだけが所定より長い伝送線連続優性レベルからなる特殊データを含むべきキャラクタの場合の全キャラクタ送信フローである。   Further, as the software, the control program for the I / O terminal 40 additionally set is added to the MCU 20. FIG. 14 is an all character transmission flow in the case of transmitting four characters, for example, in which only the first character is a character that should include special data having a transmission line continuous dominant level longer than a predetermined value.

図15の信号線図に基づいて従来方法1によるデータ通信を説明する。
まず、A時点において、MCU20に特別に用意したI/Oポート40と、本来SCI回路10にはない特別な遮断回路50を使って伝送線30の電位をLowにする。
次に、B時間において、「通信フレーム開始信号S1」となりうる時間の間、伝送線30のLow制御を継続、つまりMCU20内のタイマで時間を計測する。ここで、「通信フレーム開始信号S1」は、例えばLINのSYNCH BRAKE信号のような連続13ビットからなるLowデータのような信号である。
次に、C時点において、「通信フレーム開始信号S1」となりえる時間が終了すれば、伝送線30のLow制御を解除する。
Data communication by the conventional method 1 will be described based on the signal diagram of FIG.
First, at time A, the potential of the transmission line 30 is set to Low using the I / O port 40 specially prepared for the MCU 20 and the special cutoff circuit 50 that is not originally in the SCI circuit 10.
Next, during time B, the Low control of the transmission line 30 is continued for a time that can be the “communication frame start signal S1”, that is, the time is measured by a timer in the MCU 20. Here, the “communication frame start signal S1” is a signal such as Low data composed of 13 consecutive bits such as a LIN SYNCH BRAKE signal.
Next, at time C, when the time that can be the “communication frame start signal S1” is completed, the Low control of the transmission line 30 is released.

従来方法2.
また、シリアル伝送インターフェースを使用して決められた伝送速度に基づいて調歩同期式通信を行う場合、受信側が性能的にキャラクタとキャラクタの間にインターキャラクタ時間を特殊に要求する場合、またはメッセージ規格がキャラクタとキャラクタの間にインターキャラクタ時間を規格づけている場合がある。
例えば、メッセージ規格により決められている場合として、図10に示すLINのRESPONSE SPACE信号がある。
このような場合、図16に示すような、キャラクタ送出とキャラクタ送出の間にインターキャラクタ時間を設定するプログラムをMCU20に追加する必要があった。
Conventional method 2.
Also, when performing asynchronous communication based on the transmission rate determined using the serial transmission interface, when the receiver specifically requests intercharacter time between characters, or when the message standard is There are cases where the intercharacter time is standardized between characters.
For example, as determined by the message standard, there is a LIN RESPONSE SPACE signal shown in FIG.
In such a case, a program for setting the intercharacter time between character transmissions as shown in FIG.

図15の信号線図に基づいて従来方法2によるデータ通信を説明する。
まず、C時点において、「通信フレーム開始信号S1」となりえる時間が終了すれば、伝送線30のLow制御を解除すると共に、インターキャラクタ時間S3の計測を開始する。
次に、D時間において、調歩同期式通信によるキャラクタ送信をすぐに行わないで、インターキャラクタ時間S3(図15の場合、1ビットに相当する時間)をMCU20のタイマ機能により計測する。
次に、E時点において、インターキャラクタ時間S3を経過した後、調歩同期式バイトコーディングによるキャラクタデータS2を送出する。この例では、MCU20に、伝送速度標準、スタートビット1ビット、データビット8ビット、ストップビット1ビットの設定で送出する。
次に、F時点において、キャラクタ送出完了後、すぐに次のキャラクタを送出せずに、インターキャラクタ時間S3の計測を開始する。この時、次に送信するキャラクタデータは待機している。
次に、G時間において、インターキャラクタ時間S3(1ビットに相当する時間)をMCU20のタイマ機能により計測する。
次に、H時点において、インターキャラクタ時間S3の計測完了を確認した後、調歩同期式バイトコーディングによるキャラクタデータS2を送出する。
次に、I時点において、最終キャラクタデータの送出を完了後、すぐに次の通信フレームの通信開始合図を出さずに、インターキャラクタ時間S3の計測を開始する。
次に、J時間において、インターキャラクタ時間S3(1ビットに相当する時間)をMCU20のタイマ機能により計測する。
そして、K時点において、インターキャラクタ時間S3の計測完了確認後、次の通信フレームをいつ送出してもいい状態にて完了する。
Data communication by the conventional method 2 will be described based on the signal diagram of FIG.
First, at time C, when the time that can be the “communication frame start signal S1” is completed, the Low control of the transmission line 30 is canceled and the measurement of the intercharacter time S3 is started.
Next, in the D time, the character transmission by the asynchronous communication is not performed immediately, and the inter character time S3 (time corresponding to 1 bit in FIG. 15) is measured by the timer function of the MCU 20.
Next, at the time point E, after the inter-character time S3 has elapsed, the character data S2 by asynchronous byte coding is transmitted. In this example, the data is sent to the MCU 20 with the transmission rate standard, start bit 1 bit, data bit 8 bits, and stop bit 1 bit.
Next, at the time point F, measurement of the intercharacter time S3 is started without sending out the next character immediately after the completion of sending out the character. At this time, the character data to be transmitted next is waiting.
Next, in G time, the intercharacter time S3 (time corresponding to 1 bit) is measured by the timer function of the MCU 20.
Next, at the time point H, after confirming the completion of the measurement of the intercharacter time S3, character data S2 by asynchronous byte coding is transmitted.
Next, at the time point I, immediately after the transmission of the final character data is completed, the measurement of the intercharacter time S3 is started without issuing a communication start signal for the next communication frame.
Next, in J time, the intercharacter time S3 (time corresponding to 1 bit) is measured by the timer function of the MCU 20.
At time K, after confirming the completion of the measurement of the intercharacter time S3, the process is completed in a state where the next communication frame can be transmitted anytime.

従来方法3.
次に、パルス幅変調信号(PWM信号)を使用した特殊ビットコーディングによるデータ通信を、上記シリアル伝送インターフェースを使用して行う場合について説明する。
Conventional method 3.
Next, a case where data communication by special bit coding using a pulse width modulation signal (PWM signal) is performed using the serial transmission interface will be described.

図17はPWMビットコーディングを説明するための図である。
PWMコーディングは、例えば、PWMパルスの1周期Tの中のLow時間の長さLi、L0、L1により“IDLE”、論理“0”、論理“1”を表現するビットコーディングである。
FIG. 17 is a diagram for explaining PWM bit coding.
The PWM coding is, for example, bit coding that represents “IDLE”, logic “0”, and logic “1” by the lengths Li, L0, and L1 of the Low time in one period T of the PWM pulse.

図18はPWMビットコーディングによるデータ通信をシリアル伝送インターフェースを使用して行う場合の従来のハードウエア構成を示す図である。
図において、SUBMCU60はPWMビットコーディングによるデータ通信を行うための通信用補助マイクロコンピュータユニットである。SUBMCU60にはPWMビットコーディングによるデータ通信を行うためのプログラムが搭載されている。また、SUBMCU60のI/O(1)ポートは伝送線中の電位Lowを時間監視または計測入力するためのポートである。SUBMCU60のI/O(2)ポートは伝送線電位をLowにするために時間監視・計測、出力するためのポートである。SUBMCU60のRx、TxポートはMAINMCU20のRx、Txポートに接続され、MAINMCU20との間でデータをシリアル通信する。更に、SUBMCU60には、SUBMCU駆動用の発振器61と、SUBMCU電力用の供給配線62が接続されている。
FIG. 18 is a diagram showing a conventional hardware configuration when data communication by PWM bit coding is performed using a serial transmission interface.
In the figure, a sub MCU 60 is a communication auxiliary microcomputer unit for performing data communication by PWM bit coding. A program for performing data communication by PWM bit coding is mounted on the SUBMCU 60. The I / O (1) port of the SUBMCU 60 is a port for time monitoring or measuring input of the potential Low in the transmission line. The I / O (2) port of the SUBMCU 60 is a port for monitoring, measuring, and outputting in order to set the transmission line potential to Low. The Rx and Tx ports of the SUBMCU 60 are connected to the Rx and Tx ports of the MAIN MCU 20 and serially communicate data with the MAIN MCU 20. Further, a SUBMCU driving oscillator 61 and a SUBMCU power supply wiring 62 are connected to the SUBMCU 60.

次に、図18のハードウエアを使用して、PWM信号を使用した特殊ビットコーディングによるデータ通信を行う方法を説明する。   Next, a method of performing data communication by special bit coding using a PWM signal will be described using the hardware of FIG.

まず、図18のハードウエアを送信側ノードとして使用する場合について説明する。   First, the case where the hardware of FIG. 18 is used as a transmission side node will be described.

(1)IDLEパルスの送出
まず、伝送線電位をローにする回路を作動させるスイッチとなるI/O(2)ポートを出力状態(スイッチオン)にする。
それと同時に、パルス一周期時間の時間計測を開始する。
IDLEパルスを意味するためのパルス一周期中のロー時間率時間が経過後、該I/Oポートを非出力状態にする。
パルス一周期時間経過後、1つのIDLEパルスの送出完了として次のパルス生成制御フローへ移行する。
(1) Transmission of IDLE pulse First, the I / O (2) port, which is a switch for operating the circuit for setting the transmission line potential to low, is set to the output state (switch on).
At the same time, the time measurement of one pulse cycle time is started.
The I / O port is put into a non-output state after a low time rate time in one pulse period for meaning an IDLE pulse has elapsed.
After one pulse period elapses, the process proceeds to the next pulse generation control flow as the completion of the transmission of one IDLE pulse.

(2)ロジック”0”を意味するパルスの送出
伝送線電位をローにする回路を作動させるスイッチとなるI/O(2)ポートを出力状態(スイッチオン)にする。
それと同時に、パルス一周期時間の時間計測を開始する。
ロジック”0”を意味するためのパルス一周期中のLow時間率時間が経過後、該I/Oポートを非出力状態にする。
パルス一周期時間経過後、1つのビットパルスの送出完了として次のパルス生成制御フローへ移行する。
(2) Sending out a pulse signifying logic “0” The I / O (2) port, which is a switch for operating a circuit for setting the transmission line potential to low, is set to the output state (switch-on).
At the same time, the time measurement of one pulse cycle time is started.
After the low time ratio time in one pulse period for meaning logic “0” elapses, the I / O port is brought into a non-output state.
After the lapse of one pulse cycle time, the process proceeds to the next pulse generation control flow as the completion of transmission of one bit pulse.

(3)ロジック”1”を意味するパルスの送出
伝送線電位をローにする回路を作動させるスイッチとなるI/O(2)ポートを出力状態(スイッチオン)にする。
それと同時に、パルス一周期時間の時間計測を開始する。
ロジック”1”を意味するためのパルス一周期中のLow時間率時間が経過後、該I/Oポートを非出力状態にする。
パルス一周期時間経過後、1つのビットパルスの送出完了として次のパルス生成制御フローへ移行する。
(3) Sending out a pulse signifying logic “1” The I / O (2) port, which is a switch for operating a circuit for lowering the transmission line potential, is set in an output state (switch-on).
At the same time, the time measurement of one pulse cycle time is started.
After the low time rate in one pulse cycle for meaning logic “1” has elapsed, the I / O port is set to a non-output state.
After the lapse of one pulse cycle time, the process proceeds to the next pulse generation control flow as the completion of transmission of one bit pulse.

次に、図18のハードウエアを受信側ノードとして使用する場合について説明する。
(1)伝送線電位がHighからLowに転移したことを検出すると同時に、時間計測を開始する。
(2)伝送線電位がLowからHighに転移したことを検出すると同時に、時間計測値を確認する。そして、1パルス中のLow時間としてメモリ格納しておく。
(3)伝送線電位がHighからLowに転移したことを検出すると同時に、時間計測値を確認し、時間計測をリセットする。そして、1パルス周期時間としてメモリ格納する。またそれと同時に(1)行程も実施する。
(4)1パルス周期時間中のLow時間率を格納データから算出する。その結果に基づいて計測パルスが「IDLE」「0」「1」のいずれの意味をもつのか分類し、データとして格納庫に順列格納する。
Next, the case where the hardware of FIG. 18 is used as a receiving side node will be described.
(1) The time measurement is started simultaneously with detecting that the transmission line potential has changed from High to Low.
(2) At the same time as detecting that the transmission line potential has shifted from Low to High, the time measurement value is confirmed. Then, it is stored in the memory as the Low time in one pulse.
(3) At the same time as detecting that the transmission line potential has transitioned from High to Low, the time measurement value is confirmed and the time measurement is reset. Then, it is stored in memory as one pulse cycle time. At the same time, the process (1) is also performed.
(4) The Low time rate in one pulse cycle time is calculated from the stored data. Based on the result, it is classified whether the measurement pulse has the meaning of “IDLE”, “0”, or “1”, and is stored in the storage as a permutation as data.

特表平11−513231号公報Japanese National Patent Publication No. 11-513231

従来方法1によれば、SCI回路10とは別に特別の遮断回路50を追加する必要があり、その結果、遮断回路の部品追加コスト、部品搭載コスト、ユニット基板上での追加回路分の面積占有、場合によってはユニットの大型化を招いていた。
また、MCU20にI/O端子40を必要とし、MCU20にI/O端子が余っていなければ、MCUのI/O端子数のグレードアップが必要となっていた。このグレードアップはつまりコストの上昇であり、場合によってはMCUの機種変更が伴ってソフトウエア・ハードウエアの根本的変更をも要したり、サイズが大きくなる場合があった。
更に、MCU20のタイマ監視によるI/O端子制御プログラムを追加することにより、MCU20のプログラム記憶容量が残っていなければ、MCUのグレードアップが必要になっていた。また、追加プログラムのために総合プログラムの回転率が100%を超える(オーバーフローする)ようであれば、MCUの動作クロック、又はMCU自体のグレードアップが必要になっていた。
すなわち、従来方法1が抱える上記課題は、いずれも製品魅力であるコスト・サイズにとってマイナスの問題点であった。
According to the conventional method 1, it is necessary to add a special cutoff circuit 50 separately from the SCI circuit 10, and as a result, the additional cost of the cutoff circuit, the component mounting cost, and the area occupied by the additional circuit on the unit board In some cases, the size of the unit was increased.
Further, if the MCU 20 requires the I / O terminal 40 and the MCU 20 does not have any I / O terminals, it is necessary to upgrade the number of I / O terminals of the MCU. This upgrade is an increase in cost. In some cases, a change in the MCU model may require a fundamental change in software and hardware, and the size may increase.
Furthermore, if the program storage capacity of the MCU 20 does not remain by adding an I / O terminal control program based on timer monitoring of the MCU 20, it is necessary to upgrade the MCU. Further, if the rotation rate of the general program exceeds 100% (overflows) due to the additional program, it is necessary to upgrade the operation clock of the MCU or the MCU itself.
That is, the above-mentioned problems of the conventional method 1 are negative problems for the cost and size, which are attractive products.

従来方法2によれば、インターキャラクタ時間を時間計測し、次に送出するキャラクタデータを待機させる複雑なプログラムをMCU20に導入する必要があった。そして、MCUにプログラム記憶領域が残っていなければMCUのグレードアップが必要であった。
また、その追加プログラムのために総合プログラムの回転率が100%を超える(オーバーフローする)ようであれば、MCUの動作クロック、又はMCU自体のグレードアップが必要になっていた。これらのグレードアップは製品のコストアップを招いていた。
According to the conventional method 2, it is necessary to introduce into the MCU 20 a complicated program that measures the intercharacter time and waits for the next character data to be transmitted. If no program storage area remains in the MCU, it is necessary to upgrade the MCU.
Further, if the rotation rate of the general program exceeds 100% (overflows) due to the additional program, it is necessary to upgrade the operation clock of the MCU or the MCU itself. These upgrades have led to increased product costs.

従来方法3によれば、通信専用のSUBMCUや通信専用のスペシャルICを追加しなければならず、またそれらの電力供給配線や駆動用発振器を追加しなければならなかった。そして、SUBMCUであれば新規プログラムの追加が必要であり、MAINMCUはSUBMCUとの通信のための新規プログラムが必要であった。いずれにしても、製品の大幅なコストアップ、サイズアップを余儀なくされていた。   According to the conventional method 3, it is necessary to add a communication-specific SUMCU and a communication-specific special IC, and also to add power supply wiring and a driving oscillator. If it is a SUBCU, a new program needs to be added, and the MAIN MCU needs a new program for communication with the SUB MCU. In any case, the cost and size of the product have been greatly increased.

この発明は、上記のような従来方法3の問題点を解消するためになされたものであり、シリアル伝送インターフェースを使用してPWMビットコーディングによるデータ通信を送信する場合、また、シリアル伝送インターフェースを使用してPWMビットコーディングによるデータ通信を受信する場合、通信専用のSUBMCUや通信専用のスペシャルICを追加する必要をなくし、汎用のシリアル通信インターフェースを使用してPWMビットコーディングによるデータを容易に送受信する。   The present invention has been made to solve the above-described problems of the conventional method 3. When transmitting data communication by PWM bit coding using a serial transmission interface, the serial transmission interface is also used. When receiving data communication by PWM bit coding, it is not necessary to add a communication-specific SUBMCU or communication-specific special IC, and data by PWM bit coding is easily transmitted and received using a general-purpose serial communication interface.

請求項1の発明は、シリアル伝送インターフェースを使用してパルス幅変調信号(PWM信号)を使用した特殊ビットコーディングによるデータ通信を送信する方法であって、調歩同期式コードデータの1キャラクタをPWMコードデータの1周期とし、1キャラクタ中のLow、Highレベルの比率により、PWMコードデータの1周期中のLow、Highを表わして“IDLE”、“0”、“1”信号を送出することを特徴とする。 The invention of claim 1 is a method for transmitting data communication by special bit coding using a pulse width modulation signal (PWM signal) using a serial transmission interface, wherein one character of asynchronous code data is converted into a PWM code. One cycle of data, and the ratio of Low and High levels in one character represents Low and High in one cycle of PWM code data, and "IDLE", "0", and "1" signals are transmitted. And

請求項2の発明は、シリアル伝送インターフェースを使用してパルス幅変調信号(PWM信号)を使用した特殊ビットコーディングによるデータ通信を受信する方法であって、PWMコードデータの1周期中のLow、Highを複数ビットのNRZコードデータ1単位で受信し、当該NRZコードデータ1単位をそれぞれ対応するPWMコードデータである“IDLE”、“0”、“1”信号に置き換えることを特徴とする。The invention of claim 2 is a method for receiving data communication by special bit coding using a pulse width modulation signal (PWM signal) using a serial transmission interface, wherein Low, High in one cycle of PWM code data. Is received in units of a plurality of bits of NRZ code data, and each unit of NRZ code data is replaced with corresponding “IDLE”, “0”, and “1” signals.

請求項3の発明は、所定の伝送速度に基づいて調歩同期式通信によりデータを送信するデータ制御部、データ制御部からのデータを伝送線に送出するシリアル伝送インターフェースを備えたデータ送信装置において、調歩同期式コードデータの1キャラクタをPWMコードデータの1周期とし、1キャラクタ中のLow、Highレベルの比率により、PWMコードデータの1周期中のLow、Highを表わして“IDLE”、“0”、“1”信号を送出することを特徴とする。According to a third aspect of the present invention, there is provided a data transmission device including a data control unit that transmits data by asynchronous communication based on a predetermined transmission rate, and a serial transmission interface that transmits data from the data control unit to a transmission line. One character of asynchronous code data is defined as one cycle of PWM code data, and “IDLE” and “0” represent Low and High in one cycle of PWM code data by the ratio of Low and High levels in one character. , “1” signal is transmitted.

請求項4の発明は、所定の伝送速度に基づいて調歩同期式通信によりデータを受信するデータ制御部、伝送線からのデータをデータ制御部に送出するシリアル伝送インターフェースを備えたデータ受信装置において、PWMコードデータの1周期中のLow、Highを複数ビットのNRZコードデータ1単位で受信し、当該NRZコードデータ1単位をそれぞれ対応するPWMコードデータである“IDLE”、“0”、“1”信号に置き換えることを特徴とする。According to a fourth aspect of the present invention, there is provided a data receiving device including a data control unit that receives data by asynchronous communication based on a predetermined transmission rate, and a serial transmission interface that transmits data from the transmission line to the data control unit. “Low” and “High” in one cycle of the PWM code data are received in units of NRZ code data of a plurality of bits, and “IDLE”, “0”, “1”, which are PWM code data corresponding to each unit of NRZ code data, respectively. It is characterized by replacing with a signal.

請求項1から請求項4の発明によれば、シリアル伝送インターフェースを使用してPWMビットコーディングによるデータ通信を送信する場合、PWM信号に対応した調歩同期式バイトコーディングで送信し、また、シリアル伝送インターフェースを使用してPWMビットコーディングによるデータ通信を受信する場合、NRZビットコーディングで受信し、受信したNRZ信号を対応するPWM信号に変換するようにしたので、従来方法3で説明した通信専用のSUBMCUや通信専用のスペシャルICを追加する必要がなくなり、汎用のシリアル通信インターフェースを使用してPWMビットコーディングによるデータを容易に送受信することができる。 According to the first to fourth aspects of the present invention, when data communication by PWM bit coding is transmitted using a serial transmission interface, transmission is performed by asynchronous byte coding corresponding to the PWM signal, and the serial transmission interface When data communication by PWM bit coding is received using the NRZ bit coding, the received NRZ signal is converted into a corresponding PWM signal. Therefore, the communication-dedicated SUMCU described in the conventional method 3 is used. There is no need to add a special IC dedicated to communication, and data by PWM bit coding can be easily transmitted and received using a general-purpose serial communication interface.

参考実施の形態1.
参考実施の形態1は、従来方法1の課題を解決するための実施の形態である。
すなわち、シリアル伝送インターフェースを使用して決められた伝送速度に基づいて調歩同期式通信を行う場合において、通信データの1単位であるキャラクタ中に設定された送受信のビット数で構成し得るビット数n分の伝送線連続優性レベルより多いビット数Nの伝送線連続優性レベルからなる特殊データを送信する際、送信側がその特殊データの送信の時だけ、伝送速度を換算的に落として送信するようにする。
Reference Embodiment 1
The reference embodiment 1 is an embodiment for solving the problem of the conventional method 1.
That is, when performing asynchronous communication based on a transmission rate determined using a serial transmission interface, the number of bits n that can be configured by the number of transmission / reception bits set in a character that is one unit of communication data When sending special data with a transmission line continuous dominant level of N bits, which is greater than the transmission line continuous dominant level, the transmission side will reduce the transmission speed in terms of conversion only when transmitting the special data. To do.

図1は参考実施の形態1によるデータ通信を行うノードの一つを示す構成図である。図において、車両用電装品1には電子制御ユニット(ECU)2が搭載されており、この電子制御ユニット2はシリアル伝送インターフェース(SCI)10、マイクロコンピュータユニット(MCU)20を備えている。
この電子制御ユニット2はインビーグルネットワークの一つのノードを構成し、他のノードとは伝送線30を介してシリアル通信を行っており、すなわち伝送線30の電位をHigh/Lowにして情報を送受信している。
MCU20は、通信情報を受信するレシーブポートRx、通信情報を送信するトランスミッションポートTxを備えている。
シリアル伝送インターフェース10は、相手側ノードからの通信情報を受信する場合に、伝送線30のHigh/Lowに応じて、オン/オフするトランジスタT1及びトランジスタT2を備えている。そして、自分側ノードから通信情報を送信する場合に、トランスミションポートTxのHigh/Lowに応じて、オフ/オンするトランジスタT4及びトランジスタT3を備えている。
以上のように、ハードウエア構成は図11の構成と同様である。すなわち、参考実施の形態1では、図13に示すように、MCU20にI/O端子40を追加設定し、I/O端子40と伝送線30の間に遮断回路50を追加する必要がなく、ハードウエアとして何も追加がないことを特徴とする。
FIG. 1 is a configuration diagram illustrating one of nodes that perform data communication according to the first embodiment. In the figure, an electronic control unit (ECU) 2 is mounted on the vehicle electrical component 1, and the electronic control unit 2 includes a serial transmission interface (SCI) 10 and a microcomputer unit (MCU) 20.
The electronic control unit 2 constitutes one node of the in-beagle network, and performs serial communication with the other nodes via the transmission line 30, that is, transmits / receives information by setting the potential of the transmission line 30 to High / Low. is doing.
The MCU 20 includes a receive port Rx that receives communication information and a transmission port Tx that transmits communication information.
The serial transmission interface 10 includes a transistor T1 and a transistor T2 that are turned on / off in response to High / Low of the transmission line 30 when receiving communication information from the counterpart node. When communication information is transmitted from the node on its own side, a transistor T4 and a transistor T3 that are turned off / on according to High / Low of the transmission port Tx are provided.
As described above, the hardware configuration is the same as that shown in FIG. That is, in the first embodiment, as shown in FIG. 13, it is not necessary to additionally set the I / O terminal 40 in the MCU 20 and add the cutoff circuit 50 between the I / O terminal 40 and the transmission line 30. It is characterized by nothing added as hardware.

次に、参考実施の形態1によるキャラクタ送信方法を図2のフローチャートに基づいて説明する。
ここで、MCU20のシリアル通信の標準装備により表現できる伝送線連続優性レベルデータの限界をnビット長とし、特殊データである上記標準性能では表現できない長い伝送線連続優性レベルデータをNビット長とする。
そして、ステップ21において、伝送速度を標準速度の(n/N)倍に変更する。
次に、ステップ22において、MCU20のシリアル通信の標準性能では表現できない長い伝送線連続優性レベルデータである特殊データを第1キャラクタとして設定し、この第1キャラクタを上記変更した伝送速度(標準速度のn/N倍)により相手側ノードに送出する。
次に、ステップ23において、第1キャラクタを送出した後、伝送速度を元の標準速度に戻す。
その後、ステップ24以降、第2キャラクタ、第3キャラクタを標準速度で順々に送出する。
Next, the character transmission method according to the first embodiment will be described based on the flowchart of FIG.
Here, the limit of the transmission line continuous dominant level data that can be expressed by the standard equipment of the MCU 20 is defined as an n-bit length, and the long transmission line continuous dominant level data that cannot be expressed by the standard performance, which is special data, is defined as an N-bit length. .
In step 21, the transmission rate is changed to (n / N) times the standard rate.
Next, in step 22, special data which is long transmission line continuous dominant level data that cannot be expressed by the standard performance of the serial communication of the MCU 20 is set as the first character, and the first character is changed to the above-described changed transmission speed (standard speed). n / N times) to the other node.
Next, in step 23, after sending the first character, the transmission speed is returned to the original standard speed.
Thereafter, after step 24, the second character and the third character are sequentially sent out at the standard speed.

以上のように参考実施の形態1によれば、通信データの1単位であるキャラクタ中に設定された送受信のビット数で構成し得るビット数n分の伝送線連続優性レベルより多いビット数Nの伝送線連続優性レベルからなる特殊データを送信する場合、送信側がその特殊データの送信の時だけ、伝送速度を換算的に落として送信するようにしたので、従来方法1で説明した伝送信号の遮断回路50の追加、MCU20のI/O端子40の追加、タイマ監視によるI/O端子制御プログラムの追加の必要がなくなる。   As described above, according to the first embodiment, the number of bits N greater than the transmission line continuous dominant level corresponding to the number n of bits that can be configured by the number of transmission / reception bits set in the character that is one unit of communication data. When transmitting special data having a transmission line continuous dominance level, the transmission side cuts the transmission rate in terms of conversion only when transmitting the special data. There is no need to add a circuit 50, an I / O terminal 40 of the MCU 20, or an I / O terminal control program by timer monitoring.

すなわち、参考実施の形態1によれば、
(1)遮断回路の部品追加コスト、部品搭載コスト、ユニット基板上での追加回路分の面積占有、場合によってはユニットの大型化、
(2)MCUにI/O端子が余っていなければ、MCUのI/O端子数のグレードアップ、グレードアップに伴うコストの上昇、場合によってはMCUの機種変更が伴うソフトウエア・ハードウエアの根本的変更、及びMCUサイズが大きくなること、
(3)追加プログラムのために総合プログラムの回転率が100%を超える(オーバーフローする)ようであれば、MCUの動作クロック、又はMCU自体のグレードアップ、
の各種問題点が解決される。
That is, according to the reference embodiment 1,
(1) Additional cost of breaker circuit component, component mounting cost, occupied area of additional circuit on unit board, and in some cases, increased unit size,
(2) If there are no I / O terminals in the MCU, the number of I / O terminals of the MCU will be upgraded, the cost will increase with the upgrade, and the software / hardware fundamentals that may require the MCU to be changed Change and MCU size increase,
(3) If the turnover rate of the overall program exceeds 100% (overflows) due to the additional program, the MCU operation clock or the MCU itself is upgraded,
The various problems are solved.

参考実施の形態2.
参考実施の形態2は、従来方法2の課題を解決するための実施の形態である。
すなわち、シリアル伝送インターフェースを使用して決められた伝送速度に基づいて調歩同期式通信を行う場合において、受信側が性能的にキャラクタ間にインターキャラクタ時間を要求する場合、またはメッセージ規格がキャラクタ間にインターキャラクタ時間を規格づけている場合、送信側が、ストップビットの数として、送受信側で定義付けられたストップビット数にインターキャラクタ時間を満たす数のビット数を加えたストップビット数設定に切り換えて送信するようにする。
Reference Embodiment 2
The reference embodiment 2 is an embodiment for solving the problem of the conventional method 2.
That is, when asynchronous communication is performed based on a transmission rate determined using a serial transmission interface, when the receiving side requests intercharacter time between characters in terms of performance, or when the message standard specifies intercharacter communication between characters. When the character time is standardized, the transmission side switches to the stop bit number setting by adding the number of stop bits defined on the transmission / reception side to the number of bits that satisfy the intercharacter time, and transmits. Like that.

図3は参考実施の形態2によるキャラクタ構成を示す図である。参考実施の形態2においては、送信側が設定するキャラクタ構成は、本来送受信側で定義付けられたキャラクタ構成である、スタートビットb1とデータビットb3とストップビットb2に対し、インターキャラクタ時間を満たすストップビットS3を加えた構成となる。   FIG. 3 is a diagram showing a character configuration according to the second embodiment. In the reference embodiment 2, the character configuration set by the transmission side is a stop bit that satisfies the intercharacter time with respect to the start bit b1, the data bit b3, and the stop bit b2, which is a character configuration originally defined on the transmission / reception side. It becomes the structure which added S3.

図4は参考実施の形態2によるキャラクタ送信を示すフローチャート図である。
まず、ステップ41において、送信側は、本来送受信側で定義付けられたキャラクタ構成の中のストップビットに、インターキャラクタ時間分のストップビットを加えるように追加設定する。
次に、ステップ42以降において、上記ストップビットを追加設定された第1キャラクタ、第2キャラクタを順々に送信する。
FIG. 4 is a flowchart showing character transmission according to the second embodiment.
First, in step 41, the transmission side additionally sets the stop bits in the character configuration originally defined on the transmission / reception side to add stop bits for the intercharacter time.
Next, in step 42 and subsequent steps, the first character and the second character to which the stop bit is additionally set are sequentially transmitted.

以上のように参考実施の形態2によれば、送信側が、ストップビットの数として、送受信側で定義付けられたストップビット数にインターキャラクタ時間を満たす数のビット数を加えたストップビット数設定に切り換えて送信するようにしたので、従来方法2で説明したキャラクタ送出とキャラクタ送出の間にインターキャラクタ時間を設けるためにMCUのプログラムで時間計測し、次のキャラクタの送出を時間抑制する必要がなくなる。   As described above, according to the second embodiment, the transmission side sets the number of stop bits by adding the number of stop bits defined on the transmission / reception side to the number of bits that satisfy the intercharacter time. Since the transmission is performed by switching, it is not necessary to measure the time by the MCU program in order to provide the intercharacter time between the character transmission described in the conventional method 2 and to suppress the transmission of the next character. .

すなわち、参考実施の形態2によれば、MCUにプログラム記憶領域が残っていなければMCUのグレードアップの必要性、追加プログラムのために総合プログラムの回転率が100%を超える(オーバーフローする)ようであれば、MCUの動作クロック、又はMCU自体のグレードアップの必要性をなくすことができる。   That is, according to the second embodiment, if the program storage area does not remain in the MCU, it is necessary to upgrade the MCU, and the rotation rate of the general program seems to exceed 100% (overflow) due to the additional program. If necessary, it is possible to eliminate the necessity of upgrading the operation clock of the MCU or the MCU itself.

次に、参考実施の形態1及び2によるデータ伝送方法の具体例を図5の信号線図に基づいて説明する。
図において、通信フレームSは複数のキャラクタ(通信データの1単位)から構成される。S1は通信フレーム開始信号を意味し、この場合MCUのシリアル通信の標準性能では表現できない長い伝送線連続優性レベルから構成される。ここでは、S1はLINのSYNCH BRAKE信号のような連続13ビット長からなるLowデータとする。また、キャラクタS2の構成として、スタートビットb1が1ビット(Low)、ストップビットb2が1ビット(High)、データビットb3が8ビットとする。この場合、キャラクタにより表現できる伝送線連続優性レベルの限界は9ビット長となる。インターキャラクタ時間S3はキャラクタ送信とキャラクタ送信の間に設けられる時間であり、1ビット長の時間分とする。
Next, a specific example of the data transmission method according to the first and second embodiments will be described based on the signal diagram of FIG.
In the figure, the communication frame S is composed of a plurality of characters (one unit of communication data). S1 means a communication frame start signal, and in this case, it is composed of a long transmission line continuous dominant level that cannot be expressed by the standard performance of MCU serial communication. Here, S1 is assumed to be low data having a continuous 13-bit length such as a LIN SYNCH Brake signal. Further, as the configuration of the character S2, the start bit b1 is 1 bit (Low), the stop bit b2 is 1 bit (High), and the data bit b3 is 8 bits. In this case, the limit of the transmission line continuous dominance level that can be expressed by characters is 9 bits long. The intercharacter time S3 is a time provided between character transmissions and is a time of 1 bit length.

次に、図5の信号線図に沿って参考実施の形態1及び2の方法を説明する。
まず、L時点において、連続13ビット長からなるLowデータである通信開始信号S1を、第1キャラクタとして、調歩同期式バイトコーディングによりバイトデータ「FFh」送出する。この場合、伝送速度は標準速度の9/13として送出する。キャラクタ構成は、スタートビットが1ビット(Low)、データビットが8ビット(Low)、ストップビットがインターキャラクタ時間分を追加した2ビット(High)とする。
次に、M時点において、第1キャラクタ送出後、第2キャラクタを調歩同期式バイトコーディングによりバイトデータ送出する。この場合、伝送速度を標準速度に戻す。キャラクタ構成は、スタートビットが1ビット(Low)、データビットが8ビット、ストップビットがインターキャラクタ時間分を追加した2ビット(High)とする。
次に、N時点において、第2キャラクタ送出後、第3キャラクタを調歩同期式バイトコーディングによりバイトデータ送出する。この場合、伝送速度は標準速度であり、キャラクタ構成は、スタートビットが1ビット(Low)、データビットが8ビット、ストップビットがインターキャラクタ時間分を追加した2ビット(High)とする。
次に、O時点において、最終キャラクタ送出後、次の通信フレームをいつ出しても良い状態にして完了する。
Next, the methods of the first and second embodiments will be described with reference to the signal diagram of FIG.
First, at time L, the communication start signal S1, which is low data having a continuous 13-bit length, is sent as byte data “FFh” by asynchronous byte coding as the first character. In this case, the transmission speed is sent as 9/13 of the standard speed. The character configuration is such that the start bit is 1 bit (Low), the data bit is 8 bits (Low), and the stop bit is 2 bits (High) with inter character time added.
Next, at time M, after the first character is sent, the second character is sent byte data by asynchronous byte coding. In this case, the transmission speed is returned to the standard speed. The character configuration is assumed to be 1 bit (Low) for the start bit, 8 bits for the data bit, and 2 bits (High) for the stop bit plus inter character time.
Next, at time N, after sending the second character, the third character is sent byte data by asynchronous byte coding. In this case, the transmission speed is a standard speed, and the character configuration is a start bit of 1 bit (Low), a data bit of 8 bits, and a stop bit of 2 bits (High) with an intercharacter time added.
Next, at the time point O, after sending the final character, the next communication frame is ready to be output, and the process is completed.

実施の形態1.
実施の形態1は、従来方法3の課題を解決するための実施の形態である。
すなわち、シリアル伝送インターフェースを使用してパルス幅変調信号(PWM信号)を使用した特殊ビットコーディングによるデータ通信を送信する場合、PWM信号に対応した調歩同期式バイトコーディングで送信する。詳しくは、調歩同期式コードデータの1キャラクタをPWMコードデータの1周期とし、1キャラクタ中のLow、Highレベルの比率により、PWMコードデータの1周期中のLow、Highを表わして“IDLE”、“0”、“1”信号を送出するようにする。
Embodiment 1 FIG.
The first embodiment is an embodiment for solving the problem of the conventional method 3.
That is, when data communication by special bit coding using a pulse width modulation signal (PWM signal) is transmitted using a serial transmission interface, transmission is performed by asynchronous byte coding corresponding to the PWM signal. Specifically, one character of asynchronous code data is defined as one cycle of PWM code data, and “IDLE” representing Low and High in one cycle of PWM code data by the ratio of Low and High levels in one character. “0” and “1” signals are transmitted.

また、シリアル伝送インターフェースを使用してPWM信号を使用した特殊ビットコーディングによるデータ通信を受信する場合、NRZ(Non Return to Zero)ビットコーディングで受信し、受信したNRZ信号を対応するPWM信号に変換する。詳しくは、PWMコードデータの1周期中のLow、Highを複数ビットのNRZコードデータ1単位で受信し、当該NRZコードデータ1単位をそれぞれ対応するPWMコードデータに置き換える。   Further, when receiving data communication by special bit coding using a PWM signal using a serial transmission interface, the data communication is received by NRZ (Non Return to Zero) bit coding, and the received NRZ signal is converted into a corresponding PWM signal. . Specifically, Low and High in one cycle of PWM code data are received in units of NRZ code data of a plurality of bits, and the NRZ code data 1 unit is replaced with corresponding PWM code data.

図6は、実施の形態1によるPWMビットコーディングによるデータの送信又は受信を行うためのハードウエア構成例を示す図である。
図6のハードウエア構成は、シリアル伝送インターフェース(SCI)を使用したものであり、図1と同様の構成である。
FIG. 6 is a diagram illustrating a hardware configuration example for transmitting or receiving data by PWM bit coding according to the first embodiment.
The hardware configuration of FIG. 6 uses a serial transmission interface (SCI), and is the same configuration as FIG.

次に、図6のハードウエア構成を使用して、図7のPWMビットコーディングによるデータを送信する動作について説明する。
図8は調歩同期式バイトコーディングのデータを送出して、PWMビットコーディングによるデータとして伝送線に送信することを示す信号線図である。
ここで、送信する調歩同期式バイトコーディングのキャラクタ構成として、スタートビット1ビット、データビット8ビット、ストップビット1ビットとする。
PWMビットコーディングのIDLE信号を送出するには、SCI10を使用して、調歩同期式バイトコーディングの”00000001b”を送出する。
PWMビットコーディングの論理”0”信号を送出するには、SCI10を使用して、調歩同期式バイトコーディングの”00001111b”を送出する。
PWMビットコーディングの論理”1”信号を送出するには、SCI10を使用して、調歩同期式バイトコーディングで”00111111b”を送出する。
Next, an operation of transmitting data by PWM bit coding in FIG. 7 will be described using the hardware configuration in FIG.
FIG. 8 is a signal line diagram showing that asynchronous byte coding data is transmitted and transmitted to the transmission line as data by PWM bit coding.
Here, as the character configuration of asynchronous byte coding to be transmitted, a start bit is 1 bit, a data bit is 8 bits, and a stop bit is 1 bit.
In order to transmit the PWM bit coding IDLE signal, SCI10 is used to send asynchronous byte coding "00000001b".
In order to send the logic “0” signal of the PWM bit coding, “00001111b” of asynchronous byte coding is sent using the SCI 10.
In order to transmit a logic “1” signal of PWM bit coding, “00111111b” is transmitted by asynchronous byte coding using the SCI 10.

次に、図6のハードウエア構成を使用して、図7のPWMビットコーディングによるデータを受信する動作について説明する。
図9はPWMビットコーディングによるデータを受信して、NRZビットコーディングのデータとして取り込むことを示す信号線図である。
ここで、SCI10を使用して、NRZバイトコーディング(調歩同期式バイトコーディング)で”00000001b”を受信したとき、MCU20はIDLEパルスと認識し、データとして格納庫に順列格納する。
また、NRZバイトコーディング(調歩同期式バイトコーディング)で”00001111b”を受信したとき、MCU20は論理”0”と認識し、データとして格納庫に順列格納する。
また、NRZバイトコーディング(調歩同期式バイトコーディング)で”00111111b”か”01111111b”を受信したとき、MCU20は論理”1”と認識し、データとして格納庫に順列格納する。
Next, an operation of receiving data by PWM bit coding in FIG. 7 will be described using the hardware configuration in FIG.
FIG. 9 is a signal line diagram showing that data by PWM bit coding is received and taken in as NRZ bit coding data.
Here, when “00000001b” is received by NRZ byte coding (asynchronous byte coding) using the SCI 10, the MCU 20 recognizes it as an IDLE pulse and stores it in the tandem as data.
Further, when “000011111b” is received by NRZ byte coding (start-stop synchronization byte coding), the MCU 20 recognizes as logic “0”, and stores the data in the storage as a permutation.
Further, when “00111111b” or “01111111b” is received by NRZ byte coding (start-stop synchronization type byte coding), the MCU 20 recognizes it as logic “1” and stores it in the storage as a permutation.

以上のように実施の形態1によれば、シリアル伝送インターフェースを使用してPWM信号を使用した特殊ビットコーディングによるデータ通信を容易に送信又は受信するようにしたので、従来方法3で説明した、通信専用のSUBMCUや通信専用のスペシャルICを追加する必要がなくなる。更に、それらの電力供給配線や駆動用発振器を追加する必要もなくなる。更に、SUBMCUのためのプログラムの設計、MAINMCUとSUBMCUとの通信のためのプログラムも必要なくなる。   As described above, according to the first embodiment, since the data communication by the special bit coding using the PWM signal is easily transmitted or received using the serial transmission interface, the communication described in the conventional method 3 is performed. There is no need to add a dedicated sub MCU or a special IC dedicated to communication. Further, it is not necessary to add these power supply wiring and driving oscillator. Further, the design of the program for the SUBCU and the program for communication between the MAIN MCU and the SUBMC are not required.

この発明の参考実施の形態1によるデータ通信を行うノードの一つを示す構成図である。It is a block diagram which shows one of the nodes which perform the data communication by reference Embodiment 1 of this invention. 参考実施の形態1によるキャラクタ送信を示すフローチャート図である。It is a flowchart figure which shows the character transmission by reference Embodiment 1. FIG. 参考実施の形態2によるキャラクタ構成を示す図である。It is a figure which shows the character structure by reference Embodiment 2. FIG. 参考実施の形態2によるキャラクタ送信を示すフローチャート図である。It is a flowchart figure which shows the character transmission by reference Embodiment 2. 参考実施の形態1及び参考実施の形態2によるデータ伝送を示す信号線図である。It is a signal diagram which shows the data transmission by the reference embodiment 1 and the reference embodiment 2. 実施の形態1によるデータ通信を行うためのハードウエア構成例を示す図である。2 is a diagram illustrating a hardware configuration example for performing data communication according to Embodiment 1. FIG. PWMコーディングによる伝送線電位波形を示す図である。It is a figure which shows the transmission line electric potential waveform by PWM coding. 実施の形態1によるデータの送信方法を説明するための信号線図である。6 is a signal line diagram for explaining a data transmission method according to Embodiment 1. FIG. 実施の形態1によるデータの受信方法を説明するための信号線図である。6 is a signal line diagram for explaining a data receiving method according to Embodiment 1. FIG. LINのネットワーク構成と伝送概念を示す図である。It is a figure which shows the network structure and transmission concept of LIN. インビーグルネットワークを構成するノードの一つを示す構成図である。It is a block diagram which shows one of the nodes which comprise an in Beagle network. 調歩同期式通信による通信データの1単位であるキャラクタの構成を示す図である。It is a figure which shows the structure of the character which is 1 unit of the communication data by asynchronous communication. 従来方法1によるシリアル通信インターフェース及び遮断回路を備えたノードを示す構成図である。It is a block diagram which shows the node provided with the serial communication interface by the conventional method 1, and the interruption | blocking circuit. 従来方法1によるキャラクタ送信を示すフローチャートである。It is a flowchart which shows the character transmission by the conventional method 1. 従来方法1によるシリアルデータ通信を示す信号線図である。It is a signal diagram which shows the serial data communication by the conventional method 1. 従来方法2によるキャラクタ送信を示すフローチャートである。It is a flowchart which shows the character transmission by the conventional method 2. FIG. PWMビットコーディングを説明するための図である。It is a figure for demonstrating PWM bit coding. PWMビットコーディングのデータ通信をシリアル伝送インターフェースを使用して行う場合のハードウエア構成を示す図である。It is a figure which shows the hardware constitutions in the case of performing data communication of PWM bit coding using a serial transmission interface.

符号の説明Explanation of symbols

1 車両用電装品、2 電子制御ユニット(ECU)、
10 シリアル伝送インターフェース(SCI)、
20 マイクロコンピュータユニット(ECU)、30 伝送線。
1 vehicle electrical equipment, 2 electronic control unit (ECU),
10 Serial transmission interface (SCI),
20 microcomputer unit (ECU), 30 transmission line.

Claims (4)

シリアル伝送インターフェースを使用してパルス幅変調信号(PWM信号)を使用した特殊ビットコーディングによるデータ通信を送信する方法であって、
調歩同期式コードデータの1キャラクタをPWMコードデータの1周期とし、1キャラクタ中のLow、Highレベルの比率により、PWMコードデータの1周期中のLow、Highを表わして“IDLE”、“0”、“1”信号を送出することを特徴とするデータ送信方法。
A method of transmitting data communication by special bit coding using a pulse width modulation signal (PWM signal) using a serial transmission interface,
One character of asynchronous code data is defined as one cycle of PWM code data, and “IDLE” and “0” represent Low and High in one cycle of PWM code data by the ratio of Low and High levels in one character. A data transmission method characterized by transmitting a “1” signal .
シリアル伝送インターフェースを使用してパルス幅変調信号(PWM信号)を使用した特殊ビットコーディングによるデータ通信を受信する方法であって、
PWMコードデータの1周期中のLow、Highを複数ビットのNRZコードデータ1単位で受信し、当該NRZコードデータ1単位をそれぞれ対応するPWMコードデータである“IDLE”、“0”、“1”信号に置き換えることを特徴とするデータ受信方法。
A method of receiving data communication by special bit coding using a pulse width modulation signal (PWM signal) using a serial transmission interface,
“Low” and “High” in one cycle of the PWM code data are received in units of NRZ code data of a plurality of bits, and “IDLE”, “0”, “1”, which are PWM code data corresponding to each unit of NRZ code data A data receiving method characterized by replacing with a signal .
所定の伝送速度に基づいて調歩同期式通信によりデータを送信するデータ制御部、データ制御部からのデータを伝送線に送出するシリアル伝送インターフェースを備えたデータ送信装置において、
調歩同期式コードデータの1キャラクタをPWMコードデータの1周期とし、1キャラクタ中のLow、Highレベルの比率により、PWMコードデータの1周期中のLow、Highを表わして“IDLE”、“0”、“1”信号を送出することを特徴とするデータ送信装置。
In a data transmission device including a data transmission unit that transmits data by asynchronous communication based on a predetermined transmission rate, and a serial transmission interface that transmits data from the data control unit to a transmission line,
One character of asynchronous code data is defined as one cycle of PWM code data, and “IDLE” and “0” represent Low and High in one cycle of PWM code data by the ratio of Low and High levels in one character. , A data transmitting apparatus for transmitting a “1” signal .
所定の伝送速度に基づいて調歩同期式通信によりデータを受信するデータ制御部、伝送線からのデータをデータ制御部に送出するシリアル伝送インターフェースを備えたデータ受信装置において、
PWMコードデータの1周期中のLow、Highを複数ビットのNRZコードデータ1単位で受信し、当該NRZコードデータ1単位をそれぞれ対応するPWMコードデータである“IDLE”、“0”、“1”信号に置き換えることを特徴とするデータ受信装置。
In a data receiving device including a data control unit that receives data by asynchronous communication based on a predetermined transmission rate, and a serial transmission interface that sends data from the transmission line to the data control unit,
“Low” and “High” in one cycle of the PWM code data are received in units of NRZ code data of a plurality of bits, and “IDLE”, “0”, “1”, which are PWM code data corresponding to each unit of NRZ code data A data receiving apparatus characterized by being replaced with a signal .
JP2005027533A 2005-02-03 2005-02-03 Data transmission and reception method, data transmission and reception device Expired - Lifetime JP3939327B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005027533A JP3939327B2 (en) 2005-02-03 2005-02-03 Data transmission and reception method, data transmission and reception device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005027533A JP3939327B2 (en) 2005-02-03 2005-02-03 Data transmission and reception method, data transmission and reception device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001109751A Division JP3668697B2 (en) 2001-04-09 2001-04-09 Data transmission method and data transmission apparatus

Publications (2)

Publication Number Publication Date
JP2005160119A JP2005160119A (en) 2005-06-16
JP3939327B2 true JP3939327B2 (en) 2007-07-04

Family

ID=34737623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005027533A Expired - Lifetime JP3939327B2 (en) 2005-02-03 2005-02-03 Data transmission and reception method, data transmission and reception device

Country Status (1)

Country Link
JP (1) JP3939327B2 (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2988334B1 (en) * 2012-03-26 2015-07-10 Valeo Vision METHOD AND DEVICE FOR ASSISTING THE DRIVING OF AUTOMOTIVE VEHICLES
US9166810B2 (en) 2012-05-24 2015-10-20 Panasonic Intellectual Property Corporation Of America Information communication device of obtaining information by demodulating a bright line pattern included in an image
US8988574B2 (en) 2012-12-27 2015-03-24 Panasonic Intellectual Property Corporation Of America Information communication method for obtaining information using bright line image
CN104885382B (en) 2012-12-27 2017-08-22 松下电器(美国)知识产权公司 Visible light signal of communication display methods and display device
WO2014103341A1 (en) 2012-12-27 2014-07-03 パナソニック株式会社 Information communication method
US9608727B2 (en) 2012-12-27 2017-03-28 Panasonic Intellectual Property Corporation Of America Switched pixel visible light transmitting method, apparatus and program
SG11201504985WA (en) 2012-12-27 2015-07-30 Panasonic Ip Corp America Display method
US9560284B2 (en) 2012-12-27 2017-01-31 Panasonic Intellectual Property Corporation Of America Information communication method for obtaining information specified by striped pattern of bright lines
CN104885381B (en) 2012-12-27 2017-12-19 松下电器(美国)知识产权公司 Information communicating method
US9087349B2 (en) 2012-12-27 2015-07-21 Panasonic Intellectual Property Corporation Of America Information communication method
US10530486B2 (en) 2012-12-27 2020-01-07 Panasonic Intellectual Property Corporation Of America Transmitting method, transmitting apparatus, and program
US8922666B2 (en) 2012-12-27 2014-12-30 Panasonic Intellectual Property Corporation Of America Information communication method
US9608725B2 (en) 2012-12-27 2017-03-28 Panasonic Intellectual Property Corporation Of America Information processing program, reception program, and information processing apparatus
US10303945B2 (en) 2012-12-27 2019-05-28 Panasonic Intellectual Property Corporation Of America Display method and display apparatus
US9088360B2 (en) 2012-12-27 2015-07-21 Panasonic Intellectual Property Corporation Of America Information communication method
US10523876B2 (en) 2012-12-27 2019-12-31 Panasonic Intellectual Property Corporation Of America Information communication method
US10951310B2 (en) 2012-12-27 2021-03-16 Panasonic Intellectual Property Corporation Of America Communication method, communication device, and transmitter
WO2014103154A1 (en) * 2012-12-27 2014-07-03 パナソニック株式会社 Information communication method
JP5608834B1 (en) 2012-12-27 2014-10-15 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Video display method
US9252878B2 (en) 2012-12-27 2016-02-02 Panasonic Intellectual Property Corporation Of America Information communication method
FR3003416B1 (en) * 2013-03-18 2018-11-23 Sc2N CIRCUIT FOR GENERATING A SIGNAL MODULE IN PULSE WIDTH

Also Published As

Publication number Publication date
JP2005160119A (en) 2005-06-16

Similar Documents

Publication Publication Date Title
JP3939327B2 (en) Data transmission and reception method, data transmission and reception device
CN101010915A (en) Method for the non-bitrate-dependent encoding of digital signals on a bus system
US20110223955A1 (en) Communication network system having high-ranking network and low-ranking networks, interchange terminal connecting high-ranking network and low-ranking network, microcomputer controlling connection between transmission line of low-ranking network and transmission line of high-ranking network, and communication transmitter-receiver connected with transmission line of low-ranking network and transmission line of high-ranking network
JP3668697B2 (en) Data transmission method and data transmission apparatus
CN101257430B (en) Bus-based communication system
US8970248B2 (en) Sharing hardware resources between D-PHY and N-factorial termination networks
EP2856691B1 (en) Clock for serial communication device
JPS6239580B2 (en)
CN113259205B (en) Method and system for testing internal interconnection interface of multi-board system
US5025500A (en) Apparatus for providing multiple controller interfaces to a standard digital modem and including integral conflict resolution
KR101507562B1 (en) Device for fitting a multimedia system in a vehicle
JP3911278B2 (en) Data transmission method and data transmission apparatus
US11947475B2 (en) Synchronized processing of process data and delayed transmission
US5636343A (en) Microcomputer with built-in serial input-output circuit and collision detection circuit responsive to common input-output line being occupied
CN1881198B (en) Data bus system
CN103473206A (en) Data transmission method and I2C (Inter-Integrated Circuit) interface extender
CN201378316Y (en) Universal input/output interface extension circuit and mobile terminal with same
CN114942866B (en) LIN main testing device
CN115663549B (en) Multi-interface conversion device and vehicle
JP2006174352A (en) Remote i/o module communication equipment
CN218547290U (en) Lodging device control circuit and device based on FlexRay network communication
KR100389970B1 (en) An installation for k-line multy communication in car
CN113348648B (en) Transmitting/receiving device for a subscriber station of a serial bus system and method for communication in a serial bus system
CN114416629A (en) Communication circuit and communication method for sharing serial port
JPS6292545A (en) Data transmission equipment

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070123

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070226

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070320

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070327

R150 Certificate of patent or registration of utility model

Ref document number: 3939327

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100406

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110406

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130406

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130406

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140406

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250