Application upgrading method and device, controller, vehicle and storage medium

By detecting the running status of the target controller and autonomously transmitting upgrade files, the problems of poor user experience and low efficiency during OTA upgrades are solved, achieving seamless upgrades and improving the efficiency and success rate of application upgrades.

CN119781789BActive Publication Date: 2025-11-04BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411412353.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-11-04
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

Existing vehicle application upgrade methods, when upgraded via OTA technology, render the vehicle inoperable, resulting in a poor upgrade experience and low efficiency. Furthermore, if the transmission fails, the process must be restarted from scratch, impacting both the driving experience and efficiency.

Method used

The system detects the operating status by targeting the controller, and autonomously transmits and upgrades applications under preset conditions. Breakpoints are recorded for resume transmission, enabling seamless upgrades and avoiding impact on equipment operation.

Benefits of technology

It improves the experience and efficiency of application upgrades, allowing users to perform other operations during the upgrade process and resume interrupted transmissions if the transmission fails, thus increasing the success rate and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781789B_ABST
    Figure CN119781789B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an application upgrading method and device, a controller, a vehicle and a storage medium. A target controller applied to a target device stores an upgrade file of a target application running in the target controller by downloading the upgrade file. The running state of the target device is detected. If the running state meets preset transmission conditions, the target application transmits the stored upgrade file to a data storage space corresponding to the target controller. The target application is upgraded based on the upgrade file in the data storage space. In this way, the running state of the target device is detected by the target controller. When the running state meets the preset transmission conditions, the target application transmits the stored upgrade file to the data storage space corresponding to the target controller. The target application is upgraded based on the upgrade file in the data storage space. The target application running in the target controller is upgraded without sensing, the application upgrading experience is effectively improved, and the efficiency of application upgrading is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an application upgrade method, apparatus, controller, vehicle, and storage medium. Background Technology

[0002] After a vehicle is launched on the market, it often encounters situations where the electronic control unit (ECU) needs to be updated with new functions, or where production line maintenance requires ECU software upgrades. Current software update methods typically employ over-the-air (OTA) technology. The updated software is uploaded to an OTA center via OTA, then wirelessly transmitted to the vehicle for the update. Finally, the vehicle's infotainment system guides the corresponding controller to update the software via the CAN protocol.

[0003] However, when using OTA for application upgrades, the vehicle switches the ECU to upgrade mode, so that the driver cannot perform any operation on the vehicle during the entire upgrade process, resulting in a poor application upgrade experience and consequently low application upgrade efficiency. Summary of the Invention

[0004] This application provides an application upgrade method, apparatus, controller, vehicle, and storage medium, which can achieve seamless upgrades of target applications running on the target controller, effectively improving the application upgrade experience and thus increasing the efficiency of application upgrades.

[0005] To achieve the above objectives, according to a first aspect of this application, an application upgrade method is provided, applied to a target controller of a target device, the method comprising:

[0006] Download and save the upgrade file of the target application running in the target controller;

[0007] Detect the operating status of the target device;

[0008] If the running status meets the preset transmission conditions, the stored upgrade file is transmitted to the data storage space corresponding to the target controller through the target application;

[0009] The target application is upgraded based on the upgrade file in the data storage space.

[0010] In some embodiments, the upgrade file includes multiple data packets. The step of transmitting the stored upgrade file to the data storage space corresponding to the target controller via the target application if the operating state meets preset transmission conditions includes: transmitting a data packet to the data storage space corresponding to the target controller via the target application if the operating state meets preset transmission conditions; the method further includes: returning to the step of detecting the operating state of the target device until all data packets of the upgrade file are transmitted to the data storage space corresponding to the target controller.

[0011] In some embodiments, after transmitting a data packet to the data storage space corresponding to the target controller through the target application if the operating state meets the preset transmission conditions, the method further includes: if it is detected that the operating state does not meet the preset transmission conditions, recording the storage address information of the target data packet, wherein the target data packet is the last data packet transmitted to the data storage space; and returning to the step of detecting the operating state of the target device.

[0012] The method further includes: during the process of returning to perform the detection of the operating status of the target device, if the operating status is detected to meet the preset transmission conditions, then based on the storage address information, the untransmitted data packets are continued to be transmitted to the data storage space corresponding to the target controller.

[0013] In some embodiments, downloading and storing the upgrade file of the target application running in the target controller includes: receiving upgrade file path information for the upgrade file of the target application running in the target controller from a first server; and downloading the upgrade file corresponding to the target application from a second server based on the upgrade file path information.

[0014] In some embodiments, the target device includes an online storage module, and the step of downloading and storing the upgrade file of the target application running in the target controller includes: receiving upgrade file path information for the upgrade file of the target application running in the target controller from a first server through the online storage module; detecting whether the upgrade file path information exists in the online storage module; and when the upgrade file path information is detected, downloading the upgrade file of the target application based on the upgrade file path information through the target application and storing it in the online storage module.

[0015] In some embodiments, the preset transmission conditions include the target device being in a first preset operating state and / or the target controller being in a second preset operating state.

[0016] In some embodiments, the first preset operating state includes at least one of the target device being in normal driving state and the target device operating speed not exceeding a preset speed threshold.

[0017] In some embodiments, the second preset running state includes at least one of the following: the target task is not currently running among the tasks of the target controller, and the memory usage rate of the target controller is less than a preset threshold. The target task is a task that meets the priority condition and / or the target task is a task whose running time is greater than a preset duration.

[0018] In some embodiments, the data storage space is the internal storage space corresponding to the target controller, and the upgrade of the target application based on the upgrade file in the data storage space includes: receiving a power-off command; based on the power-off command, setting the starting storage address of the upgrade file in the data storage space to the starting running address of the target application, and controlling the target device to be in a power-off state; when the target device is detected to switch from the power-off state to the power-on state, upgrading the target application based on the starting running address of the target application.

[0019] In some embodiments, the data storage space is the external storage space corresponding to the target controller, and the upgrade of the target application based on the upgrade file in the data storage space includes: receiving a power-off command; obtaining the starting running address of the target application based on the power-off command; burning the upgrade file in the data storage space to the internal storage space of the target controller based on the starting running address of the target application; and upgrading the target application based on the upgrade file in the internal storage space when the target device is detected to switch from the power-off state to the power-on state.

[0020] According to a second aspect of this application, an application upgrade apparatus is provided, comprising a target controller configured with a target device, the apparatus including:

[0021] The download module is used to download and store the upgrade file of the target application running in the target controller;

[0022] The detection module is used to detect the operating status of the target device;

[0023] The transmission module is used to transmit the stored upgrade file to the data storage space corresponding to the target controller through the target application if the running state meets the preset transmission conditions.

[0024] The upgrade module is used to upgrade the target application based on the upgrade file in the data storage space.

[0025] According to a third aspect of this application, a target controller is provided, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the application upgrade method provided in the embodiments of this application.

[0026] According to a fourth aspect of this application, a vehicle is provided, the vehicle including the target controller provided in the third aspect of this application.

[0027] According to a fifth aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program adapted for loading by a processor to perform steps in any of the application upgrade methods provided in the embodiments of this application.

[0028] According to a sixth aspect of this application, a computer program product is provided, the computer program product including a computer program stored in a computer-readable storage medium; when a processor of a target controller reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the target controller to perform the steps in the application upgrade method provided in the embodiments of this application.

[0029] In the application upgrade method, apparatus, controller, vehicle, and storage medium of this application embodiment, the target controller applied to the target device downloads and stores the upgrade file of the target application running on the target controller; detects the operating status of the target device; if the operating status meets preset transmission conditions, the target application transmits the stored upgrade file to the data storage space corresponding to the target controller; and upgrades the target application based on the upgrade file in the data storage space. Thus, by detecting the operating status of the target device through the target controller, and when the operating status meets preset transmission conditions, transmitting the stored upgrade file to the data storage space corresponding to the target controller through the target application, and upgrading the target application based on the upgrade file in the data storage space, the target controller actively controls the upgrade process of the target application, achieving seamless upgrades of the target application running on the target controller, avoiding the impact of the target application upgrade process on the operation of the target device, effectively improving the application upgrade experience, and thus improving the efficiency of application upgrades. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 This is a schematic diagram illustrating an application upgrade method implementation scenario provided in this application embodiment;

[0032] Figure 2 This is a flowchart illustrating an application upgrade method provided in an embodiment of this application;

[0033] Figure 3 This is a schematic diagram of the overall architecture of an application upgrade method provided in an embodiment of this application;

[0034] Figure 4 This is a schematic diagram illustrating the specific process of an application upgrade method provided in an embodiment of this application;

[0035] Figure 5 This is a schematic diagram of the structure of the application upgrade device provided in the embodiments of this application;

[0036] Figure 6 This is a schematic diagram of the target controller provided in an embodiment of this application. Detailed Implementation

[0037] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the protection scope of this application.

[0038] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0039] This application provides an application upgrade method, apparatus, controller, vehicle, and storage medium. The application upgrade apparatus can be integrated into an electronic device, which may be a server or a terminal, etc.

[0040] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) acceleration services, and big data and artificial intelligence platforms. The terminal can include, but is not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, target controllers, and aircraft. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.

[0041] The target controller can be integrated into a vehicle, which can be a gasoline-powered vehicle, a plug-in hybrid electric vehicle, or a new energy vehicle, etc. This application does not make any specific limitations on this.

[0042] Please see Figure 1 Taking the application upgrade device integrated into the target controller as an example, Figure 1 This is a schematic diagram of an implementation scenario for the application upgrade method provided in this application. The target controller can be integrated into a vehicle. The target controller can download and store the upgrade file of the target application running in the target controller; detect the operating status of the target device; if the operating status meets the preset transmission conditions, transmit the stored upgrade file to the data storage space corresponding to the target controller through the target application; and upgrade the target application based on the upgrade file in the data storage space.

[0043] It should be noted that, Figure 1 The illustrated scenario of the application upgrade method is merely an example. The implementation environment scenario of the application upgrade method described in this application embodiment is for the purpose of more clearly illustrating the technical solution of this application embodiment and does not constitute a limitation on the technical solution provided in this application embodiment. Those skilled in the art will understand that with the evolution of data processing and the emergence of new business scenarios, the technical solution provided in this application is also applicable to similar technical problems.

[0044] The solutions provided in this application are specifically illustrated through the following embodiments. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0045] This embodiment will be described from the perspective of an application upgrade device, which can be integrated into the target controller.

[0046] Please see Figure 2 , Figure 2This is a flowchart illustrating the application upgrade method provided in an embodiment of this application. The application upgrade method is applied to a target controller of a target device and includes:

[0047] Step S101: Download and save the upgrade file of the target application running in the target controller.

[0048] The target controller can be an electronic control unit (ECU) in a target device, such as a vehicle. The target controller can be an onboard controller within the vehicle, for example, a battery management controller (BMC) or a motor control ECU. The upgrade file can be used to upgrade the target application running on the target controller.

[0049] There are several ways to download and store the upgrade file of the target application running in the target controller. For example, it can receive the upgrade file path information of the upgrade file of the target application running in the target controller from the first server; and download the upgrade file corresponding to the target application from the second server based on the upgrade file path information.

[0050] The first server can be a server that establishes communication with the target controller. For example, the target controller can establish a communication connection with the first server through the target application, or through a data transmission unit such as an online storage unit (DTU). The specific connection method is not limited in this embodiment. Optionally, the first server can be a cloud platform that can be used to communicate with the target controller. The upgrade file path information can be the path used to obtain the upgrade file of the target application, and the second server can be a server that stores the upgrade file of the target application.

[0051] Therefore, by differentiating the server that communicates with the target controller from the server that stores the upgrade files, the security of data transmission and application upgrades can be improved, and the risks of application upgrades can be reduced.

[0052] Optionally, there are several other ways to download and store the upgrade file of the target application running in the target controller. For example, the target device may include an online storage module. The online storage module can receive the upgrade file path information of the upgrade file of the target application running in the target controller from the first server, detect whether the upgrade file path information exists in the online storage module, and when the upgrade file path information is detected, download the upgrade file of the target application based on the upgrade file path information and store it in the online storage module.

[0053] The online storage module can be a module that establishes a communication connection with the first server for upgrading file data transmission. For example, it can be a storage module used in vehicle-mounted terminals such as remote communication terminals (TBOX). Optionally, the online storage module can be a supplier module, and the target controller can control the online storage module to communicate with the first server through a preset control command protocol (such as AT commands or a dedicated command set for the DTU module).

[0054] In one embodiment, taking the target controller as a battery management controller (BMC_MCU) as an example, please refer to... Figure 3 , Figure 3 This is a schematic diagram of the overall architecture of an application upgrade method provided in this application embodiment. The target controller runs a target application (BMC_APP), and a seamless upgrade program (APP_OTA) is added to the target application to execute the application upgrade method provided in this application embodiment and realize seamless upgrade of the target application. When the target application of the target controller has an upgrade file that needs to be upgraded, the second server (FTP File Server) storing the upgrade file can notify the first server (cloud platform) to send the upgrade file path information and other information of the upgrade file that the target application needs to upgrade to the first server. Then, the first server can use Transmission Control Protocol (TCP) in JSON (JavaScript Object Notation, a lightweight data exchange format) format to send the upgrade file path information and other information to the corresponding online storage module (DTU module) of the target controller. The target controller can then use Universal Asynchronous Receiver / Transmitter (UART) to use AT commands to detect whether the upgrade file path information and other information of the upgrade file that needs to be upgraded are stored in the online storage module. When the upgrade file path information and other information of the upgrade file that needs to be upgraded are detected, the online storage module can be triggered to download the upgrade file from the second server based on the upgrade file path information via File Transfer Protocol (FTP) and cache it in the online storage module.

[0055] In one embodiment, before downloading the upgrade file for the target application running on the target controller, it can be determined whether the version of the upgrade file to be upgraded is a newer version, preventing reverse upgrades or upgrades of the same version file, which would waste central processing unit (CPU) resources. For example, when the server sends the upgrade file path information, it can also send the corresponding upgrade file version number, thereby comparing the version number of the upgrade file to be upgraded with the version number of the currently running target application. If the version number of the upgrade file to be upgraded is greater than the version number of the currently running target application, the upgrade file for the target application running on the target controller can be downloaded to upgrade the target application.

[0056] Optionally, the file information of the upgrade file to be upgraded for the target application can also be obtained. This file information may include the version number of the upgrade file to be upgraded and some predetermined check values ​​(CRC32). The check value can be used to determine whether the current upgrade file is reliable. Based on the file information, it can be identified whether there are differences between the upgrade file and the file currently running on the target controller. This can confirm whether the upgrade file to be upgraded is the file that needs to be upgraded, preventing reverse upgrades or upgrades of the same version file, which would waste CPU resources.

[0057] Step S102: Detect the operating status of the target device.

[0058] The operating status can indicate information such as the task occupancy and driving status of the target device. For example, it can include the operating status of the target device and the operating status of the target controller. The operating status of the target device can include information such as driving status and vehicle speed. The operating status of the target controller can include information such as task occupancy and whether it is busy.

[0059] Step S103: If the running status meets the preset transmission conditions, the stored upgrade file is transmitted to the data storage space corresponding to the target controller through the target application.

[0060] The preset transmission conditions can be conditions that meet the requirements for transmitting the upgrade file, and the data storage space can be the storage space corresponding to the target controller used to store the upgrade file.

[0061] Optionally, the preset transmission conditions may include the target device being in a first preset operating state and / or the target controller being in a second preset operating state. The first preset operating state can be the operating state of the target device when transmitting the upgrade file. For example, the first preset operating state may include at least one of the following: the target device being in a normal driving state and the target device's operating speed not exceeding a preset speed threshold. The normal driving state can be the driving state of the target device without experiencing collisions, insulation failures, emergency deceleration, rapid acceleration, or other faults. The preset speed threshold can be a pre-set speed threshold value. If the target device's operating speed exceeds this threshold value, it can be considered that the target device's operating speed is too high, and in this case, the application upgrade will not be performed to avoid affecting the normal operation of the target device.

[0062] When the target device is not in the first preset operating state and / or the target controller is not in the second preset operating state, for example, when the target device is traveling too fast, when the user is performing rapid acceleration or deceleration, when the target application is running a high CPU-intensive algorithm, or when an emergency fault occurs, the conditions for upgrading file transfer are not met because these situations require the target controller to invest a lot of resources to process. Upgrade file transfer needs to be paused first, and the transfer can only continue after the emergency task is completed, thus achieving seamless transfer of upgrade files.

[0063] The second preset operating state may include at least one of the following: the target task is not currently running on the target controller, and the memory usage of the target controller is less than a preset threshold. The target task may be a task that meets the priority condition and / or a task whose running time is longer than a preset duration. The task that meets the priority condition may be a task with higher priority among the tasks running on the target controller. The task whose running time is longer than the preset duration may be a task with a longer running time. The operation of the target task may cause the CPU load of the target device or the target controller to be too high. During the operation of the target task, the application upgrade of the target application is not performed to prevent the target controller from being overloaded and causing the program to run sluggishly, thereby avoiding the impact on the normal operation of the target device and realizing the seamless upgrade of the target application, thus improving the efficiency of application upgrade.

[0064] If the operating status meets the preset transmission conditions, there are multiple ways to transfer the stored upgrade file to the data storage space corresponding to the target controller through the target application. For example, the upgrade file may include multiple data packets. If the operating status meets the preset transmission conditions, a data packet can be transferred to the data storage space corresponding to the target controller through the target application. Then, the process can return to the step of detecting the operating status of the target device until all data packets of the upgrade file are transferred to the data storage space corresponding to the target controller.

[0065] Therefore, after downloading the upgrade file, the target application can monitor the operating status of the target device in real time. When the operating status meets the preset transmission conditions, the target application can transmit a data packet of the upgrade file to the data storage space corresponding to the target controller. During the transmission of the data packet, the target controller continues to monitor the operating status of the target device. When the operating status meets the preset transmission conditions, the target application will then transmit the next data packet of the upgrade file to the data storage space corresponding to the target controller, until all data packets of the upgrade file are transmitted to the data storage space corresponding to the target controller.

[0066] Optionally, if the operating status meets the preset transmission conditions, after transmitting a data packet to the data storage space corresponding to the target controller through the target application, if it is detected that the operating status does not meet the preset transmission conditions, the storage address information of the target data packet is recorded. Then, the process can return to the step of detecting the operating status of the target device. If it is detected that the operating status meets the preset transmission conditions during the process of returning to the step of detecting the operating status of the target device, the untransmitted data packet is transmitted to the data storage space corresponding to the target controller based on the storage address information.

[0067] The storage address information can be information indicating the storage address of the target data packet, and the target data packet can be the last data packet transmitted to the data storage space, that is, the last data packet successfully stored in the data storage space.

[0068] There are several ways to continue transmitting untransmitted data packets to the data storage space corresponding to the target controller based on the storage address information. For example, the storage address information and the length of the data packet can be offset by the address of the next data packet to obtain the storage address of the next data packet, i.e., the storage address of the next untransmitted data packet, which is recorded in the data storage unit (Dflash). When the operation status meets the preset transmission conditions, the transmission completion flag of the transmission process of transmitting the upgrade file to the data storage space of the target controller can be read. When the transmission completion flag is not set, it can be indicated that there is a transmission interruption in the transmission process of transmitting the upgrade file to the data storage space of the target controller. Then, the storage address of the next untransmitted data packet corresponding to the upgrade file can be obtained in Dflash. Based on the storage address of the next data packet, the untransmitted data packets can continue to be transmitted to the data storage space corresponding to the target controller.

[0069] In one embodiment, when the upgrade file transfer is interrupted or fails, the storage address of the most recently successfully transferred data packet can be obtained. Based on the storage address of the most recently successfully transferred data packet and the packet length, an address offset can be calculated to obtain the storage address of the next untransmitted data packet, which is recorded in the Dflash. When the preset transfer conditions are met again, the untransmitted data packet can be transferred to the data storage space corresponding to the target controller based on the storage address of the next data packet. In this way, the upgrade file transfer process, which consumes the most CPU and is the most time-consuming, can be performed seamlessly. When the transfer process is interrupted or fails, the interruption point, i.e., the storage address information of the target data packet, is recorded. Based on the storage address information, the transfer can be resumed when the preset transfer conditions are met again. This breakpoint-resumption upgrade file transfer method achieves seamless upgrades of the target application, greatly improving the upgrade efficiency of the target application.

[0070] Optionally, when the upgrade file is stored in the online storage module, during the transmission of the upgrade file to the data storage space of the target controller, the target controller can obtain the upgrade file data packets in segments from the online storage module and transmit the data packets to the data storage space corresponding to the target controller. Then, the integrity of the upgrade file stored in the data storage space corresponding to the target controller can be verified. If the upgrade file is complete, the system can wait for the subsequent application upgrade.

[0071] In one specific embodiment, taking the target controller downloading upgrade files via an online storage module as an example, please refer to... Figure 4 , Figure 4 This is a schematic flowchart of an application upgrade method provided in this application embodiment. In step S1, the target controller checks whether the online storage module contains the upgrade file for the application that needs to be upgraded. If the upgrade file exists, step S2 checks whether the application to be upgraded corresponding to the upgrade file is consistent with the currently running application. If they are inconsistent, the upgrade file can be downloaded from the online storage module, and the operating status of the target device is checked. In step S3, it is determined whether the status of the target device meets the preset transmission conditions. If the preset transmission conditions are met, step S4 retrieves the first data packet of the upgrade file from the online storage module and transmits the data packet to the data storage space corresponding to the target controller, and verifies the integrity of each data packet. When the transmission is complete, based on step S5, it continues to check whether the current preset transmission conditions are met. If the preset transmission conditions are met, based on step S6, it retrieves the next data packet from the upgrade file from the online storage module for transmission. If the preset transmission conditions are not met, the transmission of the upgrade file is temporarily stopped until the operating status of the target device meets the preset transmission conditions, and the transmission of the next data packet continues. Based on step S7, steps S5 and S6 are repeated until all data packets of the upgrade file are transmitted. Then, based on step S8, the integrity of the transmitted upgrade file can be verified. If the upgrade file is found to be complete, the process can wait for the subsequent application upgrade process to proceed.

[0072] Step S104: Upgrade the target application based on the upgrade file in the data storage space.

[0073] There are several ways to upgrade the target application based on the upgrade file in the data storage space. For example, when the internal storage space of the target controller is large enough, the data storage space can be the internal storage space corresponding to the target controller, so that it can receive the power-off command. Based on the power-off command, the starting storage address of the upgrade file in the data storage space is set as the starting running address of the target application, and the target device is controlled to be in a power-off state. When the target device is detected to switch from the power-off state to the power-on state, the target application is upgraded based on the starting running address of the target application.

[0074] The power-off command can be an instruction to shut down the power to the target device. For example, locking a vehicle triggers a power-off command to power down the vehicle. The starting storage address can be the initial storage address of the upgrade file in the data storage space, and the starting execution address can be the starting address for running the target application. The power-on state can be the state in which the target device is powered on. For example, after the vehicle is started, it will switch from a power-off state to a power-on state.

[0075] There are several ways to set the starting storage address of the upgrade file in the data storage space to the starting running address of the target application based on the power-down command, and control the target device to be in a power-down state. For example, when a power-down command is received, the bootloader can set the starting storage address of the upgrade file in the data storage space to the starting running address of the target application, and then control the target device to be in a power-down state based on the power-down command.

[0076] Optionally, upon receiving a power-off command, the target device's hibernation can be briefly delayed. During this delayed hibernation period, the bootloader can set the starting storage address of the upgrade file in the data storage space to the starting running address of the target application. This allows the target application to be upgraded without the user's awareness, improving application upgrade efficiency.

[0077] In this way, when a power-off command is received for the target device, the starting storage address of the upgrade file in the data storage space is quickly set to the starting running address of the target application. Then, when the target device is detected to switch from a power-off state to a power-on state, the bootloader runs the target application based on the starting running address of the target application, so as to run the new version of the target application with the new version of the upgrade file. This achieves the upgrade of the target application without the user's awareness, thus improving the efficiency of application upgrades for the target controller.

[0078] Optionally, there are several other ways to upgrade the target application based on the upgrade file in the data storage space. For example, when the internal storage space of the target controller is not large enough, the data storage space can be the external storage space corresponding to the target controller, so that it can receive the power-off command, obtain the starting running address of the target application based on the power-off command, and burn the upgrade file in the data storage space to the internal storage space of the target controller based on the starting running address of the target application. When the target device is detected to switch from the power-off state to the power-on state, the target application is upgraded based on the upgrade file in the internal storage space.

[0079] The external storage space can be an external memory set up for the target controller outside the target controller. The internal storage space can be the application program (APP) area of ​​the target controller. The APP area can be a region allocated in the internal memory of the microcontroller for storing application code and data. In this area, the microcontroller can store and execute the user's application code and data to achieve specific functions.

[0080] There are several ways to burn the upgrade file from the data storage space to the internal storage space of the target controller based on the starting running address of the target application. For example, a bootloader can be used to burn the upgrade file to the APP area of ​​the target application in the target controller based on the starting running address of the target application.

[0081] In this way, when the target device is detected to switch from a power-off state to a power-on state, the program can run the upgrade file stored in the APP area of ​​the internal storage space based on the starting running address of the target application, thereby running the new target application and realizing the upgrade of the target application without the user's notice.

[0082] For example, please continue to refer to Figure 3An external storage space (ExternFlash IC) can be added to the target controller BMC_MCU. The external storage space and the online storage module are communicated and managed through the controller driver (BMC_DRV). This controller driver includes a flash driver (Flash Drv) and a storage module manager (DtuM). The flash driver (Flash Drv) manages the external storage space (Extern Flash IC) via the Serial Bus Protocol (SPI), while the storage module manager (DtuM) manages the online storage space. The App_OTA program in the target application can then retrieve the upgrade file data packet from the online storage module and transmit it to the external storage space (Extern Flash IC). Upon receiving a power-down command, the App_OTA program in the target application can obtain the starting address of the target application. Based on this address, the boot program burns the upgrade file from the external storage space (Extern Flash IC) to the target controller's internal storage space. Therefore, when the target device switches from a power-down state to a power-on state, the boot program runs the upgrade file in the internal storage space to run the new target application corresponding to the upgrade file, achieving a seamless upgrade of the target application.

[0083] Optionally, after upgrading the target application, the target application can upload its version number to the cloud platform to notify the cloud platform whether the application upgrade was successful.

[0084] In one embodiment, if an upgrade failure occurs during the upgrade process of the target application, the target controller can perform autonomous upgrade diagnosis. Then, the diagnosed cause can be uploaded to the cloud platform. This allows the backend server to intuitively obtain the problems encountered during the upgrade process, enabling rapid resolution of issues arising during the upgrade of the target application and thus improving the efficiency of the application upgrade.

[0085] Existing application upgrade methods for target controllers often employ Over-the-Air (OTA) technology. The updated software is uploaded to an OTA center, then wirelessly transmitted to the vehicle for software updates. Finally, the vehicle's infotainment system guides the corresponding controller to update the software via the CAN protocol. However, with this method, after receiving the upgrade command, the vehicle's infotainment system puts the target ECU in upgrade mode, placing it in BootLoader mode while other ECUs remain silent. This means the user cannot perform any vehicle operations during the entire upgrade process, which takes several minutes, typically over ten minutes, and sometimes even longer – a lengthy wait for the user. Furthermore, the entire upgrade process requires guidance from the vehicle's infotainment system or other devices, relying on the traditional Universal Diagnostic Service (UDS). During this process, the ECU remains passive; the vehicle's system sends all upgrade messages to the ECU requiring upgrade at once, and the transmission cannot be interrupted. Any interruption will result in upgrade failure. Therefore, when using OTA for application upgrades, the vehicle will switch the ECU to upgrade mode, making it impossible for the driver to operate the vehicle during the entire upgrade process. This results in a poor application upgrade experience and consequently, low efficiency of the application upgrade.

[0086] To address this, this application provides an application upgrade method. Upgrade files are stored via an online storage module corresponding to the target controller ECU, which interacts with a cloud platform or other server. Then, the target application within the target controller ECU communicates with the online storage module to complete the upgrade. The cloud platform only needs to send the path information of the upgrade files to the online storage module. The entire subsequent application upgrade process is handled by the target controller itself. When the target controller detects files in the online storage module that need updating, it can determine the current task's busy status and operational status based on its own and the vehicle's operating status. It can then proactively retrieve the upgrade file data from the online storage module without relying on a host computer or T-BOX (related on-board diagnostic tool) to issue upgrade commands. If the vehicle needs to perform urgent tasks or tasks unsuitable for upgrading during transmission, transmission is stopped until the conditions are met, thus achieving a seamless upgrade of the target application. The application upgrade method provided in this application provides an application upgrade for the target controller. This is an autonomous and seamless upgrade process that takes place within the target application. This means that users can perform any operation on the vehicle, such as discharging or charging, and the application upgrade process is quick and requires no waiting time. Users will not feel anything during the entire process, thus improving the customer experience.

[0087] Furthermore, in existing OTA application upgrade methods, if the transmission of upgrade files fails, the transmission must be restarted from scratch. However, the autonomous and seamless application upgrade method provided in this application embodiment can record the failure point when the upgrade file transmission fails, and can resume the transmission from the breakpoint when the preset transmission conditions are met, which greatly improves the efficiency of application upgrades.

[0088] Furthermore, existing OTA application upgrade methods require the cooperation of multiple modules, rely on the CAN bus, have long upgrade times, and the ECU is passively updated throughout the process, during which the vehicle cannot operate normally. In contrast, the autonomous and seamless application upgrade method provided in this application embodiment allows the ECU to upgrade spontaneously and proactively without relying on any device guidance. Moreover, the vehicle can be used normally during the application upgrade process, making the application upgrade of the target controller more flexible and intelligent, and enabling it to autonomously cope with various complex working conditions, thereby effectively improving the application upgrade success rate and user experience.

[0089] As described above, this embodiment of the application downloads and stores the upgrade file of the target application running in the target controller; detects the operating status of the target device; if the operating status meets preset transmission conditions, the target application transmits the stored upgrade file to the data storage space corresponding to the target controller; and upgrades the target application based on the upgrade file in the data storage space. Thus, by detecting the operating status of the target device through the target controller, and when the operating status meets preset transmission conditions, the target application transmits the stored upgrade file to the data storage space corresponding to the target controller, thereby upgrading the target application based on the upgrade file in the data storage space. The target controller actively controls the upgrade process of the target application, achieving seamless upgrades of the target application running in the target controller, avoiding any impact on the operation of the target device during the upgrade process, effectively improving the application upgrade experience, and ultimately increasing the efficiency of application upgrades.

[0090] To facilitate better implementation of the application upgrade method provided in the embodiments of this application, the embodiments of this application also provide an apparatus based on the above application upgrade method. The meanings of the terms used are the same as in the application upgrade method described above, and specific implementation details can be found in the descriptions in the method embodiments.

[0091] For example, such as Figure 5 The diagram shown is a structural schematic of an application upgrade device provided in an embodiment of this application. The application upgrade device may include a download module 201, a detection module 202, a transmission module 203, and an upgrade module 204, and is configured with a target controller for the target device, as detailed below:

[0092] Download module 201 is used to download and store the upgrade file of the target application running in the target controller;

[0093] Detection module 202 is used to detect the operating status of the target device;

[0094] The transmission module 203 is used to transmit the stored upgrade file to the data storage space corresponding to the target controller through the target application if the running status meets the preset transmission conditions.

[0095] Upgrade module 204 is used to upgrade the target application based on the upgrade file in the data storage space.

[0096] In one embodiment, the upgrade file includes multiple data packets, and the transmission module 203 is used for:

[0097] If the running status meets the preset transmission conditions, a data packet is transmitted to the data storage space corresponding to the target controller through the target application;

[0098] The application upgrade device also includes:

[0099] Return to the steps for detecting the operating status of the target device until all data packets of the upgrade file are transferred to the data storage space corresponding to the target controller.

[0100] In one embodiment, the application upgrade device further includes a transmission status recording module, used for:

[0101] If the running status is detected to be inconsistent with the preset transmission conditions, the storage address information of the target data packet is recorded. The target data packet is the last data packet transmitted to the data storage space.

[0102] Return to the steps for executing the test of the target device's operating status;

[0103] The application upgrade device also includes a breakpoint transmission module for:

[0104] During the process of returning to the target device's operating status, if the operating status meets the preset transmission conditions, the untransmitted data packets will continue to be transmitted to the data storage space corresponding to the target controller based on the storage address information.

[0105] In one embodiment, the download module 201 is configured to:

[0106] Receive the upgrade file path information for the upgrade file of the target application running in the target controller, sent by the first server;

[0107] Based on the upgrade file path information, the upgrade file corresponding to the target application is downloaded from the second server.

[0108] In one embodiment, the target device includes an online storage module and a download module 201, used for:

[0109] The online storage module receives the upgrade file path information for the upgrade file of the target application running in the target controller, which is sent by the first server.

[0110] Check if upgrade file path information exists in the online storage module;

[0111] When an upgrade file path is detected, the upgrade file for the target application is downloaded based on the upgrade file path information and stored in the online storage module.

[0112] In one embodiment, the preset transmission conditions include the target device being in a first preset operating state and / or the target controller being in a second preset operating state.

[0113] In one embodiment, the first preset operating state includes at least one of the following: the target device is in a normal driving state and the operating speed of the target device is not greater than a preset speed threshold.

[0114] In one embodiment, the second preset running state includes at least one of the following: the target task is not currently running among the tasks of the target controller, and the memory occupancy rate of the target controller is less than a preset threshold. The target task is a task that meets the priority condition and / or the target task is a task whose running time is greater than a preset duration.

[0115] In one embodiment, the data storage space is the internal storage space corresponding to the target controller, and the upgrade module 204 is used for:

[0116] Receive power-off command;

[0117] Based on the power-off command, the starting storage address of the upgrade file in the data storage space is set to the starting running address of the target application, and the target device is controlled to be in a power-off state.

[0118] When the target device is detected to switch from a power-off state to a power-on state, the target application is upgraded based on the starting address of the target application.

[0119] In one embodiment, the data storage space is the external storage space corresponding to the target controller, and the upgrade module 204 is used for:

[0120] Receive power-off command;

[0121] Based on the power-off command, obtain the starting address of the target application;

[0122] Based on the target application's starting running address, the upgrade file in the data storage space is burned to the target controller's internal storage space;

[0123] When the target device is detected to switch from a power-off state to a power-on state, the target application is upgraded based on the upgrade file in the internal storage space.

[0124] As described above, this embodiment of the application is configured with a target controller for the target device. The download module 201 downloads and stores the upgrade file of the target application running on the target controller; the detection module 202 detects the operating status of the target device; the transmission module 203, if the operating status meets preset transmission conditions, transmits the stored upgrade file to the data storage space corresponding to the target controller via the target application; and the upgrade module 204 upgrades the target application based on the upgrade file in the data storage space. Thus, by detecting the operating status of the target device through the target controller, and when the operating status meets preset transmission conditions, the target application transmits the stored upgrade file to the data storage space corresponding to the target controller, thereby upgrading the target application based on the upgrade file in the data storage space. The target controller actively controls the upgrade process of the target application, achieving seamless upgrades of the target application running on the target controller. This avoids the impact of the target application upgrade process on the operation of the target device, effectively improving the application upgrade experience and thus increasing the efficiency of application upgrades.

[0125] Accordingly, embodiments of this application also provide a target controller, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of a target controller provided in an embodiment of this application. The target controller 300 includes a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 and the memory 302 are electrically connected. Those skilled in the art will understand that the target controller structure shown in the figure does not constitute a limitation on the target controller, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0126] The processor 301 is the control center of the target controller 300. It connects to various parts of the target controller 300 through various interfaces and lines. By running or loading software programs and / or units stored in the memory 302, and calling data stored in the memory 302, it executes various functions of the target controller 300 and processes data. The processor 301 can be a CPU, GPU, network processor (NP), etc., and can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0127] In this embodiment, the processor 301 in the target controller 300 loads the instructions corresponding to the processes of one or more applications into the memory 302 according to the following steps, and the processor 301 runs the applications stored in the memory 302 to achieve various functions, such as:

[0128] Download and store the upgrade file of the target application running on the target controller; detect the operating status of the target device; if the operating status meets the preset transmission conditions, transfer the stored upgrade file to the data storage space corresponding to the target controller through the target application; upgrade the target application based on the upgrade file in the data storage space.

[0129] Furthermore, the various functions implemented by running the application stored in memory 302 can also be found in the description of the foregoing embodiments, and will not be repeated here.

[0130] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0131] Optional, such as Figure 6 As shown, the target controller 300 also includes: a touch display screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch display screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307. Those skilled in the art will understand that... Figure 6 The target controller structure shown does not constitute a limitation on the target controller and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0132] The touch display screen 303 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 303 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various GUIs of the target controller. These GUIs can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 301. It can also receive and execute commands from the processor 301. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 301 to determine the type of touch event. Subsequently, the processor 301 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 303 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 303 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 303 can also be used as part of the input unit 306 to achieve input functions.

[0133] The radio frequency circuit 304 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other target controllers, and to transmit and receive signals with network devices or other target controllers.

[0134] Audio circuitry 305 can be used to provide an audio interface between the user and the target controller via a speaker and a microphone. Audio circuitry 305 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 305, converted back into audio data, and then processed by processor 301 before being transmitted via radio frequency circuitry 304 to, for example, another target controller, or output to memory 302 for further processing. Audio circuitry 305 may also include an earphone jack to provide communication between peripheral headphones and the target controller.

[0135] The input unit 306 can be used to receive input target video and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0136] Power supply 307 is used to power the various components of target controller 300. Optionally, power supply 307 can be logically connected to processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 307 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0137] although Figure 6 As not shown in the diagram, the target controller 300 may also include a camera, sensors, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0138] In the above embodiments, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be found in the relevant descriptions of other embodiments. It should be noted that the target controller provided in this application embodiment and the application upgrade method described above belong to the same concept; its specific implementation process is detailed in the above method embodiments and will not be repeated here.

[0139] As can be seen from the above, the target controller provided in this application embodiment can download and store the upgrade file of the target application running in the target controller; detect the running status of the target device; if the running status meets the preset transmission conditions, transmit the stored upgrade file to the data storage space corresponding to the target controller through the target application; and upgrade the target application based on the upgrade file in the data storage space. Thus, by detecting the running status of the target device through the target controller, and when the running status meets the preset transmission conditions, transmitting the stored upgrade file to the data storage space corresponding to the target controller through the target application, and upgrading the target application based on the upgrade file in the data storage space, the target controller actively controls the upgrade process of the target application, achieving seamless upgrades of the target application running in the target controller, avoiding the impact of the target application upgrade process on the operation of the target device, effectively improving the application upgrade experience, and thus improving the efficiency of application upgrades.

[0140] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0141] Therefore, embodiments of this application provide a computer-readable storage medium, including a computer program that, when run on a target controller, causes the target controller to execute any of the application upgrade methods provided in embodiments of this application. For example, the computer program can execute the steps of the following application upgrade method:

[0142] Download and store the upgrade file of the target application running on the target controller; detect the operating status of the target device; if the operating status meets the preset transmission conditions, transfer the stored upgrade file to the data storage space corresponding to the target controller through the target application; upgrade the target application based on the upgrade file in the data storage space.

[0143] Furthermore, the detailed steps of the above method can be found in the description of the foregoing embodiments, and will not be repeated here.

[0144] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0145] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0146] Since the computer program stored in the computer-readable storage medium can execute any of the application upgrade methods provided in the embodiments of this application, the beneficial effects that any of the application upgrade methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0147] According to one aspect of this application, a computer program product is also provided, comprising a computer program stored in a computer-readable storage medium; when a processor of a target controller reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the target controller to perform the methods provided in various optional implementations of the above embodiments.

[0148] In the above embodiments of the application upgrade device, computer-readable storage medium, target controller, and computer program product, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the application upgrade device, computer-readable storage medium, computer program product, target controller, and their corresponding units described above can be referred to the description of the application upgrade method in the above embodiments, and will not be repeated here.

[0149] The above provides a detailed description of an application upgrade method, apparatus, target controller, vehicle, computer-readable storage medium, and computer program product provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An application upgrade method, characterized in that, A target controller applied to a target device, the target device including an online storage module, comprising: The online storage module receives upgrade file path information for the target application running in the target controller, sent by the first server. Detect whether upgrade file path information exists in the online storage module; When the existence of the upgrade file path information is detected, the upgrade file of the target application is downloaded based on the upgrade file path information and stored in the online storage module. Detect the operating status of the target device; If the operating state meets the preset transmission conditions, the stored upgrade file is transmitted to the data storage space corresponding to the target controller through the target application. The preset transmission conditions include the target device being in a first preset operating state and the target controller being in a second preset operating state. The target application is upgraded based on the upgrade file in the data storage space.

2. The application upgrade method according to claim 1, characterized in that, The upgrade file includes multiple data packets. If the running state meets preset transmission conditions, the upgrade file stored in the target application is transmitted to the data storage space corresponding to the target controller, including: If the operating state meets the preset transmission conditions, a data packet is transmitted to the data storage space corresponding to the target controller through the target application; The method further includes: Return to the step of detecting the operating status of the target device until all data packets of the upgrade file are transmitted to the data storage space corresponding to the target controller.

3. The application upgrade method according to claim 2, characterized in that, After the operation state meets the preset transmission conditions and a data packet is transmitted to the data storage space corresponding to the target controller through the target application, the method further includes: If the operating state is detected to not meet the preset transmission conditions, the storage address information of the target data packet is recorded. The target data packet is the last data packet transmitted to the data storage space. Return to the step of detecting the operating status of the target device; The method further includes: During the process of returning to perform the detection of the target device's operating status, if the operating status is found to meet the preset transmission conditions, then based on the storage address information, the untransmitted data packets will continue to be transmitted to the data storage space corresponding to the target controller.

4. The application upgrade method according to claim 1, characterized in that, The step of downloading and storing the upgrade file of the target application running in the target controller includes: Receive the upgrade file path information for the upgrade file of the target application running in the target controller, sent by the first server; Based on the upgrade file path information, the upgrade file corresponding to the target application is downloaded from the second server.

5. The application upgrade method according to claim 1, characterized in that, The first preset operating state includes at least one of the following: the target device is in normal driving state and the operating speed of the target device is not greater than a preset speed threshold.

6. The application upgrade method according to claim 1, characterized in that, The second preset running state includes at least one of the following: the target task is not currently running among the tasks of the target controller, and the memory usage rate of the target controller is less than a preset threshold. The target task is a task that meets the priority condition and / or the target task is a task whose running time is greater than a preset duration.

7. The application upgrade method according to any one of claims 1 to 6, characterized in that, The data storage space is the internal storage space corresponding to the target controller. Upgrading the target application based on the upgrade file in the data storage space includes: Receive power-off command; Based on the power-off command, the starting storage address of the upgrade file in the data storage space is set to the starting running address of the target application, and the target device is controlled to be in a power-off state. When the target device is detected to switch from the power-off state to the power-on state, the target application is upgraded based on the starting address of the target application.

8. The application upgrade method according to any one of claims 1 to 6, characterized in that, The data storage space is the external storage space corresponding to the target controller. Upgrading the target application based on the upgrade file in the data storage space includes: Receive power-off command; Based on the power-off command, obtain the starting running address of the target application; Based on the starting address of the target application, the upgrade file in the data storage space is burned into the internal storage space of the target controller; When the target device is detected to switch from a power-off state to a power-on state, the target application is upgraded based on the upgrade file in the internal storage space.

9. An application upgrade device, characterized in that, A target controller configured with a target device, the target device including an online storage module, comprising: The download module is used to receive, through the online storage module, upgrade file path information of the upgrade file of the target application running in the target controller sent by the first server, detect whether the upgrade file path information exists in the online storage module, and when the upgrade file path information is detected, download the upgrade file of the target application based on the upgrade file path information through the target application and store it in the online storage module. The detection module is used to detect the operating status of the target device; A transmission module is used to transmit the stored upgrade file to the data storage space corresponding to the target controller through the target application if the operating state meets the preset transmission conditions. The preset transmission conditions include the target device being in a first preset operating state and the target controller being in a second preset operating state. The upgrade module is used to upgrade the target application based on the upgrade file in the data storage space.

10. A target controller, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of any one of the methods described in claims 1 to 8.

11. A vehicle, characterized in that, The vehicle includes the target controller as described in claim 10.

12. A computer-readable storage medium, characterized in that, It includes a computer program that, when run on a target controller, causes the target controller to perform the steps of any of the methods described in claims 1 to 8.

Citation Information

Patent Citations

  • Vehicle upgrading method and device, electronic device and storage medium

    CN113094072A

  • Vehicle-mounted controller software upgrading method and device, electronic equipment and storage medium

    CN114398060A