Vehicle control unit updating method and system, vehicle and storage medium
By using the main node system-on-chip in the car to connect with the sub-node system-on-chip, software data packages are obtained and distributed to realize the flashing of the electronic control unit and domain controller, which solves the problem that the vehicle controller cannot be fully updated and improves the efficiency of the vehicle. Upgrade scope and adaptability reduce hardware storage costs.
Patent Information
- Application Number
- CN202410829532.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-20
AI Technical Summary
Existing technology cannot fully update the vehicle's entire vehicle controller, resulting in a limited scope of software upgrades and inability to adapt to different electronic and electrical platforms. In addition, the upgrade package is huge, resulting in increased hardware storage costs.
Through the connection between the main node on-chip system and the sub-node on-chip system, electronic control unit and domain controller, the software data package is obtained and distributed to the sub-node on-chip system, and the electronic control unit and domain controller are refreshed based on the software data package, and the domain control The device is used to flash the micro control unit to achieve a global upgrade of the vehicle software.
It increases the scope of vehicle upgrades, realizes software hierarchical abstraction decoupling, adapts to controller hardware with different computing capabilities and storage capabilities, improves the generalization and platformization of software updates, and avoids an increase in hardware storage costs.
Smart Images

Figure CN118672618A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle software technology, and in particular to a whole vehicle controller updating method, a whole vehicle controller updating system, a vehicle and a storage medium. Background Art
[0002] With the development of science and technology, the technology of the automotive industry is becoming more and more advanced. Driven by the electrification, intelligent networking, EEA (electrical and electronic architecture) transformation and integration of the automotive industry, the electronic and electrical systems of fuel vehicles and new energy vehicles are changing rapidly. Software-defined vehicles and intelligence have become the strategic direction of the development of the automotive industry. The automotive electronic and electrical architecture is changing from the traditional distributed EE (electrical and electronic) architecture to the domain-centralized EE architecture. In this architecture, a single master node is often used to obtain the upgrade package from the cloud first, and then the single master node installs and upgrades the lower layer. The OTA (over-the-air download) upgrade package is huge, and it is impossible to upgrade the on-chip associated parts of the underlying controller; it can be seen that the current electronic architecture update solution cannot fully update the controller of the entire vehicle. Summary of the invention
[0003] One of the purposes of the present invention is to provide a vehicle controller update method to solve the problem in the prior art that the controller of the entire vehicle cannot be fully updated; the second purpose is to provide a vehicle controller update system; the third purpose is to provide a vehicle; and the fourth purpose is to provide a computer-readable storage medium.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0005] A vehicle controller update method is applied to a master node system-on-chip, wherein the master node system-on-chip is connected to an electronic control unit and a domain controller through a sub-node system-on-chip, the domain controller is connected to a microcontroller unit, and the master node system-on-chip and the sub-node system-on-chip are connected to the cloud. The method comprises:
[0006] In response to triggering of the upgrade task, obtaining a software data package from the cloud;
[0007] Distributing the software data package to the child node on-chip system;
[0008] In response to the triggering of preset installation conditions, the sub-node on-chip system is controlled to flash the electronic control unit and / or the domain controller based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0009] Optionally, the method further comprises:
[0010] Receiving version information of the object to be flashed collected by the child node on-chip system; the version information of the object to be flashed includes version information of at least one of the electronic control unit, the domain controller and the micro control unit;
[0011] Feedback the version information of the flashed object to the cloud.
[0012] Optionally, the method further comprises:
[0013] In response to receiving the installation result information fed back by the child node system-on-chip, detecting the connectivity status with the child node system-on-chip, the electronic control unit and the domain controller;
[0014] In response to the connection state being a normal state, collecting version information of the electronic control unit and the domain controller; determining that the update is completed according to the version information;
[0015] In response to the connection state being an abnormal state, the child node on-chip system is controlled to perform version rollback on the electronic control unit and the domain controller.
[0016] Optionally, the software data includes a rollback package, and the step of controlling the child node system on chip to perform version rollback on the electronic control unit and the domain controller includes:
[0017] A rollback instruction is sent to the child node system on chip, and the child node system on chip is used to perform a version rollback on the electronic control unit and / or the domain controller based on the rollback package in response to receiving the rollback instruction.
[0018] Optionally, the software data includes an installation package, and the step of controlling the child node system on chip to flash the electronic control unit and / or the domain controller based on the software data package includes:
[0019] A flashing instruction is sent to the child node system on chip, and the child node system on chip is used to flash the electronic control unit and / or the domain controller based on the installation package in response to receiving the flashing instruction.
[0020] Optionally, the sub-node on-chip system is connected to the electronic control unit and the domain controller through a preset flash interface based on a first private protocol; the sub-node on-chip system is used to send the software data packet to the electronic control unit and / or the domain controller through the preset flash interface using the first private protocol.
[0021] Optionally, the domain controller and the micro control unit are connected based on a second private protocol, and the domain controller is used to send an erase software data packet storage sector instruction to the micro control unit after the update is completed; after the micro control unit completes sector erasure, the software data packet is sent to the micro control unit, and the micro control unit is flashed based on the software data packet; the micro control unit is used to receive the erase software data packet storage sector instruction, and perform sector erasure according to the erase software data packet storage sector instruction; and install the software data packet.
[0022] Optionally, the micro control unit is further used to feed back the sector erasing result to the domain controller; the domain controller is further used to send the erase software data packet storage sector instruction again in response to the sector erasing result being an erasing failure.
[0023] A vehicle controller update method is applied to a sub-node system-on-chip, wherein the sub-node system-on-chip is connected to an electronic control unit, a domain controller, and a master node system-on-chip, wherein the domain controller is connected to a microcontroller unit, and the master node system-on-chip and the sub-node system-on-chip are connected to the cloud. The master node system-on-chip is used to obtain a software data package from the cloud in response to the triggering of an upgrade task, distribute the software data package to the sub-node system-on-chip, and issue a flashing instruction in response to the triggering of a preset installation condition. The method comprises:
[0024] Obtaining the software data package;
[0025] distributing the software data package to the electronic control unit and the domain controller;
[0026] In response to receiving the flashing instruction, the electronic control unit and / or the domain controller are flashed based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0027] A vehicle controller update system, the system comprising: a master node system-on-chip, the master node system-on-chip is connected to an electronic control unit and a domain controller through a sub-node system-on-chip, the domain controller is connected to a micro control unit, the master node system-on-chip and the sub-node system-on-chip are connected to the cloud,
[0028] The master node system-on-chip is used to obtain a software data package from the cloud in response to a trigger of an upgrade task; distribute the software data package to the child node system-on-chip; and control the child node system-on-chip to flash the electronic control unit and / or the domain controller based on the software data package in response to a trigger of a preset installation condition;
[0029] The domain controller is used to flash the micro control unit based on the software data packet.
[0030] A vehicle comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the vehicle controller update method as described above when executed by the processor.
[0031] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the vehicle controller updating method described above are implemented.
[0032] Beneficial effects of the present invention:
[0033] (1) The embodiment of the present invention controls the sub-node system-on-chip to flash the electronic control unit and / or the domain controller based on the software data packet. The domain controller is used to flash the micro control unit based on the software data packet. Since the main node system-on-chip is connected to the electronic control unit and the domain controller through the sub-node system-on-chip, the sub-node system-on-chip upgrades and updates the electronic control unit and the electronic domain controller based on the control of the node system-on-chip. The electronic domain controller can upgrade the micro control unit connected to it, thereby performing a global upgrade of the software of the entire vehicle, thereby improving the upgrade scope of the entire vehicle.
[0034] (2) In the embodiment of the present invention, the software of the whole vehicle is layered and abstracted and decoupled, which is not limited to the architecture setting in the original vehicle. It can be adapted to upgrade the controller hardware with different computing power and storage capacity on the whole vehicle, and has strong versatility on different electronic and electrical platforms, thereby improving the degree of versatility and platformization of the software update process.
[0035] (3) Software data packets of different SoCs can be directly deployed in the storage space of the corresponding SoCs without occupying the storage resources of the master node SoC. This allows the huge data packets for vehicle upgrades to be decomposed, eliminating the need to increase hardware storage costs to accommodate increasingly larger upgrade packages, thereby improving vehicle upgrade redundancy. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A flowchart of a vehicle controller updating method embodiment of the present invention;
[0037] Figure 2 A schematic diagram of a vehicle architecture of an embodiment of a vehicle controller updating method of the present invention;
[0038] Figure 3 It is a schematic diagram of the connection of the sub-node system-on-chip of the present invention;
[0039] Figure 4 A schematic diagram of the interaction between the domain controller and the micro control unit of the present invention;
[0040] Figure 5 A hardware schematic diagram of an example of a vehicle controller update method of the present invention;
[0041] Figure 6 A flowchart of an example of a vehicle controller update method of the present invention;
[0042] Figure 7 A flowchart of another embodiment of a vehicle controller updating method of the present invention;
[0043] Figure 8 A structural block diagram of an embodiment of a vehicle controller update system of the present invention;
[0044] Fig. 9 is a structural block diagram of a vehicle embodiment of the present invention;
[0045] Fig.10 The present invention is a structural block diagram of a computer-readable storage medium embodiment. DETAILED DESCRIPTION
[0046] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0047] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0048] Reference Figure 1 , showing a flow chart of steps of an embodiment of a vehicle controller update method of the present invention. The vehicle controller update method is applied to a master node system-on-chip, the master node system-on-chip is connected to an electronic control unit and a domain controller through a sub-node system-on-chip, the domain controller is connected to a microcontroller unit, and the master node system-on-chip and the sub-node system-on-chip are connected to the cloud.
[0049] In the embodiment of the present invention, the software architecture of the whole vehicle can be decoupled by layered abstraction, which can be referred to Figure 2, including Master (Master SoC), which is integrated into the Master SoC and is responsible for controlling the vehicle download process as the main control module. Submaster (Sub-SoC): It is integrated into the SoC other than the Master SoC and executes various commands issued by the Master SoC. Flashing the state of the host computer, i.e. the Sub-SoC, when it controls the electronic control unit and the domain controller. The flashed object is the object being flashed.
[0050] The vehicle controller updating method may specifically include the following steps:
[0051] Step 101, in response to triggering of an upgrade task, obtaining a software data package from the cloud;
[0052] When the master node chip system detects that an upgrade task is triggered, it can be determined that the controller on the vehicle needs to be upgraded. The software data package can be obtained from the cloud. The software data package is a data set for upgrading or rolling back the controller on the vehicle. The software data package may include the software number, software version, software package size, update instructions, etc.
[0053] The upgrade task may be triggered by the cloud based on the software version. When the cloud determines that the version stored in it is higher than the version of the on-board controller, the upgrade task may be triggered.
[0054] In this regard, before the upgrade task is triggered, the version of the controller on the current vehicle can be determined. The version information of the object to be flashed collected by the child node on-chip system can be received; the version information of the object to be flashed includes the version information of at least one of the electronic control unit, the domain controller and the micro control unit; and the version information of the object to be flashed is fed back to the cloud.
[0055] The slave node chip system can collect the version information of at least one of the electronic control unit, the domain controller and the micro control unit as the version information of the object to be flashed, and feed the version information of the object to be flashed back to the master node chip system. The master node chip system feeds back the received version information of the object to be flashed to the cloud. The cloud determines whether the software of the controller on the vehicle needs to be updated based on the version information of the object to be flashed.
[0056] Step 102, distributing the software data package to the child node on-chip system;
[0057] The master node on-chip system can distribute software data packets to the child node on-chip systems, which store the software data packets, thereby alleviating the storage pressure of the master node on-chip system.
[0058] Step 103, in response to the triggering of the preset installation condition, control the sub-node on-chip system to flash the electronic control unit and / or the domain controller based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0059] When it is detected that the current state of the vehicle can trigger the preset installation condition, the software can be updated. In response to the triggering of the preset installation condition, the sub-node chip system can be controlled to flash the electronic control unit and / or the domain controller based on the software data package. After the domain controller is updated, the micro control unit is flashed based on the software data package to achieve the update of the entire domain controller on the vehicle.
[0060] Specifically, the software data includes an installation package, and the step of controlling the sub-node system-on-chip to flash the electronic control unit and / or the domain controller based on the software data packet includes: sending a flash instruction to the sub-node system-on-chip, and the sub-node system-on-chip is used to flash the electronic control unit and / or the domain controller based on the installation package in response to receiving the flash instruction.
[0061] In practical applications, software data includes installation packages, i.e., data of software updates. The master node chip system may send a flashing instruction to the slave node chip system, and the slave node chip system responds to receiving the flashing instruction, i.e., it can currently be updated based on the installation package, and the electronic control unit and / or the domain controller are flashed based on the data in the installation package, thereby updating the electronic control unit and / or the domain controller.
[0062] In an optional embodiment of the present invention, the installation status of each controller may also be confirmed to determine whether a version rollback is required to ensure that the controller on the vehicle can operate normally. This may include:
[0063] Step S1, in response to receiving the installation result information fed back by the child node system-on-chip, detecting the connectivity status with the child node system-on-chip, the electronic control unit and the domain controller;
[0064] After flashing, the sub-node SoC can feed back an installation result message to the master node SoC to notify the master node SoC that the current software package installation is complete. After receiving the installation result message fed back by the sub-node SoC, the master node SoC can detect the connectivity status with the sub-node SoC, the ECU and the domain controller. If the connectivity status is normal, the installation is correct; otherwise, if the connectivity status is abnormal, the installation fails.
[0065] Step S2, in response to the connection state being a normal state, collecting version information of the electronic control unit and the domain controller; and determining that the update is completed through the version information;
[0066] In response to the connection status being normal, that is, the current installation is correct, the version information of the electronic control unit and the domain controller can be collected; the update is completed through the version information, so as to update the software version of the current controller.
[0067] Step S3, in response to the connection state being an abnormal state, controlling the child node on-chip system to perform version rollback on the electronic control unit and the domain controller.
[0068] In response to the abnormal connection state, that is, the current installation fails, the sub-node on-chip system is controlled to roll back the versions of the electronic control unit and the domain controller. The availability of the controller is ensured by the version rollback.
[0069] Specifically, the software data includes a rollback package, and the step of controlling the sub-node system-on-chip to perform version rollback on the electronic control unit and the domain controller includes: sending a rollback instruction to the sub-node system-on-chip, and the sub-node system-on-chip is used to respond to receiving the rollback instruction and perform version rollback on the electronic control unit and / or the domain controller based on the rollback package.
[0070] For data rollback, the master node system-on-chip can send a rollback instruction to the child node system-on-chip, and the child node system-on-chip responds to receiving the rollback instruction, that is, the child node system-on-chip can perform a version rollback on the electronic control unit and / or the domain controller; the electronic control unit and / or the domain controller can be rolled back based on the data instructions in the rollback package.
[0071] In an optional embodiment of the present invention, the sub-node on-chip system is connected to the electronic control unit and the domain controller through a preset flash interface based on a first private protocol; the sub-node on-chip system is used to send the software data packet to the electronic control unit and / or the domain controller through the preset flash interface using the first private protocol.
[0072] In an embodiment of the present invention, the sub-node chip system communicates with the electronic control unit and the domain controller based on a private protocol, namely, a first private protocol, and is connected based on a preset flash interface. The sub-node chip system communicates through the preset flash interface using the first private protocol, and sends the specific content in the software data package to the electronic control unit and / or the domain controller to configure the installation package in the electronic control unit and / or the domain controller.
[0073] In an optional embodiment of the present invention, the domain controller and the micro control unit are connected based on a second private protocol, and the domain controller is used to send an erase software data packet storage sector instruction to the micro control unit after the update is completed; after the micro control unit completes sector erasure, the software data packet is sent to the micro control unit, and the micro control unit is flashed based on the software data packet; the micro control unit is used to receive the erase software data packet storage sector instruction, and perform sector erasure according to the erase software data packet storage sector instruction; and install the software data packet.
[0074] The second private protocol and the first private protocol may be the same communication protocol or different, which is not limited in the embodiment of the present invention. Figure 3 The bus for the domain controller to communicate with the microcontroller unit is mainly based on LIN\CAN\UART\SPI. The connection between the domain controller and the microcontroller unit has the following strategy: the domain controller needs to uniformly package the upgrade programs and internal programs of the remaining peripherals. The domain controller stores the peripheral package in a fixed Flash, and then uses a private protocol to communicate with the microcontroller unit. Each upgrade will change the minor version number and major version number that need to be upgraded, but the upgrade is required after the version is judged. After the upgrade is completed, the area is cut and the hanging code is upgraded at the same time. The upgrade of the microcontroller unit is directly transferred from the flash to the corresponding peripheral memory by the domain controller through DMA. If the microcontroller unit fails to upgrade, the domain controller will recognize it and notify the master node chip system through the DDS service. The rollback strategy is determined by the master node chip system.
[0075] Furthermore, it can be determined whether the storage sector needs to be further erased based on the erase result. The micro control unit is also used to feed back the sector erase result to the domain controller; the domain controller is also used to send the erase software data packet storage sector instruction again in response to the sector erase result being an erase failure.
[0076] For example, see Figure 4 , 1. Confirmation and session establishment before upgrade
[0077] 1) The domain controller sends a command to obtain the version information of the attached peripherals;
[0078] 2) Verify the corresponding peripheral upgrade package version information distributed by the Master and stored in the domain controller FLASH. After the verification is correct, start the upgrade process;
[0079] 3) Restart the peripheral chip to put the peripheral into Boot mode;
[0080] 4) Based on different buses and protocols for communication between the peripheral device and the domain controller, the domain controller sends a communication session establishment instruction to the peripheral device;
[0081] 5) After the peripheral device responds, the session connection is completed and the next step is entered;
[0082] 2. Erase the storage sector of the peripheral chip upgrade
[0083] 1) The domain controller sends a command to erase the storage sector of the external software package;
[0084] 2) The peripheral executes the erase and replies with an ACK response; (Some devices require multiple erase operations for page erase)
[0085] 3) The domain controller sends a command to obtain the current peripheral erasure completion status;
[0086] 4) The peripheral chip attached to the device responds to the current status of whether the erasure is completed or not;
[0087] 5) The domain controller determines whether to continue the erasure process based on the erasure status of the peripheral device;
[0088] 3. Data transmission
[0089] 1) The domain controller sends the transmission data address segment and data packet size to the subordinate peripherals;
[0090] 2) After the peripheral device responds with ACK, the domain controller sends a command to obtain the current boot status of the peripheral device;
[0091] 3) The peripheral ACK responds to the current boot status. If the correct boot state is entered, data transmission can begin;
[0092] 4) The domain controller sends a data packet transmission instruction, and the peripheral enters the boot data transmission state after receiving it.
[0093] 5) Based on each bus protocol (UART\SPI\CAN\LIN), the peripheral starts to receive data, and the domain controller starts data transmission. For some peripherals, the domain controller can directly transfer data from the domain controller flash to the peripheral memory area through DMA;
[0094] 6) After the transmission is completed, the domain controller will send a command to obtain the current peripheral boot status;
[0095] 7) After the peripheral device responds, if the data transmission is not completed, jump to step 4 and continue data transmission.
[0096] 8) The domain controller issues a command to the peripheral to exit the boot and complete the flashing. The domain controller restarts the peripheral chip. After the restart, the peripheral enters the APP, and the entire peripheral upgrade process is completed.
[0097] In order to implement the embodiment of the present invention, for example, first Figure 5The hardware architecture of the vehicle is such that the Master module is responsible for checking the vehicle software version information, obtaining upgrade tasks, allocating download tasks, and controlling the vehicle upgrade process.
[0098] The SubMaster module is responsible for collecting software version information, downloading software packages, and executing upgrade processes for the upgrade objects it manages.
[0099] The flashing host computer module is responsible for executing the FBL flashing upgrade of the subordinate ECUs and domain controllers' peripherals.
[0100] Data storage is responsible for the management of OTA partitions and upgrade packages, including upgrade package storage, verification, upgrade package marking, deletion, etc., as well as important information records such as logs and data generated during the upgrade process.
[0101] OS intelligent system upgrade service: responsible for upgrading the sub-modules of the system object's internal OS and system object control within the SOC.
[0102] The whole process is as follows: the master control node and the sub-control node SOC obtain all the upgrade installation packages of the whole vehicle (including all the upgrade data packages of the hardware that needs to be upgraded and flashed) from the cloud server through T-BOX; the master control node forwards the installation package to the domain controller and other ECUs that need to be upgraded through the DDS service to complete the deployment of the installation package; the master control node Master waits for the upgrade conditions to be met and then issues instructions to use each node to flash the host computer and the OS intelligent system upgrade service to let the subordinate controllers and sub-control nodes complete the installation in turn. At the hardware architecture level, the SOC end integrates OTA-controlled Master, SubMaster, flash host computer, data storage, intelligent system upgrade service and other modules. The upgrade of the SOC integrated with Master and SubMaster itself is carried out by the intelligent system upgrade service managed by its OS; the domain controller and other SOC-related ECUs are flashed and upgraded by their superior flash host computer through FBL (FlashBootLoader); the peripheral ECUs under the domain controller are flashed and upgraded by the domain controller through a private protocol.
[0103] The implementation process can refer to Figure 6 :
[0104] 1.1 Version information collection
[0105] (1) The Master triggers the version information collection process according to the vehicle status and sends a command to the Submaster. The Submaster calls the version information collection interface provided by the flashing host computer. The flashing host computer collects the version information of the subordinate flashed object modules according to the private protocol. After collecting the information, the flashing host computer feeds the information back to the Submaster, and the Submaster feeds the information back to the Master.
[0106] (2) The Master uploads the information to the cloud and waits for feedback from the cloud.
[0107] 1.2 Installation package deployment
[0108] (1) If the cloud reports an upgrade task, the Master downloads the corresponding software installation package and rollback package from the cloud through T-BOX and sends them to the Submaster. The Submaster transmits the installation package and rollback package to the flashing host computer.
[0109] 1.3 Install Updates
[0110] (1) After the software installation package is transferred, the Master determines that the installation conditions are met and sends an upgrade command.
[0111] (2) After receiving the command, Submaster calls the "flash object" interface provided by the flashing host computer, and the flashing host computer installs the flashed object through a private protocol.
[0112] (3) Because the running RAM and storage Flash of the firmware of the object being flashed are separate, in order to ensure that the network function is not affected during the flashing process, all flashing of the objects being flashed is for Flash, and RAM cannot be modified directly (except for the domain controller rollback logic). At the same time, the domain controller forwards the service call to make the Submaster call the "flash object flashing" interface, and the interface must also be called in order from far to near.
[0113] (4) During the flashing process, the Submaster will call the "Flashing Status of the Flashed Object" interface to query the status. After receiving the "Installation Successful" feedback from the flashing host computer, it will continue with the next installation task. Because the power supply of the flashed object is controlled by its associated MCU, the flashed object and its associated MCU cannot be included in the same upgrade task. During the flashing process, the parts that are not connected to the Submaster are flashed using the private protocol based on their respective communication buses.
[0114] (5) After all installation tasks are completed, Submaster calls "Reset / Restart" and then feedbacks the installation results to the Master.
[0115] 4.4 Installation result confirmation
[0116] (1) After all installation tasks are completed, the Master first confirms whether the network is normal and uses the PING command to confirm whether all flashing host computers are connected. If they are connected, execute step (2); if they are not connected, execute the PING command again. If the command fails to connect after 10 times, execute the "rollback installation process".
[0117] (2) After confirming that there are no network problems, the Master will collect the software version information again to confirm whether each module is installed correctly. If it is correct, the process ends; if it is incorrect, the "rollback installation process" is executed.
[0118] 4.5 Rollback Installation
[0119] (1) During the installation process, if the Submaster receives a "failed installation" response, it will report the result to the Master; or during the installation result confirmation phase, the Master confirms that the network cannot be connected; or the Master finds that the version information reported by the module is inconsistent with the target version information.
[0120] (2) The Master sends a rollback installation command through the CAN network. After receiving the command, the flashing host executes the "flash object flashing" function, and the rollback package is used at this time. In particular, because the domain controller has no partition backup function, when performing rollback flashing, the MCU needs to flash the RAM through SPI first, and then flash the Flash through Ethernet.
[0121] Reference Figure 7 , showing a flow chart of steps of another embodiment of a vehicle controller update method of the present invention. The vehicle controller update method is applied to a sub-node system-on-chip, the sub-node system-on-chip is connected to an electronic control unit, a domain controller, and a master node system-on-chip, the domain controller is connected to a microcontroller unit, the master node system-on-chip and the sub-node system-on-chip are connected to the cloud, the master node system-on-chip is used to respond to the triggering of an upgrade task, obtain a software data package from the cloud, distribute the software data package to the sub-node system-on-chip, and respond to the triggering of a preset installation condition to issue a flashing instruction.
[0122] The above steps may refer to the above embodiments, and the embodiments of the present invention do not specifically limit this.
[0123] The vehicle controller updating method may specifically include the following steps:
[0124] Step 701, obtaining the software data package;
[0125] In an embodiment of the present invention, the child node system on chip can obtain the software data package from the cloud or the master node system on chip.
[0126] Step 702, distributing the software data package to the electronic control unit and the domain controller;
[0127] The software data packets are then distributed to the electronic control unit and the domain controller, which store the corresponding software data packets, thereby reducing the storage pressure on the child node system-on-chip and the master node system-on-chip.
[0128] Step 703: In response to receiving the flashing instruction, the electronic control unit and / or the domain controller is flashed based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0129] Then, when the sub-node on-chip system receives the flash instruction, the electronic control unit and / or the domain controller need to be upgraded. In response to receiving the flash instruction, the electronic control unit and / or the domain controller can be flashed based on the software data packet. After the flash is completed, the domain controller further flashes the micro control unit based on the software data packet, and the micro control unit is also updated and upgraded, so as to achieve a full domain upgrade on the vehicle.
[0130] The embodiment of the present invention controls the sub-node chip system to flash the electronic control unit and / or the domain controller based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet; because the main node chip system is connected to the electronic control unit and the domain controller through the sub-node chip system, the sub-node chip system upgrades and updates the electronic control unit and the electronic domain controller based on the control of the node chip system, and the electronic domain controller can upgrade the micro control unit connected to it, thereby upgrading the software of the whole vehicle in the whole domain, and improving the upgrade range of the whole vehicle. The software layered abstract decoupling of the whole vehicle is not limited to the architecture setting in the original vehicle, and can be adapted to upgrade the controller hardware with different computing power and storage capacity on the whole vehicle. It has strong versatility on different electronic and electrical platforms, and improves the degree of versatility and platformization of the software update process. The software data packets of different chip systems can be directly deployed in the storage space of the corresponding chip system, without occupying the storage resources of the main node chip system, so that the huge data packets of the whole vehicle upgrade can be decomposed, and there is no need to increase the hardware storage cost to meet the increasingly large upgrade package, which improves the redundancy of the whole vehicle upgrade.
[0131] Reference Figure 8 , shows a structural block diagram of an embodiment of a vehicle controller update system of the present invention, the vehicle controller update system comprising:
[0132] The master node system-on-chip is connected to the electronic control unit and the domain controller through the sub-node system-on-chip. The domain controller is connected to a microcontroller unit. The master node system-on-chip and the sub-node system-on-chip are connected to the cloud.
[0133] The master node system-on-chip is used to obtain a software data package from the cloud in response to a trigger of an upgrade task; distribute the software data package to the child node system-on-chip; and control the child node system-on-chip to flash the electronic control unit and / or the domain controller based on the software data package in response to a trigger of a preset installation condition;
[0134] The domain controller is used to flash the micro control unit based on the software data packet.
[0135] In an optional embodiment of the present invention, the master node on-chip system is also used to receive version information of the object to be flashed collected by the child node on-chip system; the version information of the object to be flashed includes version information of at least one of the electronic control unit, the domain controller and the micro control unit; and the version information of the object to be flashed is fed back to the cloud.
[0136] In an optional embodiment of the present invention, the master node system-on-chip is also used to detect the connectivity status with the child node system-on-chip, the electronic control unit and the domain controller in response to receiving the installation result information fed back by the child node system-on-chip; in response to the connectivity status being a normal state, collect version information of the electronic control unit and the domain controller; determine that the update is completed through the version information; in response to the connectivity status being an abnormal state, control the child node system-on-chip to perform a version rollback on the electronic control unit and the domain controller.
[0137] In an optional embodiment of the present invention, the software data includes a rollback package, the master node system on chip is used to send a rollback instruction to the child node system on chip, and the child node system on chip is used to perform a version rollback on the electronic control unit and / or the domain controller based on the rollback package in response to receiving the rollback instruction.
[0138] In an optional embodiment of the present invention, the software data includes an installation package, the child-node system-on-chip is used to send a flash instruction to the child-node system-on-chip, and the child-node system-on-chip is used to flash the electronic control unit and / or the domain controller based on the installation package in response to receiving the flash instruction.
[0139] In an optional embodiment of the present invention, the sub-node on-chip system is connected to the electronic control unit and the domain controller through a preset flash interface based on a first private protocol; the sub-node on-chip system is used to send the software data packet to the electronic control unit and / or the domain controller through the preset flash interface using the first private protocol.
[0140] In an optional embodiment of the present invention, the domain controller and the micro control unit are connected based on a second private protocol, and the domain controller is used to send an erase software data packet storage sector instruction to the micro control unit after the update is completed; after the micro control unit completes sector erasure, the software data packet is sent to the micro control unit, and the micro control unit is flashed based on the software data packet; the micro control unit is used to receive the erase software data packet storage sector instruction, and perform sector erasure according to the erase software data packet storage sector instruction; and install the software data packet.
[0141] In an optional embodiment of the present invention, the micro control unit is further used to feed back the sector erasing result to the domain controller; the domain controller is further used to send the erase software data packet storage sector instruction again in response to the sector erasing result being an erasing failure.
[0142] Reference Fig. 9 , an embodiment of the present invention further provides a vehicle, comprising:
[0143] A processor 901 and a storage medium 902, wherein the storage medium 902 stores a computer program executable by the processor 901. When the vehicle is running, the processor 901 executes the computer program to perform the vehicle controller update method as described in any one of the embodiments of the present invention.
[0144] A vehicle controller update method is applied to a master node system-on-chip, wherein the master node system-on-chip is connected to an electronic control unit and a domain controller through a sub-node system-on-chip, the domain controller is connected to a microcontroller unit, and the master node system-on-chip and the sub-node system-on-chip are connected to the cloud. The method comprises:
[0145] In response to triggering of the upgrade task, obtaining a software data package from the cloud;
[0146] Distributing the software data package to the child node on-chip system;
[0147] In response to the triggering of preset installation conditions, the sub-node on-chip system is controlled to flash the electronic control unit and / or the domain controller based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0148] Optionally, the method further comprises:
[0149] Receiving version information of the object to be flashed collected by the child node on-chip system; the version information of the object to be flashed includes version information of at least one of the electronic control unit, the domain controller and the micro control unit;
[0150] Feedback the version information of the flashed object to the cloud.
[0151] Optionally, the method further comprises:
[0152] In response to receiving the installation result information fed back by the child node system-on-chip, detecting the connectivity status with the child node system-on-chip, the electronic control unit and the domain controller;
[0153] In response to the connection state being a normal state, collecting version information of the electronic control unit and the domain controller; determining that the update is completed according to the version information;
[0154] In response to the connection state being an abnormal state, the child node on-chip system is controlled to perform version rollback on the electronic control unit and the domain controller.
[0155] Optionally, the software data includes a rollback package, and the step of controlling the child node system on chip to perform version rollback on the electronic control unit and the domain controller includes:
[0156] A rollback instruction is sent to the child node system on chip, and the child node system on chip is used to perform a version rollback on the electronic control unit and / or the domain controller based on the rollback package in response to receiving the rollback instruction.
[0157] Optionally, the software data includes an installation package, and the step of controlling the child node system on chip to flash the electronic control unit and / or the domain controller based on the software data package includes:
[0158] A flashing instruction is sent to the child node system on chip, and the child node system on chip is used to flash the electronic control unit and / or the domain controller based on the installation package in response to receiving the flashing instruction.
[0159] Optionally, the sub-node on-chip system is connected to the electronic control unit and the domain controller through a preset flash interface based on a first private protocol; the sub-node on-chip system is used to send the software data packet to the electronic control unit and / or the domain controller through the preset flash interface using the first private protocol.
[0160] Optionally, the domain controller and the micro control unit are connected based on a second private protocol, and the domain controller is used to send an erase software data packet storage sector instruction to the micro control unit after the update is completed; after the micro control unit completes sector erasure, the software data packet is sent to the micro control unit, and the micro control unit is flashed based on the software data packet; the micro control unit is used to receive the erase software data packet storage sector instruction, and perform sector erasure according to the erase software data packet storage sector instruction; and install the software data packet.
[0161] Optionally, the micro control unit is further used to feed back the sector erasing result to the domain controller; the domain controller is further used to send the erase software data packet storage sector instruction again in response to the sector erasing result being an erasing failure.
[0162] A vehicle controller update method is applied to a sub-node system-on-chip, wherein the sub-node system-on-chip is connected to an electronic control unit, a domain controller, and a master node system-on-chip, wherein the domain controller is connected to a microcontroller unit, and the master node system-on-chip and the sub-node system-on-chip are connected to the cloud. The master node system-on-chip is used to obtain a software data package from the cloud in response to the triggering of an upgrade task, distribute the software data package to the sub-node system-on-chip, and issue a flashing instruction in response to the triggering of a preset installation condition. The method comprises:
[0163] Obtaining the software data package;
[0164] distributing the software data package to the electronic control unit and the domain controller;
[0165] In response to receiving the flashing instruction, the electronic control unit and / or the domain controller are flashed based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0166] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.
[0167] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0168] Reference Fig.10The embodiment of the present invention further provides a computer-readable storage medium 1001, on which a computer program is stored. When the computer program is run by a processor, the vehicle controller updating method as described in any one of the embodiments of the present invention is executed.
[0169] A vehicle controller update method is applied to a master node system-on-chip, wherein the master node system-on-chip is connected to an electronic control unit and a domain controller through a sub-node system-on-chip, the domain controller is connected to a microcontroller unit, and the master node system-on-chip and the sub-node system-on-chip are connected to the cloud. The method comprises:
[0170] In response to triggering of the upgrade task, obtaining a software data package from the cloud;
[0171] Distributing the software data package to the child node on-chip system;
[0172] In response to the triggering of preset installation conditions, the sub-node on-chip system is controlled to flash the electronic control unit and / or the domain controller based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0173] Optionally, the method further comprises:
[0174] Receiving version information of the object to be flashed collected by the child node on-chip system; the version information of the object to be flashed includes version information of at least one of the electronic control unit, the domain controller and the micro control unit;
[0175] Feedback the version information of the flashed object to the cloud.
[0176] Optionally, the method further comprises:
[0177] In response to receiving the installation result information fed back by the child node system-on-chip, detecting the connectivity status with the child node system-on-chip, the electronic control unit and the domain controller;
[0178] In response to the connection state being a normal state, collecting version information of the electronic control unit and the domain controller; determining that the update is completed according to the version information;
[0179] In response to the connection state being an abnormal state, the child node on-chip system is controlled to perform version rollback on the electronic control unit and the domain controller.
[0180] Optionally, the software data includes a rollback package, and the step of controlling the child node system on chip to perform version rollback on the electronic control unit and the domain controller includes:
[0181] A rollback instruction is sent to the child node system on chip, and the child node system on chip is used to perform a version rollback on the electronic control unit and / or the domain controller based on the rollback package in response to receiving the rollback instruction.
[0182] Optionally, the software data includes an installation package, and the step of controlling the child node system on chip to flash the electronic control unit and / or the domain controller based on the software data package includes:
[0183] A flashing instruction is sent to the child node system on chip, and the child node system on chip is used to flash the electronic control unit and / or the domain controller based on the installation package in response to receiving the flashing instruction.
[0184] Optionally, the sub-node on-chip system is connected to the electronic control unit and the domain controller through a preset flash interface based on a first private protocol; the sub-node on-chip system is used to send the software data packet to the electronic control unit and / or the domain controller through the preset flash interface using the first private protocol.
[0185] Optionally, the domain controller and the micro control unit are connected based on a second private protocol, and the domain controller is used to send an erase software data packet storage sector instruction to the micro control unit after the update is completed; after the micro control unit completes sector erasure, the software data packet is sent to the micro control unit, and the micro control unit is flashed based on the software data packet; the micro control unit is used to receive the erase software data packet storage sector instruction, and perform sector erasure according to the erase software data packet storage sector instruction; and install the software data packet.
[0186] Optionally, the micro control unit is further used to feed back the sector erasing result to the domain controller; the domain controller is further used to send the erase software data packet storage sector instruction again in response to the sector erasing result being an erasing failure.
[0187] A vehicle controller update method is applied to a sub-node system-on-chip, wherein the sub-node system-on-chip is connected to an electronic control unit, a domain controller, and a master node system-on-chip, wherein the domain controller is connected to a microcontroller unit, and the master node system-on-chip and the sub-node system-on-chip are connected to the cloud. The master node system-on-chip is used to obtain a software data package from the cloud in response to the triggering of an upgrade task, distribute the software data package to the sub-node system-on-chip, and issue a flashing instruction in response to the triggering of a preset installation condition. The method comprises:
[0188] Obtaining the software data package;
[0189] distributing the software data package to the electronic control unit and the domain controller;
[0190] In response to receiving the flashing instruction, the electronic control unit and / or the domain controller are flashed based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
[0191] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0192] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0193] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0194] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0195] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0196] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A vehicle controller update method, characterized in that: Applied to a master node system-on-chip, the master node system-on-chip is connected to an electronic control unit and a domain controller through a sub-node system-on-chip, the domain controller is connected to a microcontroller unit, the master node system-on-chip and the sub-node system-on-chip are connected to the cloud, and the method includes: In response to triggering of the upgrade task, obtaining a software data package from the cloud; Distributing the software data package to the child node on-chip system; In response to the triggering of preset installation conditions, the sub-node on-chip system is controlled to flash the electronic control unit and / or the domain controller based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
2. The method according to claim 1, characterized in that: The method further comprises: Receiving version information of the object to be flashed collected by the child node on-chip system; the version information of the object to be flashed includes version information of at least one of the electronic control unit, the domain controller and the micro control unit; Feedback the version information of the flashed object to the cloud.
3. The method according to claim 1, characterized in that The method further comprises: In response to receiving the installation result information fed back by the child node system-on-chip, detecting the connectivity status with the child node system-on-chip, the electronic control unit and the domain controller; In response to the connection state being a normal state, collecting version information of the electronic control unit and the domain controller; and determining that the update is completed according to the version information; In response to the connection state being an abnormal state, the child node on-chip system is controlled to perform version rollback on the electronic control unit and the domain controller.
4. The method according to claim 3, characterized in that The software data includes a rollback package, and the step of controlling the child node system-on-chip to perform version rollback on the electronic control unit and the domain controller includes: A rollback instruction is sent to the child node system on chip, and the child node system on chip is used to perform a version rollback on the electronic control unit and / or the domain controller based on the rollback package in response to receiving the rollback instruction.
5. The method according to claim 1, characterized in that The software data includes an installation package, and the step of controlling the child node system-on-chip and flashing the electronic control unit and / or the domain controller based on the software data package includes: A flashing instruction is sent to the child node system on chip, and the child node system on chip is used to flash the electronic control unit and / or the domain controller based on the installation package in response to receiving the flashing instruction.
6. The method according to claim 1, characterized in that The sub-node on-chip system is connected to the electronic control unit and the domain controller through a preset flash interface based on a first private protocol; the sub-node on-chip system is used to send the software data packet to the electronic control unit and / or the domain controller through the preset flash interface using the first private protocol.
7. The method according to claim 1, characterized in that The domain controller and the micro control unit are connected based on a second private protocol. The domain controller is used to send an instruction to erase the software data packet storage sector to the micro control unit after the update is completed; after the micro control unit completes the sector erasure, the domain controller sends the software data packet to the micro control unit, and flashes the micro control unit based on the software data packet; the micro control unit is used to receive the instruction to erase the software data packet storage sector, and perform sector erasure according to the instruction to erase the software data packet storage sector; and install the software data packet.
8. The method according to claim 7, characterized in that The micro control unit is also used to feed back the sector erasing result to the domain controller; the domain controller is also used to send the instruction to erase the software data package storage sector again in response to the sector erasing result being an erasing failure.
9. A vehicle controller update method, characterized in that: Applied to a sub-node system-on-chip, the sub-node system-on-chip is connected to an electronic control unit, a domain controller, and a master node system-on-chip, the domain controller is connected to a microcontroller unit, the master node system-on-chip and the sub-node system-on-chip are connected to the cloud, the master node system-on-chip is used to obtain a software data package from the cloud in response to the triggering of an upgrade task, distribute the software data package to the sub-node system-on-chip, and issue a flashing instruction in response to the triggering of a preset installation condition; the method includes: Obtaining the software data package; distributing the software data package to the electronic control unit and the domain controller; In response to receiving the flashing instruction, the electronic control unit and / or the domain controller are flashed based on the software data packet, and the domain controller is used to flash the micro control unit based on the software data packet.
10. A vehicle controller update system, characterized in that: The system includes: a master node system-on-chip, the master node system-on-chip is connected to an electronic control unit and a domain controller through a sub-node system-on-chip, the domain controller is connected to a microcontroller unit, the master node system-on-chip and the sub-node system-on-chip are connected to the cloud, The master node system-on-chip is used to obtain a software data package from the cloud in response to a trigger of an upgrade task; distribute the software data package to the child node system-on-chip; and control the child node system-on-chip to flash the electronic control unit and / or the domain controller based on the software data package in response to a trigger of a preset installation condition; The domain controller is used to flash the micro control unit based on the software data packet.
11. A vehicle, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the vehicle controller updating method as claimed in any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the vehicle controller updating method as described in any one of claims 1 to 9 are implemented.
