Vehicle multi-controller one-key upgrading method and system, electronic equipment and medium
By establishing an Ethernet connection with the target vehicle and obtaining and using upgrade configuration files and attribute information, one-click upgrade of vehicle multi-controllers is achieved, solving the problem of inefficient upgrades in the existing technology and improving upgrade efficiency and fluency.
Patent Information
- Application Number
- CN202411861828.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
AI Technical Summary
In the prior art, the upgrade efficiency of vehicle multi-controllers is inefficient, and the current version of each controller is required to be sequentially referenced, resulting in a cumbersome upgrade process.
By establishing an Ethernet connection with the target vehicle, obtain the upgrade configuration files and attribute information of multiple controllers, and perform one-click upgrades based on the target upgrade tasks and upgrade configuration files.
Improve the upgrade efficiency of vehicle multi-controllers, make full use of Ethernet high-bandwidth transmission upgrade configuration files, simplify the upgrade process, and avoid upgrading operations on each controller one by one.
Smart Images

Figure CN119806578A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a method, system, electronic device and medium for one-key upgrading of multiple vehicle controllers. Background Art
[0002] In the current upgrade solution for multiple vehicle controllers, due to the wide variety of vehicle controllers, the upgrade of multiple controllers in the vehicle needs to refer to the current version of each controller in turn, resulting in low efficiency in upgrading the multiple vehicle controllers.
[0003] Therefore, how to solve the problem of low upgrade efficiency of vehicle multi-controllers in the prior art has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0004] Based on the above problems, in order to improve the upgrade efficiency of multiple vehicle controllers, the embodiments of the present application provide a one-click upgrade method, system, electronic device and medium for multiple vehicle controllers.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a one-key upgrade method for multiple controllers of a vehicle, comprising:
[0007] Establishing an Ethernet connection with a target vehicle; the target vehicle includes a plurality of controllers;
[0008] Obtaining, through the Ethernet connection, an upgrade configuration file for the plurality of controllers and attribute information of each controller; the upgrade configuration file is used to characterize an upgrade sequence between the controllers and a specific upgrade implementation process for each controller;
[0009] According to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet and the attribute information of each controller, a plurality of controllers are upgraded with one click; the target upgrade task is used to characterize the target upgrade version of each controller.
[0010] In one possible manner, the attribute information includes: current version information;
[0011] The one-key upgrade of the plurality of controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet, and the attribute information of each controller includes:
[0012] Matching the current version information of each controller with the target upgrade version for each controller in the target upgrade task to determine multiple target controllers; the target controllers are controllers whose current version information is inconsistent with the target upgrade version;
[0013] Through the upgrade configuration file, multiple target controllers are upgraded with one click.
[0014] In one possible manner, the target vehicle includes: an onboard gateway; and establishing an Ethernet connection with the target vehicle includes:
[0015] Based on the IP address of the vehicle gateway of the target vehicle, determining whether the target vehicle supports Ethernet communication;
[0016] When the target vehicle does not support the Ethernet communication, the Ethernet communication with the target vehicle is established through the connection between the preset communication middleware and the vehicle gateway.
[0017] In one possible manner, judging whether the target vehicle supports Ethernet communication based on the vehicle gateway IP address of the target vehicle includes:
[0018] Sending a ping request to the vehicle gateway based on the vehicle gateway IP address and Ethernet;
[0019] If a response signal fed back by the vehicle gateway to the ping request is not received within a preset time period, it is determined that the target vehicle does not support the Ethernet communication.
[0020] In one possible manner, the controller includes: a full quantity controller;
[0021] After performing one-key upgrade on the multiple controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet, and the attribute information of each controller, the method further includes:
[0022] In the process of performing one-key upgrade on the plurality of controllers, the data information involved in the upgrade of each controller is stored in the configuration table of all controllers.
[0023] In a second aspect, an embodiment of the present application provides a vehicle multi-controller one-key upgrade system, comprising:
[0024] A connection establishment module, used to establish an Ethernet connection with a target vehicle; the target vehicle includes a plurality of controllers;
[0025] A data acquisition module, used to acquire upgrade configuration files for the plurality of controllers and attribute information of each controller through the Ethernet connection; the upgrade configuration files are used to characterize the upgrade sequence between the controllers and the upgrade implementation process specific to each controller;
[0026] A one-key upgrade module is used to perform one-key upgrade on multiple controllers according to a target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet and the attribute information of each controller; the target upgrade task is used to characterize the target upgrade version of each controller.
[0027] In a possible manner, the attribute information includes: current version information; the one-key upgrade module is specifically used to:
[0028] Matching the current version information of each controller with the target upgrade version for each controller in the target upgrade task to determine multiple target controllers; the target controllers are controllers whose current version information is inconsistent with the target upgrade version;
[0029] Through the upgrade configuration file, multiple target controllers are upgraded with one click.
[0030] In one possible manner, the connection establishing module is specifically configured to:
[0031] Based on the IP address of the vehicle gateway of the target vehicle, determining whether the target vehicle supports Ethernet communication;
[0032] When the target vehicle does not support the Ethernet communication, the Ethernet communication with the target vehicle is established through the connection between the preset communication middleware and the vehicle gateway.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor, a memory, and a system bus;
[0034] The processor and the memory are connected via the system bus;
[0035] The memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute any possible vehicle multi-controller one-key upgrade method in the first aspect.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any possible one-key upgrade method for multiple vehicle controllers in the first aspect.
[0037] Compared with the prior art, the present application has the following beneficial effects: the embodiment of the present application provides a one-key upgrade method, system, electronic device and medium for multiple controllers of a vehicle, in which the one-key upgrade of multiple controllers needs to be established on the Ethernet connection with the target vehicle, aiming to obtain the upgrade configuration file for multiple controllers through the Ethernet connection between the target vehicle. Different from the traditional solution of controller upgrade based on CAN network, the upgrade service for multiple controllers is processed through Ethernet, which can make full use of the high bandwidth characteristics of Ethernet and improve the transmission rate of the upgrade configuration file, thereby effectively improving the upgrade efficiency of multiple controllers in the vehicle. In addition, the upgrade configuration file can characterize the upgrade order between the controllers and the specific upgrade implementation process of each controller. In this way, when the one-key upgrade is finally performed according to the target upgrade task, the upgrade configuration file, the Ethernet and the attribute information of the controller, the upgrade order between the multiple controllers and the specific upgrade implementation process of each controller can be efficiently arranged. At the same time, combined with the detailed comparison of the target upgrade task and the controller attribute information, there is no need to perform the upgrade operation on each controller one by one, thereby realizing the one-key upgrade solution for multiple controllers of the target vehicle, effectively improving the upgrade efficiency for multiple controllers of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 A schematic diagram of a flow chart of a one-key upgrade method for multiple vehicle controllers provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of a process for establishing Ethernet communication with a target vehicle provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of a structure for establishing Ethernet communication through a preset middleware provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of an upgrade implementation process provided in an embodiment of the present application;
[0043] Figure 5 A flowchart of another method for one-key upgrading of multiple vehicle controllers provided in an embodiment of the present application;
[0044] Figure 6A schematic diagram of the structure of a multi-controller one-key upgrade system provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of a vehicle multi-controller one-click upgrade electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of this application more clear, the following is a further detailed description of this application in combination with specific embodiments and with reference to the accompanying drawings. It should be noted that the embodiments described in the embodiments of this application are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0047] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "include" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right", etc. are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0048] As described above, in the current upgrade solution for vehicle multiple controllers, due to the wide variety of vehicle controllers, the upgrade of multiple controllers in the vehicle needs to refer to the current version of each controller in turn, resulting in low efficiency in upgrading the vehicle multiple controllers.
[0049] In particular, in the existing upgrade solutions for multiple vehicle controllers, one-click upgrades for multiple controllers are usually implemented based on the CAN network. Although the traditional CAN communication network can support one-click upgrades for multiple vehicle controllers, when the upgrade task is heavy, the limited communication rate of the CAN communication network itself cannot complete the upgrade process for multiple controllers within the limited time. At present, the upgrade efficiency for multiple vehicle controllers is poor.
[0050] In order to solve the above problems, the embodiment of the present application provides a one-key upgrade method, system, electronic device and medium for multiple controllers of a vehicle. In the method, the one-key upgrade of multiple controllers needs to be established on the Ethernet connection with the target vehicle, aiming to obtain the upgrade configuration file for multiple controllers through the Ethernet connection between the target vehicle. Different from the traditional solution of controller upgrade based on CAN network, the upgrade service for multiple controllers is processed through Ethernet, which can make full use of the high bandwidth characteristics of Ethernet and improve the transmission rate of the upgrade configuration file, thereby effectively improving the upgrade efficiency of multiple controllers in the vehicle. In addition, the upgrade configuration file can characterize the upgrade order between each controller and the specific upgrade implementation process of each controller. In this way, when the one-key upgrade is performed according to the target upgrade task, the upgrade configuration file, the Ethernet and the attribute information of the controller, the upgrade order between the multiple controllers and the specific upgrade implementation process of each controller can be efficiently arranged. At the same time, combined with the detailed comparison of the target upgrade task and the controller attribute information, there is no need to perform the upgrade operation on each controller one by one, thereby realizing the one-key upgrade solution for multiple controllers of the target vehicle, effectively improving the upgrade efficiency for multiple controllers of the vehicle.
[0051] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] Next, a one-key upgrade method for multiple controllers provided in an embodiment of the present application will be introduced in conjunction with the specific embodiment drawings. Figure 1 , which is a flow chart of a method for one-key upgrading of multiple vehicle controllers provided in an embodiment of the present application, specifically comprising the following steps:
[0053] S101: Establishing an Ethernet connection with a target vehicle; the target vehicle includes a plurality of controllers.
[0054] The one-click upgrade method for multiple controllers provided in the embodiment of the present application is applied to an external PC device that can download and transmit upgrade packages. In actual application scenarios, it is necessary to transmit the upgrade package file required for the controller upgrade to the target vehicle through a communication connection between the external PC device and the target vehicle, so as to realize one-click upgrade for multiple controllers.
[0055] In the traditional solution of upgrading multiple controllers in the target vehicle, the upgrade business processing for multiple controllers is usually completed based on the CAN communication network. The bandwidth of the traditional CAN communication network is usually low. The bandwidth of the standard CAN is 1Mbps, while the bandwidth of the low-speed CAN may be only 125kbps or 250kbps. At the same time, the CAN communication network adopts broadcast communication, and the upgrade package of each controller needs to be transmitted one by one, which makes the upgrade efficiency of multiple controllers based on the CAN communication network low.
[0056] Therefore, in order to improve the upgrade efficiency of multiple controllers, this application replaces the CAN communication network used when upgrading multiple controllers with Ethernet. Compared with the CAN communication network, Ethernet can provide bandwidth such as 100Mbps, 1Gbps or even 10Gbps, and the upgrade files and various related data have higher transmission efficiency. At the same time, Ethernet also supports packet switching technology. When transmitting multiple types of data packets through Ethernet, multiple data packets can be transmitted in parallel, which can effectively improve the one-click upgrade efficiency for multiple controllers in the vehicle.
[0057] In actual application scenarios, not all vehicles support Ethernet communication. Therefore, when establishing an Ethernet connection with a target vehicle, the embodiment of the present application needs to determine whether the target vehicle itself supports Ethernet communication. If the target vehicle does not support Ethernet communication, the Ethernet connection with the target vehicle is implemented through middleware intervention. Next, the process of establishing Ethernet communication with a target vehicle will be introduced in conjunction with the drawings of the specific embodiment.
[0058] See also Figure 2 , which is a schematic diagram of a process of establishing Ethernet communication with a target vehicle provided by an embodiment of the present application, specifically comprising the following steps:
[0059] S1011: Based on the onboard gateway IP address of the target vehicle, determine whether the target vehicle supports Ethernet communication.
[0060] In the process of determining whether the target vehicle supports Ethernet communication, it is necessary to send a ping request to the vehicle gateway through Ethernet communication based on the IP address of the vehicle gateway of the target vehicle. If the PC used to upgrade the multi-controller of the target vehicle receives a response signal fed back by the target vehicle to the ping request within a certain preset time, it indicates that the target vehicle supports Ethernet communication and can be directly connected.
[0061] Correspondingly, if the PC does not receive a response signal from the vehicle gateway to the ping request within a certain preset time, it indicates that the vehicle gateway of the target vehicle does not support Ethernet communication, and it is necessary to establish Ethernet communication between the PC and the target vehicle through external preset middleware.
[0062] S1012: When the target vehicle does not support the Ethernet communication, establish Ethernet communication with the target vehicle by connecting the preset communication middleware to the vehicle gateway.
[0063] For details, please refer to Figure 3 The schematic diagram of a structure for establishing Ethernet communication through a preset middleware is shown in FIG. Figure 3 As shown, when the target vehicle does not support Ethernet communication, a preset middleware is set between the PC and the target vehicle, one end of the middleware is connected through the USB interface of the PC, and the other end of the middleware is connected through the OBD interface of the target vehicle. In this way, the middleware is responsible for the communication with the target vehicle gateway through Ethernet.
[0064] When the preset middleware connects the PC end and the target vehicle gateway, the PC end performs the corresponding Ethernet configuration, selects the corresponding network protocol and IP address, subnet mask and default gateway, so as to establish Ethernet communication between the PC end and the target vehicle gateway. Under such a connection structure, one end of the preset middleware is connected to the PC end through Ethernet, and the other end is connected through the CAN communication network or the communication method supported by the target vehicle. How to indirectly establish Ethernet communication between the PC end and the target vehicle through the preset middleware, thereby improving the upgrade efficiency of multiple controllers.
[0065] The above is an introduction to establishing an Ethernet connection between the PC and the target vehicle. Figure 1 , the one-key upgrade method of multiple vehicle controllers in an embodiment of the present application is introduced.
[0066] S102: Acquire, through the Ethernet connection, an upgrade configuration file for the plurality of controllers and attribute information of each controller; the upgrade configuration file is used to characterize an upgrade sequence between the controllers and a specific upgrade implementation process for each controller;
[0067] In actual application scenarios, vehicle controllers often have many different types. Among them, the upgrade of some controllers sometimes requires a specific upgrade order. For example, when upgrading the controllers TBOX and BMS, the two cannot be upgraded in parallel due to the large differences in their execution functions. In addition, different controllers often have certain differences when upgrading. For example, some controllers do not need to be erased, and some controllers do not need to perform flash precondition checks. Therefore, in order to ensure the smoothness of the upgrade when upgrading multiple controllers with one click, on the basis of establishing an Ethernet connection between the PC and the target vehicle, it is necessary to obtain the upgrade configuration files of each controller and the attribute information of each controller through the Ethernet connection. Among them, the upgrade configuration file of the controller is used to characterize the upgrade order of the controller when upgrading, as well as the specific upgrade implementation process. The upgrade order can be determined by labeling each controller. When upgrading multiple controllers with one click, the upgrade order of each controller needs to be strictly upgraded according to the number of the identification, so as to ensure the smoothness of the upgrade of multiple controllers.
[0068] In addition, the controller upgrade configuration file is also used to characterize the specific upgrade implementation process of each controller. For details, see Figure 4 The following is a schematic diagram of an upgrade implementation process, where the meanings of each line of code in the figure are as follows:
[0069] delayTimeMs: Delay time after sending is completed
[0070] isEnable: Whether this step needs to be performed
[0071] isNRCIgnore: Whether to ignore negative feedback
[0072] isPhyId: functional addressing or physical addressing
[0073] singleCommand: The command set and response that need to be sent in this step
[0074] It can be seen that through the controller upgrade configuration file, the specific upgrade order of each controller and the specific upgrade implementation process involved in the upgrade can be accurately understood. When upgrading based on the upgrade configuration file in the future, the upgrade business operations of each controller can be effectively arranged to improve the smoothness of the upgrade processing for multiple controllers, thereby improving the upgrade efficiency of multiple controllers.
[0075] S103: performing one-click upgrade on the multiple controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet, and the attribute information of each controller; the target upgrade task is used to represent the target upgrade version of each controller.
[0076] Finally, based on the upgrade configuration files, attribute information, and established Ethernet connections of each controller, multiple controllers in the target vehicle are upgraded with one click in combination with the target upgrade task of the target vehicle on the PC side. Since the upgrade sequence and upgrade implementation process between the controllers have been reserved in advance, and the Ethernet connection between the PC side and the target vehicle has high bandwidth and parallel processing capabilities, the combination of the two can effectively achieve one-click upgrades for multiple controllers, thereby achieving the effect of improving the upgrade efficiency of multiple controllers.
[0077] Next, the process of performing one-key upgrade on multiple controllers in step S103 will be introduced in conjunction with the accompanying drawings of specific embodiments. Figure 5 , which is a flow chart of another method for one-key upgrading of multiple vehicle controllers provided in an embodiment of the present application, specifically comprising the following steps:
[0078] S1031: Match the current version information of each controller with the target upgrade version for each controller in the target upgrade task to determine multiple target controllers; the target controller is a controller whose current version information is inconsistent with the target upgrade version;
[0079] S1032: Perform one-click upgrade on the multiple target controllers through the upgrade configuration file.
[0080] The attribute information acquired in step S102 includes the current version information of the controller. The target upgrade task for the target vehicle includes the controllers involved in this upgrade and the target upgrade version corresponding to each controller in this upgrade.
[0081] Therefore, when upgrading the controller based on the target upgrade task, upgrade configuration file, and attribute information, in order to ensure the accuracy of the controller upgrade, it is necessary to compare the target upgrade version corresponding to the controller in the target upgrade task with the current version information of the controller. If there is a difference between the current version information of the controller and the target upgrade version, it indicates that the controller needs to be upgraded, and the controller can be determined as the target controller. On the contrary, after comparing the target upgrade version with the current version information, if no difference is found between the two, it means that the controller does not need to be upgraded and is eliminated.
[0082] In this way, by pre-establishing the target upgrade task, the target controller that needs to be upgraded can be directly determined through the target upgrade versions of multiple controllers and the current version information of each controller, and a one-click upgrade process can be performed based on the upgrade configuration files corresponding to these controllers. The pre-establishment of the target upgrade task eliminates the need for manual comparison of the controller versions, and preliminarily improves the upgrade efficiency of multiple controllers. After determining the target upgrade controller, the one-click upgrade process for each controller based on the upgrade configuration file makes it unnecessary to download the corresponding upgrade packages one by one for the controller upgrade process. The specific upgrade implementation steps of each single controller and the upgrade sequence between multiple controllers can be reasonably planned through the corresponding upgrade configuration files, thereby achieving the effect of comprehensively improving the upgrade efficiency of multiple controllers.
[0083] In actual application scenarios, the target upgrade task is stored in the task library pre-established on the PC side, and the target upgrade task needs to be obtained through the VIN number of the target vehicle itself. Through the VIN number of the target vehicle, the model and target upgrade task corresponding to the target vehicle are determined in the task library. If the corresponding upgrade task cannot be filtered out in the task library through the VIN number of the vehicle, it means that the vehicle is not included in the controller upgrade plan, and the user needs to be prompted through the vehicle's interactive terminal.
[0084] In one possible implementation, in order to ensure the consistency and traceability of the upgrade when performing one-click upgrades on multiple controllers, the data information involved in the upgrade of each controller (such as diagnostic ID, mask) needs to be stored in the configuration table of all controllers. Storing the relevant upgrade data of all controllers in a unified configuration table can ensure that each controller is upgraded according to the preset standards and processes, avoiding the problem of upgrade failure of some controllers or inconsistent upgrade versions due to human factors.
[0085] When a problem occurs during the upgrade process or an individual controller fails to upgrade, the cause of the problem can be quickly located by viewing the data information stored in the configuration table, and targeted measures can be taken to quickly solve the problem. At the same time, if a rollback upgrade is required, the information in the configuration table can also facilitate rapid recovery to the state before the upgrade.
[0086] The embodiment of the present application provides a one-key upgrade method for multiple controllers of a vehicle, in which the one-key upgrade of multiple controllers needs to be established on the Ethernet connection with the target vehicle, and is intended to obtain the upgrade configuration file for multiple controllers through the Ethernet connection between the target vehicle. Different from the traditional solution of controller upgrade based on CAN network, the upgrade service for multiple controllers is processed through Ethernet, which can make full use of the high bandwidth characteristics of Ethernet and improve the transmission rate of the upgrade configuration file, thereby effectively improving the upgrade efficiency of multiple controllers in the vehicle. In addition, the upgrade configuration file can characterize the upgrade order between each controller and the specific upgrade implementation process of each controller. In this way, when the one-key upgrade is performed according to the target upgrade task, the upgrade configuration file, the Ethernet and the attribute information of the controller, the upgrade order between the multiple controllers and the specific upgrade implementation process of each controller can be efficiently arranged. At the same time, combined with the detailed comparison of the target upgrade task and the controller attribute information, there is no need to perform the upgrade operation on each controller one by one, thereby realizing the one-key upgrade solution for multiple controllers of the target vehicle, effectively improving the upgrade efficiency for multiple controllers of the vehicle.
[0087] A one-key upgrade system for multiple vehicle controllers provided in an embodiment of the present application is introduced below. The one-key upgrade system for multiple vehicle controllers described below and the one-key upgrade method for multiple vehicle controllers described above can be referenced to each other.
[0088] See also Figure 6 , which is a schematic diagram of the structure of a vehicle multi-controller one-key upgrade system provided by an embodiment of the present application, specifically including the following modules:
[0089] The connection establishment module 100 is used to establish an Ethernet connection with a target vehicle; the target vehicle includes a plurality of controllers;
[0090] The data acquisition module 200 is used to acquire, through the Ethernet connection, an upgrade configuration file for the plurality of controllers and attribute information of each controller; the upgrade configuration file is used to characterize the upgrade sequence between the controllers and a specific upgrade implementation process for each controller;
[0091] The one-key upgrade module 300 is used to perform one-key upgrade on multiple controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet and the attribute information of each controller; the target upgrade task is used to characterize the target upgrade version of each controller.
[0092] In a possible manner, the attribute information includes: current version information; the one-key upgrade module 300 is specifically used to:
[0093] Matching the current version information of each controller with the target upgrade version for each controller in the target upgrade task to determine multiple target controllers; the target controllers are controllers whose current version information is inconsistent with the target upgrade version;
[0094] Through the upgrade configuration file, multiple target controllers are upgraded with one click.
[0095] In a possible manner, the connection establishing module 100 is specifically configured to:
[0096] Based on the IP address of the vehicle gateway of the target vehicle, determining whether the target vehicle supports Ethernet communication;
[0097] When the target vehicle does not support the Ethernet communication, the Ethernet communication with the target vehicle is established through the connection between the preset communication middleware and the vehicle gateway.
[0098] See also Figure 7 , which is a schematic diagram of the structure of a vehicle multi-controller one-key upgrade electronic device provided by an embodiment of the present application, including:
[0099] A memory 11, used for storing computer programs;
[0100] The processor 12 is used to implement the steps of a vehicle multi-controller one-key upgrade method described in any of the above method embodiments when executing the computer program.
[0101] In this embodiment, the device may be a vehicle-mounted computer, a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a PDA, or a portable computer.
[0102] The device may include a memory 11 , a processor 12 , and a bus 13 .
[0103] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the device, such as a hard disk of the device. In other embodiments, the memory 11 can also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 11 can also include both an internal storage unit of the device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed on the device, such as program code for executing a one-key upgrade method for multiple vehicle controllers, but can also be used to temporarily store data that has been output or is to be output. The processor 12 can be a central processing unit (CPU) in some embodiments.
[0104] In some embodiments, the processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 11 or process data, such as the program code for executing the one-click upgrade method of multiple vehicle controllers.
[0105] The bus 13 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0106] Furthermore, the device may also include a network interface 14, which may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the device and other electronic devices.
[0107] Optionally, the device may further include a user interface 15, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 15 may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the device and to display a visual user interface.
[0108] Figure 7 Only the device with components 11-15 is shown, and it can be understood by those skilled in the art that Figure 7 The structure shown does not constitute a limitation of the device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.
[0109] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle multi-controller one-key upgrade method as described in any of the above embodiments.
[0110] The computer-readable media of the embodiments of the present application include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0111] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the one-key upgrade method for multiple vehicle controllers as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0112] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for methods, systems, electronic devices and media, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The methods, systems, electronic devices and media described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0113] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A one-key upgrade method for multiple vehicle controllers, characterized in that: include: Establishing an Ethernet connection with a target vehicle; the target vehicle includes a plurality of controllers; Acquire, through the Ethernet connection, upgrade configuration files for the plurality of controllers and attribute information of each controller; The upgrade configuration file is used to characterize the upgrade sequence between the controllers and the upgrade implementation process specific to each controller; Performing one-key upgrade on the multiple controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet and the attribute information of each controller; The target upgrade task is used to represent the target upgrade version of each of the controllers.
2. The method according to claim 1, characterized in that The attribute information includes: current version information; The one-key upgrade of the plurality of controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet, and the attribute information of each controller includes: Matching the current version information of each controller with the target upgrade version for each controller in the target upgrade task to determine multiple target controllers; the target controllers are controllers whose current version information is inconsistent with the target upgrade version; Through the upgrade configuration file, multiple target controllers are upgraded with one click.
3. The method according to claim 1, characterized in that The target vehicle includes: an on-board gateway; the Ethernet connection established with the target vehicle includes: Based on the IP address of the vehicle gateway of the target vehicle, determining whether the target vehicle supports Ethernet communication; When the target vehicle does not support the Ethernet communication, the Ethernet communication with the target vehicle is established through the connection between the preset communication middleware and the vehicle gateway.
4. The method according to claim 3, characterized in that The determining whether the target vehicle supports Ethernet communication based on the onboard gateway IP address of the target vehicle includes: Sending a ping request to the vehicle gateway based on the vehicle gateway IP address and Ethernet; If a response signal fed back by the vehicle gateway to the ping request is not received within a preset time period, it is determined that the target vehicle does not support the Ethernet communication.
5. The method according to claim 1, characterized in that The controller comprises: a full quantity controller; After performing one-key upgrade on the multiple controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet, and the attribute information of each controller, the method further includes: In the process of performing one-key upgrade on the plurality of controllers, the data information involved in the upgrade of each controller is stored in the configuration table of all controllers.
6. A vehicle multi-controller one-key upgrade system, characterized in that: include: A connection establishment module, used to establish an Ethernet connection with a target vehicle; the target vehicle includes a plurality of controllers; A data acquisition module, used to acquire upgrade configuration files for the plurality of controllers and attribute information of each controller through the Ethernet connection; The upgrade configuration file is used to characterize the upgrade sequence between the controllers and the upgrade implementation process specific to each controller; A one-key upgrade module, used for performing one-key upgrade on the multiple controllers according to the target upgrade task for the target vehicle, the upgrade configuration file, the Ethernet and the attribute information of each controller; The target upgrade task is used to represent the target upgrade version of each of the controllers.
7. The system according to claim 6, characterized in that The attribute information includes: current version information; the one-key upgrade module is specifically used for: Matching the current version information of each controller with the target upgrade version for each controller in the target upgrade task to determine multiple target controllers; the target controllers are controllers whose current version information is inconsistent with the target upgrade version; Through the upgrade configuration file, multiple target controllers are upgraded with one click.
8. The system according to claim 6, characterized in that The connection establishment module is specifically used for: Based on the IP address of the vehicle gateway of the target vehicle, determining whether the target vehicle supports Ethernet communication; When the target vehicle does not support the Ethernet communication, the Ethernet communication with the target vehicle is established through the connection between the preset communication middleware and the vehicle gateway.
9. An electronic device, characterized in that: The device comprises: a processor, a memory and a system bus; The processor and the memory are connected via the system bus; The memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute the vehicle multi-controller one-key upgrade method described in any one of claims 1-5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the one-key upgrade method for multiple vehicle controllers described in any one of claims 1 to 5 is implemented.