CN117873029A - Domain controller, software refreshing method and system thereof and storage medium - Google Patents

Domain controller, software refreshing method and system thereof and storage medium Download PDF

Info

Publication number
CN117873029A
CN117873029A CN202311802788.3A CN202311802788A CN117873029A CN 117873029 A CN117873029 A CN 117873029A CN 202311802788 A CN202311802788 A CN 202311802788A CN 117873029 A CN117873029 A CN 117873029A
Authority
CN
China
Prior art keywords
processing chip
software
processing
chips
domain controller
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.)
Pending
Application number
CN202311802788.3A
Other languages
Chinese (zh)
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.)
FAW Group Corp
Original Assignee
FAW Group Corp
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 FAW Group Corp filed Critical FAW Group Corp
Priority to CN202311802788.3A priority Critical patent/CN117873029A/en
Publication of CN117873029A publication Critical patent/CN117873029A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a domain controller, a software refreshing method, a system and a storage medium thereof. The method comprises the following steps: in response to the domain controller being connected with the diagnostic instrument, controlling a first processing chip of the plurality of processing chips to establish communication connection with the diagnostic instrument, and controlling a second processing chip of the plurality of processing chips to establish communication connection with the first processing chip, the second processing chip being used for characterizing a chip of the plurality of processing chips other than the first processing chip; receiving a plurality of software refreshing data packets sent by a diagnostic instrument through a first processing chip, wherein the plurality of software refreshing data packets are in one-to-one correspondence with the plurality of processing chips; the method comprises the steps that a first processing chip sends a software refreshing data packet corresponding to a second processing chip in a plurality of software refreshing data packets to the second processing chip; the plurality of processing chips are software-flushed based on the plurality of software-flushed packets. The invention solves the technical problem of low software refreshing efficiency of a plurality of processing chips in the domain controller in the related technology.

Description

Domain controller, software refreshing method and system thereof and storage medium
Technical Field
The invention relates to the field of Internet of vehicles, in particular to a domain controller, a software flashing method, a system and a storage medium thereof.
Background
With the development of new energy automobiles, a plurality of chips exist on a domain controller of an existing vehicle, when software refreshing is performed on the domain controller, a diagnostic instrument needs to be sequentially connected with each chip, and then each chip is sequentially refreshed, so that the efficiency of software refreshing is low when the domain controller is subjected to software refreshing.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a domain controller, a software refreshing method, a system and a storage medium thereof, which at least solve the technical problem of low software refreshing efficiency of a plurality of processing chips in the domain controller in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a software flashing method of a domain controller, the domain controller including a plurality of processing chips, the method including: in response to the domain controller being connected with the diagnostic instrument, controlling a first processing chip of the plurality of processing chips to establish communication connection with the diagnostic instrument, and controlling a second processing chip of the plurality of processing chips to establish communication connection with the first processing chip, the second processing chip being used for characterizing a chip of the plurality of processing chips other than the first processing chip; receiving a plurality of software refreshing data packets sent by a diagnostic instrument through a first processing chip, wherein the plurality of software refreshing data packets are in one-to-one correspondence with the plurality of processing chips; the method comprises the steps that a first processing chip sends a software refreshing data packet corresponding to a second processing chip in a plurality of software refreshing data packets to the second processing chip; the plurality of processing chips are software-flushed based on the plurality of software-flushed packets.
Optionally, controlling a first processing chip of the plurality of processing chips to establish a communication connection with the diagnostic apparatus, and controlling a second processing chip of the plurality of processing chips to establish a communication connection with the first processing chip includes: creating a first transmitting address of a first processing chip, a first receiving address of the first processing chip and a second receiving address of a second processing chip; the first processing chip is controlled to establish communication connection with the diagnostic instrument through the first receiving address; and controlling the first processing chip and the second processing chip to establish communication connection through the first transmitting address and the second receiving address.
Optionally, the controlling the first processing chip to establish a communication connection with the diagnostic apparatus through the first receiving address includes: receiving a route activation request sent by a diagnostic instrument through a first processing chip, wherein the route activation request carries a second sending address of the diagnostic instrument; returning a route activation response to the diagnostic instrument through the first processing chip, wherein the route activation response carries a first receiving address; and controlling the first processing chip to establish communication connection with the diagnostic instrument through the second transmitting address and the first receiving address.
Optionally, receiving, by the first processing chip, a plurality of software swipe data packets sent by the diagnostic apparatus, including: and sequentially receiving a plurality of software refreshing data packets sent by the diagnostic instrument through the first processing chip.
Optionally, the first processing chip sends the software-written data packet corresponding to the second processing chip in the plurality of software-written data packets to the second processing chip, including: and responding to the first processing chip receiving the software refreshing data packet corresponding to any one of the second processing chips, and sending the software refreshing data packet corresponding to any one of the second processing chips to any one of the processing chips through the first processing chip.
Optionally, the software flashing of the domain controller further comprises: and receiving a refreshing result returned by the second processing chip through the first processing chip, wherein the refreshing result is sent by the second processing chip after the refreshing is finished by utilizing a software refreshing data packet corresponding to the second processing chip.
According to an aspect of an embodiment of the present invention, there is provided a software flashing apparatus of a domain controller including a plurality of processing chips, the apparatus including: the control module is used for responding to the connection of the domain controller and the diagnostic instrument, controlling a first processing chip in the plurality of processing chips to establish communication connection with the diagnostic instrument and controlling a second processing chip in the plurality of processing chips to establish communication connection with the first processing chip, wherein the second processing chip is used for representing chips except the first processing chip in the plurality of processing chips; the receiving module is used for receiving a plurality of software refreshing data packets sent by the diagnostic instrument through the first processing chip, wherein the plurality of software refreshing data packets are in one-to-one correspondence with the plurality of processing chips; the sending module is used for sending the software refreshing data packet corresponding to the second processing chip in the plurality of software refreshing data packets to the second processing chip through the first processing chip; and the software refreshing module is used for carrying out software refreshing on the plurality of processing chips based on the plurality of software refreshing data packets.
According to another aspect of the embodiment of the present invention, there is also provided a software flashing system of a domain controller, including: the diagnostic instrument is used for sending a plurality of software refreshing data packets; the domain controller comprises a plurality of processing chips, a first processing chip in the plurality of processing chips is in communication connection with the diagnostic instrument, a second processing chip in the plurality of processing chips is in communication connection with the first processing chip, and the second processing chip is used for representing chips except the first processing chip in the plurality of processing chips; the first processing chip is used for receiving a plurality of software refreshing data packets, sending the software refreshing data packets corresponding to the second processing chip in the plurality of software refreshing data packets to the second processing chip, and performing software refreshing based on the software refreshing data packets corresponding to the first processing chip, wherein the second processing chip is used for performing software refreshing on the second processing chip based on the software refreshing data packets corresponding to the second processing chip.
According to another aspect of the embodiment of the present invention, there is also provided a domain controller including: the plurality of processing chips comprise a first processing chip and a second processing chip, the first processing chip is in communication connection with the diagnostic instrument, the second processing chip is in communication connection with the first processing chip, and the second processing chip is used for representing chips except the first processing chip in the plurality of processing chips; the first processing chip is used for receiving a plurality of software refreshing data packets, sending the software refreshing data packets corresponding to the second processing chip in the plurality of software refreshing data packets to the second processing chip, and performing software refreshing based on the software refreshing data packets corresponding to the first processing chip, wherein the second processing chip is used for performing software refreshing on the second processing chip based on the software refreshing data packets corresponding to the second processing chip.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the software flashing method of the domain controller of any one of the above is performed in a processor of a device in which the program is controlled to run.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device, including: the domain controller described above.
In the embodiment of the invention, the response domain controller is connected with the diagnostic instrument, so that the first processing chip in the plurality of processing chips is controlled to be in communication connection with the diagnostic instrument, and the second processing chip in the plurality of processing chips is controlled to be in communication connection with the first processing chip; receiving a plurality of software refreshing data packets sent by a diagnostic instrument through a first processing chip; the method comprises the steps that a first processing chip sends a software refreshing data packet corresponding to a second processing chip in a plurality of software refreshing data packets to the second processing chip; and a manner of software flushing the plurality of processing chips based on the plurality of software flushing data packets. It is easy to notice that the software refreshing is performed on the plurality of processing chips through the plurality of software refreshing data packets, so that the purpose that the plurality of processing chips can be simultaneously refreshed without sequentially refreshing the plurality of processing chips is achieved, the technical effect of improving the efficiency of the software refreshing on the plurality of processing chips in the domain controller is achieved, and the technical problem of low efficiency of the software refreshing on the plurality of processing chips in the domain controller in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a software flashing method of a domain controller according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative diagnostic device in communication with a domain controller according to an embodiment of the present invention;
FIG. 3 is an interactive diagram of an alternative diagnostic instrument software brush-up with a domain controller according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a software flashing device of a domain controller according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a software flashing system of a domain controller according to an embodiment of the invention;
fig. 6 is a schematic diagram of a domain controller according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided a software flashing method embodiment of a domain controller, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
Fig. 1 is a flowchart of a software flashing method of a domain controller according to an embodiment of the present invention, wherein the domain controller comprises a plurality of processing chips. As shown in fig. 1, the method comprises the steps of:
step S102, in response to the connection of the domain controller and the diagnostic apparatus, a first processing chip of the plurality of processing chips is controlled to establish communication connection with the diagnostic apparatus, and a second processing chip of the plurality of processing chips is controlled to establish communication connection with the first processing chip, wherein the second processing chip is used for representing chips of the plurality of processing chips except the first processing chip.
The domain controller may be any multi-core domain controller in a new energy vehicle. The multi-core domain controller integrates a plurality of core processors in one controller to improve the processing capacity and the parallel processing capacity, has high performance, low power consumption and rich peripheral interfaces, and can meet various complex control requirements. The plurality of core processors are respectively located in the plurality of processing chips. The diagnostic apparatus described above may be any diagnostic apparatus capable of performing software flashing on a domain controller of a vehicle in the related art, and is not particularly limited in this embodiment.
In an alternative embodiment, in the case that software flashing is required for the domain controller of the vehicle, the domain controller may be connected to the diagnostic apparatus first, and in the case that connection of the domain controller to the diagnostic apparatus is detected, the controller may establish a communication connection with a first processing chip of the plurality of processing chips, and simultaneously control the first processing chip to establish a communication connection with a second processing chip. For example, a transmission address and a reception address of the first processing chip and a reception address of the second processing chip may be created, and then a communication connection of the first processing chip and the diagnostic apparatus may be established based on the reception address of the first processing chip and a communication connection of the first processing chip and the second processing chip may be established based on the transmission address of the first processing chip and the reception address of the second processing chip. But is not limited thereto.
The first processing chip is located in the domain controller and is directly connected with the diagnostic instrument. The second processing chip is a processing chip except the first processing chip in the plurality of processing chips in the domain controller.
Note that, the communication connection between the first processing chip and the diagnostic apparatus, and between the first processing chip and the second processing chip may be implemented by using an internet protocol (Diagnostics Over Internet Protocol, DOIP) in the process of diagnosing communication, but is not limited thereto, and in this embodiment, only DOIP is taken as an example for illustration.
Step S104, receiving a plurality of software refreshing data packets sent by the diagnostic apparatus through the first processing chip, wherein the plurality of software refreshing data packets are in one-to-one correspondence with the plurality of processing chips.
The plurality of software refreshing data packets are used for carrying out software refreshing on the plurality of processing chips, wherein the plurality of software refreshing data packets are in one-to-one correspondence with the plurality of processing chips, and the software refreshing data packets of different processing chips are different.
In an alternative embodiment, in the case that the first processing chip establishes a communication connection with the diagnostic apparatus, and the first processing chip also establishes a communication connection with the second processing chip, the diagnostic apparatus may send a plurality of software-written data packets to the first processing chip based on the communication connection, and the first processing chip may further receive the plurality of software-written data packets sent by the diagnostic apparatus.
And S106, transmitting the software refreshing data packet corresponding to the second processing chip in the plurality of software refreshing data packets to the second processing chip through the first processing chip.
In an alternative embodiment, after the first processing chip receives the plurality of software flashing data packets sent by the diagnostic apparatus, the second processing chip sends the corresponding software flashing data packet to the second processing chip, so that the second processing chip can perform software flashing based on the corresponding software flashing data packet.
Step S108, software refreshing is performed on the plurality of processing chips based on the plurality of software refreshing data packets.
In an alternative embodiment, after the first processing chip receives the plurality of software refreshing data packets, the software refreshing data packets corresponding to the first processing chip can be sent to the corresponding plurality of second processing chips while the software refreshing data packets corresponding to the second processing chips are refreshed, and then the plurality of second processing chips can simultaneously refresh the software based on the corresponding software refreshing data packets, so that the refreshing efficiency of the diagnostic apparatus to the plurality of processing chips in the domain controller can be improved.
In another alternative embodiment, after the first processing chip receives and reads the software refreshing data packet, the software refreshing data packet corresponding to the second processing chip may be sent to the corresponding second processing chips, and after the second processing chips receive the corresponding software refreshing data packet, the first processing chip and the second processing chip may simultaneously perform software refreshing based on the corresponding software refreshing data packet, so that the refreshing efficiency of the diagnostic apparatus to the plurality of processing chips in the domain controller may be improved.
In the embodiment of the invention, the response domain controller is connected with the diagnostic instrument, so that the first processing chip in the plurality of processing chips is controlled to be in communication connection with the diagnostic instrument, and the second processing chip in the plurality of processing chips is controlled to be in communication connection with the first processing chip; receiving a plurality of software refreshing data packets sent by a diagnostic instrument through a first processing chip; the method comprises the steps that a first processing chip sends a software refreshing data packet corresponding to a second processing chip in a plurality of software refreshing data packets to the second processing chip; and a manner of software flushing the plurality of processing chips based on the plurality of software flushing data packets. It is easy to notice that the software refreshing is performed on the plurality of processing chips through the plurality of software refreshing data packets, so that the purpose that the plurality of processing chips can be simultaneously refreshed without sequentially refreshing the plurality of processing chips is achieved, the technical effect of improving the efficiency of the software refreshing on the plurality of processing chips in the domain controller is achieved, and the technical problem of low efficiency of the software refreshing on the plurality of processing chips in the domain controller in the related art is solved.
Optionally, controlling a first processing chip of the plurality of processing chips to establish a communication connection with the diagnostic apparatus, and controlling a second processing chip of the plurality of processing chips to establish a communication connection with the first processing chip includes: creating a first transmitting address of a first processing chip, a first receiving address of the first processing chip and a second receiving address of a second processing chip; the first processing chip is controlled to establish communication connection with the diagnostic instrument through the first receiving address; and controlling the first processing chip and the second processing chip to establish communication connection through the first transmitting address and the second receiving address.
The first sending Address may be a diagnostic Address (SA) set up for the first processing chip alone, which may be referred to as SA-SOC1, and after the first sending Address is set up, the first processing chip may establish a communication connection with the second processing chip, and send a plurality of software brush data packets to a plurality of second processing chips. The first receiving address is the chip address of the first processing chip, and the second receiving address is the chip address of the second processing chip. The first receiving address can enable the first processing chip to receive a plurality of software refreshing data packets sent by the diagnostic instrument, and the second receiving address can enable the second processing chip to receive corresponding software refreshing data packets sent by the first processing chip.
In an alternative embodiment, first a first transmit address SA-SOC1 and a first receive address may be created for a first processing chip, and a second receive address may be created for a second processing chip, based on the first receive address, the first processing chip may establish a communication connection with the diagnostic apparatus, based on the first transmit address and the second receive address, the first processing chip may establish a communication connection with the second processing chip. For example, the diagnostic instrument may establish a DOIP communication connection with the first processing chip based on its own address and the chip address of the first processing chip (i.e., the first receiving address), while the first processing chip may establish a DOIP communication connection with the chip address of the second processing chip (i.e., the second receiving address) based on a separate diagnostic instrument address SA-SOC1 (i.e., the first transmitting address).
Optionally, the controlling the first processing chip to establish a communication connection with the diagnostic apparatus through the first receiving address includes: receiving a route activation request sent by a diagnostic instrument through a first processing chip, wherein the route activation request carries a second sending address of the diagnostic instrument; returning a route activation response to the diagnostic instrument through the first processing chip, wherein the route activation response carries a first receiving address; and controlling the first processing chip to establish communication connection with the diagnostic instrument through the second transmitting address and the first receiving address.
The route activation request may be sent to the domain controller by the diagnostic apparatus, used for software flashing to the domain controller, or used for fault diagnosis to the domain controller, but is not limited thereto. The second transmission address may be a diagnostic device address SA of the diagnostic device itself.
In an alternative embodiment, when the diagnostic apparatus is ready to establish a communication connection with the first processing chip, the diagnostic apparatus may first generate a routing activation request carrying a second sending address, for sending a plurality of software flush data packets to the first processing chip, after the first processing chip receives the routing activation request, may generate a routing response request, and send the routing response request to the diagnostic apparatus, where the routing response request includes a first receiving address of the created first processing chip, and after the diagnostic apparatus receives the routing response request, the diagnostic apparatus may establish a communication connection between the diagnostic apparatus and the first processing chip based on the second sending address and the first receiving address.
Optionally, receiving, by the first processing chip, a plurality of software swipe data packets sent by the diagnostic apparatus, including: and sequentially receiving a plurality of software refreshing data packets sent by the diagnostic instrument through the first processing chip.
In an alternative embodiment, the first processing chip may sequentially receive a plurality of software swipe data packets sent by the diagnostic device, with the first processing chip establishing a communication connection with the diagnostic device.
In another alternative embodiment, where the first processing chip establishes a communication connection with the diagnostic device, the first processing chip may receive multiple software swipe data packets sent by the diagnostic device at the same time.
Optionally, the first processing chip sends the software-written data packet corresponding to the second processing chip in the plurality of software-written data packets to the second processing chip, including: and responding to the first processing chip receiving the software refreshing data packet corresponding to any one of the second processing chips, and sending the software refreshing data packet corresponding to any one of the second processing chips to any one of the processing chips through the first processing chip.
In an optional embodiment, when the first processing chip receives the software flashing data packet corresponding to any one of the plurality of second processing chips, the first processing chip may send the software flashing data packet corresponding to any one of the second processing chips to the corresponding any one of the software flashing data packets based on the communication connection between the first processing chip and the second processing chip, and then any one of the second processing chips may perform software flashing based on the corresponding software flashing data packet.
In another alternative embodiment, in the case that the first processing chip receives a plurality of software flashing data packets corresponding to the plurality of second processing chips, the first processing chip may send the plurality of software flashing data packets to the corresponding plurality of second processing chips at the same time based on the preset correspondence, and then the plurality of second processing chips may perform software flashing based on the corresponding software flashing data packets at the same time.
Optionally, the software flashing of the domain controller further comprises: and receiving a refreshing result returned by the second processing chip through the first processing chip, wherein the refreshing result is sent by the second processing chip after the refreshing is finished by utilizing a software refreshing data packet corresponding to the second processing chip.
In an alternative embodiment, in the case that the second processing chip receives the corresponding software flashing data packet, the second processing software may perform software flashing based on the corresponding software flashing data packet, after the software flashing is completed, the second processing chip may generate a flashing result, which indicates that the flashing is completed, and send the software flashing result to the first processing chip, and the first processing chip may accept the flashing result sent by the second processing chip.
Fig. 2 is a schematic diagram of an alternative communication connection between a diagnostic device and a domain controller according to an embodiment of the present invention, where the domain controller may be isolated from each other, i.e. only the processing chip 1 is in a DOIP communication connection with the diagnostic device, and the other processing chips, i.e. the processing chip 2, the processing chip 3 and the processing chip 4 are in a communication connection with the processing chip 1, as shown in fig. 2. As can be seen from fig. 2, the processing chip 1 is a first processing chip, and the processing chip 2, the processing chip 3, and the processing chip 4 are second processing chips.
It should be noted that the diagnostic apparatus only establishes a DOIP link with the processing chip 1. The processing chip 1 may exist as a gateway, i.e. the processing chip 1 may send diagnostic service protocol (Unified Diagnostic Services, UDS) messages to the processing chips 2, 3, 4, enabling software flashing of the processing chips 2, 3, 4. From the outside of the domain controller, the diagnostic apparatus can realize software flashing of 4 chips of the whole domain controller by only sending a UDS message to the processing chip 1. And, the domain controller adopts a parallel brushing implementation manner, that is, the processing chip 2 does not need to wait for the brushing. The processing chip 3 is restarted to be refreshed, and after the processing chip 1 receives the software program installation package (namely the software refreshing data package) corresponding to the processing chip from the diagnostic apparatus, the refreshing function can be synchronously realized for a plurality of corresponding chips.
It should be noted that, the number of the second processing chips in fig. 2 is not limited to the processing chips 2-4, and in this embodiment, only the processing chips 2-4 are taken as an example for illustration, and the number of the second processing chips may be other, and is not limited in this embodiment.
FIG. 3 is an interaction diagram of software flashing of an optional diagnostic device and a domain controller according to an embodiment of the present invention, as shown in FIG. 3, in a software flashing scenario, the diagnostic device may send a route activation request to a processing chip 1 in the domain controller, after the processing chip 1 receives the route activation request, may generate a route activation response, and return the route activation response to the diagnostic device, after receiving the route activation response, the diagnostic device may sequentially send an installation packet (i.e., a software flashing data packet) of the processing chip 1-4, after receiving the installation packet, the processing chip 1 may flush a first processing chip based on the corresponding installation packet, "flush the processing chip 1" in FIG. 3, and simultaneously, the first processing chip may also send the corresponding installation packet of the processing chip 2-4 to the processing chip 2-4, after receiving the corresponding installation packet, the processing chip 2-4 may flush the processing chip 2 based on the corresponding installation packet, i.e., "flush the processing chip 2-4 with the processing chip 3 and flush the processing chip 4 with the processing chip 3" after finishing the flushing and the flushing of the processing chip 2-4 with the processing chip 3.
It should be noted that, in this embodiment, the diagnostic apparatus address is SA-TEST, and the processing chips 2, 3, and 4 cannot establish additional DOIP links with the processing chip 1. Therefore, in this embodiment, an SA address is set up for the processing chip 1 alone by adding an SA address, which is abbreviated as SA-SOC1 in this embodiment. Forming independent DOIP links for SA-SOC1 and processing chips 2, 3, 4. The parallel brushing efficiency can be improved by establishing communication connection through the two diagnostic instrument addresses.
In the fault diagnosis scene, after the domain controller is connected with the diagnostic instrument, the diagnostic instrument can automatically establish DOIP links with all processing chips in the domain controller (the DOIP links are established by the diagnostic instrument address SA and the processing chip address TA, and a unique link is formed after binding), and at the moment, the diagnostic instrument can directly perform fault diagnosis on all the processing chips.
The software refreshing method of the domain controller of the embodiment adopts a whole-board refreshing mode and a parallel refreshing mode. After the whole-board flush is adopted (i.e. the domain controller is regarded as a whole), the diagnostic apparatus only needs to establish a DOIP link with one node, and then software flush is started. Greatly improves the software refreshing speed of the controller and accelerates the production and manufacturing beats of factories. The more chips on the controller, the more significant the efficiency improvement. If 5 chips are arranged on the controller, the efficiency is improved to be 5 times of the original efficiency, and the production efficiency is obviously improved. After the whole board is adopted for brush writing, the development of diagnostic instruments of original equipment manufacturers (Original Equipment Manufacturer, OEM) is simplified, the diagnostic instrument programs of 5 chips are originally developed, only one diagnostic instrument program of a domain controller is required to be developed at present, and the development efficiency in the development process is improved exponentially.
Example 2
According to another aspect of the embodiments of the present invention, a software flashing device of a domain controller is provided, where the device may execute the software flashing method of the domain controller provided in the foregoing embodiment 1, and a specific implementation manner and a preferred application scenario are the same as those of the foregoing embodiment 1, and are not described herein.
FIG. 4 is a schematic diagram of a software flashing device of a domain controller according to an embodiment of the present invention, wherein the domain controller includes a plurality of processing chips, as shown in FIG. 4, the device includes: a control module 42, configured to control a first processing chip of the plurality of processing chips to establish a communication connection with the diagnostic apparatus and a second processing chip of the plurality of processing chips to establish a communication connection with the first processing chip in response to the domain controller being connected with the diagnostic apparatus, the second processing chip being configured to characterize a chip of the plurality of processing chips other than the first processing chip; the receiving module 44 is configured to receive, through the first processing chip, a plurality of software flashing data packets sent by the diagnostic apparatus, where the plurality of software flashing data packets are in one-to-one correspondence with the plurality of processing chips; the sending module 46 is configured to send, through the first processing chip, a software-written data packet corresponding to a second processing chip in the plurality of software-written data packets to the second processing chip; the software flashing module 48 is configured to perform software flashing on the plurality of processing chips based on the plurality of software flashing data packets.
Optionally, the control module includes: a creating unit for creating a first transmission address of the first processing chip, a first reception address of the first processing chip, and a second reception address of the second processing chip; the first control unit is used for controlling the first processing chip to establish communication connection with the diagnostic instrument through the first receiving address; and the second control unit is used for controlling the first processing chip and the second processing chip to establish communication connection through the first sending address and the second receiving address.
Optionally, the first control unit includes: the receiving subunit is used for receiving a route activation request sent by the diagnostic apparatus through the first processing chip, wherein the route activation request carries a second sending address of the diagnostic apparatus; a return subunit, configured to return a route activation response to the diagnostic apparatus through the first processing chip, where the route activation response carries the first receiving address; and the control subunit is used for controlling the first processing chip to establish communication connection with the diagnostic instrument through the second transmitting address and the first receiving address.
Optionally, the receiving module includes: and the receiving unit is used for sequentially receiving the plurality of software refreshing data packets sent by the diagnostic instrument through the first processing chip.
Optionally, the sending module includes: and the sending unit is used for responding to the first processing chip to receive the software refreshing data packet corresponding to any one of the second processing chips, and sending the software refreshing data packet corresponding to any one of the second processing chips through the first processing chip.
Optionally, the software flashing of the domain controller further comprises: and the return module is used for receiving the refreshing result returned by the second processing chip through the first processing chip, wherein the refreshing result is sent by the second processing chip after the refreshing of the data packet by the software refreshing corresponding to the second processing chip is finished.
Example 3
According to another aspect of the embodiment of the invention, a software flashing system of a domain controller is also provided.
FIG. 5 is a schematic diagram of a software flashing system of a domain controller, as shown in FIG. 5, according to an embodiment of the invention, the system comprising: a diagnostic device 52 for transmitting a plurality of software brush data packets; domain controller 54. The domain controller 54 includes a plurality of processing chips, as shown in fig. 5, the domain controller 54 includes a first processing chip 54-1 and a second processing chip 54-2, the first processing chip 54-1 of the plurality of processing chips is in communication connection with the diagnostic device 52, the second processing chip 54-2 of the plurality of processing chips is in communication connection with the first processing chip 54-1, and the second processing chip 54-2 is used for characterizing chips of the plurality of processing chips except the first processing chip 54-1; the first processing chip 54-1 is configured to receive a plurality of software refreshing data packets, send a software refreshing data packet corresponding to the second processing chip 54-2 in the plurality of software refreshing data packets to the second processing chip 54-2, and perform software refreshing based on the software refreshing data packet corresponding to the first processing chip 54-1, where the second processing chip 54-2 is configured to perform software refreshing on the second processing chip 54-2 based on the software refreshing data packet corresponding to the second processing chip 54-2.
Example 4
According to another aspect of the embodiment of the present invention, there is also provided a domain controller.
Fig. 6 is a schematic diagram of a domain controller according to an embodiment of the present invention, as shown in fig. 6, the domain processor includes: the plurality of processing chips 62 includes a first processing chip 62-1 and a second processing chip 62-2.
Wherein the first processing chip 62-1 establishes communication connection with the diagnostic device 64, the second processing chip 62-2 establishes communication connection with the first processing chip 62-1, and the second processing chip 62-2 is used for characterizing chips other than the first processing chip 62-1 among the plurality of processing chips; the first processing chip 62-1 is configured to receive a plurality of software refreshing data packets, send a software refreshing data packet corresponding to the second processing chip 62-2 in the plurality of software refreshing data packets to the second processing chip 62-2, and perform software refreshing based on the software refreshing data packet corresponding to the first processing chip 62-1, where the second processing chip 62-2 is configured to perform software refreshing on the second processing chip 62-2 based on the software refreshing data packet corresponding to the second processing chip 62-2.
Example 5
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the software flashing method of the domain controller of any one of the above is performed in a processor of a device in which the program is controlled to run.
Example 6
According to another aspect of the embodiment of the present invention, there is also provided an electronic device, including: the domain controller described above.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method of software flashing of a domain controller, the domain controller comprising a plurality of processing chips, the method comprising:
in response to the domain controller being connected with a diagnostic instrument, controlling a first processing chip of the plurality of processing chips to establish a communication connection with the diagnostic instrument and controlling a second processing chip of the plurality of processing chips to establish a communication connection with the first processing chip, the second processing chip being used to characterize a chip of the plurality of processing chips other than the first processing chip;
receiving a plurality of software refreshing data packets sent by the diagnostic instrument through the first processing chip, wherein the plurality of software refreshing data packets are in one-to-one correspondence with the plurality of processing chips;
transmitting a software refreshing data packet corresponding to the second processing chip in the plurality of software refreshing data packets to the second processing chip through the first processing chip;
and performing software refreshing on the plurality of processing chips based on the plurality of software refreshing data packets.
2. The software flashing method of a domain controller of claim 1, wherein controlling a first processing chip of the plurality of processing chips to establish a communication connection with the diagnostic instrument and controlling a second processing chip of the plurality of processing chips to establish a communication connection with the first processing chip comprises:
creating a first transmitting address of the first processing chip, a first receiving address of the first processing chip and a second receiving address of the second processing chip;
controlling the first processing chip to establish the communication connection with the diagnostic instrument through the first receiving address;
and controlling the first processing chip and the second processing chip to establish the communication connection through the first sending address and the second receiving address.
3. The software flashing method of a domain controller according to claim 2, wherein controlling the first processing chip to establish the communication connection with the diagnostic apparatus via the first received address comprises:
receiving a route activation request sent by the diagnostic apparatus through the first processing chip, wherein the route activation request carries a second sending address of the diagnostic apparatus;
returning a route activation response to the diagnostic apparatus through the first processing chip, wherein the route activation response carries the first receiving address;
and controlling the first processing chip to establish the communication connection with the diagnostic instrument through the second transmitting address and the first receiving address.
4. The software flashing method of a domain controller according to claim 1, wherein receiving, by the first processing chip, a plurality of software flashing data packets sent by the diagnostic device, comprises:
and sequentially receiving the plurality of software refreshing data packets sent by the diagnostic instrument through the first processing chip.
5. The software flashing method of a domain controller of claim 4, wherein transmitting, by the first processing chip, a software flashing data packet corresponding to the second processing chip of the plurality of software flashing data packets to the second processing chip, comprises:
and responding to the first processing chip receiving the software refreshing data packet corresponding to any one of the second processing chips, and sending the software refreshing data packet corresponding to any one of the second processing chips to any one of the processing chips through the first processing chip.
6. The software flashing method of a domain controller of claim 1, wherein the software flashing of the domain controller further comprises:
and receiving a refreshing result returned by the second processing chip through the first processing chip, wherein the refreshing result is sent by the second processing chip after the refreshing of the data packet by using the software refreshing corresponding to the second processing chip is finished.
7. A software flashing system for a domain controller, comprising:
the diagnostic instrument is used for sending a plurality of software refreshing data packets;
the domain controller comprises a plurality of processing chips, a first processing chip in the plurality of processing chips is in communication connection with the diagnostic instrument, a second processing chip in the plurality of processing chips is in communication connection with the first processing chip, and the second processing chip is used for representing chips except the first processing chip in the plurality of processing chips;
the first processing chip is configured to receive the plurality of software refreshing data packets, send a software refreshing data packet corresponding to the second processing chip in the plurality of software refreshing data packets to the second processing chip, and perform software refreshing based on the software refreshing data packet corresponding to the first processing chip, where the second processing chip is configured to perform software refreshing on the second processing chip based on the software refreshing data packet corresponding to the second processing chip.
8. A domain controller, comprising:
the system comprises a plurality of processing chips, a diagnosis device and a control device, wherein the plurality of processing chips comprise a first processing chip and a second processing chip, the first processing chip is in communication connection with the diagnosis device, the second processing chip is in communication connection with the first processing chip, and the second processing chip is used for representing chips except the first processing chip in the plurality of processing chips;
the first processing chip is used for receiving a plurality of software refreshing data packets, sending the software refreshing data packets corresponding to the second processing chip in the plurality of software refreshing data packets to the second processing chip, and performing software refreshing based on the software refreshing data packets corresponding to the first processing chip, wherein the second processing chip is used for performing software refreshing on the second processing chip based on the software refreshing data packets corresponding to the second processing chip.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the software flashing method of the domain controller of any of claims 1 to 6 is performed in a processor of a device in which the program is controlled to run.
10. An electronic device, comprising: the domain controller of claim 8.
CN202311802788.3A 2023-12-25 2023-12-25 Domain controller, software refreshing method and system thereof and storage medium Pending CN117873029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311802788.3A CN117873029A (en) 2023-12-25 2023-12-25 Domain controller, software refreshing method and system thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311802788.3A CN117873029A (en) 2023-12-25 2023-12-25 Domain controller, software refreshing method and system thereof and storage medium

Publications (1)

Publication Number Publication Date
CN117873029A true CN117873029A (en) 2024-04-12

Family

ID=90589523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311802788.3A Pending CN117873029A (en) 2023-12-25 2023-12-25 Domain controller, software refreshing method and system thereof and storage medium

Country Status (1)

Country Link
CN (1) CN117873029A (en)

Similar Documents

Publication Publication Date Title
CN106911728B (en) The choosing method and device of host node in distributed system
CN105450588B (en) A kind of data transmission method and RDMA network interface card based on RDMA
CN111865742B (en) Vehicle and in-vehicle message transmission method
CN110324281B (en) Vehicle-mounted network controller refreshing system and method
CN101997854B (en) Processing system and method for providing data service
CN111586145B (en) Vehicle diagnosis method, system, electronic equipment and storage medium
CN102447624A (en) Load balancing method in server cluster, as well as node server and cluster
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN115396529A (en) Multichannel communication method, device, terminal equipment and storage medium
CN115657646B (en) Test method and device of CAN controller
CN117873029A (en) Domain controller, software refreshing method and system thereof and storage medium
CN115023919A (en) Firewall rule updating method and device, server and storage medium
JP2008236217A (en) Flexray network connecting method, flexray network and electronic control unit for flexray network
CN114584590B (en) Data transmission method, system, device and storage medium
CN109510864B (en) Forwarding method, transmission method and related device of cache request
CN109451047A (en) Data transferring method, device, equipment and the storage medium of monitoring warning system
CN116389440A (en) UDS protocol stack capable of dynamically adapting transmission layer, diagnosis method and electronic equipment
CN115776526B (en) Vehicle-mounted diagnosis message protocol conversion control method, device, equipment and medium
CN115913809B (en) Data distribution communication method, system, computer device and storage medium
CN118210635B (en) Method and system for realizing embedded memory sharing based on CAN bus
CN115865944B (en) Method, system, device, equipment and storage medium for point-to-point communication between equipment
CN116243681A (en) Method and device for synchronizing vehicle identification codes among ECUs (electronic control units) and electronic equipment
WO2024124964A1 (en) Vehicle diagnostic routing method and apparatus, and system, vehicle and storage medium
CN118012017A (en) Diagnostic processing method, device and equipment for vehicle, vehicle and storage medium
CN117667300A (en) Computing system and related method

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