Target controller upgrade method, system, vehicle, device and medium for vehicle

By employing dual-partition storage and dynamic control upgrade rate during vehicle operation or charging, the problems of long upgrade time and high bus load when the vehicle is stationary are solved, achieving more efficient and safer controller upgrades.

CN122489090APending Publication Date: 2026-07-31ANHUI DEEPWAY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ANHUI DEEPWAY TECHNOLOGY CO LTD
Filing Date
2026-04-08
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Existing technologies that upgrade controllers while the vehicle is stationary result in long upgrade times, impacting operational efficiency. Furthermore, when the vehicle bus load is high, it may interfere with the transmission of critical messages, posing a safety hazard.

Method used

Upgrade data is stored in dual partitions, and the upgrade rate is dynamically controlled according to the vehicle status. The controller is upgraded during vehicle operation or charging. Bus resource allocation is optimized by disabling diagnostic fault records and adjusting the write rate.

Benefits of technology

It shortens the controller upgrade time, improves vehicle operating efficiency and functional safety, and avoids interference in critical message transmission caused by excessive bus load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122489090A_ABST
    Figure CN122489090A_ABST
Patent Text Reader

Abstract

This application discloses a method, system, vehicle, device, and medium for upgrading a vehicle's target controller. The target controller has a first storage partition and a second storage partition, with the application currently running in the first storage partition. The method for upgrading the vehicle's target controller includes: when an upgrade request exists for the target controller, determining whether the vehicle is in a driving or charging state; if so, prohibiting each controller from recording diagnostic faults and writing upgrade data to the second storage partition at a first write rate; if the vehicle is neither in a driving nor charging state, prohibiting each controller from sending application messages and writing upgrade data at a second write rate, wherein the second write rate is greater than the first write rate. By using this application to store upgrade data in dual partitions and dynamically controlling the upgrade rate according to the vehicle's status, controller upgrades can be performed during vehicle driving and charging, thereby shortening upgrade time and improving vehicle operating efficiency and functional safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle communication technology, and in particular to a method, system, vehicle, device and medium for upgrading a vehicle's target controller. Background Technology

[0002] As vehicle intelligence levels increase, the amount of data required for control software upgrades continues to grow, leading to longer upgrade times. Existing technologies typically only support remote upgrades when the vehicle is stationary, which severely compresses the vehicle's effective operating time and can negatively impact user experience and economic benefits. Furthermore, existing solutions often use fixed write rates for controller upgrades, which means that even when the vehicle bus load is high, the upgrade process can still occupy fixed bandwidth, potentially interfering with the real-time transmission of critical messages related to braking, steering, and power, thus posing safety hazards. Summary of the Invention

[0003] Based on this, the present invention provides a method, system, vehicle, device and medium for upgrading a vehicle's target controller. By storing upgrade data in dual partitions and dynamically controlling the upgrade rate according to the vehicle status, the controller can be upgraded during vehicle operation and charging, thereby shortening the upgrade time and improving vehicle operating efficiency and functional safety.

[0004] In a first aspect, a method for upgrading a target controller of a vehicle is provided, wherein the target controller has a first storage partition and a second storage partition, and the target controller is currently running an application in the first storage partition, the method comprising: When the target controller has an upgrade requirement, determine whether the vehicle is in a driving state or a charging state; If the vehicle is in the driving state or charging state, the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller according to the first write rate. If the vehicle is not in the driving state and not in the charging state, then the controllers in the vehicle are prohibited from sending application messages, and the upgrade data is written to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate.

[0005] In some examples, it also includes: When performing an upgrade operation on the target controller according to the second write rate, monitor whether the vehicle core controller sends a network management message. If sent, the application message sending of each controller is enabled, and the write rate is adjusted to the first write rate.

[0006] In some examples, it also includes: When performing an upgrade operation on the target controller according to the second write rate, monitor whether the application message period of each controller is greater than the preset message period threshold. If so, the write rate is adjusted to a third write rate, which is less than the first write rate.

[0007] In some examples, after adjusting the write rate to the third write rate, the following is also included: When the application message period of each controller is not greater than the message period threshold, the write rate is restored to the write rate before the adjustment.

[0008] In some examples, it also includes: After the target controller upgrade is completed, determine whether the partition switching conditions are met; If the conditions are met, the target controller is restarted to switch it to run the application within the second storage partition.

[0009] In some examples, determining whether the vehicle is in a driving or charging state includes: Determine if the vehicle speed is greater than the predetermined speed; If so, then the vehicle is determined to be in the aforementioned driving state; Determine if the vehicle is plugged into the charging gun; If so, then the vehicle is determined to be in the charging state.

[0010] Secondly, a target controller upgrade system for a vehicle is provided, wherein the target controller has a first storage partition and a second storage partition, the target controller currently runs an application in the first storage partition, and the system includes: The judgment module is used to determine whether the vehicle is in a driving state or a charging state when the target controller has an upgrade requirement; The first control module is used to prevent the controllers in the vehicle from recording diagnostic faults when the vehicle is in the driving state or charging state, and to write upgrade data to the second storage partition of the target controller according to the first write rate. The second control module is configured to, when the vehicle is not in the driving state and not in the charging state, prohibit each controller in the vehicle from sending application messages, and write the upgrade data to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate.

[0011] Thirdly, a vehicle is provided, comprising: a target controller upgrade system for the vehicle according to the second aspect described above.

[0012] Fourthly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the target controller upgrade method for a vehicle according to the first aspect described above.

[0013] Fifthly, a computer-readable storage medium is provided, including a memory and a computer program stored on the memory and executable on a processor, wherein when the processor executes the program, it implements the target controller upgrade method for a vehicle according to the first aspect described above.

[0014] In the embodiments of this application, the target controller is first configured with a first storage partition and a second storage partition. The target controller currently runs the application in the first storage partition. When the target controller has an upgrade requirement, it is determined whether the vehicle is in a driving or charging state. If the vehicle is in a driving or charging state, the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller at a first write rate. If the vehicle is not in a driving or charging state, the controllers in the vehicle are prohibited from sending application messages, and upgrade data is written to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate. Thus, by storing upgrade data in dual partitions and dynamically controlling the upgrade rate according to the vehicle status, controller upgrades can be performed during vehicle driving and charging, thereby shortening upgrade time and improving vehicle operating efficiency and functional safety. Attached Figure Description

[0015] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 A flowchart of a vehicle target controller upgrade method provided in an embodiment of this application; Figure 2 A structural block diagram of the vehicle target controller upgrade system provided in the embodiments of this application; Figure 3 This is a structural block diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0016] The present application will now be described in further detail with reference to the embodiments and accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the application. Furthermore, it should be noted that, for ease of description, only the parts relevant to the application are shown in the accompanying drawings.

[0017] It should be noted that, unless otherwise specified, the embodiments and features of the embodiments in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0018] The following describes in detail, with reference to the accompanying drawings, a method, system, vehicle, device, and medium for upgrading the target controller of a vehicle according to embodiments of this application.

[0019] Before describing the target controller upgrade method for a vehicle according to an embodiment of the present invention, the vehicle is first described. In the embodiment of the present invention, the vehicle is a semi-trailer tractor, including a tractor and a trailer.

[0020] Figure 1 This is a flowchart of a target controller upgrade method for a vehicle according to an embodiment of this application. Figure 1 As shown, a vehicle target controller upgrade method according to an embodiment of this application, wherein the target controller has a first storage partition and a second storage partition, and the target controller is currently running an application in the first storage partition, the method includes the following steps: S101: When there is an upgrade requirement for the target controller, determine whether the vehicle is in a driving state or a charging state.

[0021] In one embodiment of this application, determining whether the vehicle is in a driving state or a charging state includes: determining whether the vehicle speed is greater than a predetermined speed; if so, determining that the vehicle is in the driving state; determining whether the vehicle is plugged into a charging gun; if so, determining that the vehicle is in the charging state.

[0022] In one specific example, the predetermined vehicle speed is set to 2 km / h. When the vehicle speed is greater than 2 km / h, it is considered that the vehicle has entered a normal driving state. In other examples, the speed can also be set according to actual needs.

[0023] S102: If the vehicle is in the driving state or charging state, then the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller according to the first write rate.

[0024] Since upgrading the target controller while the vehicle is in motion or charging may cause the relevant controller to misjudge and record diagnostic fault codes, resulting in false fault alarms, which may affect the normal driving or charging operation of the vehicle, a 0x85 diagnostic service command is sent to each controller in the vehicle to suspend the recording of diagnostic fault codes.

[0025] Furthermore, when the vehicle is in motion or charging, the first storage partition is occupied by the system and cannot perform write operations. Therefore, the upgrade data needs to be written to the second storage partition. After the writing is completed, the target controller can run the upgraded version by switching partitions.

[0026] S103: If the vehicle is not in the driving state and not in the charging state, then the controllers in the vehicle are prohibited from sending application messages, and the upgrade data is written to the second storage partition at the second write rate, wherein the second write rate is greater than the first write rate.

[0027] When the vehicle is not in motion or charging mode, there are no high-priority tasks that require a lot of bus resources. Therefore, by sending the 0x28 diagnostic service command to each controller, the controller is prohibited from sending application messages to free up bus bandwidth and avoid excessive bus load that could lead to upgrade failure. At the same time, only the controller is allowed to send and receive network management messages to ensure that the needs of the driver for driving or charging can be met first.

[0028] When the vehicle is in motion or charging, there are high-priority tasks that occupy bus resources. Therefore, a smaller write rate is used to reduce the bandwidth occupied by the upgrade tasks. However, when the vehicle is not in motion or charging, the real-time pressure on the bus is relatively low, and a certain amount of bus bandwidth can be allocated to the upgrade tasks. Therefore, a larger write rate is used.

[0029] In practical applications, the write rate is controlled by setting the write frame interval for upgrade data. In a specific example, when the vehicle is in driving or charging mode, the upgrade data is written at a write frame interval of 2ms; when the vehicle is not in driving or charging mode, the upgrade data is written at a write frame interval of 0.3ms. In other examples, the interval can be set according to actual needs.

[0030] In one embodiment of this application, the method further includes: when performing an upgrade operation on the target controller at the second write rate, monitoring whether the vehicle core controller sends a network management message; if so, enabling the application message sending of each controller and adjusting the write rate to the first write rate.

[0031] Among them, the vehicle core controller refers to the controller in the vehicle that is related to operation and supports network management messages, such as the body control module (BCM), vehicle control unit (VCU), instrument control unit (IC), etc. When the core controller sends a network management message, it indicates that the vehicle may be about to wake up or enter the running state. Then, a 0x28 service command is sent to each controller to enable the application message sending of each controller and ensure that the vehicle can respond to operations normally. At the same time, the write rate is reduced to the first write rate, thereby providing the necessary bus resources for vehicle operation.

[0032] In one embodiment of this application, the method further includes: when performing an upgrade operation on the target controller according to the second write rate, monitoring whether the application message period of each controller is greater than a preset message period threshold; if so, adjusting the write rate to a third write rate, wherein the third write rate is less than the first write rate.

[0033] If any message period of any controller in the vehicle exceeds the message period threshold, it indicates that a bus overload has occurred. The write rate is then gradually reduced to ensure the normal operation of the vehicle. In a specific example, the write frame interval is adjusted to 3ms.

[0034] In the above example, after adjusting the write rate to the third write rate, the method further includes: when the application message period of each controller is not greater than the message period threshold, restoring the write rate to the write rate before adjustment.

[0035] In one embodiment of this application, the method further includes: after the target controller is upgraded, determining whether the partition switching conditions are met; if so, restarting the target controller to switch the target controller to run the application in the second storage partition.

[0036] Specifically, based on vehicle speed, braking status, and power status, the system assesses whether a safe restart is possible. If so, the partition switching conditions are met, and the target controller is restarted to switch to running applications in the second storage partition. During the next upgrade, the first storage partition will be flashed, thus realizing the dual storage partition switching process and ensuring system reliability.

[0037] According to an embodiment of the present invention, a vehicle target controller upgrade method first establishes a target controller with a first storage partition and a second storage partition. The target controller currently runs an application in the first storage partition. When the target controller has an upgrade requirement, it is determined whether the vehicle is in a driving or charging state. If the vehicle is in a driving or charging state, the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller at a first write rate. If the vehicle is not in a driving or charging state, the controllers in the vehicle are prohibited from sending application messages, and upgrade data is written to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate. Therefore, by storing upgrade data in dual partitions and dynamically controlling the upgrade rate according to the vehicle status, controller upgrades can be performed during vehicle driving and charging, thereby shortening upgrade time and improving vehicle operating efficiency and functional safety.

[0038] Figure 2 This is a structural block diagram of a vehicle target controller upgrade system according to an embodiment of this application. Figure 2 As shown, a vehicle target controller upgrade system according to an embodiment of this application, wherein the target controller has a first storage partition and a second storage partition, the target controller currently runs an application in the first storage partition, and the system includes: a judgment module 210, a first control module 220, and a second control module 230, wherein: The judgment module 210 is used to determine whether the vehicle is in a driving state or a charging state when the target controller has an upgrade requirement; The first control module 220 is used to prevent the controllers in the vehicle from recording diagnostic faults when the vehicle is in the driving state or charging state, and to write upgrade data to the second storage partition of the target controller according to the first write rate. The second control module 230 is configured to, when the vehicle is not in the driving state and not in the charging state, prohibit each controller in the vehicle from sending application messages, and write the upgrade data to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate.

[0039] According to the vehicle target controller upgrade system of this application embodiment, the target controller is first configured with a first storage partition and a second storage partition. The target controller currently runs the application in the first storage partition. When the target controller has an upgrade requirement, it is determined whether the vehicle is in a driving state or a charging state. If the vehicle is in a driving state or a charging state, the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller at a first write rate. If the vehicle is not in a driving state or a charging state, the controllers in the vehicle are prohibited from sending application messages, and upgrade data is written to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate. Thus, by storing upgrade data in dual partitions and dynamically controlling the upgrade rate according to the vehicle status, controller upgrades can be performed during vehicle driving and charging, thereby shortening upgrade time and improving vehicle operating efficiency and functional safety.

[0040] Specific limitations regarding the vehicle target controller upgrade system can be found in the above description of the vehicle target controller upgrade method, and will not be repeated here. Each module of the aforementioned vehicle target controller upgrade system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the computer device's memory in software form, so that the processor can call and execute the corresponding operations of each module.

[0041] Furthermore, embodiments of this application provide a vehicle, including a target controller upgrade system according to any of the above embodiments. The vehicle first sets the target controller to have a first storage partition and a second storage partition. The target controller currently runs an application in the first storage partition. When the target controller has an upgrade requirement, it determines whether the vehicle is in a driving or charging state. If the vehicle is in a driving or charging state, it prohibits the controllers in the vehicle from recording diagnostic faults and writes upgrade data to the second storage partition of the target controller at a first write rate. If the vehicle is not in a driving or charging state, it prohibits the controllers in the vehicle from sending application messages and writes upgrade data to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate. Therefore, by storing upgrade data in dual partitions and dynamically controlling the upgrade rate according to the vehicle status, controller upgrades can be performed during vehicle driving and charging, thereby shortening upgrade time and improving vehicle operating efficiency and functional safety.

[0042] Furthermore, other components and functions of the vehicle according to the embodiments of this application are known to those skilled in the art and will not be described in detail here.

[0043] In one embodiment, a computer device is provided. Figure 3 This is a structural block diagram of the computer device provided in the embodiments of this application, with reference to... Figure 3 The computer device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned flexible fuel content identification method embodiment. For example, it executes the following: when the target controller has an upgrade requirement, it determines whether the vehicle is in a driving state or a charging state; If the vehicle is in the driving state or charging state, the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller according to the first write rate. If the vehicle is not in the driving state and not in the charging state, then the controllers in the vehicle are prohibited from sending application messages, and the upgrade data is written to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate.

[0044] This application also provides a computer-readable storage medium storing a computer program. When the processor executes the computer program, it implements the aforementioned flexible fuel content identification method embodiment. For example, it executes the following: when the target controller has an upgrade requirement, it determines whether the vehicle is in a driving state or a charging state; If the vehicle is in the driving state or charging state, the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller according to the first write rate. If the vehicle is not in the driving state and not in the charging state, then the controllers in the vehicle are prohibited from sending application messages, and the upgrade data is written to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate.

[0045] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0046] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 specification.

[0047] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A target controller upgrade method of a vehicle, characterized by, The target controller has a first storage partition and a second storage partition, the target controller is currently running an application in the first storage partition, and the method includes: When the target controller has an upgrade requirement, determine whether the vehicle is in a driving state or a charging state; If the vehicle is in the driving state or charging state, the controllers in the vehicle are prohibited from recording diagnostic faults, and upgrade data is written to the second storage partition of the target controller according to the first write rate. If the vehicle is not in the driving state and not in the charging state, then the controllers in the vehicle are prohibited from sending application messages, and the upgrade data is written to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate.

2. The target controller upgrade method of a vehicle according to claim 1, characterized by, Also includes: When performing an upgrade operation on the target controller according to the second write rate, monitor whether the vehicle core controller sends a network management message. If sent, the application message sending of each controller is enabled, and the write rate is adjusted to the first write rate.

3. The target controller upgrade method of claim 1, wherein Also includes: When performing an upgrade operation on the target controller according to the second write rate, monitor whether the application message period of each controller is greater than the preset message period threshold. If so, the write rate is adjusted to a third write rate, which is less than the first write rate.

4. The target controller upgrade method of claim 3, wherein After adjusting the write rate to the third write rate, the method further includes: When the application message period of each controller is not greater than the message period threshold, the write rate is restored to the write rate before the adjustment.

5. The vehicle target controller upgrade method according to claim 1, characterized in that, Also includes: After the target controller upgrade is completed, determine whether the partition switching conditions are met; If the conditions are met, the target controller is restarted to switch it to run the application within the second storage partition.

6. The vehicle target controller upgrade method according to any one of claims 1-5, characterized in that, The determination of whether the vehicle is in a driving state or a charging state includes: Determine if the vehicle speed is greater than the predetermined speed; If so, then the vehicle is determined to be in the aforementioned driving state; Determine if the vehicle is plugged into the charging gun; If so, then the vehicle is determined to be in the charging state.

7. A target controller upgrade system for a vehicle, characterized in that, The target controller has a first storage partition and a second storage partition. The target controller is currently running an application in the first storage partition. The system includes: The judgment module is used to determine whether the vehicle is in a driving state or a charging state when the target controller has an upgrade requirement; The first control module is used to prevent the controllers in the vehicle from recording diagnostic faults when the vehicle is in the driving state or charging state, and to write upgrade data to the second storage partition of the target controller according to the first write rate. The second control module is configured to, when the vehicle is not in the driving state and not in the charging state, prohibit each controller in the vehicle from sending application messages, and write the upgrade data to the second storage partition at a second write rate, wherein the second write rate is greater than the first write rate.

8. A vehicle, characterized in that, include: The vehicle target controller upgrade system according to claim 7.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the target controller upgrade method for the vehicle according to any one of claims 1-6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the target controller upgrade method for the vehicle according to any one of claims 1-6.