Data mapping method and system of electronic control unit, medium and vehicle
By mapping according to the type and functional safety level of calibration data in the electronic control unit, the problem of insufficient data stability and RAM resource allocation in the prior art is solved, and efficient storage of calibration data and vehicle system performance are realized. promote.
Patent Information
- Application Number
- CN202411179875.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-27
AI Technical Summary
The data mapping management mechanism of the existing electronic control unit has shortcomings in data stability, rationality of RAM resource allocation and system flexibility, and cannot effectively meet the demand for calibration data of the continuous increase and upgrade of automotive functions.
By reading the calibration data to be mapped, determine its data type and functional safety levels, and map the calibration data to the corresponding RAM memory memory area based on these levels, so as to reasonably allocate RAM resources and improve system performance and stability.
It realizes reasonable storage of calibration data, reduces resource waste, and improves the overall performance and stability of the vehicle system.
Smart Images

Figure CN119200965A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data mapping method, system, medium and vehicle for an electronic control unit. Background Art
[0002] With the rapid development of automobile intelligence and networking technology, the number of electronic control units (ECUs), the core of automotive electronic control systems in automobiles, has grown explosively. In automotive electronic control systems, calibration data is stored in FLASH, and during calibration operations, these data are mapped from the FLASH memory area to the RAM memory area through a mapping mechanism, thereby improving data access speed, facilitating dynamic adjustment of calibration parameters, and reducing the number of writes to FLASH, extending its service life. The ECU's software control completes this mapping process, loading the calibration data into a specific area in RAM when the system starts, so that calibration engineers can perform real-time calibration operations in RAM through host computer tools without directly affecting the data in FLASH. With the continuous increase and upgrading of automotive functions, the demand for calibration data is also changing. The existing mapping management mechanism has obvious deficiencies in data stability, rational allocation of RAM resources, and system flexibility. Summary of the invention
[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a data mapping method, system, medium and vehicle for an electronic control unit, which can reasonably allocate RAM memory resources.
[0004] To achieve the above object, one aspect of an embodiment of the present application provides a data mapping method for an electronic control unit, comprising the following steps:
[0005] Reading calibration data to be mapped, and determining the data type of the calibration data;
[0006] Determining a functional safety level corresponding to the calibration data according to the data type;
[0007] The access rate of each memory area in the RAM memory is determined, and the calibration data is mapped to the corresponding memory area according to the functional safety level and the access rate.
[0008] In some embodiments, reading the calibration data to be mapped and determining the data type of the calibration data specifically includes:
[0009] Reading the calibration data from the FLASH memory;
[0010] Construct a data type comparison table based on vehicle performance indicators;
[0011] The calibration data is matched with the data type comparison table to obtain the data type of the calibration data.
[0012] In some embodiments, the data type includes at least one of wiper system data, windshield system data, high voltage system data, motor control unit data, charging system data, power system data, or braking system data.
[0013] In some embodiments, determining the functional safety level corresponding to the calibration data according to the data type specifically includes:
[0014] Analyzing application functions of various systems of the vehicle to obtain functional analysis results, wherein the systems include at least one of a wiper system, a windshield system, a high-voltage system, a motor control unit, a charging system, a power system, or a braking system;
[0015] Perform risk assessment on the functions in each of the systems according to the function analysis results to obtain risk assessment results;
[0016] Classify the functional safety level of each of the systems according to the risk assessment result, and obtain the functional safety level corresponding to the calibration data according to the classification result and the data type;
[0017] Among them, the functional safety level includes a first safety level, a second safety level, a third safety level and a fourth safety level, the first safety level is lower than the second safety level, the second safety level is lower than the third safety level, and the third safety level is lower than the fourth safety level.
[0018] In some embodiments, the memory area includes a first memory area, a second memory area, and a third memory area, and determining the access rate of each memory area in the RAM memory is specifically:
[0019] Determine the first memory area as a first access rate, determine the second memory area as a second access rate, and determine the third memory area as a third access rate;
[0020] The first access rate is greater than the second access rate, and the second access rate is greater than the third access rate.
[0021] In some embodiments, mapping the calibration data to the corresponding memory area according to the functional safety level and the access rate specifically includes:
[0022] When the functional safety level corresponding to the calibration data is the fourth safety level or the third safety level, mapping the calibration data to the first memory area;
[0023] When the functional safety level corresponding to the calibration data is the second safety level, mapping the calibration data to the second memory area;
[0024] When the functional safety level corresponding to the calibration data is the first safety level, the calibration data is mapped to the third memory area.
[0025] To achieve the above object, another aspect of an embodiment of the present application provides a data mapping system for an electronic control unit, comprising:
[0026] A data type determination module, used for reading the calibration data to be mapped and determining the data type of the calibration data;
[0027] A functional safety level determination module, used to determine the functional safety level corresponding to the calibration data according to the data type;
[0028] The calibration data mapping module is used to determine the access rate of each memory area in the RAM memory, and map the calibration data to the corresponding memory area according to the functional safety level and the access rate.
[0029] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and when the program is executed by the processor, the data mapping method of the electronic control unit as described above is realized.
[0030] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium used for computer-readable storage, and the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the data mapping method of the electronic control unit as described above.
[0031] To achieve the above objective, another aspect of an embodiment of the present application provides a vehicle, comprising at least one electronic control unit, wherein the electronic control unit is used to execute the data mapping method of the electronic control unit as described above.
[0032] The beneficial effects of the present invention are as follows: the data mapping method, system, medium and vehicle of the electronic control unit of the present invention first read the calibration data to be mapped, and determine the data type of the calibration data, and then determine the functional safety level corresponding to the calibration data according to the data type, and finally determine the access rate of each memory area in the RAM memory, and map the calibration data with a high functional safety level to the memory area with a high access rate in sequence. The present invention stores the corresponding calibration data in RAM memory areas with different access rates based on the functional safety level of the vehicle, can reasonably allocate RAM memory resources, reduce resource waste, and thus improve the overall performance and stability of the vehicle system. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solution in the embodiments of the present invention, the following introduction is made to the drawings required for use in the embodiments of the present invention. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solution of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flowchart of a data mapping method for an electronic control unit provided by an embodiment of the present invention;
[0035] Figure 2 A step flow chart of step S101 provided in an embodiment of the present invention;
[0036] Figure 3 A step flow chart of step S102 provided in an embodiment of the present invention;
[0037] Figure 4 A flow chart of steps for determining access rate provided by an embodiment of the present invention;
[0038] Figure 5 A step flow chart of step S103 provided in an embodiment of the present invention;
[0039] Figure 6 Another step flow chart of step S103 provided in an embodiment of the present invention;
[0040] Figure 7 Another step flow chart of step S103 provided in an embodiment of the present invention;
[0041] Figure 8 A schematic flow chart of a data mapping method for an electronic control unit provided by an embodiment of the present invention;
[0042] Fig. 9 A schematic structural diagram of a data mapping system for an electronic control unit provided by an embodiment of the present invention;
[0043] Fig.10 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0045] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0046] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0047] In recent years, with the rapid development of automobile intelligence and networking technology, the number of electronic control units (ECUs), the core of automotive electronic control systems in automobiles, has grown explosively. In the actual system development process, the complexity of the control algorithms and parameters inside the ECU has also increased, and hundreds of parameters and signal quantities need to be effectively controlled and adjusted during the operation of the ECU. Calibration engineers will use calibration tools on the test bench and the actual vehicle to interact with the running ECU, and adjust or optimize the internal parameters of the ECU according to the performance requirements of the ECU or the performance requirements of the vehicle, thereby improving the vehicle's power, safety, stability and other performance. Calibration engineers generally use upper computer calibration tools such as CANAPE and INCA to observe and adjust the corresponding variable values during the operation of the ECU, thereby realizing the calibration process.
[0048] The calibration component follows the XCP (Universal Measurement and Calibration Protocol) protocol, which is designed with synchronous data upload, synchronous data excitation, calibration online read and write functions, calibration page switching, Flash erase and flash, bypass and other functions and features. In the actual system development process, the calibration engineer needs to use the upper computer tool to upload ECU data from the lower computer through the XCP protocol to observe the internal variables of the ECU. The calibration engineer sends interactive commands to the lower computer through the human-computer interaction interface provided by the upper computer calibration tool (such as CANAPE), as well as the related PID observation establishment process. After the observation handshake is successful, the lower computer uses the response mode to transmit the value of the observed quantity to the upper computer.
[0049] The calibration data is stored in FLASH, and during the calibration operation, the data is mapped from the FLASH memory area to the RAM memory area through a mapping mechanism, thereby improving the data access speed, facilitating the dynamic adjustment of calibration parameters, and reducing the number of writes to FLASH, extending its service life. The ECU's software control completes this mapping process, loading the calibration data into a specific area in RAM when the system starts, so that the calibration engineer can perform real-time calibration operations in RAM through the host computer tool without directly affecting the data in FLASH. With the continuous increase and upgrading of automobile functions, the demand for calibration data is also constantly changing. The existing mapping management mechanism has obvious deficiencies in data stability, rational allocation of RAM resources, and system flexibility.
[0050] To this end, an embodiment of the present invention proposes a data mapping method for an electronic control unit, which first reads the calibration data to be mapped and determines the data type of the calibration data, and then determines the functional safety level corresponding to the calibration data according to the data type, and finally determines the access rate of each memory area in the RAM memory, and maps the calibration data with a high functional safety level to the memory area with a high access rate in sequence. The present invention stores the corresponding calibration data in RAM memory areas with different access rates according to the functional safety level of the vehicle, and can reasonably allocate RAM memory resources, reduce resource waste, and thus improve the overall performance and stability of the vehicle system. The data mapping method can be applied to scenarios such as automobile manufacturing and autonomous driving, but is not limited to this.
[0051] Reference Figure 1 , Figure 1 The present invention provides a data mapping method for an electronic control unit according to an embodiment of the present invention. The present invention provides a data mapping method for an electronic control unit, and the method includes steps S101 to S103:
[0052] S101, reading calibration data to be mapped, and determining the data type of the calibration data;
[0053] Reference Figure 2 , Figure 2 A step flow chart of step S101 provided in an embodiment of the present invention, further as an optional implementation manner, the step of reading the calibration data to be mapped and determining the data type of the calibration data can be specifically divided into the following steps S1011 to S1013:
[0054] S1011, reading calibration data from the FLASH memory;
[0055] S1012. Construct a data type comparison table according to the performance indicators of the vehicle;
[0056] S1013. Match the calibration data with the data type comparison table to obtain the data type of the calibration data.
[0057] As a further optional implementation, the data type includes at least one of wiper system data, windshield system data, high voltage system data, motor control unit data, charging system data, power system data or braking system data.
[0058] Furthermore, different vehicle systems have their own unique performance indicators. For example, the braking system mainly focuses on braking force, braking distance, and response time, while the wiper system mainly focuses on wiping frequency, force, and durability. Therefore, a data type comparison table can be constructed based on the vehicle's performance indicators to guide the classification of calibration data (such as sensor calibration data, vehicle dynamics parameters, obstacle detection, and tracking algorithm parameters, etc.), and the data type comparison table is used to match the read calibration data with the entries in the data type comparison table to determine its data type. In addition, if unmatched calibration data is found during the matching process, the first address and data content of the calibration data are recorded, and an attempt is made to re-read it from the FLASH memory.
[0059] Exemplarily, the wiper system data mainly involves the wiping effect of the wiper, which may include: wiping frequency (times / min), wiping force (N / cm) and durability test times (times); the windshield system data mainly involves the evaluation of the effects of windshield defogger, defrost and other functions, which may include: defogger time (s), defrost area (%) and temperature control range (℃); the high-voltage system data mainly involves monitoring the integrity and continuity of the high-voltage circuit and other key parameters, which may include: battery management system pin voltage (V) and loop resistance (Ω); the motor control unit (MCU) data mainly involves the motor speed, torque, efficiency and other control parameters, which may include: motor speed (rpm), motor torque (Nm) and electric The data of the charging system mainly involves the charging efficiency, charging time, charging current, etc. of the battery, which may include: charging current (A), charging voltage (V) and charging time (h), etc. The data of the power system integrates the performance parameters of the engine, transmission and other components to optimize the power and economy of the vehicle, which may include: engine power (kW / hp), torque curve (Nm / rpm) and fuel economy (L / 100km), etc. The data of the braking system mainly involves the optimization of braking performance. These data types are based on the measurement results of physical quantities, such as force, distance, time, etc., and are recorded in numerical form, which may include: braking force (N or kN), braking distance (m) and dynamic response time (s), etc.
[0060] S102, determining a functional safety level corresponding to the calibration data according to the data type;
[0061] Reference Figure 3 , Figure 3 A step flow chart of step S102 provided in an embodiment of the present invention, further as an optional implementation, the step of determining the functional safety level corresponding to the calibration data according to the data type can be specifically divided into the following steps S1021 to S1023:
[0062] S1021. Analyze application functions of various systems of the vehicle to obtain function analysis results, where the systems include at least one of a wiper system, a windshield system, a high-voltage system, a motor control unit, a charging system, a power system, or a braking system;
[0063] S1022. Perform risk assessment on the functions in each system according to the function analysis results to obtain risk assessment results;
[0064] S1023. Classify the functional safety level of each system according to the risk assessment result, and obtain the functional safety level corresponding to the calibration data according to the classification result and the data type;
[0065] Among them, the functional safety level includes a first safety level, a second safety level, a third safety level and a fourth safety level. The first safety level is lower than the second safety level, the second safety level is lower than the third safety level, and the third safety level is lower than the fourth safety level.
[0066] Specifically, the vehicle functional safety level (ASIL, Automotive Safety Integrity Level) is a standard for evaluating the safety level of automotive electronic and computer systems according to the ISO 26262 standard. Different vehicle functions are divided into different ASIL levels due to their different impact on safety. First, a comprehensive analysis is conducted on each system in the vehicle (such as the wiper system, windshield system, high-voltage system, motor control unit, charging system, power system or braking system) to understand its function, structure and working principle, and obtain the functional analysis results corresponding to each system. Then, based on the functional analysis results of the system, a risk assessment is conducted on each function in each system to assess its possible failures and obtain the risk assessment results. Finally, based on the risk assessment results and the requirements of the ISO 26262 standard, the vehicle functions are divided into corresponding functional safety levels. The functional safety levels corresponding to each vehicle system are shown in Table 1 below. Among them, the functional safety levels include the first safety level (i.e., ASILA), the second safety level (i.e., ASIL B), the third safety level (i.e., ASIL C) and the fourth safety level (i.e., ASILD), with the highest requirements for ASIL D and the lowest requirements for ASIL A.
[0067] Table 1
[0068]
[0069] S103, determining the access rate of each memory area in the RAM memory, and mapping the calibration data to the corresponding memory area according to the functional safety level and the access rate.
[0070] It should be noted that in automotive electronic control systems, since the electronic control unit needs to quickly process a large amount of real-time data and control instructions, RAM memory is used to store these temporary data (such as calibration data). By mapping the calibration data from the slower FLASH memory to the RAM memory, the electronic control unit can significantly improve the data access speed, thereby speeding up the control response and improving vehicle performance. However, the capacity of the RAM memory is limited, and the access speed of different areas may vary depending on the chip design. The embodiment of the present invention stores the corresponding calibration data in RAM memory areas with different access rates based on the vehicle functional safety level, which can reasonably allocate RAM memory resources, reduce resource waste, and improve the overall performance and stability of the vehicle system.
[0071] Reference Figure 4 , Figure 4 A flowchart of a step of determining an access rate provided in an embodiment of the present invention, further as an optional implementation manner, the memory area includes a first memory area, a second memory area, and a third memory area, and the step of determining the access rate of each memory area in the RAM memory can be specifically divided into the following steps S1031:
[0072] S1031, determining a first access rate for the first memory area, determining a second access rate for the second memory area, and determining a third access rate for the third memory area;
[0073] The first access rate is greater than the second access rate, and the second access rate is greater than the third access rate.
[0074] Specifically, RAM (Random Access Memory) is a main memory in a computer system, used to temporarily store data and programs. In a specific CPUx, the memory areas of the RAM memory include CPUx DSPR (i.e., the first memory area), CPUx DLMU (i.e., the second memory area), and SYSRAM / SYSRAM1 / SYSRAM2 (i.e., the third memory area). Different memory areas have different access speeds. The memory areas closer to the CPU (such as the internal data memory CPUx DSPR) have faster access speeds, while the external system RAM (such as SYSRAM) is relatively slow. Therefore, the access rate of each memory area is determined as follows:
[0075] CPUx DSPR->CPUx DLMU->SYSRAM / SYSRAM1 / SYSRAM2
[0076] Among them, CPUx DSPR (data memory) is the data memory inside the CPU, which is directly connected to the CPU core. The data reading and writing speed is very fast, which is suitable for storing temporary data, variables and calculation results that need to be accessed quickly; CPUxDLMU (data cache logic memory unit) is a storage unit for caching data. It is located between the CPU and the external system RAM. Although the access rate is slightly slower than DSPR, it still has a faster access speed; SYSRAM / SYSRAM1 / SYSRAM2 is system RAM, which is located outside the CPU and is used to store program code, data and temporary data during system operation. Compared with the memory inside the CPU, the access speed of system RAM is slower. SYSRAM1 and SYSRAM2 are different memory blocks that distinguish different types of data or functions, but the overall access rate is not essentially different from SYSRAM.
[0077] Reference Figure 5 , Figure 6as well as Figure 7 , Figure 5 A step flow chart of step S103 provided in an embodiment of the present invention, Figure 6 and Figure 7 Another step flow chart of step S103 provided in an embodiment of the present invention, further as an optional implementation, the step of mapping the calibration data to the corresponding memory area according to the functional safety level and the access rate can be specifically divided into the following steps S1032 to S1034:
[0078] S1032: when the functional safety level corresponding to the calibration data is the fourth safety level or the third safety level, mapping the calibration data to the first memory area;
[0079] S1033: When the functional safety level corresponding to the calibration data is the second safety level, mapping the calibration data to the second memory area;
[0080] S1034. When the functional safety level corresponding to the calibration data is the first safety level, map the calibration data to the third memory area.
[0081] It should be noted that for calibration data with high functional safety levels, memory areas with higher access rates are preferentially used for storage to ensure fast access to data, thereby improving the safety of the vehicle system.
[0082] Furthermore, calibration tools such as CANAPE and INCA can be used based on the XCP protocol to specify the storage location and mapping method of the calibration data through a link file. The link file is a file that describes the memory layout and data mapping relationship of the electronic control unit, which includes the overall structural information of the ECU, such as memory partition, memory type (Flash, EEPROM, RAM, etc.), the name and type of the calibration data, the storage address of the data, etc.
[0083] In summary, the processing process of the data mapping method of the electronic control unit according to the embodiment of the present invention is as follows: Figure 8 As shown:
[0084] D100, read the calibration data to be mapped, and determine the data type of the calibration data;
[0085] D200, determining the functional safety level corresponding to the calibration data according to the data type, the functional safety level including the first safety level, the second safety level, the third safety level and the fourth safety level;
[0086] D300, determine the access rate of each memory area in the RAM memory;
[0087] D400, maps calibration data with high functional safety level to memory areas with high access rate in sequence.
[0088] The above is a description of the data mapping method of the electronic control unit of the embodiment of the present invention. It can be appreciated that, compared with the calibration data mapping method in the prior art, the embodiment of the present invention stores calibration data of a higher safety level in a RAM memory area with a higher access rate based on the functional safety level of the vehicle, and can reasonably allocate RAM memory resources according to the performance requirements of the vehicle, reduce resource waste, and thus improve the overall performance and stability of the vehicle system.
[0089] Reference Fig. 9 , an embodiment of the present invention further provides a data mapping system for an electronic control unit, comprising:
[0090] A data type determination module is used to read the calibration data to be mapped and determine the data type of the calibration data;
[0091] A functional safety level determination module, used to determine the functional safety level corresponding to the calibration data according to the data type;
[0092] The calibration data mapping module is used to determine the access rate of each memory area in the RAM memory, and map the calibration data to the corresponding memory area according to the functional safety level and the access rate.
[0093] The contents of the data mapping method embodiment of the above-mentioned electronic control unit are all applicable to the data mapping system embodiment of the present electronic control unit. The functions specifically implemented by the data mapping system embodiment of the present electronic control unit are the same as those of the data mapping method embodiment of the above-mentioned electronic control unit, and the beneficial effects achieved are also the same as those achieved by the data mapping method embodiment of the above-mentioned electronic control unit.
[0094] The embodiment of the present invention further provides an electronic device, the electronic device comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the program is executed by the processor, the data mapping method of the electronic control unit is realized. The electronic device may be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.
[0095] like Fig.10 FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Fig.10 , an embodiment of the present invention provides an electronic device, including:
[0096] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention.
[0097] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the data mapping method of the electronic control unit of the embodiment of the present invention;
[0098] Input / output interface 1003, used to implement information input and output;
[0099] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0100] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );
[0101] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .
[0102] An embodiment of the present invention also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the data mapping method of the above-mentioned electronic control unit.
[0103] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0104] An embodiment of the present invention further provides a vehicle, the vehicle comprising at least one electronic control unit, the electronic control unit being used to execute the data mapping method of the electronic control unit. Specifically, the vehicle may be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle may also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle may be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it may be a hybrid vehicle or a pure electric vehicle.
[0105] The embodiment of the present invention also discloses a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 1 The method shown.
[0106] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the above-mentioned boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0107] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified to the contrary, one or more of the above-mentioned functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0108] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0109] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0110] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the above-mentioned program is printed, since the above-mentioned program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or processing in other suitable ways as necessary, and then stored in a computer memory.
[0111] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0112] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0113] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0114] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A data mapping method for an electronic control unit, characterized in that: The following steps are involved: Reading calibration data to be mapped, and determining the data type of the calibration data; Determining a functional safety level corresponding to the calibration data according to the data type; The access rate of each memory area in the RAM memory is determined, and the calibration data is mapped to the corresponding memory area according to the functional safety level and the access rate.
2. The data mapping method of an electronic control unit according to claim 1, characterized in that: The reading of the calibration data to be mapped and determining the data type of the calibration data specifically includes: Reading the calibration data from the FLASH memory; Construct a data type comparison table based on vehicle performance indicators; The calibration data is matched with the data type comparison table to obtain the data type of the calibration data.
3. The data mapping method of an electronic control unit according to claim 1, characterized in that: The data type includes at least one of wiper system data, windshield system data, high voltage system data, motor control unit data, charging system data, power system data or brake system data.
4. The data mapping method of an electronic control unit according to claim 1, characterized in that: Determining the functional safety level corresponding to the calibration data according to the data type specifically includes: Analyzing application functions of various systems of the vehicle to obtain functional analysis results, wherein the systems include at least one of a wiper system, a windshield system, a high-voltage system, a motor control unit, a charging system, a power system, or a braking system; Perform risk assessment on the functions in each of the systems according to the function analysis results to obtain risk assessment results; Classify the functional safety level of each of the systems according to the risk assessment result, and obtain the functional safety level corresponding to the calibration data according to the classification result and the data type; Among them, the functional safety level includes a first safety level, a second safety level, a third safety level and a fourth safety level, the first safety level is lower than the second safety level, the second safety level is lower than the third safety level, and the third safety level is lower than the fourth safety level.
5. The data mapping method of an electronic control unit according to claim 4, characterized in that: The memory area includes a first memory area, a second memory area and a third memory area, and the access rate of each memory area in the RAM memory is determined as follows: Determine the first memory area as a first access rate, determine the second memory area as a second access rate, and determine the third memory area as a third access rate; The first access rate is greater than the second access rate, and the second access rate is greater than the third access rate.
6. The data mapping method of an electronic control unit according to claim 5, characterized in that: Mapping the calibration data to the corresponding memory area according to the functional safety level and the access rate specifically includes: When the functional safety level corresponding to the calibration data is the fourth safety level or the third safety level, mapping the calibration data to the first memory area; When the functional safety level corresponding to the calibration data is the second safety level, mapping the calibration data to the second memory area; When the functional safety level corresponding to the calibration data is the first safety level, the calibration data is mapped to the third memory area.
7. A data mapping system for an electronic control unit, characterized in that: include: A data type determination module, used for reading the calibration data to be mapped and determining the data type of the calibration data; A functional safety level determination module, used to determine the functional safety level corresponding to the calibration data according to the data type; The calibration data mapping module is used to determine the access rate of each memory area in the RAM memory, and map the calibration data to the corresponding memory area according to the functional safety level and the access rate.
8. An electronic device, characterized in that: The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of the data mapping method for the electronic control unit as described in any one of claims 1 to 6 are realized.
9. A storage medium, the storage medium being a computer-readable storage medium, used for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the data mapping method for the electronic control unit as claimed in any one of claims 1 to 6.
10. A vehicle, characterized in that: The method comprises at least one electronic control unit, wherein the electronic control unit is used to execute the data mapping method for the electronic control unit according to any one of claims 1 to 6.
