Method, device, equipment and medium for checking uniqueness of controller pin free configuration

By automatically checking the uniqueness of the ECU pin channel configuration, the driving and diagnosis abnormal problems caused by repeated channel configuration in the existing technology are solved, the inspection efficiency is improved, and the entire process is automated screening is realized.

CN116088473BActive Publication Date: 2024-11-19WEICHAI POWER CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202211709939.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2024-11-19
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

In the prior art, there is a problem of repeated configuration of the pin channel configuration of the ECU, resulting in abnormal driving and diagnostic functions, and the existing solutions are inefficient, requiring manual screening of wrong configuration channels.

Method used

By obtaining the channel variable values ​​and addresses of all functions configured on the engine platform, filter out the configured pin channel numbers according to the preset configuration rules, and automatically check whether the controller pin is configured with unique functions. If it is not unique, output the repeated configuration channel variable address. , realize automated screening.

Benefits of technology

Driver and diagnostic abnormalities caused by repeated channel configuration are avoided, inspection efficiency is improved, the entire process is automated, and manual intervention is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116088473B_ABST
    Figure CN116088473B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and medium for checking the uniqueness of the free configuration of the pins of the controller, including: obtaining the channel variable values ​​and channel variable addresses configured for all functions on the engine platform, the channel variable value indicating whether the function has been configured with the pin channel number of the controller; according to the preset configuration rules and the channel variable values ​​configured for each function, the first function with the pin channel number of the controller configured is screened out; the second function with the same channel variable value is screened out among all the first functions to obtain the screening result; according to the screening result, it is determined whether the pins of the controller are configured with the only function on the engine platform; if so, a message that the configuration uniqueness check is qualified is output; if not, at least one group of channel variable addresses of the second function with the same channel variable value is output. The present application can automatically check whether the pin channel configuration of the controller is unique, and the whole process is automatically screened and output for the channels with repeated configuration, thereby improving the inspection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle controllers, and in particular to a method, device, equipment and medium for checking the uniqueness of free configuration of controller pins. Background Art

[0002] ECU (Electronic Control Unit) is also called "on-board computer" or "on-board controller". Currently, the same engine ECU is often applicable to multiple different engine platforms. For different platforms, the functions of the same ECU pin channel are reusable, and different functions can be configured to different channels according to requirements. At the same time, during the test process, different functions need to be configured to the same channel for testing. For the ECU's drive channel, it is possible to configure multiple functions to the same channel, that is, multiple functions logically control the same channel, which will lead to abnormal drive and diagnostic functions and errors in test results.

[0003] The existing technology realizes free configuration of channels, but due to the lack of constraints, multiple functions are configured on the same channel. Currently, there is a solution to check the repeated configuration of channels, but it only reports the repeated configuration failure, and it is necessary to manually select the specific wrongly configured channels from dozens of channels, which is inefficient. Summary of the invention

[0004] The purpose of the present application is to provide a method, device, electronic device and storage medium for checking the uniqueness of controller pin free configuration.

[0005] In a first aspect, an embodiment of the present application provides a method for checking the uniqueness of a controller pin free configuration, comprising:

[0006] Obtain channel variable values ​​and channel variable addresses configured for all functions on the engine platform, wherein the channel variable values ​​are used to indicate whether the function has been configured with the pin channel number of the controller, and the channel variable addresses are used to store the channel variable values;

[0007] According to the preset configuration rules and the channel variable values ​​of each function configuration, the first function of the pin channel number of the configured controller is filtered out;

[0008] Screening the second functions having the same channel variable value among all the first functions to obtain a screening result;

[0009] Determining whether the controller pin is configured with a unique function on the engine platform according to the screening result;

[0010] If so, a message is output indicating that the configuration uniqueness check is passed; if not, at least one set of channel variable addresses of the second function with the same channel variable values ​​is output.

[0011] In a possible implementation, the first function of the pin channel number of the configured controller is screened out according to the preset configuration rule and the channel variable value of each function configuration, including:

[0012] When it is detected that the channel variable value of the function configuration is the first value, it means that the function has not configured the pin of the controller;

[0013] When it is detected that the channel variable value of the function configuration is not the first value, it means that the function is configured with the pin channel number of the controller corresponding to its channel variable value;

[0014] According to the above preset configuration rules, the first function of the pin channel number of the configured controller is filtered out.

[0015] In a possible implementation, determining whether a controller pin is configured with a unique function on the engine platform according to the screening result includes:

[0016] If the screening result is empty, it is determined that the controller pin is configured with a unique function on the engine platform;

[0017] If the screening result includes at least one set of second functions having the same channel variable value, it is determined that at least one controller pin is configured with at least two functions on the engine platform.

[0018] In a possible implementation, before the channel variable address of at least one group of second functions having the same output channel variable value, the following is further included:

[0019] Constructing a structure array according to the channel variable addresses of all functions, wherein each enumeration value in the structure array corresponds to the channel variable address of a function;

[0020] The at least one group of channel variable addresses of the second function having the same output channel variable value comprises:

[0021] Matching at least one set of channel variable addresses of the second function with the structure array to obtain enumeration values ​​corresponding to at least one set of channel variable addresses of the second function;

[0022] Output at least one set of enumeration values ​​for a second function.

[0023] In a second aspect, an embodiment of the present application provides a controller pin free configuration uniqueness checking device, comprising:

[0024] An acquisition module, used to acquire channel variable values ​​and channel variable addresses configured for all functions on the engine platform, wherein the channel variable values ​​are used to indicate whether the function has been configured with the pin channel number of the controller, and the channel variable addresses are used to store the channel variable values;

[0025] A first screening module, used to screen out the first function of the pin channel number of the configured controller according to the preset configuration rules and the channel variable value of each function configuration;

[0026] A second screening module is used to screen second functions having the same channel variable value from all first functions to obtain a screening result;

[0027] The checking module is used to determine whether the controller pin is configured with a unique function on the engine platform according to the screening result; if so, output a message that the configuration uniqueness check is passed; if not, output at least one group of channel variable addresses of the second function with the same channel variable value.

[0028] In a possible implementation, the first screening module is specifically used to:

[0029] When it is detected that the channel variable value of the function configuration is the first value, it means that the function has not configured the pin of the controller;

[0030] When it is detected that the channel variable value of the function configuration is not the first value, it means that the function is configured with the pin channel number of the controller corresponding to its channel variable value;

[0031] According to the above preset configuration rules, the first function of the pin channel number of the configured controller is filtered out.

[0032] In a possible implementation, the inspection module is specifically used to:

[0033] If the screening result is empty, it is determined that the controller pin is configured with a unique function on the engine platform;

[0034] If the screening result includes at least one set of second functions having the same channel variable value, it is determined that at least one controller pin is configured with at least two functions on the engine platform.

[0035] In a possible implementation, before outputting the channel variable addresses of at least one group of second functions with the same channel variable values, the checking module is further used to: construct a structure array according to the channel variable addresses of all functions, wherein each enumeration value in the structure array corresponds to a channel variable address of a function;

[0036] The checking module is further specifically used to: match at least one group of channel variable addresses of the second function with the structure array to obtain enumeration values ​​corresponding to at least one group of channel variable addresses of the second function; and output at least one group of enumeration values ​​of the second function.

[0037] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect of the present application when executing the computer program.

[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer-readable instructions stored thereon, and the computer-readable instructions can be executed by a processor to implement the method described in the first aspect of the present application.

[0039] The controller pin free configuration uniqueness check method, device, electronic device and storage medium provided by the present application obtain the channel variable value and channel variable address configured for all functions on the engine platform, the channel variable value is used to indicate whether the function has been configured with the controller pin channel number; according to the preset configuration rules and the channel variable value configured for each function, the first function with the controller pin channel number configured is screened out; the second function with the same channel variable value is screened out among all the first functions to obtain the screening result; according to the screening result, it is determined whether the controller pin is configured with the only function on the engine platform; if so, a message that the configuration uniqueness check is qualified is output; if not, the channel variable address of at least one group of second functions with the same channel variable value is output. Compared with the prior art, the technical solution of the present application can automatically check whether the controller pin channel configuration is unique, avoid drive and diagnosis abnormalities caused by repeated channel configuration, and the whole process is automatically screened and output for the repeatedly configured channels, without manual intervention, which improves the inspection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0041] Figure 1 A flowchart of a controller pin free configuration uniqueness checking method provided by the present application is shown;

[0042] Figure 2 A flowchart of a specific controller pin free configuration uniqueness checking method provided by the present application is shown;

[0043] Figure 3 A schematic diagram of a controller pin free configuration uniqueness checking device provided by the present application is shown. DETAILED DESCRIPTION

[0044] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0045] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.

[0046] In addition, the terms "first" and "second" etc. are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0047] Embodiments of the present application provide a method and device for checking the uniqueness of a controller pin free configuration, an electronic device, and a computer-readable storage medium, which are described below in conjunction with the accompanying drawings.

[0048] Please refer to Figure 1 , which shows a flowchart of a controller pin free configuration uniqueness checking method provided by the present application, such as Figure 1 As shown, the controller pin free configuration uniqueness checking method may include the following steps:

[0049] S101. Obtain channel variable values ​​and channel variable addresses for all function configurations on an engine platform.

[0050] The channel variable value is used to indicate whether the function has been configured with the pin channel number of the controller, and the channel variable address is used to store the channel variable value.

[0051] In actual applications, one model of engine may have dozens or even hundreds of functions, such as fans, solenoid valves, starters, etc. Different models of engines may have some of the same functions, but some may be different. One model of engine can be called an engine platform. One function of the engine platform needs to be controlled by a corresponding controller pin channel. Therefore, a corresponding controller pin channel needs to be configured for each function. The controller can be an ECU.

[0052] Channel configuration can be performed for all functions on the engine platform, or for some functions. Each function corresponds to a channel variable value, and a channel variable value is stored in a channel variable address.

[0053] S102: Filter out the first function of the pin channel number of the configured controller according to the preset configuration rule and the channel variable value of each function configuration.

[0054] Specifically, the preset configuration rules may include:

[0055] When the channel variable value of the function configuration is detected to be the first value, it means that the function has not configured the pin of the controller. For example, the first value is set to 255. If a function channel variable value is 255, it means that the function has not configured any pin of the controller.

[0056] When it is detected that the channel variable value of the function configuration is not the first value, it means that the function is configured with the pin channel number of the controller corresponding to its channel variable value. For example, if a function channel variable value is n (n represents the controller pin channel number, n<255), it means that the function is configured with a specific controller pin n.

[0057] According to the above preset configuration rules, the first function of the pin channel number of the configured controller can be filtered out. The first function refers to the function of the pin channel number of the configured controller. For example, function 1 is configured to pin channel number 1, function 2 is configured to pin channel number 2, function 3 is configured to pin channel number 3, and so on.

[0058] When the number of pins on the controller is less than the number of functions on the engine platform, some functions cannot be configured to the pins of the controller if the uniqueness requirement of the controller pin configuration is to be met. Otherwise, multiple functions will logically control the same pin channel, which will lead to abnormal driving and diagnostic functions, errors in test results, and other problems. The purpose of this application is to automatically check for duplicately configured pin channels.

[0059] S103. Screening second functions having the same channel variable value among all first functions to obtain screening results.

[0060] S104: Determine whether the controller pin is configured with a unique function on the engine platform according to the screening result.

[0061] The first screening result is empty, that is, there are no functions with the same channel variable value in all the first functions, that is, there are no pin channels with repeated configuration.

[0062] The second screening result is that at least one group of second functions with the same channel variable value is screened out, for example, two groups of second functions with the same channel variable value are screened out, the channel variable values ​​of function 1 and function 10 in the first group are the same, and the channel variable values ​​of function 2, function 11 and function 13 in the second group are the same. In other words, function 1 and function 10 are configured on pin 1, and function 2, function 11 and function 13 are configured on pin 2.

[0063] That is to say, if the filtering result is empty, it is determined that the controller pin is configured with a unique function on the engine platform; if the filtering result includes at least one group of second functions with the same channel variable value, it is determined that at least one controller pin is configured with at least two functions on the engine platform.

[0064] S105: If it is determined that the controller pin is configured with a unique function on the engine platform, a message indicating that the configuration uniqueness check is passed is output.

[0065] S106: If it is determined that at least one controller pin is configured with multiple functions on the engine platform, output at least one group of channel variable addresses of the second function with the same channel variable value.

[0066] For example, if function 1 and function 10 are configured on pin 1, the channel variable addresses of function 1 and function 10 are output so that the user can find the configured channel variable value according to the channel variable address.

[0067] Compared with the prior art, the technical solution of this embodiment can automatically check whether the controller pin channel configuration is unique, avoiding drive and diagnosis abnormalities caused by repeated channel configuration, and the whole process is automated without the need for human intervention, thereby improving inspection efficiency.

[0068] In some embodiments of the present application, before outputting at least one group of channel variable addresses of the second function with the same channel variable value in step S106, the method may further include the following steps:

[0069] A structure array is constructed according to the channel variable addresses of all functions, and each enumeration value in the structure array corresponds to the channel variable address of a function.

[0070] For example, the enumeration value corresponding to the channel variable address of function 1 is CHNL_O_S_START=0, the enumeration value corresponding to the channel variable address of function 2 is CHNL_O_S_LAMP=1, and so on, to establish a structure array.

[0071] Accordingly, step S106 specifically includes:

[0072] Matching at least one set of channel variable addresses of the second function with the structure array to obtain enumeration values ​​corresponding to at least one set of channel variable addresses of the second function;

[0073] Output at least one set of enumeration values ​​for a second function.

[0074] In this embodiment, when the enumeration value in the structure array corresponds to the pin channel, the newly constructed structure array can be used to display the repeatedly configured pin channel. By matching the recorded repeatedly configured channel variable address to the structure array, the enumeration value of the repeatedly configured channel can be quickly, accurately and intuitively displayed, so as to quickly find the repeatedly configured pin channel number, and the whole process automatically screens and outputs the repeatedly configured channels without manual intervention, thereby improving the inspection efficiency.

[0075] For ease of understanding, the present application also provides a Figure 2 A flowchart of a specific controller pin free configuration uniqueness checking method is shown.

[0076] Please refer to Figure 2 , when the pin channel configurable function of the controller is turned on, each channel can be configured. After the channel configuration is completed, the channel configuration uniqueness check function is enabled (ChnlConfig_C=1). When the channel variable value is detected to be 255, it means that no channel is configured, and no check is performed; if the channel variable value is n (n represents the ECU pin channel number, n<255), it means that the channel variable is configured with a specific channel n, then the channel configuration state flag variable ChnlConfigState[n] is added by 1, and the channel variable name address of the configured pin n is recorded to ChnlConfigAdress[n], and all channel configuration variables are traversed and checked (N represents the number of traversed channel configuration variables, and Nmax represents the total number of channel configuration variables). When ChnlConfigState[n] is greater than 1, it means that multiple functions have configured the same channel. The address of the channel variable that is repeatedly configured is recorded. By matching the recorded address of the repeatedly configured channel variable with the structure array, the enumeration value of the repeatedly configured channel can be quickly, accurately and intuitively displayed, so as to quickly find the name of the repeatedly configured channel variable.

[0077] In the above embodiment, a controller pin free configuration uniqueness check method is provided. Correspondingly, the present application also provides a controller pin free configuration uniqueness check device, which can be implemented by software, hardware, or a combination of software and hardware. For example, the controller pin free configuration uniqueness check device can include integrated or separate functional modules or units to perform the corresponding steps in the above methods. Please refer to Figure 3, which shows a schematic diagram of a controller pin free configuration uniqueness check device provided by some embodiments of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.

[0078] like Figure 3 As shown, the controller pin free configuration uniqueness checking device 10 may include:

[0079] The acquisition module 101 is used to acquire the channel variable value and channel variable address configured for all functions on the engine platform, wherein the channel variable value is used to indicate whether the function has been configured with the pin channel number of the controller, and the channel variable address is used to store the channel variable value;

[0080] A first screening module 102, for screening out the first function of the pin channel number of the configured controller according to a preset configuration rule and a channel variable value of each function configuration;

[0081] A second screening module 103 is used to screen second functions having the same channel variable value from all first functions to obtain a screening result;

[0082] The checking module 104 is used to determine whether the controller pin is configured with a unique function on the engine platform according to the screening result; if so, output a message that the configuration uniqueness check is passed; if not, output at least one set of channel variable addresses of the second function with the same channel variable value.

[0083] In a possible implementation, the first screening module 102 is specifically configured to:

[0084] When it is detected that the channel variable value of the function configuration is the first value, it means that the function has not configured the pin of the controller;

[0085] When it is detected that the channel variable value of the function configuration is not the first value, it means that the function is configured with the pin channel number of the controller corresponding to its channel variable value;

[0086] According to the above preset configuration rules, the first function of the pin channel number of the configured controller is filtered out.

[0087] In a possible implementation, the checking module 104 is specifically configured to:

[0088] If the screening result is empty, it is determined that the controller pin is configured with a unique function on the engine platform;

[0089] If the screening result includes at least one set of second functions having the same channel variable value, it is determined that at least one controller pin is configured with at least two functions on the engine platform.

[0090] In a possible implementation, before outputting the channel variable addresses of at least one group of second functions with the same channel variable values, the checking module 104 is further configured to: construct a structure array according to the channel variable addresses of all functions, wherein each enumeration value in the structure array corresponds to a channel variable address of a function;

[0091] The checking module 104 is further specifically used to: match at least one set of channel variable addresses of the second function with the structure array to obtain enumeration values ​​corresponding to at least one set of channel variable addresses of the second function; and output at least one set of enumeration values ​​of the second function.

[0092] The controller pin free configuration uniqueness check device provided in the embodiment of the present application obtains the channel variable value and channel variable address configured for all functions on the engine platform, and the channel variable value is used to indicate whether the function has been configured with the pin channel number of the controller; according to the preset configuration rules and the channel variable value configured for each function, the first function with the pin channel number of the controller configured is screened out; the second function with the same channel variable value is screened out among all the first functions to obtain the screening result; according to the screening result, it is determined whether the controller pin is configured with the only function on the engine platform; if so, a message that the configuration uniqueness check is qualified is output; if not, the channel variable address of at least one group of second functions with the same channel variable value is output. Compared with the prior art, through the technical solution of the present application, it is possible to automatically check whether the controller pin channel configuration is unique, avoid driving and diagnostic abnormalities caused by repeated channel configuration, and the whole process is automatically screened and output for the repeatedly configured channels, without the need for manual intervention, thereby improving the inspection efficiency.

[0093] An embodiment of the present application also provides an electronic device corresponding to the controller pin free configuration uniqueness check method provided in the above embodiment. The electronic device can be a vehicle ECU, a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the above controller pin free configuration uniqueness check method.

[0094] The electronic device provided in the embodiment of the present application and the controller pin free configuration uniqueness checking method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented therein.

[0095] An embodiment of the present application also provides a computer-readable storage medium corresponding to the controller pin free configuration uniqueness checking method provided in the aforementioned embodiment, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the controller pin free configuration uniqueness checking method provided in any of the aforementioned embodiments.

[0096] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0097] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the controller pin free configuration uniqueness checking method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0098] It should be noted that the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application.

Claims

1. A controller pin free configuration uniqueness checking method, characterized in that: include: Obtain channel variable values ​​and channel variable addresses configured for all functions on the engine platform, wherein the channel variable values ​​are used to indicate whether the function has been configured with the pin channel number of the controller, and the channel variable addresses are used to store the channel variable values; According to the preset configuration rules and the channel variable values ​​of each function configuration, the first function of the pin channel number of the configured controller is filtered out; Screening the second functions having the same channel variable value among all the first functions to obtain a screening result; Constructing a structure array according to the channel variable addresses of all functions, wherein each enumeration value in the structure array corresponds to the channel variable address of a function; Determine whether the controller pin is configured with a unique function on the engine platform according to the screening result; if so, output a message indicating that the configuration uniqueness check is passed; if not, match at least one group of channel variable addresses of the second function with the structure array to obtain enumeration values ​​corresponding to at least one group of channel variable addresses of the second function, and output at least one group of enumeration values ​​of the second function.

2. The controller pin free configuration uniqueness checking method according to claim 1, characterized in that: The first function of the pin channel number of the configured controller is screened out according to the preset configuration rules and the channel variable value of each function configuration, including: When it is detected that the channel variable value of the function configuration is the first value, it means that the function has not configured the pin of the controller; When it is detected that the channel variable value of the function configuration is not the first value, it means that the function is configured with the pin channel number of the controller corresponding to its channel variable value; According to the above preset configuration rules, the first function of the pin channel number of the configured controller is filtered out.

3. The controller pin free configuration uniqueness checking method according to claim 1, characterized in that: Determining whether the controller pin is configured with the only function on the engine platform according to the screening result includes: If the screening result is empty, it is determined that the controller pin is configured with a unique function on the engine platform; If the screening result includes at least one set of second functions having the same channel variable value, it is determined that at least one controller pin is configured with at least two functions on the engine platform.

4. A controller pin free configuration uniqueness inspection device, characterized in that: include: An acquisition module, used to acquire channel variable values ​​and channel variable addresses configured for all functions on the engine platform, wherein the channel variable values ​​are used to indicate whether the function has been configured with the pin channel number of the controller, and the channel variable addresses are used to store the channel variable values; A first screening module, used to screen out the first function of the pin channel number of the configured controller according to the preset configuration rules and the channel variable value of each function configuration; A second screening module is used to screen second functions having the same channel variable value from all first functions to obtain a screening result; The checking module is used to construct a structure array according to the channel variable addresses of all functions, each enumeration value in the structure array corresponds to the channel variable address of a function; determine whether the controller pin is configured with the only function on the engine platform according to the screening result; if so, output a message that the configuration uniqueness check is qualified; if not, match at least one group of channel variable addresses of the second function with the structure array, obtain enumeration values ​​corresponding to at least one group of channel variable addresses of the second function, and output at least one group of enumeration values ​​of the second function.

5. The controller pin free configuration uniqueness checking device according to claim 4, characterized in that: The first screening module is specifically used for: When it is detected that the channel variable value of the function configuration is the first value, it means that the function has not configured the pin of the controller; When it is detected that the channel variable value of the function configuration is not the first value, it means that the function is configured with the pin channel number of the controller corresponding to its channel variable value; According to the above preset configuration rules, the first function of the pin channel number of the configured controller is filtered out.

6. The controller pin free configuration uniqueness checking device according to claim 4, characterized in that: The inspection module is specifically used for: If the screening result is empty, it is determined that the controller pin is configured with a unique function on the engine platform; If the screening result includes at least one set of second functions having the same channel variable value, it is determined that at least one controller pin is configured with at least two functions on the engine platform.

7. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 3 when executing the computer program.

8. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • A choke receiving mechanism-based embedded Linux serial port driver development method

    CN107168710A

  • Detection method and device for ECU pin misconfiguration

    CN110231537A

  • Detection method and device for repeated configuration of ECU (Electronic Control Unit) pins

    CN110442119A

  • Pin configuration method of electronic control unit

    CN110825444A

  • Pin function matching method for multi-ECU system and storage medium

    CN111158335A