CN111158335B - Stitch function matching method of multi-ECU system and storage medium - Google Patents

Stitch function matching method of multi-ECU system and storage medium Download PDF

Info

Publication number
CN111158335B
CN111158335B CN201911136369.4A CN201911136369A CN111158335B CN 111158335 B CN111158335 B CN 111158335B CN 201911136369 A CN201911136369 A CN 201911136369A CN 111158335 B CN111158335 B CN 111158335B
Authority
CN
China
Prior art keywords
function
ecu
pin
data combination
array
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
Application number
CN201911136369.4A
Other languages
Chinese (zh)
Other versions
CN111158335A (en
Inventor
葛兆凤
赵祥博
张霞
崔文韬
陈娜娜
刘晓波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weichai Power Co Ltd
Original Assignee
Weichai Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN201911136369.4A priority Critical patent/CN111158335B/en
Publication of CN111158335A publication Critical patent/CN111158335A/en
Application granted granted Critical
Publication of CN111158335B publication Critical patent/CN111158335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Abstract

The application discloses a pin function matching method and a storage medium of a multi-ECU system, wherein the method comprises the following steps: dividing pins of all the ECUs into a plurality of pin groups, and setting a unique identification number for each pin group; setting a unique number for each function; respectively allocating a pin group for each function, and correspondingly combining the serial numbers of the functions and the identification numbers of the corresponding pin groups to obtain a plurality of data combinations; setting a data set, and marking each element of the data set by an index respectively; correspondingly matching each data combination with each element respectively, and representing each data combination by using a corresponding element respectively; the corresponding elements are assigned different values according to the function enablement or non-enablement. The data combination is used for representing the matching relation between the pin group and the functions, and the data combination is correspondingly represented through the elements of the data set, so that the function matching of the pins is conveniently managed, the IO function of the ECU is expanded, and the flexible configuration of the pins and the functions is realized.

Description

Stitch function matching method of multi-ECU system and storage medium
Technical Field
The application relates to the technical field of vehicles, in particular to a pin function matching method and a storage medium of a multi-ECU system.
Background
An ecu (electronic Control unit) electronic Control unit, also called a "traveling computer" or a "vehicle-mounted computer", is used for controlling an engine. For the control of a multi-cylinder engine, one ECU can not meet the requirements, for example, a 12-cylinder engine, and only 6 cylinders can be controlled by a single ECU, so that two ECUs are needed and 12 cylinders are needed in total. The same pins match the same functions, and if the pin resources of the master ECU cannot meet the requirement of engine control, the slave ECU is required to realize the function. The main ECU is used for acquiring sensor signals and calculating high and low idle speeds, torque, fuel injection quantity, fuel injection advance angle and the like; and the slave ECU is used for receiving information such as the oil injection quantity, the oil injection advance angle and the like transmitted by the master ECU and executing oil injection operation. In the prior art, the slave ECU has poor expansion effect on the output interface of the master ECU, the problem of stitch resource shortage cannot be solved, and flexible configuration of functions and stitches cannot be realized.
Disclosure of Invention
The application aims to provide a pin function matching method and a storage medium of a multi-ECU system. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to an aspect of an embodiment of the present application, there is provided a pin function matching method of a multi-ECU system, including:
dividing pins of all ECUs of the multi-ECU system into a plurality of pin groups according to a combination mode in use, and setting a unique identification number for each pin group;
setting a unique number for each function to be controlled by the multi-ECU system;
respectively allocating a pin group for each function, and correspondingly combining the serial numbers of the functions and the corresponding identification numbers of the pin groups to obtain a plurality of data combinations;
setting a data set comprising a plurality of elements, and marking each element by an index respectively;
according to the corresponding relation between each data combination and each index, correspondingly matching each data combination and each element, and respectively representing each data combination by using a corresponding element;
assigning different values to the corresponding elements according to the function enablement or non-enablement.
Further, the setting a unique identification number for each pin group includes: and respectively setting a unique number for each ECU, respectively setting a unique number for each pin group of the same ECU, and combining the number of the ECU and the number of the pin group to be used as the identification number of the pin group.
Further, the combining the number of the ECU and the number of the pin group as the identification number of the pin group includes: and splicing the serial number of the ECU with the serial number of the pin group, and taking the spliced number as the identification number of the pin group.
Further, the correspondingly combining the serial numbers of the functions and the corresponding identification numbers of the pin groups respectively to obtain a plurality of data combinations includes: and correspondingly splicing the serial numbers of the functions and the identification numbers of the corresponding pin groups together, and taking the numbers obtained by splicing as a data combination.
Further, the data set is an array including a plurality of array elements, and the index is a subscript of the array elements.
Further, the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: correspondingly matching the data combination with the element with the subscript equal to the value of the data combination; wherein the array is a one-dimensional array.
Further, the array is a two-dimensional array, and array elements of the two-dimensional array have a first subscript and a second subscript; the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: and if the first subscript and the second subscript of one array element are respectively the same as the serial number and the identification number of the function in one data combination, correspondingly matching the array element with the data combination.
Further, the array is a three-dimensional array, and array elements of the three-dimensional array have a first subscript, a second subscript and a third subscript; the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: and if the first subscript, the second subscript and the third subscript of one array element are respectively the same as the serial number of the function, the serial number of the ECU and the serial number of the pin group in one data combination, correspondingly matching the array element with the data combination.
Further, the assigning different values to the corresponding elements according to the function enablement or non-enablement includes: and if the function is enabled, assigning the corresponding element to be 1, and if the function is not enabled, assigning the corresponding element to be 0.
According to another aspect of the embodiments of the present application, there is provided a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the pin function matching method of the multi-ECU system.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the pin function matching method of the multi-ECU system, the data combination is used for representing the matching relation between the pin group and the functions, then the data combination is correspondingly represented through the elements of the data set, and the function matching of the pins of the multi-ECU system can be conveniently managed by using the same-version programs and data, so that the IO function of the ECU is expanded, the management of the programs and the data is facilitated, and the flexible configuration of the pins and the functions is realized.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application, or may be learned by the practice of the embodiments. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 shows a flow chart of an ECU pin function matching method of a multiple ECU system according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a first pin functional configuration mode in another embodiment of the present application;
fig. 3 shows a schematic diagram of a second pin function configuration mode in another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
One embodiment of the present application provides a pin function matching method for a multi-ECU system, including:
dividing pins of all ECUs of the multi-ECU system into a plurality of pin groups according to a combination mode in use, and setting a unique identification number for each pin group;
setting a unique number for each function to be controlled by the multi-ECU system;
respectively allocating a pin group for each function, and correspondingly combining the serial numbers of the functions and the corresponding identification numbers of the pin groups to obtain a plurality of data combinations;
setting a data set comprising a plurality of elements, and marking each element by an index respectively;
according to the corresponding relation between each data combination and each index, correspondingly matching each data combination and each element, and respectively representing each data combination by using a corresponding element;
assigning different values to the corresponding elements according to the function enablement or non-enablement.
In some embodiments, the setting a unique identification number for each pin group includes: and respectively setting a unique number for each ECU, respectively setting a unique number for each pin group of the same ECU, and combining the number of the ECU and the number of the pin group to be used as the identification number of the pin group.
In some embodiments, the combining the number of the ECU and the number of the pin group as the identification number of the pin group includes: and splicing the serial number of the ECU with the serial number of the pin group, and taking the spliced number as the identification number of the pin group.
In some embodiments, the correspondingly combining the serial numbers of the functions and the identification numbers of the corresponding pin groups to obtain a plurality of data combinations includes: and correspondingly splicing the serial numbers of the functions and the identification numbers of the corresponding pin groups together, and taking the numbers obtained by splicing as a data combination.
In some embodiments, the data set is an array comprising array elements, and the index is a subscript of the array elements.
In some embodiments, the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: correspondingly matching the data combination with the element with the subscript equal to the value of the data combination; wherein the array is a one-dimensional array.
In some embodiments, the array is a two-dimensional array, the array elements of the two-dimensional array having a first index and a second index; the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: and if the first subscript and the second subscript of one array element are respectively the same as the serial number and the identification number of the function in one data combination, correspondingly matching the array element with the data combination.
In some embodiments, the array is a three-dimensional array, the array elements of the three-dimensional array having a first subscript, a second subscript, and a third subscript; the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: and if the first subscript, the second subscript and the third subscript of one array element are respectively the same as the serial number of the function, the serial number of the ECU and the serial number of the pin group in one data combination, correspondingly matching the array element with the data combination.
In some embodiments, the assigning different values to the corresponding elements according to the function enablement or non-enablement comprises: and if the function is enabled, assigning the corresponding element to be 1, and if the function is not enabled, assigning the corresponding element to be 0.
According to another aspect of the embodiments of the present application, there is provided a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the pin function matching method of the multi-ECU system.
According to the pin function matching method of the multi-ECU system, the data combination is used for representing the matching relation between the pin group and the functions, and then the data combination is correspondingly represented through the elements of the data set, so that the function matching of the pins of the multi-ECU system can be conveniently managed by using the same-version programs and data, the IO function of the ECU is expanded, the management of the programs and the data is facilitated, and the flexible configuration of the pins and the functions is realized.
As shown in fig. 1, an embodiment of the present application provides an ECU pin function matching method 1 of a multi-ECU system, including:
s100, dividing pins of all ECUs of the multi-ECU system into a plurality of pin groups according to a combination mode in use, and setting a unique identification number for each pin group;
for example, if the pins X2 and X3 are used together to control the first function, X2 and X3 are divided into a pin group, and a unique identification number 01 is assigned to the pin group; in some embodiments, the identification number of the pin group may be a series of consecutive integers or a series of non-consecutive integers;
s101, setting a unique number for each function to be controlled by the multi-ECU system;
for example, if there are 6 functions to be controlled by the multi-ECU system, the functions are assigned numbers 1, 2, 3,4, 5, and 6, respectively; the functions can be divided into different categories, and the functions of each category can be controlled by the same pin group;
s102, distributing a pin group for each function, and correspondingly combining the serial number of each function and the identification number of each pin group corresponding to each function to obtain a plurality of data combinations;
for example, if the number of a function is 3 and the corresponding identification number of the pin group controlling the function is 24, the number of the function and the identification number of the pin group controlling the function are spliced together to obtain a corresponding data combination of 324; assuming that the number of a function is 32 and the identification number of the corresponding pin group is 04, the corresponding data combination is 3204;
s103, setting a data set comprising a plurality of elements, and marking each element through an index;
for example, a data set may be a one-dimensional array; defining an array ai, wherein each array element aj is marked and distinguished by subscript, j is more than or equal to 0 and less than or equal to i-1;
s104, correspondingly matching each data combination and each element according to the corresponding relation between each data combination and each index, and representing each data combination by using a corresponding element;
in some embodiments, each data combination with equal value is matched with each index correspondingly, and each data combination is represented by a corresponding element; if the value of a data combination is equal to the index of a certain element, the element is used for correspondingly representing the data combination;
for example, the element corresponding to the data set 324 is a [324 ]; the corresponding element of data set 3204 is a [3204 ]; in the array a [ i ], the number i of array elements is greater than or equal to the maximum value in all data combinations;
s105, assigning different values to corresponding elements according to the function enablement or not; if the function corresponding to the element is enabled, assigning the element as a value representing that the function is enabled, and if the function corresponding to the element is not enabled, assigning the element as a value representing that the function is not enabled;
for example, if the function corresponding to element a [324] is enabled, then element a [324] is given a value of 1; if the function corresponding to element a [324] is not enabled, then element a [324] is assigned a value of 0.
The data combination is used for representing the matching relation between the pin group and the functions, and then the data combination is correspondingly represented through the elements of the data set, so that the function matching of the pins of the multi-ECU system can be managed conveniently by using programs and data of the same version, the IO function of the ECU is expanded, the management of the programs and the data is facilitated, and the flexible configuration of the pins and the functions is realized.
Another embodiment of the present application provides an ECU pin function matching method 2 of a multi-ECU system, including:
s200, dividing pins of all ECUs of the multi-ECU system into a plurality of pin groups according to a combination mode when the pins are used, and setting a unique identification number for each pin group;
s201, setting numbers for functions to be controlled by the multi-ECU system;
s202, distributing a pin group for each function, and combining the serial number of the function and the identification number of the pin group corresponding to the function to form a data combination;
for example, if the number of a function is 3 and the identification number of the corresponding pin group is 24, the corresponding data combination is [3,24 ];
s203, setting a two-dimensional data set, wherein each element in the two-dimensional data set is marked through an index;
in some embodiments, the two-dimensional data set is a two-dimensional array, the indices of the elements of the two-dimensional array being two indices, the elements of the two-dimensional array being labeled by two indices;
for example, defining a two-dimensional array a [ i ] [ j ];
s204, according to the corresponding relation between each data combination and each index, correspondingly matching each data combination and each element, and respectively representing each data combination by using a corresponding element;
in some embodiments, the elements of the two-dimensional data set are correspondingly matched with the data combinations according to the corresponding relationship between the elements in the data combinations and the two subscripts of the index, and each data combination is represented by an element;
for example, if the two elements in the data set [3,24] are 3 and 24 respectively, and the two subscripts of the corresponding index are 3 and 24 respectively, then the data set [3,24] corresponds to the element a [3] [24], which is denoted by a [3] [24 ];
s205, assigning a value to the element according to whether the function is enabled or not, wherein if the function corresponding to the element is enabled, the value is assigned as a first numerical value, and if the function corresponding to the element is not enabled, the value is assigned as a second numerical value; for example, a first value of 1 and a second value of 0 may be set, and if the function corresponding to the element a [3] [24] is enabled, a [3] [24] may be set to 1.
The data combination is used for representing the matching relation between the pin group and the functions, and then the data combination is correspondingly represented through the elements of the two-dimensional data set, so that the function matching of the pins of the multi-ECU system can be managed conveniently by using the same-version programs and data, the IO function of the ECU is expanded, the management of the programs and the data is facilitated, and the flexible configuration of the pins and the functions is realized.
Another embodiment of the present application provides an ECU pin function matching method 3 of a multi-ECU system, including:
s301, dividing pins of all ECUs of the multi-ECU system into a plurality of pin groups according to a combination mode when the pins are used, and setting a unique identification number for each pin group;
dividing the pins of each ECU into a plurality of pin groups according to the combination mode when the pins are used; setting a unique number for each ECU, setting a unique number for each pin group of the same ECU, and combining the number of the ECU and the number of the pin group to be used as an identification number of the pin group; the identification number of each pin group in the multi-ECU system is unique;
for example, assume that a multi-ECU system includes four identical ECUs, each of which is provided with numbers 0, 1, 2, and 3, respectively; each ECU is divided into 6 pin groups, and the pin groups of the same ECU are respectively numbered as 0, 1, 2, 3,4 and 5; taking the combination of the number of the ECU and the number of the pin group as the identification number of the pin group; for example, the identification number of the fifth pin group of the fourth ECU is [3,4 ];
in some embodiments, the number of the ECU is concatenated with the number of the pin group as the identification number of the pin group; for example, the identification number of the fifth pin group of the fourth ECU is 34 obtained by splicing the number 3 of the fourth ECU and the number 4 of the fifth pin group;
in general, each stitch group may include one stitch or more than one stitch; for example, it is more common for one stitch group to include two stitches;
s302, setting numbers for functions to be controlled by the multi-ECU system;
for example, assuming that there are five functions that need to be implemented using the multi-ECU system, each function is provided with the numbers 0, 1, 2, 3, and 4, respectively;
s303, distributing a pin group for each function, and recording the serial number of the function and the identification number of the pin group corresponding to the function as a data combination;
for example, assuming that the second function (number 1) is assigned with the identification number of the fifth pin group of the fourth ECU, the corresponding data combination is [1,3,4 ];
s304, setting a three-dimensional data set; each element in the three-dimensional data set is labeled by three subscripts;
for example, the three-dimensional data set may be a three-dimensional array a [ i ] [ j ] [ k ], the elements of which are denoted as a [ m ] [ n ] [ p ]; the first subscript is m, the second subscript is n, and the third subscript is p; wherein the value of i is the total number of functions to be realized, the value of j is the total number of the ECUs, and the value of k is the total number of the pin groups of each ECU;
s305, correspondingly matching each data combination and each element according to the relation between each data combination and each index, and representing each data combination by using a corresponding element;
in some embodiments, the elements of the three-dimensional data set are correspondingly matched with the data combinations according to the corresponding relations between the three elements in the data combinations and the three subscripts of the index, and each data combination is represented by an element;
for example, if three elements in the data set [1,3,4] are 1,3 and 4, respectively, the three subscripts of the corresponding index are 1,3 and 4, respectively, then the data set [1,3,4] corresponds to the element a [1] [3] [4], and the data set is represented by a [1] [3] [4 ];
s306, assigning a value to the element according to whether the function is enabled, if the function corresponding to the element is enabled, assigning a first value to the element, and if the function corresponding to the element is not enabled, assigning a second value to the element; for example, if a function is enabled, the corresponding element is assigned 1, if not, the element is assigned 0, and if a [1] [3] [4] is not enabled, a [1] [3] [4] is made 0.
In certain embodiments, a multi-ECU system includes one master ECU and several slave ECUs; the master ECU and the slave ECU have completely same software and hardware structures, master-slave identities of the ECUs are determined by master-slave identification signals, the master ECU and the slave ECUs CAN be completely interchanged for use, and the master ECU and the slave ECUs communicate through a master-slave communication CAN.
The main ECU and the slave ECU are identified through hard wires, and if the external high level of an identification pin X1 (digital input I/O) of one ECU is detected, the ECU is the main ECU; if the external low level of the identification pin X1 of an ECU is detected, the ECU is the slave ECU, as shown in FIG. 2.
The execution main body for identifying the master ECU and the slave ECU is the ECU, the ECU detects the level of a pin, and the ECU identifies the master ECU and the slave ECU according to the pin level.
In some embodiments, the pin function configuration modes of the same pin of the master ECU and the slave ECU are divided into two types: the first pin function configuration mode is that one ECU function is enabled, and the same pin function of the other ECU is not enabled; the second pin function configuration mode is that one ECU function is enabled, and the other ECU is enabled by the same pin function and has different functions.
Selecting a functional configuration mode according to actual matching requirements of the engine; if the number of actuators required by the engine is large and the pin resources of the ECU are small, selecting a second pin function configuration mode; otherwise, the first pin function configuration mode is selected.
The first pin function configuration mode:
taking the pins X2 and X3 of the master ECU as an example, the pins X2 and X3 form a first pin group, so that the pins X2/X3 of the master ECU control the first function, and the pins X2/X3 of the slave ECU are idle, as shown in FIG. 2.
Defining a two-dimensional array, and controlling the master ECU or the slave ECU by using the two-dimensional array; and calibrating whether a certain function is opened or not by a calibrating person according to the requirement of the machine type. The first function of the master ECU is turned on by the two-dimensional array, while the first function of the slave ECU is turned off.
The 1 st position of the two-dimensional array is marked as 1 to represent that the first function (function 1) of the main ECU is turned on, and the 1 st position is marked as 0 to represent that the first function of the main ECU is turned off; the 2 nd bit of the two-dimensional array is marked as 1 to represent that the first function of the slave ECU is turned on, and the 2 nd bit is marked as 0 to represent that the first function of the slave ECU is turned off. By controlling the two-dimensional array, the same pin of the master ECU and the slave ECU can be controlled by the same version of program and the same version of data, and a certain function is controlled to be turned on or turned off.
If the first function of fig. 2 is implemented, the calibration data is shown in table 1.
TABLE 1 calibration data for the first pin configuration mode
Two dimensional data First bit Second bit
Array of elements 1 0
The second pin function configuration mode comprises the following steps:
take the X2 and X3 pins of the master ECU as an example. The channels are identical and functionally different, with the channels of both ECUs enabled, as shown in fig. 3. The X2/X3 pin of the master ECU is matched with the control first function (function 1), and the X2/X3 of the slave ECU is matched with the control second function (function 2), so that the control is carried out through the same-version program and the same-version data.
The two-dimensional arrays are defined to realize that the same pin of the master ECU and the slave ECU respectively control different functions.
The first array controls the first function and the second array controls the second function. The 1 st position of the first array is marked as 1 to represent that the first function of the main ECU is turned on, and the 1 st position of the first array is marked as 0 to represent that the first function of the main ECU is turned off; the 2 nd bit of the first array is marked as 1 to represent that the slave ECU enables the first function; the 2 nd bit of the first array is marked 0 to represent that the slave ECU does not enable the first function.
The 1 st position of the second array is marked as 1 to represent that the second function of the main ECU is opened, and the marked position is marked as 0 to represent that the second function of the main ECU is closed; the 2 nd bit of the second array is marked as 1 to represent that the slave ECU enables the second function; the 2 nd bit of the second array is marked 0 to represent that the slave ECU does not enable the second function.
If the function of fig. 3 is implemented, the calibrated data is shown in table 2.
TABLE 2 calibration data for the second pin configuration mode
Two dimensional data First bit Second bit
First array 1 0
Second array 0 1
Three or more ECUs may also be solved in this way.
In some embodiments, the same type of pin groups are put into the same category, and any pin group in the category can be selected by the function matched with the pin groups, for example, the water temperature signal and the sensor are of a resistor type, the pull-up resistance value in the ECU is required to be x Ω, and the water temperature function can be selected from any one of all the pull-up x Ω pin groups in the ECU. Other types of functions can be realized by the method. Thereby improving the matching efficiency of the pin group and the functions.
The data combination is used for representing the matching relation between the pin group and the functions, and then the data combination is correspondingly represented through the elements of the data set, so that the function matching of the pins of the multi-ECU system can be managed conveniently by using programs and data of the same version, the IO function of the ECU is expanded, the management of the programs and the data is facilitated, and the flexible configuration of the pins and the functions is realized.
In addition, through the technical scheme, the unused functions and pin groups can be shielded, so that the interference generated by the unused input signals or the drive function generated by the unused drive pins can be avoided; the unused function is closed, thereby reducing the CPU load in the ECU and solving the problem of stitch conflict caused by different types of ECU needing different functions and using the same type of ECU.
It should be noted that:
the term "module" is not intended to be limited to a particular physical form. Depending on the particular application, a module may be implemented as hardware, firmware, software, and/or combinations thereof. Furthermore, different modules may share common components or even be implemented by the same component. There may or may not be clear boundaries between the various modules.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. In addition, this application is not directed to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The above-mentioned embodiments only express the embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (6)

1. A pin function matching method of a multi-ECU system is characterized by comprising the following steps:
dividing pins of all ECUs of the multi-ECU system into a plurality of pin groups according to a combination mode in use, and setting a unique identification number for each pin group;
setting a unique number for each function to be controlled by the multi-ECU system;
respectively allocating a pin group for each function, and correspondingly combining the serial numbers of the functions and the corresponding identification numbers of the pin groups to obtain a plurality of data combinations;
setting a data set comprising a plurality of elements, and marking each element by an index respectively;
according to the corresponding relation between each data combination and each index, correspondingly matching each data combination and each element, and respectively representing each data combination by using a corresponding element;
assigning different values to the corresponding elements according to the function enablement or non-enablement;
set up a unique identification number respectively for each stitch group includes: setting a unique number for each ECU, setting a unique number for each pin group of the same ECU, and combining the number of the ECU and the number of the pin group to be used as an identification number of the pin group;
the combination of the number of the ECU and the number of the pin group as the identification number of the pin group includes: splicing the serial number of the ECU with the serial number of the pin group, and taking the spliced number as the identification number of the pin group;
the correspondingly combining the serial numbers of the functions and the identification numbers of the corresponding pin groups respectively to obtain a plurality of data combinations comprises: correspondingly splicing the serial numbers of the functions and the identification numbers of the corresponding pin groups together respectively, and taking the numbers obtained by splicing as a data combination respectively;
the data set is an array comprising a plurality of array elements, and the index is a subscript of the array elements.
2. The method according to claim 1, wherein the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index comprises: correspondingly matching the data combination with the element with the subscript equal to the value of the data combination; wherein the array is a one-dimensional array.
3. The method of claim 1, wherein the array is a two-dimensional array, the array elements of the two-dimensional array having a first index and a second index; the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: and if the first subscript and the second subscript of one array element are respectively the same as the serial number and the identification number of the function in one data combination, correspondingly matching the array element with the data combination.
4. The method of claim 1, wherein the array is a three-dimensional array having array elements with a first subscript, a second subscript, and a third subscript; the correspondingly matching each data combination and each element according to the corresponding relationship between each data combination and each index includes: and if the first subscript, the second subscript and the third subscript of one array element are respectively the same as the serial number of the function, the serial number of the ECU and the serial number of the pin group in one data combination, correspondingly matching the array element with the data combination.
5. The method of claim 1, wherein the assigning different values to the corresponding elements according to the function enablement or non-enablement comprises: and if the function is enabled, assigning the corresponding element to be 1, and if the function is not enabled, assigning the corresponding element to be 0.
6. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the pin function matching method of the multi-ECU system according to any one of claims 1 to 5.
CN201911136369.4A 2019-11-19 2019-11-19 Stitch function matching method of multi-ECU system and storage medium Active CN111158335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911136369.4A CN111158335B (en) 2019-11-19 2019-11-19 Stitch function matching method of multi-ECU system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911136369.4A CN111158335B (en) 2019-11-19 2019-11-19 Stitch function matching method of multi-ECU system and storage medium

Publications (2)

Publication Number Publication Date
CN111158335A CN111158335A (en) 2020-05-15
CN111158335B true CN111158335B (en) 2021-08-20

Family

ID=70556003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911136369.4A Active CN111158335B (en) 2019-11-19 2019-11-19 Stitch function matching method of multi-ECU system and storage medium

Country Status (1)

Country Link
CN (1) CN111158335B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112729581B (en) * 2020-12-28 2022-06-28 潍柴动力股份有限公司 Temperature detection method and device
CN116049070B (en) * 2022-05-30 2023-11-10 荣耀终端有限公司 Camera module identification method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559121A (en) * 2015-09-25 2017-04-05 华为技术有限公司 A kind of multi-antenna channel measuring method and device
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0568279A (en) * 1991-09-09 1993-03-19 Matsushita Electric Ind Co Ltd Digital telephone set
CN101135925B (en) * 2007-09-25 2011-09-07 三一重工股份有限公司 Control circuit of key pin of function chip and control method
CN103532686B (en) * 2012-07-03 2016-09-28 中国科学院微电子研究所 Serial data transmission circuit and control method thereof with line sequence self-adaptive
KR102328803B1 (en) * 2014-12-16 2021-11-22 삼성전자주식회사 Electronic device and method for determining an abnormal state of a connector
CN107306000B (en) * 2016-04-22 2019-09-13 深圳市中兴微电子技术有限公司 A kind of method and apparatus of interface configuration
CN110263485B (en) * 2019-06-27 2023-04-07 珠海泰芯半导体有限公司 Automatic drawing system and computer system for chip packaging diagram

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559121A (en) * 2015-09-25 2017-04-05 华为技术有限公司 A kind of multi-antenna channel measuring method and device
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets

Also Published As

Publication number Publication date
CN111158335A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN111158335B (en) Stitch function matching method of multi-ECU system and storage medium
Showalter Hilbert space methods in partial differential equations
CN114580606A (en) Data processing method, data processing device, computer equipment and storage medium
CN113313247B (en) Operation method of sparse neural network based on data flow architecture
CN110427775A (en) Data query authority control method and device
CN107480554A (en) A kind of right management method, rights management device and intelligent terminal
CN103778018A (en) Method for PCIE (Peripheral Component Interface Express) virtualized management
CN107526620A (en) A kind of User space input-output equipment collocation method and device
CN109634672A (en) A kind of multi-core processor loading method based on intercore communication
CN108874297A (en) Merge method, storage device, storage equipment and the storage medium of file
CN106155918A (en) The calibration memory control methods of electronic control unit and device
CN108874676A (en) Method and device for distributing test resources
US10545670B2 (en) Scalable page migration after memory de-duplication
CN116126776A (en) Memory access method and device based on MCAL and multi-core chip
CN104133696A (en) Vehicle electronic control unit data flushing method, vehicle electronic control unit data flushing system and memory medium
US9317024B2 (en) Automation system
CN106484492A (en) The method and system of configuration interface
US11709717B2 (en) Method for designing an application task architecture of an electronic control unit with one or more virtual cores
CN112149696B (en) Training method and device for graph embedding model
CN110333870B (en) Simulink model variable distribution processing method, device and equipment
CN112783971A (en) Transaction recording method, transaction query method, electronic device and storage medium
CN116097222A (en) Memory arrangement optimization method and device
CN112948291A (en) Data transmission method, electronic device and readable storage medium
EP3238075A1 (en) Method for accessing a number of slave devices with registers by a master device over a network
CN108563762A (en) Inverted index method and device

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