A vehicle controller upgrade method, device, equipment and storage medium

Through parallel execution brush writing action, the problem of low timeliness of the Lin -line communication controller in the existing technologies has significantly improved the upgrade efficiency and user satisfaction of the vehicle controller.

CN115696266BActive Publication Date: 2025-01-28CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211328348.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-01-28
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

In the prior art, the on-board controller using LIN line communication has a low timelinearity and cannot be compared with the controller using CAN line communication, resulting in low upgrade efficiency.

Method used

By obtaining the target in the upgrade task, the upgrade from the node is determined, and the writing data is sent to the upgrade from the node to trigger the response message. Based on the local Internet network information based on the nodes of each upgrade, the upper -node is performed by the upgrade of the same local Internet network information through the upper machine.

Benefits of technology

Realizing that multiple master nodes have been upgraded from the parallel nodes from nodes, significantly reduced the upgrade time, reduced user waiting time and vehicle consumption power, and increased user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115696266B_ABST
    Figure CN115696266B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for upgrading an on-board controller. The method obtains a task to be upgraded; determines an upgrade slave node for the task to be upgraded based on target slave node information; sends flash data to the upgrade slave node to trigger the upgrade slave node to generate a response message; if a host computer obtains the response message, based on the local area network information of each upgrade slave node, the host computer executes a flash action on the upgrade slave nodes with the same local area network information in parallel to upgrade the on-board controller, thereby realizing parallel upgrade of slave nodes of different LIN networks of multiple master nodes, significantly reducing upgrade time, reducing user upgrade waiting time, reducing vehicle power consumption, and improving user satisfaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent automobile technology, and in particular to a method, device, equipment and storage medium for upgrading an on-board controller. Background Art

[0002] With the development of science and technology, vehicle remote upgrade (OTA) technology has gradually become popular in automobiles. OTA technology is no longer exclusive to certain vehicles. Fuel vehicles and electric vehicles are equipped with OTA functions one after another, and the upgrade scope is no longer limited to experience-related functions, but is oriented to the entire domain. Among them, the controllers upgraded by the vehicle include those upgraded through LIN and other low-speed channels, such as sensors.

[0003] However, the characteristics of LIN determine that the LIN node in the car is composed of a master node and multiple slave nodes. The master node is usually a controller that uses CAN / CANFD / Ethernet communication, and the slave node is a controller that uses LIN communication. The controller diagnosis of LIN communication is controlled by the master node. Similarly, the flashing of LIN line communication controller is directly controlled by the master node. Therefore, the timeliness of the controller using LIN line communication is usually much lower than that of the controller using CAN line communication. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a vehicle controller upgrade method, device, equipment and storage medium to solve the above-mentioned technical problems.

[0005] The present invention provides a method for upgrading a vehicle-mounted controller, the method comprising: obtaining a task to be upgraded, the task to be upgraded comprising target slave node information and flash data for upgrading the vehicle-mounted controller; determining an upgrade slave node for the task to be upgraded according to the target slave node information, the upgrade slave nodes belonging to at least two upgrade master nodes; sending the flash data to the upgrade slave node to trigger the upgrade slave node to generate a response message; if a host computer obtains the response message, based on the local area interconnection network information of each of the upgrade slave nodes, the host computer executes a flash action on the upgrade slave nodes having the same local area interconnection network information in parallel to upgrade the vehicle-mounted controller.

[0006] In one embodiment of the present invention, before determining the upgrade slave node of the task to be upgraded according to the target slave node information, it also includes: obtaining master node configuration information, including slave node, slave node diagnostic identifier and slave node logical address; based on the slave node, the slave node diagnostic identifier and the slave node logical address, determining the mapping relationship between the slave node and the slave node diagnostic identifier, and the mapping relationship between the slave node and the slave node logical address to generate a master node configuration information table.

[0007] In one embodiment of the present invention, determining the upgrade slave node of the task to be upgraded according to the target slave node information includes: obtaining the target slave node identification information of the target slave node, the target slave node identification information including the target slave node diagnostic identification and the target slave node logical address; based on the target slave node diagnostic identification, matching the master node configuration information table to obtain the upgrade slave node, or based on the target slave node logical address, matching the master node configuration information table to obtain the upgrade slave node.

[0008] In one embodiment of the present invention, sending the flash data to the upgrade slave node to trigger the upgrade slave node to generate a response message includes: obtaining a master node configuration information table, the master node configuration information table including the network type to which the master node belongs and the mapping relationship between the slave node and the master node; determining the data type of the master node based on the master node configuration information table and the upgrade slave node; when the master node data type is dynamic data, encapsulating the instruction message into a bus diagnostic message, and sending it to the host computer based on the node address, or when the master node data type is Internet Protocol data, encapsulating the instruction message into an Ethernet data frame, and sending it to the host computer based on the node address.

[0009] In one embodiment of the present invention, before the upper computer executes the flashing action in parallel on the upgraded slave nodes having the same local interconnection network information, it also includes: acquiring the configuration information of the slave nodes to generate a slave node configuration information table, the slave node configuration information including the network to which the slave node belongs, the slave node diagnostic identifier, and the slave node logical address, the slave node configuration information table including a mapping relationship between the slave node diagnostic identifier and the slave node local interconnection network, and a mapping relationship between the slave node logical address and the slave node local interconnection network; determining the upgraded slave node local interconnection network of the upgraded slave node based on the upgraded slave node and the slave node configuration information table; grouping the upgraded slave nodes based on the upgraded slave node local interconnection network; and executing the flashing action in parallel on the upgraded slave nodes in the same group.

[0010] In one embodiment of the present invention, after the upper computer executes the flashing action in parallel on the upgraded slave nodes having the same local area interconnection network information, it also includes: obtaining the execution result of the upper computer, and feeding back the execution result to the slave node to generate a new feedback message; sending the feedback message to the upper computer to determine the upgrade status of the target vehicle controller.

[0011] In one embodiment of the present invention, the feedback message is sent to the host computer to determine the upgrade status of the target vehicle controller, including: determining the first flashing status based on the feedback message, when the first flashing status is a successful flashing, determining that the target vehicle controller has been successfully upgraded; when the first flashing status is a failed flashing, obtaining a number of flashing times, if the number of flashing times is less than or equal to a preset standard number of times, repeating the flashing until the flashing is successful, determining that the target vehicle controller has been successfully upgraded, if the number of flashing times is greater than the preset standard number of times, terminating the flashing process, and determining that the upgrade of the target vehicle controller has failed.

[0012] The present invention provides a vehicle-mounted controller upgrading device, the device comprising: an information acquisition module, used for acquiring a task to be upgraded, the task to be upgraded comprising target slave node information and flash data for upgrading the vehicle-mounted controller; a slave node confirmation module, used for determining an upgrade slave node of the task to be upgraded according to the target slave node information, the upgrade slave node belonging to at least two upgrade master nodes; a data flash module, used for sending the flash data to the upgrade slave node to trigger the upgrade slave node to generate a response message; an execution module, used for, if a host computer acquires the response message, based on the local area interconnection network information of each of the upgrade slave nodes, executing a flash action on the upgrade slave nodes having the same local area interconnection network information in parallel through the host computer to upgrade the vehicle-mounted controller.

[0013] The present invention provides an electronic device, which includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the vehicle controller upgrade method as described above.

[0014] The present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle controller upgrade method as described above.

[0015] The beneficial effects of the present invention are as follows: the present invention obtains the task to be upgraded, determines the upgrade slave node of the task to be upgraded according to the target slave node information; sends the flashing data to the upgrade slave node to trigger the upgrade slave node to generate a response message; if the upper computer obtains the response message, based on the local interconnection network information of each upgrade slave node, the upper computer executes the flashing action on the upgrade slave nodes with the same local interconnection network information in parallel to upgrade the vehicle-mounted controller, which can realize the parallel upgrade of slave nodes of different LIN networks of multiple master nodes, significantly reducing the upgrade time, reducing the user's upgrade waiting time, reducing the power consumption of the vehicle, and improving user satisfaction.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0018] Figure 1 is a schematic diagram of an implementation environment for upgrading a vehicle controller according to an exemplary embodiment of the present application;

[0019] Figure 2 is a flow chart of upgrading a vehicle controller shown in an exemplary embodiment of the present application;

[0020] Figure 3 is a flow chart of determining the upgrade status of a vehicle controller shown in an exemplary embodiment of the present application;

[0021] Figure 4 is a block diagram of a vehicle controller upgrade device shown in an exemplary embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0024] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0025] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0026] First of all, it should be explained that OTA, which stands for Over-the-Air Technology (OTA), is a technology that remotely manages mobile terminal devices and SIM card data through the air interface of mobile communications. Its OAT flashes the local maintenance of the host computer, which involves the master node attribute table, which includes the master node diagnostic identification (Identification, referred to as ID), and the diagnostic ID of the managed slave node (the network where the master node is located is the CAN / CANFD network), and the number of repetitions of the current flash instruction when the flash fails. The local maintenance of the master node involves the slave node attribute table, which involves the slave node address NAD (node ​​addres, referred to as NAD) corresponding to the slave node diagnostic ID / logical address, and the LIN network to which the slave node belongs. When the master node receives the flash message from the OTA host computer, it identifies the specific slave node that needs to be flashed according to the mapping relationship in the slave node attribute table.

[0027] Figure 1 It is a schematic diagram of an implementation environment for upgrading a vehicle controller during navigation, shown as an exemplary embodiment of the present application.

[0028] like Figure 1 As shown, it includes an OTA host computer 101 and a controller 102 that needs to be upgraded. Among them, the OTA host computer 101 and the controller 102 that needs to be upgraded are integrated in the vehicle side and connected through a local interconnect network (Local Interconnect Network, referred to as LIN network), which includes a master node and a slave node. Each master node includes multiple slave nodes. The slave nodes belonging to the same master node have a unique LIN network, and the same LIN network includes different master nodes. The OTA host computer sends update data to the slave node through the master node, thereby flashing the controller that needs to be upgraded to achieve the upgrade of the vehicle-side controller.

[0029] like Figure 2 As shown, in an exemplary embodiment, the vehicle controller upgrade method includes at least steps S210 to S240, which are described in detail as follows:

[0030] Step S210, obtaining the task to be upgraded, which includes the target slave node information and the flashing data for upgrading the vehicle controller.

[0031] The OTA host computer obtains the corresponding upgrade task according to the upgrade needs of the vehicle, and the upgrade task includes but is not limited to the flash data for upgrading the slave node information and the vehicle controller.

[0032] Step S220, determining the upgrade slave node of the task to be upgraded according to the target slave node information, the upgrade slave nodes belonging to at least two upgrade master nodes.

[0033] Before determining the upgrade slave node of the task to be upgraded according to the target slave node information, it also includes: obtaining the master node configuration information, including the slave node, the slave node diagnostic identifier and the slave node logical address; based on the slave node, the slave node diagnostic identifier and the slave node logical address, determining the mapping relationship between the slave node and the slave node diagnostic identifier, and the mapping relationship between the slave node and the slave node logical address to generate a master node configuration information table.

[0034] The information of multiple master nodes and the slave node information corresponding to the master node are obtained, including the network type to which the master node belongs, the master node identification information, the slave node diagnostic ID, the slave node LIN network, the slave node logical address and the number of retries, and a master node configuration information table is formed based on the above information, as shown in Table 1:

[0035] Table 1

[0036]

[0037] Among them, the network type to which the LIN control master node belongs is mainly to identify the network segment through which the OTA host computer communicates with the master node, such as whether the OTA host computer and the master node communicate through the power CAN network segment or through Ethernet. When the network type of the master node is the CAN data type, the identification information of the master node is the master node diagnostic identification (Identification, referred to as ID); when the data type of the master node is Ethernet data, the identification information of the master node is the protocol for interconnection between the master node networks (Internet Protocol, referred to as IP). And each master node includes multiple slave nodes with different LIN networks, and the LIN network information of the slave node can indicate its specific slave node identity. In addition, the master node configuration information table also includes the number of retries for each slave node. When the slave node fails to refresh, the OTA host computer will retry the failed slave node according to the number of retries until it succeeds or its number of retries reaches the preset number.

[0038] Determining the upgrade slave node of the task to be upgraded according to the target slave node information includes: obtaining the target slave node identification information of the target slave node, the target slave node identification information includes the target slave node diagnostic identification and the target slave node logical address; based on the target slave node diagnostic identification, matching the master node configuration information table to obtain the upgrade slave node, or based on the target slave node logical address, matching the master node configuration information table to obtain the upgrade slave node.

[0039] The identification information of the slave node includes the slave node diagnostic ID and the slave node logical address. After the slave node diagnostic ID or the slave node logical address is determined, the corresponding slave node can be obtained in the master node configuration information table.

[0040] In one embodiment of the present invention, based on the identification information of the slave node, it is determined that the slave node diagnostic ID of the slave node is SNA2, then SNA2 is searched in the master node configuration information table, and its corresponding slave node information is found to be slave node 2.

[0041] In one embodiment of the present invention, based on the identification information of the slave node, it is determined that the slave node logical address of the slave node is LA2, then LA2 is searched in the master node configuration information table, and its corresponding slave node information is found to be slave node 11.

[0042] Step S230: sending the flash data to the upgrade slave node to trigger the upgrade slave node to generate a response message.

[0043] Sending the flash data to the upgraded slave node to trigger the upgraded slave node to generate a response message includes: obtaining the master node configuration information table, the master node configuration information table includes the network type to which the master node belongs and the mapping relationship between the slave node and the master node; determining the data type of the master node based on the master node configuration information table and the upgraded slave node; when the master node data type is dynamic data, encapsulating the command message into a bus diagnostic message, and sending it to the host computer based on the node address, or when the master node data type is Internet Protocol data, encapsulating the command message into an Ethernet data frame, and sending it to the host computer based on the node address.

[0044] In one embodiment of the present invention, the network type to which the master node belongs is first determined according to the master node configuration information table. When the data type of the master node is dynamic data, the configuration information of the slave nodes related to the master node is obtained, including the slave node LIN network, diagnostic ID, and NAD, to generate a configuration information table of the related slave nodes, as shown in Table 2:

[0045] Table 2

[0046] LIN network Diagnostic ID NAD From Node 1 LIN1 SNA1 NAD1 Slave Node 2 LIN1 SNA2 NAD2 Slave Node 3 LIN2 SNA3 NAD3 Slave Node 4 LIN2 SNA4 NAD4 Slave Node 5 LIN3 SNA5 NAD5 Slave Node 6 LIN3 SNA6 NAD6

[0047] The LIN network information is used to determine the specific LIN network to which the slave node belongs, such as LIN1, LIN2, etc. The diagnostic ID is used by the master node to identify the specific slave node information that needs to be upgraded based on the diagnostic ID sent by the received OTA; NAD is used to distinguish the limbs of different slave nodes, and flashing is the slave node identifying whether it needs to process the message based on the NAD.

[0048] In one embodiment of the present invention, the master node receives the diagnostic ID sent by the OTA host computer, identifies that the diagnostic ID is SNA1, and determines that the slave node corresponding to the instruction is slave node 1, whose NAD is NADA1. The master node then encapsulates the instruction message into a CAN / CANFD message and sends it to the host computer based on the node address NAD1, thereby triggering the host computer to perform a flashing action.

[0049] In one embodiment of the present invention, the network type to which the master node belongs is first determined according to the master node configuration information table. When the data type of the master node is Internet protocol data, the configuration information of the slave nodes related to the master node is obtained, including the slave node LIN network, logical address, and NAD, to generate a configuration information table of the related slave nodes, as shown in Table 3:

[0050] Table 3

[0051]

[0052]

[0053] The LIN network information is used to determine the specific LIN network to which the slave node belongs, such as LIN1, LIN2, etc. The logical address is used by the master node to identify the specific slave node information that needs to be upgraded based on the diagnostic ID sent by the received OTA; NAD is used to distinguish the addresses of different slave nodes, and flashing is the slave node identifying whether it needs to process the message based on the NAD.

[0054] In one embodiment of the present invention, the master node receives the diagnostic ID sent by the OTA host computer, identifies the logical address as LA1, and determines that the slave node corresponding to the instruction is slave node 1, whose NAD is NADA1. The master node then encapsulates the instruction message into an Ethernet data frame and sends it to the host computer based on the node address NAD1, thereby triggering the host computer to perform a flashing action.

[0055] Step S240, if the host computer obtains the response message, based on the local area interconnection network information of each upgrade slave node, the host computer executes the flashing action on the upgrade slave nodes with the same local area interconnection network information in parallel to upgrade the vehicle controller.

[0056] Before the upper computer executes the flashing action in parallel on the upgraded slave nodes with the same local interconnection network information, it also includes: obtaining the configuration information of the slave nodes to generate a slave node configuration information table, the slave node configuration information includes the network to which the slave node belongs, the slave node diagnostic identifier, and the slave node logical address, the slave node configuration information table includes the mapping relationship between the slave node diagnostic identifier and the slave node local interconnection network, and the mapping relationship between the slave node logical address and the slave node local interconnection network; determining the upgraded slave node local interconnection network of the upgraded slave node based on the upgraded slave node and the slave node configuration information table; grouping the upgraded slave nodes based on the upgraded slave node local interconnection network; and executing the flashing action in parallel on the upgraded slave nodes in the same group.

[0057] In one embodiment of the present invention, according to the upgrade task, the slave nodes involved in the upgrade task include slave node 1, slave node 4, slave node 5, and slave node 7. Based on the master node configuration information table (Table 1), the LIN network corresponding to slave node 1 is LIN1, the LIN network corresponding to slave node 4 is LIN1, the LIN network corresponding to slave node 5 is LIN2, and the LIN network corresponding to slave node 7 is LIN1. Then, according to the LIN network, the above-mentioned slave node 1, slave node 4, and slave node 7 are divided into a group, and the flashing data is sent to them at the same time, and the flashing action is performed in parallel.

[0058] After the upper computer executes the flashing action in parallel on the upgraded slave nodes with the same local interconnection network information, it also includes: obtaining the execution result of the upper computer and feeding back the execution result to the slave node to generate a new feedback message; sending the feedback message to the upper computer to determine the upgrade status of the target vehicle controller.

[0059] A feedback message is sent to the host computer to determine the upgrade status of the target vehicle controller, including: determining the first flashing status based on the feedback message, when the first flashing status is a flashing success, determining that the target vehicle controller has been successfully upgraded; when the first flashing status is a flashing failure, obtaining the number of flashing times, if the number of flashing times is less than or equal to the preset standard number of times, repeating the flashing until the flashing is successful, determining that the target vehicle controller has been successfully upgraded, if the number of flashing times is greater than the preset standard number of times, ending the flashing process, and determining that the upgrade of the target vehicle controller has failed.

[0060] Figure 3 It is a flowchart of determining the upgrade status of a vehicle controller shown in an exemplary embodiment of the present application.

[0061] like Figure 3As shown, during the flashing process performed by the host computer, there are two situations: flashing success or flashing failure. When the first flashing is successful, the flashing process is directly terminated. When the flashing fails, the flashing needs to be repeated. In the process of repeated flashing, the number of flashing is first obtained, and the maximum number of flashing is preset to N. When the number of flashing is less than N, the flashing continues. If the flashing is successful, the flashing process is terminated. If the flashing fails, the flashing is repeated; until the number of flashing is greater than or equal to N, the flashing process is directly terminated, and it is determined that the upgrade task corresponding to the flashing process has failed.

[0062] In one embodiment of the present invention, the host computer flashes the target vehicle controller according to a certain upgrade task, and the first flash is successful, so the flash process is ended and it is determined that the upgrade task is successfully upgraded.

[0063] In one embodiment of the present invention, taking the preset maximum number of flashing times N=10 as an example, the upper computer flashes the target vehicle controller according to a certain upgrade task, and then repeats the flashing, and obtains the number of flashing times in the process. When the flashing is successful for the ninth time, the flashing process is terminated and it is determined that the upgrade task is successfully upgraded.

[0064] In one embodiment of the present invention, taking the preset maximum number of flashing times N=10 as an example, the upper computer flashes the target vehicle controller according to a certain upgrade task, and then repeats the flashing, and obtains the number of flashing times in the process. When the ninth flashing occurs, the flashing fails. When the tenth flashing occurs, since the number of flashing times is equal to the preset maximum number of flashing times N, the flashing process is directly terminated, and it is determined that the upgrade task has failed.

[0065] Figure 4 An exemplary embodiment of the present application shows a block diagram of a vehicle controller upgrade device. The device can be applied to Figure 1 The device may also be applicable to other exemplary implementation environments and specifically configured in other devices, and this embodiment does not limit the implementation environment to which the device is applicable.

[0066] like Figure 4 As shown, the exemplary vehicle controller upgrade device includes: an information acquisition module 410 , a slave node confirmation module 420 , a data flashing module 430 and an execution module 440 .

[0067] Among them, the information acquisition module 410 is used to obtain the task to be upgraded, which includes the target slave node information and the flash data for upgrading the vehicle-mounted controller; the slave node confirmation module 420 is used to determine the upgrade slave node of the task to be upgraded according to the target slave node information, and the upgrade slave node belongs to at least two upgrade master nodes; the data flashing module 430 is used to send the flashing data to the upgrade slave node to trigger the upgrade slave node to generate a response message; the execution module 440 is used to, if the upper computer obtains the response message, based on the local interconnection network information of each upgrade slave node, the upper computer executes the flashing action on the upgrade slave nodes with the same local interconnection network information in parallel to upgrade the vehicle-mounted controller.

[0068] It should be noted that the vehicle controller upgrade device provided in the above embodiment and the vehicle controller upgrade method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the vehicle controller upgrade device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0069] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the vehicle controller upgrade method provided in the above-mentioned embodiments.

[0070] Figure 5 A schematic diagram of the structure of a computer system for implementing an electronic device of an embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0071] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method described in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0072] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0073] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0074] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0075] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0076] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0077] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle controller upgrade method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0078] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the vehicle controller upgrade method provided in each of the above embodiments.

[0079] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A vehicle controller upgrade method, characterized in that: The method comprises: Acquire a task to be upgraded, wherein the task to be upgraded includes target slave node information and flash data for upgrading the vehicle controller; Determine the upgrade slave node of the task to be upgraded according to the target slave node information, wherein the upgrade slave nodes belong to at least two upgrade master nodes; Sending the flash data to the upgrade slave node to trigger the upgrade slave node to generate a response message; If the upper computer obtains the response message, based on the local interconnection network information of each upgraded slave node, the configuration information of the slave node is obtained to generate a slave node configuration information table, the slave node configuration information includes the network to which the slave node belongs, the slave node diagnostic identifier, and the slave node logical address, the slave node configuration information table includes the mapping relationship between the slave node diagnostic identifier and the slave node local interconnection network, and the mapping relationship between the slave node logical address and the slave node local interconnection network; based on the upgraded slave node and the slave node configuration information table, the upgraded slave node local interconnection network of the upgraded slave node is determined; based on the upgraded slave node local interconnection network, the upgraded slave nodes are grouped; the upgrade slave nodes in the same group are flashed in parallel, and the upgrade slave nodes with the same local interconnection network information are flashed in parallel by the upper computer to upgrade the vehicle controller.

2. The vehicle controller upgrade method according to claim 1, characterized in that: Before determining the upgrade slave node of the task to be upgraded according to the target slave node information, the following further includes: Obtain master node configuration information, including slave nodes, slave node diagnostic identifiers, and slave node logical addresses; Based on the slave node, the slave node diagnostic identifier and the slave node logical address, a mapping relationship between the slave node and the slave node diagnostic identifier, and a mapping relationship between the slave node and the slave node logical address are determined to generate a master node configuration information table.

3. The vehicle controller upgrade method according to claim 2, characterized in that: Before determining the upgrade slave node of the task to be upgraded according to the target slave node information, the vehicle controller upgrade method includes: Acquire target slave node identification information of the target slave node, wherein the target slave node identification information includes a target slave node diagnostic identifier and a target slave node logical address; Based on the target slave node diagnostic identifier, the master node configuration information table is matched to obtain an upgraded slave node, or based on the target slave node logical address, the master node configuration information table is matched to obtain an upgraded slave node.

4. The vehicle controller upgrade method according to claim 2, characterized in that: Sending the flash data to the upgrade slave node to trigger the upgrade slave node to generate a response message includes: Obtaining a master node configuration information table, the master node configuration information table including a network type to which the master node belongs and a mapping relationship between a slave node and the master node, and determining a data type of the master node based on the master node configuration information table and the upgraded slave node; When the data type of the main node is dynamic data, the command message is encapsulated into a bus diagnostic message and sent to the host computer based on the node address, or when the data type of the main node is Internet Protocol data, the command message is encapsulated into an Ethernet data frame and sent to the host computer based on the node address.

5. The vehicle controller upgrade method according to any one of claims 1 to 4, characterized in that: After the host computer executes the flashing action on the upgraded slave nodes having the same local area interconnection network information in parallel, the following further comprises: Obtaining the execution result of the host computer, and feeding back the execution result to the slave node to generate a new feedback message; The feedback message is sent to a host computer to determine the upgrade status of the target vehicle controller.

6. The vehicle controller upgrade method according to claim 5, characterized in that: The feedback message is sent to the host computer to determine the upgrade status of the target vehicle controller, including: Determine the first flashing status based on the feedback message, and when the first flashing status is that the flashing is successful, determine that the target vehicle controller is upgraded successfully; When the first flashing status is a flashing failure, the number of flashing times is obtained. If the number of flashing times is less than or equal to the preset standard number of times, the flashing is repeated until the flashing is successful, and the target vehicle controller is determined to have been successfully upgraded. If the number of flashing times is greater than the preset standard number of times, the flashing process is terminated, and the upgrade of the target vehicle controller is determined to have failed.

7. A vehicle controller upgrade device, characterized in that: The device comprises: An information acquisition module, used to acquire tasks to be upgraded, wherein the tasks to be upgraded include target slave node information and flash data for upgrading the vehicle controller; A slave node confirmation module, used to determine the upgrade slave node of the task to be upgraded according to the target slave node information, wherein the upgrade slave node belongs to at least two upgrade master nodes; A data flashing module, used for sending the flashing data to the upgrade slave node to trigger the upgrade slave node to generate a response message; An execution module is used for obtaining the configuration information of the slave nodes based on the local interconnection network information of each upgraded slave node when the upper computer obtains the response message, so as to generate a slave node configuration information table, wherein the slave node configuration information includes the network to which the slave node belongs, the slave node diagnostic identifier, and the slave node logical address, and the slave node configuration information table includes a mapping relationship between the slave node diagnostic identifier and the slave node local interconnection network, and a mapping relationship between the slave node logical address and the slave node local interconnection network; determining the upgraded slave node local interconnection network of the upgraded slave node based on the upgraded slave node and the slave node configuration information table; grouping the upgraded slave nodes based on the upgraded slave node local interconnection network; performing a flashing action on the upgraded slave nodes in the same group in parallel, and performing a flashing action on the upgraded slave nodes with the same local interconnection network information in parallel through the upper computer to upgrade the vehicle controller.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the vehicle controller upgrade method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the vehicle controller upgrading method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data processing method and intelligent vehicle gateway

    CN107659494A

  • Vehicle-mounted trip computer parallel upgrading method and device

    CN111273931A