CN111722870B - Driving configuration method, device and equipment of electronic control unit and storage medium - Google Patents
Driving configuration method, device and equipment of electronic control unit and storage medium Download PDFInfo
- Publication number
- CN111722870B CN111722870B CN202010523590.1A CN202010523590A CN111722870B CN 111722870 B CN111722870 B CN 111722870B CN 202010523590 A CN202010523590 A CN 202010523590A CN 111722870 B CN111722870 B CN 111722870B
- Authority
- CN
- China
- Prior art keywords
- configuration
- control unit
- driving
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version 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 driving configuration method, device and equipment of an electric control unit and a storage medium. Wherein the method comprises the following steps: 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, wherein the configuration mapping layer maintains a mapping relation between the hardware type of each electric control unit and the driving configuration item; and controlling the to-be-driven electric control unit to drive by adopting the configuration parameters under the driving configuration items. The technical scheme provided by the embodiment of the invention realizes the decoupling mapping between each electric control unit and various driving configuration items, solves the problem that various driving configurations of the electric control units cannot be realized in the same configuration engineering, reduces the maintenance cost of the driving configuration of the electric control units, improves the maintainability and independence of the driving configuration of the electric control units, avoids the complexity of the additional driving configuration process of the electric control units before driving, and improves the driving efficiency of the electric control units.
Description
Technical Field
The embodiment of the invention relates to the technical field of automobile electronic control, in particular to a driving configuration method, device and equipment of an electronic control unit and a storage medium.
Background
The automobile open system architecture (Automotive Open System Architecture, abbreviated as AUTOSAR) is an automobile electronic software standard, which defines a set of development method 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 automotive electronic controller conforming to an AUTOSAR architecture, a microcontroller abstraction layer (Micro Controller Abstraction Layer, MCAL for short) is an abstraction of underlying hardware, and at this time, only after driving parameters of each electronic control unit (Electronic Control Unit, ECU for short) are configured in the MCAL layer, each ECU is driven, so that hardware driving of a main control chip associated with the ECU is realized.
At present, the driving configuration of the MCAL layer to the ECU is usually implemented through a configuration tool EB tree Studio, which provides a graphical configuration interface for a configuration personnel, 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 automotive electronics field, a certain ECU is usually required to adapt to different vehicle types or support different driving configurations of the same vehicle type, at this time, it is required that the difference of the ECU under different driving configurations can be achieved in the MCAL layer, and if a configuration tool is used to perform different driving configurations on the ECU, multiple configuration projects are required to be maintained for implementation, which often increases the maintenance cost of the configuration code, and in the case of more versions of the ECU, the maintainability and independence of the configuration code are also degraded.
Disclosure of Invention
The embodiment of the invention provides a driving configuration method, device, equipment and storage medium of an electric control unit, wherein decoupling mapping between each electric control unit and various driving configuration items is realized in a configuration mapping layer, so that the maintenance cost of the driving configuration of the electric control unit is reduced, and the maintainability and independence of the driving configuration of the electric control unit are improved.
In a first aspect, an embodiment of the present invention provides a driving configuration method of an electronic control unit, where the method includes:
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, wherein the configuration mapping layer maintains a mapping relation between the hardware type of each electric control unit and the driving configuration item;
and controlling the to-be-driven electric control unit to drive by adopting the configuration parameters under the driving configuration items.
In a second aspect, an embodiment of the present invention provides a driving configuration device of 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 mapping relation between the hardware type of each electric control unit and the driving configuration item is maintained in the configuration mapping layer;
and the electronic control unit driving module is used for controlling the to-be-driven electronic control unit 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;
a 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 method for configuring the driving 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 having stored thereon a computer program, which when executed by a processor, implements a method for configuring a drive of an electronic control unit according to any embodiment of the present invention.
The embodiment of the invention provides a driving configuration method, a device, equipment and a storage medium of an electric control unit, wherein a driving configuration item of the electric control unit to be driven is searched in a predefined configuration mapping layer according to the hardware type of the electric control unit to be driven, and the mapping relation between the hardware type of each electric control unit and the driving configuration item is maintained in the configuration mapping layer, so that decoupling mapping between each electric control unit and various driving configuration items is realized in the configuration mapping layer, the problem that various driving configurations of an ECU (electronic control unit) cannot be realized in the same configuration engineering is solved, the maintenance cost of the driving configuration of the electric control unit is reduced, and the maintainability and the independence of the driving configuration of the electric control unit are improved; and then, the configuration parameters under the driving configuration items are adopted to control the to-be-driven electric control unit to drive, so that the complexity of the driving configuration process of the electric control unit before driving is avoided, and the driving 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 a first 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 invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a driving configuration method of an electronic control unit according to a first embodiment of the present invention, where the present embodiment is applicable to a case of performing driving configuration on any electronic control unit on an automobile, the method may be performed by a driving configuration device of an electronic control unit according to the first embodiment of the present invention, and the device may be implemented by software and/or hardware and integrated in an electronic device for performing the method.
Specifically, referring to fig. 1, the method specifically includes the following steps:
s110, 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.
The configuration mapping layer maintains a mapping relation between the hardware type of each electric control unit and the driving configuration item.
Optionally, in the automotive electronic controller conforming to the AUTOSAR architecture, MCAL is an abstraction of underlying hardware, in order to realize driving of the ECU, driving configuration parameters of the ECU are first acquired, and the driving configuration parameters of the ECU are related to the hardware type of the ECU, and when the hardware type of the ECU is different, driving configurations supported by the ECU are also different, so that the driving configuration parameters of the ECU are also different. Therefore, when driving a certain ECU, it is necessary to determine the hardware type of the ECU to be driven, wherein the hardware type of the ECU to be driven may be: the identification of the to-be-driven ECUs with different driving configuration requirements of the MCAL layer due to vehicle type adaptation requirements or hardware differences is achieved by defining a global variable or a standard quantity to represent the hardware type of the to-be-driven ECU, and according to information in the global variable or the standard quantity, which ECU is to be driven at this time can be identified. After identifying the ECU to be driven, the driving configuration item of the ECU to be driven may be searched in a configuration mapping layer, where the driving configuration of the ECU is implemented in an MCAL layer, and the specific structure of the MCAL layer may be divided into a three-layer architecture, which is an MCAL interface layer, a configuration mapping layer, and an MCAL driving layer, where the MCAL interface layer is mainly used to receive interface call information of the ECU to be driven, and the configuration mapping layer is mainly used to maintain a mapping relationship between a hardware type and a driving configuration item of each ECU, and the MCAL driving layer is mainly used to implement driving of the ECU to be driven.
In order to set multiple driving configurations under each electronic control unit, this embodiment additionally sets a configuration mapping layer in the MCAL layer, and maintains a mapping relationship between the hardware type of each ECU and a driving configuration item in the configuration mapping layer, where the driving configuration item may integrate configuration parameters under multiple types, that is, the driving configuration item may be a configuration set name formed by combining the configuration parameters under multiple types.
Specifically, a configuration mapping table may be pre-designed in the configuration mapping layer, where the configuration mapping table includes driving configuration items corresponding to different hardware types of each ECU under different configuration requirements of the MCAL layer, that is, there is a corresponding mapping relationship between the hardware type of each ECU and the driving configuration items in the configuration mapping table, so that the driving configuration items 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 driving configuration items may have one or more driving configuration items, so that the driving operation of the ECU to be driven is convenient to be controlled subsequently.
Optionally, in order to accurately determine the ECU to be driven that needs to be driven this time, before searching the driving configuration item of the to-be-driven electronic control unit in the predefined configuration mapping layer, this embodiment may further include: and receiving a driving instruction of the electric control unit to be driven.
Wherein the driving instruction carries the hardware type of the electric control unit to be driven.
Specifically, the driving instruction of the ECU to be driven refers to a command for driving the ECU to be driven, and the driving instruction carries the hardware type of the ECU to be driven. After receiving the driving instruction, some preparation work is performed for driving the ECU to be driven, for example, a driving configuration item of the ECU to be driven is searched. Because the driving instruction carries the hardware type of the ECU to be driven, which ECU is driven can be known according to the hardware type, so that the follow-up searching of the driving configuration item of the ECU to be driven is ensured to be smoothly carried out.
And S120, controlling the to-be-driven electric control unit to drive by adopting the configuration parameters under the driving configuration items.
The configuration parameters under the driving configuration items refer to some parameters that need to be configured by the ECU to be driven under the corresponding driving configuration items, for example, the channel type, the initial level, the default period, the duty ratio, and the like may be used.
Specifically, after the driving configuration item of the ECU to be driven is found, the driving configuration item corresponding to the ECU to be driven is known, the configuration parameters under the driving configuration item of the ECU to be driven are used as the driving parameters of the ECU to be driven, and the specific driving process is set by the configuration parameters under the driving configuration item, so that the ECU to be driven can be controlled.
For example, in this embodiment, the control of the ECU to be driven to drive may be the control of the ECU to be driven to initialize, and the specific procedure is as follows:
1) Acquiring a hardware type of an ECU to be driven;
2) Calling an initialization interface of the MCAL interface layer;
3) Searching a driving configuration item of the ECU to be driven in a predefined configuration mapping layer according to the hardware type of the ECU to be driven, wherein the driving configuration item can comprise a general configuration item and an independent configuration item;
4) Configuring a general configuration item of the ECU to be driven;
5) Judging whether the to-be-driven ECU has an independent configuration item, if so, initializing the to-be-driven ECU after configuring the independent configuration item, and if not, initializing the to-be-driven ECU;
6) And the driving of the to-be-driven ECU is completed, namely the initialization of the to-be-driven ECU is completed.
The driving arrangement of the ECU to be driven will be described by taking the arrangement of the Aurix TC297 PWM in MCAL as an example. In this example, it is assumed that there are two hardware types of ECU to be driven, ECU to be driven 1 and ECU to be driven 2, PWM channel 0 and PWM channel 1 are driving configuration items required by both ECU to be driven, so PWM channel 0 and PWM channel 1 are taken as common configuration items, PWM channel 2 is a driving configuration item required by only ECU to be driven 2, and thus PWM channel 2 is taken as a separate configuration item of ECU to be driven 2. After configuration is completed, firstly judging which ECU is currently to be driven through a predefined global variable or calibration quantity, then calling a Pwm_17_Gtm_Init () interface to initialize PWM, mapping the hardware type of the ECU to be driven to a corresponding driving configuration item, and if the ECU is the ECU1, only initializing the general configuration item; if the ECU2 is the ECU, mapping the configuration items to the general configuration item and the independent configuration item CONFIG_A configuration, initializing the general configuration item, and initializing the independent configuration item CONFIG_A to finish the initialization of the corresponding PWM.
The following section of code, namely, the individual configuration item configuration process of the ECU 2:
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 driving 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 each electric control unit and the driving configuration items is maintained in the configuration mapping layer, so that decoupling mapping between each electric control unit and various driving configuration items is realized in the configuration mapping layer, the problem that various driving configurations of an ECU (electronic control unit) cannot be realized in the same configuration engineering is solved, the maintenance cost of the driving configuration of the electric control unit is reduced, and the maintainability and the independence of the driving configuration of the electric control unit are improved; and then, the configuration parameters under the driving configuration items are adopted to control the to-be-driven electric control unit to drive, so that the complexity of the driving configuration process of the electric control unit before driving is avoided, and the driving 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, where the embodiment of the present invention is optimized based on the foregoing embodiment. Optionally, the recording process of the configuration mapping layer is explained in detail in this embodiment.
Specifically, referring to fig. 2, the method of this embodiment may specifically include:
s210, acquiring a drive configuration code of the electric control unit.
The drive configuration code of the electronic control unit refers to a section of code containing the mapping relation between the ECU and the drive configuration items of the ECU, and the code is written by a developer according to the specific configuration requirements of each ECU. Therefore, when each ECU is configured to be driven, it is first necessary to acquire the driving configuration code of the ECU, and then to record the mapping relationship between each ECU and the driving configuration item in the configuration mapping layer by analyzing the specific content configured in the driving configuration code of the ECU.
Alternatively, the drive configuration code name of the ECU may be searched in the code file through a pre-defined code name, so as to obtain the drive configuration code of the ECU, or the drive configuration code of each ECU may be stored under a corresponding folder, and the drive configuration code of the ECU may be obtained by searching a related folder. There are also many methods of acquiring the drive configuration code of the ECU, and the present 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 in the configuration mapping layer.
Specifically, after the driving configuration code of the ECU is obtained, since the driving configuration code of the ECU includes a mapping relationship between the ECU and the driving configuration items of the ECU, specific configuration content for each electronic control unit in the driving configuration code can be resolved by running the driving configuration code, and the mapping relationship between each ECU and the driving 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 items of that ECU, it is possible to obtain that the drive configuration items corresponding to ECU1 and ECU2 are configuration a, that the drive configuration items corresponding to ECU3 are configuration B, and so on. After each ECU and the driving configuration items of the ECU are obtained, the mapping relationship between each ECU and the driving configuration items of the ECU can be recorded into a configuration mapping layer, so that the mapping relationship between the ECU and the driving configuration items of the ECU can be maintained conveniently.
Optionally, the recording into the configuration mapping layer may specifically include: and for each electric control unit in the drive configuration codes, searching a drive configuration space which is allocated in advance for the drive configuration items of the electric control unit in the configuration mapping layer, and adding the hardware type of the electric control unit into the drive configuration space.
Specifically, a configuration relation table is maintained in the configuration mapping layer, and the mapping relation between the hardware type of each ECU and the driving configuration item of the ECU is recorded in the configuration relation table. The drive configuration space refers to a storage space allocated to each drive configuration item of the electronic control unit in the configuration relation table, and the storage space can be named as the name of the 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, whether there is a drive configuration space allocated in advance for the drive configuration item of the ECU is searched in the configuration mapping layer, and if there is a drive configuration space allocated in advance for the drive configuration item of the ECU in the configuration layer, the hardware type of the ECU belonging to the drive configuration space may be added to the drive configuration space according to the name of the corresponding drive configuration item. For example, if the configuration a is the configuration a and the configuration B is the configuration B as the driving configuration items corresponding to the ECU1 and the ECU2 obtained by analyzing the driving configuration code, the MCAL configuration a driving configuration space and the MCAL configuration B driving configuration space corresponding to the configuration a and the configuration B are allocated in the configuration relation table in the configuration mapping layer, and therefore, the ECU1 and the ECU2 can be added to the MCAL configuration a driving configuration space and the ECU3 can be added to the MCAL configuration B driving configuration space.
Optionally, the searching the driving configuration space allocated in advance 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 driving configuration item of the electric control unit, a new driving configuration space is additionally applied to the configuration mapping layer and used as the driving configuration space which is allocated in the configuration mapping layer in advance for the driving configuration item of the electric control unit.
Specifically, the mapping relation between the hardware type of each ECU and the driving configuration item of the ECU is recorded in the configuration relation table in the configuration mapping layer, but if the driving configuration item of a certain ECU cannot be found in the configuration relation table, the driving configuration item is not recorded in the configuration relation table, and the driving configuration item may be a newly added driving configuration item, then a new driving configuration space is additionally applied in the configuration relation table in the configuration mapping layer as the driving configuration space allocated in advance for the driving configuration item of the ECU in the configuration mapping layer, and then the hardware type of the ECU may be added into the new driving configuration space.
Optionally, if the hardware type of a certain ECU no longer needs maintenance, the hardware type of the ECU may be deleted under the corresponding driving configuration space in the configuration relation table, and if the hardware type of the ECU is deleted and then no corresponding ECU hardware type is found under the driving configuration space, the hardware types of the ECU under the driving configuration space and the driving configuration space may be deleted at the same time, and the driving configuration space may also be reserved for subsequent use.
According to the embodiment, the mapping relation between the hardware type of each ECU and the driving configuration item of the ECU can be recorded conveniently and quickly through one configuration relation table maintained in the configuration mapping layer, so that the subsequent maintenance of the mapping relation between the hardware type of each ECU and the driving configuration item of the ECU is facilitated.
S230, according to the hardware type of the electric control unit to be driven, searching a driving configuration item of the electric control unit to be driven in a predefined configuration mapping layer.
S240, controlling the to-be-driven electric control unit to drive by adopting the configuration parameters under the driving configuration items.
According to the technical scheme provided by the embodiment, the driving configuration codes of the electronic control units are firstly obtained, then the mapping relation between each electronic control unit configured in the driving configuration codes and the driving configuration items of the electronic control units is analyzed and recorded in the configuration mapping layer, so that decoupling mapping between each electronic control unit and various driving configuration items is realized in the configuration mapping layer, the problem that various driving configurations of the ECU cannot be realized in the same configuration engineering is solved, the maintenance cost of the driving configuration of the electronic control units is reduced, and the maintainability and the independence of the driving configuration of the electronic control units are improved; and then 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 finally controlling the electric control unit to be driven by adopting the configuration parameters under the driving configuration item, so that the complexity of the driving configuration process of the electric control unit before driving is avoided, and the driving 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, where the embodiment of the present invention is optimized based on the foregoing embodiment. Optionally, the present embodiment explains the parsing process of the driving configuration code in detail.
Specifically, referring to fig. 3, the method of this embodiment may specifically include:
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 in 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 refers to a file storing a driving configuration item of each ECU to be driven and configuration parameters under each driving configuration item.
Specifically, after the driving configuration code of the ECU is obtained, specific configuration content of each electronic control unit in the driving configuration code can be resolved by running the driving configuration code, and the driving configuration item of the ECU to be driven and the configuration parameters under each driving configuration item can be obtained through the specific configuration content. For example, the driving configuration item of a certain ECU to be driven may be configuration a, and the channel used in the MCAL layer in the driving configuration item, and the values of the configuration parameters such as the type, the initial level, the default period, the duty cycle, and the like of the channel may be obtained. After the values of the configuration parameters are obtained, the values of the configuration parameters can be recorded in a preset configuration file, so that the subsequent maintenance and use are convenient.
Optionally, the driving configuration code can obtain the driving configuration item of the ECU to be driven and the configuration parameters of the driving configuration item in the current operation process every time, when a new driving configuration item appears, the new driving configuration item is added to a preset configuration file, a new storage space is added for the new driving configuration item in the preset configuration file, and the configuration parameters of the new driving configuration item are stored in the new storage space; if the driving configuration item and the configuration parameter of the driving configuration item of the to-be-driven ECU obtained in the current operation process already exist in the preset configuration file, the driving configuration item and the configuration parameter of the driving configuration item of the to-be-driven ECU obtained in the current operation process do not need to be recorded.
It should be noted that: s320 and S330 may be performed simultaneously or sequentially, which is not limited in this embodiment.
S340, 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.
S350, searching configuration parameters under the driving configuration items of the electric control unit to be driven in the preset configuration file.
Specifically, since the configuration parameters of each driving configuration item are recorded in the preset configuration file, the driving 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 driving configuration item of the ECU to be driven can be searched in the preset configuration file. After the configuration parameters under the driving configuration items of the to-be-driven ECU are found, the configuration parameters under the driving configuration items can be adopted to complete subsequent operation of controlling the to-be-driven ECU to drive.
S360, controlling the to-be-driven electric control unit to drive by adopting the configuration parameters under the driving configuration items.
According to the technical scheme provided by the embodiment, the driving configuration codes of the electronic control units are firstly obtained, the mapping relation between each electronic control unit configured in the driving configuration codes and the driving configuration items of the electronic control units is analyzed and recorded in the configuration mapping layer, so that decoupling mapping between each electronic control unit and various driving configuration items is realized in the configuration mapping layer, the problem that various driving configurations of the ECU cannot be realized in the same configuration engineering is solved, the maintenance cost of the driving configuration of the electronic control units is reduced, and the maintainability and the independence of the driving configuration of the electronic control units are improved; then analyzing the configuration parameters of each drive configuration item configured in the drive configuration code, recording the configuration parameters in 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 controlling the electric control unit to be driven by adopting the configuration parameters under the drive configuration item, so that the complexity of the drive configuration process of the electric control unit before driving is avoided, and the driving efficiency of the electric control unit is improved.
Example IV
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, as shown in fig. 4, the device may include:
a configuration item searching module 410, configured to search a driving configuration item of an electric control unit to be driven in a predefined configuration mapping layer according to a hardware type of the electric control unit to be driven, where a mapping relationship between the hardware type of each electric control unit and the driving configuration item is maintained in the configuration mapping layer;
and the electronic control unit driving module 420 is configured to control the to-be-driven electronic control unit to drive by adopting the configuration parameters under the driving configuration item.
According to the technical scheme provided by the embodiment, firstly, the driving 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 each electric control unit and the driving configuration items is maintained in the configuration mapping layer, so that decoupling mapping between each electric control unit and various driving configuration items is realized in the configuration mapping layer, the problem that various driving configurations of an ECU (electronic control unit) cannot be realized in the same configuration engineering is solved, the maintenance cost of the driving configuration of the electric control unit is reduced, and the maintainability and the independence of the driving configuration of the electric control unit are improved; and then, the configuration parameters under the driving configuration items are adopted to control the to-be-driven electric control unit to drive, so that the complexity of the driving configuration process of the electric control unit before driving is avoided, and the driving 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 driving configuration code of the electric control unit; and analyzing the mapping relation between each electric control unit configured in the driving configuration code and the driving 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 for each electric control unit in the drive configuration codes, searching a drive configuration space which is allocated in advance for the drive configuration items of the electric control unit 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 driving configuration item of the electric control unit, a new driving configuration space is additionally applied to the configuration mapping layer and used as the driving configuration space which is allocated in the configuration mapping layer in advance for the driving configuration item of the electric control unit.
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 driving 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:
the driving instruction receiving module is used for receiving the 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.
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, where, as shown in fig. 5, the electronic device includes a processor 510, a storage device 520, and a communication device 530; the number of processors 510 in the electronic device may be one or more, one processor 510 being taken as an example in fig. 5; the processor 510, the storage 520 and the communication means 530 in the electronic device may be connected by a bus or other means, for example by a bus connection in fig. 5.
The storage device 520 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and a module, such as a module corresponding to a driving configuration method of an electronic control unit in an 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 of the electronic device and data processing, that is, implements the above-described driving configuration method of the electronic control unit, by running software programs, instructions, and modules stored in the storage 520.
The storage 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, 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, storage 520 may further include memory located remotely from processor 510, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Communication means 530 for implementing a network connection or a mobile data connection between the servers.
The electronic device provided by the embodiment can be used for executing the driving configuration method of the electronic control unit provided by any embodiment, and has corresponding functions and beneficial effects.
Example six
A sixth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of driving configuration of an electronic control unit, the method comprising:
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, wherein the configuration mapping layer maintains a mapping relation between the hardware type of each electric control unit and the driving configuration item;
and controlling the to-be-driven electric control unit to drive by adopting the configuration parameters under the driving configuration items.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the driving configuration method of the electronic control unit provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art 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 (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method 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, each included unit and module are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A driving configuration method of an electronic control unit, comprising:
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, wherein the configuration mapping layer maintains a mapping relation between the hardware type of each electric control unit and the driving configuration item;
controlling the to-be-driven electric control unit to drive by adopting configuration parameters under the driving configuration items;
before searching the driving configuration item of the electric control unit to be driven in the predefined configuration mapping layer, the method further comprises the following steps:
acquiring a drive configuration code of an electric control unit;
and analyzing the mapping relation between each electric control unit configured in the driving configuration code and the driving configuration item of the electric control unit, and recording the mapping relation into the configuration mapping layer.
2. The method of claim 1, wherein the recording into the configuration mapping layer comprises:
and for each electric control unit in the drive configuration codes, searching a drive configuration space which is allocated in advance for the drive configuration items of the electric control unit in the configuration mapping layer, and adding the hardware type of the electric control unit into the drive configuration space.
3. The method according to claim 2, wherein finding a drive configuration space allocated in advance for a drive configuration item of the electronic control unit in the configuration mapping layer comprises:
if the configuration mapping layer does not have the driving configuration item of the electric control unit, a new driving configuration space is additionally applied to the configuration mapping layer and used as the driving configuration space which is allocated in the configuration mapping layer in advance for the driving configuration item of the electric control unit.
4. The method according to claim 1, further comprising, when parsing and recording in the configuration mapping layer a mapping relationship between each electronic control unit configured in the driving configuration code and a driving configuration item of the electronic control unit:
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.
5. The method of claim 4, further comprising, prior to controlling the to-be-driven electronic control unit to drive using the configuration parameters under the drive configuration item:
searching configuration parameters under the driving configuration items of the electric control unit to be driven in the preset configuration file.
6. The method according to any of claims 1-5, further comprising, before looking up the driving configuration items of the electronic control unit to be driven in a predefined configuration mapping layer:
and receiving a driving instruction of the electric control unit to be driven, wherein the driving instruction carries the hardware type of the electric control unit to be driven.
7. A drive configuration apparatus of 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 mapping relation between the hardware type of each electric control unit and the driving configuration item is maintained in the configuration mapping layer;
the electronic control unit driving module is used for controlling the to-be-driven electronic control unit to drive by adopting the configuration parameters under the driving configuration items;
the mapping layer recording module is used for acquiring a driving configuration code of the electric control unit before searching the driving configuration item of the electric control unit to be driven in a predefined configuration mapping layer; and analyzing the mapping relation between each electric control unit configured in the driving configuration code and the driving configuration item of the electric control unit, and recording the mapping relation into the configuration mapping layer.
8. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the drive configuration method of an electronic control unit as claimed in any one of claims 1 to 6.
9. 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-6.
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 CN111722870A (en) | 2020-09-29 |
CN111722870B true 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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914315A (en) * | 2012-12-31 | 2014-07-09 | 展讯通信(上海)有限公司 | Configuration method of drivers |
CN109508202A (en) * | 2018-09-27 | 2019-03-22 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Drive development system, method and medium for embedded operating system |
Family Cites Families (17)
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 |
US7529920B2 (en) * | 2004-06-11 | 2009-05-05 | Canon Kabushiki Kaisha | Apparatus and method capable of executing plug and play installation processing operation upon acquiring one piece of device identification information including both printer and facsimile identification information |
US7590768B2 (en) * | 2005-09-23 | 2009-09-15 | Joseph Gormley | Control and interconnection system |
JP4757589B2 (en) * | 2005-09-27 | 2011-08-24 | 住友重機械工業株式会社 | Embedded control method, management apparatus, embedded control apparatus, and embedded control system |
DE102010039021B4 (en) * | 2010-08-06 | 2023-02-23 | Robert Bosch Gmbh | Method for reconfiguration of software parameters in a microcontroller as well as microcontroller and control unit |
US8484631B2 (en) * | 2011-03-30 | 2013-07-09 | Phoenix Technologies Ltd. | 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 |
KR20140038160A (en) * | 2012-09-20 | 2014-03-28 | 한국전자통신연구원 | Method for updating ecu in system based on autosar and apparatus for the same |
KR20140061128A (en) * | 2012-11-13 | 2014-05-21 | 한국전자통신연구원 | Electronic control unit based on automobile open system architecture and method for updating the ecu |
CN103077039B (en) * | 2013-02-28 | 2016-08-24 | 福州昌晖自动化系统有限公司 | A kind of embedded industrial control instrument Software Development Platform |
CN103529821B (en) * | 2013-09-29 | 2016-05-11 | 重庆邮电大学 | A kind of configurableization method and device of the diagnosing protocol stack system based on CAN bus |
CN103713539A (en) * | 2014-01-08 | 2014-04-09 | 上汽通用五菱汽车股份有限公司 | Method for configuring bottom driver and I / O module in vehicle control system development |
CN105224347B (en) * | 2014-05-30 | 2018-10-16 | 展讯通信(深圳)有限公司 | data configuration method and device |
CN107015807B (en) * | 2017-04-06 | 2020-07-10 | 青岛海信宽带多媒体技术有限公司 | Device driver management method |
CN110795153A (en) * | 2019-09-16 | 2020-02-14 | 武汉融卡智能信息科技有限公司 | Electronic equipment and hardware configuration method and device thereof |
-
2020
- 2020-06-10 CN CN202010523590.1A patent/CN111722870B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914315A (en) * | 2012-12-31 | 2014-07-09 | 展讯通信(上海)有限公司 | Configuration method of drivers |
CN109508202A (en) * | 2018-09-27 | 2019-03-22 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Drive development system, method and medium for embedded operating system |
Also Published As
Publication number | Publication date |
---|---|
CN111722870A (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2017409830B2 (en) | Multi-task scheduling method and system, application server and computer-readable storage medium | |
CN101453367B (en) | Software deployment method and system, software deployment server and user server | |
CN111190823A (en) | UI automation test method, electronic device and computer readable storage medium | |
CN112055066B (en) | Communication method, communication device, diagnosis device, and computer-readable storage medium | |
CN116248629B (en) | Registration optimization method for SCA equipment component | |
CN115328529B (en) | Application management method and related equipment | |
CN114827115B (en) | Access method and device for Web service in container, electronic equipment and storage medium | |
CN108023905B (en) | Internet of things application system and method | |
CN111722870B (en) | Driving configuration method, device and equipment of electronic control unit and storage medium | |
CN109840132B (en) | Arranging method and device of container and storage medium | |
CN107656739B (en) | Code compiling method and device based on windows system | |
US7284120B2 (en) | Method and system for allowing a system under test (SUT) to boot a plurality of operating systems without a need for local media | |
CN115150457B (en) | Micro-service management method, vehicle-mounted system and vehicle-mounted equipment | |
CN115328520A (en) | Remote upgrading method and device, electronic equipment and storage medium | |
CN111740972B (en) | Method, device, equipment and storage medium for updating communication protocol stack information | |
CN112764897B (en) | Task request processing method, device and system and computer readable storage medium | |
CN114936045A (en) | Automatic configuration method and system for IO (input/output) driving module of MCAL (micro channel logic) and storage medium | |
CN116248635B (en) | Method, equipment and medium for modifying local area network conflict protocol addresses in batches | |
CN111581578A (en) | Interface request processing method and device | |
CN116566969A (en) | Protocol downloading method, device, equipment and storage medium | |
CN111061503A (en) | Cluster system configuration method and cluster system | |
CN113032342B (en) | Video labeling method and device, electronic equipment and storage medium | |
CN113741946B (en) | Clipping method, device and equipment of public interface function library and readable storage medium | |
CN118689767A (en) | Diagnostic ID automatic configuration method, system, electronic equipment and medium | |
CN113656082A (en) | Network kernel loading method, management server and application server |
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 |