In-vehicle device, program, and information processing method
By dividing the work in a heterogeneous multiprocessor system, the first processing unit is responsible for logic operations, while the second processing unit is responsible for communication control. This optimizes the flow of communication data, solves the problem of excessive communication load in the vehicle ECU, improves vehicle control efficiency, and reduces hardware costs.
Patent Information
- Application Number
- CN202380033634.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-27
- Filing Date
- 2023-04-10
- Publication Date
- 2024-11-12
AI Technical Summary
In the prior art, the vehicle ECU fails to perform communication-related processing efficiently when executing multiple applications, resulting in excessive communication load and affecting the efficiency of vehicle control.
A heterogeneous multiprocessor system is adopted. Through the division of labor and cooperation between the first processing unit and the second processing unit, the first processing unit is responsible for efficient logic operation processing, while the second processing unit is responsible for communication control. Multiple upper-level communication units and filtering units are used to optimize the flow of communication data and reduce unnecessary communication data transmission.
It achieves efficient communication processing within the vehicle-mounted device, reduces the communication load on the first processing unit, improves the efficiency of vehicle control, and reduces hardware costs and communication bandwidth requirements.
Smart Images

Figure CN118947090A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a vehicle-mounted device, a program, and an information processing method.
[0002] This application claims the priority based on Japanese application No. 2022-073430 for which it applied on April 27, 2022, and cites all the contents described in the said Japanese application. Background Art
[0003] For example, a vehicle is equipped with a body ECU (Electronic Control Unit) as an on-board ECU, which centrally controls body devices such as a wiper drive device, lighting devices inside and outside the vehicle, a door lock device, and electric windows (for example, Patent Document 1). The wiper drive device of Patent Document 1 includes an on-board ECU (body ECU) and is driven by a control program applied to the on-board ECU.
[0004] Prior art literature
[0005] Patent Literature
[0006] Patent Document 1: Japanese Patent Application Publication No. 2017-224926 Summary of the invention
[0007] A vehicle-mounted device according to one embodiment of the present invention is connected to a vehicle-mounted network installed in a vehicle, and the vehicle-mounted device comprises: a first processing unit; a second processing unit connected to the first processing unit; and a physical layer communication unit connected to the second processing unit, wherein the first processing unit includes a first upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the second processing unit includes a second upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the first processing unit and the second processing unit are connected via the first upper layer communication unit, and the second processing unit and the physical layer communication unit are connected via the second upper layer communication unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 It is a schematic diagram illustrating the system configuration of the vehicle-mounted system according to the first embodiment.
[0009] Figure 2 This is a block diagram illustrating the internal structure of an in-vehicle device included in the in-vehicle system.
[0010] Figure 3 This is an explanatory diagram showing an example of a communication control table.
[0011] Figure 4 This is a flowchart illustrating the processing of the first processing unit and the second processing unit included in the vehicle-mounted device. DETAILED DESCRIPTION
[0012] [Problems to be Solved by the Present Disclosure]
[0013] In the vehicle-mounted ECU of Patent Document 1, when a plurality of applications are executed by a control unit included in the vehicle-mounted ECU, no consideration is given to efficiently performing processes related to communication executed in accordance with operations of these applications.
[0014] An object of the present disclosure is to provide an in-vehicle device or the like that can efficiently perform processes related to communication.
[0015] [Effects of the present disclosure]
[0016] According to one embodiment of the present disclosure, it is possible to provide an in-vehicle device or the like that efficiently performs processing related to communication.
[0017] [Description of Embodiments of the Present Disclosure]
[0018] First, the embodiments of the present disclosure will be described by way of examples. In addition, at least a part of the embodiments described below may be arbitrarily combined.
[0019] (1) A vehicle-mounted device according to one embodiment of the present invention is connected to a vehicle-mounted network installed in a vehicle, and the vehicle-mounted device comprises: a first processing unit; a second processing unit connected to the first processing unit; and a physical layer communication unit connected to the second processing unit, wherein the first processing unit includes a first upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the second processing unit includes a second upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the first processing unit and the second processing unit are connected via the first upper layer communication unit, and the second processing unit and the physical layer communication unit are connected via the second upper layer communication unit.
[0020] In this embodiment, the vehicle-mounted device has a plurality of processing units consisting of a first processing unit and a second processing unit, and these processing units (the first processing unit and the second processing unit) are, for example, composed of a microcomputer. The vehicle-mounted device, for example, has a physical layer communication unit such as a CAN (Control Area Network) transceiver and an Ethernet (Ethernet / registered trademark) PHY unit, and is connected to a vehicle-mounted network such as a CAN bus or an Ethernet cable via the physical layer communication unit. The first processing unit (the first microcomputer) and the second processing unit (the second microcomputer) each have an upper layer communication unit corresponding to a layer above the physical layer communication unit, and the upper layer communication unit is, for example, composed of a CAN controller. That is, the first processing unit has an upper layer communication unit (CAN controller), and the second processing unit has a second upper layer communication unit (CAN controller). When the vehicle-mounted device is connected to the vehicle-mounted network via the physical layer communication unit, the physical layer communication unit is connected to the second upper layer communication unit of the second processing unit, and the second processing unit is connected to the first upper layer communication unit of the first processing unit. Thus, the physical layer communication unit, the second processing unit (second upper layer communication unit) and the first processing unit (first upper layer communication unit) are connected in series with the vehicle network in sequence. Therefore, the first processing unit is connected to the physical layer communication unit and the vehicle network via the second processing unit, so that the second processing unit can be responsible for processing the communication data output from the first processing unit to be output to the vehicle network via the physical layer communication unit. By biasing the processing load related to communication control such as CAN control (aggregating the processing amount) to the second processing unit, communication-related processing can be performed efficiently. In the first processing unit, the processing load related to communication control such as CAN control can be reduced, and the first processing unit can be prevented from being occupied by communication control. In addition, the first processing unit can efficiently perform logical operation processing related to the vehicle control itself, such as processing based on AUTOSAR (realizing logical functions as a vehicle-mounted device).
[0021] (2) In the vehicle-mounted device according to one aspect of the present disclosure, the processing capability of the first processing unit is higher than the processing capability of the second processing unit.
[0022] In this method, since the processing capability of the first processing unit is higher than that of the second processing unit directly connected to the physical layer communication unit, the first processing unit can be effectively utilized by making the first processing unit with relatively high processing capability and high cost perform logic operation processing related to vehicle control itself, such as processing based on AUTOSAR. The second processing unit can be effectively utilized by making the second processing unit with relatively low processing capability and low cost perform communication control such as CAN control with high real-time performance but mainly based on I / O control. The processing undertaken (executed) by the first processing unit with high processing capability and high cost and the processing by the second processing unit with low processing capability and low cost are separated according to the type of operation processing, thereby making it possible to efficiently perform logic operation processing related to vehicle control and the like and processing related to communication control such as CAN control at the same time.
[0023] (3) In the in-vehicle device according to one aspect of the present disclosure, the first processing unit executes a plurality of programs related to control of the vehicle, and the second processing unit performs processing related to filtering of communication data output to the in-vehicle network among communication data generated by the first processing unit executing the programs.
[0024] In this method, the first processing unit generates communication data by executing a plurality of programs related to vehicle control, and outputs the generated communication data to the second processing unit. The second processing unit performs processing related to filtering the communication data output to the vehicle network via the physical layer communication unit among the communication data output from the first processing unit, thereby preventing unnecessary communication data (CAN messages, etc.) from being output (sent) from the vehicle-mounted device to the vehicle network. As a result, an increase in the communication volume (usage of the communication bandwidth) in the vehicle network can be suppressed.
[0025] (4) In the in-vehicle device according to one aspect of the present disclosure, the first processing unit is provided with a plurality of the first upper layer communication units, and the plurality of the first upper layer communication units are connected to a bus connection circuit included in the second processing unit.
[0026] In this method, the first processing unit has a plurality of first upper layer communication units, and the second processing unit has a bus connection circuit connected to each of these plurality of first upper layer communication units. Thus, the first processing unit and the second processing unit are connected by a plurality of paths based on the plurality of first upper layer communication units, so that the communication path between the first processing unit and the second processing unit can be redundant and the communication bandwidth can be increased, thereby ensuring the communication quality. The plurality of first upper layer communication units of the first processing unit are connected to the bus connection circuit included in the second processing unit, so that the bus connection circuit constructs a closed network (in-vehicle device CAN bus) inside the vehicle-mounted device. Thus, communication (inter-process communication) between programs (applications) performed only inside the vehicle-mounted device can be performed via the bus connection circuit (in-vehicle device CAN bus), and communication within the vehicle-mounted device can be efficiently performed without being affected by the communication status in the vehicle network outside the vehicle-mounted device.
[0027] (5) In the vehicle-mounted device according to one aspect of the present disclosure, the first processing unit executes a plurality of programs having different safety levels defined by ASIL, and the plurality of first upper layer communication units are divided according to the safety levels of the programs.
[0028] In this method, the first processing unit executes a plurality of programs with different safety levels defined by ASIL (Automotive Safety Integrity Level), and the communication data output by executing these programs is output to the second processing unit via any one of the plurality of first upper-layer communication units. These plurality of first upper-layer communication units are divided according to the safety level of the program, and are set to be allocated differently according to the safety level. That is, the plurality of first upper-layer communication units include: a first upper-layer communication unit (a high-level first upper-layer communication unit), to which communication data based on a program with a relatively high safety level is allocated; and a first upper-layer communication unit (a low-level first upper-layer communication unit), to which communication data based on a program with a relatively low safety level is allocated. In this way, in the plurality of first upper-layer communication units, by performing division (allocation of communication data) corresponding to the safety level of the program, the influence of the communication of the program with a high safety level on the communication of the program with a low safety level can be alleviated.
[0029] (6) In the vehicle-mounted device according to one aspect of the present disclosure, the second processing unit includes a filter unit that filters communication data output from the first processing unit via the bus connection circuit, and the filter unit is provided between the bus connection circuit and the second upper layer communication unit.
[0030] In this embodiment, the second processing unit includes a filter unit, which is provided between the bus connection circuit and the second upper layer communication unit. The second processing unit uses the filter unit to filter the communication data output from the first processing unit via the bus connection circuit. As a result, the vehicle-mounted device can efficiently perform processing related to the screening of communication data output to the vehicle-mounted network for the communication data generated and output by the first processing unit executing the program.
[0031] (7) In the vehicle-mounted device according to one aspect of the present disclosure, the second processing unit acquires a control signal output from the first processing unit, and performs filtering by the filtering unit based on the acquired control signal.
[0032] In this embodiment, when filtering the communication data output from the first processing unit, the second processing unit controls the filtering unit to perform filtering according to the control signal output from the first processing unit. By performing filtering corresponding to the control signal, communication data output to the vehicle network via the physical layer communication unit and communication data not output to the vehicle network can be efficiently screened from the communication data output from the first processing unit.
[0033] (8) In the vehicle-mounted device according to one aspect of the present disclosure, the first processing unit and the second processing unit each include an interface (I / F) for control signals, and the control signal interface is used to transmit and receive the control signal.
[0034] In this method, the control signal generating unit of the first processing unit generates a control signal indicating whether the communication data is a filtering object based on the communication data received (accepted) by the first upper layer communication unit, and outputs it to the control I / F of the second processing unit. The control signal generating unit of the first processing unit and the control I / F of the second processing unit function as control signal I / Fs when sending and receiving control signals, etc. between these functional parts. The control signal for performing the processing related to filtering is sent and received via the control signal I / Fs of the first processing unit and the second processing unit (the control signal generating unit of the first processing unit, the control I / F of the second processing unit), respectively, so that it is possible to prevent the first upper layer communication unit and the bus connection circuit, through which the communication data such as CAN messages flow, from being affected.
[0035] (9) A program according to one aspect of the present disclosure causes a computer to execute processing, the computer being connected to an in-vehicle network mounted on a vehicle, the computer comprising: a first processing unit; a second processing unit connected to the first processing unit; and a physical layer communication unit connected to the second processing unit, the first processing unit including a first upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the second processing unit including a second upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the first processing unit and the second processing unit being connected via the first upper layer communication unit, the second processing unit and the physical layer communication unit being connected via the second upper layer communication unit, wherein the program causes the first processing unit to execute the following processing: executing a plurality of programs related to control of the vehicle; and outputting communication data generated by executing the programs to the second processing unit via the first upper layer communication unit, and the program causes the second processing unit to execute the following processing: receiving the communication data output from the first processing unit; and filtering the communication data output to the in-vehicle network from the received communication data.
[0036] In this aspect, it is possible to provide a program that causes a computer to function as an in-vehicle device that efficiently performs processes related to communication.
[0037] (10) An information processing method according to one aspect of the present disclosure causes a computer to execute processing, the computer being connected to an in-vehicle network mounted on a vehicle, the computer comprising: a first processing unit; a second processing unit connected to the first processing unit; and a physical layer communication unit connected to the second processing unit, the first processing unit including a first upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the second processing unit including a second upper layer communication unit corresponding to an upper layer of the physical layer communication unit, the first processing unit and the second processing unit being connected via the first upper layer communication unit, the second processing unit and the physical layer communication unit being connected via the second upper layer communication unit, the information processing method causing the first processing unit to execute the following processing: executing a plurality of programs related to control of the vehicle; and outputting communication data generated by executing the programs to the second processing unit via the first upper layer communication unit, the information processing method causing the second processing unit to execute the following processing: receiving the communication data output from the first processing unit; and filtering the communication data output to the in-vehicle network from the received communication data.
[0038] In this aspect, it is possible to provide an information processing method that allows a computer to function as an in-vehicle device that efficiently performs processes related to communication.
[0039] [Details of the embodiments of the present disclosure]
[0040] The present disclosure is specifically described based on the drawings showing the embodiments of the present disclosure. Hereinafter, the vehicle-mounted device 1 of the embodiment of the present disclosure is described with reference to the drawings. In addition, the present disclosure is not limited to these examples, but is represented by the scope of the protection requested, and is intended to include the meaning equivalent to the scope of the protection requested and all changes within the scope.
[0041] (Implementation method 1)
[0042] Hereinafter, embodiments will be described based on the drawings. Figure 1 This is a schematic diagram illustrating a system configuration of an in-vehicle system S according to Embodiment 1. The in-vehicle system S is composed of an in-vehicle device 1 mounted on a vehicle C, an in-vehicle ECU 3 , a relay device 2 and an in-vehicle network 4 that connect these in a communicable manner.
[0043] The vehicle-mounted device 1 may be an integrated ECU that comprehensively controls the entire vehicle C. Alternatively, the vehicle-mounted device 1 may be configured as a body ECU that controls body-type actuators of the vehicle C. The vehicle-mounted device 1 may also be connected to vehicle-mounted devices such as sensors or actuators. Details of the vehicle-mounted device 1 will be described later.
[0044] The vehicle-mounted ECU 3 includes a processing unit, a storage unit, an input / output I / F, an in-vehicle communication unit, etc., and may also be connected to vehicle-mounted devices such as sensors or actuators. The vehicle-mounted ECU 3 performs processing related to the control of these vehicle-mounted devices. The vehicle-mounted ECU 3 may also be a separate ECU connected to a subordinate of the vehicle-mounted device 1 that functions as an integrated ECU.
[0045] The relay device 2 is composed of, for example, a CAN gateway or an Ethernet SW. The relay device 2 is connected to a plurality of communication lines 41 such as a CAN bus or an Ethernet cable, and relays communication data sent and received between the vehicle-mounted ECUs 3 connected to these communication lines 41, and between the vehicle-mounted device 1 and the vehicle-mounted ECU 3. The vehicle-mounted network 4 is composed of a plurality of communication lines 41 connected to the relay device 2. The vehicle-mounted device 1 and the vehicle-mounted ECU 3 are connected to each other via the vehicle-mounted network 4 in a manner that allows communication.
[0046] Figure 2 1 is a block diagram illustrating the internal structure of the vehicle-mounted device 1 included in the vehicle-mounted system S. The vehicle-mounted device 1 includes a first processing unit 100, a second processing unit 200, and a physical layer communication unit 300. The first processing unit 100, the second processing unit 200, and the physical layer communication unit 300 are connected, for example, by an internal bus or an inter-substrate wiring. When the vehicle-mounted device 1 is connected to the vehicle-mounted network 4, the physical layer communication unit 300, the second processing unit 200, and the first processing unit 100 are connected in series in this order from the vehicle-mounted network 4 side.
[0047] The first processing unit 100 (first microcomputer) may also be composed of a microcomputer having a higher processing capability than the second processing unit 200 (second microcomputer). The first processing unit 100 (first microcomputer) and the second processing unit 200 (second microcomputer) may be a single chip structure or a multi-chip structure. In the case of a single chip structure, the vehicle-mounted device 1 may also be constructed by integrating an eFPGA structure chip of an FPGA (second processing unit 200) in the microcomputer (first processing unit 100). In this way, the vehicle-mounted device 1 may also be constructed as a multi-processor system of a heterogeneous structure.
[0048] The first processing unit 100 (first microcomputer) is composed of, for example, a microcomputer, and efficiently performs, for example, logic operation processing related to the control of the vehicle C itself, such as processing based on AUTOSAR (realizing the logic function as the vehicle-mounted device 1). The first processing unit 100 includes a first control unit 101, a first storage unit 102, a first internal bus 103, a first upper layer communication unit 104, and a control signal generation unit 105. These first control unit 101, the first storage unit 102, the first upper layer communication unit 104, and the control signal generation unit 105 are connected to each other in a communicable manner via the first internal bus 103.
[0049] The first control unit 101 is composed of a CPU (Central Processing Unit) or an MPU (MicroProcessing Unit), and performs various control processes and calculation processes by reading and executing a control program P (program product) and data pre-stored in the first storage unit 102. The control unit includes, for example, a single CPU with a single core, multiple CPUs with a single core, a single CPU with multiple cores, and multiple CPUs with multiple cores.
[0050] The control program P may also include a plurality of programs (applications) of different safety levels defined by ASIL (Automotive Safety Integrity Level). The first control unit 101 executes these plurality of programs (applications) by using pipeline parallelism or the like, and performs logic operation processing related to the control of the vehicle C itself, such as processing based on AUTOSAR. The first control unit 101 outputs the communication data generated by executing these plurality of programs (applications) to the first upper layer communication unit 104 via the first internal bus 103.
[0051] The first storage unit 102 is composed of a volatile memory element such as a RAM (Random Access Memory), a non-volatile memory element such as a ROM (Read Only Memory), an EEPROM (Electrically Erasable Programmable ROM) or a flash memory, or a combination of these storage devices, and pre-stores a control program P (program product) and data referenced during processing. The control program P (program product) stored in the first storage unit 102 may also be stored as a control program P (program product) read from a recording medium M that can be read by the vehicle-mounted device 1. In addition, the control program P (program product) may be downloaded from an external computer not shown in the figure connected to a communication network not shown in the figure, and stored in the first storage unit 102. The communication control table described later may also be stored in the first storage unit 102.
[0052] The first internal bus 103 is composed of, for example, a substrate on which the first control unit 101 is mounted, or a pad or a conductive pattern formed on a microcomputer substrate constituting the first processing unit 100. The first control unit 101, the first storage unit 102, the first upper layer communication unit 104, and the control signal generation unit 105 are connected via the first internal bus 103 in a communicable manner.
[0053] The first upper layer communication unit 104 is, for example, a communication unit corresponding to a data link layer or the like which is a layer higher than the physical layer, such as a CAN controller or an Ethernet controller. In the present embodiment, the first processing unit 100 may also include more than two first upper layer communication units 104. These multiple first upper layer communication units 104 may also be divided according to the respective security levels of the programs (applications) executed by the first control unit 101. This division, i.e., the allocation of the first upper layer communication units 104 corresponding to the respective programs (applications), may also be defined in the communication control table described later.
[0054] The control signal generating unit 105 is, for example, a hardware processing unit composed of an arithmetic circuit body such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). Alternatively, the control signal generating unit 105 may also be a software processing unit composed of an MPU or the like as the first control unit 101. The control signal generating unit 105 obtains, monitors or samples the communication data generated and output by the first control unit 101 executing the program via the first internal bus 103. The control signal generating unit 105, for example, reads the communication control table stored in the first storage unit 102, determines whether it is necessary to filter the communication data output from the first control unit 101, and outputs the control signal (control request) to the control I / F 205 of the second processing unit 200 according to the determination result. The control signal may be, for example, SPI, I2C, UART or GPIO used on or between substrates on which the first processing unit 100 and the second processing unit 200 are installed. The control signal generating unit 105 functions as a control signal I / F for transmitting and receiving control signals and the like.
[0055] The second processing unit 200 (second microcomputer) is composed of, for example, a microcomputer, and mainly performs communication control such as CAN control, and performs processing related to filtering of communication data output from the vehicle-mounted device 1 to the vehicle-mounted network 4. The second processing unit 200 includes a second control unit 201, a second storage unit 202, a second internal bus 203, a second upper layer communication unit 204, a control I / F 205, a circuit control unit 206, a bus connection circuit 207, and a filter unit 208.
[0056] The second control unit 201, the second storage unit 202, the control I / F 205, and the circuit control unit 206 are connected in a communicative manner via the second internal bus 203. The circuit control unit 206 and the filter unit 208 are connected in a communicative manner via the internal bus. The bus connection circuit 207, the filter unit 208, and the second upper layer communication unit 204 are connected in series in this order in a communicative manner via the internal bus. The bus connection circuit 207 is connected in a communicative manner to each of the plurality of first upper layer communication units 104 included in the first processing unit 100 via the internal bus. The second upper layer communication unit 204 is connected in a communicative manner to the physical layer communication unit 300 via the internal bus. Therefore, in the flow direction of the communication data sent from the first processing unit 100 to the second processing unit 200, these functional parts are connected in series in the order of the first upper layer communication unit 104 of the first processing unit 100, the bus connection circuit 207 of the second processing unit 200, the filter unit 208, the second upper layer communication unit 204, and the physical layer communication unit 300. Thus, a communication circuit is formed from the first processing unit 100 to the physical layer communication unit 300 via the second processing unit 200 .
[0057] The second control unit 201 is composed of a CPU and the like as the first control unit 101, and performs various control processes and calculation processes by reading and executing the control program P (program product) and data pre-stored in the second storage unit 202. The second control unit 201 may also be configured as a simple processor having a lower processing capability than the first control unit 101. Alternatively, the second control unit 201 may also be configured by an FPGA and the like. The second control unit 201 obtains the control signal (control request) output from the first processing unit 100 (control signal generating unit 105) via the control I / F 205, performs processing such as interpretation of the obtained control signal, and performs processing for controlling the circuit control unit 206. The second control unit 201 may also generate a signal for controlling the circuit control unit 206 based on the control signal (control request) from the first processing unit 100 (control signal generating unit 105), and output the signal to the circuit control unit 206.
[0058] The second storage unit 202 is composed of RAM or ROM, etc., similarly to the first storage unit 102, and stores the control program P (program product) and data referenced during processing in advance. The storage capacity of the second storage unit 202 may also be smaller than the storage capacity of the first storage unit 102. Thus, the component cost of the second processing unit 200 can be reduced.
[0059] The second internal bus 203 is composed of, for example, a substrate on which the second control unit 201 is mounted, or a pad or a conductor pattern formed on a microcomputer substrate constituting the second processing unit 200. The second control unit 201, the second storage unit 202, the control I / F 205, and the circuit control unit 206 are connected via the second internal bus 203 in a communicable manner.
[0060] The control I / F 205 is an I / F that receives a control signal (control request) from the control signal generating unit 105 of the first processing unit 100, and functions as a control signal I / F when transmitting and receiving control signals, etc. The control I / F 205 may also transmit the received control signal (control request) to the second control unit 201 via the second storage unit 202 composed of a RAM, etc., or a unit using a control register.
[0061] The circuit control unit 206 is a functional unit that provides an interface to the communication circuit including the filter unit 208 etc. using a unit such as a register, etc. The circuit control unit 206 activates the filtering process of the filter unit 208 etc. under the control of the second control unit 201 .
[0062] The bus connection circuit 207 is composed of, for example, a circuit provided on a substrate on which the second control unit 201 is mounted, or a circuit provided on a microcomputer substrate constituting the second processing unit 200. Alternatively, the bus connection circuit 207 may be configured (implemented) as a logic circuit by programmable logic such as FPGA. The first upper layer communication unit 104 of the first processing unit 100 and the filter unit 208 of the second processing unit 200 are connected to the bus connection circuit 207, thereby functioning as an internal network of the vehicle-mounted device 1 (such as a CAN bus in the vehicle-mounted device 1).
[0063] The filter unit 208 is a functional part that performs filtering processing according to the control of the circuit control unit 206. The filter unit 208 may also include a communication unit corresponding to the data link layer such as a CAN controller and a filtering circuit. The communication unit corresponding to the data link layer may have the same structure as the second upper layer communication unit 204, or may be connected to the bus connection circuit 207. The communication unit included in the filter unit 208 may also control CAN communication in the substrate on which the first processing unit 100 and the second processing unit 200 are installed.
[0064] The filter unit 208 (filter circuit) may also be set to not filter the communication data output from the bus connection circuit 207 in a stable state, that is, in a state where the circuit control unit 206 is not being controlled, but to perform a transparent process of outputting to the second upper layer communication unit 204. Alternatively, the filter unit 208 may switch the filtering depending on the type of the control signal (control request) output from the first processing unit 100 (control signal that needs filtering, control signal that does not need filtering).
[0065] The second upper layer communication unit 204 is similar to the first upper layer communication unit 104, and is a communication unit corresponding to a data link layer or the like, such as a CAN controller or an Ethernet controller, which is a layer higher than the physical layer. The second upper layer communication unit 204 is provided between the filter unit 208 and the physical layer communication unit 300. The second upper layer communication unit 204 may also control CAN communication or the like outside the substrate on which the first processing unit 100 and the second processing unit 200 are mounted, that is, communication transmitted and received from the vehicle-mounted device 1 through the vehicle-mounted network 4.
[0066] The physical layer communication unit 300 is composed of, for example, a CAN transceiver corresponding to CAN or CAN-FD, or an Ethernet PHY unit corresponding to Ethernet, and is a communication unit corresponding to a communication line 41 (physical layer) such as a CAN bus or an Ethernet cable. The vehicle-mounted device 1 is connected to the vehicle-mounted network 4 via the physical layer communication unit 300, and is connected to the vehicle-mounted ECU 3 connected to the vehicle-mounted network 4 in a communicable manner. The physical layer communication unit 300 composed of a CAN transceiver or the like may also have a plurality of channels.
[0067] Figure 3 This is an explanatory diagram showing an example of a communication control table. The communication control table is stored in, for example, the first storage unit 102 of the first processing unit 100 (first microcomputer). The first control unit 101 and the control signal generation unit 105 included in the first processing unit 100 (first microcomputer) can also refer to the communication control table to perform various processes. The management items (fields) defined in the communication control table include, for example, program name, ASIL, communication data type, first upper layer communication unit No. (number), and whether filtering is required.
[0068] The program name management item stores the name (execution file name) of the program (application) executed by the first control unit 101. The ASIL management item stores an ASIL (Automotive Safety Integrity Level) value that defines the safety level of the program (application).
[0069] The management item of the communication data type stores a value indicating the type of communication data output by executing a program (application). The value indicating the type of communication data may be, for example, a message ID (CAN-ID) in CAN communication or a TCP port number in TCP / IP communication.
[0070] The management item of the first upper layer communication unit No. stores the device number of the first upper layer communication unit 104 assigned according to the security level of the program (application). In the present embodiment, the first processing unit 100 includes two first upper layer communication units 104 (CC-1, CC-2). In this case, the first upper layer communication unit 104 (CC-1) is assigned a program (application) having a higher security level than the first upper layer communication unit 104 (CC-2).
[0071] In the management item of whether filtering is necessary, it is defined whether the communication data output by executing the program (application) is a filtering target of the second processing unit 200 (filtering unit 208) (whether filtering is necessary). The communication data (communication data type) defined as requiring filtering corresponds to internal communication data that is not output to the in-vehicle network 4. The communication data (communication data type) defined as not requiring filtering corresponds to external communication data output to the in-vehicle network 4. By defining whether filtering is necessary based on the type of communication data or the name of the program (application), it is possible to efficiently perform processing related to screening of communication data output from the in-vehicle device 1 to the in-vehicle network 4.
[0072] Figure 4 The flowchart exemplifies the processing of the first processing unit 100 and the second processing unit 200 included in the vehicle-mounted device 1. The processing of the first processing unit 100 and the second processing unit 200 are related to each other, but the processing of the first processing unit 100 will be described first, and the processing of the second processing unit 200 will be described later.
[0073] The first processing unit 100 outputs communication data (S101). The first control unit 101 of the first processing unit 100 executes a plurality of programs (applications) in parallel, for example, using pipeline parallelism to execute logical operation processing related to the control of the vehicle C itself, such as processing based on AUTOSAR. The first control unit 101 of the first processing unit 100 generates communication data by executing these programs.
[0074] The first control unit 101 of the first processing unit 100 outputs the generated communication data to the first upper layer communication unit 104 allocated (divided) according to the safety level (ASIL: Automotive Safety Integrity Level) defined for each program via the first internal bus 103. The first control unit 101 of the first processing unit 100 may also determine the first upper layer communication unit 104 allocated according to the safety level defined for each program by referring to the communication control table stored in the first storage unit 102.
[0075] The communication data respectively output to the first upper layer communication unit 104 divided according to the security level of the program is output to the bus connection circuit 207 of the second processing unit 200. Thus, the first processing unit 100 communicates with the second processing unit 200. In addition, via the bus connection circuit 207 of the second processing unit 200, communication (inter-process communication) is performed between the plurality of first upper layer communication units 104 connected to the bus connection circuit 207.
[0076] The plurality of first upper layer communication units 104 are divided according to the security level of the corresponding programs, and communication data is sent and received between the plurality of first upper layer communication units 104 via the bus connection circuit 207, thereby performing communication (inter-process communication) between the plurality of programs executed in parallel by the first control unit 101. As a result, the bus connection circuit 207 of the second processing unit 200 can function as an internal network of the vehicle-mounted device 1 (the CAN bus within the vehicle-mounted device 1).
[0077] The first processing unit 100 determines whether the output communication data needs to be filtered (S102). The control signal generation unit 105 of the first processing unit 100, alone or in cooperation with the first processing unit 100, obtains, monitors or samples the communication data generated and output by the first control unit 101 executing the program via the first internal bus 103, and determines whether filtering by the bus connection circuit 207 is required.
[0078] The control signal generating unit 105 of the first processing unit 100 may also determine the communication data type of the communication data output from the first processing unit 100 when determining whether filtering is required. The control signal generating unit 105 of the first processing unit 100 may also determine whether filtering is required or not (whether filtering is required) for the determined communication data type by, for example, referring to the communication control table stored in the first storage unit 102.
[0079] When it is determined that filtering is necessary (S102: Yes), the first processing unit 100 outputs a control signal for causing the second processing unit 200 to perform filtering. (S103). When it is determined that the communication data output from the first processing unit 100 needs to be filtered, the control signal generation unit 105 of the first processing unit 100 generates a control signal (control request) for causing the second processing unit 200 to perform filtering, and outputs the generated control signal (control request) to the control I / F 205 of the second processing unit 200. The second control unit 201 of the second processing unit 200 obtains the control signal (control request) output from the control signal generation unit 105 of the first processing unit 100 via the control I / F 205.
[0080] After executing S103 or when it is determined that filtering is not necessary (S102: No), the first processing unit 100 performs a loop process to execute the process from S101 again. When it is determined that filtering is not necessary, the first processing unit 100 may output a control signal indicating that filtering is not necessary (a control signal for performing transparent processing on communication data).
[0081] The second processing unit 200 determines whether a control signal for performing filtering is obtained from the first processing unit 100 (T101). The second control unit 201 of the second processing unit 200 continues to wait for the control signal (control request) output from the control signal generating unit 105 of the first processing unit 100 via the control I / F 205, and determines whether a control signal is obtained from the control I / F 205. The control I / F 205 may also transmit the control signal (control request) to the second control unit 201 using the second storage unit 202 such as a control register or a RAM.
[0082] When it is determined that the control signal has been obtained (T101: Yes), the second processing unit 200 performs filtering (T102) on the communication data output from the first processing unit 100. When it is determined that the control signal (control signal for performing filtering) has been obtained, the second control unit 201 of the second processing unit 200 performs processing such as interpretation of the control signal and controls the circuit control unit 206.
[0083] The circuit control unit 206 controlled by the second control unit 201 activates the filtering function of the filtering unit 208 to filter the communication data output from the first processing unit 100. As a result, the communication data output from the first processing unit 100 to the second processing unit 200 is not output to the physical layer communication unit 300 but is discarded, and the communication data can be prevented from being output from the vehicle-mounted device 1 to the vehicle-mounted network 4.
[0084] When it is determined that the control signal has not been obtained (T101: No), the second processing unit 200 does not filter the communication data output from the first processing unit 100. The filter unit 208 is set to perform a transparent process of outputting to the second upper layer communication unit 204 without filtering the communication data output from the bus connection circuit 207 in a stable state, that is, in a state where the control signal is not input. Therefore, the communication data output from the first processing unit 100 to the second processing unit 200 is not filtered by the second processing unit 200, but is output from the second processing unit 200 to the physical layer communication unit 300, and is output to the in-vehicle network 4 via the physical layer communication unit 300. In addition, when the second processing unit 200 obtains a control signal indicating that filtering is not required (a control signal for transparently processing the communication data) from the first processing unit 100, it is not necessary to filter the communication data output from the first processing unit 100. After executing T101 or when determining that the control signal has not been acquired ( T101 : No), the second processing unit 200 performs a loop process in order to execute T101 again.
[0085] In the case where the filter unit 208 switches the filtering process according to the type of the control signal (control request) output from the first processing unit 100, the second control unit 201 may control the circuit control unit 206 and the filter unit 208 according to the type of the control signal. That is, in the case where the control signal from the first processing unit 100 is a control signal for performing filtering (a control signal requiring filtering), the second control unit 201 may control the circuit control unit 206 to make the filter unit 208 perform filtering. In the case where the control signal from the first processing unit 100 is a control signal indicating that filtering is not required (a control signal requiring no filtering), the second control unit 201 may control the circuit control unit 206 not to perform filtering by the filter unit 208 and to perform transparent processing on the communication data.
[0086] When CAN communication and other processing are performed by multiple applications (software), it is assumed that the communication unit such as the CAN controller or the CAN transceiver is shared or used by these multiple applications. On the other hand, it is also considered that a specific application (representative software) controls the communication unit as a representative, but in this case, there is a concern that the load of the control unit (CPU processing load) is concentrated due to the processing of the representative software, or the CPU core constituting the control unit is occupied.
[0087] In contrast, when the vehicle-mounted device 1 is composed of multiple processing units (microcomputers) based on these first processing units 100 (first microcomputer) and second processing units 200 (second microcomputer), applications (software) to be executed are allocated according to the processing capabilities of each processing unit, that is, a processing unit (second processing unit 200) with relatively low processing capabilities is allocated to communication control such as CAN control.
[0088] Thus, it is possible to prevent the processing unit (first processing unit 100) with high processing power from being occupied by communication control, and the processing efficiency of the program can be improved. In addition, in the vehicle-mounted device 1, the increase in the number of communication units such as CAN controllers can be suppressed, and the increase in component cost and product weight caused by such additional hardware can be suppressed. In addition, the communication between these multiple applications is carried out within the vehicle-mounted device 1, which can prevent unnecessary communication data (CAN messages, etc.) from being output (sent) from the vehicle-mounted device 1 to the vehicle-mounted network 4. In addition, it is possible to eliminate the need for software-based simulation of CAN signals, proxy sending, and other processing. In addition, by using the filter unit 208, only the required communication data (signal) can be selected and sent to the communication line 41 (vehicle-mounted network 4) such as the CAN bus, which can reduce the amount of communication in the vehicle-mounted network 4.
[0089] The embodiments disclosed this time should be considered as illustrative in all aspects and not restrictive. The scope of the present invention is indicated by the scope of claims rather than the above meanings, and is intended to include all modifications within the meaning and scope equivalent to the scope of claims.
[0090] Multiple claims recorded in the scope of the claim for protection can be combined with each other regardless of the form of reference. In the scope of the claim for protection, multiple dependent claims subordinate to multiple claims are recorded. In the scope of the claim for protection, multiple dependent claims subordinate to multiple dependent claims are not recorded, but multiple dependent claims subordinate to multiple dependent claims may also be recorded.
[0091] Description of Reference Numerals
[0092] C. Vehicle
[0093] S Car System
[0094] 1 Vehicle-mounted device
[0095] 100 First processing unit (first microcomputer)
[0096] 101 First Control Unit
[0097] 102 First storage unit
[0098] 103 First internal bus
[0099] 104 First upper layer communication unit
[0100] 105 Control signal generation unit (control signal I / F)
[0101] 200 Second processing unit (second microcomputer)
[0102] 201 Second Control Unit
[0103] 202 Second storage unit
[0104] 203 Second internal bus
[0105] 204 Second upper layer communication unit
[0106] 205 Control I / F (I / F for control signal)
[0107] 206 Circuit Control Department
[0108] 207 Bus connection circuit
[0109] 208 Filtration Department
[0110] 300 Physical Layer Communication Department
[0111] P Control Program (Program Product)
[0112] M Recording medium
[0113] 2 Relay device
[0114] 3. Vehicle ECU
[0115] 4 In-vehicle network
[0116] 41 Communication line
Claims
1. An in-vehicle device connected to an in-vehicle network mounted on a vehicle, comprising: a first processing unit; A second processing unit connected to the first processing unit; and A physical layer communication unit connected to the second processing unit; The first processing unit includes a first upper layer communication unit, the first upper layer communication unit corresponds to an upper layer of the physical layer communication unit, The second processing unit includes a second upper layer communication unit, the second upper layer communication unit corresponds to an upper layer of the physical layer communication unit, The first processing unit and the second processing unit are connected via the first upper layer communication unit, The second processing unit and the physical layer communication unit are connected via the second higher layer communication unit.
2. The vehicle-mounted device according to claim 1, in, The processing capability of the first processing unit is higher than that of the second processing unit.
3. The vehicle-mounted device according to claim 2, in, The first processing unit executes a plurality of programs related to the control of the vehicle, The second processing unit performs processing related to filtering of communication data to be output to the in-vehicle network, among the communication data generated by the execution of the program by the first processing unit.
4. The vehicle-mounted device according to claim 1, in, In the first processing unit, a plurality of the first upper layer communication units are provided. The plurality of first upper layer communication units are connected to a bus connection circuit included in the second processing unit.
5. The vehicle-mounted device according to claim 4, in, The first processing unit executes a plurality of programs, the plurality of programs having different safety levels defined by ASIL, The plurality of first upper layer communication units are divided according to security levels of programs.
6. The vehicle-mounted device according to claim 4 or 5, in, The second processing unit includes a filter unit that filters the communication data output from the first processing unit via the bus connection circuit. The filter unit is provided between the bus connection circuit and the second upper layer communication unit.
7. The vehicle-mounted device according to claim 6, in, The second processing unit obtains a control signal output from the first processing unit, The second processing unit performs filtering by the filtering unit according to the acquired control signal.
8. The vehicle-mounted device according to claim 7, in, The first processing unit and the second processing unit each include an interface for control signals, and the interface for control signals is used to transmit and receive the control signal.
9. A program that causes a computer to perform a process, The computer is connected to an in-vehicle network installed in the vehicle. The computer has: a first processing unit; A second processing unit connected to the first processing unit; and A physical layer communication unit connected to the second processing unit; The first processing unit includes a first upper layer communication unit, the first upper layer communication unit corresponds to an upper layer of the physical layer communication unit, The second processing unit includes a second upper layer communication unit, the second upper layer communication unit corresponds to an upper layer of the physical layer communication unit, The first processing unit and the second processing unit are connected via the first upper layer communication unit, The second processing unit and the physical layer communication unit are connected via the second upper layer communication unit, in, The program causes the first processing unit to execute the following processing: executing a plurality of programs related to control of the vehicle; and outputting communication data generated by executing the program to the second processing unit via the first upper layer communication unit; The program causes the second processing unit to execute the following processing: receiving the communication data output from the first processing unit; and Among the received communication data, communication data output to the in-vehicle network is screened.
10. An information processing method, causing a computer to perform processing, The computer is connected to an in-vehicle network installed in the vehicle. The computer has: a first processing unit; A second processing unit connected to the first processing unit; and A physical layer communication unit connected to the second processing unit; The first processing unit includes a first upper layer communication unit, the first upper layer communication unit corresponds to an upper layer of the physical layer communication unit, The second processing unit includes a second upper layer communication unit, the second upper layer communication unit corresponds to an upper layer of the physical layer communication unit, The first processing unit and the second processing unit are connected via the first upper layer communication unit, The second processing unit and the physical layer communication unit are connected via the second upper layer communication unit, in, The information processing method causes the first processing unit to perform the following processing: executing a plurality of programs related to control of the vehicle; and outputting communication data generated by executing the program to the second processing unit via the first upper layer communication unit; The information processing method causes the second processing unit to perform the following processing: receiving the communication data output from the first processing unit; and Among the received communication data, communication data output to the in-vehicle network is screened.
