JP2017118317A - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP2017118317A
JP2017118317A JP2015251643A JP2015251643A JP2017118317A JP 2017118317 A JP2017118317 A JP 2017118317A JP 2015251643 A JP2015251643 A JP 2015251643A JP 2015251643 A JP2015251643 A JP 2015251643A JP 2017118317 A JP2017118317 A JP 2017118317A
Authority
JP
Japan
Prior art keywords
data
area
type
frame
communication device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2015251643A
Other languages
Japanese (ja)
Inventor
翔 冨田
Sho Tomita
翔 冨田
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2015251643A priority Critical patent/JP2017118317A/en
Publication of JP2017118317A publication Critical patent/JP2017118317A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a communication device that transmits and receives frames via a communication line and can secure a lot of type areas while preventing data transmission efficiency from deteriorating.SOLUTION: In a communication system 1, ECUs 20, 30, 40 comprise a frame generation unit 23 and a transmission unit 24. The frame generation unit 23 generates a frame including a type area representing a type of data and a data length area indicating length of the data, and making at least part of the data length area into part of the type area. Then, the transmission unit 24 transmits the frame generated by the frame generation unit 23 onto a communication line 5.SELECTED DRAWING: Figure 1

Description

本開示は、通信線を介してフレームを送受信する通信装置に関する。   The present disclosure relates to a communication device that transmits and receives a frame via a communication line.

特許文献1には、上記通信装置として、送受信する実質的なデータを表す実データが含まれるフレームのうちの、データ長を示す情報が格納されるデータ長領域を、実データを格納するための領域にも利用している。この構成では、データ長領域の一部を用いて実データを送ることができるので、実データの通信効率を向上させることができる。   In Patent Literature 1, as the communication device, a data length area in which information indicating a data length is stored in a frame including actual data representing substantial data to be transmitted and received is stored. It is also used in the area. In this configuration, since the actual data can be sent using a part of the data length area, the communication efficiency of the actual data can be improved.

特開2014−204287号公報JP 2014-204287 A

ところで、上記のような通信装置には、フレームの一部にデータの種別を表す種別領域を持たせたものがある。種別領域として多くの領域を確保し、より多くのデータの種別を識別できるようにすることへの要求があるが、種別領域として多くの領域を確保すると実データの通信効率が低下するという問題がある。   By the way, some of the communication apparatuses as described above have a type area indicating a data type in a part of a frame. There is a request to secure a lot of areas as type areas and identify more types of data, but there is a problem that the communication efficiency of actual data decreases if many areas are secured as type areas. is there.

本開示の一局面は、通信線を介してフレームを送受信する通信装置において、データの伝送効率の低下を抑制しつつ、多くの種別領域を確保できるようにすることが望ましい。   In one aspect of the present disclosure, it is desirable that a communication apparatus that transmits and receives a frame via a communication line can secure a large number of classification areas while suppressing a decrease in data transmission efficiency.

本開示の一側面の通信装置において、フレーム生成部(23)と、送信部(24)とを備える。
フレーム生成部は、データの種別を表す種別領域(62)、およびデータの長さを示すデータ長領域(66)、が含まれるフレーム(60)であって、データ長領域の少なくとも一部を種別領域の一部としたフレームを生成する。そして、送信部は、フレーム生成部によって生成されたフレームを通信線上に送信する。
The communication device according to one aspect of the present disclosure includes a frame generation unit (23) and a transmission unit (24).
The frame generation unit is a frame (60) including a type area (62) indicating the type of data and a data length area (66) indicating the length of the data, and at least a part of the data length area is typed Generate a frame that is part of the region. Then, the transmission unit transmits the frame generated by the frame generation unit on the communication line.

また、本開示の一側面の通信装置において、受信部(26)とデータ認識部(27)とを備える。受信部は、データの種別を表す種別領域と、データの長さを示すデータ長領域とが含まれるフレームであって、データ長領域の少なくとも一部を種別領域の一部としたフレームを受信する。また、データ認識部は、受信したフレームから種別領域およびデータ長領域を抽出し、種別領域およびデータ長領域に含まれるデータに基づいてデータの種別を認識する。   In addition, the communication device according to one aspect of the present disclosure includes a reception unit (26) and a data recognition unit (27). The receiving unit receives a frame including a type area indicating the type of data and a data length area indicating the length of the data, wherein at least a part of the data length area is a part of the type area. . Further, the data recognition unit extracts the type area and the data length area from the received frame, and recognizes the type of data based on the data included in the type area and the data length area.

これらのような通信装置によれば、データ長領域の少なくとも一部を種別領域の一部として利用するので、データの伝送効率の低下を抑制しつつ、多くの種別領域を確保することができる。なお、この欄および特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本開示の技術的範囲を限定するものではない。   According to such communication apparatuses, since at least a part of the data length area is used as a part of the type area, it is possible to secure a large number of type areas while suppressing a decrease in data transmission efficiency. Note that the reference numerals in parentheses described in this column and in the claims indicate the correspondence with the specific means described in the embodiment described later as one aspect, and the technical scope of the present disclosure It is not limited.

通信システムの構成を示すブロック図である。It is a block diagram which shows the structure of a communication system. 通信フレームの構成例を示す説明図である。It is explanatory drawing which shows the structural example of a communication frame. DLCを宛先に利用する際のデータ設定例である。It is an example of a data setting at the time of using DLC for a destination. DLCを利用できない場合のデータ設定例である。It is an example of a data setting when DLC cannot be used. ECUのデータ認識部が実行する受信処理を示すフローチャートである。It is a flowchart which shows the reception process which the data recognition part of ECU performs.

以下、本開示の例示的な実施形態について図面を参照しながら説明する。
[1.第1実施形態]
[1−1.構成]
図1に示す通信システム1は、例えば乗用車等の車両に搭載されたものであり、テスタ10と、複数のECU20,30,35,36,37,40と、を備える。テスタ10は、1または複数のECU20,30,35,36,37,40を指定し、指定したECUに対してデータを要求したり、指定したECUにおけるプログラムを書き換えたりする機能を有する。また、テスタ10は、通信線5に対して着脱自在に構成されており、通信線5に接続されたときに、通信線5を介した通信を実施する。
Hereinafter, exemplary embodiments of the present disclosure will be described with reference to the drawings.
[1. First Embodiment]
[1-1. Constitution]
A communication system 1 shown in FIG. 1 is mounted on a vehicle such as a passenger car, for example, and includes a tester 10 and a plurality of ECUs 20, 30, 35, 36, 37, and 40. The tester 10 has a function of designating one or a plurality of ECUs 20, 30, 35, 36, 37, and 40, requesting data from the designated ECU, and rewriting a program in the designated ECU. In addition, the tester 10 is configured to be detachable from the communication line 5 and performs communication via the communication line 5 when connected to the communication line 5.

複数のECUのうちのECU20,40は、通信線5に接続されており、複数のECUのうちのECU35,36,37は、通信線5とは異なる通信線6に接続されている。ECU30は、通信線5,6の両方に接続されており、通信線5,6間でデータを中継する中継装置として機能する。   The ECUs 20 and 40 of the plurality of ECUs are connected to the communication line 5, and the ECUs 35, 36, and 37 of the plurality of ECUs are connected to a communication line 6 different from the communication line 5. The ECU 30 is connected to both the communication lines 5 and 6 and functions as a relay device that relays data between the communication lines 5 and 6.

テスタ10およびECU20,30,40は、通信線5を介してCAN(Controller Area Network:登録商標)プロトコルにより通信を行うよう。また、ECU30,35,36,37は、通信線6を介してLIN(Local Interconnect Network)プロトコルによって通信を行う。   The tester 10 and the ECUs 20, 30, and 40 communicate with each other through a communication line 5 using a CAN (Controller Area Network: registered trademark) protocol. In addition, the ECUs 30, 35, 36, and 37 communicate with each other by the LIN (Local Interconnect Network) protocol via the communication line 6.

各ECU20,30,35,36,37,40は、ECU毎に予め設定された周知の電子制御装置としての機能を有する。例えば、エンジン、ブレーキ、エアコン、カーナビ等、車両に搭載された構成要素を制御する機能を個々に有する。   Each ECU 20, 30, 35, 36, 37, 40 has a function as a well-known electronic control device preset for each ECU. For example, it individually has a function of controlling components mounted on a vehicle such as an engine, a brake, an air conditioner, and a car navigation system.

以下においては、テスタ10および複数のECU20,30,35,36,37,40についての通信に関する機能について説明する。なお、通信線6に接続されたECU35,36,37については、LINによる通信を行う周知の構成を有しているため説明を省略し、通信線5に接続されたECU20,30,40および通信線5に接続されうるテスタ10について説明する。ただし、テスタ10およびECU20,30,40については同等の通信に関する機能を有するため、これらを代表してECU20について説明する。   Below, the function regarding the communication about the tester 10 and several ECU20,30,35,36,37,40 is demonstrated. Note that the ECUs 35, 36, and 37 connected to the communication line 6 have a well-known configuration for performing communication by LIN, and thus the description thereof is omitted, and the ECUs 20, 30, and 40 connected to the communication line 5 and the communication are omitted. The tester 10 that can be connected to the line 5 will be described. However, since the tester 10 and the ECUs 20, 30, and 40 have the same communication functions, the ECU 20 will be described as a representative of them.

ECU20は、CPU21と、RAM、ROM、フラッシュメモリ等の半導体メモリ(以下、メモリ22)と、を有する周知のマイクロコンピュータを中心に構成される。ECU20の各種機能は、CPU21が非遷移的実体的記録媒体に格納されたプログラムを実行することにより実現される。この例では、メモリ22が、プログラムを格納した非遷移的実体的記録媒体に該当する。また、このプログラムの実行により、プログラムに対応する方法が実行される。なお、ECU20を構成するマイクロコンピュータの数は1つでも複数でもよい。   The ECU 20 is mainly configured by a known microcomputer having a CPU 21 and a semiconductor memory (hereinafter, memory 22) such as a RAM, a ROM, and a flash memory. Various functions of the ECU 20 are realized by the CPU 21 executing a program stored in a non-transitional physical recording medium. In this example, the memory 22 corresponds to a non-transitional tangible recording medium that stores a program. Further, by executing this program, a method corresponding to the program is executed. The number of microcomputers constituting the ECU 20 may be one or plural.

ECU20は、CPU21がプログラムを実行することで実現される機能の構成として、図1に示すように、フレーム生成部23と、送信部24と、受信部26と、データ認識部27とを備える。ECU20を構成するこれらの要素を実現する手法はソフトウェアに限るものではなく、その一部または全部の要素を、論理回路やアナログ回路等を組み合わせたハードウェアを用いて実現してもよい。   ECU20 is provided with the flame | frame production | generation part 23, the transmission part 24, the receiving part 26, and the data recognition part 27 as a structure of the function implement | achieved when CPU21 runs a program, as shown in FIG. The method of realizing these elements constituting the ECU 20 is not limited to software, and some or all of the elements may be realized using hardware that combines a logic circuit, an analog circuit, and the like.

[1−2.処理]
フレーム生成部23は、ECU20においてイベントが発生した場合等、送信すべきデータについてのデータフレーム60を生成し、送信部24に送る。データフレーム60は、送受信されるデータの全てを表し、データフレーム60には、図2に示すように、ID62、コントロールフィールド64、およびデータフィールド68が含まれる。
[1-2. processing]
The frame generation unit 23 generates a data frame 60 for data to be transmitted, such as when an event occurs in the ECU 20, and sends the data frame 60 to the transmission unit 24. The data frame 60 represents all the data to be transmitted and received, and the data frame 60 includes an ID 62, a control field 64, and a data field 68 as shown in FIG.

ID62は、例えば11ビットの領域が準備されており、データの種別を表す情報が格納される。コントロールフィールド64は、8ビットの領域が準備されており、そのうちの下位4ビットにデータの長さを示すDLC(Data Length Code)66が割り当てられる。データの長さとは、フレームにおいて送信されるデータの大きさを示す。DLC66においては、4ビットで表現できる0−15の数のうち、0−8を用いてデータフィールド68のデータの長さをバイト数で表現する。   As the ID 62, for example, an 11-bit area is prepared, and information indicating the type of data is stored. An 8-bit area is prepared for the control field 64, and a DLC (Data Length Code) 66 indicating the data length is assigned to the lower 4 bits of the area. The data length indicates the size of data transmitted in a frame. In the DLC 66, the data length of the data field 68 is expressed by the number of bytes using 0-8 out of the numbers 0-15 that can be expressed by 4 bits.

すなわち、例えばDLC66におけるビット値が1であればデータフィールド68が1バイトのデータ長であり、例えばDLC66におけるビット値が8であればデータフィールド68が8バイトのデータ長であることを示す。   That is, for example, if the bit value in the DLC 66 is 1, the data field 68 has a data length of 1 byte, and if the bit value in the DLC 66 is 8, for example, it indicates that the data field 68 has a data length of 8 bytes.

なお、データフィールド68は、フレームのうちのヘッダ部分およびフッタ部分を除く実データが格納される領域である。実データとは、送受信する実質的なデータを表す。例えば、センサ値等の状態値、プログラムの書き換え等の指令を表す指令値、書き換え用のプログラムそのもの等が含まれる。   The data field 68 is an area in which actual data excluding the header portion and footer portion of the frame is stored. The actual data represents substantial data to be transmitted / received. For example, a state value such as a sensor value, a command value indicating a command for rewriting a program, a rewriting program itself, and the like are included.

ここで、DLC66は、データ長が特定の値である際に、データ値が無効となる無効領域を有するよう設定されている。すなわち、DLC66におけるビット値が8−15である場合、言い換えれば、DLC66を示す4ビットのうちの最上位のビットであるd3が1である場合には、このビット値だけでデータ長が8バイトと認識されるため、DLC66を示す4ビットのうちの下位3ビットであるd2、d1、d0はデータ長を示す上では無意味となる。つまり、下位3ビットが無効領域となる。   Here, the DLC 66 is set to have an invalid area where the data value is invalid when the data length is a specific value. That is, when the bit value in the DLC 66 is 8-15, in other words, when d3 that is the most significant bit among the 4 bits indicating the DLC 66 is 1, the data length is 8 bytes only with this bit value. Therefore, d2, d1, and d0, which are the lower 3 bits of the 4 bits indicating DLC 66, are meaningless in indicating the data length. That is, the lower 3 bits are an invalid area.

このため、フレーム生成部23は、データフィールド68のデータ長が8バイトとなり、DLC66に無効領域を有する際に、DLC66の少なくとも一部である下位3ビットを、データ種別を示す領域(すなわちCANIDを示す領域)の一部としたデータフレーム60を生成する。つまり、ID62の11ビットとDLC66の下位3ビットとの14ビットの領域を用いてデータの種別を表現する。   Therefore, when the data length of the data field 68 is 8 bytes and the DLC 66 has an invalid area, the frame generation unit 23 converts the lower 3 bits, which are at least part of the DLC 66, into the area indicating the data type (that is, the CANID). A data frame 60 as a part of the area shown in FIG. That is, the type of data is expressed using a 14-bit area of 11 bits of ID62 and lower 3 bits of DLC66.

なお、通信システム1においては、ID62の11ビットの領域だけを用いてデータ種別を表現するデータ(以下、データ群Aに属する種別のデータ)と、ID62およびDLC66の14ビットの領域を用いてデータの種別を表現するデータ(以下、データ群Bに属する種別のデータとをそれぞれ生成できる。   In the communication system 1, data expressing the data type using only the 11-bit area of ID 62 (hereinafter, data of the type belonging to the data group A) and data using the 14-bit area of ID 62 and DLC 66 are used. Can be generated (hereinafter, data of a type belonging to the data group B).

フレーム生成部23は、データ種別がデータ群Aに属する場合には、送信する実データのサイズに応じて任意のDLC66の値を設定する。つまり、データフィールド68のデータ長を0−8に設定できる。一方、フレーム生成部23は、データ種別がデータ群Bに属する場合には、送信する実データのサイズに拘わらず、DLC66の値を8に設定する。そして、データ種別を示すデータの上位11ビットをID62の領域に格納し、下位3ビットをDLC66の下位3ビットに格納する。   When the data type belongs to the data group A, the frame generation unit 23 sets an arbitrary DLC 66 value according to the size of the actual data to be transmitted. That is, the data length of the data field 68 can be set to 0-8. On the other hand, when the data type belongs to the data group B, the frame generation unit 23 sets the value of the DLC 66 to 8 regardless of the size of the actual data to be transmitted. Then, the upper 11 bits of the data indicating the data type are stored in the area of ID 62, and the lower 3 bits are stored in the lower 3 bits of DLC 66.

特に、DLC66の領域における下位3ビットは、相手先を特定するために領域として用いることができる。例えば、図3に示すように、ID62の領域においては、「0x1F1」という同一のデータの種別を示す情報を格納し、DLC66の下位3ビットに、宛先のECUに応じて異なる値を格納する。具体的には、宛先がECU[B−1]35であれば、「0x1」を格納し、宛先がECU[B−2]36であれば、「0x2」を格納し、宛先がECU[B−3]38であれば、「0x3」を格納する。   In particular, the lower 3 bits in the DLC 66 area can be used as an area to specify the destination. For example, as shown in FIG. 3, in the area of ID 62, information indicating the same data type “0x1F1” is stored, and different values are stored in the lower 3 bits of DLC 66 according to the destination ECU. Specifically, if the destination is ECU [B-1] 35, “0x1” is stored. If the destination is ECU [B-2] 36, “0x2” is stored, and the destination is ECU [B −3] If “38”, “0x3” is stored.

従来構成では、図4に示すように、ID62の領域においてデータの種別および宛先を含むようにする必要があったため、宛先が3か所であれば、ID62の領域において例えば「0x1F1」「0x1F2」「0x1F3」の3つのIDが必要であった。しかし、本実施形態の通信システム1では、DLC66の下位3ビットにて宛先を表現しているので、ID62の領域においては1つのIDだけを必要とすることができる。このようにしてフレーム生成部23にてデータフレーム60が生成される。   In the conventional configuration, as shown in FIG. 4, since it is necessary to include the data type and the destination in the area of ID62, if there are three destinations, for example, “0x1F1” “0x1F2” in the area of ID62 Three IDs of “0x1F3” were required. However, in the communication system 1 of this embodiment, since the destination is expressed by the lower 3 bits of the DLC 66, only one ID can be required in the area of ID62. In this way, the data frame 60 is generated by the frame generation unit 23.

送信部24は、フレーム生成部23によって生成されたデータフレーム60を通信線上に送信する。また、受信部26は、データフレーム60を受信し、データ認識部27に送る。なお、送信部24および受信部26は周知の構成とすることができる。   The transmission unit 24 transmits the data frame 60 generated by the frame generation unit 23 on the communication line. In addition, the receiving unit 26 receives the data frame 60 and sends it to the data recognition unit 27. The transmission unit 24 and the reception unit 26 can have a known configuration.

データ認識部27は、受信部26にて受信されたデータフレーム60からID62およびDLC66を抽出し、ID62およびDLC66に含まれるデータに基づいてデータの種別を認識する。受信したデータのDLC66に無効領域を有する際、つまり、DLC66の最上位ビットが1であるときに、ID62およびDLC66の下位3ビットに含まれるデータに基づいてデータの種別を認識する。   The data recognizing unit 27 extracts the ID 62 and the DLC 66 from the data frame 60 received by the receiving unit 26, and recognizes the type of data based on the data included in the ID 62 and the DLC 66. When the DLC 66 of the received data has an invalid area, that is, when the most significant bit of the DLC 66 is 1, the data type is recognized based on the data included in the ID 62 and the lower 3 bits of the DLC 66.

ここで、データ認識部27において実行される受信処理について図5に示すフローチャートを用いて説明する。受信処理は、データフレーム60に含まれるデータ種別を認識する際の処理である。受信処理は、受信部26からデータが送られる度に実行される。   Here, the reception process executed in the data recognition unit 27 will be described with reference to the flowchart shown in FIG. The reception process is a process for recognizing the data type included in the data frame 60. The reception process is executed every time data is sent from the reception unit 26.

受信処理では、図5に示すように、S110にて、DLC66領域の値が9以上であるか否かを判定する。DLC66領域の値が8以下であれば、S120にて、通常のCANIDとしてデータ種別を認識し、認識した値を通知する。通知の対象は、例えば、データの種別および実データを認識する機能を有するECU20内の部位である。   In the reception process, as shown in FIG. 5, it is determined in S110 whether the value of the DLC66 area is 9 or more. If the value of the DLC 66 area is 8 or less, in S120, the data type is recognized as a normal CAN ID, and the recognized value is notified. The notification target is, for example, a part in the ECU 20 having a function of recognizing the type of data and the actual data.

なお、通常のCANIDとしてデータ種別を認識する処理とは、DLC66の領域を含まず、ID62の11ビットだけでデータ種別を認識する周知のCANにおいて実施される処理を表す。   Note that the process of recognizing the data type as a normal CAN ID represents a process executed in a known CAN that does not include the DLC 66 area and recognizes the data type with only 11 bits of ID62.

また、S110にてDLC66領域の値が9以上であれば、S130にて、DLC66領域の下位3ビットを抽出する。ここでは、この下位3ビットをCANIDβとする。
続いて、S140にてID62領域に含まれる値をCANIDαとして、このCANIDαとCANIDβとを結合し、得られた値をCANIDγとする。そして、S150にてCANIDγをデータ種別を表す値として通知する。
If the value of the DLC66 area is 9 or more at S110, the lower 3 bits of the DLC66 area are extracted at S130. Here, the lower 3 bits are CANIDβ.
Subsequently, in S140, the value included in the ID62 area is set as CANIDα, and CANIDα and CANIDβ are combined, and the obtained value is set as CANIDγ. In S150, CANIDγ is notified as a value representing the data type.

このような処理が終了すると受信処理を終了する。なお、CANIDγは、データ量が11ビットから14ビットに変更されただけであり、データ型式が変更されたものでないため、本処理においては一般的なCANソフトを修正することなく利用できる。   When such processing ends, the reception processing ends. Note that CANIDγ has only the data amount changed from 11 bits to 14 bits, and the data type has not been changed. Therefore, in this processing, general CAN software can be used without modification.

[1−3.効果]
以上詳述した第1実施形態によれば、以下の効果が得られる。
(1a)上記の通信システム1のECU20,30,40において、フレーム生成部23は、データの種別を表すID62、およびデータの長さを示すDLC66、が含まれるデータフレーム60であって、DLC66の少なくとも一部をデータ種別を表す領域の一部としたデータフレーム60を生成する。そして、送信部24は、フレーム生成部23によって生成されたデータフレーム60を通信線上に送信する。
[1-3. effect]
According to the first embodiment described in detail above, the following effects can be obtained.
(1a) In the ECUs 20, 30, and 40 of the communication system 1, the frame generation unit 23 is a data frame 60 that includes an ID 62 that indicates the type of data and a DLC 66 that indicates the length of the data. A data frame 60 is generated in which at least a part is a part of an area representing the data type. Then, the transmission unit 24 transmits the data frame 60 generated by the frame generation unit 23 on the communication line.

また、上記の通信システム1のECU20,30,40において、受信部26は、ID62と、DLC66とが含まれるデータフレーム60であって、DLC66の少なくとも一部をデータ種別を表す領域の一部としたデータフレーム60を受信する。また、データ認識部27は、受信したデータフレーム60からID62およびDLC66を抽出し、ID62およびDLC66に含まれるデータに基づいてデータの種別を認識する。   In the ECUs 20, 30, and 40 of the communication system 1, the receiving unit 26 is a data frame 60 including an ID 62 and a DLC 66, and at least a part of the DLC 66 is a part of an area representing a data type. The received data frame 60 is received. Further, the data recognition unit 27 extracts the ID 62 and the DLC 66 from the received data frame 60 and recognizes the data type based on the data included in the ID 62 and the DLC 66.

このような通信システム1によれば、DLC66の少なくとも一部をデータ種別を表す領域の一部として利用するので、データの伝送効率の低下を抑制しつつ、多くのID62を確保することができる。また、データフィールド68の一部をデータ種別を表す領域とする構成と比較してもデータの伝送効率の低下を抑制できる。   According to such a communication system 1, since at least a part of the DLC 66 is used as a part of the area representing the data type, a large number of IDs 62 can be secured while suppressing a decrease in data transmission efficiency. Further, even when compared with a configuration in which a part of the data field 68 is an area representing a data type, it is possible to suppress a decrease in data transmission efficiency.

また、このような通信システム1によれば、他のECUから送信されたデータフレーム60において、DLC66内にデータ種別を示すデータが含まれている場合であっても良好に認識することができる。   Further, according to the communication system 1 as described above, even if the data frame 60 transmitted from another ECU includes data indicating the data type in the DLC 66, it can be recognized well.

(1b)上記の通信システム1において、DLC66は、データ長が特定の値である際に、データ値が無効となる無効領域を有するよう設定されている。そして、フレーム生成部23は、DLC66に無効領域を有する際に、DLC66の少なくとも一部をID62の一部としたデータを生成する。また、データ認識部27は、受信したデータのDLC66に無効領域を有する際に、ID62および無効領域に含まれるデータに基づいてデータの種別を認識する。なお、無効となるとは、データを読み出す処理の際に、特定のビットにおけるビット値が意味を持たないことを示す。また、データ値とは1または複数のビット値を示す。   (1b) In the communication system 1 described above, the DLC 66 is set to have an invalid area where the data value becomes invalid when the data length is a specific value. Then, when the DLC 66 has an invalid area, the frame generation unit 23 generates data in which at least a part of the DLC 66 is a part of the ID 62. In addition, when the data recognition unit 27 has an invalid area in the DLC 66 of the received data, the data recognition unit 27 recognizes the type of data based on the data included in the ID 62 and the invalid area. Note that “invalid” indicates that a bit value in a specific bit has no meaning in the process of reading data. The data value indicates one or a plurality of bit values.

このような通信システム1によれば、DLC66のうちの無効領域をデータ種別を表す領域の一部として用いるので、DLC66によるデータ長の識別に影響を与えることなくデータ種別を表す領域を拡張することができる。   According to such a communication system 1, since the invalid area in the DLC 66 is used as a part of the area representing the data type, the area representing the data type can be expanded without affecting the identification of the data length by the DLC 66. Can do.

(1c)上記の通信システム1においては、CANプロトコルにより通信を行い、DLC66として、4ビットのDLCの領域が設定されている。
このような通信システム1によれば、CANにおけるDLCの領域を用いるので、確実にデータの伝送効率の低下を抑制しつつ、多くのIDを確保することができる。
(1c) In the communication system 1 described above, communication is performed using the CAN protocol, and a 4-bit DLC area is set as the DLC 66.
According to the communication system 1 as described above, since the DLC area in the CAN is used, it is possible to secure a large number of IDs while reliably suppressing a decrease in data transmission efficiency.

(1d)上記の通信システム1においては、DLCの領域における下位3ビットがデータ種別を表す領域の一部として設定されている。
このような通信システム1によれば、データ長が8バイトである際に無効となるDLCの下位3ビットをID62として用いるので、DLCの下位1ビットや2ビットを利用する構成と比較して、より多くのデータ種別を表す領域を確保することができる。
(1d) In the communication system 1 described above, the lower 3 bits in the DLC area are set as part of the area representing the data type.
According to such a communication system 1, since the lower 3 bits of the DLC, which is invalid when the data length is 8 bytes, is used as the ID 62, compared with the configuration using the lower 1 bit or 2 bits of the DLC, Areas representing more data types can be secured.

(1e)上記の通信システム1においては、DLCの領域における下位3ビットは、相手先を特定するために領域としても用いられる。
このような通信システム1によれば、データ種別を表す領域に相手先を特定する情報を含む場合においても、より多くの相手先を対応付けることができる。
(1e) In the communication system 1 described above, the lower 3 bits in the DLC area are also used as an area for specifying the destination.
According to such a communication system 1, it is possible to associate more destinations even when information specifying the destination is included in the area representing the data type.

特に、テスタ10等の外部装置を接続可能な構成など、より多くのデータ種別と宛先との組み合わせを利用したい場合に特に有効である。例えば、上記実施形態において、ECU30がCANの通信線5を介してあるデータを受信し、かつこのデータをLINの通信線6に中継する場合、メッセージとして特定のCANIDを1つ付与する。ECU30がLINバスに中継するLINフレームのCANIDには上記のようにDLC領域の下位3ビットに割り付けて送信する構成とすることで、ID62の領域の枯渇を抑制することができる。   This is particularly effective when it is desired to use more combinations of data types and destinations, such as a configuration in which an external device such as the tester 10 can be connected. For example, in the above embodiment, when the ECU 30 receives certain data via the CAN communication line 5 and relays this data to the LIN communication line 6, one specific CANID is assigned as a message. By assigning the CANID of the LIN frame relayed by the ECU 30 to the LIN bus to the lower 3 bits of the DLC area and transmitting the CANID, the exhaustion of the ID62 area can be suppressed.

また、テスタ10を用いた診断通信では、使用できるCANIDが7xx番台と規格上決められている。このため、昨今のECU数の増加により診断通信に用いるCANIDの枯渇がより現実的である。診断通信ではCANIDを機能アドレスとし、同アドレスを受診対象とする複数のECUが機能アドレスを受診した際に、同時にアクションを取る仕様がある。この仕様においては多くの場合、全ECUが反応する全ECU指定用IDと、1つのIDに対し予め決められた複数のECUが反応するグループ指定用IDと、というように、機能アドレスとしても複数のCANIDが割り当てられて運用されている。   In the diagnostic communication using the tester 10, the CANID that can be used is determined in the standard as the 7xx series. For this reason, depletion of CANID used for diagnostic communication is more realistic due to the recent increase in the number of ECUs. In the diagnostic communication, there is a specification in which CANID is used as a functional address, and actions are taken simultaneously when a plurality of ECUs having the same address as medical examination targets receive functional addresses. In many cases, in this specification, there are a plurality of function addresses such as all ECU designation IDs to which all ECUs react, and group designation IDs to which a plurality of predetermined ECUs react to one ID. Are allocated and operated.

このような場合でも上記実施形態の構成を用いればDLCの下位3ビットでグループ(全ECU、特定のグループ)を指定し、機能アドレスとしての意味付けはCANID1つの割り当てで済ませることができる。   Even in such a case, if the configuration of the above-described embodiment is used, a group (all ECUs, a specific group) can be specified by the lower 3 bits of the DLC, and the assignment as a function address can be done by one CANID.

[2.他の実施形態]
以上、本開示を実施するための形態について説明したが、本開示は上述の実施形態に限定されることなく、種々変形して実施することができる。
[2. Other Embodiments]
As mentioned above, although the form for implementing this indication was demonstrated, this indication is not limited to the above-mentioned embodiment, and can carry out various modifications.

(2a)上記実施形態では、DLC66の一部をデータ種別を表す領域の一部とする場合について説明した。すなわち、DLC66のうちの予め定められた1または複数のビット値が予め定められた値である際に、DLC66のうちの他のビットをデータ種別を表す領域の一部として利用した。しかし、DLC66の全部をデータ種別を表す領域の一部としてもよい。このようにする場合には、予め固定化されたデータ長を利用すればよい。   (2a) In the above embodiment, a case has been described in which a part of the DLC 66 is a part of the area representing the data type. That is, when one or more predetermined bit values in the DLC 66 are predetermined values, the other bits in the DLC 66 are used as a part of the area indicating the data type. However, the entire DLC 66 may be part of the area representing the data type. In this case, a data length fixed in advance may be used.

(2b)上記実施形態における1つの構成要素が有する機能を複数の構成要素として分散させたり、複数の構成要素が有する機能を1つの構成要素に統合させたりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加または置換してもよい。なお、特許請求の範囲に記載した文言のみによって特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。   (2b) The functions of one constituent element in the above embodiment may be distributed as a plurality of constituent elements, or the functions of a plurality of constituent elements may be integrated into one constituent element. Moreover, you may abbreviate | omit a part of structure of the said embodiment. Further, at least a part of the configuration of the above embodiment may be added to or replaced with the configuration of the other embodiment. In addition, all the aspects included in the technical idea specified only by the wording described in the claims are embodiments of the present disclosure.

(2c)上述した通信システム1の他、当該通信システム1の構成要素となる装置、当該通信システム1としてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実態的記録媒体、通信方法など、種々の形態で本開示を実現することもできる。   (2c) In addition to the communication system 1 described above, non-transitional actual recording such as a device that is a component of the communication system 1, a program for causing a computer to function as the communication system 1, and a semiconductor memory that records the program The present disclosure can also be realized in various forms such as a medium and a communication method.

1…通信システム、5,6…通信線、10…テスタ、20,30,35,36,37,40…ECU、21…CPU、22…メモリ、23…フレーム生成部、24…送信部、26…受信部、27…データ認識部、60…データフレーム、64…コントロールフィールド、68…データフィールド。   DESCRIPTION OF SYMBOLS 1 ... Communication system 5,6 ... Communication line, 10 ... Tester, 20, 30, 35, 36, 37, 40 ... ECU, 21 ... CPU, 22 ... Memory, 23 ... Frame generation part, 24 ... Transmission part, 26 ... receiving part, 27 ... data recognition part, 60 ... data frame, 64 ... control field, 68 ... data field.

Claims (7)

通信線を介してフレーム(60)の送受信を行う通信装置(20,30,40)であって、
データの種別を表す種別領域(62)、およびデータの長さを示すデータ長領域(66)、が含まれるフレームであって、前記データ長領域の少なくとも一部を前記種別領域の一部としたフレームを生成するフレーム生成部(23)と、
前記フレーム生成部によって生成されたフレームを前記通信線上に送信する送信部(24)と、
を備えた通信装置。
A communication device (20, 30, 40) for transmitting and receiving a frame (60) via a communication line,
A frame including a type area (62) indicating the type of data and a data length area (66) indicating the length of the data, wherein at least a part of the data length area is a part of the type area A frame generation unit (23) for generating a frame;
A transmission unit (24) for transmitting the frame generated by the frame generation unit on the communication line;
A communication device comprising:
請求項1に記載の通信装置であって、
他の通信装置から送信されたフレームを受信する受信部(26)と、
受信したフレームから前記種別領域および前記データ長領域を抽出し、前記種別領域および前記データ長領域に含まれるデータに基づいてデータの種別を認識するデータ認識部(27)と、
をさらに備えた通信装置。
The communication device according to claim 1,
A receiving unit (26) for receiving a frame transmitted from another communication device;
A data recognition unit (27) that extracts the type area and the data length area from the received frame and recognizes the type of data based on data included in the type area and the data length area;
A communication device further comprising:
請求項2に記載の通信装置であって、
前記データ長領域は、データ長が特定の値である際に、データ値が無効となる無効領域を有するよう設定されており、
前記フレーム生成部は、前記データ長領域に前記無効領域を有する際に、前記データ長領域の少なくとも一部を前記種別領域の一部としたデータを生成し、
前記データ認識部は、受信したデータのデータ長領域に前記無効領域を有する際に、前記種別領域および前記無効領域に含まれるデータに基づいてデータの種別を認識する
通信装置。
The communication device according to claim 2,
The data length area is set to have an invalid area where the data value is invalid when the data length is a specific value,
The frame generation unit generates data having at least a part of the data length area as a part of the type area when the invalid area is included in the data length area,
The data recognition unit is a communication device that recognizes the type of data based on the type area and the data included in the invalid area when the invalid area is included in the data length area of the received data.
請求項1〜請求項3の何れか1項に記載の通信装置であって、
当該通信装置はCAN(Controller Area Network:登録商標)プロトコルにより通信を行い、
前記データ長領域として、4ビットのDLC(Data Length Code)の領域が設定されている
通信装置。
The communication device according to any one of claims 1 to 3,
The communication device communicates with a CAN (Controller Area Network) protocol,
A communication device in which a 4-bit DLC (Data Length Code) area is set as the data length area.
請求項4に記載の通信装置であって、
前記DLCの領域における下位3ビットが種別領域の一部として設定されている
通信装置。
The communication device according to claim 4,
A communication apparatus in which the lower 3 bits in the DLC area are set as part of the type area.
請求項4または請求項5に記載の通信装置であって、
前記DLCの領域における下位3ビットは、相手先を特定するために領域として用いられる
通信装置。
The communication device according to claim 4 or 5, wherein
The lower 3 bits in the DLC area are used as an area for specifying a partner.
データの種別を表す種別領域と、データの長さを示すデータ長領域とが含まれるフレームであって、前記データ長領域の少なくとも一部を前記種別領域の一部としたフレームを受信する受信部(26)と、
受信したフレームから前記種別領域および前記データ長領域を抽出し、前記種別領域および前記データ長領域に含まれるデータに基づいてデータの種別を認識するデータ認識部(27)と、
を備えた通信装置。
A receiving unit that receives a frame that includes a type area that indicates a type of data and a data length area that indicates the length of data, and at least a part of the data length area is part of the type area (26) and
A data recognition unit (27) for extracting the type area and the data length area from the received frame and recognizing the type of data based on data included in the type area and the data length area;
A communication device comprising:
JP2015251643A 2015-12-24 2015-12-24 Communication device Pending JP2017118317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015251643A JP2017118317A (en) 2015-12-24 2015-12-24 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015251643A JP2017118317A (en) 2015-12-24 2015-12-24 Communication device

Publications (1)

Publication Number Publication Date
JP2017118317A true JP2017118317A (en) 2017-06-29

Family

ID=59232145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015251643A Pending JP2017118317A (en) 2015-12-24 2015-12-24 Communication device

Country Status (1)

Country Link
JP (1) JP2017118317A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070091932A1 (en) * 2005-10-17 2007-04-26 Lg Electronics Inc. Method and apparatus for processing data in controller area network
JP2014204287A (en) * 2013-04-04 2014-10-27 トヨタ自動車株式会社 Communication system, communication node and communication method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070091932A1 (en) * 2005-10-17 2007-04-26 Lg Electronics Inc. Method and apparatus for processing data in controller area network
JP2014204287A (en) * 2013-04-04 2014-10-27 トヨタ自動車株式会社 Communication system, communication node and communication method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佐藤 健哉、他2名: "CAN(Controller Area Network)を利用した論理的通信モデル実現のためのプロト", 情報処理学会論文誌 第46巻 第8号, vol. 第46巻 第8号, JPN6019006091, JP, pages 2142 - 2151 *

Similar Documents

Publication Publication Date Title
JP5454517B2 (en) Gateway device
US11529914B2 (en) Gateway device, vehicle network system, and transfer method
JP2017212726A5 (en)
JP6729426B2 (en) Relay device
JP2016201740A (en) On-vehicle communication system, repeating device, and node
US9800456B2 (en) On-board network system
JP2016111646A (en) Remote collection system for vehicle data
JP6352325B2 (en) Communications system
DE102017217636A1 (en) Method for transmitting and receiving data in a vehicle network and device for this
JP2015080126A (en) Communication system and communication method
US20160014105A1 (en) Out-of-vehicle device interface apparatus and method for protecting in-vehicle network
JP6281917B2 (en) Method and apparatus for transmitting a frame between two CAN buses
US20170267193A1 (en) Communication apparatus and communication system
EP3125471B1 (en) Communication device, integrated vehicle management system, and method for updating routing table
WO2019004173A1 (en) In-vehicle communication system, in-vehicle relay device, and relay program
US8909418B2 (en) Networking of control devices of a motor vehicle
JP2017118407A (en) Communication system
WO2021205819A1 (en) Vehicle-mounted relay device, information processing method, and program
JP6540550B2 (en) Relay apparatus and communication system
JP4839140B2 (en) Relay connection unit
JP2017118317A (en) Communication device
JP5900198B2 (en) COMMUNICATION SYSTEM, RELAY DEVICE, AND COMMUNICATION DEVICE
JP2017163344A (en) Communication system
US11923999B2 (en) Management apparatus, method for allocating identification information of onboard apparatus, onboard system, and data structure
JP2019022174A (en) Communication message conversion device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180406

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190226

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20190903