JP2010171910A - Onboard communication apparatus and communication control program - Google Patents
Onboard communication apparatus and communication control program Download PDFInfo
- Publication number
- JP2010171910A JP2010171910A JP2009014764A JP2009014764A JP2010171910A JP 2010171910 A JP2010171910 A JP 2010171910A JP 2009014764 A JP2009014764 A JP 2009014764A JP 2009014764 A JP2009014764 A JP 2009014764A JP 2010171910 A JP2010171910 A JP 2010171910A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- signal processing
- processing unit
- vehicle
- standard
- 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.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 348
- 238000000034 method Methods 0.000 claims abstract description 40
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims 1
- 230000002159 abnormal effect Effects 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000007257 malfunction Effects 0.000 description 3
- JLYXXMFPNIAWKQ-UHFFFAOYSA-N γ Benzene hexachloride Chemical compound ClC1C(Cl)C(Cl)C(Cl)C(Cl)C1Cl JLYXXMFPNIAWKQ-UHFFFAOYSA-N 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
【課題】接続先の通信機器が扱う信号として複数種類の通信規格の信号が混在する場合であっても、スイッチ等の切り替えを必要とすることなく該当する通信規格に自動的に適応し通信する。
【解決手段】第1の通信規格、及び前記第1の通信規格とは異なる第2の通信規格に対応した通信データの入出力が可能な少なくとも1つの信号処理部12、13と、前記信号処理部を制御し、前記信号処理部の動作状態もしくは受信した信号の状態に基づき、前記第1の通信規格に特有の第1の条件との適合性、及び前記第2の通信規格に特有の第2の条件との適合性を識別し、その識別結果に応じて前記第1の通信規格又は第2の通信規格に適合する通信方式を自動的に選択する通信制御部11と、を備える。
【選択図】図1Even when signals of a plurality of types of communication standards are mixed as signals handled by a communication device at a connection destination, communication automatically adapts to the corresponding communication standards without requiring switching of a switch or the like. .
At least one signal processing unit capable of inputting / outputting communication data corresponding to a first communication standard and a second communication standard different from the first communication standard, and the signal processing Control unit, based on the operating state of the signal processing unit or the state of the received signal, the compatibility with the first condition specific to the first communication standard, and the second specific to the second communication standard And a communication control unit that automatically selects a communication method that conforms to the first communication standard or the second communication standard according to the identification result.
[Selection] Figure 1
Description
本発明は、互いに使用する通信規格が異なる複数種類の相手側通信機器に対して選択的に接続可能な車載通信装置及びそれを制御するための通信制御プログラムに関する。 The present invention relates to an in-vehicle communication device that can be selectively connected to a plurality of types of counterpart communication devices that use different communication standards, and a communication control program for controlling the same.
一般に、自動車などの車両には様々な電子機器が搭載されている。また、複数の電子機器が互いに通信できるように、通信インタフェースを搭載した電子機器は車両上の通信ネットワークに接続可能になっている。 Generally, various electronic devices are mounted on a vehicle such as an automobile. In addition, an electronic device equipped with a communication interface can be connected to a communication network on the vehicle so that a plurality of electronic devices can communicate with each other.
従来より、このような車両上に搭載される電子機器が通信するための通信規格については、複数種類の通信規格が存在している。従って、各々の車載電子機器は、接続相手の他の車載電子機器、あるいは接続先の通信ネットワークが採用している通信規格に合うように、通信インタフェースの電気回路における信号処理や通信プロトコルを切り替えないと通信することができない。 Conventionally, there are a plurality of types of communication standards for communication standards for electronic devices mounted on such vehicles. Therefore, each in-vehicle electronic device does not switch the signal processing or communication protocol in the electric circuit of the communication interface so as to meet the communication standard adopted by the other in-vehicle electronic device of the connection partner or the communication network of the connection destination. Unable to communicate with.
実際には、車両には様々な種類が存在しており、車種毎に異なる通信規格を採用した通信ネットワークが搭載されている。また、同じ車種の車両であってもバリエーションの違いに応じて、異なる通信規格を採用した通信ネットワークが搭載される場合も多い。 Actually, there are various types of vehicles, and communication networks that employ different communication standards for each vehicle type are installed. Moreover, even in the case of vehicles of the same vehicle type, there are many cases where communication networks adopting different communication standards are mounted according to differences in variations.
従って、通信機能を搭載した車載電子機器を車両に搭載する場合には、それぞれの車載電子機器が通信相手の通信規格と適合するように、搭載対象の車両の車種やバリエーション毎に、適用する通信規格を切り替える必要があった。 Therefore, when an in-vehicle electronic device equipped with a communication function is installed in a vehicle, the communication applied to each vehicle type and variation of the target vehicle so that each in-vehicle electronic device conforms to the communication standard of the communication partner. There was a need to switch standards.
そのため、一般的には、通信規格が異なる複数種類の車載電子機器が予め用意されている。そして、搭載対象の車両の車種やバリエーションに合わせて種類が適合する車載電子機器を作業者が選別し、該当する車載電子機器を車両に組み付けていた。また、複数の通信規格のそれぞれに対応した複数の通信インタフェースと、採用する通信規格を切り替えるための物理的なスイッチをそれぞれの車載電子機器に予め搭載する場合もある。その場合、搭載対象の車両の車種やバリエーションに合わせて、作業者がスイッチの切り替え操作を行っていた。 Therefore, generally, a plurality of types of in-vehicle electronic devices having different communication standards are prepared in advance. Then, an operator selects an in-vehicle electronic device that matches the type and variation of the vehicle to be mounted, and the corresponding in-vehicle electronic device is assembled to the vehicle. In addition, a plurality of communication interfaces corresponding to each of a plurality of communication standards and a physical switch for switching the communication standard to be employed may be preinstalled in each in-vehicle electronic device. In that case, the operator has performed the switching operation of the switch according to the type and variation of the vehicle to be mounted.
車載電子機器に関する技術ではないが、例えば特許文献1には複数の通信インタフェースを搭載した機器に関する技術が開示されている。特許文献1においては、通信インタフェースに関する電力消費を削減するために、BluetoothインタフェースとIrDAインタフェースのいずれからデータを受信したかを判別し、データを受信したインタフェース以外に対する電力供給を自動的に停止することを提案している。
For example,
しかしながら、車載電子機器を目的の車両に搭載する際に、車両の車種やバリエーションに合わせて適合する車載電子機器を選別したり、適合する状態にスイッチを切り替えるような操作を作業者が行う場合には、間違いや操作ミスが発生しやすい。作業者の間違いや操作ミスによって、通信規格が合わない車載電子機器同士を接続した場合には、各車載電子機器が通信できなくなるだけでなく、例えば通信インタフェースから入力される異常な受信データの影響により車載電子機器の内部のコンピュータが暴走し、車載電子機器が全く動作しなくなる可能性も高い。 However, when an in-vehicle electronic device is mounted on a target vehicle, when an operator performs an operation such as selecting an in-vehicle electronic device suitable for the vehicle type or variation of the vehicle or switching a switch to a suitable state. Are prone to mistakes and operation mistakes. When in-vehicle electronic devices that do not match the communication standards are connected due to operator error or operation error, not only does each in-vehicle electronic device become unable to communicate, but for example, the influence of abnormal received data input from the communication interface Therefore, there is a high possibility that the computer inside the in-vehicle electronic device runs out of control and the in-vehicle electronic device stops operating at all.
特許文献1に開示された従来技術においては、BluetoothインタフェースやIrDAインタフェースのように複数の無線通信インタフェースを搭載した場合に、どちらの無線通信インタフェースで相手からの信号を受信したかを区別し、その結果を制御に反映している。但し、BluetoothとIrDAとは互いに扱う信号の種類が全く異なるので、これらの信号を区別するのは極めて容易である。すなわち、Bluetoothインタフェースは2.4GHzの周波数帯の電波を用いて通信するのに対し、IrDAインタフェースでは赤外線を用いて通信するので、両者の信号を混同することはあり得ない。
In the prior art disclosed in
一方、車載電子機器の通信ケーブルを配線する場合には、対応している通信規格が異なる場合であっても、共通の通信ケーブルや共通のコネクタを用いる場合が多いので、例えば共通のコネクタを介して通信規格が異なる複数種類の信号が車載電子機器に入力される可能性が高い。つまり、車載電子機器に入力される信号については、複数種類の通信規格の信号が混在することになる。そのため、車載電子機器の場合には、実際に扱う信号の種類を区別するために、例えばスイッチの切り替え操作等が必要であった。従って、作業者による間違いや操作ミスは避けられなかった。 On the other hand, when wiring communication cables for in-vehicle electronic devices, even if the supported communication standards are different, a common communication cable or a common connector is often used. Therefore, there is a high possibility that multiple types of signals with different communication standards are input to the in-vehicle electronic device. That is, for signals input to the in-vehicle electronic device, signals of a plurality of types of communication standards are mixed. For this reason, in the case of an in-vehicle electronic device, for example, a switch switching operation or the like is necessary in order to distinguish the type of signal actually handled. Therefore, mistakes and operational mistakes by operators have been unavoidable.
また、車載電子機器の通信を制御するためのソフトウェアを通信規格毎にそれぞれ別々に用意する必要があり、ソフトウェアの開発に伴うコストや複数種類のソフトウェアの管理に伴うコストが増大するのは避けられなかった。 In addition, software for controlling the communication of in-vehicle electronic devices must be prepared separately for each communication standard, and it is unavoidable to increase the costs associated with software development and the management of multiple types of software. There wasn't.
本発明は、上述した事情に鑑みてなされたものであり、その目的は、接続先の通信機器が扱う信号として、複数種類の通信規格の信号が混在する場合であっても、スイッチ等の切り替えを必要とすることなく、該当する通信規格に自動的に適応し通信することが可能な車載通信装置及び通信制御プログラムを提供することにある。 The present invention has been made in view of the above-described circumstances, and its purpose is to switch a switch or the like even when signals of a plurality of types of communication standards are mixed as signals handled by a communication device at a connection destination. It is an object of the present invention to provide an in-vehicle communication device and a communication control program capable of automatically adapting and communicating with a corresponding communication standard without the need for communication.
前述した目的を達成するために、本発明に係る車載通信装置は、下記(1)〜(7)を特徴としている。
(1) 相手側通信機器と各種通信規格にて接続可能な車載通信装置であって、
第1の通信規格、及び前記第1の通信規格とは異なる第2の通信規格に対応した通信データの入出力が可能な少なくとも1つの信号処理部と、
前記信号処理部を制御し、前記信号処理部の動作状態もしくは受信した信号の状態に基づき、前記第1の通信規格に特有の第1の条件との適合性、及び前記第2の通信規格に特有の第2の条件との適合性を識別し、その識別結果に応じて前記第1の通信規格又は第2の通信規格に適合する通信方式を選択する通信制御部と
を備えること。
(2) 上記(1)の構成の車載通信装置において、
前記信号処理部として、前記第1の通信規格に対応した信号処理を行う第1の信号処理部と、前記第2の通信規格に対応した信号処理を行う第2の信号処理部とを有し、
前記通信制御部は、前記第1の信号処理部及び第2の信号処理部のそれぞれの動作状態もしくはそれぞれが受信した信号の状態に基づき、前記第1の信号処理部及び第2の信号処理部の中から所定の条件を満たす一方の信号処理部を選択すること。
(3) 上記(2)の構成の車載通信装置において、
前記通信制御部は、前記第1の信号処理部が正しく動作していることを検出した場合は、前記第2の信号処理部の動作を停止し、前記第2の信号処理部が正しく動作していることを検出した場合は、前記第1の信号処理部の動作を停止すること。
(4) 上記(1)の構成の車載通信装置において、
前記通信制御部は、前記第1の条件との適合性、及び前記第2の条件との適合性が不明である場合には、前記信号処理部から出力される前記第1の通信規格に対応した受信データ、及び前記第2の通信規格に対応した受信データの少なくとも一方の内容を参照し、正しい受信データに対応する通信方式を選択すること。
(5) 上記(1)の構成の車載通信装置において、
前記通信制御部は、通信規格に適合する通信方式が確定するまで、少なくとも所定時間、通信方式を選択するための処理を繰り返すこと。
(6) 上記(5)の構成の車載通信装置において、
前記通信制御部は、前記所定時間を経過するまで通信方式が確定しない場合は、車両のイグニッションスイッチにより電源が再投入されるまで通信動作を停止すること。
(7) 上記(2)の構成の車載通信装置において、
前記相手側通信機器と接続するための単一の共通コネクタの内部に、前記第1の信号処理部が送受信する信号を通すための第1の信号線と、前記第2の信号処理部が送受信する信号を通すための第2の信号線とを組み込んだこと。
In order to achieve the above-described object, the in-vehicle communication device according to the present invention is characterized by the following (1) to (7).
(1) An in-vehicle communication device that can be connected to a communication device on the other side according to various communication standards,
At least one signal processing unit capable of inputting and outputting communication data corresponding to a first communication standard and a second communication standard different from the first communication standard;
The signal processing unit is controlled, and based on the operating state of the signal processing unit or the state of the received signal, the compatibility with the first condition specific to the first communication standard, and the second communication standard A communication control unit that identifies compatibility with the specific second condition and selects a communication method that conforms to the first communication standard or the second communication standard according to the identification result.
(2) In the in-vehicle communication device having the configuration (1),
The signal processing unit includes a first signal processing unit that performs signal processing corresponding to the first communication standard, and a second signal processing unit that performs signal processing corresponding to the second communication standard. ,
The communication control unit includes the first signal processing unit and the second signal processing unit based on respective operation states of the first signal processing unit and the second signal processing unit or signal states received by each of the first signal processing unit and the second signal processing unit. Selecting one of the signal processing units satisfying a predetermined condition.
(3) In the in-vehicle communication device having the configuration (2),
When the communication control unit detects that the first signal processing unit is operating correctly, the communication control unit stops the operation of the second signal processing unit, and the second signal processing unit operates correctly. If it is detected, stop the operation of the first signal processing unit.
(4) In the in-vehicle communication device having the configuration (1),
The communication control unit corresponds to the first communication standard output from the signal processing unit when compatibility with the first condition and compatibility with the second condition are unknown. The communication method corresponding to the correct received data is selected by referring to the contents of at least one of the received data and the received data corresponding to the second communication standard.
(5) In the in-vehicle communication device having the configuration (1),
The communication control unit repeats processing for selecting a communication method for at least a predetermined time until a communication method conforming to a communication standard is determined.
(6) In the in-vehicle communication device having the configuration (5),
If the communication method is not determined until the predetermined time has elapsed, the communication control unit stops communication operation until power is turned on again by an ignition switch of the vehicle.
(7) In the in-vehicle communication device having the configuration (2),
A first signal line for passing a signal transmitted and received by the first signal processing unit and a transmission and reception of the second signal processing unit inside a single common connector for connecting to the counterpart communication device And a second signal line for passing a signal to be transmitted.
上記(1)の構成の車載通信装置によれば、複数種類の通信規格の信号が共通の通信インタフェースに現れる場合であっても、接続先の相手側通信機器に合わせて通信方式を自動的に選択することができる。すなわち、接続先の相手側通信機器が第1の通信規格を採用している場合には第1の通信規格に対応した通信方式が選択され、相手側通信機器が第2の通信規格を採用している場合には第2の通信規格に対応した通信方式が選択される。従って、通信規格を切り替えるための作業者のスイッチ操作等が不要になる。また、共通のソフトウェアを複数の通信規格の通信に利用できるので、ソフトウェアの開発コストや管理コストを削減できる。
上記(2)の構成の車載通信装置によれば、独立した複数の信号処理部を備えるので、様々な通信規格に対応できる。
上記(3)の構成の車載通信装置によれば、前記第1の信号処理部及び前記第2の信号処理部のうち、不要な方の動作を自動的に停止することができる。これにより、無駄な電力消費を抑制できる。また、使用していない回路から発生する割り込み要求などを抑制できるので、処理の効率を高めることができる。
上記(4)の構成の車載通信装置によれば、複数種類の通信規格のプロトコル等が互いによく似ている場合のように、通信に関する動作だけでは通信規格との適合性を判別するのが困難な状況であっても、それを正しく判別可能である。例えば、受信データに含まれるエラーの有無等により、正しい受信データか否かを識別でき、通信規格との適合性を判別できる。
上記(5)の構成の車載通信装置によれば、複数種類の通信規格のプロトコル等が互いによく似ている場合や、それぞれの通信規格に特有の状況が現れるまでに時間がかかる場合であっても、通信規格との適合性を正しく判別可能である。すなわち、1回の識別処理だけでは識別困難な状況であっても、識別処理を所定時間繰り返すことにより、それぞれの通信規格に特有の状況が現れるまで待機することができ、正しい判別結果が得られる。
上記(6)の構成の車載通信装置によれば、異常な通信による装置の誤動作を防止できる。例えば、それ自身あるいは接続先の装置のコンピュータが暴走しているような場合は、電源の再投入によって正常な状態に復帰する可能性が高いので、通信動作を再開し通信規格の適合性を再び判別する。
上記(7)の構成の車載通信装置によれば、採用している通信規格が異なる複数種類の装置を共通コネクタを用いて接続できるので、複数のコネクタや複数の通信ケーブルを用意する必要がなく、接続の間違いも生じない。
According to the in-vehicle communication device having the configuration (1) above, even when signals of a plurality of types of communication standards appear on a common communication interface, the communication method is automatically set according to the counterpart communication device of the connection destination. You can choose. In other words, when the connected counterpart communication device adopts the first communication standard, a communication method corresponding to the first communication standard is selected, and the counterpart communication device adopts the second communication standard. If so, a communication method corresponding to the second communication standard is selected. Therefore, an operator's switch operation or the like for switching the communication standard is not necessary. Moreover, since common software can be used for communication of a plurality of communication standards, software development costs and management costs can be reduced.
According to the vehicle-mounted communication device having the configuration (2), since it includes a plurality of independent signal processing units, it can cope with various communication standards.
According to the in-vehicle communication device having the configuration (3), it is possible to automatically stop the unnecessary operation of the first signal processing unit and the second signal processing unit. Thereby, useless power consumption can be suppressed. In addition, since interrupt requests generated from unused circuits can be suppressed, the processing efficiency can be improved.
According to the in-vehicle communication device having the configuration (4), it is difficult to determine compatibility with the communication standard only by the operation related to communication, as in the case where protocols of a plurality of types of communication standards are very similar to each other. It is possible to correctly discriminate it even in a difficult situation. For example, whether or not the received data is correct can be identified based on the presence or absence of an error included in the received data, and compatibility with the communication standard can be determined.
According to the in-vehicle communication device having the configuration of (5) above, there are cases where protocols of a plurality of types of communication standards are very similar to each other, or when it takes time until a situation peculiar to each communication standard appears. In addition, the compatibility with the communication standard can be correctly determined. In other words, even in situations where it is difficult to identify with only one identification process, by repeating the identification process for a predetermined time, it is possible to wait until a situation specific to each communication standard appears, and a correct discrimination result is obtained. .
According to the in-vehicle communication device having the configuration (6), malfunction of the device due to abnormal communication can be prevented. For example, if the computer of the connected device or the connected device is running out of control, there is a high possibility that it will return to a normal state when the power is turned on again. Determine.
According to the in-vehicle communication device having the configuration (7), it is possible to connect a plurality of types of devices having different communication standards using a common connector, so there is no need to prepare a plurality of connectors and a plurality of communication cables. No connection errors will occur.
前述した目的を達成するために、本発明に係る通信制御プログラムは、下記(8)を特徴としている。
(8) 相手側通信機器と各種通信規格にて接続可能な車載通信装置を制御するコンピュータに実行させるための通信制御プログラムであって、
第1の通信規格に特有の第1の条件との適合性について条件を満たすか否かを識別する第1ステップと、
前記第1の通信規格とは異なる第2の通信規格に特有の第2の条件との適合性について条件を満たすか否かを識別する第2ステップと、
前記第1ステップ又は第2ステップの結果に応じて、前記第1の通信規格又は前記第2の通信規格に適合する通信方式を選択する第3ステップと
を有すること。
In order to achieve the above-described object, a communication control program according to the present invention is characterized by the following (8).
(8) A communication control program for causing a computer that controls an in-vehicle communication device connectable to a communication device on the other side according to various communication standards,
A first step for identifying whether or not a condition for conformity with a first condition specific to the first communication standard is satisfied;
A second step of identifying whether or not a condition for conformity with a second condition specific to a second communication standard different from the first communication standard is satisfied;
And a third step of selecting a communication method conforming to the first communication standard or the second communication standard according to the result of the first step or the second step.
上記(8)の構成の通信制御プログラムをコンピュータで実行することにより、接続先の相手側通信機器が扱う信号の通信規格に合わせて、適切な通信方式を自動的に選択できる。従って、通信規格を切り替えるための作業者のスイッチ操作等が不要になる。また、共通のソフトウェアを複数の通信規格の通信に利用できるので、ソフトウェアの開発コストや管理コストを削減できる。 By executing the communication control program having the configuration (8) on the computer, it is possible to automatically select an appropriate communication method in accordance with the communication standard of the signal handled by the counterpart communication device at the connection destination. Therefore, an operator's switch operation or the like for switching the communication standard is not necessary. Moreover, since common software can be used for communication of a plurality of communication standards, software development costs and management costs can be reduced.
本発明によれば、接続先の通信機器が扱う信号として、複数種類の通信規格の信号が混在する場合であっても、スイッチ等の切り替えを必要とすることなく、該当する通信規格に自動的に適応し通信することが可能になる。また、共通のソフトウェアを複数の通信規格の通信に利用できるので、ソフトウェアの開発コストや管理コストを削減できる。 According to the present invention, even when a signal of a plurality of types of communication standards is mixed as a signal handled by a connection destination communication device, it is automatically changed to the corresponding communication standard without requiring switching of a switch or the like. It becomes possible to communicate with adapting to. Moreover, since common software can be used for communication of a plurality of communication standards, software development costs and management costs can be reduced.
以上、本発明について簡潔に説明した。更に、以下に説明される発明を実施するための形態を添付の図面を参照して通読することにより、本発明の詳細は更に明確化されるであろう。 The present invention has been briefly described above. Further, details of the present invention will be further clarified by reading through the modes for carrying out the invention described below with reference to the accompanying drawings.
本発明の車載通信装置及び通信制御プログラムに関する具体的な実施の形態について、図1及び図2を参照しながら以下に説明する。図1は実施の形態における車載通信装置の構成を示すブロック図である。図2は図1に示した車載通信装置の主要な動作を示すフローチャートである。 Specific embodiments relating to the in-vehicle communication device and the communication control program of the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram illustrating a configuration of an in-vehicle communication device according to an embodiment. FIG. 2 is a flowchart showing main operations of the in-vehicle communication apparatus shown in FIG.
図1に示すシステムは、互いに通信可能な車載通信装置10と外部通信機器20とそれらを接続する接続ケーブル30とで構成されている。このシステムは自動車などの車両に搭載される。
The system shown in FIG. 1 includes an in-
車載通信装置10及び外部通信機器20の各々に相当する代表例としては、パワーウインドウ制御装置、ドアロック制御装置、バックミラー制御装置、エンジン制御装置、ライト制御装置などが想定される。図1においては車載通信装置10と外部通信機器20を接続したシステムを示しているが、実際の車両においては3以上の多数の装置が共通のネットワークを介して相互に接続される場合が多い。
As typical examples corresponding to the in-
この種の制御装置は、単独で動作することも可能であるが、外部装置との間で指令の信号をやりとりしたり、制御に必要な情報を入出力する必要があるので、外部装置との間でデータ通信を行う必要がある。 Although this type of control device can operate alone, it is necessary to exchange command signals with external devices and to input and output information necessary for control. It is necessary to perform data communication between them.
車載装置の通信については、現在では様々な通信規格が採用されているが、実際に使用される通信規格の代表例としては、UART (Universal Asynchronous Receiver Transmitter) 、LIN(Local Interconnect Network)、CAN(Controller Area Network)などがある。実際に採用している通信規格の種別については、車種毎に決定される場合が多い。また、同一の車種であっても、様々なバリエーションの違いに応じて採用する通信規格が変更される場合もある。 Various communication standards are currently used for in-vehicle device communication. Typical examples of communication standards that are actually used include UART (Universal Asynchronous Receiver Transmitter), LIN (Local Interconnect Network), CAN ( Controller Area Network). In many cases, the type of communication standard that is actually adopted is determined for each vehicle type. Moreover, even if it is the same vehicle model, the communication standard employ | adopted according to the difference of various variations may be changed.
従って、図1に示す車載通信装置10を作業者がある車両に搭載しようとする場合には、通信相手である外部通信機器20の採用している通信規格が予め定まっているわけではなく、通信規格の不適合により車載通信装置10と外部通信機器20とが通信できない可能性もある。
Therefore, when the worker intends to install the in-
図1に示した車載通信装置10は、1台でUART、LINの2種類の通信規格に対応している。つまり、外部通信機器20がUART又はLINの通信規格を採用していれば、車載通信装置10と外部通信機器20との間で通信が可能になる。
One in-
また、図1に示した車載通信装置10は、UART、LINの2種類の通信規格に共通に利用できる単一の共通コネクタ14を搭載している。すなわち、外部通信機器20がUART、LINの2種類のいずれの通信規格を採用している場合であっても、共通の接続ケーブル30を共通コネクタ14に接続し、接続ケーブル30を経由して通信を行う。従って、車載通信装置10側から見ると、共通コネクタ14にUARTの通信規格を採用した外部通信機器20が接続される場合もあるし、LINの通信規格を採用した外部通信機器20が接続される場合もある。すなわち、車載通信装置10は共通コネクタ14に接続される相手側機器(外部通信機器20)との間で、UARTの通信規格に従って通信する場合もあるし、LINの通信規格に従って通信する場合もある。
In addition, the in-
図1に示すように、車載通信装置10は、主制御ユニット(MET MCU:マイクロコントローラ)11、LINトランシーバ12、UARTインタフェース(I/F)回路13及び共通コネクタ14を備えている。
As shown in FIG. 1, the in-
主制御ユニット11は、マイクロコンピュータを内蔵しており、内部のメモリ上に予め用意されている所定のプログラムを実行することにより、車載通信装置10の機能を実現するための所定の動作を行う。この動作には、データ通信のための処理が含まれており、通信の規格あるいは通信方式を自動的に選択するための図2に示すような処理も含まれている。
The
LINトランシーバ12は、LINの通信規格に従って通信する場合にインタフェースとして用いられる標準的な信号処理回路である。すなわち、主制御ユニット11が送出する信号をLINの通信規格に適合する送信信号に変換し、LINの通信規格に適合する受信信号を共通コネクタ14から入力して主制御ユニット11が処理可能な受信信号に変換する。
The
具体的には、主制御ユニット11の出力ポートP4に現れる信号がLIN通信用のシリアル送信信号(LIN Tx)としてLINトランシーバ12に入力される。また、LINトランシーバ12から出力されるLIN通信用のシリアル受信信号(LIN Rx)が主制御ユニット11の入力ポートP5に入力される。また、このシリアル受信信号(LIN Rx)は、LIN通信の受信割り込み信号(LIN Rx INT)として主制御ユニット11の割り込み要求入力ポートP6にも入力される。主制御ユニット11が出力ポートP7に出力する信号は、LIN通信用のスリープ制御信号(LIN NSLP)としてLINトランシーバ12に入力される。LINトランシーバ12の入出力ポート12aは、LIN通信用のバス(LINバス)と接続されている。LIN通信用のバスは、単線(シングルワイヤ)上に送信信号及び受信信号が現れる。標準的な自動車に用いる場合には、LIN通信用のバス上には、信号が現れない時に約12Vの直流バッテリー電圧が現れる。
Specifically, a signal appearing at the output port P4 of the
一方、UARTインタフェース回路13は、UARTの通信規格に従って通信する場合にインタフェースとして用いられる標準的な信号処理回路である。図1に示すように、主制御ユニット11の出力ポートP1から出力される信号がUART通信用のシリアル送信信号(UART Tx)としてUARTインタフェース回路13に入力される。また、UARTインタフェース回路13から出力されるUART通信用のシリアル受信信号(UART Rx)が、主制御ユニット11の入力ポートP2に入力される。また、このシリアル受信信号(UART Rx)はUART通信の受信割り込み信号(UART Rx INT)として主制御ユニット11の割り込み要求入力ポートP3にも入力される。
On the other hand, the
共通コネクタ14には複数の独立した信号線の接続を可能にするために、複数の端子が含まれている。共通コネクタ14上の1つの端子は、LIN通信用のバス(LINバス)として使用するために、LINトランシーバ12のポート12aと接続されている。また、共通コネクタ14上の他の2つの端子は、UART通信用の通信線(2本)として使用するために、UARTインタフェース回路13の2つの端子とそれぞれ接続されている。UART通信用の通信線は、シリアル送信信号(UART Tx)を通すための線と、シリアル受信信号(UART Rx)を通すための線とを含んでいる。
The
図1に示すように、車載通信装置10と外部通信機器20を接続するための接続ケーブル30には、3本の信号線31〜33が含まれている。但し、信号線31〜33のいずれかを省略する場合もあり得る。例えば、外部通信機器20がLIN規格の通信インタフェースだけを搭載している場合には信号線32、33は不要であり、UART規格の通信インタフェースだけを搭載している場合には信号線31は不要である。
As shown in FIG. 1, the
車載通信装置10上の主制御ユニット11の動作が図2に示されている。なお、実際には主制御ユニット11は様々な制御を実施するが、図2には複数の通信方式のいずれかを自動的に選択するための処理だけが示されている。図2に示す主制御ユニット11の動作について以下に説明する。
The operation of the
車両のイグニッションスイッチがオンになり、車載通信装置10の電源に車載バッテリーから電力が供給されると主制御ユニット11が動作を開始し、主制御ユニット11により図2に示す処理が実行される。
When the ignition switch of the vehicle is turned on and electric power is supplied from the in-vehicle battery to the power source of the in-
また、図2には示されていないが、電源投入後に実行される初期化処理においては、主制御ユニット11はLINトランシーバ12を用いたLIN通信及びUARTインタフェース回路13を用いたUART通信の双方が可能な状態にセットする。
Although not shown in FIG. 2, in the initialization process executed after power-on, the
ステップS11では、主制御ユニット11はイグニッションスイッチの状態を参照し、オンか否かを識別する。イグニッションスイッチがオンの時にはステップS12以降の処理に進む。
In step S11, the
ステップS12では、主制御ユニット11はUART通信の動作中として識別するための予め定めた条件(A)を満たしているか否かを識別する。具体的には、UARTの通信規格に特有の状態として、通信データにCRC(Cyclic Redundancy Check)コードが連結している特徴がある。従って、UARTインタフェース回路13から主制御ユニット11に入力される全ての受信データにCRCコードが連結されていることを前記条件(A)として採用している。前記条件(A)を満たす場合には、通信方式をUART通信として確定し、ステップS13に進む。通信方式をUART通信として確定していない場合はステップS15に進む。
In step S12, the
ステップS13では、主制御ユニット11はこれ以降のLIN通信に関する動作を停止する。具体的には、LINトランシーバ12をスリープ状態に切り替え、主制御ユニット11内部におけるLIN通信に関する信号処理を停止する。
In step S13, the
ステップS14では、主制御ユニット11はこれ以降の通信処理はUART通信のみに限定し、UART通信の通信規格に従って送受信の処理を行う。すなわち、主制御ユニット11はUARTインタフェース回路13を介して外部通信機器20との間でシリアルデータ通信を行う。
In step S14, the
ステップS15では、主制御ユニット11はLIN通信の動作中として識別するための予め定めた条件(B)を満たしているか否かを識別する。具体的には、LINの通信規格に特有の状態として、通信開始時にSYNC(同期)ブレーク割り込みが発生するという特徴がある。従って、LINトランシーバ12から主制御ユニット11に入力される信号により、通信開始時にSYNC(同期)ブレーク割り込みが発生することを前記条件(B)として採用している。前記条件(B)を満たす場合は通信方式をLIN通信として確定し、ステップS16に進む。通信方式をLIN通信として確定していない場合はステップS18に進む。
In step S15, the
ステップS16では、主制御ユニット11はこれ以降のUART通信に関する動作を停止する。すなわち、主制御ユニット11内部におけるUART通信に関する信号処理を停止する。
In step S16, the
ステップS17では、主制御ユニット11はこれ以降の通信処理はLIN通信のみに限定し、LIN通信の通信規格に従って送受信の処理を行う。すなわち、主制御ユニット11はLINトランシーバ12を介して外部通信機器20との間でシリアルデータ通信を行う。
In step S17, the
ステップS18では、主制御ユニット11はUART通信に関する正常な受信データを検出したか否かを識別する。具体的には、UARTインタフェース回路13から主制御ユニット11に入力される受信データに付加されているCRCコードに基づいて受信データのエラーの有無を識別し、エラーがなければ正常としエラーがあれば異常とする。正常な受信データを検出した場合はステップS19に進み、異常な受信データを検出した場合はステップS21に進む。
In step S18, the
ステップS19では、主制御ユニット11はこれ以降の通信処理についてはUART通信の通信規格に従って処理を実行する。すなわち、主制御ユニット11はUARTインタフェース回路13を介して外部通信機器20との間でシリアルデータ通信を行う。
In step S <b> 19, the
ステップS20では、主制御ユニット11はこれ以降のLIN通信に関する動作を停止する。具体的には、LINトランシーバ12をスリープ状態に切り替え、主制御ユニット11内部におけるLIN通信に関する信号処理を停止する。
In step S20, the
ステップS21では、主制御ユニット11はLIN通信に関する正常な受信データを検出したか否かを識別する。具体的には、LINトランシーバ12から主制御ユニット11に入力される受信データのフレームに含まれているIDフィールドの内容を参照し、この内容が正しいか否かを識別する。IDフィールドの内容が正しい場合は正常な受信データとして認識し、正しくない場合は異常な受信データとして認識する。正常な受信データを検出した場合はステップS22に進み、異常な受信データを検出した場合はステップS24に進む。
In step S21, the
ステップS22では、主制御ユニット11はこれ以降の通信処理はLIN通信の通信規格に従って処理する。すなわち、主制御ユニット11はLINトランシーバ12を介して外部通信機器20との間でシリアルデータ通信を行う。
In step S22, the
ステップS23では、主制御ユニット11はこれ以降のUART通信に関する動作を停止する。すなわち、主制御ユニット11内部におけるUART通信に関する信号処理を停止する。
In step S23, the
ステップS24では、主制御ユニット11はイグニッションスイッチがオンに切り替わってからの経過時間(電源投入時からの経過時間と同等)を参照し、この経過時間が予め定めた閾値(例えば3秒間)を経過したか否かを識別する。経過した場合はステップS25に進み、経過していない場合はステップS11に戻る。
In step S24, the
ステップS25では、主制御ユニット11はこれ以降のLIN通信及びUART通信を共に停止する。すなわち、外部通信機器20の採用している通信規格がLIN通信及びUART通信のいずれでもないか、あるいは何らかの誤動作が生じている可能性があるので、LINトランシーバ12の動作及びUARTインタフェース回路13の動作を停止し、次に電源が再投入されるまで通信を終了する。これにより、誤動作の発生を防止できる。
In step S25, the
なお、図1に示した車載通信装置10においては、LIN通信及びUART通信の双方の通信規格に対応するために、独立した信号処理回路としてLINトランシーバ12及びUARTインタフェース回路13をそれぞれ設けてあるが、単一の信号処理回路だけで複数種類の通信規格に対応することも可能である。
In the in-
以上のように、本発明の車載通信装置及び通信制御プログラムは、車両上に搭載される電子機器のように、接続相手の採用している通信規格として複数種類が存在しうる環境において、実際に通信が可能な通信規格を自動的に選択するために利用できる。従って、本発明の車載通信装置又は通信制御プログラムを適用すれば、作業者等の選択操作が不要になり、選択ミスや操作ミスの発生を防止できる。更に、通信規格毎に独立したソフトウェアを作成する必要が無くなり、ソフトウェアの作成コストや管理コストの低減が可能になる。 As described above, the in-vehicle communication device and the communication control program of the present invention are actually used in an environment in which a plurality of types of communication standards adopted by a connection partner can exist, such as an electronic device mounted on a vehicle. It can be used to automatically select a communication standard capable of communication. Therefore, if the in-vehicle communication device or the communication control program of the present invention is applied, a selection operation by an operator or the like becomes unnecessary, and the occurrence of selection errors and operation errors can be prevented. Furthermore, it is not necessary to create independent software for each communication standard, and it is possible to reduce software creation costs and management costs.
10 車載通信装置
11 主制御ユニット
12 LINトランシーバ
13 UARTインタフェース回路
14 共通コネクタ
20 外部通信機器
30 接続ケーブル
31〜33 信号線
P1〜P7 ポート
DESCRIPTION OF
Claims (8)
第1の通信規格、及び前記第1の通信規格とは異なる第2の通信規格に対応した通信データの入出力が可能な少なくとも1つの信号処理部と、
前記信号処理部を制御し、前記信号処理部の動作状態もしくは受信した信号の状態に基づき、前記第1の通信規格に特有の第1の条件との適合性、及び前記第2の通信規格に特有の第2の条件との適合性を識別し、その識別結果に応じて前記第1の通信規格又は第2の通信規格に適合する通信方式を選択する通信制御部と
を備えることを特徴とする車載通信装置。 It is an in-vehicle communication device that can be connected to other communication devices with various communication standards,
At least one signal processing unit capable of inputting and outputting communication data corresponding to a first communication standard and a second communication standard different from the first communication standard;
The signal processing unit is controlled, and based on the operating state of the signal processing unit or the state of the received signal, the compatibility with the first condition specific to the first communication standard, and the second communication standard A communication control unit that identifies compatibility with the specific second condition and selects a communication method that conforms to the first communication standard or the second communication standard according to the identification result. In-vehicle communication device.
前記通信制御部は、前記第1の信号処理部及び第2の信号処理部のそれぞれの動作状態もしくはそれぞれが受信した信号の状態に基づき、前記第1の信号処理部及び第2の信号処理部の中から所定の条件を満たす一方の信号処理部を選択することを特徴とする請求項1に記載の車載通信装置。 The signal processing unit includes a first signal processing unit that performs signal processing corresponding to the first communication standard, and a second signal processing unit that performs signal processing corresponding to the second communication standard. ,
The communication control unit includes the first signal processing unit and the second signal processing unit based on respective operation states of the first signal processing unit and the second signal processing unit or signal states received by each of the first signal processing unit and the second signal processing unit. The in-vehicle communication device according to claim 1, wherein one of the signal processing units that satisfies a predetermined condition is selected.
第1の通信規格に特有の第1の条件との適合性について条件を満たすか否かを識別する第1ステップと、
前記第1の通信規格とは異なる第2の通信規格に特有の第2の条件との適合性について条件を満たすか否かを識別する第2ステップと、
前記第1ステップ又は第2ステップの結果に応じて、前記第1の通信規格又は前記第2の通信規格に適合する通信方式を選択する第3ステップと
を有することを特徴とする通信制御プログラム。 A communication control program for causing a computer that controls an in-vehicle communication device that can be connected to a counterpart communication device according to various communication standards,
A first step for identifying whether or not a condition for conformity with a first condition specific to the first communication standard is satisfied;
A second step of identifying whether or not a condition for conformity with a second condition specific to a second communication standard different from the first communication standard is satisfied;
A communication control program comprising: a third step of selecting a communication method conforming to the first communication standard or the second communication standard according to the result of the first step or the second step.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009014764A JP5177893B2 (en) | 2009-01-26 | 2009-01-26 | In-vehicle communication device and communication control program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009014764A JP5177893B2 (en) | 2009-01-26 | 2009-01-26 | In-vehicle communication device and communication control program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010171910A true JP2010171910A (en) | 2010-08-05 |
| JP5177893B2 JP5177893B2 (en) | 2013-04-10 |
Family
ID=42703576
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009014764A Expired - Fee Related JP5177893B2 (en) | 2009-01-26 | 2009-01-26 | In-vehicle communication device and communication control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5177893B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012099958A (en) * | 2010-10-29 | 2012-05-24 | Auto Network Gijutsu Kenkyusho:Kk | Processing system, processor, and power supply control method |
| JP2018158682A (en) * | 2017-03-23 | 2018-10-11 | 株式会社デンソー | In-vehicle device |
| WO2019187613A1 (en) * | 2018-03-26 | 2019-10-03 | 住友電気工業株式会社 | Vehicle-mounted communication system, switch device, communication control method, and communication control program |
| CN111788795A (en) * | 2018-03-02 | 2020-10-16 | 住友电气工业株式会社 | Switching device, monitoring method and monitoring program |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1141317A (en) * | 1997-07-17 | 1999-02-12 | Nec Eng Ltd | Method and system for controlling protocol |
| JP2005039943A (en) * | 2003-07-16 | 2005-02-10 | Zexel Valeo Climate Control Corp | Motor drive control method and motor drive control circuit |
| JP2006033730A (en) * | 2004-07-21 | 2006-02-02 | Fujitsu Ten Ltd | Transmission signal discrimination device |
| JP2007145182A (en) * | 2005-11-28 | 2007-06-14 | Sony Corp | In-vehicle device and communication method thereof |
| JP2009143411A (en) * | 2007-12-14 | 2009-07-02 | Mazda Motor Corp | Connecting unit of in-vehicle audio device |
-
2009
- 2009-01-26 JP JP2009014764A patent/JP5177893B2/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1141317A (en) * | 1997-07-17 | 1999-02-12 | Nec Eng Ltd | Method and system for controlling protocol |
| JP2005039943A (en) * | 2003-07-16 | 2005-02-10 | Zexel Valeo Climate Control Corp | Motor drive control method and motor drive control circuit |
| JP2006033730A (en) * | 2004-07-21 | 2006-02-02 | Fujitsu Ten Ltd | Transmission signal discrimination device |
| JP2007145182A (en) * | 2005-11-28 | 2007-06-14 | Sony Corp | In-vehicle device and communication method thereof |
| JP2009143411A (en) * | 2007-12-14 | 2009-07-02 | Mazda Motor Corp | Connecting unit of in-vehicle audio device |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012099958A (en) * | 2010-10-29 | 2012-05-24 | Auto Network Gijutsu Kenkyusho:Kk | Processing system, processor, and power supply control method |
| JP2018158682A (en) * | 2017-03-23 | 2018-10-11 | 株式会社デンソー | In-vehicle device |
| CN111788795A (en) * | 2018-03-02 | 2020-10-16 | 住友电气工业株式会社 | Switching device, monitoring method and monitoring program |
| WO2019187613A1 (en) * | 2018-03-26 | 2019-10-03 | 住友電気工業株式会社 | Vehicle-mounted communication system, switch device, communication control method, and communication control program |
| JPWO2019187613A1 (en) * | 2018-03-26 | 2021-04-01 | 住友電気工業株式会社 | In-vehicle communication system, switch device, communication control method and communication control program |
| JP7160089B2 (en) | 2018-03-26 | 2022-10-25 | 住友電気工業株式会社 | In-vehicle communication system, switch device, communication control method and communication control program |
| US12266225B2 (en) | 2018-03-26 | 2025-04-01 | Sumitomo Electric Industries, Ltd. | On-vehicle communication system, switch device, communication control method, and communication control program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP5177893B2 (en) | 2013-04-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2757742B1 (en) | On-vehicle gateway apparatus and communication system for vehicle | |
| CN103053137B (en) | Processing system, processing device and power supply control method | |
| US9038132B2 (en) | Bus monitoring security device and bus monitoring security system | |
| US6973378B2 (en) | In-vehicle control device communicatable with external communication system and in-vehicle LAN | |
| US9166910B2 (en) | Data relay apparatus | |
| US20160277208A1 (en) | Vehicle communication system | |
| JP5177893B2 (en) | In-vehicle communication device and communication control program | |
| JP2020501479A (en) | Intelligent charging communication switching device in CAN-based charging system | |
| US7743273B2 (en) | Serial communication system and method for transmitting and receiving data in synchronization with a clock signal | |
| JP2009302783A (en) | Failure detecting method and failure detection system of communication network | |
| CN109050444B (en) | CAN circuit structure and vehicle diagnosis equipment thereof | |
| CN116896489A (en) | Vehicle communication system, vehicle communication method, and control device | |
| CN101539775A (en) | Automobile control module system for identifying address automatically | |
| CN112148321B (en) | Anti-interference upgrading system and method for automobile intelligent electronic equipment microcontroller | |
| KR20020062816A (en) | Transceiver with means for error management | |
| JP5867350B2 (en) | Electronic control device for vehicle | |
| US12060035B2 (en) | Security system, vehicle, security device, and validity determination method | |
| JP2005142662A (en) | Lin communication apparatus | |
| CN202602677U (en) | A vehicle-mounted gateway controller | |
| JP2010232867A (en) | Relay system, relay device and control device | |
| KR20190081758A (en) | Power Supply system and method for ethernet communication network in vehicle | |
| CN218805699U (en) | Automobile intelligent key system | |
| CN111934763A (en) | Remote starting system and method based on space optical transmission equipment | |
| JP2005335622A (en) | In-vehicle device and communication device | |
| JP5556430B2 (en) | Communications system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111129 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120918 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121119 |
|
| 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: 20121211 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130107 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5177893 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| 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 |
|
| 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 |
|
| LAPS | Cancellation because of no payment of annual fees |