WO2019221058A1 - Vehicle-mounted relay device, communication system, bus determination method, and computer program - Google Patents

Vehicle-mounted relay device, communication system, bus determination method, and computer program Download PDF

Info

Publication number
WO2019221058A1
WO2019221058A1 PCT/JP2019/018933 JP2019018933W WO2019221058A1 WO 2019221058 A1 WO2019221058 A1 WO 2019221058A1 JP 2019018933 W JP2019018933 W JP 2019018933W WO 2019221058 A1 WO2019221058 A1 WO 2019221058A1
Authority
WO
WIPO (PCT)
Prior art keywords
bus
transmission
data
communication device
determination
Prior art date
Application number
PCT/JP2019/018933
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 WO2019221058A1 publication Critical patent/WO2019221058A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • 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

Definitions

  • the present invention relates to an in-vehicle relay device, a communication system, a bus determination method, and a computer program.
  • the program or data stored in the storage unit of the ECU of the vehicle needs to be updated to be rewritten with a new program or data, for example, when there is a need for function addition, defect correction, version upgrade, or the like. Yes, an update program or data is transmitted to the ECU to be updated by a communication line.
  • Patent Literature 1 when an update file is received regarding the update of an in-vehicle program by radio, the current vehicle load state is a low load state in which a program corresponding to the update file can be updated, or this program is If it is determined whether it is a non-updatable high load state and it is determined that the load is low, the program corresponding to the update file is updated, and if it is determined that the load is high, the current vehicle An in-vehicle program update device that changes a load state to a low load state is disclosed.
  • a plurality of buses are connected, and in the in-vehicle relay device that transmits data to the communication device connected to the bus, the plurality of data to be transmitted to the plurality of communication devices
  • a receiving unit that receives data
  • a determination unit that determines whether a transmission destination of received data is a first communication device connected to one bus or a second communication device connected to two or more buses
  • a determination unit that determines a bus to be used for transmission of each received data based on the determination result of the determination unit.
  • a communication system is a communication system including an information processing device and an in-vehicle relay device that is connected to a plurality of buses and transmits data to the communication device connected to the bus.
  • a transmission destination is a first communication device connected to one bus of the in-vehicle relay device, or two or more buses of the in-vehicle relay device
  • a determination unit that determines whether the second communication device is connected; a determination unit that determines a bus used for transmission of each transmission data by the in-vehicle relay device based on a determination result of the determination unit; and the determination
  • An adder for attaching the bus data representing the bus determined by the transmission unit to each transmission data, and a transmission unit for transmitting the plurality of transmission data to which the bus data is attached to the in-vehicle relay device.
  • the vehicle relay device includes a receiver which receives the plurality of transmitted data from the information processing apparatus, on the basis of the bus data attached
  • a bus determination method includes a bus that determines a bus to be used for transmitting the data in an in-vehicle relay device that is connected to a plurality of buses and transmits data to a communication device connected to the bus.
  • a plurality of data to be transmitted to a plurality of communication devices are received, and a transmission destination of the received data is a first communication device connected to one bus, or a second connected to two or more buses. Determining whether the communication device is used, and determining a bus to be used for transmission of each received data based on the result of the determination.
  • a computer program has a plurality of buses connected thereto, and receives a plurality of data to be transmitted to the plurality of communication devices to a computer that transmits data to the communication devices connected to the bus, It is determined whether the destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses, and based on the result of the determination, A process for determining a bus used for transmission of received data is executed.
  • FIG. 1 is a block diagram illustrating a main configuration of a vehicle according to a first embodiment.
  • the vehicle-mounted relay apparatus which concerns on this embodiment, it is a conceptual diagram which shows notionally the LUT which a memory
  • the vehicle-mounted relay apparatus which concerns on this embodiment, it is a conceptual diagram which shows notionally an example of the table of a "decision list" before a bus determination process.
  • the in-vehicle relay device concerning this embodiment, it is a flow chart explaining the bus decision processing by a control part.
  • FIG. 1 It is a conceptual diagram which shows notionally the example of writing of the table of "decision list” in the bus determination process which concerns on this embodiment. It is a conceptual diagram which shows notionally the example of writing of the table of "decision list” in the bus determination process which concerns on this embodiment. It is a block diagram which shows the principal part structure of the vehicle-mounted communication system which concerns on Embodiment 2. FIG. It is a functional block diagram which shows the principal part structure of the control part of a server apparatus in the vehicle-mounted communication system which concerns on this embodiment. In the in-vehicle communication system concerning this embodiment, it is a flowchart explaining the processing in which the control part of a server apparatus transmits the program for updating.
  • an object of the present invention is to provide an in-vehicle relay device, a communication system, a bus determination method, and a computer program capable of transmitting data within the shortest time when transmitting a plurality of data to a plurality of transmission destinations.
  • a plurality of buses are connected, and in the in-vehicle relay device that transmits data to the communication device connected to the bus, a plurality of devices to be transmitted to the plurality of communication devices And a determination unit that determines whether the reception destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses. And a determination unit that determines a bus used for transmission of each received data based on the determination result of the determination unit.
  • the determination unit determines whether the transmission destination of the reception data is the first communication device or the first communication device. It determines whether it is 2 communication apparatuses, and the said determination part determines the bus
  • the in-vehicle relay device includes a storage unit that stores each communication device in association with a bus to which each communication device is connected, and the determination unit stores the content stored in the storage unit. Based on this, the determination is made.
  • the determination unit when the reception unit receives a plurality of data to be transmitted to a plurality of communication devices, the determination unit performs the determination described above, and the determination unit determines the determination result of the determination unit and Based on the storage contents of the storage unit, the bus used for transmission of each received data is determined. For example, when it is determined that the transmission destination of the received data is the second communication device, the determination unit determines whether two or more of the second communication devices are connected based on the storage content of the storage unit. A bus that is not used for transmission of other received data is selected from the buses. Therefore, when transmitting a plurality of reception data to a plurality of transmission destinations, it is possible to shorten the transmission time of the reception data to the transmission destination.
  • the determination unit preferentially determines a bus used for transmission of reception data whose transmission destination is the first communication device, and the storage unit A correspondence relationship in which one bus determined by the determination unit is associated with a transmission destination of received data transmitted using the one bus is stored.
  • the bus used for the transmission of the reception data whose transmission destination is the first communication device is preferentially determined, and the determined bus is associated with the transmission destination of the corresponding reception data.
  • the storage unit stores the correspondence relationship. In this way, the bus used for transmission to the first communication device that cannot select the bus is determined with priority, and then the bus used for transmission to the second communication device that can select the bus is already determined. It is decided not to overlap as much as possible. Accordingly, it is possible to more effectively suppress duplication of buses used for transmission of received data.
  • the determination unit is a bus having no corresponding transmission destination based on the correspondence relationship. Is determined as the bus used for transmission.
  • the determination unit determines a bus related to received data whose destination is the first communication device, and then determines a bus related to received data whose destination is the second communication device. decide.
  • the determination unit uses a bus having no corresponding transmission destination among two or more buses connected to the second communication device as a bus used for transmission. decide. Therefore, when transmitting a plurality of reception data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and the transmission time of the reception data to the transmission destination can be shortened.
  • the determination unit determines a bus having the smallest corresponding transmission destination as a bus used for transmission.
  • the determination unit determines a bus related to received data whose destination is the first communication device, and then determines a bus related to received data whose destination is the second communication device. decide. At this time, if there is no bus having no corresponding destination among the two or more buses connected to the second communication device in the correspondence relationship at that time, the determining unit transmits the bus having the smallest corresponding destination. It is determined as a bus to be used for. Therefore, when transmitting a plurality of reception data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and the transmission time of the reception data to the transmission destination can be shortened.
  • a communication system is the communication system including an information processing device and an in-vehicle relay device that is connected to a plurality of buses and transmits data to the communication device connected to the bus.
  • the processing device is configured such that a plurality of transmission data to be transmitted to a plurality of communication devices is a first communication device connected to one bus of the in-vehicle relay device, or two or more of the in-vehicle relay devices
  • a determination unit that determines whether the second communication device is connected to the bus, and a determination unit that determines a bus used for transmission of each transmission data by the in-vehicle relay device based on a determination result of the determination unit
  • An adding unit that attaches bus data representing the bus determined by the determining unit to each transmission data; and a transmission unit that transmits the plurality of transmission data to which the bus data is attached to the in-vehicle relay device.
  • the in-vehicle relay device includes a receiver which receives the plurality of transmitted data from the information processing
  • the information processing apparatus determines whether the transmission destination is the first communication apparatus or the second communication apparatus for a plurality of transmission data, and determines the result of the determination. Based on this, the bus used for transmission of each transmission data by the in-vehicle relay device is determined, and the bus data representing the determined bus is attached to each transmission data and transmitted to the in-vehicle relay device.
  • the in-vehicle relay device receives the plurality of transmission data from the information processing device, and transmits the transmission data to the communication device based on bus data attached to the transmission data. For example, when it is determined that the transmission destination of the transmission data is the second communication device, the information processing device selects a bus that is not used for transmission of other transmission data.
  • the transmission time to the transmission destination can be shortened. Further, as described above, since the information processing device performs the process of determining the bus, the processing load on the in-vehicle relay device is reduced, and the transmission data is quickly processed in the in-vehicle relay device.
  • the information processing device includes a storage unit that stores each communication device in association with the bus of the in-vehicle relay device to which the communication device is connected, The determination unit performs the determination based on the storage content of the storage unit.
  • the information processing device determines whether the transmission destination is the first communication device or the second communication device for each transmission data.
  • the bus used for transmission by the in-vehicle relay device is determined based on the result of the determination and the contents stored in the storage unit. For example, when it is determined that the transmission destination of the transmission data is the second communication device, the information processing device is connected to the two or more connected to the second communication device based on the storage content of the storage unit. A bus that is not used for transmitting other transmission data is selected from the buses. Therefore, when the in-vehicle relay device transmits a plurality of transmission data to a plurality of transmission destinations, it is possible to shorten the transmission time of the transmission data to the transmission destinations.
  • the determination unit prioritizes determination of a bus used for transmission by the in-vehicle relay device with respect to transmission data whose transmission destination is the first communication device.
  • the storage unit stores a correspondence relationship in which one bus determined by the determination unit is associated with a transmission destination of transmission data transmitted by the in-vehicle relay device using the one bus.
  • the bus used for transmission of transmission data whose transmission destination is the first communication device is preferentially determined, and the determined bus is associated with the transmission destination of the corresponding transmission data.
  • the storage unit stores the corresponding relationship. In this way, the bus used for transmission to the first communication device that cannot select the bus is determined with priority, and then the bus used for transmission to the second communication device that can select the bus is already determined. It is decided not to overlap as much as possible. Therefore, duplication of buses used for transmission of transmission data can be more effectively suppressed.
  • the determination unit uses a bus having no corresponding transmission destination based on the correspondence relationship.
  • the bus is used for transmission by the in-vehicle relay device.
  • the determination unit determines a bus related to transmission data whose transmission destination is the first communication device, and then determines a bus related to transmission data whose transmission destination is the second communication device. decide.
  • the determination unit uses a bus having no corresponding transmission destination among two or more buses connected to the second communication device as a bus used for transmission. decide. Therefore, when transmitting a plurality of transmission data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and the transmission time of the transmission data to the transmission destination can be shortened.
  • the determination unit determines the bus having the smallest corresponding transmission destination as a bus used for transmission by the in-vehicle relay device. To do.
  • the determination unit determines a bus related to transmission data whose transmission destination is the first communication device, and then determines a bus related to transmission data whose transmission destination is the second communication device. decide. At this time, if there is no bus having no corresponding destination among the two or more buses connected to the second communication device in the correspondence relationship at that time, the determining unit transmits the bus having the smallest corresponding destination. It is determined as a bus to be used for. Therefore, when transmitting a plurality of transmission data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and to shorten the transmission time of the transmission data to the transmission destination.
  • a bus determination method In the bus determination method according to one aspect of the present disclosure, a plurality of buses are connected, and a bus used for transmitting the data is transmitted in an in-vehicle relay device that transmits data to a communication device connected to the bus.
  • a bus determination method for determining a plurality of data to be transmitted to a plurality of communication devices are received, and a transmission destination of received data is a first communication device connected to one bus, or connected to two or more buses Determining whether the second communication device is to be used, and determining a bus to be used for transmission of each received data based on the result of the determination.
  • the transmission destination of the received data is the first communication device or the second communication device, Based on the result of such determination, the bus used for transmission of each received data is determined. For example, when it is determined that the transmission destination of received data is the second communication device, a bus that is not used for transmitting other received data is selected from two or more buses connected to the second communication device. The Therefore, when transmitting a plurality of received data to a plurality of transmission destinations, the transmission time to the transmission destination can be shortened.
  • a plurality of buses are connected, and a plurality of data to be transmitted to a plurality of communication devices are transmitted to a computer that transmits data to the communication devices connected to the bus. It is determined whether the reception destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses, and based on the result of the determination Thus, processing for determining the bus used for transmission of each received data is executed.
  • a plurality of data to be transmitted to a plurality of communication devices are received under the control of a computer included in the in-vehicle relay device, and the transmission destination of the received data is the first communication device. It is determined whether it is a two-communication device, and the bus used for transmission of each received data is determined based on the result of such determination. For example, when it is determined that the transmission destination of received data is the second communication device, a bus that is not used for transmitting other received data is selected from two or more buses connected to the second communication device. The Therefore, when transmitting a plurality of received data to a plurality of transmission destinations, the transmission time to the transmission destination can be shortened.
  • FIG. 1 is a block diagram illustrating a main configuration of a vehicle C according to the first embodiment.
  • the vehicle C according to the present embodiment includes one in-vehicle relay device 10, a plurality of ECUs (Electronic Control Units) 20, and a wireless communication device 30.
  • ECUs 20 communication devices: ECU1, ECU2,.
  • ECU1, ECU2,... ECU9 are collectively referred to as ECU20.
  • buses 1 (B1), 2 (B2), and 3 (B3) are connected to the in-vehicle relay device 10.
  • ECU1, ECU2,... ECU9 are connected to the in-vehicle relay device 10 via buses B1, B2, B3.
  • ECU1, ECU2,..., ECU9 are divided into three groups and connected to buses B1, B2, B3.
  • ECU1, ECU2, and ECU3 are connected to the bus B1, ECU4, ECU5, ECU3, and ECU7 are connected to the bus B2, and ECU6, ECU7, ECU8, and ECU9 are connected to the bus B3. That is, ECU1, ECU2, ECU4, ECU5, ECU6, ECU8, and ECU9 are connected to only one of the buses B1, B2, and B3.
  • ECU3, ECU7 is connected with two buses among buses B1, B2, B3.
  • the case where ECU3 and ECU7 are connected to two buses will be described as an example. However, the present invention is not limited to this, and the ECU3 and ECU7 are configured to be connected to three or more buses. May be.
  • ECU1, ECU2, ECU4, ECU5, ECU6, ECU8, and ECU9 connected to only one bus are referred to as a single connection ECU (first communication device), and ECU3 is connected to two buses.
  • ECU7 is referred to as a multiple connection ECU (second communication device).
  • Each ECU 20 can transmit / receive a message (frame data) to / from the in-vehicle relay device 10 via the bus B1, B2 or B3.
  • the buses B1, B2, and B3 are, for example, twisted pair wires.
  • the vehicle C includes nine ECUs 20
  • the present invention is not limited to this, and may be configured to include nine or more or nine or less ECUs.
  • ECU1, ECU2,..., ECU9 include, for example, an ECU that controls the opening and closing of the door of the vehicle C, an ECU that controls the operation of the engine of the vehicle C, an ECU that controls the operation of the airbag, and an ABS (Antilock Brake System)
  • ECUs such as an ECU that controls the operation of the ECU are included.
  • the ECU 20 performs each process by reading and executing a program and data stored in an internal storage unit.
  • the program or data stored in the ECU 20 may be updated for the purpose of, for example, function addition or defect correction.
  • the wireless communication device 30 acquires an update program or data necessary for the program update process of the ECU 20 from the outside.
  • the wireless communication device 30 transmits the acquired frame data to the in-vehicle relay device 10.
  • Such frame data includes, for example, an update program or data for updating the program of the ECU 20.
  • the in-vehicle relay device 10 includes a control unit 11, a reception unit 13, a transmission unit 12, a buffer 14, a storage unit 15, and the like.
  • the in-vehicle relay device 10 receives the frame data from the wireless communication device 30 and extracts and stores the above-described program or data.
  • the in-vehicle relay device 10 transmits the update program stored through the buses B1, B2, and B3 to the ECU 20 to be updated.
  • the ECU 20 that has received the update program or the like from the in-vehicle relay device 10 performs a process of updating the program or data stored in the storage unit while executing the operation of the own machine.
  • the storage unit of the ECU 20 has two parts, and the update program and the like are written in the other part while executing the operation of the own machine using one part (used part).
  • the update program or the like is transmitted with a low load that does not affect the operation.
  • the used part is switched from the one part to the other part.
  • the control unit 11 includes an arithmetic processing unit such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit), and is stored in the storage unit 15 or a ROM (Read Only Memory) (see FIG. 3). Various processes are performed by executing various programs. In the present embodiment, the control unit 11 performs, for example, processing for transmitting an update program or the like to the ECU 20 to be updated, processing for determining a bus used for transmission of the update program, or the like.
  • arithmetic processing unit such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit)
  • ROM Read Only Memory
  • the buffer 14 is configured using a memory element such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory).
  • SRAM Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • the receiving unit 13 and the transmitting unit 12 are connected to the buses B1, B2, and B3, transmit / receive frame data to / from the ECU 20 via the buses B1, B2, and B3, and receive frame data from the wireless communication device 30. .
  • the receiving unit 13 and the transmitting unit 12 may be configured using a so-called CAN controller.
  • the transmission unit 12 reads transmission data (for example, an update program) stored in the buffer 14 in accordance with an instruction from the control unit 11, and converts the read data into frame data according to a predetermined communication protocol. And it transmits to ECU20 by outputting to bus
  • transmission data for example, an update program
  • the receiving unit 13 receives frame data including the update program acquired by the wireless communication device 30, extracts the update program from the received frame data, stores it in the buffer 14, updates the program, etc. Is notified to the control unit 11.
  • the storage unit 15 is configured using, for example, an EEPROM (Electrically Erasable Programmable Read Only Memory) or a rewritable nonvolatile memory element such as a flash memory.
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • a rewritable nonvolatile memory element such as a flash memory.
  • the storage unit 15 stores an LUT (Look Up Table).
  • FIG. 2 is a conceptual diagram conceptually showing the LUT stored in the storage unit 15 in the in-vehicle relay device 10 according to the present embodiment.
  • the LUT is associated with identification data (ID) of each ECU 20 and a bus to which each ECU 20 is connected (hereinafter referred to as a connection bus).
  • ID identification data
  • connection bus a bus to which each ECU 20 is connected
  • the control unit 11 Based on the LUT in the storage unit 15, the control unit 11 performs processing for determining a bus used for transmission of an update program or the like (hereinafter referred to as bus determination processing).
  • the storage unit 15 stores a program P for performing bus determination processing.
  • the program P corresponds to, for example, the processing of each step in FIG. 5 described later, and the bus determination processing can be realized by the control unit 11 reading and executing the program P.
  • the storage unit 15 stores a “decision list” table and an “undecided list” table.
  • FIG. 3 is a conceptual diagram conceptually illustrating an example of a “decision list” table before the bus determination process in the in-vehicle relay device 10 according to the present embodiment.
  • the “determination list” table includes an update target ECU 20 (hereinafter also referred to as a transmission destination) to which an update program received from the wireless communication device 30 is to be transmitted, and a bus used to transmit such an update program or the like.
  • the bus determined in the bus determination process is associated with the bus. That is, the “determination list” table associates one bus determined by the bus determination process by the control unit 11 with a transmission destination of an update program or the like (received data) transmitted using the one bus. The corresponding relationship is shown.
  • the transmission destination is a single connection ECU among the plurality of update programs.
  • the bus determination process is preferentially performed for the update program. Therefore, until the bus determination process for the update program whose transmission destination is a single connection ECU is completed, the transmission destination of the update program whose transmission destination is a multiple connection ECU is temporarily written in the table of the “undecided list”. deep.
  • FIG. 4 is a functional block diagram illustrating a main configuration of the control unit 11 in the in-vehicle relay device 10 according to the present embodiment.
  • the control unit 11 includes a CPU 111, a ROM 112, a RAM 113, a determination unit 114, and a determination unit 115.
  • the ROM 112 stores in advance basic data, etc., among various control programs and calculation parameters, and the RAM 113 temporarily stores the data and reads it regardless of the storage order, storage position, etc. Is possible.
  • the RAM 113 stores, for example, a program read from the ROM 112, various data generated by executing the program, parameters that change as appropriate during the execution, and the like.
  • the CPU 111 performs the bus determination process described above by executing a control program stored in advance in the ROM 112.
  • the determination unit 114 When the determination unit 114 receives a plurality of update programs to be transmitted from the wireless communication device 30 to the plurality of ECUs 20, whether the transmission destination of each update program is a single connection ECU in the bus determination process, or It is determined whether the ECU is a multiple connection ECU.
  • the determination unit 115 determines an optimum bus to be used for transmission of each update program based on the determination result of the determination unit 114 with reference to the LUT in the storage unit 15. Details of the determination unit 114 and the determination unit 115 will be described later.
  • FIG. 5 is a flowchart for explaining bus determination processing by the control unit 11 in the in-vehicle relay device 10 according to the present embodiment.
  • the wireless communication device 30 receives five frame data including update programs A to E from the outside.
  • the transmission destination of the update program A is ECU1
  • the transmission destination of the update program B is ECU2
  • the transmission destination of the update program C is ECU3
  • the transmission destination of the update program D is ECU4
  • the transmission destination of the update program E Is an ECU 7. That is, the transmission destination of the update program A, the update program B, and the update program D is a single connection ECU, and the transmission destination of the update program C and the update program E is a multiple connection ECU.
  • the CPU 111 obtains transmission destination information from the header information of the frame data (step S101).
  • the determination unit 114 determines whether or not the transmission destination of the acquired update program A is a multi-connection ECU (step S102). Such a determination is made based on the LUT in the storage unit 15.
  • the determination unit 114 determines that the transmission destination is not a multiple connection ECU (NO in step S102).
  • the determination unit 115 determines an optimal bus used for transmission of the update program A with reference to the LUT in the storage unit 15 (step S103). Specifically, since the ECU 1 is connected only to the bus B1 from the LUT of the storage unit 15, the determination unit 115 determines the bus B1 as the optimum bus used for transmission of the update program A.
  • the CPU 111 stores the determination result made by the determination unit 115 in the “determination list” table (step S104). Specifically, the CPU 111 writes “ECU1” in the transmission destination column corresponding to the bus 1 (B1) of the “determined bus” in the “determination list” table of FIG.
  • the CPU 111 determines whether or not the writing process (hereinafter referred to as writing process) to the “decision list” table or the “undecided list” table has been completed for all received frame data (steps). S106).
  • writing process the writing process has been performed only on the frame data including the update program A. Therefore, the CPU 111 determines that the writing process has not been completed (step S106: NO), and returns the process to step S101. .
  • processing is performed on the frame data including the update program B. Such a process is the same as the process for the frame data including the update program A, and a description thereof will be omitted.
  • the CPU 111 acquires information on the transmission destination from the header information of the frame data (step S101). Further, the determination unit 114 determines whether or not the transmission destination of the acquired update program A is a multi-connection ECU (step S102).
  • the determination unit 114 determines that the transmission destination is the multiple connection ECU (step S102: YES). At this time, in order to preferentially perform the bus determination processing for the update program whose transmission destination is a single connection ECU, the CPU 111 sets the transmission destination (ECU 3) of the update program C in the “undecided list” table. Writing is performed temporarily (step S105).
  • step S106 determines whether or not the writing process has been completed for all received frame data. Up to this point, since the writing process has been performed only on the three frame data including the update programs A, B, and C, the CPU 111 determines that the writing process has not been completed (step S106: NO). ), The process returns to step S101 again.
  • the “determination list” table stores correspondences with a single connection ECU. That is, as shown in FIG. 6, “ECU1, ECU2” is written in the destination column corresponding to bus 1 (B1) of “determined bus”, and the destination column corresponding to bus 2 (B2). "ECU4" is written. Further, “ECU3, ECU7” is written in the “undetermined list” table (not shown).
  • step S106 when it is determined that the writing process has been completed for all the received frame data (step S106: YES), the CPU 111 checks the “undetermined list” table to write the transmission destination. It is determined whether or not there is (step S107).
  • step S107: NO If the CPU 111 determines that there is no writing in the “undetermined list” table (step S107: NO), the process ends. On the other hand, when the CPU 111 determines that there is a write in the “undetermined list” table (step S107: YES), the determining unit 115 selects the first ECU written in the “undetermined list” table (step S108). ). As described above, since “ECU3, ECU7” is currently written in the “undecided list” table, the determination unit 115 selects “ECU3” as the first ECU and performs the bus determination process.
  • the determination unit 115 determines whether there is a bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 in the correspondence relationship of FIG. 6 (step S109).
  • the ECU 3 is currently selected, and the connection buses of the ECU 3 are the bus B1 and the bus B2.
  • the determination unit 115 determines that there is no bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 (step S109: NO).
  • the determination unit 115 determines the bus with the smallest number of corresponding transmission destinations as the bus used for transmission (step S113). Specifically, the connection buses of the ECU 3 are the bus B1 and the bus B2, and in the correspondence relationship, two ECUs are associated with the bus 1 (B1), and one ECU is associated with the bus 2 (B2). (See FIG. 6). Therefore, the determination part 115 determines bus B2 among the connection buses of ECU3 as a bus used for transmission.
  • the CPU 111 writes and stores the determination result in step S113 in the “determination list” table of the storage unit 15 (step S111). That is, the CPU 111 writes “ECU3” in the transmission destination column corresponding to the bus 2 (B2) of the “determined bus” as in the “determination list” table shown in FIG. Further, the CPU 111 deletes the ECU 3 from the table in the “undecided list” column of the storage unit 15 (step S112).
  • step S114 determines whether or not the bus determination process for the transmission destination written in the “undetermined list” table is completed. Such a determination is made by checking the table of the “undecided list”. Currently, the ECU 3 is deleted, but the ECU 7 is still written. Therefore, the CPU 111 determines that the bus determination process for the transmission destination written in the “undetermined list” table is not completed (step S114: NO), and returns the process to step S108.
  • the determination unit 115 selects the first ECU written in the “undecided list” table (step S108). As described above, since only the ECU 7 is currently written in the “undetermined list” table, the determination unit 115 selects “ECU 7” as the first ECU and performs the bus determination process.
  • the determination unit 115 determines whether there is a bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 in the correspondence relationship of FIG. 7 (step S109).
  • the ECU 7 is currently selected, and the connection buses of the ECU 7 are the bus B2 and the bus B3.
  • the determination unit 115 determines that there is a bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 (step S109: YES).
  • the determination unit 115 determines a bus having no corresponding transmission destination as a bus used for transmission (step S110).
  • the connection buses of the ECU 7 are the bus B2 and the bus B3, two ECUs are associated with the bus 2 (B2), and no ECU is associated with the bus 3 (B3) ( (See FIG. 7). Therefore, the determination part 115 determines bus B3 among the connection buses of ECU7 as a bus used for transmission.
  • the CPU 111 writes and stores the determination result in step S110 in the “determination list” table of the storage unit 15 (step S111). That is, the CPU 111 writes “ECU7” in the transmission destination column corresponding to the bus 3 (B3) of the “determined bus” in the “determination list” table of FIG. Further, the CPU 111 deletes the ECU 7 from the “undecided list” table in the storage unit 15 (step S112).
  • the CPU 111 determines whether or not the bus determination process for the transmission destination written in the “undetermined list” table is completed (step S114).
  • the ECU 3 and the ECU 7 are all deleted from the “undetermined list” table. Accordingly, the CPU 111 determines that the bus determination process for the transmission destination written in the “undetermined list” table is completed (step S114: YES), and ends the process.
  • the transmission unit 12 transmits the update programs A to E to the target ECU 20 via the bus determined in the bus determination process as described above.
  • the in-vehicle relay device 10 when receiving a plurality of update programs, etc., duplicates the bus used for transmission of each update program to the transmission destination. As much as possible, the program update in the target ECU can be performed within the shortest time.
  • the bus determination process is preferentially performed. That is, the bus used for transmission to the single connection ECU in which the bus cannot be selected is determined with priority, and then the bus used for transmission to the multiple connection ECU does not overlap with the already determined bus as much as possible. To be determined selectively. Accordingly, it is possible to more effectively suppress duplication of buses used for transmission of update programs and the like.
  • determination unit 114 and the determination unit 115 described above may be configured by hardware logic, or may be constructed in software by the CPU 111 executing a predetermined program.
  • FIG. 8 is a block diagram illustrating a main configuration of the in-vehicle communication system 100 according to the second embodiment.
  • the in-vehicle communication system 100 according to the present embodiment includes a vehicle C and a server device 40.
  • the vehicle C includes one in-vehicle relay device 10, a plurality of ECUs 20, and a wireless communication device 30.
  • ECU1, ECU2,... ECU9 are collectively referred to as ECU20.
  • the server device 40 transmits frame data including an update program or data necessary for a program update process of the ECU 20 to the wireless communication device 30 of the vehicle C.
  • the wireless communication device 30 transmits the received frame data to the in-vehicle relay device 10, and the in-vehicle relay device 10 transmits this to the ECU 20 to be updated.
  • the main configuration of the vehicle C according to the present embodiment is the same as that of the vehicle C according to the first embodiment, and detailed description thereof is omitted.
  • the server device 40 includes a control unit 41, a transmission unit 42, a storage unit 43, and the like.
  • the control unit 41 includes an arithmetic processing unit such as a CPU or an MPU, for example, and performs various processes by executing various programs stored in the storage unit 43 or the ROM (see FIG. 9).
  • the storage unit 43 stores an update program for updating the program of each ECU 20 of the vehicle C, and the control unit 41, for example, a process of transmitting the update program of each ECU 20 to the vehicle C, and Processing (bus determination processing) for determining a bus used in advance when transmitting such an update program or the like to the target ECU 20 in the vehicle C is performed.
  • control unit 41 stores bus information (bus data) representing the determined specific bus in the predetermined update program. Attached.
  • the storage unit 43 is configured using a non-volatile rewritable memory element such as an EEPROM or a flash memory.
  • the storage unit 43 stores an LUT.
  • the LUT is associated with identification data (ID) of each ECU 20 of the vehicle C and a connection bus to which each ECU 20 is connected (see FIG. 2).
  • the control unit 41 Based on the LUT in the storage unit 43, the control unit 41 performs a bus determination process for determining a bus used for transmission of an update program or the like in the vehicle C.
  • the storage unit 43 stores a program P for performing bus determination processing.
  • the program P corresponds to, for example, the processing of each step in FIG. 5 described above, and the bus determination processing can be realized by the control unit 41 reading and executing the program P.
  • the storage unit 43 stores a “decision list” table and an “undecided list” table as in the first embodiment.
  • the “decision list” table and the “undetermined list” table have already been described, and a detailed description thereof will be omitted.
  • the transmission unit 42 transmits frame data (transmission data) including the bus information and the update program to the vehicle C according to a predetermined communication protocol.
  • FIG. 9 is a functional block diagram illustrating a main configuration of the control unit 41 of the server device 40 in the in-vehicle communication system 100 according to the present embodiment.
  • the control unit 41 includes a CPU 411, a ROM 412, a RAM 413, a determination unit 414, a determination unit 415, and an addition unit 416.
  • the ROM 412 stores in advance basic data, etc., among various control programs and calculation parameters.
  • the RAM 413 temporarily stores the data and reads it regardless of the storage order, storage position, etc. Is possible.
  • the RAM 413 stores, for example, a program read from the ROM 412, various data generated by executing the program, parameters that change as appropriate during the execution, and the like.
  • the CPU 411 performs the bus determination process described above by loading a control program stored in advance in the ROM 412 onto the RAM 413 and executing it.
  • the transmission destination of each update program is a single connection ECU or a plurality of connection ECUs. Determine if there is any.
  • the determining unit 415 determines an optimum bus to be used for transmission of each update program in the vehicle C with reference to the LUT in the storage unit 43 based on the determination result of the determining unit 414.
  • the adding unit 416 uses bus information (bus data) representing the bus determined by the determining unit 415 with respect to a predetermined updating program to be transmitted to the vehicle C (hereinafter referred to as a determined bus) for the predetermined updating. It is added as header information to the frame data including the program.
  • bus information bus data representing the bus determined by the determining unit 415 with respect to a predetermined updating program to be transmitted to the vehicle C (hereinafter referred to as a determined bus) for the predetermined updating. It is added as header information to the frame data including the program.
  • FIG. 10 is a flowchart illustrating a process in which the control unit 41 of the server device 40 transmits the update program in the in-vehicle communication system 100 according to the present embodiment.
  • the control unit 41 executes a bus determination process in advance (step S201).
  • bus determination processing is the same as the processing shown in FIG. 5 of the first embodiment, and detailed description thereof is omitted.
  • the CPU 411, the ROM 412, the RAM 413, the determination unit 414, and the determination unit 415 are the CPU 111, the ROM 112, the RAM 113, the determination unit 114, and the determination unit 115, respectively.
  • the CPU 411, the ROM 412, the RAM 413, the determination unit 414, and the determination unit 415 are the CPU 111, the ROM 112, the RAM 113, the determination unit 114, and the determination unit 115, respectively.
  • the CPU 411, the ROM 412, the RAM 413, the determination unit 414, and the determination unit 415 are the CPU 111, the ROM 112, the RAM 113, the determination unit 114, and the determination unit 115, respectively.
  • the adding unit 416 represents a corresponding determination bus for each update program.
  • the bus information is attached (step S202).
  • the transmission unit 42 transmits frame data including each update program and corresponding bus information to the vehicle C (step S203).
  • the plurality of frame data transmitted from the server device 40 is received by the wireless communication device 30 of the vehicle C.
  • the wireless communication device 30 transmits the received plurality of frame data to the in-vehicle relay device 10, and the in-vehicle relay device 10 extracts an update program from each frame data.
  • the in-vehicle relay device 10 transmits the extracted update program to the ECU 20 to be updated based on the bus information (decision bus) included in the frame data.
  • the in-vehicle communication system 100 is used to transmit each update program to the transmission destination when a plurality of update programs and the like are transmitted to the ECU 20 of the vehicle C. Duplication of the buses to be performed can be suppressed as much as possible, and the program update in the target ECU can be performed within the shortest time.
  • the server device 40 performs the bus determination process described above, so that the processing load on the vehicle C is reduced and the transmission of the update program and the program update are quickly performed on the vehicle C. Done.
  • determination unit 414 may be configured by hardware logic, or may be configured by software by the CPU 411 executing a predetermined program.

Abstract

This vehicle-mounted relay device, which is connected to a plurality of buses and transmits data to communication devices connected to the buses, comprises: a receiving unit that receives a plurality of sets of data to be transmitted to the plurality of communication devices; an assessing unit that assesses whether the destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses; and a determination unit that determines a bus to be used for transmission of the received data on the basis of the assessment result of the assessing unit.

Description

車載中継装置、通信システム、バス決定方法及びコンピュータプログラムIn-vehicle relay device, communication system, bus determination method, and computer program
 本発明は、車載中継装置、通信システム、バス決定方法及びコンピュータプログラムに関する。
 本出願は、2018年5月14日出願の日本出願第2018-93312号に基づく優先権を主張し、前記日本出願に記載された全ての記載内容を援用するものである。
The present invention relates to an in-vehicle relay device, a communication system, a bus determination method, and a computer program.
This application claims priority based on Japanese Patent Application No. 2018-93312 filed on May 14, 2018, and incorporates all the description content described in the above Japanese application.
 従来、車両のECUの記憶部に記憶されたプログラム又はデータは、例えば機能追加、不具合の修正又はバージョンアップ等の必要が生じた際には、新たなプログラム又はデータに書き換える更新処理を行う必要があり、更新処理の対象となるECUに対して、通信線を介して更新用のプログラム又はデータを送信することが行われている。 Conventionally, the program or data stored in the storage unit of the ECU of the vehicle needs to be updated to be rewritten with a new program or data, for example, when there is a need for function addition, defect correction, version upgrade, or the like. Yes, an update program or data is transmitted to the ECU to be updated by a communication line.
 一方、特許文献1には、無線による車載プログラムの更新に関して、更新ファイルが受信された場合、現在の車両負荷状態が更新ファイルに対応するプログラムを更新可能な低負荷状態であるか、このプログラムを更新不能な高負荷状態であるかが判定され、低負荷状態であると判定された場合、斯かる更新ファイルに対応するプログラムを更新し、高負荷状態であると判定された場合、現在の車両負荷状態を低負荷状態に変更する車載プログラム更新装置について開示されている。 On the other hand, in Patent Literature 1, when an update file is received regarding the update of an in-vehicle program by radio, the current vehicle load state is a low load state in which a program corresponding to the update file can be updated, or this program is If it is determined whether it is a non-updatable high load state and it is determined that the load is low, the program corresponding to the update file is updated, and if it is determined that the load is high, the current vehicle An in-vehicle program update device that changes a load state to a low load state is disclosed.
特開2014-106875号公報JP 2014-106875 A
 本開示の一態様に係る車載中継装置は、複数のバスが接続されており、前記バスと接続する通信装置にデータを送信する車載中継装置において、複数の通信装置に送信すべき複数のデータを受信する受信部と、受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかを判定する判定部と、前記判定部の判定結果に基づいて、各受信データの送信に用いるバスの決定を行う決定部とを備える。 In the in-vehicle relay device according to one aspect of the present disclosure, a plurality of buses are connected, and in the in-vehicle relay device that transmits data to the communication device connected to the bus, the plurality of data to be transmitted to the plurality of communication devices A receiving unit that receives data, a determination unit that determines whether a transmission destination of received data is a first communication device connected to one bus or a second communication device connected to two or more buses, and And a determination unit that determines a bus to be used for transmission of each received data based on the determination result of the determination unit.
 本開示の一態様に係る通信システムは、情報処理装置と、複数のバスが接続され、前記バスと接続する通信装置にデータを送信する車載中継装置とを含む通信システムにおいて、前記情報処理装置は、複数の通信装置に送信すべき複数の送信データに対し、送信先が、前記車載中継装置の一つのバスと接続する第1通信装置であるか、前記車載中継装置の2つ以上のバスと接続する第2通信装置であるかを判定する判定部と、前記判定部の判定結果に基づいて、前記車載中継装置による各送信データの送信に用いられるバスの決定を行う決定部と、前記決定部によって決定されたバスを表すバスデータを、各送信データに付する付加部と、前記バスデータが付された前記複数の送信データを前記車載中継装置に送信する送信部とを備えており、前記車載中継装置は、前記情報処理装置から前記複数の送信データを受信する受信部を備え、前記送信データに付されたバスデータに基づいて、前記送信データを前記通信装置に送信する。 A communication system according to an aspect of the present disclosure is a communication system including an information processing device and an in-vehicle relay device that is connected to a plurality of buses and transmits data to the communication device connected to the bus. For a plurality of transmission data to be transmitted to a plurality of communication devices, a transmission destination is a first communication device connected to one bus of the in-vehicle relay device, or two or more buses of the in-vehicle relay device A determination unit that determines whether the second communication device is connected; a determination unit that determines a bus used for transmission of each transmission data by the in-vehicle relay device based on a determination result of the determination unit; and the determination An adder for attaching the bus data representing the bus determined by the transmission unit to each transmission data, and a transmission unit for transmitting the plurality of transmission data to which the bus data is attached to the in-vehicle relay device. The vehicle relay device includes a receiver which receives the plurality of transmitted data from the information processing apparatus, on the basis of the bus data attached to the transmission data, and transmits the transmission data to the communication device.
 本開示の一態様に係るバス決定方法は、複数のバスが接続されており、前記バスと接続する通信装置にデータを送信する車載中継装置にて、前記データの送信に用いるバスを決定するバス決定方法において、複数の通信装置に送信すべき複数のデータを受信し、受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかの判定を行い、前記判定の結果に基づいて、各受信データの送信に用いるバスの決定を行うことを含む。 A bus determination method according to an aspect of the present disclosure includes a bus that determines a bus to be used for transmitting the data in an in-vehicle relay device that is connected to a plurality of buses and transmits data to a communication device connected to the bus. In the determination method, a plurality of data to be transmitted to a plurality of communication devices are received, and a transmission destination of the received data is a first communication device connected to one bus, or a second connected to two or more buses. Determining whether the communication device is used, and determining a bus to be used for transmission of each received data based on the result of the determination.
 本開示の一態様に係るコンピュータプログラムは、複数のバスが接続されており、前記バスと接続する通信装置にデータを送信するコンピュータに、複数の通信装置に送信すべき複数のデータを受信し、受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかの判定を行い、前記判定の結果に基づいて、各受信データの送信に用いるバスの決定を行わせる処理を実行する。 A computer program according to an aspect of the present disclosure has a plurality of buses connected thereto, and receives a plurality of data to be transmitted to the plurality of communication devices to a computer that transmits data to the communication devices connected to the bus, It is determined whether the destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses, and based on the result of the determination, A process for determining a bus used for transmission of received data is executed.
実施形態1に係る車両の要部構成を示すブロック図である。1 is a block diagram illustrating a main configuration of a vehicle according to a first embodiment. 本実施形態に係る車載中継装置において、記憶部が記憶するLUTを概念的に示す概念図である。In the vehicle-mounted relay apparatus which concerns on this embodiment, it is a conceptual diagram which shows notionally the LUT which a memory | storage part memorize | stores. 本実施形態に係る車載中継装置において、バス決定処理前における、「決定一覧」のテーブルの一例を概念的に示す概念図である。In the vehicle-mounted relay apparatus which concerns on this embodiment, it is a conceptual diagram which shows notionally an example of the table of a "decision list" before a bus determination process. 本実施形態に係る車載中継装置における、制御部の要部構成を示す機能ブロック図である。It is a functional block diagram which shows the principal part structure of a control part in the vehicle-mounted relay apparatus concerning this embodiment. 本実施形態に係る車載中継装置において、制御部によるバス決定処理を説明するフローチャートである。In the in-vehicle relay device concerning this embodiment, it is a flow chart explaining the bus decision processing by a control part. 本実施形態に係るバス決定処理中における、「決定一覧」のテーブルの書き込み例を概念的に示す概念図である。It is a conceptual diagram which shows notionally the example of writing of the table of "decision list" in the bus determination process which concerns on this embodiment. 本実施形態に係るバス決定処理中における、「決定一覧」のテーブルの書き込み例を概念的に示す概念図である。It is a conceptual diagram which shows notionally the example of writing of the table of "decision list" in the bus determination process which concerns on this embodiment. 実施形態2に係る車載通信システムの要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of the vehicle-mounted communication system which concerns on Embodiment 2. FIG. 本実施形態に係る車載通信システムにおける、サーバ装置の制御部の要部構成を示す機能ブロック図である。It is a functional block diagram which shows the principal part structure of the control part of a server apparatus in the vehicle-mounted communication system which concerns on this embodiment. 本実施形態に係る車載通信システムにおいて、サーバ装置の制御部が更新用プログラムを送信する処理を説明するフローチャートである。In the in-vehicle communication system concerning this embodiment, it is a flowchart explaining the processing in which the control part of a server apparatus transmits the program for updating.
[本開示が解決しようとする課題]
 特許文献1の車載プログラム更新装置においては、現在の車両負荷状態が高負荷状態である場合、プログラムの更新が行われないこと、また、現在の車両負荷状態を低負荷状態に変更するために別の処理が行われること等から、プログラムの更新が遅れる虞がある。
[Problems to be solved by the present disclosure]
In the in-vehicle program update device of Patent Literature 1, when the current vehicle load state is a high load state, the program is not updated, and another change is made to change the current vehicle load state to a low load state. There is a risk that the update of the program may be delayed due to the above processing.
 そこで、本発明は、複数のデータを複数の送信先へ送信する場合、最短時間内にデータの送信を行うことができる車載中継装置、通信システム、バス決定方法及びコンピュータプログラムを提供することを目的とする。 Therefore, an object of the present invention is to provide an in-vehicle relay device, a communication system, a bus determination method, and a computer program capable of transmitting data within the shortest time when transmitting a plurality of data to a plurality of transmission destinations. And
[本開示の効果]
 本開示の一態様によれば、複数のデータを複数の送信先へ送信する場合、用いられるバスが重複することを極力抑制できることから、プログラム更新等を最短時間内に行うことができる。
[Effects of the present disclosure]
According to one aspect of the present disclosure, when a plurality of data is transmitted to a plurality of transmission destinations, it is possible to suppress overlapping of used buses as much as possible, and therefore, program update or the like can be performed within the shortest time.
[本発明の実施形態の説明]
 最初に本開示の実施態様を列挙して説明する。また、以下に記載する実施形態の少なくとも一部を任意に組み合わせてもよい。
[Description of Embodiment of the Present Invention]
First, embodiments of the present disclosure will be listed and described. Moreover, you may combine arbitrarily at least one part of embodiment described below.
(1)本開示の一態様に係る車載中継装置は、複数のバスが接続されており、前記バスと接続する通信装置にデータを送信する車載中継装置において、複数の通信装置に送信すべき複数のデータを受信する受信部と、受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかを判定する判定部と、前記判定部の判定結果に基づいて、各受信データの送信に用いるバスの決定を行う決定部とを備える。 (1) In the in-vehicle relay device according to one aspect of the present disclosure, a plurality of buses are connected, and in the in-vehicle relay device that transmits data to the communication device connected to the bus, a plurality of devices to be transmitted to the plurality of communication devices And a determination unit that determines whether the reception destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses. And a determination unit that determines a bus used for transmission of each received data based on the determination result of the determination unit.
 本態様にあっては、前記受信部が複数の通信装置に送信すべき複数のデータを受信した場合、前記判定部は、受信データの送信先が、前記第1通信装置であるか、前記第2通信装置であるかを判定し、前記判定部の判定結果に基づいて、前記決定部が各受信データの送信に用いるバスの決定を行う。
 例えば、受信データの送信先が前記第2通信装置であると判定された場合、斯かる第2通信装置と接続する2以上のバスのうち他の受信データの送信に用いられないバスを前記決定部が選択する。従って、複数の受信データを複数の送信先へ送信する場合、送信先への送信時間を短縮することができる。
In this aspect, when the reception unit receives a plurality of data to be transmitted to a plurality of communication devices, the determination unit determines whether the transmission destination of the reception data is the first communication device or the first communication device. It determines whether it is 2 communication apparatuses, and the said determination part determines the bus | bath used for transmission of each received data based on the determination result of the said determination part.
For example, when it is determined that the transmission destination of the reception data is the second communication device, the bus that is not used for transmission of other reception data among the two or more buses connected to the second communication device is determined. Department selects. Therefore, when transmitting a plurality of received data to a plurality of transmission destinations, the transmission time to the transmission destination can be shortened.
(2)本開示の一態様に係る車載中継装置は、各通信装置と、各通信装置が接続するバスとを関連付けて記憶する記憶部を備え、前記決定部は、前記記憶部の記憶内容に基づいて、前記決定を行う。 (2) The in-vehicle relay device according to an aspect of the present disclosure includes a storage unit that stores each communication device in association with a bus to which each communication device is connected, and the determination unit stores the content stored in the storage unit. Based on this, the determination is made.
 本態様にあっては、前記受信部が複数の通信装置に送信すべき複数のデータを受信した場合、前記判定部は、上述した判定を行い、前記決定部は、前記判定部の判定結果及び前記記憶部の記憶内容に基づいて、各受信データの送信に用いるバスの決定を行う。
 例えば、受信データの送信先が前記第2通信装置であると判定された場合、前記決定部は、前記記憶部の記憶内容に基づいて、前記第2通信装置が接続している2つ以上のバスのうち、他の受信データの送信に用いられないバスを選択する。従って、複数の受信データを複数の送信先へ送信する場合、送信先への受信データの送信時間を短縮することができる。
In this aspect, when the reception unit receives a plurality of data to be transmitted to a plurality of communication devices, the determination unit performs the determination described above, and the determination unit determines the determination result of the determination unit and Based on the storage contents of the storage unit, the bus used for transmission of each received data is determined.
For example, when it is determined that the transmission destination of the received data is the second communication device, the determination unit determines whether two or more of the second communication devices are connected based on the storage content of the storage unit. A bus that is not used for transmission of other received data is selected from the buses. Therefore, when transmitting a plurality of reception data to a plurality of transmission destinations, it is possible to shorten the transmission time of the reception data to the transmission destination.
(3)本開示の一態様に係る車載中継装置は、前記決定部は、前記送信先が前記第1通信装置である受信データの送信に用いるバスを優先して決定し、前記記憶部は、前記決定部によって決定された一のバスと、該一のバスを用いて送信する受信データの送信先とを対応付けた対応関係を記憶する。 (3) In the in-vehicle relay device according to one aspect of the present disclosure, the determination unit preferentially determines a bus used for transmission of reception data whose transmission destination is the first communication device, and the storage unit A correspondence relationship in which one bus determined by the determination unit is associated with a transmission destination of received data transmitted using the one bus is stored.
 本態様にあっては、前記送信先が前記第1通信装置である受信データの送信に用いられるバスが優先して決定され、決定されバスと、対応する受信データの送信先とを対応付けた対応関係を前記記憶部が記憶する。
 このように、バスの選択が出来ない第1通信装置への送信に用いられるバスが優先して決定され、その後、バスの選択ができる第2通信装置への送信に用いられるバスが、既に決定されたバスと極力重複しないように決定される。従って、受信データの送信に用いられるバスの重複をより効果的に抑制できる。
In this aspect, the bus used for the transmission of the reception data whose transmission destination is the first communication device is preferentially determined, and the determined bus is associated with the transmission destination of the corresponding reception data. The storage unit stores the correspondence relationship.
In this way, the bus used for transmission to the first communication device that cannot select the bus is determined with priority, and then the bus used for transmission to the second communication device that can select the bus is already determined. It is decided not to overlap as much as possible. Accordingly, it is possible to more effectively suppress duplication of buses used for transmission of received data.
(4)本開示の一態様に係る車載中継装置は、前記受信データの送信先が前記第2通信装置である場合、前記決定部は、前記対応関係に基づいて、対応する送信先がないバスを送信に用いるバスとして決定する。 (4) In the in-vehicle relay device according to one aspect of the present disclosure, when the transmission destination of the reception data is the second communication device, the determination unit is a bus having no corresponding transmission destination based on the correspondence relationship. Is determined as the bus used for transmission.
 本態様にあっては、前記決定部は、前記送信先が前記第1通信装置である受信データに係るバスを決定した後、前記送信先が前記第2通信装置である受信データに係るバスを決定する。この際、前記決定部は、その時に前記記憶部が記憶している対応関係において、斯かる第2通信装置と接続する2以上のバスのうち対応する送信先がないバスを送信に用いるバスとして決定する。
 従って、複数の受信データを複数の送信先へ送信する場合、用いられるバスが重複することを極力抑制でき、送信先への受信データの送信時間を短縮することができる。
In this aspect, the determination unit determines a bus related to received data whose destination is the first communication device, and then determines a bus related to received data whose destination is the second communication device. decide. At this time, in the correspondence relationship stored in the storage unit at that time, the determination unit uses a bus having no corresponding transmission destination among two or more buses connected to the second communication device as a bus used for transmission. decide.
Therefore, when transmitting a plurality of reception data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and the transmission time of the reception data to the transmission destination can be shortened.
(5)本開示の一態様に係る車載中継装置は、前記決定部は、対応する送信先のないバスがない場合、対応する送信先が最も少ないバスを送信に用いるバスとして決定する。 (5) In the in-vehicle relay device according to an aspect of the present disclosure, when there is no bus having no corresponding transmission destination, the determination unit determines a bus having the smallest corresponding transmission destination as a bus used for transmission.
 本態様にあっては、前記決定部は、前記送信先が前記第1通信装置である受信データに係るバスを決定した後、前記送信先が前記第2通信装置である受信データに係るバスを決定する。この際、前記決定部は、その時の対応関係において、斯かる第2通信装置と接続する2以上のバスのうち対応する送信先のないバスがない場合、対応する送信先が最も少ないバスを送信に用いるバスとして決定する。
 従って、複数の受信データを複数の送信先へ送信する場合、用いられるバスが重複することを極力抑制でき、送信先への受信データの送信時間を短縮することができる。
In this aspect, the determination unit determines a bus related to received data whose destination is the first communication device, and then determines a bus related to received data whose destination is the second communication device. decide. At this time, if there is no bus having no corresponding destination among the two or more buses connected to the second communication device in the correspondence relationship at that time, the determining unit transmits the bus having the smallest corresponding destination. It is determined as a bus to be used for.
Therefore, when transmitting a plurality of reception data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and the transmission time of the reception data to the transmission destination can be shortened.
(6)本開示の一態様に係る通信システムは、情報処理装置と、複数のバスが接続され、前記バスと接続する通信装置にデータを送信する車載中継装置とを含む通信システムにおいて、前記情報処理装置は、複数の通信装置に送信すべき複数の送信データに対し、送信先が、前記車載中継装置の一つのバスと接続する第1通信装置であるか、前記車載中継装置の2つ以上のバスと接続する第2通信装置であるかを判定する判定部と、前記判定部の判定結果に基づいて、前記車載中継装置による各送信データの送信に用いられるバスの決定を行う決定部と、前記決定部によって決定されたバスを表すバスデータを、各送信データに付する付加部と、前記バスデータが付された前記複数の送信データを前記車載中継装置に送信する送信部とを備えており、前記車載中継装置は、前記情報処理装置から前記複数の送信データを受信する受信部を備え、前記送信データに付されたバスデータに基づいて、前記送信データを前記通信装置に送信する。 (6) A communication system according to an aspect of the present disclosure is the communication system including an information processing device and an in-vehicle relay device that is connected to a plurality of buses and transmits data to the communication device connected to the bus. The processing device is configured such that a plurality of transmission data to be transmitted to a plurality of communication devices is a first communication device connected to one bus of the in-vehicle relay device, or two or more of the in-vehicle relay devices A determination unit that determines whether the second communication device is connected to the bus, and a determination unit that determines a bus used for transmission of each transmission data by the in-vehicle relay device based on a determination result of the determination unit An adding unit that attaches bus data representing the bus determined by the determining unit to each transmission data; and a transmission unit that transmits the plurality of transmission data to which the bus data is attached to the in-vehicle relay device. Cage, the in-vehicle relay device includes a receiver which receives the plurality of transmitted data from the information processing apparatus, on the basis of the bus data attached to the transmission data, and transmits the transmission data to the communication device.
 本態様にあっては、前記情報処理装置は、複数の送信データに対し、送信先が前記第1通信装置であるか、前記第2通信装置であるかを判定し、斯かる判定の結果に基づいて、前記車載中継装置による各送信データの送信に用いられるバスの決定を行い、決定されたバスを表すバスデータを各送信データに付して前記車載中継装置に送信する。前記車載中継装置は、前記情報処理装置から前記複数の送信データを受信し、前記送信データに付されたバスデータに基づいて、前記送信データを前記通信装置に送信する。
 例えば、送信データの送信先が前記第2通信装置であると判定された場合、前記情報処理装置は、他の送信データの送信に用いられないバスを選択する。従って、複数の送信データを複数の送信先へ送信する場合、送信先への送信時間を短縮することができる。
 また、上述したように、バスを決定する処理を情報処理装置が行うので、前記車載中継装置における処理負担を減らすと共に、前記車載中継装置で前記送信データの処理が迅速に行われる。
In this aspect, the information processing apparatus determines whether the transmission destination is the first communication apparatus or the second communication apparatus for a plurality of transmission data, and determines the result of the determination. Based on this, the bus used for transmission of each transmission data by the in-vehicle relay device is determined, and the bus data representing the determined bus is attached to each transmission data and transmitted to the in-vehicle relay device. The in-vehicle relay device receives the plurality of transmission data from the information processing device, and transmits the transmission data to the communication device based on bus data attached to the transmission data.
For example, when it is determined that the transmission destination of the transmission data is the second communication device, the information processing device selects a bus that is not used for transmission of other transmission data. Therefore, when transmitting a plurality of transmission data to a plurality of transmission destinations, the transmission time to the transmission destination can be shortened.
Further, as described above, since the information processing device performs the process of determining the bus, the processing load on the in-vehicle relay device is reduced, and the transmission data is quickly processed in the in-vehicle relay device.
(7)本開示の一態様に係る通信システムは、前記情報処理装置は、各通信装置と、各通信装置が接続する、前記車載中継装置のバスとを関連付けて記憶する記憶部を備え、前記決定部は、前記記憶部の記憶内容に基づいて、前記決定を行う。 (7) In the communication system according to an aspect of the present disclosure, the information processing device includes a storage unit that stores each communication device in association with the bus of the in-vehicle relay device to which the communication device is connected, The determination unit performs the determination based on the storage content of the storage unit.
 本態様にあっては、複数の送信データを前記車載中継装置に送信する場合、前記情報処理装置は、各送信データに対し、送信先が前記第1通信装置であるか、前記第2通信装置であるかの判定を行い、前記判定の結果及び前記記憶部の記憶内容に基づいて、前記車載中継装置による送信に用いるバスの決定を行う。
 例えば、送信データの送信先が前記第2通信装置であると判定した場合、前記情報処理装置は、前記記憶部の記憶内容に基づいて、前記第2通信装置が接続している2つ以上のバスのうち、他の送信データの送信に用いられないバスを選択する。従って、複数の送信データを前記車載中継装置が複数の送信先へ送信する場合、送信先への送信データの送信時間を短縮することができる。
In this aspect, when transmitting a plurality of transmission data to the in-vehicle relay device, the information processing device determines whether the transmission destination is the first communication device or the second communication device for each transmission data. The bus used for transmission by the in-vehicle relay device is determined based on the result of the determination and the contents stored in the storage unit.
For example, when it is determined that the transmission destination of the transmission data is the second communication device, the information processing device is connected to the two or more connected to the second communication device based on the storage content of the storage unit. A bus that is not used for transmitting other transmission data is selected from the buses. Therefore, when the in-vehicle relay device transmits a plurality of transmission data to a plurality of transmission destinations, it is possible to shorten the transmission time of the transmission data to the transmission destinations.
(8)本開示の一態様に係る通信システムは、前記決定部は、前記送信先が前記第1通信装置である送信データに対し、前記車載中継装置による送信に用いられるバスの決定を優先して行い、前記記憶部は、前記決定部によって決定された一のバスと、該一のバスを用いて前記車載中継装置が送信する送信データの送信先とを対応付けた対応関係を記憶する。 (8) In the communication system according to an aspect of the present disclosure, the determination unit prioritizes determination of a bus used for transmission by the in-vehicle relay device with respect to transmission data whose transmission destination is the first communication device. The storage unit stores a correspondence relationship in which one bus determined by the determination unit is associated with a transmission destination of transmission data transmitted by the in-vehicle relay device using the one bus.
 本態様にあっては、前記送信先が前記第1通信装置である送信データの送信に用いられるバスが優先して決定され、決定されたバスと、対応する送信データの送信先とを対応付けた対応関係を前記記憶部が記憶する。
 このように、バスの選択が出来ない第1通信装置への送信に用いられるバスが優先して決定され、その後、バスの選択ができる第2通信装置への送信に用いられるバスが、既に決定されたバスと極力重複しないように決定される。従って、送信データの送信に用いられるバスの重複をより効果的に抑制できる。
In this aspect, the bus used for transmission of transmission data whose transmission destination is the first communication device is preferentially determined, and the determined bus is associated with the transmission destination of the corresponding transmission data. The storage unit stores the corresponding relationship.
In this way, the bus used for transmission to the first communication device that cannot select the bus is determined with priority, and then the bus used for transmission to the second communication device that can select the bus is already determined. It is decided not to overlap as much as possible. Therefore, duplication of buses used for transmission of transmission data can be more effectively suppressed.
(9)本開示の一態様に係る通信システムは、前記送信データの送信先が前記第2通信装置である場合、前記決定部は、前記対応関係に基づいて、対応する送信先がないバスを前記車載中継装置による送信に用いるバスとして決定する。 (9) In the communication system according to an aspect of the present disclosure, when the transmission destination of the transmission data is the second communication device, the determination unit uses a bus having no corresponding transmission destination based on the correspondence relationship. The bus is used for transmission by the in-vehicle relay device.
 本態様にあっては、前記決定部は、前記送信先が前記第1通信装置である送信データに係るバスを決定した後、前記送信先が前記第2通信装置である送信データに係るバスを決定する。この際、前記決定部は、その時に前記記憶部が記憶している対応関係において、斯かる第2通信装置と接続する2以上のバスのうち対応する送信先がないバスを送信に用いるバスとして決定する。
 従って、複数の送信データを複数の送信先へ送信する場合、用いられるバスが重複することを極力抑制でき、送信先への送信データの送信時間を短縮することができる。
In this aspect, the determination unit determines a bus related to transmission data whose transmission destination is the first communication device, and then determines a bus related to transmission data whose transmission destination is the second communication device. decide. At this time, in the correspondence relationship stored in the storage unit at that time, the determination unit uses a bus having no corresponding transmission destination among two or more buses connected to the second communication device as a bus used for transmission. decide.
Therefore, when transmitting a plurality of transmission data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and the transmission time of the transmission data to the transmission destination can be shortened.
(10)本開示の一態様に係る通信システムは、前記決定部は、対応する送信先のないバスがない場合、対応する送信先が最も少ないバスを前記車載中継装置による送信に用いるバスとして決定する。 (10) In the communication system according to an aspect of the present disclosure, when there is no bus having no corresponding transmission destination, the determination unit determines the bus having the smallest corresponding transmission destination as a bus used for transmission by the in-vehicle relay device. To do.
 本態様にあっては、前記決定部は、前記送信先が前記第1通信装置である送信データに係るバスを決定した後、前記送信先が前記第2通信装置である送信データに係るバスを決定する。この際、前記決定部は、その時の対応関係において、斯かる第2通信装置と接続する2以上のバスのうち対応する送信先のないバスがない場合、対応する送信先が最も少ないバスを送信に用いるバスとして決定する。
 従って、複数の送信データを複数の送信先へ送信する場合、用いられるバスが重複することを極力抑制でき、送信先への送信データの送信時間を短縮することができる。
In this aspect, the determination unit determines a bus related to transmission data whose transmission destination is the first communication device, and then determines a bus related to transmission data whose transmission destination is the second communication device. decide. At this time, if there is no bus having no corresponding destination among the two or more buses connected to the second communication device in the correspondence relationship at that time, the determining unit transmits the bus having the smallest corresponding destination. It is determined as a bus to be used for.
Therefore, when transmitting a plurality of transmission data to a plurality of transmission destinations, it is possible to suppress the overlapping of the buses used as much as possible, and to shorten the transmission time of the transmission data to the transmission destination.
(11)本開示の一態様に係るバス決定方法は、複数のバスが接続されており、前記バスと接続する通信装置にデータを送信する車載中継装置にて、前記データの送信に用いるバスを決定するバス決定方法において、複数の通信装置に送信すべき複数のデータを受信し、受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかの判定を行い、前記判定の結果に基づいて、各受信データの送信に用いるバスの決定を行うことを含む。 (11) In the bus determination method according to one aspect of the present disclosure, a plurality of buses are connected, and a bus used for transmitting the data is transmitted in an in-vehicle relay device that transmits data to a communication device connected to the bus. In the bus determination method for determining, a plurality of data to be transmitted to a plurality of communication devices are received, and a transmission destination of received data is a first communication device connected to one bus, or connected to two or more buses Determining whether the second communication device is to be used, and determining a bus to be used for transmission of each received data based on the result of the determination.
 本態様にあっては、複数の通信装置に送信すべき複数のデータが受信された場合、受信データの送信先が前記第1通信装置であるか前記第2通信装置であるかが判定され、斯かる判定の結果に基づいて、各受信データの送信に用いられるバスの決定が行われる。
 例えば、受信データの送信先が前記第2通信装置であると判定された場合、斯かる第2通信装置と接続する2以上のバスのうち他の受信データの送信に用いられないバスが選択される。従って、複数の受信データを複数の送信先へ送信する場合、送信先への送信時間を短縮することができる。
In this aspect, when a plurality of data to be transmitted to a plurality of communication devices is received, it is determined whether the transmission destination of the received data is the first communication device or the second communication device, Based on the result of such determination, the bus used for transmission of each received data is determined.
For example, when it is determined that the transmission destination of received data is the second communication device, a bus that is not used for transmitting other received data is selected from two or more buses connected to the second communication device. The Therefore, when transmitting a plurality of received data to a plurality of transmission destinations, the transmission time to the transmission destination can be shortened.
(12)本開示の一態様に係るコンピュータプログラムは、複数のバスが接続されており、前記バスと接続する通信装置にデータを送信するコンピュータに、複数の通信装置に送信すべき複数のデータを受信し、受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかの判定を行い、前記判定の結果に基づいて、各受信データの送信に用いるバスの決定を行わせる処理を実行する。 (12) In a computer program according to an aspect of the present disclosure, a plurality of buses are connected, and a plurality of data to be transmitted to a plurality of communication devices are transmitted to a computer that transmits data to the communication devices connected to the bus. It is determined whether the reception destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses, and based on the result of the determination Thus, processing for determining the bus used for transmission of each received data is executed.
 本態様にあっては、例えば、車載中継装置が有するコンピュータの制御によって、複数の通信装置に送信すべき複数のデータが受信され、受信データの送信先が前記第1通信装置であるか前記第2通信装置であるかが判定され、斯かる判定の結果に基づいて、各受信データの送信に用いられるバスの決定が行われる。
 例えば、受信データの送信先が前記第2通信装置であると判定された場合、斯かる第2通信装置と接続する2以上のバスのうち他の受信データの送信に用いられないバスが選択される。従って、複数の受信データを複数の送信先へ送信する場合、送信先への送信時間を短縮することができる。
In this aspect, for example, a plurality of data to be transmitted to a plurality of communication devices are received under the control of a computer included in the in-vehicle relay device, and the transmission destination of the received data is the first communication device. It is determined whether it is a two-communication device, and the bus used for transmission of each received data is determined based on the result of such determination.
For example, when it is determined that the transmission destination of received data is the second communication device, a bus that is not used for transmitting other received data is selected from two or more buses connected to the second communication device. The Therefore, when transmitting a plurality of received data to a plurality of transmission destinations, the transmission time to the transmission destination can be shortened.
[本発明の実施形態の詳細]
 本発明をその実施形態を示す図面に基づいて具体的に説明する。本開示の実施形態に係る車載中継装置、通信システム、バス決定方法及びコンピュータプログラムを、以下に図面を参照しつつ説明する。なお、本発明はこれらの例示に限定されるものではなく、請求の範囲によって示され、請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。
[Details of the embodiment of the present invention]
The present invention will be specifically described with reference to the drawings showing embodiments thereof. An in-vehicle relay device, a communication system, a bus determination method, and a computer program according to an embodiment of the present disclosure will be described below with reference to the drawings. In addition, this invention is not limited to these illustrations, is shown by the claim, and intends that all the changes within the meaning and range equivalent to a claim are included.
(実施形態1)
 以下においては、実施形態に係る車載中継装置を車両に適用した場合を例に説明する。
 図1は、実施形態1に係る車両Cの要部構成を示すブロック図である。本実施形態に係る車両Cは、1つの車載中継装置10と、複数のECU(Electronic Control Unit)20と、無線通信装置30とを備えている。ECU20(通信装置)は、ECU1,ECU2,…ECU9の9つである。以下、ECU1,ECU2,…ECU9をまとめてECU20ともいう。
(Embodiment 1)
Below, the case where the vehicle-mounted relay apparatus which concerns on embodiment is applied to a vehicle is demonstrated to an example.
FIG. 1 is a block diagram illustrating a main configuration of a vehicle C according to the first embodiment. The vehicle C according to the present embodiment includes one in-vehicle relay device 10, a plurality of ECUs (Electronic Control Units) 20, and a wireless communication device 30. There are nine ECUs 20 (communication devices): ECU1, ECU2,. Hereinafter, ECU1, ECU2,... ECU9 are collectively referred to as ECU20.
 車載中継装置10には、例えば3つのバス1(B1),バス2(B2),バス3(B3)が接続されている。バスB1,B2,B3を介してECU1,ECU2,…ECU9が車載中継装置10に接続している。ECU1,ECU2,…ECU9は3つのグループに分けてバスB1,B2,B3に接続している。 For example, three buses 1 (B1), 2 (B2), and 3 (B3) are connected to the in-vehicle relay device 10. ECU1, ECU2,... ECU9 are connected to the in-vehicle relay device 10 via buses B1, B2, B3. ECU1, ECU2,..., ECU9 are divided into three groups and connected to buses B1, B2, B3.
 バスB1には、ECU1,ECU2,ECU3が接続しており、バスB2にはECU4,ECU5,ECU3、ECU7が接続しており、バスB3にはECU6,ECU7,ECU8,ECU9が接続している。
 即ち、ECU1,ECU2,ECU4,ECU5,ECU6,ECU8,ECU9は、バスB1,B2,B3のうち、何れか一つのバスとのみ接続している。一方、ECU3,ECU7は、バスB1,B2,B3のうち、2つのバスと接続している。本実施形態においては、ECU3,ECU7が2つのバスと接続している場合を例に説明するが、これに限定されるものでなく、ECU3,ECU7が3以上のバスと接続するように構成してもよい。
ECU1, ECU2, and ECU3 are connected to the bus B1, ECU4, ECU5, ECU3, and ECU7 are connected to the bus B2, and ECU6, ECU7, ECU8, and ECU9 are connected to the bus B3.
That is, ECU1, ECU2, ECU4, ECU5, ECU6, ECU8, and ECU9 are connected to only one of the buses B1, B2, and B3. On the other hand, ECU3, ECU7 is connected with two buses among buses B1, B2, B3. In the present embodiment, the case where ECU3 and ECU7 are connected to two buses will be described as an example. However, the present invention is not limited to this, and the ECU3 and ECU7 are configured to be connected to three or more buses. May be.
 以下においては、一つのバスとのみ接続している、ECU1,ECU2,ECU4,ECU5,ECU6,ECU8,ECU9を単数接続ECU(第1通信装置)と言い、2つのバスと接続している、ECU3,ECU7を複数接続ECU(第2通信装置)という。 In the following, ECU1, ECU2, ECU4, ECU5, ECU6, ECU8, and ECU9 connected to only one bus are referred to as a single connection ECU (first communication device), and ECU3 is connected to two buses. , ECU7 is referred to as a multiple connection ECU (second communication device).
 各ECU20はバスB1,B2又はB3を介して車載中継装置10とメッセージ(フレームデータ)の送受信を行うことができる。バスB1,B2,B3は、例えば、ツイストペア線である。 Each ECU 20 can transmit / receive a message (frame data) to / from the in-vehicle relay device 10 via the bus B1, B2 or B3. The buses B1, B2, and B3 are, for example, twisted pair wires.
 図示の例では、車両Cが9つのECU20を含む場合を例示しているが、これに限るものでなく、9つ以上、又は9つ以下のECUを含む構成であってもよい。 In the illustrated example, the case where the vehicle C includes nine ECUs 20 is illustrated, but the present invention is not limited to this, and may be configured to include nine or more or nine or less ECUs.
 ECU1,ECU2,…ECU9には、例えば、車両Cのドアの開閉を制御するECU、車両Cのエンジンの動作を制御するECU、エアバッグの動作を制御するECU、及び、ABS(Antilock Brake System)の動作を制御するECU等の種々のECUを含む。ECU20は、内部の記憶部に記憶されたプログラム及びデータを読み出して実行することによって、各々の処理を行っている。ECU20が記憶するプログラム又はデータは、例えば機能追加又は不具合修正等の目的で更新が行われる場合がある。 ECU1, ECU2,..., ECU9 include, for example, an ECU that controls the opening and closing of the door of the vehicle C, an ECU that controls the operation of the engine of the vehicle C, an ECU that controls the operation of the airbag, and an ABS (Antilock Brake System) Various ECUs such as an ECU that controls the operation of the ECU are included. The ECU 20 performs each process by reading and executing a program and data stored in an internal storage unit. The program or data stored in the ECU 20 may be updated for the purpose of, for example, function addition or defect correction.
 無線通信装置30は、ECU20のプログラムの更新処理に必要な更新用プログラム又はデータ等を外部から取得する。無線通信装置30は取得したフレームデータを車載中継装置10に送信する。斯かるフレームデータには、例えば、ECU20のプログラムを更新するための更新用プログラム又はデータ等が含まれている。 The wireless communication device 30 acquires an update program or data necessary for the program update process of the ECU 20 from the outside. The wireless communication device 30 transmits the acquired frame data to the in-vehicle relay device 10. Such frame data includes, for example, an update program or data for updating the program of the ECU 20.
 本実施形態に係る車載中継装置10は、制御部11、受信部13、送信部12、バッファ14及び記憶部15等を備えて構成されている。
 車載中継装置10は、無線通信装置30からフレームデータを受信し、上述したプログラム又はデータ等を抽出して記憶しておく。車載中継装置10は、バスB1,B2,B3を介して記憶しておいた更新用プログラム等を更新対象のECU20へ送信する。車載中継装置10から更新用プログラム等を受信したECU20は、自機の動作を実行しつつ、記憶部に記憶されたプログラム又はデータを更新する処理を行う。
The in-vehicle relay device 10 according to the present embodiment includes a control unit 11, a reception unit 13, a transmission unit 12, a buffer 14, a storage unit 15, and the like.
The in-vehicle relay device 10 receives the frame data from the wireless communication device 30 and extracts and stores the above-described program or data. The in-vehicle relay device 10 transmits the update program stored through the buses B1, B2, and B3 to the ECU 20 to be updated. The ECU 20 that has received the update program or the like from the in-vehicle relay device 10 performs a process of updating the program or data stored in the storage unit while executing the operation of the own machine.
 詳しくは、ECU20の記憶部は2つの部分を持ち、一の部分(使用部分)を用いて自機の動作を実行しながら、他の部分に更新用プログラム等を書込む。この際、使用部分(ECU20)が動作中なので、斯かる動作に影響が出ない程度の低負荷で更新用プログラム等が送信される。書込み完了後に、例えば、自機の作動を一時停止可能なタイミングで、使用部分を前記一の部分から前記他の部分に切り替える。 More specifically, the storage unit of the ECU 20 has two parts, and the update program and the like are written in the other part while executing the operation of the own machine using one part (used part). At this time, since the use portion (ECU 20) is in operation, the update program or the like is transmitted with a low load that does not affect the operation. After completion of writing, for example, at a timing at which the operation of the own machine can be temporarily stopped, the used part is switched from the one part to the other part.
 制御部11は、例えばCPU(Central Processing Unit)又はMPU(Micro-Processing Unit)等の演算処理装置を含んでおり、記憶部15又はROM(Read Only Memory)(図3参照)等に記憶された各種プログラムを実行することにより種々の処理を行う。本実施形態において制御部11は、例えば、更新用プログラム等を更新対象のECU20に送信する処理、及び更新用プログラム等の送信に用いるバスを決定する処理等を行う。 The control unit 11 includes an arithmetic processing unit such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit), and is stored in the storage unit 15 or a ROM (Read Only Memory) (see FIG. 3). Various processes are performed by executing various programs. In the present embodiment, the control unit 11 performs, for example, processing for transmitting an update program or the like to the ECU 20 to be updated, processing for determining a bus used for transmission of the update program, or the like.
バッファ14は、例えばSRAM(Static Random Access Memory)又はDRAM(Dynamic Random Access Memory)等のメモリ素子を用いて構成されている。バッファ14は、受信部13が受信した更新用プログラム等及び送信部12から送信すべきフレームデータ等を一時的に記憶する。 The buffer 14 is configured using a memory element such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory). The buffer 14 temporarily stores the update program received by the reception unit 13 and the frame data to be transmitted from the transmission unit 12.
 受信部13及び送信部12は、バスB1,B2,B3と接続され、バスB1,B2,B3を介してECU20との間でフレームデータの送受信を行い、無線通信装置30からフレームデータを受信する。また、受信部13及び送信部12は、いわゆるCANコントローラを用いて構成されるものであってもよい。 The receiving unit 13 and the transmitting unit 12 are connected to the buses B1, B2, and B3, transmit / receive frame data to / from the ECU 20 via the buses B1, B2, and B3, and receive frame data from the wireless communication device 30. . The receiving unit 13 and the transmitting unit 12 may be configured using a so-called CAN controller.
 送信部12は、例えば、制御部11からの指示に応じてバッファ14に記憶された送信用のデータ(例えば、更新用プログラム等)を読み出し、読み出したデータを所定の通信プロトコルに従ってフレームデータに変換し、バスB1,B2,B3に出力することによってECU20に送信する。 For example, the transmission unit 12 reads transmission data (for example, an update program) stored in the buffer 14 in accordance with an instruction from the control unit 11, and converts the read data into frame data according to a predetermined communication protocol. And it transmits to ECU20 by outputting to bus | bath B1, B2, B3.
 また、受信部13は、無線通信装置30が取得した更新用プログラム等を含むフレームデータを受信し、受信したフレームデータから更新用プログラム等を抽出してバッファ14に記憶すると共に、更新用プログラム等を受信した旨を制御部11へ通知する。 The receiving unit 13 receives frame data including the update program acquired by the wireless communication device 30, extracts the update program from the received frame data, stores it in the buffer 14, updates the program, etc. Is notified to the control unit 11.
 記憶部15は、例えばEEPROM(Electrically Erasable Programmable Read Only Memory)又はフラッシュメモリ等のデータ書き換え可能な不揮発性のメモリ素子を用いて構成されている。 The storage unit 15 is configured using, for example, an EEPROM (Electrically Erasable Programmable Read Only Memory) or a rewritable nonvolatile memory element such as a flash memory.
 また、記憶部15はLUT(Look Up Table)を格納している。図2は、本実施形態に係る車載中継装置10において、記憶部15が記憶するLUTを概念的に示す概念図である。
 前記LUTには、各ECU20の識別データ(ID)と、各ECU20が接続しているバス(以下、接続バスという)とが関連付けられている。制御部11は記憶部15のLUTに基づいて、更新用プログラム等の送信に用いるバスを決定する処理(以下、バス決定処理という)を行う。
The storage unit 15 stores an LUT (Look Up Table). FIG. 2 is a conceptual diagram conceptually showing the LUT stored in the storage unit 15 in the in-vehicle relay device 10 according to the present embodiment.
The LUT is associated with identification data (ID) of each ECU 20 and a bus to which each ECU 20 is connected (hereinafter referred to as a connection bus). Based on the LUT in the storage unit 15, the control unit 11 performs processing for determining a bus used for transmission of an update program or the like (hereinafter referred to as bus determination processing).
 更に、本実施形態において記憶部15には、バス決定処理を行うためのプログラムP等が記憶される。プログラムPは、例えば、後述する図5の各ステップの処理に対応するものであり、制御部11がプログラムPを読み出して実行することにより、バス決定処理を実現することができる。 Furthermore, in the present embodiment, the storage unit 15 stores a program P for performing bus determination processing. The program P corresponds to, for example, the processing of each step in FIG. 5 described later, and the bus determination processing can be realized by the control unit 11 reading and executing the program P.
 そして、記憶部15は「決定一覧」のテーブル及び「未決定一覧」のテーブルを格納している。図3は、本実施形態に係る車載中継装置10において、バス決定処理前における、「決定一覧」のテーブルの一例を概念的に示す概念図である。 The storage unit 15 stores a “decision list” table and an “undecided list” table. FIG. 3 is a conceptual diagram conceptually illustrating an example of a “decision list” table before the bus determination process in the in-vehicle relay device 10 according to the present embodiment.
 「決定一覧」のテーブルには、無線通信装置30から受信した更新用プログラム等を送信すべき更新対象のECU20(以下、送信先ともいう)と、斯かる更新用プログラム等の送信に用いるバスとしてバス決定処理で決定されたバスとが対応付けられている。
 即ち、「決定一覧」のテーブルは、制御部11によるバス決定処理によって決定された一のバスと、該一のバスを用いて送信する更新用プログラム等(受信データ)の送信先とを対応付けた対応関係を示している。
The “determination list” table includes an update target ECU 20 (hereinafter also referred to as a transmission destination) to which an update program received from the wireless communication device 30 is to be transmitted, and a bus used to transmit such an update program or the like. The bus determined in the bus determination process is associated with the bus.
That is, the “determination list” table associates one bus determined by the bus determination process by the control unit 11 with a transmission destination of an update program or the like (received data) transmitted using the one bus. The corresponding relationship is shown.
 一方、「未決定一覧」のテーブルには、バス決定処理において、更新用プログラム等の送信に用いるバスが決定されなかった場合、斯かる更新用プログラム等の送信先が書き込まれる。 On the other hand, in the “undecided list” table, when the bus used for transmission of the update program or the like is not determined in the bus determination process, the transmission destination of the update program or the like is written.
 本実施形態に係る車載中継装置10では、無線通信装置30から、複数のECU20に送信する複数の更新用プログラムを受信した場合、該複数の更新用プログラムのうち、送信先が単数接続ECUである更新用プログラムに対して優先的にバス決定処理を行う。従って、送信先が単数接続ECUである更新用プログラムに対するバス決定処理が完了するまで、送信先が複数接続ECUである更新用プログラムの送信先を「未決定一覧」のテーブルに一次的に書き込んでおく。 In the in-vehicle relay device 10 according to the present embodiment, when a plurality of update programs to be transmitted to the plurality of ECUs 20 are received from the wireless communication device 30, the transmission destination is a single connection ECU among the plurality of update programs. The bus determination process is preferentially performed for the update program. Therefore, until the bus determination process for the update program whose transmission destination is a single connection ECU is completed, the transmission destination of the update program whose transmission destination is a multiple connection ECU is temporarily written in the table of the “undecided list”. deep.
 図4は、本実施形態に係る車載中継装置10における、制御部11の要部構成を示す機能ブロック図である。制御部11は、CPU111と、ROM112と、RAM113と、判定部114と、決定部115とを備える。 FIG. 4 is a functional block diagram illustrating a main configuration of the control unit 11 in the in-vehicle relay device 10 according to the present embodiment. The control unit 11 includes a CPU 111, a ROM 112, a RAM 113, a determination unit 114, and a determination unit 115.
 ROM112には各種の制御プログラム、演算用のパラメータのうちの基本的に固定のデータ等が予め格納されており、RAM113はデータを一時的に記憶し、記憶順、記憶位置等に関係なく読み出すことが可能である。また、RAM113は、例えば、ROM112から読み出されたプログラム、該プログラムを実行することにより発生する各種データ、該実行の際適宜変化するパラメータ等を記憶する。 The ROM 112 stores in advance basic data, etc., among various control programs and calculation parameters, and the RAM 113 temporarily stores the data and reads it regardless of the storage order, storage position, etc. Is possible. The RAM 113 stores, for example, a program read from the ROM 112, various data generated by executing the program, parameters that change as appropriate during the execution, and the like.
 CPU111は、ROM112に予め格納されている制御プログラムを実行することによって、上述したバス決定処理を行う。 The CPU 111 performs the bus determination process described above by executing a control program stored in advance in the ROM 112.
 判定部114は、無線通信装置30から複数のECU20に送信する複数の更新用プログラム等が受信された場合、バス決定処理にて、各更新用プログラムの送信先が、単数接続ECUであるか、複数接続ECUであるかの判定を行う。 When the determination unit 114 receives a plurality of update programs to be transmitted from the wireless communication device 30 to the plurality of ECUs 20, whether the transmission destination of each update program is a single connection ECU in the bus determination process, or It is determined whether the ECU is a multiple connection ECU.
 決定部115は、判定部114の判定結果に基づいて、記憶部15のLUTを参考に、各更新用プログラムの送信に用いる最適なバスの決定を行う。判定部114及び決定部115の詳細については後述する。 The determination unit 115 determines an optimum bus to be used for transmission of each update program based on the determination result of the determination unit 114 with reference to the LUT in the storage unit 15. Details of the determination unit 114 and the determination unit 115 will be described later.
 図5は、本実施形態に係る車載中継装置10において、制御部11によるバス決定処理を説明するフローチャートである。以下、説明の便宜上、無線通信装置30が外部から、更新用プログラムA~Eを夫々含む5つのフレームデータを受信するとする。 FIG. 5 is a flowchart for explaining bus determination processing by the control unit 11 in the in-vehicle relay device 10 according to the present embodiment. Hereinafter, for convenience of explanation, it is assumed that the wireless communication device 30 receives five frame data including update programs A to E from the outside.
 ここで、更新用プログラムAの送信先はECU1、更新用プログラムBの送信先はECU2、更新用プログラムCの送信先はECU3、更新用プログラムDの送信先はECU4、更新用プログラムEの送信先はECU7である。
 即ち、更新用プログラムA、更新用プログラムB、更新用プログラムDの送信先は単数接続ECUであり、更新用プログラムC、更新用プログラムEの送信先は複数接続ECUである。
Here, the transmission destination of the update program A is ECU1, the transmission destination of the update program B is ECU2, the transmission destination of the update program C is ECU3, the transmission destination of the update program D is ECU4, and the transmission destination of the update program E Is an ECU 7.
That is, the transmission destination of the update program A, the update program B, and the update program D is a single connection ECU, and the transmission destination of the update program C and the update program E is a multiple connection ECU.
 先ず、更新用プログラムAを含むフレームデータに対して、CPU111は、斯かるフレームデータのヘッダ情報から送信先の情報を取得する(ステップS101)。
 次いで、判定部114は、取得された更新用プログラムAの送信先が複数接続ECUであるか否かの判定を行う(ステップS102)。斯かる判定は記憶部15のLUTに基づいて行われる。
First, for the frame data including the update program A, the CPU 111 obtains transmission destination information from the header information of the frame data (step S101).
Next, the determination unit 114 determines whether or not the transmission destination of the acquired update program A is a multi-connection ECU (step S102). Such a determination is made based on the LUT in the storage unit 15.
 更新用プログラムAの送信先が単数接続ECU(ECU1)であるので、判定部114は送信先が複数接続ECUでないと判定する(ステップS102:NO)。 Since the transmission destination of the update program A is a single connection ECU (ECU1), the determination unit 114 determines that the transmission destination is not a multiple connection ECU (NO in step S102).
 次いで、決定部115は、記憶部15のLUTを参考に、更新用プログラムAの送信に用いる最適なバスの決定を行う(ステップS103)。詳しくは、記憶部15のLUTから、ECU1はバスB1にのみ接続しているので、更新用プログラムAの送信に用いる最適なバスとして、決定部115はバスB1を決定する。 Next, the determination unit 115 determines an optimal bus used for transmission of the update program A with reference to the LUT in the storage unit 15 (step S103). Specifically, since the ECU 1 is connected only to the bus B1 from the LUT of the storage unit 15, the determination unit 115 determines the bus B1 as the optimum bus used for transmission of the update program A.
 決定部115によって行われた決定結果を、CPU111が「決定一覧」のテーブルに記憶する(ステップS104)。具体的に、CPU111は、図3の「決定一覧」のテーブルにおいて、「決定されたバス」のバス1(B1)に対応する送信先の欄に「ECU1」と書き込む。 The CPU 111 stores the determination result made by the determination unit 115 in the “determination list” table (step S104). Specifically, the CPU 111 writes “ECU1” in the transmission destination column corresponding to the bus 1 (B1) of the “determined bus” in the “determination list” table of FIG.
 以降、CPU111は受信した全てのフレームデータに対して、「決定一覧」のテーブル又は「未決定一覧」のテーブルへの書き込み処理(以下、書き込み処理という)が完了したが否かを判定する(ステップS106)。
 現在、更新用プログラムAが含まれたフレームデータに対してのみ、書き込み処理が行われたので、CPU111は書き込み処理が完了していないと判定し(ステップS106:NO)、処理をステップS101に戻す。次いで、更新用プログラムBが含まれたフレームデータに対する処理が行われる。斯かる処理は、更新用プログラムAが含まれたフレームデータに対する処理と同様であり、説明を省略する。
Thereafter, the CPU 111 determines whether or not the writing process (hereinafter referred to as writing process) to the “decision list” table or the “undecided list” table has been completed for all received frame data (steps). S106).
Currently, the writing process has been performed only on the frame data including the update program A. Therefore, the CPU 111 determines that the writing process has not been completed (step S106: NO), and returns the process to step S101. . Next, processing is performed on the frame data including the update program B. Such a process is the same as the process for the frame data including the update program A, and a description thereof will be omitted.
 一方、更新用プログラムCが含まれたフレームデータに対して、CPU111は、斯かるフレームデータのヘッダ情報から送信先の情報を取得する(ステップS101)。また、判定部114は、取得された更新用プログラムAの送信先が複数接続ECUであるか否かの判定を行う(ステップS102)。 On the other hand, with respect to the frame data including the update program C, the CPU 111 acquires information on the transmission destination from the header information of the frame data (step S101). Further, the determination unit 114 determines whether or not the transmission destination of the acquired update program A is a multi-connection ECU (step S102).
 更新用プログラムCの送信先が複数接続ECU(ECU3)であるので、判定部114は送信先が複数接続ECUであると判定する(ステップS102:YES)。
 この際、送信先が単数接続ECUである更新用プログラムに対して優先的にバス決定処理を行うために、CPU111は、更新用プログラムCの送信先(ECU3)を「未決定一覧」のテーブルに一次的に書き込む(ステップS105)。
Since the transmission destination of the update program C is the multiple connection ECU (ECU 3), the determination unit 114 determines that the transmission destination is the multiple connection ECU (step S102: YES).
At this time, in order to preferentially perform the bus determination processing for the update program whose transmission destination is a single connection ECU, the CPU 111 sets the transmission destination (ECU 3) of the update program C in the “undecided list” table. Writing is performed temporarily (step S105).
 次いで、CPU111は受信した全てのフレームデータに対して書き込み処理が完了したが否かを判定する(ステップS106)。
 ここまで、更新用プログラムA、B、Cが夫々含まれた3つのフレームデータに対してのみ、書き込み処理が行われたので、CPU111は書き込み処理が完了していないと判定し(ステップS106:NO)、処理をステップS101に再び戻す。
Next, the CPU 111 determines whether or not the writing process has been completed for all received frame data (step S106).
Up to this point, since the writing process has been performed only on the three frame data including the update programs A, B, and C, the CPU 111 determines that the writing process has not been completed (step S106: NO). ), The process returns to step S101 again.
 次いで、更新用プログラムD、Eが夫々含まれたフレームデータに対する処理が行われる。これら処理に対しては詳しい説明を省略する。 Next, processing is performed on the frame data including the update programs D and E, respectively. Detailed description of these processes is omitted.
 更新用プログラムA~Eが夫々含まれた5つのフレームデータに対して、以上のステップS101~ステップS105の処理が繰り返されることによって、これら5つのフレームデータに対する書き込み処理が完了した場合、記憶部15の「決定一覧」のテーブルには、単数接続ECUに対する対応関係が格納される。
 即ち、図6に示すように、「決定されたバス」のバス1(B1)に対応する送信先の欄に「ECU1、ECU2」と書き込まれ、バス2(B2)に対応する送信先の欄に「ECU4」と書き込まれる。
 また、「未決定一覧」のテーブルには、「ECU3、ECU7」と書き込まれる(図示せず)。
When the processing of the above steps S101 to S105 is repeated for the five frame data including the update programs A to E, respectively, and the writing processing for these five frame data is completed, the storage unit 15 The “determination list” table stores correspondences with a single connection ECU.
That is, as shown in FIG. 6, “ECU1, ECU2” is written in the destination column corresponding to bus 1 (B1) of “determined bus”, and the destination column corresponding to bus 2 (B2). "ECU4" is written.
Further, “ECU3, ECU7” is written in the “undetermined list” table (not shown).
 このように、受信された全てのフレームデータに対して書き込み処理が完了したと判定した場合(ステップS106:YES)、CPU111は、「未決定一覧」のテーブルを確認することによって、送信先の書き込みがあるか否かを判定する(ステップS107)。 As described above, when it is determined that the writing process has been completed for all the received frame data (step S106: YES), the CPU 111 checks the “undetermined list” table to write the transmission destination. It is determined whether or not there is (step S107).
 CPU111が「未決定一覧」のテーブルに書き込みがないと判定した場合(ステップS107:NO)、処理は終了する。
 一方、CPU111が「未決定一覧」のテーブルに書き込みがあると判定した場合(ステップS107:YES)、決定部115は「未決定一覧」のテーブルに書き込まれた最初のECUを選択する(ステップS108)。
 上述したように、現在「未決定一覧」のテーブルには、「ECU3、ECU7」と書き込まれているので、決定部115は「ECU3」を最初のECUとして選択し、バス決定処理を行う。
If the CPU 111 determines that there is no writing in the “undetermined list” table (step S107: NO), the process ends.
On the other hand, when the CPU 111 determines that there is a write in the “undetermined list” table (step S107: YES), the determining unit 115 selects the first ECU written in the “undetermined list” table (step S108). ).
As described above, since “ECU3, ECU7” is currently written in the “undecided list” table, the determination unit 115 selects “ECU3” as the first ECU and performs the bus determination process.
 決定部115は、図6の対応関係において、ステップS108で選択したECUの接続バスのうち、対応する送信先が無いバスがあるか否かを判定する(ステップS109)。
 現在ECU3が選択されており、ECU3の接続バスはバスB1及びバスB2である。一方、対応関係(図6参照)においては、バス1(B1)には2つのECUが対応付けられており、バス2(B2)には1つのECUが対応付けられている。従って、決定部115は、ステップS108で選択したECUの接続バスのうち、対応する送信先が無いバスはないと判定する(ステップS109:NO)。
The determination unit 115 determines whether there is a bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 in the correspondence relationship of FIG. 6 (step S109).
The ECU 3 is currently selected, and the connection buses of the ECU 3 are the bus B1 and the bus B2. On the other hand, in the correspondence (see FIG. 6), two ECUs are associated with the bus 1 (B1), and one ECU is associated with the bus 2 (B2). Therefore, the determination unit 115 determines that there is no bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 (step S109: NO).
 この際、決定部115は、対応する送信先が最も少ないバスを送信に用いるバスとして決定する(ステップS113)。
 具体的に、ECU3の接続バスはバスB1及びバスB2であり、前記対応関係においてバス1(B1)には2つのECUが対応付けられており、バス2(B2)には1つのECUが対応付けられている(図6参照)。従って、決定部115は、ECU3の接続バスのうち、バスB2を送信に用いるバスとして決定する。
At this time, the determination unit 115 determines the bus with the smallest number of corresponding transmission destinations as the bus used for transmission (step S113).
Specifically, the connection buses of the ECU 3 are the bus B1 and the bus B2, and in the correspondence relationship, two ECUs are associated with the bus 1 (B1), and one ECU is associated with the bus 2 (B2). (See FIG. 6). Therefore, the determination part 115 determines bus B2 among the connection buses of ECU3 as a bus used for transmission.
 次いで、CPU111は、ステップS113での決定結果を記憶部15の「決定一覧」のテーブルに書き込んで記憶する(ステップS111)。即ち、CPU111は、図7に示す「決定一覧」のテーブルのように、「決定されたバス」のバス2(B2)に対応する送信先の欄に「ECU3」と書き込む。
 また、CPU111は、記憶部15の「未決定一覧」欄のテーブルからECU3を削除する(ステップS112)。
Next, the CPU 111 writes and stores the determination result in step S113 in the “determination list” table of the storage unit 15 (step S111). That is, the CPU 111 writes “ECU3” in the transmission destination column corresponding to the bus 2 (B2) of the “determined bus” as in the “determination list” table shown in FIG.
Further, the CPU 111 deletes the ECU 3 from the table in the “undecided list” column of the storage unit 15 (step S112).
 その後、CPU111は、「未決定一覧」のテーブルに書き込まれた送信先に対するバス決定処理が完了したか否かを判定する(ステップS114)。斯かる判定は、「未決定一覧」のテーブルを確認することによって行われる。現在、ECU3は削除されたものの、ECU7がまだ書き込まれている。従って、CPU111は、「未決定一覧」のテーブルに書き込まれた送信先に対するバス決定処理が完了していないと判定し(ステップS114:NO)、処理をステップS108に戻す。 Thereafter, the CPU 111 determines whether or not the bus determination process for the transmission destination written in the “undetermined list” table is completed (step S114). Such a determination is made by checking the table of the “undecided list”. Currently, the ECU 3 is deleted, but the ECU 7 is still written. Therefore, the CPU 111 determines that the bus determination process for the transmission destination written in the “undetermined list” table is not completed (step S114: NO), and returns the process to step S108.
 ステップS108に戻り、決定部115は「未決定一覧」のテーブルに書き込まれた最初のECUを選択する(ステップS108)。
 上述したように、現在「未決定一覧」のテーブルには、ECU7のみが書き込まれているので、決定部115は「ECU7」を最初のECUとして選択し、バス決定処理を行う。
Returning to step S108, the determination unit 115 selects the first ECU written in the “undecided list” table (step S108).
As described above, since only the ECU 7 is currently written in the “undetermined list” table, the determination unit 115 selects “ECU 7” as the first ECU and performs the bus determination process.
 決定部115は、図7の対応関係において、ステップS108で選択したECUの接続バスのうち、対応する送信先が無いバスがあるか否かを判定する(ステップS109)。
 現在ECU7が選択されており、ECU7の接続バスはバスB2及びバスB3である。
一方、対応関係(図7参照)においては、バス2(B2)には2つのECUが対応付けられており、バス3(B3)にはECUが対応付けられていない。従って、決定部115は、ステップS108で選択したECUの接続バスのうち、対応する送信先が無いバスがあると判定する(ステップS109:YES)。
The determination unit 115 determines whether there is a bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 in the correspondence relationship of FIG. 7 (step S109).
The ECU 7 is currently selected, and the connection buses of the ECU 7 are the bus B2 and the bus B3.
On the other hand, in the correspondence (see FIG. 7), two ECUs are associated with the bus 2 (B2), and no ECU is associated with the bus 3 (B3). Accordingly, the determination unit 115 determines that there is a bus having no corresponding transmission destination among the connection buses of the ECU selected in step S108 (step S109: YES).
 この際、決定部115は、対応する送信先がないバスを送信に用いるバスとして決定する(ステップS110)。
 上述したように、ECU7の接続バスはバスB2及びバスB3であり、バス2(B2)には2つのECUが対応付けられており、バス3(B3)にはECUが対応付けられていない(図7参照)。従って、決定部115は、ECU7の接続バスのうち、バスB3を送信に用いるバスとして決定する。
At this time, the determination unit 115 determines a bus having no corresponding transmission destination as a bus used for transmission (step S110).
As described above, the connection buses of the ECU 7 are the bus B2 and the bus B3, two ECUs are associated with the bus 2 (B2), and no ECU is associated with the bus 3 (B3) ( (See FIG. 7). Therefore, the determination part 115 determines bus B3 among the connection buses of ECU7 as a bus used for transmission.
 次いで、CPU111は、ステップS110での決定結果を記憶部15の「決定一覧」のテーブルに書き込んで記憶する(ステップS111)。即ち、CPU111は、図7の「決定一覧」のテーブルにおいて、「決定されたバス」のバス3(B3)に対応する送信先の欄に「ECU7」と書き込む。
 また、CPU111は、記憶部15の「未決定一覧」のテーブルからECU7を削除する(ステップS112)。
Next, the CPU 111 writes and stores the determination result in step S110 in the “determination list” table of the storage unit 15 (step S111). That is, the CPU 111 writes “ECU7” in the transmission destination column corresponding to the bus 3 (B3) of the “determined bus” in the “determination list” table of FIG.
Further, the CPU 111 deletes the ECU 7 from the “undecided list” table in the storage unit 15 (step S112).
 その後、CPU111は、「未決定一覧」のテーブルに書き込まれた送信先に対するバス決定処理が完了したか否かを判定する(ステップS114)。「未決定一覧」のテーブルからECU3及びECU7が全て削除されている。従って、CPU111は、「未決定一覧」のテーブルに書き込まれた送信先に対するバス決定処理が完了したと判定し(ステップS114:YES)、処理を終了する。 Thereafter, the CPU 111 determines whether or not the bus determination process for the transmission destination written in the “undetermined list” table is completed (step S114). The ECU 3 and the ECU 7 are all deleted from the “undetermined list” table. Accordingly, the CPU 111 determines that the bus determination process for the transmission destination written in the “undetermined list” table is completed (step S114: YES), and ends the process.
 以降、このように、バス決定処理で定められたバスを介して、送信部12は、更新用プログラムA~Eを対象のECU20に夫々送信する。 Thereafter, the transmission unit 12 transmits the update programs A to E to the target ECU 20 via the bus determined in the bus determination process as described above.
 以上のような構成を有することから、本実施形態に係る車載中継装置10は、複数の更新用プログラム等を受信した場合において、各更新用プログラムの送信先への送信に用いられるバスの重複を極力抑制でき、対象ECUにおけるプログラム更新を最短時間内に行うことができる。 Since it has the above configuration, the in-vehicle relay device 10 according to the present embodiment, when receiving a plurality of update programs, etc., duplicates the bus used for transmission of each update program to the transmission destination. As much as possible, the program update in the target ECU can be performed within the shortest time.
 また、以上のように、本実施形態に係る車載中継装置10においては、複数の更新用プログラムを受信した場合、該複数の更新用プログラムのうち、送信先が単数接続ECUである更新用プログラムに対して優先的にバス決定処理を行う。即ち、バスの選択が出来ない単数接続ECUへの送信に用いられるバスを優先して決定しておき、その後、複数接続ECUへの送信に用いられるバスは、既に決定されたバスと極力重複しないように選択的に決定する。従って、更新用プログラム等の送信に用いられるバスの重複の抑制をより効果的に行うことができる。 Further, as described above, in the in-vehicle relay device 10 according to the present embodiment, when a plurality of update programs are received, among the plurality of update programs, an update program whose transmission destination is a single connection ECU is used. On the other hand, the bus determination process is preferentially performed. That is, the bus used for transmission to the single connection ECU in which the bus cannot be selected is determined with priority, and then the bus used for transmission to the multiple connection ECU does not overlap with the already determined bus as much as possible. To be determined selectively. Accordingly, it is possible to more effectively suppress duplication of buses used for transmission of update programs and the like.
 なお、上述した判定部114及び決定部115は、ハードウェアロジックによって構成してもよいし、CPU111が所定のプログラムを実行することにより、ソフトウェア的に構築されてもよい。 Note that the determination unit 114 and the determination unit 115 described above may be configured by hardware logic, or may be constructed in software by the CPU 111 executing a predetermined program.
(実施形態2)
 実施形態1においては、更新用プログラム等を対象のECU20に送信する際に用いられるバスを車両Cの車載中継装置10で決定したものの、実施形態2においては、サーバ装置40(情報処理装置)がバスを決定する。
(Embodiment 2)
In the first embodiment, although the in-vehicle relay device 10 of the vehicle C determines the bus used when the update program or the like is transmitted to the target ECU 20, the server device 40 (information processing device) is used in the second embodiment. Determine the bus.
 図8は、実施形態2に係る車載通信システム100の要部構成を示すブロック図である。本実施形態に係る車載通信システム100は、車両Cとサーバ装置40とを含む。 FIG. 8 is a block diagram illustrating a main configuration of the in-vehicle communication system 100 according to the second embodiment. The in-vehicle communication system 100 according to the present embodiment includes a vehicle C and a server device 40.
 本実施形態に係る車両Cは、1つの車載中継装置10と、複数のECU20と、無線通信装置30とを備えている。ECU20は、ECU1,ECU2,…ECU9の9つである。以下、ECU1,ECU2,…ECU9をまとめてECU20ともいう。 The vehicle C according to the present embodiment includes one in-vehicle relay device 10, a plurality of ECUs 20, and a wireless communication device 30. There are nine ECUs 20, ECU1, ECU2,. Hereinafter, ECU1, ECU2,... ECU9 are collectively referred to as ECU20.
 サーバ装置40は、ECU20のプログラムの更新処理に必要な更新用プログラム又はデータ等を含むフレームデータを車両Cの無線通信装置30に送信する。無線通信装置30は受信したフレームデータを車載中継装置10に送信し、車載中継装置10はこれを更新対象のECU20に夫々送信する。
 本実施形態に係る車両Cの要部構成は、実施形態1に係る車両Cと同じであり、詳しい説明を省略する。
The server device 40 transmits frame data including an update program or data necessary for a program update process of the ECU 20 to the wireless communication device 30 of the vehicle C. The wireless communication device 30 transmits the received frame data to the in-vehicle relay device 10, and the in-vehicle relay device 10 transmits this to the ECU 20 to be updated.
The main configuration of the vehicle C according to the present embodiment is the same as that of the vehicle C according to the first embodiment, and detailed description thereof is omitted.
 本実施形態に係るサーバ装置40は、制御部41、送信部42、及び記憶部43等を備えて構成されている。 The server device 40 according to the present embodiment includes a control unit 41, a transmission unit 42, a storage unit 43, and the like.
 制御部41は、例えばCPU又はMPU等の演算処理装置を含んでおり、記憶部43又はROM(図9参照)等に記憶された各種プログラムを実行することにより種々の処理を行う。記憶部43には、車両Cの各ECU20のプログラムを更新するための更新用プログラムが格納されており、制御部41は、例えば、各ECU20の更新用プログラム等を車両Cに送信する処理、及び斯かる更新用プログラム等を車両Cにおいて対象のECU20に送信する際に用いられるバスを予め決定する処理(バス決定処理)等を行う。 The control unit 41 includes an arithmetic processing unit such as a CPU or an MPU, for example, and performs various processes by executing various programs stored in the storage unit 43 or the ROM (see FIG. 9). The storage unit 43 stores an update program for updating the program of each ECU 20 of the vehicle C, and the control unit 41, for example, a process of transmitting the update program of each ECU 20 to the vehicle C, and Processing (bus determination processing) for determining a bus used in advance when transmitting such an update program or the like to the target ECU 20 in the vehicle C is performed.
 また、制御部41は、所定の更新用プログラムに対し、バス決定処理によって特定のバスが決定された場合、決定された特定のバスを表すバス情報(バスデータ)を前記所定の更新用プログラムに付する。 In addition, when a specific bus is determined by the bus determination process with respect to a predetermined update program, the control unit 41 stores bus information (bus data) representing the determined specific bus in the predetermined update program. Attached.
 記憶部43は、例えばEEPROM又はフラッシュメモリ等のデータ書き換え可能な不揮発性のメモリ素子を用いて構成されている。 The storage unit 43 is configured using a non-volatile rewritable memory element such as an EEPROM or a flash memory.
 また、記憶部43はLUTを格納している。前記LUTには、車両Cの各ECU20の識別データ(ID)と、各ECU20が接続している接続バスとが関連付けられている(図2参照)。制御部41は記憶部43のLUTに基づき、車両Cにおいて更新用プログラム等の送信に用いられるバスを決定するバス決定処理を行う。 Further, the storage unit 43 stores an LUT. The LUT is associated with identification data (ID) of each ECU 20 of the vehicle C and a connection bus to which each ECU 20 is connected (see FIG. 2). Based on the LUT in the storage unit 43, the control unit 41 performs a bus determination process for determining a bus used for transmission of an update program or the like in the vehicle C.
 更に、本実施形態において記憶部43には、バス決定処理を行うためのプログラムP等が記憶される。プログラムPは、例えば、上述した図5の各ステップの処理に対応するものであり、制御部41がプログラムPを読み出して実行することにより、バス決定処理を実現することができる。 Furthermore, in this embodiment, the storage unit 43 stores a program P for performing bus determination processing. The program P corresponds to, for example, the processing of each step in FIG. 5 described above, and the bus determination processing can be realized by the control unit 41 reading and executing the program P.
 そして、記憶部43は、実施形態1と同様、「決定一覧」のテーブル及び「未決定一覧」のテーブルを格納している。「決定一覧」のテーブル及び「未決定一覧」のテーブルについては既に説明しており、詳しい説明を省略する。 The storage unit 43 stores a “decision list” table and an “undecided list” table as in the first embodiment. The “decision list” table and the “undetermined list” table have already been described, and a detailed description thereof will be omitted.
 送信部42は、前記バス情報及び更新用プログラムを含むフレームデータ(送信データ)を所定の通信プロトコルに従って車両Cに送信する。 The transmission unit 42 transmits frame data (transmission data) including the bus information and the update program to the vehicle C according to a predetermined communication protocol.
 図9は、本実施形態に係る車載通信システム100における、サーバ装置40の制御部41の要部構成を示す機能ブロック図である。制御部41は、CPU411と、ROM412と、RAM413と、判定部414と、決定部415と、付加部416を備える。 FIG. 9 is a functional block diagram illustrating a main configuration of the control unit 41 of the server device 40 in the in-vehicle communication system 100 according to the present embodiment. The control unit 41 includes a CPU 411, a ROM 412, a RAM 413, a determination unit 414, a determination unit 415, and an addition unit 416.
 ROM412には各種の制御プログラム、演算用のパラメータのうちの基本的に固定のデータ等が予め格納されており、RAM413はデータを一時的に記憶し、記憶順、記憶位置等に関係なく読み出すことが可能である。また、RAM413は、例えば、ROM412から読み出されたプログラム、該プログラムを実行することにより発生する各種データ、該実行の際適宜変化するパラメータ等を記憶する。 The ROM 412 stores in advance basic data, etc., among various control programs and calculation parameters. The RAM 413 temporarily stores the data and reads it regardless of the storage order, storage position, etc. Is possible. The RAM 413 stores, for example, a program read from the ROM 412, various data generated by executing the program, parameters that change as appropriate during the execution, and the like.
 CPU411は、ROM412に予め格納されている制御プログラムをRAM413上にロードして実行することによって、上述したバス決定処理を行う。 The CPU 411 performs the bus determination process described above by loading a control program stored in advance in the ROM 412 onto the RAM 413 and executing it.
 判定部414は、複数のECU20に係る複数の更新用プログラム等を車両Cに送信する場合、バス決定処理にて、各更新用プログラムの送信先が、単数接続ECUであるか、複数接続ECUであるかの判定を行う。 When the determination unit 414 transmits a plurality of update programs and the like related to the plurality of ECUs 20 to the vehicle C, in the bus determination process, the transmission destination of each update program is a single connection ECU or a plurality of connection ECUs. Determine if there is any.
 決定部415は、判定部414の判定結果に基づいて、記憶部43のLUTを参考に、車両Cにおける各更新用プログラムの送信に用いる最適なバスの決定を行う。 The determining unit 415 determines an optimum bus to be used for transmission of each update program in the vehicle C with reference to the LUT in the storage unit 43 based on the determination result of the determining unit 414.
 付加部416は、車両Cに送信すべき所定の更新用プログラムに対して決定部415にて決定されたバス(以下、決定バスという)を表すバス情報(バスデータ)を、前記所定の更新用プログラムを含むフレームデータにヘッダ情報として付加する。 The adding unit 416 uses bus information (bus data) representing the bus determined by the determining unit 415 with respect to a predetermined updating program to be transmitted to the vehicle C (hereinafter referred to as a determined bus) for the predetermined updating. It is added as header information to the frame data including the program.
 図10は、本実施形態に係る車載通信システム100において、サーバ装置40の制御部41が更新用プログラムを送信する処理を説明するフローチャートである。 FIG. 10 is a flowchart illustrating a process in which the control unit 41 of the server device 40 transmits the update program in the in-vehicle communication system 100 according to the present embodiment.
 複数のECU20に係る複数の更新用プログラム等を車両Cに送信する前、制御部41は予めバス決定処理を実行する(ステップS201)。斯かるバス決定処理は、実施形態1の図5に示す処理と同様であり、詳しい説明を省略する。
 但し、ステップS201のバス決定処理において、CPU411と、ROM412と、RAM413と、判定部414と、決定部415とは、夫々、CPU111と、ROM112と、RAM113と、判定部114と、決定部115と同様に機能する。
Before transmitting a plurality of update programs and the like related to the plurality of ECUs 20 to the vehicle C, the control unit 41 executes a bus determination process in advance (step S201). Such bus determination processing is the same as the processing shown in FIG. 5 of the first embodiment, and detailed description thereof is omitted.
However, in the bus determination process in step S201, the CPU 411, the ROM 412, the RAM 413, the determination unit 414, and the determination unit 415 are the CPU 111, the ROM 112, the RAM 113, the determination unit 114, and the determination unit 115, respectively. Works in the same way.
 ステップS201でのバス決定処理によって、車両Cに送信すべき複数の更新用プログラムに係る決定バスが全て定められた場合、付加部416は、各更新用プログラムに対して、対応する決定バスを表すバス情報を付する(ステップS202)。 When all the determination buses related to the plurality of update programs to be transmitted to the vehicle C are determined by the bus determination process in step S201, the adding unit 416 represents a corresponding determination bus for each update program. The bus information is attached (step S202).
 次いで、送信部42は、各更新用プログラム及び対応するバス情報を含むフレームデータを車両Cに送信する(ステップS203)。 Next, the transmission unit 42 transmits frame data including each update program and corresponding bus information to the vehicle C (step S203).
 このようにサーバ装置40から送信された複数のフレームデータは、車両Cの無線通信装置30によって受信される。無線通信装置30は受信した複数のフレームデータを車載中継装置10に送信し、車載中継装置10は夫々のフレームデータから更新用プログラムを抽出する。車載中継装置10は、抽出した更新用プログラムを、斯かるフレームデータに含まれたバス情報(決定バス)に基づいて更新対象のECU20に夫々送信する。 Thus, the plurality of frame data transmitted from the server device 40 is received by the wireless communication device 30 of the vehicle C. The wireless communication device 30 transmits the received plurality of frame data to the in-vehicle relay device 10, and the in-vehicle relay device 10 extracts an update program from each frame data. The in-vehicle relay device 10 transmits the extracted update program to the ECU 20 to be updated based on the bus information (decision bus) included in the frame data.
 以上のような構成を有することから、本実施形態に係る車載通信システム100は、複数の更新用プログラム等を車両CのECU20に送信する場合において、各更新用プログラムの送信先への送信に用いられるバスの重複を極力抑制でき、対象ECUにおけるプログラム更新を最短時間内に行うことができる。 With the configuration as described above, the in-vehicle communication system 100 according to the present embodiment is used to transmit each update program to the transmission destination when a plurality of update programs and the like are transmitted to the ECU 20 of the vehicle C. Duplication of the buses to be performed can be suppressed as much as possible, and the program update in the target ECU can be performed within the shortest time.
 また、本実施形態に係る車載通信システム100においては、上述したバス決定処理をサーバ装置40が行うので、車両Cにおける処理負担を減らすと共に、車両Cで更新用プログラムの送信及びプログラム更新が迅速に行われる。 Further, in the in-vehicle communication system 100 according to the present embodiment, the server device 40 performs the bus determination process described above, so that the processing load on the vehicle C is reduced and the transmission of the update program and the program update are quickly performed on the vehicle C. Done.
 なお、上述した判定部414、決定部415及び付加部416は、ハードウェアロジックによって構成してもよいし、CPU411が所定のプログラムを実行することにより、ソフトウェア的に構築されてもよい。 Note that the determination unit 414, the determination unit 415, and the addition unit 416 described above may be configured by hardware logic, or may be configured by software by the CPU 411 executing a predetermined program.
 実施形態1と同様の部分については、同一の符号を付して詳細な説明を省略する。  About the same part as Embodiment 1, the same code | symbol is attached | subjected and detailed description is abbreviate | omitted. *
 今回開示された実施形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、請求の範囲によって示され、請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 It should be considered that the embodiment disclosed this time is illustrative in all respects and not restrictive. The scope of the present invention is defined not by the above-described meaning but by the scope of claims, and is intended to include all modifications within the meaning and scope equivalent to the scope of claims.
 10 車載中継装置
 11 制御部
 13 受信部
 15 記憶部
 20 ECU
 111 CPU
 114 判定部 
 115 決定部
 B1,B2,B3 バス
DESCRIPTION OF SYMBOLS 10 In-vehicle relay apparatus 11 Control part 13 Reception part 15 Memory | storage part 20 ECU
111 CPU
114 determination unit
115 decision part B1, B2, B3 bus

Claims (12)

  1.  複数のバスが接続されており、前記バスと接続する通信装置にデータを送信する車載中継装置において、
     複数の通信装置に送信すべき複数のデータを受信する受信部と、
     受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかを判定する判定部と、
     前記判定部の判定結果に基づいて、各受信データの送信に用いるバスの決定を行う決定部とを備える車載中継装置。
    In an in-vehicle relay device that is connected to a plurality of buses and transmits data to a communication device connected to the bus,
    A receiving unit for receiving a plurality of data to be transmitted to a plurality of communication devices;
    A determination unit that determines whether a transmission destination of received data is a first communication device connected to one bus or a second communication device connected to two or more buses;
    A vehicle-mounted relay device comprising: a determination unit that determines a bus used for transmission of each reception data based on a determination result of the determination unit.
  2.  各通信装置と、各通信装置が接続するバスとを関連付けて記憶する記憶部を備え、
     前記決定部は、前記記憶部の記憶内容に基づいて、前記決定を行う請求項1に記載の車載中継装置。
    A storage unit that stores each communication device in association with a bus connected to each communication device,
    The in-vehicle relay device according to claim 1, wherein the determination unit performs the determination based on the storage content of the storage unit.
  3.  前記決定部は、前記送信先が前記第1通信装置である受信データの送信に用いるバスを優先して決定し、
     前記記憶部は、前記決定部によって決定された一のバスと、該一のバスを用いて送信する受信データの送信先とを対応付けた対応関係を記憶する請求項2に記載の車載中継装置。
    The determination unit preferentially determines a bus used for transmission of reception data whose transmission destination is the first communication device,
    The in-vehicle relay device according to claim 2, wherein the storage unit stores a correspondence relationship in which one bus determined by the determination unit is associated with a transmission destination of reception data transmitted using the one bus. .
  4.  前記受信データの送信先が前記第2通信装置である場合、前記決定部は、前記対応関係に基づいて、対応する送信先がないバスを送信に用いるバスとして決定する請求項3に記載の車載中継装置。 The in-vehicle unit according to claim 3, wherein when the transmission destination of the reception data is the second communication device, the determination unit determines a bus having no corresponding transmission destination as a bus used for transmission based on the correspondence relationship. Relay device.
  5.  前記決定部は、対応する送信先のないバスがない場合、対応する送信先が最も少ないバスを送信に用いるバスとして決定する請求項4に記載の車載中継装置。 The in-vehicle relay device according to claim 4, wherein when there is no bus having no corresponding transmission destination, the determination unit determines a bus having the smallest corresponding transmission destination as a bus used for transmission.
  6.  情報処理装置と、複数のバスが接続され、前記バスと接続する通信装置にデータを送信する車載中継装置とを含む通信システムにおいて、
     前記情報処理装置は、
     複数の通信装置に送信すべき複数の送信データに対し、送信先が、前記車載中継装置の一つのバスと接続する第1通信装置であるか、前記車載中継装置の2つ以上のバスと接続する第2通信装置であるかを判定する判定部と、
     前記判定部の判定結果に基づいて、前記車載中継装置による各送信データの送信に用いられるバスの決定を行う決定部と、
     前記決定部によって決定されたバスを表すバスデータを、各送信データに付する付加部と、
     前記バスデータが付された前記複数の送信データを前記車載中継装置に送信する送信部とを備えており、
     前記車載中継装置は、
     前記情報処理装置から前記複数の送信データを受信する受信部を備え、
     前記送信データに付されたバスデータに基づいて、前記送信データを前記通信装置に送信する通信システム。
    In a communication system including an information processing device and a vehicle-mounted relay device that is connected to a plurality of buses and transmits data to the communication device connected to the bus,
    The information processing apparatus includes:
    For a plurality of transmission data to be transmitted to a plurality of communication devices, the transmission destination is the first communication device connected to one bus of the in-vehicle relay device, or connected to two or more buses of the in-vehicle relay device A determination unit that determines whether or not the second communication device is,
    A determination unit that determines a bus used for transmission of each transmission data by the in-vehicle relay device based on a determination result of the determination unit;
    An addition unit for attaching bus data representing the bus determined by the determination unit to each transmission data;
    A transmission unit that transmits the plurality of transmission data to which the bus data is attached to the in-vehicle relay device;
    The in-vehicle relay device is
    A receiving unit that receives the plurality of transmission data from the information processing apparatus;
    A communication system for transmitting the transmission data to the communication device based on bus data attached to the transmission data.
  7.  前記情報処理装置は、
     各通信装置と、各通信装置が接続する、前記車載中継装置のバスとを関連付けて記憶する記憶部を備え、
     前記決定部は、前記記憶部の記憶内容に基づいて、前記決定を行う請求項6に記載の通信システム。
    The information processing apparatus includes:
    A storage unit that associates and stores each communication device and the bus of the in-vehicle relay device to which each communication device is connected,
    The communication system according to claim 6, wherein the determination unit performs the determination based on the storage content of the storage unit.
  8.  前記決定部は、前記送信先が前記第1通信装置である送信データに対し、前記車載中継装置による送信に用いられるバスの決定を優先して行い、
     前記記憶部は、前記決定部によって決定された一のバスと、該一のバスを用いて前記車載中継装置が送信する送信データの送信先とを対応付けた対応関係を記憶する請求項7に記載の通信システム。
    The determination unit preferentially determines a bus used for transmission by the in-vehicle relay device for transmission data whose transmission destination is the first communication device,
    The storage unit stores a correspondence relationship in which one bus determined by the determination unit is associated with a transmission destination of transmission data transmitted by the in-vehicle relay device using the one bus. The communication system described.
  9.  前記送信データの送信先が前記第2通信装置である場合、前記決定部は、前記対応関係に基づいて、対応する送信先がないバスを前記車載中継装置による送信に用いるバスとして決定する請求項8に記載の通信システム。 When the transmission destination of the transmission data is the second communication device, the determination unit determines a bus having no corresponding transmission destination as a bus used for transmission by the in-vehicle relay device based on the correspondence relationship. 9. The communication system according to 8.
  10.  前記決定部は、対応する送信先のないバスがない場合、対応する送信先が最も少ないバスを前記車載中継装置による送信に用いるバスとして決定する請求項9に記載の通信システム。 10. The communication system according to claim 9, wherein, when there is no bus having no corresponding transmission destination, the determination unit determines a bus having the smallest corresponding transmission destination as a bus used for transmission by the in-vehicle relay device.
  11.  複数のバスが接続されており、前記バスと接続する通信装置にデータを送信する車載中継装置にて、前記データの送信に用いるバスを決定するバス決定方法において、
     複数の通信装置に送信すべき複数のデータを受信し、
     受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかの判定を行い、
     前記判定の結果に基づいて、各受信データの送信に用いるバスの決定を行うことを含むバス決定方法。
    In a bus determination method in which a plurality of buses are connected, and in the in-vehicle relay device that transmits data to a communication device connected to the bus, the bus used for transmitting the data is determined.
    Receiving a plurality of data to be transmitted to a plurality of communication devices;
    Determining whether the destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses;
    A bus determination method including determining a bus to be used for transmission of each received data based on a result of the determination.
  12.  複数のバスが接続されており、前記バスと接続する通信装置にデータを送信するコンピュータに、
     複数の通信装置に送信すべき複数のデータを受信し、
     受信データの送信先が、一つのバスと接続する第1通信装置であるか、2つ以上のバスと接続する第2通信装置であるかの判定を行い、
     前記判定の結果に基づいて、各受信データの送信に用いるバスの決定を行わせる処理を実行するコンピュータプログラム。 
    A plurality of buses are connected to a computer that transmits data to a communication device connected to the buses.
    Receiving a plurality of data to be transmitted to a plurality of communication devices;
    Determining whether the destination of the received data is a first communication device connected to one bus or a second communication device connected to two or more buses;
    A computer program for executing processing for determining a bus to be used for transmission of each received data based on a result of the determination.
PCT/JP2019/018933 2018-05-14 2019-05-13 Vehicle-mounted relay device, communication system, bus determination method, and computer program WO2019221058A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018-093312 2018-05-14
JP2018093312A JP2019199122A (en) 2018-05-14 2018-05-14 On-vehicle relay device, communication system, bus determination method and computer program

Publications (1)

Publication Number Publication Date
WO2019221058A1 true WO2019221058A1 (en) 2019-11-21

Family

ID=68539981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/018933 WO2019221058A1 (en) 2018-05-14 2019-05-13 Vehicle-mounted relay device, communication system, bus determination method, and computer program

Country Status (2)

Country Link
JP (1) JP2019199122A (en)
WO (1) WO2019221058A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021106568A1 (en) * 2019-11-27 2021-06-03 株式会社オートネットワーク技術研究所 Vehicle-mounted updating device, program, and program updating method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7247905B2 (en) * 2020-01-22 2023-03-29 トヨタ自動車株式会社 First relay device, second relay device, first relay method, second relay method, first relay program, second relay program, and relay system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006333007A (en) * 2005-05-25 2006-12-07 Nissan Motor Co Ltd Vehicle communication system and data communication method
JP2017143449A (en) * 2016-02-11 2017-08-17 株式会社デンソー Communication device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006333007A (en) * 2005-05-25 2006-12-07 Nissan Motor Co Ltd Vehicle communication system and data communication method
JP2017143449A (en) * 2016-02-11 2017-08-17 株式会社デンソー Communication device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021106568A1 (en) * 2019-11-27 2021-06-03 株式会社オートネットワーク技術研究所 Vehicle-mounted updating device, program, and program updating method
JP7310570B2 (en) 2019-11-27 2023-07-19 株式会社オートネットワーク技術研究所 In-vehicle update device, program, and program update method

Also Published As

Publication number Publication date
JP2019199122A (en) 2019-11-21

Similar Documents

Publication Publication Date Title
US11599349B2 (en) Gateway device, in-vehicle network system, and firmware update method
JP6380461B2 (en) Relay device, program update system, and program update method
JP6665728B2 (en) In-vehicle update device, in-vehicle update system and communication device update method
JP6323480B2 (en) Program update system, program update method, and computer program
WO2017119345A1 (en) Car onboard update device, update system, and updating program
JP6562134B2 (en) Relay device, program update system, and program update method
JP5353545B2 (en) In-vehicle network device
WO2019202965A1 (en) In-vehicle updating device, in-vehicle updating system, updating processing method, and updating processing program
WO2019216330A1 (en) In-vehicle update device, update process method, and update process program
JP6060782B2 (en) Relay device
JP2013060047A (en) Vehicle network system, and method of processing vehicle information
JP2023090981A (en) Gateway device, on-vehicle network system and firmware update method
US20200167307A1 (en) In-vehicle relay device, control program, and memory sharing method
JP4987760B2 (en) Relay device, communication system, and communication method
WO2019221058A1 (en) Vehicle-mounted relay device, communication system, bus determination method, and computer program
JP6562133B2 (en) Relay device, program update system, and program update method
US10300923B2 (en) Device for storing data in a motor vehicle
JP7087334B2 (en) Electronic control device
US11803364B2 (en) Server, software updating device, vehicle, software updating system, control method, and non-transitory storage medium
US20210065478A1 (en) Electronic control unit and non-transitory computer readable medium storing session establishment program
JP6769270B2 (en) In-vehicle electronic control device, in-vehicle electronic control system, relay device
JP6631676B2 (en) In-vehicle update device, update system and update processing program
WO2020195034A1 (en) Vehicle-mounted update device, update processing system, update processing method, and processing program
US11947824B2 (en) Electronic control unit, method, and program
JP2023132231A (en) Management information rewriting system and vehicle with the system

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: 19802752

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: 19802752

Country of ref document: EP

Kind code of ref document: A1