WO2020031835A1 - In-vehicle communication system, in-vehicle relay device, communication program, and communication method - Google Patents

In-vehicle communication system, in-vehicle relay device, communication program, and communication method Download PDF

Info

Publication number
WO2020031835A1
WO2020031835A1 PCT/JP2019/030191 JP2019030191W WO2020031835A1 WO 2020031835 A1 WO2020031835 A1 WO 2020031835A1 JP 2019030191 W JP2019030191 W JP 2019030191W WO 2020031835 A1 WO2020031835 A1 WO 2020031835A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
vehicle
message
relay device
communication lines
Prior art date
Application number
PCT/JP2019/030191
Other languages
French (fr)
Japanese (ja)
Inventor
剛史 紺谷
勝也 生田
佑樹 佐野
梶田 治
Original Assignee
株式会社オートネットワーク技術研究所
住友電装株式会社
住友電気工業株式会社
トヨタ自動車株式会社
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 株式会社オートネットワーク技術研究所, 住友電装株式会社, 住友電気工業株式会社, トヨタ自動車株式会社 filed Critical 株式会社オートネットワーク技術研究所
Publication of WO2020031835A1 publication Critical patent/WO2020031835A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present disclosure relates to a vehicle-mounted communication system that relays messages transmitted and received by a plurality of vehicle-mounted communication devices mounted on a vehicle, a vehicle-mounted relay device, a communication program, and a communication method.
  • ECUs Electronic Control Units
  • Each ECU communicates with other ECUs to exchange information, and performs each process. Therefore, as the number of ECUs in the vehicle increases, the amount of communication lines in the vehicle provided for the ECUs to communicate increases, increasing the weight of the vehicle and reducing the space for arranging the communication lines in the vehicle. And so on.
  • Patent Literature 1 a vehicle control in which the inside of a vehicle is divided into a plurality of regions, a plurality of functional ECUs are connected to a relay ECU via a first network for each region, and a plurality of relay ECUs are connected via a second network. The system has been described.
  • the present disclosure has been made in view of such circumstances, and an object of the present disclosure is to provide an in-vehicle communication system, an in-vehicle relay device, and a communication program that are expected to facilitate message transmission and reception between a plurality of in-vehicle relay devices. And a communication method.
  • the in-vehicle communication system has a plurality of connection units to which communication lines are respectively connected, and two in-vehicle relay devices that relay transmission and reception of messages via the plurality of communication lines connected to the connection units. And the two in-vehicle relay devices are connected via two or more communication lines, and the in-vehicle relay device transmits a message to be transmitted to another in-vehicle relay device through one or more communication lines from the two or more communication lines.
  • a message transmission unit that selects and transmits communication lines in a predetermined order;
  • the in-vehicle relay device is an in-vehicle relay device that has a plurality of connection units to which communication lines are respectively connected, and relays transmission and reception of a message via a plurality of communication lines connected to the connection unit. Connected to another in-vehicle relay device via two or more communication lines, and selects a message to be transmitted to the other in-vehicle relay device by selecting one communication line from the two or more communication lines in a predetermined order. And a message transmission unit for transmitting the message.
  • the communication program includes a plurality of connection units to which communication lines are respectively connected, and the other vehicle-mounted relay device connected to another vehicle-mounted relay device via two or more communication lines.
  • a message to be transmitted to the relay device is selected from one or more of the two or more communication lines in a predetermined order, and a process of transmitting the message to the other in-vehicle relay device via the selected communication line is performed.
  • the communication method includes connecting two in-vehicle relay devices each having a plurality of connection portions to which communication lines are respectively connected via two or more communication lines, wherein the in-vehicle relay device is connected to another in-vehicle relay device.
  • a message to be transmitted to the device is selected from one or more of the two or more communication lines in a predetermined order, and the message is transmitted to the other in-vehicle relay device via the selected communication line.
  • the present application can be realized not only as an in-vehicle relay device having such a characteristic processing unit, but also as a communication method having such characteristic processing as a step, or causing a computer to execute the step. As a communication program. Further, the present invention can be realized as a semiconductor integrated circuit that realizes part or all of the vehicle-mounted relay device, or as another device or system including the vehicle-mounted relay device.
  • FIG. 2 is a block diagram illustrating a configuration of a vehicle-mounted communication system according to Embodiment 1.
  • FIG. 3 is a block diagram illustrating a configuration of a GW according to the present embodiment. It is a flowchart which shows the procedure of the message transmission to the other GW which the GW concerning this Embodiment performs. It is a block diagram which shows the structure of the vehicle-mounted communication system which concerns on a modification.
  • FIG. 9 is a block diagram showing a configuration of a vehicle-mounted communication system according to a second embodiment.
  • FIG. 13 is a block diagram showing a configuration of a vehicle-mounted communication system according to a third embodiment.
  • the on-vehicle communication system has a plurality of connection units to which communication lines are respectively connected, and relays messages transmitted and received via the plurality of communication lines connected to the connection units.
  • the two in-vehicle relay devices are connected via two or more communication lines, and the in-vehicle relay device transmits a message to be transmitted to another in-vehicle relay device to the two or more communication lines.
  • a message transmission unit for selecting and transmitting one communication line in a predetermined order.
  • a plurality of communication lines to which one or more in-vehicle communication devices are connected are connected to the in-vehicle relay device, and the in-vehicle relay device relays transmission and reception of messages between the plurality of communication lines.
  • Two on-vehicle relay devices are mounted on the vehicle, and the two on-vehicle relay devices are connected via two or more communication lines.
  • each in-vehicle relay device selects one communication line in a predetermined order from two or more communication lines, and transmits a message to another in-vehicle relay device via the selected communication line. Send to relay device.
  • the amount of communication lines provided in the vehicle is reduced as compared with a configuration in which all the in-vehicle communication devices are connected to one in-vehicle relay device.
  • the communication capacity between two in-vehicle relay devices that are likely to be a bottleneck can be increased, and the communication can be smoothly performed using two or more communication lines evenly.
  • by increasing the communication capacity between the in-vehicle relay devices it is possible to reduce the communication speed on each communication line, thereby reducing the amount of noise caused by communication.
  • the two in-vehicle relay devices are connected via two communication lines, and the message transmission unit alternately selects one of the two communication lines to transmit a message. Is preferred.
  • two in-vehicle relay devices are connected via two communication lines.
  • Each in-vehicle relay device transmits a message to another in-vehicle relay device using the two communication lines alternately.
  • the communication capacity can be doubled as compared with a configuration in which two in-vehicle relay devices are connected by one communication line, and communication can be smoothly performed using the two communication lines equally. it can.
  • the two in-vehicle relay devices include one or more communication lines used for transmitting a message from one in-vehicle relay device to the other in-vehicle relay device, and two or more communication lines from the other in-vehicle relay device to one in-vehicle relay device.
  • the message transmission unit is connected via one or more communication lines used for message transmission, and the message transmission unit is one communication line from one or more communication lines that can be used for message transmission to another vehicle-mounted relay device. It is preferable to select and send the message.
  • two in-vehicle relay devices are connected via a plurality of communication lines.
  • the plurality of communication lines include one or more communication lines used for transmitting a message from one vehicle-mounted relay device to the other vehicle-mounted relay device, and one or more communication lines used for transmitting a message from the other vehicle-mounted relay device to one vehicle-mounted relay device.
  • Each in-vehicle relay device selects one communication line from one or a plurality of communication lines that can be used for transmission and transmits a message to another in-vehicle relay device. Thereby, a collision of message transmission does not occur in a plurality of communication lines connecting the two vehicle-mounted relay devices, so that message transmission can be performed smoothly.
  • the in-vehicle communication system has a plurality of connection portions to which communication lines are respectively connected, and relays transmission and reception of messages via the plurality of communication lines connected to the connection portions.
  • Two relay devices are provided, and the two on-vehicle relay devices are provided with a communication line used for transmitting a message from one on-vehicle relay device to the other on-vehicle relay device, and It is connected via a communication line used for message transmission.
  • two in-vehicle relay devices are connected via two communication lines.
  • the two communication lines are a communication line used for transmitting a message from one vehicle-mounted relay device to the other vehicle-mounted relay device, and a communication line used for transmitting a message from the other vehicle-mounted relay device to one vehicle-mounted relay device.
  • Each vehicle-mounted relay device transmits a message to another vehicle-mounted relay device via one communication line, and receives a message from another vehicle-mounted relay device via the other communication line.
  • the two communication lines connecting the two vehicle-mounted relay devices have a fixed message transmission direction, so that no message transmission collision occurs and the message transmission can be performed smoothly. it can.
  • the in-vehicle relay device has a plurality of connection portions to which communication lines are respectively connected, and relays transmission and reception of messages via the plurality of communication lines connected to the connection portions. And a message to be transmitted to the other in-vehicle relay device connected to another in-vehicle relay device through two or more communication lines, and a message to be transmitted to the other in-vehicle relay device is transmitted from the two or more communication lines to one communication line in a predetermined manner.
  • a message transmitting unit for selecting and transmitting in order.
  • the communication capacity between the two in-vehicle relay devices can be increased, and the communication can be smoothly performed using the two or more communication lines equally. it can.
  • the communication program includes a plurality of connection units to which communication lines are respectively connected, and the vehicle-mounted relay device connected to another vehicle-mounted relay device via two or more communication lines.
  • a message to be transmitted to another in-vehicle relay device is selected from one or more of the two or more communication lines in a predetermined order, and the message is transmitted to the other in-vehicle relay device via the selected communication line. Perform processing.
  • the communication capacity between the two in-vehicle relay devices can be increased, and the communication can be smoothly performed using the two or more communication lines equally. it can.
  • two on-vehicle relay devices each having a plurality of connection portions to which communication lines are connected are connected via two or more communication lines, and the on-vehicle relay device is connected to another on-board relay device.
  • a message to be transmitted to the on-vehicle relay device is selected from one or more of the two or more communication lines in a predetermined order, and the message is transmitted to the other on-vehicle relay device via the selected communication line.
  • the communication capacity between the two in-vehicle relay devices can be increased, and the communication can be smoothly performed using the two or more communication lines equally. it can.
  • FIG. 1 is a block diagram showing a configuration of the in-vehicle communication system according to the first embodiment.
  • the in-vehicle communication system 1 according to the first embodiment includes a vehicle 100 including a plurality of ECUs 3 and a plurality of GWs (Gate Ways) 10.
  • the plurality of ECUs 3 and the GW 10 transmit and receive messages via the communication lines 5 and 6. System.
  • two GWs 10 are mounted on the vehicle 100, two GWs 10 are connected via two communication lines 6, three communication lines 5 are connected to each GW 10, and three GWs are connected to each communication line.
  • the configuration of the vehicle-mounted communication system 1 to which the ECU 3 is connected is shown.
  • a GW 10a when it is necessary to distinguish between the two GWs 10, one is designated as a GW 10a and the other is designated as a GW 10b as shown in FIG. Similarly, one of the two communication lines 6 is identified as a communication line 6a and the other is identified as a communication line 6b, if necessary.
  • the number of ECUs 3, the number of GCWs 10, the number of communication lines 5 and 6, the connection mode of the devices, the network configuration, and the like included in the in-vehicle communication system 1 are not limited to those illustrated.
  • the ECU 3 mounted on the vehicle 100 includes, for example, an ECU that controls the operation of an engine of the vehicle 100, an ECU that controls locking / unlocking of a door, an ECU that controls turning on / off of a light, and an ECU that controls the operation of an airbag. And various ECUs such as an ECU that controls the operation of an ABS (Antilock Brake System).
  • Each ECU 3 is connected to one of the communication lines 5 arranged in the vehicle 100, and can transmit and receive messages to and from another ECU 3 via the communication line 5 and the GW 10.
  • Each GW 10 is connected to a plurality of communication lines 5, and can transmit and receive messages to and from a plurality of ECUs 3 via the communication lines 5.
  • the GW 10 that has received the message transmitted by the ECU 3 determines whether relaying is necessary based on the ID attached to the received message, and transmits the message that requires relaying from the communication line 5 different from the receiving source. For this reason, the GW 10 has a transmission destination map that stores the correspondence between the ID assigned to the message and the communication line 5 to which the message is transmitted.
  • a message can be transmitted from the ECU 3 connected to one GW 10a to the ECU 3 connected to the other GW 10b.
  • the GW 10a that has received the message from the ECU 3 determines that the message should be relayed to the other GW 10b based on the ID attached to this message, and outputs this message to the GW 10b by outputting the message from the communication line 6.
  • the GW 10b that has received the message from the GW 10a via the communication line 6 determines which of the relay destination communication lines 5 is based on the ID attached to the received message, and transmits this message to the relay destination communication line. Send from 5.
  • two GWs 10 are connected via two communication lines 6.
  • the two communication lines 6 comply with the same communication standard, and in the present embodiment, messages are transmitted and received in accordance with the CAN (Controller Area Network) communication standard. In the present embodiment, it is assumed that the communication speed is the same regardless of which communication line 6 is used.
  • the GW 10 may be configured to transmit and receive messages according to a communication standard such as Ethernet (registered trademark) or FlexRay, and the communication speeds of the two communication lines 6 may be different.
  • the GW 10 When transmitting a message to another GW 10, the GW 10 selects one of the two communication lines 6. The GW 10 transmits a message to another GW 10 via the communication line 6 by outputting the message to the selected communication line 6.
  • the GW 10 alternately selects two communication lines 6 and transmits a message to another GW 10.
  • the GW 10a first transmits a message to the other GW 10b via one communication line 6a, transmits a message to the other GW 10b via the other communication line 6b, and then transmits the message to the other GW 10b.
  • the message is transmitted using the communication line 6a and the communication line 6b alternately, such as transmitting a message to another GW 10b via the line 6a.
  • the other GW 10b transmits a message to the GW 10a by alternately using the two communication lines 6a and 6b.
  • the two GWs 10 do not select the communication line 6 for transmitting the message in synchronization, but select the communication line 6 based on their respective judgments. For this reason, the message transmission by the two GWs 10 is performed simultaneously on the communication line 6, and a collision of message transmission may occur. In this case, arbitration processing of message transmission is performed in accordance with the CAN communication standard.
  • FIG. 2 is a block diagram showing a configuration of GW 10 according to the present embodiment. Since the two GWs 10 included in the in-vehicle communication system 1 according to the present embodiment have substantially the same configuration, FIG. 2 illustrates only one GW 10a in detail, and the other GW 10b illustrates the detailed configuration. Is omitted.
  • the GW 10 according to the present embodiment includes a processing unit (processor) 11, a storage unit (storage) 12, communication units (transceivers) 13, 14, connection units (connectors) 15, 16, a communication buffer 17, and the like. ing.
  • the processing unit 11 is configured using an arithmetic processing device such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit).
  • the processing unit 11 can perform various processes by reading and executing the program stored in the storage unit 12.
  • the processing unit 11 reads out and executes the communication program 12a stored in the storage unit 12 to perform a process of relaying a message between the communication lines 5 and a process of relaying a message from the two communication lines 6 to another GW 10.
  • a process of selecting a communication line 6 used for message transmission, a process of transmitting a message to another GW 10 via the selected communication line 6, and the like are performed.
  • the storage unit 12 is configured using a nonvolatile memory element such as a flash memory or an EEPROM (Electrically Erasable Programmable Read Only Memory).
  • the storage unit 12 stores various programs executed by the processing unit 11 and various data necessary for processing of the processing unit 11.
  • the storage unit 12 stores a communication program 12a executed by the processing unit 11 and a destination map 12b used when the processing unit 11 relays a message.
  • the communication program 12a may be written in the storage unit 12 at the stage of manufacturing the GW 10, for example, and the GW 10 may acquire a program distributed by a remote server device or the like by communication.
  • the program recorded on the recording medium 99 such as an optical disk may be read by the GW 10 and stored in the storage unit 12.
  • the program recorded on the recording medium 99 may be read by the writing device and written into the storage unit 12 of the GW 10. May be.
  • the communication program 12a may be provided in a form of distribution via a network, or may be provided in a form recorded on the recording medium 99.
  • connection portions 15 and 16 are used to detachably connect the communication lines 5 and 6, and are so-called connectors.
  • the connection portions 15 and 16 are configured to be suitable for the shapes and standards of the communication lines 5 and 6 to be connected.
  • FIG. 2 three connecting portions 15 for connecting the communication line 5 for performing communication with the ECU 3 and two connecting portions 16 for connecting the communication line 6 for performing communication with another GW 10 are shown. Are shown with different reference numerals.
  • the connection portions 15 and 16 are substantially the same. It may be.
  • the communication units 13 and 14 perform processing related to transmission and reception of messages via the communication lines 5 and 6 connected to the connection units 15 and 16.
  • the communication units 13 and 14 transmit and receive messages according to the CAN communication standard.
  • the communication units 13 and 14 can be configured using a communication IC such as a CAN transceiver.
  • the communication units 13 and 14 periodically convert the electrical signals on the communication lines 5 and 6 into digital data by periodically sampling and acquiring the potentials of the communication lines 5 and 6 connected to the connection units 15 and 16. This digital data is provided to the processing unit 11 as a received message.
  • the communication units 13 and 14 convert a message given as digital data from the processing unit 11 into an electric signal, and output the converted electric signal to communication lines 5 and 6 connected to the connection units 15 and 16, respectively.
  • FIG. 2 Three communication units 13 that communicate with the ECU 3 and two communication units 14 that communicate with another GW 10 are illustrated with different reference numerals. However, when the communication between the GW 10 and the ECU 3 and the communication between the two GWs 10 have the same communication standard, the communication units 13 and 14 may be substantially the same.
  • the communication buffer 17 is configured by using a data rewritable memory element such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory).
  • the communication buffer 17 temporarily stores a message received from the ECU 3 or another GW 10.
  • the processing unit 11 reads and executes the communication program 12a stored in the storage unit 12, so that the relay processing unit 11a, the selection processing unit 11b, the transmission processing unit 11c, and the like are processed by the processing unit.
  • 11 is realized as a software-like functional block.
  • the relay processing unit 11a performs a process of relaying the message from the ECU 3 received by the communication unit 13 to another ECU 3.
  • the relay processing unit 11a acquires the ID attached to the message received by the communication unit 13, refers to the destination map 12b of the storage unit 12, and determines the destination associated with the ID in the destination map 12b. Find out.
  • the relay processing unit 11a gives the message to the communication unit 13 of the transmission destination specified by the transmission destination map 12b, and causes the communication unit 13 to transmit the message to the communication line 5.
  • the relay processing unit 11a gives a message to be transmitted to the other GW 10 to the selection processing unit 11b.
  • the selection processing unit 11b When a message to be transmitted to another GW 10 is given from the relay processing unit 11a, the selection processing unit 11b performs a process of selecting one communication line 6 used for message transmission from the two communication lines 6. The selection processing unit 11b alternately selects one of the two communication lines 6 for transmission by switching the communication line 6 used for message transmission each time a transmission message is given from the relay processing unit 11a. The selection processing unit 11b provides the transmission processing unit 11c with information indicating the selected communication line 6 and a message to be transmitted.
  • the transmission processing unit 11c performs a process of transmitting a message to be transmitted to another GW 10 via the communication line 6 selected by the selection processing unit 11b.
  • the transmission processing unit 11c transmits a message to another GW 10 by giving the transmission message provided from the selection processing unit 11b to the communication unit 14 that performs message transmission / reception via the selected communication line 6.
  • the communication unit 14 transmits the message to another GW 10 by outputting the message given from the processing unit 11 to the communication line 6 connected to the connection unit 16 corresponding to the communication unit 14. At this time, if a collision with message transmission of another GW 10 occurs, processing such as arbitration and retransmission of the message is performed by the communication unit 14, and the transmission processing unit 11c performs processing such as arbitration and retransmission of the message. Not involved.
  • FIG. 3 is a flowchart showing a procedure of a message transmission process to another GW 10 performed by the GW 10 according to the present embodiment.
  • a selection flag indicating which of the two communication lines 6 has been selected is used in the processing. This flag is realized by using a storage area such as a register of the processing unit 11, for example. The value can be set.
  • the processing unit 11 of the GW 10 according to the present embodiment initializes the value of the selection flag to 0 (Step S1).
  • the selection processing unit 11b of the processing unit 11 determines whether there is a message to be transmitted to another GW 10 (Step S2). When there is no message to be transmitted to another GW 10 (S2: NO), the selection processing unit 11b waits until a message to be transmitted is given.
  • the selection processing unit 11b determines whether the value of the selection flag is 0 (Step S3). When the value of the selection flag is 0 (S3: YES), the selection processing unit 11b selects the communication line 6a as the communication line 6 for transmitting a message to another GW 10. In response to this selection, the transmission processing unit 11c transmits a message from the communication line 6a (Step S4). Next, the processing unit 11 sets the value of the selection flag to 1 (step S5), and returns the processing to step S2.
  • the selection processing unit 11b selects the communication line 6b as the communication line 6 for transmitting a message to another GW 10. .
  • the transmission processing unit 11c transmits a message from the communication line 6b (Step S6).
  • the processing unit 11 sets the value of the selection flag to 0 (step S7), and returns the processing to step S2.
  • two GWs 10 are connected via two communication lines 6. Each GW 10 transmits a message to another GW using the two communication lines 6 alternately.
  • the communication capacity between the GWs 10 can be doubled as compared with the configuration in which the two GWs 10 are connected by one communication line 6, and communication can be smoothly performed by using the two communication lines 6 equally. Can be done.
  • the in-vehicle communication system 1 includes two GWs 10 and the two GWs 10 are connected by the two communication lines 6, but the system configuration is not limited to this.
  • the in-vehicle communication system 1 may include three or more GWs 10. Further, as shown in the following modified example, two GWs 10 may be connected by three or more communication lines 6.
  • FIG. 4 is a block diagram illustrating a configuration of an in-vehicle communication system 101 according to a modification.
  • two GWs 10 are connected via three communication lines 6 (6a to 6c).
  • the GW 10 according to the modified example selects one communication line 6 from the three communication lines 6 in a predetermined order, and transmits a message to another GW 10 via the selected one communication line 6.
  • the GW 10 can be configured to select the communication line 6 in the order of the communication line 6a ⁇ the communication line 6b ⁇ the communication line 6c ⁇ the communication line 6a ⁇ .
  • the communication capacity between the GWs 10 can be further increased by connecting the two GWs 10 via the three communication lines 6.
  • the three communication lines 6 By selecting the three communication lines 6 in a predetermined order, communication can be smoothly performed using the communication lines 6 equally. Further, a configuration in which two GWs 10 are connected via four or more communication lines 6 may be adopted.
  • FIG. 5 is a block diagram showing a configuration of the vehicle-mounted communication system 201 according to the second embodiment.
  • the in-vehicle communication system 101 according to the second embodiment has a configuration in which two GWs 10 are connected via two communication lines 6, and has the same configuration as the in-vehicle communication system 1 according to the first embodiment in this point.
  • the directions of message transmission and reception with respect to the two communication lines 6 are respectively determined. That is, the communication line 6a is used for transmitting a message from the GW 10a to the GW 10b.
  • the communication line 6b is used for transmitting a message from the GW 10b to the GW 10a.
  • the GW 10a selects the communication line 6a among the two communication lines 6 and transmits the message to the GW 10b.
  • the GW 10a receives a message transmitted from another GW 10b via the communication line 6b.
  • the GW 10b selects the communication line 6b and transmits the message to the GW 10a.
  • the GW 10b receives a message transmitted from another GW 10a via the communication line 6a.
  • two GWs 10 are connected via two communication lines 6, the communication line 6a is used for transmitting and receiving a message from the GW 10a to the GW 10b, and the communication line 6b is This is a configuration used for transmitting a message from the GW 10b to the GW 10a.
  • Each GW 10 transmits a message via one communication line 6 and receives a message via the other communication line 6.
  • the two GWs 10 are connected via the two communication lines 6.
  • the configuration is not limited to this, and the configuration may be such that the two GWs 10 are connected via the three or more communication lines 6. Good.
  • a configuration in which two GWs 10 are connected via three communication lines 6, for example a configuration in which two communication lines 6 are used for message transmission of the GW 10a and one communication line 6 is used for message transmission of the GW 10b can be adopted. .
  • FIG. 6 is a block diagram showing a configuration of the in-vehicle communication system 301 according to the third embodiment.
  • the in-vehicle communication system 301 according to the third embodiment has a configuration in which two GWs 10 are connected via four communication lines 6 (6a to 6d).
  • two communication lines 6a and 6b are used for transmitting a message from the GW 10a to the GW 10b
  • two communication lines 6c and 6d are used for transmitting a message from the GW 10b to the GW 10a.
  • the GW 10a selects one of the two communication lines 6a and 6b and transmits the message to the GW 10b from the selected one communication line 6a or 6b. . At this time, the GW 10a alternately selects the two communication lines 6a and 6b. Similarly, when there is a message to be transmitted to another GW 10a, the GW 10b selects one of the two communication lines 6c and 6d, and transmits the message to the GW 10a from the selected one communication line 6c or 6d. Send. At this time, the GW 10b alternately selects the two communication lines 6c and 6d.
  • the in-vehicle communication system 301 according to the third embodiment having the above configuration has both the configuration of the in-vehicle communication system 1 according to the first embodiment and the configuration of the in-vehicle communication system 201 according to the second embodiment. Therefore, the in-vehicle communication system 301 according to the third embodiment can be expected to further increase the communication capacity between the two GWs 10 and to expect more smooth message transmission and reception between the GWs 10.
  • two GWs 10 are connected via four communication lines 6, and two communication lines 6 are assigned to each GW 10 for message transmission.
  • the configuration may be such that the two GWs 10 are connected via more communication lines 6.
  • two GWs 10 may be connected via six communication lines 6, and three communication lines 6 may be assigned to each GW 10 for message transmission.
  • the GW 10 may select one communication line 6 from the three communication lines 6 in a predetermined order, and transmit a message to another GW 10 via the selected communication line 6.
  • Each device in the in-vehicle communication system includes a computer including a microprocessor, a ROM, a RAM, and the like.
  • An arithmetic processing unit such as a microprocessor reads out and executes a computer program including a part or all of each step of a sequence diagram or a flowchart from a storage unit such as a ROM and a RAM as shown in FIG.
  • Each of the computer programs of the plurality of devices can be installed from an external server device or the like.
  • the computer programs of the plurality of devices are distributed in a state where they are stored in recording media such as a CD-ROM, a DVD-ROM, and a semiconductor memory.

Abstract

Provided are an in-vehicle communication system, an in-vehicle relay device, a communication program, and a communication method that can be expected to smooth message transmission/reception between a plurality of in-vehicle relay devices. The in-vehicle communication system according to an embodiment comprises two in-vehicle relay devices that include a plurality of connection sections to each of which a communication line is connected, and that relay the transmission/reception of messages via the plurality of communication lines connected to the connecting sections. The two in-vehicle relay devices are connected via at least two communication lines and each include a message transmission unit that selects one from the at least two communication lines in a prescribed order and transmits messages to be sent to the other in-vehicle relay device. The two in-vehicle relay devices may be connected via two communication lines, with the message sending unit alternatingly selecting one of the two communication lines and transmitting the messages.

Description

車載通信システム、車載中継装置、通信プログラム及び通信方法In-vehicle communication system, in-vehicle relay device, communication program and communication method
 本開示は、車両に搭載された複数の車載通信装置が送受信するメッセージを中継する車載通信システム、車載中継装置、通信プログラム及び通信方法に関する。 The present disclosure relates to a vehicle-mounted communication system that relays messages transmitted and received by a plurality of vehicle-mounted communication devices mounted on a vehicle, a vehicle-mounted relay device, a communication program, and a communication method.
 近年、車両に搭載されるECU(Electronic Control Unit)は増加する傾向にある。各ECUは、他のECUとの間で通信を行って情報を交換し、各々の処理を行っている。このため、車両内のECUの増加に伴って、ECUが通信を行うために設けられる車両内の通信線の量が増加し、車両の重量の増加及び車両内の通信線を配するスペースの減少等が懸念される。 In recent years, the number of ECUs (Electronic Control Units) mounted on vehicles has been increasing. Each ECU communicates with other ECUs to exchange information, and performs each process. Therefore, as the number of ECUs in the vehicle increases, the amount of communication lines in the vehicle provided for the ECUs to communicate increases, increasing the weight of the vehicle and reducing the space for arranging the communication lines in the vehicle. And so on.
 特許文献1においては、車両内を複数の領域に分け、領域毎に複数の機能ECUを第1ネットワークにて中継ECUに接続し、複数の中継ECUを第2ネットワークにて接続した構成の車両制御システムが記載されている。 In Patent Literature 1, a vehicle control in which the inside of a vehicle is divided into a plurality of regions, a plurality of functional ECUs are connected to a relay ECU via a first network for each region, and a plurality of relay ECUs are connected via a second network. The system has been described.
特開2015-67187号公報JP-A-2015-67187
 しかしながら特許文献1に記載の車両制御システムにおいては、異なる領域に設けられた複数の機能ECU間での通信量が増大した場合に、これらの通信を中継する中継ECU間の通信帯域が逼迫し、通信遅延が発生する虞がある。 However, in the vehicle control system described in Patent Literature 1, when the communication volume between a plurality of functional ECUs provided in different areas increases, the communication band between relay ECUs that relay these communications becomes tight, Communication delay may occur.
 本開示は、斯かる事情に鑑みてなされたものであって、その目的とするところは、複数の車載中継装置間でのメッセージ送受信の円滑化が期待できる車載通信システム、車載中継装置、通信プログラム及び通信方法を提供することにある。 The present disclosure has been made in view of such circumstances, and an object of the present disclosure is to provide an in-vehicle communication system, an in-vehicle relay device, and a communication program that are expected to facilitate message transmission and reception between a plurality of in-vehicle relay devices. And a communication method.
 本態様に係る車載通信システムは、通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置を2つ備え、2つの前記車載中継装置は、2つ以上の通信線を介して接続され、前記車載中継装置は、他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択して送信するメッセージ送信部を有する。 The in-vehicle communication system according to this aspect has a plurality of connection units to which communication lines are respectively connected, and two in-vehicle relay devices that relay transmission and reception of messages via the plurality of communication lines connected to the connection units. And the two in-vehicle relay devices are connected via two or more communication lines, and the in-vehicle relay device transmits a message to be transmitted to another in-vehicle relay device through one or more communication lines from the two or more communication lines. A message transmission unit that selects and transmits communication lines in a predetermined order;
 本態様に係る車載中継装置は、通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置であって、他の車載中継装置と2つ以上の通信線を介して接続され、前記他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択して送信するメッセージ送信部を備える。 The in-vehicle relay device according to the present aspect is an in-vehicle relay device that has a plurality of connection units to which communication lines are respectively connected, and relays transmission and reception of a message via a plurality of communication lines connected to the connection unit. Connected to another in-vehicle relay device via two or more communication lines, and selects a message to be transmitted to the other in-vehicle relay device by selecting one communication line from the two or more communication lines in a predetermined order. And a message transmission unit for transmitting the message.
 本態様に係る通信プログラムは、通信線がそれぞれ接続される複数の接続部を有し、他の車載中継装置と2つ以上の通信線を介して接続される車載中継装置に、前記他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択し、選択した通信線を介して前記他の車載中継装置へメッセージを送信する処理を行わせる。 The communication program according to this aspect includes a plurality of connection units to which communication lines are respectively connected, and the other vehicle-mounted relay device connected to another vehicle-mounted relay device via two or more communication lines. A message to be transmitted to the relay device is selected from one or more of the two or more communication lines in a predetermined order, and a process of transmitting the message to the other in-vehicle relay device via the selected communication line is performed. Let
 本態様に係る通信方法は、通信線がそれぞれ接続される複数の接続部を有する2つの車載中継装置を、2つ以上の通信線を介して接続し、前記車載中継装置が、他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択し、選択した通信線を介して前記他の車載中継装置へメッセージを送信する。 The communication method according to this aspect includes connecting two in-vehicle relay devices each having a plurality of connection portions to which communication lines are respectively connected via two or more communication lines, wherein the in-vehicle relay device is connected to another in-vehicle relay device. A message to be transmitted to the device is selected from one or more of the two or more communication lines in a predetermined order, and the message is transmitted to the other in-vehicle relay device via the selected communication line.
 なお、本願は、このような特徴的な処理部を備える車載中継装置として実現することができるだけでなく、かかる特徴的な処理をステップとする通信方法として実現したり、かかるステップをコンピュータに実行させるための通信プログラムとして実現したりすることができる。また、車載中継装置の一部又は全部を実現する半導体集積回路として実現したり、車載中継装置を含むその他の装置又はシステムとして実現したりすることができる。 In addition, the present application can be realized not only as an in-vehicle relay device having such a characteristic processing unit, but also as a communication method having such characteristic processing as a step, or causing a computer to execute the step. As a communication program. Further, the present invention can be realized as a semiconductor integrated circuit that realizes part or all of the vehicle-mounted relay device, or as another device or system including the vehicle-mounted relay device.
 上記によれば、複数の車載中継装置間でのメッセージ送受信の円滑化が期待できる。 According to the above, smooth transmission and reception of messages between a plurality of in-vehicle relay devices can be expected.
実施の形態1に係る車載通信システムの構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of a vehicle-mounted communication system according to Embodiment 1. 本実施の形態に係るGWの構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a GW according to the present embodiment. 本実施の形態に係るGWが行う他のGWへのメッセージ送信処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the message transmission to the other GW which the GW concerning this Embodiment performs. 変形例に係る車載通信システムの構成を示すブロック図である。It is a block diagram which shows the structure of the vehicle-mounted communication system which concerns on a modification. 実施の形態2に係る車載通信システムの構成を示すブロック図である。FIG. 9 is a block diagram showing a configuration of a vehicle-mounted communication system according to a second embodiment. 実施の形態3に係る車載通信システムの構成を示すブロック図である。FIG. 13 is a block diagram showing a configuration of a vehicle-mounted communication system according to a third embodiment.
[本開示の実施の形態の説明]
 最初に本開示の実施態様を列記して説明する。また、以下に記載する実施形態の少なくとも一部を任意に組み合わせてもよい。
[Description of Embodiment of the Present Disclosure]
First, embodiments of the present disclosure will be listed and described. Further, at least some of the embodiments described below may be arbitrarily combined.
(1)本態様に係る車載通信システムは、通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置を2つ備え、2つの前記車載中継装置は、2つ以上の通信線を介して接続され、前記車載中継装置は、他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択して送信するメッセージ送信部を有する。 (1) The on-vehicle communication system according to this aspect has a plurality of connection units to which communication lines are respectively connected, and relays messages transmitted and received via the plurality of communication lines connected to the connection units. The two in-vehicle relay devices are connected via two or more communication lines, and the in-vehicle relay device transmits a message to be transmitted to another in-vehicle relay device to the two or more communication lines. And a message transmission unit for selecting and transmitting one communication line in a predetermined order.
 本態様にあっては、一又は複数の車載通信装置が接続される複数の通信線が車載中継装置に接続され、複数の通信線間のメッセージの送受信を車載中継装置が中継する。車両には2つの車載中継装置が搭載され、2つの車載中継装置が2つ以上の通信線を介して接続される。各車載中継装置は、他の車載中継装置へのメッセージ送信を行う場合、2つ以上の通信線から所定の順番で1つの通信線を選択し、選択した通信線を介してメッセージを他の車載中継装置へ送信する。
 この構成により、全ての車載通信装置を1つの車載中継装置に接続する構成と比較して、車両に設けられる通信線の量が削減されることが期待できる。またボトルネックとなりやすい2つの車載中継装置の間の通信について、その通信容量を増すことができ、2つ以上の通信線を均等に利用して通信を円滑に行うことができる。また車載中継装置の間の通信容量を増すことによって、各通信線における通信速度を低速化することが可能となり、これにより通信に伴うノイズの発生量を低減することができる。
In this aspect, a plurality of communication lines to which one or more in-vehicle communication devices are connected are connected to the in-vehicle relay device, and the in-vehicle relay device relays transmission and reception of messages between the plurality of communication lines. Two on-vehicle relay devices are mounted on the vehicle, and the two on-vehicle relay devices are connected via two or more communication lines. When transmitting a message to another in-vehicle relay device, each in-vehicle relay device selects one communication line in a predetermined order from two or more communication lines, and transmits a message to another in-vehicle relay device via the selected communication line. Send to relay device.
With this configuration, it can be expected that the amount of communication lines provided in the vehicle is reduced as compared with a configuration in which all the in-vehicle communication devices are connected to one in-vehicle relay device. In addition, the communication capacity between two in-vehicle relay devices that are likely to be a bottleneck can be increased, and the communication can be smoothly performed using two or more communication lines evenly. Also, by increasing the communication capacity between the in-vehicle relay devices, it is possible to reduce the communication speed on each communication line, thereby reducing the amount of noise caused by communication.
(2)2つの前記車載中継装置は、2つの通信線を介して接続され、前記メッセージ送信部は、前記2つの通信線のうちの1つの通信線を交互に選択してメッセージを送信することが好ましい。 (2) The two in-vehicle relay devices are connected via two communication lines, and the message transmission unit alternately selects one of the two communication lines to transmit a message. Is preferred.
 本態様にあっては、2つの車載中継装置が2つの通信線を介して接続される。各車載中継装置は、2つの通信線を交互に利用して他の車載中継装置へメッセージを送信する。この構成により、2つの車載中継装置を1つの通信線で接続する構成と比較して、通信容量を倍にすることができ、2つの通信線を均等に利用して通信を円滑に行うことができる。 In this embodiment, two in-vehicle relay devices are connected via two communication lines. Each in-vehicle relay device transmits a message to another in-vehicle relay device using the two communication lines alternately. With this configuration, the communication capacity can be doubled as compared with a configuration in which two in-vehicle relay devices are connected by one communication line, and communication can be smoothly performed using the two communication lines equally. it can.
(3)2つの前記車載中継装置は、一方の車載中継装置から他方の車載中継装置へのメッセージ送信に用いられる一又は複数の通信線と、他方の車載中継装置から一方の車載中継装置へのメッセージ送信に用いられる一又は複数の通信線とを介して接続され、前記メッセージ送信部は、他の車載中継装置へのメッセージ送信に用いることが可能な一又は複数の通信線から1つの通信線を選択してメッセージを送信することが好ましい。 (3) The two in-vehicle relay devices include one or more communication lines used for transmitting a message from one in-vehicle relay device to the other in-vehicle relay device, and two or more communication lines from the other in-vehicle relay device to one in-vehicle relay device. The message transmission unit is connected via one or more communication lines used for message transmission, and the message transmission unit is one communication line from one or more communication lines that can be used for message transmission to another vehicle-mounted relay device. It is preferable to select and send the message.
 本態様にあっては、2つの車載中継装置が複数の通信線を介して接続される。複数の通信線には、一方の車載中継装置から他方の車載中継装置へのメッセージ送信に用いられる一又は複数の通信線と、他方の車載中継装置から一方の車載中継装置へのメッセージ送信に用いられる一又は複数の通信線とを含む。各車載中継装置は、自身が送信に用いることが可能な一又は複数の通信線から1つの通信線を選択して他の車載中継装置へメッセージを送信する。これにより、2つの車載中継装置を接続する複数の通信線において、メッセージ送信の衝突が発生する事がなくなるため、メッセージ送信を円滑に行うことができる。 In this embodiment, two in-vehicle relay devices are connected via a plurality of communication lines. The plurality of communication lines include one or more communication lines used for transmitting a message from one vehicle-mounted relay device to the other vehicle-mounted relay device, and one or more communication lines used for transmitting a message from the other vehicle-mounted relay device to one vehicle-mounted relay device. One or more communication lines. Each in-vehicle relay device selects one communication line from one or a plurality of communication lines that can be used for transmission and transmits a message to another in-vehicle relay device. Thereby, a collision of message transmission does not occur in a plurality of communication lines connecting the two vehicle-mounted relay devices, so that message transmission can be performed smoothly.
(4)本実施の形態に係る車載通信システムは、通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置を2つ備え、2つの前記車載中継装置は、一方の車載中継装置から他方の車載中継装置へのメッセージ送信に用いられる通信線と、他方の車載中継装置から一方の車載中継装置へのメッセージ送信に用いられる通信線とを介して接続されている。 (4) The in-vehicle communication system according to the present embodiment has a plurality of connection portions to which communication lines are respectively connected, and relays transmission and reception of messages via the plurality of communication lines connected to the connection portions. Two relay devices are provided, and the two on-vehicle relay devices are provided with a communication line used for transmitting a message from one on-vehicle relay device to the other on-vehicle relay device, and It is connected via a communication line used for message transmission.
 本態様にあっては、2つの車載中継装置が2つの通信線を介して接続される。2つの通信線は、一方の車載中継装置から他方の車載中継装置へのメッセージ送信に用いられる通信線と、他方の車載中継装置から一方の車載中継装置へのメッセージ送信に用いられる通信線とである。各車載中継装置は、一方の通信線を介してメッセージを他の車載中継装置へ送信し、他方の通信線を介して他の車載中継装置からのメッセージを受信する。これにより、これにより、2つの車載中継装置を接続する2つの通信線は、メッセージの送信方向が定められているため、メッセージ送信の衝突が発生する事がなく、メッセージ送信を円滑に行うことができる。 In this embodiment, two in-vehicle relay devices are connected via two communication lines. The two communication lines are a communication line used for transmitting a message from one vehicle-mounted relay device to the other vehicle-mounted relay device, and a communication line used for transmitting a message from the other vehicle-mounted relay device to one vehicle-mounted relay device. is there. Each vehicle-mounted relay device transmits a message to another vehicle-mounted relay device via one communication line, and receives a message from another vehicle-mounted relay device via the other communication line. As a result, the two communication lines connecting the two vehicle-mounted relay devices have a fixed message transmission direction, so that no message transmission collision occurs and the message transmission can be performed smoothly. it can.
(5)本態様に係る車載中継装置は、通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置であって、他の車載中継装置と2つ以上の通信線を介して接続され、前記他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択して送信するメッセージ送信部を備える。 (5) The in-vehicle relay device according to this aspect has a plurality of connection portions to which communication lines are respectively connected, and relays transmission and reception of messages via the plurality of communication lines connected to the connection portions. And a message to be transmitted to the other in-vehicle relay device connected to another in-vehicle relay device through two or more communication lines, and a message to be transmitted to the other in-vehicle relay device is transmitted from the two or more communication lines to one communication line in a predetermined manner. A message transmitting unit for selecting and transmitting in order.
 本態様にあっては、態様(1)と同様に、2つの車載中継装置の間の通信容量を増すことができ、2つ以上の通信線を均等に利用して通信を円滑に行うことができる。 In this aspect, similarly to the aspect (1), the communication capacity between the two in-vehicle relay devices can be increased, and the communication can be smoothly performed using the two or more communication lines equally. it can.
(6)本態様に係る通信プログラムは、通信線がそれぞれ接続される複数の接続部を有し、他の車載中継装置と2つ以上の通信線を介して接続される車載中継装置に、前記他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択し、選択した通信線を介して前記他の車載中継装置へメッセージを送信する処理を行わせる。 (6) The communication program according to this aspect includes a plurality of connection units to which communication lines are respectively connected, and the vehicle-mounted relay device connected to another vehicle-mounted relay device via two or more communication lines. A message to be transmitted to another in-vehicle relay device is selected from one or more of the two or more communication lines in a predetermined order, and the message is transmitted to the other in-vehicle relay device via the selected communication line. Perform processing.
 本態様にあっては、態様(1)と同様に、2つの車載中継装置の間の通信容量を増すことができ、2つ以上の通信線を均等に利用して通信を円滑に行うことができる。 In this aspect, similarly to the aspect (1), the communication capacity between the two in-vehicle relay devices can be increased, and the communication can be smoothly performed using the two or more communication lines equally. it can.
(7)本態様に係る通信方法は、通信線がそれぞれ接続される複数の接続部を有する2つの車載中継装置を、2つ以上の通信線を介して接続し、前記車載中継装置が、他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択し、選択した通信線を介して前記他の車載中継装置へメッセージを送信する。 (7) In the communication method according to this aspect, two on-vehicle relay devices each having a plurality of connection portions to which communication lines are connected are connected via two or more communication lines, and the on-vehicle relay device is connected to another on-board relay device. A message to be transmitted to the on-vehicle relay device is selected from one or more of the two or more communication lines in a predetermined order, and the message is transmitted to the other on-vehicle relay device via the selected communication line.
 本態様にあっては、態様(1)と同様に、2つの車載中継装置の間の通信容量を増すことができ、2つ以上の通信線を均等に利用して通信を円滑に行うことができる。 In this aspect, similarly to the aspect (1), the communication capacity between the two in-vehicle relay devices can be increased, and the communication can be smoothly performed using the two or more communication lines equally. it can.
[本開示の実施形態の詳細]
 本開示の実施形態に係る通信システムの具体例を、以下に図面を参照しつつ説明する。なお、本開示はこれらの例示に限定されるものではなく、請求の範囲によって示され、請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。
[Details of Embodiment of the Present Disclosure]
A specific example of a communication system according to an embodiment of the present disclosure will be described below with reference to the drawings. Note that the present disclosure is not limited to these exemplifications, but is indicated by the scope of the claims, and is intended to include all modifications within the scope and meaning equivalent to the scope of the claims.
(実施の形態1)
 図1は、実施の形態1に係る車載通信システムの構成を示すブロック図である。実施の形態1に係る車載通信システム1は、車両100に複数のECU3と、複数のGW(Gate Way)10とを備え、複数のECU3及びGW10が通信線5,6を介してメッセージの送受信を行うシステムである。一例として図1には、車両100にGW10が2つ搭載され、2つのGW10が2つの通信線6を介して接続され、各GW10に3つの通信線5が接続され、各通信線に3つのECU3が接続された車載通信システム1の構成が示されている。以下の説明において2つのGW10を区別する必要がある場合には、図1に示すように一方をGW10aとし、他方をGW10bとして、異なる符号を付して区別する。2つの通信線6についても同様に、必要に応じて一方を通信線6aとし、他方を通信線6bとして区別する。なお車載通信システム1に含まれるECU3の数、GCW10の数、通信線5,6の数、装置の接続態様及びネットワーク構成等は、図示のものに限らない。
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of the in-vehicle communication system according to the first embodiment. The in-vehicle communication system 1 according to the first embodiment includes a vehicle 100 including a plurality of ECUs 3 and a plurality of GWs (Gate Ways) 10. The plurality of ECUs 3 and the GW 10 transmit and receive messages via the communication lines 5 and 6. System. As an example, in FIG. 1, two GWs 10 are mounted on the vehicle 100, two GWs 10 are connected via two communication lines 6, three communication lines 5 are connected to each GW 10, and three GWs are connected to each communication line. The configuration of the vehicle-mounted communication system 1 to which the ECU 3 is connected is shown. In the following description, when it is necessary to distinguish between the two GWs 10, one is designated as a GW 10a and the other is designated as a GW 10b as shown in FIG. Similarly, one of the two communication lines 6 is identified as a communication line 6a and the other is identified as a communication line 6b, if necessary. The number of ECUs 3, the number of GCWs 10, the number of communication lines 5 and 6, the connection mode of the devices, the network configuration, and the like included in the in-vehicle communication system 1 are not limited to those illustrated.
 車両100に搭載されたECU3は、例えば車両100のエンジンの動作を制御するECU、ドアのロック/アンロックを制御するECU、ライトの点灯/消灯を制御するECU、エアバッグの動作を制御するECU、及び、ABS(Antilock Brake System)の動作を制御するECU等の種々のECUが含まれ得る。各ECU3は、車両100に配された通信線5のいずれかに接続され、通信線5及びGW10を介して他のECU3との間でメッセージの送受信を行うことができる。 The ECU 3 mounted on the vehicle 100 includes, for example, an ECU that controls the operation of an engine of the vehicle 100, an ECU that controls locking / unlocking of a door, an ECU that controls turning on / off of a light, and an ECU that controls the operation of an airbag. And various ECUs such as an ECU that controls the operation of an ABS (Antilock Brake System). Each ECU 3 is connected to one of the communication lines 5 arranged in the vehicle 100, and can transmit and receive messages to and from another ECU 3 via the communication line 5 and the GW 10.
 各GW10は、複数の通信線5が接続されており、通信線5を介して複数のECU3との間でメッセージの送受信を行うことができる。ECU3が送信したメッセージを受信したGW10は、受信したメッセージに付されたIDに基づいて中継の要否を判断し、中継が必要なメッセージを受信元とは異なる通信線5から送信する。このためGW10は、メッセージに付されるIDと、このメッセージの送信先となる通信線5との対応関係を記憶した送信先マップを有している。 Each GW 10 is connected to a plurality of communication lines 5, and can transmit and receive messages to and from a plurality of ECUs 3 via the communication lines 5. The GW 10 that has received the message transmitted by the ECU 3 determines whether relaying is necessary based on the ID attached to the received message, and transmits the message that requires relaying from the communication line 5 different from the receiving source. For this reason, the GW 10 has a transmission destination map that stores the correspondence between the ID assigned to the message and the communication line 5 to which the message is transmitted.
 車載通信システム1では、一方のGW10aに接続されたECU3から他方のGW10bに接続されたECU3へメッセージを送信することが可能である。この場合、ECU3からのメッセージを受信したGW10aは、このメッセージに付されたIDに基づいて他方のGW10bへ中継すべきと判断し、このメッセージを通信線6から出力することでGW10bへ送信する。通信線6を介してGW10aからのメッセージを受信したGW10bは、受信したメッセージに付されたIDに基づいて中継先の通信線5がいずれであるかを判断し、このメッセージを中継先の通信線5から送信する。GW10bからGW10aへメッセージを送信する場合も同様である。 In the in-vehicle communication system 1, a message can be transmitted from the ECU 3 connected to one GW 10a to the ECU 3 connected to the other GW 10b. In this case, the GW 10a that has received the message from the ECU 3 determines that the message should be relayed to the other GW 10b based on the ID attached to this message, and outputs this message to the GW 10b by outputting the message from the communication line 6. The GW 10b that has received the message from the GW 10a via the communication line 6 determines which of the relay destination communication lines 5 is based on the ID attached to the received message, and transmits this message to the relay destination communication line. Send from 5. The same applies to the case where a message is transmitted from the GW 10b to the GW 10a.
 また実施の形態1に係る車載通信システム1では、2つのGW10が2つの通信線6を介して接続されている。2つの通信線6は同じ通信規格に従うものであり、本実施の形態においてはCAN(Controller Area Network)の通信規格に従ってメッセージの送受信が行われるものとする。また本実施の形態においては、いずれの通信線6を用いた場合であっても、通信速度は同じであるものとする。ただしGW10は、イーサネット(登録商標)又はFlexRay等の通信規格でメッセージの送受信を行う構成であってよく、2つの通信線6の通信速度が異なっていてもよい。 In the in-vehicle communication system 1 according to the first embodiment, two GWs 10 are connected via two communication lines 6. The two communication lines 6 comply with the same communication standard, and in the present embodiment, messages are transmitted and received in accordance with the CAN (Controller Area Network) communication standard. In the present embodiment, it is assumed that the communication speed is the same regardless of which communication line 6 is used. However, the GW 10 may be configured to transmit and receive messages according to a communication standard such as Ethernet (registered trademark) or FlexRay, and the communication speeds of the two communication lines 6 may be different.
 GW10は、他のGW10へメッセージを送信する場合、2つの通信線6からいずれか1つを選択する。GW10は、選択した通信線6へメッセージを出力することにより、この通信線6を介して他のGW10へメッセージを送信する。実施の形態1係る車載通信システム1では、GW10は2つの通信線6を交互に選択して他のGW10へメッセージを送信する。例えばGW10aは、まず一方の通信線6aを介して他のGW10bへのメッセージ送信を行い、次に他方の通信線6bを介して他のGW10bへのメッセージ送信を行い、更にその次に一方の通信線6aを介して他のGW10bへのメッセージ送信を行うというように、通信線6aと通信線6bとを交互に利用してメッセージを送信する。もう一方のGW10bについても同様に、2つの通信線6a及び通信線6bを交互に利用してGW10aへのメッセージ送信を行う。 When transmitting a message to another GW 10, the GW 10 selects one of the two communication lines 6. The GW 10 transmits a message to another GW 10 via the communication line 6 by outputting the message to the selected communication line 6. In the in-vehicle communication system 1 according to the first embodiment, the GW 10 alternately selects two communication lines 6 and transmits a message to another GW 10. For example, the GW 10a first transmits a message to the other GW 10b via one communication line 6a, transmits a message to the other GW 10b via the other communication line 6b, and then transmits the message to the other GW 10b. The message is transmitted using the communication line 6a and the communication line 6b alternately, such as transmitting a message to another GW 10b via the line 6a. Similarly, the other GW 10b transmits a message to the GW 10a by alternately using the two communication lines 6a and 6b.
 なお2つのGW10は、メッセージを送信する通信線6の選択を同期して行うのではなく、各々の判断で通信線6を選択する。このため、通信線6において2つのGW10によるメッセージ送信が同時的に行われ、メッセージ送信の衝突が発生する可能性がある。この場合には、CANの通信規格に従ってメッセージ送信の調停処理が行われる。 The two GWs 10 do not select the communication line 6 for transmitting the message in synchronization, but select the communication line 6 based on their respective judgments. For this reason, the message transmission by the two GWs 10 is performed simultaneously on the communication line 6, and a collision of message transmission may occur. In this case, arbitration processing of message transmission is performed in accordance with the CAN communication standard.
 図2は、本実施の形態に係るGW10の構成を示すブロック図である。なお、本実施の形態に係る車載通信システム1が備える2つのGW10は、略同じ構成であるため、図2には一方のGW10aのみ詳細な構成を図示し、他方のGW10bは詳細な構成の図示を省略している。本実施の形態に係るGW10は、処理部(プロセッサ)11、記憶部(ストレージ)12、通信部(トランシーバ)13,14、接続部(コネクタ)15,16及び通信バッファ17等を備えて構成されている。 FIG. 2 is a block diagram showing a configuration of GW 10 according to the present embodiment. Since the two GWs 10 included in the in-vehicle communication system 1 according to the present embodiment have substantially the same configuration, FIG. 2 illustrates only one GW 10a in detail, and the other GW 10b illustrates the detailed configuration. Is omitted. The GW 10 according to the present embodiment includes a processing unit (processor) 11, a storage unit (storage) 12, communication units (transceivers) 13, 14, connection units (connectors) 15, 16, a communication buffer 17, and the like. ing.
 処理部11は、例えばCPU(Central Processing Unit)又はMPU(Micro-Processing Unit)等の演算処理装置を用いて構成されている。処理部11は、記憶部12に記憶されたプログラムを読み出して実行することにより、種々の処理を行うことができる。本実施の形態において処理部11は、記憶部12に記憶された通信プログラム12aを読み出して実行することにより、通信線5間のメッセージを中継する処理、2つの通信線6から他のGW10へのメッセージ送信に用いる通信線6を選択する処理、及び、選択した通信線6を介して他のGW10へメッセージを送信する処理等を行う。 The processing unit 11 is configured using an arithmetic processing device such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit). The processing unit 11 can perform various processes by reading and executing the program stored in the storage unit 12. In the present embodiment, the processing unit 11 reads out and executes the communication program 12a stored in the storage unit 12 to perform a process of relaying a message between the communication lines 5 and a process of relaying a message from the two communication lines 6 to another GW 10. A process of selecting a communication line 6 used for message transmission, a process of transmitting a message to another GW 10 via the selected communication line 6, and the like are performed.
 記憶部12は、例えばフラッシュメモリ又はEEPROM(Electrically Erasable Programmable Read Only Memory)等の不揮発性のメモリ素子を用いて構成されている。記憶部12は、処理部11が実行する各種のプログラム、及び、処理部11の処理に必要な各種のデータを記憶する。本実施の形態において記憶部12は、処理部11が実行する通信プログラム12aと、処理部11がメッセージの中継を行う際に用いる送信先マップ12bとを記憶している。なお通信プログラム12aは、例えばGW10の製造段階において記憶部12に書き込まれてもよく、また例えば遠隔のサーバ装置などが配信するものをGW10が通信にて取得してもよく、また例えばメモリカード又は光ディスク等の記録媒体99に記録されたプログラムをGW10が読み出して記憶部12に記憶してもよく、また例えば記録媒体99に記録されたものを書込装置が読み出してGW10の記憶部12に書き込んでもよい。通信プログラム12aは、ネットワークを介した配信の態様で提供されてもよく、記録媒体99に記録された態様で提供されてもよい。 The storage unit 12 is configured using a nonvolatile memory element such as a flash memory or an EEPROM (Electrically Erasable Programmable Read Only Memory). The storage unit 12 stores various programs executed by the processing unit 11 and various data necessary for processing of the processing unit 11. In the present embodiment, the storage unit 12 stores a communication program 12a executed by the processing unit 11 and a destination map 12b used when the processing unit 11 relays a message. The communication program 12a may be written in the storage unit 12 at the stage of manufacturing the GW 10, for example, and the GW 10 may acquire a program distributed by a remote server device or the like by communication. The program recorded on the recording medium 99 such as an optical disk may be read by the GW 10 and stored in the storage unit 12. For example, the program recorded on the recording medium 99 may be read by the writing device and written into the storage unit 12 of the GW 10. May be. The communication program 12a may be provided in a form of distribution via a network, or may be provided in a form recorded on the recording medium 99.
 接続部15,16は、通信線5,6を着脱可能に接続するためのものであり、いわゆるコネクタである。接続部15,16は、接続される通信線5,6の形状及び規格等に適した構成とされる。なお図2においては、ECU3との通信を行う通信線5を接続するための3つの接続部15と、他のGW10との通信を行うための通信線6を接続するための2つの接続部16とを別符号を付して図示している。しかしGW10及びECU3の通信と、2つのGW10の間の通信とが同じ通信規格であり、通信線5,6が同じ規格のものである場合には、実質的に接続部15,16は同じものであってよい。 The connection portions 15 and 16 are used to detachably connect the communication lines 5 and 6, and are so-called connectors. The connection portions 15 and 16 are configured to be suitable for the shapes and standards of the communication lines 5 and 6 to be connected. In FIG. 2, three connecting portions 15 for connecting the communication line 5 for performing communication with the ECU 3 and two connecting portions 16 for connecting the communication line 6 for performing communication with another GW 10 are shown. Are shown with different reference numerals. However, when the communication between the GW 10 and the ECU 3 and the communication between the two GWs 10 have the same communication standard, and the communication lines 5 and 6 have the same standard, the connection portions 15 and 16 are substantially the same. It may be.
 通信部13,14は、接続部15,16に接続された通信線5,6を介したメッセージの送受信に関する処理を行う。本実施の形態において通信部13,14は、CANの通信規格に従ってメッセージの送受信を行う。通信部13,14は、例えばCANトランシーバなどの通信ICを用いて構成され得る。通信部13,14は、接続部15,16に接続された通信線5,6の電位を周期的にサンプリングして取得することにより、通信線5,6上の電気信号をデジタルデータに変換し、このデジタルデータを受信メッセージとして処理部11へ与える。また通信部13,14は、処理部11からデジタルデータとして与えられたメッセージを電気信号に変換し、変換した電気信号を接続部15,16に接続された通信線5,6へ出力することによって、メッセージを送信する。なお図2においては、ECU3との通信を行う3つの通信部13と、他のGW10との通信を行う2つの通信部14とを別符号を付して図示している。しかしGW10及びECU3の通信と、2つのGW10の間の通信とが同じ通信規格である場合には、実質的に通信部13,14は同じものであってよい。 The communication units 13 and 14 perform processing related to transmission and reception of messages via the communication lines 5 and 6 connected to the connection units 15 and 16. In the present embodiment, the communication units 13 and 14 transmit and receive messages according to the CAN communication standard. The communication units 13 and 14 can be configured using a communication IC such as a CAN transceiver. The communication units 13 and 14 periodically convert the electrical signals on the communication lines 5 and 6 into digital data by periodically sampling and acquiring the potentials of the communication lines 5 and 6 connected to the connection units 15 and 16. This digital data is provided to the processing unit 11 as a received message. The communication units 13 and 14 convert a message given as digital data from the processing unit 11 into an electric signal, and output the converted electric signal to communication lines 5 and 6 connected to the connection units 15 and 16, respectively. , Send a message. In FIG. 2, three communication units 13 that communicate with the ECU 3 and two communication units 14 that communicate with another GW 10 are illustrated with different reference numerals. However, when the communication between the GW 10 and the ECU 3 and the communication between the two GWs 10 have the same communication standard, the communication units 13 and 14 may be substantially the same.
 通信バッファ17は、例えばSRAM(Static Random Access Memory)又はDRAM(Dynamic Random Access Memory)等のデータ書換可能なメモリ素子を用いて構成されている。通信バッファ17は、ECU3又は他のGW10から受信したメッセージを一時的に記憶する。 The communication buffer 17 is configured by using a data rewritable memory element such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory). The communication buffer 17 temporarily stores a message received from the ECU 3 or another GW 10.
 また本実施の形態に係るGW10は、記憶部12に記憶された通信プログラム12aを処理部11が読み出して実行することにより、中継処理部11a、選択処理部11b及び送信処理部11c等が処理部11にソフトウェア的な機能ブロックとして実現される。中継処理部11aは、通信部13が受信したECU3からのメッセージを、他のECU3へ中継する処理を行う。中継処理部11aは、通信部13にて受信されたメッセージに付されたIDを取得して記憶部12の送信先マップ12bを参照し、送信先マップ12bにてIDに対応付けられた送信先を調べる。中継処理部11aは、送信先マップ12bにて指定された送信先の通信部13へメッセージを与え、通信部13に通信線5へのメッセージ送信を行わせる。また中継処理部11aは、送信先マップ12bにて指定された送信先が他のGW10である場合、他のGW10へ送信すべきメッセージを選択処理部11bへ与える。 Further, in the GW 10 according to the present embodiment, the processing unit 11 reads and executes the communication program 12a stored in the storage unit 12, so that the relay processing unit 11a, the selection processing unit 11b, the transmission processing unit 11c, and the like are processed by the processing unit. 11 is realized as a software-like functional block. The relay processing unit 11a performs a process of relaying the message from the ECU 3 received by the communication unit 13 to another ECU 3. The relay processing unit 11a acquires the ID attached to the message received by the communication unit 13, refers to the destination map 12b of the storage unit 12, and determines the destination associated with the ID in the destination map 12b. Find out. The relay processing unit 11a gives the message to the communication unit 13 of the transmission destination specified by the transmission destination map 12b, and causes the communication unit 13 to transmit the message to the communication line 5. When the destination specified in the destination map 12b is another GW 10, the relay processing unit 11a gives a message to be transmitted to the other GW 10 to the selection processing unit 11b.
 選択処理部11bは、中継処理部11aから他のGW10へ送信すべきメッセージを与えられた場合、2つの通信線6からメッセージ送信に用いる1つの通信線6を選択する処理を行う。選択処理部11bは、中継処理部11aから送信メッセージが与えられる都度、メッセージ送信に用いる通信線6を切り替えることによって、2つの通信線6から交互に1つの通信線6を送信用として選択する。選択処理部11bは、選択した通信線6がいずれであるかを示す情報と、送信すべきメッセージとを送信処理部11cへ与える。 (4) When a message to be transmitted to another GW 10 is given from the relay processing unit 11a, the selection processing unit 11b performs a process of selecting one communication line 6 used for message transmission from the two communication lines 6. The selection processing unit 11b alternately selects one of the two communication lines 6 for transmission by switching the communication line 6 used for message transmission each time a transmission message is given from the relay processing unit 11a. The selection processing unit 11b provides the transmission processing unit 11c with information indicating the selected communication line 6 and a message to be transmitted.
 送信処理部11cは、他のGW10へ送信すべきメッセージを、選択処理部11bが選択した通信線6を介して送信する処理を行う。送信処理部11cは、選択された通信線6を介したメッセージ送受信を行う通信部14へ、選択処理部11bから与えられた送信メッセージを与えることにより、他のGW10へのメッセージ送信を行う。通信部14は、処理部11から与えられたメッセージを、自身に対応する接続部16に接続された通信線6へ出力することによって、他のGW10へメッセージを送信する。このときに他のGW10のメッセージ送信との衝突が発生した場合、メッセージの調停及び再送信等の処理は通信部14にて行われ、メッセージの調停及び再送信等の処理に送信処理部11cは関与しない。 The transmission processing unit 11c performs a process of transmitting a message to be transmitted to another GW 10 via the communication line 6 selected by the selection processing unit 11b. The transmission processing unit 11c transmits a message to another GW 10 by giving the transmission message provided from the selection processing unit 11b to the communication unit 14 that performs message transmission / reception via the selected communication line 6. The communication unit 14 transmits the message to another GW 10 by outputting the message given from the processing unit 11 to the communication line 6 connected to the connection unit 16 corresponding to the communication unit 14. At this time, if a collision with message transmission of another GW 10 occurs, processing such as arbitration and retransmission of the message is performed by the communication unit 14, and the transmission processing unit 11c performs processing such as arbitration and retransmission of the message. Not involved.
 図3は、本実施の形態に係るGW10が行う他のGW10へのメッセージ送信処理の手順を示すフローチャートである。なお本フローチャートにおいては、2つの通信線6のいずれが選択されたかを示す選択フラグを処理に用いるが、このフラグは例えば処理部11のレジスタなどの記憶領域を用いて実現され、0又は1の値が設定され得る。本実施の形態に係るGW10の処理部11は、まず選択フラグの値を0に初期化する(ステップS1)。次いで処理部11の選択処理部11bは、他のGW10へ送信すべきメッセージが存在するか否かを判定する(ステップS2)。他のGW10へ送信すべきメッセージが存在しない場合(S2:NO)、選択処理部11bは、送信すべきメッセージが与えられるまで待機する。 FIG. 3 is a flowchart showing a procedure of a message transmission process to another GW 10 performed by the GW 10 according to the present embodiment. In the present flowchart, a selection flag indicating which of the two communication lines 6 has been selected is used in the processing. This flag is realized by using a storage area such as a register of the processing unit 11, for example. The value can be set. First, the processing unit 11 of the GW 10 according to the present embodiment initializes the value of the selection flag to 0 (Step S1). Next, the selection processing unit 11b of the processing unit 11 determines whether there is a message to be transmitted to another GW 10 (Step S2). When there is no message to be transmitted to another GW 10 (S2: NO), the selection processing unit 11b waits until a message to be transmitted is given.
 他のGW10へ送信すべきメッセージが存在する場合(S2:YES)、選択処理部11bは、選択フラグの値が0であるか否かを判定する(ステップS3)。選択フラグの値が0である場合(S3:YES)、選択処理部11bは、他のGW10へメッセージを送信する通信線6として、通信線6aを選択する。この選択に応じて送信処理部11cは、通信線6aからメッセージを送信する(ステップS4)。次いで処理部11は、選択フラグの値を1に設定し(ステップS5)、ステップS2へ処理を戻す。 If there is a message to be transmitted to another GW 10 (S2: YES), the selection processing unit 11b determines whether the value of the selection flag is 0 (Step S3). When the value of the selection flag is 0 (S3: YES), the selection processing unit 11b selects the communication line 6a as the communication line 6 for transmitting a message to another GW 10. In response to this selection, the transmission processing unit 11c transmits a message from the communication line 6a (Step S4). Next, the processing unit 11 sets the value of the selection flag to 1 (step S5), and returns the processing to step S2.
 選択フラグの値が0でない場合(S3:NO)、即ち選択フラグの値が1である場合、選択処理部11bは、他のGW10へメッセージを送信する通信線6として、通信線6bを選択する。この選択に応じて送信処理部11cは、通信線6bからメッセージを送信する(ステップS6)。次いで処理部11は、選択フラグの値を0に設定し(ステップS7)、ステップS2へ処理を戻す。 When the value of the selection flag is not 0 (S3: NO), that is, when the value of the selection flag is 1, the selection processing unit 11b selects the communication line 6b as the communication line 6 for transmitting a message to another GW 10. . In response to this selection, the transmission processing unit 11c transmits a message from the communication line 6b (Step S6). Next, the processing unit 11 sets the value of the selection flag to 0 (step S7), and returns the processing to step S2.
 以上の構成の実施の形態1に係る車載通信システム1は、2つのGW10が2つの通信線6を介して接続される。各GW10は、2つの通信線6を交互に利用して他のGWへメッセージを送信する。この構成により、2つのGW10を1つの通信線6で接続する構成と比較して、GW10間の通信容量を2倍にすることができ、2つの通信線6を均等に利用して通信を円滑に行うことができる。 は In the on-vehicle communication system 1 according to Embodiment 1 having the above configuration, two GWs 10 are connected via two communication lines 6. Each GW 10 transmits a message to another GW using the two communication lines 6 alternately. With this configuration, the communication capacity between the GWs 10 can be doubled as compared with the configuration in which the two GWs 10 are connected by one communication line 6, and communication can be smoothly performed by using the two communication lines 6 equally. Can be done.
 なお本実施の形態においては、車載通信システム1が2つのGW10を備え、2つのGW10が2つの通信線6にて接続される構成としたが、システム構成はこれに限らない。車載通信システム1は、3つ以上のGW10を備えてもよい。また以下の変形例に示すように、2つのGW10を3つ以上の通信線6にて接続してもよい。 In the present embodiment, the in-vehicle communication system 1 includes two GWs 10 and the two GWs 10 are connected by the two communication lines 6, but the system configuration is not limited to this. The in-vehicle communication system 1 may include three or more GWs 10. Further, as shown in the following modified example, two GWs 10 may be connected by three or more communication lines 6.
 (変形例)
 図4は、変形例に係る車載通信システム101の構成を示すブロック図である。変形例に係る車載通信システム101では、2つのGW10が3つの通信線6(6a~6c)を介して接続されている。変形例に係るGW10は、3つの通信線6の中から1つの通信線6を所定の順番で選択し、選択した1つの通信線6を介して他のGW10へメッセージを送信する。例えばGW10は、通信線6a→通信線6b→通信線6c→通信線6a→…の順番で通信線6の選択を行う構成とすることができる。
(Modification)
FIG. 4 is a block diagram illustrating a configuration of an in-vehicle communication system 101 according to a modification. In the in-vehicle communication system 101 according to the modified example, two GWs 10 are connected via three communication lines 6 (6a to 6c). The GW 10 according to the modified example selects one communication line 6 from the three communication lines 6 in a predetermined order, and transmits a message to another GW 10 via the selected one communication line 6. For example, the GW 10 can be configured to select the communication line 6 in the order of the communication line 6a → the communication line 6b → the communication line 6c → the communication line 6a →.
 以上の構成の変形例に係る車載通信システム101では、2つのGW10を3つの通信線6を介して接続することによって、GW10間の通信容量を更に増すことができる。3つの通信線6を所定の順番で選択することで、通信線6を均等に利用して通信を円滑に行うことができる。また更に、2つのGW10を4つ以上の通信線6を介して接続する構成としてもよい。 In the in-vehicle communication system 101 according to the modified example of the above configuration, the communication capacity between the GWs 10 can be further increased by connecting the two GWs 10 via the three communication lines 6. By selecting the three communication lines 6 in a predetermined order, communication can be smoothly performed using the communication lines 6 equally. Further, a configuration in which two GWs 10 are connected via four or more communication lines 6 may be adopted.
(実施の形態2)
 図5は、実施の形態2に係る車載通信システム201の構成を示すブロック図である。実施の形態2に係る車載通信システム101は、2つのGW10が2つの通信線6を介して接続された構成であり、この点で実施の形態1に係る車載通信システム1と同じ構成である。ただし実施の形態2に係る車載通信システム201では、2つの通信線6に対してメッセージの送受信の方向がそれぞれ定められている。即ち、通信線6aは、GW10aからGW10bへのメッセージ送信に用いられる。通信線6bは、GW10bからGW10aへのメッセージ送信に用いられる。
(Embodiment 2)
FIG. 5 is a block diagram showing a configuration of the vehicle-mounted communication system 201 according to the second embodiment. The in-vehicle communication system 101 according to the second embodiment has a configuration in which two GWs 10 are connected via two communication lines 6, and has the same configuration as the in-vehicle communication system 1 according to the first embodiment in this point. However, in the in-vehicle communication system 201 according to the second embodiment, the directions of message transmission and reception with respect to the two communication lines 6 are respectively determined. That is, the communication line 6a is used for transmitting a message from the GW 10a to the GW 10b. The communication line 6b is used for transmitting a message from the GW 10b to the GW 10a.
 GW10aは、他のGW10bへ送信すべきメッセージが存在する場合、2つの通信線6のうち、通信線6aを選択してメッセージをGW10bへ送信する。またGW10aは、他のGW10bから送信されたメッセージを、通信線6bを介して受信する。同様に、GW10bは、他のGW10aへ送信すべきメッセージが存在する場合、通信線6bを選択してメッセージをGW10aへ送信する。またGW10bは、他のGW10aから送信されたメッセージを、通信線6aを介して受信する。 When there is a message to be transmitted to another GW 10b, the GW 10a selects the communication line 6a among the two communication lines 6 and transmits the message to the GW 10b. The GW 10a receives a message transmitted from another GW 10b via the communication line 6b. Similarly, when there is a message to be transmitted to another GW 10a, the GW 10b selects the communication line 6b and transmits the message to the GW 10a. The GW 10b receives a message transmitted from another GW 10a via the communication line 6a.
 以上の構成の実施の形態2に係る車載通信システム201は、2つのGW10が2つの通信線6を介して接続され、通信線6aはGW10aからGW10bへのメッセージ送受信に用いられ、通信線6bはGW10bからGW10aへのメッセージ送信に用いられる構成である。各GW10は、一方の通信線6を介してメッセージを送信し、他方の通信線6を介してメッセージを受信する。これらの構成により、各通信線6はメッセージの送受信方向が定められているため、メッセージ送信の衝突が発生する事がなく、メッセージ送受信を円滑に行うことができる。 In the in-vehicle communication system 201 according to Embodiment 2 having the above configuration, two GWs 10 are connected via two communication lines 6, the communication line 6a is used for transmitting and receiving a message from the GW 10a to the GW 10b, and the communication line 6b is This is a configuration used for transmitting a message from the GW 10b to the GW 10a. Each GW 10 transmits a message via one communication line 6 and receives a message via the other communication line 6. With these configurations, since the direction of message transmission and reception is determined for each communication line 6, message transmission collision does not occur and message transmission and reception can be performed smoothly.
 なお、実施の形態2においては、2つのGW10を2つの通信線6を介して接続する構成としたが、これに限るものではなく、3つ以上の通信線6を介して接続する構成としてもよい。3つの通信線6を介して2つのGW10を接続する構成の場合、例えば2つの通信線6をGW10aのメッセージ送信に用い、1つの通信線6をGW10bのメッセージ送信に用いる構成とすることができる。4つ以上の通信線6を介して接続する場合も同様に、各通信線6をいずれのGW10のメッセージ送信に用いるかを、例えば各GW10のメッセージ送信量などに基づいて、予め定めておけばよい。 In the second embodiment, the two GWs 10 are connected via the two communication lines 6. However, the configuration is not limited to this, and the configuration may be such that the two GWs 10 are connected via the three or more communication lines 6. Good. In the case of a configuration in which two GWs 10 are connected via three communication lines 6, for example, a configuration in which two communication lines 6 are used for message transmission of the GW 10a and one communication line 6 is used for message transmission of the GW 10b can be adopted. . Similarly, in the case of connecting via four or more communication lines 6, it is similarly possible to determine in advance which communication line 6 is used for message transmission of which GW 10 based on, for example, the message transmission amount of each GW 10. Good.
 実施の形態2に係る車載通信システム201のその他の構成は、実施の形態1に係る車載通信システム101と同様であるため、同様の箇所には同じ符号を付し、詳細な説明を省略する。 そ の 他 Other configurations of the in-vehicle communication system 201 according to the second embodiment are the same as those of the in-vehicle communication system 101 according to the first embodiment.
(実施の形態3)
 図6は、実施の形態3に係る車載通信システム301の構成を示すブロック図である。なお図6においては、通信線5に接続される複数のECU3の図示を省略している。実施の形態3に係る車載通信システム301は、2つのGW10を4つの通信線6(6a~6d)を介して接続した構成である。4つの通信線6のうち、2つの通信線6a,6bはGW10aからGW10bへのメッセージ送信に用いられ、2つの通信線6c,6dはGW10bからGW10aへのメッセージ送信に用いられる。
(Embodiment 3)
FIG. 6 is a block diagram showing a configuration of the in-vehicle communication system 301 according to the third embodiment. In FIG. 6, illustration of the plurality of ECUs 3 connected to the communication line 5 is omitted. The in-vehicle communication system 301 according to the third embodiment has a configuration in which two GWs 10 are connected via four communication lines 6 (6a to 6d). Of the four communication lines 6, two communication lines 6a and 6b are used for transmitting a message from the GW 10a to the GW 10b, and two communication lines 6c and 6d are used for transmitting a message from the GW 10b to the GW 10a.
 GW10aは、他のGW10bへ送信すべきメッセージが存在する場合、2つの通信線6a,6bの中からいずれか1つを選択し、選択した1つの通信線6a又は6bからGW10bへメッセージを送信する。このときにGW10aは、2つの通信線6a,6bを交互に選択する。同様にGW10bは、他のGW10aへ送信すべきメッセージが存在する場合、2つの通信線6c,6dの中からいずれか1つを選択し、選択した1つの通信線6c又は6dからGW10aへメッセージを送信する。このときにGW10bは、2つの通信線6c,6dを交互に選択する。 When there is a message to be transmitted to another GW 10b, the GW 10a selects one of the two communication lines 6a and 6b and transmits the message to the GW 10b from the selected one communication line 6a or 6b. . At this time, the GW 10a alternately selects the two communication lines 6a and 6b. Similarly, when there is a message to be transmitted to another GW 10a, the GW 10b selects one of the two communication lines 6c and 6d, and transmits the message to the GW 10a from the selected one communication line 6c or 6d. Send. At this time, the GW 10b alternately selects the two communication lines 6c and 6d.
 以上の構成の実施の形態3に係る車載通信システム301は、実施の形態1に係る車載通信システム1の構成と、実施の形態2に係る車載通信システム201の構成とを兼ね備えている。よって実施の形態3に係る車載通信システム301は、2つのGW10間の通信容量をより増すことが期待でき、GW10間のメッセージ送受信をより円滑化することが期待できる。 車載 The in-vehicle communication system 301 according to the third embodiment having the above configuration has both the configuration of the in-vehicle communication system 1 according to the first embodiment and the configuration of the in-vehicle communication system 201 according to the second embodiment. Therefore, the in-vehicle communication system 301 according to the third embodiment can be expected to further increase the communication capacity between the two GWs 10 and to expect more smooth message transmission and reception between the GWs 10.
 なお実施の形態3においては、2つのGW10を4つの通信線6を介して接続し、各GW10のメッセージ送信に2つずつの通信線6を割り当てる構成としたが、これに限るものではない。2つのGW10を更に多くの通信線6を介して接続する構成としてもよい。例えば2つのGW10を6つの通信線6を介して接続し、各GW10のメッセージ送信に3つずつの通信線6を割り当てる構成としてもよい。この構成の場合、GW10は3つの通信線6から所定の順番で1つの通信線6を選択し、選択した通信線6を介して他のGW10へメッセージを送信すればよい。 In the third embodiment, two GWs 10 are connected via four communication lines 6, and two communication lines 6 are assigned to each GW 10 for message transmission. However, the present invention is not limited to this. The configuration may be such that the two GWs 10 are connected via more communication lines 6. For example, two GWs 10 may be connected via six communication lines 6, and three communication lines 6 may be assigned to each GW 10 for message transmission. In the case of this configuration, the GW 10 may select one communication line 6 from the three communication lines 6 in a predetermined order, and transmit a message to another GW 10 via the selected communication line 6.
 実施の形態3に係る車載通信システム301のその他の構成は、実施の形態1に係る車載通信システム101と同様であるため、同様の箇所には同じ符号を付し、詳細な説明を省略する。 た め Other configurations of the in-vehicle communication system 301 according to the third embodiment are the same as those of the in-vehicle communication system 101 according to the first embodiment, and therefore, similar portions are denoted by the same reference numerals and detailed description thereof will be omitted.
 車載通信システムにおける各装置は、マイクロプロセッサ、ROM及びRAM等を含んで構成されるコンピュータを備える。マイクロプロセッサ等の演算処理部は、図3に示すような、シーケンス図又はフローチャートの各ステップの一部又は全部を含むコンピュータプログラムを、ROM、RAM等の記憶部からそれぞれ読み出して実行する。これら複数の装置のコンピュータプログラムは、それぞれ、外部のサーバ装置等からインストールすることができる。また、これら複数の装置のコンピュータプログラムは、それぞれ、CD-ROM、DVD-ROM、半導体メモリ等の記録媒体に格納された状態で流通する。 Each device in the in-vehicle communication system includes a computer including a microprocessor, a ROM, a RAM, and the like. An arithmetic processing unit such as a microprocessor reads out and executes a computer program including a part or all of each step of a sequence diagram or a flowchart from a storage unit such as a ROM and a RAM as shown in FIG. Each of the computer programs of the plurality of devices can be installed from an external server device or the like. The computer programs of the plurality of devices are distributed in a state where they are stored in recording media such as a CD-ROM, a DVD-ROM, and a semiconductor memory.
 今回開示された実施形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本開示の範囲は、上記した意味ではなく、請求の範囲によって示され、請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 The embodiment disclosed this time is an example in all respects, and should not be considered as restrictive. The scope of the present disclosure is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
 1 車載通信システム
 3 ECU
 5 通信線
 6,6a,6b,6c,6d 通信線
 10,10a,10b GW(車載中継装置)
 11 処理部(メッセージ送信部)
 11a 中継処理部
 11b 選択処理部
 11c 送信処理部
 12 記憶部
 12a 通信プログラム
 12b 送信先マップ
 13 通信部
 14 通信部
 15 接続部
 16 接続部
 17 通信バッファ
 99 記録媒体
 100 車両
 101 車載通信システム
 201 車載通信システム
 301 車載通信システム
 
1 in-vehicle communication system 3 ECU
5 Communication line 6, 6a, 6b, 6c, 6d Communication line 10, 10a, 10b GW (vehicle relay device)
11 Processing unit (message transmission unit)
11a relay processing unit 11b selection processing unit 11c transmission processing unit 12 storage unit 12a communication program 12b destination map 13 communication unit 14 communication unit 15 connection unit 16 connection unit 17 communication buffer 99 recording medium 100 vehicle 101 vehicle-mounted communication system 201 vehicle-mounted communication system 301 In-vehicle communication system

Claims (7)

  1.  通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置を2つ備え、
     2つの前記車載中継装置は、2つ以上の通信線を介して接続され、
     前記車載中継装置は、他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択して送信するメッセージ送信部を有する、車載通信システム。
    A plurality of in-vehicle relay devices each having a plurality of connection units to which communication lines are connected, and relaying transmission and reception of a message via the plurality of communication lines connected to the connection unit,
    The two in-vehicle relay devices are connected via two or more communication lines,
    The in-vehicle relay device includes a message transmission unit that transmits a message to be transmitted to another in-vehicle relay device by selecting one communication line from the two or more communication lines in a predetermined order and transmitting the message.
  2.  2つの前記車載中継装置は、2つの通信線を介して接続され、
     前記メッセージ送信部は、前記2つの通信線のうちの1つの通信線を交互に選択してメッセージを送信する、請求項1に記載の車載通信システム。
    The two in-vehicle relay devices are connected via two communication lines,
    The in-vehicle communication system according to claim 1, wherein the message transmitting unit alternately selects one of the two communication lines and transmits a message.
  3.  2つの前記車載中継装置は、一方の車載中継装置から他方の車載中継装置へのメッセージ送信に用いられる一又は複数の通信線と、他方の車載中継装置から一方の車載中継装置へのメッセージ送信に用いられる一又は複数の通信線とを介して接続され、
     前記メッセージ送信部は、他の車載中継装置へのメッセージ送信に用いることが可能な一又は複数の通信線から1つの通信線を選択してメッセージを送信する、請求項1に記載の車載通信システム。
    The two in-vehicle relay devices are used to transmit one or more communication lines used for transmitting a message from one in-vehicle relay device to the other in-vehicle relay device, and to transmit a message from the other in-vehicle relay device to one in-vehicle relay device. Connected via one or more communication lines used,
    The in-vehicle communication system according to claim 1, wherein the message transmission unit selects one communication line from one or a plurality of communication lines that can be used for transmitting a message to another in-vehicle relay device, and transmits the message. .
  4.  通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置を2つ備え、
     2つの前記車載中継装置は、一方の車載中継装置から他方の車載中継装置へのメッセージ送信に用いられる通信線と、他方の車載中継装置から一方の車載中継装置へのメッセージ送信に用いられる通信線とを介して接続されている、車載通信システム。
    A plurality of in-vehicle relay devices each having a plurality of connection units to which communication lines are connected, and relaying transmission and reception of a message via the plurality of communication lines connected to the connection unit,
    The two in-vehicle relay devices are a communication line used for transmitting a message from one in-vehicle relay device to the other in-vehicle relay device, and a communication line used for transmitting a message from the other in-vehicle relay device to one in-vehicle relay device. An in-vehicle communication system that is connected via
  5.  通信線がそれぞれ接続される複数の接続部を有し、前記接続部に接続された複数の通信線を介したメッセージの送受信を中継する車載中継装置であって、
     他の車載中継装置と2つ以上の通信線を介して接続され、
     前記他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択して送信するメッセージ送信部を備える、車載中継装置。
    An in-vehicle relay device that has a plurality of connection units each connected to a communication line, and relays transmission and reception of a message through a plurality of communication lines connected to the connection unit,
    Connected to other in-vehicle relay devices via two or more communication lines,
    An in-vehicle relay device, comprising: a message transmission unit that selects one of the two or more communication lines and transmits a message to be transmitted to the other in-vehicle relay device in a predetermined order.
  6.  通信線がそれぞれ接続される複数の接続部を有し、他の車載中継装置と2つ以上の通信線を介して接続される車載中継装置に、
     前記他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択し、
     選択した通信線を介して前記他の車載中継装置へメッセージを送信する
     処理を行わせる通信プログラム。
    The communication line has a plurality of connecting portions to be connected to each other, the vehicle-mounted relay device connected to another vehicle-mounted relay device via two or more communication lines,
    A message to be transmitted to the other in-vehicle relay device, selecting one communication line from the two or more communication lines in a predetermined order,
    A communication program for performing a process of transmitting a message to the other in-vehicle relay device via the selected communication line.
  7.  通信線がそれぞれ接続される複数の接続部を有する2つの車載中継装置を、2つ以上の通信線を介して接続し、
     前記車載中継装置が、他の車載中継装置へ送信すべきメッセージを、前記2つ以上の通信線から1つの通信線を所定の順番で選択し、
     選択した通信線を介して前記他の車載中継装置へメッセージを送信する、通信方法。
     
    Two in-vehicle relay devices having a plurality of connection units to which communication lines are respectively connected are connected via two or more communication lines,
    The in-vehicle relay device selects a message to be transmitted to another in-vehicle relay device, one communication line from the two or more communication lines in a predetermined order,
    A communication method for transmitting a message to the other in-vehicle relay device via a selected communication line.
PCT/JP2019/030191 2018-08-07 2019-08-01 In-vehicle communication system, in-vehicle relay device, communication program, and communication method WO2020031835A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018-148741 2018-08-07
JP2018148741A JP2020025192A (en) 2018-08-07 2018-08-07 Vehicle-mounted communication system, vehicle-mounted relay device, communication program, and communication method

Publications (1)

Publication Number Publication Date
WO2020031835A1 true WO2020031835A1 (en) 2020-02-13

Family

ID=69414178

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/030191 WO2020031835A1 (en) 2018-08-07 2019-08-01 In-vehicle communication system, in-vehicle relay device, communication program, and communication method

Country Status (2)

Country Link
JP (1) JP2020025192A (en)
WO (1) WO2020031835A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04156746A (en) * 1990-10-19 1992-05-29 Nec Corp Discrimination system for divided receive data
JP2005229201A (en) * 2004-02-10 2005-08-25 Nanotex Corp Communication system, communication method for communication system, communication apparatus, program and storage medium
JP2007174085A (en) * 2005-12-20 2007-07-05 Auto Network Gijutsu Kenkyusho:Kk On-vehicle lan system, electronic control unit, and relay connection unit
JP2009055212A (en) * 2007-08-24 2009-03-12 Hitachi Communication Technologies Ltd Optical transmission system and signal speed converter
JP2014068110A (en) * 2012-09-25 2014-04-17 Mitsubishi Electric Corp Communication device and switching control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04156746A (en) * 1990-10-19 1992-05-29 Nec Corp Discrimination system for divided receive data
JP2005229201A (en) * 2004-02-10 2005-08-25 Nanotex Corp Communication system, communication method for communication system, communication apparatus, program and storage medium
JP2007174085A (en) * 2005-12-20 2007-07-05 Auto Network Gijutsu Kenkyusho:Kk On-vehicle lan system, electronic control unit, and relay connection unit
JP2009055212A (en) * 2007-08-24 2009-03-12 Hitachi Communication Technologies Ltd Optical transmission system and signal speed converter
JP2014068110A (en) * 2012-09-25 2014-04-17 Mitsubishi Electric Corp Communication device and switching control method

Also Published As

Publication number Publication date
JP2020025192A (en) 2020-02-13

Similar Documents

Publication Publication Date Title
CN108476162B (en) Network hub, forwarding method and vehicle-mounted network system
JP6961062B2 (en) Electronic control unit, communication method and in-vehicle network system
JP2007300331A (en) Onboard database system
JP2010021806A (en) Relay apparatuses, communication system, and communication method
WO2020017424A1 (en) In-vehicle communication device, communication program, and message transmission method
JP2008227741A (en) On-vehicle communication system
JP4839140B2 (en) Relay connection unit
CN113545012B (en) Communication device, communication system, and message arbitration method
JP2007135011A (en) Trunk connection unit and virtual mobile lan system
WO2020031835A1 (en) In-vehicle communication system, in-vehicle relay device, communication program, and communication method
JP2008099014A (en) In-vehicle communication method, in-vehicle communication system, relay device and on-vehicle communication equipment
JP4709037B2 (en) In-vehicle database system
CN112787901B (en) Network hub, forwarding method and vehicle-mounted network system
JP5900198B2 (en) COMMUNICATION SYSTEM, RELAY DEVICE, AND COMMUNICATION DEVICE
CN108631943A (en) Communication device, communication means and storage medium
JP2019202605A (en) On-vehicle communication device and communication method
JP7162578B2 (en) vehicle control system
JP4954832B2 (en) In-vehicle communication system
JP6962301B2 (en) Relay device
WO2020031764A1 (en) Onboard communication device, communication program, and message transmission method
JP7059806B2 (en) In-vehicle communication system, in-vehicle relay device, communication program and communication method
JP5278886B2 (en) Relay connection unit
US10777079B2 (en) Methods and systems for estimating an end of a vehicle trip
JP2023138249A (en) Control system, control method of control system, electronic device, and program
JP2022085574A (en) In-vehicle communication device, in-vehicle communication system, and in-vehicle communication method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19847679

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19847679

Country of ref document: EP

Kind code of ref document: A1