Center device and on-board electronic control device
The center device addresses the challenge of updating mixed ECU types by generating tailored packages for diverse ECU configurations, ensuring efficient and compatible software updates across vehicles with varying ECU platforms and update methods.
Patent Information
- Application Number
- JP2021032593
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-02
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-03-02
AI Technical Summary
Conventional methods fail to distribute update programs effectively to vehicles with a mixture of different types of electronic control units (ECUs), including both storage and streaming types, as well as a mixture of Classic Platform (CP) and Adaptive Platform (AP) types, due to differing software architectures and update methods.
A center device that stores device identification and software architecture information for each ECU, generates packages tailored to the specific software architecture of target ECUs, allowing for unified distribution of update data across mixed ECU types, including support for both CP and AP platforms and various update methods.
Enables seamless update data distribution to vehicles with diverse ECU configurations, ensuring all ECUs receive appropriate packages, regardless of their platform type or update method, enhancing compatibility and efficiency in vehicle software updates.
Smart Images

Figure 0007571621000001 
Figure 0007571621000002 
Figure 0007571621000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a center device that manages data to be written to a plurality of electronic control devices mounted on a vehicle, and to an on-vehicle electronic control device that communicates with the center device. [Background technology]
[0002] In recent years, with the diversification of vehicle control such as driving assistance functions and automatic driving functions, the scale of application programs such as vehicle control and diagnosis mounted on the vehicle's electronic control unit (hereinafter referred to as ECU (Electronic Control Unit)) is increasing. In addition, with version upgrades for function improvements and the like, there are also increasing opportunities to rewrite ECU application programs, that is, to perform so-called reprogramming. Meanwhile, with the development of communication networks, connected car technology is also becoming widespread. In light of these circumstances, for example, Patent Document 1 discloses a technology in which an ECU update program is delivered from a server to an in-vehicle device by OTA (Over The Air) and the update program is rewritten on the vehicle side. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-27624 A Summary of the Invention [Problem to be solved by the invention]
[0004] There are two methods for rewriting the update program: a storage method, in which all update programs are downloaded from a center device to the vehicle's memory before the update is performed, and a streaming method, in which the update program is downloaded from the center device to the vehicle while it is being updated. As shown in Fig. 14, the specifications of the Japan Automotive Software Platform and Architecture (JASPAR) stipulate data requirements applicable to classic platforms (CPs) that run on a static OS (Operating System) of the standardization organization AUTOSAR (AUTomotive Open System ARchitecture) for the package structure for distributing update programs according to the ECU platform. AUTOSAR also stipulates data requirements applicable to a new type of adaptive platform (AP) that runs on a dynamic OS.
[0005] However, the conventional technology does not assume that the ECUs installed in the vehicle use a mixture of storage and streaming methods, or that the ECUs are a mixture of CP and AP types. Therefore, the center device cannot distribute all update programs to such vehicles in one package.
[0006] The present invention has been made in consideration of the above-mentioned circumstances, and its object is to provide a center device that can distribute all update data in one package for electronic control devices to be updated that are installed in a vehicle, regardless of whether different types of electronic control devices are mixed, and an on-board electronic control device that can receive the package and write the update data. [Means for solving the problem]
[0007] According to the center device of claim 1, the vehicle information storage unit stores device identification information for each of the multiple electronic control devices and information on the software architecture of the device together with the vehicle type. The package structure storage unit stores information on the structure of a package to be distributed to update data according to the software architecture of a relay device that relays data updates among the multiple electronic control devices, the software architecture of a target device that is the target of data updates among the multiple electronic control devices, and information on an update method when updating data.
[0008] The judgment processing unit identifies a package structure for a target vehicle in which a target device among multiple electronic control devices for which data is to be updated is installed based on the information stored in the vehicle information storage unit and the package structure storage unit, and the package generation unit generates a package including information indicating the structure for the identified package.
[0009] With this configuration, the package generation unit can generate a package to be distributed to the target vehicle that has a structure corresponding to the software architecture of the target device from among various types of electronic control devices. Therefore, regardless of whether different types of electronic control devices are mixed, all update data can be distributed in one package.
[0010] According to the center device of claim 2, the information indicating the package structure includes, as information on the software architecture of the electronic control device, information indicating that the electronic control device is either an adaptive platform (AP) or a classic platform (CP), which are types of electronic control device defined in the AUTOSAR specifications, and, as information on the update method at the time of updating data, information indicating that the data update method is either a storage method or a streaming method. With this configuration, it is possible to generate distribution packages corresponding to the above-mentioned electronic control devices having different platform types and data update methods.
[0011] According to the center device of claim 3, the package generation unit generates a package with a structure that can be processed by the UCM master when the type of relay device that relays data updates for the target device is an AP, and generates a package with a structure that can be processed by the OTA master when the type of relay device is a CP. Here, the "package with a structure that can be processed by the UCM master" is a vehicle package that includes information and the like required for package distribution within a vehicle, and the "package with a structure that can be processed by the OTA master" is a package that includes specification data and file configuration information, including parameter information and the like required when the OTA master executes installation. Therefore, an appropriate distribution package can be generated according to the type of relay device specified in the AP or CP of AUTOSAR.
[0012] According to the center device of claim 4, the package generation unit generates a package with a structure that can be processed by UCM if the type of the target device is AP, and generates a package with a structure that can be processed by an installer if the type is CP. Here, a "package with a structure that can be processed by UCM" is a software package that includes update data, etc., which is the unit of installation processing, and a "package with a structure that can be processed by an installer" is a package that includes the above-mentioned specification data, update data, file configuration information, etc. Therefore, a distribution package appropriate for the type of the target device can be generated. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a functional block diagram showing a configuration of a vehicle-side system according to an embodiment of the present invention; [Diagram 2] A functional block diagram showing the configuration of a center device. [Diagram 3] A diagram showing the information registered in the configuration information DB. [Figure 4] A diagram showing the information registered in the PKG structure DB [Diagram 5] Diagram showing software packages, back-end packages and vehicle packages [Figure 6] A flowchart showing a registration process of a vehicle model and a registration process of a package structure model in the center device. [Figure 7] A flowchart showing a registration process of vehicle configuration information in the center device. [Figure 8] Flowchart showing a process for generating a distribution package in the center device [Figure 9] Diagram explaining the integrated package [Figure 10] Flowchart showing verification data generation processing in the center device [Figure 11] Flowchart showing the reprogramming process when the central ECU is the AP in the vehicle system (part 1) [Figure 12] Flowchart showing the reprogramming process when the central ECU is the CP in the vehicle system (part 1) [Figure 13] Flowchart showing reprogramming process in vehicle system (part 2) [Figure 14] Diagram showing the package structure of the ECU platform for CP and AP [Figure 15] FIG. 1 illustrates an example of an integrated package structure and a method for generating an integrated package. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] An embodiment will be described below with reference to the drawings. The vehicle program rewriting system is a system capable of rewriting application programs such as vehicle control and diagnosis of an ECU mounted on a vehicle by OTA. As shown in Fig. 1, the vehicle program rewriting system 1 has a center device 3 on the communication network 2 side, a vehicle-side system 4 on the vehicle side, and a display terminal 5. The communication network 2 includes, for example, a mobile communication network using a 4G line or the like, the Internet, WiFi (Wireless Fidelity: registered trademark), and the like.
[0015] The display terminal 5 is a terminal having a function of receiving operation input from a user and a function of displaying various screens, and is, for example, a mobile terminal 6 such as a smartphone or tablet that can be carried by a user, or an in-vehicle display 7 such as a display that also serves as a navigation function or a meter display that is arranged in the vehicle cabin. The mobile terminal 6 can be connected to the communication network 2 if it is within the communication range of the mobile communication network. The in-vehicle display 7 is connected to the vehicle-side system 4.
[0016] If the user is outside the vehicle cabin and within the communication range of the mobile communication network, the user can perform procedures related to the rewriting of the application program by performing operation input while checking various screens related to the rewriting of the application program on the mobile terminal 6. If the user is inside the vehicle cabin, the user can perform procedures related to the rewriting of the application program by performing operation input while checking various screens related to the rewriting of the application program on the in-vehicle display 7. In other words, the user can perform procedures related to the rewriting of the application program by using the mobile terminal 6 and the in-vehicle display 7 separately when outside the vehicle cabin and when inside the vehicle cabin.
[0017] The center device 3 controls the OTA functions on the communication network 2 side in the vehicle program rewriting system 1, and functions as an OTA center. The center device 3 has a file server 8, a web server 9, and a management server 10, and the servers 8 to 10 are configured to be able to communicate data with each other.
[0018] The file server 8 has a function of managing application programs transmitted from the center device 3 to the vehicle-side system 4, and is a server that manages ECU programs and associated information provided by suppliers who are providers of application programs, distribution specification data provided by OEMs (Original Equipment Manufacturers), vehicle conditions acquired from the vehicle-side system 4, and the like. The file server 8 is capable of data communication with the vehicle-side system 4 via the communication network 2, and when a download request for a distribution package occurs, the file server 8 transmits a distribution package in which reprogramming data and distribution specification data are packaged to the vehicle-side system 4. Alternatively, when a download request for a distribution package occurs, the file server 8 transmits a distribution package in which distribution specification data is packaged and the reprogramming data to the vehicle-side system 4. The web server 9 is a server that manages web information, and provides various screens related to rewriting of application programs to the mobile terminal 6. The management server 10 manages personal information, etc. of users who are registered for the service of rewriting application programs, and manages the rewriting history of application programs for each vehicle.
[0019] The vehicle-side system 4 has a master device 11. The master device 11 has a DCM (Data Communication Module) 12 and a central ECU 13, and the DCM 12 and the central ECU 13 are connected to each other so as to be able to perform data communication via a first bus 14. The DCM 12 is an in-vehicle communication device that performs data communication with the center device 3 via a communication network 2, and when a distribution package is downloaded from the file server 8, the DCM 12 extracts write data from the distribution package and transfers it to the central ECU 13. Alternatively, when the DCM 12 downloads a distribution package from the file server 8, the DCM 12 transfers the distribution package to the central ECU 13. The central ECU 13 extracts the write data from the distribution package.
[0020] The central ECU 13 is a vehicle gateway device having a data relay function, and when it acquires write data from the DCM 12, it distributes the write data to a rewrite target ECU for rewriting an application program. The master device 11 manages the vehicle-side OTA functions in the vehicle program rewriting system 1 and functions as an OTA master. Although FIG. 1 illustrates a configuration in which the DCM 12 and the in-vehicle display 7 are connected to the same first bus 14, the DCM 12 and the in-vehicle display 7 may be connected to different buses. The central ECU 13 corresponds to the relay device of the present disclosure.
[0021] In addition to the first bus 14, a second bus 15, a third bus 16, a fourth bus 17, and a fifth bus 18 are connected to the central ECU 13 as buses inside the vehicle, and various ECUs 19 are connected via buses 15 to 17, and a power management ECU 20 is connected via bus 18.
[0022] The second bus 15 is, for example, a bus for a body system network. The ECUs 19 connected to the second bus 15 are ECUs that control the body system, such as a door ECU that controls the locking / unlocking of doors, a meter ECU that controls meter display, an air conditioner ECU that controls the operation of an air conditioner, and a window ECU that controls the opening and closing of windows. The third bus 16 is, for example, a bus for a driving system network. The ECUs 19 connected to the third bus 16 are ECUs that control the driving of the driving system, such as an engine ECU that controls the operation of an engine, a brake ECU that controls the operation of a brake, an ECT (Electronic Controlled Transmission) ECU that controls the operation of an automatic transmission, and a power steering ECU that controls the operation of a power steering.
[0023] The fourth bus 17 is, for example, a multimedia bus, a so-called MM-system network bus. The ECU 19 connected to the fourth bus 17 is, for example, a navigation ECU for controlling a navigation system, an ETC ECU for controlling an electronic toll collection system, i.e., an ETC (Electronic Toll Collection System: registered trademark) system, and other multimedia system control ECUs. The buses 15 to 17 may be buses of a system other than the body system network bus, the driving system network bus, and the multimedia system network bus. In addition, the number of buses and the number of ECUs 19 are not limited to the configuration illustrated. The power supply management ECU 20 is an ECU that has a function of managing the power supplies of the DCM 12, the central ECU 13, the various ECUs 19, and the like.
[0024] A sixth bus 21 is connected to the central ECU 13 as a bus on the outside of the vehicle. A DLC (Data Link Coupler) connector 22 to which a tool 23 is detachably connected is connected to the sixth bus 21. The vehicle inside buses 14 to 18 and the vehicle outside bus 21 are configured by, for example, a CAN (Controller Area Network: registered trademark) bus, and the central ECU 13 performs data communication between the DCM 12, various ECUs 19, and the tool 23 in accordance with the CAN data communication standard and diagnostic communication standard (UDS: ISO14229). The DCM 12 and the central ECU 13 may be connected by Ethernet, and the DLC connector 22 and the central ECU 13 may be connected by Ethernet.
[0025] When the rewrite target ECU 19 receives write data from the central ECU 13, it writes the write data to a flash memory to rewrite the application program. In the above configuration, when the central ECU 13 receives a request to obtain write data from the rewrite target ECU 19, it functions as a reprogram master that distributes the write data to the rewrite target ECU 19. When the rewrite target ECU 19 receives write data from the central ECU 13, it functions as a reprogram slave that writes the write data to a flash memory to rewrite the application program. Note that the "rewrite target ECU" may be referred to as the "target ECU."
[0026] There are two modes for rewriting an application program: a wired rewriting mode and a wireless rewriting mode. In the wired rewriting mode, when the tool 23 is connected to the DLC connector 22, the tool 23 transfers write data to the central ECU 13. The central ECU 13 relays or distributes the write data transferred from the tool 23 to the rewriting target ECU 19. In the wireless rewriting mode, as described above, when the DCM 12 downloads a distribution package from the file server 8, it extracts write data from the distribution package and transfers the write data to the central ECU 13.
[0027] As shown in Fig. 2, the center device 3, which is also a package generation server, includes a control unit 30 and databases 41 to 46. In the following, "database" will be abbreviated as "DB." Furthermore, "package" will be abbreviated as "PKG." Furthermore, "software package" will be abbreviated as "SW PKG." The control unit 30 has various functional blocks, such as an information storage unit 31, a judgment unit 32, a PKG generation unit 33, and a verification data generation unit 34, which are realized by the functions of hardware and software as a microcomputer.
[0028] Next, the contents of the data registered in each database 41 to 46 will be described. In the individual vehicle information DB 41, mainly configuration information for each individual vehicle and status information of each individual vehicle with respect to program updates are registered. Specifically, for the "VIN" which is the ID of each vehicle, configuration information includes "Vehicle SW ID", "Sys ID", "ECU ID", "ECU SW ID", etc. "Digest" values which are hash values for these configuration information are also calculated and stored by the center device 3. The "operation side" is the side where the program currently being operated by the ECU 19 is written when the memory configuration is two sides, and values uploaded together with the configuration information are registered. The ID of each vehicle is vehicle identification information, and the chassis number may be used instead of the VIN.
[0029] The ECU metadata DB 42 registers the following ECU-specific specification data, for example: for the latest "ECU SW ID", the size of the update data file, the size of the rollback data file, if the flash memory in the ECU 19 has two or more sides, side information indicating which side (side A, side B, side C, etc.) the program is for, the transfer size, the read address of the program file, etc. These are examples of update data related information.
[0030] Furthermore, attribute information indicating attributes of the ECU 19 is also registered in the ECU metadata DB 42. The attribute information is information indicating hardware attributes and software attributes related to the ECU. The "transfer size" is the transfer size when rewrite data is divided and transferred from the central ECU 13 to the ECU 19, and the "key" is the key used when the central ECU 13 securely accesses the ECU 19. These are examples of software attribute information. In addition, the "vehicle model" and "ECU ID" also include the memory configuration of the flash memory 28d provided in the ECU 19, the type of bus to which the ECU 19 is connected, the type of power source connected to the ECU 19, and the like. These are examples of hardware attribute information. In the package DB 43, distribution package IDs, distribution package files, and data for verifying the integrity of the distribution packages are registered.
[0031] As shown in FIG. 3, the configuration information DB 45 registers, for each vehicle model, the platform of the central ECU 13, the ID of the target ECU 19, the platform, and the update method at the time of reprogramming. The configuration information DB 45 corresponds to the vehicle information storage unit. In the following, the platform may be abbreviated as "PF." A "vehicle model" is an ID of each vehicle that is specified according to the vehicle model, release date, grade, destination, etc. A "vehicle model" corresponds to the type of vehicle. There are packages for distributing update programs that can be applied to CPs that run on a static OS defined in the AUTOSAR specifications, and packages that can be applied to APs that run on a dynamic OS.
[0032] Here, we will explain the difference between AP and CP. AP and CP stand for software platform. Software platform is also called software architecture. CP stands for AUTOSAR Classic Platform, and AP stands for AUTOSAR Adaptive Platform. Furthermore, an ECU that operates in accordance with the CP specification is sometimes referred to as a CP ECU or CP ECU, and an ECU that operates in accordance with the AP specification is sometimes referred to as an AP ECU or AP ECU.
[0033] AP and CP use different operating systems, or OS, and development languages. CP ECUs and AP ECUs have different package structures that they can receive. These differences in package structure are mainly due to differences in the processing performance of the ECUs. Since the processing performance of CP ECUs is generally low, the specification data included in the packages is written as binary data, and the package data structure is easy to interpret and process even for ECUs with low processing performance.
[0034] On the other hand, since AP ECUs have high processing power, they can be equipped with a parser function that analyzes structured character data written in some language and converts it into a data structure that can be handled by a program.The data structure can be a flexible package data structure, as it can use an object-oriented data format such as JSON (JavaScript Object Notation) rather than simple binary data.
[0035] Regarding the update method, there is a storage method in which all update programs are downloaded from the center device 3 to the memory on the vehicle side and then the update is performed, and a streaming method in which the update programs are downloaded from the center device 3 to the vehicle side while the update is being performed.
[0036] In the example shown in FIG. 3, the central ECU 13 of vehicle model A is an AP, the IDs of the target ECUs 19 are "1 to 4", and the PFs thereof are a mixture of AP and CP. As for the update method, ID1 and ID2 are the streaming method, and ID3 and ID4 are the storage method. As for the central ECU 13 of vehicle model B, the IDs of the target ECUs 19 are "5 to 8", and the PFs thereof are a mixture of AP and CP. As for the update method, ID5 and ID6 are the streaming method, and ID7 and ID8 are the storage method. The above update method may be referred to as the OTA method.
[0037] In the configuration information DB 45, initial values are registered at the time of production or sale of the vehicle, and the registered information is updated thereafter as the version of the application program of one or more ECUs is updated. In other words, the configuration information DB 45 indicates configuration information that is legitimately available on the market for each vehicle model.
[0038] As shown in FIG. 4, the PKG structure DB 44 has eight types of package structures registered therein; No. 1 to 8. The PKG structure DB 44 specifies the configuration of a package delivered from the center device 3 to the vehicle-side system 4 when rewriting an application program, and files delivered without being included in a package. For No. 1 to 4, the PF of the central ECU 13 is an AP, and for No. 5 to 8, the PF of the central ECU 13 is a CP. For No. 1, 2, 5, and 6, the PF of the target ECU 19 is an AP, and for No. 3, 4, 7, and 8, the PF of the target ECU 19 is a CP. For No. 1, 3, 5, and 7, the OTA method is "storage," and for No. 2, 4, 6, and 8, the OTA method is "streaming."
[0039] The package configuration and files to be distributed without being included in the package are determined based on the PF of the central ECU 13, the PF of the target ECU 19, and the OTA method from the central ECU 13 to the target ECU 19. As described above, the PF of the central ECU 13 includes cases where the central ECU 13 is an AP ECU and cases where the central ECU 13 is a CP ECU. Similarly, the PF of the target ECU 19 includes cases where the target ECU 19 is an AP ECU and cases where the target ECU 19 is a CP ECU.
[0040] If the PF of the central ECU 13 is an AP, a vehicle PKG is included so that the UCM master in the central ECU 13 can interpret it. On the other hand, if the PF of the central ECU 13 is a CP, specification data, file configuration information, and verification data are included so that the OTA master in the central ECU 13 can interpret it. Furthermore, if the PF of the target ECU 19 is an AP, a software package (also written as Software PKG or SW PKG) is included so that the UCM in the target ECU 19 can interpret it. If the PF of the target ECU 19 is a CP, specification data, file configuration information, and verification data are included so that the installer can interpret it. Note that the UCM master and UCM are explained in AUTOSAR, so details are omitted. Furthermore, the OTA master and installer are explained in the JASPAR standard documents, so details are omitted.
[0041] Also, when the OTA method is streaming, the update data is not included in the package, whereas when the OTA method is storage, the update data is included in the package. The PKG structure DB 44 indicates the format of data required for updating the application program of the target ECU 13 for each target ECU 13, that is, the package configuration, and files to be distributed without being included in a package.
[0042] Here, the package delivered to each vehicle consists of an integrated package and ancillary files that are not included in the integrated package. In Nos. 1 to 4 where the central ECU 13 is the AP, the integrated package includes a vehicle package indicated as "Vehicle PKG" in the figure. In Nos. 1, 2, 5, and 6 where the target ECU 19 is the AP, a software package indicated as "SW PKG" in the figure is included. However, in Nos. 1 and 5 where the OTA method is storage, the software package is included in the integrated package, but in Nos. 2 and 6, it is not included in the integrated package and is a separate file. The integrated package is delivered to the vehicle system 4 as a compressed file, and the ancillary files are delivered to the vehicle system 4 without being compressed.
[0043] A software package is a unit of installation processing performed by an ECU, and includes, for example, executable files of one or more applications deployed on an AP, update files for an OS or firmware, configuration data, calibration data, etc. Each package includes manifest information that provides metadata such as package name, version information, dependency relationships, and vendor-specific information required for package processing. UCM (Update Configuration Management), a software module installed in the target ECU 19, processes vendor-specific software packages based on the metadata. Note that "SW PKG A, B" shown in the figure shows two packages as an example, and may include one package or three or more packages.
[0044] As shown in Figure 5, software packages are provided to the OEM by various suppliers. In the OEM server, a back-end package is generated corresponding to each package. The back-end package includes the software package, and the manifest information includes information such as the diagnostic address and ID of the UCM to which the package is distributed. Then, a vehicle package is generated from multiple back-end packages. Multiple software packages required for each vehicle are integrated, and the vehicle package manifest is added to each software package manifest to create the vehicle package.
[0045] The vehicle package manifest contains information necessary for campaign control and distribution, such as dependencies, target vehicles, safety policies, driver notification settings, etc., that is sent to vehicles as a notification that a data update is available. The UCM Master, which is a software module installed in the central ECU 13, interprets the vehicle package to understand the data update content, and controls which software package is transferred to which UCM and in what order. The UCM then interprets the software package passed from the UCM Master and executes the installation process for the target ECU 19.
[0046] The diagram shown in Fig. 5 is taken from pages 50, 52, and 53 of "Specification of Update Configuration Management AUTOSAR AP R20-11, Document ID No. 706." The same is true for the diagram of the package structure for AP shown in Fig. 14.
[0047] 4, in Nos. 3, 4, 7, and 8 where the target ECU 19 is a CP, the integrated package includes specification data, file configuration information, and various types of verification data as necessary. Also, the difference data, which is the difference between the update data and the pre-update data, is included in the integrated package in Nos. 3 and 7 where the OTA method is storage, but is not included in the integrated package and is a separate file in Nos. 4 and 8 where the OTA method is streaming.
[0048] The file configuration information (DCM specifications) is information that links the file name (FILE) with its role (TYPE), the target ECU 19 (ECU-ID), and information that can identify which data has which binary file name (xxxxxxxx.bin), etc. By interpreting the file configuration information, the OTA master on the vehicle side determines which binary file plays which role (e.g., specification data, etc.) and which target ECU 19 it should be transferred to.
[0049] The ECU repro data DB 46 registers the following programs and data, for example. For the latest "ECU SW ID" of the ECU 19 to be updated, the ECU's old program and new program files, integrity verification data for the new program, an update data file which is differential data between the new program and the old program, integrity verification data for the update data, a rollback data file which is also differential data, and integrity verification data for the rollback data are registered. The integrity verification data is a hash value obtained by applying a hash function to a data value.
[0050] Next, the operation of this embodiment will be described. As shown in Fig. 6, when the information storage unit 31 of the center device 3 starts to register a vehicle model, it registers information about the software architecture for the PF of each ECU mounted on the new vehicle model in the configuration information DB 45 (S1). Also, when the information storage unit 31 starts to register a package structure model, if a new PF exists, it registers a package structure corresponding to the PF in the PKG structure DB 44 (S2).
[0051] Furthermore, as shown in FIG. 7, when the information storage unit 31 collects vehicle information about a sold vehicle and detects that a new hardware device, such as a LiDAR (Light Detection And Ranging) device, has been added to the vehicle (S3; Yes), it registers the information about the device in the configuration information DB 45 and synchronizes the information (S4).
[0052] As shown in Fig. 8, when the determination unit 32 starts the package generation process, it acquires information on the target vehicle (S11). The target vehicle is obtained by comparing the information on each vehicle registered in the individual vehicle information DB 41 and the configuration information DB 45. For example, it is assumed that there is a software update for the target ECU 19 with ID=5, 6 for the vehicle model B shown in Fig. 3.
[0053] Next, the determination unit 32 searches the configuration information DB 45 to identify the software architecture of the vehicle model to be updated (S12). For example, in the case of the above-mentioned vehicle model B, the software architectures of the target ECUs 19 with IDs=5 and 6 are identified as No. 6 and 8, respectively. Next, the PKG structure DB 44 is searched to identify the package structure to be generated for the vehicle model to be updated (S13). Then, the determination unit 32 instructs the PKG generation unit 33 to generate packages corresponding to structure No. 6 and 8.
[0054] When the PKG generation unit 33 receives a processing request for package generation, it generates an integrated package from the identified package structure (S14). Here, the "integrated package" and the method of constructing the "integrated package" will be described with reference to Fig. 9. Note that structure Nos. 6 and 8 in Fig. 9 correspond to package structure Nos. 6 and 8 in Fig. 4.
[0055] For vehicle model B shown in Fig. 3, if there is a software update for target ECU 19 with ID=5, 6, information for target ECU 19 with ID=5 and ID=6 needs to be distributed as one integrated package from center device 3 to vehicle-side system 4. Note that in the storage method, update data files and software packages that are difference data between the new program and the old program are also included in the integrated package. In the streaming method, update data files and software packages that are difference data between the new program and the old program are not included in the integrated package.
[0056] In FIG. 9, the package structures corresponding to structure Nos. 6 and 8 shown in the upper part are integrated into one package structure as shown in the lower part. This is called an integrated package structure. For data items present in structures Nos. 6 and 8, such as specification data, duplicate types of data are combined into one. Also, a flag indicating that this integrated package is an integration of structures Nos. 6 and 8 is added to the specification data. In this case, since both OTA methods are streaming, software packages A and B and difference data 1 and 2 are files that are not included in the integrated package.
[0057] Referring again to Fig. 8, the PKG generation unit 33 next acquires information necessary for generating a package from the ECU repro data DB 46 and the ECU metadata DB 42 (S15). Here, the "necessary information" is, for example, data for generating specifications, data for generating a manifest, design configuration information, package generation conditions, difference data, verification data, etc. Then, a package of the update software is generated together (S16).
[0058] Next, the verification data generating unit 34 judges whether or not a package whose OTA method is streaming is included (S17), and if included (Yes), performs a MAC (Message Authentication Code) signature process (S18), and if not included (No), calculates a digital signature for the update data and assigns it to the package (S19).Then, the generated package is registered in the package DB 43 (S20).
[0059] 10, when the verification data generating unit 34 starts the MAC signature process, if it is necessary to add verification data to the streaming data (S21; Yes), it checks the size of the relay buffer used for streaming (S22), calculates a MAC signature for each size (S23), and adds a MAC signature for each relay buffer size (S24). For example, if the relay buffer size is 10 kB and AES (Advanced Encryption Standard) 126 bit is used as the common key cryptography for the MAC signature, 16 bytes of signature data are added for every 10 kB.
[0060] Next, the process on the vehicle-side system 4 side, which performs reprogramming using a distributed package, will be described. Steps S31 to S35 are generally the same between the process shown in Fig. 11 when the central ECU 13 is an AP and the process shown in Fig. 12 when the central ECU 13 is a CP. When a distributed package is received from the center device 3 (S31), flag information of the package structure stored in the specification data is read (S32). However, when the central ECU 13 is an AP, information equivalent to the specification data is included in the manifests included in the software package and the vehicle package.
[0061] Next, when the package structure is identified based on the flag information (S34), program update and reprogramming are performed for each platform and OTA method of the target ECU 19 in each package structure (S35). From this point, if the central ECU 13 is an AP, the process branches to steps S36(1) to S36(4) according to package structure Nos. 1 to 4, and if the central ECU 13 is a CP, the process branches to steps S36(5) to S36(8) according to package structure Nos. 5 to 8.
[0062] In step S36(1), rewriting is performed when the combination of the central-target ECU is AP-AP and the OTA method of the target ECU 19 is storage. In this case, updating is performed by the UCM master / UCM according to the procedure described in the AUTOSAR Specification (SWS) (S37(1)). In step S36(2), rewriting is performed when the combination is AP-AP and the OTA method is streaming, and steps S38 to S45 shown in FIG. 13, which will be described later, are executed.
[0063] In step S36(3), the rewrite is performed when the combination is AP-CP and the OTA method is storage. In this case, the update is performed by the UCM master and the flashing adapter according to the procedure described in the AUTOSAR Specification (SWS) (S37(3)). In step S36(4), the rewrite is performed when the combination is AP-CP and the OTA method is streaming, and in this case too, the process proceeds to step S37(3).
[0064] In step S36(5) shown in Fig. 12, rewriting is performed when the combination is CP-AP and the OTA method is storage. In this case, updating is performed by UCM according to the procedure described in the AUTOSAR Specification (SWS) (S37(5)). In step S36(6), rewriting is performed when the combination is CP-AP and the OTA method is streaming, and steps S38 to S45 are executed.
[0065] In step S36(7), the combination is CP-CP and the OTA method is storage. In this case, the OTA master performs the update in accordance with the procedure described in paragraphs
[0381] to
[0400] and Figures 115 to 118 in JP2020-27633A (S37(7)). In step S36(8), the combination is CP-CP and the OTA method is streaming, and steps S38 to S45 are executed.
[0066] 13, if verification data for the streaming data is required (Yes), the common key A used for signing the streaming data is exchanged with the center device 3 and received (S39). Then, when the streaming data is received by the size of the relay buffer (S40), the common key A is used to verify the MAC signature for each buffer size (S41).
[0067] If the verification is successful (Yes), the streaming data is transferred to the target ECU 19 (S43). Then, until all the reproductive data is received (S44; No), the process returns to step S40 and is repeated. If the verification fails in step S42 (No), an error is returned to the center device 3 (S45).
[0068] As described above, according to this embodiment, the individual vehicle information DB 41 of the center device 3 stores device identification for each of the multiple ECUs 19 and information on the software architecture of the device together with the vehicle type. The PKG structure DB 44 stores information on the structure of a package to be distributed for updating data for each of the multiple ECUs 19 according to the type of each ECU 19.
[0069] Based on the information stored in the individual vehicle information DB 41 and the PKG structure DB 44, the judgment unit 32 identifies a package to be distributed to a target vehicle equipped with a target device among multiple ECUs 19 whose data is to be updated, and the PKG generation unit 33 generates a package including information indicating the structure of the identified package.
[0070] With this configuration, the PKG generation unit 33 can generate a package to be distributed to the target vehicle that has a structure corresponding to the software architecture of the target device from among various types of ECUs 19. Therefore, even for a vehicle in which different types of ECUs 19 coexist, all update data can be distributed in one package.
[0071] The information indicating the package structure includes information indicating that the ECU 19 is of either AP or CP platform type as defined in the AUTOSAR specifications, and information indicating that the OTA method for updating data is either the storage method or the streaming method. With this configuration, it is possible to generate distribution packages corresponding to vehicles in which ECUs 19 with different platform types and data update methods are mixed.
[0072] Furthermore, if the type of the central ECU 13 that relays data updates by the target ECU 19 is AP, the PKG generation unit 33 generates a package with a structure that can be processed by the UCM master, and if the type of the central ECU 13 is CP, the PKG generation unit 33 generates a package with a structure that can be processed by the OTA master. Therefore, it is possible to generate a distribution package appropriate for the type of central ECU 13 specified by AUTOSAR.
[0073] Furthermore, if the type of the target ECU 19 is an AP, the PKG generation unit 33 generates a package with a structure that can be processed by the UCM, and if the type of the target ECU 19 is a CP, the PKG generation unit 33 generates a package with a structure that can be processed by the installer. Therefore, it is possible to generate a distribution package appropriate for the type of the target ECU 19.
[0074] Furthermore, the PKG generation unit 33 generates an integrated package including update data when the OTA method is a storage method, and generates an integrated package not including update data when the OTA method is a streaming method. Therefore, it is possible to generate an appropriate distribution package corresponding to the OTA method of each target ECU 19. In addition, when the OTA method is a streaming method, verification data that is MAC-signed by a common key cryptography method is added to verify the authenticity of the data, so that the authenticity of the data can be reliably verified on the vehicle side.
[0075] On the other hand, the central ECU 13 of the vehicle-side system 4 identifies whether the platform of each ECU is AP or CP and whether the OTA method is storage method or streaming method from the information included in the distribution package received from the center device 3, and switches the processing of the distribution package. Therefore, it is possible to reprogram each target ECU 19, etc. according to the information included in the distribution package.
[0076] Furthermore, if the OTA method is a streaming method, the central ECU 13 obtains a common key from the center device 3 and verifies the validity of the received data by a MAC signature using common key encryption. Furthermore, when a new hardware device is added to the vehicle, the central ECU 13 transmits information about the device to the center device 3, and the center device 3 adds information about the device to the corresponding vehicle information in the individual vehicle information DB 41, so that the information in the individual vehicle information DB 41 can be updated in response to a hardware device being added in the aftermarket.
[0077] (Other embodiments) The PF of the ECU is not limited to the AP and CP, and may correspond to other PFs. Verification by MAC signature using common key cryptography may be performed as necessary. The signature is not limited to a MAC signature. As shown in FIG. 7, when it is detected that a new hardware device or the like has been added to the vehicle, the process of registering information about the device in the configuration information DB 45 may be performed as necessary.
[0078] The integrated package may be generated as follows: The PKG generation unit 33 analyzes the package structure identified by the determination unit 32, and if it differs from the package structure stored in the PKG structure DB 44, generates an integrated package structure including data items included in at least one of the multiple package structures, and then generates a single integrated package for multiple target devices based on the generated integrated package structure.
[0079] FIG. 15 illustrates an example of an integrated package structure and a method for generating an integrated package. First, in S11, information on the vehicle to which the information is to be distributed is obtained as described above, and the target ECU 19 to be updated is identified. In S51, it is determined whether or not there is a plurality of target ECUs 19 to be updated. If there are not a plurality of target ECUs 19 (No in S51), the integrated package is not constructed. If it is determined that there are multiple target ECUs 19 (Yes in S51), in S52, the PF of the target ECU 19, the update method, and the PF of the central ECU 13 are identified based on the ID of the target ECU 19. The determination unit 32 searches the configuration information DB 45 to identify the software architecture of the vehicle model to be updated.
[0080] In S53, the PKG structure DB 44 is referenced, and a corresponding package structure, i.e., a package structure number, is identified based on the PF of the target ECU 19, the update method, and the PF of the central ECU 13. For each of the multiple target ECUs 19, a package structure required by the central ECU 13 and the target ECU 19 for updating the application program is identified.
[0081] In S54, it is determined whether there are multiple package structures. If multiple target ECUs 19 are to be updated but there is only one type of package structure (No in S54), the process proceeds to S55. In this case, the package structure stored in the PKG structure DB 44 is the integrated package structure.
[0082] In S55, a flag is added to the data to make an integrated package so that the vehicle-side system 4 can determine which target ECU 19 each piece of data is used for. For example, assume that the package structure corresponding to two target ECUs 19 is structure No. 6. In this case, there is specification data for updating the application program of the first target ECU 19 and specification data for updating the application program of the second target ECU 19. A flag is added to each piece of specification data.
[0083] If there are multiple package structures (Yes in S54), the process proceeds to S56, where an integrated package structure is generated. The integrated package structure is, for example, the package structure shown in the lower part of Fig. 9. The integrated package structure is a package structure that is not included in the PKG structure DB 44 shown in Fig. 4. The integrated package structure is generated when there are multiple target ECUs 19 and the package structures for the target ECUs 19 are different.
[0084] In S56, data items constituting the package structures are extracted for the multiple package structures to be integrated. In the example shown in Fig. 4, the data items correspond to vehicle PKG, SW PKG, specification data, file configuration information, verification data, difference data, etc. In the example shown in Fig. 9, the data items correspond to SW package manifest, SW package manifest verification data, specification data, specification data verification data, file configuration information, file configuration information verification data, pre-update RXSWIN, pre-update RXSWIN verification data, post-update RXSWIN, post-update RXSWIN verification data, difference data verification data, etc.
[0085] Furthermore, in S56, data items of the integrated package structure are set. The data items included in the integrated package structure are data items included in at least one of the multiple package structures. In this way, the integrated package structure is generated. In S57, corresponding data is extracted from multiple packages for each data item, and an integrated package is generated. The PKG generation unit 33 obtains information required for generating the package from the ECU repro data DB 46 and the ECU metadata DB 42. A flag is added so that the vehicle-side system 4 can determine which package or which target ECU 19 the data is addressed to.
[0086] Through the above steps, multiple packages for multiple target ECUs 19 are generated as one package, regardless of whether the packages have the same structure or different structures. The process from S57 onwards is the same as the process from S17 onwards in Fig. 8, so the description will be omitted.
[0087] The means and / or functions provided by each device, etc., can be provided by software recorded in a tangible memory device and a computer that executes the software, software alone, hardware alone, or a combination of these. For example, when a control device is provided by an electronic circuit that is hardware, it can be provided by a digital circuit including a large number of logic circuits, or an analog circuit. Although the present disclosure has been described based on the embodiment, it is understood that the present disclosure is not limited to the embodiment or structure. The present disclosure also includes various modifications and modifications within the equivalent range. In addition, various combinations and forms, and other combinations and forms including only one element, more than one element, or less than one element, are also within the scope and concept of the present disclosure.
[0088] The control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a computer program. Alternatively, the control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method described in the present disclosure may be realized by one or more special-purpose computers configured by a combination of a processor and a memory programmed to execute one or more functions and a processor configured with one or more hardware logic circuits. In addition, the computer program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer. [Explanation of symbols]
[0089] In the drawing, 1 indicates a vehicle program rewriting system, 3 indicates a center device, 4 indicates a vehicle-side system, 11 indicates a master device, 12 indicates a DCM, 13 indicates a central ECU, 19 indicates an ECU, 30 indicates a control unit, 31 indicates an information storage unit, 32 indicates a judgment unit, 33 indicates a PKG generation unit, 34 indicates a verification data generation unit, 41 indicates an individual vehicle information DB, 42 indicates an ECU metadata DB, 43 indicates a package DB, and 45 indicates a configuration information DB.
Claims
1. A center device (3) for managing data to be written to a plurality of electronic control devices (13, 19) mounted on a vehicle, a vehicle information storage unit (45) in which device identification information for each of the plurality of electronic control devices mounted on the vehicle, information on the software architecture of the device, and information on an update method when updating data are stored together with the type of the vehicle; a package structure storage unit (44) in which information on the structure of a package to be distributed for updating data is stored according to information on a software architecture of a relay device (13) among the plurality of electronic control devices that relays data updates, a software architecture of a target device (19) among the plurality of electronic control devices that is a target for updating data, and an update method when updating data; a determination processing unit (32) that identifies a package structure for a target vehicle in which a target device that is a target for updating data among the plurality of electronic control devices is installed based on information stored in the vehicle information storage unit and the package structure storage unit; a package generating unit (33) for generating a package including information indicating the structure of the package identified by the judgment processing unit; A center device comprising:
2. The information indicating the structure includes, as information regarding the software architecture of the electronic control unit, information indicating that the electronic control unit is either an adaptive platform or a classic platform, which is a type of electronic control unit defined in the AUTOSAR specification; 2. The center device according to claim 1, wherein the information on the update method when updating data includes information indicating that the method for updating the data is either a storage method or a streaming method.
3. One of the plurality of electronic control devices is a relay device (13) that relays data updates by the target device, The package generation unit generates a package having a structure that can be processed by a UCM (Update Configuration Management) master when the type of the relay device is the adaptive platform; 3. The center device according to claim 2, wherein if the relay device is of the classic platform type, a package having a structure that can be processed by an OTA (On The Air) master is generated.
4. The package generation unit generates a package having a structure that can be processed by UCM (Update Configuration Management) when the type of the target device (19) is the adaptive platform; 4. The center device according to claim 2, wherein if the type of the target device is the classic platform, a package having a structure that can be processed by an installer is generated.
5. 5. The center device according to claim 2, wherein the package generation unit generates an integrated package including update data when the data update method is the storage method, and generates an integrated package not including the update data when the data update method is the streaming method.
6. 6. The center device according to claim 2, wherein the package generation unit adds verification data signed with a Message Authentication Code (MAC) signature using a common key cryptography method to verify the validity of the data when a method for updating the data is a streaming method.
7. the package generation unit analyzes the package structure identified by the determination processing unit, and if the package structure is different from the package structure stored in the package structure storage unit, generates an integrated package structure including data items included in at least one of the plurality of package structures; 7. The center device according to claim 1, wherein the package generation unit generates a single integrated package for a plurality of target devices based on the generated integrated package structure.
8. 6. An electronic control device mounted on a vehicle and communicating with a center device according to claim 2, comprising: a package processing unit (13) that identifies, from information contained in a received package, whether the platform is the adaptive platform or the classic platform, and whether the method is the storage method or the streaming method, and switches processing of the package.
9. 7. An electronic control device that is mounted on a vehicle and communicates with the center device described in claim 6, comprising a package processing unit that identifies, from information contained in a received package, whether the platform is the adaptive platform or the classic platform, and whether the package is the storage method or the streaming method, and switches processing of the package.
10. 10. The vehicle-mounted electronic control unit according to claim 9, wherein when the streaming method is adopted, a common key is obtained from the center device, and validity of the received data is verified by the MAC signature using common key encryption.
11. A package distribution system including the center device (3) according to any one of claims 1 to 7 and the in-vehicle electronic control device (4) according to any one of claims 8 to 10, When a new hardware device is added to the vehicle, the in-vehicle electronic control device transmits information about the new device to the center device; The center apparatus adds information about the device to information about the corresponding vehicle in the vehicle information storage unit.
Citation Information
Patent Citations
Internet of Things equipment firmware remote updating method, device and system
CN112148326A
Firmware built-in device, control method, and program
JP2019095905A
Center device, delivery package generation method, and program for delivery package generation
JP2020027624A
