Network hub, transfer method and vehicle network system

By using a network hub that can determine and forward Ethernet frames in the on-board network system, the problem of message transmission path allocation between Ethernet and CAN networks is solved, and information transmission between the electronic control unit of the Ethernet interface and the electronic control unit of the CAN interface is realized. , reduces costs and improves efficiency.

CN113179321BActive Publication Date: 2024-11-01PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110464062.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-03-10
Filing Date
2017-04-20
Publication Date
2024-11-01
Estimated Expiration
2037-04-20

AI Technical Summary

Technical Problem

In an on-vehicle network system including Ethernet and CAN, an electronic control unit with an Ethernet interface needs to have a CAN interface at the same time in order to communicate with an electronic control unit with a CAN interface, resulting in increased costs and the prior art has failed to effectively solve the Ethernet interface. message delivery path allocation problem.

Method used

Provide a network hub (HUB) that can receive Ethernet frames in the on-board network system, determine whether the frame contains information that needs to be transmitted to the CAN network, and select appropriate ports for transmission based on the discrimination results, realizing Ethernet and CAN networks Message transfer between.

Benefits of technology

The electronic control unit that realizes the Ethernet network connection can appropriately transmit information to the electronic control unit connected to the CAN bus, reducing cost requirements and eliminating the need to set up a protocol conversion device, which improves the information transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113179321B_ABST
    Figure CN113179321B_ABST
Patent Text Reader

Abstract

The present invention provides a network hub, a forwarding method and an in-vehicle network system. The HUB (100) comprises: a receiving unit (110) for receiving a first type of frame; a forwarding destination selection unit (120) for determining whether the first type of frame received by the receiving unit (110) contains first information that is the basis for a second type of frame to be transmitted to a second network, and selecting a port for transmitting a frame based on the first type of frame based on the result of the determination; and a transmitting unit (130) for transmitting the frame based on the first type of frame to a wired transmission path connected to the port selected by the forwarding destination selection unit (120) for the first type of frame received by the receiving unit (110).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the patent application with application number 201780004670.2 filed on April 20, 2017 and named "Network Hub, Forwarding Method and Vehicle Network System". Technical Field

[0002] The present disclosure relates to a message transfer technology between electronic control units communicating in a vehicle network. Background Art

[0003] In recent years, a large number of devices called electronic control units (ECUs) have been configured in the systems in automobiles. The network connecting these ECUs is called an in-vehicle network. There are a large number of standards for in-vehicle networks. One of the most mainstream in-vehicle networks is the CAN (Controller Area Network) standard specified by ISO11898-1. In CAN, each ECU (node) connected to the bus as a wired transmission path (communication path) sends and receives frames (messages). In addition, in CAN, there is no identifier indicating the destination and source of transmission. The transmitting node attaches an ID (CAN-ID) to each frame for transmission (that is, sending a signal to the bus), and each receiving node only receives messages of a predetermined CAN-ID (that is, reading a signal from the bus). In addition, as a standard for transmitting more information, there is the Ethernet (registered trademark) standard specified by IEEE802.3. The frame (message) of Ethernet (registered trademark) contains information indicating the destination and source of transmission in the frame header. In Ethernet (registered trademark), the maximum amount of data that can be sent in one frame is larger than that of CAN.

[0004] Patent Document 1 describes a gateway that relays messages between a device that complies with the CAN protocol and a device that complies with the Ethernet (registered trademark) protocol or the like.

[0005] Prior art literature

[0006] Patent Document 1: Japanese Patent Application Publication No. 2016-111477 Summary of the invention

[0007] Problem that the invention aims to solve

[0008] In a vehicle network system including an Ethernet (registered trademark) network and a CAN network, each electronic control unit (ECU) communicating with other electronic control units has an interface of at least one of Ethernet (registered trademark) and CAN. In this case, each electronic control unit that needs to communicate with an electronic control unit having an Ethernet (registered trademark) interface and also needs to communicate with an electronic control unit connected to a CAN bus (that is, an electronic control unit having a CAN interface) has an interface of both parties, which has problems such as increased costs. Therefore, it is hoped that, for example, an electronic control unit that only has an Ethernet (registered trademark) interface can transmit information to an electronic control unit connected to a CAN bus via a gateway, etc. In addition, Patent Document 1 does not describe the allocation of transmission paths such as whether the message sent by an electronic control unit (hereinafter also referred to as "E-ECU") having an Ethernet (registered trademark) interface is transmitted to other E-ECUs or to an electronic control unit (hereinafter also referred to as "C-ECU") connected to a CAN bus.

[0009] Therefore, the present disclosure provides a network hub (HUB) for appropriately confirming the transmission path of a message sent from an E-ECU in an in-vehicle network system including a first network such as Ethernet (registered trademark) and a second network such as CAN. In addition, the present disclosure provides a forwarding method for the HUB and an in-vehicle network system including the HUB.

[0010] Technical solutions to solve problems

[0011] In order to solve the above-mentioned problem, a technical solution of the present invention involves a network hub (HUB) used in a vehicle network system, wherein the vehicle network system includes a first network that transmits a first type of frame according to a first communication protocol, and a second network that transmits a second type of frame on a bus according to a second communication protocol different from the first communication protocol, wherein the network hub comprises: a receiving unit that receives the first type of frame; a forwarding destination selection unit that determines whether the first type of frame received by the receiving unit contains the first information that serves as the basis for the second type of frame to be transmitted to the second network, and selects a port for sending a frame based on the first type of frame based on the result of the determination; and a sending unit that sends a frame based on the first type of frame to a wired transmission path connected to the port selected by the forwarding destination selection unit for the first type of frame received by the receiving unit.

[0012] In addition, in order to solve the above-mentioned problem, a technical solution of the present invention involves a forwarding method used in a network hub of an in-vehicle network system including a first network that transmits a first type of frame according to a first communication protocol, and a second network that transmits a second type of frame on a bus according to a second communication protocol different from the first communication protocol, comprising: a receiving step of receiving the first type of frame; a forwarding destination selection step of determining whether the first type of frame received through the receiving step contains the first information that serves as the basis for the second type of frame to be transmitted to the second network, and selecting a port for sending a frame based on the first type of frame based on the result of the determination; and a sending step of sending a frame based on the first type of frame to a wired transmission path connected to the port selected through the forwarding destination selection step for the first type of frame received through the receiving step.

[0013] In addition, in order to solve the above-mentioned problem, a technical solution of the present disclosure involves an in-vehicle network system, which is an in-vehicle network system including a first network for transmitting a first type of frame according to a first communication protocol, and a second network for transmitting a second type of frame on a bus according to a second communication protocol different from the first communication protocol, and comprising: an electronic control unit connected to the first network; and a network hub connected to the first network, the electronic control unit comprising: a generation unit for generating a first type of frame according to the first communication protocol; and a sending unit for sending the first type of frame generated by the generation unit to the first network, the generation unit making the first type of frame to be transmitted to the second network The first information on which the second type of frame is based and the second information indicating that the first type of frame contains information to be transmitted to the second network are included in the first type of frame, and the first type of frame is generated. The network hub comprises: a receiving unit for receiving the first type of frame; a forwarding destination selecting unit, which determines whether the first type of frame received by the receiving unit contains the first information, and selects a port for sending a frame based on the first type of frame based on the result of the determination; and a sending unit, which sends a frame based on the first type of frame to a wired transmission path connected to the port selected by the forwarding destination selecting unit for the first type of frame received by the receiving unit.

[0014] Effects of the Invention

[0015] According to the present disclosure, it is possible to appropriately perform information transmission from an electronic control unit (E-ECU) connected to an Ethernet (registered trademark) network to an electronic control unit (C-ECU) connected to a CAN bus. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a diagram showing the overall configuration of the in-vehicle network system according to the first embodiment.

[0017] Figure 2 This is a diagram showing a schematic configuration of an in-vehicle network according to the first embodiment.

[0018] Figure 3 This is a diagram showing the format of an Ethernet (registered trademark) frame (also referred to as an “E message”) transmitted and received in a part of the in-vehicle network according to the first embodiment.

[0019] Figure 4 This is a diagram showing an example of the structure of the payload of an E message (a structure including one CAN message information).

[0020] Figure 5 This is a diagram showing an example of the structure of the payload of an E message (a structure including a plurality of CAN message information).

[0021] Figure 6 This is a diagram showing the format of a data frame specified by the CAN protocol.

[0022] Figure 7 This is a diagram showing the configuration of an electronic control unit (E-ECU) according to the first embodiment.

[0023] Figure 8 This is a diagram showing an example of a destination table used in the E-ECU according to the first embodiment.

[0024] Fig. 9 This is a diagram showing the configuration of a network hub (HUB) according to the first embodiment.

[0025] Fig.10 This is a diagram showing an example of a MAC (Media Access Control) address table used in the HUB according to the first embodiment.

[0026] Fig.11 This is a flowchart showing an example of the operation of the E-ECU according to the first embodiment.

[0027] Fig.12 This is a flowchart showing an example of the operation of the HUB involved in the first embodiment.

[0028] Fig.13 This is a sequence diagram showing an example of message transmission in the in-vehicle network system according to the first embodiment.

[0029] Fig.14 This is a diagram showing a schematic configuration of an in-vehicle network according to the second embodiment.

[0030] Fig.15 This is a diagram of the structure of the HUB involved in the second embodiment.

[0031] Fig.16 This is a diagram showing the configuration of a conversion device according to the second embodiment.

[0032] Fig.17This is a diagram showing a schematic configuration of an in-vehicle network according to a third embodiment.

[0033] Fig.18 This is a diagram showing the configuration of a HUB according to the third embodiment.

[0034] Fig.19 This is a diagram showing an example of a destination table used in the HUB according to the third embodiment.

[0035] Fig. 20 This is a diagram showing the configuration of a HUB according to the fourth embodiment.

[0036] Fig.21 This is a flowchart showing an example of the operation of the E-ECU according to the fourth embodiment.

[0037] Fig. 22 This is a flowchart showing an example of the operation of the HUB involved in the fourth embodiment.

[0038] Fig.23 This is a diagram showing an example of a destination table used in the E-ECU according to the fifth embodiment.

[0039] Fig.24 This is a diagram showing an example of an association table used in the HUB according to the fifth embodiment and associating a MAC address with a CAN-ID.

[0040] Fig.25 This is a flowchart showing an example of the operation of the HUB involved in the fifth embodiment.

[0041] Fig.26 This is a diagram showing a modified example of the structure of the payload of the E message.

[0042] Fig. 27 This is a diagram showing an example of a correlation table that correlates the position of each single (individual) data in the payload of an E message with the CAN-ID according to a modification.

[0043] Fig.28 It is a diagram showing a schematic configuration of an in-vehicle network according to a modification.

[0044] Description of symbols

[0045] 10 In-vehicle network system; 20a to 20d Cable; 30a to 30c Bus (CAN bus); 90 Server; 91 External network; 100, 100a, 100b, 100c Network hub (HUB); 110, 110a, 210, 710 Receiving unit; 111, 211 E receiving unit; 112 C receiving unit; 120, 120a, 120b Transfer destination selection unit; 130, 130a, 130b, 230, 740 Sending unit; 131 E sending unit; 132 C sending unit; 133 Combining unit; 134, 730 Splitting unit; 200a to 200c Electronic control unit (E-ECU); 212 Data receiving unit; 220 Generating unit; 221 Data processing unit; 222 Sending destination determination unit; 223 message construction unit; 224 CAN message construction unit; 300a communication module; 300b rear view camera (rear camera); 300c radar; 400 CAN gateway; 500a~500d electronic control unit (C-ECU); 600a engine; 600b brake; 600c door opening and closing sensor; 600d window opening and closing sensor; 700 conversion device; 720 transfer destination determination unit. DETAILED DESCRIPTION

[0046] A network hub (HUB) involved in a technical solution of the present disclosure is a network hub used in a vehicle network system, wherein the vehicle network system includes a first network that transmits a first type of frame according to a first communication protocol, and a second network that transmits a second type of frame on a bus according to a second communication protocol different from the first communication protocol. The network hub comprises: a receiving unit that receives the first type of frame; a forwarding destination selection unit that determines whether the first type of frame received by the receiving unit contains first information that serves as a basis for the second type of frame to be transmitted to the second network, and selects a port for sending a frame based on the first type of frame based on the result of the determination; and a sending unit that sends a frame based on the first type of frame to a wired transmission path connected to the port selected by the forwarding destination selection unit for the first type of frame received by the receiving unit. Therefore, in a HUB that relays frames (messages), the port to which the frames are sent can be selected based on the presence or absence of the first information. Therefore, an ECU (e.g., E-ECU) connected to a first network such as Ethernet (registered trademark) can properly transmit information to an ECU (e.g., C-ECU) connected to a bus of a second network such as CAN. In addition, the ECU (e.g., E-ECU) that is the source of transmission of the first type of frame is, for example, an ECU connected to the first network in an in-vehicle network system that includes a first network that transmits the first type of frame in accordance with a first communication protocol (e.g., Ethernet (registered trademark) protocol) and a second network that transmits the second type of frame on a bus in accordance with a second communication protocol (e.g., CAN protocol) different from the first communication protocol. The ECU includes a generating unit that generates the first type of frame in accordance with the first communication protocol and a transmitting unit that transmits the first type of frame generated by the generating unit to the first network, and the generating unit generates the first type of frame by including, with the first frame, first information that serves as a basis for the second type of frame to be transmitted to the second network and second information indicating that the first type of frame includes information to be transmitted to the second network.

[0047] Alternatively, the first communication protocol may be an Ethernet (registered trademark) protocol, the second communication protocol may be a CAN (Controller Area Network) protocol, the first frame may be an Ethernet (registered trademark) frame including an Ethernet (registered trademark) header and data as a payload, the second frame may be a data frame including a data field, the first information may represent the content of the data field, and the network hub may have a port connected to an Ethernet (registered trademark) cable. By relaying frames in the HUB, for example, an E-ECU having only an Ethernet (registered trademark) interface may appropriately transmit information to a C-ECU connected to a CAN bus.

[0048] Furthermore, the network hub may include a port connected to the bus for transmitting the second type frame, and the forwarding destination selecting unit may select the port connected to the bus as a port for transmitting a frame based on the first type frame when it is determined that the first type frame received by the receiving unit includes the first information, and may select the port connected to the Ethernet (registered trademark) cable as a port for transmitting a frame based on the first type frame when it is determined that the first type frame received by the receiving unit does not include the first information, and the sending unit may send the first type frame having at least the same content of the payload as that of the first type frame to the Ethernet (registered trademark) cable when the port selected by the forwarding destination selecting unit for the first type frame received by the receiving unit is a port connected to the Ethernet (registered trademark) cable, and may send the second type frame including the first information in the first type frame to the bus when the port selected by the forwarding destination selecting unit for the first type frame received by the receiving unit is a port connected to the bus. Thus, the HUB directly sends a frame based on a frame received from the Ethernet (registered trademark) cable to the CAN bus under certain conditions, and therefore, there is no need to separately provide a conversion device having a protocol conversion function.

[0049] In addition, the second frame may include an ID field, a DLC (Data Length Code) and the data field, the first information indicates the values ​​of the ID field, the DLC and the data field, and the sending unit sends the second frame to the bus in the following manner: sending the second frame generated by putting the value of the ID field indicated by the first information into the ID field of the second frame, putting the value of the DLC indicated by the first information into the DLC of the second frame, and putting the value of the data field indicated by the first information into the data field of the second frame. Thus, the HUB generates a CAN message according to the first information included in the first frame of the E-ECU and sends it to the CAN bus, so that the E-ECU can transmit any CAN message to the C-ECU.

[0050] Alternatively, the first information may represent the values ​​of the ID field, the DLC, and the data field of each of a plurality of second-type frames to be transmitted to the second network, and the transmitting unit may transmit the second-type frames to the bus in the following manner: the plurality of second-type frames are transmitted to the bus when each of the plurality of second-type frames includes a different portion of the first information. Thus, the transmission efficiency when transmitting information from the E-ECU to the C-ECU can be improved.

[0051] Alternatively, the second type of frame may include an ID field and the data field, the first information may be a collection of single data arranged in the payload of the first type of frame and indicating the value of the data field of each of a plurality of second type of frames to be transmitted to the second network, and the sending unit may send the second type of frame to the bus in the following manner: the second type of frame generated by placing an ID value determined based on the arrangement in the payload of the single data respectively in the ID field of the second type of frame and placing the value of the single data in the data field of the second type of frame is sent to the bus. Thus, the E-ECU does not need to include the CAN-ID in the first type of frame.

[0052] Alternatively, the second frame may include an ID field and the data field, and the sending unit may send the second frame including the first information in the first frame received by the receiving unit to the bus by placing an ID value determined based on the value of the destination MAC address in the Ethernet (registered trademark) header in the first frame into the ID field of the second frame, and placing the value of the data field represented by the first information into the data field of the second frame. Thus, the E-ECU does not need to include the CAN-ID in the payload of the first frame.

[0053] In addition, the network hub may include a plurality of ports connected to the Ethernet (registered trademark) cable, the plurality of ports including a port connected to the device connected to the bus through the Ethernet (registered trademark) cable for transmitting the second type frame, the forwarding destination selection unit may select a port connected to the device connected to the bus through the Ethernet (registered trademark) cable as a port for transmitting a frame based on the first type frame when it is determined that the first type frame received by the receiving unit contains the first information, and the transmitting unit may transmit the first type frame having at least the same content of the payload as the first type frame to the Ethernet (registered trademark) cable connected to the port selected by the forwarding destination selection unit for the first type frame received by the receiving unit. Thus, the HUB can transmit information to be transmitted from the E-ECU to the C-ECU to a relay device (other HUB, etc.) connected to the bus to which the C-ECU is connected.

[0054] Alternatively, the forwarding destination selection unit may perform the determination based on the value of a predetermined identification flag in the first frame received by the receiving unit. Thus, the HUB allocates the information transmission path according to the identification flag, so that the E-ECU can transmit information to the target ECU by appropriately determining the identification flag in the first frame.

[0055] In addition, the predetermined identification mark may be arranged in the Ethernet (registered trademark) header of the first frame. Thus, the HUB does not need to refer to the payload when the first frame has the E-ECU as the destination, and can select the information transmission path relatively quickly.

[0056] Alternatively, the forwarding destination selection unit may perform the determination based on the value of the destination MAC address in the Ethernet (registered trademark) header in the first frame received by the receiving unit. Thus, the E-ECU does not need to set an identification mark for information indicating that the destination is the C-ECU in the payload of the first frame to be sent. Therefore, the data volume of the first frame can be reduced.

[0057] In addition, a forwarding method according to a technical solution of the present disclosure is a forwarding method used in a network hub of an in-vehicle network system including a first network that transmits a first type of frame according to a first communication protocol and a second network that transmits a second type of frame on a bus according to a second communication protocol different from the first communication protocol, comprising: a receiving step of receiving the first type of frame; a forwarding destination selection step of determining whether the first type of frame received by the receiving step includes first information that is the basis of the second type of frame to be transmitted to the second network, and selecting a port for transmitting a frame based on the first type of frame based on the result of the determination; and a sending step of transmitting the frame based on the first type of frame to a wired transmission path connected to the port selected by the forwarding destination selection step for the first type of frame received by the receiving step. Thus, an ECU (e.g., E-ECU) connected to a first network such as Ethernet (registered trademark) can appropriately transmit information to an ECU (e.g., C-ECU) connected to a bus of a second network such as CAN.

[0058] In addition, a technical solution of the present disclosure involves an in-vehicle network system that includes a first network that transmits a first type of frame according to a first communication protocol, and a second network that transmits a second type of frame on a bus according to a second communication protocol different from the first communication protocol, and comprises: an electronic control unit connected to the first network; and a network hub connected to the first network, the electronic control unit comprising: a generation unit that generates a first type of frame according to the first communication protocol; and a sending unit that sends the first type of frame generated by the generation unit to the first network, the generation unit making the second type of frame to be transmitted to the second network The first information based on the first frame and the second information indicating that the first frame includes information to be transmitted to the second network are included in the first frame, and the first frame is generated. The network hub includes: a receiving unit that receives the first frame; a forwarding destination selection unit that determines whether the first frame received by the receiving unit includes the first information, and selects a port for sending a frame based on the first frame based on the result of the determination; and a sending unit that sends the frame based on the first frame to a wired transmission path connected to the port selected by the forwarding destination selection unit for the first frame received by the receiving unit. As a result, an ECU (e.g., E-ECU) connected to a first network such as Ethernet (registered trademark) can appropriately transmit information to an ECU (e.g., C-ECU) connected to a bus of a second network such as CAN via the HUB.

[0059] In addition, these general or specific technical solutions can be implemented through systems, methods, integrated circuits, computer programs, or recording media such as CD-ROMs that can be read by computers, or through any combination of systems, methods, integrated circuits, computer programs, or recording media.

[0060] Hereinafter, the vehicle network system including a network hub (HUB) and an electronic control unit (ECU) involved in the embodiment will be described with reference to the accompanying drawings. The embodiments shown here are all specific examples of the present disclosure. Therefore, the numerical values, constituent elements, configurations and connection forms of constituent elements, and steps (processes) and the order of steps shown in the following embodiments are examples and do not limit the present disclosure. Among the constituent elements in the following embodiments, the constituent elements that are not recorded in the independent claims are constituent elements that can be added arbitrarily. In addition, each figure is a schematic diagram and is not necessarily a strict illustration.

[0061] (Implementation Method 1)

[0062] Hereinafter, as an embodiment of the present disclosure, a vehicle network system 10 including a plurality of electronic control units (E-ECUs) for transmitting and receiving Ethernet (registered trademark) frames (E messages) according to the Ethernet (registered trademark) protocol will be described using the accompanying drawings. The vehicle network system 10 also includes a plurality of electronic control units (C-ECUs) for transmitting and receiving data frames (CAN messages) and the like on a bus according to the CAN protocol.

[0063] [1.1 Overall Configuration of the In-Vehicle Network System 10]

[0064] Figure 1 The overall configuration of the in-vehicle network system 10 according to the first embodiment is shown.

[0065] The vehicle network system 10 is a network communication system in a vehicle equipped with various devices such as a control device, a sensor, an actuator, and a user interface device. The vehicle network system 10 includes a first network (Ethernet (registered trademark) network) that transmits Ethernet (registered trademark) frames (E messages) according to the Ethernet (registered trademark) protocol and a second network (CAN network) that transmits data frames (CAN messages) and the like on a bus according to the CAN protocol as the vehicle network.

[0066] like Figure 1 As shown, the vehicle network system 10 is configured to include a network hub (HUB) 100, electronic control units (E-ECU) 200a~200c, a CAN gateway 400, electronic control units (C-ECU) 500a~500d, various devices connected to each electronic control unit (E-ECU, C-ECU) (communication module 300a, rear view camera 300b, radar 300c, engine 600a, brake 600b, door opening and closing sensor 600c and window opening and closing sensor 600d), cables (Ethernet (registered trademark) cables) 20a~20c and buses (CAN buses) 30a~30c. The Ethernet (registered trademark) cables 20a~20c are the transmission paths of the first network, and the buses 30a~30c are the transmission paths of the second network.

[0067] In addition, the in-vehicle network system 10 may include some ECUs other than the E-ECUs 200a to 200c and the C-ECUs 500a to 500d. For example, C-ECUs (not shown) other than the C-ECUs 500a to 500d may be connected to the buses 30a to 30c.

[0068] ECU (E-ECU and C-ECU) is a device including, for example, a processor (microprocessor), digital circuits such as memory, analog circuits, communication circuits, etc. The memory is ROM, RAM, etc., which can store programs executed by the processor (computer programs as software). Non-volatile memory can also be included as memory. For example, the ECU realizes various functions by the processor working according to the program (computer program). In addition, the computer program is composed of a plurality of command codes representing instructions to the processor in order to realize a predetermined function.

[0069] C-ECU500a~500d performs frame transmission and reception according to the CAN protocol. C-ECU500a~500d is respectively connected to devices such as engine 600a, brake 600b, door opening and closing sensor 600c, and window opening and closing sensor 600d, and obtains the status of the device, for example, periodically sends a data frame indicating the status to the second network composed of bus 30a, bus 30b, etc. In addition, C-ECU500a~500d can receive data frames from the bus constituting the second network, interpret the data frames, and judge whether it is a data frame with a CAN-ID that should be received, and control the device connected to the C-ECU according to the data in the data frame (the content of the data field) as needed, and can generate and send data frames as needed.

[0070] The CAN gateway 400 is a type of ECU that serves as a gateway (relay device, etc.) connected to the buses 30a to 30c. The CAN gateway 400 has a function of transferring a data frame received from one bus to the other bus.

[0071] E-ECU200a~200c has an Ethernet (registered trademark) interface and is connected to an Ethernet (registered trademark) cable. E-ECU200a~200c sends or receives Ethernet (registered trademark) frames (E messages) according to the Ethernet (registered trademark) protocol. E-ECU200a~200c can be connected to devices such as the communication module 300a, the rearview camera 300b, and the radar 300c, respectively, and perform processing based on the information obtained from the device, control the device as needed, or send information to other ECUs as needed. The communication module 300a is a device that has the function of communicating with a server 90 outside the vehicle via an external network 91 such as the Internet. The server 90 is, for example, a computer that has the function of providing information to the vehicle's ECU.

[0072] HUB100 is an Ethernet (registered trademark) switch (switching hub) connected to E-ECU200a~200c. In addition, HUB100 is also connected to bus 30c and has a function of transferring frames (messages) between the first network and the second network. HUB100 may also include digital circuits such as memory, analog circuits, communication circuits, etc., and may also include a processor.

[0073] [1.2 Composition of vehicle-mounted network]

[0074] Figure 2 A schematic configuration of an in-vehicle network according to the present embodiment is shown.

[0075] In the in-vehicle network system 10, E-ECUs 200a to 200c can communicate with each other via a first network formed by connecting cables with a HUB 100. In addition, C-ECUs 500a to 500d can communicate with each other via a second network formed by buses 30a, 30b, a CAN gateway 400, etc. In addition, for example, E-ECU 200a can communicate with C-ECU 500a via cable 20a, HUB 100, bus 30c, CAN gateway 400, and bus 30a.

[0076] The HUB 100 includes a plurality of ports (that is, terminals for connecting Ethernet (registered trademark) cables) for connecting to the E-ECUs. In addition, the HUB 100 includes one port (CAN port) for connecting to the bus 30 c connected to the CAN gateway 400 .

[0077] [1.3 Composition of frames sent and received in the vehicle network]

[0078] Figure 3 Indicates the format of the frame (E message) sent and received on the first network. Figure 3 As shown, the E message is composed of a header (Ethernet (registered trademark) header) added before a payload containing data as the main transmission content. The header includes a destination MAC address, a transmission source MAC address, and a type.

[0079] When transmitting information to be transmitted to the C-ECU, the E-ECU in the vehicle network system 10 transmits an E message including CAN message information. The CAN message information is information that serves as the basis of a data frame (CAN message) transmitted on the CAN bus.

[0080] Figure 4 and Figure 5 express Figure 3 An example of the data structure within the payload of the E message is shown. Figure 4This shows an example where the payload of the E message contains only one CAN message. Figure 5 This shows an example in which the payload of an E message can include a plurality of CAN message information.

[0081] CAN message information Figure 4 and Figure 5 In the example, it consists of CAN-ID, size and data. Figure 5 The number of messages represents the number of CAN message information. In addition, information representing the overall data volume of the CAN message information may be used instead of the number of messages. In addition, the CAN flag is an identification flag used to identify whether the E message contains information that should be transmitted on the second network. It is a flag that is set to activated (ON) when the payload of the E message contains CAN message information (that is, when the ECU that becomes the destination of the E message is the C-ECU), and is set to inactivated (OFF, that is, a value indicating information opposite to ON) in other cases. Figure 4 and Figure 5 In the example of FIG. 1 , an example of configuring a CAN flag at the beginning of the payload of an E message is shown, but this is only an example. In this embodiment, the main configuration is to enable the following Figure 5 The multiple CAN message information is included in the payload of the E message. This can improve the transmission efficiency, for example.

[0082] In addition, when the E-ECU sends information that should be transmitted to the E-ECU and does not need to be transmitted to the C-ECU, it is not necessary for the payload of the E message to include the CAN message information. In this case, when it is only possible to distinguish whether the destination of the E message is the C-ECU by the CAN flag, for example, the E-ECU includes the CAN flag in the payload of the E message that does not need to be transmitted to the C-ECU (see Figure 4 , Figure 5 ) is inactive (OFF).

[0083] In the second network, C-ECUs 500a to 500d and the like exchange frames according to the CAN protocol. Frames in the CAN protocol include data frames, remote frames, overload frames, and error frames, but the description here focuses mainly on data frames.

[0084] Figure 6 Indicates the format of the data frame (CAN message) sent and received in the second network. Figure 6As shown, the data frame is composed of SOF (Start Of Frame), ID (CAN-ID), RTR (Remote Transmission Request), IDE (Identifier Extension), reserved bit "r", size, data, CRC (Cyclic Redundancy Check) sequence, CRC delimiter "DEL", ACK (Acknowledgement) slot, ACK delimiter "DEL" and EOF (End Of Frame). Here, the ID (CAN-ID) as the content of the ID field is an identifier indicating the type of data, also known as a message ID. In addition, in CAN, when multiple nodes start sending at the same time, communication arbitration is performed to give priority to the frame with a smaller value of the CAN-ID. Size is DLC (Data Length Code) indicating the length of the subsequent data field (data). The specifications of the data are not specified in the CAN protocol, but are determined in the vehicle network system 10. Therefore, it can be a specification that depends on the type of vehicle, manufacturer (manufacturer), etc.

[0085] [1.4 Configuration of E-ECU]

[0086] Figure 7 2 is a block diagram of the E-ECU 200a. The E-ECU 200a includes a receiving unit 210, a generating unit 220, and a transmitting unit 230. These components are implemented by a communication circuit in the E-ECU 200a, a processor or a digital circuit that executes a program stored in a memory, and the like.

[0087] The receiving unit 210 receives external information, that is, information from outside the E-ECU 200a. The receiving unit 210 includes an E receiving unit 211 and a data receiving unit 212. The E receiving unit 211 receives a frame (E message) via the cable 20a. The data receiving unit 212 receives data from the connected device (communication module 300a).

[0088] The generation unit 220 generates an E message in accordance with the Ethernet (registered trademark) protocol. The generation unit 220 includes a data processing unit 221 , a transmission destination determination unit 222 , a message construction unit 223 , and a CAN message construction unit 224 .

[0089] The data processing unit 221 performs information processing (calculations, etc.) based on external information (data or E messages) received by one or both of the E receiving unit 211 and the data receiving unit 212, and generates various information to be transmitted to other ECUs. The data processing unit 221 may also use the external information itself as the various information to be generated. The information processing of the data processing unit 221 may also be of any content, and the data processing unit 221 may also generate any information. The various information generated by the data processing unit 221 is, for example, information used for driving control of the vehicle, information used to prompt the user of the vehicle, etc., and is classified into multiple categories (data types) such as steering angle indication, speed indication value, current speed value, communication information, etc.

[0090] The transmission destination determination unit 222 determines the transmission destination based on the data type of the information generated by the data processing unit 221 using, for example, a destination table. Figure 8 An example of the destination table used by the transmission destination determination unit 222 is shown. Figure 8 The destination table illustrated is a table that associates the destination type indicating whether the ECU that is the destination of the information is an E-ECU or a C-ECU with the destination MAC address (or CAN-ID) according to the data type of the information. When the destination determination unit 222 determines that the destination of the information generated by the data processing unit 221 is a C-ECU, it determines the CAN-ID based on the destination table and notifies it to the CAN message construction unit 224. In addition, the destination determination unit 222 uses the destination table to determine the destination MAC address of the information generated by the data processing unit 221, and notifies it to the message construction unit 223. In addition, if the destination is a plurality of E-ECUs, the destination determination unit 222 notifies the message construction unit 223 of the destination MAC address of each destination. When the destination determination unit 222 determines that the destination is a C-ECU, it uses a predetermined specific address as the destination MAC address and notifies it to the message construction unit 224. As an example of a specific address, a broadcast address, a multicast address, a MAC address of a device (conversion device) having a protocol conversion function, and the like can be cited. In addition, the HUB 100 does not need to have a MAC address, but may have a MAC address. If the HUB 100 has a MAC address, the MAC address may be used as the above-mentioned specific address.

[0091] In the CAN message construction unit 224, CAN message information is generated, and the CAN message information indicates the notified CAN-ID, the data indicating the information generated by the data processing unit 221, and the size of the data. For example, in a case where the data indicating the information generated by the data processing unit 221 exceeds the maximum data length of the CAN message, the CAN message construction unit 224 generates a plurality of CAN message information by dividing the data indicating the information. The CAN message information generated by the CAN message construction unit 224 is configured in an E message by the message construction unit 223, and the E message is sent by the sending unit 230. As long as the CAN message information generated by the CAN message construction unit 224 includes at least information indicating the data of the CAN message (the content of the data field of the data frame), other contents and forms are arbitrary, but for example, it may include the following in a bit length according to the CAN protocol. Figure 6 It is useful to construct the CAN message information as shown in the CAN-ID, size and data. In addition, in the process of transmitting the E message containing the CAN message information to be sent to the C-ECU, in order to enable the efficient conversion into the CAN message by the HUB 100 and other devices, it is useful to construct the CAN message information according to the CAN protocol in the CAN message construction unit 224 so as to be suitable for the format of the CAN message.

[0092] The message constructing unit 223 constructs an E message ( Figure 3 For example, if the destination is C-ECU, the message construction unit 223 causes the payload of the E message to include a CAN flag set to ON, the number of CAN message information constructed by the CAN message construction unit 224, and the number of CAN message information (see Figure 5 ). For example, if the destination is an E-ECU, the message construction unit 223 causes the payload of the E message to include a CAN flag set to inactive (OFF) and data indicating information generated by the data processing unit 221. In addition, in the message construction unit 223, when there are multiple pieces of information generated by the data processing unit 221, multiple CAN message information whose CAN-IDs may be different from each other generated by the CAN message construction unit 224 may be linked and configured in the payload of the E message.

[0093] In the generation unit 220, when there is a need to transmit CAN message information to the C-ECU based on the external information (data or E message) received by one or both of the E receiving unit 211 and the data receiving unit 212 as described above, an E message is generated that contains the CAN message information and the CAN flag set to be activated (ON) in the payload. The CAN flag set to be activated (ON) is used as the second information indicating that the E message contains the first information to be transmitted to the second network (the CAN message information that serves as the basis of the CAN message). In addition, when there is a need to transmit information to the E-ECU based on the external information, the generation unit 220 generates an E message that contains the information to be transmitted, for example, does not contain the second information (that is, the CAN flag is set to be inactive).

[0094] The transmission unit 230 sends the E message generated by the generation unit 220 to the cable 20 a , thereby transmitting the E message to the first network.

[0095] In addition, E-ECUs 200b and 200c also have the same configuration as that of the above-mentioned E-ECU 200a.

[0096] [1.5 Configuration of HUB100]

[0097] Fig. 9 1 is a diagram of the structure of HUB 100. HUB 100 has ports 1 to 4. Ports 1 to 3 are connected to cables 20a to 20c constituting the first network. Port 4 is a CAN port connected to bus 30c constituting the second network (i.e., a wired transmission path connected to CAN gateway 400). Fig. 9 As shown, HUB 100 includes a receiving unit 110, a forwarding destination selecting unit 120, and a transmitting unit 130. These components are implemented by a communication circuit, a memory, a digital circuit (or a processor that executes a program stored in the memory) and the like in HUB 100.

[0098] The receiving unit 110 includes an E receiving unit 111 that receives E messages from ports 1 to 3 and a C receiving unit 112 that receives a CAN message from port 4 .

[0099] The forwarding destination selection unit 120 determines whether the E message received by the receiving unit 110 includes the first information (CAN message information) that is the basis of the CAN message (data frame) to be transmitted to the second network, and selects a port for sending a frame based on the E message based on the result of the determination. That is, when the E message received by the receiving unit 110 does not include the CAN message information, the forwarding destination selection unit 120 selects one of ports 1 to 3 as the sending destination of the E message having the same content as the E message based on the destination MAC address in the header of the E message. The forwarding destination selection unit 120 selects a port by referring to the MAC address table. Fig.10 An example of a MAC address table used in the forwarding destination selection unit 120 is shown. The MAC address table is generated and updated by HUB100, which is a switch (switching hub), learning MAC addresses based on the reception of E messages from each port 1 to 3. In the MAC address table, as the destination MAC address related to port 4 (CAN port), for example, the above-mentioned specific address may be determined. In addition, in the case where it is possible to determine whether the E message contains CAN message information based on the CAN flag configured in the payload, the MAC address table may not contain the information of port 4 (CAN port). In the case where the E message received by the receiving unit 110 contains CAN message information, the forwarding destination selection unit 120 may determine based on the destination MAC address of the E message or the CAN flag in the E message, but selects port 4 (CAN port) as the sending destination of the CAN message (data frame) configured to represent the CAN message information.

[0100] The transmitting unit 130 includes an E transmitting unit 131, a C transmitting unit 132, a combining unit 133, and a dividing unit 134. The E transmitting unit 131 has a function of transmitting E messages from ports 1 to 3, and the C transmitting unit 132 has a function of transmitting CAN messages from port 4 according to the CAN protocol. The combining unit 133, for example, has a function of combining information about a plurality of CAN messages received by the C receiving unit 112 to generate an E message for transmission, and transmits the E message to the transmitting unit 131. The dividing unit 134 has a function of combining information about a plurality of CAN messages received by the E receiving unit 111 to generate an E message for transmission. Figure 5 ), etc., divided into Figure 5The C sending unit 132 generates each CAN message information of the number indicated by the number of messages, generates each CAN message according to the CAN protocol corresponding to each CAN message information, and transmits it to the C sending unit 132 one by one. The transmission order in this case, that is, the sending order of each CAN message sent by the C sending unit 132, is, for example, according to the arrangement order of the CAN message information in the payload of the E message that serves as the basis. Through these structures, the sending unit 130 sends a frame based on the received E message (that is, an E message when ports 1 to 3 are selected, and a CAN message when port 4 is selected) to the wired transmission path (one of the cables 20a to 20c and the bus 30c) connected to the port selected by the forwarding destination selection unit 120 for the E message received by the receiving unit 110. That is, when the port selected by the forwarding destination selection unit 120 for the E message received by the receiving unit 110 is port 1 to 3, the sending unit 130 sends an E message having at least the same payload content as the E message to the cable connected to the selected port; when the port selected by the forwarding destination selection unit 120 for the E message received by the receiving unit 110 is port 4 (CAN port) connected to the bus 30c, the sending unit 130 sends a CAN message including the first information (CAN message information) in the E message to the bus 30c. In detail, the sending unit 130 sends the CAN message to the bus 30c in the following manner: the sending unit 130 sends the CAN message generated by placing the ID (that is, the value of the ID field) of the first information (CAN message information) in the E message received by the HUB 100 into the ID field of the CAN message, placing the size (that is, the value of the DLC) indicated by the first information into the DLC of the CAN message, and placing the data (that is, the value of the data field) indicated by the first information into the data field of the CAN message. In addition, when the E message received by the HUB 100 has the first information including a plurality of CAN message information in the payload, the sending unit 130 sends the CAN message to the bus 30c in the following manner: when the plurality of CAN messages each include a different part (each CAN message information) of the first information in the E message received by the HUB 100, each of the plurality of CAN messages is sent to the bus 30c one by one.

[0101] Furthermore, the HUB 100 may have a function of generating an E message based on the CAN message received by the C receiving unit 112 and transmitting the E message from any one of the ports 1 to 3 .

[0102] [1.6 Operation of E-ECU]

[0103] Fig.11 1 is a flowchart showing an E-ECU process as an example of the operation of the E-ECU according to the present embodiment. Fig.11 The E-ECU process executed by the E-ECU 200 a will be described.

[0104] The E-ECU 200a receives external information (such as an E message from another E-ECU or data from the communication module 300a) via the receiving unit 210 (step S1).

[0105] Next, the E-ECU 200a performs data processing (such as generation of various information to be transmitted from other ECUs) in the data processing unit 221 based on the received external information (step S2).

[0106] Then, the E-ECU 200a determines whether the destination of each message generated by the data processing unit 221 is the C-ECU using the destination table according to the data type of the message in the destination determination unit 222 (step S3). When the E-ECU 200a determines that the destination of the message is the C-ECU, it determines the CAN-ID according to the data type of the message, and generates CAN message information in the CAN message construction unit 224, which indicates the CAN-ID, the data indicating the information generated by the data processing unit 221, and the size of the data (step S4). In addition, when the data indicating the information generated by the data processing unit 221 as described above exceeds the maximum data length of the CAN message, it is divided to generate a plurality of CAN message information.

[0107] In addition, the E-ECU 200a determines whether it is necessary to send a plurality of CAN message information (step S5). If it is necessary to send a plurality of CAN message information, the CAN message information generated in step S4 is combined (connected) (step S6). In step S5, when a plurality of CAN message information is generated by dividing the data representing the information generated by the data processing unit 221, or when the data processing unit 221 generates a plurality of information, it is determined that a plurality of CAN messages need to be sent. If the E-ECU 200a determines in step S5 that it is not necessary to send a plurality of CAN messages, step S6 is skipped.

[0108] When the E-ECU 200a determines in step S3 that the transmission destination is the C-ECU, the message construction unit 223 constructs an E message including one CAN message information generated in step S4 or a plurality of CAN message information linked in step S6 in the payload (step S7). In addition, in step S7, when the E-ECU 200a determines in step S3 that the transmission destination is not the C-ECU, the message construction unit 223 constructs an E message including data representing the information generated by the data processing unit 221 in the payload. As an example, in step S7, the E-ECU 200a generates an E message including the CAN message information to be transmitted to the C-ECU in the payload and the CAN flag set to be activated, or generates an E message including the information to be transmitted to the E-ECU in the payload and the CAN flag set to be inactive. In addition, the header of the E message whose transmission destination is not the C-ECU is set with a destination MAC address determined using the destination table according to the data type of the information to be transmitted. In addition, the header of the E message whose transmission destination is the C-ECU is set with a destination MAC address representing the above-mentioned specific address.

[0109] Then, the E-ECU 200a transmits the E message generated in step S7 to the cable 20a via the transmission unit 230 (step S8). The E message transmitted by the E-ECU 200a is received by the HUB 100.

[0110] In addition, E-ECUs 200b and 200c can also perform the same operations as E-ECU 200a.

[0111] [1.7 HUB100 work]

[0112] Fig.12 1 is a flowchart showing a HUB process as an example of the operation of the HUB 100. The HUB process is a process of forwarding an E message when an E message is received. Here, the forwarding of the E message is the sending of an E message identical to the received E message, or the sending of a CAN message based on the received E message. Fig.12 The HUB process executed by the HUB 100 will be described.

[0113] HUB 100 receives an E message from any of ports 1 to 3 (step S11 ).

[0114] Next, HUB100 determines whether the CAN flag in the received E message is active (step S12). If the CAN flag is active, the received E message includes the first information (CAN message information) that is the basis of the CAN message to be transmitted to the second network. If it is inactive, the E message does not include the first information.

[0115] In HUB100, if the CAN flag is inactive, the forwarding destination selection unit 120 selects a port corresponding to the destination E-ECU (destination MAC address) using the MAC address table (step S13). Then, HUB100 sends an E message identical to the received E message from the port selected in step S13 (step S14), and ends the processing corresponding to the received E message.

[0116] When the HUB 100 determines in step S12 that the CAN flag is activated, for example, based on Figure 5 The number of messages shown is used to determine whether the received E message contains multiple CAN message information (step S15). If it contains multiple CAN message information, it is divided into individual CAN message information (step S16).

[0117] HUB100 generates a CAN message based on each CAN message information divided in step S16 or the CAN message information determined in step S15 as including only one CAN message information (step S17). Figure 5 Refer to), HUB100 generates a CAN message including the CAN-ID, size and data (refer to Figure 6 Then, the HUB 100 successively outputs the generated CAN messages from the port 4 (CAN port) to the bus 30c, and transmits the generated CAN messages to the CAN gateway 400 (step S18), thereby completing the processing corresponding to the received E message.

[0118] When a CAN message is sent from HUB 100 to bus 30c, CAN gateway 400 forwards the CAN message to, for example, both or one of bus 30a and bus 30b based on a predetermined forwarding rule. For example, a rule that specifies a bus to be forwarded to for each CAN-ID can be used as a forwarding rule in CAN gateway 400.

[0119] [1.8 Timing of message transmission from E-ECU to C-ECU]

[0120] Fig.13 1 is a sequence diagram showing an example of message transmission in the vehicle-mounted network system 10. Fig.13 The transfer of information from an ECU (E-ECU) connected to a first network to an ECU (C-ECU) connected to a second network will be described.

[0121] The E-ECU 200a transmits, as an E message indicating a CAN message, an E message including, for example, three CAN message information having different CAN-IDs to the HUB 100 via the cable 20a (step S101).

[0122] The HUB 100 that has received the E message determines whether the E message indicates a CAN message based on the CAN flag or the like (step S102 ), and if so, divides the linked CAN message information included in the E message into three individual CAN message information as necessary (step S103 ).

[0123] Then, HUB100 sends the three CAN messages to bus 30c one by one based on the CAN-ID, size and data of the three CAN message information (steps S104 to S106). Thus, CAN gateway 400 receives the three CAN messages and forwards the CAN messages to the bus selected based on the forwarding rule according to the CAN-ID in each received CAN message (steps S107 to S109).

[0124] [1.9 Effects of Implementation Method 1]

[0125] In the vehicle network system 10 according to the first embodiment, when the E-ECU 200a wishes to transmit information to the C-ECU, it sends an E message including CAN message information, a CAN flag, etc. Thus, the HUB 100 can appropriately select the destination of the CAN message indicated by the E message. In addition, by including the CAN flag in the E message, according to the method of indicating whether the E message includes the CAN message information, for example, when the destination MAC address of the E message is a broadcast address, it is also possible to identify whether the CAN message should be sent to the CAN bus based on the E message.

[0126] Furthermore, the E-ECU 200a can cause the E message to include a plurality of CAN message information serving as the basis for the plurality of CAN messages, thereby improving information transmission efficiency.

[0127] (Implementation Method 2)

[0128] Hereinafter, an example in which a part of the configuration of the in-vehicle network in the in-vehicle network system 10 shown in the first embodiment is modified will be described.

[0129] In the in-vehicle network system according to the present embodiment, in the in-vehicle network system 10 shown in the first embodiment (see Figure 1) is provided between the HUB 100 and the bus 30c, so that the HUB 100 is deformed. In addition, in the vehicle network system involved in this embodiment, for the same components as the components shown in the first embodiment, the same reference numerals as those in the first embodiment are used and the description is omitted. In addition, the vehicle network system involved in this embodiment is the same as the vehicle network system 10 shown in the first embodiment with respect to the aspects not particularly described here.

[0130] [2.1 Composition of vehicle-mounted networks]

[0131] Fig.14 The schematic configuration of the vehicle-mounted network according to the present embodiment is shown. The vehicle-mounted network according to the present embodiment is a combination of the vehicle-mounted network ( Figure 2 The HUB 100 in FIG. 1 is replaced with the HUB 100a, and a conversion device 700 and a cable 20d are added.

[0132] The HUB 100a does not include a CAN port, but includes a plurality of ports for connecting cables 20a to 20d, which are Ethernet (registered trademark) cables. The HUB 100a is connected to the conversion device 700 via the cable 20d, and the conversion device 700 is connected to the CAN gateway 400 via the bus 30c.

[0133] In the vehicle network system according to the present embodiment, E-ECUs 200a to 200c can communicate with each other via a first network formed by connecting cables using HUB 100a. In addition, C-ECUs 500a to 500d can communicate with each other via a second network formed by buses 30a, 30b, CAN gateway 400, etc. In addition, for example, E-ECU 200a can communicate with C-ECU 500a via cable 20a, HUB 100a, cable 20d, converter 700, bus 30c, CAN gateway 400, and bus 30a.

[0134] [2.2 Configuration of HUB100a]

[0135] Fig.15 1 is a diagram of the configuration of HUB100a. HUB100a is obtained by partially deforming HUB100 shown in Embodiment 1, and is the same as HUB100 in aspects not specifically described here. HUB100a has ports 1 to 3 and port A. Ports 1 to 3 and port A are respectively connected to cables 20a to 20d constituting the first network. Port A is connected to cable 20d connected to conversion device 700. Fig.15As shown, HUB 100a includes a receiving unit 110a, a forwarding destination selecting unit 120a, and a transmitting unit 130a, and forwards E messages. These components are implemented by communication circuits, memories, digital circuits (or processors that execute programs stored in memories), etc. in HUB 100a.

[0136] The receiving unit 110 a includes an E receiving unit 111 that receives an E message from ports 1 to 3 or port A.

[0137] The forwarding destination selection unit 120a is a partial modification of the forwarding destination selection unit 120 shown in the first embodiment, and is the same as the forwarding destination selection unit 120 except for the aspects not particularly described here. The forwarding destination selection unit 120a determines whether the E message received by the receiving unit 110a includes the first information (CAN message information) that is the basis of the CAN message (data frame) to be transmitted to the second network, and selects a port to send out the frame based on the E message based on the result of the determination. That is, when the E message received by the receiving unit 110a does not include the CAN message information, the forwarding destination selection unit 120a selects one of the ports 1 to 3 as the sending destination of the E message having the same content as the E message based on the destination MAC address in the header of the E message. The forwarding destination selection unit 120a selects a port by referring to the MAC address table. In the MAC address table, as the destination MAC address related to port A, for example, the specific address shown in the first embodiment or the MAC address of the conversion device 700 may be determined. In addition, HUB100a can also learn the MAC address of the conversion device 700 and update the MAC address table. In the case where the MAC address of the conversion device 700 is determined as the destination MAC address involved in port A of the MAC address table, for example, the E-ECU200a, which is the source of the E message containing CAN message information, can also specify the MAC address of the conversion device 700 as the destination MAC address using the header of the E message. In this case, the forwarding destination selection unit 120a can also select a port based on the MAC address table without confirming whether the E message contains CAN message information. In addition, in the case where it is possible to determine whether the E message contains CAN message information based on the CAN flag configured in the payload, the MAC address table does not include the information of port A. When the E message received by the receiving unit 110a contains CAN message information, the forwarding destination selection unit 120a can make a judgment based on the destination MAC address of the E message or the CAN flag in the E message, but selects port A (the port connected to the device connected to the bus 30c by the cable 20d) as the sending destination of the E message identical to the received E message.

[0138] The sending unit 130a includes an E sending unit 131 that sends (i.e., sends to the cable connected to the port) an E message that is the same as the E message received by the E receiving unit 111 (or at least an E message with the same payload content) from the port (port 1 to 3 or port A) selected by the forwarding destination selection unit 120a.

[0139] [2.3 Configuration of the conversion device 700]

[0140] Fig.16 2 is a diagram showing the configuration of the conversion device 700. The conversion device 700 may be composed of, for example, a processor, a digital circuit such as a memory, an analog circuit, a communication circuit, and the like.

[0141] The conversion device 700 has a function of converting an E message into a CAN message, and includes a receiving unit 710, a forwarding destination determination unit 720, a dividing unit 730, and a CAN transmitting unit 740 as functional components for realizing this function. Each of these functional components can be realized by a communication circuit in the conversion device 700, a processor that executes a program stored in a memory, and the like. In addition, the conversion device 700 may also have a function of converting a CAN message into an E message.

[0142] The receiving unit 710 receives the E message from the cable 20d.

[0143] The forwarding destination determination unit 720 determines whether the E message received by the receiving unit 710 includes the first information (CAN message information) that is the basis of the CAN message (data frame) to be transmitted to the second network, and determines whether to send the CAN message based on the E message to the bus 30c based on the result of the determination. For example, if the E message received by the receiving unit 710 does not include the CAN message information, the forwarding destination determination unit 720 determines that the CAN message should not be sent to the bus 30c and discards the E message. If the E message received by the receiving unit 710 includes the CAN message information, the forwarding destination determination unit 720 notifies the content of the payload of the E message to the segmentation unit 730.

[0144] The division unit 730 has the following function: when the payload of the notified E message contains a plurality of CAN message information connected together (see Figure 5 ), split into, for example, Figure 5The number of CAN message information represented by the number of messages is used to generate each CAN message according to the CAN protocol based on each CAN message information and transmit it to the CAN transmitting unit 740 one by one. The transmission order in this case is, for example, the arrangement order of the CAN message information in the payload of the E message. In addition, when the payload of the notified E message contains one CAN message information, the segmentation unit 730 generates a CAN message according to the CAN protocol based on the CAN message information and transmits it to the CAN transmitting unit 740.

[0145] The CAN transmitter 740 transmits CAN messages to the bus 30c constituting the second network in the order in which they were transmitted to the divider 730 according to the CAN protocol. Thus, the CAN messages are transferred to an appropriate bus via the CAN gateway 400 connected to the bus 30c and received by the C-ECU.

[0146] [2.4 Effects of Implementation Method 2]

[0147] In the in-vehicle network system according to the second embodiment, when the E-ECU 200a wishes to transmit information to the C-ECU, it transmits an E message including CAN message information, a CAN flag, etc. Thus, the HUB 100a can appropriately select the destination of the E message including the CAN message information. In addition, by including the CAN flag in the E message, according to the method of indicating whether the E message includes the CAN message information, for example, even when the destination MAC address of the E message is a broadcast address, only the E message including the CAN message information can be transmitted to the conversion device 700 having the conversion function to the CAN message through the HUB 100a. In addition, the conversion device 700 can also be configured, for example, to be connected to a first network that transmits a first type of frame (e.g., Ethernet (registered trademark) frame) according to a first communication protocol (e.g., Ethernet (registered trademark) protocol) and a second network that transmits a second type of frame (e.g., CAN message as a data frame) on a bus according to a second communication protocol (e.g., CAN protocol) different from the first communication protocol, and to include a receiving unit that receives the first type of frame from the first network, and a sending unit that sends a frame (e.g., CAN message) based on the first type of frame to the second network when the first type of frame received by the receiving unit contains first information that serves as a basis for the second type of frame to be transmitted to the second network.

[0148] (Implementation 3)

[0149] Hereinafter, another example in which a part of the configuration of the in-vehicle network in the in-vehicle network system 10 shown in the first embodiment is modified will be described.

[0150] In the in-vehicle network system according to the present embodiment, the in-vehicle network system 10 (see Figure 1 ) includes the function of the CAN gateway 400. In addition, in the vehicle network system involved in this embodiment, for the same components as those shown in embodiment 1, the same reference numerals as in embodiment 1 are used and the description is omitted. In addition, the vehicle network system involved in this embodiment is the same as the vehicle network system 10 shown in embodiment 1 in terms of aspects not specifically described here.

[0151] [3.1 Composition of vehicle-mounted networks]

[0152] Fig.17 The schematic configuration of the vehicle-mounted network according to the present embodiment is shown. The vehicle-mounted network according to the present embodiment is a configuration in which the vehicle-mounted network shown in the first embodiment (see Figure 2 ) and the CAN gateway 400 and bus 30c, and replacing HUB100 with HUB100b which includes the same functions as the CAN gateway 400.

[0153] The HUB 100b has a plurality of ports for connecting to the E-ECUs (i.e., terminals for connecting to Ethernet (registered trademark) cables). In addition, the HUB 100b has a plurality of ports for connecting to a bus to which one or more C-ECUs are connected (i.e., terminals for connecting to the bus). That is, the HUB 100b has ports for connecting to the cables 20a to 20c and the buses 30a and 30b.

[0154] In the vehicle network system according to the present embodiment, E-ECUs 200a to 200c can communicate with each other via a first network formed by connecting cables using HUB 100b. In addition, C-ECUs 500a to 500d can communicate with each other via a second network formed by buses 30a and 30b. In addition, for example, E-ECU 200a can communicate with C-ECU 500a via cable 20a, HUB 100b, and bus 30a.

[0155] [3.2 Configuration of HUB100b]

[0156] Fig.18 This is a diagram of the structure of HUB100b. HUB100b has ports 1 to 5. Ports 1 to 3 are respectively connected to cables 20a to 20c that constitute the first network. Port 4 (CAN port 1) and port 5 (CAN port 2) are respectively connected to buses 30a and 30b that constitute the second network. In addition, HUB100b can also have more than three CAN ports, but for the sake of convenience, an example with two CAN ports is shown here. Fig.18As shown, HUB 100b includes a receiving unit 110, a forwarding destination selecting unit 120b, and a transmitting unit 130. These components can be implemented by a communication circuit, a memory, a digital circuit (or a processor that executes a program stored in the memory), etc. in HUB 100b.

[0157] The receiving unit 110 includes an E receiving unit 111 that receives E messages from ports 1 to 3 , and a C receiving unit 112 that receives CAN messages from ports 4 and 5 .

[0158] The forwarding destination selection unit 120b determines whether the E message received by the receiving unit 110 includes the first information (CAN message information) that is the basis of the CAN message (data frame) to be transmitted to the second network, and selects a port for sending a frame based on the E message based on the determination result. That is, when the E message received by the receiving unit 110 does not include the CAN message information, the forwarding destination selection unit 120b selects one of ports 1 to 3 as the sending destination of the E message having the same content as the E message based on the destination MAC address in the header of the E message. The forwarding destination selection unit 120b selects ports 1 to 3 by referring to the MAC address table.

[0159] When the E message received by the receiving unit 110 includes CAN message information, the forwarding destination selecting unit 120b selects one of the ports 4 and 5 according to the destination table as the sending destination of the CAN message based on the CAN message information. In addition, when the E message received by the receiving unit 110 includes CAN message information, the forwarding destination selecting unit 120b selects one of the ports 4 and 5 according to the destination table as the forwarding destination of the CAN message. Fig.19 An example of a destination table used in the HUB 100b is shown. Fig.19 In the example of , the destination table is a table that associates the source of the received frame, the CAN-ID if the frame is a CAN message, and the destination of the frame. For the source of the received frame, if the frame is an E message, it indicates the source MAC address, and if the frame is a CAN message, it indicates the CAN port (CAN port 1 or CAN port 2) that received the frame. Fig.19For example, when the forwarding destination selection unit 120b receives an E message including CAN message information with a CAN-ID of "0x123" from an E-ECU with a MAC address of 1, the forwarding destination selection unit 120b selects CAN port 2 as the sending destination of the CAN message based on the CAN message information. In addition, when the forwarding destination selection unit 120b receives an E message including CAN message information from an E-ECU with a MAC address of 2, the forwarding destination selection unit 120b selects both CAN port 1 and CAN port 2 as the sending destination of the CAN message based on the CAN message information. In addition, when the forwarding destination selection unit 120b receives a CAN message with a CAN-ID of "0x345" or a CAN-ID of "0x456" from CAN port 1, the forwarding destination selection unit 120b selects CAN port 2 as the forwarding destination of the CAN message.

[0160] The transmission unit 130 includes an E transmission unit 131, a C transmission unit 132, a combining unit 133, and a dividing unit 134. When one or both of port 4 (CAN port 1) and port 5 (CAN port 2) are selected by the forwarding destination selection unit 120b, the C transmission unit 132 transmits a CAN message based on the CAN message information of the received E message or the received CAN message to the selected port.

[0161] Furthermore, the HUB 100 b may have a function of generating an E message based on the CAN message received by the C receiving unit 112 and transmitting the E message from any one of the ports 1 to 3 .

[0162] [3.3 Effects of Implementation Method 3]

[0163] In the in-vehicle network system 10 according to the third embodiment, when the E-ECU 200a wishes to transmit information to the C-ECU, it sends an E message including CAN message information, a CAN flag, etc. Thus, the HUB 100b can appropriately select the destination of the CAN message indicated by the E message.

[0164] In addition, the HUB 100b involved in the third embodiment has a function of forwarding CAN messages between CAN buses, so the number of devices constituting the vehicle network can be reduced. In addition, by reducing the number of devices installed in the vehicle, the effects of reducing costs and suppressing the occurrence rate of failures are produced. In addition, the HUB 100b selects the CAN bus to which the CAN message should be sent based on the CAN-ID included in the CAN message information. As a result, the E-ECU 200a includes the CAN-ID corresponding to the C-ECU to which the information is desired to be transmitted in the E message, and the transmission of the information can be realized.

[0165] (Implementation 4)

[0166] Hereinafter, an example in which the E-ECU (such as E-ECU 200a) and HUB 100 are partially modified in the vehicle network system 10 shown in the first embodiment will be described. In the first embodiment, when E-ECU 200a sends an E message including CAN message information, for example, Figure 5 As shown in FIG. 1 , an example is shown in which an E message can include a plurality of CAN message information. In contrast, in the present embodiment, when the E-ECU 200a includes CAN message information in the E message, as shown in FIG. Figure 4 As shown, the payload of the E message includes only one CAN message information. The E-ECUs 200b and 200c are the same as the E-ECU 200a.

[0167] In the in-vehicle network system according to the present embodiment, the in-vehicle network system 10 ( Figure 1 In addition, in the vehicle network system involved in the present embodiment, regarding the same components as those shown in embodiment 1, the same reference numerals as those in embodiment 1 are used and the description is omitted. In addition, in the vehicle network system involved in the present embodiment, the aspects not specifically described here are the same as the vehicle network system 10 shown in embodiment 1.

[0168] [4.1 Configuration of HUB100c]

[0169] Fig. 20 1 is a diagram showing the configuration of HUB 100c. HUB 100c is obtained by replacing the transmission unit 130 of HUB 100 shown in Embodiment 1 with a transmission unit 130b. Fig. 20 As shown, the HUB 100c includes a receiving unit 110, a forwarding destination selecting unit 120, and a transmitting unit 130b. These components can be implemented by a communication circuit, a memory, a digital circuit (or a processor that executes a program stored in the memory), etc. in the HUB 100c.

[0170] The transmission unit 130b includes an E transmission unit 131 and a C transmission unit 132. The E transmission unit 131 has a function of transmitting an E message from ports 1 to 3, and the C transmission unit 132 has a function of transmitting a CAN message according to the CAN protocol from port 4. Specifically, when the port selected by the forwarding destination selection unit 120 for the E message received by the receiving unit 110 is port 4 (CAN port), the C transmission unit 132 generates a CAN message based on the CAN message information included in the received E message, and transmits the CAN message from port 4 to the bus 30c.

[0171] Furthermore, the HUB 100 c may have a function of generating an E message based on the CAN message received by the C receiving unit 112 and transmitting the E message from any one of the ports 1 to 3 .

[0172] [4.2 Operation of E-ECU]

[0173] Fig.21 2 is a flowchart showing an E-ECU process as an example of the operation of the E-ECU according to the present embodiment. Fig.21 In addition, in the E-ECU processing involved in this embodiment, the processing steps shown in the first embodiment (see Fig.11 )The same elements in Fig.21 Marked with Fig.11 The same reference numerals are appropriately omitted in their description.

[0174] The E-ECU 200a receives external information through the receiving unit 210 (step S1), and generates various information to be sent by other ECUs in the data processing unit 221 (step S2). The E-ECU 200a determines whether the destination of each information generated by the data processing unit 221 is a C-ECU based on the data type of the information using the destination table in the sending destination determination unit 222 (step S3). If the sending destination is a C-ECU, the CAN-ID is determined based on the data type of the information, and the CAN message information is generated in the CAN message construction unit 224, and the CAN message information indicates the CAN-ID, data indicating the information generated by the data processing unit 221, and the size of the data (step S4).

[0175] When the E-ECU 200a determines in step S3 that the transmission destination is the C-ECU, the message construction unit 223 constructs an E message including the one CAN message information generated in step S4 in the payload (step S7). In addition, in step S7, when the E-ECU 200a determines in step S3 that the transmission destination is not the C-ECU, the message construction unit 223 constructs an E message including the data representing the information generated by the data processing unit 221 in the payload.

[0176] Then, the E-ECU 200a transmits the E message generated in step S7 to the cable 20a via the transmission unit 230 (step S8). The E message transmitted by the E-ECU 200a is received by the HUB 100c.

[0177] In addition, E-ECUs 200b and 200c can also perform the same operations as E-ECU 200a.

[0178] [4.3 Operation of HUB100c]

[0179] Fig. 22 1 is a flowchart showing a HUB process as an example of the operation of the HUB 100c. Fig. 22 In addition, in the HUB processing involved in this embodiment, the processing steps shown in the first embodiment (see Fig.12 )The same elements in Fig. 22 Marked with Fig.12 The same reference numerals are appropriately omitted in their description.

[0180] HUB100c receives an E message from any of ports 1 to 3 (step S11), and determines whether the E message contains CAN message information (step S12a). This determination can be made, for example, based on whether the CAN flag is active, or based on whether the destination MAC address in the header of the E message is the specific address shown in Embodiment 1.

[0181] When HUB100c determines through step S12a that the received E message does not contain CAN message information, the forwarding destination selection unit 120 uses the MAC address table to select the port corresponding to the destination E-ECU (step S13), sends out the same E message as the received E message from the selected port (step S14), and ends the processing corresponding to the received E message.

[0182] If the HUB 100c determines in step S12a that the received E message includes CAN message information, it generates a CAN message based on the CAN message information included in the received E message (step S17). If the CAN message information is composed of, for example, a CAN-ID, a size, and data (see Figure 4 ), HUB100c generates a CAN message including the CAN-ID, size and data (refer to Figure 6 Then, HUB100c sends the generated CAN message from port 4 (CAN port) to bus 30c, thereby sending the CAN message to CAN gateway 400 (step S18), and ends the processing corresponding to the received E message. When a CAN message is sent from HUB100c to bus 30c, CAN gateway 400 forwards the CAN message to, for example, both or one of bus 30a and bus 30b based on a predetermined forwarding rule.

[0183] [4.4 Effects of Implementation Method 4]

[0184] In the in-vehicle network system 10 according to the fourth embodiment, when the E-ECU 200a wishes to transmit information to the C-ECU, it sends an E message including CAN message information, a CAN flag, etc. Thus, the HUB 100c can appropriately select the destination of the CAN message indicated by the E message. In addition, since the E-ECU 200a includes the CAN message information for one CAN message in the E message, the HUB 100c does not need to bear the processing burden of dividing the contents of the payload of the received E message.

[0185] (Implementation 5)

[0186] Hereinafter, modifications of E-ECU 200 a and HUB 100 shown in the first embodiment will be described.

[0187] In the first embodiment, the transmission destination determination unit 222 in the generation unit 220 of the E-ECU 200a uses Figure 8 When the destination table of the message determines that the ECU that is the destination of the information is a C-ECU, a predetermined specific address is notified to the message construction unit 224 as the destination MAC address. In the first embodiment, a broadcast address, a multicast address, etc. are exemplified as the specific address, but in the present embodiment, an example of using a local MAC address as the specific address is shown. The local MAC address is an address in which the value of the bit that identifies whether it is a global MAC address in the MAC address is not a value of the global MAC address.

[0188] For example, the E-ECU 200a may also be used as follows Fig.23 The destination table is shown. Fig.23 In the destination table, the destination MAC address is associated with each data type, including local MAC addresses such as "02:aa:bb:cc:01:23" and "02:aa:bb:cc:02:34" as the destination MAC address. In this example, the data type associated with the local MAC address is the information to be sent to the C-ECU.

[0189] When the generator 220 of the E-ECU 200a generates an E message including the first information (CAN message information), the generator 220 includes a specific value (specific address, etc.) determined to represent the second information as the destination MAC address in the header of the E message, and the second information indicates that the E message includes the first information to be transmitted to the second network. The specific value may be the specific address shown in the first embodiment, or a data value (local MAC address) in which the value of the bit that identifies whether it is a global MAC address in the MAC address is a value other than the global MAC address. In addition, the third information in which a part of the CAN message such as the CAN-ID is represented by the data value (local MAC address) may be included to reduce the content of the CAN message information included in the payload of the E message. For example, in the generator 220, it is also possible to set a data value representing the CAN-ID as the destination MAC address of the E message, and set the CAN message information so that the payload includes the size and data but does not include the CAN-ID.

[0190] In addition, HUB100 may determine whether the received E message contains CAN message information based on whether the destination MAC address in the header of the E message is set with a specific value as described above (e.g., a local MAC address, etc.) instead of judging whether the CAN flag is activated. Thus, it is possible to determine whether the payload contains information to be transmitted to the second network by referring only to the header of the E message. For example, if the payload of the E message is encrypted, it may be possible to simplify the processing (omit decryption, etc.). In addition, HUB100 may also use a specific value (e.g., a local MAC address, etc.) of the destination MAC address set in the header of the E message. Fig.24 The association table shown is used to determine the CAN-ID. Fig.24 This shows an association table that associates MAC addresses with CAN-IDs.

[0191] Fig.25 1 is a flowchart showing a HUB process as an example of the operation of the modified HUB 100 according to the present embodiment. Fig.25 The HUB processing of the deformed HUB 100 is described. In the HUB processing according to the present embodiment, the processing steps shown in the first embodiment (see Fig.12 )The same elements in Fig.25 Marked with Fig.12The same reference numerals are appropriately omitted in the description here. In addition, the description is based on the following premise: in the generation unit 220 of the E-ECU 200a, a data value (local MAC address) corresponding to the CAN-ID is set as the destination MAC address of the E message, and a CAN message information is set so that the size and data included in the payload, but not the CAN-ID, is included.

[0192] The transformed HUB 100 receives an E message from any one of ports 1 to 3 (step S11), and determines whether the destination MAC address in the header is a specific value (step S12b) in order to determine whether the E message contains CAN message information. This determination may be made based on, for example, whether the destination MAC address is the specific address described above, or may be made based only on the value of a bit of the global MAC address that identifies whether it is the destination MAC address.

[0193] The deformed HUB100 determines in step S12b that when the received E message does not contain CAN message information (when it is determined that the destination MAC address in the header is not a specific value), the forwarding destination selection unit 120 uses the MAC address table to select the port corresponding to the destination E-ECU (step S13), and sends out the same E message as the received E message from the selected port (step S14), thereby ending the processing corresponding to the received E message.

[0194] The modified HUB 100 determines in step S12b that the received E message contains CAN message information (determined that the destination MAC address in the header is a specific value), based on the association table (refer to Fig.24 ), and the CAN-ID is obtained from the destination MAC address (step S21). In addition, any method may be used to obtain the CAN-ID from the destination MAC address which is a specific value. In addition to the method using the association table, the method for obtaining the CAN-ID may be, for example, the following method: in the E-ECU200a which is the sending source of the E message, a specific value is set so that a part of the destination MAC address contains the CAN-ID, and the CAN-ID is extracted from the destination MAC address by the deformed HUB100. In addition, the following method may be used: an E message is sent in which a specific value which is a result of a predetermined operation on the CAN-ID in the E-ECU200a is set as the destination MAC address, and the CAN-ID is calculated from the destination MAC address in the deformed HUB100 by an operation corresponding to the predetermined operation.

[0195] Next, the transformed HUB 100 generates a CAN message based on the CAN-ID obtained in step S21 and the size and data of the CAN message information in the payload of the received E message (step S17a). Then, the transformed HUB 100 sends the generated CAN message to the bus 30c from port 4 (CAN port), thereby sending the CAN message to the CAN gateway 400 (step S18), and ends the processing corresponding to the received E message.

[0196] In this way, in the sending unit 130 of the deformed HUB100, the CAN message containing the first information (CAN message information) in the E message received by the receiving unit 110 is sent to the bus 30c by sending the CAN message generated by placing the CAN-ID determined based on the value of the destination MAC address in the header of the E message into the ID field of the CAN message and placing the data represented by the CAN message information (the value of the data field) into the data field of the CAN message to the bus 30c.

[0197] (Other embodiments)

[0198] As described above, embodiments 1 to 5 are described as examples of the technology involved in the present disclosure. However, the technology involved in the present disclosure is not limited thereto, and can also be applied to embodiments that are appropriately changed, replaced, added, omitted, etc. For example, the following modified examples are also included in one embodiment of the present disclosure.

[0199] (1) In the above embodiment, the E-ECU 200a arranges the first information (CAN message information) including the CAN flag, CAN-ID, size, and data in the payload of the E message (see Figure 4 , Figure 5 ), but can also be in the payload as Fig.26 The first information (CAN message information) is configured as shown in the figure, which is a collection of CAN flags and data (also referred to as single data here) as the content of the data field in the CAN message. When the first information is included in the payload, the CAN flag is set to be activated (ON) for example, and is used as the second information indicating that the first information is included. In this case, HUB 100 can use the collection of single data in the payload of the received E message to Fig. 27 The illustrated association table determines the content of each CAN message and sends the CAN message. Fig. 27The example shows that the single data (contents of the data field) of the CAN message with a CAN-ID of "0x123" is configured with a size of 2 bytes starting from the 2nd byte of the payload of the E message. In addition, the single data (contents of the data field) of the CAN message with a CAN-ID of "0x234" is configured with a size of 1 byte starting from the 1st byte of the payload of the E message. In detail, in this case, the sending unit 130 of HUB100 sends the CAN message to the bus 30c in the following manner: for each set of sets of single data contained in the E message received by HUB100, the sending unit 130 sends the CAN message to the bus 30c by placing the CAN-ID determined based on the configuration in the payload of the single data into the ID field of the CAN message and placing the value of the single data into the data field of the CAN message. Therefore, E-ECU200a becomes able to transmit single data to C-ECU by configuring the single data in the payload of the E message according to the same association table as HUB100. In addition, it is also possible to Fig. 27 In the illustrated association table, a flag indicating whether each single data is valid is set, and HUB100 may also extract and send only valid single data. In addition, E-ECU200a may not have the same association table as HUB100, and send an E message with a payload in the same format when sending information to E-ECU and when sending information to C-ECU. In this case, the association table used by HUB100 may be appropriately determined in advance corresponding to the data structure of the E message sent by E-ECU200a to C-ECU (refer to Fig. 27 ).

[0200] (2) The in-vehicle network system 10 shown in the first embodiment may include one or more HUBs 100 a shown in the second embodiment in addition to the HUB 100 . Fig.28 An example of an in-vehicle network in which HUB100a is configured between E-ECU200a and HUB100 is shown. In this in-vehicle network, an E message including CAN message information sent by E-ECU200a reaches HUB100 via HUB100a in the first network. In this case, in HUB100a, HUB100 is processed in the same manner as the conversion device 700 shown in the second embodiment. And, HUB100 generates a CAN message based on the CAN message information of the received E message, and sends it to the CAN bus 30c constituting the second network. Thus, the CAN message reaches C-ECU via the CAN gateway 400, for example.

[0201] (3) In the above embodiment, an in-vehicle network system is shown, but the above-mentioned ECU (E-ECU and C-ECU), HUB, conversion device and other devices can be used in various network communication systems such as robots and industrial equipment.

[0202] (4) In the above embodiment, the vehicle network includes a first network and a second network, the first network is for transmitting E messages (Ethernet (registered trademark) frames) according to the Ethernet (registered trademark) protocol, and the second network is for transmitting CAN messages (data frames) in the CAN bus according to the CAN protocol using the CAN bus. The CAN protocol can also be treated as a protocol in a broad sense, including CANOpen used in an integrated system in an automation system, or a protocol derived from TTCAN (Time-Triggered CAN), CANFD (CAN with Flexible Data Rate), etc. In addition, for the data frame in the CAN protocol, in addition to the standard ID format, it can also be an extended ID format. In the case of the extended ID format, the basic ID (base ID) of the ID field in the standard ID format and the 29 bits of the extended ID can be treated as the CAN-ID in the above embodiment. In addition, the Ethernet (registered trademark) frame can be, for example, a frame of Ethernet (registered trademark) version 2, or a frame specified by IEEE802.3. In addition, the Ethernet (registered trademark) protocol may also be handled as a protocol in a broad sense including protocols derived from Ethernet (registered trademark) AVB (Audio Video Bridging) involved in IEEE802.1, or Ethernet (registered trademark) TSN (Time Sensitive Networking) involved in IEEE802.1, Ethernet (registered trademark) / IP (Industrial Protocol), EtherCAT (registered trademark) (Ethernet (registered trademark) for Control Automation Technology). In addition, the first network may be a network that transmits a first type of frame (e.g., E message, etc.) according to a first communication protocol, and the second network may be a network that transmits a second type of frame (e.g., CAN message, etc.) on a bus according to a second communication protocol different from the first communication protocol. In this case, the first communication protocol is, for example, the Ethernet (registered trademark) protocol, but is not limited to the Ethernet (registered trademark) protocol, and may be, for example, the BroadR-Reach protocol.In addition, the second communication protocol is, for example, the CAN protocol, but is not limited to the CAN protocol, and may be, for example, LIN (Local Interconnect Network), MOST (registered trademark) (Media Oriented Systems Transport), FlexRay (registered trademark), etc. In addition, the Ethernet (registered trademark) shown in the above embodiment is faster than the communication speed of CAN. In this regard, the first communication protocol may also be various protocols whose communication speed is faster than the second communication protocol. In addition, in the above embodiment, it is assumed that the first type of frame (e.g., E message) has an identification mark (e.g., CAN mark) in the payload of its first type of frame for determining whether it contains the first information (e.g., CAN message information) that is the basis of the second type of frame (e.g., CAN message) to be transmitted to the second network, but the identification mark may also be included in the header (head) of the first type of frame. For example, E-ECU200a may also include the CAN mark in the header of the E message. Thus, by referring only to the header of the E message, it is possible to determine whether the payload contains information to be transmitted to the second network. For example, if the payload of the E message is encrypted, the processing can be simplified (decryption can be omitted, etc.). For example, a bit for identifying whether it is a global MAC address in the destination MAC address in the header of the E message can be used as a CAN flag. In addition, for example, a CAN flag can be set for the type field in the header of the E message. In addition, for example, the E-ECU 200a can also include the CAN flag in both the header and the payload of the E message.

[0203] (5) In the above-mentioned third embodiment, the following example is shown: when the received E message includes CAN message information, the HUB 100b uses the destination table ( Fig.19 Reference), select the CAN port for sending the CAN message according to the source MAC address contained in the E message and the CAN-ID contained in the CAN message information in the E message. In addition, the CAN port for sending the CAN message can be selected according to the source MAC address and the destination MAC address in the E message, or according to the destination MAC address and the CAN-ID. In addition, when HUB100b receives a CAN message from a CAN port, it can select one of ports 1 to 5 as the forwarding destination of the CAN message according to the CAN port that received the message and the CAN-ID contained in the CAN message. In this case, if HUB100b selects ports 1 to 3, the E message is sent with the content of the CAN message.

[0204] (6) In the above embodiment, the E-ECU 200a has an example in which it has the function of transmitting an E message including CAN message information and the function of transmitting an E message not including CAN message information. However, the E-ECU 200a may not have the function of transmitting an E message not including CAN message information.

[0205] (7) The HUB (HUB100, etc.) shown in the above embodiment is assumed to be a switch (switching hub), but it is not necessary to have a switch function. That is, the HUB may not distinguish the destination MAC address of the E message, and, for example, when an E message with a CAN flag not being active is received from a port, the E message may be forwarded to all ports connected to Ethernet (registered trademark) cables other than the port. As a result, the HUB does not need to maintain a MAC address table, for example, and can reduce memory.

[0206] (8) In the above embodiment, an example is shown in which the CAN message information included in the E message sent by the E-ECU is composed of the CAN-ID, size, and data. However, the CAN message information may be composed of any elements as long as it includes information that is the basis for generating the CAN message. For example, the CAN message information may be composed of an element group ( Figure 6 The E-ECU forms the CAN message information according to the format of the CAN message and sends the E-message including the CAN message information, which can reduce the processing burden of the HUB or the conversion device when sending the CAN message to the CAN bus based on the E-message. In addition, the CAN message information can also be composed of information representing the data of the CAN message (the content of the data field), for example.

[0207] (9) The above embodiment shows an example in which HUB100, etc. sends CAN messages corresponding to the CAN message information in the order of arrangement of the multiple CAN message information contained in the payload of the received E message, but the order of sending CAN messages is not limited to this. For example, when HUB100, etc. receives an E message containing multiple CAN message information, it can send CAN messages in the order of CAN-ID from small to large based on the CAN message information, or it can send CAN messages in a sending order based on a predetermined priority for each CAN-ID. In addition, HUB100, etc. can also send CAN messages that need to be sent periodically after waiting for the next periodic sending period. When HUB100, etc. determines the sending order of CAN messages, E-ECU200a, etc. does not need to perform processing that takes the sending order of CAN messages into consideration when sending E messages containing multiple CAN message information.

[0208] (10) The various processing steps shown in the above embodiments (e.g. Fig.11 , Fig.12 , Fig.21 , Fig. 22 , Fig.25 The execution order of the predetermined process shown in the figure is not necessarily limited to the order described above, and the execution order can be changed, multiple processes can be performed in parallel, and / or part of the process can be omitted without departing from the scope of the disclosed subject matter.

[0209] (11) The ECU, HUB, conversion device and other devices in the above-mentioned embodiments may also include other hardware components such as a hard disk device, a display, a keyboard, and a mouse. In addition, the functions of the device may be implemented in software by a processor executing a program stored in a memory, or may be implemented by dedicated hardware (digital circuit, etc.). In addition, the functional distribution of each component in the device can be changed.

[0210] (12) A part or all of the components of each device in the above-mentioned embodiments may be constituted by a system LSI (Large Scale Integration). System LSI is a super-multifunctional LSI manufactured by integrating multiple components on a single chip, and specifically, is a computer system composed of a microprocessor, ROM, RAM, etc. A computer program is recorded in the RAM. The system LSI achieves its function by the microprocessor operating according to the computer program. In addition, each component of the components of each device may be formed as an independent single chip, or may be monolithic in a manner that includes a part or all of the components. In addition, here, it is set as system LSI, but depending on the degree of integration, it is sometimes also called IC, LSI, super LSI and ultra-large-scale LSI. In addition, the method of integrated circuitization is not limited to LSI, and it can also be implemented using a dedicated circuit or a general-purpose processor. After LSI is manufactured, a programmable FPGA (Field Programmable Gate Array) and / or a reconfigurable processor that can reconstruct the connection and / or setting of the circuit unit inside the LSI can also be used. Furthermore, if integrated circuit technology that replaces LSI emerges due to advances in semiconductor technology or other derived technologies, it is of course possible to use this technology to integrate functional blocks. It is also possible to apply biotechnology, etc.

[0211] (13) A part or all of the components constituting each of the above-mentioned devices may be constituted by an IC card or a single module that can be detached from each device. The IC card or the module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or the module may also include the above-mentioned ultra-multifunctional LSI. The IC card or the module achieves its function by operating the microprocessor according to the computer program. The IC card or the module may also have anti-cracking (tampering) properties.

[0212] (14) As a technical solution of the present disclosure, it can include, for example, Fig.11 , Fig.21 The frame generation method of all or part of the processing process shown in the above may also include, for example, Fig.12 , Fig. 22 , Fig.25For example, the frame generation method is a frame generation method in which an ECU connected to the first network generates a frame to be sent in a network system including a first network that transmits a first type of frame according to a first communication protocol (e.g., Ethernet (registered trademark) protocol) and a second network that transmits a second type of frame on a bus according to a second communication protocol different from the first communication protocol (e.g., CAN protocol), wherein the first type of frame is generated according to the first communication protocol so that the first type of frame includes first information that serves as a basis for a second type of frame to be transmitted to the second network, and second information indicating that the first type of frame includes information to be transmitted to the second network. In addition, for example, the forwarding method is a forwarding method used by a network hub in a network system including a first network that transmits a first type of frame according to a first communication protocol and a second network that transmits a second type of frame on a bus according to a second communication protocol different from the first communication protocol, and includes: a receiving step of receiving the first type of frame; a forwarding destination selection step of determining whether the first type of frame received in the receiving step contains first information that is the basis of the second type of frame to be transmitted to the second network, and selecting a port for transmitting a frame based on the first type of frame based on the result of the determination; and a sending step of transmitting a frame based on the first type of frame to a wired transmission path connected to the port selected by the forwarding destination selection step for the first type of frame received in the receiving step. In addition, it may be a program (computer program) that realizes the method by a computer, or it may be a digital signal composed of the computer program. For example, it may include a generation step (a step of generating a first frame according to a first communication protocol) and a sending step (a step of sending the first frame generated by the generation step to a first network) involved in a frame generation method, and the generation step may be a program for executing a predetermined information processing for making the first frame include the first information that is the basis of the second frame to be transmitted to the second network and the second information indicating that the first frame includes information to be transmitted to the second network, and generating the first frame. In addition, as a technical solution of the present disclosure, the computer program or the digital signal may be recorded on a computer-readable recording medium, such as a floppy disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray (registered trademark) Disc), and a semiconductor memory. In addition, it may be the digital signal recorded in these recording media. In addition, as a technical solution of the present disclosure, it may be: the computer program or the digital signal may be transmitted via an electric communication line, a wireless or wired communication line, a network represented by the Internet, and data broadcasting. In addition, as one technical solution of the present disclosure, it may be a computer system including a microprocessor and a memory, wherein the memory records the above-mentioned computer program, and the microprocessor operates according to the computer program.Furthermore, the program or the digital signal may be recorded on the recording medium and transferred, or may be transferred via the network or the like, so that the program or the digital signal may be implemented using another independent computer system.

[0213] (15) A form achieved by arbitrarily combining the components and functions described in the above-described embodiment and the above-described modified examples is also included in the scope of the present disclosure.

[0214] Possibility of industrial application

[0215] The present disclosure can be used for an ECU to transmit information to another ECU connected to a bus of a second network such as CAN via a first network such as Ethernet (registered trademark).

Claims

1. A network hub used in an in-vehicle network system in a vehicle equipped with a control device, the in-vehicle network system comprising a first network for transmitting a first type of frame according to a first communication protocol, and a second network for transmitting a second type of frame on a bus according to a second communication protocol different from the first communication protocol, the network hub comprising: a first port connected to the first network to transmit the first type of frame, the first communication protocol is an Ethernet protocol, and the first type of frame is an Ethernet frame including an Ethernet header and data as a payload; a second port connected to the second network to transmit the second frame, wherein the second communication protocol is a CAN protocol, i.e., a controller area network protocol; a receiving unit configured to receive a first type of frame from the first port; a forwarding destination selecting unit that determines, based on a value of a predetermined identification flag in the first frame, whether the first frame received by the receiving unit includes first information that is a basis for a second frame to be transmitted to a second network, and selects the first port or the second port as a port for transmitting a frame based on the first frame received by the receiving unit, based on a result of the determination, the second frame being a data frame including a data field, the first information indicating content of the data field; and The transmission unit transmits a frame based on the first type frame to a communication path connected to the port selected by the transfer destination selection unit for the first type frame received by the reception unit.

2. The network hub according to claim 1, The first port is connected to an Ethernet cable.

3. The network hub according to claim 2, The forwarding destination selecting unit, When it is determined that the first type frame received by the receiving unit includes the first information, a port connected to the bus is selected as a port for transmitting a frame based on the first type frame. When it is determined that the first type frame received by the receiving unit does not include the first information, a port connected to the Ethernet cable is selected as a port for transmitting a frame based on the first type frame. The sending unit, When the port selected by the forwarding destination selection unit for the first type frame received by the receiving unit is a port connected to the Ethernet cable, the first type frame having at least the same content of the payload as the first type frame is sent to the Ethernet cable; When the port selected by the transfer destination selection unit for the first type frame received by the reception unit is a port connected to the bus, the second type frame including the first information in the first type frame is sent to the bus.

4. The network hub according to claim 3, The second frame includes an ID field, a DLC (data length code) and the data field. The first information indicates the values ​​of the ID field, the DLC and the data field. The sending unit sends the second frame to the bus in the following manner: sending the second frame to the bus by placing the value of the ID field represented by the first information into the ID field of the second frame, placing the value of the DLC represented by the first information into the DLC of the second frame, and placing the value of the data field represented by the first information into the data field of the second frame.

5. The network hub according to claim 4, The first information indicates the values ​​of the ID field, the DLC, and the data field of each of a plurality of second-type frames to be transmitted to the second network. The transmitting unit performs the sending of the second type frame to the bus by sending a plurality of second type frames to the bus when the plurality of second type frames each include a different part of the first information.

6. The network hub according to claim 3, The second frame includes an ID field and the data field. The first information is a set of single data arranged in the payload of the first frame and indicating the value of the data field of each of a plurality of second frames to be transmitted to the second network. The sending unit sends the second type of frame to the bus in the following manner: the second type of frame is sent to the bus by placing the ID value determined based on the configuration in the payload of the single data into the ID field of the second type of frame for the set of single data, and placing the value of the single data into the data field of the second type of frame to generate the second type of frame.

7. The network hub according to claim 3, The second frame includes an ID field and the data field. The sending unit sends the second frame containing the first information in the first frame received by the receiving unit to the bus in the following manner: the second frame generated by placing an ID value determined based on the value of the destination MAC address in the Ethernet header within the first frame into the ID field of the second frame and placing the value of the data field represented by the first information into the data field of the second frame is sent to the bus.

8. The network hub according to claim 2, The network hub has a plurality of ports connected to the Ethernet cable, the plurality of ports including a third port connected to a device connected to the bus for transmitting the second frame through the Ethernet cable. When it is determined that the first type frame received by the receiving unit includes the first information, the forwarding destination selecting unit selects the third port connected to the device connected to the bus via the Ethernet cable as a port for sending a frame based on the first type frame. The transmission unit sends the first type frame having at least the same content of the payload as that of the first type frame to the Ethernet cable connected to the port selected by the transfer destination selection unit for the first type frame received by the reception unit.

9. The network hub according to claim 1, The predetermined identification flag is arranged in the Ethernet header of the first type frame.

10. The network hub according to any one of claims 2 to 8, The transfer destination selection unit performs the determination based on a value of a destination MAC address in the Ethernet header in the first type frame received by the reception unit.

11. A forwarding method, used in a network hub of an in-vehicle network system including a first network for transmitting a first type of frame according to a first communication protocol, and a second network for transmitting a second type of frame on a bus according to a second communication protocol different from the first communication protocol, wherein the first communication protocol is an Ethernet protocol, the second communication protocol is a CAN protocol, i.e., a controller area network protocol, the network hub includes a first port connected to the first network and a second port connected to the second network, the forwarding method comprising: A receiving step, receiving a first type of frame from the first port, wherein the first type of frame is an Ethernet frame including an Ethernet header and data as a payload; a forwarding destination selection step, judging whether the first type of frame received in the receiving step includes first information that is a basis for a second type of frame to be transmitted to a second network, based on a value of a predetermined identification flag in the first type of frame, and selecting the first port or the second port as a port for transmitting a frame based on the received first type of frame based on the result of the judgment, the second type of frame being a data frame including a data field, the first information indicating the content of the data field; The sending step sends a frame based on the first type frame to a communication path connected to the port selected by the transfer destination selecting step for the first type frame received by the receiving step.

12. An in-vehicle network system, comprising a first network for transmitting a first type of frame according to a first communication protocol, and a second network for transmitting a second type of frame on a bus according to a second communication protocol different from the first communication protocol, wherein the first communication protocol is an Ethernet protocol, and the second communication protocol is a CAN protocol, i.e., a controller area network protocol, and the in-vehicle network system comprises: an electronic control unit connected to the first network; and The network hub according to any one of claims 1 to 10 connected to a first network, The electronic control unit comprises: a generating unit for generating a first type of frame according to a first communication protocol; and a sending unit for sending the first type of frame generated by the generating unit to the first network, The generating unit generates the first type frame by including in the first type frame the first information serving as a basis for the second type frame to be transmitted to the second network and the second information indicating that the first type frame includes information to be transmitted to the second network. The network hub has: a receiving unit for receiving the first type of frame; a forwarding destination selecting unit that determines whether the first type frame received by the receiving unit includes the first information, and selects a port for transmitting a frame based on the first type frame based on the determination result; and a transmitting unit that transmits a frame based on the first type frame to a communication path connected to the port selected by the forwarding destination selecting unit for the first type frame received by the receiving unit, The transfer destination selection unit performs the determination based on a value of a predetermined identification flag in the first type frame received by the reception unit.