Function configuration method and system of IO module

By using the mapping relationship between software interface and function and calibration data in the function configuration of the IO module, the pin function of the IO module is directly configured, which solves the problem of time-consuming configuration of the IO module function in the existing technology, and improves the input and output of the vehicle Functional development efficiency of modules.

CN119396483APending Publication Date: 2025-02-07ZHENGZHOU YUTONG BUS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411335856.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The functional configuration method of the existing IO modules takes a long time due to the large number of pins and signals, and the functional development efficiency of the vehicle input and output module is low.

Method used

The setting pin is used to realize the configuration requirements of the setting function, and the interface flag of the software interface corresponding to a certain setting function is determined according to the mapping relationship between the software interface and the function, and the settings used in the calibration data for realizing the setting function are set. The index flag corresponding to the IO module signal of the fixed pin is configured to realize the setting function of the setting pin.

Benefits of technology

This method does not need to use the software model of the IO module obtained after each function development, but only uses the mapping relationship between calibration data and software interface and functions, significantly shortens the configuration time and improves the functional development efficiency of the vehicle input and output module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396483A_ABST
    Figure CN119396483A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of vehicle body function design and development, and particularly relates to a function configuration method and system of an IO module. The method comprises the following steps: setting an index mark corresponding to an IO module signal of a set pin for realizing a set function in calibration data according to a configuration requirement of the set pin for realizing the set function and an interface mark of a software interface corresponding to a certain set function determined by a mapping relationship between the software interface and the function; the configuration of the setting function of the setting pin is realized; the IO module signals of the pins are determined through the mapping relation between the pins and the IO module signals; the calibration data is used for determining an index mark corresponding to an IO module signal of a certain pin when the pin is controlled to output a signal, finding an interface mark corresponding to the index mark from a mapping relation between a software interface and a function, and taking a value of the software interface corresponding to the interface mark as a value of the output signal of the set pin; the mapping relation between the software interface and the function and the mapping relation between the pin and the IO module signal are one-to-one correspondence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of vehicle body function design and development, and in particular relates to a function configuration method and system of an IO module. Background Art

[0002] For the development and improvement of external function applications of existing vehicle-mounted configurable IO modules, usually, one IO module has 166 pins and 433 bus signals, and two to four modules are used on one vehicle. Therefore, when developing input and output functions on one vehicle, a total of 1732 IO signals of 664 pins need to be functionally configured at most.

[0003] When the existing technology configures the function of the IO module, the following steps are required:

[0004] 1) The function of each pin of the IO module is defined by the staff related to the electrical architecture;

[0005] 2) The electrical architecture staff edits the mapping table of each function and pin;

[0006] 3) The staff related to software development shall develop the corresponding parts of the software model of the IO module for each function according to the mapping voucher table of each function and pin, so as to complete the configuration of each pin function, so that the software model of the IO module can achieve the effect of controlling each pin to output the signal for realizing the corresponding function during operation;

[0007] However, since the IO module has a large number of pins and signals, it takes a long time to develop all the pin functions one by one in the software model, resulting in low functional development efficiency of the vehicle input and output module. Summary of the invention

[0008] The purpose of the present invention is to provide a method and system for configuring the functions of an IO module, so as to solve the problem that the existing configuration method in which all pins and their corresponding functions are developed one by one in a software model results in a long configuration time and low function development efficiency of the vehicle input and output modules due to the large number of pins and signals of the IO module.

[0009] In order to achieve the above-mentioned purpose, the present invention provides a method for configuring the function of an IO module, according to the configuration requirement of a setting pin for realizing a setting function, according to the interface mark of a software interface corresponding to a certain setting function determined by a mapping relationship between a software interface and a function, an index mark corresponding to an IO module signal of a setting pin for realizing the setting function in calibration data is set to realize the configuration of the setting function of the setting pin; the IO module signal of the pin is determined by the mapping relationship between the pin and the IO module signal;

[0010] The calibration data is used to determine the index mark corresponding to the IO module signal of a pin when controlling the output signal of the pin, and then find the interface mark corresponding to the index mark from the mapping relationship between the software interface and the function, and use the value of the software interface corresponding to the interface mark as the value of the output signal of the set pin, so that the pin can realize the corresponding function;

[0011] The mapping relationship between software interface and function, pin and IO module signal is one-to-one.

[0012] Furthermore, the configuration requirement of setting the pin to realize the set function is obtained according to a preset mapping relationship between the pin and the function corresponding to the configuration requirement.

[0013] Furthermore, the mapping relationship between the pins and the IO module signals is preset by a one-to-one correspondence between each CAN message signal definition of the IO module and each pin.

[0014] Furthermore, the mapping relationship between the software interface and the function is preset by a one-to-one correspondence between each vehicle body function and each software interface set corresponding to each vehicle body function.

[0015] Furthermore, the interface mark of the software interface in the mapping relationship between the software interface and the function is a serial number corresponding to the software interface in the mapping relationship between the software interface and the function.

[0016] Furthermore, the index marks corresponding to the IO module signals in the calibration data are grouped according to the IO modules to which the corresponding IO module signals belong, and the index marks in each group containing at least two index marks are sorted according to the definition of the corresponding IO module signals.

[0017] Furthermore, each vehicle body function that is set includes at least one attribute of a function number, a function name, an input / output, an input condition, and a function logic.

[0018] The above technical solution of the present invention provides a new function configuration method of an IO module, and its beneficial effects include:

[0019] According to the interface mark of the software interface corresponding to a set function determined by the unique mapping relationship between the software interface and the function, the index mark corresponding to the IO module signal is set, and the pin and the index mark corresponding to the IO module signal are matched through the mapping relationship between the pin and the IO module signal to obtain the index mark corresponding to the IO module signal of the pin. Then, by setting the index mark, the function to be implemented (corresponding software interface) and the IO module signal of the pin to be used to implement the function can be configured one-to-one; combined with the corresponding calibration data for determining the index mark corresponding to the IO module signal of the pin when controlling the output signal of a pin, in the control operation stage after the configuration is completed, the index mark corresponding to the IO module signal of the pin to be output is found through the calibration data, and then according to the index mark, the index mark corresponding to the IO module signal of the pin to be output is obtained from the software The interface mark corresponding to the index mark is found in the mapping relationship between the software interface and the function, thereby determining the interface corresponding to the function to be implemented by the pin configured previously, and using the value of the interface as the output value of the pin to implement the function to be implemented by the pin configured previously. It can be seen that in the control operation phase after the configuration is completed, only the calibration data and the mapping relationship between the software interface and the function need to be used, and there is no need to use the software model of the IO module obtained after each function is developed. During configuration, for different setting pins to implement different setting functions, it is only necessary to set the corresponding calibration data in a targeted manner to meet the configuration requirements, and there is no need to develop the software model of the IO module for each function. Therefore, the configuration time can be effectively shortened and the functional development efficiency of the vehicle input and output modules can be improved.

[0020] The present invention also provides a function configuration system for an IO module, comprising a processor, wherein the processor is used to execute a computer program to implement the steps of the function configuration method for the IO module.

[0021] The technical solution of the functional configuration method system of the IO module described above in the present invention can achieve the same beneficial effects as the functional configuration method of the IO module described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a principle block diagram of a method for configuring a function of an IO module in an embodiment of the method for configuring a function of an IO module of the present invention;

[0023] Figure 2 An example diagram of an IO module pin model provided in an embodiment of the method for configuring the function of an IO module of the present invention;

[0024] Figure 3 This is an example diagram of the mapping relationship between pins and functions in an embodiment of the function configuration method of the IO module of the present invention;

[0025] Figure 4This is an example diagram of the mapping relationship between pins and IO module signals in an embodiment of the function configuration method of the IO module of the present invention;

[0026] Figure 5 This is an example diagram of the mapping relationship between software interfaces and functions in an embodiment of the function configuration method of an IO module of the present invention;

[0027] Figure 6 This is an example diagram of the interface of an IO module configuration tool that applies the IO module function configuration method in the embodiment of the IO module function configuration method of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.

[0029] Function configuration method embodiment of IO module

[0030] This embodiment provides a technical solution for a method for configuring the functions of an IO module. This solution uses specially set calibration data and the mutual mapping relationship between software interfaces, functions, pins, and IO module signals. There is no need to use a software model of the IO module developed for each function. During configuration, for different set pins used to implement configuration requirements for different set functions, it is only necessary to set the corresponding calibration data in a targeted manner to meet the configuration requirements. There is no need to develop a software model of the IO module for each function. Therefore, the configuration time can be effectively shortened and the functional development efficiency of the input and output modules of the entire vehicle can be improved.

[0031] The method comprises: according to the configuration requirement of the setting pin for realizing the setting function, according to the interface mark of the software interface corresponding to a certain setting function determined by the mapping relationship between the software interface and the function, setting the index mark corresponding to the IO module signal of the setting pin for realizing the setting function in the calibration data, so as to realize the configuration of the setting function of the setting pin; the IO module signal of the pin is determined by the mapping relationship between the pin and the IO module signal;

[0032] The calibration data is used to determine the index mark corresponding to the IO module signal of a pin when the ECU (or other controller) controls the output signal of the pin, and then find the interface mark corresponding to the index mark from the mapping relationship between the software interface and the function, and use the value of the software interface corresponding to the interface mark as the value of the output signal of the set pin, so that the pin can realize the corresponding function; wherein, the mapping relationship between the software interface and the function, and between the pin and the IO module signal is a one-to-one correspondence. It should be noted that the "software interface" mentioned in this method actually refers to the virtual interfaces set up according to the corresponding functions of each vehicle body, which is equivalent to the numbers set up for different vehicle body functions (that is, each number corresponds to a virtual interface).

[0033] Reference Figure 1 , this method actually sets the index mark corresponding to the IO module signal according to the interface mark of the software interface corresponding to a set function determined by the unique mapping relationship between the software interface and the function, and matches the index mark corresponding to the pin and the IO module signal through the mapping relationship between the pin and the IO module signal, and obtains the index mark corresponding to the IO module signal of the pin. Then, by setting the index mark, the software interface corresponding to the function to be implemented and the IO module signal of the pin to be used to implement the function can be configured one by one; combined with the corresponding calibration data set for determining the index mark corresponding to the IO module signal of the pin when controlling the output signal of a certain pin, in the control operation stage after the configuration is completed, the index mark corresponding to the IO module signal of the pin to be output is found through the calibration data, and then according to the index mark, The interface mark corresponding to the index mark is found from the mapping relationship between the software interface and the function, thereby determining the interface corresponding to the function to be implemented by the pin configured previously, and using the value of the interface as the output value of the pin to implement the function to be implemented by the pin configured previously; it can be seen that in the control operation phase after the configuration is completed, only the calibration data and the mapping relationship between the software interface and the function need to be used, and there is no need to use the software model of the IO module developed for each function. During configuration, for different setting pins to implement different setting functions, it is only necessary to set the corresponding calibration data in a targeted manner to meet the configuration requirements, and there is no need to develop the software model of the IO module for each function. Therefore, the configuration time can be effectively shortened and the functional development efficiency of the vehicle input and output modules can be improved.

[0034] Before configuring the functions of the IO module, you need to pre-set the IO module pin model. For example, according to the existing pin classification, numbering, attributes and other characteristics of the IO module (such as Figure 2As shown in the figure), four IO module software models are established: front module (FIO), middle module (MIO), top module (TIO) and rear module (RIO); in each module, all input and output pins J1~J11 and 10 special function signals are listed, specifically J1:J1-1~J1-15, J2:J2-1~J2-21, J3:J3-1~J3-21, J4:J4-1~J4-21, J5:J5-1~J5-12, J6:J6-1~J6-16, J7:J7-1~J7-20, J8:J8-1~J8-16, J9:J9-1~J9-2, J10:J10-1~J10-2, J11:J11-1~J11-20, Special:Special-01~Special-10. In addition, the following attributes are created for each pin: serial number, pin number, network number, function allocation, special function, configuration parameter, remark, power allocation, function, effective level, drive type, rated current, protection current threshold, impact current value, voltage parameter, current parameter, diagnostic characteristics, configurable function, group serial number. Among them, function allocation, special function, configuration parameter and remark are configurable attributes, and other attributes are inherent attributes of the pin.

[0035] In order to facilitate electrical architecture designers to assign functions to each pin, a body function library needs to be set up in advance, which summarizes all functions that may be configured on the body of a commercial vehicle and defines at least one of the following attributes for each function: function number, function name, input / output, input condition, and function logic.

[0036] After completing the above-mentioned presetting, the function configuration of the IO module can be started; in this embodiment, the configuration requirements for setting the pins to realize the set functions are obtained according to the preset mapping relationship between the pins and the functions corresponding to the configuration requirements; wherein the mapping relationship between the pins and the functions is usually in the form of a table, such as Figure 3 As shown, the column where NO. is located is the serial number, the column where PinNumber is located is the pin number, the column where PinDefine is located is the function corresponding to the pin, the column where FunctionType is located is the input and output type, the column where NetworkNumber is located is the network number of the pin, and the column where Type is located is the pin type. Specifically, this part of the work (i.e., the work of presetting the mapping relationship between pins and functions corresponding to the configuration requirements) is completed manually by the designer, that is, each time the body function is designed for the vehicle model to be configured, the corresponding function is specified for each pin through the design requirements.

[0037] The mapping relationship between pins and IO module signals is preset by the one-to-one correspondence between each CAN message signal definition of the IO module and each pin. Specifically, it is necessary to import the CAN message signal definition of the IO module to generate the mapping relationship between the pin number and the message signal (that is, the mapping relationship between the pin and the IO module signal), for example:

[0038] J1-1→CCU_CmdFIO01;

[0039] J1-2 → CCU_CmdFIO02;

[0040] J3-4 → FIO_InState02;

[0041] Among them, J1-1, J1-2, J3-4, etc. are specific pin numbers; the mapping relationship between the pins and the IO module signals is usually in the form of a table, as shown in the following example: Figure 4 As shown, the column where "Function" is located is the input and output function of the pin, the column where "Channel Number" is located is the number of the channel corresponding to the IO module signal, and the column where "Network Number" is located is the network number of the IO module signal.

[0042] The mapping relationship between software interfaces and functions is preset through the one-to-one correspondence between the set body functions (i.e., the required body functions) and the software interfaces set according to the body functions. Specifically, after the body function library is set according to the required body functions, a software interface library is set for all the functions in the set body function library, and the contents of the body function library and the software interface library are matched one by one, and the mapping relationship between all functions in the function library and the software interfaces is matched and summarized into a list, for example:

[0043] VbPPS_CoinMchnCmd_flg→coin machine control output command;

[0044] VbOLM_LeLowBeamCmd_flg→left low beam control output command;

[0045] VbOLM_RiLowBeamCmd_flg→right low beam control output command;

[0046] Among them, the above-mentioned VbPPS_CoinMchnCmd_flg, VbOLM_LeLowBeamCmd_flg, VbOLM_RiLowBeamCmd_flg, etc. are specifically set software interfaces; this list is a table of mapping relationships between software interfaces and functions, as shown in the following figure: Figure 5As shown, the column where "Output Interface" is located is the name of the software interface, the column where "Data Type" is located is the type of the output data of the software interface in the corresponding program, such as integer, Boolean, floating point, enumeration, etc., and the column where "Output Interface Description" is located is the function corresponding to the software interface.

[0047] In this embodiment, the content of the calibration data includes various index marks; each index mark corresponds to an IO module signal; in order to make the corresponding relationship clearer and simpler, reduce the possibility of error when searching for the corresponding index mark according to the IO module signal, and reduce the time required to search for the corresponding index mark according to the IO module signal, in this embodiment, the index marks corresponding to the IO module signals in the calibration data are grouped according to the IO modules to which the corresponding IO module signals belong, and each index mark in each group containing at least two index marks is sorted according to the definition of the corresponding IO module signal. Specifically, in this embodiment, the calibration data is represented in the form of a four-dimensional array (indicating that the calibration data supports a maximum of 4 IO modules, if the calibration data is represented in the form of a three-dimensional array, the calibration data supports a maximum of 3 IO modules), for example, the calibration data of the output pin is a 4*72 array, "4" means that the calibration data supports a maximum of 4 IO modules (such as FIO, MIO, TIO and RIO modules), and "72" means that for each IO module, the calibration data supports a maximum of 72 IO output signals, then the following example:

[0048] [{FIO_Cmd01,FIO_Cmd02,FIO_Cmd03,……,FIO_Cmd72}

[0049] {MIO_Cmd01,MIO_Cmd02,MIO_Cmd03,……,MIO_Cmd72}

[0050] {TIO_Cmd01,TIO_Cmd02,TIO_Cmd03,……,TIO_Cmd72}

[0051] {RIO_Cmd01,RIO_Cmd02,RIO_Cmd03,……,RIO_Cmd72}]

[0052] The contents such as "FIO_Cmd01, FIO_Cmd02, FIO_Cmd03, ..., FIO_Cmd72" in the above array actually only refer to the IO module signal corresponding to the position. For example, "FIO_Cmd01" corresponds to the above IO module signal (message signal) "CCU_CmdFIO01". According to the mapping relationship between the pin number and the message signal "J1-1→CCU_CmdFIO01", the "FIO_Cmd01" corresponds to the pin with the pin number J1-1, and does not represent the actual value of the index number of the position; the data actually stored at each position in the array represents the index number of the IO module signal corresponding to this position, that is, the interface mark of the software interface corresponding to the IO module signal setting function corresponding to this position determined by the mapping relationship between the software interface and the function. For the output pin, the calibration data example is as follows: 7 104 0 136 39 38 0 33 112 0 87 0168 169 0 109 0 101 0 0 165 0 0 0 0 89 34 00 0; 0 ... 0 ...

[0056] 0 0 0 7 140 143 144 0 0 0 0 0 33 0 0 0 109 0 0 105 00 0 0 0 146 142 141 0 0 0 0 0 0 27].

[0057] Specifically, in combination with the calibration data example above, when controlling a pin to output a signal, the index mark corresponding to the IO module signal of the pin is determined by the calibration data, and then the interface mark corresponding to the index mark is found from the mapping relationship between the software interface and the function, and the value of the software interface corresponding to the interface mark is used as the value of the output signal of the set pin. The process example is as follows:

[0058] If at a certain moment, the ECU wants to control the J1-12 pin to output the ON power control output command signal, first determine the IO module signal of the J1-12 pin as FIO_Cmd012 according to the mapping relationship between the pin and the IO module signal;

[0059] Through the above calibration data, it can be determined that the position corresponding to the IO module signal FIO_Cmd012 of the J1-12 pin is the position of the first data in the calibration data, and the index mark corresponding to the IO module signal FIO_Cmd012 of the J1-12 pin is "7", that is, the interface mark corresponding to the index mark is 7, and the serial number of the interface corresponding to the index mark in the mapping relationship between the software interface and the function is 7;

[0060] Then, according to the sequence number, select the mapping relationship between software interface and function (i.e. Figure 5 Corresponding mapping table) searches for the 7th software interface, for example, the software interface VbLVM_IgnOn_flg, then reads the value of this interface at the current moment, for example, "1"; assigns the value "1" to the IO module signal FIO_Cmd012 of the J1-12 pin, then controls the J1-12 pin to output the FIO_Cmd012 signal with a value of 1, thereby achieving the preset control effect of the function corresponding to the ON power supply control output command realized by the J1-12 pin.

[0061] The above IO module function configuration method can be applied to IO module configuration tools, such as Figure 6As shown; by setting the calibration data in the IO module configuration tool, the IO module can be quickly configured; the functional configuration method of the IO module can also be applied to the vehicle model data management tool. As a vehicle model function management center, the vehicle model data management tool can view the function definition of each pin of the vehicle body and the corresponding calibration data, and can also be extended to other functions, such as vehicle model database, configuration library, calibration file library, etc.

[0062] Functional configuration system embodiment of IO module

[0063] This embodiment provides a technical solution for a function configuration system of an IO module. The system includes a processor, and the processor is used to execute a computer program to implement the steps of the function configuration method of the IO module in the above-mentioned embodiment of the function configuration method of the IO module.

[0064] Since the specific working mode and working principle of the function configuration system of the IO module in this embodiment have been described in detail in the above-mentioned embodiment of the function configuration method of the IO module, they will not be repeated here.

[0065] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, but do not constitute a limitation to the present invention.

Claims

1. A method for configuring the function of an IO module, characterized in that: According to the configuration requirement of the setting pin for realizing the setting function, according to the interface mark of the software interface corresponding to a certain setting function determined by the mapping relationship between the software interface and the function, the index mark corresponding to the IO module signal of the setting pin for realizing the setting function in the calibration data is set to realize the configuration of the setting function of the setting pin; the IO module signal of the pin is determined by the mapping relationship between the pin and the IO module signal; The calibration data is used to determine the index mark corresponding to the IO module signal of a pin when controlling the output signal of the pin, and then find the interface mark corresponding to the index mark from the mapping relationship between the software interface and the function, and use the value of the software interface corresponding to the interface mark as the value of the output signal of the set pin, so that the pin can realize the corresponding function; The mapping relationship between software interface and function, pin and IO module signal is one-to-one.

2. The function configuration method of the IO module according to claim 1, characterized in that: The configuration requirement for setting the pin to realize the set function is obtained according to a preset mapping relationship between the pin and the function corresponding to the configuration requirement.

3. The function configuration method of the IO module according to claim 1, characterized in that: The mapping relationship between the pins and the IO module signals is preset by the one-to-one correspondence between each CAN message signal definition of the IO module and each pin.

4. The function configuration method of the IO module according to claim 1, characterized in that: The mapping relationship between the software interface and the function is preset by a one-to-one correspondence between each vehicle body function and each software interface set corresponding to each vehicle body function.

5. The method for configuring the function of an IO module according to any one of claims 1 to 4, characterized in that: The interface mark of the software interface in the mapping relationship between the software interface and the function is the serial number corresponding to the software interface in the mapping relationship between the software interface and the function.

6. The method for configuring the function of an IO module according to any one of claims 1 to 4, characterized in that: The index marks corresponding to the IO module signals in the calibration data are grouped according to the IO modules to which the corresponding IO module signals belong, and the index marks in each group containing at least two index marks are sorted according to the definition of the corresponding IO module signals.

7. The method for configuring the function of an IO module according to any one of claims 1 to 4, characterized in that: Each vehicle body function that is set includes at least one attribute of a function number, a function name, an input / output, an input condition, and a function logic.

8. A function configuration system for an IO module, comprising a processor, characterized in that: The processor is used to execute a computer program to implement the steps of the method for configuring the function of the IO module according to any one of claims 1 to 7.