Vehicle-mounted controller updating method and device, equipment, storage medium and program product
By obtaining the on-board controller update software package from the cloud and adjusting the storage area according to the storage area update information, the problem of the storage area update in the existing technology needs to be returned to the factory, and the update efficiency and user experience are improved.
Patent Information
- Application Number
- CN202411242481.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the storage area update of the vehicle controller needs to be processed back to the factory, which is inefficient and cumbersome, affecting the normal use of users.
By obtaining the software package to be updated by the on-board controller from the cloud, if it contains storage area update information, the current storage area will be reset based on this information, the number and size of the storage area will be adjusted, and the software write operation will be performed to complete the update.
It realizes the direct reset of the size and quantity of the storage area without returning to the factory, which improves the update efficiency, does not affect the normal use of users, and improves the user experience.
Smart Images

Figure CN119201167A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle-mounted controllers, and in particular to a vehicle-mounted controller updating method, device, equipment, storage medium and program product. Background Art
[0002] As cars become smarter and more connected, the functional requirements for on-board controllers are also increasing. Currently, most cars support OTA (Over the air, remote software download for vehicles) services, which can be used to upgrade the software of on-board controllers and download the software upgrade package of on-board controllers to update the software of on-board controllers.
[0003] However, the above method can only update the software part of the vehicle controller. When updating the storage area of the vehicle controller, the vehicle controller needs to be returned to the factory for updating the storage area, which is inefficient and the return process is cumbersome, affecting the normal use of users. Summary of the invention
[0004] The embodiments of the present application provide a vehicle controller update method, device, equipment, storage medium and program product, which are used to directly reset the size and number of storage areas, effectively improve the update efficiency, and will not affect the normal use of users.
[0005] In a first aspect, an embodiment of the present application provides a method for updating a vehicle controller, comprising:
[0006] Obtain the software package to be updated for the vehicle controller from the cloud;
[0007] If the software package includes storage area update information, the current storage area of the vehicle controller is reset according to the storage area update information to obtain a target storage area; the reset process includes resetting the number and / or size of the storage area;
[0008] Perform software flashing operation on the target storage area to complete the update of the vehicle controller.
[0009] In a possible implementation manner, resetting the current storage area of the vehicle controller according to the storage area update information includes:
[0010] determining a valid controller update system based on the tag information;
[0011] By running the effective controller update system, the current storage area of the vehicle controller is reset according to the storage area update information.
[0012] In a possible implementation, the storage area update information includes: the number and size of target storage areas;
[0013] The resetting of the current storage area of the vehicle controller according to the storage area update information by running the effective controller update system includes:
[0014] The current storage area is formatted by running the update program in the effective controller update system to obtain a formatted storage area, and the formatted storage area is reset based on the number and size of the target storage area.
[0015] In a possible implementation, the performing a software flash operation on the target storage area includes:
[0016] The software update information corresponding to each target storage area in the storage area update information is obtained, and the corresponding software update information is written into the corresponding target storage area.
[0017] In a possible implementation, it further includes:
[0018] If the software package includes controller update system update information, the controller update system is updated based on the controller update system update information.
[0019] In a possible implementation manner, the vehicle-mounted controller is provided with a first controller update system and a second controller update system, and the updating of the controller update system based on the update information of the controller update system includes:
[0020] If the started valid controller update system is the first controller update system, the update program in the first controller update system is used to update the second controller update system based on the controller update system update information, and the second controller update system is marked as a valid system after the update is successful;
[0021] If the started valid controller update system is the second controller update system, the update program in the second controller update system is used to update the first controller update system based on the controller update system update information, and the first controller update system is marked as a valid system after the update is successful.
[0022] In a possible implementation, it further includes:
[0023] Reporting the device information of the vehicle controller to the cloud, so that the cloud can verify the vehicle controller according to the device information, and after the verification is passed, sending the new version software package notification information to the vehicle controller;
[0024] Receiving notification information of the new version software package, generating update prompt information to prompt the user, so as to obtain confirmation information from the user;
[0025] The updating condition of the vehicle controller is determined according to the confirmation information, so as to download the software package to be updated of the vehicle controller from the cloud when the updating condition is met.
[0026] In a second aspect, an embodiment of the present application provides a vehicle controller updating device, comprising:
[0027] An acquisition unit, used for acquiring a software package to be updated of the vehicle controller from the cloud;
[0028] a processing unit, configured to, if the software package includes storage area update information, reset the current storage area of the vehicle controller according to the storage area update information to obtain a target storage area; the reset process includes resetting the number and / or size of the storage area;
[0029] The processing unit is also used to perform software flashing operations on the target storage area to complete the update of the vehicle controller.
[0030] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0031] The memory stores computer-executable instructions;
[0032] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0034] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0035] The vehicle controller update method, device, equipment, storage medium and program product provided in the embodiments of the present application obtain the software package to be updated of the vehicle controller from the cloud. If the software package contains storage area update information, the current storage area of the vehicle controller is reset according to the information. The number and / or size of the storage area are reset, and a write operation is performed on the obtained target storage area, thereby completing the update of the vehicle controller. The size and number of the storage area can be directly reset without returning the vehicle controller to the factory, which effectively improves the update efficiency and does not affect the normal use of the user, thereby improving the user experience. The size and number of the storage area can be directly reset, which effectively improves the update efficiency and does not affect the normal use of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0037] Figure 1 A schematic diagram of a scenario of a vehicle controller update method provided in this application;
[0038] Figure 2 A flowchart of a vehicle controller update method provided by this application;
[0039] Figure 3 A flowchart of another vehicle controller update method provided by this application;
[0040] Figure 4 A schematic diagram of the structure of a vehicle controller update device provided by the present application;
[0041] Figure 5 A schematic diagram of the structure of the electronic device provided in this application.
[0042] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0044] Figure 1A schematic diagram of a scenario of a vehicle controller update method provided in this application, such as Figure 1 As shown, the specific application scenarios of the present application include: a cloud 101 and an on-board gateway controller 102 arranged in a vehicle, the cloud 101 is communicated with the on-board gateway controller 102 in the vehicle, the on-board gateway controller 102 downloads the software package to be updated of the on-board controller from the cloud 101, and the on-board gateway controller 102 parses the software package. If the software package contains storage area update information, the on-board gateway controller 102 resets the current storage area of the on-board controller according to the storage area update information to obtain a target storage area; the reset process includes resetting the number and / or size of the storage area; the on-board gateway controller 102 performs a software flash operation on the target storage area to complete the update of the on-board controller.
[0045] In combination with the above scenario, it can be seen that in the prior art, when updating the storage area of the vehicle controller, the vehicle controller needs to be returned to the factory for updating the storage area, which is inefficient and the return process is cumbersome, affecting the user's normal use of the technical problem.
[0046] The vehicle controller update method provided in this application can directly reset the size and number of storage areas without returning the vehicle controller to the factory, effectively improving the update efficiency, and will not affect the user's normal use, thereby improving the user experience.
[0047] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0048] Figure 2 The present invention provides a flow chart of a vehicle controller update method, which is applied to electronic devices. The electronic devices may be digital computers in various forms, such as cellular phones, smart phones, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Figure 2 As shown, the method includes:
[0049] Step 201, obtaining a software package to be updated for the vehicle controller from the cloud.
[0050] The electronic device may be a vehicle-mounted controller device, specifically, the vehicle-mounted controller device includes a vehicle-mounted gateway controller. The vehicle-mounted controller device obtains the software package to be updated of the vehicle-mounted controller from the cloud, wherein the software package includes storage area update information and / or software update information and / or system update information, wherein the storage area update information is used to reset the current storage area of the vehicle-mounted controller and perform software refresh on each storage area; the software update information is used to perform software refresh on the current storage area of the vehicle-mounted controller; the system update information is used to update the controller update system, and the current storage area of the vehicle-mounted controller is reset using the controller update system.
[0051] Step 202, if the software package includes storage area update information, the current storage area of the vehicle controller is reset according to the storage area update information to obtain a target storage area; the reset process includes resetting the number and / or size of the storage area.
[0052] In this embodiment, the software package is parsed and processed. If the software package contains storage area update information, the current storage area of the vehicle controller is reset according to the storage area update information to obtain the target storage area, wherein the reset process includes resetting the quantity and / or size of the current storage area, for example, the resetting of the quantity is divided into increasing the number of storage areas or decreasing the number of storage areas, and the resetting of the size is to change the size of the storage space of the storage area.
[0053] Step 203: Perform a software flash operation on the target storage area.
[0054] In this embodiment, a software flashing operation is performed on the target storage area to flash the software to the target storage area to complete the update of the vehicle control.
[0055] In an embodiment of the present application, the software package to be updated of the vehicle-mounted controller is obtained from the cloud. If the software package contains storage area update information, the current storage area of the vehicle-mounted controller is reset according to the information. The number and / or size of the storage area are reset, and a write operation is performed on the obtained target storage area, thereby completing the update of the vehicle-mounted controller. The size and number of the storage area can be reset directly without returning the vehicle-mounted controller to the factory, thereby effectively improving the update efficiency and not affecting the normal use of the user, thereby improving the user experience.
[0056] Based on the previous embodiment, another vehicle controller updating method of the present application is proposed. Figure 3 A flowchart of another vehicle controller update method provided by the present application is provided, and the method is applied to electronic devices, such as Figure 3 As shown, the method includes:
[0057] Step 301 , reporting the device information of the vehicle controller to the cloud, so that the cloud can verify the vehicle controller according to the device information, and after the verification is passed, sending the notification information of the new version software package to the vehicle controller.
[0058] In this embodiment, the cloud communicates with the vehicle's onboard controller and establishes a connection with the cloud via MQTT, which is an instant messaging protocol that connects the cloud and the outside world. The onboard controller reports device information, which includes the software version number of the controller.
[0059] Specifically, after receiving the device information, the cloud first verifies the vehicle controller to verify its legitimacy. If the verification passes, it determines whether there is a new version of the software package based on the device information. If there is a new version of the software package, the new version of the software package notification information is sent to the vehicle controller.
[0060] Step 302: receiving notification information of a new version of the software package, generating update prompt information to prompt the user, and obtaining confirmation information from the user.
[0061] In this embodiment, a notification message of a new version of the software package is received, and an update prompt message is generated to prompt the user, and the user needs to confirm the prompt message. For example, the user selects an update time. If the vehicle is in motion, the update will affect the use of the vehicle and the user needs to confirm. The user's confirmation message is obtained; or, if the user does not select an update time, the update is performed the next time the vehicle is powered on.
[0062] Step 303 , determining the vehicle controller update condition according to the confirmation information, so as to download the software package to be updated of the vehicle controller from the cloud when the update condition is met.
[0063] In this embodiment, the update condition of the vehicle controller is determined based on the user confirmation information. If the system time is the update time, the update condition is met and the software package of the vehicle controller to be updated is downloaded from the cloud; or, if it is detected that the vehicle is powered on, the update condition is met and the software package of the vehicle controller to be updated is downloaded from the cloud.
[0064] Step 304: Obtain the software package to be updated for the vehicle controller from the cloud.
[0065] In this embodiment, step 304 has the same technical features as step 201 , and the specific description may refer to step 201 , which will not be repeated here.
[0066] Step 305: If the software package includes storage area update information, the current storage area of the vehicle controller is reset according to the storage area update information to obtain a target storage area; the reset process includes resetting the number and / or size of the storage area.
[0067] In this embodiment, step 305 has the same technical features as step 202. For a specific description, reference may be made to step 202, which will not be repeated here.
[0068] In a possible implementation, resetting the current storage area of the vehicle controller according to the storage area update information includes:
[0069] A valid controller update system is determined according to the tag information; and a current storage area of the vehicle controller is reset according to the storage area update information by running the valid controller update system.
[0070] Specifically, when the vehicle controller is running, it depends on the system it is equipped with. The operation of the system depends on system-related information. This information is stored in the storage area, so that when the storage area is reset, the system cannot be used. Therefore, a specific area is set in advance in the vehicle controller to store relevant information about the operation of the controller update system, and the storage area is reset by running the controller update system. If there are multiple specific areas, the relevant information in each specific area can support the operation of the respective controller update system. The valid controller update system is determined based on the tag information, and the current storage area update of the vehicle controller is reset based on the storage area update information by running the valid controller update system.
[0071] Optionally, the storage area update information includes: the number and size of the target storage area; by running a valid controller update system, resetting the current storage area of the vehicle controller according to the storage area update information, including:
[0072] The current storage area is formatted by running an update program in a valid controller update system to obtain a formatted storage area, and the formatted storage area is reset based on the number and size of the target storage area.
[0073] In this embodiment, an update program is pre-set in the controller update system, and the update program is a program for executing partition update tasks. The current partition is first erased, that is, the current storage area is formatted, and the current storage area does not include the above-mentioned specific area, so as to obtain a formatted storage area. By running the update program in the controller update system, the formatted storage area is reset based on the number and size of the target storage areas. For example, the current storage areas are 2, each with a size of 50G, and the number of target storage areas is 4, each with a size of 25G. The formatted storage area is reset using the update program to obtain 4 target storage areas, each with a size of 25G. The reset of the storage area of the vehicle controller is completed through the pre-set controller update system.
[0074] Step 306: Perform a software flash operation on the target storage area.
[0075] In this embodiment, step 306 has the same technical features as step 203 , and the specific description may refer to step 203 , which will not be repeated here.
[0076] In a possible implementation, performing a software flash operation on a target storage area includes:
[0077] The software update information corresponding to each target storage area in the storage area update information is obtained, and the corresponding software update information is written into the corresponding target storage area.
[0078] In this embodiment, after the reset process, a software flash operation is required, specifically, the software update information corresponding to each target storage area in the storage area update information is obtained, and the corresponding software update information is further written into the corresponding target storage area, thereby completing the update of the vehicle controller. After the update is completed, the update success information is reported to the cloud.
[0079] Optionally, the method further comprises:
[0080] If the software package includes controller update system update information, the controller update system is updated based on the controller update system update information.
[0081] In this embodiment, if the software package includes controller update system update information, it indicates that there may be some problems with the controller update system and an upgrade is required to repair the controller update system. The controller update system is updated based on the controller update system update information to repair the current problems.
[0082] Optionally, the vehicle controller sets a first controller update system and a second controller update system, and updates the controller update system based on the controller update system update information, including:
[0083] If the valid controller update system started is the first controller update system, the update program in the first controller update system is used to update the second controller update system based on the controller update system update information, and the second controller update system is marked as a valid system after the update is successful; if the valid controller update system started is the second controller update system, the update program in the second controller update system is used to update the first controller update system based on the controller update system update information, and the first controller update system is marked as a valid system after the update is successful.
[0084] In this embodiment, at least two controller update systems are included, a first controller update system and a second controller update system. The controller update systems are in a master-slave relationship with each other. Only one controller update system is started at the same time. If the valid controller update system in operation is the first controller update system, the first controller update system is used to update the second controller update system. Specifically, the update program in the first controller update system is used to update the second controller update system based on the controller update system update information, and the second controller update system is marked as a valid system after the update is successful. If the valid controller update system in operation is the second controller update system, the second controller update system is used to update the first controller update system. Specifically, the update program in the second controller update system is used to update the first controller update system based on the controller update system update information, and the first controller update system is marked as a valid system after the update is successful. The purpose of the mark is to determine the valid controller update system through the mark information when the controller update system is started next time, so as to start the valid controller update system when the storage area is reset next time. By updating the controller update system, problems can be repaired in time to ensure the normal operation of the controller update system.
[0085] It should be noted that the step of updating the controller update system based on the controller update system update information may be before resetting the current storage area of the vehicle controller according to the storage area update information by running a valid controller update system, or after resetting the current storage area of the vehicle controller according to the storage area update information by running a valid controller update system. There is no specific limitation here.
[0086] Optionally, the method further comprises:
[0087] If the software package contains software update information, a software flash operation is performed on the current storage area.
[0088] In this embodiment, if the software package includes software update information, it means that the storage area is not reset this time, and only the software flashing operation is performed on the current storage area.
[0089] In the embodiment of the present application, the size and number of the storage area can be directly reset without returning the vehicle controller to the factory, which simplifies the update process, effectively improves the update efficiency, and does not affect the normal use of the user, thereby improving the user experience. In addition, the controller update system can be updated to ensure the normal operation of the controller update system.
[0090] Figure 4 A schematic diagram of the structure of a vehicle controller update device provided by this application, such as Figure 4 As shown, the vehicle controller updating device 40 provided in this embodiment includes an acquisition unit 401 and a processing unit 402 .
[0091] The acquisition unit 401 is used to acquire the software package to be updated of the vehicle controller from the cloud. The processing unit 402 is used to reset the current storage area of the vehicle controller according to the storage area update information to obtain the target storage area if the software package contains the storage area update information; the reset process includes resetting the number and / or size of the storage area. The processing unit 402 is also used to perform a software flash operation on the target storage area.
[0092] In a possible implementation, the processing unit 402 is further configured to determine a valid controller update system according to the tag information; by updating the controller update system, problems can be fixed in a timely manner to ensure the normal operation of the controller update system.
[0093] In one possible implementation, the processing unit 402 is further used to format the current storage area by running an update program in a valid controller update system to obtain a formatted storage area, and reset the formatted storage area based on the number and size of the target storage area.
[0094] In a possible implementation, the processing unit 402 is further configured to obtain software update information corresponding to each target storage area in the storage area update information, and write the corresponding software update information into each corresponding target storage area.
[0095] In a possible implementation, the processing unit 402 is further configured to update the controller update system based on the controller update system update information if the software package includes the controller update system update information.
[0096] In one possible implementation, the processing unit 402 is also used to, if the valid controller update system started is the first controller update system, use the update program in the first controller update system to update the second controller update system based on the controller update system update information, and mark the second controller update system as a valid system after the update is successful; if the valid controller update system started is the second controller update system, use the update program in the second controller update system to update the first controller update system based on the controller update system update information, and mark the first controller update system as a valid system after the update is successful.
[0097] In a possible implementation, the vehicle-mounted controller updating device further includes: a transceiver unit.
[0098] The transceiver unit is used to report the device information of the vehicle controller to the cloud, so that the cloud can verify the vehicle controller according to the device information, and after the verification, send the new version software package notification information to the vehicle controller. The transceiver unit is also used to receive the new version software package notification information, generate update prompt information to prompt the user, and obtain the user's confirmation information. The processing unit 402 is also used to determine the vehicle controller update condition according to the confirmation information, so as to download the vehicle controller software package to be updated from the cloud when the update condition is met.
[0099] The vehicle controller updating device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0100] Figure 5 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 5 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.
[0101] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.
[0102] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0103] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0104] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0105] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0106] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0107] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0108] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0109] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0110] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0112] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0113] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it 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 the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0114] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0115] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A vehicle controller update method, characterized in that: include: Obtain the software package to be updated for the vehicle controller from the cloud; If the software package includes storage area update information, the current storage area of the vehicle controller is reset according to the storage area update information to obtain a target storage area; the reset process includes resetting the number and / or size of the storage area; Perform software flash operation on the target storage area.
2. The method according to claim 1, characterized in that The resetting of the current storage area of the vehicle controller according to the storage area update information includes: determining a valid controller update system based on the tag information; By running the effective controller update system, the current storage area of the vehicle controller is reset according to the storage area update information.
3. The method according to claim 2, characterized in that The storage area update information includes: the number and size of the target storage area; The resetting of the current storage area of the vehicle controller according to the storage area update information by running the effective controller update system includes: The current storage area is formatted by running the update program in the effective controller update system to obtain a formatted storage area, and the formatted storage area is reset based on the number and size of the target storage area.
4. The method according to any one of claims 1 to 3, wherein the step of performing a software flash operation on the target storage area comprises: The software update information corresponding to each target storage area in the storage area update information is obtained, and the corresponding software update information is written into the corresponding target storage area.
5. The method according to claim 2, characterized in that: Also includes: If the software package includes controller update system update information, the controller update system is updated based on the controller update system update information.
6. The method according to claim 5, characterized in that The vehicle-mounted controller is provided with a first controller update system and a second controller update system, and the updating of the controller update system based on the update information of the controller update system includes: If the running valid controller update system is the first controller update system, using the update program in the first controller update system to update the second controller update system based on the controller update system update information, and marking the second controller update system as a valid system after the update is successful; If the running valid controller update system is the second controller update system, the update program in the second controller update system is used to update the first controller update system based on the controller update system update information, and the first controller update system is marked as a valid system after the update is successful.
7. The method according to any one of claims 1 to 6, characterized in that: Also includes: Reporting the device information of the vehicle controller to the cloud, so that the cloud can verify the vehicle controller according to the device information, and after the verification is passed, sending the new version software package notification information to the vehicle controller; Receiving notification information of the new version software package, generating update prompt information to prompt the user, so as to obtain confirmation information from the user; The updating condition of the vehicle controller is determined according to the confirmation information, so as to download the software package to be updated of the vehicle controller from the cloud when the updating condition is met.
8. A vehicle controller updating device, characterized in that: include: An acquisition unit, used for acquiring a software package to be updated of the vehicle controller from the cloud; a processing unit, configured to, if the software package includes storage area update information, reset the current storage area of the vehicle controller according to the storage area update information to obtain a target storage area; the reset process includes resetting the number and / or size of the storage area; The processing unit is also used to perform software flashing operations on the target storage area to complete the update of the vehicle controller.
9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium / computer program product, characterized in that: The computer-readable storage medium / computer program product stores computer-executable instructions or a computer program, and when the computer-executable instructions or the computer program are executed by a processor, they are used to implement the method according to any one of claims 1 to 7.