Vehicle-mounted device control device and vehicle control system

The in-vehicle equipment control device with a middleware layer for physical quantity conversion addresses the need for code rewriting in AUTOSAR architectures, reducing software development time by adapting to equipment changes without code modifications.

JP7567171B2Active Publication Date: 2024-10-16MAZDA MOTOR CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020032209
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

Technical Problem

In hierarchical software architectures like AUTOSAR, changes in vehicle equipment require rewriting application code for physical quantity conversion processing, leading to increased software development and verification steps.

Method used

An in-vehicle equipment control device with a control unit and storage unit, featuring a middleware layer with a physical quantity conversion module that converts data according to predetermined rules, allowing changes in vehicle models without modifying application code.

Benefits of technology

Significantly reduces the number of man-hours required for software development by enabling simple rewriting of conversion rules in response to changes in vehicle equipment characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007567171000001
    Figure 0007567171000001
  • Figure 0007567171000002
    Figure 0007567171000002
  • Figure 0007567171000003
    Figure 0007567171000003
Patent Text Reader

Abstract

To reduce software development man-hours when deploying vehicle models.SOLUTION: In an on-vehicle apparatus control device 100, a control unit 150 includes an application layer 120 in which an application 121 of an on-vehicle apparatus 20 is implemented, a device driver, and a middleware layer 130 that generates a communication path between the application 121 and the device driver, as a configuration of software. The middleware layer 130 includes a physical quantity conversion module 135 that converts physical quantity data included in data transmitted on the communication path according to a predetermined conversion rule.SELECTED DRAWING: Figure 2A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The technology disclosed herein belongs to the technical field of in-vehicle device control devices and vehicle control systems. [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 control system having a software structure conforming to the AUTOSAR standard, in which communication data contains information indicating the sender, receiver, and type of data in advance, and in the application layer, a communication interface service selected according to the layer of the other party as recognized by the sender or receiver and the type of data is applied to the communication data. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2017-105362 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, when an in-vehicle device connected to the I / O is changed, the characteristics of the signal change relative to the change in the acquired physical quantity may change. In such a case, it is necessary to rewrite the application code to perform the conversion process of the physical quantity. In that case, it is necessary to recompile the application program and replace the data in the memory, which increases the number of steps for software development and verification.

[0007] 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]

[0008] In order to solve the above problems, the technology disclosed herein targets an in-vehicle equipment control device including a control unit for controlling in-vehicle equipment and a memory unit, 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 that generates a communication path between the application and the device driver, and the middleware layer is configured to include a physical quantity conversion module that converts physical quantity data included in data transmitted over the communication path in accordance with a predetermined conversion rule.

[0009] According to this aspect, even if the characteristics of the on-board devices connected to the on-board device control device change due to a change in the on-board devices, the change in characteristics can be accommodated by simply rewriting the conversion rules of the physical quantity conversion module without modifying the program code of the application. This makes it possible to significantly reduce the number of software development steps when changing vehicle models or expanding the vehicle model range.

[0010] In addition, the technology disclosed herein is directed to a vehicle control system that includes a plurality of zone ECUs arranged in each specified zone of the vehicle and a central processing unit that controls the plurality of zone ECUs, and one or more of the zone ECUs include an on-board equipment control device of the above-mentioned aspect.

[0011] When multiple zone ECUs are installed in a vehicle and managed by a central processing unit, the on-board devices are connected to the zone ECUs. At this time, the on-board devices may be changed, but by using the configuration of this aspect, the software development man-hours can be significantly reduced for both the central processing unit and the zone ECUs. Effect of the Invention

[0012] As described above, according to the technique disclosed herein, it is possible to significantly reduce the number of steps required for software development when expanding vehicle models. [Brief description of the drawings]

[0013] [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. 13 is a diagram for explaining a physical quantity conversion rule. [Figure 4A] FIG. 2 is a diagram illustrating an example of the configuration of an in-vehicle device control device of a comparative example. [Figure 4B] 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

[0014] Exemplary embodiments will now be described in detail with reference to the drawings.

[0015] (Vehicle Control System) FIG. 1 is a diagram showing an example of a configuration 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. The zone ECU 40 also has a function as a network hub device that relays information transmitted via a network within the vehicle. 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 a first zone ECU 41.

[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 acquires the state of the occupant of the vehicle 1 by using an in-vehicle camera 203, (6) a driving operation sensor 206 that detects the driving operation of the driver, (7) a sensor 211 for operating a keyless device (hereinafter referred to as a keyless sensor 211), and (8) a room temperature sensor 220 that measures the temperature inside the vehicle. The driving operation sensor 206 includes, for example, an accelerator opening sensor, a steering angle sensor, and a brake oil pressure sensor. The sensor device 200 also includes a switch that detects an operation by an occupant. The switch includes, for example, a PW switch 212 for the occupant to operate 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, an electric power window device 302, a lighting control device 310 for controlling lighting of the headlights FL, an airbag device 311, an audio device 312, an air conditioner device 320, and the like.

[0020] [In-vehicle device control device] The in-vehicle device control device 100 is mounted on one or more zone ECUs 40. That is, the in-vehicle device control device 100 may be mounted on all zone ECUs 40 or on some of the zone ECUs 40. The in-vehicle device control device 100 may be mounted on (1) the central processing unit 10, or on (2) a dedicated ECU (not shown) provided exclusively for each actuator and connected downstream of the zone ECU 40. An example of the 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 is a block diagram showing an example of the configuration of the in-vehicle device control device 100. The in-vehicle device control device 100 is configured with a CPU 150 (processor) and a memory 160, for example.

[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. 2A, 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. 2A, 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. 2A 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. Note that the number of channels in each of the peripheral function units 181 is not limited to two, and may be three or more. Also, 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 basic software 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. The basic software layer 140 and the middleware layer 130 correspond to the BSW (Basic Software) of AUTOSAR, and the basic software layer 140 corresponds to the MCAL (Microcontroller Abstraction Layer) of AUTOSAR. The middleware layer 130 may be implemented as a Complex Driver.

[0027] The application layer 120 implements applications 121 in which various functions for the in-vehicle device 20 are implemented. A well-known configuration can be adopted for the applications 121. A specific example of the applications 121 will be described later.

[0028] The basic software layer 140 is implemented with a device driver unit 141 that converts a command received from the application 121 into a command for hardware. 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. 2A, the peripheral function unit 181 includes an ADC 181a, a digital input unit 181b, a digital output unit 181c, and a PWM control unit 181d. Thus, the device driver unit 141 includes an ADC driver 141a that is a device driver for the ADC 181a, a DIO driver 141b that is a device driver for the digital input unit 181b and the digital output unit 181c, and a PWM driver 141d that 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.

[0029] A device driver is a piece of software that is hardware-dependent. Generally, hardware-independent software (such as an operating system) is also implemented in the basic software layer 140, but since this has little relevance to the present invention, illustrations and explanations of this are omitted in this embodiment.

[0030] The middleware layer 130 implements a mapping module 133 and a physical quantity conversion module 135. The mapping module 133 has one or more first communication packets 131 for exchanging data with the application 121, and one or more second communication packets 132 for exchanging data with the device driver.

[0031] 2A, IO_1, IO_2, ... IO_X (X is a natural number) are implemented as the first communication packet 131. Also, 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. Note that either the first communication packet 131 or the second communication packet 132 may be a single packet.

[0032] The mapping module 133 generates a communication path between the application layer 120 and the device driver based on a mapping table 166 stored in the memory 160. In the mapping table 166, a connection relationship between the first communication packet 131 and the second communication packet 132 is defined. More specifically, for example, when there are a plurality of first communication packets 131 and a plurality of second communication packets 132, communication packets to be connected to each other are defined. In the case of FIG. 2A, it is defined that the connection target of the communication packet IO_1 is the communication packet ADC_1, the connection target of the communication packet IO_2 is the communication packet DI_2, the connection target of the communication packet IO_2 is the communication packet DO_1, and the connection target of the communication packet IO_X is the communication packet PWM_2.

[0033] The physical quantity conversion module 135 converts the physical quantity data included in the data transmitted through the communication path generated by the mapping module 133 according to the physical quantity conversion rule 167 stored in the memory 160. In the example of FIG. 2A, the physical quantity conversion module 135 converts the physical quantity of the data transmitted between the communication packet IO_1 and the communication packet ADC_1 and the data transmitted between the communication packet IO_3 and the communication packet DO_1. Moreover, the physical quantity conversion module 135 does not convert the physical quantity of the data transmitted between the communication packet IO_2 and the communication packet DI_2 and the data transmitted between the communication packet IO_X and the communication packet PWM_2. In this way, the physical quantity conversion module 135 may be disposed in a part of the communication path between the first communication packet 131 and the second communication packet 132, or all the communication paths between the first communication packet 131 and the second communication packet 132 may pass through the physical quantity conversion module 135.

[0034] The method of applying the physical quantity conversion module 135 is not particularly limited, but for example, as shown in Fig. 2A, in a mapping table 166, a connection path is generated so that the first communication packet 131 is connected to the second communication packet 132 via the physical quantity conversion module 135. Then, in the physical quantity conversion module 135, when communication data between the first communication packet 131 and the second communication packet 132 passes through, a calculation according to a physical quantity conversion rule 167 is applied to physical quantity data included in the communication data. Specific connection examples and operation examples will be described later. Note that the communication data may include format data indicating the packet length and the type of the packet, various flag data, and the like, in addition to the physical quantity data.

[0035] In FIG. 2A, although not specifically shown, there are the following connection relationships in addition to the above. 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] In addition, in the middleware layer 130, a runtime environment (RTE) may be implemented between the application layer 120 and the mapping module 133. The runtime environment abstracts and connects, for example, the application 121 and the software implemented in the basic software layer 140. In this case, the first communication packet 131 is used to exchange data between the runtime environment and the mapping module 133.

[0037] 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 a processing result by the CPU 150, a mapping table 166, and a physical quantity conversion rule 167 is stored. For example, the program 162 created in advance in the design stage of the in-vehicle equipment control device 100 is compiled and implemented in the code area. As described above, the mapping table 166 stores data for identifying a connection relationship between the first communication packet 131 and the second communication packet 132. Furthermore, the physical quantity conversion rule 167 stores a conversion rule (for example, an arithmetic expression) for converting physical quantity data included in data transmitted through a communication path generated in the middleware layer 130. The memory 160 is an example of a storage unit.

[0038] [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 Figures 2A and 2B. Here, the description will be made assuming that the in-vehicle device control device 100 is implemented in the first zone ECU 41. A sensor device 200 and an actuator 300 arranged mainly in the left front zone of the vehicle 1 are connected to the first zone ECU 41. As shown in Figure 1, for example, a camera 201 that captures an image of the left side outside the vehicle, a keyless sensor 211, a PW switch 212, a door lock device 301, an electric power window device 302, a room temperature sensor 220, and an air conditioner device 320 are connected to the first zone ECU 41.

[0039] 2A and 2B show an example of a connection state between each in-vehicle device 20 and each peripheral function unit 181. FIG.

[0040] In the case of Fig. 2A, the first room temperature sensor 221 is connected to the channel CHa1 of the ADC 181a, the keyless sensor 211 is connected to the channel CHb1 of the digital input unit 181b, the first air conditioner device 321 is connected to the channel CHc1 of the digital output unit 181c, and the door lock device 301 is connected to the channel CHd1 of the PWM control unit 181d. In Fig. 2A, the camera 201, the PW switch 212, and the electric power window device 302 are omitted from the illustration. The same applies to Fig. 2B.

[0041] 2B is different from FIG 2A in that the second room temperature sensor 222 is connected to the channel CHa1 of the ADC 181a, and the second air conditioner device 322 is connected to the channel CHc2 of the digital output unit 181c. Such a change in the in-vehicle device 20 may occur, for example, when a model change, design change, or supplier change occurs in the vehicle, or when a common program is used for vehicle models that differ in grade, size, or the like.

[0042] 2A and 2B, the program 162 in the code area 161 is programmed with, for example, a process for reading out the temperature measured by the room temperature sensor 220 and a process for reading out an input signal from the keyless sensor 211. The program 162 is also programmed with a process for adjusting the temperature and volume of the air sent from the air conditioner device 320 in response to the temperature measured by the room temperature sensor 220, and a process for locking / unlocking the door lock device 301 in response to an input signal from the keyless sensor 211.

[0043] Example 1: Door lock 2A and 2B, the application 121 packetizes an instruction for a process of reading an input signal from the keyless sensor 211, and transmits the packet as a communication packet IO_2 to the mapping module 133. As described above, in the mapping module 133, the communication packet IO_2 is connected to the communication packet DI_2. As a result, the DIO driver 141b operates based on the instruction of the application 121, and the reception signal of the keyless sensor 211 acquired by the digital input unit 181b is transmitted to the communication packet DI_2 of the middleware layer 130. The communication packet DI_2 is transmitted to the communication packet IO_2.

[0044] Then, when the application 121 receives an input signal from the keyless sensor 211 as a communication packet IO_2, the application 121 packetizes an instruction for locking / unlocking the door lock device 301 based on the input signal, and transmits the instruction as a communication packet IO_X to the mapping module 133. As described above, in the mapping module 133, the communication packet IO_X is connected to the communication packet PWM_2. As a result, the PWM driver 141d operates based on the instruction of the application 121, and the door lock device 301 is locked or unlocked via the PWM control unit 181d.

[0045] <<Example 2: Air conditioner>> 2A, the application 121 packetizes an instruction for a process of reading operation information of the room temperature sensor 220, and transmits the packet as a communication packet IO_1 to the mapping module 133. The communication packet IO_1 is connected to a communication packet ADC_1 in the mapping module 133. As a result, the ADC driver 141a operates based on the instruction of the application 121, and the measured temperature data of the first room temperature sensor 221 acquired by the ADC 181a is transmitted to the communication packet ADC_1 of the middleware layer 130. The communication packet ADC_1 is transmitted to the physical quantity conversion module 135.

[0046] In the physical quantity conversion module 135, a conversion process based on the physical quantity conversion rule 167 is executed. For example, it is assumed that the arithmetic expression shown in the graph in the upper part of FIG. 3 is stored in the memory 160 as the physical quantity conversion rule 167 for the first room temperature sensor 221. Then, in the physical quantity conversion module 135, a conversion operation of "(D1×2)-1" is executed for the measured temperature D1 of the room temperature sensor 220. The result of the conversion operation is transmitted to the application 121 via the communication packet IO_2. The measured temperature D1 is an example of a physical quantity, and the above arithmetic expression is an example of a predetermined linear function.

[0047] When the application 121 receives the converted and calculated measured temperature data from the physical quantity conversion module 135 as a communication packet IO_2, it packetizes commands regarding the airflow temperature and airflow volume of the air conditioner device 320 based on the measured temperature data, and transmits the packets to the mapping module 133 as a communication packet IO_3. As described above, the communication packet IO_3 is connected to the communication packet DO_1 in the mapping module 133 via the physical quantity conversion module 135. The airflow temperature and airflow volume are examples of physical quantities. Here, the airflow temperature and airflow volume are collectively referred to as "airflow control amount D2". In other words, the airflow control amount D2 is an example of a physical quantity.

[0048] In the physical quantity conversion module 135, a conversion process based on the physical quantity conversion rule 167 is executed. For example, it is assumed that the memory 160 stores an arithmetic expression of "D2 / 2" for the airflow control amount D2 of the first air conditioner device 321 as the physical quantity conversion rule 167. Then, in the physical quantity conversion module 135, a conversion operation is executed to halve the airflow control amount D2 output from the application 121. The result of the conversion operation is input to the DIO driver 141b via the communication packet DO_1. As a result, the DIO driver 141b operates based on the command of the application 121, and the setting of the airflow temperature and the airflow amount of the first air conditioner device 321 is executed via the digital output unit 181c. The above arithmetic expression is an example of a predetermined linear function.

[0049] Now, suppose that there is a change in connection from Fig. 2A to Fig. 2B. In such a case, in this embodiment, the program 162 in the code area 161 is not changed, but the mapping table 166 and / or the physical quantity conversion rule 167 in the data area 165 are rewritten.

[0050] 2B, first, in the mapping table 166, the destination of the communication packet IO_3 is changed to the communication packet DO_2. As a result, in the mapping module 133, the destination of the communication packet IO_3 is changed to the communication packet DO_2. Also, in the physical quantity conversion rule 167, for the conversion rule CAL1 applied to the room temperature sensor 220, a rule change is implemented in accordance with the second room temperature sensor 222. Similarly, for the conversion rule CAL2 applied to the air conditioner device 320, a rule change is implemented in accordance with the second air conditioner device 322.

[0051] Once the settings are complete, the following operations will occur in FIG. 2B.

[0052] 2A, the application 121 packetizes an instruction for the process of reading out the operation information of the room temperature sensor 220, and transmits it as a communication packet IO_1 to the mapping module 133. The communication packet IO_1 is transmitted to the communication packet ADC_1. Then, the ADC driver 141a operates based on the instruction of the application 121, and the measured temperature data of the second room temperature sensor 222 acquired by the ADC 181a is transmitted to the communication packet ADC_1 of the middleware layer 130. The communication packet ADC_1 is transmitted to the physical quantity conversion module 135.

[0053] 3 is stored as the physical quantity conversion rule 167 in the physical quantity conversion module 135 for the second room temperature sensor 222. Then, in the physical quantity conversion module 135, a conversion calculation of "(D1 / 2)+2" is executed on the measurement result D2 of the second room temperature sensor 222. The result of the conversion calculation is transmitted to the application 121 via the communication packet IO_2.

[0054] Here, the physical quantity conversion rule 167 is for converting data received by the application 121 so that the data has the same scale. More specifically, for example, as in the graph of Fig. 3, when the first room temperature sensor 221 and the second room temperature sensor 222 have different slopes and intercepts, the measurement values ​​can be provided to the application 121 in accordance with the reference scale by applying a conversion rule according to the characteristics of each. In other words, the physical quantity conversion rule 167 can absorb the difference in sensitivity, characteristics, etc. between the sensor device 200 and the actuator 300, which have different sensitivities, characteristics, etc. The physical quantity conversion rule 167 is not limited to a linear function, and rules using other functions such as higher-order functions and trigonometric functions may be created.

[0055] When the application 121 receives the measured temperature data that has been converted and calculated from the physical quantity conversion module 135 as a communication packet IO_2, it packetizes an instruction regarding the air flow control amount D2 of the air conditioner device 320 based on the measured temperature data and transmits it to the mapping module 133 as a communication packet IO_3.

[0056] In the physical quantity conversion module 135, a conversion process based on the physical quantity conversion rule 167 is executed. For example, it is assumed that an arithmetic expression of "D2×2+2" is stored in the memory 160 as the physical quantity conversion rule 167 for the airflow control amount D2 of the second air conditioner device 322. Then, in the physical quantity conversion module 135, a conversion calculation of "D2×2+2" is executed for the airflow control amount D2 output from the application 121. The result of the conversion calculation is input to the DIO driver 141b via the communication packet DO_1. As a result, the DIO driver 141b operates based on the command of the application 121, and the setting of the airflow temperature and the airflow amount of the second air conditioner device 322 is executed via the digital output unit 181c.

[0057] Comparative Example Comparative examples are shown in Figures 4A and 4B. In Figures 4A and 4B, a single communication packet is implemented as the middleware layer 530. The configuration of the program 562 differs accordingly. The rest of the configuration is the same as in Figures 2A and 2B. For configurations common to Figures 2 (2A, 2B) and 4 (4A, 4B), the last two digits or the last two digits and the code following them are the same. For example, the in-vehicle equipment control device 500 corresponds to the in-vehicle equipment control device 100.

[0058] Specifically, in the program 562 in Fig. 4A, processing contents for operating the CPU 550 are implemented in the code area 561. Furthermore, in the program 562, for communication packets in the middleware layer 130 that transmit each processing content, a connection channel in the peripheral function unit 181 and calculations on physical quantities as necessary are also set. With such a configuration, the same operation as in the above embodiment is realized.

[0059] 4A to 4B, in the comparative example, it is necessary to change program 562 in code area 561. Specifically, as shown in the underlined bold part in program 562 in FIG. 4B, it is necessary to change the calculation formula for the measured temperature and the calculation formula for the controlled variable.

[0060] As described above, in the in-vehicle equipment control device 100 of this embodiment, the CPU 150 has, as a software configuration, an application layer 120 in which the application 121 is implemented, a device driver unit 141 in which various device drivers are implemented, and a middleware layer 130 that generates a communication path between the application 121 and the device drivers. The middleware layer 130 has a physical quantity conversion module 135 that converts physical quantity data included in data transmitted through the communication path in accordance with the physical quantity conversion rule 167.

[0061] With this configuration, even if the characteristics of the in-vehicle device 20, such as the sensor device 200 or the actuator 300 connected to the peripheral function unit 181, change, the change in the characteristics of the in-vehicle device 20 can be accommodated by changing the physical quantity conversion rule 167 without changing the program in the code area 161. When the program 162 in the code area 161 is changed, even if the change is small, it is necessary to recompile all the code and rewrite it to the memory 160. However, with the configuration of this embodiment, this is not necessary. This makes it possible to significantly reduce the number of steps required for software development.

[0062] Furthermore, in this embodiment, a first communication packet 131 for exchanging data with the application 121 and a second communication packet 132 for exchanging data with the device driver are implemented in the middleware layer 130. A rewritable mapping table 166 that specifies the connection relationship between the first communication packet 131 and the second communication packet 132 is stored in the memory 160, and a communication path between the application layer 120 and the device driver unit 141 is generated in the middleware layer 130 based on the mapping table 166.

[0063] As a result, even if the connection destination of the in-vehicle device 20 is changed in the peripheral function unit 180, the change in the connection destination of the in-vehicle device 20 can be accommodated by changing the mapping table 166 without changing the program in the code area 161.

[0064] 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. [Industrial Applicability]

[0065] The technology disclosed herein is useful for designing an in-vehicle device control device. [Explanation of symbols]

[0066] 10 Central processing unit 40 Zone ECU 100 Vehicle-mounted equipment control device 120 Application Layer 121 Applications 130 Middleware Layer 135 Physical quantity conversion module 141a ADC driver (device driver) 141b DIO driver (device driver) 141d PWM driver (device driver) 150 CPU (control unit) 160 Memory (storage section) 167 Physical quantity conversion rules

Claims

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 that converts commands received from applications into commands for the hardware. a middleware layer that includes one or more first communication packets for exchanging communication packets with the application and one or more second communication packets for exchanging communication packets with the device driver, and that generates a communication path between the application layer and the device driver based on a mapping table that specifies a connection relationship between the first communication packets and the second communication packets; having The storage unit includes a code area in which a program for operating the control unit is stored, and a data area; a physical quantity conversion rule indicating a conversion rule for a predetermined physical quantity and the mapping table are stored in a data area of ​​the storage unit; the middleware layer includes a physical quantity conversion module that converts physical quantity data included in communication data by applying a calculation in accordance with the physical quantity conversion rule to the physical quantity data when the communication data passes between the first communication packet and the second communication packet.

2. 2. The vehicle-mounted device control device according to claim 1, the predetermined transformation rule is a predetermined linear function, The physical quantity conversion module performs a conversion operation on the physical quantity data using the predetermined linear function.

3. The vehicle control system includes a plurality of zone ECUs arranged in respective predetermined zones of the vehicle, and a central processing unit that controls the plurality of zone ECUs, A vehicle control system, wherein one or more of the zone ECUs include the vehicle-mounted device control device according to claim 1 .

Citation Information

Patent Citations

  • System and method for writing data to IC tag

    JP2010286935A

  • Vehicle control device

    JP2013171547A

  • Control system

    JP2017105362A

  • System, method, and computer program for updating programs

    JP2017157004A

  • Vehicle control apparatus having multiple ECUs loaded with respective control programs

    US20010025216A1