Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing powerTechnical Field
The invention relates to the technical field of vehicle-mounted systems, in particular to a vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power.
Background
With the fact that the vehicle-mounted system and the bottom layer data of the whole vehicle are interacted more and more frequently and are fused with the vehicle more and more closely, even more customized design and function optimization exist, the vehicle-mounted system hardware is no longer an isolated hardware unit, and the vehicle-mounted system hardware becomes an important ring of the whole vehicle system architecture. The original modification and upgrading mode can not meet the requirement of intelligent hardware iteration.
The requirement is changed, the technology must be upgraded, the traditional refitting market cannot meet the requirements for safety and performance, the traditional whole vehicle control program is completed by the ECU, and along with the continuous increase of the development functions of the vehicle, the ECU unit of the distributed module cannot meet the requirement. With the development of automobile intellectualization, the number of vehicle-mounted sensors is more and more, the sensors and the ECUs are in one-to-one correspondence, so that the integrity of a vehicle is reduced, the complexity of a circuit is also increased sharply, and at the moment, stronger centralized architectures such as a DCU (domain controller) and an MDC (multi-domain controller) gradually replace a distributed architecture.
In the era of intelligent automobiles, the requirements for vehicle algorithms and hardware adaptation are higher, so that vehicle enterprises can carry out iterative upgrade and redundant design according to products of the self, and a third party cannot meet the requirements because the automatic driving algorithms, the hardware, the vehicle-mounted machine system and the like are not completely provided by suppliers any more, and more are developed autonomously. The products provided by modified manufacturers can not be in the same day as the original factories in terms of abundance of scene functions and actual experience. In addition, the reliability problem of non-vehicle-specification-level products, the electrical potential safety hazard involved in product modification, the quality assurance problem of manufacturers and the like are solved. The design service life of a vehicle is 8-10 years, and the vehicle-mounted chip plus the redundancy design is used for 3-5 years, so that the development function is increased and diversified with time. The car can continue to upgrade the software OTA after 5 years of use, but the hardware resources are far from meeting the requirements of new functions.
Therefore, a method for adaptively upgrading a vehicle network architecture based on intelligent hardware computing power is needed.
Retrieving the chinese invention patent CN 102761626B discloses a vehicle network node addressing and upgrading method, the method includes the following steps, S1: the external diagnostic equipment determines the position of the target node in the automobile network by addressing the target node; s2: the external diagnostic equipment carries out password verification on the target node so as to obtain the upgrading authority of the target node; s3: and the external diagnostic equipment transmits data to the target node to update the target node. The operation of upgrading the LIN node of the vehicle by using the external diagnostic equipment is completely consistent with the CAN node, and the completely non-invasive operation without other equipment CAN be realized only by a unique addressing mode, so that the method is simple, convenient, time-saving and labor-saving, and is greatly beneficial to standard operation. But the upgrading is single, the adaptability is poor, and the benefit and the integration of hardware resources are neglected.
The invention patent CN 106569847B of retrieval China discloses a method for realizing the remote upgrade of IAP (Internet access protocol) for a vehicle-mounted system based on a mobile network, wherein a vehicle-mounted platform downloads an upgrade file to the local from a remote server through the mobile network, and then the vehicle-mounted platform transmits the upgrade file to an embedded device to be upgraded through an interface to realize the remote upgrade of the embedded device. Meanwhile, in the implementation of upgrading inside the embedded device, the upgrading function codes are embedded into the user function codes, the received upgrading files are temporarily stored in a certain area of the flash, the running user program is not covered, and the upgrading files are copied to the user program area after the upgrading is verified successfully, so that the user program can still run normally even under the condition of upgrading failure, and the risk of upgrading failure caused by accidents in the upgrading process is reduced. However, the configuration file is single, the failure risk exists in the upgrading process, the requirement of developing and upgrading the intelligent automobile cannot be met, and the integration and upgrading can not be carried out by combining hardware resources, so that the performance of the automobile is improved.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
Aiming at the problems in the related art, the invention provides a vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power, which comprises the steps of constructing a combination of a vehicle-mounted network architecture and coupling a plurality of groups of target image files by combining a single object identifier, determining the optimal target image file to improve the computing power performance of the existing vehicle by calibrating the coupling relation between the target image file identifier and the object identifier, has good adaptability, high upgrading efficiency and high precision, effectively avoids the problem that part of vehicle-mounted ECUs cannot be upgraded due to hardware support, improves the fault tolerance rate by verifying data bytes of the target image file of Flash, receives upgrading result information fed back from nodes of the vehicle-mounted ECU equipment by an upper computer, loads current reduction points on the nodes of the vehicle-mounted ECU equipment, acquires reduction identification information and reduces the reduction identification information, and can ensure that even under the condition of failed upgrading, the user program can still normally run, and the risk of upgrading failure caused by accidents in the upgrading process is reduced, so that the technical problems in the prior related art are solved.
The technical scheme of the invention is realized as follows:
a self-adaptive upgrading method of a vehicle-mounted network architecture based on intelligent hardware computing power comprises the following steps:
s1, connecting the sensor actuators of each part of the vehicle body with the region ECU through serial wiring harnesses in advance, and connecting the sensors and the actuators of different regions of the vehicle body with the vehicle-mounted ECU through the serial wiring harnesses;
s2, converting different communication buses into consistent communication buses by the communication interface, and connecting the upper computer with the vehicle-mounted ECU through the communication interface;
s3, the upper computer scans the nodes of the vehicle-mounted ECU equipment and acquires a target upgrade package;
s4, extracting the object identification of the target upgrade package, and determining the target image file coupled with the target upgrade package, wherein the target image file comprises a plurality of groups of coupled target image files coupled with a single object identification;
and S5, determining that the object identifier is coupled with the target image file and sending the target image file to the vehicle-mounted ECU equipment node so as to instruct the vehicle-mounted ECU equipment node to upgrade according to the target image file.
The upper computer is built and comprises the following steps:
s201, pre-building a target image file storing multiple sources, and calibrating a coupling relation between a target image file identifier and an object identifier, wherein format conversion is carried out;
receiving configuration parameters of the vehicle-mounted ECU and generating a configurable file;
and analyzing the target image file, and performing data extraction and coupling with the configuration file.
The method comprises the following steps that an upper computer scans nodes of the vehicle-mounted ECU equipment and acquires a target upgrade package, and the method further comprises the following steps:
s301, the upper computer detects whether the current vehicle-mounted ECU environment meets the online upgrading condition in advance, wherein:
if not, ending the upgrade;
if satisfy, then the on-vehicle ECU equipment node of host computer scanning obtains current equipment node, and its on-vehicle ECU carries out safe authentication to the host computer, includes:
if the identity authentication is passed, requesting the firmware type and the version number;
if the identity authentication is not passed, the upgrade is finished.
The method for extracting the object identification of the target upgrade package and determining the coupled target image file of the target upgrade package comprises the following steps:
s401, extracting an object identifier of a target upgrade package;
s402, determining and extracting the coupled target image file identifier based on the coupling relation between the pre-stored object identifier and the target image file;
and S403, taking the target image file with the determined target image file identification matching as the screened target image file.
The method for indicating the vehicle-mounted ECU equipment node to upgrade according to the target image file comprises the following steps:
s501, determining a current vehicle-mounted ECU equipment node, and receiving a target mirror image file;
and S502, updating the target image file, receiving the target image file, writing the target image file into Flash, erasing the target image file identification, and finishing the node updating of the vehicle-mounted ECU equipment.
The method comprises the following steps of receiving a target image file, writing the target image file into Flash, and erasing a target image file identifier:
s50201, data bytes of a target image file of Flash are checked, and whether the target image file is complete is determined, wherein:
if not, judging that the upgrade is unsuccessful;
if the configuration parameters of the vehicle-mounted ECU equipment nodes corresponding to the target image file are complete, whether the configuration parameters of the vehicle-mounted ECU equipment nodes corresponding to the target image file are consistent is detected, and if the configuration parameters of the vehicle-mounted ECU equipment nodes are consistent, the upgrading is completed; if not, the upgrade is judged to fail.
The method for indicating the vehicle-mounted ECU equipment node to upgrade according to the target image file further comprises the following steps:
s503, the upper computer receives the upgrade result information fed back by the nodes of the vehicle-mounted ECU equipment, and displays the upgrade result information on the current display page, wherein:
and if the upgrading result information is not received within the set time range, displaying the node configuration parameters of the vehicle-mounted ECU equipment and prompt information of upgrading failure on the current display page.
Wherein, still include the following step:
s6, the vehicle-mounted ECU equipment node generates reduction identification information for the current data packet to be upgraded, writes Flash into the data packet to be upgraded and generates a reduction point, wherein the method comprises the following steps:
and if the configuration parameters of the nodes of the vehicle-mounted ECU equipment and the prompt information of the upgrade failure are displayed on the current display page, the nodes of the vehicle-mounted ECU equipment load the current reduction points, obtain the reduction identification information and reduce the reduction identification information.
Wherein, still include the following step:
and S7, manually upgrading the vehicle-mounted ECU equipment node to the existing target image file version in the upper computer in an off-line manner.
The invention has the beneficial effects that:
the invention relates to a vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power, which comprises the steps of connecting sensor actuators at each part of a vehicle body with regional ECUs through a serial wiring harness, connecting the ECUs in different regions to the vehicle-mounted ECUs through the serial wiring harness, converting different communication buses into consistent communication buses through communication interfaces of the ECUs, connecting an upper computer with the vehicle-mounted ECU through the communication interfaces, scanning nodes of the vehicle-mounted ECU equipment, acquiring a target upgrading packet, extracting an object identifier of the target upgrading packet, determining a target image file coupled with the target upgrading packet, determining that the object identifier is coupled with the target image file, sending the target image file to the nodes of the vehicle-mounted ECU equipment to indicate the nodes of the vehicle-mounted ECU equipment to upgrade according to the target image file, and realizing that a plurality of groups of target image files are coupled by combining a single object identifier and building a combination of the vehicle-mounted network architecture, the method has the advantages that the optimal target image file is determined to improve the computing power performance of the existing vehicle by calibrating the coupling relation between the target image file identification and the object identification, the adaptability is good, the upgrading is efficient and high in precision, the situation that part of vehicle-mounted ECU cannot be upgraded due to hardware support is effectively avoided, the data bytes of the Flash target image file are verified, the fault tolerance rate is improved, the upgrading result information fed back from nodes of the vehicle-mounted ECU equipment is received by the upper computer, the nodes of the vehicle-mounted ECU equipment load current reduction points, the reduction identification information is obtained and reduced, the user program can still normally run even under the condition of upgrading failure, and the risk of upgrading failure caused by accidents in the upgrading process is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic view of a scenario of a vehicle network architecture adaptive upgrade method based on intelligent hardware computing power according to an embodiment of the present invention;
FIG. 2 is a first flowchart illustrating a method for adaptive upgrade of a vehicle network architecture based on intelligent hardware computation according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second method for adaptive upgrade of a vehicle network architecture based on intelligent hardware computation according to an embodiment of the present invention;
FIG. 4 is a third flowchart illustrating a method for adaptive upgrade of a vehicle network architecture based on intelligent hardware computation according to an embodiment of the present invention;
fig. 5 is a fourth flowchart illustrating a method for adaptively upgrading a vehicle-mounted network architecture based on intelligent hardware computing power according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
According to the embodiment of the invention, a vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power is provided.
As shown in fig. 1-2, the method for adaptively upgrading a vehicle network architecture based on intelligent hardware computing power according to an embodiment of the present invention includes the following steps:
s1, connecting the sensor actuators of each part of the vehicle body with the region ECU through serial wiring harnesses in advance, and connecting the sensors and the actuators of different regions of the vehicle body with the vehicle-mounted ECU through the serial wiring harnesses;
s2, converting different communication buses into consistent communication buses by the communication interface, and connecting the upper computer with the vehicle-mounted ECU through the communication interface;
s3, the upper computer scans the nodes of the vehicle-mounted ECU equipment and acquires a target upgrade package;
s4, extracting the object identification of the target upgrade package, and determining the target image files coupled with the target upgrade package, wherein the target image files comprise a plurality of groups of target image files coupled with a single object identification;
and S5, determining that the object identifier is coupled with the target image file and sending the target image file to the vehicle-mounted ECU equipment node so as to instruct the vehicle-mounted ECU equipment node to upgrade according to the target image file.
By means of the technical scheme, the combination of the vehicle-mounted network architecture is built and combined with a single object identifier to couple a plurality of groups of target image files, the coupling relation between the target image file identifier and the object identifier is calibrated, the optimal target image file is determined to improve the computing power performance of the existing vehicle, the adaptability is good, the upgrading is efficient, the precision is high, and the situation that part of vehicle-mounted ECUs cannot be upgraded due to the fact that hardware is not supported is effectively avoided.
In addition, as shown in fig. 4, the construction of the upper computer comprises the following steps:
s201, pre-building a target image file storing multiple sources, and calibrating a coupling relation between a target image file identifier and an object identifier, wherein format conversion is carried out;
receiving configuration parameters of the vehicle-mounted ECU and generating a configurable file;
and analyzing the target image file, and performing data extraction and configuration file coupling.
Wherein, the host computer scans on-vehicle ECU equipment node to obtain the target upgrade package, still includes following step:
s301, the upper computer detects whether the current vehicle-mounted ECU environment meets the online upgrading condition in advance, wherein:
if not, ending the upgrade;
if satisfy, then the on-vehicle ECU equipment node of host computer scanning obtains current equipment node, and its on-vehicle ECU carries out safe authentication to the host computer, includes:
if the identity authentication is passed, requesting the firmware type and the version number;
if the identity authentication is not passed, the upgrade is finished.
In addition, as shown in fig. 5, extracting the object identifier of the target upgrade package, and determining the target image file coupled with the target upgrade package includes the following steps:
s401, extracting an object identifier of a target upgrade package;
s402, determining and extracting the coupled target image file identifier based on the coupling relation between the pre-stored object identifier and the target image file;
and S403, taking the target image file with the determined target image file identification matching as the screened target image file.
The method for indicating the vehicle-mounted ECU equipment node to upgrade according to the target image file comprises the following steps:
s501, determining a current vehicle-mounted ECU equipment node, and receiving a target mirror image file;
and S502, updating the target image file, receiving the target image file, writing the target image file into Flash, erasing the target image file identification, and finishing the node updating of the vehicle-mounted ECU equipment.
The method comprises the following steps of receiving a target image file, writing the target image file into Flash, and erasing a target image file identifier:
s50201, data bytes of a target image file of Flash are checked, and whether the target image file is complete is determined, wherein:
if not, judging that the upgrade is unsuccessful;
if the configuration parameters of the vehicle-mounted ECU equipment nodes corresponding to the target image file are complete, whether the configuration parameters of the vehicle-mounted ECU equipment nodes corresponding to the target image file are consistent is detected, and if the configuration parameters of the vehicle-mounted ECU equipment nodes are consistent, the upgrading is completed; if not, the upgrade is judged to fail.
The method comprises the following steps of indicating a vehicle-mounted ECU equipment node to upgrade according to a target image file, and further comprising the following steps:
s503, the upper computer receives the upgrade result information fed back by the nodes of the vehicle-mounted ECU equipment, and displays the upgrade result information on the current display page, wherein:
and if the upgrading result information is not received within the set time range, displaying the node configuration parameters of the vehicle-mounted ECU equipment and prompt information of upgrading failure on the current display page.
By means of the technical scheme, the data bytes of the target image file of Flash are verified, the fault tolerance rate is improved, the upper computer receives the upgrading result information fed back from the nodes of the vehicle-mounted ECU equipment, the user program can still normally run even under the condition of upgrading failure, and the risk of upgrading failure caused by accidents in the upgrading process is reduced.
In addition, as shown in fig. 2, the method further includes the following steps:
s6, the vehicle-mounted ECU equipment node generates reduction identification information for the current data packet to be upgraded, writes Flash into the data packet to be upgraded and generates a reduction point, wherein the method comprises the following steps:
and if the configuration parameters of the nodes of the vehicle-mounted ECU equipment and the prompt information of the upgrade failure are displayed on the current display page, the nodes of the vehicle-mounted ECU equipment load the current reduction points, obtain the reduction identification information and reduce the reduction identification information.
Wherein, still include the following step:
and S7, manually upgrading the vehicle-mounted ECU equipment node to the existing target image file version in the upper computer in an off-line manner.
By means of the technical scheme, a plurality of groups of target image files are coupled by combining single object identification through the combination and the building of the vehicle-mounted network architecture, the optimal target image file is determined to improve the computational power performance of the prior vehicle by calibrating the coupling relation between the target image file identifier and the object identifier, so that the adaptability is good, the upgrading is efficient and high in precision, the problem that part of vehicle-mounted ECU cannot be upgraded due to the fact that hardware is not supported is effectively avoided, the method improves the fault tolerance rate by checking the data bytes of the target image file of the Flash, and receives the upgrade result information fed back from the nodes of the vehicle-mounted ECU equipment through the upper computer, it loads the current restoration point on the vehicle-mounted ECU equipment node, acquires and restores the restoration identification information, the method and the device can ensure that the user program can still normally run even under the condition of failed upgrade, and reduce the risk of failed upgrade caused by accidents in the upgrade process.
In addition, specifically, a Flashloader online upgrade program is installed in the vehicle-mounted ECU, and the Flashloader online upgrade program comprises a Flash driver and an online upgrade protocol communicated with an upper computer, and is used for realizing online upgrade of the vehicle-mounted ECU and guiding operation of the application program.
In addition, the multiple groups of target image files comprise any one or more of a plurality of formats of hex, s19, bin and vbf, the target image files receive configuration parameters of the vehicle-mounted ECU and generate configurable files, the configurable files adopt xml formats and include communication bus types, communication rates, communication IDs, online upgrade protocols, formats of data messages in the protocols and online upgrade processes, and users can configure the parameters or actively generate standard configuration parameters through vehicle-mounted ECU equipment nodes according to requirements.
In addition, a communication interface converts different communication buses into a consistent communication bus, the upper computer is connected with the vehicle-mounted ECU through the communication interface, the communication bus can adopt a WCDMA/HSDPA module SIM5320, and the SIM5320 supports 1.8V and 3V USIM cards.
In summary, according to the above technical solution of the present invention, sensor actuators at each part of a vehicle body are connected to regional ECUs through a serial wiring harness, and ECUs in different regions are connected to a vehicle-mounted ECU through a serial wiring harness, and communication interfaces thereof convert different communication buses into consistent communication buses, an upper computer is connected to the vehicle-mounted ECU through the communication interfaces, scans a node of the vehicle-mounted ECU, acquires a target upgrade package, extracts an object identifier of the target upgrade package, determines a target image file coupled to the target upgrade package, determines that the object identifier is coupled to the target image file and sends the target image file to the node of the vehicle-mounted ECU, so as to instruct the node of the vehicle-mounted ECU to upgrade according to the target image file, thereby implementing that a plurality of sets of target image files are coupled by combining a single object identifier, and by calibrating a coupling relationship between the target image file identifiers and the object identifiers, the method has the advantages that the optimal target image file is determined to improve the computational power performance of the existing vehicle, the adaptability is good, the upgrading is efficient, the upgrading precision is high, the situation that part of vehicle-mounted ECU cannot be upgraded due to the fact that hardware is not supported is effectively avoided, data bytes of the Flash target image file are verified, the fault tolerance rate is improved, the upper computer receives upgrading result information fed back from nodes of the vehicle-mounted ECU device, the nodes of the vehicle-mounted ECU device load current restoration points, restoration identification information is obtained and restored, the fact that a user program can still run normally even under the condition that upgrading fails can be guaranteed, and the risk that upgrading fails due to accidents in the upgrading process is reduced.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.