JP2019161599A - Communication device - Google Patents
Communication device Download PDFInfo
- Publication number
- JP2019161599A JP2019161599A JP2018049692A JP2018049692A JP2019161599A JP 2019161599 A JP2019161599 A JP 2019161599A JP 2018049692 A JP2018049692 A JP 2018049692A JP 2018049692 A JP2018049692 A JP 2018049692A JP 2019161599 A JP2019161599 A JP 2019161599A
- Authority
- JP
- Japan
- Prior art keywords
- control unit
- instruction
- master control
- response
- storage unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、通信装置に関するものである。 The present invention relates to a communication device.
車両のエアバッグシステム等では、マスタ制御部、スレーブ制御部、センサの間の通信によってセンサの初期化が行われる。具体的には、マスタ制御部からの指示がスレーブ制御部を介してセンサに送信されるようになっており、マスタ制御部がデータの書き込み指示を出すと、センサにデータが書き込まれるとともに、センサからスレーブ制御部を介してマスタ制御部に応答が返される。また、マスタ制御部がデータの読み出し指示を出すと、センサに記憶されたデータを含む応答が、スレーブ制御部を介してマスタ制御部に送信される。そして、マスタ制御部は、書き込み指示で指定したデータと、読み出し指示に対する応答とを比較し、正常にデータの書き込みが行われたか否かを判定する。 In a vehicle airbag system or the like, the sensor is initialized by communication between the master control unit, the slave control unit, and the sensor. Specifically, an instruction from the master control unit is transmitted to the sensor via the slave control unit, and when the master control unit issues a data write instruction, data is written to the sensor and the sensor A response is returned from the slave controller to the master controller. In addition, when the master control unit issues a data read instruction, a response including data stored in the sensor is transmitted to the master control unit via the slave control unit. Then, the master control unit compares the data specified by the write instruction with the response to the read instruction, and determines whether or not the data has been normally written.
マスタ制御部が送信した指示とセンサからの応答とを正確に対応付ける方法としては、スレーブ制御部からマスタ制御部に送信された信号を監視し、書き込み指示に対する応答と読み出し指示に対する応答とを区別する方法が挙げられる。しかしながら、このような方法では、マスタ制御部の作動が複雑になる。 As a method of accurately associating the instruction transmitted from the master control unit with the response from the sensor, the signal transmitted from the slave control unit to the master control unit is monitored, and the response to the write instruction and the response to the read instruction are distinguished. A method is mentioned. However, such a method complicates the operation of the master control unit.
また、例えば特許文献1では、集積回路において、スレーブ制御部での処理時間を考慮して、マスタ制御部の指示の送信間隔を一定時間以上確保する方法が提案されている。 Further, for example, Patent Document 1 proposes a method of securing a transmission interval of instructions from the master control unit for a certain time or more in an integrated circuit in consideration of processing time in the slave control unit.
この方法をエアバッグシステム等に応用し、次の指示の送信前にセンサからの応答の受信が終了するように、マスタ制御部の指示の送信間隔を一定時間以上確保すれば、マスタ制御部が送信した指示とセンサからの応答とを正確に対応付けることができる。 If this method is applied to an airbag system or the like, and the transmission interval of the master control unit instruction is secured for a certain time or more so that the reception of the response from the sensor is completed before the next instruction transmission, the master control unit The transmitted instruction and the response from the sensor can be accurately associated with each other.
しかしながら、このような方法では、マスタ制御部が書き込み指示に対するセンサの応答を受信してから読み出し指示を送信するまでの時間が空き時間となり、通信の効率が低下する。 However, in such a method, the time from when the master control unit receives the response of the sensor to the write instruction until the read instruction is transmitted becomes idle time, and the communication efficiency decreases.
本発明は上記点に鑑みて、通信の効率を向上させることができる通信装置を提供することを目的とする。 An object of this invention is to provide the communication apparatus which can improve the efficiency of communication in view of the said point.
上記目的を達成するため、請求項1に記載の発明では、マスタ制御部(1)からのデータの書き込み指示および読み出し指示が、スレーブ制御部(2)を介して記憶部(31)に送信される通信装置であって、スレーブ制御部は、マスタ制御部からの書き込み指示を記憶部に送信し、該書き込み指示に対する記憶部からの応答を破棄した後に、マスタ制御部からの読み出し指示を記憶部に送信し、該読み出し指示に対する記憶部からの応答をマスタ制御部に送信する。 In order to achieve the above object, in the first aspect of the present invention, a data write instruction and a read instruction from the master control unit (1) are transmitted to the storage unit (31) via the slave control unit (2). The slave control unit transmits a write instruction from the master control unit to the storage unit, discards a response from the storage unit to the write instruction, and then sends a read instruction from the master control unit to the storage unit. And a response from the storage unit to the read instruction is transmitted to the master control unit.
これによれば、書き込み指示に対する応答がマスタ制御部に送信されずに破棄され、読み出し指示に対する応答がマスタ制御部に送信される。そのため、マスタ制御部からの書き込み指示と読み出し指示の送信間隔を短縮し、例えば書き込み指示と読み出し指示を同時に送信しても、データの比較を正常に行うことができる。したがって、通信の効率を向上させることができる。 According to this, the response to the write instruction is discarded without being transmitted to the master control unit, and the response to the read instruction is transmitted to the master control unit. For this reason, even if the transmission interval between the write instruction and the read instruction from the master control unit is shortened, for example, the write instruction and the read instruction are transmitted at the same time, the data comparison can be performed normally. Therefore, communication efficiency can be improved.
なお、各構成要素等に付された括弧付きの参照符号は、その構成要素等と後述する実施形態に記載の具体的な構成要素等との対応関係の一例を示すものである。 Reference numerals in parentheses attached to each component and the like indicate an example of a correspondence relationship between the component and the like and specific components described in the embodiments described later.
以下、本発明の実施形態について図に基づいて説明する。なお、以下の各実施形態相互において、互いに同一もしくは均等である部分には、同一符号を付して説明を行う。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following embodiments, parts that are the same or equivalent to each other will be described with the same reference numerals.
(第1実施形態)
第1実施形態について説明する。本実施形態の通信装置は、車両のエアバッグシステムにおけるセンサの初期化等に用いられるものであって、図1に示すように、マスタ制御部1と、スレーブ制御部2と、センサ3とを備えている。
(First embodiment)
A first embodiment will be described. The communication apparatus according to the present embodiment is used for initialization of sensors in a vehicle airbag system, and includes a master control unit 1, a
マスタ制御部1は、センサ3にデータの書き込み指示を出し、データの書き込みを行うものであり、プロセッサ、ROM、RAM等の記憶部を有する周知のマイクロコンピュータ、およびその周辺回路を含んで構成されている。なお、マスタ制御部1の記憶部は、非遷移的実体的記憶媒体で構成される。書き込み指示で指定するデータは、例えば、センサ3が有する各種機能のオン、オフ等の設定をするためのデータである。
The master control unit 1 issues a data write instruction to the
また、マスタ制御部1は、センサ3に、書き込みが正常に行われたか否かを判定するための読み出し指示を出す。センサ3は、マスタ制御部1からの指示に対して応答を返すように構成されており、マスタ制御部1は、書き込み指示の内容とセンサ3からの応答とを比較して、書き込みが正常に行われたか否かを判定する。
In addition, the master control unit 1 issues a read instruction to the
マスタ制御部1からの書き込み指示および読み出し指示は、ICで構成されたスレーブ制御部2を介してセンサ3に送信される。本実施形態のマスタ制御部1は、書き込み指示および読み出し指示を同時にスレーブ制御部2に送信する。
A write instruction and a read instruction from the master control unit 1 are transmitted to the
通信装置はスレーブ制御部2を複数備えており、マスタ制御部1には複数のスレーブ制御部2が接続されている。マスタ制御部1と複数のスレーブ制御部2はエアバッグECU内に配置されており、各スレーブ制御部2には車両の各部に配置された複数のセンサ3が接続されている。本実施形態では、スレーブ制御部2は複数のチャンネルを有しており、1つのスレーブ制御部2にチャンネル毎に複数のセンサ3が接続されている。センサ3は、例えば加速度センサ、圧力センサ等である。
The communication apparatus includes a plurality of
図2に示すように、スレーブ制御部2は、送信バッファ21、送信部22、受信バッファ23、受信部24を備えている。また、センサ3は、記憶部31を備えている。記憶部31は、非遷移的実体的記憶媒体で構成される。
As shown in FIG. 2, the
マスタ制御部1からの書き込み指示および読み出し指示は、送信バッファ21に格納された後、送信部22によってセンサ3の記憶部31に送信される。マスタ制御部1からの書き込み指示を記憶部31が受信すると、記憶部31にセンサ3を初期化するためのデータが書き込まれ、記憶部31から、例えば書き込み指示を受け付けたことを示す応答が返される。また、マスタ制御部1からの読み出し指示を記憶部31が受信すると、記憶部31から、記憶部31に記憶されたデータを含む応答が返される。
The write instruction and the read instruction from the master control unit 1 are stored in the
センサ3からの応答は、受信バッファ23に格納された後、マスタ制御部1に送信される。受信バッファ23へのデータの格納は受信部24によって行われるが、本実施形態の受信部24は、読み出し指示に対する応答を受信バッファ23に格納し、書き込み指示に対する応答を受信バッファ23に格納せずに破棄する。これにより、書き込み指示に対する応答と読み出し指示に対する応答のうち、読み出し指示に対する応答のみがマスタ制御部1に送信される。
A response from the
本実施形態の通信装置の作動について図3を用いて説明する。なお、図3では、1つのセンサ3にデータを書き込む場合について図示しており、他のセンサ3についても同様の処理が行われる。
The operation of the communication apparatus of this embodiment will be described with reference to FIG. FIG. 3 illustrates the case where data is written to one
図3に示すように、マスタ制御部1が書き込み指示および読み出し指示を同時にスレーブ制御部2に送信すると、送信バッファ21に書き込み指示データおよび読み出し指示データが格納される。なお、書き込み指示および読み出し指示を同時にスレーブ制御部2に送信することには、スレーブ制御部2に書き込み指示を送信した後、微小な時間を空けて読み出し指示を送信することも含まれる。例えば、マスタ制御部1からスレーブ制御部2に書き込み指示が送信された後、この書き込み指示がセンサ3に送信される前に、マスタ制御部1からスレーブ制御部2に読み出し指示が送信される。
As shown in FIG. 3, when the master control unit 1 simultaneously transmits a write instruction and a read instruction to the
送信部22は、送信バッファ21に格納されたデータのうち、書き込み指示データを読み出し指示データよりも先にセンサ3に送信する。これにより、記憶部31にデータが書き込まれるとともに、センサ3からスレーブ制御部2に書き込み指示を受け付けたことを示す応答が返される。この応答は、受信部24によって受信バッファ23に格納されずに破棄される。
The
そして、送信部22が、送信バッファ21に格納された読み出し指示データをセンサ3に送信すると、センサ3からスレーブ制御部2に、記憶部31に記憶されたデータを含む応答が返される。この応答は、受信部24によって受信バッファ23に格納された後、マスタ制御部1に送信される。
Then, when the
マスタ制御部1は、書き込み指示で指定した内容と、スレーブ制御部2から送信された応答とを比較して、データの書き込みが正常に行われたか否かを判定する。
The master control unit 1 compares the content specified by the write instruction with the response transmitted from the
このような処理が、記憶部31のデータの書き込み対象とされたアドレスの数だけ繰り返される。例えば3つのアドレスにデータを書き込む場合には、図3に示すように、上記の処理が3回繰り返される。
Such processing is repeated as many times as the number of addresses to which data in the
このように、本実施形態では、書き込み指示に対する応答をマスタ制御部1に送信せずに破棄し、読み出し指示に対する応答のみをマスタ制御部1に送信する。そのため、書き込み指示と読み出し指示とで対象となるアドレスが一致している場合に、マスタ制御部1からの書き込み指示と読み出し指示の送信間隔を短縮し、書き込み指示と読み出し指示を同時に送信しても、データの比較を正常に行うことができる。したがって、マスタ制御部1が実行する処理を簡略化するとともに、通信の効率を向上させることができる。これにより、スレーブ制御部2、センサ3の数が増えた場合に、センサ3の初期化にかかる時間の増加を抑制することができる。
As described above, in this embodiment, the response to the write instruction is discarded without being transmitted to the master control unit 1, and only the response to the read instruction is transmitted to the master control unit 1. For this reason, when the target addresses of the write instruction and the read instruction match, the transmission interval of the write instruction and the read instruction from the master control unit 1 is shortened, and the write instruction and the read instruction can be transmitted simultaneously. Data comparison can be performed normally. Therefore, the processing executed by the master control unit 1 can be simplified and the communication efficiency can be improved. Thereby, when the number of the
また、本実施形態では、マスタ制御部1でデータを比較する際に、スレーブ制御部2から送信されたデータが読み出し指示に対応するものであるか否かの判定が不要となるため、マスタ制御部1の処理が簡単になる。
In the present embodiment, when the master control unit 1 compares the data, it is not necessary to determine whether the data transmitted from the
例えば、書き込み指示に対する応答を受信バッファ23に格納すると、受信バッファ23に次の応答を格納するために、書き込み指示に対する応答をダミーリードとしてマスタ制御部1に送信し、受信バッファ23を空にする必要がある。そして、マスタ制御部1においてダミーリードを破棄する処理が必要になるが、本実施形態ではこのような処理が不要となる。
For example, when a response to the write instruction is stored in the
(第2実施形態)
第2実施形態について説明する。本実施形態は、第1実施形態に対して送信バッファ21および受信バッファ23の構成を変更したものであり、その他については第1実施形態と同様であるため、第1実施形態と異なる部分についてのみ説明する。
(Second Embodiment)
A second embodiment will be described. In the present embodiment, the configurations of the
本実施形態では、送信バッファ21および受信バッファ23がFIFO(先入れ先出し)バッファとされており、図4に示すように処理が行われる。
In the present embodiment, the
すなわち、マスタ制御部1は、1つのアドレスを対象とした書き込み指示および読み出し指示をスレーブ制御部2に送信した後、応答が返るのを待たずに、別のアドレスを対象とした書き込み指示および読み出し指示をスレーブ制御部2に送信する。例えば、3つのアドレスにデータを書き込む場合には、マスタ制御部1は、3組の書き込み指示および読み出し指示を続けてスレーブ制御部2に送信する。
That is, the master control unit 1 transmits a write instruction and a read instruction for one address to the
マスタ制御部1の指示データは、スレーブ制御部2に送信された順に送信バッファ21に格納され、送信部22によってセンサ3に送信される。具体的には、1回目の書き込み指示および読み出し指示について第1実施形態と同様の処理が実行され、読み出し指示に対するセンサ3の応答が受信バッファ23に格納されると、この応答がマスタ制御部1に送信されたか否かにかかわらず、スレーブ制御部2は2回目の指示について同様の処理を開始する。受信バッファ23に格納された応答は、格納された順にマスタ制御部1に送信される。
The instruction data of the master control unit 1 is stored in the
マスタ制御部1は、1回目に送信した指示の内容と1回目に受信した応答とを比較し、データが正常に書き込まれたか否かを判定する。そして、マスタ制御部1は、2回目以降の指示および応答についても、同様に比較を行う。 The master control unit 1 compares the content of the instruction transmitted for the first time with the response received for the first time, and determines whether the data has been written normally. And the master control part 1 compares similarly about the instruction | indication and response after the 2nd time.
このように、送信バッファ21をFIFOバッファとすることで、書き込み指示および読み出し指示の送信間隔を短縮することができる。また、受信バッファ23もFIFOバッファとすることで、データを比較するタイミングの自由度が増し、初期化時間の短縮が容易になる。
Thus, by using the
(他の実施形態)
なお、本発明は上記した実施形態に限定されるものではなく、特許請求の範囲に記載した範囲内において適宜変更が可能である。
(Other embodiments)
In addition, this invention is not limited to above-described embodiment, In the range described in the claim, it can change suitably.
例えば、通信装置がスレーブ制御部2を1つのみ備えていてもよい。また、スレーブ制御部2がチャンネルを1つのみ有していてもよい。また、1つのチャンネルにセンサ3が1つのみ接続されていてもよい。また、チャンネルごとに接続されるセンサ3の数が異なっていてもよい。
For example, the communication device may include only one
また、本発明をエアバッグシステム以外のシステムに適用してもよい。また、センサ以外の装置が備える記憶部にデータを書き込む場合に本発明を適用してもよい。 Further, the present invention may be applied to a system other than the airbag system. Further, the present invention may be applied when data is written in a storage unit provided in a device other than the sensor.
1 マスタ制御部
2 スレーブ制御部
31 記憶部
1
Claims (4)
前記スレーブ制御部は、前記マスタ制御部からの書き込み指示を前記記憶部に送信し、該書き込み指示に対する前記記憶部からの応答を破棄した後に、前記マスタ制御部からの読み出し指示を前記記憶部に送信し、該読み出し指示に対する前記記憶部からの応答を前記マスタ制御部に送信する通信装置。 A communication device in which an instruction to write and read data from a master control unit (1) is transmitted to a storage unit (31) via a slave control unit (2),
The slave control unit transmits a write instruction from the master control unit to the storage unit, discards a response from the storage unit to the write instruction, and then sends a read instruction from the master control unit to the storage unit. A communication device that transmits and transmits a response from the storage unit to the read instruction to the master control unit.
前記送信バッファおよび前記受信バッファは、先入れ先出しバッファとされている請求項1または2に記載の通信装置。 The slave control unit includes a transmission buffer (21) for storing instruction data from the master control unit transmitted to the storage unit, and a reception buffer (23) for storing a response received from the storage unit. ,
The communication device according to claim 1, wherein the transmission buffer and the reception buffer are first-in first-out buffers.
The communication device according to any one of claims 1 to 3, wherein the storage unit is arranged inside a sensor (3).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018049692A JP2019161599A (en) | 2018-03-16 | 2018-03-16 | Communication device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018049692A JP2019161599A (en) | 2018-03-16 | 2018-03-16 | Communication device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019161599A true JP2019161599A (en) | 2019-09-19 |
Family
ID=67996426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018049692A Pending JP2019161599A (en) | 2018-03-16 | 2018-03-16 | Communication device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2019161599A (en) |
-
2018
- 2018-03-16 JP JP2018049692A patent/JP2019161599A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070160075A1 (en) | Device, system and method of communicating between a bus controller and one or more remote terminals | |
CN110044636B (en) | Vehicle inspection device and vehicle inspection method | |
GB2415067A (en) | Managing conflicting read and write operations on separate read and write buses | |
US20210349843A1 (en) | System component and use of a system component | |
JP2004312716A (en) | System, method and network device for peer-to-peer communications between network devices to communicate with each other via common bus | |
EP1385093A1 (en) | Systems and methods for establishing peer-to-peer communications between network devices communicating via a common bus | |
US20150287446A1 (en) | Semiconductor memory apparatus and system using the same | |
CN115309321A (en) | Method and memory device for atomic processing of fused commands | |
US11368331B2 (en) | Communication apparatus and communication system | |
US10095643B2 (en) | Direct memory access control device for at least one computing unit having a working memory | |
JP2019161599A (en) | Communication device | |
US20190384523A1 (en) | Control device, image forming apparatus incorporating the control device, control method, and non-transitory recording medium storing program | |
US20160299687A1 (en) | Controller transmitting output commands and method of operating the same | |
US20080320178A1 (en) | DMA transfer apparatus | |
JPWO2004077304A1 (en) | Data transfer device | |
KR20080013973A (en) | Method for communication between at least two subscribers of a communication system | |
KR20070102823A (en) | Device for controlling address in a i2c protocol | |
US20040193756A1 (en) | Serial communication device | |
US9703730B2 (en) | Arbitration circuit and processing method of arbitration circuit | |
US10282320B2 (en) | Three-stage memory arrangement | |
US7714871B2 (en) | System and method for controlling display of mobile terminal | |
KR100704218B1 (en) | Data transfer unit | |
JP2010026739A (en) | Timing adjusting device, timing adjusting method, timing adjusting program and recording medium | |
JP2019144658A (en) | Evaluation Board | |
JP2010086132A (en) | Hardware module control system |