Controller joint upgrading method and device, computer equipment, readable storage medium and program product
Through the joint controller upgrade method, the configuration mismatch problem caused by the upgrade of the controller configuration in the vehicle is solved, the normal operation of the vehicle functions is achieved, and the user experience and vehicle safety are improved.
Patent Information
- Application Number
- CN202411426419.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-02-07
AI Technical Summary
The configuration upgrade of the controller in the vehicle may cause the configuration of the target controller to be mismatched with the associated controller, which in turn affects the normal implementation of the vehicle's functions.
Provide a joint controller upgrade method, by sending upgrade instructions to the upgrade diagnostic device, determining the upgrade file identification of the target controller and the associated controller, and sending the corresponding configuration upgrade file to each controller to ensure that their configuration matches .
The configuration upgrade of the target controller and the associated controller is achieved, ensuring the configuration matching between the controllers, thus ensuring the normal implementation of vehicle functions, improving user experience and ensuring vehicle safety.
Smart Images

Figure CN119396431A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a controller joint upgrade method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] A certain function of a vehicle often requires data interaction between multiple controllers to be implemented, and it is a normal requirement of the vehicle to perform configuration upgrades to update the vehicle controller version. If the configuration of a controller in the vehicle is upgraded, it will cause the configuration of the controller to be mismatched with other controllers (or the version to be mismatched), so that the controller cannot normally interact with other controllers, which in turn causes the vehicle function to fail to be implemented normally. Summary of the invention
[0003] Based on this, it is necessary to provide a controller joint upgrade method, device, computer equipment, readable storage medium and program product, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems, which can ensure that the target controller and the associated controller configuration match, and thus ensure the normal implementation of vehicle functions.
[0004] In a first aspect, the present application provides a controller joint upgrade method, comprising:
[0005] Sending an upgrade instruction to an upgrade diagnostic device, wherein the upgrade instruction is used by the upgrade diagnostic device to determine upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing manner, wherein the vehicle function request is used to request provision of a vehicle function;
[0006] Receiving configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device, and using the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier;
[0007] A configuration upgrade is performed based on the configuration upgrade file of the target controller, and the configuration upgrade file of the associated controller is sent to the associated controller to instruct the associated controller to perform a configuration upgrade based on the configuration upgrade file of the associated controller.
[0008] In one embodiment, after performing configuration upgrade based on the configuration upgrade file of the target controller and sending the configuration upgrade file of the associated controller to the associated controller, the method further includes:
[0009] determining an upgrade progress of the at least two vehicle controllers;
[0010] Determining an overall upgrade progress based on the upgrade progress of the at least two controllers;
[0011] The overall upgrade progress is fed back to the upgrade diagnostic device.
[0012] In one embodiment, determining the upgrade progress of the at least two vehicle controllers includes:
[0013] For each vehicle controller, determining a unit upgrade progress of at least two control units in the vehicle controller;
[0014] Accordingly, determining the overall upgrade progress based on the upgrade progress of the at least two controllers includes:
[0015] Based on the unit upgrade progress corresponding to each vehicle controller, the unit upgrade progress of the same control unit is counted to obtain the unit upgrade progress corresponding to each control unit; from the unit upgrade progress corresponding to each control unit, a target unit upgrade progress of each control unit is determined;
[0016] Based on the target unit upgrade progress corresponding to each control unit and the weight corresponding to each control unit, the overall upgrade progress is obtained.
[0017] In one embodiment, for the associated controller, determining the unit upgrade progress of at least two control units in the vehicle controller includes:
[0018] Sending a progress acquisition instruction to the associated controller;
[0019] Receive the unit upgrade progress of at least two control units in the associated controller, which is sent by the associated controller based on the progress acquisition instruction.
[0020] In one embodiment, using the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier includes:
[0021] Performing integrity check and consistency check on the configuration upgrade files corresponding to the upgrade file identifiers;
[0022] When all the checks are passed, the configuration upgrade file corresponding to the upgrade file identifier is used as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier.
[0023] In one embodiment, after feeding back the overall upgrade progress to the upgrade diagnostic device, the method further includes:
[0024] receiving an operation instruction sent by the upgrade diagnostic device, the operation instruction including at least one of an instruction to clear a fault code or a reset instruction sent by the upgrade diagnostic device after determining that the overall upgrade progress meets a preset progress condition;
[0025] The target controller is operated accordingly based on the operation instruction, and the operation instruction is sent to the associated controller to instruct the associated controller to perform the corresponding operation on the associated controller based on the operation instruction.
[0026] In a second aspect, the present application provides a controller joint upgrade method, comprising:
[0027] Receive the upgrade instruction sent by the target controller;
[0028] Based on the upgrade instruction, determine the upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing manner, wherein the vehicle function request is a request for providing a vehicle function;
[0029] Send the configuration upgrade file corresponding to each upgrade file identifier to the target controller to instruct the target controller to use the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier; perform configuration upgrade based on the configuration upgrade file of the target controller, and send the configuration upgrade file of the associated controller to the associated controller, and the configuration upgrade file of the associated controller is used for the associated controller to perform configuration upgrade.
[0030] In a third aspect, the present application further provides a controller joint upgrade device, comprising:
[0031] A first sending module is used to send an upgrade instruction to the upgrade diagnostic device, wherein the upgrade instruction is used by the upgrade diagnostic device to determine upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing method, wherein the vehicle function request is used to request the provision of a vehicle function;
[0032] A first receiving module, used for receiving the configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device, and using the configuration upgrade files corresponding to the upgrade file identifier as the configuration upgrade files of the vehicle controller corresponding to the upgrade file identifier;
[0033] An upgrade module is used to perform a configuration upgrade based on the configuration upgrade file of the target controller, and send the configuration upgrade file of the associated controller to the associated controller to instruct the associated controller to perform a configuration upgrade based on the configuration upgrade file of the associated controller.
[0034] In a fourth aspect, the present application further provides a controller joint upgrade device, comprising:
[0035] A second receiving module, used for receiving an upgrade instruction sent by a target controller;
[0036] A determination module, configured to determine upgrade file identifiers of at least two vehicle controllers based on the upgrade instruction; the at least two vehicle controllers include a target controller and an associated controller, the target controller and the associated controller process a vehicle function request through an interactive processing manner, the vehicle function request being a request for providing a vehicle function;
[0037] The second sending module is used to send the configuration upgrade files corresponding to each upgrade file identifier to the target controller to instruct the target controller to use the configuration upgrade files corresponding to the upgrade file identifier as the configuration upgrade files of the vehicle controller corresponding to the upgrade file identifier; perform configuration upgrade based on the configuration upgrade files of the target controller, and send the configuration upgrade files of the associated controller to the associated controller, and the configuration upgrade files of the associated controller are used for the associated controller to perform configuration upgrade.
[0038] In a fifth aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of each embodiment when executing the computer program.
[0039] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method of each embodiment when executed by a processor.
[0040] In a seventh aspect, the present application further provides a computer program product, including a computer program, which implements the steps of the methods of each embodiment when executed by a processor.
[0041] The controller joint upgrade method, device, computer equipment, computer-readable storage medium and computer program product, after sending an upgrade instruction to an upgrade diagnostic device, the upgrade instruction is used by the upgrade diagnostic device to determine the upgrade file identifiers of at least two vehicle controllers, the at least two vehicle controllers include a target controller and an associated controller, the target controller and the associated controller process vehicle function requests through interactive processing, the vehicle function request is used to request the provision of vehicle functions, that is, the same vehicle function requires interactive processing between the target controller and the associated controller to be realized, after receiving the configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device, the configuration upgrade file corresponding to the upgrade file identifier is used as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier, and then the configuration upgrade is performed based on the configuration upgrade file of the target controller, and the configuration upgrade file of the associated controller is sent to the associated controller to instruct the associated controller to perform the configuration upgrade based on the configuration upgrade file of the associated controller, thereby realizing the configuration upgrade of the target controller and the configuration upgrade of the associated controller, realizing the joint upgrade of the configurations of at least two controllers, thereby ensuring that the configurations of at least two controllers match, the target controller and the associated controller normally perform interactive processing to realize the vehicle function, improving the user experience, and ensuring the vehicle safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic diagram of a process of a controller joint upgrade method in one embodiment;
[0044] FIG2 is a schematic diagram of a flow chart of a controller joint upgrade method in another embodiment;
[0045] FIG3 is a schematic diagram of a flow chart of a controller joint upgrade method in another embodiment;
[0046] FIG4 is a structural block diagram of a controller joint upgrading device in one embodiment;
[0047] FIG. 5 is a structural block diagram of a controller joint upgrade device in another embodiment
[0048] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] In one embodiment, Figure 1 As shown, a controller joint upgrade method is provided. This embodiment uses the method applied to a target controller as an example. In this embodiment, the method includes the following steps:
[0051] Step 102: Send an upgrade instruction to the upgrade diagnostic device, where the upgrade instruction is used by the upgrade diagnostic device to determine upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request in an interactive processing manner, where the vehicle function request is used to request provision of a vehicle function;
[0052] The controller joint upgrade of the present application is mainly realized through the interaction between the target controller and the upgrade diagnostic device. The target controller sends an upgrade instruction to the upgrade diagnostic device, and the upgrade diagnostic device determines the upgrade file identifiers of at least two vehicle controllers based on the upgrade instruction;
[0053] In this embodiment, any vehicle controller has multiple versions of configuration upgrade files, and the multiple versions of configuration upgrade files correspond to different upgrade file identifiers. After determining the upgrade file identifier based on the upgrade instruction, the configuration upgrade file version corresponding to the upgrade file identifier can be determined.
[0054] Wherein, the upgrade diagnostic device determines the upgrade file identifiers of at least two vehicle controllers based on the upgrade instruction, including: the upgrade instruction carries the upgrade file identifiers of at least two vehicle controllers, so that the upgrade diagnostic device can directly determine the upgrade file identifiers of at least two vehicle controllers carried in the upgrade instruction;
[0055] Alternatively, the upgrade instruction carries the controller identifications of at least two vehicle controllers, so that the upgrade diagnostic device determines the upgrade file identifications of at least two vehicle controllers based on the controller identifications of at least two vehicle controllers carried in the upgrade instruction;
[0056] Alternatively, the upgrade diagnostic device pre-stores the upgrade file identifier of each controller, and the association relationship between the upgrade file identifier of the controller and the upgrade file identifier of an associated controller of the controller, the upgrade instruction carries the upgrade file identifier of the target vehicle controller, and the upgrade diagnostic device determines the upgrade file identifier of the associated controller based on the upgrade file identifier of the target vehicle controller and the association relationship, and uses the upgrade file identifier of the target vehicle controller and the upgrade file identifier of the associated controller as the upgrade file identifiers of at least two vehicle controllers;
[0057] Alternatively, the upgrade diagnostic device pre-stores the controller identifier of each controller, as well as the association between the controller identifier of the controller and the controller identifier of the associated controller of the controller, the upgrade instruction carries the controller identifier of the target vehicle controller, the upgrade diagnostic device determines the controller identifier of the associated controller based on the controller identifier and the association relationship, determines the upgrade file identifier of the target vehicle controller based on the controller identifier of the target vehicle controller, determines the upgrade file identifier of the associated vehicle controller based on the controller identifier of the associated vehicle controller, and uses the upgrade file identifier of the target vehicle controller and the upgrade file identifier of the associated controller as the upgrade file identifiers of at least two vehicle controllers.
[0058] In this embodiment, there will be functional linkage between vehicle controllers. A certain vehicle function requires signal interaction between controllers to be implemented, so the versions of the controllers need to match to realize the normal functions of the controllers.
[0059] The relationship between the target controller and the associated controller is: a vehicle function request received through the vehicle machine interface requires one or more interactive processes between the target controller and the associated controller to realize the vehicle function requested by the vehicle function request.
[0060] A possible scenario for the interaction between the target controller and the associated controller to process vehicle function requests is: the target controller obtains processed data after processing the vehicle function request, and the target controller sends the processed data to the associated controller for further processing to complete the processing of the vehicle function request; or the associated controller obtains processed data after processing the vehicle function request, and the associated controller sends the processed data to the target controller for further processing to complete the processing of the vehicle function request.
[0061] Step 104, receiving the configuration upgrade files corresponding to the upgrade file identifiers sent by the upgrade diagnostic device, and using the configuration upgrade files corresponding to the upgrade file identifiers as the configuration upgrade files of the vehicle controller corresponding to the upgrade file identifiers;
[0062] An upgrade file identifier corresponds to a configuration upgrade file, and the configuration upgrade file includes various configuration data required for the controller to perform a version upgrade.
[0063] Step 106: Perform configuration upgrade based on the configuration upgrade file of the target controller, and send the configuration upgrade file of the associated controller to the associated controller to instruct the associated controller to perform configuration upgrade based on the configuration upgrade file of the associated controller.
[0064] The target controller itself performs configuration upgrade based on the configuration upgrade file of the target controller, thereby completing the version upgrade of the target controller. At the same time, the target controller sends the configuration upgrade file of the associated controller to the associated controller, so that the associated controller can perform configuration upgrade based on the configuration upgrade file of the associated controller. In this way, both the target controller and the associated controller can complete the configuration upgrade, thereby realizing the joint upgrade of the target controller and the associated controller.
[0065] It can be seen that after sending the upgrade instruction to the upgrade diagnostic device, the upgrade instruction is used by the upgrade diagnostic device to determine the upgrade file identifiers of at least two vehicle controllers, the at least two vehicle controllers include a target controller and an associated controller, the target controller and the associated controller process vehicle function requests through interactive processing, the vehicle function request is used to request the provision of vehicle functions, that is, the same vehicle function requires interactive processing between the target controller and the associated controller to be realized, after receiving the configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device, the configuration upgrade file corresponding to the upgrade file identifier is used as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier, and then the configuration upgrade is performed based on the configuration upgrade file of the target controller, and the configuration upgrade file of the associated controller is sent to the associated controller to instruct the associated controller to perform the configuration upgrade based on the configuration upgrade file of the associated controller, thereby realizing the configuration upgrade of the target controller and the configuration upgrade of the associated controller, realizing the joint upgrade of the configurations of at least two controllers, thereby ensuring that the configurations of at least two controllers match, and the target controller and the associated controller perform interactive processing normally to realize the vehicle function, thereby improving the user experience and ensuring the vehicle safety.
[0066] In one of the embodiments, after performing the configuration upgrade based on the configuration upgrade file of the target controller and sending the configuration upgrade file of the associated controller to the associated controller, the method further includes: determining the upgrade progress of the at least two vehicle controllers; determining the overall upgrade progress based on the upgrade progress of the at least two controllers; and feeding back the overall upgrade progress to the upgrade diagnostic device.
[0067] In one embodiment, determining the upgrade progress of the at least two vehicle controllers includes: determining the unit upgrade progress of at least two control units in the vehicle controller for each vehicle controller; correspondingly, determining the overall upgrade progress based on the upgrade progress of the at least two controllers includes: based on the unit upgrade progress corresponding to each vehicle controller, counting the unit upgrade progress of the same control unit to obtain the unit upgrade progress corresponding to each control unit; determining the target unit upgrade progress of each control unit from the unit upgrade progress corresponding to each control unit; and obtaining the overall upgrade progress based on the target unit upgrade progress corresponding to each control unit and the weight corresponding to each control unit.
[0068] Each vehicle controller includes at least two control units, which may be a system on chip (SoC) and a microcontroller unit (MCU). For each vehicle controller, it is necessary to determine the upgrade progress of the SoC and the upgrade progress of the MCU.
[0069] Based on the upgrade progress of the SOC and the upgrade progress of the MCU corresponding to each vehicle controller, the unit upgrade progress of the MCU is counted to obtain the unit upgrade progress corresponding to the MCU in each vehicle controller, and the target unit upgrade progress of the MCU is determined from the unit upgrade progress corresponding to the MCU in multiple vehicle controllers; the target unit upgrade progress of the SOC is determined from the unit upgrade progress corresponding to the SOC in multiple vehicle controllers;
[0070] Based on the target unit upgrade progress corresponding to the MCU, the target unit upgrade progress corresponding to the SOC, the weight corresponding to the MCU, and the weight corresponding to the SOC, the overall upgrade progress is obtained.
[0071] The step of determining the target unit upgrade progress of the MCU from the unit upgrade progresses corresponding to the MCUs in the multiple vehicle controllers includes: determining the minimum unit upgrade progress from the unit upgrade progresses corresponding to the MCUs in the multiple vehicle controllers, and using the minimum unit upgrade progress as the target unit upgrade progress of the MCU;
[0072] Among them, determining the target unit upgrade progress of SOC from the unit upgrade progresses corresponding to SOC in multiple vehicle controllers includes: determining the minimum unit upgrade progress from the unit upgrade progresses corresponding to SOC in multiple vehicle controllers, and determining the target unit upgrade progress of SOC based on the minimum unit upgrade progress.
[0073] One scenario of this embodiment is:
[0074] The weight of SOC refresh progress is 80%, and the weight of MCU refresh progress is 20%;
[0075] Determine the first minimum value of the refresh progress of the SOC of controller 1 and the refresh progress of the SOC of controller 2, and the second minimum value of the refresh progress of the MCU of controller 1 and the refresh progress of the MCU of controller 2, and add the first minimum value and the second minimum value to report, as shown in the following example:
[0076] When the SOC upgrade progress of controller 1 is 50% and the SOC upgrade progress of controller 2 is 40%, the MCU upgrade progress of controller 1 and controller 2 are both 0%, and the total progress is 32% = 40% * 80%;
[0077] After the SOC upgrade of controller 1 and controller 2 is completed, the MCU upgrade progress of controller 1 is 50%, and the MCU upgrade progress of controller 2 is 60%; the total progress is 90% = 80% + 50% * 20%.
[0078] In one of the embodiments, determining the unit upgrade progress of at least two control units in the vehicle controller includes: sending a progress acquisition instruction to the associated controller; receiving the unit upgrade progress of at least two control units in the associated controller sent by the associated controller based on the progress acquisition instruction.
[0079] For the target controller, the target vehicle controller may determine the unit upgrade progress of at least two control units of the target vehicle controller;
[0080] For the associated controller, the target controller sends a progress acquisition instruction to the associated controller through the scalable service-oriented middleware over IP (someip) protocol. After receiving the progress acquisition instruction, the associated controller feeds back the unit upgrade progress of at least two control units of the vehicle controller to the target controller through the someip protocol.
[0081] The upgrade diagnostic device sends a unified diagnostic services (UDS) protocol 22 service instruction to the target controller to read the installation status of the target controller until the installation is completed. The target controller then feeds back the verification results to the upgrade diagnostic device. The installation status indicates the overall upgrade progress of the target controller and associated controllers.
[0082] In one of the embodiments, using the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier includes: performing integrity check and consistency check on the configuration upgrade files corresponding to each upgrade file identifier; when all checks pass, using the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier.
[0083] The upgrade diagnostic device sends UDS protocol 31 service instructions to the target controller to perform routine control on the target controller. The target controller performs integrity and consistency checks on the configuration upgrade files corresponding to each upgrade file identifier, for example, verifying the integrity and consistency of the configuration upgrade file corresponding to the upgrade file identifier of the target controller, and verifying the integrity and consistency of the configuration upgrade file corresponding to the upgrade file identifier of the associated controller.
[0084] If the configuration upgrade file corresponding to the upgrade file identifier of the target controller passes both the integrity check and the consistency check, the configuration upgrade file is used as the configuration upgrade file of the target controller;
[0085] When the integrity check and consistency check of the configuration upgrade file corresponding to the upgrade file identifier of the associated controller are passed, the configuration upgrade file is used as the configuration upgrade file of the associated controller.
[0086] In one embodiment, performing a configuration upgrade based on a configuration upgrade file of a target controller, and sending a configuration upgrade file of an associated controller to an associated controller to instruct the associated controller to perform a configuration upgrade based on the configuration upgrade file of the associated controller, includes:
[0087] The upgrade diagnosis device sends a UDS protocol 31 service instruction to the target controller, performs routine control on the target controller, starts the routine, and the target controller performs configuration upgrade based on the configuration upgrade file of the target controller;
[0088] The target controller sends the configuration upgrade file of the associated controller to the associated controller through the internal protocol, and after the transmission is completed, the target controller and the associated controller each perform a software upgrade action. The internal protocol may be a network file system (NFS) protocol.
[0089] In one of the embodiments, after the overall upgrade progress is fed back to the upgrade diagnostic device, the method further includes: receiving an operation instruction sent by the upgrade diagnostic device, the operation instruction including at least one of an instruction to clear a fault code or a reset instruction sent by the upgrade diagnostic device after determining that the overall upgrade progress meets a preset progress condition; performing corresponding operations on the target controller based on the operation instruction, and sending the operation instruction to the associated controller to instruct the associated controller to perform corresponding operations on the associated controller based on the operation instruction.
[0090] For the scenario where the operation instruction is to clear the fault code, the application scheme is:
[0091] The upgraded diagnostic device sends a UDS protocol 14 service command to the target controller, namely, a clear fault code command, which is used to clear the fault code. After the target controller receives the clear fault code command, the controller needs to clear the fault code.
[0092] At the same time, the target controller needs to send a clear fault code instruction to the MCU of the target controller, and the MCU then sends the clear fault code instruction to the associated controller through the diagnostic controller area network identifier (CAN ID) of the associated controller to clear the fault code.
[0093] For the scenario where the operation instruction is a reset instruction, the application solution is:
[0094] After determining that the overall upgrade progress is greater than a preset progress threshold, the upgrade diagnostic device sends a UDS protocol 11 service instruction to the target controller, and the controller is reset. After receiving the reset instruction, the target controller sends the reset instruction to the MCU and SOC of the target controller through an internal protocol to perform a restart action; the internal protocol may be an inter-process communication (IPC) protocol;
[0095] At the same time, the target controller also needs to send the reset instruction to the associated controller through the internal protocol (the internal protocol can be the someip protocol). After receiving the reset instruction, the associated controller sends it to the MCU and SOC of the associated controller through the internal IPC protocol to execute the restart action.
[0096] In one of the embodiments, receiving the configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device includes: receiving the file path of the configuration upgrade file sent by the upgrade diagnostic device; and receiving the configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device through the file path.
[0097] The upgrade diagnostic device sends a UDS protocol 38 service instruction to the target controller, providing the target controller with a file path and file size of a configuration upgrade file;
[0098] The upgrade diagnostic device sends a UDS protocol 36 service instruction to the target controller, and transmits the configuration upgrade file of each vehicle controller to the target controller;
[0099] After the upgrade diagnostic device determines that the configuration upgrade file transmission is completed, it sends a UDS protocol 37 service instruction to the target controller to exit the transmission of the configuration upgrade file;
[0100] The target controller receives the configuration upgrade files corresponding to the upgrade file identifiers sent by the upgrade diagnosis device through the file path.
[0101] In one embodiment, as shown in FIG2 , a controller joint upgrade method is provided. This embodiment uses the method applied to upgrade a diagnostic device as an example. In this embodiment, the method includes the following steps:
[0102] Step 202: receiving an upgrade instruction sent by a target controller;
[0103] Step 204: determining upgrade file identifiers of at least two vehicle controllers based on the upgrade instruction; the at least two vehicle controllers include a target controller and an associated controller, the target controller and the associated controller process a vehicle function request through an interactive processing manner, and the vehicle function request is a request for providing a vehicle function;
[0104] Step 206: Send the configuration upgrade file corresponding to each upgrade file identifier to the target controller to instruct the target controller to use the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier; perform configuration upgrade based on the configuration upgrade file of the target controller, and send the configuration upgrade file of the associated controller to the associated controller, and the configuration upgrade file of the associated controller is used for the associated controller to perform configuration upgrade.
[0105] The specific implementation of the steps in this embodiment is the same as above Figure 1 The steps of the illustrated embodiments are similar and are substantially the same technical solutions, which will not be described in detail here.
[0106] It can be seen that after receiving the upgrade instruction sent by the target controller, based on the upgrade instruction, the upgrade file identifiers of at least two vehicle controllers can be determined; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process vehicle function requests through interactive processing. The vehicle function request is a request for providing vehicle functions, that is, the same vehicle function requires interactive processing between the target controller and the associated controller to be realized, and the configuration upgrade file corresponding to each upgrade file identifier is sent to the target controller to instruct the target controller to use the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier; configuration upgrade is performed based on the configuration upgrade file of the target controller, and the configuration upgrade file of the associated controller is sent to the associated controller, and the configuration upgrade file of the associated controller is used for the associated controller to perform configuration upgrade, thereby realizing the joint upgrade of the configurations of at least two controllers, thereby ensuring that the configurations of at least two controllers match, and the target controller and the associated controller perform normal interactive processing to realize vehicle functions, thereby improving user experience and ensuring vehicle safety.
[0107] In summary, in the existing solutions, there will be functional linkage between vehicle controllers. A certain vehicle function requires signal interaction between controllers to be realized, so the versions (or configurations) between controllers need to match to realize the normal functions of the controllers. The software version updates and iterations of the on-board controllers may be frequent and complicated. If only one controller is upgraded, it will cause the controller version (or configuration) to mismatch, resulting in the inability to think of vehicle functions, affecting the reliability of vehicle functions and user experience.
[0108] The present application provides a controller joint upgrade method. When a controller needs to be upgraded, the associated controller is upgraded synchronously. The upgrade diagnostic device exchanges data with the target controller to achieve unified software upgrade of the target controller and the associated controller. The specific process of the controller joint upgrade method of the present application is as follows:
[0109] Step 1: The upgraded diagnostic device (corresponding to the diagnostic instrument in the figure) establishes a diagnostic communication connection with the vehicle through the on-board diagnostic system (OBD) interface, and performs diagnostic communication with the target controller based on the diagnostic communication protocol over internet protocol (DoIP);
[0110] The process includes three stages: before flashing, during flashing, and after flashing. Before flashing corresponds to steps 2 to 4, during flashing corresponds to steps 5 to 13, and after flashing corresponds to steps 14 to 19;
[0111] Step 2: The upgrade diagnostic device sends a UDS protocol diagnostic session instruction to the target controller, executes 10 service function addressing, and the target controller enters the extended session;
[0112] Step 3: The upgrade diagnostic device sends a UDS protocol 85 service instruction to the target controller, executes the 85 service function addressing, stops updating the diagnostic trouble code (DTC) status of the target controller, and supports the subsequent shutdown of the sending and receiving of network communication messages and network management message information, so as to prevent the DTC from being incorrectly recorded due to the fault triggered by the flashing operation during the controller upgrade process;
[0113] Step 4: The upgrade diagnostic device sends the UDS protocol 28 service instruction to the target controller to close the sending and receiving of network communication messages and network management message information. During the controller upgrade process, by executing the 28 service function addressing, the sending and receiving of bus application messages and network management messages can be suppressed to reduce the network bus load, reduce communication interference, ensure the smooth transmission of key data, and improve the overall communication efficiency.
[0114] Step 5: The upgrade diagnostic device sends a UDS protocol diagnostic session instruction to the target controller, and the target controller switches the session and enters the programming session;
[0115] Step 6: The upgrade diagnostic device sends a UDS protocol 27 service instruction to the target controller, and the target controller passes the corresponding level of security access;
[0116] Step 7: The upgrade diagnostic device sends a UDS protocol 2E service instruction to the target controller, and the target controller writes specific information: the diagnostic device serial number and installation date, and records the controller upgrade record;
[0117] Step 8: The upgrade diagnostic device sends a UDS protocol 38 service instruction to the target controller, providing information such as the controller flash file path and file size, where the flash file is the configuration upgrade file of the controller;
[0118] Step 9: The upgrade diagnostic device sends a UDS protocol 36 service instruction to the target controller to transfer the flash file;
[0119] Step 10: After the upgrade diagnostic device determines that the configuration upgrade file transfer is complete, it sends a UDS protocol 37 service instruction and exits the file transfer;
[0120] Step 11: The upgrade diagnostic device sends a UDS protocol 31 service instruction to the target controller to verify the integrity and consistency of the configuration upgrade file of the controller;
[0121] Step 12: The upgrade diagnostic device sends a UDS protocol 31 service instruction to the target controller to control each vehicle controller to perform a configuration upgrade;
[0122] Step 13: The upgrade diagnostic device sends a UDS protocol 22 service instruction to the target controller to read the overall upgrade progress of the controller;
[0123] Step 14: The upgrade diagnostic device sends a UDS protocol 11 service instruction to the target controller to control the MCU and SOC of the controller to reset;
[0124] Step 15: The upgraded diagnostic device sends a UDS protocol diagnostic session instruction to the target controller, executes 10 service function addressing, and the controller enters an extended session;
[0125] Step 16: The upgrade diagnostic device sends a UDS protocol 28 service instruction to the target controller, executes 28 service function addressing, and starts sending and receiving network communication messages and network management message information;
[0126] Step 17: The upgrade diagnostic device sends a UDS protocol 85 service instruction to the target controller, executes 85 service function addressing, and starts the controller DTC status update;
[0127] Step 18, the diagnostic instrument sends instruction 10 81, and the controller enters the default session;
[0128] Step 19: The upgrade diagnostic device sends a UDS protocol 14 service instruction to the target controller to clear the fault codes of each controller.
[0129] For the specific implementation of the above steps 8 to 14 and step 19, please refer to the relevant description of the above embodiment, which will not be repeated here.
[0130] In this embodiment, the target controller supports the DoIP protocol and the unified diagnostic services over controller area network (UDS on CAN) protocol, the associated controller supports the UDS on CAN protocol, and the communication between the target controller and the upgraded diagnostic device is based on the DoIP protocol.
[0131] After the flash process is completed, the target controller obtains the configuration upgrade file version of the target controller through DoIP, and compares it with the configuration upgrade file version required by the target controller to determine whether the upgrade is successful;
[0132] The associated controller obtains the configuration upgrade file version of the associated controller through UDS on CAN, and compares it with the configuration upgrade file version required by the target controller to determine whether the upgrade is successful.
[0133] The technical solution for the function interface of the controller upgrade application in the after-sales diagnostic instrument is: develop an open test sequence exchange (OTX) file according to the above steps 1 to 18. OTX is a sequence development standard specially formulated for the automotive industry, suitable for guiding the diagnostic program development process, and is used in upgrading diagnostic equipment to realize the joint upgrade of the target controller and the associated controllers using the after-sales diagnostic method.
[0134] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0135] Based on the same inventive concept, the embodiment of the present application also provides a controller joint upgrade device for implementing the controller joint upgrade method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more controller joint upgrade device embodiments provided below can refer to the limitations of the controller joint upgrade method above, and will not be repeated here.
[0136] In an exemplary embodiment, as shown in FIG4 , a controller joint upgrading device 400 is provided, comprising:
[0137] A first sending module 401 is used to send an upgrade instruction to the upgrade diagnostic device, wherein the upgrade instruction is used by the upgrade diagnostic device to determine upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing method, wherein the vehicle function request is used to request the provision of a vehicle function;
[0138] A first receiving module 402 is used to receive the configuration upgrade files corresponding to the upgrade file identifiers sent by the upgrade diagnostic device, and use the configuration upgrade files corresponding to the upgrade file identifiers as the configuration upgrade files of the vehicle controller corresponding to the upgrade file identifiers;
[0139] The upgrade module 403 is used to perform configuration upgrade based on the configuration upgrade file of the target controller, and send the configuration upgrade file of the associated controller to the associated controller to instruct the associated controller to perform configuration upgrade based on the configuration upgrade file of the associated controller.
[0140] In one of the embodiments, the device also includes a determination module, which is used to determine the upgrade progress of the at least two vehicle controllers after the first sending module performs a configuration upgrade based on the configuration upgrade file of the target controller and sends the configuration upgrade file of the associated controller to the associated controller; determine the overall upgrade progress based on the upgrade progress of the at least two controllers; and feedback the overall upgrade progress to the upgrade diagnostic device.
[0141] In one embodiment, when determining the upgrade progress of the at least two vehicle controllers, the determination module is specifically used to:
[0142] For each vehicle controller, determining a unit upgrade progress of at least two control units in the vehicle controller;
[0143] Accordingly, when determining the overall upgrade progress based on the upgrade progress of the at least two controllers, the determination module is specifically used to:
[0144] Based on the unit upgrade progress corresponding to each vehicle controller, the unit upgrade progress of the same control unit is counted to obtain the unit upgrade progress corresponding to each control unit; from the unit upgrade progress corresponding to each control unit, a target unit upgrade progress of each control unit is determined;
[0145] Based on the target unit upgrade progress corresponding to each control unit and the weight corresponding to each control unit, the overall upgrade progress is obtained.
[0146] In one embodiment, when determining the unit upgrade progress of at least two control units in the vehicle controller for the associated controller, the determination module is specifically used to:
[0147] Sending a progress acquisition instruction to the associated controller;
[0148] Receive the unit upgrade progress of at least two control units in the associated controller, which is sent by the associated controller based on the progress acquisition instruction.
[0149] In one embodiment, when the first receiving module 402 uses the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier, it is specifically used to:
[0150] Performing integrity check and consistency check on the configuration upgrade files corresponding to the upgrade file identifiers;
[0151] When all the checks are passed, the configuration upgrade file corresponding to the upgrade file identifier is used as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier.
[0152] In one embodiment, the apparatus further includes a third receiving module, after the determining module feeds back the overall upgrade progress to the upgrade diagnostic device, the third receiving module is further configured to:
[0153] receiving an operation instruction sent by the upgrade diagnostic device, the operation instruction including at least one of an instruction to clear a fault code or a reset instruction sent by the upgrade diagnostic device after determining that the overall upgrade progress meets a preset progress condition;
[0154] The target controller is operated accordingly based on the operation instruction, and the operation instruction is sent to the associated controller to instruct the associated controller to perform the corresponding operation on the associated controller based on the operation instruction.
[0155] In an exemplary embodiment, as shown in FIG5 , a controller joint upgrading device 500 is provided, comprising:
[0156] The second receiving module 501 is used to receive an upgrade instruction sent by the target controller;
[0157] A determination module 502 is used to determine upgrade file identifiers of at least two vehicle controllers based on the upgrade instruction; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing manner, and the vehicle function request is a request for providing a vehicle function;
[0158] The second sending module 503 is used to send the configuration upgrade files corresponding to each upgrade file identifier to the target controller to instruct the target controller to use the configuration upgrade files corresponding to the upgrade file identifier as the configuration upgrade files of the vehicle controller corresponding to the upgrade file identifier; perform configuration upgrade based on the configuration upgrade files of the target controller, and send the configuration upgrade files of the associated controller to the associated controller, and the configuration upgrade files of the associated controller are used for the associated controller to perform configuration upgrade.
[0159] Each module in the above controller joint upgrade device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0160] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store controller joint upgrade data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a controller joint upgrade method is implemented.
[0161] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0162] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the method of each embodiment when executing the computer program.
[0163] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method of each embodiment are implemented.
[0164] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of implementing the methods of various embodiments when executed by a processor.
[0165] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0167] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A controller joint upgrade method, characterized in that: The method comprises: Sending an upgrade instruction to an upgrade diagnostic device, wherein the upgrade instruction is used by the upgrade diagnostic device to determine upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing manner, wherein the vehicle function request is used to request provision of a vehicle function; Receiving configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device, and using the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier; A configuration upgrade is performed based on the configuration upgrade file of the target controller, and the configuration upgrade file of the associated controller is sent to the associated controller to instruct the associated controller to perform a configuration upgrade based on the configuration upgrade file of the associated controller.
2. The method according to claim 1, characterized in that After performing configuration upgrade based on the configuration upgrade file of the target controller and sending the configuration upgrade file of the associated controller to the associated controller, the method further includes: determining an upgrade progress of the at least two vehicle controllers; Determining an overall upgrade progress based on the upgrade progress of the at least two controllers; The overall upgrade progress is fed back to the upgrade diagnostic device.
3. The method according to claim 2, characterized in that The determining the upgrade progress of the at least two vehicle controllers includes: For each vehicle controller, determining a unit upgrade progress of at least two control units in the vehicle controller; Accordingly, determining the overall upgrade progress based on the upgrade progress of the at least two controllers includes: Based on the unit upgrade progress corresponding to each vehicle controller, the unit upgrade progress of the same control unit is counted to obtain the unit upgrade progress corresponding to each control unit; from the unit upgrade progress corresponding to each control unit, a target unit upgrade progress of each control unit is determined; Based on the target unit upgrade progress corresponding to each control unit and the weight corresponding to each control unit, the overall upgrade progress is obtained.
4. The method according to claim 3, characterized in that For the associated controller, the determining the unit upgrade progress of at least two control units in the vehicle controller includes: Sending a progress acquisition instruction to the associated controller; Receive the unit upgrade progress of at least two control units in the associated controller, which is sent by the associated controller based on the progress acquisition instruction.
5. The method according to any one of claims 1 to 4, characterized in that The step of using the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier comprises: Performing integrity check and consistency check on the configuration upgrade files corresponding to the upgrade file identifiers; When all the checks are passed, the configuration upgrade file corresponding to the upgrade file identifier is used as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier.
6. The method according to any one of claims 2 to 4, characterized in that After feeding back the overall upgrade progress to the upgrade diagnostic device, the method further includes: receiving an operation instruction sent by the upgrade diagnostic device, the operation instruction including at least one of an instruction to clear a fault code or a reset instruction sent by the upgrade diagnostic device after determining that the overall upgrade progress meets a preset progress condition; The target controller is operated accordingly based on the operation instruction, and the operation instruction is sent to the associated controller to instruct the associated controller to perform the corresponding operation on the associated controller based on the operation instruction.
7. A controller joint upgrade method, characterized in that: The method comprises: Receive the upgrade instruction sent by the target controller; Based on the upgrade instruction, determine the upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing manner, wherein the vehicle function request is a request for providing a vehicle function; Send the configuration upgrade file corresponding to each upgrade file identifier to the target controller to instruct the target controller to use the configuration upgrade file corresponding to the upgrade file identifier as the configuration upgrade file of the vehicle controller corresponding to the upgrade file identifier; perform configuration upgrade based on the configuration upgrade file of the target controller, and send the configuration upgrade file of the associated controller to the associated controller, and the configuration upgrade file of the associated controller is used for the associated controller to perform configuration upgrade.
8. A controller joint upgrade device, characterized in that: The device comprises: A first sending module is used to send an upgrade instruction to the upgrade diagnostic device, wherein the upgrade instruction is used by the upgrade diagnostic device to determine upgrade file identifiers of at least two vehicle controllers; the at least two vehicle controllers include a target controller and an associated controller, and the target controller and the associated controller process a vehicle function request through an interactive processing method, wherein the vehicle function request is used to request the provision of a vehicle function; A first receiving module, used for receiving the configuration upgrade files corresponding to each upgrade file identifier sent by the upgrade diagnostic device, and using the configuration upgrade files corresponding to the upgrade file identifier as the configuration upgrade files of the vehicle controller corresponding to the upgrade file identifier; An upgrade module is used to perform a configuration upgrade based on the configuration upgrade file of the target controller, and send the configuration upgrade file of the associated controller to the associated controller to instruct the associated controller to perform a configuration upgrade based on the configuration upgrade file of the associated controller.
9. A controller joint upgrade device, characterized in that: The device comprises: A second receiving module is used to receive an upgrade instruction sent by the target controller; A determination module, configured to determine upgrade file identifiers of at least two vehicle controllers based on the upgrade instruction; the at least two vehicle controllers include a target controller and an associated controller, the target controller and the associated controller process a vehicle function request through an interactive processing manner, the vehicle function request being a request for providing a vehicle function; The second sending module is used to send the configuration upgrade files corresponding to each upgrade file identifier to the target controller to instruct the target controller to use the configuration upgrade files corresponding to the upgrade file identifier as the configuration upgrade files of the vehicle controller corresponding to the upgrade file identifier; perform configuration upgrade based on the configuration upgrade files of the target controller, and send the configuration upgrade files of the associated controller to the associated controller, and the configuration upgrade files of the associated controller are used for the associated controller to perform configuration upgrade.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.