WO2018051833A1 - Relay device, communication system, transmission method and computer program - Google Patents

Relay device, communication system, transmission method and computer program Download PDF

Info

Publication number
WO2018051833A1
WO2018051833A1 PCT/JP2017/031826 JP2017031826W WO2018051833A1 WO 2018051833 A1 WO2018051833 A1 WO 2018051833A1 JP 2017031826 W JP2017031826 W JP 2017031826W WO 2018051833 A1 WO2018051833 A1 WO 2018051833A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
transmission
unit
ecu
communication
Prior art date
Application number
PCT/JP2017/031826
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 WO2018051833A1 publication Critical patent/WO2018051833A1/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
    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/44Star or tree networks

Definitions

  • the present invention relates to a relay device that is connected to a plurality of communication lines and relays communication between two communication devices connected to each of the two communication lines in the plurality of communication lines, and a communication system including the relay device. And a transmission method for transmitting update data for updating the computer program, and a computer program for transmitting the update data.
  • a communication system mounted on a vehicle As a communication system mounted on a vehicle, a communication system including a relay device that is connected to a plurality of communication lines and relays communication between two communication devices connected to two communication lines in the plurality of communication lines (for example, see Patent Document 1).
  • the communication device is an ECU (Electronic Control Unit), and a computer program is stored in the communication device.
  • the communication apparatus has a CPU (Central Processing Unit), and this CPU executes various processes by executing computer programs stored in the communication apparatus.
  • CPU Central Processing Unit
  • the relay apparatus transmits update data for updating the computer program to the communication apparatus via the transmission line that is one of the plurality of communication lines described above.
  • the relay device determines whether the communication load is high for the transmission line.
  • the relay device determines that the communication load of the transmission line is high, for example, when the occupancy ratio of the transmission time during which data is transmitted via the transmission line occupies per unit time is high.
  • the relay device transmits a control command to all the communication devices connected to the transmission line. Thereby, since these communication apparatuses reduce the transmission amount of the data transmitted per unit time via the transmission line, the communication load of the transmission line decreases.
  • the relay apparatus transmits the update data to the communication apparatus that is the update target of the computer program via the transmission line.
  • the data transmitted / received via the transmission line is considered to contain data related to vehicle operation.
  • transmission / reception of data relating to driving of a vehicle is delayed, some control performed in the vehicle may be delayed. For this reason, it is not preferable to reduce the transmission amount per unit time of other data excluding update data.
  • transmission of update data is usually realized by repeatedly transmitting partial data that is a part of update data. In this case, it is not preferable to reduce the transmission amount per unit time of other data excluding partial data.
  • a relay device is a relay device that is connected to a plurality of communication lines and relays communication between two communication devices connected to two communication lines of the plurality of communication lines.
  • a calculation unit that calculates an occupancy ratio of a transmission time during which data is transmitted per unit time for a first communication line that is one of the communication lines, and a computer based on the occupancy ratio calculated by the calculation unit
  • a determination unit that determines a transmission amount per unit time of partial data that is a part of update data for updating a program, and the partial data with the transmission amount per unit time determined by the determination unit.
  • a transmission unit that repeatedly transmits via a communication line.
  • the relay apparatus includes a second calculation unit that calculates an occupancy ratio of a transmission time during which data is transmitted per unit time for the second communication line, and an occupancy calculated by the second calculation unit.
  • a second determination unit that determines a transmission amount per unit time of the partial data based on the rate; and transmission amount data indicating the transmission amount per unit time determined by the second determination unit,
  • a second transmission unit that transmits via a communication line and a reception unit that receives the partial data via the second communication line.
  • the determination unit determines a transmission amount per unit time of the partial data by determining a transmission interval of the partial data, and the transmission unit is determined by the determination unit.
  • the partial data is repeatedly transmitted via the first communication line at a transmission interval.
  • the relay device is characterized in that the calculation of the calculation unit and the determination of the determination unit are performed while the transmission unit repeatedly transmits the partial data.
  • the relay device is characterized in that the transmission unit stops transmission of the partial data while the occupation rate calculated by the calculation unit is equal to or greater than a predetermined rate.
  • a communication system includes the relay device described above and the two communication devices.
  • the transmission method calculates an occupancy ratio of transmission time during which data is transmitted per unit time for a communication line, and updates data for updating a computer program based on the calculated occupancy ratio A transmission amount per unit time of partial data which is a part is determined, and the partial data is repeatedly transmitted via the communication line with the determined transmission amount per unit time.
  • a computer program calculates an occupancy ratio of a transmission time during which data is transmitted per unit time for a communication line, and updates data for updating the computer program based on the calculated occupancy ratio Processing for determining a transmission amount per unit time of partial data as a part and instructing data transmission so that the partial data is repeatedly transmitted via the communication line with the determined transmission amount per unit time Is executed by a computer.
  • the transmission method, and the computer program according to the present invention when the partial data that is a part of the update data of the computer program is repeatedly transmitted via the communication line (first communication line), the communication line
  • the occupancy rate that the transmission time during which data is transmitted occupies per unit time is calculated, and the transmission amount per unit time of the partial data is determined based on the calculated occupancy rate. Thereafter, the partial data is transmitted with the determined transmission amount per unit time.
  • the transmission amount per unit time of partial data is changed based on the occupation rate related to the communication line, and the transmission amount per unit time of other data excluding the partial data is not changed. For this reason, the update data is transmitted without reducing the transmission amount per unit time of other data excluding the partial data.
  • the occupancy ratio of the transmission time during which data is transmitted per unit time is calculated for the second communication line.
  • the transmission amount per unit time of the partial data is determined based on the calculated occupation rate. Thereafter, speed data indicating the determined transmission amount per unit time is transmitted via the second communication line, and partial data is received via the second communication line.
  • the transmission amount per unit time of partial data is changed based on the occupation rate related to the second communication line, and the transmission amount per unit time of other data excluding partial data is not changed. . Therefore, the partial data is received via the second communication line without reducing the transmission amount per unit time of other data excluding the partial data.
  • the transmission amount of partial data per unit time is determined by determining the transmission interval of repeatedly transmitted partial data.
  • the occupation rate is calculated and the transmission interval is determined even while the partial data is repeatedly transmitted. Thereby, the transmission amount per unit time of the partial data is changed even while the partial data is repeatedly transmitted. Even when the occupation rate related to the communication line changes while the partial data is repeatedly transmitted, the transmission amount of the partial data per unit time is changed according to the changed occupation rate.
  • the transmission of partial data is stopped while the occupation rate of the first communication line is equal to or higher than the predetermined rate, the transmission of other data excluding the partial data is adversely affected.
  • the probability of giving is low.
  • the relay device relays communication between two communication devices connected to each of the two communication lines in the plurality of communication lines.
  • the relay device transmits update data via a first communication line that is one of a plurality of communication lines.
  • the update data can be transmitted without reducing the transmission amount per unit time of other data excluding the partial data which is a part of the update data of the computer program.
  • FIG. 1 is a block diagram showing a main configuration of a communication system 1 according to the present embodiment.
  • the communication system 1 includes a relay device 10, four ECUs 11 a, 11 b, 12 a and 12 b, a wireless device 13, two ECU buses 14 a and 14 b, a wireless device bus 15 and a server 16.
  • Relay device 10, ECUs 11 a, 11 b, 12 a, 12 b, wireless device 13, ECU buses 14 a, 14 b and wireless device bus 15 are mounted on vehicle 100.
  • ECU buses 14a and 14b and a radio device bus 15 are connected to the relay device 10 separately.
  • ECUs 11a and 12a are further connected to the ECU bus 14a.
  • ECUs 11b and 12b are further connected to the ECU bus 14b.
  • a wireless device 13 is further connected to the wireless device bus 15.
  • the server 16 is installed outside the vehicle 100 and is connected to an external network N1.
  • Each of the ECUs 11a, 11b, 12a, and 12b controls the operation of the electric device by outputting control data to the electric device connected to the own device.
  • Each of the ECUs 11a, 11b, 12a, and 12b functions as a communication device, and communicates with each other by wire.
  • the relay device 10 relays communication between the ECU connected to the ECU bus 14a, that is, one of the ECUs 11a and 12a, and the ECU connected to the ECU bus 14b, that is, one of the ECUs 11b and 12b. To do.
  • the ECU 12a receives an instruction to lock or unlock the door of the vehicle 100 from the user, and transmits instruction data indicating the received instruction to the relay device 10.
  • the relay device 10 transmits the received instruction data to the ECU 11b connected to the door motor that locks and unlocks the door of the vehicle 100.
  • the ECU 11 a includes an acceleration sensor that detects the acceleration of the vehicle 100, and transmits acceleration data indicating the acceleration detected by the acceleration sensor to the relay device 10.
  • the relay device 10 transmits the received acceleration data to the ECU 12b that controls the operation of the airbag of the vehicle 100.
  • Each of the ECUs 11a, 11b, 12a, and 12b communicates with the wireless device 13 by wire.
  • the relay device 10 relays communication between the ECU connected to the ECU bus 14 a, that is, one of the ECUs 11 a and 12 a, and the wireless device 13 connected to the wireless device bus 15. Further, the relay device 10 relays communication between the ECU connected to the ECU bus 14 b, that is, one of the ECUs 11 b and 12 b, and the wireless device 13 connected to the wireless device bus 15.
  • the wireless device 13 communicates wirelessly with the server 16 via the network N1.
  • the ECU 11a includes a sensor that detects a value such as a speed or acceleration related to traveling of the vehicle, and transmits detection data indicating the detection value detected by the sensor to the relay device 10.
  • the relay device 10 transmits the received detection data to the wireless device 13, and the wireless device 13 transmits the received detection data to the server 16.
  • each of the ECUs 11a, 11b, 12a, and 12b transmits diagnostic data indicating a diagnostic result regarding a failure of the own device or an electric device connected to the own device to the relay device 10.
  • the relay device 10 transmits the received diagnostic data to the wireless device 13, and the wireless device 13 transmits the received diagnostic data to the server 16.
  • the wireless device 13 receives traffic data indicating traffic conditions around the vehicle 100 from the server 16 and transmits the received traffic data to the relay device 10.
  • the relay device 10 transmits the received traffic data to the ECUs 11a and 12a or the ECUs 11b and 12b.
  • each of the ECU buses 14a and 14b functions as a first communication line
  • the wireless device bus 15 functions as a second communication line.
  • a control program is stored in each of the ECUs 11a, 11b, 12a, and 12b (see FIG. 14).
  • a process for controlling the electrical device is executed by executing the control program.
  • the wireless device 13 receives update data for updating a control program stored in one of the ECUs 11a, 11b, 12a, and 12b from the server 16.
  • the wireless device 13 repeatedly transmits partial data, which is a part of the update data received from the server 16, to the relay apparatus 10 via the wireless device bus 15.
  • the relay apparatus 10 receives the update data.
  • the relay device 10 repeatedly transmits partial data that is a part of the update data received from the wireless device 13 via one of the ECU buses 14a and 14b.
  • ECU11a, 12a or ECU11b, 12b receives update data.
  • Each of the ECUs 11a, 11b, 12a, and 12b updates the control program stored in its own device based on the update data received from the relay device 10.
  • Communication via the ECU buses 14a and 14b and the wireless device bus 15 is performed according to a CAN (Controller Area Network) protocol or a CAN-FD (Controller Area Network with Flexible Data Rate) protocol.
  • CAN Controller Area Network
  • CAN-FD Controller Area Network with Flexible Data Rate
  • data transmission is realized by transmitting a data frame including data.
  • Each of the ECU buses 14a and 14b and the radio device bus 15 is constituted by a twisted pair wire.
  • FIG. 2 is an explanatory diagram of a data frame.
  • the data frame includes SOF (Start (Of Frame), arbitration field, control field, data field, CRC (Cyclic Redundancy Check) field, ACK (Acknowledge), and EOF (End Of Frame).
  • SOF Start (Of Frame)
  • CRC Cyclic Redundancy Check
  • ACK Acknowledge
  • EOF End Of Frame
  • the SOF includes information indicating the start of the message.
  • the arbitration field includes identification information for identification and an RTR (Remote Transmission Request) bit.
  • the control field includes information indicating the length of data included in the data field (hereinafter referred to as data length).
  • the unit of data length is byte.
  • the data field includes data indicating the contents to be notified.
  • Each of the instruction data, acceleration data, detection data, diagnosis data, traffic data, and partial data described above is data included in the data field.
  • An upper limit is set for the data length of the data included in the data field.
  • the upper limit value of the data length is, for example, 8 bytes. Therefore, an upper limit is provided for the data length of the partial data, and this upper limit is the upper limit of the data included in the data field.
  • the CRC field includes information indicating a code and a CRC boundary.
  • the ACK is used to confirm whether the message has been correctly received.
  • the EOF includes information indicating the end of the message.
  • Data transmitted from one device connected to the ECU bus 14a via the ECU bus 14a is received by all of the other devices connected to the ECU bus 14a.
  • data transmitted from one device connected to the ECU bus 14b via the ECU bus 14b is received by all the other devices connected to the ECU bus 14b.
  • Data transmitted from one device connected to the wireless device bus 15 via the wireless device bus 15 is received by all of the other devices connected to the wireless device bus 15.
  • the identification information is included in the data frame.
  • arbitration is performed based on identification information data included in the arbitration field of each of a plurality of data frames related to these data. Is done. In arbitration, only one transmission source among a plurality of data frames transmitted at the same time continues transmission, and the transmission sources of other data frames stop transmission.
  • the ECUs 11a, 11b, 12a, 12b and the wireless device 13 receives data by wire, the received data is discarded based on the identification information included in the data frame related to the data. Determine whether or not to do so.
  • the ECUs 11a, 11b, 12a, 12b and the wireless device 13 each determine that the data should be discarded, the received data is discarded when it is determined that the received data should be discarded and the data should not be discarded. The process which concerns on is performed.
  • ECU11a, 11b, 12a, 12b each determines whether the received partial data should be discarded, when partial data is received. When each of the ECUs 11a, 11b, 12a, and 12b determines that the received partial data should not be discarded, the ECU 11a, 11b, 12a, and 12b stores the received partial data. When each of the ECUs 11a, 11b, 12a, and 12b stores all partial data, that is, update data, the ECU 11a, 11b, 12a, and 12b updates the control program based on the update data.
  • FIG. 3 is a block diagram showing a main configuration of the wireless device 13.
  • the wireless device 13 includes a wireless communication unit 20, a wired communication unit 21, a timer 22, a storage unit 23, and a control unit 24. These are connected to the bus 25 separately.
  • the wired communication unit 21 is further connected to the wireless device bus 15.
  • the wireless communication unit 20 wirelessly receives data from the server 16 via the network N1.
  • the update data is one of data received by the wireless communication unit 20.
  • the wireless communication unit 20 transmits data to the server 16 wirelessly in accordance with an instruction from the control unit 24.
  • the wired communication unit 21 receives data from the relay device 10 via the wireless device bus 15.
  • the wired communication unit 21 transmits data to the relay device 10 in accordance with an instruction from the control unit 24.
  • the partial data that is a part of the update data is one of the data transmitted by the wired communication unit 21.
  • the timer 22 starts and ends timing in accordance with instructions from the control unit 24. The time measured by the timer 22 is read by the control unit 24.
  • the storage unit 23 is, for example, a nonvolatile memory.
  • the storage unit 23 stores a control program P1.
  • the control unit 24 has a CPU (not shown).
  • the CPU of the control unit 24 executes a data transmission process, a wireless transmission process, an update data transmission process, and the like by executing the control program P1.
  • the control program P1 is a computer program for causing the CPU of the control unit 24 to execute data transmission processing, wireless transmission processing, and update data processing.
  • the control program P1 may be stored in the storage medium A1 so that the computer can read it.
  • the control program P1 read from the storage medium A1 by a reading device (not shown) is stored in the storage unit 23.
  • the storage medium A1 is an optical disk, a flexible disk, a magnetic disk, a magnetic optical disk, a semiconductor memory, or the like.
  • the optical disc is a CD (Compact Disc) -ROM (Read Only Memory), a DVD (Digital Versatile Disc) -ROM, or a BD (Blu-ray (registered trademark) Disc).
  • the magnetic disk is, for example, a hard disk.
  • the control program P1 may be downloaded from an external device (not shown) connected to a communication network (not shown), and the downloaded control program P1 may be stored in the storage unit 23.
  • the control unit 24 performs data transmission processing, wireless transmission processing, and update data transmission processing in a time division manner. Therefore, the control unit 24 executes another process while waiting in one process. For example, the control unit 24 executes the data transmission process while waiting in the update data transmission process.
  • the data transmission process is a process for transmitting other data, excluding partial data, which is a part of the update data, via the wireless device bus 15.
  • the control unit 24 executes data transmission processing when the wireless communication unit 20 receives other data excluding partial data.
  • the control unit 24 instructs the wired communication unit 21 to transmit the data received by the wireless communication unit 20 to the relay device 10. Thereafter, the control unit 24 ends the data transmission process.
  • the wireless transmission process is a process for transmitting data to the server 16 wirelessly.
  • the control unit 24 performs wireless transmission processing.
  • the control unit 24 determines whether or not the data received by the wired communication unit 21 should be discarded based on the identification information included in the data frame of the data received by the wired communication unit 21.
  • the control unit 24 discards this data and ends the wireless transmission process.
  • the control unit 24 instructs the wireless communication unit 20 to transmit the data to the server 16 wirelessly, and ends the wireless transmission process.
  • the update data transmission process is a process for transmitting update data via the radio bus 15.
  • FIG. 4 is a flowchart showing a procedure of update data transmission processing of the wireless device 13.
  • the control unit 24 executes update data transmission processing when the wireless communication unit 20 receives update data.
  • the storage unit 23 includes a wireless device transmission interval that is a time interval at which the wired communication unit 21 transmits partial data, a wireless device transmission number that is the number of times the partial data is transmitted, and a first threshold value related to the wireless device transmission number. Is stored.
  • the first threshold value is a constant value and is a natural number.
  • the control unit 24 instructs the wired communication unit 21 to transmit request data for requesting notification of the wireless device transmission interval (step S1). Thereby, the wired communication unit 21 transmits the request data to the relay device 10.
  • the relay device 10 receives the request data from the wired communication unit 21, the relay device 10 transmits response data indicating that the wireless device transmission interval or update data cannot be transmitted.
  • step S1 the control unit 24 determines whether the wired communication unit 21 has received response data from the relay device 10 (step S2). When it is determined that the wired communication unit 21 has not received the response data (S2: NO), the control unit 24 executes Step S2 again and waits until the wired communication unit 21 receives the response data.
  • the control unit 24 determines whether the response data received by the wired communication unit 21 indicates that transmission is not possible (step S3). When it is determined that the response data indicates that transmission is not possible (S3: YES), the control unit 24 executes Step S1. Here, the control unit 24 executes Step S1 after a predetermined time has elapsed since it was determined that the response data indicates that transmission is not possible. The control unit 24 repeatedly transmits the request data until the wired communication unit 21 receives response data indicating that transmission is not possible, that is, response data indicating the wireless device transmission interval.
  • the wireless device transmission interval stored in the storage unit 23 indicates the wireless transmission interval indicated by the response data received by the wired communication unit 21.
  • the transmitter transmission interval is changed (step S4), and the number of radio transmissions stored in the storage unit 23 is set to zero (step S5).
  • control unit 24 instructs the timer 22 to start timing (step S6), and instructs the wired communication unit 21 to transmit partial data (step S7).
  • the wired communication unit 21 transmits the partial data to the relay device 10 via the wireless device bus 15.
  • control unit 24 increments the number of radio transmissions stored in the storage unit 23 by 1 (step S8), and determines whether or not transmission of update data, that is, all partial data has been completed. (Step S9).
  • the control unit 24 determines that the transmission of the update data has not been completed (S9: NO)
  • the time measured by the timer 22 is the radio transmission interval stored in the storage unit 23, that is, It is determined whether the response data received by the wired communication unit 21 is equal to or longer than the wireless device transmission interval (step S10).
  • Step S10 When it is determined that the timed time is less than the wireless device transmission interval (S10: NO), the control unit 24 executes Step S10 again and waits until the timed time becomes equal to or longer than the wireless device transmission interval.
  • the control unit 24 instructs the timer 22 to end the time measurement (step S11), and the wireless device stored in the storage unit 23 It is determined whether or not the number of transmissions is the first threshold (step S12).
  • the control unit 24 executes Step S6.
  • the control unit 24 instructs the wired communication unit 21 to repeatedly transmit the partial data at the wireless device transmission interval until the transmission of the update data is completed or the wireless device transmission count reaches the first threshold value.
  • the control unit 24 executes Step S1 again.
  • the wired communication unit 21 again transmits the request data to the relay device 10 and receives response data indicating the wireless device transmission interval from the relay device 10.
  • the wired communication unit 21 repeatedly transmits the partial data at the wireless device transmission interval indicated by the newly received response data.
  • the control unit 24 instructs the timer 22 to finish timing (step S13), and the wired communication unit 21 has completed the transmission of the update data. This is instructed to transmit completion data indicating this (step S14). Thereby, the wired communication unit 21 transmits the completion data to the relay device 10 via the wireless device bus 15 and notifies the relay device 10 of the completion of transmission of the update data. After executing Step S14, the control unit 24 ends the update data transmission process.
  • FIG. 5 is an explanatory diagram of transmission of update data from the wireless device 13 to the relay device 10.
  • an example of transmission of update data when the first threshold is 3 is shown.
  • the wired communication unit 21 of the wireless device 13 transmits request data to the relay device 10 and sets the number of times the wireless device has been transmitted to zero. .
  • the wired communication unit 21 receives the response data from the relay device 10 and repeatedly transmits the partial data at the wireless device transmission interval indicated by the received response data.
  • the control unit 24 increments the wireless device transmission count by 1 each time the partial data is transmitted.
  • the wired communication unit 21 transmits the request data again and receives the response data from the relay device 10 when the wireless device transmission count reaches the first threshold, that is, 3. At this time, the control unit 24 sets the number of radio transmissions to zero.
  • the wired communication unit 21 repeatedly transmits partial data to the relay device 10 at the wireless transmission interval indicated by the response data newly received from the relay device 10.
  • the wired communication unit 21 each time the wireless device transmission count becomes the first threshold, the wired communication unit 21 newly receives response data from the relay device 10 and performs partial data transmission at the wireless device transmission interval indicated by the newly received response data. Is sent repeatedly. As described above, an upper limit is set for the data length of the partial data. The data length of the other partial data except the partial data transmitted last among all the partial data constituting the update data is an upper limit value and is constant.
  • the wired communication unit 21 transmits the completion data to the relay device 10 and notifies the relay device 10 of the completion of the update data transmission. The radio transmission interval will be described later.
  • FIG. 6 is a block diagram illustrating a configuration of a main part of the relay device 10.
  • the relay device 10 includes a first timer 30, two second timers 31a and 31b, two transmission timers 32a and 32b, a first communication unit 33, two second communication units 34a and 34b, a storage unit 35, and a control unit 36. Have These are connected to the bus 37 separately.
  • the first communication unit 33 is further connected to the radio bus 15.
  • the second communication unit 34a is further connected to the ECU bus 14a.
  • the second communication unit 34b is further connected to the ECU bus 14b.
  • the first timer 30, the second timers 31a and 31b, and the transmission timers 32a and 32b each start and end timing according to instructions from the control unit 36.
  • the time measured by each of the first timer 30, the second timers 31a and 31b, and the transmission timers 32a and 32b is read by the control unit 36.
  • the first communication unit 33 receives data from the wired communication unit 21 of the wireless device 13 via the wireless device bus 15.
  • the partial data that is a part of the update data is one of the data received by the first communication unit 33.
  • the first communication unit 33 transmits data to the wired communication unit 21 of the wireless device 13 via the wireless device bus 15 in accordance with an instruction from the control unit 36.
  • the first communication unit 33 functions as a receiving unit.
  • the second communication unit 34a receives data transmitted from the ECUs 11a and 12a via the ECU bus 14a.
  • the second communication unit 34a transmits data to the ECUs 11a and 12a via the ECU bus 14a in accordance with instructions from the control unit 36.
  • the partial data is one of data transmitted by the second communication unit 34a.
  • the second communication unit 34b receives data transmitted from the ECUs 11b and 12b via the ECU bus 14b.
  • the second communication unit 34b transmits data to the ECUs 11b and 12b via the ECU bus 14b in accordance with an instruction from the control unit 36.
  • the partial data is one of data transmitted by the second communication unit 34b.
  • the storage unit 35 is, for example, a nonvolatile memory.
  • the storage unit 35 stores a control program P2.
  • the control unit 36 has a CPU (not shown).
  • the control unit 36 executes the control program P2 stored in the storage unit 35, thereby performing relay processing, calculation processing of the radio equipment bus occupancy, calculation processing of the ECU bus occupancy relating to each of the ECU buses 14a and 14b, A response process for the request data and an update data transmission process for transmitting the update data via the ECU buses 14a and 14b are executed.
  • the radio device bus occupancy rate is an occupancy rate of the radio device bus 15 occupying the transmission time during which transmission is performed per unit time.
  • the ECU bus occupation ratio related to the ECU bus 14a is an occupation ratio of the transmission time during which transmission is performed with respect to the ECU bus 14a per unit time.
  • the ECU bus occupation ratio relating to the ECU bus 14b is an occupation ratio indicating the transmission time during which transmission is performed for the ECU bus 14b per unit time. These occupancy units are in percent (%).
  • the control program P2 is connected to the CPU of the control unit 36 by relay processing, calculation processing of the radio bus occupancy, calculation processing of the ECU bus occupancy relating to each of the ECU buses 14a and 14b, response processing to the request data, and ECU bus 14 is a computer program for executing update data transmission processing for transmitting update data via 14a and 14b, respectively.
  • the control program P2 may be stored in the storage medium A2 so that the computer can read it.
  • the control program P2 read from the storage medium A2 by a reading device (not shown) is stored in the storage unit 35.
  • the storage medium A2 is an optical disk, a flexible disk, a magnetic disk, a magnetic optical disk, a semiconductor memory, or the like.
  • the control program P2 may be downloaded from an external device (not shown) connected to a communication network (not shown), and the downloaded control program P2 may be stored in the storage unit 35.
  • the control unit 36 performs relay processing, radio device bus occupancy rate calculation processing, ECU bus occupancy rate calculation processing, response processing, and update data transmission processing for each of the ECU buses 14a and 14b in a time-sharing manner. Therefore, the control unit 36 executes another process while waiting in one process.
  • the relay processing includes communication between one of the ECUs 11a and 12a and one of the ECUs 11b and 12b, communication between one of the ECUs 11a and 12a and the wireless device 13, and wireless communication with one of the ECUs 11b and 12b. This is a process for relaying communication with the device 13.
  • the control unit 36 performs relay processing when the first communication unit 33 receives other data excluding partial data, or when one of the second communication units 34a and 34b receives data.
  • the control unit 36 When the first communication unit 33 receives other data excluding partial data from the wireless device 13, in the relay process, the control unit 36 includes identification information included in the data frame of the data received by the first communication unit 33. Based on the above, it is determined whether or not the data received by the first communication unit 33 should be discarded. When it is determined that the data received by the first communication unit 33 should be discarded, the control unit 36 discards this data and ends the relay process. When it is determined that the data received by the first communication unit 33 should not be discarded, the control unit 36 determines whether the data in the second communication units 34a and 34b is based on the identification information included in the data frame of this data. One or both are selected and the selected communication unit is instructed to transmit the data received by the first communication unit 33.
  • the control unit 36 adds the data frame of the data received by the second communication unit 34a. Based on the included identification information, it is determined whether or not the data received by the second communication unit 34a should be discarded. When it is determined that the data received by the second communication unit 34a should be discarded, the control unit 36 discards the data and ends the relay process. When the control unit 36 determines that the data received by the second communication unit 34a should not be discarded, the first communication unit 33 and the second communication are based on the identification information included in the data frame of the data. One or both of the units 34b are selected, and the selected communication unit is instructed to transmit the data received by the second communication unit 34a.
  • the control unit 36 transmits the data received by the second communication unit 34b. Based on the identification information included in the data frame, it is determined whether or not the data received by the second communication unit 34b should be discarded. When it is determined that the data received by the second communication unit 34b should be discarded, the control unit 36 discards this data and ends the relay process. When the control unit 36 determines that the data received by the second communication unit 34b should not be discarded, the control unit 36 performs the first communication unit 33 and the second communication based on the identification information included in the data frame of this data. One or both of the units 34a are selected, and the selected communication unit is instructed to transmit the data received by the second communication unit 34b.
  • FIG. 7 is a flowchart showing the procedure of the wireless device bus occupation rate calculation process.
  • the control unit 36 periodically executes the wireless device bus occupancy rate calculation process.
  • the storage unit 35 stores the wireless device bus occupancy rate and the wireless device transmission time indicating the transmission time during which data is transmitted for the wireless device bus 15.
  • the control unit 36 sets the wireless device transmission time stored in the storage unit 35 to zero (step S21), and instructs the first timer 30 to start measuring time ( Step S22).
  • the control unit 36 determines whether data transmission or reception has been executed by the first communication unit 33 (step S23).
  • the control unit 36 reads the data length from the information included in the control field of the data frame used in the data transmission or reception (step S23).
  • S24 The frame length of the data frame corresponding to the read data length is read from the storage unit 35 (step S25). In step S25, the frame length may be calculated by substituting the data length read in step S24 into an arithmetic expression.
  • FIG. 8 is a chart showing the relationship between data length and frame length.
  • the storage unit 35 stores the relationship between the data length and the frame length as shown in FIG.
  • the unit of the data length is bytes as described above.
  • the unit of the frame length is seconds.
  • the frame length of the data frame whose data length is zero bytes is T0
  • the frame length of the data frame whose data length is 1 byte is T1
  • the frame length is T2.
  • the control unit 36 reads the frame length corresponding to the data length read in step S24.
  • the frame length T0 is the shortest, and the frame length is longer in the order of T0, T1, T2,.
  • the control unit 36 calculates the radio transmission time stored in the storage unit 35 by adding the frame length read in step S25 to the radio transmission time currently stored.
  • the transmission time is changed (step S26).
  • the control unit 36 determines that the data transmission and reception are not executed (S23: NO), or after executing step S26, the time measured by the first timer 30 is not less than the reference time. It is determined whether or not there is (step S27).
  • the reference time is a constant value and is stored in the storage unit 35 in advance.
  • the control part 36 performs step S23, when it determines with time keeping time being less than reference
  • the control unit 36 calculates the radio transmission time by adding the frame lengths of all data frames transmitted and received by the first communication unit 33 until the time measured by the first timer 30 becomes the reference time. As described above, the data transmitted by one device connected to the radio bus 15 is received by all of the other devices connected to the radio bus 15. Therefore, the radio transmission time can be calculated by adding the frame lengths of all data frames transmitted and received by the first communication unit 33.
  • the control unit 36 instructs the first timer 30 to end the time measurement (step S28), and the wireless device stored in the storage unit 35 is stored.
  • the radio bus occupation ratio is calculated by dividing the product of the transmission time and 100 by the reference time (step S29).
  • the control unit 36 changes the wireless device bus occupancy rate stored in the storage unit 35 to the wireless device bus occupancy rate calculated in step S29 (step S30), and performs the wireless device bus occupancy rate calculation process. finish.
  • the control unit 36 executes the ECU bus occupancy calculation processing for the ECU buses 14a and 14b in the same manner as the radio device bus occupancy calculation processing.
  • the storage unit 35 stores an ECU bus occupation rate relating to each of the ECU buses 14a and 14b and an ECU transmission time indicating a transmission time during which data is transmitted for each of the ECU buses 14a and 14b.
  • the radio equipment bus 15, the first timer 30, the first communication unit 33, the radio equipment transmission time, and the radio equipment bus occupancy ratio are respectively represented as an ECU bus 14a, a second timer 31a, The second communication unit 34a, the ECU transmission time related to the ECU bus 14a, and the ECU bus occupation rate related to the ECU bus 14a are replaced. Thereby, the calculation process of the ECU bus occupancy rate related to the ECU bus 14a can be described.
  • the wireless device bus 15, the first timer 30, the first communication unit 33, the wireless device transmission time, and the wireless device bus occupancy rate are respectively represented by the ECU bus 14 b,
  • the timer 31b, the second communication unit 34b, the ECU transmission time related to the ECU bus 14b, and the ECU bus occupation ratio related to the ECU bus 14b are replaced.
  • the ECU bus occupancy rate calculation process related to the ECU bus 14b can be described.
  • the ECU bus occupancy rate calculation process related to each of the ECU buses 14a and 14b is periodically executed in the same manner as the wireless device bus occupancy rate calculation process. For this reason, the radio device bus occupation ratio and the two ECU bus occupation ratios stored in the storage unit 35 are changed over time.
  • the control unit 36 functions as a calculation unit and a second calculation unit.
  • FIG. 9 is a flowchart showing the procedure of response processing.
  • the control unit 36 executes response processing when the first communication unit 33 receives request data from the wired communication unit 21 of the wireless device 13.
  • the control unit 36 reads out the wireless device bus occupancy rate stored in the storage unit 35 (step S31), and whether or not the read out wireless device bus occupancy rate is less than a first reference rate, for example, 50%. Is determined (step S32).
  • the first reference rate is a constant value and is stored in advance in the storage unit 35.
  • the control unit 36 determines the wireless device transmission interval based on the wireless device bus occupancy read in step S31 (step S31). S33).
  • the data length of the other partial data excluding the partial data transmitted last among all the partial data constituting the update data is the upper limit value and is constant. Therefore, the shorter the wireless transmission interval, the larger the transmission amount per unit time of the partial data transmitted by the wired communication unit 21 of the wireless device 13. For this reason, the transmission amount per unit time of the partial data is determined by determining the radio transmission interval in step S33.
  • the control unit 36 also functions as a second determination unit.
  • FIG. 10 is a chart showing the relationship between the wireless device bus occupation ratio and the transmission interval.
  • the storage unit 35 stores the relationship between the radio bus occupancy and the transmission interval as shown in FIG.
  • the transmission interval E0 corresponds to the radio equipment bus occupation ratio that is 0% or more and less than 10%.
  • a transmission interval E1 that is longer than the transmission interval E0 corresponds to a radio bus occupation ratio that is 10% or more and less than 20%.
  • a transmission interval E2 longer than the transmission interval E1 corresponds to a radio bus occupation ratio of 20% or more and less than 30%.
  • a transmission interval E3 longer than the transmission interval E2 corresponds to a radio bus occupation ratio of 30% or more and less than 40%.
  • a transmission interval E4 longer than the transmission interval E3 corresponds to a radio bus occupancy rate of 40% or more and less than 50%.
  • the first reference rate is 50%.
  • step S33 the control unit 36 determines the radio transmission interval to be a transmission interval corresponding to the radio bus occupancy read in step S31.
  • the wireless device transmission interval is determined as the transmission interval E1.
  • the control unit 36 calculates the transmission interval by substituting the wireless device bus occupancy read in step S31 into the arithmetic expression, and determines the wireless device transmission interval as the calculated transmission interval. Good.
  • the control unit 36 instructs the first communication unit 33 to transmit response data indicating the radio transmission interval determined in step S33 (step S34).
  • the first communication unit 33 transmits response data indicating the wireless transmission interval determined by the control unit 36 in step S33 to the wired communication unit 21 of the wireless device 13.
  • the transmission amount per unit time of the partial data is determined by determining the radio transmission interval.
  • transmitting the response data indicating the radio transmission interval determined in step S33 by the control unit 36 means transmitting response data indicating the transmission amount per unit time determined by the control unit 36 in step S33.
  • the first communication unit 33 also functions as a second transmission unit.
  • the response data indicating the radio transmission interval corresponds to transmission amount data.
  • the control unit 36 instructs the wired communication unit 21 to transmit response data indicating that transmission is not possible. Thereby, the wired communication unit 21 transmits response data indicating that transmission is impossible to the wireless device 13. After executing one of steps S34 and S35, the controller 36 ends the response process.
  • the first communication unit 33 when the first communication unit 33 receives the request data from the wired communication unit 21 of the wireless device 13 and the wireless device bus occupancy is less than the first reference rate, the first communication unit 33 is wireless. Response data indicating the transmitter transmission interval is transmitted.
  • the radio transmission interval is shorter as the radio bus occupancy is smaller. For this reason, as shown in FIG. 5, when the wireless device bus occupancy is small, the wired communication unit 21 of the wireless device 13 repeatedly transmits partial data at short wireless device transmission intervals, and when the wireless device bus occupancy is large, The wired communication unit 21 repeatedly transmits partial data at long wireless transmission intervals.
  • the wireless device bus occupancy rate calculation process and the response process are performed in a time division manner.
  • the calculation of the wireless device bus occupancy rate and the determination of the wireless device transmission interval are not only performed before the wired communication unit 21 of the wireless device 13 starts transmitting the partial data, but the wired communication unit 21 repeats the partial data. This is also done while sending.
  • the wireless device transmission interval that is, the transmission amount of the partial data per unit time is , Changed according to the changed radio bus occupancy.
  • the radio transmission interval that is, the transmission amount per unit time of partial data is changed, and the radio bus 15 changes the transmission amount per unit time of other data excluding partial data never do. For this reason, the 1st communication part 33 of the relay apparatus 10 can receive partial data, without reducing the transmission amount per unit time of the other data except partial data.
  • the partial data is transmitted at a short transmission interval, and the vehicle 100 travels. Therefore, when the transmission amount per unit time of other data excluding the partial data increases, the partial data is transmitted at a long transmission interval.
  • FIG. 11 is a flowchart showing a procedure of update data transmission processing of the relay device 10.
  • FIG. 11 shows an update data transmission process for transmitting update data via the ECU bus 14a.
  • the control unit 36 performs update data transmission processing when the first communication unit 33 receives partial data that is a part of update data related to one control program in the ECUs 11a and 12a from the wired communication unit 21 of the wireless device 13.
  • the storage unit 35 includes an ECU transmission interval, which is a time interval at which the second communication unit 34a transmits partial data, an ECU transmission count at which the second communication unit 34a transmits partial data, and an ECU transmission of the second communication unit 34a.
  • a second threshold value related to the number of times is stored.
  • the second threshold value is a constant value and is a natural number.
  • the control unit 36 reads the ECU bus occupancy relating to the ECU bus 14a from the storage unit 35 (step S41), and determines whether or not the read ECU bus occupancy is less than a second reference rate, for example, 40% ( Step S42).
  • the second reference rate is a constant value and is stored in the storage unit 35 in advance.
  • control unit 36 executes step S41.
  • the control unit 36 executes step S41 after a predetermined time has elapsed since it was determined that the ECU bus occupancy is equal to or higher than the second reference rate.
  • the control unit 36 stands by until the ECU bus occupation rate related to the ECU bus 14a becomes less than the second reference rate.
  • the control unit 36 determines the ECU transmission interval of the second communication unit 34a based on the ECU bus occupancy rate read in step S41. Determine (step S43).
  • the data length of the other partial data except the partial data transmitted last among all the partial data constituting the update data is an upper limit value and is constant. Accordingly, the shorter the ECU transmission interval of the second communication unit 34a, the larger the transmission amount per unit time of the partial data transmitted by the second communication unit 34a. For this reason, the transmission amount per unit time of the partial data is determined by determining the ECU transmission interval of the second communication unit 34a in step S43.
  • the control unit 36 also functions as a determination unit.
  • FIG. 12 is a chart showing the relationship between the ECU bus occupation ratio and the transmission interval.
  • the storage unit 35 stores the relationship between the ECU bus occupation ratio and the transmission interval as shown in FIG.
  • the transmission interval G0 corresponds to the ECU bus occupation ratio that is 0% or more and less than 10%.
  • a transmission interval G1 longer than the transmission interval G0 corresponds to an ECU bus occupancy rate of 10% or more and less than 20%.
  • a transmission interval G2 that is longer than the transmission interval G1 corresponds to an ECU bus occupation ratio that is 20% or more and less than 30%.
  • a transmission interval G3 longer than the transmission interval G2 corresponds to an ECU bus occupancy rate of 30% or more and less than 40%.
  • the second reference rate is 40%.
  • step S43 the control unit 36 determines the ECU transmission interval as a transmission interval corresponding to the ECU bus occupation rate read in step S41.
  • the ECU transmission interval is determined as the transmission interval G2.
  • the control unit 36 calculates the transmission interval by substituting the ECU bus occupancy read in step S41 into the arithmetic expression, and sets the ECU transmission interval of the second communication unit 34a to the calculated transmission interval. You may decide.
  • control unit 36 changes the ECU transmission interval of the second communication unit 34a stored in the storage unit 35 to the ECU transmission interval determined in step S43 (step S44).
  • control unit 36 sets the number of ECU transmissions of the second communication unit 34a to zero (step S45), instructs the transmission timer 32a to start measuring time (step S46), and causes the second communication unit 34a to Data transmission is instructed (step S47).
  • the 2nd communication part 34a transmits partial data to ECU11a, 12a.
  • One of the ECUs 11a and 12a discards the received partial data, and the other of the ECUs 11a and 12a stores the received partial data.
  • control unit 36 increments the ECU transmission count of the second communication unit 34a stored in the storage unit 35 by 1 (step S48), and whether update data, that is, transmission of all partial data has been completed. It is determined whether or not (step S49).
  • the control unit 36 determines that the transmission of the update data is not completed (S49: NO)
  • the time measured by the transmission timer 32a is the ECU transmission interval stored in the storage unit 35, that is, It is determined whether or not it is equal to or longer than the ECU transmission interval determined in step S43 (step S50).
  • step S50 When it is determined that the timed time is less than the ECU transmission interval (S50: NO), the control unit 36 executes step S50 again and waits until the timed time becomes equal to or longer than the ECU transmission interval.
  • the control unit 36 instructs the transmission timer 32a to end the time measurement (step S51), and transmits the ECU transmission stored in the storage unit 35. It is determined whether or not the number of times is the second threshold (step S52).
  • Step S46 When it is determined that the ECU transmission frequency is not the second threshold value, that is, the ECU transmission frequency is less than the second threshold value (S52: NO), the control unit 36 executes Step S46.
  • the control unit 36 instructs the second communication unit 34a to repeatedly transmit the partial data at the ECU transmission count until the transmission of the update data is completed or the ECU transmission count reaches the second threshold value.
  • the control unit 36 executes Step S41 again.
  • the second communication unit 34a executes step S43 again when the ECU bus occupancy rate related to the ECU bus 14a is less than the second reference rate, and the second communication unit 34a re-executes the ECU transmission interval newly determined in step S43. Send partial data repeatedly.
  • step S53 the control unit 36 instructs the transmission timer 32a to end the time measurement (step S53), and the second communication unit 34a transmits the update data.
  • step S54 The transmission of completion data indicating completion is instructed (step S54).
  • the second communication unit 34a transmits the completion data to the ECUs 11a and 12a via the ECU bus 14a, and notifies the ECU that stores the partial data in the ECUs 11a and 12a of the completion of transmission of the update data. .
  • step S54 the control unit 36 ends the update data transmission process.
  • the control unit 36 executes an update data transmission process for transmitting update data via the ECU bus 14b in the same manner as an update data transmission process for transmitting update data via the ECU bus 14a.
  • the update data transmission process for transmitting update data via the ECU bus 14a the ECUs 11a and 12a, the ECU bus 14a, the transmission timer 32a, and the second communication unit 34a are respectively connected to the ECUs 11b and 12b, the ECU bus 14b, and the transmission. It replaces with the timer 32b and the 2nd communication part 34b. Thereby, the update data transmission process for transmitting the update data via the ECU bus 14b can be described.
  • FIG. 13 is an explanatory diagram of transmission of update data from the relay device 10 to the ECUs 11a and 12a.
  • an example of transmission of update data when the second threshold value related to the number of times of ECU transmission of the second communication unit 34a is 3 is shown.
  • the ECU transmission interval of the second communication unit 34a corresponds to the ECU bus occupation ratio related to the ECU bus 14a. Determine the transmission interval.
  • the second communication unit 34a repeatedly transmits the partial data at the ECU transmission interval determined by the control unit 36, that is, the transmission amount per unit time determined by the control unit 36.
  • the control unit 36 instructs the transmission of the partial data so that the second communication unit 34a repeatedly transmits the partial data at the determined ECU transmission interval.
  • the second communication unit 34a functions as a transmission unit.
  • the control unit 36 increments the ECU transmission count of the second communication unit 34a by 1 each time the partial data is transmitted.
  • the control unit 36 again reads the ECU transmission interval of the second communication unit 34a corresponding to the ECU bus occupancy relating to the ECU bus 14a, and performs the second communication.
  • the number of ECU transmissions of the unit 34a is set to zero.
  • the second communication unit 34a repeatedly transmits the partial data to the ECUs 11a and 12a at the ECU transmission interval newly determined by the control unit 36.
  • the control unit 36 corresponds to the ECU bus occupation ratio related to the ECU bus 14a.
  • the second communication unit 34a determines the ECU transmission interval of the second communication unit 34a, and the second communication unit 34a repeatedly transmits the partial data at the ECU transmission interval determined by the control unit 36. Further, as described above, the ECU bus occupancy calculation process for the ECU bus 14a and the update data transmission process for transmitting update data via the ECU bus 14a are performed in a time-sharing manner.
  • the calculation of the ECU bus occupancy ratio related to the ECU bus 14a and the determination of the ECU transmission interval transmitted by the second communication unit 34a are not only before the second communication unit 34a starts transmitting the partial data, This is also performed while the communication unit 34a repeatedly transmits partial data.
  • the ECU transmission interval that is, the transmission amount of the partial data per unit time is It is changed according to the changed ECU bus occupation rate.
  • the second communication unit 34a transmits the completion data to the ECUs 11a and 12a, and notifies the ECU that stores the partial data in the ECUs 11a and 12a of the completion of the transmission of the update data.
  • the second communication unit 34a when the ECU bus occupancy associated with the ECU bus 14a is small, the second communication unit 34a repeatedly transmits partial data at short ECU transmission intervals. When the ECU bus occupation ratio related to the ECU bus 14a is large, the second communication unit 34a repeatedly transmits partial data at a long ECU transmission interval.
  • the ECU transmission interval of the second communication unit 34a that is, the transmission amount per unit time of the partial data is changed based on the ECU bus occupation ratio related to the ECU bus 14a.
  • the transmission amount per unit time of other data other than is not changed. For this reason, update data is transmitted to ECU11a, 12a, without reducing the transmission amount per unit time of other data except partial data.
  • the partial data is transmitted at a short transmission interval, and the vehicle 100 travels. Therefore, when the transmission amount per unit time of other data excluding the partial data increases, the partial data is transmitted at a long transmission interval.
  • the second communication unit 34a stops transmitting the partial data. For this reason, in the ECU bus 14a, the probability of adversely affecting the transmission of other data excluding partial data is low. Update data from the relay device 10 to the ECUs 11b and 12b is also transmitted in the same manner as update data from the relay device 10 to the ECUs 11a and 12a. Accordingly, the second communication unit 34b also functions as a transmission unit.
  • FIG. 14 is a block diagram showing a main configuration of the ECU 11a.
  • the ECU 11 a includes an output unit 40, a communication unit 41, a storage unit 42, and a control unit 43. These are connected to the bus 44 separately.
  • the output unit 40 is further connected to an electric device corresponding to the ECU 11a.
  • the communication unit 41 is further connected to the ECU bus 14a.
  • the output unit 40 outputs control data to the electrical device in accordance with an instruction from the control unit 43.
  • the electric device performs an operation according to the control data input from the communication unit 41.
  • the communication unit 41 receives data from the second communication unit 34a and the ECU 12a of the relay device 10 via the ECU bus 14a.
  • the partial data is one of data that the communication unit 41 receives from the second communication unit 34a.
  • the communication unit 41 transmits the data to the second communication unit 34a and the ECU 12a of the relay device 10 according to the instruction of the control unit 43.
  • the storage unit 42 is, for example, a nonvolatile memory.
  • the storage unit 42 stores a control program P3 and an update program P4.
  • the control unit 43 has a CPU (not shown).
  • the CPU of the control unit 43 stores the control process for controlling the operation of the electrical equipment connected to the output unit 40 and the partial data received by the communication unit 41 in the storage unit 42 by executing the control program P3.
  • the control program P3 is a computer program for causing the CPU of the control unit 43 to execute control processing and storage processing.
  • the control unit 43 instructs the output unit 40 to control the operation of the electric device by causing the electric device to output control data.
  • the control unit 43 performs storage processing when the communication unit 41 receives partial data.
  • the control unit 43 determines whether or not the partial data received by the communication unit 41 should be discarded based on the identification information included in the data frame of the partial data received by the communication unit 41.
  • the control unit 43 discards the partial data.
  • the control unit 43 stores the partial data in the storage unit 42.
  • the control unit 43 executes the update program P4 when update data, that is, all partial data is stored in the storage unit 42, and executes update processing of the control program P3.
  • the update program P4 is a computer program for causing the CPU of the control unit 43 to execute update processing of the control program P3.
  • the control unit 43 updates the control program P3 based on the update data stored in the storage unit 42.
  • the ECUs 11b, 12a, and 12b are each configured in the same manner as the ECU 11a.
  • the configuration of the ECU 12a can be described by replacing the ECUs 11a and 12a with the ECUs 12a and 11a, respectively.
  • the configuration of the ECU 11b will be described by replacing the ECUs 11a and 12a, the ECU bus 14a, and the second communication unit 34a with the ECUs 11b, 12b, the ECU bus 14b, and the second communication unit 34b, respectively. Can do.
  • the configuration of the ECU 12b will be described by replacing the ECUs 11a, 12a, the ECU bus 14a, and the second communication unit 34a with the ECUs 12b, 11b, the ECU bus 14b, and the second communication unit 34b, respectively. Can do.
  • the configuration for determining the transmission amount of partial data per unit time for each of the ECU buses 14a and 14b is not limited to the configuration for determining the ECU transmission interval. Directly, the transmission amount of the partial data per unit time may be determined.
  • the configuration for determining the transmission amount of partial data per unit time is not limited to the configuration for determining the wireless device transmission interval. Directly, the transmission amount of the partial data per unit time may be determined.
  • the timing at which one of the second communication units 34a and 34b of the relay device 10 starts transmission of partial data may be before the first communication unit 33 completes reception of all partial data, It may be after the 1st communication part 33 completes reception of all the partial data.
  • the number of update data that the wireless communication unit 20 of the wireless device 13 receives from the server 16 at a time is not limited to one and may be two or more.
  • the wireless communication unit 20 may be configured to receive update data for updating the control programs P3 of the ECUs 11a and 11b from the server 16.
  • the radio transmission interval may be set based not only on the radio bus occupancy rate but also on the state of the vehicle 100 such as the speed of the vehicle 100 or the position of the shift lever of the vehicle 100.
  • the ECU transmission interval related to each of the second communication units 34a and 34b may be set based not only on the ECU bus occupation ratio related to each of the ECU buses 14a and 14b but also on the state of the vehicle 100.
  • the number of ECU buses connected to the relay device 10 is not limited to two, and may be three or more. Further, the number of radio buses 15 connected to the relay apparatus 10 is not limited to one, and may be two or more. Further, the number of ECUs connected to the ECU bus is not limited to two, and may be one or three or more. The number of ECUs connected to each ECU bus may not be the same. A communication device other than the wireless device 13 may be connected to the wireless device bus.
  • the communication protocol via the ECU bus and the radio bus is not limited to the CAN protocol or the CAN-FD protocol, and may be, for example, an Ethernet (registered trademark) protocol.
  • the communication protocol via the ECU bus and the radio bus is different from both the CAN protocol and the CAN-FD protocol, the ECU buses 14a and 14b and the radio bus 15 are not limited to the twisted pair lines.

Abstract

For an ECU bus (14a), a control unit (36) of this relay device (10) calculates the ECU bus occupancy ratio, that is, the ratio per unit time occupied by transmission time during which data is transmitted. Next, on the basis of the calculated ECU bus occupancy ratio, the control unit (36) determines a transmission amount per unit time of partial data, which is part of update data for updating a computer program. A second communication unit (34a) repeatedly transmits the partial data over the ECU bus (14a) in the transmission amount per unit time determined by the control unit (36).

Description

中継装置、通信システム、送信方法及びコンピュータプログラムRelay device, communication system, transmission method, and computer program
 本発明は、複数の通信線に接続され、該複数の通信線中の2つの通信線夫々に接続されている2つの通信装置間の通信を中継する中継装置と、該中継装置を備える通信システムと、コンピュータプログラムを更新するための更新データを送信する送信方法と、該更新データを送信するためのコンピュータプログラムとに関する。 The present invention relates to a relay device that is connected to a plurality of communication lines and relays communication between two communication devices connected to each of the two communication lines in the plurality of communication lines, and a communication system including the relay device. And a transmission method for transmitting update data for updating the computer program, and a computer program for transmitting the update data.
 車両に搭載される通信システムとして、複数の通信線に接続され、複数の通信線中の2つの通信線夫々に接続されている2つの通信装置間の通信を中継する中継装置を備える通信システム(例えば、特許文献1を参照)がある。 As a communication system mounted on a vehicle, a communication system including a relay device that is connected to a plurality of communication lines and relays communication between two communication devices connected to two communication lines in the plurality of communication lines ( For example, see Patent Document 1).
 特許文献1に記載の通信システムでは、通信装置は、ECU(Electronic Control Unit:電子制御装置)であり、通信装置にはコンピュータプログラムが記憶されている。通信装置はCPU(Central Processing Unit)を有し、このCPUは、通信装置に記憶されているコンピュータプログラムを実行することによって、種々の処理を実行する。 In the communication system described in Patent Document 1, the communication device is an ECU (Electronic Control Unit), and a computer program is stored in the communication device. The communication apparatus has a CPU (Central Processing Unit), and this CPU executes various processes by executing computer programs stored in the communication apparatus.
 特許文献1に記載の通信システムでは、中継装置は、コンピュータプログラムを更新するための更新データを、前述した複数の通信線中の1つである送信線を介して通信装置に送信する。中継装置は、更新データを送信する場合、送信線について、通信負荷が高いか否かを判定する。 In the communication system described in Patent Document 1, the relay apparatus transmits update data for updating the computer program to the communication apparatus via the transmission line that is one of the plurality of communication lines described above. When transmitting update data, the relay device determines whether the communication load is high for the transmission line.
 中継装置は、例えば、送信線を介してデータが送信されている送信時間が単位時間当たりに占める占有率が高い場合、送信線の通信負荷が高いと判定する。中継装置は、送信線の通信負荷が高いと判定した場合、送信線に接続されている全ての通信装置に制御指令を送信する。これにより、これらの通信装置は送信線を介して単位時間当たりに送信するデータの送信量を低下させるので、送信線の通信負荷は低下する。中継装置は、送信線の通信負荷を低下させた後、送信線を介して、コンピュータプログラムの更新対象である通信装置に更新データを送信する。 The relay device determines that the communication load of the transmission line is high, for example, when the occupancy ratio of the transmission time during which data is transmitted via the transmission line occupies per unit time is high. When it is determined that the communication load on the transmission line is high, the relay device transmits a control command to all the communication devices connected to the transmission line. Thereby, since these communication apparatuses reduce the transmission amount of the data transmitted per unit time via the transmission line, the communication load of the transmission line decreases. After reducing the communication load of the transmission line, the relay apparatus transmits the update data to the communication apparatus that is the update target of the computer program via the transmission line.
特開2014-106875号公報JP 2014-106875 A
 前述したように、特許文献1に記載の通信システムでは、中継装置が、更新データを、送信線を介して通信装置に送信する場合において、送信線の通信負荷が高いとき、更新データを除く他のデータの単位時間当たりの送信量を低下させる。 As described above, in the communication system described in Patent Document 1, when the relay device transmits update data to the communication device via the transmission line, the update data is excluded when the communication load on the transmission line is high. Reduce the amount of data transmitted per unit time.
 送信線を介して送受信されるデータには、車両の運転に関するデータが含まれていると考えられる。車両の運転に関するデータの送受信が遅れた場合、車両内で行われる一部の制御が遅れる可能性がある。このため、更新データを除く他のデータの単位時間当たりの送信量を低下させることは好ましくない。また、更新データの送信は、通常、更新データの一部分である部分データを繰り返し送信することによって実現される。この場合においては、部分データを除く他のデータの単位時間当たりの送信量を低下させることは好ましくない。 The data transmitted / received via the transmission line is considered to contain data related to vehicle operation. When transmission / reception of data relating to driving of a vehicle is delayed, some control performed in the vehicle may be delayed. For this reason, it is not preferable to reduce the transmission amount per unit time of other data excluding update data. In addition, transmission of update data is usually realized by repeatedly transmitting partial data that is a part of update data. In this case, it is not preferable to reduce the transmission amount per unit time of other data excluding partial data.
 本発明は斯かる事情に鑑みてなされたものであり、その目的とするところは、コンピュータプログラムの更新データの一部分である部分データを除く他のデータの単位時間当たりの送信量を低下させることなく、更新データを送信することができる中継装置、送信方法及びコンピュータプログラムと、該中継装置を備える通信システムとを提供することにある。 The present invention has been made in view of such circumstances, and the object of the present invention is to reduce the transmission amount per unit time of other data excluding partial data which is a part of update data of a computer program. Another object of the present invention is to provide a relay device, a transmission method and a computer program capable of transmitting update data, and a communication system including the relay device.
 本発明に係る中継装置は、複数の通信線に接続され、該複数の通信線中の2つの通信線夫々に接続されている2つの通信装置間の通信を中継する中継装置において、前記複数の通信線中の1つである第1通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出する算出部と、該算出部が算出した占有率に基づいて、コンピュータプログラムを更新するための更新データの一部分である部分データの単位時間当たりの送信量を決定する決定部と、該決定部が決定した単位時間当たりの送信量で、前記部分データを、前記第1通信線を介して繰り返し送信する送信部とを備えることを特徴とする。 A relay device according to the present invention is a relay device that is connected to a plurality of communication lines and relays communication between two communication devices connected to two communication lines of the plurality of communication lines. A calculation unit that calculates an occupancy ratio of a transmission time during which data is transmitted per unit time for a first communication line that is one of the communication lines, and a computer based on the occupancy ratio calculated by the calculation unit A determination unit that determines a transmission amount per unit time of partial data that is a part of update data for updating a program, and the partial data with the transmission amount per unit time determined by the determination unit. And a transmission unit that repeatedly transmits via a communication line.
 本発明に係る中継装置は、第2通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出する第2の算出部と、該第2の算出部が算出した占有率に基づいて、前記部分データの単位時間当たりの送信量を決定する第2の決定部と、該第2の決定部が決定した単位時間当たりの送信量を示す送信量データを、前記第2通信線を介して送信する第2の送信部と、前記第2通信線を介して前記部分データを受信する受信部とを備えることを特徴とする。 The relay apparatus according to the present invention includes a second calculation unit that calculates an occupancy ratio of a transmission time during which data is transmitted per unit time for the second communication line, and an occupancy calculated by the second calculation unit. A second determination unit that determines a transmission amount per unit time of the partial data based on the rate; and transmission amount data indicating the transmission amount per unit time determined by the second determination unit, A second transmission unit that transmits via a communication line and a reception unit that receives the partial data via the second communication line.
 本発明に係る中継装置は、前記決定部は、前記部分データの送信間隔を決定することによって、前記部分データの単位時間当たりの送信量を決定し、前記送信部は、該決定部が決定した送信間隔で、前記部分データを、前記第1通信線を介して繰り返し送信することを特徴とする。 In the relay device according to the present invention, the determination unit determines a transmission amount per unit time of the partial data by determining a transmission interval of the partial data, and the transmission unit is determined by the determination unit. The partial data is repeatedly transmitted via the first communication line at a transmission interval.
 本発明に係る中継装置は、前記算出部の算出及び前記決定部の決定は、該送信部が前記部分データを繰り返し送信している間に行われることを特徴とする。 The relay device according to the present invention is characterized in that the calculation of the calculation unit and the determination of the determination unit are performed while the transmission unit repeatedly transmits the partial data.
 本発明に係る中継装置は、前記送信部は、前記算出部が算出した占有率が所定率以上である間、前記部分データの送信を停止していることを特徴とする。 The relay device according to the present invention is characterized in that the transmission unit stops transmission of the partial data while the occupation rate calculated by the calculation unit is equal to or greater than a predetermined rate.
 本発明に係る通信システムは、前述した中継装置と、前記2つの通信装置とを備えることを特徴とする。 A communication system according to the present invention includes the relay device described above and the two communication devices.
 本発明に係る送信方法は、通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出し、算出した占有率に基づいて、コンピュータプログラムを更新するための更新データの一部分である部分データの単位時間当たりの送信量を決定し、決定した単位時間当たりの送信量で、前記部分データを、前記通信線を介して繰り返し送信することを特徴とする。 The transmission method according to the present invention calculates an occupancy ratio of transmission time during which data is transmitted per unit time for a communication line, and updates data for updating a computer program based on the calculated occupancy ratio A transmission amount per unit time of partial data which is a part is determined, and the partial data is repeatedly transmitted via the communication line with the determined transmission amount per unit time.
 本発明に係るコンピュータプログラムは、通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出し、算出した占有率に基づいて、コンピュータプログラムを更新するための更新データの一部分である部分データの単位時間当たりの送信量を決定し、決定した単位時間当たりの送信量で、前記部分データが、前記通信線を介して繰り返し送信されるようにデータの送信を指示する処理をコンピュータに実行させることを特徴とする。 A computer program according to the present invention calculates an occupancy ratio of a transmission time during which data is transmitted per unit time for a communication line, and updates data for updating the computer program based on the calculated occupancy ratio Processing for determining a transmission amount per unit time of partial data as a part and instructing data transmission so that the partial data is repeatedly transmitted via the communication line with the determined transmission amount per unit time Is executed by a computer.
 本発明に係る中継装置、送信方法及びコンピュータプログラムにあっては、コンピュータプログラムの更新データの一部分である部分データを、通信線(第1通信線)を介して繰り返し送信する場合、この通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出し、算出した占有率に基づいて、部分データの単位時間当たりの送信量を決定する。その後、決定した単位時間当たりの送信量で部分データが送信される。 In the relay apparatus, the transmission method, and the computer program according to the present invention, when the partial data that is a part of the update data of the computer program is repeatedly transmitted via the communication line (first communication line), the communication line The occupancy rate that the transmission time during which data is transmitted occupies per unit time is calculated, and the transmission amount per unit time of the partial data is determined based on the calculated occupancy rate. Thereafter, the partial data is transmitted with the determined transmission amount per unit time.
 以上のように、通信線に係る占有率に基づいて、部分データの単位時間当たりの送信量を変更し、部分データを除く他のデータの単位時間当たりの送信量を変更することはない。このため、部分データを除く他のデータの単位時間当たりの送信量を低下させることなく、更新データが送信される。 As described above, the transmission amount per unit time of partial data is changed based on the occupation rate related to the communication line, and the transmission amount per unit time of other data excluding the partial data is not changed. For this reason, the update data is transmitted without reducing the transmission amount per unit time of other data excluding the partial data.
 本発明に係る中継装置にあっては、第2通信線を介して更新データを受信する場合、第2通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出し、算出した占有率に基づいて、部分データの単位時間当たりの送信量を決定する。その後、決定した単位時間当たりの送信量を示す速度データを、第2通信線を介して送信し、部分データを、第2通信線を介して受信する。 In the relay apparatus according to the present invention, when the update data is received via the second communication line, the occupancy ratio of the transmission time during which data is transmitted per unit time is calculated for the second communication line. The transmission amount per unit time of the partial data is determined based on the calculated occupation rate. Thereafter, speed data indicating the determined transmission amount per unit time is transmitted via the second communication line, and partial data is received via the second communication line.
 以上のように、第2通信線に係る占有率に基づいて、部分データの単位時間当たりの送信量を変更し、部分データを除く他のデータの単位時間当たりの送信量を変更することはない。このため、部分データを除く他のデータの単位時間当たりの送信量を低下させることなく、部分データを、第2通信線を介して受信する。 As described above, the transmission amount per unit time of partial data is changed based on the occupation rate related to the second communication line, and the transmission amount per unit time of other data excluding partial data is not changed. . Therefore, the partial data is received via the second communication line without reducing the transmission amount per unit time of other data excluding the partial data.
 本発明に係る中継装置にあっては、繰り返し送信される部分データの送信間隔を決定することによって、部分データの単位時間当たりの送信量の決定を実現する。 In the relay device according to the present invention, the transmission amount of partial data per unit time is determined by determining the transmission interval of repeatedly transmitted partial data.
 本発明に係る中継装置にあっては、部分データを繰り返し送信している間も、占有率の算出と、送信間隔の決定とを行う。これにより、部分データが繰り返し送信されている間も部分データの単位時間当たりの送信量が変更される。部分データを繰り返し送信している間に、通信線に係る占有率が変化した場合も、部分データの単位時間当たりの送信量は、変化した占有率に応じて変更される。 In the relay device according to the present invention, the occupation rate is calculated and the transmission interval is determined even while the partial data is repeatedly transmitted. Thereby, the transmission amount per unit time of the partial data is changed even while the partial data is repeatedly transmitted. Even when the occupation rate related to the communication line changes while the partial data is repeatedly transmitted, the transmission amount of the partial data per unit time is changed according to the changed occupation rate.
 本発明に係る中継装置にあっては、第1通信線に係る占有率が所定率以上である間、部分データの送信を停止しているので、部分データを除く他のデータの送信に悪影響を与える確率は低い。 In the relay device according to the present invention, since the transmission of partial data is stopped while the occupation rate of the first communication line is equal to or higher than the predetermined rate, the transmission of other data excluding the partial data is adversely affected. The probability of giving is low.
 本発明に係る通信システムにあっては、中継装置は、複数の通信線中の2つの通信線夫々に接続されている2つの通信装置間の通信を中継する。中継装置は、複数の通信線中の1つである第1通信線を介して更新データを送信する。 In the communication system according to the present invention, the relay device relays communication between two communication devices connected to each of the two communication lines in the plurality of communication lines. The relay device transmits update data via a first communication line that is one of a plurality of communication lines.
 本発明によれば、コンピュータプログラムの更新データの一部分である部分データを除く他のデータの単位時間当たりの送信量を低下させることなく、更新データを送信することができる。 According to the present invention, the update data can be transmitted without reducing the transmission amount per unit time of other data excluding the partial data which is a part of the update data of the computer program.
本実施の形態における通信システムの要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of the communication system in this Embodiment. データフレームの説明図である。It is explanatory drawing of a data frame. 無線器の要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of a radio | wireless device. 無線器の更新データ送信処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the update data transmission process of a radio | wireless machine. 無線器から中継装置への更新データの送信の説明図である。It is explanatory drawing of transmission of the update data from a radio | wireless machine to a relay apparatus. 中継装置の要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of a relay apparatus. 無線器バス占有率の算出処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the calculation process of a radio | wireless machine bus occupation rate. データ長とフレーム長との関係を示す図表である。It is a graph which shows the relationship between data length and frame length. 応答処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a response process. 無線器バス占有率と送信間隔との関係を示す図表である。It is a graph which shows the relationship between a radio apparatus bus occupation rate and a transmission interval. 中継装置の更新データ送信処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the update data transmission process of a relay apparatus. ECUバス占有率と送信間隔との関係を示す図表である。It is a graph which shows the relationship between ECU bus occupation rate and a transmission interval. 中継装置からECUへの更新データの送信の説明図である。It is explanatory drawing of transmission of the update data from a relay apparatus to ECU. ECUの要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of ECU.
 以下、本発明をその実施の形態を示す図面に基づいて詳述する。
 図1は、本実施の形態における通信システム1の要部構成を示すブロック図である。通信システム1は、中継装置10、4つのECU11a,11b,12a,12b、無線器13、2つのECUバス14a,14b、無線器バス15及びサーバ16を備える。中継装置10、ECU11a,11b,12a,12b、無線器13、ECUバス14a,14b及び無線器バス15は車両100に搭載されている。
Hereinafter, the present invention will be described in detail with reference to the drawings illustrating embodiments thereof.
FIG. 1 is a block diagram showing a main configuration of a communication system 1 according to the present embodiment. The communication system 1 includes a relay device 10, four ECUs 11 a, 11 b, 12 a and 12 b, a wireless device 13, two ECU buses 14 a and 14 b, a wireless device bus 15 and a server 16. Relay device 10, ECUs 11 a, 11 b, 12 a, 12 b, wireless device 13, ECU buses 14 a, 14 b and wireless device bus 15 are mounted on vehicle 100.
 中継装置10には、2つのECUバス14a,14b及び無線器バス15が各別に接続されている。ECUバス14aには、ECU11a,12aが更に接続されている。ECUバス14bには、ECU11b,12bが更に接続されている。無線器バス15には、無線器13が更に接続されている。サーバ16は、車両100の外側に設置されており、外部のネットワークN1に接続されている。 Two ECU buses 14a and 14b and a radio device bus 15 are connected to the relay device 10 separately. ECUs 11a and 12a are further connected to the ECU bus 14a. ECUs 11b and 12b are further connected to the ECU bus 14b. A wireless device 13 is further connected to the wireless device bus 15. The server 16 is installed outside the vehicle 100 and is connected to an external network N1.
 ECU11a,11b,12a,12b夫々には、図示しない電気機器が接続されている。ECU11a,11b,12a,12b夫々は、自装置に接続されている電気機器に制御データを出力することによって、この電気機器の動作を制御する。 Electrical devices (not shown) are connected to each of the ECUs 11a, 11b, 12a, and 12b. Each of the ECUs 11a, 11b, 12a, and 12b controls the operation of the electric device by outputting control data to the electric device connected to the own device.
 ECU11a,11b,12a,12b夫々は、通信装置として機能し、相互に有線で通信する。中継装置10は、ECUバス14aに接続されているECU、即ち、ECU11a,12a中の1つと、ECUバス14bに接続されているECU、即ち、ECU11b,12b中の1つとの間の通信を中継する。 Each of the ECUs 11a, 11b, 12a, and 12b functions as a communication device, and communicates with each other by wire. The relay device 10 relays communication between the ECU connected to the ECU bus 14a, that is, one of the ECUs 11a and 12a, and the ECU connected to the ECU bus 14b, that is, one of the ECUs 11b and 12b. To do.
 例えば、ECU12aは、車両100のドアのロック又はアンロックの指示を使用者から受け付け、受け付けた指示を示す指示データを、中継装置10に送信する。中継装置10は、受信した指示データを、車両100のドアのロック及びアンロックを行うドアモータに接続されているECU11bに送信する。また、例えば、ECU11aは、車両100の加速度を検出する加速度センサを有し、加速度センサが検出した加速度を示す加速度データを、中継装置10に送信する。中継装置10は、受信した加速度データを、車両100のエアバッグの動作を制御するECU12bに送信する。 For example, the ECU 12a receives an instruction to lock or unlock the door of the vehicle 100 from the user, and transmits instruction data indicating the received instruction to the relay device 10. The relay device 10 transmits the received instruction data to the ECU 11b connected to the door motor that locks and unlocks the door of the vehicle 100. For example, the ECU 11 a includes an acceleration sensor that detects the acceleration of the vehicle 100, and transmits acceleration data indicating the acceleration detected by the acceleration sensor to the relay device 10. The relay device 10 transmits the received acceleration data to the ECU 12b that controls the operation of the airbag of the vehicle 100.
 ECU11a,11b,12a,12b夫々は、無線器13と有線で通信する。中継装置10は、ECUバス14aに接続されているECU、即ち、ECU11a,12a中の1つと、無線器バス15に接続されている無線器13との間の通信を中継する。また、中継装置10は、ECUバス14bに接続されているECU、即ち、ECU11b,12b中の1つと、無線器バス15に接続されている無線器13との間の通信を中継する。無線器13は、ネットワークN1を介してサーバ16と無線で通信する。 Each of the ECUs 11a, 11b, 12a, and 12b communicates with the wireless device 13 by wire. The relay device 10 relays communication between the ECU connected to the ECU bus 14 a, that is, one of the ECUs 11 a and 12 a, and the wireless device 13 connected to the wireless device bus 15. Further, the relay device 10 relays communication between the ECU connected to the ECU bus 14 b, that is, one of the ECUs 11 b and 12 b, and the wireless device 13 connected to the wireless device bus 15. The wireless device 13 communicates wirelessly with the server 16 via the network N1.
 例えば、ECU11aは、車両の走行に関する速度又は加速度等の値を検出するセンサを有し、センサが検出した検出値を示す検出データを中継装置10に送信する。中継装置10は、受信した検出データを無線器13に送信し、無線器13は、受信した検出データをサーバ16に送信する。また、例えば、ECU11a,11b,12a,12b夫々は、自装置、又は、自装置に接続されている電気機器の故障に関する診断結果を示す診断データを中継装置10に送信する。中継装置10は、受信した診断データを無線器13に送信し、無線器13は、受信した診断データをサーバ16に送信する。更に、例えば、無線器13は、サーバ16から車両100周辺の交通状況を示す交通データを受信し、受信した交通データを中継装置10に送信する。中継装置10は、受信した交通データを、ECU11a,12a又はECU11b,12bに送信する。 For example, the ECU 11a includes a sensor that detects a value such as a speed or acceleration related to traveling of the vehicle, and transmits detection data indicating the detection value detected by the sensor to the relay device 10. The relay device 10 transmits the received detection data to the wireless device 13, and the wireless device 13 transmits the received detection data to the server 16. Further, for example, each of the ECUs 11a, 11b, 12a, and 12b transmits diagnostic data indicating a diagnostic result regarding a failure of the own device or an electric device connected to the own device to the relay device 10. The relay device 10 transmits the received diagnostic data to the wireless device 13, and the wireless device 13 transmits the received diagnostic data to the server 16. Further, for example, the wireless device 13 receives traffic data indicating traffic conditions around the vehicle 100 from the server 16 and transmits the received traffic data to the relay device 10. The relay device 10 transmits the received traffic data to the ECUs 11a and 12a or the ECUs 11b and 12b.
 以上のように、ECU11a,11b,12a,12b及び無線器13は相互に通信するため、ECUバス14a,14b及び無線器バス15夫々を介して、種々のデータが送信されている。
 ECUバス14a,14b夫々は第1通信線として機能し、無線器バス15は第2通信線として機能する。
As described above, since the ECUs 11a, 11b, 12a, 12b and the wireless device 13 communicate with each other, various data are transmitted through the ECU buses 14a, 14b and the wireless device bus 15, respectively.
Each of the ECU buses 14a and 14b functions as a first communication line, and the wireless device bus 15 functions as a second communication line.
 ECU11a,11b,12a,12b夫々には、制御プログラムが記憶されている(図14を参照)。ECU11a,11b,12a,12b夫々において、制御プログラムが実行されることによって、電気機器を制御するための処理が実行される。 A control program is stored in each of the ECUs 11a, 11b, 12a, and 12b (see FIG. 14). In each of the ECUs 11a, 11b, 12a, and 12b, a process for controlling the electrical device is executed by executing the control program.
 無線器13は、ECU11a,11b,12a,12b中の1つに記憶されている制御プログラムを更新するための更新データをサーバ16から受信する。無線器13は、サーバ16から受信した更新データの一部分である部分データを、無線器バス15を介して中継装置10に繰り返し送信する。これにより、中継装置10は更新データを受信する。中継装置10は、無線器13から受信した更新データの一部分である部分データを、ECUバス14a,14b中の1つを介して繰り返し送信する。これにより、ECU11a,12a又はECU11b,12bは更新データを受信する。ECU11a,11b,12a,12b夫々は、中継装置10から受信した更新データに基づいて、自装置に記憶されている制御プログラムを更新する。 The wireless device 13 receives update data for updating a control program stored in one of the ECUs 11a, 11b, 12a, and 12b from the server 16. The wireless device 13 repeatedly transmits partial data, which is a part of the update data received from the server 16, to the relay apparatus 10 via the wireless device bus 15. Thereby, the relay apparatus 10 receives the update data. The relay device 10 repeatedly transmits partial data that is a part of the update data received from the wireless device 13 via one of the ECU buses 14a and 14b. Thereby, ECU11a, 12a or ECU11b, 12b receives update data. Each of the ECUs 11a, 11b, 12a, and 12b updates the control program stored in its own device based on the update data received from the relay device 10.
 ECUバス14a,14b及び無線器バス15夫々を介した通信は、CAN(Controller Area Network)プロトコル、又は、CAN-FD(Controller Area Network with Flexible Data Rate)プロトコルに従って行われる。これらのプロトコルでは、データを含むデータフレームを送信することによって、データの送信を実現する。ECUバス14a,14b及び無線器バス15夫々はツイストペア線によって構成されている。 Communication via the ECU buses 14a and 14b and the wireless device bus 15 is performed according to a CAN (Controller Area Network) protocol or a CAN-FD (Controller Area Network with Flexible Data Rate) protocol. In these protocols, data transmission is realized by transmitting a data frame including data. Each of the ECU buses 14a and 14b and the radio device bus 15 is constituted by a twisted pair wire.
 図2はデータフレームの説明図である。データフレームは、SOF(Start Of Frame)、アービトレーションフィールド、コントロールフィールド、データフィールド、CRC(Cyclic Redundancy Check)フィールド、ACK(Acknowledge)及びEOF(End Of Frame)によって構成される。 FIG. 2 is an explanatory diagram of a data frame. The data frame includes SOF (Start (Of Frame), arbitration field, control field, data field, CRC (Cyclic Redundancy Check) field, ACK (Acknowledge), and EOF (End Of Frame).
 SOFにはメッセージの開始を示す情報が含まれている。アービトレーションフィールドには、識別を行うための識別情報と、RTR(Remote Transmission Request)ビットとが含まれる。 The SOF includes information indicating the start of the message. The arbitration field includes identification information for identification and an RTR (Remote Transmission Request) bit.
 コントロールフィールドには、データフィールドに含まれているデータの長さ(以下、データ長という)を示す情報が含まれている。データ長の単位はバイトである。データフィールドには、通知されるべき内容を示すデータが含まれている。前述した指示データ、加速度データ、検出データ、診断データ、交通データ及び部分データ夫々は、データフィールドに含まれるデータである。データフィールドに含まれるデータのデータ長について上限値が設けられている。データ長の上限値は、例えば8バイトである。従って、部分データのデータ長について上限値が設けられており、この上限値は、データフィールドに含まれるデータの上限値である。 The control field includes information indicating the length of data included in the data field (hereinafter referred to as data length). The unit of data length is byte. The data field includes data indicating the contents to be notified. Each of the instruction data, acceleration data, detection data, diagnosis data, traffic data, and partial data described above is data included in the data field. An upper limit is set for the data length of the data included in the data field. The upper limit value of the data length is, for example, 8 bytes. Therefore, an upper limit is provided for the data length of the partial data, and this upper limit is the upper limit of the data included in the data field.
 CRCフィールドには、コード及びCRC境界を示す情報が含まれている。ACKはメッセージが正しく受信されたか否かの確認に用いられる。EOFにはメッセージの終了を示す情報が含まれている。 The CRC field includes information indicating a code and a CRC boundary. The ACK is used to confirm whether the message has been correctly received. The EOF includes information indicating the end of the message.
 ECUバス14aに接続されている1つの装置がECUバス14aを介して送信したデータは、ECUバス14aに接続されている他の装置の全てによって受信される。同様に、ECUバス14bに接続されている1つの装置がECUバス14bを介して送信したデータは、ECUバス14bに接続されている他の装置の全てによって受信される。また、無線器バス15に接続されている1つの装置が無線器バス15を介して送信したデータは、無線器バス15に接続されている他の装置の全てによって受信される。 Data transmitted from one device connected to the ECU bus 14a via the ECU bus 14a is received by all of the other devices connected to the ECU bus 14a. Similarly, data transmitted from one device connected to the ECU bus 14b via the ECU bus 14b is received by all the other devices connected to the ECU bus 14b. Data transmitted from one device connected to the wireless device bus 15 via the wireless device bus 15 is received by all of the other devices connected to the wireless device bus 15.
 前述したように、データフレームには識別情報が含まれている。ECUバス14a,14b及び無線器バス15夫々において、複数のデータが同時に送信された場合、これらのデータに係る複数のデータフレーム夫々のアービトレーションフィールドに含まれる識別情報データに基づいて、アービトレーション(調停)が行われる。アービトレーションでは、同時に送信された複数のデータフレーム中の1つの送信元のみが送信を継続し、他のデータフレームの送信元は送信を停止する。 As described above, the identification information is included in the data frame. When a plurality of data is transmitted simultaneously in each of the ECU buses 14a and 14b and the radio bus 15, arbitration (arbitration) is performed based on identification information data included in the arbitration field of each of a plurality of data frames related to these data. Is done. In arbitration, only one transmission source among a plurality of data frames transmitted at the same time continues transmission, and the transmission sources of other data frames stop transmission.
 また、中継装置10、ECU11a,11b,12a,12b及び無線器13夫々は、有線でデータを受信した場合、このデータに係るデータフレームに含まれている識別情報に基づいて、受信したデータを破棄すべきか否かを判定する。中継装置10、ECU11a,11b,12a,12b及び無線器13夫々は、データを破棄すべきと判定した場合、受信したデータを破棄し、データを破棄すべきではないと判定した場合、受信したデータに係る処理を行う。 Further, when each of the relay device 10, the ECUs 11a, 11b, 12a, 12b and the wireless device 13 receives data by wire, the received data is discarded based on the identification information included in the data frame related to the data. Determine whether or not to do so. When the relay device 10, the ECUs 11a, 11b, 12a, 12b and the wireless device 13 each determine that the data should be discarded, the received data is discarded when it is determined that the received data should be discarded and the data should not be discarded. The process which concerns on is performed.
 ECU11a,11b,12a,12b夫々は、部分データを受信した場合、受信した部分データを破棄すべきか否かを判定する。そして、ECU11a,11b,12a,12b夫々は、受信した部分データを破棄すべきではないと判定した場合、受信した部分データを記憶する。ECU11a,11b,12a,12b夫々は、全ての部分データ、即ち、更新データを記憶した場合、この更新データに基づいて、制御プログラムを更新する。 ECU11a, 11b, 12a, 12b each determines whether the received partial data should be discarded, when partial data is received. When each of the ECUs 11a, 11b, 12a, and 12b determines that the received partial data should not be discarded, the ECU 11a, 11b, 12a, and 12b stores the received partial data. When each of the ECUs 11a, 11b, 12a, and 12b stores all partial data, that is, update data, the ECU 11a, 11b, 12a, and 12b updates the control program based on the update data.
 図3は、無線器13の要部構成を示すブロック図である。無線器13は、無線通信部20、有線通信部21、タイマ22、記憶部23及び制御部24を有する。これらはバス25に各別に接続されている。有線通信部21は、更に、無線器バス15に接続されている。 FIG. 3 is a block diagram showing a main configuration of the wireless device 13. The wireless device 13 includes a wireless communication unit 20, a wired communication unit 21, a timer 22, a storage unit 23, and a control unit 24. These are connected to the bus 25 separately. The wired communication unit 21 is further connected to the wireless device bus 15.
 無線通信部20は、サーバ16からネットワークN1を介して、データを無線で受信する。更新データは、無線通信部20が受信するデータの1つである。無線通信部20は、制御部24の指示に従って、データを無線でサーバ16に送信する。 The wireless communication unit 20 wirelessly receives data from the server 16 via the network N1. The update data is one of data received by the wireless communication unit 20. The wireless communication unit 20 transmits data to the server 16 wirelessly in accordance with an instruction from the control unit 24.
 有線通信部21は、中継装置10から無線器バス15を介して、データを受信する。有線通信部21は、制御部24の指示に従って、データを中継装置10に送信する。更新データの一部分である部分データは、有線通信部21が送信するデータの1つである。
 タイマ22は、制御部24の指示に従って、計時の開始及び終了を行う。タイマ22が計時している計時時間は制御部24によって読み出される。
The wired communication unit 21 receives data from the relay device 10 via the wireless device bus 15. The wired communication unit 21 transmits data to the relay device 10 in accordance with an instruction from the control unit 24. The partial data that is a part of the update data is one of the data transmitted by the wired communication unit 21.
The timer 22 starts and ends timing in accordance with instructions from the control unit 24. The time measured by the timer 22 is read by the control unit 24.
 記憶部23は例えば不揮発性メモリである。記憶部23には、制御プログラムP1が記憶されている。
 制御部24は図示しないCPUを有する。制御部24のCPUは、制御プログラムP1を実行することによって、データ送信処理、無線送信処理及び更新データ送信処理等を実行する。制御プログラムP1は、制御部24のCPUにデータ送信処理、無線送信処理及び更新データ処理を実行させるためのコンピュータプログラムである。
The storage unit 23 is, for example, a nonvolatile memory. The storage unit 23 stores a control program P1.
The control unit 24 has a CPU (not shown). The CPU of the control unit 24 executes a data transmission process, a wireless transmission process, an update data transmission process, and the like by executing the control program P1. The control program P1 is a computer program for causing the CPU of the control unit 24 to execute data transmission processing, wireless transmission processing, and update data processing.
 なお、制御プログラムP1は、コンピュータが読み取り可能に、記憶媒体A1に記憶されていてもよい。この場合、図示しない読み出し装置によって記憶媒体A1から読み出された制御プログラムP1が記憶部23に記憶される。記憶媒体A1は、光ディスク、フレキシブルディスク、磁気ディスク、磁気光ディスク又は半導体メモリ等である。光ディスクは、CD(Compact Disc)-ROM(Read Only Memory)、DVD(Digital Versatile Disc)-ROM、又は、BD(Blu-ray(登録商標) Disc)等である。磁気ディスクは、例えばハードディスクである。また、図示しない通信網に接続されている図示しない外部装置から制御プログラムP1をダウンロードし、ダウンロードした制御プログラムP1を記憶部23に記憶してもよい。 The control program P1 may be stored in the storage medium A1 so that the computer can read it. In this case, the control program P1 read from the storage medium A1 by a reading device (not shown) is stored in the storage unit 23. The storage medium A1 is an optical disk, a flexible disk, a magnetic disk, a magnetic optical disk, a semiconductor memory, or the like. The optical disc is a CD (Compact Disc) -ROM (Read Only Memory), a DVD (Digital Versatile Disc) -ROM, or a BD (Blu-ray (registered trademark) Disc). The magnetic disk is, for example, a hard disk. Alternatively, the control program P1 may be downloaded from an external device (not shown) connected to a communication network (not shown), and the downloaded control program P1 may be stored in the storage unit 23.
 制御部24は、データ送信処理、無線送信処理及び更新データ送信処理を、時分割方式で実行する。従って、制御部24は、1つの処理で待機している間、他の処理を実行する。例えば、制御部24は、更新データ送信処理で待機している間、データ送信処理を実行する。 The control unit 24 performs data transmission processing, wireless transmission processing, and update data transmission processing in a time division manner. Therefore, the control unit 24 executes another process while waiting in one process. For example, the control unit 24 executes the data transmission process while waiting in the update data transmission process.
 データ送信処理は、更新データの一部分である部分データを除く他のデータを、無線器バス15を介して送信するための処理である。制御部24は、部分データを除く他のデータを無線通信部20が受信した場合にデータ送信処理を実行する。データ送信処理では、制御部24は、有線通信部21に指示して、無線通信部20が受信したデータを中継装置10に送信させる。その後、制御部24はデータ送信処理を終了する。 The data transmission process is a process for transmitting other data, excluding partial data, which is a part of the update data, via the wireless device bus 15. The control unit 24 executes data transmission processing when the wireless communication unit 20 receives other data excluding partial data. In the data transmission process, the control unit 24 instructs the wired communication unit 21 to transmit the data received by the wireless communication unit 20 to the relay device 10. Thereafter, the control unit 24 ends the data transmission process.
 無線送信処理は、データを無線でサーバ16に送信するための処理である。制御部24は、有線通信部21がデータを受信した場合、無線送信処理を実行する。無線送信処理では、制御部24は、有線通信部21が受信したデータのデータフレームに含まれている識別情報に基づいて、有線通信部21が受信したデータを破棄すべきか否かを判定する。制御部24は、有線通信部21が受信したデータを破棄すべきと判定した場合、このデータを破棄し、無線送信処理を終了する。制御部24は、有線通信部21が受信したデータを破棄すべきではないと判定した場合、無線通信部20に指示して、このデータをサーバ16に無線で送信させ、無線送信処理を終了する。
 更新データ送信処理は、更新データを、無線器バス15を介して送信するための処理である。
The wireless transmission process is a process for transmitting data to the server 16 wirelessly. When the wired communication unit 21 receives data, the control unit 24 performs wireless transmission processing. In the wireless transmission process, the control unit 24 determines whether or not the data received by the wired communication unit 21 should be discarded based on the identification information included in the data frame of the data received by the wired communication unit 21. When it is determined that the data received by the wired communication unit 21 should be discarded, the control unit 24 discards this data and ends the wireless transmission process. When the control unit 24 determines that the data received by the wired communication unit 21 should not be discarded, the control unit 24 instructs the wireless communication unit 20 to transmit the data to the server 16 wirelessly, and ends the wireless transmission process. .
The update data transmission process is a process for transmitting update data via the radio bus 15.
 図4は、無線器13の更新データ送信処理の手順を示すフローチャートである。制御部24は、無線通信部20が更新データを受信した場合に更新データ送信処理を実行する。記憶部23には、有線通信部21が部分データを送信する時間間隔である無線器送信間隔と、部分データが送信された回数である無線器送信回数と、無線器送信回数に係る第1閾値とが記憶されている。第1閾値は、一定値であり、自然数である。 FIG. 4 is a flowchart showing a procedure of update data transmission processing of the wireless device 13. The control unit 24 executes update data transmission processing when the wireless communication unit 20 receives update data. The storage unit 23 includes a wireless device transmission interval that is a time interval at which the wired communication unit 21 transmits partial data, a wireless device transmission number that is the number of times the partial data is transmitted, and a first threshold value related to the wireless device transmission number. Is stored. The first threshold value is a constant value and is a natural number.
 更新データ送信処理では、制御部24は、有線通信部21に、無線器送信間隔の通知を要求する要求データの送信を指示する(ステップS1)。これにより、有線通信部21は要求データを中継装置10に送信する。中継装置10は、有線通信部21から要求データを受信した場合、無線器送信間隔、又は、更新データの送信不可を示す応答データを送信する。 In the update data transmission process, the control unit 24 instructs the wired communication unit 21 to transmit request data for requesting notification of the wireless device transmission interval (step S1). Thereby, the wired communication unit 21 transmits the request data to the relay device 10. When the relay device 10 receives the request data from the wired communication unit 21, the relay device 10 transmits response data indicating that the wireless device transmission interval or update data cannot be transmitted.
 制御部24は、ステップS1を実行した後、有線通信部21が中継装置10から応答データを受信したか否かを判定する(ステップS2)。制御部24は、有線通信部21が応答データを受信していないと判定した場合(S2:NO)、ステップS2を再び実行し、有線通信部21が応答データを受信するまで待機する。 After executing step S1, the control unit 24 determines whether the wired communication unit 21 has received response data from the relay device 10 (step S2). When it is determined that the wired communication unit 21 has not received the response data (S2: NO), the control unit 24 executes Step S2 again and waits until the wired communication unit 21 receives the response data.
 制御部24は、有線通信部21が応答データを受信したと判定した場合(S2:YES)、有線通信部21が受信した応答データが送信不可を示すか否かを判定する(ステップS3)。制御部24は、応答データが送信不可を示すと判定した場合(S3:YES)、ステップS1を実行する。ここで、制御部24は、応答データが送信不可を示すと判定してから一定時間が経過した後にステップS1を実行する。制御部24は、有線通信部21が、送信不可を示さない応答データ、即ち、無線器送信間隔を示す応答データを受信するまで要求データを繰り返し送信する。 When it is determined that the wired communication unit 21 has received the response data (S2: YES), the control unit 24 determines whether the response data received by the wired communication unit 21 indicates that transmission is not possible (step S3). When it is determined that the response data indicates that transmission is not possible (S3: YES), the control unit 24 executes Step S1. Here, the control unit 24 executes Step S1 after a predetermined time has elapsed since it was determined that the response data indicates that transmission is not possible. The control unit 24 repeatedly transmits the request data until the wired communication unit 21 receives response data indicating that transmission is not possible, that is, response data indicating the wireless device transmission interval.
 制御部24は、応答データが送信不可を示していないと判定した場合(S3:NO)、記憶部23に記憶されている無線器送信間隔を、有線通信部21が受信した応答データが示す無線器送信間隔に変更し(ステップS4)、記憶部23に記憶されている無線器送信回数をゼロに設定する(ステップS5)。 When the control unit 24 determines that the response data does not indicate that transmission is not possible (S3: NO), the wireless device transmission interval stored in the storage unit 23 indicates the wireless transmission interval indicated by the response data received by the wired communication unit 21. The transmitter transmission interval is changed (step S4), and the number of radio transmissions stored in the storage unit 23 is set to zero (step S5).
 次に、制御部24は、タイマ22に指示して計時を開始させ(ステップS6)、有線通信部21に部分データの送信を指示する(ステップS7)。これにより、有線通信部21は、部分データを、無線器バス15を介して、中継装置10に送信する。 Next, the control unit 24 instructs the timer 22 to start timing (step S6), and instructs the wired communication unit 21 to transmit partial data (step S7). As a result, the wired communication unit 21 transmits the partial data to the relay device 10 via the wireless device bus 15.
 次に、制御部24は、記憶部23に記憶されている無線器送信回数を1だけインクリメントし(ステップS8)、更新データ、即ち、全ての部分データの送信が完了したか否かを判定する(ステップS9)。制御部24は、更新データの送信が完了していないと判定した場合(S9:NO)、タイマ22が計時している計時時間が、記憶部23に記憶されている無線器送信間隔、即ち、有線通信部21が受信した応答データが示す無線器送信間隔以上であるか否かを判定する(ステップS10)。 Next, the control unit 24 increments the number of radio transmissions stored in the storage unit 23 by 1 (step S8), and determines whether or not transmission of update data, that is, all partial data has been completed. (Step S9). When the control unit 24 determines that the transmission of the update data has not been completed (S9: NO), the time measured by the timer 22 is the radio transmission interval stored in the storage unit 23, that is, It is determined whether the response data received by the wired communication unit 21 is equal to or longer than the wireless device transmission interval (step S10).
 制御部24は、計時時間が無線器送信間隔未満であると判定した場合(S10:NO)、ステップS10を再び実行し、計時時間が無線器送信間隔以上となるまで待機する。制御部24は、計時時間が無線器送信間隔以上であると判定した場合(S10:YES)、タイマ22に指示して計時を終了させ(ステップS11)、記憶部23に記憶されている無線器送信回数が第1閾値であるか否かを判定する(ステップS12)。 When it is determined that the timed time is less than the wireless device transmission interval (S10: NO), the control unit 24 executes Step S10 again and waits until the timed time becomes equal to or longer than the wireless device transmission interval. When it is determined that the measured time is equal to or greater than the wireless device transmission interval (S10: YES), the control unit 24 instructs the timer 22 to end the time measurement (step S11), and the wireless device stored in the storage unit 23 It is determined whether or not the number of transmissions is the first threshold (step S12).
 制御部24は、無線器送信回数が第1閾値ではない、即ち、無線器送信回数が第1閾値未満であると判定した場合(S12:NO)、ステップS6を実行する。制御部24は、更新データの送信が完了するか、又は、無線器送信回数が第1閾値に到達するまで、有線通信部21に指示して、無線器送信間隔で部分データを繰り返し送信させる。
 制御部24は、無線器送信回数が第1閾値であると判定した場合(S12:YES)、ステップS1を再び実行する。有線通信部21は、再び、要求データを中継装置10に送信し、中継装置10から無線器送信間隔を示す応答データを受信する。有線通信部21は、新たに受信した応答データが示す無線器送信間隔で部分データを繰り返し送信する。
When it is determined that the wireless device transmission count is not the first threshold value, that is, the wireless device transmission count is less than the first threshold value (S12: NO), the control unit 24 executes Step S6. The control unit 24 instructs the wired communication unit 21 to repeatedly transmit the partial data at the wireless device transmission interval until the transmission of the update data is completed or the wireless device transmission count reaches the first threshold value.
When it is determined that the wireless device transmission count is the first threshold value (S12: YES), the control unit 24 executes Step S1 again. The wired communication unit 21 again transmits the request data to the relay device 10 and receives response data indicating the wireless device transmission interval from the relay device 10. The wired communication unit 21 repeatedly transmits the partial data at the wireless device transmission interval indicated by the newly received response data.
 制御部24は、更新データの送信が完了したと判定した場合(S9:YES)、タイマ22に指示して計時を終了させ(ステップS13)、有線通信部21に、更新データの送信が完了したことを示す完了データの送信を指示する(ステップS14)。これにより、有線通信部21は、完了データを、無線器バス15を介して中継装置10に送信し、中継装置10に更新データの送信完了を通知する。
 制御部24は、ステップS14を実行した後、更新データ送信処理を終了する。
When it is determined that the transmission of the update data has been completed (S9: YES), the control unit 24 instructs the timer 22 to finish timing (step S13), and the wired communication unit 21 has completed the transmission of the update data. This is instructed to transmit completion data indicating this (step S14). Thereby, the wired communication unit 21 transmits the completion data to the relay device 10 via the wireless device bus 15 and notifies the relay device 10 of the completion of transmission of the update data.
After executing Step S14, the control unit 24 ends the update data transmission process.
 図5は、無線器13から中継装置10への更新データの送信の説明図である。ここでは、第1閾値が3である場合における更新データの送信の一例が示されている。図5に示すように、無線器13の有線通信部21は、中継装置10への更新データの送信を開始する場合、要求データを中継装置10に送信し、無線器送信回数をゼロに設定する。有線通信部21は、応答データを中継装置10から受信し、受信した応答データが示す無線器送信間隔で部分データを繰り返し送信する。 FIG. 5 is an explanatory diagram of transmission of update data from the wireless device 13 to the relay device 10. Here, an example of transmission of update data when the first threshold is 3 is shown. As shown in FIG. 5, when starting the transmission of update data to the relay device 10, the wired communication unit 21 of the wireless device 13 transmits request data to the relay device 10 and sets the number of times the wireless device has been transmitted to zero. . The wired communication unit 21 receives the response data from the relay device 10 and repeatedly transmits the partial data at the wireless device transmission interval indicated by the received response data.
 制御部24は、部分データが送信される都度、無線器送信回数を1だけインクリメントする。有線通信部21は、無線器送信回数が第1閾値、即ち、3となった場合、再び要求データを送信し、応答データを中継装置10から受信する。このとき、制御部24は無線器送信回数をゼロに設定する。有線通信部21は、中継装置10から新たに受信した応答データが示す無線器送信間隔で部分データを中継装置10に繰り返し送信する。 The control unit 24 increments the wireless device transmission count by 1 each time the partial data is transmitted. The wired communication unit 21 transmits the request data again and receives the response data from the relay device 10 when the wireless device transmission count reaches the first threshold, that is, 3. At this time, the control unit 24 sets the number of radio transmissions to zero. The wired communication unit 21 repeatedly transmits partial data to the relay device 10 at the wireless transmission interval indicated by the response data newly received from the relay device 10.
 以上のように、無線器送信回数が第1閾値となる都度、有線通信部21は、応答データを中継装置10から新たに受信し、新たに受信した応答データが示す無線器送信間隔で部分データを繰り返し送信する。前述したように、部分データのデータ長について上限値が設けられている。更新データを構成する全ての部分データの中で最後に送信される部分データを除く他の部分データのデータ長は、上限値であり、一定である。
 有線通信部21は、更新データの送信が完了した場合、完了データを中継装置10に送信し、更新データの送信完了を中継装置10に通知する。
 無線器送信間隔については後述する。
As described above, each time the wireless device transmission count becomes the first threshold, the wired communication unit 21 newly receives response data from the relay device 10 and performs partial data transmission at the wireless device transmission interval indicated by the newly received response data. Is sent repeatedly. As described above, an upper limit is set for the data length of the partial data. The data length of the other partial data except the partial data transmitted last among all the partial data constituting the update data is an upper limit value and is constant.
When the transmission of the update data is completed, the wired communication unit 21 transmits the completion data to the relay device 10 and notifies the relay device 10 of the completion of the update data transmission.
The radio transmission interval will be described later.
 図6は、中継装置10の要部構成を示すブロック図である。中継装置10は、第1タイマ30、2つの第2タイマ31a,31b、2つの送信タイマ32a,32b、第1通信部33、2つの第2通信部34a,34b、記憶部35及び制御部36を有する。これらは、バス37に各別に接続されている。第1通信部33は、更に無線器バス15に接続されている。第2通信部34aは、更に、ECUバス14aに接続されている。第2通信部34bは、更に、ECUバス14bに接続されている。 FIG. 6 is a block diagram illustrating a configuration of a main part of the relay device 10. The relay device 10 includes a first timer 30, two second timers 31a and 31b, two transmission timers 32a and 32b, a first communication unit 33, two second communication units 34a and 34b, a storage unit 35, and a control unit 36. Have These are connected to the bus 37 separately. The first communication unit 33 is further connected to the radio bus 15. The second communication unit 34a is further connected to the ECU bus 14a. The second communication unit 34b is further connected to the ECU bus 14b.
 第1タイマ30、第2タイマ31a,31b及び送信タイマ32a,32b夫々は、制御部36の指示に従って、計時の開始及び終了を行う。第1タイマ30、第2タイマ31a,31b及び送信タイマ32a,32b夫々が計時した計時時間は制御部36によって読み出される。 The first timer 30, the second timers 31a and 31b, and the transmission timers 32a and 32b each start and end timing according to instructions from the control unit 36. The time measured by each of the first timer 30, the second timers 31a and 31b, and the transmission timers 32a and 32b is read by the control unit 36.
 第1通信部33は、無線器13の有線通信部21から、無線器バス15を介してデータを受信する。更新データの一部分である部分データは、第1通信部33が受信するデータの1つである。第1通信部33は、制御部36の指示に従って、無線器バス15を介してデータを無線器13の有線通信部21に送信する。第1通信部33は受信部として機能する。 The first communication unit 33 receives data from the wired communication unit 21 of the wireless device 13 via the wireless device bus 15. The partial data that is a part of the update data is one of the data received by the first communication unit 33. The first communication unit 33 transmits data to the wired communication unit 21 of the wireless device 13 via the wireless device bus 15 in accordance with an instruction from the control unit 36. The first communication unit 33 functions as a receiving unit.
 第2通信部34aは、ECU11a,12a夫々がECUバス14aを介して送信したデータを受信する。第2通信部34aは、制御部36の指示に従って、ECUバス14aを介してデータをECU11a,12aに送信する。部分データは、第2通信部34aが送信するデータの1つである。
 同様に、第2通信部34bは、ECU11b,12b夫々がECUバス14bを介して送信したデータを受信する。第2通信部34bは、制御部36の指示に従って、ECUバス14bを介してデータをECU11b,12bに送信する。部分データは、第2通信部34bが送信するデータの1つである。
The second communication unit 34a receives data transmitted from the ECUs 11a and 12a via the ECU bus 14a. The second communication unit 34a transmits data to the ECUs 11a and 12a via the ECU bus 14a in accordance with instructions from the control unit 36. The partial data is one of data transmitted by the second communication unit 34a.
Similarly, the second communication unit 34b receives data transmitted from the ECUs 11b and 12b via the ECU bus 14b. The second communication unit 34b transmits data to the ECUs 11b and 12b via the ECU bus 14b in accordance with an instruction from the control unit 36. The partial data is one of data transmitted by the second communication unit 34b.
 記憶部35は例えば不揮発性メモリである。記憶部35には、制御プログラムP2が記憶されている。
 制御部36は図示しないCPUを有する。制御部36は、記憶部35に記憶されている制御プログラムP2を実行することによって、中継処理、無線器バス占有率の算出処理、ECUバス14a,14b夫々に係るECUバス占有率の算出処理、要求データに対する応答処理、及び、ECUバス14a,14b夫々を介して更新データを送信するための更新データ送信処理を実行する。
The storage unit 35 is, for example, a nonvolatile memory. The storage unit 35 stores a control program P2.
The control unit 36 has a CPU (not shown). The control unit 36 executes the control program P2 stored in the storage unit 35, thereby performing relay processing, calculation processing of the radio equipment bus occupancy, calculation processing of the ECU bus occupancy relating to each of the ECU buses 14a and 14b, A response process for the request data and an update data transmission process for transmitting the update data via the ECU buses 14a and 14b are executed.
 ここで、無線器バス占有率は、無線器バス15について、送信が行われている送信時間が単位時間当たりに占める占有率である。ECUバス14aに係るECUバス占有率は、ECUバス14aについて、送信が行われている送信時間が単位時間当たりに占める占有率である。同様に、ECUバス14bに係るECUバス占有率は、ECUバス14bについて、送信が行われている送信時間が単位時間当たりに示す占有率である。これらの占有率の単位はパーセント(%)である。 Here, the radio device bus occupancy rate is an occupancy rate of the radio device bus 15 occupying the transmission time during which transmission is performed per unit time. The ECU bus occupation ratio related to the ECU bus 14a is an occupation ratio of the transmission time during which transmission is performed with respect to the ECU bus 14a per unit time. Similarly, the ECU bus occupation ratio relating to the ECU bus 14b is an occupation ratio indicating the transmission time during which transmission is performed for the ECU bus 14b per unit time. These occupancy units are in percent (%).
 制御プログラムP2は、制御部36のCPUに、中継処理、無線器バス占有率の算出処理、ECUバス14a,14b夫々に係るECUバス占有率の算出処理、要求データに対する応答処理、及び、ECUバス14a,14b夫々を介して更新データを送信するための更新データ送信処理を実行させるためのコンピュータプログラムである。
 なお、制御プログラムP2は、コンピュータが読み取り可能に、記憶媒体A2に記憶されていてもよい。この場合、図示しない読み出し装置によって記憶媒体A2から読み出された制御プログラムP2が記憶部35に記憶される。記憶媒体A2は、光ディスク、フレキシブルディスク、磁気ディスク、磁気光ディスク又は半導体メモリ等である。また、図示しない通信網に接続されている図示しない外部装置から制御プログラムP2をダウンロードし、ダウンロードした制御プログラムP2を記憶部35に記憶してもよい。
The control program P2 is connected to the CPU of the control unit 36 by relay processing, calculation processing of the radio bus occupancy, calculation processing of the ECU bus occupancy relating to each of the ECU buses 14a and 14b, response processing to the request data, and ECU bus 14 is a computer program for executing update data transmission processing for transmitting update data via 14a and 14b, respectively.
The control program P2 may be stored in the storage medium A2 so that the computer can read it. In this case, the control program P2 read from the storage medium A2 by a reading device (not shown) is stored in the storage unit 35. The storage medium A2 is an optical disk, a flexible disk, a magnetic disk, a magnetic optical disk, a semiconductor memory, or the like. Alternatively, the control program P2 may be downloaded from an external device (not shown) connected to a communication network (not shown), and the downloaded control program P2 may be stored in the storage unit 35.
 制御部36は、中継処理、無線器バス占有率の算出処理、ECUバス14a,14b夫々に係るECUバス占有率の算出処理、応答処理及び更新データ送信処理を、時分割方式で実行する。従って、制御部36は、1つの処理で待機している間、他の処理を実行する。 The control unit 36 performs relay processing, radio device bus occupancy rate calculation processing, ECU bus occupancy rate calculation processing, response processing, and update data transmission processing for each of the ECU buses 14a and 14b in a time-sharing manner. Therefore, the control unit 36 executes another process while waiting in one process.
 中継処理は、ECU11a,12a中の1つと、ECU11b,12b中の1つとの間の通信、ECU11a,12a中の1つと無線器13との間の通信、及び、ECU11b,12b中の1つと無線器13との間の通信を中継するための処理である。制御部36は、第1通信部33が部分データを除く他のデータを受信した場合、又は、第2通信部34a,34bの一方がデータを受信した場合に中継処理を実行する。 The relay processing includes communication between one of the ECUs 11a and 12a and one of the ECUs 11b and 12b, communication between one of the ECUs 11a and 12a and the wireless device 13, and wireless communication with one of the ECUs 11b and 12b. This is a process for relaying communication with the device 13. The control unit 36 performs relay processing when the first communication unit 33 receives other data excluding partial data, or when one of the second communication units 34a and 34b receives data.
 第1通信部33が、無線器13から、部分データを除く他のデータを受信した場合、中継処理では、制御部36は、第1通信部33が受信したデータのデータフレームに含まれる識別情報に基づいて、第1通信部33が受信したデータを破棄すべきか否かを判定する。制御部36は、第1通信部33が受信したデータを破棄すべきと判定した場合、このデータを破棄し、中継処理を終了する。制御部36は、第1通信部33が受信したデータを破棄すべきではないと判定した場合、このデータのデータフレームに含まれている識別情報に基づいて、第2通信部34a,34b中の一方又は両方を選択し、選択した通信部に指示して、第1通信部33が受信したデータを送信させる。 When the first communication unit 33 receives other data excluding partial data from the wireless device 13, in the relay process, the control unit 36 includes identification information included in the data frame of the data received by the first communication unit 33. Based on the above, it is determined whether or not the data received by the first communication unit 33 should be discarded. When it is determined that the data received by the first communication unit 33 should be discarded, the control unit 36 discards this data and ends the relay process. When it is determined that the data received by the first communication unit 33 should not be discarded, the control unit 36 determines whether the data in the second communication units 34a and 34b is based on the identification information included in the data frame of this data. One or both are selected and the selected communication unit is instructed to transmit the data received by the first communication unit 33.
 第2通信部34aが、ECU11a,12a中の1つから、部分データを除く他のデータを受信した場合、中継処理では、制御部36は、第2通信部34aが受信したデータのデータフレームに含まれる識別情報に基づいて、第2通信部34aが受信したデータを破棄すべきか否かを判定する。制御部36は、第2通信部34aが受信したデータを破棄すべきと判定した場合、このデータを破棄し、中継処理を終了する。制御部36は、第2通信部34aが受信したデータを破棄すべきではないと判定した場合、このデータのデータフレームに含まれている識別情報に基づいて、第1通信部33及び第2通信部34b中の一方又は両方を選択し、選択した通信部に指示して、第2通信部34aが受信したデータを送信させる。 When the second communication unit 34a receives other data excluding partial data from one of the ECUs 11a and 12a, in the relay process, the control unit 36 adds the data frame of the data received by the second communication unit 34a. Based on the included identification information, it is determined whether or not the data received by the second communication unit 34a should be discarded. When it is determined that the data received by the second communication unit 34a should be discarded, the control unit 36 discards the data and ends the relay process. When the control unit 36 determines that the data received by the second communication unit 34a should not be discarded, the first communication unit 33 and the second communication are based on the identification information included in the data frame of the data. One or both of the units 34b are selected, and the selected communication unit is instructed to transmit the data received by the second communication unit 34a.
 同様に、第2通信部34bが、ECU11b,12b中の1つから、部分データを除く他のデータを受信した場合、中継処理では、制御部36は、第2通信部34bが受信したデータのデータフレームに含まれる識別情報に基づいて、第2通信部34bが受信したデータを破棄すべきか否かを判定する。制御部36は、第2通信部34bが受信したデータを破棄すべきと判定した場合、このデータを破棄し、中継処理を終了する。制御部36は、第2通信部34bが受信したデータを破棄すべきではないと判定した場合、このデータのデータフレームに含まれている識別情報に基づいて、第1通信部33及び第2通信部34a中の一方又は両方を選択し、選択した通信部に指示して、第2通信部34bが受信したデータを送信させる。 Similarly, when the second communication unit 34b receives other data excluding partial data from one of the ECUs 11b and 12b, in the relay process, the control unit 36 transmits the data received by the second communication unit 34b. Based on the identification information included in the data frame, it is determined whether or not the data received by the second communication unit 34b should be discarded. When it is determined that the data received by the second communication unit 34b should be discarded, the control unit 36 discards this data and ends the relay process. When the control unit 36 determines that the data received by the second communication unit 34b should not be discarded, the control unit 36 performs the first communication unit 33 and the second communication based on the identification information included in the data frame of this data. One or both of the units 34a are selected, and the selected communication unit is instructed to transmit the data received by the second communication unit 34b.
 図7は、無線器バス占有率の算出処理の手順を示すフローチャートである。制御部36は無線器バス占有率の算出処理を周期的に実行する。記憶部35には、無線器バス占有率と、無線器バス15について、データが送信されている送信時間を示す無線器送信時間とが記憶されている。 FIG. 7 is a flowchart showing the procedure of the wireless device bus occupation rate calculation process. The control unit 36 periodically executes the wireless device bus occupancy rate calculation process. The storage unit 35 stores the wireless device bus occupancy rate and the wireless device transmission time indicating the transmission time during which data is transmitted for the wireless device bus 15.
 無線器バス占有率の算出処理では、制御部36は、記憶部35に記憶されている無線器送信時間をゼロに設定し(ステップS21)、第1タイマ30に指示して計時を開始させる(ステップS22)。次に、制御部36は、第1通信部33によって、データの送信又は受信が実行されたか否かを判定する(ステップS23)。制御部36は、データの送信又は受信が実行されたと判定した場合(S23:YES)、データの送信又は受信で用いられたデータフレームのコントロールフィールドに含まれている情報からデータ長を読み出し(ステップS24)、読み出したデータ長に対応するデータフレームのフレーム長を記憶部35から読み出す(ステップS25)。
 なお、ステップS25では、ステップS24で読み出したデータ長を演算式に代入することによってフレーム長を算出してもよい。
In the wireless device bus occupancy rate calculation process, the control unit 36 sets the wireless device transmission time stored in the storage unit 35 to zero (step S21), and instructs the first timer 30 to start measuring time ( Step S22). Next, the control unit 36 determines whether data transmission or reception has been executed by the first communication unit 33 (step S23). When it is determined that data transmission or reception has been executed (S23: YES), the control unit 36 reads the data length from the information included in the control field of the data frame used in the data transmission or reception (step S23). S24) The frame length of the data frame corresponding to the read data length is read from the storage unit 35 (step S25).
In step S25, the frame length may be calculated by substituting the data length read in step S24 into an arithmetic expression.
 図8はデータ長とフレーム長との関係を示す図表である。記憶部35には、図8に示すようなデータ長とフレーム長との関係が記憶されている。データ長の単位は前述したようにバイトである。フレーム長の単位は秒である。図8の例では、データ長がゼロバイトであるデータフレームのフレーム長はT0であり、データ長が1バイトであるデータフレームのフレーム長はT1であり、データ長が2バイトであるデータフレームのフレーム長はT2である。ステップS25では、制御部36は、ステップS24で読み出したデータ長に対応するフレーム長を読み出す。当然のことながら、データ長が大きい程、フレーム長は長い。このため、フレーム長T0が最も短く、フレーム長は、T0,T1,T2,・・・の順に長い。 FIG. 8 is a chart showing the relationship between data length and frame length. The storage unit 35 stores the relationship between the data length and the frame length as shown in FIG. The unit of the data length is bytes as described above. The unit of the frame length is seconds. In the example of FIG. 8, the frame length of the data frame whose data length is zero bytes is T0, the frame length of the data frame whose data length is 1 byte is T1, and the data frame whose data length is 2 bytes. The frame length is T2. In step S25, the control unit 36 reads the frame length corresponding to the data length read in step S24. Naturally, the larger the data length, the longer the frame length. Therefore, the frame length T0 is the shortest, and the frame length is longer in the order of T0, T1, T2,.
 次に、制御部36は、記憶部35に記憶されている無線器送信時間を、現在に記憶されている無線器送信時間にステップS25で読み出したフレーム長を加算することによって算出される無線器送信時間に変更する(ステップS26)。制御部36は、データの送信及び受信が実行されていないと判定した場合(S23:NO)、又は、ステップS26を実行した後、第1タイマ30が計時している計時時間が基準時間以上であるか否かを判定する(ステップS27)。基準時間は、一定値であり、予め記憶部35に記憶されている。 Next, the control unit 36 calculates the radio transmission time stored in the storage unit 35 by adding the frame length read in step S25 to the radio transmission time currently stored. The transmission time is changed (step S26). The control unit 36 determines that the data transmission and reception are not executed (S23: NO), or after executing step S26, the time measured by the first timer 30 is not less than the reference time. It is determined whether or not there is (step S27). The reference time is a constant value and is stored in the storage unit 35 in advance.
 制御部36は、計時時間が基準時間未満であると判定した場合(S27:NO)、ステップS23を実行する。制御部36は、第1タイマ30の計時時間が基準時間となるまでに、第1通信部33が送受信した全てのデータフレームのフレーム長を加算することによって無線器送信時間を算出する。前述したように、無線器バス15に接続されている1つの装置が送信したデータは、無線器バス15に接続されている他の装置の全てによって受信される。従って、第1通信部33が送受信した全てのデータフレームのフレーム長を加算することによって無線器送信時間を算出することができる。 The control part 36 performs step S23, when it determines with time keeping time being less than reference | standard time (S27: NO). The control unit 36 calculates the radio transmission time by adding the frame lengths of all data frames transmitted and received by the first communication unit 33 until the time measured by the first timer 30 becomes the reference time. As described above, the data transmitted by one device connected to the radio bus 15 is received by all of the other devices connected to the radio bus 15. Therefore, the radio transmission time can be calculated by adding the frame lengths of all data frames transmitted and received by the first communication unit 33.
 制御部36は、計時時間が基準時間以上であると判定した場合(S27:YES)、第1タイマ30に指示して計時を終了させ(ステップS28)、記憶部35に記憶されている無線器送信時間と100との積を基準時間で除算することによって無線器バス占有率を算出する(ステップS29)。次に、制御部36は、記憶部35に記憶されている無線器バス占有率を、ステップS29で算出した無線器バス占有率に変更し(ステップS30)、無線器バス占有率の算出処理を終了する。 When it is determined that the measured time is equal to or greater than the reference time (S27: YES), the control unit 36 instructs the first timer 30 to end the time measurement (step S28), and the wireless device stored in the storage unit 35 is stored. The radio bus occupation ratio is calculated by dividing the product of the transmission time and 100 by the reference time (step S29). Next, the control unit 36 changes the wireless device bus occupancy rate stored in the storage unit 35 to the wireless device bus occupancy rate calculated in step S29 (step S30), and performs the wireless device bus occupancy rate calculation process. finish.
 制御部36は、ECUバス14a,14b夫々に係るECUバス占有率の算出処理を、無線器バス占有率の算出処理と同様に実行する。記憶部35には、ECUバス14a,14b夫々に係るECUバス占有率と、ECUバス14a,14b夫々について、データが送信されている送信時間を示すECU送信時間とが記憶されている。 The control unit 36 executes the ECU bus occupancy calculation processing for the ECU buses 14a and 14b in the same manner as the radio device bus occupancy calculation processing. The storage unit 35 stores an ECU bus occupation rate relating to each of the ECU buses 14a and 14b and an ECU transmission time indicating a transmission time during which data is transmitted for each of the ECU buses 14a and 14b.
 無線器バス占有率の算出処理の説明において、無線器バス15、第1タイマ30、第1通信部33、無線器送信時間及び無線器バス占有率夫々を、ECUバス14a、第2タイマ31a、第2通信部34a、ECUバス14aに係るECU送信時間、及び、ECUバス14aに係るECUバス占有率に置き換える。これにより、ECUバス14aに係るECUバス占有率の算出処理を説明することができる。 In the description of the calculation process of the radio equipment bus occupancy rate, the radio equipment bus 15, the first timer 30, the first communication unit 33, the radio equipment transmission time, and the radio equipment bus occupancy ratio are respectively represented as an ECU bus 14a, a second timer 31a, The second communication unit 34a, the ECU transmission time related to the ECU bus 14a, and the ECU bus occupation rate related to the ECU bus 14a are replaced. Thereby, the calculation process of the ECU bus occupancy rate related to the ECU bus 14a can be described.
 同様に、無線器バス占有率の算出処理の説明において、無線器バス15、第1タイマ30、第1通信部33、無線器送信時間及び無線器バス占有率夫々を、ECUバス14b、第2タイマ31b、第2通信部34b、ECUバス14bに係るECU送信時間、及び、ECUバス14bに係るECUバス占有率に置き換える。これにより、ECUバス14bに係るECUバス占有率の算出処理を説明することができる。 Similarly, in the description of the wireless device bus occupancy rate calculation process, the wireless device bus 15, the first timer 30, the first communication unit 33, the wireless device transmission time, and the wireless device bus occupancy rate are respectively represented by the ECU bus 14 b, The timer 31b, the second communication unit 34b, the ECU transmission time related to the ECU bus 14b, and the ECU bus occupation ratio related to the ECU bus 14b are replaced. As a result, the ECU bus occupancy rate calculation process related to the ECU bus 14b can be described.
 ECUバス14a,14b夫々に係るECUバス占有率の算出処理は、無線器バス占有率の算出処理と同様に周期的に実行される。このため、記憶部35に記憶されている無線器バス占有率、及び、2つのECUバス占有率は、経時的に変更される。
 制御部36は、算出部及び第2の算出部として機能する。
The ECU bus occupancy rate calculation process related to each of the ECU buses 14a and 14b is periodically executed in the same manner as the wireless device bus occupancy rate calculation process. For this reason, the radio device bus occupation ratio and the two ECU bus occupation ratios stored in the storage unit 35 are changed over time.
The control unit 36 functions as a calculation unit and a second calculation unit.
 図9は応答処理の手順を示すフローチャートである。制御部36は、第1通信部33が無線器13の有線通信部21から要求データを受信した場合に応答処理を実行する。応答処理では、制御部36は、記憶部35に記憶されている無線器バス占有率を読み出し(ステップS31)、読み出した無線器バス占有率が第1基準率、例えば50%未満であるか否かを判定する(ステップS32)。第1基準率は、一定値であり、記憶部35に予め記憶されている。 FIG. 9 is a flowchart showing the procedure of response processing. The control unit 36 executes response processing when the first communication unit 33 receives request data from the wired communication unit 21 of the wireless device 13. In the response process, the control unit 36 reads out the wireless device bus occupancy rate stored in the storage unit 35 (step S31), and whether or not the read out wireless device bus occupancy rate is less than a first reference rate, for example, 50%. Is determined (step S32). The first reference rate is a constant value and is stored in advance in the storage unit 35.
 制御部36は、無線器バス占有率が第1基準率未満であると判定した場合(S32:YES)、ステップS31で読み出した無線器バス占有率に基づいて無線器送信間隔を決定する(ステップS33)。前述したように、更新データを構成する全ての部分データの中で最後に送信される部分データを除く他の部分データのデータ長は、上限値であり、一定である。従って、無線器送信間隔が短い程、無線器13の有線通信部21が送信する部分データの単位時間当たりの送信量は大きい。このため、ステップS33で無線器送信間隔を決定することによって、部分データの単位時間当たりの送信量が決定される。制御部36は第2の決定部としても機能する。 When it is determined that the wireless device bus occupancy is less than the first reference rate (S32: YES), the control unit 36 determines the wireless device transmission interval based on the wireless device bus occupancy read in step S31 (step S31). S33). As described above, the data length of the other partial data excluding the partial data transmitted last among all the partial data constituting the update data is the upper limit value and is constant. Therefore, the shorter the wireless transmission interval, the larger the transmission amount per unit time of the partial data transmitted by the wired communication unit 21 of the wireless device 13. For this reason, the transmission amount per unit time of the partial data is determined by determining the radio transmission interval in step S33. The control unit 36 also functions as a second determination unit.
 図10は、無線器バス占有率と送信間隔との関係を示す図表である。記憶部35には、図10に示すような無線器バス占有率と送信間隔との関係が記憶されている。図10の例では、0%以上かつ10%未満である無線器バス占有率には送信間隔E0が対応する。10%以上かつ20%未満である無線器バス占有率には、送信間隔E0よりも長い送信間隔E1が対応する。20%以上かつ30%未満である無線器バス占有率には、送信間隔E1よりも長い送信間隔E2が対応する。30%以上かつ40%未満である無線器バス占有率には、送信間隔E2よりも長い送信間隔E3が対応する。40%以上かつ50%未満である無線器バス占有率には、送信間隔E3よりも長い送信間隔E4が対応する。図10の例では第1基準率は50%である。 FIG. 10 is a chart showing the relationship between the wireless device bus occupation ratio and the transmission interval. The storage unit 35 stores the relationship between the radio bus occupancy and the transmission interval as shown in FIG. In the example of FIG. 10, the transmission interval E0 corresponds to the radio equipment bus occupation ratio that is 0% or more and less than 10%. A transmission interval E1 that is longer than the transmission interval E0 corresponds to a radio bus occupation ratio that is 10% or more and less than 20%. A transmission interval E2 longer than the transmission interval E1 corresponds to a radio bus occupation ratio of 20% or more and less than 30%. A transmission interval E3 longer than the transmission interval E2 corresponds to a radio bus occupation ratio of 30% or more and less than 40%. A transmission interval E4 longer than the transmission interval E3 corresponds to a radio bus occupancy rate of 40% or more and less than 50%. In the example of FIG. 10, the first reference rate is 50%.
 ステップS33では、制御部36は、無線器送信間隔を、ステップS31で読み出した無線器バス占有率に対応する送信間隔に決定する。図10の例では、ステップS31で読み出された無線器バス占有率が15%である場合、ステップS33では、無線器送信間隔は、送信間隔E1に決定される。
 なお、ステップS33では、制御部36は、ステップS31で読み出した無線器バス占有率を演算式に代入することによって送信間隔を算出し、無線器送信間隔を、算出した送信間隔に決定してもよい。
In step S33, the control unit 36 determines the radio transmission interval to be a transmission interval corresponding to the radio bus occupancy read in step S31. In the example of FIG. 10, when the wireless device bus occupation ratio read in step S31 is 15%, in step S33, the wireless device transmission interval is determined as the transmission interval E1.
In step S33, the control unit 36 calculates the transmission interval by substituting the wireless device bus occupancy read in step S31 into the arithmetic expression, and determines the wireless device transmission interval as the calculated transmission interval. Good.
 次に、制御部36は、ステップS33で決定した無線器送信間隔を示す応答データの送信を第1通信部33に指示する(ステップS34)。これにより、第1通信部33は、制御部36がステップS33で決定した無線器送信間隔を示す応答データを無線器13の有線通信部21に送信する。
 前述したように、無線器送信間隔を決定することによって、部分データの単位時間当たりの送信量が決定される。このため、制御部36がステップS33で決定した無線器送信間隔を示す応答データを送信することは、制御部36がステップS33で決定した単位時間当たりの送信量を示す応答データを送信することに相当する。
 第1通信部33は第2の送信部としても機能する。無線器送信間隔を示す応答データは送信量データに相当する。
Next, the control unit 36 instructs the first communication unit 33 to transmit response data indicating the radio transmission interval determined in step S33 (step S34). As a result, the first communication unit 33 transmits response data indicating the wireless transmission interval determined by the control unit 36 in step S33 to the wired communication unit 21 of the wireless device 13.
As described above, the transmission amount per unit time of the partial data is determined by determining the radio transmission interval. For this reason, transmitting the response data indicating the radio transmission interval determined in step S33 by the control unit 36 means transmitting response data indicating the transmission amount per unit time determined by the control unit 36 in step S33. Equivalent to.
The first communication unit 33 also functions as a second transmission unit. The response data indicating the radio transmission interval corresponds to transmission amount data.
 制御部36は、無線器バス占有率が第1基準率以上であると判定した場合(S32:NO)、送信不可を示す応答データの送信を有線通信部21に指示する。これにより、有線通信部21は、送信不可を示す応答データを無線器13に送信する。
 制御部36は、ステップS34,S35の一方を実行した後、応答処理を終了する。
When it is determined that the wireless device bus occupation rate is equal to or higher than the first reference rate (S32: NO), the control unit 36 instructs the wired communication unit 21 to transmit response data indicating that transmission is not possible. Thereby, the wired communication unit 21 transmits response data indicating that transmission is impossible to the wireless device 13.
After executing one of steps S34 and S35, the controller 36 ends the response process.
 以上のように、第1通信部33が無線器13の有線通信部21から要求データを受信した場合において、無線器バス占有率が第1基準率未満であるとき、第1通信部33は無線器送信間隔を示す応答データを送信する。無線器送信間隔は無線器バス占有率が小さい程短い。このため、図5に示すように、無線器バス占有率が小さい場合、無線器13の有線通信部21は短い無線器送信間隔で部分データを繰り返し送信し、無線器バス占有率が大きい場合、有線通信部21は長い無線器送信間隔で部分データを繰り返し送信する。前述したように、無線器バス占有率の算出処理と応答処理とは、時分割方式で行われる。 As described above, when the first communication unit 33 receives the request data from the wired communication unit 21 of the wireless device 13 and the wireless device bus occupancy is less than the first reference rate, the first communication unit 33 is wireless. Response data indicating the transmitter transmission interval is transmitted. The radio transmission interval is shorter as the radio bus occupancy is smaller. For this reason, as shown in FIG. 5, when the wireless device bus occupancy is small, the wired communication unit 21 of the wireless device 13 repeatedly transmits partial data at short wireless device transmission intervals, and when the wireless device bus occupancy is large, The wired communication unit 21 repeatedly transmits partial data at long wireless transmission intervals. As described above, the wireless device bus occupancy rate calculation process and the response process are performed in a time division manner.
 従って、無線器バス占有率の算出と、無線器送信間隔の決定とは、無線器13の有線通信部21が部分データの送信を開始する前だけではなく、有線通信部21が部分データを繰り返し送信している間も行われる。結果、無線器13の有線通信部21が部分データを繰り返し送信している間に、無線器バス占有率が変化した場合も、無線器送信間隔、即ち、部分データの単位時間当たりの送信量は、変化した無線器バス占有率に応じて変更される。 Therefore, the calculation of the wireless device bus occupancy rate and the determination of the wireless device transmission interval are not only performed before the wired communication unit 21 of the wireless device 13 starts transmitting the partial data, but the wired communication unit 21 repeats the partial data. This is also done while sending. As a result, even when the wireless device bus occupancy changes while the wired communication unit 21 of the wireless device 13 repeatedly transmits the partial data, the wireless device transmission interval, that is, the transmission amount of the partial data per unit time is , Changed according to the changed radio bus occupancy.
 無線器バス占有率に基づいて、無線器送信間隔、即ち、部分データの単位時間当たりの送信量が変更され、無線器バス15では部分データを除く他のデータの単位時間当たりの送信量を変更することはない。このため、部分データを除く他のデータの単位時間当たりの送信量を低下させることなく、中継装置10の第1通信部33は部分データを受信することができる。 Based on the radio bus occupation ratio, the radio transmission interval, that is, the transmission amount per unit time of partial data is changed, and the radio bus 15 changes the transmission amount per unit time of other data excluding partial data Never do. For this reason, the 1st communication part 33 of the relay apparatus 10 can receive partial data, without reducing the transmission amount per unit time of the other data except partial data.
 通信システム1では、車両100が停止しているために、部分データを除く他のデータの単位時間当たりの送信量が低下した場合には、部分データが短い送信間隔で送信され、車両100が走行しているために、部分データを除く他のデータの単位時間当たりの送信量が増加した場合には、部分データが長い送信間隔で送信される。 In the communication system 1, since the vehicle 100 is stopped, when the transmission amount per unit time of other data excluding the partial data decreases, the partial data is transmitted at a short transmission interval, and the vehicle 100 travels. Therefore, when the transmission amount per unit time of other data excluding the partial data increases, the partial data is transmitted at a long transmission interval.
 無線器バス占有率が第1基準率以上である間、中継装置10の第1通信部33から無線器13の有線通信部21に送信不可の応答データが送信されるので、有線通信部21は部分データの送信を停止している。このため、無線器バス15において、部分データを除く他のデータの送信に悪影響を与える確率は低い。 While the wireless device bus occupancy is equal to or higher than the first reference rate, response data that cannot be transmitted is transmitted from the first communication unit 33 of the relay device 10 to the wired communication unit 21 of the wireless device 13, so the wired communication unit 21 Partial data transmission is stopped. For this reason, in the radio | wireless machine bus | bath 15, the probability of having a bad influence on transmission of the other data except partial data is low.
 図11は、中継装置10の更新データ送信処理の手順を示すフローチャートである。図11には、ECUバス14aを介して更新データを送信するための更新データ送信処理が示されている。制御部36は、第1通信部33が、無線器13の有線通信部21から、ECU11a,12a中の1つの制御プログラムに係る更新データの一部分である部分データを受信した場合に更新データ送信処理を実行する。記憶部35には、第2通信部34aが部分データを送信する時間間隔であるECU送信間隔と、第2通信部34aが部分データを送信したECU送信回数と、第2通信部34aのECU送信回数に係る第2閾値とが記憶されている。第2閾値は、一定値であり、自然数である。 FIG. 11 is a flowchart showing a procedure of update data transmission processing of the relay device 10. FIG. 11 shows an update data transmission process for transmitting update data via the ECU bus 14a. The control unit 36 performs update data transmission processing when the first communication unit 33 receives partial data that is a part of update data related to one control program in the ECUs 11a and 12a from the wired communication unit 21 of the wireless device 13. Execute. The storage unit 35 includes an ECU transmission interval, which is a time interval at which the second communication unit 34a transmits partial data, an ECU transmission count at which the second communication unit 34a transmits partial data, and an ECU transmission of the second communication unit 34a. A second threshold value related to the number of times is stored. The second threshold value is a constant value and is a natural number.
 制御部36は、ECUバス14aに係るECUバス占有率を記憶部35から読み出し(ステップS41)、読み出したECUバス占有率が第2基準率、例えば40%未満であるか否かを判定する(ステップS42)。第2基準率は、一定値であり、予め記憶部35に記憶されている。制御部36は、ECUバス占有率が第2基準率以上であると判定した場合(S42:NO)、ステップS41を実行する。ここで、制御部36は、ECUバス占有率が第2基準率以上であると判定してから一定時間が経過した後にステップS41を実行する。制御部36は、ECUバス14aに係るECUバス占有率が第2基準率未満となるまで待機する。 The control unit 36 reads the ECU bus occupancy relating to the ECU bus 14a from the storage unit 35 (step S41), and determines whether or not the read ECU bus occupancy is less than a second reference rate, for example, 40% ( Step S42). The second reference rate is a constant value and is stored in the storage unit 35 in advance. When it is determined that the ECU bus occupancy is equal to or higher than the second reference rate (S42: NO), control unit 36 executes step S41. Here, the control unit 36 executes step S41 after a predetermined time has elapsed since it was determined that the ECU bus occupancy is equal to or higher than the second reference rate. The control unit 36 stands by until the ECU bus occupation rate related to the ECU bus 14a becomes less than the second reference rate.
 制御部36は、ECUバス占有率が第2基準率未満であると判定した場合(S42:YES)、ステップS41で読み出したECUバス占有率に基づいて、第2通信部34aのECU送信間隔を決定する(ステップS43)。更新データを構成する全ての部分データの中で最後に送信される部分データを除く他の部分データのデータ長は、上限値であり、一定である。従って、第2通信部34aのECU送信間隔が短い程、第2通信部34aが送信する部分データの単位時間当たりの送信量は大きい。このため、ステップS43で第2通信部34aのECU送信間隔を決定することによって、部分データの単位時間当たりの送信量が決定される。制御部36は決定部としても機能する。 When it is determined that the ECU bus occupancy rate is less than the second reference rate (S42: YES), the control unit 36 determines the ECU transmission interval of the second communication unit 34a based on the ECU bus occupancy rate read in step S41. Determine (step S43). The data length of the other partial data except the partial data transmitted last among all the partial data constituting the update data is an upper limit value and is constant. Accordingly, the shorter the ECU transmission interval of the second communication unit 34a, the larger the transmission amount per unit time of the partial data transmitted by the second communication unit 34a. For this reason, the transmission amount per unit time of the partial data is determined by determining the ECU transmission interval of the second communication unit 34a in step S43. The control unit 36 also functions as a determination unit.
 図12は、ECUバス占有率と送信間隔との関係を示す図表である。記憶部35には、図12に示すようなECUバス占有率と送信間隔との関係が記憶されている。図12の例では、0%以上かつ10%未満であるECUバス占有率には送信間隔G0が対応する。10%以上かつ20%未満であるECUバス占有率には、送信間隔G0よりも長い送信間隔G1が対応する。20%以上かつ30%未満であるECUバス占有率には、送信間隔G1よりも長い送信間隔G2が対応する。30%以上かつ40%未満であるECUバス占有率には、送信間隔G2よりも長い送信間隔G3が対応する。図12の例では第2基準率は40%である。 FIG. 12 is a chart showing the relationship between the ECU bus occupation ratio and the transmission interval. The storage unit 35 stores the relationship between the ECU bus occupation ratio and the transmission interval as shown in FIG. In the example of FIG. 12, the transmission interval G0 corresponds to the ECU bus occupation ratio that is 0% or more and less than 10%. A transmission interval G1 longer than the transmission interval G0 corresponds to an ECU bus occupancy rate of 10% or more and less than 20%. A transmission interval G2 that is longer than the transmission interval G1 corresponds to an ECU bus occupation ratio that is 20% or more and less than 30%. A transmission interval G3 longer than the transmission interval G2 corresponds to an ECU bus occupancy rate of 30% or more and less than 40%. In the example of FIG. 12, the second reference rate is 40%.
 ステップS43では、制御部36は、ECU送信間隔を、ステップS41で読み出したECUバス占有率に対応する送信間隔に決定する。図12の例では、ステップS41で読み出されたECUバス占有率が25%である場合、ステップS43では、ECU送信間隔は送信間隔G2に決定される。
 なお、ステップS43では、制御部36は、ステップS41で読み出したECUバス占有率を演算式に代入することによって送信間隔を算出し、第2通信部34aのECU送信間隔を、算出した送信間隔に決定してもよい。
In step S43, the control unit 36 determines the ECU transmission interval as a transmission interval corresponding to the ECU bus occupation rate read in step S41. In the example of FIG. 12, when the ECU bus occupancy read in step S41 is 25%, in step S43, the ECU transmission interval is determined as the transmission interval G2.
In step S43, the control unit 36 calculates the transmission interval by substituting the ECU bus occupancy read in step S41 into the arithmetic expression, and sets the ECU transmission interval of the second communication unit 34a to the calculated transmission interval. You may decide.
 次に、制御部36は、記憶部35に記憶されている第2通信部34aのECU送信間隔を、ステップS43で決定したECU送信間隔に変更する(ステップS44)。次に、制御部36は、第2通信部34aのECU送信回数をゼロに設定し(ステップS45)、送信タイマ32aに指示して計時を開始させ(ステップS46)、第2通信部34aに部分データの送信を指示する(ステップS47)。これにより、第2通信部34aは、部分データをECU11a,12aに送信する。ECU11a,12aの一方は、受信した部分データを破棄し、ECU11a,12aの他方は、受信した部分データを記憶する。 Next, the control unit 36 changes the ECU transmission interval of the second communication unit 34a stored in the storage unit 35 to the ECU transmission interval determined in step S43 (step S44). Next, the control unit 36 sets the number of ECU transmissions of the second communication unit 34a to zero (step S45), instructs the transmission timer 32a to start measuring time (step S46), and causes the second communication unit 34a to Data transmission is instructed (step S47). Thereby, the 2nd communication part 34a transmits partial data to ECU11a, 12a. One of the ECUs 11a and 12a discards the received partial data, and the other of the ECUs 11a and 12a stores the received partial data.
 次に、制御部36は、記憶部35に記憶されている第2通信部34aのECU送信回数を1だけインクリメントし(ステップS48)、更新データ、即ち、全ての部分データの送信が完了したか否かを判定する(ステップS49)。制御部36は、更新データの送信が完了していないと判定した場合(S49:NO)、送信タイマ32aが計時している計時時間が、記憶部35に記憶されているECU送信間隔、即ち、ステップS43で決定したECU送信間隔以上であるか否かを判定する(ステップS50)。 Next, the control unit 36 increments the ECU transmission count of the second communication unit 34a stored in the storage unit 35 by 1 (step S48), and whether update data, that is, transmission of all partial data has been completed. It is determined whether or not (step S49). When the control unit 36 determines that the transmission of the update data is not completed (S49: NO), the time measured by the transmission timer 32a is the ECU transmission interval stored in the storage unit 35, that is, It is determined whether or not it is equal to or longer than the ECU transmission interval determined in step S43 (step S50).
 制御部36は、計時時間がECU送信間隔未満であると判定した場合(S50:NO)、ステップS50を再び実行し、計時時間がECU送信間隔以上となるまで待機する。制御部36は、計時時間がECU送信間隔以上であると判定した場合(S50:YES)、送信タイマ32aに指示して計時を終了させ(ステップS51)、記憶部35に記憶されているECU送信回数が第2閾値であるか否かを判定する(ステップS52)。 When it is determined that the timed time is less than the ECU transmission interval (S50: NO), the control unit 36 executes step S50 again and waits until the timed time becomes equal to or longer than the ECU transmission interval. When it is determined that the measured time is equal to or longer than the ECU transmission interval (S50: YES), the control unit 36 instructs the transmission timer 32a to end the time measurement (step S51), and transmits the ECU transmission stored in the storage unit 35. It is determined whether or not the number of times is the second threshold (step S52).
 制御部36は、ECU送信回数が第2閾値ではない、即ち、ECU送信回数が第2閾値未満であると判定した場合(S52:NO)、ステップS46を実行する。制御部36は、更新データの送信が完了するか、又は、ECU送信回数が第2閾値に到達するまで、第2通信部34aに指示してECU送信回数で部分データを繰り返し送信させる。
 制御部36は、ECU送信回数が第2閾値であると判定した場合(S52:YES)、ステップS41を再び実行する。第2通信部34aは、ECUバス14aに係るECUバス占有率が第2基準率未満である場合、再び、ステップS43を実行し、第2通信部34aはステップS43で新たに決定したECU送信間隔で部分データを繰り返し送信する。
When it is determined that the ECU transmission frequency is not the second threshold value, that is, the ECU transmission frequency is less than the second threshold value (S52: NO), the control unit 36 executes Step S46. The control unit 36 instructs the second communication unit 34a to repeatedly transmit the partial data at the ECU transmission count until the transmission of the update data is completed or the ECU transmission count reaches the second threshold value.
When it is determined that the ECU transmission count is the second threshold (S52: YES), the control unit 36 executes Step S41 again. The second communication unit 34a executes step S43 again when the ECU bus occupancy rate related to the ECU bus 14a is less than the second reference rate, and the second communication unit 34a re-executes the ECU transmission interval newly determined in step S43. Send partial data repeatedly.
 制御部36は、更新データの送信が完了したと判定した場合(S49:YES)、送信タイマ32aに指示して計時を終了させ(ステップS53)、第2通信部34aに、更新データの送信が完了したことを示す完了データの送信を指示する(ステップS54)。これにより、第2通信部34aは、完了データを、ECUバス14aを介してECU11a,12aに送信し、ECU11a,12aの中で部分データを記憶しているECUに更新データの送信完了を通知する。
 制御部36は、ステップS54を実行した後、更新データ送信処理を終了する。
When it is determined that the transmission of the update data is completed (S49: YES), the control unit 36 instructs the transmission timer 32a to end the time measurement (step S53), and the second communication unit 34a transmits the update data. The transmission of completion data indicating completion is instructed (step S54). Accordingly, the second communication unit 34a transmits the completion data to the ECUs 11a and 12a via the ECU bus 14a, and notifies the ECU that stores the partial data in the ECUs 11a and 12a of the completion of transmission of the update data. .
After executing step S54, the control unit 36 ends the update data transmission process.
 制御部36は、ECUバス14bを介して更新データを送信するための更新データ送信処理を、ECUバス14aを介して更新データを送信するための更新データ送信処理と同様に実行する。
 ECUバス14aを介して更新データを送信するための更新データ送信処理の説明において、ECU11a,12a、ECUバス14a、送信タイマ32a、第2通信部34a夫々を、ECU11b,12b、ECUバス14b、送信タイマ32b、第2通信部34bに置き換える。これにより、ECUバス14bを介して更新データを送信するための更新データ送信処理を説明することができる。
The control unit 36 executes an update data transmission process for transmitting update data via the ECU bus 14b in the same manner as an update data transmission process for transmitting update data via the ECU bus 14a.
In the description of the update data transmission process for transmitting update data via the ECU bus 14a, the ECUs 11a and 12a, the ECU bus 14a, the transmission timer 32a, and the second communication unit 34a are respectively connected to the ECUs 11b and 12b, the ECU bus 14b, and the transmission. It replaces with the timer 32b and the 2nd communication part 34b. Thereby, the update data transmission process for transmitting the update data via the ECU bus 14b can be described.
 図13は、中継装置10からECU11a,12aへの更新データの送信の説明図である。ここでは、第2通信部34aのECU送信回数に係る第2閾値が3である場合における更新データの送信の一例が示されている。 FIG. 13 is an explanatory diagram of transmission of update data from the relay device 10 to the ECUs 11a and 12a. Here, an example of transmission of update data when the second threshold value related to the number of times of ECU transmission of the second communication unit 34a is 3 is shown.
 図13に示すように、制御部36は、第2通信部34aに更新データの送信を開始させる場合、第2通信部34aのECU送信間隔を、ECUバス14aに係るECUバス占有率に対応する送信間隔に決定する。第2通信部34aは、制御部36が決定したECU送信間隔、即ち、制御部36が決定した単位時間当たりの送信量で部分データを繰り返し送信する。制御部36は、決定したECU送信間隔で第2通信部34aが部分データを繰り返し送信するように、部分データの送信を指示している。第2通信部34aは送信部として機能する。 As illustrated in FIG. 13, when the control unit 36 causes the second communication unit 34a to start transmitting update data, the ECU transmission interval of the second communication unit 34a corresponds to the ECU bus occupation ratio related to the ECU bus 14a. Determine the transmission interval. The second communication unit 34a repeatedly transmits the partial data at the ECU transmission interval determined by the control unit 36, that is, the transmission amount per unit time determined by the control unit 36. The control unit 36 instructs the transmission of the partial data so that the second communication unit 34a repeatedly transmits the partial data at the determined ECU transmission interval. The second communication unit 34a functions as a transmission unit.
 制御部36は、部分データが送信される都度、第2通信部34aのECU送信回数を1だけインクリメントする。制御部36は、ECU送信回数が第2閾値、即ち、3となった場合、再び、ECUバス14aに係るECUバス占有率に対応する第2通信部34aのECU送信間隔を読み出し、第2通信部34aのECU送信回数をゼロに設定する。第2通信部34aは、制御部36が新たに決定したECU送信間隔で部分データをECU11a,12aに繰り返し送信する。 The control unit 36 increments the ECU transmission count of the second communication unit 34a by 1 each time the partial data is transmitted. When the ECU transmission count reaches the second threshold value, ie, 3, the control unit 36 again reads the ECU transmission interval of the second communication unit 34a corresponding to the ECU bus occupancy relating to the ECU bus 14a, and performs the second communication. The number of ECU transmissions of the unit 34a is set to zero. The second communication unit 34a repeatedly transmits the partial data to the ECUs 11a and 12a at the ECU transmission interval newly determined by the control unit 36.
 以上のように、第2通信部34aのECU送信回数が、第2通信部34aのECU送信回数に係る第2閾値となる都度、制御部36は、ECUバス14aに係るECUバス占有率に対応する第2通信部34aのECU送信間隔を決定し、第2通信部34aは、制御部36が決定したECU送信間隔で部分データを繰り返し送信する。また、前述したように、ECUバス14aに係るECUバス占有率の算出処理と、ECUバス14aを介して更新データを送信するための更新データ送信処理とは、時分割方式で行われる。 As described above, whenever the ECU transmission count of the second communication unit 34a becomes the second threshold value related to the ECU transmission count of the second communication unit 34a, the control unit 36 corresponds to the ECU bus occupation ratio related to the ECU bus 14a. The second communication unit 34a determines the ECU transmission interval of the second communication unit 34a, and the second communication unit 34a repeatedly transmits the partial data at the ECU transmission interval determined by the control unit 36. Further, as described above, the ECU bus occupancy calculation process for the ECU bus 14a and the update data transmission process for transmitting update data via the ECU bus 14a are performed in a time-sharing manner.
 従って、ECUバス14aに係るECUバス占有率の算出と、第2通信部34aが送信するECU送信間隔の決定とは、第2通信部34aが部分データの送信を開始する前だけではなく、第2通信部34aが部分データを繰り返し送信している間も行われる。結果、第2通信部34aが部分データを繰り返し送信している間に、ECUバス14aに係るECUバス占有率が変化した場合も、ECU送信間隔、即ち、部分データの単位時間当たりの送信量は、変化したECUバス占有率に応じて変更される。 Therefore, the calculation of the ECU bus occupancy ratio related to the ECU bus 14a and the determination of the ECU transmission interval transmitted by the second communication unit 34a are not only before the second communication unit 34a starts transmitting the partial data, This is also performed while the communication unit 34a repeatedly transmits partial data. As a result, even when the ECU bus occupancy rate related to the ECU bus 14a changes while the second communication unit 34a repeatedly transmits the partial data, the ECU transmission interval, that is, the transmission amount of the partial data per unit time is It is changed according to the changed ECU bus occupation rate.
 第2通信部34aは、更新データの送信が完了した場合、完了データをECU11a,12aに送信し、ECU11a,12aの中で部分データを記憶しているECUに更新データの送信完了を通知する。 When the transmission of the update data is completed, the second communication unit 34a transmits the completion data to the ECUs 11a and 12a, and notifies the ECU that stores the partial data in the ECUs 11a and 12a of the completion of the transmission of the update data.
 また、図13に示すように、ECUバス14aに係るECUバス占有率が小さい場合、第2通信部34aは短いECU送信間隔で部分データを繰り返し送信する。ECUバス14aに係るECUバス占有率が大きい場合、第2通信部34aは長いECU送信間隔で部分データを繰り返し送信する。 As shown in FIG. 13, when the ECU bus occupancy associated with the ECU bus 14a is small, the second communication unit 34a repeatedly transmits partial data at short ECU transmission intervals. When the ECU bus occupation ratio related to the ECU bus 14a is large, the second communication unit 34a repeatedly transmits partial data at a long ECU transmission interval.
 以上のように、ECUバス14aに係るECUバス占有率に基づいて、第2通信部34aのECU送信間隔、即ち、部分データの単位時間当たりの送信量を変更し、ECUバス14aでは、部分データを除く他のデータの単位時間当たりの送信量を変更することはない。このため、部分データを除く他のデータの単位時間当たりの送信量を低下させることはなく、ECU11a,12aに更新データが送信される。 As described above, the ECU transmission interval of the second communication unit 34a, that is, the transmission amount per unit time of the partial data is changed based on the ECU bus occupation ratio related to the ECU bus 14a. The transmission amount per unit time of other data other than is not changed. For this reason, update data is transmitted to ECU11a, 12a, without reducing the transmission amount per unit time of other data except partial data.
 通信システム1では、車両100が停止しているために、部分データを除く他のデータの単位時間当たりの送信量が低下した場合には、部分データが短い送信間隔で送信され、車両100が走行しているために、部分データを除く他のデータの単位時間当たりの送信量が増加した場合には、部分データが長い送信間隔で送信される。 In the communication system 1, since the vehicle 100 is stopped, when the transmission amount per unit time of other data excluding the partial data decreases, the partial data is transmitted at a short transmission interval, and the vehicle 100 travels. Therefore, when the transmission amount per unit time of other data excluding the partial data increases, the partial data is transmitted at a long transmission interval.
 ECUバス14aに係るECUバス占有率が第2基準率以上である間、第2通信部34aは部分データの送信を停止している。このため、ECUバス14aにおいて、部分データを除く他のデータの送信に悪影響を与える確率は低い。
 中継装置10からECU11b,12bへの更新データも、中継装置10からECU11a,12aへの更新データと同様に送信される。従って、第2通信部34bも送信部として機能する。
While the ECU bus occupation rate related to the ECU bus 14a is equal to or higher than the second reference rate, the second communication unit 34a stops transmitting the partial data. For this reason, in the ECU bus 14a, the probability of adversely affecting the transmission of other data excluding partial data is low.
Update data from the relay device 10 to the ECUs 11b and 12b is also transmitted in the same manner as update data from the relay device 10 to the ECUs 11a and 12a. Accordingly, the second communication unit 34b also functions as a transmission unit.
 図14はECU11aの要部構成を示すブロック図である。ECU11aは、出力部40、通信部41、記憶部42及び制御部43を有する。これらはバス44に各別に接続されている。出力部40は、更に、ECU11aに対応する電気機器に接続されている。通信部41は、更に、ECUバス14aに接続されている。 FIG. 14 is a block diagram showing a main configuration of the ECU 11a. The ECU 11 a includes an output unit 40, a communication unit 41, a storage unit 42, and a control unit 43. These are connected to the bus 44 separately. The output unit 40 is further connected to an electric device corresponding to the ECU 11a. The communication unit 41 is further connected to the ECU bus 14a.
 出力部40は、制御部43の指示に従って、電気機器に制御データを出力する。電気機器は、通信部41から入力された制御データに応じた動作を行う。
 通信部41は、ECUバス14aを介して、中継装置10の第2通信部34a及びECU12aからデータを受信する。部分データは、通信部41が第2通信部34aから受信するデータの1つである。通信部41は、制御部43の指示に従って、データを、中継装置10の第2通信部34a及びECU12aにデータを送信する。
The output unit 40 outputs control data to the electrical device in accordance with an instruction from the control unit 43. The electric device performs an operation according to the control data input from the communication unit 41.
The communication unit 41 receives data from the second communication unit 34a and the ECU 12a of the relay device 10 via the ECU bus 14a. The partial data is one of data that the communication unit 41 receives from the second communication unit 34a. The communication unit 41 transmits the data to the second communication unit 34a and the ECU 12a of the relay device 10 according to the instruction of the control unit 43.
 記憶部42は例えば不揮発性メモリである。記憶部42には、制御プログラムP3及び更新プログラムP4が記憶されている。
 制御部43は図示しないCPUを有する。制御部43のCPUは、制御プログラムP3を実行することによって、出力部40に接続されている電気機器の動作を制御する制御処理と、通信部41が受信した部分データを記憶部42に記憶する記憶処理とを実行する。制御プログラムP3は、制御部43のCPUに、制御処理及び記憶処理を実行させるためのコンピュータプログラムである。
The storage unit 42 is, for example, a nonvolatile memory. The storage unit 42 stores a control program P3 and an update program P4.
The control unit 43 has a CPU (not shown). The CPU of the control unit 43 stores the control process for controlling the operation of the electrical equipment connected to the output unit 40 and the partial data received by the communication unit 41 in the storage unit 42 by executing the control program P3. Perform storage processing. The control program P3 is a computer program for causing the CPU of the control unit 43 to execute control processing and storage processing.
 制御処理では、制御部43は、出力部40に指示して、電気機器に制御データを出力させることによって、電気機器の動作を制御する。
 制御部43は、通信部41が部分データを受信した場合に記憶処理を実行する。記憶処理では、制御部43は、通信部41が受信した部分データのデータフレームに含まれている識別情報に基づいて、通信部41が受信した部分データを破棄すべきか否かを判定する。制御部43は、通信部41が受信した部分データを破棄すべきと判定した場合、この部分データを破棄する。制御部43は、通信部41が受信した部分データを破棄すべきではないと判定した場合、この部分データを記憶部42に記憶する。
In the control process, the control unit 43 instructs the output unit 40 to control the operation of the electric device by causing the electric device to output control data.
The control unit 43 performs storage processing when the communication unit 41 receives partial data. In the storage process, the control unit 43 determines whether or not the partial data received by the communication unit 41 should be discarded based on the identification information included in the data frame of the partial data received by the communication unit 41. When it is determined that the partial data received by the communication unit 41 should be discarded, the control unit 43 discards the partial data. When determining that the partial data received by the communication unit 41 should not be discarded, the control unit 43 stores the partial data in the storage unit 42.
 制御部43は、記憶部42に更新データ、即ち、全ての部分データが記憶されている場合に更新プログラムP4を実行し、制御プログラムP3の更新処理を実行する。更新プログラムP4は、制御部43のCPUに制御プログラムP3の更新処理を実行させるためのコンピュータプログラムである。更新処理では、制御部43は、記憶部42に記憶されている更新データに基づいて、制御プログラムP3を更新する。 The control unit 43 executes the update program P4 when update data, that is, all partial data is stored in the storage unit 42, and executes update processing of the control program P3. The update program P4 is a computer program for causing the CPU of the control unit 43 to execute update processing of the control program P3. In the update process, the control unit 43 updates the control program P3 based on the update data stored in the storage unit 42.
 ECU11b,12a,12b夫々はECU11aと同様に構成されている。ECU11aの構成の説明において、ECU11a,12a夫々をECU12a,11aに置き換えることによって、ECU12aの構成を説明することができる。また、ECU11aの構成の説明において、ECU11a,12a、ECUバス14a及び第2通信部34a夫々を、ECU11b,12b,ECUバス14b及び第2通信部34bに置き換えることによって、ECU11bの構成を説明することができる。更に、ECU11aの構成の説明において、ECU11a,12a、ECUバス14a及び第2通信部34a夫々を、ECU12b,11b,ECUバス14b及び第2通信部34bに置き換えることによって、ECU12bの構成を説明することができる。 The ECUs 11b, 12a, and 12b are each configured in the same manner as the ECU 11a. In the description of the configuration of the ECU 11a, the configuration of the ECU 12a can be described by replacing the ECUs 11a and 12a with the ECUs 12a and 11a, respectively. In the description of the configuration of the ECU 11a, the configuration of the ECU 11b will be described by replacing the ECUs 11a and 12a, the ECU bus 14a, and the second communication unit 34a with the ECUs 11b, 12b, the ECU bus 14b, and the second communication unit 34b, respectively. Can do. Further, in the description of the configuration of the ECU 11a, the configuration of the ECU 12b will be described by replacing the ECUs 11a, 12a, the ECU bus 14a, and the second communication unit 34a with the ECUs 12b, 11b, the ECU bus 14b, and the second communication unit 34b, respectively. Can do.
 なお、ECUバス14a,14b夫々について、部分データの単位時間当たりの送信量を決定する構成は、ECU送信間隔を決定する構成に限定されない。直接に、部分データの単位時間当たりの送信量が決定されてもよい。同様に、無線器バス15についても、部分データの単位時間当たりの送信量を決定する構成は、無線器送信間隔を決定する構成に限定されない。直接に、部分データの単位時間当たりの送信量が決定されてもよい。 The configuration for determining the transmission amount of partial data per unit time for each of the ECU buses 14a and 14b is not limited to the configuration for determining the ECU transmission interval. Directly, the transmission amount of the partial data per unit time may be determined. Similarly, with regard to the wireless device bus 15, the configuration for determining the transmission amount of partial data per unit time is not limited to the configuration for determining the wireless device transmission interval. Directly, the transmission amount of the partial data per unit time may be determined.
 また、中継装置10の第2通信部34a,34b中の1つが部分データの送信を開始するタイミングは、第1通信部33が全ての部分データの受信を完了する前であってもよいし、第1通信部33が全ての部分データの受信を完了した後であってもよい。
 更に、無線器13の無線通信部20がサーバ16から一度に受信する更新データの数は、1つに限定されず、2つ以上であってもよい。例えば、無線通信部20は、サーバ16からECU11a,11b夫々の制御プログラムP3を更新するための更新データを受信する構成であってもよい。
In addition, the timing at which one of the second communication units 34a and 34b of the relay device 10 starts transmission of partial data may be before the first communication unit 33 completes reception of all partial data, It may be after the 1st communication part 33 completes reception of all the partial data.
Furthermore, the number of update data that the wireless communication unit 20 of the wireless device 13 receives from the server 16 at a time is not limited to one and may be two or more. For example, the wireless communication unit 20 may be configured to receive update data for updating the control programs P3 of the ECUs 11a and 11b from the server 16.
 また、無線器送信間隔は、無線器バス占有率だけではなく、車両100の速度、又は、車両100のシフトレバーの位置等の車両100の状態にも基づいて設定されてもよい。同様に、第2通信部34a,34b夫々に係るECU送信間隔は、ECUバス14a,14b夫々に係るECUバス占有率だけではなく、車両100の状態にも基づいて設定されてもよい。 Further, the radio transmission interval may be set based not only on the radio bus occupancy rate but also on the state of the vehicle 100 such as the speed of the vehicle 100 or the position of the shift lever of the vehicle 100. Similarly, the ECU transmission interval related to each of the second communication units 34a and 34b may be set based not only on the ECU bus occupation ratio related to each of the ECU buses 14a and 14b but also on the state of the vehicle 100.
 また、中継装置10に接続されるECUバスの数は、2つに限定されず、3つ以上であってもよい。更に、中継装置10に接続される無線器バス15の数は、1つに限定されず、2つ以上であってもよい。また、ECUバスに接続されるECUの数は、2つに限定されず、1つ又は3つ以上であってもよい。各ECUバスに接続されるECUの数は同じでなくてもよい。また、無線器バスに無線器13以外に通信装置が接続されてもよい。 Further, the number of ECU buses connected to the relay device 10 is not limited to two, and may be three or more. Further, the number of radio buses 15 connected to the relay apparatus 10 is not limited to one, and may be two or more. Further, the number of ECUs connected to the ECU bus is not limited to two, and may be one or three or more. The number of ECUs connected to each ECU bus may not be the same. A communication device other than the wireless device 13 may be connected to the wireless device bus.
 更に、ECUバス及び無線器バス夫々を介した通信のプロトコルは、CANプロトコル又はCAN-FDプロトコルに限定されず、例えば、イーサネット(登録商標)のプロトコルであってもよい。ECUバス及び無線器バス夫々を介した通信のプロトコルがCANプロトコル及びCAN-FDプロトコルのいずれとも異なる場合、ECUバス14a,14b及び無線器バス15夫々はツイストペア線に限定されない。 Further, the communication protocol via the ECU bus and the radio bus is not limited to the CAN protocol or the CAN-FD protocol, and may be, for example, an Ethernet (registered trademark) protocol. When the communication protocol via the ECU bus and the radio bus is different from both the CAN protocol and the CAN-FD protocol, the ECU buses 14a and 14b and the radio bus 15 are not limited to the twisted pair lines.
 開示された本実施の形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上述した意味ではなく、請求の範囲によって示され、請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 The disclosed embodiment is an example in all respects and should be considered not to be restrictive. The scope of the present invention is defined by the terms of the claims, rather than the meanings described above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
 1 通信システム
 10 中継装置
 11a,11b,12a,12b ECU(通信装置)
 14a,14b ECUバス(第1通信線)
 15 無線器バス(第2通信線)
 33 第1通信部(第2の送信部、受信部)
 34a,34b 第2通信部(送信部)
 36 制御部(算出部、決定部、第2の算出部、第2の決定部)
 P2,P3 制御プログラム(コンピュータプログラム)
DESCRIPTION OF SYMBOLS 1 Communication system 10 Relay apparatus 11a, 11b, 12a, 12b ECU (communication apparatus)
14a, 14b ECU bus (first communication line)
15 Radio bus (second communication line)
33 1st communication part (2nd transmission part, receiving part)
34a, 34b Second communication unit (transmission unit)
36 control unit (calculation unit, determination unit, second calculation unit, second determination unit)
P2, P3 control program (computer program)

Claims (8)

  1.  複数の通信線に接続され、該複数の通信線中の2つの通信線夫々に接続されている2つの通信装置間の通信を中継する中継装置において、
     前記複数の通信線中の1つである第1通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出する算出部と、
     該算出部が算出した占有率に基づいて、コンピュータプログラムを更新するための更新データの一部分である部分データの単位時間当たりの送信量を決定する決定部と、
     該決定部が決定した単位時間当たりの送信量で、前記部分データを、前記第1通信線を介して繰り返し送信する送信部と
     を備えることを特徴とする中継装置。
    In a relay device that is connected to a plurality of communication lines and relays communication between two communication devices connected to two communication lines in the plurality of communication lines,
    A calculation unit that calculates an occupancy ratio of a transmission time during which data is transmitted per unit time for a first communication line that is one of the plurality of communication lines;
    A determination unit that determines a transmission amount per unit time of partial data that is a part of update data for updating the computer program based on the occupation ratio calculated by the calculation unit;
    A relay apparatus comprising: a transmission unit that repeatedly transmits the partial data via the first communication line at a transmission amount per unit time determined by the determination unit.
  2.  第2通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出する第2の算出部と、
     該第2の算出部が算出した占有率に基づいて、前記部分データの単位時間当たりの送信量を決定する第2の決定部と、
     該第2の決定部が決定した単位時間当たりの送信量を示す送信量データを、前記第2通信線を介して送信する第2の送信部と、
     前記第2通信線を介して前記部分データを受信する受信部と
     を備えることを特徴とする請求項1に記載の中継装置。
    For the second communication line, a second calculation unit that calculates an occupation ratio that the transmission time during which data is transmitted occupies per unit time;
    A second determination unit that determines a transmission amount per unit time of the partial data based on the occupation ratio calculated by the second calculation unit;
    A second transmission unit that transmits transmission amount data indicating the transmission amount per unit time determined by the second determination unit via the second communication line;
    The relay apparatus according to claim 1, further comprising: a receiving unit that receives the partial data via the second communication line.
  3.  前記決定部は、前記部分データの送信間隔を決定することによって、前記部分データの単位時間当たりの送信量を決定し、
     前記送信部は、該決定部が決定した送信間隔で、前記部分データを、前記第1通信線を介して繰り返し送信すること
     を特徴とする請求項1又は請求項2に記載の中継装置。
    The determining unit determines a transmission amount per unit time of the partial data by determining a transmission interval of the partial data;
    The relay apparatus according to claim 1, wherein the transmission unit repeatedly transmits the partial data via the first communication line at a transmission interval determined by the determination unit.
  4.  前記算出部の算出及び前記決定部の決定は、該送信部が前記部分データを繰り返し送信している間に行われること
     を特徴とする請求項1から請求項3のいずれか1つに記載の中継装置。
    The calculation by the calculation unit and the determination by the determination unit are performed while the transmission unit repeatedly transmits the partial data. Relay device.
  5.  前記送信部は、前記算出部が算出した占有率が所定率以上である間、前記部分データの送信を停止していること
     を特徴とする請求項1から請求項4のいずれか1つに記載の中継装置。
    5. The transmission unit according to claim 1, wherein the transmission unit stops transmission of the partial data while the occupation rate calculated by the calculation unit is equal to or greater than a predetermined rate. 6. Relay device.
  6.  請求項1から請求項5のいずれか1つに記載の中継装置と、
     前記2つの通信装置と
     を備えることを特徴とする通信システム。
    A relay device according to any one of claims 1 to 5,
    A communication system comprising the two communication devices.
  7.  通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出し、
     算出した占有率に基づいて、コンピュータプログラムを更新するための更新データの一部分である部分データの単位時間当たりの送信量を決定し、
     決定した単位時間当たりの送信量で、前記部分データを、前記通信線を介して繰り返し送信すること
     を特徴とする送信方法。
    For the communication line, calculate the occupancy rate that the transmission time during which data is being transmitted occupies per unit time,
    Based on the calculated occupancy rate, determine the transmission amount per unit time of partial data that is a part of update data for updating the computer program,
    The transmission method characterized by repeatedly transmitting the partial data through the communication line with the determined transmission amount per unit time.
  8.  通信線について、データが送信されている送信時間が単位時間当たりに占める占有率を算出し、
     算出した占有率に基づいて、コンピュータプログラムを更新するための更新データの一部分である部分データの単位時間当たりの送信量を決定し、
     決定した単位時間当たりの送信量で、前記部分データが、前記通信線を介して繰り返し送信されるようにデータの送信を指示する
     処理をコンピュータに実行させることを特徴とするコンピュータプログラム。
     
    For the communication line, calculate the occupancy rate that the transmission time during which data is being transmitted occupies per unit time,
    Based on the calculated occupancy rate, determine the transmission amount per unit time of partial data that is a part of update data for updating the computer program,
    A computer program that causes a computer to execute a process of instructing data transmission so that the partial data is repeatedly transmitted via the communication line at a determined transmission amount per unit time.
PCT/JP2017/031826 2016-09-16 2017-09-04 Relay device, communication system, transmission method and computer program WO2018051833A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016-182030 2016-09-16
JP2016182030A JP2018046515A (en) 2016-09-16 2016-09-16 Relay device, communication system, transmission method, and computer program

Publications (1)

Publication Number Publication Date
WO2018051833A1 true WO2018051833A1 (en) 2018-03-22

Family

ID=61618713

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/031826 WO2018051833A1 (en) 2016-09-16 2017-09-04 Relay device, communication system, transmission method and computer program

Country Status (2)

Country Link
JP (1) JP2018046515A (en)
WO (1) WO2018051833A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019200789A (en) * 2018-05-15 2019-11-21 株式会社デンソー Electronic controller and session establishing program
WO2019221118A1 (en) * 2018-05-15 2019-11-21 株式会社デンソー Electronic control unit and session establishment program
WO2020021458A1 (en) 2018-07-24 2020-01-30 3M Innovative Properties Company A patterned wavelength-selective image
WO2020032117A1 (en) * 2018-08-10 2020-02-13 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
JP2020028121A (en) * 2018-08-10 2020-02-20 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
EP3751793A1 (en) * 2019-06-12 2020-12-16 Yazaki Corporation Occupancy rate calculation device and occupancy rate calculation method
WO2022153897A1 (en) * 2021-01-18 2022-07-21 株式会社オートネットワーク技術研究所 Onboard apparatus and updating method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6897630B2 (en) * 2018-05-11 2021-07-07 株式会社オートネットワーク技術研究所 In-vehicle update device, update processing method and update processing program
JP7135985B2 (en) * 2019-04-12 2022-09-13 株式会社デンソー Communication device
JP7147721B2 (en) * 2019-09-05 2022-10-05 トヨタ自動車株式会社 In-vehicle communication device and communication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008211644A (en) * 2007-02-27 2008-09-11 Auto Network Gijutsu Kenkyusho:Kk On-vehicle communication apparatus and on-vehicle communication system
JP2012178035A (en) * 2011-02-25 2012-09-13 Toyota Motor Corp Data rewriting support system and data rewriting support method for vehicle control device
JP2013038711A (en) * 2011-08-10 2013-02-21 Toyota Motor Corp Vehicle network communication management device
JP2015080045A (en) * 2013-10-15 2015-04-23 株式会社デンソー On-vehicle diagnosis system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008211644A (en) * 2007-02-27 2008-09-11 Auto Network Gijutsu Kenkyusho:Kk On-vehicle communication apparatus and on-vehicle communication system
JP2012178035A (en) * 2011-02-25 2012-09-13 Toyota Motor Corp Data rewriting support system and data rewriting support method for vehicle control device
JP2013038711A (en) * 2011-08-10 2013-02-21 Toyota Motor Corp Vehicle network communication management device
JP2015080045A (en) * 2013-10-15 2015-04-23 株式会社デンソー On-vehicle diagnosis system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019200789A (en) * 2018-05-15 2019-11-21 株式会社デンソー Electronic controller and session establishing program
WO2019221118A1 (en) * 2018-05-15 2019-11-21 株式会社デンソー Electronic control unit and session establishment program
JP2020021506A (en) * 2018-05-15 2020-02-06 株式会社デンソー Electronic controller and session establishing program
WO2020021458A1 (en) 2018-07-24 2020-01-30 3M Innovative Properties Company A patterned wavelength-selective image
WO2020032117A1 (en) * 2018-08-10 2020-02-13 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
JP2020028121A (en) * 2018-08-10 2020-02-20 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
CN112640368A (en) * 2018-08-10 2021-04-09 株式会社电装 Vehicle host device, update data distribution control method, update data distribution control program, and specification data structure
JP7024765B2 (en) 2018-08-10 2022-02-24 株式会社デンソー Vehicle master device, update data distribution control method, and update data distribution control program
CN112640368B (en) * 2018-08-10 2023-02-28 株式会社电装 Vehicle host device, update data distribution control method, update data distribution control program, and specification data structure
US11683197B2 (en) 2018-08-10 2023-06-20 Denso Corporation Vehicle master device, update data distribution control method, computer program product and data structure of specification data
EP3751793A1 (en) * 2019-06-12 2020-12-16 Yazaki Corporation Occupancy rate calculation device and occupancy rate calculation method
WO2022153897A1 (en) * 2021-01-18 2022-07-21 株式会社オートネットワーク技術研究所 Onboard apparatus and updating method

Also Published As

Publication number Publication date
JP2018046515A (en) 2018-03-22

Similar Documents

Publication Publication Date Title
WO2018051833A1 (en) Relay device, communication system, transmission method and computer program
US10986008B2 (en) Abnormality detection in an on-board network system
US10931634B2 (en) Security apparatus, attack detection method, and storage medium
US11296965B2 (en) Abnormality detection in an on-board network system
JP5664799B2 (en) Communication system and communication method
US7769935B2 (en) Communication system with master and slave exchanging control data in predetermined communication period
JP5084832B2 (en) Transmitting apparatus and communication system
JP6355863B1 (en) Network system and communication method
US20230048058A1 (en) Anomaly determination method, anomaly determination device, and recording medium
CN113545012B (en) Communication device, communication system, and message arbitration method
JP2006253922A (en) Gateway apparatus and data transfer method for the gateway apparatus
CN108632242B (en) Communication device and receiving device
JP2009089286A (en) Relay connection unit
US11342960B2 (en) Relay device, relay method, and computer program
JP2014027510A (en) Communication controller
JP7453061B2 (en) Communication control system and communication control method
JP6183281B2 (en) Communication system and electronic control device
JP6471613B2 (en) Relay device and communication system
JP2016124456A (en) Communication system
JP2010200091A (en) Communication system and communication method
JP2022115669A (en) Electronic control device
CN106850134B (en) Frame transmission method and device
JP6141549B1 (en) Programmable logic controller
WO2019188055A1 (en) Communication system, reception device, transmission interval modification method, and computer program
JP5939231B2 (en) Communication device

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

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

Country of ref document: EP

Kind code of ref document: A1