CN106469072B - Vehicle program updating system and vehicle program updating method - Google Patents

Vehicle program updating system and vehicle program updating method Download PDF

Info

Publication number
CN106469072B
CN106469072B CN201510510468.XA CN201510510468A CN106469072B CN 106469072 B CN106469072 B CN 106469072B CN 201510510468 A CN201510510468 A CN 201510510468A CN 106469072 B CN106469072 B CN 106469072B
Authority
CN
China
Prior art keywords
nodes
bus
upper computer
setting
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510510468.XA
Other languages
Chinese (zh)
Other versions
CN106469072A (en
Inventor
叶惠招
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201510510468.XA priority Critical patent/CN106469072B/en
Publication of CN106469072A publication Critical patent/CN106469072A/en
Application granted granted Critical
Publication of CN106469072B publication Critical patent/CN106469072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Stored Programmes (AREA)

Abstract

In the vehicle program updating system disclosed by the invention, the plurality of electronic control units are connected with the CAN bus to correspondingly form a plurality of nodes. The upper computer is used for controlling the sending of the prohibition messages of all the nodes and the setting of the prohibition fault codes through the CAN bus, and then is used for sending the application program to be updated to a set node of the nodes through the CAN bus and keeping the sending of the prohibition messages and the setting of the prohibition fault codes of other nodes of the nodes. After the application program of the set node is updated, the upper computer is used for controlling all nodes to recover the sending of messages and the setting of fault codes through the CAN bus. According to the vehicle program updating system, when the program of the set node is updated, the sending of the message and the setting of the fault code are prohibited by other nodes, so that the load rate of the CAN bus is reduced, and the success rate of the updating of the CAN bus program is improved. The invention also discloses a vehicle program updating method.

Description

Vehicle program updating system and vehicle program updating method
Technical Field
The present invention relates to the field of vehicles, and more particularly, to a vehicle program updating system and a vehicle program updating method.
Background
Among the existing car body Network protocols of various vehicles, a CAN (Controller Area Network) bus has the advantages of high speed, good real-time performance, error diagnosis and the like, and is most widely applied to a vehicle-mounted Network, so that the existing car Controller generally adopts the CAN bus as a communication medium.
With the development of automotive electronics, Electronic Control Units (ECUs) are increasingly used in modern automobiles. In the process of developing the electronic control software, after the electronic control software is loaded, the application program in the ECU has certain defects or needs to be changed, and then the application program in the ECU needs to be maintained or upgraded. Because the ECU is difficult to disassemble after the ECU is assembled in a whole factory, reprogramming the application program in the ECU through the CAN bus of the automobile is the simplest, convenient and quick implementation mode.
Just because the number of ECU is more and more, the data on the CAN bus is more and more, when through the update procedure of CAN bus, the bus load rate grow in the twinkling of an eye often leads to the procedure to update the failure.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the present invention needs to provide a vehicle program updating system and a vehicle program updating method.
A vehicle program updating system comprises an upper computer, a CAN bus and a plurality of electronic control units. The electronic control units are all connected with the CAN bus to correspondingly form a plurality of nodes. The upper computer is used for controlling the sending of the prohibition messages of all the nodes and the setting of the prohibition fault codes through the CAN bus, and then is used for sending the application program to be updated to a set node of the nodes through the CAN bus and keeping the sending of the prohibition messages and the setting of the prohibition fault codes of other nodes of the nodes. After the application program of the set node is updated, the upper computer is used for controlling all nodes to recover the sending of messages and the setting of fault codes through the CAN bus.
According to the vehicle program updating system, when the program of the set node is updated, the sending of the message and the setting of the fault code are prohibited by other nodes, so that the load rate of the CAN bus is reduced, and the success rate of the updating of the CAN bus program is improved.
In one embodiment, the vehicle program update system includes an on-board diagnostics system interface that connects the CAN bus with the upper computer.
In one embodiment, the vehicle program updating system comprises a vehicle-mounted terminal, and the vehicle-mounted terminal is connected with the CAN bus and the upper computer.
In one embodiment, the host computer is configured to request entry into a diagnostic session mode from all nodes via the CAN bus. All the nodes are used for sending session response to the upper computer according to the request of entering the diagnosis session mode. And the upper computer is used for controlling all nodes to prohibit the sending of messages and prohibit the setting of fault codes through the CAN bus according to the session response.
In one embodiment, after the application program of the setting node is updated, the setting node is configured to send an update completion signal to the upper computer through the CAN bus. And the upper computer is used for sending a recovery request to all the nodes through the CAN bus according to the update completion signal. And all the nodes are used for recovering the transmission of the message and the setting of the fault code according to the recovery request.
A vehicle program update method comprising the steps of:
s1: the upper computer controls the sending of the prohibition messages and the setting of the prohibition fault codes of all the nodes connected to the CAN bus through the CAN bus, and then the step S2 is carried out, wherein each node of all the nodes is formed by connecting an electronic control unit with the CAN bus;
s2: the upper computer sends the application program to be updated to a set node in all nodes through the CAN bus, keeps the sending of the prohibition message and the setting of the prohibition fault code of other nodes, and then enters step S3;
s3: after the application program of the set node is updated, the upper computer controls all the nodes to recover the sending of the message and the setting of the fault code through the CAN bus.
In one embodiment, steps S1, S2, and S3 each include: the upper computer is connected with the CAN bus through a vehicle-mounted diagnosis system interface.
In one embodiment, steps S1, S2, and S3 each include: the upper computer is connected with the CAN bus through a vehicle-mounted terminal.
In one embodiment, step S1 includes:
the upper computer requests all nodes to enter a diagnosis session mode through the CAN bus;
all nodes send session responses to the upper computer according to the request of entering the diagnosis session mode;
and the upper computer controls the sending of the forbidden messages of all the nodes and the setting of the forbidden fault codes through the CAN bus according to the session response.
In one embodiment, step S3 includes:
after the application program of the set node is updated, the set node sends an update completion signal to the upper computer through the CAN bus;
the upper computer sends a recovery message to all nodes through the CAN bus according to the update completion signal;
and all the nodes recover the sending of the message and the setting of the fault code according to the recovery message.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a block diagram of a vehicle program update system in accordance with a preferred embodiment of the present invention;
FIG. 2 is a network topology diagram of a vehicle program update system in accordance with a preferred embodiment of the present invention;
FIG. 3 is a block diagram of a vehicle program update system according to a preferred embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a vehicle program update system;
FIG. 5 is a schematic diagram of another architecture of a vehicle program update system in accordance with a preferred embodiment of the present invention;
FIG. 6 is a schematic diagram of the update principle of the vehicle program update system according to the preferred embodiment of the present invention;
FIG. 7 is a flowchart of a program update of the vehicle program update system in accordance with the preferred embodiment of the present invention;
FIG. 8 is a flowchart illustrating a vehicle procedure update method according to a preferred embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted", "connected" and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and settings of a specific example are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or reference letters in the various examples, which have been repeated for purposes of simplicity and clarity and do not in themselves dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
Referring to fig. 1, a vehicle program updating system 100 according to a preferred embodiment of the present invention includes an upper computer 102, a CAN bus 104, and a plurality of Electronic Control Units (ECUs).
The electronic control units are all connected to the CAN bus 104 to form a plurality of nodes 106. In this embodiment, each electronic control unit is internally connected with a CAN controller and a CAN transceiver, and the electronic control units are connected to the CAN bus 104 through the CAN transceivers to form a CAN network topology, so as to form a plurality of corresponding nodes 106, as shown in fig. 2. The electronic control units on the CAN network all support updating the program via the CAN bus and the electronic control units on the CAN network all support diagnostic sessions.
The upper computer 102 is connected to the plurality of nodes 106 through the CAN bus 104, and is configured to control, through the CAN bus 104, sending of a prohibition message and setting of a prohibition fault code for all the nodes 106, and then the upper computer 102 is configured to send an application program to be updated to a set node 106 in the plurality of nodes 106 through the CAN bus 104, and maintain the other nodes 106 in the plurality of nodes 106 to prohibit sending of a message and setting of a prohibition fault code. After the application program of the set node 106 is updated, the upper computer 102 is used for controlling all the nodes 106 to recover the sending of the message and the setting of the fault code through the CAN bus 104.
Specifically, the upper computer 102 may be any one of a personal computer, a mobile terminal, a server, and the like. Referring to fig. 3, in some embodiments, the vehicle program update system 100 includes an On-board diagnostic (OBD) interface 108 of the vehicle 200, and the On-board diagnostic interface 108 connects the CAN bus 104 and the upper computer 102. The upper computer 102 is connected to the CAN bus 104 in a wired manner or a wireless manner, for example, the upper computer 102 is connected to the OBD interface 108 through the CAN box 110 (or an OBD conversion box) to be further connected to the CAN bus 104. For example, when the host computer 102 is a personal computer, one end of the CAN box 110 is connected to the USB interface of the host computer 102, and the other end of the CAN box 110 is connected to the OBD interface 108.
The wireless mode may include a long-distance wireless mode and a short-distance wireless mode, and the long-distance wireless mode may be a mode of connection using a mobile communication network. For example, the mobile communication module may be plugged into the OBD interface 108, and the upper computer 102 communicates with the mobile communication module wirelessly and is connected to the CAN bus 104.
The short-distance wireless mode can be a mode of connecting by using a Bluetooth module. For example, the upper computer 102 is a mobile terminal, a bluetooth module may be plugged into the OBD interface 108, and the upper computer 102 communicates with the bluetooth module wirelessly and is connected to the CAN bus 104. The program to be updated on the mobile terminal may be downloaded from the server.
Referring to fig. 4 to 5, in some embodiments, the vehicle program updating system 100 includes a vehicle-mounted terminal 112 of a vehicle, and the vehicle-mounted terminal 112 is connected to the CAN bus 104 and the upper computer 102. The upper computer 102 is connected to the CAN bus 104 in a wireless manner.
The wireless mode may include a long-distance wireless mode and a short-distance wireless mode, and the long-distance wireless mode may be a mode of connection using a mobile communication network. For example, referring to fig. 4, the upper computer 102 is a server, the in-vehicle terminal 112 incorporates a mobile communication module 114, and the upper computer 102 is connected to the CAN bus 104 by performing wireless communication with the mobile communication module 114.
The short-distance wireless mode can be a mode of connecting by using a Bluetooth module. For example, referring to fig. 5, the upper computer 102 is a mobile terminal, the in-vehicle terminal 112 has a bluetooth module 116 built therein, and the upper computer 102 wirelessly communicates with the bluetooth module 116 and is connected to the CAN bus 104. And the program to be updated on the mobile terminal may be downloaded from the server 500.
It should be noted that, no matter the upper computer 102 is connected with the CAN bus 104 in a wired manner or in a wireless manner, the upper computer 102 includes hardware and software for realizing connection in a wired manner and/or connection in a wireless manner, for example, in the above-mentioned remote wireless manner, the upper computer 102 also includes a mobile communication module, and the mobile communication module of the upper computer 102 communicates with the mobile communication module of the vehicle-mounted terminal 112 or plugged in the OBD interface 108 to transmit signals and data.
When the program is updated, the upper computer 102 sends the program to be updated to the setting node 106 of the CAN bus 104 in a wired or wireless manner, or sends the program to be updated to the vehicle-mounted terminal 112 in a wired or wireless manner, and the vehicle-mounted terminal 112 sends the program to be updated to the setting node 106 of the CAN bus 104. The setting node 106 is, for example, a node to which a program is to be updated.
The upper computer 102 is configured to request all nodes 106 to enter a diagnostic session mode via the CAN bus 104. The plurality of nodes 106 are configured to send a session response to the upper computer 102 according to the request for entering the diagnostic session mode. The upper computer 102 is configured to control, according to the session response, all the nodes 106 to prohibit sending of a message and prohibit setting of a fault code through the CAN bus 104.
After the application program of the setting node 106 is updated, the setting node 106 is configured to send an update completion signal to the upper computer 102 through the CAN bus 104. The upper computer 102 is configured to send a recovery message to all nodes 106 through the CAN bus 104 according to the update completion signal. All the nodes 106 are configured to recover sending of the message and setting of the fault code according to the recovery message.
Specifically, referring to fig. 6, after the upper computer 102 receives the session response, the upper computer 102 sends a request for prohibiting transmission of the CAN bus message by all the nodes, and after receiving the request for prohibiting transmission of the message, all the nodes 106 prohibit transmission of the message and send a first response to the upper computer 102.
The upper computer 102 sends a request for prohibiting the setting of the fault code by all the nodes according to the first response, and after receiving the request for prohibiting the setting of the fault code, all the nodes 106 prohibit the setting of the fault code. At the same time, all nodes 106 send second responses to the upper computer 102. The upper computer 102 issues the program to be updated to the set node 106 of the CAN bus 104 according to the second response, and requests other nodes 106 which do not need to update the program to maintain the diagnostic session mode. At this time, the setting node 106 enters the program update mode, and the other nodes 106 maintain the diagnostic session mode.
After the program of the set node 106 is updated, the upper computer 102 sends a request for sending all the node recovery messages according to the update completion signal sent by the set node 106, and after all the nodes 106 receive the request for sending the recovery messages, the upper computer 102 sends a third response.
And the upper computer 102 sends a request for restoring the setting of the fault code to all the nodes according to the third response, and after each node 106 receives the request for restoring the setting of the fault code, the setting of the fault code is restored, and simultaneously, a fourth response is sent to the upper computer 102, so that the whole program updating process is completed. It should be noted that the CAN controller of each node 106 CAN control the corresponding node 106 to perform corresponding operations according to the request sent by the upper computer 102, for example, the operations of prohibiting sending a message and resuming sending a message are performed.
Referring to fig. 7, taking the program update of the node 1 in the CAN network as an example:
step 1: when the upper computer 102 prepares to update the program of the node 1, a message is sent first, and all the nodes 106 on the CAN bus are informed of forbidding the sending of the message;
step 2: after all nodes 106 including the node 1 on the network receive the notification, immediately stopping sending the message and sending a first response to the upper computer 102;
and step 3: after receiving the first response, the upper computer 102 sends a request for prohibiting the setting of the fault code for all the nodes 106 on the network;
and 4, step 4: after all nodes 106 including the node 1 on the network receive the request, immediately stopping the setting of the fault code and sending a second response to the upper computer 102;
and 5: after receiving the second response, the upper computer 102 issues the program of the node 1 and also issues a message to inform other nodes 106 on the network except the node 1 to keep the above states (stop sending the message and setting the fault code);
step 6: the node 1 updates the program, and other nodes 106 continue to keep prohibiting the sending of the message and setting the fault code;
and 7: after the program of the node 1 is updated, jumping to a step 8, otherwise, jumping to a step 6;
and 8: after the program of the node 1 is updated, the upper computer 102 sends a request to notify all the nodes 106 on the network to resume sending the message;
and step 9: after all nodes 106 on the network receive the request for sending the recovery message, the sending of the recovery message is immediately recovered and a third response is sent to the upper computer 102;
step 10: after receiving the third response, the upper computer 102 sends a request for all the nodes 106 on the network to restore the setting of the fault code;
step 11: after receiving the request for restoring the setting of the fault code, all the nodes 106 on the network immediately restore the setting of the fault code and send a fourth response to the upper computer 102. So far the whole software updating process is finished.
In addition, since the node 1 automatically resumes the transmission of the message and the setting of the fault code after the program is updated, the node 1 may ignore the request for resuming the transmission of the message and the setting of the fault code issued by the upper computer 102 in steps 9 and 10.
In summary, the vehicle program updating system 100 keeps the other nodes 106 from prohibiting the transmission of the message and prohibiting the setting of the fault code when the program of the set node 106 is updated, so as to reduce the load rate of the CAN bus 104 and improve the success rate of the program updating of the CAN bus 104.
Referring to fig. 8, a vehicle program updating method according to a preferred embodiment of the present invention is provided. The vehicle program updating method can be implemented by the vehicle program updating system 100 of the above embodiment. The vehicle program updating method includes the steps of:
s1: the upper computer 102 controls all the nodes 106 connected to the CAN bus 104 through the CAN bus 104 to prohibit the sending of messages and the setting of fault codes, and then the step S2 is executed;
s2: the upper computer 102 sends the application program to be updated to one of the set nodes 106 in all the nodes 106 through the CAN bus 104, keeps the other nodes 106 from prohibiting the sending of the message and prohibiting the setting of the fault code, and then proceeds to step S3;
s3: after the application program of the set node 106 is updated, the upper computer 102 controls all the nodes 106 to resume sending messages and setting fault codes through the CAN bus 104.
In the above vehicle program updating method, the upper computer 102 and the CAN bus 104 are connected by a wired method or a wireless method. For example, the upper computer 102 is connected to the OBD interface 108 of the vehicle program updating system 100 through the CAN box 110 and further connected to the CAN bus 104 in a wired manner, or the upper computer 102 is connected to the in-vehicle terminal 112 through the bluetooth module 116 and further connected to the CAN bus 104 in a wireless manner.
When the program is updated, the upper computer 102 sends the program to be updated to the setting node 106 of the CAN bus 104 in a wired or wireless manner or sends the program to be updated to the vehicle-mounted terminal 112 in a wireless manner, and the vehicle-mounted terminal 112 sends the program to be updated to the setting node 106 of the CAN bus 104. The setting node 106 is, for example, a node to which a program is to be updated.
In step S1, the upper computer 102 requests all the nodes 106 to enter a diagnostic session mode through the CAN bus 104. All nodes 106 send session replies to the upper computer 102 upon request to enter the diagnostic session mode. The upper computer 102 controls all the nodes 106 to prohibit sending of messages and prohibit setting of fault codes through the CAN bus 104 according to the session response.
Specifically, after the upper computer 102 receives the session response, the upper computer 102 sends a request for prohibiting the sending of the message by all the nodes, and after all the nodes 106 receive the request for prohibiting the sending of the message, the sending of the message is prohibited, and the first response is sent to the upper computer 102 at the same time.
The upper computer 102 sends a request for prohibiting the setting of the fault code by all the nodes according to the first response, and after receiving the request for prohibiting the setting of the fault code, all the nodes 106 prohibit the setting of the fault code. At the same time, all nodes 106 send second responses to the upper computer 102.
In step S2, the upper computer 102 issues the program to be updated to the set node 106 of the CAN bus 104 according to the second response, and requests the other nodes 106 that do not need to update the program to maintain the diagnostic session mode. At this time, the setting node 106 enters the program update mode, and the other nodes 106 maintain the diagnostic session mode.
In step S3, after the application program of the setting node 106 is updated, the setting node 106 sends an update completion signal to the upper computer 102 through the CAN bus 104. The upper computer 102 sends a recovery message to all the nodes 106 through the CAN bus 104 according to the update completion signal. All nodes 106 recover the sending of the message and the setting of the fault code according to the recovery message.
Specifically, after the program of the setting node 106 is updated, the upper computer 102 sends a request for sending a recovery message to all nodes according to the update completion signal sent by the setting node 106, and after all nodes 106 receive the request for sending the recovery message, the upper computer 102 sends a third response.
The upper computer 102 sends a request for restoring the setting of the fault code to all the nodes according to the third response, and after each node 106 receives the request for restoring the setting of the fault code, the setting of the fault code is restored, and simultaneously, a fourth response is sent to the upper computer 102. So far, the whole program updating process is completed.
Other parts of the vehicle program updating method not developed can refer to the same or corresponding parts of the vehicle program updating system 100 of the above embodiment, and are not developed in detail here.
In summary, in the above vehicle program updating method, when the program is updated for the set node 106, the sending of the prohibition message and the setting of the prohibition fault code are maintained for the other nodes 106, so that the load rate of the CAN bus 104 is reduced, and the success rate of the program updating of the CAN bus 104 is improved.
In the description of the present specification, reference to the description of the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples", etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicit to the number of technical features indicated. Thus, a feature defined as "first", "second", may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A vehicle program update system, comprising:
an upper computer;
a CAN bus;
the electronic control units are connected with the CAN bus to correspondingly form a plurality of nodes;
the upper computer is used for controlling the sending of the prohibition messages of all the nodes and the setting of the prohibition fault codes through the CAN bus, and then sending the application program to be updated to a set node of the nodes through the CAN bus and keeping the sending of the prohibition messages and the setting of the prohibition fault codes of other nodes of the nodes;
after the application program of the set node is updated, the upper computer is used for controlling all nodes to recover the sending of messages and the setting of fault codes through the CAN bus.
2. The vehicle program update system of claim 1, wherein the vehicle program update system comprises an on-board diagnostics system interface, the on-board diagnostics system interface connecting the CAN bus and the host computer.
3. The vehicle program updating system according to claim 1, wherein the vehicle program updating system comprises a vehicle-mounted terminal, and the vehicle-mounted terminal is connected with the CAN bus and the upper computer.
4. The vehicle program update system of claim 1, wherein the host computer is configured to request entry into a diagnostic session mode from all nodes via the CAN bus;
all the nodes are used for sending session response to the upper computer according to the request for entering the diagnosis session mode;
and the upper computer is used for controlling all nodes to prohibit the sending of messages and prohibit the setting of fault codes through the CAN bus according to the session response.
5. The vehicle program updating system according to claim 4, wherein the setting node is configured to send an update completion signal to the upper computer through the CAN bus after the application program update of the setting node is completed;
the upper computer is used for sending a recovery request to all nodes through the CAN bus according to the update completion signal;
and all the nodes are used for recovering the transmission of the message and the setting of the fault code according to the recovery request.
6. A vehicle program updating method characterized by comprising the steps of:
s1: the upper computer controls the sending of the prohibition messages and the setting of the prohibition fault codes of all the nodes connected to the CAN bus through the CAN bus, and then the step S2 is carried out, wherein each node of all the nodes is formed by connecting an electronic control unit with the CAN bus;
s2: the upper computer sends the application program to be updated to a set node in all nodes through the CAN bus, keeps the sending of the prohibition message and the setting of the prohibition fault code of other nodes, and then enters step S3;
s3: after the application program of the set node is updated, the upper computer controls all the nodes to recover the sending of the message and the setting of the fault code through the CAN bus.
7. The vehicle program updating method according to claim 6, wherein each of the step S1, the step S2, and the step S3 includes: the upper computer is connected with the CAN bus through a vehicle-mounted diagnosis system interface.
8. The vehicle program updating method according to claim 6, wherein each of the step S1, the step S2, and the step S3 includes: the upper computer is connected with the CAN bus through a vehicle-mounted terminal.
9. The vehicle program updating method according to claim 6, wherein step S1 includes:
the upper computer requests all nodes to enter a diagnosis session mode through the CAN bus;
all nodes send session responses to the upper computer according to the request of entering the diagnosis session mode;
and the upper computer controls the sending of the forbidden messages of all the nodes and the setting of the forbidden fault codes through the CAN bus according to the session response.
10. The vehicle program updating method according to claim 9, wherein step S3 includes:
after the application program of the set node is updated, the set node sends an update completion signal to the upper computer through the CAN bus;
the upper computer sends a recovery message to all nodes through the CAN bus according to the update completion signal;
and all the nodes recover the sending of the message and the setting of the fault code according to the recovery message.
CN201510510468.XA 2015-08-19 2015-08-19 Vehicle program updating system and vehicle program updating method Active CN106469072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510510468.XA CN106469072B (en) 2015-08-19 2015-08-19 Vehicle program updating system and vehicle program updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510510468.XA CN106469072B (en) 2015-08-19 2015-08-19 Vehicle program updating system and vehicle program updating method

Publications (2)

Publication Number Publication Date
CN106469072A CN106469072A (en) 2017-03-01
CN106469072B true CN106469072B (en) 2019-12-20

Family

ID=58214513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510510468.XA Active CN106469072B (en) 2015-08-19 2015-08-19 Vehicle program updating system and vehicle program updating method

Country Status (1)

Country Link
CN (1) CN106469072B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3399411A1 (en) * 2017-05-04 2018-11-07 Volvo Car Corporation Method and system for fault handling during remote installation of software in a vehicle
JP7201329B2 (en) * 2018-03-12 2023-01-10 トヨタ自動車株式会社 vehicle controller
CN110290158B (en) * 2018-03-19 2021-09-03 比亚迪股份有限公司 Method and system for updating train communication network nodes
CN110362057A (en) * 2018-04-09 2019-10-22 上海擎感智能科技有限公司 Update method, system, readable storage medium storing program for executing and the terminal of vehicle electronic circuit module
CN109733413B (en) * 2018-12-28 2020-08-18 北京新能源汽车股份有限公司 Vehicle remote refreshing method and device
CN111736873B (en) * 2020-06-22 2023-02-24 中国第一汽车股份有限公司 Program updating method, device, equipment and storage medium of electronic control unit
CN112083946B (en) * 2020-09-17 2024-02-06 南方电网科学研究院有限责任公司 Method, device, terminal and medium for predicting program load rate of direct current protection system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201914192U (en) * 2010-12-24 2011-08-03 陈言平 Controller Area Network (CAN) bus control system of electric vehicle
CN103513997A (en) * 2012-06-21 2014-01-15 比亚迪股份有限公司 Program recording method and system used for bus network
CN103616830A (en) * 2013-12-02 2014-03-05 北京经纬恒润科技有限公司 Car controller flash control method and device and car bus system
CN103810131A (en) * 2014-02-24 2014-05-21 重庆邮电大学 Bluetooth and CAN data conversion device and method for vehicle-mounted system
CN104333576A (en) * 2014-10-21 2015-02-04 普华基础软件股份有限公司 ECU (Electronic Control Unit) upgrading device and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090216401A1 (en) * 2008-02-27 2009-08-27 Underdal Olav M Feedback loop on diagnostic procedure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201914192U (en) * 2010-12-24 2011-08-03 陈言平 Controller Area Network (CAN) bus control system of electric vehicle
CN103513997A (en) * 2012-06-21 2014-01-15 比亚迪股份有限公司 Program recording method and system used for bus network
CN103616830A (en) * 2013-12-02 2014-03-05 北京经纬恒润科技有限公司 Car controller flash control method and device and car bus system
CN103810131A (en) * 2014-02-24 2014-05-21 重庆邮电大学 Bluetooth and CAN data conversion device and method for vehicle-mounted system
CN104333576A (en) * 2014-10-21 2015-02-04 普华基础软件股份有限公司 ECU (Electronic Control Unit) upgrading device and method

Also Published As

Publication number Publication date
CN106469072A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN106469072B (en) Vehicle program updating system and vehicle program updating method
US10564954B2 (en) Hybrid electric vehicle with automated software update system
CN202940846U (en) Vehicle-mounted device software upgrading system
DE102015104651A1 (en) REMOTE CAR CONNECTIVITY STATUS
JP7192415B2 (en) Program update system and update processing program
KR20220001924A (en) Apparatus for controlling update of ecu in vehicle and method thereof
CN103279369A (en) Automatic upgrade system and method for automobile diagnosis instrument based on CAN bus
KR20220028879A (en) Apparatus for managing update of ecu in vehicle and method thereof
CN108008964B (en) Vehicle-mounted network system, management method of vehicle-mounted software and vehicle
KR102402629B1 (en) Method and control unit for transmitting information to and/or from a vehicle
CN113625690A (en) Intelligent diagnosis method and system for automobile and mobile terminal
CN111512613A (en) Method and control unit for facilitating diagnosis of a vehicle
CN116016156A (en) Vehicle-mounted communication method, device and system
CN113050960A (en) OTA (over the air) upgrading method and device, vehicle-mounted terminal and storage medium
US20220417329A1 (en) Method and system for data communication network in a vehicle
WO2017149567A1 (en) Communication device
KR20230017634A (en) Apparatus for controlling ota update of vehicle and method thereof
CN111492641B (en) Method and control unit for communication with a vehicle
KR20220156057A (en) Devices and methods for managing electronic control units of a motor vehicle
CN115202313A (en) System and method for managing updates of an electronic control unit of a vehicle
CN113227967A (en) Software upgrading method and device
JP7434205B2 (en) Program update management system, mobile failure diagnosis device, program update management method
US20230315440A1 (en) Vehicle software compatibility
US20230045256A1 (en) Computing device updating
CN111492642B (en) Method and control unit for configuring an accessory interface of a vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant