CN111722870A - Drive configuration method, device and equipment of electric control unit and storage medium - Google Patents

Drive configuration method, device and equipment of electric control unit and storage medium Download PDF

Info

Publication number
CN111722870A
CN111722870A CN202010523590.1A CN202010523590A CN111722870A CN 111722870 A CN111722870 A CN 111722870A CN 202010523590 A CN202010523590 A CN 202010523590A CN 111722870 A CN111722870 A CN 111722870A
Authority
CN
China
Prior art keywords
configuration
control unit
drive
electric control
driven
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.)
Granted
Application number
CN202010523590.1A
Other languages
Chinese (zh)
Other versions
CN111722870B (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.)
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 CN202010523590.1A priority Critical patent/CN111722870B/en
Publication of CN111722870A publication Critical patent/CN111722870A/en
Application granted granted Critical
Publication of CN111722870B publication Critical patent/CN111722870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The embodiment of the invention discloses a drive configuration method, a drive configuration device, drive configuration equipment and a storage medium of an electric control unit. Wherein, the method comprises the following steps: according to the hardware type of an electric control unit to be driven, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer, wherein the configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the drive configuration item; and controlling the electric control unit to be driven to drive by adopting the configuration parameters under the drive configuration items. According to the technical scheme provided by the embodiment of the invention, decoupling mapping between each electric control unit and various drive configuration items is realized, the problem that various drive configurations of the electric control units cannot be realized in the same configuration project is solved, the maintenance cost of the drive configuration of the electric control units is reduced, the maintainability and the independence of the drive configuration of the electric control units are improved, the complexity of the drive configuration process of the electric control units before driving is avoided, and the drive efficiency of the electric control units is improved.

Description

Drive configuration method, device and equipment of electric control unit and storage medium
Technical Field
The embodiment of the invention relates to the technical field of automobile electronic control, in particular to a method, a device, equipment and a storage medium for driving configuration of an electronic control unit.
Background
An automobile Open System Architecture (Automotive Open System Architecture, abbreviated as AUTOSAR) is an automobile electronic software standard, which defines a set of development methods of automobile electronic software, and the automobile electronic software developed by the method has good portability and can be applied to different automobile platforms. In an automobile Electronic Controller conforming to the automotive open system architecture, a microcontroller Abstraction Layer (MCAL) abstracts underlying hardware, and at the moment, each Electronic Control Unit (ECU) is driven only after driving parameters of each ECU are configured on the MCAL Layer, so that hardware driving of a main Control chip associated with the ECU is realized.
Currently, the driving configuration of the MCAL layer to the ECU is usually implemented by a configuration tool EB tresos Studio, which provides a graphical configuration interface to a configuration person, but based on the driving configuration implemented by the configuration tool, only one driving configuration of the ECU can be implemented simultaneously in the same configuration project. In the field of automotive electronics, a certain ECU generally needs to be adapted to different vehicle models or support different drive configurations of the same vehicle model, and at this time, it is required to implement differences of the ECU under different drive configurations on the MCAL layer, and if a configuration tool is used to perform different drive configurations on the ECU, multiple configuration projects need to be maintained to implement the drive configurations, which often increases the maintenance cost of configuration codes, and in the case of more ECU versions, the maintainability and independence of the configuration codes may also be deteriorated.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for drive configuration of an electric control unit, which realize decoupling mapping between each electric control unit and various drive configuration items on a configuration mapping layer, reduce the maintenance cost of the drive configuration of the electric control unit and improve the maintainability and the independence of the drive configuration of the electric control unit.
In a first aspect, an embodiment of the present invention provides a method for configuring driving of an electronic control unit, where the method includes:
according to the hardware type of an electric control unit to be driven, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer, wherein the configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the drive configuration item;
and controlling the electric control unit to be driven to drive by adopting the configuration parameters under the drive configuration items.
In a second aspect, an embodiment of the present invention provides a driving configuration device for an electronic control unit, including:
the configuration item searching module is used for searching a driving configuration item of the electric control unit to be driven in a predefined configuration mapping layer according to the hardware type of the electric control unit to be driven, and the configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the driving configuration item;
and the electric control unit driving module is used for controlling the electric control unit to be driven to drive by adopting the configuration parameters under the driving configuration items.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the drive configuration method of the electronic control unit according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a drive configuration method of an electronic control unit according to any embodiment of the present invention.
The embodiment of the invention provides a drive configuration method, a device, equipment and a storage medium of an electric control unit, firstly, according to the hardware type of the electric control unit to be driven, the drive configuration item of the electric control unit to be driven is searched in a predefined configuration mapping layer, and the configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the drive configuration item, thereby realizing the decoupling mapping between each electric control unit and various drive configuration items in the configuration mapping layer, solving the problem that the various drive configurations of an ECU (electronic control unit) cannot be realized in the same configuration project, reducing the maintenance cost of the drive configuration of the electric control unit, and improving the maintainability and independence of the drive configuration of the electric control unit; and then, the configuration parameters under the drive configuration item are adopted to control the electric control unit to be driven to drive, so that the complexity of the electric control unit in the process of additionally carrying out drive configuration before driving is avoided, and the drive efficiency of the electric control unit is improved.
Drawings
Fig. 1 is a flowchart of a driving configuration method of an electronic control unit according to an embodiment of the present invention;
fig. 2 is a flowchart of a driving configuration method of an electronic control unit according to a second embodiment of the present invention;
fig. 3 is a flowchart of a driving configuration method of an electronic control unit according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a driving configuration device of an electronic control unit according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for configuring a drive of an electronic control unit according to an embodiment of the present invention, where the present embodiment is applicable to configuring a drive of any electronic control unit on a vehicle, and the method can be implemented by a device for configuring a drive of an electronic control unit according to an embodiment of the present invention, and the device can be implemented by software and/or hardware and is integrated into an electronic device for implementing the method.
Specifically, referring to fig. 1, the method specifically includes the following steps:
and S110, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer according to the hardware type of the electric control unit to be driven.
The configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the drive configuration items.
Optionally, in the automotive electronic controller conforming to the automotive architecture, the MCAL is an abstraction of underlying hardware, and to implement driving of the ECU, first, the drive configuration parameters of the ECU are acquired, where the drive configuration parameters of the ECU are related to the hardware type of the ECU, and when the hardware types of the ECU are different, the drive configurations supported by the ECU are also different, so that the drive configuration parameters of the ECU are also different. Therefore, when a certain ECU is driven, the hardware type of the ECU to be driven needs to be determined, wherein the hardware type of the ECU to be driven may be: the identification of the ECU to be driven with different driving configuration requirements of the MCAL layer caused by vehicle model adaptation requirements or hardware differences indicates the hardware type of the ECU to be driven by defining a global variable or a standard quantity, and can identify which ECU to be driven at this time according to the information in the global variable or the standard quantity. After the to-be-driven ECU is identified, the drive configuration item of the to-be-driven ECU can be searched in a configuration mapping layer, wherein the drive configuration of the ECU is realized in an MCAL layer, the specific structure of the MCAL layer can be divided into three layers of architectures, namely an MCAL interface layer, a configuration mapping layer and an MCAL drive layer, the MCAL interface layer is mainly used for receiving interface calling information of the to-be-driven ECU, the configuration mapping layer is mainly used for maintaining the mapping relationship between the hardware type of each ECU and the drive configuration item, and the MCAL drive layer is mainly used for realizing the drive of the to-be-driven ECU.
In order to set multiple drive configurations in each electronic control unit, this embodiment additionally sets a configuration mapping layer in the MCAL layer, where a mapping relationship between the hardware type of each ECU and a drive configuration item is maintained, and the drive configuration item may integrate multiple types of configuration parameters, that is, the drive configuration item may be a configuration set name formed by combining multiple types of configuration parameters, and the like.
Specifically, a configuration mapping table may be designed in advance in the configuration mapping layer, where the configuration mapping table includes drive configuration items corresponding to hardware types of the ECUs under different configuration requirements of the MCAL layer, that is, a corresponding mapping relationship exists between the hardware type of each ECU and the drive configuration item in the configuration mapping table, so that the drive configuration item of the ECU to be driven may be found in the configuration mapping table of the configuration mapping layer according to the hardware type of the ECU to be driven, and the drive configuration item may have one or more types, which facilitates subsequent control of the ECU to be driven to perform driving operation.
Optionally, in order to accurately determine the to-be-driven ECU which needs to be driven at this time, before searching for the driving configuration item of the to-be-driven electronic control unit in the predefined configuration mapping layer in this embodiment, the method may further include: and receiving a driving instruction of the electric control unit to be driven.
And the driving instruction carries the hardware type of the electric control unit to be driven.
Specifically, the driving instruction of the to-be-driven ECU refers to a command for driving the to-be-driven ECU, and the driving instruction carries the hardware type of the to-be-driven ECU. After receiving the driving command, some preparation work is performed for the driving of the to-be-driven ECU, for example, the driving configuration item of the to-be-driven ECU is searched. The drive command carries the hardware type of the ECU to be driven, so that the ECU can be known to be driven according to the hardware type, and the smooth process of subsequently searching the drive configuration item of the ECU to be driven is ensured.
And S120, controlling the electric control unit to be driven to drive by adopting the configuration parameters under the drive configuration item.
The configuration parameters in the drive configuration item refer to parameters that the to-be-driven ECU needs to be configured in the corresponding drive configuration item, and may be, for example, a used channel, a channel type, an initial level, a default period, a duty ratio, and the like.
Specifically, after the drive configuration item of the ECU to be driven is found, the drive configuration item corresponding to the ECU to be driven is known, the configuration parameters under the drive configuration item of the ECU to be driven are used as the drive parameters of the ECU to be driven, and the specific drive process is set by the configuration parameters under the drive configuration item, so that the ECU to be driven can be controlled to be driven.
For example, in the present embodiment, the controlling the to-be-driven ECU to drive may be controlling the to-be-driven ECU to initialize, and a specific process is as follows:
1) acquiring the hardware type of an ECU to be driven;
2) calling an initialization interface of an MCAL interface layer;
3) according to the hardware type of the ECU to be driven, searching a drive configuration item of the ECU to be driven in a predefined configuration mapping layer, wherein the drive configuration item can comprise a general configuration item and an individual configuration item;
4) configuring a general configuration item of an ECU to be driven;
5) judging whether the ECU to be driven has an individual configuration item, if so, initializing after configuring the individual configuration item of the ECU to be driven, and if not, initializing;
6) and finishing the driving of the ECU to be driven, namely finishing the initialization of the ECU to be driven.
For example, a driving configuration manner of the ECU to be driven is described with an example of a configuration of Aurix TC297 PWM in MCAL. In this example, it is assumed that there are two types of hardware of the to-be-driven ECU, i.e., the to-be-driven ECU1 and the to-be-driven ECU2, and the PWM channel 0 and the PWM channel 1 are drive configuration items required by both of the to-be-driven ECUs, so that the PWM channel 0 and the PWM channel 1 are used as general configuration items, and the PWM channel 2 is a drive configuration item required only by the to-be-driven ECU2, so that the PWM channel 2 is used as a separate configuration item of the to-be-driven ECU 2. After configuration is completed, firstly, which ECU needs to be driven currently is judged through a predefined global variable or a predefined standard quantity, then a Pwm _17_ Gtm _ Init () interface is called to carry out initialization of Pwm, the hardware type of the ECU to be driven is mapped to a corresponding drive configuration item, and if the ECU is the ECU1, only a general configuration item needs to be initialized; if the configuration is the ECU2, the configuration is mapped to the general configuration item and the single configuration item CONFIG _ A configuration, then the general configuration item is initialized, then the single configuration item CONFIG _ A is initialized, and the initialization of the corresponding PWM is completed.
The following code is the configuration process of the individual configuration items of the ECU 2:
v. PWM channel 2
If(MCAL_CONFIG==CONFIG_A)
#ifndef Pwm_17_GtmConf_PwmChannel_Pwm_P20_11
#define Pwm_17_GtmConf_PwmChannel_Pwm_P20_11((Pwm_17_ChanneType)2)
#endif
According to the technical scheme provided by the embodiment, firstly, the drive configuration items of the electric control units to be driven are searched in a predefined configuration mapping layer according to the hardware types of the electric control units to be driven, and the mapping relation between the hardware types of the electric control units and the drive configuration items is maintained in the configuration mapping layer, so that the decoupling mapping between each electric control unit and various drive configuration items is realized on the configuration mapping layer, the problem that various drive configurations of an ECU (electronic control unit) cannot be realized in the same configuration project is solved, the maintenance cost of the drive configurations of the electric control units is reduced, and the maintainability and the independence of the drive configurations of the electric control units are improved; and then, the configuration parameters under the drive configuration item are adopted to control the electric control unit to be driven to drive, so that the complexity of the electric control unit in the process of additionally carrying out drive configuration before driving is avoided, and the drive efficiency of the electric control unit is improved.
Example two
Fig. 2 is a flowchart of a driving configuration method of an electronic control unit according to a second embodiment of the present invention, which is optimized based on the second embodiment of the present invention. Optionally, this embodiment explains the recording process of configuring the mapping layer in detail.
Specifically, referring to fig. 2, the method of this embodiment may specifically include:
and S210, acquiring a drive configuration code of the electric control unit.
The drive configuration code of the electronic control unit is a section of code containing the mapping relation between the ECU and the drive configuration items of the ECU, and is written by developers according to the specific configuration requirements of each ECU. Therefore, when driving configuration is performed on each ECU, it is first necessary to acquire a driving configuration code of the ECU, and then, by analyzing specific contents configured in the driving configuration code of the ECU, a mapping relationship between each ECU and a driving configuration item is recorded in a configuration mapping layer.
Optionally, the driver configuration code name of the ECU may be searched in the code file by a predefined code name, so as to obtain the driver configuration code of the ECU, or the driver configuration code of each ECU may be stored in a corresponding folder, and the driver configuration code of the ECU may be obtained by searching a related folder. There are many methods of acquiring the drive configuration code of the ECU, and the embodiment is not particularly limited.
S220, analyzing the mapping relation between each electric control unit configured in the drive configuration code and the drive configuration item of the electric control unit, and recording the mapping relation into the configuration mapping layer.
Specifically, after the drive configuration code of the ECU is obtained, since the drive configuration code of the ECU includes the mapping relationship between the ECU and the drive configuration items of the ECU, the specific configuration content for each electronic control unit in the drive configuration code can be analyzed by running the drive configuration code, and the mapping relationship between each ECU and the drive configuration items of the ECU can be obtained through the specific configuration content. For example, by analyzing the mapping relationship between each ECU configured in the drive configuration code and the drive configuration item of the ECU, it can be found that the drive configuration item corresponding to the ECU1 and the ECU2 is configuration a, the drive configuration item corresponding to the ECU3 is configuration B, and so on. After each ECU and the drive configuration items of the ECU are acquired, the mapping relationship between each ECU and the drive configuration items of the ECU can be recorded in a configuration mapping layer, so that the mapping relationship between the ECU and the drive configuration items of the ECU can be maintained conveniently.
Optionally, the recording to the configuration mapping layer may specifically include: and aiming at each electric control unit in the drive configuration codes, searching a drive configuration space which is allocated for a drive configuration item of the electric control unit in advance in the configuration mapping layer, and adding the hardware type of the electric control unit into the drive configuration space.
Specifically, a configuration relationship table is maintained in the configuration mapping layer, and a mapping relationship between the hardware type of each ECU and the drive configuration item of the ECU is recorded in the configuration relationship table. The drive configuration space refers to a storage space allocated to each drive configuration item of the electronic control unit in the configuration relationship table, and may be named as a name of a corresponding drive configuration item, such as MCAL configuration a and MCAL configuration B. Since the drive configuration code may include a plurality of ECUs, for each ECU in the drive configuration code, it needs to search in the configuration mapping layer whether there is a drive configuration space allocated in advance for the drive configuration item of the ECU, and if the drive configuration space allocated in advance for the drive configuration item of the ECU is found in the configuration layer, the hardware type of the ECU belonging to the drive configuration space can be added to the drive configuration space according to the name of the corresponding drive configuration item. For example, if the drive configuration items corresponding to the ECU1 and the ECU2 are configuration a and the drive configuration item corresponding to the ECU3 is configuration B by analyzing the drive configuration codes, the corresponding drive configuration spaces, namely, MCAL configuration a drive configuration space and MCAL configuration B drive configuration space, are allocated to the configuration a and the configuration B in the configuration relationship table in the configuration mapping layer, so that the ECU1 and the ECU2 can be added to the MCAL configuration a drive configuration space, and the ECU3 can be added to the MCAL configuration B drive configuration space.
Optionally, finding out the driving configuration space pre-allocated for the driving configuration item of the electronic control unit in the configuration mapping layer may specifically include: if the configuration mapping layer does not have the drive configuration item of the electric control unit, additionally applying a new drive configuration space in the configuration mapping layer as the drive configuration space which is allocated for the drive configuration item of the electric control unit in advance in the configuration mapping layer.
Specifically, the configuration relationship table in the configuration mapping layer records the mapping relationship between the hardware type of each ECU and the drive configuration item of the ECU, but if the drive configuration item of an ECU cannot be found in the configuration relationship table, it represents that the drive configuration item is not recorded in the configuration relationship table, and the drive configuration item may be a newly added drive configuration item, a new drive configuration space is additionally applied in the configuration relationship table in the configuration mapping layer as the drive configuration space pre-allocated for the drive configuration item of the ECU in the configuration mapping layer, and then the hardware type of the ECU can be added to the new drive configuration space.
Optionally, if the hardware type of a certain ECU does not need to be maintained, the hardware type of the ECU may be deleted in the corresponding drive configuration space in the configuration relation table, and if the hardware type of the ECU is deleted, it is found that there is no corresponding ECU hardware type in the drive configuration space, the hardware types of the ECU in the drive configuration space and the drive configuration space may be deleted at the same time, or the drive configuration space may be reserved for subsequent use.
In this embodiment, the mapping relationship between the hardware type of each ECU and the drive configuration item of the ECU can be conveniently and quickly recorded through the configuration relationship table maintained in the configuration mapping layer, so that the subsequent maintenance of the mapping relationship between the hardware type of each ECU and the drive configuration item of the ECU is facilitated.
And S230, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer according to the hardware type of the electric control unit to be driven.
And S240, controlling the electric control unit to be driven to drive by adopting the configuration parameters under the drive configuration item.
According to the technical scheme provided by the embodiment, the drive configuration codes of the electric control units are firstly obtained, then the mapping relation between each electric control unit configured in the drive configuration codes and the drive configuration items of the electric control units is analyzed and recorded in the configuration mapping layer, so that decoupling mapping between each electric control unit and various drive configuration items is realized on the configuration mapping layer, the problem that various drive configurations of an ECU (electronic control unit) cannot be realized in the same configuration project is solved, the maintenance cost of the drive configuration of the electric control units is reduced, and the maintainability and the independence of the drive configuration of the electric control units are improved; and then, according to the hardware type of the electric control unit to be driven, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer, and finally controlling the electric control unit to be driven to drive by adopting configuration parameters under the drive configuration item, so that the complexity of the electric control unit in the process of additionally carrying out drive configuration before driving is avoided, and the drive efficiency of the electric control unit is improved.
EXAMPLE III
Fig. 3 is a flowchart of a driving configuration method of an electronic control unit according to a third embodiment of the present invention, which is optimized based on the third embodiment of the present invention. Optionally, this embodiment explains the parsing process of the driver configuration code in detail.
Specifically, referring to fig. 3, the method of this embodiment may specifically include:
and S310, acquiring a drive configuration code of the electronic control unit.
S320, analyzing the mapping relation between each electric control unit configured in the drive configuration code and the drive configuration item of the electric control unit, and recording the mapping relation into the configuration mapping layer.
S330, analyzing the configuration parameters of each drive configuration item configured in the drive configuration code, and recording the configuration parameters into a preset configuration file.
The preset configuration file is a file for storing a drive configuration item of each to-be-driven ECU and configuration parameters under each drive configuration item.
Specifically, after the drive configuration code of the ECU is acquired, the specific configuration content for each electronic control unit in the drive configuration code can be analyzed by running the drive configuration code, and the drive configuration item of the ECU to be driven and the configuration parameters under each drive configuration item can be acquired through the specific configuration content. For example, it is possible to obtain values of configuration parameters such as the type, initial level, default period, duty ratio, and the like of a channel used in the MCAL layer in the drive configuration item and the configuration a as the drive configuration item of a certain ECU to be driven. After obtaining the values of the configuration parameters, the values of the configuration parameters can be recorded in a preset configuration file, so that the later maintenance and use are facilitated.
Optionally, the drive configuration code may obtain a drive configuration item and configuration parameters of the drive configuration item of the ECU to be driven in the current operation process each time the drive configuration code is operated, and when a new drive configuration item occurs, the new drive configuration item is added to the preset configuration file, a new storage space is added to the new drive configuration item in the preset configuration file, and the configuration parameters of the new drive configuration item are stored in the new storage space; if the drive configuration item of the to-be-driven ECU and the configuration parameters of the drive configuration item obtained in the current operation process already exist in the preset configuration file, the drive configuration item of the to-be-driven ECU and the configuration parameters of the drive configuration item obtained in the current operation process do not need to be recorded.
It should be noted that: s320 and S330 may be executed simultaneously or sequentially, and this embodiment is not limited in particular.
S340, according to the hardware type of the electric control unit to be driven, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer.
And S350, searching configuration parameters under the drive configuration items of the electric control unit to be driven in the preset configuration file.
Specifically, since the configuration parameters of each drive configuration item are recorded in the preset configuration file, the drive configuration item of the ECU to be driven can be known according to the hardware type of the ECU to be driven, and then the configuration parameters under the drive configuration item of the ECU to be driven can be searched in the preset configuration file. After the configuration parameters under the drive configuration item of the to-be-driven ECU are found, the configuration parameters under the drive configuration item can be adopted to complete the subsequent operation of controlling the to-be-driven ECU to drive.
And S360, controlling the electric control unit to be driven to drive by adopting the configuration parameters under the drive configuration item.
According to the technical scheme provided by the embodiment, firstly, the drive configuration codes of the electric control units are obtained, the mapping relation between each electric control unit configured in the drive configuration codes and the drive configuration items of the electric control units is analyzed and recorded in the configuration mapping layer, so that decoupling mapping between each electric control unit and various drive configuration items is realized on the configuration mapping layer, the problem that multiple drive configurations of an ECU (electronic control unit) cannot be realized in the same configuration project is solved, the maintenance cost of the drive configuration of the electric control units is reduced, and the maintainability and the independence of the drive configuration of the electric control units are improved; and then analyzing the configuration parameters of each drive configuration item configured in the drive configuration code, recording the configuration parameters into a preset configuration file, searching the drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer according to the hardware type of the electric control unit to be driven, searching the configuration parameters under the drive configuration item of the electric control unit to be driven in the preset configuration file, and finally adopting the configuration parameters under the drive configuration item to control the electric control unit to be driven to drive, thereby avoiding the complexity of additionally carrying out a drive configuration process before the electric control unit is driven, and improving the drive efficiency of the electric control unit.
Example four
Fig. 4 is a schematic structural diagram of a driving configuration device of an electronic control unit according to a fourth embodiment of the present invention, and as shown in fig. 4, the driving configuration device may include:
a configuration item searching module 410, configured to search, according to the hardware type of the to-be-driven electronic control unit, a driving configuration item of the to-be-driven electronic control unit in a predefined configuration mapping layer, where a mapping relationship between the hardware type of each electronic control unit and the driving configuration item is maintained in the configuration mapping layer;
and the electric control unit driving module 420 is configured to control the electric control unit to be driven to drive by using the configuration parameters under the driving configuration item.
According to the technical scheme provided by the embodiment, firstly, the drive configuration items of the electric control units to be driven are searched in a predefined configuration mapping layer according to the hardware types of the electric control units to be driven, and the mapping relation between the hardware types of the electric control units and the drive configuration items is maintained in the configuration mapping layer, so that the decoupling mapping between each electric control unit and various drive configuration items is realized on the configuration mapping layer, the problem that various drive configurations of an ECU (electronic control unit) cannot be realized in the same configuration project is solved, the maintenance cost of the drive configurations of the electric control units is reduced, and the maintainability and the independence of the drive configurations of the electric control units are improved; and then, the configuration parameters under the drive configuration item are adopted to control the electric control unit to be driven to drive, so that the complexity of the electric control unit in the process of additionally carrying out drive configuration before driving is avoided, and the drive efficiency of the electric control unit is improved.
Further, the driving configuration device of the electronic control unit may further include:
the mapping layer recording module is used for acquiring a drive configuration code of the electric control unit; and analyzing the mapping relation between each electric control unit configured in the drive configuration code and the drive configuration item of the electric control unit, and recording the mapping relation into the configuration mapping layer.
Further, the mapping layer recording module may be specifically configured to:
and aiming at each electric control unit in the drive configuration codes, searching a drive configuration space which is allocated for a drive configuration item of the electric control unit in advance in the configuration mapping layer, and adding the hardware type of the electric control unit into the drive configuration space.
Further, the mapping layer recording module may be further specifically configured to:
if the configuration mapping layer does not have the drive configuration item of the electric control unit, additionally applying a new drive configuration space in the configuration mapping layer as the drive configuration space which is allocated for the drive configuration item of the electric control unit in advance in the configuration mapping layer.
Further, the driving configuration device of the electronic control unit may further include:
and the configuration file recording module is used for analyzing the configuration parameters of each drive configuration item configured in the drive configuration code and recording the configuration parameters into a preset configuration file.
Further, the driving configuration device of the electronic control unit may further include:
and the configuration parameter searching module is used for searching the configuration parameters under the drive configuration items of the electric control unit to be driven in the preset configuration file.
Further, the driving configuration device of the electronic control unit may further include:
and the driving instruction receiving module is used for receiving a driving instruction of the to-be-driven electric control unit, and the driving instruction carries the hardware type of the to-be-driven electric control unit.
The driving configuration device of the electronic control unit provided by the embodiment can be applied to the driving configuration method of the electronic control unit provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention, as shown in fig. 5, the electronic device includes a processor 510, a storage device 520, and a communication device 530; the number of the processors 510 in the electronic device may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, the storage 520 and the communication device 530 in the electronic device may be connected by a bus or other means, and fig. 5 illustrates the connection by the bus as an example.
The storage device 520, which is a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the modules corresponding to the driving configuration method of the electronic control unit in the embodiment of the present invention (for example, the configuration item searching module 410 and the electronic control unit driving module 420). The processor 510 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the storage device 520, that is, implements the above-described drive configuration method of the electronic control unit.
The storage device 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 520 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 520 may further include memory located remotely from the processor 510, which may be connected to the electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
A communication device 530 for implementing a network connection or a mobile data connection between servers.
The electronic device provided by this embodiment can be used to execute the driving configuration method of the electronic control unit provided by any of the above embodiments, and has corresponding functions and advantages.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of configuring a drive of an electronic control unit, the method including:
according to the hardware type of an electric control unit to be driven, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer, wherein the configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the drive configuration item;
and controlling the electric control unit to be driven to drive by adopting the configuration parameters under the drive configuration items.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the method for configuring the drive of the electronic control unit provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the driving configuration device of the electronic control unit, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A drive configuration method of an electronic control unit, characterized by comprising:
according to the hardware type of an electric control unit to be driven, searching a drive configuration item of the electric control unit to be driven in a predefined configuration mapping layer, wherein the configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the drive configuration item;
and controlling the electric control unit to be driven to drive by adopting the configuration parameters under the drive configuration items.
2. The method according to claim 1, wherein before searching for the driving configuration item of the to-be-driven electronic control unit in a predefined configuration mapping layer, the method further comprises:
acquiring a drive configuration code of the electric control unit;
and analyzing the mapping relation between each electric control unit configured in the drive configuration code and the drive configuration item of the electric control unit, and recording the mapping relation into the configuration mapping layer.
3. The method of claim 2, wherein the recording into the configuration mapping layer comprises:
and aiming at each electric control unit in the drive configuration codes, searching a drive configuration space which is allocated for a drive configuration item of the electric control unit in advance in the configuration mapping layer, and adding the hardware type of the electric control unit into the drive configuration space.
4. The method as claimed in claim 3, wherein the step of finding the driving configuration space pre-allocated for the driving configuration item of the electronic control unit in the configuration mapping layer comprises:
if the configuration mapping layer does not have the drive configuration item of the electric control unit, additionally applying a new drive configuration space in the configuration mapping layer as the drive configuration space which is allocated for the drive configuration item of the electric control unit in advance in the configuration mapping layer.
5. The method according to claim 2, wherein when the mapping relationship between each electronic control unit configured in the drive configuration code and the drive configuration item of the electronic control unit is analyzed and recorded in the configuration mapping layer, the method further comprises:
and analyzing the configuration parameters of each drive configuration item configured in the drive configuration code, and recording the configuration parameters into a preset configuration file.
6. The method according to claim 5, before controlling the to-be-driven electronic control unit to drive by adopting the configuration parameters under the driving configuration item, further comprising:
and searching configuration parameters under the drive configuration items of the electric control unit to be driven in the preset configuration file.
7. The method according to any one of claims 1-6, wherein before searching for the driving configuration item of the electronic control unit to be driven in the predefined configuration mapping layer, the method further comprises:
and receiving a driving instruction of the to-be-driven electric control unit, wherein the driving instruction carries the hardware type of the to-be-driven electric control unit.
8. A drive arrangement for an electronic control unit, comprising:
the configuration item searching module is used for searching a driving configuration item of the electric control unit to be driven in a predefined configuration mapping layer according to the hardware type of the electric control unit to be driven, and the configuration mapping layer maintains the mapping relation between the hardware type of each electric control unit and the driving configuration item;
and the electric control unit driving module is used for controlling the electric control unit to be driven to drive by adopting the configuration parameters under the driving configuration items.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the drive configuration method of an electronic control unit according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a drive configuration method of an electronic control unit according to any one of claims 1 to 7.
CN202010523590.1A 2020-06-10 2020-06-10 Driving configuration method, device and equipment of electronic control unit and storage medium Active CN111722870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010523590.1A CN111722870B (en) 2020-06-10 2020-06-10 Driving configuration method, device and equipment of electronic control unit and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010523590.1A CN111722870B (en) 2020-06-10 2020-06-10 Driving configuration method, device and equipment of electronic control unit and storage medium

Publications (2)

Publication Number Publication Date
CN111722870A true CN111722870A (en) 2020-09-29
CN111722870B CN111722870B (en) 2023-05-02

Family

ID=72567894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010523590.1A Active CN111722870B (en) 2020-06-10 2020-06-10 Driving configuration method, device and equipment of electronic control unit and storage medium

Country Status (1)

Country Link
CN (1) CN111722870B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135663A1 (en) * 2002-01-16 2003-07-17 Sun Microsystems, Inc. Method, system, and program for including device parameters from a device driver in a configuration file
US20030132956A1 (en) * 2002-01-16 2003-07-17 Sun Microsystems, Inc. Method, system, and program for managing a configuration file including device driver parameters
CN1707453A (en) * 2004-06-11 2005-12-14 佳能株式会社 Information processing apparatus and method thereof
US20070073908A1 (en) * 2005-09-23 2007-03-29 Joseph Gormley Control and interconnection system
JP2007094577A (en) * 2005-09-27 2007-04-12 Sumitomo Heavy Ind Ltd Built-in control method, management device, built-in control device, and built-in control system
US20120254831A1 (en) * 2011-03-30 2012-10-04 Mortensen James L Supporting hardware configuration changes in a uefi firmware component
CN102855135A (en) * 2012-04-23 2013-01-02 苏州大学 Graphical component-based sensing network development platform and method
CN103026339A (en) * 2010-08-06 2013-04-03 罗伯特·博世有限公司 Method for reconfiguring software parameters in a microcontroller and microcontroller and control device
US20130103379A1 (en) * 2011-10-20 2013-04-25 Electronics And Elecommunications Research Institute Apparatus and method for verifying interoperability between application software and autosar service
CN103077039A (en) * 2013-02-28 2013-05-01 福州昌晖自动化系统有限公司 Software development platform for embedded industrial control instrument
CN103529821A (en) * 2013-09-29 2014-01-22 重庆邮电大学 Configurable method and device for diagnostic protocol stack system based on CAN (controller area network) bus
US20140082599A1 (en) * 2012-09-20 2014-03-20 Electronics & Telecommunications Research Institute Method and apparatus for updating electronic control unit in system based on automotive open system architecture
CN103713539A (en) * 2014-01-08 2014-04-09 上汽通用五菱汽车股份有限公司 Method for configuring bottom driver and I / O module in vehicle control system development
US20140137091A1 (en) * 2012-11-13 2014-05-15 Electronics And Telecommunications Research Institute Automobile open system architecture(autosar)-based electronic control unit (ecu) and method for updating ecu
CN103914315A (en) * 2012-12-31 2014-07-09 展讯通信(上海)有限公司 Configuration method of drivers
CN105224347A (en) * 2014-05-30 2016-01-06 展讯通信(深圳)有限公司 data configuration method and device
CN107015807A (en) * 2017-04-06 2017-08-04 青岛海信宽带多媒体技术有限公司 A kind of device drives management method
CN109508202A (en) * 2018-09-27 2019-03-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Drive development system, method and medium for embedded operating system
CN110795153A (en) * 2019-09-16 2020-02-14 武汉融卡智能信息科技有限公司 Electronic equipment and hardware configuration method and device thereof

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030132956A1 (en) * 2002-01-16 2003-07-17 Sun Microsystems, Inc. Method, system, and program for managing a configuration file including device driver parameters
US20030135663A1 (en) * 2002-01-16 2003-07-17 Sun Microsystems, Inc. Method, system, and program for including device parameters from a device driver in a configuration file
CN1707453A (en) * 2004-06-11 2005-12-14 佳能株式会社 Information processing apparatus and method thereof
US20070073908A1 (en) * 2005-09-23 2007-03-29 Joseph Gormley Control and interconnection system
JP2007094577A (en) * 2005-09-27 2007-04-12 Sumitomo Heavy Ind Ltd Built-in control method, management device, built-in control device, and built-in control system
CN103026339A (en) * 2010-08-06 2013-04-03 罗伯特·博世有限公司 Method for reconfiguring software parameters in a microcontroller and microcontroller and control device
US20120254831A1 (en) * 2011-03-30 2012-10-04 Mortensen James L Supporting hardware configuration changes in a uefi firmware component
US20130103379A1 (en) * 2011-10-20 2013-04-25 Electronics And Elecommunications Research Institute Apparatus and method for verifying interoperability between application software and autosar service
CN102855135A (en) * 2012-04-23 2013-01-02 苏州大学 Graphical component-based sensing network development platform and method
US20140082599A1 (en) * 2012-09-20 2014-03-20 Electronics & Telecommunications Research Institute Method and apparatus for updating electronic control unit in system based on automotive open system architecture
US20140137091A1 (en) * 2012-11-13 2014-05-15 Electronics And Telecommunications Research Institute Automobile open system architecture(autosar)-based electronic control unit (ecu) and method for updating ecu
CN103914315A (en) * 2012-12-31 2014-07-09 展讯通信(上海)有限公司 Configuration method of drivers
CN103077039A (en) * 2013-02-28 2013-05-01 福州昌晖自动化系统有限公司 Software development platform for embedded industrial control instrument
CN103529821A (en) * 2013-09-29 2014-01-22 重庆邮电大学 Configurable method and device for diagnostic protocol stack system based on CAN (controller area network) bus
CN103713539A (en) * 2014-01-08 2014-04-09 上汽通用五菱汽车股份有限公司 Method for configuring bottom driver and I / O module in vehicle control system development
CN105224347A (en) * 2014-05-30 2016-01-06 展讯通信(深圳)有限公司 data configuration method and device
CN107015807A (en) * 2017-04-06 2017-08-04 青岛海信宽带多媒体技术有限公司 A kind of device drives management method
CN109508202A (en) * 2018-09-27 2019-03-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Drive development system, method and medium for embedded operating system
CN110795153A (en) * 2019-09-16 2020-02-14 武汉融卡智能信息科技有限公司 Electronic equipment and hardware configuration method and device thereof

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
ULRICH FREUND等: "Multi-Level System Integration based on AUTOSAR", 《2008 ACM/IEEE 30TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING》 *
冯琛: "基于TC1728的高压共轨柴油机ECU底层驱动程序研究与开发", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
冯辉宗等: "基于 AutoSAR 规范的驱动代码生成工具箱设计与实现", 《电子技术应用》 *
宋波等: "符合AUTOSAR规范的MCU驱动设计和实现", 《汽车零部件》 *
李甫光: "基于 MPC5634M 的发动机电控单元硬件系统设计与研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
王安军等: "符合AUTOSAR规范的底层驱动软件开发", 《计算机工程》 *
舒适等: "嵌入式系统底层驱动可视化配置映射规则挖掘", 《计算机工程与科学》 *
袁仲楠: "基于AUTOSAR的车用控制器软件开发", 《机电信息》 *
邓桥等: "基于AUTOSAR标准的燃料电池发动机控制器底层驱动设计", 《机电一体化》 *
韩慧等: "符合AUTOSAR架构的车辆电控系统软件配置库部署和集成方法", 《汽车零部件》 *

Also Published As

Publication number Publication date
CN111722870B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN111488165B (en) Method and system for upgrading vehicle ECU through script
WO2019052482A1 (en) Data sharing method, data sharing device, and mobile terminal
CN112055066B (en) Communication method, communication device, diagnosis device, and computer-readable storage medium
CN113190282A (en) Android operating environment construction method and device
WO2024002229A1 (en) Application management method and related device
CN113741936A (en) Parallel flashing method and device based on UDS protocol, vehicle and computer readable storage medium
CN114189569B (en) Data transmission method, device and system
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
CN102129385B (en) Management method capable of dynamically expanding management function of virtual machine
CN111722870A (en) Drive configuration method, device and equipment of electric control unit and storage medium
CN100507842C (en) Method, device for controlling relation between control piece on interface and control piece display system
CN112492064A (en) Multi-network-port MAC address allocation method and terminal for embedded equipment
CN111880803A (en) Software construction method and device applied to multiple platforms
CN116126937A (en) Job scheduling method, job scheduling device, electronic equipment and storage medium
CN115755867A (en) Vehicle diagnosis method and related device
CN112764897B (en) Task request processing method, device and system and computer readable storage medium
CN111740972B (en) Method, device, equipment and storage medium for updating communication protocol stack information
US20170090820A1 (en) Method and device for operating a many-core system
CN113342426A (en) Application layer software component integration method and system
CN112764822A (en) Operating system starting method, device, equipment and medium
KR101382109B1 (en) Apparatus and method for middleware
CN114936045A (en) Automatic configuration method and system for IO (input/output) driving module of MCAL (micro channel logic) and storage medium
CN111026505B (en) Network equipment virtualization method and device
CN110677466A (en) Application program downloading method, device, gateway and storage medium
CN114003228B (en) Interface updating method, device, computer equipment and storage medium

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