Information processing method, electronic control unit, processor and vehicle

By obtaining and updating the target electrical parameters of the electronic control unit, the calibration chaos caused by the same ECU ID information is solved, and the accurate calibration and distinction of multiple ECUs are achieved, and the ECU management efficiency under the OBD interface is improved.

CN114895650BActive Publication Date: 2025-01-17WEICHAI POWER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210499818.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2025-01-17
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

In the prior art, the ID information of multiple ECUs is the same, which makes it difficult to distinguish and calibrate through the OBD interface, which leads to confusion in the ECU calibration.

Method used

By obtaining the target electrical parameters of the target pin in the electronic control unit, updating the ID information of the ECU based on these parameters, ensuring that each ECU has unique ID information, so as to accurately distinguish and calibrate multiple ECUs under the OBD interface.

Benefits of technology

The accurate ID information update and calibration of multiple ECUs is realized, and the problem of calibrating multiple ECUs through a single OBD interface is solved, and the accuracy and efficiency of ECU calibration is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114895650B_ABST
    Figure CN114895650B_ABST
Patent Text Reader

Abstract

The present application provides an information processing method, an electronic control unit, a processor and a vehicle. The information processing method is applied in an electronic control unit. The information processing method includes: when it is determined that one end of a target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to a power supply, obtaining a target electrical parameter of the target pin, wherein an electronic control unit includes at least two target pins, and the target pins connected to each target wire in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value; at least according to the target electrical parameter, updating the ID information of the electronic control unit to obtain target ID information, and the target ID information is information representing the address of the electronic control unit, thereby solving the problem in the prior art that it is difficult to accurately update the ID information of the ECU.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control, and in particular, to an information processing method, an electronic control unit, a computer-readable storage medium, a processor and a vehicle. Background Art

[0002] In the prior art, one engine is usually equipped with multiple ECUs (Electronic Control Unit, ECU for short), but in most cases, there is only one OBD (On-Board Diagnostic System, OBD for short) interface on the entire vehicle. In this case, if you want to perform predetermined processing on multiple ECUs, you need to connect multiple ECUs to the same OBD interface through a CAN line.

[0003] Since the ID information of multiple ECUs is the same, the OBD interface will receive response messages from multiple ECUs during the ECU calibration process through the OBD interface. It is precisely because the ID information of multiple ECUs is the same, and the response information of multiple ECUs is also the same, it is difficult to distinguish which ECU is to be processed, which leads to confusion in ECU calibration.

[0004] Therefore, there is an urgent need for a method that can more accurately update the ID information of the ECU.

[0005] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention

[0006] The main purpose of this application is to provide an information processing method, an electronic control unit, a computer-readable storage medium, a processor and a vehicle to solve the problem in the prior art that it is difficult to accurately update the ID information of the ECU.

[0007] According to one aspect of an embodiment of the present invention, there is provided an information processing method, which is applied in an electronic control unit. A vehicle includes an engine and a power supply, the engine includes an engine body and at least two electronic control units, the electronic control unit is arranged on the engine body, and the power supply is used to supply power to the electronic control unit. The information processing method includes: when it is determined that one end of a target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, obtaining a target electrical parameter of the target pin, wherein one electronic control unit includes at least two target pins, the target pins connected to each target wire in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value; at least according to the target electrical parameter, updating the ID information of the electronic control unit to obtain target ID information, the target ID information being information representing the address of the electronic control unit.

[0008] Optionally, when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, the target electrical parameters of the target pin are obtained, including: obtaining multiple predetermined electrical parameters of multiple target pins, wherein one target pin corresponds to one predetermined electrical parameter, and the predetermined electrical parameter includes at least one of the following: current, voltage; determining the predetermined electrical parameter different from the predetermined current value as the target electrical parameter, and / or determining the predetermined electrical parameter different from the predetermined voltage value as the target electrical parameter.

[0009] Optionally, the ID information of the electronic control unit is updated at least according to the target electrical parameters to obtain the target ID information, including: according to the target electrical parameters, the ID information is updated according to a preset update rule to obtain the target ID information, wherein the preset update rule is a rule for updating the ID information of the electronic control unit using a predetermined value, and the predetermined value is determined according to the connection order of the target pins.

[0010] Optionally, the vehicle further includes an OBD interface, and the electronic control unit further includes input and output pins, and the input and output pins of each electronic control unit are respectively connected to the OBD interface via a CAN line.

[0011] Optionally, after updating the ID information of the electronic control unit at least according to the target electrical parameters to obtain the target ID information, the information processing method also includes: receiving an operation instruction sent by the OBD interface, the operation instruction carrying predetermined ID information; judging whether the predetermined ID information is the same as the corresponding target ID information; and when the predetermined ID information is the same as the target ID information, performing a predetermined action according to the operation instruction, the predetermined action including at least one of the following: connection, monitoring, calibration, and flashing.

[0012] Optionally, when the predetermined ID information is the same as the target ID information, after executing the predetermined action according to the operation instruction, the information processing method further includes: sending response information to the OBD interface, the response information being information indicating that the predetermined action has been completed.

[0013] According to another aspect of an embodiment of the present invention, an electronic control unit is further provided. A vehicle includes an engine and a power supply. The engine includes an engine body and at least two electronic control units. The electronic control unit is arranged on the engine body. The power supply is used to power the electronic control unit. The electronic control unit includes: an acquisition unit, used to acquire a target electrical parameter of the target pin when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, wherein one electronic control unit includes at least two target pins, the target pins connected to each target wire in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value; an updating unit, used to update the ID information of the electronic control unit at least according to the target electrical parameter to obtain target ID information, wherein the target ID information is information representing the address of the electronic control unit.

[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the information processing methods.

[0015] According to another aspect of the embodiments of the present invention, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the information processing methods when running.

[0016] According to one aspect of an embodiment of the present invention, a vehicle is also provided, comprising: an engine, a power supply and an OBD interface, wherein the engine comprises an engine body and at least two electronic control units, wherein the electronic control unit is arranged on the engine body, the power supply is used to power the electronic control unit, and the electronic control unit is used to execute any one of the information processing methods described.

[0017] In an embodiment of the present invention, in the information processing method, when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, the target electrical parameter of the target pin is obtained, and then the ID information of the electronic control unit is updated at least according to the target electrical parameter to obtain the target ID information. Since the target pins connected to the target wire in each electronic control unit are different in this scheme, the target electrical parameters of different target pins in each electronic control unit can be obtained, and then the ID information of the corresponding electronic control unit is updated at least according to the target electrical parameter, so that the obtained target ID information is relatively accurate, thereby solving the problem in the prior art that it is difficult to accurately update the ID information of the ECU (electronic control unit, Electronic Control Unit, referred to as ECU). In addition, compared with the prior art in which, when calibrating multiple ECUs with the same ID information through one OBD interface, the OBD interface receives response messages from multiple ECUs, making it difficult to distinguish which ECU's response information is and thus difficult to calibrate the ECU, in this solution, the target electrical parameters obtained are updated with the ECU's ID information, and when the ECU is subsequently calibrated, the ECU can be calibrated according to the ECU's target ID information. This solution realizes the calibration of multiple ECUs through the same OBD interface, solving the problem in the prior art that it is difficult to calibrate multiple ECUs through one OBD interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A flowchart of an information processing method according to an embodiment of the present application is shown;

[0020] Figure 2 A schematic diagram of the structure of an electronic control unit according to an embodiment of the present application is shown;

[0021] Figure 3 A flowchart of an information processing method according to a specific embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] As mentioned in the background technology, it is difficult to accurately update the ID information of the ECU in the prior art. In order to solve the above problem, in a typical implementation of the present application, an information processing method, an electronic control unit, a computer-readable storage medium, a processor and a vehicle are provided.

[0026] According to an embodiment of the present application, an information processing method is provided.

[0027] Figure 1 is a flow chart of an information processing method according to an embodiment of the present application. The above information processing method is applied in an electronic control unit, the vehicle includes an engine and a power supply, the above engine includes an engine body and at least two above electronic control units, the above electronic control unit is arranged on the above engine body, the above power supply is used to supply power to the above electronic control unit, such as Figure 1 As shown, the information processing method includes the following steps:

[0028] Step S101, when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, a target electrical parameter of the target pin is obtained, wherein one electronic control unit includes at least two target pins, the target pins connected to each target wire in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value;

[0029] Step S102: updating the ID information of the electronic control unit at least according to the target electrical parameter to obtain target ID information, where the target ID information is information representing the address of the electronic control unit.

[0030] In the above information processing method, when it is determined that one end of the target wire is electrically connected to a target pin of the above electronic control unit and the other end is electrically connected to the above power supply, the target electrical parameter of the above target pin is obtained, and then the ID information of the above electronic control unit is updated at least according to the above target electrical parameter to obtain the target ID information. Since the target pins connected to the target wire in each electronic control unit are different in this scheme, the target electrical parameters of different target pins in each electronic control unit can be obtained, and then the ID information of the corresponding electronic control unit is updated at least according to the target electrical parameter, so that the obtained target ID information is relatively accurate, thereby solving the problem in the prior art that it is difficult to accurately update the ID information of the ECU (electronic control unit, Electronic Control Unit, referred to as ECU). In addition, compared with the prior art in which, when calibrating multiple ECUs with the same ID information through one OBD interface, the OBD interface receives response messages from multiple ECUs, making it difficult to distinguish which ECU's response information is and thus difficult to calibrate the ECU, in this solution, the target electrical parameters obtained are updated with the ECU's ID information, and when the ECU is subsequently calibrated, the ECU can be calibrated according to the ECU's target ID information. This solution realizes the calibration of multiple ECUs through the same OBD interface, solving the problem in the prior art that it is difficult to calibrate multiple ECUs through one OBD interface.

[0031] In actual application, one end of the target wire is electrically connected to a target pin of the electronic control unit, and the other end of the target wire can be electrically connected to the power supply. Of course, the other end of the target wire can also be grounded.

[0032] In addition, the number of target pins in the electronic control unit may be the same as the number of electronic control units. Of course, the number of target pins in the electronic control unit may also be greater than the number of electronic control units.

[0033] Specifically, each electronic control unit in the above engine may have the same hardware, the same data, the same ID and the same baud rate, etc., that is, the functions of each electronic control unit are the same.

[0034] In a specific embodiment of the present application, it is assumed that the above-mentioned engine includes three electronic control units, and the number of target pins in the above-mentioned electronic control unit can be three. Of course, the number of target pins in the above-mentioned electronic control unit can also be greater than three. Assuming that the three electronic control units (i.e., the first electronic control unit, the second electronic control unit, and the third electronic control unit) respectively have three target pins (i.e., the first target pin, the second target pin, and the third target pin), the specific connection relationship can be that one end of the first target pin of the first electronic control unit is electrically connected to the first target wire, one end of the second target pin of the second electronic control unit is electrically connected to the second target wire, and one end of the third target pin of the third electronic control unit is electrically connected to the third target wire, that is, the target pins connected to each target wire in each electronic control unit are different.

[0035] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] In one embodiment of the present application, when it is determined that one end of the target wire is electrically connected to a target pin of the above-mentioned electronic control unit and the other end is electrically connected to the above-mentioned power supply, the target electrical parameters of the above-mentioned target pin are obtained, including: obtaining multiple predetermined electrical parameters of multiple target pins, wherein one target pin corresponds to one predetermined electrical parameter, and the predetermined electrical parameter includes at least one of the following: current, voltage; determining the predetermined electrical parameter different from the above-mentioned predetermined current value as the above-mentioned target electrical parameter, and / or determining the predetermined electrical parameter different from the above-mentioned predetermined voltage value as the above-mentioned target electrical parameter. In this embodiment, since an electronic control unit includes at least two target pins, multiple predetermined electrical parameters can be obtained, and then the target electrical parameters are determined based on the multiple predetermined electrical parameters, which ensures that the obtained target electrical parameters are relatively accurate, and further ensures that the target ID information of the electronic control unit obtained subsequently is relatively accurate.

[0037] Specifically, in actual application, since an electronic control unit includes at least two target pins, one of the target pins will be electrically connected to the target wire, and the other target pins will not be connected to any wire. In this case, the electronic control unit will detect that the target pin electrically connected to the target wire has predetermined electrical parameters such as current or voltage, while the target pin not electrically connected to the target wire does not have current or voltage (that is, the predetermined electrical parameter is 0). In this way, the electronic control unit can determine the target pin electrically connected to the target wire more quickly and simply, and subsequently update the ID information of the electronic control unit at least according to the target electrical parameters of the target pin. This not only further ensures that the obtained target ID information is more accurate, but also further ensures that the method for updating the target ID information is simpler, and further ensures that the calculation amount of the ECU is small.

[0038] In order to enable the electronic control unit to update the ID information more accurately and simply to obtain the target ID information, in another embodiment of the present application, the ID information of the above-mentioned electronic control unit is updated at least according to the above-mentioned target electrical parameters to obtain the target ID information, including: according to the above-mentioned target electrical parameters, the above-mentioned ID information is updated according to preset update rules to obtain the above-mentioned target ID information, wherein the above-mentioned preset update rule is a rule for updating the above-mentioned ID information of the above-mentioned electronic control unit with a predetermined value, and the above-mentioned predetermined value is determined according to the connection order of the above-mentioned target pins.

[0039] Specifically, assuming that one end of the first target pin of the first electronic control unit is electrically connected to the first target wire, one end of the second target pin of the second electronic control unit is electrically connected to the second target wire, and one end of the third target pin of the third electronic control unit is electrically connected to the third target wire, the first electronic control unit will detect the target electrical parameters of the first target pin, and the first electronic control unit will add a predetermined value (i.e., the predetermined value is 1) to its own ID information, so that the target ID information of the first electronic control unit can be obtained, the second electronic control unit will detect the target electrical parameters of the second target pin, and the second electronic control unit will add a predetermined value (i.e., the predetermined value is 2) to its own ID information, so that the target ID information of the second electronic control unit can be obtained, the third electronic control unit will detect the target electrical parameters of the third target pin, and the third electronic control unit will add a predetermined value (i.e., the predetermined value is 3) to its own ID information, so that the target ID information of the third electronic control unit can be obtained.

[0040] Of course, in actual application, the rules for updating the ECU's ID information can be adjusted according to actual circumstances. For example, when the first electronic control unit is connected to the first target pin, the ID information of the first electronic control unit is not updated, and only other electronic control units need to be updated. In other words, only the ID information of each electronic control unit needs to be distinguished.

[0041] Specifically, the above-mentioned predetermined value is not limited to the numerical value shown in the above example, but can also be other numerical values, and of course can also be numerical values ​​expressed in other ways. The above-mentioned predetermined value is not limited in the present application.

[0042] In another embodiment of the present application, the vehicle further includes an OBD interface, the electronic control unit further includes input and output pins, and the input and output pins of each electronic control unit are respectively connected to the OBD interface via a CAN line. In this embodiment, the input and output pins of each electronic control unit are respectively connected to the OBD interface via a CAN line, that is, each electronic control unit is respectively connected to the OBD interface, and each electronic control unit can subsequently receive an operation instruction sent by the OBD interface, thereby further realizing the calibration of each ECU.

[0043] In another embodiment of the present application, after the ID information of the electronic control unit is updated at least according to the target electrical parameters to obtain the target ID information, the information processing method further includes: receiving an operation instruction sent by the OBD interface, the operation instruction carrying the predetermined ID information; judging whether the predetermined ID information is the same as the corresponding target ID information; and performing a predetermined action according to the operation instruction when the predetermined ID information is the same as the target ID information, the predetermined action at least includes one of the following: connection, monitoring, calibration, and flashing. In this embodiment, the electronic control unit judges the predetermined ID information carried in the operation instruction and its own target ID information, and when they are the same, performs the corresponding predetermined action according to the operation instruction. Although multiple ECUs in this solution are connected to the same OBD interface, since the target ID information of each ECU is different, the corresponding ECU can be calibrated according to the target ID information, thereby solving the problem that it is difficult to calibrate multiple ECUs through one OBD interface in the prior art.

[0044] In actual application, the OBD interface can also be connected to a controller, the OBD interface can also be connected to a computer, or the OBD interface can also be connected to a dedicated electronic device for ECU calibration. When the OBD interface is connected to a controller or a computer or a dedicated electronic device for ECU calibration, the operation instruction can be an operation instruction issued by the controller or the computer or the dedicated electronic device for ECU calibration, that is, the operation instruction is forwarded to the electronic control unit through the OBD interface.

[0045] In order to facilitate the OBD interface to promptly know the execution status of the ECU on the operation instructions, in an embodiment of the present application, when the above-mentioned predetermined ID information is the same as the above-mentioned target ID information, after executing the predetermined action according to the above-mentioned operation instruction, the above-mentioned information processing method also includes: sending response information to the above-mentioned OBD interface, and the above-mentioned response information is information indicating that the above-mentioned predetermined action has been completed.

[0046] The embodiment of the present application also provides an electronic control unit. It should be noted that the electronic control unit of the embodiment of the present application can be used to execute the information processing method provided by the embodiment of the present application. The electronic control unit provided by the embodiment of the present application is introduced below.

[0047] Figure 2 is a schematic diagram of the structure of an electronic control unit according to an embodiment of the present application. The vehicle includes an engine and a power supply, the engine includes an engine body and at least two electronic control units, the electronic control units are arranged on the engine body, and the power supply is used to supply power to the electronic control units. Figure 2 As shown, the electronic control unit includes:

[0048] The acquisition unit 10 is used to acquire a target electrical parameter of the target pin when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, wherein one electronic control unit includes at least two target pins, the target pins connected to each target wire in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value;

[0049] The updating unit 20 is used to update the ID information of the electronic control unit at least according to the target electrical parameter to obtain target ID information, where the target ID information is information representing the address of the electronic control unit.

[0050] The above-mentioned electronic control unit includes an acquisition unit and an update unit, wherein the above-mentioned acquisition unit is used to acquire the target electrical parameter of the above-mentioned target pin when it is determined that one end of the target wire is electrically connected to a target pin of the above-mentioned electronic control unit and the other end is electrically connected to the above-mentioned power supply, wherein one of the above-mentioned electronic control units includes at least two of the above-mentioned target pins, and the above-mentioned target pins connected to the above-mentioned target wires in each of the above-mentioned electronic control units are different, and the above-mentioned target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value; the above-mentioned update unit is used to update the ID information of the above-mentioned electronic control unit at least according to the above-mentioned target electrical parameter to obtain the target ID information, and the above-mentioned target ID information is information representing the address of the above-mentioned electronic control unit. Since the target pins connected to the target wires in each electronic control unit in this scheme are different, the target electrical parameters of different target pins in each electronic control unit can be acquired, and then the ID information of the corresponding electronic control unit is updated at least according to the target electrical parameters, so as to ensure that the obtained target ID information is relatively accurate, thereby solving the problem that it is difficult to accurately update the ID information of the ECU (electronic control unit, Electronic Control Unit, referred to as ECU) in the prior art. In addition, compared with the prior art in which, when calibrating multiple ECUs with the same ID information through one OBD interface, the OBD interface receives response messages from multiple ECUs, making it difficult to distinguish which ECU's response information is and thus difficult to calibrate the ECU, in this solution, the target electrical parameters obtained are updated with the ECU's ID information, and when the ECU is subsequently calibrated, the ECU can be calibrated according to the ECU's target ID information. This solution realizes the calibration of multiple ECUs through the same OBD interface, solving the problem in the prior art that it is difficult to calibrate multiple ECUs through one OBD interface.

[0051] In actual application, one end of the target wire is electrically connected to a target pin of the electronic control unit, and the other end of the target wire can be electrically connected to the power supply. Of course, the other end of the target wire can also be grounded.

[0052] In addition, the number of target pins in the electronic control unit may be the same as the number of electronic control units. Of course, the number of target pins in the electronic control unit may also be greater than the number of electronic control units.

[0053] Specifically, each electronic control unit in the above engine may have the same hardware, the same data, the same ID and the same baud rate, etc., that is, the functions of each electronic control unit are the same.

[0054] In a specific embodiment of the present application, it is assumed that the above-mentioned engine includes three electronic control units, and the number of target pins in the above-mentioned electronic control unit can be three. Of course, the number of target pins in the above-mentioned electronic control unit can also be greater than three. Assuming that the three electronic control units (i.e., the first electronic control unit, the second electronic control unit, and the third electronic control unit) respectively have three target pins (i.e., the first target pin, the second target pin, and the third target pin), the specific connection relationship can be that one end of the first target pin of the first electronic control unit is electrically connected to the first target wire, one end of the second target pin of the second electronic control unit is electrically connected to the second target wire, and one end of the third target pin of the third electronic control unit is electrically connected to the third target wire, that is, the target pins connected to each target wire in each electronic control unit are different.

[0055] In one embodiment of the present application, the acquisition unit further includes an acquisition module and a determination module, wherein the acquisition module is used to acquire multiple predetermined electrical parameters of the multiple target pins, wherein one target pin corresponds to one predetermined electrical parameter, and the predetermined electrical parameter includes at least one of the following: current, voltage; the determination module is used to determine the predetermined electrical parameter different from the predetermined current value as the target electrical parameter, and / or, determine the predetermined electrical parameter different from the predetermined voltage value as the target electrical parameter. In this embodiment, since an electronic control unit includes at least two target pins, multiple predetermined electrical parameters can be acquired, and then the target electrical parameters are determined based on the multiple predetermined electrical parameters, thereby ensuring that the acquired target electrical parameters are relatively accurate, and further ensuring that the target ID information of the electronic control unit obtained subsequently is relatively accurate.

[0056] Specifically, in actual application, since an electronic control unit includes at least two target pins, one of the target pins will be electrically connected to the target wire, and the other target pins will not be connected to any wire. In this case, the electronic control unit will detect that the target pin electrically connected to the target wire has predetermined electrical parameters such as current or voltage, while the target pin not electrically connected to the target wire does not have current or voltage (that is, the predetermined electrical parameter is 0). In this way, the electronic control unit can determine the target pin electrically connected to the target wire more quickly and simply, and subsequently update the ID information of the electronic control unit at least according to the target electrical parameters of the target pin. This not only further ensures that the obtained target ID information is more accurate, but also further ensures that the method for updating the target ID information is simpler, and further ensures that the calculation amount of the ECU is small.

[0057] In order to enable the electronic control unit to update the ID information more accurately and simply to obtain the target ID information, in another embodiment of the present application, the above-mentioned update unit includes an update module, which is used to update the above-mentioned ID information according to the above-mentioned target electrical parameters and preset update rules to obtain the above-mentioned target ID information, wherein the above-mentioned preset update rules are rules for updating the above-mentioned ID information of the above-mentioned electronic control unit using predetermined values, and the above-mentioned predetermined values ​​are determined according to the connection order of the above-mentioned target pins.

[0058] Specifically, assuming that one end of the first target pin of the first electronic control unit is electrically connected to the first target wire, one end of the second target pin of the second electronic control unit is electrically connected to the second target wire, and one end of the third target pin of the third electronic control unit is electrically connected to the third target wire, the first electronic control unit will detect the target electrical parameters of the first target pin, and the first electronic control unit will add a predetermined value (i.e., the predetermined value is 1) to its own ID information, so that the target ID information of the first electronic control unit can be obtained, the second electronic control unit will detect the target electrical parameters of the second target pin, and the second electronic control unit will add a predetermined value (i.e., the predetermined value is 2) to its own ID information, so that the target ID information of the second electronic control unit can be obtained, the third electronic control unit will detect the target electrical parameters of the third target pin, and the third electronic control unit will add a predetermined value (i.e., the predetermined value is 3) to its own ID information, so that the target ID information of the third electronic control unit can be obtained.

[0059] Of course, in actual application, the rules for updating the ECU's ID information can be adjusted according to actual circumstances. For example, when the first electronic control unit is connected to the first target pin, the ID information of the first electronic control unit is not updated, and only other electronic control units need to be updated. In other words, only the ID information of each electronic control unit needs to be distinguished.

[0060] Specifically, the above-mentioned predetermined value is not limited to the numerical value shown in the above example, but can also be other numerical values, and of course can also be numerical values ​​expressed in other ways. The above-mentioned predetermined value is not limited in the present application.

[0061] In another embodiment of the present application, the vehicle further includes an OBD interface, the electronic control unit further includes input and output pins, and the input and output pins of each electronic control unit are respectively connected to the OBD interface via a CAN line. In this embodiment, the input and output pins of each electronic control unit are respectively connected to the OBD interface via a CAN line, that is, each electronic control unit is respectively connected to the OBD interface, and each electronic control unit can subsequently receive an operation instruction sent by the OBD interface, thereby further realizing the calibration of each ECU.

[0062] In another embodiment of the present application, the electronic control unit further includes a receiving unit, a judging unit and an executing unit, wherein the receiving unit is used to update the ID information of the electronic control unit at least according to the target electrical parameter, and after obtaining the target ID information, receive the operation instruction sent by the OBD interface, and the operation instruction carries the predetermined ID information; the judging unit is used to judge whether the predetermined ID information is the same as the corresponding target ID information; the executing unit is used to perform a predetermined action according to the operation instruction when the predetermined ID information is the same as the target ID information, and the predetermined action includes at least one of the following: connection, monitoring, calibration, and flashing. In this embodiment, the electronic control unit judges the predetermined ID information carried in the operation instruction and its own target ID information, and when they are the same, performs the corresponding predetermined action according to the operation instruction. Although multiple ECUs in this solution are connected to the same OBD interface, since the target ID information of each ECU is different, the corresponding ECU can be calibrated according to the target ID information, thereby solving the problem that it is difficult to calibrate multiple ECUs through one OBD interface in the prior art.

[0063] In actual application, the OBD interface can also be connected to a controller, the OBD interface can also be connected to a computer, or the OBD interface can also be connected to a dedicated electronic device for ECU calibration. When the OBD interface is connected to a controller or a computer or a dedicated electronic device for ECU calibration, the operation instruction can be an operation instruction issued by the controller or the computer or the dedicated electronic device for ECU calibration, that is, the operation instruction is forwarded to the electronic control unit through the OBD interface.

[0064] In order to facilitate the OBD interface to promptly know the execution status of the ECU on the operation instruction, in an embodiment of the present application, the above-mentioned electronic control unit also includes a sending unit, which is used to send response information to the above-mentioned OBD interface after executing the predetermined action according to the above-mentioned operation instruction when the above-mentioned predetermined ID information is the same as the above-mentioned target ID information. The above-mentioned response information is information indicating that the above-mentioned predetermined action has been completed.

[0065] The electronic control unit includes a processor and a memory. The acquisition unit and the update unit are stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.

[0066] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of the difficulty in accurately updating the ID information of the ECU in the prior art can be solved by adjusting the kernel parameters.

[0067] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0068] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned information processing method is implemented.

[0069] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the information processing method is executed when the program is run.

[0070] In a typical embodiment of the present application, a vehicle is also provided, which includes an engine, a power supply and an OBD interface, the engine includes at least two electronic control units in an engine body, the electronic control units are arranged on the engine body, the power supply is used to power the electronic control units, and the electronic control units are used to execute any one of the above-mentioned information processing methods.

[0071] The above-mentioned vehicle includes an engine, a power supply and an OBD interface, the above-mentioned engine includes an engine body and at least two above-mentioned electronic control units, the above-mentioned electronic control unit is arranged on the above-mentioned engine body, the above-mentioned power supply is used to supply power to the above-mentioned electronic control unit, and the above-mentioned electronic control unit is used to execute any one of the above-mentioned information processing methods, in the above-mentioned information processing method, when it is determined that one end of the target wire is electrically connected to a target pin of the above-mentioned electronic control unit and the other end is electrically connected to the above-mentioned power supply, the target electrical parameter of the above-mentioned target pin is obtained, and then at least according to the above-mentioned target electrical parameter, the ID information of the above-mentioned electronic control unit is updated to obtain the target ID information. Since the target pins connected to the target wire in each electronic control unit in this scheme are different, the target electrical parameters of different target pins in each electronic control unit can be obtained, and then at least according to the target electrical parameter, the ID information of the corresponding electronic control unit is updated, so that the obtained target ID information is guaranteed to be more accurate, thereby solving the problem that it is difficult to accurately update the ID information of the ECU (electronic control unit, Electronic Control Unit, referred to as ECU) in the prior art. In addition, compared with the prior art in which, when calibrating multiple ECUs with the same ID information through one OBD interface, the OBD interface receives response messages from multiple ECUs, making it difficult to distinguish which ECU's response information is and thus difficult to calibrate the ECU, in this solution, the target electrical parameters obtained are updated with the ECU's ID information, and when the ECU is subsequently calibrated, the ECU can be calibrated according to the ECU's target ID information. This solution realizes the calibration of multiple ECUs through the same OBD interface, solving the problem in the prior art that it is difficult to calibrate multiple ECUs through one OBD interface.

[0072] An embodiment of the present invention provides a device, the device comprising a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0073] Step S101, when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, a target electrical parameter of the target pin is obtained, wherein one electronic control unit includes at least two target pins, the target pins connected to each target wire in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value;

[0074] Step S102: updating the ID information of the electronic control unit at least according to the target electrical parameter to obtain target ID information, where the target ID information is information representing the address of the electronic control unit.

[0075] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0076] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0077] Step S101, when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, a target electrical parameter of the target pin is obtained, wherein one electronic control unit includes at least two target pins, the target pins connected to each target wire in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value;

[0078] Step S102: updating the ID information of the electronic control unit at least according to the target electrical parameter to obtain target ID information, where the target ID information is information representing the address of the electronic control unit.

[0079] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the technical solution and technical effects of the present application will be explained below in conjunction with specific embodiments.

[0080] Example 1

[0081] like Figure 3 As shown, it is assumed that the above engine has three electronic control units (i.e., the first electronic control unit, the second electronic control unit, and the third electronic control unit), and each electronic control unit includes three target pins, i.e., the first target pin PIN0 of the first electronic control unit is electrically connected to the first target wire, the second target pin PIN1 of the second electronic control unit is electrically connected to the second target wire, and the third target pin PIN2 of the third electronic control unit is electrically connected to the third target wire. When the ID information of each electronic control unit is ID0, the first electronic control unit updates the ID information of the first electronic control unit according to the first target electrical parameter of its first target pin to obtain the first target ID information; the second electronic control unit updates the ID information of the second electronic control unit according to the second target electrical parameter of its second target pin to obtain the second target ID information; the third electronic control unit updates the ID information of the third electronic control unit according to the third target electrical parameter of its third target pin to obtain the third target ID information. After each electronic control unit updates the ID information, the electronic control unit performs the corresponding predetermined action according to the operation instruction corresponding to its own target ID information.

[0082] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0083] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0084] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0085] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0086] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0087] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0088] 1) In the information processing method of the present application, when it is determined that one end of the target wire is electrically connected to a target pin of the above-mentioned electronic control unit and the other end is electrically connected to the above-mentioned power supply, the target electrical parameters of the above-mentioned target pin are obtained, and then the ID information of the above-mentioned electronic control unit is updated at least according to the above-mentioned target electrical parameters to obtain the target ID information. Since the target pins connected to the target wire in each electronic control unit are different in this scheme, the target electrical parameters of different target pins in each electronic control unit can be obtained, and then the ID information of the corresponding electronic control unit is updated at least according to the target electrical parameters, which ensures that the obtained target ID information is relatively accurate, thereby solving the problem in the prior art that it is difficult to accurately update the ID information of the ECU (Electronic Control Unit, Electronic Control Unit, referred to as ECU). In addition, compared with the prior art in which, when calibrating multiple ECUs with the same ID information through one OBD interface, the OBD interface receives response messages from multiple ECUs, making it difficult to distinguish which ECU's response information is and thus difficult to calibrate the ECU, in this solution, the target electrical parameters obtained are updated with the ECU's ID information, and when the ECU is subsequently calibrated, the ECU can be calibrated according to the ECU's target ID information. This solution realizes the calibration of multiple ECUs through the same OBD interface, solving the problem in the prior art that it is difficult to calibrate multiple ECUs through one OBD interface.

[0089] 2) The electronic control unit of the present application includes an acquisition unit and an update unit, wherein the acquisition unit is used to acquire the target electrical parameter of the target pin when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, wherein one electronic control unit includes at least two target pins, and the target pins connected to the target wires in each electronic control unit are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value; the update unit is used to update the ID information of the electronic control unit at least according to the target electrical parameter to obtain the target ID information, and the target ID information is information representing the address of the electronic control unit. Since the target pins connected to the target wires in each electronic control unit are different in this scheme, the target electrical parameters of different target pins in each electronic control unit can be acquired, and then the ID information of the corresponding electronic control unit can be updated at least according to the target electrical parameters, so that the obtained target ID information is relatively accurate, thereby solving the problem that it is difficult to accurately update the ID information of the ECU (electronic control unit, Electronic Control Unit, referred to as ECU) in the prior art. In addition, compared with the prior art in which, when calibrating multiple ECUs with the same ID information through one OBD interface, the OBD interface receives response messages from multiple ECUs, making it difficult to distinguish which ECU's response information is and thus difficult to calibrate the ECU, in this solution, the target electrical parameters obtained are updated with the ECU's ID information, and when the ECU is subsequently calibrated, the ECU can be calibrated according to the ECU's target ID information. This solution realizes the calibration of multiple ECUs through the same OBD interface, solving the problem in the prior art that it is difficult to calibrate multiple ECUs through one OBD interface.

[0090] 3) The vehicle of the present application includes an engine, a power supply and an OBD interface, the engine includes an engine body and at least two electronic control units, the electronic control unit is arranged on the engine body, the power supply is used to supply power to the electronic control unit, the electronic control unit is used to execute any one of the above information processing methods, in the above information processing method, when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, the target electrical parameter of the target pin is obtained, and then the ID information of the electronic control unit is updated at least according to the target electrical parameter to obtain the target ID information. Since the target pins connected to the target wire in each electronic control unit are different in this scheme, the target electrical parameters of different target pins in each electronic control unit can be obtained, and then the ID information of the corresponding electronic control unit is updated at least according to the target electrical parameter, so as to ensure that the obtained target ID information is relatively accurate, thereby solving the problem that it is difficult to accurately update the ID information of the ECU (electronic control unit, Electronic Control Unit, referred to as ECU) in the prior art. In addition, compared with the prior art in which, when calibrating multiple ECUs with the same ID information through one OBD interface, the OBD interface receives response messages from multiple ECUs, making it difficult to distinguish which ECU's response information is and thus difficult to calibrate the ECU, in this solution, the target electrical parameters obtained are updated with the ECU's ID information, and when the ECU is subsequently calibrated, the ECU can be calibrated according to the ECU's target ID information. This solution realizes the calibration of multiple ECUs through the same OBD interface, solving the problem in the prior art that it is difficult to calibrate multiple ECUs through one OBD interface.

[0091] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An information processing method, characterized in that: In an electronic control unit, a vehicle includes an engine and a power source, the engine includes an engine body and at least two electronic control units, the electronic control unit is arranged on the engine body, the power source is used to supply power to the electronic control unit, and the information processing method includes: When it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, a target electrical parameter of the target pin is obtained, wherein the number of the target pins of the electronic control unit is greater than or equal to the number of the electronic control units, the target pins connected to the target wires in the electronic control units are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value; At least according to the target electrical parameter, the ID information of the electronic control unit is updated to obtain target ID information, wherein the target ID information is information representing the address of the electronic control unit; At least according to the target electrical parameter, updating the ID information of the electronic control unit to obtain the target ID information includes: According to the target electrical parameters, the ID information is updated according to a preset update rule to obtain the target ID information, wherein the preset update rule is a rule for updating the ID information of the electronic control unit using a predetermined value, and the predetermined value is determined according to the pin number of the electronic control unit of the target pin.

2. The information processing method according to claim 1, characterized in that: When it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, obtaining a target electrical parameter of the target pin includes: Acquire a plurality of predetermined electrical parameters of a plurality of the target pins, wherein one target pin corresponds to one predetermined electrical parameter, and the predetermined electrical parameter includes at least one of the following: current and voltage; determining the predetermined electrical parameter different from the predetermined current value as the target electrical parameter, and / or, The predetermined electrical parameter different from the predetermined voltage value is determined as the target electrical parameter.

3. The information processing method according to any one of claims 1 to 2, characterized in that: The vehicle further comprises an OBD interface, and the electronic control unit further comprises input and output pins, and the input and output pins of each electronic control unit are respectively connected to the OBD interface via a CAN line.

4. The information processing method according to claim 3, characterized in that: After the ID information of the electronic control unit is updated at least according to the target electrical parameter to obtain the target ID information, the information processing method further includes: Receiving an operation instruction sent by the OBD interface, wherein the operation instruction carries predetermined ID information; Determining whether the predetermined ID information is the same as the corresponding target ID information; In the case where the predetermined ID information is identical to the target ID information, a predetermined action is performed according to the operation instruction, and the predetermined action includes at least one of the following: connection, monitoring, calibration, and flashing.

5. The information processing method according to claim 4, characterized in that: In the case where the predetermined ID information is the same as the target ID information, after executing the predetermined action according to the operation instruction, the information processing method further includes: Sending response information to the OBD interface, wherein the response information is information indicating that the predetermined action has been completed.

6. An electronic control unit, characterized in that: The vehicle comprises an engine and a power source, wherein the engine comprises an engine body and at least two electronic control units, wherein the electronic control unit is arranged on the engine body, and the power source is used to supply power to the electronic control unit, wherein the electronic control unit comprises: an acquisition unit, configured to acquire a target electrical parameter of the target pin when it is determined that one end of the target wire is electrically connected to a target pin of the electronic control unit and the other end is electrically connected to the power supply, wherein the number of the target pins of the electronic control unit is greater than or equal to the number of the electronic control units, the target pins connected to the target wires in the electronic control units are different, and the target electrical parameter is a current value different from a predetermined current value or a voltage value different from a predetermined voltage value; An updating unit, configured to update the ID information of the electronic control unit at least according to the target electrical parameter to obtain target ID information, wherein the target ID information is information representing the address of the electronic control unit; The update unit includes an update module, which is used to update the ID information according to the target electrical parameters and a preset update rule to obtain the target ID information, wherein the preset update rule is a rule for updating the ID information of the electronic control unit using a predetermined value, and the predetermined value is determined according to the pin number of the electronic control unit of the target pin.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the information processing method according to any one of claims 1 to 5.

8. A processor, characterized in that: The processor is used to run a program, wherein the program executes the information processing method according to any one of claims 1 to 5 when running.

9. A vehicle, characterized in that: include: An engine, a power supply and an OBD interface, wherein the engine comprises an engine body and at least two electronic control units, wherein the electronic control unit is arranged on the engine body, the power supply is used to supply power to the electronic control unit, and the electronic control unit is used to execute the information processing method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • ECU identifying apparatus and controlling method thereof

    US20190028500A1

  • Automobile electronic control system tester and testing method

    WO2017143790A1