WO2013099645A1 - 中継装置、通信ハーネス及び通信システム - Google Patents
中継装置、通信ハーネス及び通信システム Download PDFInfo
- Publication number
- WO2013099645A1 WO2013099645A1 PCT/JP2012/082437 JP2012082437W WO2013099645A1 WO 2013099645 A1 WO2013099645 A1 WO 2013099645A1 JP 2012082437 W JP2012082437 W JP 2012082437W WO 2013099645 A1 WO2013099645 A1 WO 2013099645A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- relay
- communication
- destination
- cpu
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40169—Flexible bus arrangements
- H04L12/40176—Flexible bus arrangements involving redundancy
- H04L12/40182—Flexible bus arrangements involving redundancy by using a plurality of communication lines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4604—LAN interconnection over a backbone network, e.g. Internet, Frame Relay
- H04L12/462—LAN interconnection over a bridge based backbone
- H04L12/4625—Single bridge functionality, e.g. connection of two networks over a single bridge
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
Definitions
- the present invention relates to a relay device that relays between different communication buses.
- the relay device can replace a routing table to cope with various relay variations and can save the storage capacity of the routing table.
- ECUs Electronic Control Units
- various processes are performed by sending and receiving data to each other. It is the target. Since the number of ECUs connected to one communication bus is limited or the communication speed varies depending on the role of the ECU, the ECUs are divided into a plurality of groups and connected to one communication bus for each group. A configuration is employed in which communication buses are connected by a relay device (gateway).
- the relay device identifies information received from one communication bus by CANID if it is a CAN (Controller Area Network), and refers to a routing table that specifies the necessity of relay and the relay destination communication bus for each CANID. Relay processing is realized by transmission from a relay destination communication bus (Patent Documents 1, 2, etc.).
- a routing table is stored in a memory, and information is transmitted from a single communication bus from a CPU based on a relay processing program or from a circuit configured to perform relay processing.
- the timing of transmitting one piece of information or the timing of transmitting one piece of information is read, the correspondence between the ID and the relay destination communication bus is read from the routing table in the memory and the process of specifying the relay destination communication bus is performed each time.
- processing is slowed down by reading from the memory, and the amount of information in the routing table stored in the memory is increased.
- in-vehicle ECUs are rewritable in recent years in order to avoid the production of each hardware due to differences in vehicle type or options, etc., in order to reduce hardware costs.
- a microcomputer hereinafter referred to as a microcomputer process based on a computer program is employed.
- Patent Document 2 also describes that when the relay device is activated, the routing table stored in the memory is read and converted, and incorporated into the relay processing circuit.
- the number of in-vehicle ECUs is enormous since functions realized by electronic control are increasing.
- the relay device is also required to relay information between three or more communication buses instead of relaying information between two communication buses. Therefore, various relay variations, such as relaying certain information from one communication bus to the other three communication buses, combining two pieces of information received from the two communication buses, and transmitting them from the other one communication bus. Exists. Furthermore, since the number of communication buses and the type of ECU connected to each communication bus are different for each vehicle manufacturer, vehicle type, or option, relay variations increase. In the configuration in which the CPU reads the computer program incorporating the contents of the routing table, a relay processing program must be developed for each different variation, and it is difficult to reduce development costs.
- the present invention has been made in view of such circumstances, and a relay apparatus capable of replacing a routing table to cope with various relay variations and saving the storage capacity of the routing table.
- An object of the present invention is to provide a communication harness including the relay device and a communication system including the relay device.
- the relay device receives at one or more communication units based on a plurality of communication units respectively connected to different communication buses, a rewritable storage unit, and a computer program stored in the storage unit.
- a routing device for specifying a relay destination of received information in the storage unit, wherein the storage unit includes a processor that executes a relay process for transmitting the one or more information from other one or more communication units
- the routing table includes a first table in which the necessity of relaying for each identification information of the information and a storage destination of the information in the case of relaying are recorded, and an area for storing received information.
- a second table for recording a third table including a relay destination, an area for storing information to be relayed, which is associated with the relay destination, and index information indicating a storage destination of the information. It characterized in that it comprises a fourth table is recorded, and a fifth table that records the number of information in the third table.
- the processor when the processor receives information from any of the plurality of communication units, the processor refers to the first table and the information needs to be relayed based on the first table. And executing means including means for referring to the storage destination of the information from the first table and means for storing the information in the storage destination in the second table.
- the second table includes a relay destination in association with the storage area, and the processor refers to the first table when receiving information from any of the plurality of communication units. And means for referring to the storage destination of the information from the first table and the relay destination associated with the storage destination in the second table when the information is relayed based on the means and the first table. And executing means including means for transmitting the information.
- the processor is configured to refer to the third table, and to specify information stored in the storage destination of the third table based on the fourth table.
- the relay apparatus is characterized in that the processor includes means for reading the number of information from the fifth table, and refers to the third table for the number of read information.
- a communication harness according to the present invention includes any one of the relay devices according to the present invention and a plurality of communication buses respectively connected to the plurality of communication units of the relay device.
- the communication system includes any of a plurality of communication devices that transmit and receive information, a plurality of communication buses to which the plurality of communication devices are respectively connected, and a relay device of the invention to which the plurality of communication buses are connected. It is characterized by including a heel.
- a rewritable routing table is stored in the storage unit of the relay device, and the routing table specifies a relay destination of information received from any communication bus.
- the processor refers to the first table.
- the received information is stored in the storage destination.
- the storage area of the second table is associated with a relay destination when the received information is relayed as it is, and when the received information needs to be relayed, it is included in the first table by the processor.
- the received information is relayed to the relay destination associated with the storage area in the second table which is the storage destination.
- the processor specifies the storage destination in the second table of the information stored in the third table based on the index information in the fourth table, reads the information from the storage destination, and stores it in the storage destination in the third table.
- the received information further includes a plurality of information
- the existence of index information can save the capacity of the routing table. Is possible.
- the processor since the number of information in the third table is recorded in the fifth table, the processor sequentially transmits the information in the third table according to the number of information regardless of the contents of the third table. It is possible.
- the routing table in the present invention is composed of a plurality of tables related to each other, and does not consume memory unnecessarily, for example.
- the present invention it is not necessary to recreate a computer program for the processor to execute the relay process according to each different relay variation. As a result, development costs can be reduced. Further, since it is not necessary to re-create a computer program for executing the relay processing, the inspection of the computer program does not have to be performed every time for different relay variations when performing the inspection of the relay device of the present invention. Only operations including different routing tables corresponding to relay variations need be inspected. Accordingly, it is possible to reduce the number of items to be inspected after construction of the relay device and the communication system including the relay device, thereby suppressing the manufacturing cost.
- FIG. 1 is a block diagram showing a configuration of an in-vehicle communication system according to the present embodiment.
- the in-vehicle communication system includes a plurality of communication buses 11, 12, 13, and 14, ECUs 21, 22, 23, and 24 connected to the communication buses 11, 12, 13, and 14, and communication buses 11, 12, 13, and 14, respectively. 14 and a relay device 3 that performs a relay process of information between them.
- the communication via the communication buses 11, 12, 13, and 14 all conform to the CAN protocol.
- the plurality of communication buses 11, 12, 13, and 14 are distinguished by the types of control targets of the connected ECUs 21, 22, 23, and 24. In other words, it is distinguished by the type of information transmitted and received.
- the communication speed may be set differently for each of the communication buses 11, 12, 13, and 14.
- the communication bus 11 is connected to a plurality of ECUs 21 for controlling the travel control system, and information on the control system such as the vehicle speed is transmitted and received.
- a plurality of ECUs 22 for controlling the power control system are connected to the communication bus 12, and information on the power control system such as battery information is transmitted and received.
- a plurality of ECUs 23 for controlling accessory systems such as a car navigation system are connected to the communication bus 13, and multimedia information such as time information and position information is transmitted and received.
- a plurality of ECUs 24 for controlling the body are connected to the communication bus 14, and information regarding door locks, security, and the like is transmitted and received.
- the relay device 3 includes a CPU (Central Processing Unit) 30, a first communication unit 31, a second communication unit 32, a third communication unit 33, a fourth communication unit 34, a flash memory 35, and a RAM (Random Access Memory 36).
- the CPU 30 executes transmission / reception via the first to fourth communication units 31 to 34 using the RAM 36 as a transmission buffer or a reception buffer based on a routing table 37 stored in the flash memory 35 and a computer program which will be described later. Implement relay processing.
- the CPU 30 may be replaced with an MPU (Micro Processing Unit).
- the first to fourth communication units 31 to 34 each include a CAN controller and a CAN transceiver, and realize transmission / reception of CAN messages including various information based on the CAN protocol.
- the first communication unit 31 is connected to the communication bus 11
- the second communication unit 32 is connected to the communication bus 12
- the third communication unit 33 is connected to the communication bus 13
- the fourth communication unit 34 is connected to the communication bus 14.
- the flash memory 35 is a rewritable nonvolatile memory, and stores a computer program and a routing table read by the CPU 30 as will be described later.
- a nonvolatile memory such as an EEPROM (registered trademark) may be used.
- the RAM 36 is used as a transmission / reception buffer.
- the CPU 30 stores the CAN message received by the first to fourth communication units 31 to 34 and the CAN message transmitted by the first to fourth communication units 31 to 34 in the RAM 36.
- the CPU 30, the CAN controller unit in the first to fourth communication units 31 to 34, the flash memory 35, and the RAM 36 may be configured as a microcomputer.
- FIG. 2 is a schematic diagram schematically showing the contents of information stored in the flash memory 35.
- the flash memory 35 stores a routing table 37, a routing program 38, and a platform program 39.
- a driver program (not shown) or the like may be stored.
- the platform program 39 When the first to fourth communication units 31 to 34 receive the CAN message, the platform program 39 notifies the CPU 30 of the reception interrupt and writes it to the reception buffer of the RAM 36.
- the CAN created and given by the CPU 30 This is a program in which basic input / output processing, such as processing for sending messages to the first to fourth communication units 31 to 34, is shared by each device.
- the routing program 38 is a program for realizing a relay process by the CPU 30, that is, a processing procedure as shown in a flowchart described later.
- the routing program 38 does not include a vehicle type or option-dependent execution code so that rewriting is not required even when the routing table 37 is replaced with another routing table 40.
- the routing program 38 is configured to include a common execution code corresponding to the routing table 37 and the routing table 40 and other routing tables so as to correspond to the replaced routing table 40. . Details of the execution code will be described in each flowchart described later.
- the routing table 37 stores and manages a first table 71 for managing whether or not it is a relay target, a second table 72 for storing and managing a CAN message to be received, and a CAN message to be transmitted (relayed).
- a fifth table 75 for managing the number of records.
- FIG. 3 is an explanatory diagram showing an example of the contents of the first table 71 of the routing table 37.
- the first table 71 is composed of records for each CAN bus of the received CAN message for each of the communication buses 11 to 14.
- Each record includes an index to the second table 72 in the example of FIG.
- the record type is fixed and the length of each record is constant.
- Each record is sequentially stored from the top of the area of the first table 71 on the flash memory 35 in order from the record of CANID “0” of the communication bus 11.
- CANID is represented by 11 bits, for example, and the maximum value is 0x7FF according to the CAN specification.
- the index to the second table 72 is expressed by 1 byte, for example, and indicates the order of records in the second table 72. Then, the index to the second table 72 indicates whether or not it is a relay target. When the index is not “0”, it is a relay target, and when the index is “0”, it is not a relay target.
- a CAN message with a CAN ID “0” received from the communication bus 11 is not a relay target because the index is “0”.
- the CAN message with the CANID “0x050” received from the communication bus 11 is a relay target because the index is not “0”, and the “1” th record in the second table 72 may be referred to.
- the CAN message with CANID “0x051” is a relay target because the index is not “0”, and the “2” th record in the second table 72 may be referred to.
- the CAN message whose CANID is “0x052” is also a relay object because the index is not “0”, and the “3” th record in the second table 72 may be referred to.
- FIG. 4 is an explanatory diagram showing an example of the contents of the second table 72 of the routing table 37.
- the second table 72 includes an immediate relay destination information corresponding to the CAN message stored in each record, a data storage area, and a reception flag indicating whether or not unrelayed data is received (ON: reception / OFF: relay). Information), timeout time (milliseconds), and timeout value.
- the record type is fixed and the length of each record is constant.
- Each record is stored in order from the first record, starting from the top of the area of the second table 72 on the flash memory 35.
- the immediate relay destination is represented by, for example, 5 bits, and is assigned to the communication buses 11 to 14, that is, the first to fourth communication units 31 to 34 one bit at a time (1 bit is reserved). If “1”, there is no relay destination.
- the data consists of a plurality of signal information.
- the signal information of the open / closed state of the door of the vehicle can be expressed by “1: open / 0: closed” bit by bit.
- the front seat right door is opened and closed, the front seat left door is opened and closed, the rear seat right door is opened and closed, and the rear seat in order from the top 5 bits. It is possible to represent the opening / closing of the left door and the opening / closing of the rear door.
- the reception flag is represented by 8 bits, for example, “ON: reception” is “0x01”, and “OFF: relayed” is “0x00”.
- the timeout time is represented by, for example, 8 bits, and is a time-out time after reception for each CAN message.
- the timeout value is represented by 16 bits, for example, and is a value after the timeout.
- the immediate relay destination of the CAN message stored in the index “1” is “01110b”, and the last bit corresponding to the communication bus 11 and the spare first bit are “0”. Since the other bits are “1”, the communication buses 12 to 14, that is, the second communication unit 32 to the fourth communication unit 34 are immediately relayed. Then, the data “x” of the CAN message is stored in the storage area of the record. The reception flag is “OFF”. The timeout time is “0 milliseconds”, and the timeout value is “0x0000”.
- the CAN message stored in the index “2” is a relay target (OK), but the immediate relay destination is “00000b” and is not relayed immediately.
- the data “y” of the CAN message is stored in the storage area of the record, and the reception flag is “ON” until relaying is completed.
- the timeout time is “10 milliseconds” and becomes “0x0001” after the timeout.
- FIG. 5 is an explanatory diagram showing a reference example.
- the routing table is realized by adding the record contents of the second table 72 to each record for each CANID in the first table 71.
- the area in the record indicated by hatching in FIG. 5 is not used when relaying is not required. Therefore, the corresponding storage capacity is extra.
- the entire storage capacity of the routing table 37 is reduced by dividing the first table 71 and the second table 72 and associating them with the index information. Can be saved.
- the CPU 30 that executes processing based on the routing program 38 flashes from the first table 71 even when the contents of the second table 72 are different. It can be specified from which address on the memory 35 the record should be read. Therefore, even when the routing table 40 is replaced with another routing table 40, the first table 71 and the second table 72 are also replaced with the first table 471 and the second table 472. Therefore, the processing of the CPU 30 based on the routing program 38 is changed. There is no need.
- FIG. 6 is an explanatory diagram showing an example of the contents of the third table 73 of the routing table 37.
- the third table 73 is composed of records for each CAN message to be transmitted.
- Each record includes a CAN ID, relay destination bus information, an information length (DLC) of a data portion included in a CAN message to be transmitted, a data storage area, and a transmission condition. Transmission conditions are not mandatory. Note that the record type is fixed and the record length is constant.
- Each record is stored in order from the top of the area of the third table 73 on the flash memory 35 from the record of the top index “1” (CANID is “0x010”).
- CANID is represented by 11 bits, for example.
- the relay destination bus information is represented by, for example, 5 bits, and each bit corresponds to “(standby) (communication bus 14) (communication bus 13) (communication bus 12) (communication bus 11)”, and is “1”. When it is “0”, it is not a relay destination.
- the relay destination bus of the transmission CAN message whose CANID is “0x010” is the communication bus 11, that is, the message is a CAN message transmitted from the first communication unit 31 every 10 milliseconds.
- “k” having an information length of “kk” is stored in the storage area of the data portion of the transmission CAN message having a CAN ID of “0x010”.
- the transmission condition may be a condition other than the time such that the ignition position is ACC (accessory). In addition, it may be whether or not the signal value in the data satisfies some condition.
- FIG. 7 is an explanatory diagram showing an example of the contents of the fourth table 74 of the routing table 37.
- the fourth table 74 includes information on the storage position of each signal in the second table 72 and the third table 73.
- the storage position is represented by the start byte of the target signal in the data in the record of the second table 72 or the third table 73, the start bit of the signal in the start byte, and the bit length of the signal.
- the first signal is a signal included in the data storage area of the index “2” in the second table 72 in which the received CAN message is stored, and is stored in the storage area. It is shown that data is stored in “1” bit of “0” bit of “0” byte.
- the first signal is a signal to be included in the data storage area of the index “10” in the third table 73 in which the CAN message to be transmitted (relayed) is stored, and “0” of the data in the storage area. It is shown that the data should be stored in the “1” bit of the “0” bit of the byte.
- the second signal is stored in “2” bits from the “3” bit of the “0” byte in the data storage area of the index “2” in the second table 72, and is stored in the third table.
- 73 indicates that data should be stored in “2” bits from the “0” bit of the “0” byte in the data storage area of the index “25” in 73.
- FIG. 8 is an explanatory diagram showing an example of the contents of the fifth table 75 of the routing table 37.
- the fifth table 75 stores the number of records of each of the second table 72, the third table 73, and the fourth table 74.
- the number of records in the second table 72 is “50”
- the number of records in the third table 73 is “25”
- the number of records in the fourth table 74 is “75”.
- the control unit 30 of the relay apparatus 3 executes a relay process as described below.
- the CPU 30 realizes an immediate relay process and a periodic relay process based on the routing program 38, respectively.
- the CPU 30 relays directly to any one or more of the first to fourth communication buses 11 to 14 when the CAN message is received.
- the periodic relay process the CPU 30 stores the data included in the CAN message in the data storage area (reception buffer) in the second table 72 at the time when the CAN message is received, and is constant, for example, 10 milliseconds.
- the CPU 30 executes tasks by distinguishing between a reception process when a CAN message is received and a transmission process that is periodically executed.
- FIG. 9 is a flowchart illustrating an example of a processing procedure of reception processing in the relay device 3.
- the CPU 30 executes the following processing based on the routing program 38.
- the CPU 30 specifies the CANID of the received CAN message and which of the communication buses 11 to 14 is the received bus (step S101).
- the CPU 30 refers to the corresponding record in the first table 71 of the routing table 37 based on the specified CANID and communication bus (step S102). As shown in FIG. 3, in the first table 71, for each of the communication buses 11 to 14, whether or not it is a relay target is indicated by an index value for each CANID of the received message.
- the CPU 30 refers to the index of the corresponding record to the second table 72 (step S103) and determines whether or not relaying is necessary (step S104).
- step S103 the CPU 30 reads the first table 71 of the routing table 37 based on the routing program 38, using the communication bus and CANID as arguments, and sets the numerical value of the index in the first table 71 as the read return value. Based on this, a process for calling a function that returns a result of whether or not to be relayed is performed.
- step S104 the CPU 30 refers to the corresponding record in the second table 72 based on the index referenced in step S102 (step S105).
- the CPU 30 refers to the immediate relay destination of the reference record (step S106), and executes an immediate relay process based on the reference result (step S107).
- the CPU 30 reads the data included in the received message (step S108), and based on the index referenced in step S102, the corresponding data in the second table 72 identified by the index The data is stored in the data portion of the record (step S109), the reception flag is set to ON (step S110), and the process ends.
- CPU30 will complete
- FIG. 10 is a flowchart showing an example of the processing procedure of the immediate relay processing in the relay device 3.
- the flowchart shown in FIG. 10 corresponds to the detailed procedure of step S107 in FIG.
- Step S71 judges whether it is a candidate for immediate relay based on the reference result of Step S106 of Drawing 9 (Step S71). Specifically, when the reference result is not “0x00 (00000b)”, the CPU 30 determines that it is an immediate relay target.
- the CPU 30 determines that it is an object of immediate relay (S71: YES), it selects the communication bus 11 as an immediate relay destination (step S72), and the immediate relay destination as the reference result and the selected communication bus 11 are selected. It is determined whether or not they match (step S73). When the CPU 30 determines that they match (S73: YES), the CPU 30 has received the selected communication bus 11 from the first communication unit 31 connected to the selected communication bus 11 by processing based on the platform program 39. In order to immediately transmit the CAN message, the process of the platform program 39 is executed (step S74), and the process proceeds to the next process.
- the CPU 30 determines whether or not all the communication buses 11 to 14 have been selected (step S75). If the CPU 30 determines not to select all (S75: NO), the next communication bus 12, that is, the second communication unit. 32 is selected (step S76), the process returns to step S73, and an immediate transmission process to the next communication bus 12 is executed.
- step S71 If it is determined in step S71 that it is not an object of immediate relay (S71: NO), the immediate relay process for the received message is terminated, and the process returns to step S108 of FIG.
- the CPU 30 receives a notification about the reception of the CAN message from the second communication unit 32, and identifies the CANID as “0x100” and the communication bus as “communication bus 12” (S101).
- the CPU 30 refers to the “0x100” -th record of the communication bus 12 from the first table 71 of the routing table 37 (S102), and calls a function that returns a result of whether or not it is a relay target (S103). As shown in FIG. 3, the function returns “OK” because the index is “21” and not “0”, so the CPU 30 determines that relaying is necessary (S104: YES).
- the CPU 30 refers to the corresponding record in the second table 72 based on the index “21” (S105).
- the immediate relay destination “01001b” in the reference record is referred to (S106), the referred immediate relay destination is given, and the immediate relay processing of S107 is executed.
- the CPU 30 determines that the referred immediate relay destination is not “0x00” and is an immediate relay target (S71: YES).
- the CPU 30 selects the first communication bus 11 (S72), and determines that the last bit corresponding to the communication bus 11 of “01001b” is “1”, so that it matches the immediate relay destination (S73: YES).
- the received CAN message is directly transmitted from the first communication unit 31 corresponding to the communication bus 11 (S74). Since the CPU 30 has not selected all the communication buses 11 to 14 (S75: NO), the CPU 30 selects the next communication bus 12 (S76).
- the CPU 30 returns the process to step S73, and determines that the second bit from the end corresponding to the communication bus 12 of the immediate relay destination “01001b” is “0”, so that it does not match the immediate relay destination (S73: NO). ), The process proceeds to step S75. Since the CPU 30 has not yet selected all the communication buses 11 to 14 (S75: NO), the CPU 30 selects the next communication bus 13 (S76). The CPU 30 returns the process to step S73, and determines that the third bit from the end corresponding to the communication bus 13 of the immediate relay destination “01001b” is “0”, so that it does not match the immediate relay destination (S73: NO). ), The process proceeds to step S75.
- step S75 it is determined that all the communication buses 11 to 14 have been selected, and the process returns to step S108 in FIG.
- the CPU 30 reads the data “v” of the received CAN message (S108), writes it in the data storage area of the reference record of the second table 72 in the routing table 37 (S109), and sets the reception flag to “ON” ( S110), the process is terminated.
- FIG. 11 and FIG. 12 are flowcharts illustrating an example of a processing procedure of transmission processing in the relay device 3.
- the relay device 3 counts a fixed period of, for example, 10 milliseconds by a timer unit (not shown), and notifies the CPU 30 of a timer interrupt every time 10 milliseconds have elapsed.
- the CPU 30 executes the following processing based on the routing program 38 when the timer interruption is notified.
- the CPU 30 refers to the fifth table 75 (step S201), and acquires the number of records in the third table 73, that is, the number of CAN messages to be transmitted (step S202).
- the CPU 30 assigns “0” to the variable L for counting (step S203), and reads each record of the third table 73 in order from the top for the number of acquired records (step S204).
- CPU30 extracts the signal which makes the said record the index destination of the 3rd table 73 from the 4th table 74 (step S205).
- One extracted signal is selected (step S206), the record of the selected signal is referenced from the fourth table 74 (step S207), and it is specified in which of the second table 72 the signal is stored (step S207). 208).
- the CPU 30 refers to the specified record in the second table 72 (step S209), and determines whether or not the reception flag is “ON” (step S210).
- the CPU 30 acquires a signal from the storage position specified in step S208 (step S211), and the acquired signal is indicated by the record referred to in step S207.
- the CPU 30 determines whether or not all the signals extracted in step S205 have been selected (step S213). If the CPU 30 determines that all of the signals have not been selected (S213: NO), the process returns to step S206, and the next signal Is selected (S206).
- step S213 If the CPU 30 determines that all are selected in step S213 (S213: YES), since the data of the CAN message to be transmitted has been completed, is the transmission condition for the record read in step S204 satisfied? It is determined whether or not (step S214). If the CPU 30 determines that the transmission condition is satisfied (S214: YES), the CPU 30 sends the CAN message including the data portion in the record to the first to fourth communication units 31 corresponding to the relay destination bus in the record. To any one of -34 for transmission (step S215).
- the CPU 30 adds “1” to the count variable L (step S216), and determines whether or not the number of records acquired in step S202 matches the variable L (step S217). That is, the CPU 30 determines whether or not processing has been executed for all records in the third table 73 (S217). If the CPU 30 determines that they do not match in step S217 (S217: NO), it returns the process to step S204 and reads the next record (S204).
- step S214 determines that the transmission condition is not satisfied in step S214 (S214: NO)
- the CPU 30 advances the process to step S216 and executes the process for the next record.
- step S217 If the CPU 30 determines in step S217 that the number of records acquired in step S202 matches the variable L (S217: YES), the reception flag of all records in the reception table is set to “OFF” (step S218). Exit.
- CPU 30 extracts from the fourth table 74 signals (25 to 29) with the record of index “5” in the third table 73 as the index destination (S205).
- the 25th signal is selected from the extracted signals (S206), the fourth table 74 is referred to (S207), and the selected signal is stored in the record of the index “21” in the second table 72.
- Specify S208).
- the CPU 30 refers to the “21” -th record in the second table 72 (S209), and determines that the reception flag is “ON” (S210: YES).
- the CPU 30 acquires a signal from the data storage area of the record in the reception table with reference to the storage position specified in step S208, that is, the start byte “0”, the start bit “4”, and the bit length “2” ( S211). Then, based on the storage position information in the third table 73 referred to in step S207, the CPU 30 sets the “0” -th bit of the “0” -th byte in the data storage area of the record of the index “5” in the third table 73.
- the acquired signal information is stored for 2 bits from (S212).
- the CPU 30 selects the “26th” signal (S206), refers to the fourth table 74, and acquires the signal from the record of the index “4” in the second table 72 (S212).
- the fourth table 74 is referred to for each of the extracted signals (25 to 29) to complete the record of the index “5” in the third table 73, that is, the CAN message, and determine whether the transmission condition is satisfied (S214). ) Since the transmission condition is that the transmission cycle is every 20 milliseconds, transmission of the record in the transmission table (S215) is executed once every two transmission processes every 10 milliseconds.
- the routing table 37 includes the fourth table 74 including the index information, the tables 71 to 75 have a fixed type, and a method of reading each record is a specific method in each processing procedure described above. With the determined configuration, even if the routing table 37 is replaced with the routing table 40, for example, the processing based on the routing program 38 does not need to be changed. In particular, since the routing table 37 or the routing table 40 is configured to include index information, it is possible to manage the information received corresponding to the different replaced routing table 40 and create information to be relayed.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
なお、以下の実施の形態では本発明を、車載機器を制御する車載通信システムに適用した場合の例を挙げて説明する。
30 CPU
35 フラッシュメモリ
37,40 ルーティングテーブル
38 ルーティングプログラム
71,471 第1テーブル
72,472 第2テーブル
73,473 第3テーブル
74,474 第4テーブル
75,475 第5テーブル
Claims (7)
- 異なる通信バスに夫々接続する複数の通信部と、書き換え可能な記憶部と、該記憶部に記憶してあるコンピュータプログラムに基づき、1又は複数の通信部にて受信した1又は複数の情報を他の1又は複数の通信部から送信する中継処理を実行するプロセッサとを備える中継装置であって、
前記記憶部には、受信した情報の中継先を特定するルーティングテーブルが記憶してあり、
該ルーティングテーブルは、
前記情報の識別情報毎の中継要否、及び中継要の場合の前記情報の格納先が記録された第1テーブルと、
受信した情報を格納する領域を記録するための第2テーブルと、
中継先、及び該中継先に対応付けられ、中継する情報を格納する領域を含む第3テーブルと、
情報の格納先を示すインデックス情報が記録された第4テーブルと、
第3テーブル内の情報数を記録する第5テーブルと
を含むことを特徴とする中継装置。 - 前記プロセッサは、
前記複数の通信部のいずれかから情報を受信した場合、第1テーブルを参照する手段と、
第1テーブルに基づき、前記情報が中継要である場合、第1テーブルから前記情報の格納先を参照する手段と、
前記情報を第2テーブル内の前記格納先に格納する手段と
を含む実行手段を備えることを特徴とする請求項1に記載の中継装置。 - 第2テーブルは、前記格納領域に対応付けて中継先を含み、
前記プロセッサは、
前記複数の通信部のいずれかから情報を受信した場合、第1テーブルを参照する手段と、
第1テーブルに基づき、前記情報が中継要である場合、第1テーブルから前記情報の格納先を参照する手段と、
第2テーブル内の前記格納先に対応付けられている中継先へ、前記情報を送信する手段と
を含む実行手段を備えることを特徴とする請求項1に記載の中継装置。 - 前記プロセッサは、
第3テーブルを参照する手段と、
第3テーブルの格納先に格納する情報の、第2テーブルにおける格納先を第4テーブルに基づき特定する手段と、
特定した格納先から情報を読み出す手段と、
読み出した情報を第3テーブルの格納先に格納する手段と、
格納した情報を対応する中継先へ送信する手段と
を含む実行手段を備えることを特徴する請求項1に記載の中継装置。 - 前記プロセッサは、
第5テーブルから情報数を読み出す手段を備え、
読み出した情報数分、第3テーブルを参照するようにしてあること
を特徴とする請求項3に記載の中継装置。 - 請求項1乃至5のいずれかに記載の中継装置と、該中継装置の前記複数の通信部に夫々接続される複数の通信バスとを含むこと
を特徴とする通信ハーネス。 - 情報を送受信する複数の通信装置と、該複数の通信装置が夫々接続された複数の通信バスと、該複数の通信バスが接続された請求項1乃至5のいずれかに記載の中継装置とを含むこと
を特徴とする通信システム。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE112012005479.2T DE112012005479T5 (de) | 2011-12-27 | 2012-12-14 | Weiterleiteinrichtung, Kommunikationskabelbaum und Kommunikationssystem |
US14/365,335 US20140379954A1 (en) | 2011-12-27 | 2012-12-14 | Relay device, communication harness, and communication system |
CN201280065219.9A CN104012046B (zh) | 2011-12-27 | 2012-12-14 | 中继装置、通信线束以及通信*** |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011-286400 | 2011-12-27 | ||
JP2011286400A JP5686095B2 (ja) | 2011-12-27 | 2011-12-27 | 中継装置、通信ハーネス及び通信システム |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013099645A1 true WO2013099645A1 (ja) | 2013-07-04 |
Family
ID=48697137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2012/082437 WO2013099645A1 (ja) | 2011-12-27 | 2012-12-14 | 中継装置、通信ハーネス及び通信システム |
Country Status (5)
Country | Link |
---|---|
US (1) | US20140379954A1 (ja) |
JP (1) | JP5686095B2 (ja) |
CN (1) | CN104012046B (ja) |
DE (1) | DE112012005479T5 (ja) |
WO (1) | WO2013099645A1 (ja) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015112397A1 (en) * | 2014-01-21 | 2015-07-30 | Woodward, Inc. | Redundant can interface for dual actuation systems |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101536141B1 (ko) * | 2014-02-13 | 2015-07-13 | 현대자동차주식회사 | 이더넷과 can 통신 간의 신호 변환을 제공하는 차량용 장치 및 그 제어방법 |
US10129150B2 (en) | 2015-12-01 | 2018-11-13 | Marvell World Trade Ltd. | Systems and methods for implementing a switched controller area network |
WO2017094190A1 (ja) * | 2015-12-04 | 2017-06-08 | 三菱電機株式会社 | 転送制御装置、車両及び転送制御方法 |
US10367889B2 (en) | 2017-02-16 | 2019-07-30 | Ford Global Technologies, Llc | Smart routing for on-vehicle telematics protocol |
US10348348B2 (en) | 2017-03-06 | 2019-07-09 | Ford Global Technologies, Llc | Method and apparatus for vehicle message routing |
JP6768614B2 (ja) * | 2017-09-15 | 2020-10-14 | 矢崎総業株式会社 | 車載ネットワーク装置 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008092146A (ja) * | 2006-09-29 | 2008-04-17 | Auto Network Gijutsu Kenkyusho:Kk | 車内通信方法、車内通信システム及び中継装置 |
JP2008099014A (ja) * | 2006-10-12 | 2008-04-24 | Auto Network Gijutsu Kenkyusho:Kk | 車内通信方法、車内通信システム、中継装置及び車載型通信装置 |
JP2010098626A (ja) * | 2008-10-20 | 2010-04-30 | Hitachi Automotive Systems Ltd | 車載ゲートウェイ装置におけるルーティング方法 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3685918B2 (ja) * | 1998-01-14 | 2005-08-24 | 富士通株式会社 | 中継装置、ネットワーク中継システムおよび中継方法 |
JP4415773B2 (ja) * | 2004-06-30 | 2010-02-17 | 株式会社日立製作所 | 仮想ルータ対応マルチキャストパケット中継装置 |
CN101179508A (zh) * | 2007-11-29 | 2008-05-14 | 中兴通讯股份有限公司 | Ipv4和ipv6复用路由表生成装置及该装置生成复用路由表方法 |
WO2009130941A1 (ja) * | 2008-04-22 | 2009-10-29 | 日本電気株式会社 | 中継装置およびネットワークシステム及び経路切替方法並びに記録媒体 |
CN102204174A (zh) * | 2008-11-04 | 2011-09-28 | 株式会社自动网络技术研究所 | 通信装置、中继装置、通信***及通信方法 |
JP5370500B2 (ja) * | 2010-02-08 | 2013-12-18 | 富士通株式会社 | ネットワーク中継装置および診断方法 |
-
2011
- 2011-12-27 JP JP2011286400A patent/JP5686095B2/ja not_active Expired - Fee Related
-
2012
- 2012-12-14 US US14/365,335 patent/US20140379954A1/en not_active Abandoned
- 2012-12-14 CN CN201280065219.9A patent/CN104012046B/zh not_active Expired - Fee Related
- 2012-12-14 DE DE112012005479.2T patent/DE112012005479T5/de not_active Withdrawn
- 2012-12-14 WO PCT/JP2012/082437 patent/WO2013099645A1/ja active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008092146A (ja) * | 2006-09-29 | 2008-04-17 | Auto Network Gijutsu Kenkyusho:Kk | 車内通信方法、車内通信システム及び中継装置 |
JP2008099014A (ja) * | 2006-10-12 | 2008-04-24 | Auto Network Gijutsu Kenkyusho:Kk | 車内通信方法、車内通信システム、中継装置及び車載型通信装置 |
JP2010098626A (ja) * | 2008-10-20 | 2010-04-30 | Hitachi Automotive Systems Ltd | 車載ゲートウェイ装置におけるルーティング方法 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015112397A1 (en) * | 2014-01-21 | 2015-07-30 | Woodward, Inc. | Redundant can interface for dual actuation systems |
US9860304B2 (en) | 2014-01-21 | 2018-01-02 | Woodward, Inc. | Redundant CAN interface for dual actuation systems |
Also Published As
Publication number | Publication date |
---|---|
CN104012046B (zh) | 2017-06-20 |
US20140379954A1 (en) | 2014-12-25 |
JP2013135430A (ja) | 2013-07-08 |
CN104012046A (zh) | 2014-08-27 |
DE112012005479T5 (de) | 2014-09-11 |
JP5686095B2 (ja) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013099645A1 (ja) | 中継装置、通信ハーネス及び通信システム | |
CN108476162B (zh) | 网络集线器、转发方法及车载网络*** | |
US10153825B2 (en) | Vehicle-mounted control device | |
JP5255579B2 (ja) | 車内データ中継装置、車両制御システム | |
CN101283547B (zh) | 一种车载数据库分布节点和车载数据库*** | |
CN108476161B (zh) | 电子控制单元、通信方法以及车载网络*** | |
CN109726163A (zh) | 一种基于spi的通信***、方法、设备和储存介质 | |
JP2009253557A (ja) | 車載用の中継接続ユニット | |
JP6798413B2 (ja) | 車載中継装置、制御プログラム及びメモリ共有方法 | |
CN104683126B (zh) | 基于can总线的网络管理方法 | |
JP4877663B2 (ja) | データ中継装置、及び当該装置で用いられるデータ中継方法 | |
JP2007174085A (ja) | 車載lanシステム、電子制御ユニットおよび中継接続ユニット | |
CN112968821B (zh) | 电子控制单元、通信方法以及车载网络*** | |
CN102100037B (zh) | 通信***的具有功能分离的发送事件存储器的用户节点 | |
JP5696657B2 (ja) | 中継装置、通信ハーネス及び通信システム | |
CN112787901B (zh) | 网络集线器、转发方法及车载网络*** | |
JP5728043B2 (ja) | ゲートウェイ装置 | |
JP2019199122A (ja) | 車載中継装置、通信システム、バス決定方法及びコンピュータプログラム | |
JP2019009678A (ja) | 車載通信ネットワークシステム | |
US11609875B2 (en) | Data communication device and data communication module | |
JP2007135107A (ja) | 中継接続ユニット | |
JP2010193000A (ja) | 情報処理装置 | |
JP2007318199A (ja) | 中継接続ユニット | |
JP2009282612A (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: 12861477 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 14365335 Country of ref document: US |
|
WWE | Wipo information: entry into national phase |
Ref document number: 112012005479 Country of ref document: DE Ref document number: 1120120054792 Country of ref document: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12861477 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12861477 Country of ref document: EP Kind code of ref document: A1 |