Vehicle equipment control device
The in-vehicle equipment control device facilitates direct data transfer between ECUs using a middleware layer with rewritable mapping tables, addressing the need for software modifications and reducing development time.
Patent Information
- Application Number
- JP2020032213
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-02-27
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-02-27
AI Technical Summary
In conventional in-vehicle equipment control systems, changes in device connections or signal formats require significant software development efforts due to the need to modify application source code for API calls, increasing man-hours.
An in-vehicle equipment control device with a control unit, storage unit, and a middleware layer that includes a rewritable mapping table to define direct communication paths, allowing data exchange without traversing the application layer, thereby reducing the need for software modifications.
This approach enhances processing speed and significantly reduces software development time by enabling direct data transfer between ECUs without modifying application code.
Smart Images

Figure 0007567172000001 
Figure 0007567172000002 
Figure 0007567172000003
Abstract
Description
[Technical field]
[0001] The technology disclosed herein belongs to the technical field of in-vehicle device control devices. [Background technology]
[0002] In recent years, the development of autonomous driving systems has been promoted nationwide, and almost all actuators installed in vehicles are now electronically controlled. The control devices that control these actuators often have software structures that comply with the AUTOSAR (AUTomotive Open System ARchitecture) standard.
[0003] For example, Patent Document 1 discloses a method for bypassing an AUTOSAR software element in an AUTOSAR software system having a plurality of AUTOSAR software elements connected via a runtime environment. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2012-133786 A Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, in a hierarchical software architecture such as AUTOSAR, an application calls an API (Application Programming Interface) provided by a device driver for each peripheral and communicates with each I / O.
[0006] Here, for example, a situation is assumed in which a certain ECU (here, referred to as a first ECU) transfers transfer data acquired from an in-vehicle device via an I / O to another ECU (here, referred to as a second ECU) on an in-vehicle network. In the conventional technology, in the first ECU, the transfer data acquired from the I / O is input to an application, and the application executes a conversion process of the transfer data according to a communication protocol, and the transfer data is transferred to the second ECU based on an instruction from the application.
[0007] In that case, it is necessary to incorporate a data transfer program to the second ECU into the application program, and it is necessary to prepare a dedicated application, for example, as in the technology of Patent Document 1. In addition, when the port to which the device is connected changes, or when the signal format of the I / O of the device or the manner of information exchanged changes, it is necessary to change the source code related to the API call of the application, which increases the man-hours required for software development.
[0008] The technology disclosed herein has been made in consideration of the above points, and its purpose is to reduce the number of steps required for software development. [Means for solving the problem]
[0009] In order to solve the above-mentioned problems, the technology disclosed herein targets an in-vehicle equipment control device having a control unit and a memory unit for controlling in-vehicle equipment, and the control unit has, as a software configuration, an application layer in which an application for realizing various functions of the in-vehicle equipment is implemented, a device driver that converts commands received from the application into commands for hardware, and a middleware layer in which one or more first communication packets for exchanging data with the application and a plurality of second communication packets for exchanging data with the device driver are implemented, and the memory unit stores a rewritable internal mapping table that specifies the connection relationship between each of the first communication packets and the second communication packets, and a rewritable external mapping table that specifies a direct communication path between the first communication packet or the second communication packet and a communication network connected to the middleware layer, and in the middleware layer, a communication path is generated based on the internal mapping table and the external mapping table.
[0010] According to this aspect, when data acquired by the in-vehicle device control device is to be used by an in-vehicle device connected to a communication network connected to the middleware layer, data can be exchanged without going through an application, thereby improving the processing speed of the in-vehicle device control device. Furthermore, there is no need to prepare or run an application to change the destination of data acquired by the in-vehicle device. This allows the number of steps required for software development to be significantly reduced. Effect of the Invention
[0011] As described above, the technology disclosed herein can improve the processing speed of an in-vehicle device control device and can also significantly reduce the number of steps required for software development. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a vehicle control system. [Figure 2A] FIG. 1 is a diagram illustrating an example of the configuration of an in-vehicle device control device according to an embodiment. [Figure 2B] FIG. 1 is a diagram illustrating an example of the configuration of an in-vehicle device control device according to an embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of the configuration of an in-vehicle device control device of a comparative example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Exemplary embodiments will now be described in detail with reference to the drawings.
[0014] (Vehicle Control System) FIG. 1 is a diagram showing a configuration example of a vehicle control system. The vehicle control system of FIG. 1 is mounted on a vehicle 1 and includes a plurality of zone ECUs 40 arranged in each of predetermined zones of the vehicle 1, and a central processing unit 10 that controls the plurality of zone ECUs 40. In the vehicle control system of this embodiment, the vehicle 1 is divided into six zones, and a zone ECU 40 is provided in each zone. The zone ECU 40 is configured to be able to connect in-vehicle devices. In addition, the zone ECU 40 has a function as a network hub device that relays information transmitted via a network within the vehicle (hereinafter referred to as an in-vehicle network CNW). In this embodiment, the in-vehicle network CNW is a ring-shaped network that complies with the CAN protocol. Note that the communication method of the in-vehicle network CNW is not particularly limited, and the in-vehicle network CNW may be a network that complies with a communication protocol other than the CAN communication protocol (for example, the Ethernet (registered trademark) protocol).
[0015] In the following, for convenience of explanation, the zone ECU 40 arranged in the left front zone on the left front side of the vehicle 1 may be referred to as the first zone ECU 41, and the zone ECU 40 arranged in the left rear zone on the left rear side of the vehicle 1 may be referred to as the second zone ECU 42. The first zone ECU 41 and the second zone ECU 42 are connected by a CAN bus L2.
[0016] <In-vehicle equipment> The in-vehicle device 20 includes an input device including a sensor device 200 and a signal receiving device, and an actuator 300 .
[0017] <Sensor devices, signal receiving devices> The sensor device 200 includes, for example, (1) a plurality of cameras 201 provided on the body of the vehicle 1 and capturing images of the environment outside the vehicle, (2) a plurality of radars 202 provided on the body of the vehicle 1 and detecting targets outside the vehicle, (3) a position sensor (not shown) that detects the position of the vehicle 1 (vehicle position information) using a Global Positioning System (GPS), (4) a vehicle state sensor (not shown) that acquires the state of the vehicle 1 by using outputs from sensors that detect the behavior of the vehicle, such as a vehicle speed sensor, an acceleration sensor, and a yaw rate sensor, (5) an occupant state sensor that is configured by an in-vehicle camera 203 and the like and acquires the state of the occupant of the vehicle 1, (6) a driving operation sensor 206 that detects the driving operation of the driver, and (7) a sensor 211 for operating a keyless device (hereinafter referred to as a keyless sensor 211). The driving operation sensor 206 includes, for example, an accelerator opening sensor, a steering angle sensor, a brake oil pressure sensor, and the like. The keyless sensor 211 includes, for example, a receiving device that receives an unlock / lock signal from the keyless remote control 80, and a human sensor that detects when a driver carrying a key approaches or touches a door handle. The sensor device 200 also includes a switch that detects operations by an occupant. The switches include, for example, a door opening / closing switch 212 that allows the occupant to open and close an electric door, a switch for operating an electric power window, a washer level switch, a hood switch, and the like.
[0018] The signal receiving device includes, for example, a receiving device that receives signals from an external network or other vehicles.
[0019] Actuator The actuator 300 includes a drive system actuator, a steering system actuator, a braking system actuator, and the like. Examples of the drive system actuator include an engine, a transmission, and a motor. An example of the braking system actuator includes a brake. An example of the steering system actuator includes a steering wheel. The actuator 300 also includes, for example, a door lock device 301 for locking a side door, a door opening / closing device 302 for electrically opening and closing a door, a lighting control device 310 for controlling the lighting of the headlights FL, an airbag device 311, an audio device 312, and the like.
[0020] [In-vehicle device control device] The vehicle-mounted device control device 100 is mounted on one or more zone ECUs 40. That is, the vehicle-mounted device control device 100 may be mounted on all zone ECUs or on some of the zone ECUs. The vehicle-mounted device control device 100 may be mounted on (1) the central processing unit 10, or (2) a dedicated ECU (not shown) provided exclusively for each actuator and connected downstream of the zone ECU 40. An example of a dedicated ECU is an engine drive ECU for driving the engine. The central processing unit 10 and each ECU may be configured by a single IC (Integrated Circuit) or by multiple ICs.
[0021] 2A and 2B are block diagrams showing a configuration example of the in-vehicle device control device 100. The in-vehicle device control device 100 is configured with, for example, a CPU 150 (processor) and a memory 160. In this embodiment, the in-vehicle device control device 100 in FIG. 2A is mounted on the first zone ECU 41, and the in-vehicle device control device 100 in FIG. 2B is mounted on the second zone ECU 42. In FIGS. 2A and 2B, the basic configurations of the hardware and software of the in-vehicle device control device 100 are the same, and common components are denoted by common reference numerals. In addition, in the explanation of the configurations common to FIGS. 2A and 2B, they are collectively referred to as FIG. 2, and individual explanations may be omitted.
[0022] <CPU> The CPU 150 performs various processes by reading and executing the program 162 from the memory 160. Specifically, for example, the CPU 150 reads detection data detected by the sensor device 200, performs various arithmetic processes to realize various functions, and generates and outputs a control signal for controlling the actuator 300. The CPU 150 is an example of a control unit. Note that the specific form of the CPU 150 is not particularly limited. For example, the CPU 150 may be realized by a microcomputer (a so-called microcomputer) or by a SoC (System-on-Chip).
[0023] Hardware The CPU 150 includes, as its hardware configuration, a calculation section that executes various types of calculation processing according to programs stored in the memory 160, and a peripheral function unit 180. The peripheral here refers to the in-vehicle device 20 that is used in combination with the central processing unit 10 and / or the zone ECU 40.
[0024] The peripheral function unit 180 includes one or more peripheral function units 181 for causing the peripheral, that is, the in-vehicle device 20, to function. As shown in FIG. 2, the peripheral function unit 181 includes, for example, an analog-to-digital converter 181a (hereinafter, referred to as ADC 181a), a digital input unit 181b, a digital output unit 181c, and a PWM control unit 181d. Note that the peripheral function unit 181 may include some of the configurations 181a to 181d in FIG. 2, or may include other configurations. Note that, in the following description, when the peripheral functions of the ADC 181a, the digital input unit 181b, the digital output unit 181c, and the PWM control unit 181d are not particularly distinguished from one another, they will simply be referred to as the peripheral function unit 181.
[0025] Each of the peripheral function units 181 has a plurality of channels. Each channel is configured so that an input / output unit (for example, a connector for I / O connection) of the in-vehicle device 20 can be connected to it. FIG. 2 shows an example in which the ADC 181a is provided with input channels CHa1 and CHa2, the digital input unit 181b is provided with input channels CHb1 and CHb2, the digital output unit 181c is provided with output channels CHc1 and CHc2, and the PWM control unit 181d is provided with output channels CHc1 and CHc2. The number of channels is not limited to two, and may be three or more. A single peripheral function unit 181 may be provided with both input and output channels.
[0026] "software" The CPU 150 has, as a software configuration, a top application layer 120, a middleware layer 130 below the application layer, and a device driver layer 140 below the middleware layer 130. The CPU 150 may adopt a software structure that complies with so-called AUTOSAR. In this case, the application layer 120 corresponds to the application layer of AUTOSAR, and is composed of, for example, one or more SWC (Software Component) modules. Moreover, the middleware layer 130 and the device driver layer 140 correspond to BSW (Basic Software), and the device driver layer 140 corresponds to MCAL (Microcontroller Abstraction Layer). The middleware layer 130 may be implemented as a Complex Driver.
[0027] The application layer 120 implements applications 121 for implementing various functions for the in-vehicle device 20. A well-known configuration can be adopted for the applications 121. A specific example of the applications 121 will be described later.
[0028] The device driver layer 140 implements a device driver unit 141 that converts commands received from the application 121 into commands for the hardware.
[0029] The device driver unit 141 is implemented with a device driver for each peripheral function unit 181 included in the peripheral function unit 180. As described above, in the example of FIG. 2, the peripheral function unit 181 includes the ADC 181a, the digital input unit 181b, the digital output unit 181c, and the PWM control unit 181d. Thus, the device driver unit 141 includes an ADC driver 141a which is a device driver for the ADC 181a, a DIO driver 141b which is a device driver for the digital input unit 181b and the digital output unit 181c, and a PWM driver 141d which is a device driver for the PWM control unit 181d. That is, the ADC driver 141a is connected to the ADC 181a, the DIO driver 141b is connected to the digital input unit 181b and the digital output unit 181c, and the PWM driver 141d is connected to the PWM control unit 181d.
[0030] The device driver unit 141 also includes a communication driver 141e for connecting to the in-vehicle network CNW. The communication driver 141e complies with the communication protocol of the in-vehicle network CNW. For example, when the in-vehicle network is configured to comply with the CAN (Controller Area Network) protocol, a CAN driver is provided as the communication driver 141e. Note that the communication protocol of the in-vehicle network to which the technology of the present disclosure can be applied is not limited to CAN, and may be another communication protocol such as Ethernet.
[0031] A device driver is a piece of software that is dependent on hardware. Generally, software that is not dependent on hardware (such as an operating system) is also implemented in the device driver layer 140, but since this has little relevance to the present invention, illustrations and explanations of this are omitted in this embodiment.
[0032] The middleware layer 130 implements a mapping module 134 that includes one or more first communication packets 131 for exchanging data with the application 121, one or more second communication packets 132 for exchanging data with the device driver, and an external communication packet 133 for exchanging data with the in-vehicle network.
[0033] 2, IO_1, IO_2, ... IO_X (X is a natural number) are implemented as the first communication packet 131. As the second communication packet 132, (1) ADC_1, ADC_2, ... ADC_L (L is a natural number) for exchanging data with the ADC driver 141a, (2) DI_1, DI_2, ... DI_M (M is a natural number) and DO_1, DO_2, ... DO_N (N is a natural number) for exchanging data with the DIO driver 141b, and (3) PWM_1, PWM_2, ... PWN_Q (Q is a natural number) for exchanging data with the PWM driver 141d are implemented. As the external communication packet 133, SIG_A and SIG_B are implemented.
[0034] Here, the external communication packet 133 has a packet configuration suitable for the in-vehicle network CNW in order to transfer data to the in-vehicle network. For example, when the in-vehicle network CNW is a CAN, the communication packets SIG_A and SIG_B are configured to be able to communicate with other zone ECUs 40 and the central processing unit 10 in accordance with the CAN communication protocol via the communication driver 141e. More specifically, the communication packets SIG_A and SIG_B are subjected to data processing such as size adjustment processing and format conversion of data acquired from the sensor device 200 in order to create a data frame of the "standard format" or "extended format" of CAN communication, and then stored. The size adjustment processing and data processing may be defined in the code area 161, for example, or may be stored in the data area 165 in a rewritable format, for example.
[0035] Although not specifically shown, in FIG. 2, there are the following connection relationships. The communication packet ADC_1 is connected to the channel CHa1 of the ADC 181a, and the communication packet ADC_2 is connected to the channel CHa2 of the ADC 181a. The communication packet DI_1 is connected to the channel CHb1 of the digital input unit 181b, and the communication packet DI_2 is connected to the channel CHb2 of the digital input unit 181b. The communication packet DO_1 is connected to the channel CHc1 of the digital output unit 181c, and the communication packet DO_2 is connected to the channel CHc2 of the digital output unit 181c. The communication packet PWM_1 is connected to the channel CHd1 of the PWM control unit 181d, and the communication packet PWM_2 is connected to the channel CHd2 of the PWM control unit 181d.
[0036] The mapping module 134 generates a communication path between the application layer 120 and the device driver based on the internal mapping table 166a stored in the memory 160. Also, based on the external mapping table 166b, the mapping module 134 generates a communication path between the first communication packet 131 or the second communication packet 132 and the external communication packet 133. An example of generating individual communication paths will be described later.
[0037] Although not shown, a runtime environment (RTE) may be implemented in the middleware layer 130 between the application layer 120 and the mapping module 134. The runtime environment is configured to abstract and connect the application 121 and the software implemented in the device driver layer 140.
[0038] Memory The memory 160 includes, as storage areas, a code area 161 in which a program 162 for operating the CPU 150 is stored, and a rewritable data area 165 in which data such as the processing results of the CPU 150 and a mapping table 166 is stored.
[0039] Code Area In the code area, for example, a program 162 created in advance in the design stage of the in-vehicle device control device 100 is compiled and implemented. For example, in the case of Fig. 2A, the code area 161 of the first zone ECU 41 stores the program 162 for operating the application 121 of the first zone ECU 41. For example, in the case of Fig. 2B, the code area 161 of the second zone ECU 42 stores the program 162 for operating the application 121 of the second zone ECU 42.
[0040] In this embodiment, the first zone ECU 41 does not use the outputs of the keyless sensor 211 and the door opening / closing switch 212. Therefore, the code area 161 of the first zone ECU 41 does not include processing related to the control of the actuator 300 based on the keyless sensor 211 and the door opening / closing switch 212. The same applies to FIG. 3 described later. On the other hand, the second zone ECU 42 controls the left side door using the detection result of the first zone ECU 41. Therefore, the code area 161 of the second zone ECU 42 stores a program for acquiring input data of the detection result of the keyless sensor 211 and the operation result of the door opening / closing switch 212, and a control program for the door lock device 301 and the door opening / closing device 302 based on the input data.
[0041] Data Area As described above, the data area 165 stores the mapping table 166. The mapping table 166 includes an internal mapping table 166a and an external mapping table 166b. For the sake of convenience, the internal mapping table 166a and the external mapping table 166b are defined separately to facilitate understanding of the invention, but the two mapping tables 166a and 166b do not need to be clearly separated as data or data areas. For example, the internal mapping table 166a and the external mapping table 166b may be arranged in a mixed manner or arranged in a mixed manner in the data area 165. Furthermore, information on both the internal mapping table 166a and the external mapping table 166b may be included for a single unit of data (for example, a single program code).
[0042] The internal mapping table 166a is a table that specifies the connection relationship between the first communication packet 131 and the second communication packet 132. More specifically, for example, when there are a plurality of first communication packets 131 and a plurality of second communication packets 132, the communication packets to be connected are specified. In the case of FIG. 2A, it is specified that the connection target of the communication packet IO_1 is the communication packet ADC_1, and the connection target of the communication packet IO_2 is the communication packet DI_2. In the case of FIG. 2B, it is specified that the connection target of the communication packet IO_3 is the communication packet DO_1, and the connection target of the communication packet IO_X is the communication packet PWM_1. Note that either the first communication packet 131 or the second communication packet 132 may be a single packet.
[0043] The external mapping table 166b is a table that specifies a direct communication path between the first communication packet 131 or the second communication packet 132 and the in-vehicle network CNW. More specifically, a communication path between the first communication packet 131 or the second communication packet 132 and the external communication packet 133 is specified. In the case of FIG. 2A, it is specified that the connection target of the communication packet IO_1 is the communication packet SIG_A, and the connection target of the communication packet IO_2 is the communication packet SIG_B. In the case of FIG. 2B, it is specified that the connection target of the communication packet IO_1 is the communication packet SIG_A, and the connection target of the communication packet IO_2 is the communication packet SIG_B.
[0044] [Example of operation of the in-vehicle device control device] Next, an example of the operation of the in-vehicle device control device 100 will be described with reference to Figs. 2A and 2B. As described above, the in-vehicle device control device 100 in Fig. 2A is mounted on the first zone ECU 41, and the in-vehicle device control device 100 in Fig. 2B is mounted on the second zone ECU 42. The communication packets SIG_A and SIG_B of the first zone ECU 41 and the second zone ECU 42 are configured to transmit and receive communication packets to and from the corresponding communication packets SIG_A and SIG_B mounted on the other ECU via the in-vehicle network CNW between the first zone ECU 41 and the second zone ECU 42. Well-known techniques can be applied to bidirectional communication (mutual data transmission and reception) between the communication packets SIG_A and SIG_B. Specifically, for example, when the in-vehicle network is CAN communication, communication packets are periodically transmitted regardless of the presence or absence of data, or communication packets are transmitted in response to a predetermined trigger. The above communication packets SIG_A and SIG_B can support both of these, and are configured to support such packet communication.
[0045] The first zone ECU 41 is connected to a sensor device 200 and an actuator 300 that are mainly arranged in the left front zone of the vehicle 1. FIG. 1 shows an example in which a camera 201 that captures an image of the left side of the vehicle, a keyless sensor 211, and a door opening / closing switch 212 are connected to the first zone ECU 41. As shown in FIG. 2A, the keyless sensor 211 is connected to a channel CHa1 of the ADC 181a, and the door opening / closing switch 212 is connected to a channel CHa2 of the digital input unit 181b. In FIG. 2A, the camera 201 is not shown.
[0046] The second zone ECU 42 is connected to a sensor device 200 and an actuator 300 mainly disposed in the left rear zone of the vehicle 1. FIG. 1 shows an example in which a radar 202 for detecting an obstacle at the left rear of the vehicle, a door lock device 301 for locking a left side door, a door opening / closing device 302 for automatically opening and closing the left side door, and an acoustic device 312 are connected to the second zone ECU 42. As shown in FIG. 2B, the door lock device 301 is connected to a channel CHc1 of the digital output unit 181c, and the door opening / closing device 302 is connected to a channel CHd1 of the PWM control unit 181d. In FIG. 2B, the radar 202 and the acoustic device 312 are omitted from illustration.
[0047] First, the readout process of the keyless sensor 211 in the first zone ECU 41 in Fig. 2A will be described. When a detection signal from the keyless sensor 211 is received from the channel CHa1, the detection signal is transmitted to the mapping module 134 as a communication packet ADC_1 via the ADC driver 141a. In the mapping module 134, first, the internal mapping table 166a is applied, and the communication packet ADC_1 is transmitted to a communication packet IO_1. Next, the external mapping table 166b is applied, and the communication packet IO_1 is transmitted to a communication packet SIG_A. As described above, the communication packet SIG_A of the first zone ECU 41 is configured to transmit data to the communication packet SIG_A of the second zone ECU 42 via the communication driver 141e.
[0048] Next, the read process of the door opening / closing switch 212 in the first zone ECU 41 of FIG. 2A will be described. When a detection signal from the door opening / closing switch 212 is received from the channel CHb2, the detection signal is transmitted to the mapping module 134 as a communication packet DI_2 via the DIO driver 141b. In the mapping module 134, first, the internal mapping table 166a is applied, and the communication packet DI_2 is transmitted to the communication packet IO_2. Next, the external mapping table 166b is applied, and the communication packet IO_2 is transmitted to the communication packet SIG_B. As described above, the communication packet SIG_B of the first zone ECU 41 is configured to transmit data to the communication packet SIG_B of the second zone ECU 42 via the communication driver 141e.
[0049] In this manner, the detection signal of the keyless sensor 211 and the detection signal of the door opening / closing switch 212 are transmitted to the second zone ECU 42 without going through the application 121 of the first zone ECU 41.
[0050] In the second zone ECU 42 of FIG. 2B, when the detection signal of the keyless sensor 211 is received from the first zone ECU 41, the received signal is stored in a communication packet SIG_A via the communication driver 141e. In the mapping module 134, the external mapping table 166b is applied first, and the communication packet SIG_A is transmitted to a communication packet IO_1. The communication packet IO_1 is read by the application 121. In the application 121 of the second zone ECU 42, a command for locking / unlocking the door lock device 301 is packetized based on the detection signal of the keyless sensor 211 received from the first zone ECU 41, and transmitted to the mapping module 134 as a communication packet IO_3. In the mapping module 134, the internal mapping table 166a is applied. As described above, in the internal mapping table 166a, the communication packet IO_3 is connected to the communication packet DO_1. As a result, the DIO driver 141b operates based on the command of the application 121, and the door lock device 301 is locked or unlocked.
[0051] Similarly, when the second zone ECU 42 in FIG. 2B receives a detection signal of the door opening / closing switch 212 from the first zone ECU 41, the received signal is stored in a communication packet SIG_B via the communication driver 141e. In the mapping module 134, the external mapping table 166b is applied first, and the communication packet SIG_B is transmitted to a communication packet IO_2. The communication packet IO_2 is read by the application 121. In the application 121 of the second zone ECU 42, a command for the opening / closing process of the left side door is packetized based on the detection signal of the opening / closing switch 212 received from the first zone ECU 41, and transmitted to the mapping module 134 as a communication packet IO_4. In the mapping module 134, the internal mapping table 166a is applied. As described above, in the internal mapping table 166a, the communication packet IO_4 is connected to the communication packet PWM_1. As a result, the PWM driver 141d operates based on the command of the application 121, the door opening / closing device 302 is driven, and the opening / closing control of the left side door is executed. In the above embodiment, the communication packet SIG_B is transmitted to the communication packet IO_2 and read by the application 121, but the present invention is not limited to this. For example, the mapping module 134 may transmit the communication packet SIG_B to the communication packet PWM_1 without the application 121, and transmit the communication packet SIG_B from the communication packet PWM_1 to the PWM driver 141d. When performing such a process without the application 121, the application layer 120 may be eliminated from the zone ECU 40. In this case, a mapping table may be prepared to eliminate the first communication packet 131 and connect the external communication packet 133 and the second communication packet 132, and routing may be executed based on the mapping table.
[0052] Comparative Example Fig. 3 shows a comparative example with the configuration of Fig. 2A. Note that the last two digits or the last two digits and the code following them are the same for configurations common to Fig. 2A and Fig. 3. For example, the in-vehicle device control device 500 corresponds to the in-vehicle device control device 100.
[0053] In Fig. 3, a single communication packet is implemented as the middleware layer 530. Also, the application 121 is directly connected to a communication driver 541e for performing CAN communication. The other configurations are the same as those in Fig. 2A.
[0054] 3, processing contents for operating the CPU 550 are implemented in a code area 561. In the program 562, a connection channel in the peripheral function unit 181 is also set for a communication packet in the middleware layer 530 that transmits each processing content. With such a configuration, it is possible to realize the same operation as in the above embodiment.
[0055] 3, the detection signal of the keyless sensor 211 input from the channel CHa1 to the ADC 581a is input to the application 521 via the ADC driver 541a and the communication packet ADC_1. Then, the detection signal of the keyless sensor 211 is output from the application 521 to the in-vehicle network CNW via the communication driver 541e. Similarly, the detection signal of the door opening / closing switch 212 input from the channel CHb2 to the digital input unit 581b is input to the application 521 via the DIO driver 541b and the communication packet DI_2, and the detection signal of the door opening / closing switch 212 is output from the application 521 to the in-vehicle network CNW via the communication driver 541e.
[0056] As described above, in the in-vehicle device control device 100 of the present embodiment, the CPU 150 has, as a software configuration, the application layer 120, the middleware layer 130, and the device driver unit 141. The middleware layer 130 is equipped with a first communication packet 131 for exchanging data with an application, and a second communication packet 132 for exchanging data with a device driver. The memory 160 stores a rewritable internal mapping table 166a that defines a connection relationship between the first communication packet 131 and the second communication packet 132, and a rewritable external mapping table 166b that defines a direct communication path between the first communication packet 131 or the second communication packet 132 and the in-vehicle network CNW connected to the middleware layer 130. In the middleware layer 130, a communication path between each communication packet and the in-vehicle network CNW is generated in a closed form in the middleware layer 130 without going through the application 121, based on the internal mapping table 166a and the external mapping table 166b.
[0057] As a result, for example, when data obtained by an in-vehicle device 20 (e.g., the sensor device 200) connected to the first zone ECU 41 is to be used by another zone ECU 40 (e.g., the second zone ECU 42) connected to the in-vehicle network CNW, the data can be sent to the in-vehicle network CNW in the first zone ECU 41 without any modification in the program code of the application 121. Also, as described above, when acquired data obtained by the zone ECU 40 is to be used by another zone ECU 40 connected to the in-vehicle network CNW, it is not necessary to prepare or execute the application 121 to change the destination of the acquired data. This can simplify the software design process and verification process, and can significantly reduce the number of software development steps. Also, since data can be exchanged between the zone ECUs 40 without going through the application 121, the processing speed of the in-vehicle device control device 100 can be improved.
[0058] The technology disclosed herein is not limited to the above-mentioned embodiment, and can be substituted within the scope of the claims. The above-mentioned embodiment is merely an example, and should not be interpreted as limiting the scope of the present disclosure. The scope of the present disclosure is defined by the claims, and all modifications and changes that fall within the scope of the claims are within the scope of the present disclosure.
[0059] For example, in the above embodiment, the external mapping table 166b specifies the connection relationship between the external communication packet 133 and the first communication packet 131, but this is not limiting. For example, the external mapping table 166b may specify the connection relationship between the components of the external communication packet 133 and the components of the second communication packet 132. Furthermore, the external mapping table 166b may specify both the connection relationship between the components of the external communication packet 133 and the components of the first communication packet 131 and the connection relationship between the components of the external communication packet 133 and the components of the second communication packet 132. [Industrial Applicability]
[0060] The technology disclosed herein is useful for designing an in-vehicle device control device. [Explanation of symbols]
[0061] 100 Vehicle-mounted equipment control device 120 Application Layer 121 Applications 130 Middleware Layer 131 First communication packet 132 Second communication packet 141a ADC driver (device driver) 141b DIO driver (device driver) 141d PWM driver (device driver) 150 CPU (control unit) 160 Memory (storage section) 166a Internal Mapping Table 166b External Mapping Tables
Claims
[Claim 1] An in-vehicle device control device including a control unit and a storage unit for controlling an in-vehicle device, The control unit has a software configuration as follows: an application layer in which applications for implementing various functions of the in-vehicle device are implemented; a device driver layer including a device driver unit that converts commands received from an application into commands for hardware, the device driver unit including a device driver for a peripheral function unit that functions the in-vehicle device, and a communication driver for connecting to an in-vehicle network; a middleware layer including one or more first communication packets for exchanging data with the application, a plurality of second communication packets for exchanging data with the device driver for the peripheral function unit, and an external communication packet for exchanging data with the in-vehicle network; having The storage unit includes a code area in which a program for operating the control unit is stored, and a data area; a rewritable internal mapping table that specifies a connection relationship between each of the first communication packets and the second communication packets, and a rewritable external mapping table that specifies a direct communication path between the first communication packet or the second communication packet and the external communication packet, In the middleware layer, a communication path is generated based on the internal mapping table and the external mapping table, and a communication path between the first communication packet or the second communication packet and the external communication packet is generated without going through the application layer.
Citation Information
Patent Citations
Communication method between ECUs (Electronic Control Units) based on message forwarding
CN102594685B
Information processor, method, and program
JP2006031607A
Method of bypassing autosar software component of autosar software system
JP2012133786A
Vehicle control device
JP2013171547A
On-vehicle communication system
US20100114403A1
