WO2015122166A1 - 車載制御装置 - Google Patents

車載制御装置 Download PDF

Info

Publication number
WO2015122166A1
WO2015122166A1 PCT/JP2015/000553 JP2015000553W WO2015122166A1 WO 2015122166 A1 WO2015122166 A1 WO 2015122166A1 JP 2015000553 W JP2015000553 W JP 2015000553W WO 2015122166 A1 WO2015122166 A1 WO 2015122166A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target frame
frame
transmission
priority
Prior art date
Application number
PCT/JP2015/000553
Other languages
English (en)
French (fr)
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 株式会社デンソー
Priority to US15/117,910 priority Critical patent/US10153825B2/en
Publication of WO2015122166A1 publication Critical patent/WO2015122166A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/155Ground-based stations
    • H04B7/15507Relay station based processing for cell extension or control of coverage area
    • 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/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]

Definitions

  • This disclosure relates to an in-vehicle control device mounted on an automobile.
  • an in-vehicle communication system mounted on an automobile including in-vehicle communication including at least one in-vehicle device (node) connected to a bus and a gateway that relays communication between nodes connected to different buses.
  • in-vehicle communication including at least one in-vehicle device (node) connected to a bus and a gateway that relays communication between nodes connected to different buses.
  • node in-vehicle device
  • data is transmitted and received using a protocol defined for each bus, and a CAN (Controller Area Network) protocol, a LIN (Local Interconnect Network), or the like is used as a protocol.
  • CAN Controller Area Network
  • LIN Local Interconnect Network
  • a general gateway mounted on a car outputs data received from a node to a specified bus according to routing information.
  • the data frames are output to the CAN bus in the order received by the gateway from each node (that is, function as a FIFO buffer).
  • the CAN bus mentioned here is a bus through which data is transmitted and received using the CAN protocol.
  • the CANID is included in the head portion of the data frame.
  • This CANID is an identifier for identifying the content of data set in the transmission source node and the subsequent area, and is set for each data frame.
  • each node transmits a data frame to the bus if the bus is free. However, a data frame may be simultaneously transmitted from each node to the bus.
  • the CAN protocol specifies that the data frame having the smallest CANID logical value is the data frame having the highest priority, and that the node that transmitted the data frame performs arbitration control to obtain the transmission right.
  • the gateway when the gateway receives a data frame to be transmitted to the CAN bus from a bus different from the CAN bus (hereinafter referred to as “transmission target frame”), if the priority of the transmission target frame is low, There is a possibility that it will continue to lose the arbitration of transmission rights with other nodes.
  • the conventional in-vehicle control device has a problem that the residence time until the data frame is transmitted to the bus may be long.
  • the present disclosure transmits a data frame to a bus in an in-vehicle control device that complies with a communication protocol defined such that the lower the priority set for each data frame, the longer the waiting time until it is transmitted to the bus.
  • the purpose is to shorten the residence time.
  • communication is performed with at least one in-vehicle node via a common bus, a priority is set for each data frame output from the in-vehicle node, and the lower the priority,
  • a vehicle-mounted control device that complies with a communication protocol that is defined so that a waiting time until it is transmitted to the bus is a data frame to be transmitted to the bus, and the transmission target frame is transmitted from the vehicle-mounted node.
  • An arbitration device that performs arbitration control to arbitrate transmission of the transmission target frame so as to continue transmission of the transmission target frame to the bus; and, as a result of the arbitration control by the arbitration device, the transmission for a predetermined time or more
  • a change device that executes change control for changing the priority of the transmission target frame so as to be highest among all the data frames when waiting for transmission of the target frame.
  • the priority of the transmission target frame is changed to be the highest among all the data frames. . For this reason, the transmission target frame whose priority is changed can surely obtain the transmission right to the bus and is transmitted to the bus.
  • the vehicle-mounted control device it is possible to prevent the transmission target frame from greatly losing arbitration beyond the specified time, and transmission of the transmission target frame to the bus can be realized at an early stage.
  • a plurality of in-vehicle nodes communicate via a common bus
  • a priority is set for each data frame transmitted from the in-vehicle node, and the lower the priority is, the more the data is transmitted to the bus.
  • the dwell time required to transmit the data frame can be shortened.
  • FIG. 1 is a block diagram illustrating a schematic configuration of an in-vehicle communication system including a relay device as an in-vehicle control device to which the present disclosure is applied.
  • FIG. 2 is an explanatory diagram for explaining a data frame in a standard format in the CAN protocol.
  • FIG. 3 is a functional block diagram of the relay device.
  • FIG. 4 is an explanatory diagram for explaining the outline of the FIFO buffer.
  • FIG. 5 is a flowchart for explaining the processing procedure of the transmission processing executed by the control unit of the relay device.
  • FIG. 6 is an explanatory diagram for explaining an extended format data frame in the CAN protocol.
  • FIG. 7 is a flowchart for explaining a processing procedure of reception processing executed by a control unit of an ECU that is one of the in-vehicle control devices.
  • An in-vehicle communication system 1 shown in FIG. 1 is a communication system mounted on an automobile, and is a system that communicates necessary information between in-vehicle nodes.
  • the in-vehicle communication system 1 includes an electronic control unit (hereinafter referred to as an ECU (Electronic Control Unit)) 20, 30, 35 as an in-vehicle node, and a relay device 40.
  • ECU Electronic Control Unit
  • the ECUs 20 1 to 20 N in the present embodiment are connected to the bus 10.
  • the ECUs 30 1 to 30 M are connected to the bus 12.
  • the ECUs 35 1 to 35 L are connected to the bus 14.
  • the subscripts N, M, and L here represent the number of ECUs 20, 30, and 35, and are positive integers equal to or greater than “1”.
  • bus 10 the bus 12, and the bus 14 are different from each other.
  • communication between ECU20,30,35 is performed using a different communication protocol for every bus
  • FlexRay is used for communication on the bus 12
  • Lin Local Interconnect Network
  • CAN Controller Area Network
  • ECU20 is provided with the communication part 22, the memory
  • the communication unit 22 sends out data to the bus 10 to which the communication unit 22 is connected and fetches data from the bus 10 to which the communication unit 22 is connected.
  • the storage unit 24 is a non-volatile storage device that retains the stored contents and can rewrite the stored contents even when the power supply is interrupted (that is, when the power is turned off).
  • the control unit 26 is configured around a known microcomputer including at least a ROM, a RAM, and a CPU.
  • control unit 26 of the ECU 20 executes a function realization process for realizing a function assigned to the ECU 20 itself and a communication process for executing communication with other ECUs 20, 30, and 35.
  • the storage unit 24 stores a processing program for the control unit 26 to execute a reception process for fetching data from the bus 10 through which communication is performed using the CAN protocol, as a part of the communication process.
  • an engine ECU that controls an internal combustion engine for example, an engine ECU that controls an internal combustion engine, a power train ECU that controls a power train mechanism, a brake ECU that controls a brake mechanism, and the like are conceivable.
  • the ECUs 30 and 35 in the present embodiment are configured in the same manner as the ECU 20 except that the communication protocols are different. For this reason, detailed description of ECU30,35 is abbreviate
  • a window ECU that controls a power window for example, a mirror ECU that controls an electric mirror, an air conditioner ECU that controls an in-vehicle air conditioner, a wiper ECU that controls a wiper mechanism, and the like are conceivable.
  • the ECU 20 and the relay device 40 transmit a data frame after confirming that the bus 10 is free.
  • arbitration control is executed in the CAN protocol.
  • the arbitration control referred to here is a well-known control that prioritizes transmission of a data frame having a high priority and waits for transmission of a data frame having a low priority in accordance with a priority defined in advance for each data frame.
  • the data frame includes at least a header area and a data area following the header area.
  • the header area includes at least SOF, standard ID, RTR, and IDE in the order of SOF, standard ID, RTR, and IDE.
  • the numerical value in square brackets ([]) in FIG. 2 is the data size (bit) of each area.
  • SOF is a 1-bit signal indicating the start of a data frame, and becomes low level (“0”) when transmission of the data frame is started.
  • RTR is a signal for identifying a data frame and a remote frame.
  • IDE is a 1-bit signal indicating whether or not an extended ID, which will be described in detail later, is included. If low level, IDE indicates that no extended ID is included, and if high level (“1”), Indicates that an extension ID is included.
  • Standard ID is a signal representing the content of data included in the data frame and the identification information of the ECU that has transmitted the data frame.
  • This identification information is binary data having a data size of a prescribed data length (11 bits in this embodiment), and is a CANID that is a unique (unique) identifier for each data frame.
  • CANID is an example of data information.
  • the data area includes the data itself (data field) transmitted to the bus 10. Further, the data area includes at least size information (control field) indicating the size of the data and a CRC code for checking whether there is an error.
  • the bus 10 is configured such that the signal level on the bus 10 becomes low level when a high level signal and a low level signal are simultaneously output from the ECU 20 or the relay device 40.
  • the low level (“0”) is the dominant level and the high level (“1”) is the recessive level. For this reason, when a data frame is simultaneously transmitted to the bus from at least two ECUs 20, or from the ECU 20 and the relay device 40, a low-level signal is given priority.
  • a relay device 40 shown in FIG. 1 is a device having a gateway function that relays communication between ECUs 20, 30, and 35 connected to buses 10, 12,...
  • the relay device 40 includes a communication unit 42, a storage unit 44, and a control unit 46.
  • the communication unit 42 transmits data to the buses 10, 12,..., And takes in data from the buses 12, 14,.
  • the storage unit 44 is a non-volatile memory that retains the stored contents even when the power is turned off and can rewrite the stored contents.
  • the control unit 46 is configured around a known microcomputer including at least a ROM, a RAM, and a CPU.
  • the relay device 40 includes a power supply unit (not shown) that converts electric power supplied from the vehicle-mounted battery into power necessary for the operation of the relay device 40 itself, and a clock generation unit (not shown) that generates a clock signal. ).
  • the storage unit 44 a process for the control unit 46 to execute a relay process that realizes data transmission / reception between the ECUs 20, 30, and 35 connected to the different buses 10, 12, and 14 according to the routing information.
  • the program is stored.
  • the routing information referred to here is information representing a data communication path between the ECUs 20, 30, and 35 connected to different buses 10, 12, and 14, and is stored in the storage unit 44.
  • each frame to the bus 10 converts each data into a CAN protocol data format (that is, the above-described standard format data frame), and outputs it according to the CAN protocol.
  • a CAN protocol data format that is, the above-described standard format data frame
  • the storage unit 44 stores a processing program for the control unit 46 to execute a transmission process for transmitting a data frame to the bus 10 that performs communication by the CAN protocol as a part of the relay process.
  • the control unit 46 performs routing to distribute the received frame to the bus 10 as shown in FIG. It functions as the unit 50.
  • the frames from the buses 12 and 14 are received by the communication unit 42 functioning as transceivers 52, 53, and 54 that control transmission and reception of frames by executing relay processing.
  • the frames distributed by the control unit 46 functioning as the routing unit 50 are stored in the FIFO buffer 56 in which frames output to the bus 10 are stored.
  • the FIFO buffer 56 is realized by the control unit 46 that executes the relay process, and the frames output to the bus 10 are sequentially stored in the order received by the relay device 40 as shown in FIG. .
  • Note that “0x555”, “0x7FF”, and the like shown in FIG. 4 represent CANIDs in hexadecimal numbers.
  • the frames stored in the FIFO buffer 56 are converted into data frames in the CAN protocol standard format in the order stored in the FIFO buffer 56, and output is started.
  • This transmission process is started when a data frame is stored in the head area of the FIFO buffer 56.
  • a data frame stored in the head area of the FIFO buffer 56 and in a transmission standby state is referred to as a transmission target frame.
  • the control unit 46 When the transmission process is started, the control unit 46 first measures a residence time indicating the length of time that the transmission target frame stays in the relay device 40 as shown in FIG. Is activated (S110). And if the control part 46 confirms that the bus
  • control unit 46 determines whether or not the transmission right of the data frame to the bus 10 has been obtained (S130). That is, in S130, if the signal level of the bus 10 that changes in units of bits matches the signal level in the data frame transmitted by the relay device 40 itself, the transmission right is obtained (that is, the bus arbitration is won). )). On the other hand, if they do not match, it is determined that the transmission right has not been obtained (that is, the loss of bus arbitration).
  • the relay device 40 is the only node that has transmitted the data frame to the bus 10, it is determined that the transmission right has been obtained.
  • the logical value of the standard ID (CANID) in the transmission target frame that has started transmission to the bus 10 in S120 is obtained from the ECU 20. If the data frame is smaller than the logical value of CANID in the data frame (hereinafter referred to as “arbitration target frame”), it is determined that the transmission right has been obtained. On the other hand, when the logical value of the standard ID (CANID) in the transmission target frame that has started transmission to the bus 10 in S120 is larger than the logical value of CANID in the arbitration target frame, it is determined that the transmission right has not been obtained. Is done.
  • control unit 46 displays the RTR, IDE, control field, and data field in the transmission target frame.
  • the data is sequentially transferred to the bus 10 (S160). That is, when the transmission right can be obtained, the transmission target frame is transmitted to the bus 10.
  • control unit 46 stops the timer and initializes the residence time (that is, returns to “0”) (S170).
  • control unit 46 ends this transmission process, and when a new data frame is stored in the head area of the FIFO buffer 56, the transmission process is started again.
  • the control unit 46 waits for the transmission of the transmission target frame to the bus 10, and shifts the transmission process to S140.
  • the control unit 46 determines whether or not the dwell time measured by the timer at the time of shifting to S140 is longer than a predetermined time.
  • the specified time referred to here is a time length that allows the transmission target frame to be allowed to be held in the head area of the FIFO buffer 56. This prescribed time may be, for example, about 20% to 50% of the period when the current transmission target frame is repeatedly transmitted at a specified period.
  • the control unit 46 returns the transmission process to S120.
  • S120 when it is confirmed that the transmission of the arbitration target frame is completed, the control unit 46 starts transmission of the transmission target frame to the bus 10 via the communication unit 42 (S120).
  • the transmission of the transmission target frame to the bus 10 here is performed in the order of SOF and standard ID.
  • the control unit 46 sequentially transfers the RTR, IDE, control field, and data field in the transmission target frame to the bus 10. (S160). Subsequently, the control unit 46 stops the timer and initializes the residence time (that is, returns to “0”) (S170).
  • control unit 46 ends this transmission process, and when a new data frame is stored in the head area of the FIFO buffer 56, the transmission process is started again.
  • control unit 46 advances the transmission process to S150.
  • control unit 46 executes change control for changing the transmission target frame to the data frame of the extended format that is given the highest priority among all the data frames.
  • the extended format data frame in this embodiment includes at least a header area and a data area following the header area, as shown in FIG.
  • the numerical value in square brackets ([]) in FIG. 6 is the data size (bit) of each area.
  • the header area includes at least SOF, standard ID, SRR, IDE, and extended ID in the order of SOF, standard ID, SRR, IDE, and extended ID.
  • the SRR in the present embodiment is a 1-bit signal and is fixed at a low level (“0”, dominant).
  • IDE in the extended format is set to a high level (“1”, recessive).
  • the extension ID is represented by binary data having a data length longer than the specified data length, and represents that the priority is higher as the logical value of the binary data is smaller.
  • the data length of the extension ID in this embodiment is 18 bits.
  • control unit 46 sets the logical value of the area corresponding to the standard ID to the minimum value (that is, “00000000000000 (binary notation)”). Further, in S150, the control unit 46 sets the logical value of the data for 7 bits from the top in the area corresponding to the extension ID to “0” (that is, the signal level is low level (dominant)). At the same time, in S150, the control unit 46 matches the logical value of the data for 11 bits from the rear end in the area corresponding to the extension ID to the logical value corresponding to the CANID of the transmission target frame.
  • the extended format data frame in the present embodiment has a logical value of “0” in both the area corresponding to the standard ID and the 7-bit area from the beginning of the area corresponding to the extension ID.
  • the logical value of data of 11 bits from the rear end in the area corresponding to the extension ID is used as the CAN ID in the transmission target frame.
  • control unit 46 shifts the transmission process to S120.
  • control unit 46 starts transmission of the transmission target frame to the bus 10 via the communication unit 42 (S120).
  • control unit 46 sequentially transfers the control field and the data field in the transmission target frame to the bus 10 (S160). Subsequently, the control unit 46 stops the timer and initializes the residence time (that is, returns to “0”) (S170).
  • control unit 46 ends this transmission process, and when a new data frame is stored in the head area of the FIFO buffer 56, the transmission process is started again.
  • the transmission target frame in the transmission processing of this embodiment, in the arbitration control, if the transmission target frame continues to lose and the residence time of the transmission target frame becomes longer than the specified time, the transmission target frame is changed from the standard format to the extended format. To do. Since this extended format format is given the highest priority among all data frames, even if the transmission target frame is subject to arbitration control, the transmission right can be obtained and the transmission can be performed. The target frame is transmitted to the bus 10.
  • the relay device 40 that has executed the transmission process functions as an in-vehicle control device.
  • This reception process is started when the signal level of the bus 10 is switched from the bus idle state to the low level (that is, when the SOF in the data frame becomes dominant).
  • a data frame in which the SOF is switched to the dominant and the ECU 20 itself may receive from the bus 10 is referred to as a reception target frame.
  • the control unit 26 determines whether or not the IDE in the reception target frame is recessive (“1”) as shown in FIG. 7 (S310). As a result of the determination in S310, if the IDE in the reception target frame is not recessive (S310: NO), the control unit 26 proceeds to S350, which will be described in detail later, on the reception process.
  • the control unit 26 selects the 7-bit area from the beginning of the area corresponding to the extended ID in the reception target frame. It is determined whether the logical values are all “0” (S320). As a result of the determination in S320, if all the logical values of the 7-bit area from the beginning corresponding to the extension ID are not “0” (S320: NO), the control unit 26 determines that the reception target frame is an error. Is output to the bus 10 (S330), and this reception process is terminated.
  • the reception target frame is highly likely to be an extended format data frame. However, if all of the logical values of the 7-bit area from the area corresponding to the extension ID are not “0”, there is a high possibility that an abnormality has occurred in the data. The fact that the reception target frame is an error is output to the bus 10.
  • the control unit 26 The format is converted into a standard format (S340). That is, in the reception process, if the reception target frame includes the extension ID, it is determined that the format of the reception target frame is the extension format, and the reception target frame is converted into the standard format.
  • the control unit 26 performs conversion control for removing the extension ID included in the reception target frame and returning the logical value of the standard ID of the reception target frame to the logical value of CANID. Specifically, in the conversion control, both the logical value of the area corresponding to the standard ID in the reception target frame and the logical value of 7 bits from the top of the area corresponding to the extension ID are deleted. That is, in the conversion control, only the logical value of the data corresponding to 11 bits from the rear end among the logical values corresponding to the extension ID, that is, the CANID is set as valid, and the subsequent processing is set.
  • the control unit 26 receives subsequent data (for example, a control field or a data field) in the reception target frame, and transfers the received data to other processes executed by the control unit 26 (S350).
  • the “other processing” referred to here includes, for example, known processing for determining whether or not the data itself included in the reception target frame is data necessary for the ECU 20.
  • control unit 26 ends the reception process.
  • reception target frame it is determined whether the reception target frame is in the standard format format or the extended format format. If the reception target frame is in the standard format and the reception target frame is a data frame to be received by the ECU 20 itself, the control field and the data field in the reception target frame are received as they are.
  • the control field in the reception target frame is returned to the standard format format. And data fields are received.
  • the relay device 40 it is possible to prevent the transmission target frame from greatly losing arbitration beyond the specified time, and transmission of the transmission target frame to the bus 10 can be realized at an early stage.
  • communication is performed with the ECU 20 via a common bus, and a priority is set for each data frame transmitted to the bus, and a lower priority is transmitted to the bus.
  • a priority is set for each data frame transmitted to the bus, and a lower priority is transmitted to the bus.
  • changing the priority of the transmission target frame to be the highest among all the data frames is realized by inserting an extension ID into the transmission target frame.
  • the extension ID is inserted by setting the logical values of both the entire area of the standard ID and the 7-bit area of the area corresponding to the extension ID to “0” and the extension ID.
  • the logical value of 11-bit data from the rear end in the area corresponding to is used as the CANID in the transmission target frame.
  • the transmission process it is possible to simultaneously change the priority of the transmission target frame so that it becomes the highest among all the data frames and maintain the logical value of the CANID included in the transmission target frame. .
  • the priority order of the transmission target frame is the highest. Therefore, according to the transmission process, the priority order of the transmission target frame is set in a simple method. Can be improved.
  • the ECU 20 performs a reception process.
  • this reception process if the reception target frame is the extended format, the reception target frame is returned to the standard format.
  • the ECU 20 can restore the original data frame not including the extended ID (that is, a data frame including only the standard ID). That is, the ECU 20 can receive a data frame that should be received, and can perform data communication normally.
  • the execution subject of the transmission process is the relay device 40, but the execution subject of the transmission process in the present disclosure is not limited to this. That is, the execution subject of the transmission process may be the ECU 20.
  • the ECU 20 that communicates data using the CAN protocol can shorten the time required for transmitting the data frame to the bus 10.
  • the execution subject of the reception process is the ECU 20, but the execution subject of the reception process in the present disclosure is not limited to this. That is, the execution subject of the reception process may be the relay device 40.
  • a data frame from the ECU 20 that executes the transmission process of the above embodiment can be transmitted to a bus that communicates data using another protocol.
  • any protocol may be used for receiving a data frame to be output as long as the device outputs a data frame to a bus that communicates data using the CAN protocol.
  • the present disclosure is realized in various forms such as a program for causing a computer to function as the in-vehicle control device, a recording medium in which the program is recorded, a communication method in the in-vehicle control device, in addition to the in-vehicle control device described above. Can do.
  • This disclosure includes the following aspects.
  • communication is performed with at least one in-vehicle node via a common bus, a priority is set for each data frame output from the in-vehicle node, and the lower the priority,
  • a vehicle-mounted control device that complies with a communication protocol that is defined so that a waiting time until it is transmitted to the bus is a data frame to be transmitted to the bus, and the transmission target frame is transmitted from the vehicle-mounted node.
  • An arbitration device that performs arbitration control to arbitrate transmission of the transmission target frame so as to continue transmission of the transmission target frame to the bus; and, as a result of the arbitration control by the arbitration device, the transmission for a predetermined time or more
  • a change device that executes change control for changing the priority of the transmission target frame so as to be highest among all the data frames when waiting for transmission of the target frame.
  • the priority of the transmission target frame is changed to be the highest among all the data frames. . For this reason, the transmission target frame whose priority is changed can surely obtain the transmission right to the bus and is transmitted to the bus.
  • the vehicle-mounted control device it is possible to prevent the transmission target frame from greatly losing arbitration beyond the specified time, and transmission of the transmission target frame to the bus can be realized at an early stage.
  • a plurality of in-vehicle nodes communicate via a common bus
  • a priority is set for each data frame transmitted from the in-vehicle node, and the lower the priority is, the more the data is transmitted to the bus.
  • the dwell time required to transmit the data frame can be shortened.
  • the data frame is an area that includes data information that represents the content of data in the data frame and identification information of the in-vehicle node or the in-vehicle control device that has transmitted the data frame, and functions as the priority.
  • the change device waits for transmission of the transmission target frame for the specified time or more as a result of the arbitration by the arbitration device, the priority expressed by the standard ID of the transmission target frame is set among all the data frames.
  • the change control is executed to add an extension ID to the transmission target frame as an area including the data information having the highest priority and the highest priority.
  • each section is expressed as S100, for example.
  • each section can be divided into a plurality of subsections, while a plurality of sections can be combined into one section.
  • each section configured in this manner can be referred to as a device, module, or means.

Abstract

 車載ノード(20)との間で共通のバス(10)を介して通信を行い、前記車載ノードから出力されるデータフレームの優先順位が低いほど待機時間が長くなる通信プロトコルに従う車載制御装置(20,40)は、前記車載ノードの出力データフレームの優先順位よりも送信対象フレームの優先順位が低ければ、当該送信対象フレームのバスへの送信を待機し、前記出力データフレームの優先順位よりも前記送信対象フレームの優先順位が高ければ、前記送信対象フレームのバスへの送信を継続する調停装置(46,S120,S130,S160)と、前記調停装置による調停制御の結果、規定時間以上、前記送信対象フレームの送信を待機した場合、当該送信対象フレームの優先順位が全てのデータフレームの中で最も高くなるように変更する変更装置(46,S110,S140,S150)とを備える。

Description

車載制御装置 関連出願の相互参照
 本開示は、2014年2月13日に出願された日本出願番号2014-25380号に基づくもので、ここにその記載内容を援用する。
 本開示は、自動車に搭載される車載制御装置に関する。
 従来、自動車に搭載される車載通信システムであって、バスに接続された少なくとも1つの車載機器(ノード)と、互いに異なるバスに接続されたノード間の通信を中継するゲートウェイとを備えた車載通信システムが知られている(特許文献1参照)。
 この種の車載通信システムでは、バスごとに規定されたプロトコルを用いてデータを送受信することがなされ、プロトコルとして、CAN(Controller Area Network)プロトコルや、LIN(Local Interconnect Network)などが用いられている。
 そして、自動車に搭載される一般的なゲートウェイは、ノードから受信したデータを、ルーティング情報に従って、規定されたバスへと出力する。ゲートウェイにおいて、データフレームをCANバスに出力する場合、各ノードからゲートウェイ自身が受け取った順序で順番にデータフレームをCANバスに出力する(即ち、FIFOバッファとして機能する)。ここで言うCANバスは、CANプロトコルを用いてデータが送受信されるバスである。
 ところで、CANプロトコルにおいては、データフレームの先頭部分に、CANIDが含まれている。このCANIDは、送信元のノードや後続の領域に設定されているデータの内容を識別する識別子であり、データフレームごとに設定されている。
 そして、CANプロトコルでは、各ノードは、バスが空いていれば、データフレームをバスに送信する。しかしながら、各ノードからデータフレームが同時にバスに送信されることがある。
 この場合、CANプロトコルでは、CANIDの論理値が最も小さいデータフレームを最も優先順位が高いデータフレームとして、当該データフレームを送信したノードが送信権を得る調停制御を実行するように規定されている。
 このため、ゲートウェイにおいて、CANバスとは異なるバスから、CANバスに送信すべきデータフレーム(以下、「送信対象フレーム」と称す)を受け取った場合、その送信対象フレームの優先順位が低いと、他のノードとの送信権の調停に負け続ける可能性がある。
 そして、送信権の調停に負け続けると、ゲートウェイでは、送信対象フレームをCANバスに送信するまでに要する時間が長期化するという課題が生じる。
 つまり、従来の車載制御装置では、データフレームをバスに送信するまでの滞留時間が長くなる可能性があるという課題があった。
特開2008-113096号公報
 そこで、本開示は、データフレームそれぞれに設定された優先順位が低いほどバスに送信されるまでの待機時間が長くなるように規定された通信プロトコルに従う車載制御装置において、データフレームをバスに送信するまでの滞留時間を短縮することを目的とする。
 本開示の一つの態様において、少なくとも1つの車載ノードとの間で共通のバスを介して通信を行い、前記車載ノードから出力されるデータフレームそれぞれに優先順位が設定され、前記優先順位が低いほど前記バスに送信されるまでの待機時間が長くなるように規定された通信プロトコルに従う車載制御装置は、前記バスへ送信するデータフレームを送信対象フレームとし、前記送信対象フレームが、前記車載ノードからの出力データフレームと衝突した場合、前記車載ノードからの前記出力データフレームの優先順位よりも前記送信対象フレームの優先順位が低ければ、当該送信対象フレームのバスへの送信を待機し、前記車載ノードからの前記出力データフレームの優先順位よりも前記送信対象フレームの優先順位が高ければ、前記送信対象フレームのバスへの送信を継続するように前記送信対象フレームの送信を調停する調停制御を実行する調停装置と、前記調停装置による調停制御の結果、予め規定された規定時間以上、前記送信対象フレームの送信を待機した場合、当該送信対象フレームの優先順位が全てのデータフレームの中で最も高くなるように変更する変更制御を実行する変更装置とを備える。
 つまり、本車載制御装置では、送信対象フレームをバスに送信するまでの待機時間が規定時間以上となると、当該送信対象フレームの優先順位が全てのデータフレームの中で最も高くなるように変更される。このため、優先順位が変更された送信対象フレームは、バスへの送信権を確実に得ることができ、バスに送信される。
 したがって、車載制御装置によれば、送信対象フレームが規定時間を大幅に超えて調停に負け続けることを防止でき、送信対象フレームのバスへの送信を早期に実現できる。
 換言すれば、上記装置によれば、複数の車載ノードが共通のバスを介して通信を行い、車載ノードから送信されるデータフレームそれぞれに優先順位が設定され、優先順位が低いほどバスに送信されるまでの待ち時間が長くなるように規定された通信プロトコルに従う車載通信システムにおいて、データフレームを送信するまでに要する滞留時間を短くできる。
 本開示についての上記目的およびその他の目的、特徴や利点は、添付の図面を参照しながら下記の詳細な記述により、より明確になる。その図面は、
図1は、本開示が適用された車載制御装置としての中継装置を備えた車載通信システムの概略構成を示すブロック図であり、 図2は、CANプロトコルにおける標準フォーマットのデータフレームを説明する説明図であり、 図3は、中継装置の機能ブロック図であり、 図4は、FIFOバッファの概要を説明する説明図であり、 図5は、中継装置の制御部が実行する送信処理の処理手順を説明するフローチャートであり、 図6は、CANプロトコルにおける拡張フォーマットのデータフレームを説明する説明図であり、 図7は、車載制御装置の1つであるECUの制御部が実行する受信処理の処理手順を説明するフローチャートである。
 以下に本開示の実施形態を図面と共に説明する。
 <車載通信システム>
 図1に示す車載通信システム1は、自動車に搭載される通信システムであり、車載ノード間で必要な情報を通信するシステムである。
 この車載通信システム1は、車載ノードとしての電子制御装置(以下、ECU(Electronic Control Unit)とする)20,30,35と、中継装置40とを備えている。
 本実施形態におけるECU201~20Nは、バス10に接続されている。ECU301~30Mは、バス12に接続されている。ECU351~35Lは、バス14に接続されている。ここでの添え字N,M,Lは、ECU20,30,35の個数を表し、「1」以上の正の整数である。
 なお、バス10、バス12、…バス14は、互いに異なるものである。そして、ECU20,30,35間での通信は、バス10,12,14ごとに異なる通信プロトコルを用いて実行される。
 本実施形態においては、バス12における通信には、FlexRayが、バス14における通信には、Lin(Local Interconnect Network)が用いられる。
 また、本実施形態においては、バス10における通信には、CAN(Robert Bosch社が提案した「Controller Area Network」)プロトコルが用いられる。
 <ECU>
 ECU20は、通信部22と、記憶部24と、制御部26とを備え、制御部26が処理プログラムを実行することで、予め割り当てられた機能を実現するものである。
 通信部22は、バス10にて用いられるプロトコルに従って、自身が接続されたバス10へのデータの送出、自身が接続されたバス10からのデータの取り込みを行う。記憶部24は、電力供給が遮断された場合(即ち、電源オフ時)にも記憶内容が保持され、かつ、記憶内容を書き換え可能な不揮発性記憶装置である。制御部26は、ROM,RAM,CPUを少なくとも備えた周知のマイクロコンピュータを中心に構成されている。
 そして、ECU20の制御部26は、ECU20自身に割り当てられた機能を実現する機能実現処理や、他のECU20,30,35との通信を実行する通信処理を実行する。
 記憶部24には、通信処理の一部分として、CANプロトコルによって通信が行われるバス10からのデータを取り込む受信処理を、制御部26が実行するための処理プログラムが格納されている。
 本実施形態におけるECU20として、例えば、内燃機関を制御するエンジンECUや、パワートレイン機構を制御するパワートレインECU、ブレーキ機構を制御するブレーキECU等が考えられる。
 なお、本実施形態におけるECU30,35は、通信プロトコルが異なることを除けば、ECU20と同様に構成されている。このため、ECU30,35の詳しい説明は省略する。
 本実施形態におけるECU30,35として、例えば、パワーウインドウを制御するウインドウECUや、電動ミラーを制御するミラーECU、車載エアコンディショナを制御するエアコンECU、ワイパー機構を制御するワイパーECU等が考えられる。
 <CANプロトコルの概要>
 次に、バス10での通信に用いられるCANプロトコルの概要について説明する。
 CANプロトコルでは、ECU20や中継装置40は、バス10が空いていることを確認すると、データフレームを送信する。
 ただし、少なくとも2つのECU20や、ECU20と中継装置40とから同時にデータフレームがバスに送信された場合(即ち、データフレームが衝突した場合)、CANプロトコルでは、調停制御を実行する。ここで言う調停制御とは、データフレームごとに予め規定された優先順位に従って、優先順位が高いデータフレームの送信を優先し、優先順位が低いデータフレームの送信を待機する周知の制御である。
 ここで、データフレームは、図2に示すように、少なくとも、ヘッダ領域と、ヘッダ領域に続くデータ領域とを備えている。
 このうち、ヘッダ領域には、少なくとも、SOFと、標準IDと、RTRと、IDEとが、SOF、標準ID、RTR、IDEの順に含まれる。なお、図2における大括弧([ ])内の数値は、各領域のデータサイズ(ビット)である。
 SOFは、データフレームの開始を表す1ビットの信号であり、データフレームの送信が開始されると、ロウレベル(「0」)となる。RTRは、データフレームとリモートフレームとを識別する信号である。
 IDEは、詳しくは後述する拡張IDが含まれるか否かを表す1ビットの信号であり、ロウレベルであれば、拡張IDが含まれていないことを、ハイレベル(「1」)であれば、拡張IDが含まれていることを表す。
 標準IDは、当該データフレームに含まれるデータの内容及び当該データフレームを送信したECUの識別情報を表す信号である。この識別情報は、規定データ長(本実施形態では11ビット)のデータサイズを有したバイナリデータであり、データフレームごとにユニークな(固有の)識別子であるCANIDである。ただし、データフレームに予め割り当てられるCANIDの倫理値として、「00000000000(2進数表記)」は除かれている。なお、CANIDは、データ情報の一例である。
 データ領域は、バス10に送信されるデータそのもの(データフィールド)を含む。さらに、データ領域には、データのサイズを示すサイズ情報(コントロールフィールド)や、エラーの有無をチェックするためのCRC符号が少なくとも含まれている。
 なお、バス10は、ECU20または中継装置40からハイレベルの信号とロウレベルの信号とが同時に出力された場合に、バス10上の信号レベルがロウレベルとなるように構成されている。
 つまり、バス10上の信号レベルは、ロウレベル(「0」)が優性(ドミナント)レベルであり、ハイレベル(「1」)が劣性(レセッシブ)レベルである。このため、少なくとも2つのECU20や、ECU20と中継装置40とから同時にデータフレームがバスに送信された場合、ロウレベルの信号が優先される。
 ここで、CANプロトコルにおいては、データフレームは、1ビットずつ送信されるため、CANIDの論理値が小さいほど、データフレームの優先順位が高いことを意味する。すなわち、CANID(標準ID)の論理値が「00000000000(2進数表記)」であれば、優先順位が最も高いことを表す。
 <中継装置>
 図1に示す中継装置40は、互いに異なるプロトコルが設定されたバス10,12,…14に接続されているECU20,30,35間の通信を中継するゲートウェイ機能を有した装置である。
 この中継装置40は、通信部42と、記憶部44と、制御部46とを備えている。
 通信部42は、バス10,12,…14へのデータの送出、バス12,14,…16からのデータの取り込みを行う。記憶部44は、電源オフ時にも記憶内容が保持され、且つ、記憶内容を書き換え可能な不揮発性メモリである。制御部46は、ROM,RAM,CPUを少なくとも備えた周知のマイクロコンピュータを中心に構成されている。
 さらに、中継装置40は、車載バッテリーから供給される電力を中継装置40自身の作動に必要な電力へと変換する電源部(図示せず)と、クロック信号を生成するクロック発生部(図示せず)とを備えている。
 記憶部44には、ルーティング情報に従って、互いに異なるバス10,12,14に接続されたECU20,30,35の間でのデータの送受信を実現する中継処理を、制御部46が実行するための処理プログラムが格納されている。ここで言うルーティング情報とは、互いに異なるバス10,12,14に接続されたECU20,30,35の間でのデータの通信経路を表す情報であり、記憶部44に格納されている。
 なお、中継処理では、CANプロトコルによって通信が行われるバス10へ出力すべきフレーム(即ち、データ)を、ECU30,35から受信すると、その受信したフレームを受信した順序で順に出力する。このバス10への各フレームの出力は、CANプロトコルのデータ形式(即ち、上述した標準フォーマットのデータフレーム)に各データを変換し、CANプロトコルに従って出力する。
 さらに、記憶部44には、中継処理の一部分として、CANプロトコルによって通信が行われるバス10へデータフレームを送信する送信処理を、制御部46が実行するための処理プログラムが格納されている。
 すなわち、中継装置40が、バス10へ送信すべきフレームをバス12,14から受け取ると、制御部46は、図3に示すように、その受け取ったフレームをバス10へと出力するように振り分けるルーティング部50として機能する。なお、バス12,14からのフレームは、中継処理を実行することで、フレームの送受信を制御するトランシーバ52,53,54として機能した通信部42によって受け取られる。
 そして、ルーティング部50として機能した制御部46によって振り分けられたフレームは、バス10へ出力されるフレームが格納されるFIFOバッファ56に格納される。このFIFOバッファ56は、中継処理を実行する制御部46によって実現されるものであり、図4に示すように、バス10へ出力されるフレームが、中継装置40が受信した順序で順に格納される。なお、図4に示す「0x555」,「0x7FF」などは、CANIDを16進数で表したものである。
 さらに、FIFOバッファ56に格納されたフレームは、当該FIFOバッファ56に格納された順序で、CANプロトコルの標準フォーマットのデータフレームに変換されて出力が開始される。
 <送信処理>
 次に、中継装置40の制御部46が実行する送信処理について説明する。
 この送信処理は、FIFOバッファ56の先頭領域にデータフレームが格納されると、起動される。以下、FIFOバッファ56の先頭領域に格納され、送信待機状態となったデータフレームを送信対象フレームと称す。
 そして、送信処理が起動されると、制御部46は、図5に示すように、まず、送信対象フレームが中継装置40内に継続して滞留している時間長を表す滞留時間を計測するタイマーを起動する(S110)。そして、制御部46は、バス10が空いていることを確認すると、通信部42を介してバス10への送信対象フレームの送信を開始する(S120)。このバス10への送信対象フレームの送信は、SOF、標準IDの順に実施される。
 続いて、制御部46は、バス10へのデータフレームの送信権を得たか否かを判定する(S130)。すなわち、S130では、ビット単位で変化するバス10の信号レベルが、中継装置40自身が送信したデータフレームにおける信号レベルと一致していれば、送信権を得たもの(即ち、バス調停に勝利したもの)と判定する。一方、不一致であれば、送信権を得ていないもの(即ち、バス調停に負けたもの)と判定する。
 したがって、バス10へのデータフレームの送信を実行したノードが、中継装置40だけであれば、送信権を得たものと判定される。
 しかしながら、送信対象フレームの送信と同時に、ECU20からのデータフレームの送信があった場合には、S120にてバス10へ送信を開始した送信対象フレームにおける標準ID(CANID)の論理値が、ECU20からのデータフレーム(以下、「調停対象フレーム」と称す)におけるCANIDの論理値よりも小さい場合に、送信権を得たものと判定される。一方、S120にてバス10へ送信を開始した送信対象フレームにおける標準ID(CANID)の論理値が、調停対象フレームにおけるCANIDの論理値よりも大きい場合に、送信権を得られなかったものと判定される。
 そして、S130での判定の結果、送信権を得ることができたものと判定された場合には(S130:YES)、制御部46は、送信対象フレームにおけるRTR、IDE、コントロールフィールド、データフィールドを順にバス10に転送する(S160)。すなわち、送信権を得ることができた場合には、送信対象フレームをバス10に送信する。
 続いて、制御部46は、タイマーを停止して滞留時間を初期化する(即ち、「0」へと戻す)(S170)。
 制御部46は、その後、本送信処理を終了し、FIFOバッファ56の先頭領域に新たなデータフレームが格納されると、送信処理を改めて起動する。
 ところで、S130での判定の結果、送信権を得ることができなかった場合(S130:NO)、制御部46は、送信対象フレームのバス10への送信を待機し、送信処理をS140へと移行させる。そのS140では、制御部46は、S140へと移行した時点でタイマーによって計測されている滞留時間が、予め規定された規定時間よりも長いか否かを判定する。ここで言う規定時間とは、送信対象フレームがFIFOバッファ56の先頭領域に保持されることを許容可能な時間長である。この規定時間は、例えば、現在送信の対象となっている送信対象フレームが、規定された周期で繰り返し送信されるものである場合、その周期の約20%~50%であるものとしても良い。
 このS140での判定の結果、タイマーによって計測されている滞留時間が規定時間以下であれば(S140:NO)、制御部46は、送信処理をS120へと戻す。そのS120では、制御部46は、調停対象フレームの送信が完了したことを確認すると、通信部42を介してバス10への送信対象フレームの送信を開始する(S120)。ここでのバス10への送信対象フレームの送信は、SOF、標準IDの順に実施される。
 そして、S120にて送信を開始した送信対象フレームの送信権が得られれば(S130:YES)、制御部46は、送信対象フレームにおけるRTR、IDE、コントロールフィールド、データフィールドを順にバス10に転送する(S160)。続いて、制御部46は、タイマーを停止して滞留時間を初期化する(即ち、「0」へと戻す)(S170)。
 制御部46は、その後、本送信処理を終了し、FIFOバッファ56の先頭領域に新たなデータフレームが格納されると、送信処理を改めて起動する。
 ところで、S140での判定の結果、タイマーによって計測されている滞留時間が規定時間よりも長ければ(S140:YES)、制御部46は、送信処理をS150へと進める。そのS150では、制御部46は、全てのデータフレームの中で最も高い優先順位が与えられた拡張フォーマット形式のデータフレームへと、送信対象フレームを変更する変更制御を実行する。
 本実施形態における拡張フォーマット形式のデータフレームは、図6に示すように、少なくとも、ヘッダ領域と、ヘッダ領域に続くデータ領域とを備えている。なお、図6における大括弧([ ])内の数値は、各領域のデータサイズ(ビット)である。
 このうち、ヘッダ領域には、少なくとも、SOFと、標準IDと、SRRと、IDEと、拡張IDとが、SOF、標準ID、SRR、IDE、拡張IDの順に含まれる。
 ただし、本実施形態におけるSRRは、一ビットの信号であり、ロウレベル(「0」,ドミナント)に固定されている。拡張フォーマットにおけるIDEは、ハイレベル(「1」,レセッシブ)に設定される。
 拡張IDは、規定データ長よりも長いデータ長のバイナリデータで表され、かつ、バイナリデータの論理値が小さいほど優先順位が高いことを表すものである。本実施形態の拡張IDのデータ長は、18ビットである。
 そして、本実施形態のS150では、具体的には、制御部46は、標準IDに対応する領域の論理値を最小値(即ち、「00000000000(2進数表記)」)とする。さらに、S150では、制御部46は、拡張IDに対応する領域のうち、先頭から7ビット分のデータの論理値を「0」(即ち、信号レベルをロウレベル(ドミナント))に設定する。これと共に、S150では、制御部46は、拡張IDに対応する領域のうち、後端から11ビット分のデータの論理値を、送信対象フレームのCANIDに対応する論理値に一致させる。
 すなわち、本実施形態における拡張フォーマット形式のデータフレームは、標準IDに対応する領域と、拡張IDに対応する領域のうち先頭から7ビット分の領域との双方のデータの論理値を「0」とすると共に、拡張IDに対応する領域のうち後端から11ビット分のデータの論理値を、当該送信対象フレームにおけるCANIDとしたものである。
 制御部46は、その後、送信処理をS120へと移行させる。
 そのS120では、制御部46は、調停対象フレームの送信が完了したことを確認すると、通信部42を介してバス10への送信対象フレームの送信を開始する(S120)。
 なお、本実施形態において、拡張フォーマット形式に変更された送信対象フレームは、全てのデータフレームの中で、最も優先順位が高いため、送信権を得ることができる(S130:YES)。
 したがって、制御部46は、送信対象フレームにおけるコントロールフィールド、データフィールドを順にバス10に転送する(S160)。続いて、制御部46は、タイマーを停止して滞留時間を初期化する(即ち、「0」へと戻す)(S170)。
 制御部46は、その後、本送信処理を終了し、FIFOバッファ56の先頭領域に新たなデータフレームが格納されると、送信処理を改めて起動する。
 つまり、本実施形態の送信処理では、調停制御において、送信対象フレームが負け続け、当該送信対象フレームの滞留時間が規定時間よりも長くなると、送信対象フレームを標準フォーマット形式から拡張フォーマット形式へと変更する。この拡張フォーマット形式は、全てのデータフレームの中で最も高い優先順位が与えられたものであるため、送信対象フレームが調停制御の対象となったとしても、送信権を得ることができ、当該送信対象フレームは、バス10に送信される。
 すなわち、送信処理を実行した中継装置40は、車載制御装置として機能する。
 <受信処理>
 次に、ECU20それぞれの制御部26が実行する受信処理について説明する。
 この受信処理は、バス10の信号レベルがバスアイドル状態からロウレベルへと切り替わると(即ち、データフレームにおけるSOFがドミナントになると)、開始される。以下、SOFがドミナントに切り替わり、かつ、ECU20自身がバス10から受け取る可能性のあるデータフレームを受信対象フレームと称す。
 そして、受信処理が起動されると、制御部26は、図7に示すように、受信対象フレームにおけるIDEがレセッシブ(「1」)であるか否かを判定する(S310)。このS310での判定の結果、受信対象フレームにおけるIDEがレセッシブでなければ(S310:NO)、制御部26は、受信処理を詳しくは後述するS350へと移行する。
 一方、S310での判定の結果、受信対象フレームにおけるIDEがレセッシブであれば(S310:YES)、制御部26は、受信対象フレームにおける拡張IDに対応する領域のうち先頭から7ビット分の領域の論理値が、全て「0」であるか否かを判定する(S320)。このS320での判定の結果、拡張IDに対応する領域のうち先頭から7ビット分の領域の論理値が全て「0」でなければ(S320:NO)、制御部26は、受信対象フレームがエラーである旨をバス10に出力して(S330)、本受信処理を終了する。
 すなわち、受信対象フレームにおけるIDEがレセッシブであれば、当該受信対象フレームは、拡張フォーマット形式のデータフレームである可能性が高い。しかしながら、拡張IDに対応する領域のうち先頭から7ビット分の領域の論理値が、全て「0」でない場合には、データに異常が生じた可能性が高いため、S330では、制御部26は、受信対象フレームがエラーである旨をバス10に出力する。
 一方、S320での判定の結果、拡張IDに対応する領域のうち先頭から7ビット分の領域の論理値が全て「0」であれば(S320:YES)、制御部26は、受信対象フレームの形式を標準フォーマット形式に変換する(S340)。すなわち、受信処理では、受信対象フレームに拡張IDが含まれていれば、受信対象フレームの形式が拡張フォーマット形式であるものと判定し、その受信対象フレームを標準フォーマット形式に変換する。
 このS340では、制御部26は、受信対象フレームに含まれる拡張IDを除去すると共に、当該受信対象フレームの標準IDの論理値をCANIDの論理値へと戻す変換制御を実行する。変換制御では、具体的には、受信対象フレームにおける標準IDに対応する領域の論理値、及び拡張IDに対応する領域のうち先頭から7ビット分の論理値の双方を削除する。つまり、変換制御では、拡張IDに対応する論理値のうち後端から11ビット分のデータの論理値、即ち、CANIDだけを有効なものとして、以後の処理を実行するように設定する。
 続いて、受信処理では、制御部26は、受信対象フレームにおける後続のデータ(例えば、コントロールフィールドやデータフィールド)を受信し、制御部26が実行するその他の処理へと転送する(S350)。ここで言う「その他の処理」には、例えば、受信対象フレームに含まれるデータ自体が、当該ECU20にとって必要なデータであるか否かを判定する周知の処理を含む。
 なお、S310での判定の結果、受信対象フレームにおけるIDEがレセッシブでなかった場合、即ち、受信対象フレームが標準フォーマット形式である場合(S310:NO)には、S320~S340を実行することなく、受信対象フレームにおける後続のデータ(例えば、コントロールフィールドやデータフィールド)を受信し、制御部26が実行するその他の処理へと転送する(S350)。
 その後、制御部26は、受信処理を終了する。
 つまり、本実施形態の受信処理では、受信対象フレームが、標準フォーマット形式であるか拡張フォーマット形式であるかを判定する。そして、受信対象フレームが標準フォーマット形式であり、かつ、当該受信対象フレームが、ECU20自身が受信すべきデータフレームであれば、当該受信対象フレームにおけるコントロールフィールドやデータフィールドなどをそのまま受信する。
 一方、当該受信対象フレームが拡張フォーマット形式であり、かつ、当該受信対象フレームが、ECU20自身が受信すべきデータフレームであれば、標準フォーマット形式へと戻した上で、当該受信対象フレームにおけるコントロールフィールドやデータフィールドなどを受信する。
[実施形態の効果]
 以上説明したように、中継装置40では、送信対象フレームをバス10に送信するまでの待機時間(滞留時間)が規定時間以上となると、当該送信対象フレームの優先順位が全てのデータフレームの中で最も高くなるように変更される。このため、優先順位が変更された送信対象フレームは、バス10への送信権を確実に得ることができ、バス10に送信される。
 したがって、中継装置40によれば、送信対象フレームが規定時間を大幅に超えて調停に負け続けることを防止でき、送信対象フレームのバス10への送信を早期に実現できる。
 換言すれば、中継装置40によれば、ECU20との間で共通のバスを介して通信を行い、バスに送信されるデータフレームそれぞれに優先順位が設定され、優先順位が低いほどバスに送信されるまでの待ち時間が長くなるように規定された通信プロトコルに従う車載通信システムにおいて、データフレームを送信するまでに要する滞留時間を短くできる。
 なお、本実施形態の送信処理では、送信対象フレームの優先順位を全てのデータフレームの中で最も高くなるように変更することを、送信対象フレームに拡張IDを挿入することで実現している。
 本実施形態における拡張IDの挿入は、標準IDの全領域と、拡張IDに対応する領域のうち先頭から7ビット分の領域との双方のデータの論理値を「0」とすると共に、拡張IDに対応する領域のうち後端から11ビット分のデータの論理値を、当該送信対象フレームにおけるCANIDとすることでなされている。
 したがって、送信処理によれば、送信対象フレームの優先順位を全てのデータフレームの中で最も高くなるように変更することと、送信対象フレームに含まれるCANIDの論理値を維持することとを両立できる。
 しかも、本実施形態においては、論理値を「0」とすることで、送信対象フレームの優先順位を最も高くしているため、送信処理によれば、送信対象フレームの優先順位を簡易な方法で向上させることができる。
 また、本実施形態においては、ECU20にて受信処理を実行している。この受信処理では、受信対象フレームが拡張フォーマット形式であれば、その受信対象フレームを標準フォーマット形式へと戻している。
 したがって、ECU20によれば、拡張IDが含まれるデータフレームを受信した場合であっても、拡張IDが含まれていない元のデータフレーム(即ち、標準IDだけを含むデータフレーム)へと復元できる。すなわち、ECU20によれば、本来受信すべきデータフレームを受信でき、データの通信を正常に実施できる。
[その他の実施形態]
 例えば、上記実施形態の車載通信システム1においては、送信処理の実行主体を中継装置40としていたが、本開示における送信処理の実行主体は、これに限るものではない。すなわち、送信処理の実行主体は、ECU20であっても良い。
 この場合、CANプロトコルを用いてデータを通信するECU20において、バス10へのデータフレームの送信に要する時間を短縮できる。
 また、上記実施形態の車載通信システム1においては、受信処理の実行主体をECU20としていたが、本開示における受信処理の実行主体は、これに限るものではない。すなわち、受信処理の実行主体は、中継装置40であっても良い。
 この場合、例えば、上記実施形態の送信処理を実行するECU20からのデータフレームであっても、他のプロトコルを用いてデータを通信するバスに、当該データフレームを送信できる。
 ところで、上記実施形態においては、データフレームに予め割り当てられるCANIDの倫理値として、「00000000000(2進数表記)」が除かれていたが、本開示においては、データフレームに予め割り当てられるCANIDの倫理値として、「00000000000(2進数表記)」が含まれていても良い。
 なお、上記実施形態では、バス10,12,14ごとに、異なる通信プロトコルが用いられているものとして説明したが、バス10,12,14において用いられるプロトコルは共通であっても良い。
 すなわち、本開示においては、CANプロトコルを用いてデータを通信するバスにデータフレームを出力する装置であれば、その出力すべきデータフレームを受け取る際のプロトコルはどのようなものでも良い。
 また、本開示は、前述した車載制御装置の他、車載制御装置としてコンピュータを機能させるためのプログラム、当該プログラムが記録された記録媒体、車載制御装置における通信方法など、種々の形態で実現することができる。
 本開示は、下記の態様を含む。
 本開示の一つの態様において、少なくとも1つの車載ノードとの間で共通のバスを介して通信を行い、前記車載ノードから出力されるデータフレームそれぞれに優先順位が設定され、前記優先順位が低いほど前記バスに送信されるまでの待機時間が長くなるように規定された通信プロトコルに従う車載制御装置は、前記バスへ送信するデータフレームを送信対象フレームとし、前記送信対象フレームが、前記車載ノードからの出力データフレームと衝突した場合、前記車載ノードからの前記出力データフレームの優先順位よりも前記送信対象フレームの優先順位が低ければ、当該送信対象フレームのバスへの送信を待機し、前記車載ノードからの前記出力データフレームの優先順位よりも前記送信対象フレームの優先順位が高ければ、前記送信対象フレームのバスへの送信を継続するように前記送信対象フレームの送信を調停する調停制御を実行する調停装置と、前記調停装置による調停制御の結果、予め規定された規定時間以上、前記送信対象フレームの送信を待機した場合、当該送信対象フレームの優先順位が全てのデータフレームの中で最も高くなるように変更する変更制御を実行する変更装置とを備える。
 つまり、本車載制御装置では、送信対象フレームをバスに送信するまでの待機時間が規定時間以上となると、当該送信対象フレームの優先順位が全てのデータフレームの中で最も高くなるように変更される。このため、優先順位が変更された送信対象フレームは、バスへの送信権を確実に得ることができ、バスに送信される。
 したがって、車載制御装置によれば、送信対象フレームが規定時間を大幅に超えて調停に負け続けることを防止でき、送信対象フレームのバスへの送信を早期に実現できる。
 換言すれば、上記装置によれば、複数の車載ノードが共通のバスを介して通信を行い、車載ノードから送信されるデータフレームそれぞれに優先順位が設定され、優先順位が低いほどバスに送信されるまでの待ち時間が長くなるように規定された通信プロトコルに従う車載通信システムにおいて、データフレームを送信するまでに要する滞留時間を短くできる。
 代案として、前記データフレームは、当該データフレームにおけるデータの内容及び当該データフレームを送信した前記車載ノードまたは前記車載制御装置の識別情報を表し、かつ前記優先順位として機能するデータ情報が含まれる領域である標準IDを有してもよい。前記変更装置は、前記調停装置による調停の結果、前記送信対象フレームの送信を前記規定時間以上待機した場合、前記送信対象フレームの標準IDによって表される前記優先順位を全てのデータフレームの中で最も高くなるように変更すると共に、優先順位を最も高く変更した前記データ情報が含まれる領域として拡張IDを前記送信対象フレームに付加することを、前記変更制御として実行する。
 このような車載制御装置によれば、送信対象フレームの優先順位を全てのデータフレームの中で最も高くなるように変更することと、送信対象フレームに含まれるデータ情報を維持することとを両立できる。
 ここで、この出願に記載されるフローチャート、あるいは、フローチャートの処理は、複数のセクション(あるいはステップと言及される)から構成され、各セクションは、たとえば、S100と表現される。さらに、各セクションは、複数のサブセクションに分割されることができる、一方、複数のセクションが合わさって一つのセクションにすることも可能である。さらに、このように構成される各セクションは、デバイス、モジュール、ミーンズとして言及されることができる。
 本開示は、実施例に準拠して記述されたが、本開示は当該実施例や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、さらには、それらに一要素のみ、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範疇や思想範囲に入るものである。

Claims (7)

  1.  少なくとも1つの車載ノード(20)との間で共通のバス(10)を介して通信を行い、前記車載ノードから出力されるデータフレームそれぞれに優先順位が設定され、前記優先順位が低いほど前記バスに送信されるまでの待機時間が長くなるように規定された通信プロトコルに従う車載制御装置(20,40)であって、
     前記バスへ送信するデータフレームを送信対象フレームとし、前記送信対象フレームが、前記車載ノードからの出力データフレームと衝突した場合、前記車載ノードからの前記出力データフレームの優先順位よりも前記送信対象フレームの優先順位が低ければ、当該送信対象フレームのバスへの送信を待機し、前記車載ノードからの前記出力データフレームの優先順位よりも前記送信対象フレームの優先順位が高ければ、前記送信対象フレームのバスへの送信を継続するように前記送信対象フレームの送信を調停する調停制御を実行する調停装置(46,S120,S130,S160)と、
     前記調停装置による調停制御の結果、予め規定された規定時間以上、前記送信対象フレームの送信を待機した場合、当該送信対象フレームの優先順位が全てのデータフレームの中で最も高くなるように変更する変更制御を実行する変更装置(46,S110,S140,S150)と
     を備える車載制御装置。
  2.  前記データフレームは、当該データフレームにおけるデータの内容及び当該データフレームを送信した前記車載ノードまたは前記車載制御装置の識別情報を表し、かつ前記優先順位として機能するデータ情報が含まれる領域である標準IDを有し、
     前記変更装置は、前記調停装置による調停の結果、前記送信対象フレームの送信を前記規定時間以上待機した場合、前記送信対象フレームの標準IDによって表される前記優先順位を全てのデータフレームの中で最も高くなるように変更すると共に、優先順位を最も高く変更した前記データ情報が含まれる領域として拡張IDを前記送信対象フレームに付加することを、前記変更制御として実行する
     請求項1に記載の車載制御装置。
  3.  前記標準IDは、規定データ長のバイナリデータで表され、かつ、前記バイナリデータの論理値が小さいほど前記優先順位が高いことを表し、
     前記変更装置は、
     前記標準IDに含まれる規定データ長のバイナリデータの論理値を最小値に変更することを、前記変更制御として実行する請求項2に記載の車載制御装置。
  4.  前記拡張IDは、前記規定データ長よりも長いデータ長のバイナリデータで表され、かつ、前記バイナリデータの論理値が小さいほど前記優先順位が高いことを表し、
     前記変更装置は、
     前記拡張IDの後端から前記規定データ長分、前記標準IDの前記データ情報を挿入し、前記拡張IDにおける前記標準IDの前記データ情報以外の残りの領域における論理値を最小値とすることを、前記変更制御として実行する請求項3に記載の車載制御装置。
  5.  前記バスから受け取るデータフレームを受信対象フレームとし、前記受信対象フレームに前記拡張IDが含まれているか否かを判定する判定装置(24,S310,S320)と、
     前記判定装置での判定の結果、前記拡張IDが含まれていれば、前記受信対象フレームに含まれる拡張IDを除去すると共に、当該受信対象フレームの標準IDを当該受信対象フレームの前記データ情報へと戻す変換制御を実行する変換装置(24,S340)と
     をさらに備える請求項2から請求項4までのいずれか一項に記載の車載制御装置。
  6.  車載制御装置は、前記車載ノード間のデータフレームの送受信を中継するゲートウェイである請求項2から請求項5までのいずれか一項に記載の車載制御装置。
  7.  前記通信プロトコルは、CANプロトコルである請求項1から請求項6までのいずれか一項に記載の車載制御装置。
     
     
PCT/JP2015/000553 2014-02-13 2015-02-06 車載制御装置 WO2015122166A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/117,910 US10153825B2 (en) 2014-02-13 2015-02-06 Vehicle-mounted control device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2014-025380 2014-02-13
JP2014025380A JP6206232B2 (ja) 2014-02-13 2014-02-13 車載制御装置

Publications (1)

Publication Number Publication Date
WO2015122166A1 true WO2015122166A1 (ja) 2015-08-20

Family

ID=53799917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2015/000553 WO2015122166A1 (ja) 2014-02-13 2015-02-06 車載制御装置

Country Status (3)

Country Link
US (1) US10153825B2 (ja)
JP (1) JP6206232B2 (ja)
WO (1) WO2015122166A1 (ja)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE538314C2 (sv) * 2014-02-17 2016-05-10 Scania Cv Ab Infrastruktursystem för ett fordon
JP6281535B2 (ja) * 2015-07-23 2018-02-21 株式会社デンソー 中継装置、ecu、及び、車載システム
US20180324640A1 (en) * 2015-11-25 2018-11-08 Hitachi Automotive Systems, Ltd. Vehicle-Mounted Gateway Device, Electronic Control Device, and Vehicle-Mounted Network System
JP6536537B2 (ja) 2016-11-04 2019-07-03 トヨタ自動車株式会社 車載ネットワークシステム
JP7094670B2 (ja) * 2017-07-03 2022-07-04 矢崎総業株式会社 設定装置及びコンピュータ
KR102504469B1 (ko) * 2017-12-14 2023-02-28 현대자동차주식회사 차량, 허브장치 및 이를 포함하는 통신 시스템
JP6967664B2 (ja) * 2018-04-23 2021-11-17 日立Astemo株式会社 ゲートウェイ装置
JP7042417B2 (ja) * 2018-09-03 2022-03-28 株式会社オートネットワーク技術研究所 通信装置、送信方法及びコンピュータプログラム
JP7059899B2 (ja) * 2018-11-09 2022-04-26 トヨタ自動車株式会社 ネットワークシステム
EP3700137B1 (en) * 2019-02-22 2023-08-02 Volvo Car Corporation Monitoring can nodes
CN113966598B (zh) * 2019-06-10 2023-12-29 日本电产株式会社 通信装置、通信系统、通信方法以及计算机可读取的记录介质
CN111246421B (zh) * 2019-12-31 2023-03-31 航天信息股份有限公司 传输数据的方法、装置、存储介质以及电子设备
KR20220001350A (ko) * 2020-06-29 2022-01-05 주식회사 엘지에너지솔루션 네트워크 라우팅 장치 및 방법
CN113765938B (zh) * 2021-09-24 2023-06-06 天津津航计算技术研究所 一种基于can2.0b协议的应用层协议实现方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6266360A (ja) * 1985-09-19 1987-03-25 Fujitsu Ltd 優先度制御方式
JP2006237832A (ja) * 2005-02-23 2006-09-07 Toyota Motor Corp 通信ノード故障検出装置及び方法
JP2008172709A (ja) * 2007-01-15 2008-07-24 Auto Network Gijutsu Kenkyusho:Kk 車載通信装置、車載通信システム及び車載通信方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7012927B2 (en) * 2001-02-06 2006-03-14 Honeywell International Inc. High level message priority assignment by a plurality of message-sending nodes sharing a signal bus
JP4926648B2 (ja) 2006-10-27 2012-05-09 富士通セミコンダクター株式会社 車載ゲートウェイ装置
JP5057304B2 (ja) * 2007-06-08 2012-10-24 国立大学法人名古屋大学 車載通信システム及び車載通信方法
JP5637190B2 (ja) * 2012-07-27 2014-12-10 トヨタ自動車株式会社 通信システム及び通信方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6266360A (ja) * 1985-09-19 1987-03-25 Fujitsu Ltd 優先度制御方式
JP2006237832A (ja) * 2005-02-23 2006-09-07 Toyota Motor Corp 通信ノード故障検出装置及び方法
JP2008172709A (ja) * 2007-01-15 2008-07-24 Auto Network Gijutsu Kenkyusho:Kk 車載通信装置、車載通信システム及び車載通信方法

Also Published As

Publication number Publication date
US10153825B2 (en) 2018-12-11
JP2015154185A (ja) 2015-08-24
US20160359545A1 (en) 2016-12-08
JP6206232B2 (ja) 2017-10-04

Similar Documents

Publication Publication Date Title
JP6206232B2 (ja) 車載制御装置
US10715600B2 (en) Network hub, transfer method, and onboard network system
US11018897B2 (en) Electronic control unit, communication method, and onboard network system
CN105388858B (zh) 网络中通信节点的操作方法
US20100064082A1 (en) Communication module
US9425992B2 (en) Multi-frame and frame streaming in a controller area network (CAN) with flexible data-rate (FD)
JP5434512B2 (ja) 車載通信システム、ゲートウェイ装置
KR20190006922A (ko) 직렬 통신 버스를 통해 데이터를 전송하기 위한 방법, 상응하게 설계된 버스 인터페이스 및 상응하게 설계된 컴퓨터 프로그램
JP5050653B2 (ja) 電子制御装置
JP5637193B2 (ja) 通信システム
CN112099465A (zh) 车辆诊断通信装置及方法、包括车辆诊断通信装置的系统
US9800456B2 (en) On-board network system
JP2012080360A (ja) 通信システム、マスタノード、スレーブノード
JP2006253922A (ja) ゲートウェイ装置及びゲートウェイ装置におけるデータ転送方法
CN113545012B (zh) 通信装置、通信系统及消息仲裁方法
JP7328928B2 (ja) 車載中継装置、情報処理方法及びプログラム
JP4754940B2 (ja) 中継接続ユニット
CN102100037A (zh) 通信系统的具有功能分离的发送事件存储器的用户节点
US10686623B2 (en) System and method for dynamic bi-directional communication over a local interconnect network bus
JP4361540B2 (ja) ゲートウェイ装置、データ転送方法及びプログラム
JP2008005290A (ja) 中継接続ユニットおよび電子制御ユニット
JP6593230B2 (ja) 通信システム
WO2021177019A1 (ja) 車載中継装置、及びコンピュータプログラム
WO2014007067A1 (ja) 通信システム、中継装置及び通信装置
JP4954832B2 (ja) 車載用通信システム

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15117910

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15748732

Country of ref document: EP

Kind code of ref document: A1