Vehicle software upgrading method and device, vehicle, equipment and storage medium
By generating standby and upgrade permission commands when the vehicle controller is not running, automatic controller software upgrades without hardware wake-up are achieved, reducing hardware costs and improving upgrade efficiency.
Patent Information
- Application Number
- CN202310014526.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-01-05
AI Technical Summary
In existing technologies, controllers that do not support CAN bus wake-up cannot automatically upgrade their software, resulting in increased hardware costs and low upgrade efficiency.
The vehicle controller generates a standby command when the vehicle is not running, controls the controller to be upgraded to enter a standby state, and generates an upgrade permission command when the preset upgrade conditions are met. The remote communication module automatically transmits software data packets for upgrade.
No need to wait for the controller hardware to wake up during the upgrade, reducing hardware costs and improving controller upgrade efficiency.
Smart Images

Figure CN116088903B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and in particular to a vehicle software upgrade method, apparatus, vehicle, equipment, and storage medium. Background Technology
[0002] Currently, vehicles are increasingly becoming more intelligent, equipped with controllers of various functions. As vehicle functions are added and updated, the software within these controllers also requires frequent upgrades. In existing technologies, controller software upgrades require the controller to be hardware-enabled to be woken up via the Controller Area Network (CAN) bus, and then download the new software data package via the CAN bus to achieve the software upgrade. However, hardware support for CAN bus wake-up increases hardware costs. Conversely, when using controllers that do not hardware support CAN bus wake-up, the required software data package cannot be downloaded automatically, thus preventing automatic software upgrades within the controller. Summary of the Invention
[0003] This invention provides a vehicle software upgrade method, apparatus, vehicle, equipment, and storage medium to address the deficiency in the prior art where controllers that do not support CAN bus wake-up cannot automatically upgrade their software.
[0004] This invention provides a vehicle software upgrade method applied to a vehicle controller, comprising: acquiring a software upgrade request transmitted by a remote communication module, wherein the software upgrade request includes information about a controller on the vehicle that needs to be upgraded; when the vehicle is in a non-started state, generating a standby command corresponding to the controller to be upgraded according to the software upgrade request, and transmitting the standby command to the controller to be upgraded, wherein the controller to be upgraded is used to enter a standby state according to the standby command; when the vehicle meets preset upgrade conditions, generating an upgrade permission command, and transmitting the upgrade permission command to the remote communication module, wherein the remote communication module is used to transmit a software data package to the controller to be upgraded according to the upgrade permission command, and the controller to be upgraded is used to upgrade its local software according to the software data package.
[0005] According to a vehicle software upgrade method provided by the present invention, when the vehicle is in an off-state, generating a standby command corresponding to the controller to be upgraded includes: acquiring the vehicle's handbrake status information and ignition key status information; and generating the standby command corresponding to the controller to be upgraded when the handbrake status information indicates that the handbrake is engaged and the ignition key status information indicates that the ignition key is disengaged.
[0006] According to a vehicle software upgrade method provided by the present invention, after transmitting the standby command to the controller to be upgraded, the method further includes: obtaining the standby state returned by the controller to be upgraded; and generating an upgrade permission command when the vehicle meets preset upgrade conditions, including: generating the upgrade permission command when the controller to be upgraded is in the standby state, the handbrake status information indicates that the handbrake is engaged, and the ignition key status information indicates that the ignition key is disengaged.
[0007] According to a vehicle software upgrade method provided by the present invention, after transmitting the upgrade permission instruction to the remote communication module, the method further includes: obtaining upgrade success information transmitted by the remote communication module, wherein the controller to be upgraded generates the upgrade success information after a successful local software upgrade and transmits the upgrade success information to the remote communication module, and the remote communication module transmits the upgrade success information to the vehicle controller; based on the upgrade success information, obtaining the vehicle's start key status information; when the start key status information indicates that the start key is in a closed state, generating a shutdown instruction corresponding to the controller to be upgraded and transmitting the shutdown instruction to the controller to be upgraded, wherein the controller to be upgraded enters a component hibernation state according to the shutdown instruction and returns the component hibernation state to the vehicle controller; and enters a vehicle hibernation state corresponding to the vehicle controller based on the component hibernation state.
[0008] According to a vehicle software upgrade method provided by the present invention, the vehicle includes a first controller and a second controller, wherein the first controller is communicatively connected to the vehicle controller and the remote communication module, and the second controller is communicatively connected to the first controller; the step of transmitting the standby command to the controller to be upgraded includes: when the first controller is the controller to be upgraded, transmitting the standby command to the first controller, wherein the first controller is configured to enter the standby state according to the standby command; when the second controller is the controller to be upgraded, transmitting the standby command to the first controller, wherein the first controller is configured to enter the standby state according to the standby command, and transmitting the standby command to the second controller, wherein the second controller is configured to enter the standby state according to the standby command.
[0009] This invention also provides a vehicle software upgrade method, applied to a controller to be upgraded, comprising: acquiring a standby command transmitted by a vehicle controller, wherein the vehicle controller is configured to acquire a software upgrade request transmitted by a remote communication module; when the vehicle is in a non-started state, generating a standby command corresponding to the controller to be upgraded according to the software upgrade request, and transmitting the standby command to the controller to be upgraded, wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that requires software upgrade; entering a standby state according to the standby command; and upgrading local software according to the software data packet transmitted by the remote communication module, wherein the vehicle controller is configured to generate an upgrade permission command when the vehicle meets preset upgrade conditions, and transmitting the upgrade permission command to the remote communication module, and the remote communication module is configured to transmit the software data packet to the controller to be upgraded according to the upgrade permission command.
[0010] According to a vehicle software upgrade method provided by the present invention, after upgrading the local software according to the software data packet transmitted by the remote communication module, the method further includes: after the local software upgrade is successful, generating upgrade success information and transmitting the upgrade success information to the remote communication module, wherein the remote communication module is used to transmit the upgrade success information to the vehicle controller, the vehicle controller is used to obtain the upgrade success information transmitted by the remote communication module, obtain the vehicle's start key status information according to the upgrade success information, generate a shutdown command corresponding to the controller to be upgraded when the start key status information indicates that the start key is in a closed state, and transmit the shutdown command to the controller to be upgraded; enter a component sleep state according to the shutdown command, and return the component sleep state to the vehicle controller, wherein the vehicle controller is used to enter a vehicle sleep state corresponding to the vehicle controller according to the component sleep state.
[0011] This invention also provides a vehicle controller device for implementing a vehicle software upgrade method, comprising: a request acquisition module, configured to acquire a software upgrade request transmitted by a remote communication module, wherein the software upgrade request includes information about a controller on the vehicle that needs to be upgraded; a request processing module, configured to, when the vehicle is in a non-started state, generate a standby command corresponding to the controller to be upgraded based on the software upgrade request, and transmit the standby command to the controller to be upgraded, wherein the controller to be upgraded is configured to enter a standby state according to the standby command; and an upgrade preparation module, configured to, when the vehicle meets preset upgrade conditions, generate an upgrade permission command, and transmit the upgrade permission command to the remote communication module, wherein the remote communication module is configured to, according to the upgrade permission command, transmit a software data package to the controller to be upgraded, and the controller to be upgraded is configured to upgrade its local software according to the software data package.
[0012] This invention also provides a device for a vehicle software upgrade controller, comprising: an instruction acquisition module for acquiring a standby instruction transmitted by a vehicle controller, wherein the vehicle controller is configured to acquire a software upgrade request transmitted by a remote communication module, and, when the vehicle is in a non-started state, generate a standby instruction corresponding to the controller to be upgraded based on the software upgrade request, and transmit the standby instruction to the controller to be upgraded, wherein the software upgrade request includes information about the controller to be upgraded that requires software upgrade on the vehicle; a state processing module for entering a standby state according to the standby instruction; and an upgrade processing module for upgrading local software according to the software data packet transmitted by the remote communication module, wherein, when the vehicle meets preset upgrade conditions, the vehicle controller generates an upgrade permission instruction and transmits the upgrade permission instruction to the remote communication module, and the remote communication module transmits the software data packet to the controller to be upgraded according to the upgrade permission instruction.
[0013] The present invention also provides a vehicle, including a vehicle controller and a controller to be upgraded; the vehicle controller implements the vehicle software upgrade method applied to the vehicle controller as described in any of the above descriptions; the controller to be upgraded implements the vehicle software upgrade method applied to the controller to be upgraded as described in any of the above descriptions.
[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle software upgrade method as described above.
[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle software upgrade method as described above.
[0016] The present invention provides a vehicle software upgrade method, apparatus, vehicle, device, and storage medium. After the vehicle controller receives a software upgrade request transmitted by a remote communication module, and the vehicle is in a non-started state, the vehicle controller generates a standby command corresponding to the controller to be upgraded based on the software upgrade request and transmits the standby command to the controller to be upgraded. The controller to be upgraded then enters a standby state according to the standby command. When the vehicle meets preset upgrade conditions, the vehicle controller generates an upgrade permission command and transmits the upgrade permission command to the remote communication module. The remote communication module then transmits a software data package to the controller to be upgraded based on the upgrade permission command, and the controller to be upgraded uses the software data package to upgrade its local software. In this process, the standby command issued by the vehicle controller puts the controller to be upgraded into a standby state, and the remote communication module automatically transmits the software data package to the controller to be upgraded in the standby state, completing the upgrade of the local software in the controller to be upgraded. This process does not require hardware wake-up support from the controller to be upgraded; the vehicle controller controls the state of the controller to be upgraded, reducing hardware costs and improving controller upgrade efficiency. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating the vehicle software upgrade method with the vehicle controller as the execution subject provided by the present invention.
[0019] Figure 2 This is a vehicle communication topology diagram provided by the present invention;
[0020] Figure 3 This is a flowchart illustrating the pre-programming stage of the Bootloader process provided by the present invention;
[0021] Figure 4 This is a flowchart illustrating the programming stage of the Bootloader process provided by the present invention;
[0022] Figure 5 This is a schematic diagram of the driver download process provided by the present invention;
[0023] Figure 6This is a flowchart illustrating the post-programming stage of the Bootloader process provided by the present invention.
[0024] Figure 7 This is a schematic diagram of the BMS upgrade process provided by the present invention;
[0025] Figure 8 This is a schematic diagram of the actual vehicle OTA test results provided by the present invention;
[0026] Figure 9 This is a schematic diagram of the TMS upgrade process provided by the present invention;
[0027] Figure 10 This is a flowchart illustrating the vehicle software upgrade method provided by the present invention, which uses the controller to be upgraded as the execution subject.
[0028] Figure 11 This is a schematic diagram of the vehicle controller device for implementing the vehicle software upgrade method provided by the present invention;
[0029] Figure 12 This is a schematic diagram of the structure of the controller device to be upgraded for implementing the vehicle software upgrade method provided by the present invention;
[0030] Figure 13 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0032] The vehicle software upgrade method provided by this invention is based on the vehicle control unit (VCU), the telematics box (T-Box), and the controller to be upgraded, and completes the automatic upgrade of the software in the controller to be upgraded.
[0033] First, taking the vehicle controller as the execution subject, the vehicle software upgrade method provided by this invention is introduced.
[0034] In one embodiment, such as Figure 1 As shown, the vehicle software upgrade method, which uses the vehicle controller as the main execution unit, has the following implementation steps:
[0035] Step 101: Obtain the software upgrade request transmitted by the remote communication module, wherein the software upgrade request includes information about the controller on the vehicle that needs to be upgraded.
[0036] In this embodiment, the vehicle includes at least one controller, each controlling different vehicle components. For example, the vehicle may be equipped with a Battery Management System (BMS), a Motor Control Unit (MCU), a Transmission Control Unit (TCU), and a Battery Temperature Monitoring System (TMS). Each controller can be independently upgraded as a separate controller.
[0037] In this embodiment, when upgrading the software in the controller to be upgraded, Over-the-Air (OTA) technology can be used. OTA is a method of upgrading the software in the controller by downloading software data packets through a wireless network.
[0038] In this embodiment, the vehicle is equipped with a Controller Area Network (CAN) to enable data communication between various components within the vehicle. Specifically, as shown... Figure 2 The vehicle communication topology diagram shown illustrates that a vehicle includes a vehicle control unit (VCU), an integrated circuit (IC), a remote communication module (T-Box), and four controllers: a battery control system (BMS), a motor control unit (MCU), a transmission control unit (TCU), and a battery temperature control system (TMS).
[0039] Specifically, the Battery Management System (BMS) and Transmission Control Unit (TCU) are located in the main network of the Powertrain CAN bus (PCAN), the Battery Temperature Control System (TMS) is located in the sub-network of the BMS, and the Motor Controller Unit (MCU) is located in the sub-network of the TCU. The BMS and TCU can communicate directly with the Vehicle Control Unit (VCU), Instrument Cluster Integrated Circuit (IC), or Remote Communication Module (T-Box) via PCAN. The PCAN data transmission rate is typically 500 kilobytes (Kb), and software upgrade requests, upgrade permission commands, and software data packets during the upgrade process can be transmitted via PCAN.
[0040] The battery temperature control system (TMS) needs to forward message signals to the battery controller (BMS), and the BMS must remain active while the TMS is operating. Similarly, the motor controller (MCU) needs to forward message signals to the transmission controller (TCU), and the TCU must remain active while the MCU is operating. The remote communication module (T-Box) cannot wake up the controllers via CAN messages and perform software upgrades when all controllers on the PCAN are in sleep mode. Therefore, this invention uses commands issued by the vehicle controller (VCU) to instruct the controller to be upgraded to enter the software upgrade process.
[0041] The vehicle control unit (VCU), instrument cluster IC, and remote communication module (T-Box) can also communicate via an information CAN bus (ICAN). PCAN and ICAN are independent of each other. The data transmission rate of ICAN is typically 250Kb.
[0042] In this embodiment, during the upgrade process of the controller to be upgraded, upgrade information can be displayed to the user via the instrument IC, such as upgrade failure, upgrade in progress, and upgrade success. Furthermore, the upgrade information can be transmitted via ICAN.
[0043] Step 102: When the vehicle is not started, generate a standby command corresponding to the controller to be upgraded according to the software upgrade request, and transmit the standby command to the controller to be upgraded. The controller to be upgraded is used to enter the standby state according to the standby command.
[0044] In this embodiment, the vehicle must be in a non-started state for any controller in the vehicle to undergo a software upgrade, ensuring vehicle safety. When the T-Box receives a software upgrade task, it generates a software upgrade request and transmits it to the VCU, which then controls the controller to be upgraded to enter the software upgrade process. Further, after receiving the software upgrade request from the T-Box, the VCU first determines the vehicle status. If the vehicle is in a started state (where the VCU is in a high-voltage state), it continuously monitors the vehicle status until the vehicle enters a non-started state. Then, it generates a standby command based on the software upgrade request and transmits the standby command to the controller to be upgraded.
[0045] In this embodiment, after receiving the standby command, the controller to be upgraded enters the standby state. Specifically, in the standby state, the controller can only send and receive CAN messages and forward messages. For example, if the controller to be upgraded is... Figure 2The BMS shown is in a high-voltage (HVON) state during normal operation. Upon receiving a Standby command from the VCU, the BMS exits the high-voltage process, stops heating and cooling requests, disconnects the main negative relay, and enters standby mode. In standby mode, the BMS only sends and receives CAN messages and forwards TMS messages, and disables current output. For example, if the controller to be upgraded is... Figure 2 When the TCU receives a Standby command from the VCU, it returns to neutral (N) and stops responding to gear shifts, ceases sending torque requests to the motor, and enters standby mode. In standby mode, the TCU only sends and receives CAN messages and forwards MCU messages.
[0046] In one embodiment, the VCU monitors the vehicle's starting status using handbrake status information and ignition key status information. Specifically, when the vehicle is not started, a standby command corresponding to the controller to be upgraded is generated. The process is as follows: acquire the vehicle's handbrake status information and ignition key status information; when the handbrake status information indicates that the handbrake is engaged and the ignition key status information indicates that the ignition key is disengaged, a standby command corresponding to the controller to be upgraded is generated.
[0047] In this embodiment, when the vehicle's handbrake is engaged and the ignition key is switched to the OFF position, it indicates that the vehicle is not started. If the VCU receives a software upgrade request from the T-Box when the ignition key is in the ON position, the VCU will activate the condition judgment module function to determine whether the vehicle is started. When the vehicle's handbrake is engaged and the key is switched to the OFF position, the VCU immediately sends a standby command to the controller to be upgraded, so that the controller to be upgraded enters the standby state.
[0048] Step 103: When the vehicle meets the preset upgrade conditions, an upgrade permission instruction is generated and transmitted to the remote communication module. The remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission instruction. The controller to be upgraded is used to upgrade the local software according to the software data packet.
[0049] In this embodiment, after the controller to be upgraded enters the standby state, the VCU determines whether the vehicle has met the preset upgrade conditions. If the preset upgrade conditions are met, the VCU generates an upgrade permission command and controls the controller to be upgraded to perform the upgrade through the upgrade permission command.
[0050] In one embodiment, after transmitting the standby command to the controller to be upgraded, the standby state returned by the controller to be upgraded is obtained. If the vehicle meets the preset upgrade conditions, an upgrade permission command is generated. The specific implementation process is as follows: When the controller to be upgraded is in standby mode, the handbrake status information indicates that the handbrake is engaged, and the ignition key status information indicates that the ignition key is disengaged, an upgrade permission command is generated.
[0051] In this embodiment, the remote communication module T-Box pre-downloads the software data package corresponding to the controller to be upgraded. Specifically, after the upgrade task is issued through the instrument IC or upgrade platform, the T-Box wirelessly downloads the software data package for the controller to be upgraded via a secure authentication channel using OTA technology. After the software data package is downloaded, its legality and integrity need to be verified.
[0052] In this embodiment, the upgrade task issued by the instrument IC or upgrade platform has two upgrade methods: non-silent upgrade and silent upgrade. In non-silent upgrade, relevant personnel need to click the upgrade button via the client before the T-Box, VCU, and the controller to be upgraded can enter the upgrade process. In silent upgrade, the T-Box needs to download the software data package for the upgrade in advance. After downloading, the T-Box directly sends the software upgrade request to the VCU via the CAN bus, without requiring confirmation from relevant personnel. The VCU allows the upgrade when the vehicle is switched from ON to OFF. Specifically, if the T-Box has already downloaded the software data package and issued a software upgrade request when the vehicle is ON, the VCU needs to issue an upgrade permission command when the ignition key is switched from ON to OFF.
[0053] In this embodiment, the preset upgrade conditions for the VCU are that the controller to be upgraded is in standby mode, the handbrake status information indicates that the handbrake is engaged, and the start key status information indicates that the start key is disengaged. For example, when the controller to be upgraded is... Figure 2 When upgrading a BMS, the VCU's preset upgrade conditions are as follows: the BMS's main and auxiliary relays are disconnected, the BMS's battery voltage is greater than 23.5 volts (V), the handbrake status information indicates the handbrake is engaged, and the ignition key status information indicates the ignition key is disengaged. If the VCU determines that any of the above preset upgrade conditions are not met, the VCU sends a signal to the T-Box requesting to exit the upgrade. Simultaneously, the T-Box sends a signal to the instrument IC, which then prompts the user that "upgrade conditions are not met, upgrade exit". If the VCU determines that all the above preset conditions are met, the VCU allows the BMS upgrade. The VCU continues to send standby commands to the BMS to keep it in standby mode. At the same time, the VCU sends an upgrade permission command to the T-Box, and then the VCU enters standby mode.
[0054] After receiving the upgrade permission command, the T-Box begins preparing to send the software data package for the upgrade and sends a signal to the instrument IC, which displays the message "Upgrade in progress". The T-Box's software upgrade module and the protocol flashing service module in the controller to be upgraded then enter the software upgrade startup (Bootloader) process dialogue.
[0055] In one embodiment, the software upgrade bootloader process dialogue includes three phases: the pre-programming phase, the programming phase, and the post-programming phase. Specifically, the controller software upgrade bootloader process follows the ISO-14229 standard diagnostic protocol. The T-Box and the controller to be upgraded communicate and transmit commands and data in a service dialogue manner through functional addressing, physical addressing, and diagnostic response identity document (ID).
[0056] like Figure 3 The Bootloader programming process shown in the diagram first involves an extended session (based on function addressing, e.g., 10 83) to determine the service functions; checking pre-programming conditions (based on physical addressing, e.g., 31 01F0 02) to obtain a positive response; disabling Diagnostic Trouble Codes (DTCs) (based on function addressing, e.g., 85 82); stopping diagnostic-irrelevant communication (based on function addressing, e.g., 28 83 01); and reading the hardware version number of the Electronic Control Unit (ECU) (based on physical addressing, e.g., 22F1 91) and the software version number of the ECU (based on physical addressing, e.g., 22F1 A0) to ensure that the version number of the software data package to be flashed is not duplicated.
[0057] If the pre-programming phase receives a positive response, the formal programming session can begin. For example... Figure 4 The Bootloader process is illustrated in the programming phase. Upon entering the programming session, secure access is required. This secure access uses a pre-agreed consensus key algorithm to calculate a key for authentication. After successful authentication, fingerprint information is written. The Flash driver is downloaded and its integrity verified. The memory is erased, and the original program is deleted. The software data package to be upgraded is downloaded and its integrity verified. Upon receiving a positive response, programming dependencies are checked. Finally, the ECU is reset and restarted. All of the above processes are implemented based on physical addressing.
[0058] Specifically, when downloading the Flash driver and verifying its integrity, such as... Figure 5As shown, the download should proceed in the following sequence: request download, transfer data, request transfer exit. After all bytes have been downloaded, the "Check Programming Integrity" routine is used to verify that all bytes have been transferred correctly. This process supports intermittent downloading of software data packages; that is, after a data transfer is paused, it can be resumed depending on whether there is more data to download; similarly, after a transfer exit request is paused, it can be resumed depending on whether there are more segments to download.
[0059] like Figure 6 The Bootloader process shown is the post-programming stage. After the upgrade controller completes the reset and restart, it needs to re-enter the extended session (based on function addressing, e.g., 10 83), resume communication to send and receive messages (based on function addressing, e.g., 2880 03), enable DTC fault diagnosis settings (based on function addressing, e.g., 85 81), restore the default session (based on function addressing, e.g., 10 81), clear the DTC, and end this upgrade program flashing (based on physical addressing, e.g., 14FF FF FF).
[0060] In one embodiment, after transmitting the upgrade permission command to the remote communication module, the upgrade success information transmitted by the remote communication module is obtained. The controller to be upgraded generates upgrade success information after a successful local software upgrade and transmits this information to the remote communication module. The remote communication module then transmits the upgrade success information to the vehicle controller. Based on the upgrade success information, the vehicle's ignition key status information is obtained. If the ignition key status information indicates that the ignition key is in the off state, a shutdown command corresponding to the controller to be upgraded is generated and transmitted to the controller. The controller to be upgraded enters a component hibernation state according to the shutdown command and returns the component hibernation state to the vehicle controller. Based on the component hibernation state, the controller enters the vehicle hibernation state corresponding to the vehicle controller.
[0061] In this embodiment, after the controller to be upgraded is successfully upgraded, it transmits the upgrade success information to the T-Box. The T-Box sends the upgrade success information to the VCU and the instrument IC respectively. After receiving the upgrade success information, the instrument IC displays "upgrade successful". After receiving the upgrade success information, the VCU needs to check the key status again. If the key is in the OFF position, it sends a shutdown command to the controller to be upgraded. The controller to be upgraded then enters the ShutDown state, that is, it stops sending messages and enters the sleep state.
[0062] If the controller to be upgraded fails, the T-Box sends an upgrade failure message to the instrument IC and simultaneously retransmits the software upgrade request to the VCU. It waits for the next key switch from ON to OFF to attempt the software upgrade again. If this fails again, the upgrade is repeated three times. After three failures, the T-Box performs a rollback upgrade, using the previously updated historical software data package. If no such package exists, the rollback is skipped, and the system is immediately reported to the platform for manual intervention. If all three rollback upgrades fail, the system reports to the platform for manual intervention and also reports the upgrade failure.
[0063] If the rollback flash is successful, the VCU will determine the key signal status. If the key is in the OFF position, it will control all vehicle controllers to enter sleep mode. If the key is returned to the ON position, the VCU will control all vehicle controllers to power on normally again.
[0064] In one specific embodiment, based on Figure 2 The vehicle communication topology diagram shown is as follows. Figure 2 The BMS in the text refers to the controller to be upgraded. For example... Figure 7 As shown, the BMS upgrade process is as follows:
[0065] After the upgrade task is issued via the instrument IC or upgrade platform, the T-Box wirelessly downloads the BMS software data package for the upgrade through a secure, authenticated channel using OTA technology. Once the software data package is downloaded, its legitimacy and integrity must be verified.
[0066] There are two upgrade methods for upgrade tasks issued by the instrument cluster IC or upgrade platform: non-silent upgrade and silent upgrade. For non-silent upgrades, relevant personnel need to click the upgrade button via the client before the T-Box, VCU, and BMS can enter the upgrade process. For silent upgrades, the T-Box needs to download the software data package for the upgrade beforehand. After downloading, the T-Box directly sends a software upgrade request to the VCU via the CAN bus, without requiring confirmation from relevant personnel. The VCU allows the upgrade when the vehicle is switched from ON to OFF. Specifically, if the T-Box has already downloaded the software data package and issued a software upgrade request while the vehicle is in the ON position, the VCU needs to issue an upgrade permission command when the ignition key is switched from ON to OFF.
[0067] During normal operation, the BMS is in a high-voltage (HVON) state. Upon receiving a Standby command from the VCU, the BMS exits the high-voltage process, stops heating and cooling requests, disconnects the main negative relay, and enters standby mode. In standby mode, the BMS only sends and receives CAN messages and forwards TMS messages; it is prohibited from outputting current.
[0068] When the vehicle's handbrake is engaged and the ignition key is switched to the OFF position, the vehicle is in a non-started state. If the VCU receives a software upgrade request from the T-Box while the ignition key is in the ON position, the VCU will activate the condition judgment module function to determine if the BMS's main negative relay is disconnected, the BMS's battery voltage is greater than 23.5 volts (V), the handbrake status information indicates that the handbrake is engaged, and the ignition key status information indicates that the ignition key is off. If the VCU determines that any of the above preset upgrade conditions are not met, the VCU sends a signal to the T-Box requesting to exit the upgrade. At the same time, the T-Box sends a signal to the instrument cluster IC, which then prompts the user that "upgrade conditions are not met, upgrade exit". If the VCU determines that all the above preset conditions are met, the VCU allows the BMS upgrade. The VCU continues to send standby commands to the BMS to keep the BMS in standby mode. Simultaneously, the VCU sends an upgrade permission command to the T-Box, and then the VCU enters standby mode.
[0069] After receiving the upgrade permission command, the T-Box begins preparing to send the software data package for the upgrade and sends a signal to the instrument IC, which displays the message "Upgrade in progress". The T-Box's software upgrade module and the protocol flashing service module in the BMS enter the software upgrade startup (Bootloader) process dialogue, which involves diagnostic software docking, entering the software upgrade program, and completing the software flashing process.
[0070] After the BMS upgrade is successful, the upgrade success information is transmitted to the T-Box. The T-Box sends the upgrade success information to the VCU and the instrument IC respectively. After receiving the upgrade success information, the instrument IC displays "Upgrade successful". After receiving the upgrade success information, the VCU needs to check the key status again. If the key is in the OFF position, it sends a shutdown command to the BMS. The BMS then enters the ShutDown state, that is, it stops sending messages and enters the sleep state.
[0071] If the BMS upgrade fails, the T-Box sends an upgrade failure message to the instrument IC and simultaneously retransmits the software upgrade request to the VCU. It waits for the next key switch from ON to OFF to attempt the software upgrade again. If this fails again, the upgrade is repeated three times. After three failures, the T-Box performs a rollback upgrade, using the previously updated historical software data package. If no such package exists, the rollback is skipped, and the system is immediately notified to request manual intervention. If all three rollback upgrades fail, the system is notified to request manual intervention and the upgrade is reported as a failure.
[0072] If the rollback flash is successful, the VCU will determine the key signal status. If the key is in the OFF position, it will control all vehicle controllers to enter sleep mode. If the key is returned to the ON position, the VCU will control all vehicle controllers to power on normally again.
[0073] In this embodiment, the following is true Figure 8 The OTA test results shown in the image demonstrate that during the upgrade process, the T-Box can identify the upgrade progress and report it to the platform. At the same time, it sends an upgrade-in-progress signal command to the instrument cluster, which displays "Upgrading in progress" according to the command.
[0074] In one embodiment, the vehicle includes a first controller and a second controller. The first controller is communicatively connected to both a vehicle controller and a remote communication module, and the second controller is communicatively connected to the first controller. The standby command is transmitted to the controller to be upgraded, as follows: If the first controller is the controller to be upgraded, a standby command is transmitted to the first controller, which then enters a standby state according to the command; if the second controller is the controller to be upgraded, a standby command is transmitted to the first controller, which then enters a standby state according to the command and transmits the standby command to the second controller, which then enters a standby state according to the command.
[0075] In this embodiment, the second controller cannot directly communicate with components such as the VCU, T-Box, and instrument IC via the CAN bus main network; it needs to communicate via message forwarding from the first controller. Therefore, if the second controller is to be upgraded, both the second and first controllers must remain in standby mode. For example, Figure 2 When the TMS in a system requires a software upgrade, both the BMS and TMS need to enter standby mode; for example... Figure 2 When the MCU in the system needs a software upgrade, both the TCU and the MCU need to enter standby mode.
[0076] In this embodiment, the software upgrade process of the second controller is similar to that of the first controller. The difference is that the second controller communicates with components such as the VCU, T-Box, and instrument IC, and requires message forwarding from the first controller. Based on Figure 2 As shown in the topology diagram, when the TMS performs an OTA upgrade, the BMS needs to be activated simultaneously. Since the TMS is located on the BMS's CAN subnet, message forwarding is required when the BMS on the main network is online for the TMS to perform an OTA upgrade. Similarly, when the MCU performs an OTA upgrade, the TCU needs to be activated simultaneously. Since the MCU is located on the TCU's CAN subnet, message forwarding is required when the TCU on the main network is online for the OTA upgrade to be successful.
[0077] For example, based on Figure 2The vehicle communication topology diagram shown is as follows. Figure 2 The TMS in the text refers to the controller to be upgraded. For example... Figure 9 As shown, the TMS upgrade process is as follows:
[0078] After the upgrade task is issued via the instrument IC or upgrade platform, the T-Box wirelessly downloads the software data package for the TMS upgrade through a secure, authenticated channel using OTA technology. Once the software data package is downloaded, its legitimacy and integrity must be verified.
[0079] There are two upgrade methods for upgrade tasks issued by the instrument cluster IC or upgrade platform: non-silent upgrade and silent upgrade. For non-silent upgrades, relevant personnel need to click the upgrade button via the client before the T-Box, VCU, and TMS can enter the upgrade process. For silent upgrades, the T-Box needs to download the software data package for the upgrade beforehand. After downloading, the T-Box directly sends a software upgrade request to the VCU via the CAN bus, without requiring confirmation from relevant personnel. The VCU allows the upgrade when the vehicle is switched from ON to OFF. Specifically, if the T-Box has already downloaded the software data package and issued a software upgrade request while the vehicle is in the ON position, the VCU needs to issue an upgrade permission command when the ignition key is switched from ON to OFF.
[0080] The upgrade permission command issued by the VCU is forwarded to the TMS via the BMS. During normal operation, the TMS is in a high-voltage (HVON) state. Upon receiving the Standby command from the VCU, the TMS de-energizes, stops heating and cooling requests, disconnects the main negative relay, and enters standby mode. In standby mode, the TMS only sends and receives CAN messages and forwards TMS messages; it is prohibited from outputting current.
[0081] When the vehicle's handbrake is engaged and the ignition key is switched to the OFF position, the vehicle is in a non-started state. If the VCU receives a software upgrade request sent by the T-Box and forwarded by the BMS when the ignition key is in the ON position, the VCU will activate the condition judgment module function to determine whether the vehicle is started. When the vehicle's handbrake is engaged and the key is switched to the OFF position, the VCU immediately sends a standby command to the TMS to put the TMS into standby mode.
[0082] The VCU's preset upgrade conditions are as follows: the TMS enters standby mode, the handbrake status information indicates the handbrake is engaged, and the ignition key status information indicates the ignition key is disengaged. If the VCU determines that any one of the above preset upgrade conditions is not met, the VCU sends a signal to the T-Box requesting to exit the upgrade. Simultaneously, the T-Box sends a signal to the instrument IC, which then prompts the user that "upgrade conditions are not met; upgrade exit." If the VCU determines that all the above preset conditions are met, the VCU allows the TMS to upgrade. The VCU continues to send standby commands to the TMS through the BMS to maintain the TMS in standby mode. At the same time, the VCU sends an upgrade permission command to the T-Box, and then the VCU enters standby mode.
[0083] After receiving the upgrade permission command, the T-Box begins preparing to send the software data package for the upgrade and sends a signal to the instrument IC, which displays the message "Upgrade in progress". The T-Box's software upgrade module and the protocol flashing service module in the TMS enter the software upgrade startup (Bootloader) process dialogue, that is, to perform diagnostic software docking, enter the software upgrade program, and complete the software flashing process.
[0084] After a successful TMS upgrade, the upgrade success information is transmitted to the T-Box via the BMS. The T-Box then sends the upgrade success information to both the VCU and the instrument IC. Upon receiving the upgrade success information, the instrument IC displays "Upgrade Successful". After receiving the upgrade success information, the VCU needs to check the key status again. If the key is in the OFF position, it sends a shutdown command to the TMS via the BMS. The TMS then enters the ShutDown state, which means it stops sending messages and enters a sleep state.
[0085] If the TMS upgrade fails, the T-Box sends an upgrade failure message to the instrument IC and simultaneously retransmits the software upgrade request to the VCU. It waits for the next key switch from ON to OFF to attempt the software upgrade again. If this fails again, the upgrade is repeated three times. After three failures, the T-Box performs a rollback upgrade, using the previously updated historical software data package. If no such package exists, the rollback is skipped, and the system is immediately notified to request manual intervention. If all three rollback upgrades fail, the system is notified to request manual intervention and the upgrade is reported as a failure.
[0086] If the rollback flash is successful, the VCU will determine the key signal status. If the key is in the OFF position, it will control all vehicle controllers to enter sleep mode. If the key is returned to the ON position, the VCU will control all vehicle controllers to power on normally again.
[0087] The following section describes the vehicle software upgrade method provided by this invention, using the controller to be upgraded as the execution subject.
[0088] The vehicle software upgrade method described below, which uses the controller to be upgraded as the execution entity, can be referred to in correspondence with the controller to be upgraded described above; repeated details will not be repeated. Figure 10 As shown, the vehicle software upgrade method, with the controller to be upgraded as the main execution entity, has the following implementation steps:
[0089] Step 1001: Obtain the standby command transmitted by the vehicle controller. The vehicle controller is used to obtain the software upgrade request transmitted by the remote communication module. When the vehicle is not started, it generates the standby command corresponding to the controller to be upgraded according to the software upgrade request and transmits the standby command to the controller to be upgraded. The software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded.
[0090] Step 1002: Enter standby mode according to the standby command;
[0091] Step 1003: Upgrade the local software according to the software data packet transmitted by the remote communication module. The vehicle controller generates an upgrade permission instruction when the vehicle meets the preset upgrade conditions and transmits the upgrade permission instruction to the remote communication module. The remote communication module transmits the software data packet to the controller to be upgraded according to the upgrade permission instruction.
[0092] In one embodiment, after upgrading the local software according to the software data packet transmitted by the remote communication module, and upon successful local software upgrade, upgrade success information is generated and transmitted to the remote communication module. The remote communication module transmits the upgrade success information to the vehicle controller. The vehicle controller obtains the upgrade success information transmitted by the remote communication module, acquires the vehicle's ignition key status information based on the upgrade success information, generates a shutdown command corresponding to the controller to be upgraded if the ignition key status information indicates that the ignition key is in the off state, and transmits the shutdown command to the controller to be upgraded. Based on the shutdown command, the vehicle controller enters a component hibernation state and returns the component hibernation state to the vehicle controller. The vehicle controller enters a corresponding vehicle hibernation state based on the component hibernation state.
[0093] The vehicle software upgrade method provided by this invention involves the vehicle controller receiving a software upgrade request from a remote communication module. While the vehicle is in a non-started state, the vehicle controller generates a standby command corresponding to the controller to be upgraded based on the software upgrade request and transmits the standby command to the controller to be upgraded. The controller to be upgraded then enters a standby state according to the standby command. When the vehicle meets preset upgrade conditions, the vehicle controller generates an upgrade permission command and transmits it to the remote communication module. The remote communication module then transmits a software data package to the controller to be upgraded based on the upgrade permission command. The controller to be upgraded then uses the software data package to upgrade its local software. In this process, the standby command issued by the vehicle controller puts the controller to be upgraded into a standby state, and the remote communication module automatically transmits the software data package to the controller in the standby state, completing the upgrade of the local software in the controller to be upgraded. This process eliminates the need for hardware wake-up support from the controller to be upgraded; the vehicle controller controls the state of the controller to be upgraded, reducing hardware costs and improving controller upgrade efficiency.
[0094] Specifically, the vehicle controller participates in the OTA upgrade process of other controllers. When an upgrade is detected, the key is switched from ON to OFF, and the required controller enters standby mode via a current communication protocol command, maintaining CAN communication. The T-Box then sends an upgrade command for communication. After the upgrade is complete and communication is restored, the key status is checked again to proceed with the next command. This method solves the OTA upgrade problem when the controller lacks CAN message wake-up functionality.
[0095] The vehicle controller device for implementing the vehicle software upgrade method provided by the present invention will be described below. The vehicle controller device for implementing the vehicle software upgrade method described below can be referred to in correspondence with the vehicle software upgrade method with the vehicle controller as the execution subject described above. Figure 11 As shown, the vehicle controller device for implementing the vehicle software upgrade method includes:
[0096] The request acquisition module 1101 is used to acquire the software upgrade request transmitted by the remote communication module, wherein the software upgrade request includes information about the controller on the vehicle that needs to be upgraded.
[0097] The request processing module 1102 is used to generate a standby command corresponding to the controller to be upgraded according to the software upgrade request when the vehicle is in an unstarted state, and transmit the standby command to the controller to be upgraded, wherein the controller to be upgraded is used to enter the standby state according to the standby command.
[0098] The upgrade preparation module 1103 is used to generate an upgrade permission instruction when the vehicle meets the preset upgrade conditions, and transmit the upgrade permission instruction to the remote communication module. The remote communication module is used to transmit the software data package to the controller to be upgraded according to the upgrade permission instruction, and the controller to be upgraded is used to upgrade the local software according to the software data package.
[0099] The following describes the controller device for implementing the vehicle software upgrade method provided by the present invention. The controller device for implementing the vehicle software upgrade method described below can be referred to in correspondence with the vehicle software upgrade method described above, which uses the controller for upgrade as the execution subject. Figure 12 As shown, the controller device to be upgraded, which implements the vehicle software upgrade method, includes:
[0100] The instruction acquisition module 1201 is used to acquire the standby instruction transmitted by the vehicle controller. The vehicle controller is used to acquire the software upgrade request transmitted by the remote communication module. When the vehicle is not started, it generates the standby instruction corresponding to the controller to be upgraded according to the software upgrade request and transmits the standby instruction to the controller to be upgraded. The software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded.
[0101] The status processing module 1202 is used to enter the standby state according to the standby command;
[0102] The upgrade processing module 1203 is used to upgrade the local software according to the software data packet transmitted by the remote communication module. The vehicle controller is used to generate an upgrade permission instruction when the vehicle meets the preset upgrade conditions, and transmit the upgrade permission instruction to the remote communication module. The remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission instruction.
[0103] The present invention also provides a vehicle, including a vehicle controller and a controller to be upgraded.
[0104] The vehicle controller implements the vehicle software upgrade method for the vehicle controller provided in any of the above embodiments. The method includes: acquiring a software upgrade request transmitted by a remote communication module, wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded; when the vehicle is in a non-started state, generating a standby command corresponding to the controller to be upgraded according to the software upgrade request, and transmitting the standby command to the controller to be upgraded, wherein the controller to be upgraded is used to enter a standby state according to the standby command; when the vehicle meets preset upgrade conditions, generating an upgrade permission command, and transmitting the upgrade permission command to the remote communication module, wherein the remote communication module is used to transmit a software data packet to the controller to be upgraded according to the upgrade permission command, and the controller to be upgraded is used to upgrade its local software according to the software data packet.
[0105] The controller to be upgraded implements the vehicle software upgrade method for the controller to be upgraded provided in any of the above embodiments. The method includes: obtaining a standby command transmitted by a vehicle controller, wherein the vehicle controller is used to obtain a software upgrade request transmitted by a remote communication module; when the vehicle is in a non-started state, it generates a standby command corresponding to the controller to be upgraded according to the software upgrade request and transmits the standby command to the controller to be upgraded; wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded; entering a standby state according to the standby command; and upgrading the local software according to the software data packet transmitted by the remote communication module, wherein the vehicle controller is used to generate an upgrade permission command when the vehicle meets preset upgrade conditions and transmits the upgrade permission command to the remote communication module; the remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission command.
[0106] Figure 13 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 13 As shown, the electronic device may include a processor 1301, a communication interface 1302, a memory 1303, and a communication bus 1304. The processor 1301, communication interface 1302, and memory 1303 communicate with each other via the communication bus 1304. The processor 1301 can call logical instructions in the memory 1303 to execute a vehicle software upgrade method with the vehicle controller as the execution entity. This method includes: acquiring a software upgrade request transmitted by a remote communication module, wherein the software upgrade request includes information about the controller on the vehicle that needs software upgrading; when the vehicle is in a non-started state, generating a standby instruction corresponding to the controller to be upgraded based on the software upgrade request, and transmitting the standby instruction to the controller to be upgraded, wherein the controller to be upgraded is used to enter a standby state according to the standby instruction; when the vehicle meets preset upgrade conditions, generating an upgrade permission instruction, and transmitting the upgrade permission instruction to the remote communication module, wherein the remote communication module is used to transmit a software data packet to the controller to be upgraded according to the upgrade permission instruction, and the controller to be upgraded is used to upgrade its local software according to the software data packet.
[0107] Alternatively, a vehicle software upgrade method using the controller to be upgraded as the execution subject, the method includes: obtaining a standby command transmitted by a vehicle controller, wherein the vehicle controller is used to obtain a software upgrade request transmitted by a remote communication module; when the vehicle is in a non-started state, generating a standby command corresponding to the controller to be upgraded according to the software upgrade request, and transmitting the standby command to the controller to be upgraded, wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded; entering a standby state according to the standby command; and upgrading the local software according to the software data packet transmitted by the remote communication module, wherein the vehicle controller is used to generate an upgrade permission command when the vehicle meets preset upgrade conditions, and transmitting the upgrade permission command to the remote communication module, the remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission command.
[0108] Furthermore, the logical instructions in the aforementioned memory 1303 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0109] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, and when the program instructions are executed by a computer, the computer can execute the vehicle software upgrade method with the vehicle controller as the execution subject provided in the above embodiments. The method includes: obtaining a software upgrade request transmitted by a remote communication module, wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded; when the vehicle is in a non-started state, generating a standby instruction corresponding to the controller to be upgraded according to the software upgrade request, and transmitting the standby instruction to the controller to be upgraded, wherein the controller to be upgraded is used to enter a standby state according to the standby instruction; when the vehicle meets preset upgrade conditions, generating an upgrade permission instruction, and transmitting the upgrade permission instruction to the remote communication module, wherein the remote communication module is used to transmit a software data packet to the controller to be upgraded according to the upgrade permission instruction, and the controller to be upgraded is used to upgrade the local software according to the software data packet.
[0110] Alternatively, the computer can execute the vehicle software upgrade method provided in the above embodiments, with the controller to be upgraded as the execution subject. This method includes: acquiring a standby command transmitted by a vehicle controller, wherein the vehicle controller is used to acquire a software upgrade request transmitted by a remote communication module; when the vehicle is in a non-started state, generating a standby command corresponding to the controller to be upgraded based on the software upgrade request, and transmitting the standby command to the controller to be upgraded; wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that requires software upgrade; entering a standby state according to the standby command; and upgrading the local software according to a software data packet transmitted by the remote communication module, wherein the vehicle controller is used to generate an upgrade permission command when the vehicle meets preset upgrade conditions, and transmitting the upgrade permission command to the remote communication module; the remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission command.
[0111] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the vehicle software upgrade method with the vehicle controller as the execution subject provided in the above embodiments. The method includes: acquiring a software upgrade request transmitted by a remote communication module, wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded; when the vehicle is in a non-started state, generating a standby instruction corresponding to the controller to be upgraded according to the software upgrade request, and transmitting the standby instruction to the controller to be upgraded, wherein the controller to be upgraded is used to enter a standby state according to the standby instruction; when the vehicle meets preset upgrade conditions, generating an upgrade permission instruction, and transmitting the upgrade permission instruction to the remote communication module, wherein the remote communication module is used to transmit a software data packet to the controller to be upgraded according to the upgrade permission instruction, and the controller to be upgraded is used to upgrade its local software according to the software data packet.
[0112] Alternatively, when the computer program is executed by the processor, it implements the vehicle software upgrade method with the controller to be upgraded as the execution subject provided in the above embodiments. The method includes: obtaining a standby command transmitted by the vehicle controller, wherein the vehicle controller is used to obtain a software upgrade request transmitted by the remote communication module; when the vehicle is in a non-started state, it generates a standby command corresponding to the controller to be upgraded according to the software upgrade request and transmits the standby command to the controller to be upgraded, wherein the software upgrade request includes information about the controller to be upgraded on the vehicle that needs to be upgraded; entering a standby state according to the standby command; and upgrading the local software according to the software data packet transmitted by the remote communication module, wherein the vehicle controller is used to generate an upgrade permission command when the vehicle meets preset upgrade conditions and transmits the upgrade permission command to the remote communication module, and the remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission command.
[0113] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0114] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A vehicle software upgrade method, characterized in that, Applied to vehicle controllers, including: Obtain a software upgrade request transmitted by a remote communication module, wherein the software upgrade request includes information about the controller on the vehicle that needs to be upgraded. When the vehicle's handbrake status information indicates that the handbrake is engaged and the vehicle's ignition key status information indicates that the ignition key is disengaged, a standby command corresponding to the controller to be upgraded is generated according to the software upgrade request, and the standby command is transmitted to the controller to be upgraded. The standby command is used to instruct the controller to be upgraded to perform a high-voltage operation and enter a standby state. In the standby state, the controller to be upgraded only sends and receives CAN messages and forwards messages on the controller area network, and is prohibited from outputting current. Obtain the standby state returned by the controller to be upgraded; When the controller to be upgraded is in the standby state, and the handbrake status information indicates that the handbrake is engaged and the ignition key status information indicates that the ignition key is disengaged, an upgrade permission command is generated and transmitted to the remote communication module. The remote communication module is used to transmit a software data package to the controller to be upgraded according to the upgrade permission command, and the controller to be upgraded is used to upgrade the local software according to the software data package.
2. The vehicle software upgrade method according to claim 1, characterized in that, Also includes: Obtain the handbrake status information and start key status information of the vehicle.
3. The vehicle software upgrade method according to claim 1 or 2, characterized in that, After transmitting the upgrade permission instruction to the remote communication module, the method further includes: The upgrade success information transmitted by the remote communication module is obtained. The controller to be upgraded generates the upgrade success information after the local software upgrade is successful, and transmits the upgrade success information to the remote communication module. The remote communication module transmits the upgrade success information to the vehicle controller. Based on the upgrade success information, obtain the vehicle's start key status information; When the start key status information indicates that the start key is in the off state, a shutdown command corresponding to the controller to be upgraded is generated and the shutdown command is transmitted to the controller to be upgraded. The controller to be upgraded is used to enter the component sleep state according to the shutdown command and return the component sleep state to the vehicle controller. Based on the sleep state of the component, the system enters the corresponding vehicle sleep state of the vehicle controller.
4. The vehicle software upgrade method according to claim 1 or 2, characterized in that, The vehicle includes a first controller and a second controller, wherein the first controller is communicatively connected to the vehicle controller and the remote communication module, and the second controller is communicatively connected to the first controller. The step of transmitting the standby command to the controller to be upgraded includes: When the first controller is the controller to be upgraded, the standby command is transmitted to the first controller, wherein the first controller is used to enter the standby state according to the standby command; When the second controller is the controller to be upgraded, the standby command is transmitted to the first controller, wherein the first controller is used to enter the standby state according to the standby command and transmit the standby command to the second controller, and the second controller is used to enter the standby state according to the standby command.
5. A vehicle software upgrade method, characterized in that, Applied to controllers to be upgraded, including: The system acquires a standby command transmitted by the vehicle controller, wherein the vehicle controller acquires a software upgrade request transmitted by the remote communication module. When the vehicle's handbrake status information indicates that the handbrake is engaged and the vehicle's ignition key status information indicates that the ignition key is disengaged, the system generates a standby command corresponding to the controller to be upgraded based on the software upgrade request and transmits the standby command to the controller to be upgraded. The software upgrade request includes information about the controller to be upgraded on the vehicle that requires a software upgrade. The controller enters standby mode according to the standby command; the standby command is used to instruct the controller to be upgraded to perform a high-voltage operation and enter standby mode. In the standby mode, the controller to be upgraded only sends and receives CAN messages and forwards messages on the controller area network, and is prohibited from outputting current. The local software is upgraded according to the software data packet transmitted by the remote communication module. The vehicle controller is used to generate an upgrade permission instruction when the controller to be upgraded is in the standby state, the handbrake status information indicates that the handbrake is engaged, and the start key status information indicates that the start key is disengaged. The upgrade permission instruction is then transmitted to the remote communication module. The remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission instruction.
6. The vehicle software upgrade method according to claim 5, characterized in that, After upgrading the local software according to the software data packet transmitted by the remote communication module, the process further includes: After a successful local software upgrade, an upgrade success message is generated and transmitted to the remote communication module. The remote communication module transmits the upgrade success message to the vehicle controller. The vehicle controller receives the upgrade success message transmitted by the remote communication module, obtains the vehicle's start key status information based on the upgrade success message, and generates a shutdown command corresponding to the controller to be upgraded when the start key status information indicates that the start key is in the off state. The shutdown command is then transmitted to the controller to be upgraded. The component enters a sleep state according to the shutdown command and returns the component sleep state to the vehicle controller. The vehicle controller is used to enter the corresponding vehicle sleep state according to the component sleep state.
7. A vehicle controller device for implementing a vehicle software upgrade method, characterized in that, include: The request acquisition module is used to acquire the software upgrade request transmitted by the remote communication module, wherein the software upgrade request includes information about the controller on the vehicle that needs to be upgraded. The request processing module is used to generate a standby command corresponding to the controller to be upgraded according to the software upgrade request when the vehicle's handbrake status information indicates that the handbrake is engaged and the vehicle's ignition key status information indicates that the ignition key is disengaged, and transmit the standby command to the controller to be upgraded. The standby command is used to instruct the controller to be upgraded to perform a high-voltage operation and enter a standby state. In the standby state, the controller to be upgraded only sends and receives CAN messages and forwards messages on the controller area network, and is prohibited from outputting current. An upgrade preparation module is used to obtain the standby state returned by the controller to be upgraded; when the controller to be upgraded is in the standby state, and the handbrake status information indicates that the handbrake is engaged and the start key status information indicates that the start key is disengaged, an upgrade permission command is generated and transmitted to the remote communication module, wherein the remote communication module is used to transmit a software data packet to the controller to be upgraded according to the upgrade permission command, and the controller to be upgraded is used to upgrade the local software according to the software data packet.
8. A controller device for implementing a vehicle software upgrade method, characterized in that, include: The instruction acquisition module is used to acquire standby instructions transmitted by the vehicle controller. The vehicle controller acquires software upgrade requests transmitted by the remote communication module. When the vehicle's handbrake status information indicates the handbrake is engaged and the vehicle's ignition key status information indicates the ignition key is disengaged, the module generates a standby instruction corresponding to the controller to be upgraded based on the software upgrade request and transmits the standby instruction to the controller to be upgraded. The software upgrade request includes information about the controller to be upgraded that requires software upgrade. The standby instruction instructs the controller to be upgraded to perform a high-voltage operation and enter a standby state. In the standby state, the controller to be upgraded only sends and receives CAN messages and forwards messages on the controller area network, and is prohibited from outputting current. The status processing module is used to enter the standby state according to the standby command; The upgrade processing module is used to upgrade the local software according to the software data packet transmitted by the remote communication module. The vehicle controller is used to generate an upgrade permission command when the controller to be upgraded is in the standby state, the handbrake status information indicates that the handbrake is engaged, and the start key status information indicates that the start key is disengaged. The upgrade permission command is then transmitted to the remote communication module. The remote communication module is used to transmit the software data packet to the controller to be upgraded according to the upgrade permission command.
9. A vehicle, characterized in that, This includes the vehicle controller and the controller to be upgraded; The vehicle controller implements the vehicle software upgrade method as described in any one of claims 1 to 4; The controller to be upgraded implements the vehicle software upgrade method as described in any one of claims 5 to 6.
10. An electronic 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 vehicle software upgrade method as described in any one of claims 1 to 6.
11. A non-transitory 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 vehicle software upgrade method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Application upgrading method, device, system and storage medium
CN109240722A
Vehicle remote silence upgrading method and device, vehicle and storage medium
CN110888662A
