Version processing method and device and vehicle

By obtaining and solidifying the hardware and software version parameters of the domain controller, the confusion caused by version updates in the new energy vehicle control system is solved, ensuring that only one version exists, simplifying after-sales work and improving work efficiency.

CN118733102APending Publication Date: 2024-10-01BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310375107.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In new energy vehicle control systems, domain controller hardware and software version updates lead to confusion among multiple hardware and software versions, causing trouble to after-sales staff and making it difficult to quickly locate and use the correct version for maintenance.

Method used

By obtaining the hardware and software version parameters related to the domain controller, the corresponding second hardware and software version parameters are determined according to the preset conditions, and solidified into the electronic control unit to ensure that only one version exists and simplify after-sales work.

Benefits of technology

It is realized that there is only one hardware version and one software version in the domain controller, which simplifies the after-sales work process and improves work efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733102A_ABST
    Figure CN118733102A_ABST
Patent Text Reader

Abstract

The invention relates to a version processing method and device and a vehicle, and relates to the technical field of vehicles, and the method comprises the steps: obtaining a first hardware version parameter and a first software version parameter related to a domain controller; determining a second hardware version parameter corresponding to a first preset condition from the first hardware version parameters; determining a second software version parameter corresponding to a second preset condition from the first software version parameters; and solidifying the second hardware version parameter and the second software version parameter into an electronic control unit of the vehicle. By using the version processing method provided by the invention, convenience is provided for after-sales work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular, to a version processing method, device and vehicle. Background Art

[0002] The control system of new energy vehicles is composed of multiple domain controllers, which work in coordination with each other to form a complete vehicle control system.

[0003] In the related technology, the update of electronic components and IC devices on the domain controller will cause the domain controller to form multiple hardware versions. The iterative update of the hardware version or the different functional requirements of the domain controller for different car models will cause the domain controller to derive multiple software versions.

[0004] However, when a vehicle breaks down, after-sales staff will obtain multiple hardware versions and software versions related to the domain controller, resulting in confusion in the hardware and software versions obtained by the staff, causing great trouble to after-sales work. Summary of the invention

[0005] The purpose of the present disclosure is to provide a version processing method, device and vehicle to solve the above-mentioned technical problems.

[0006] A first aspect of the present disclosure provides a version processing method, including:

[0007] Obtaining a first hardware version parameter and a first software version parameter related to the domain controller;

[0008] Determining, from the first hardware version parameter, a second hardware version parameter corresponding to the first preset condition;

[0009] Determining, from the first software version parameters, a second software version parameter corresponding to the second preset condition;

[0010] The second hardware version parameter and the second software version parameter are fixed into the electronic control unit of the vehicle.

[0011] Optionally, the first preset condition includes a preset hardware version number, and the second preset condition includes a preset software version number;

[0012] The determining, from the first hardware version parameter, a second hardware version parameter corresponding to the first preset condition comprises: determining, from the first hardware version parameter, a second hardware version parameter corresponding to the preset hardware version number;

[0013] Determining the second software version parameter corresponding to the second preset condition from the first software version parameter includes: determining the second software version parameter corresponding to the preset software version number from the first software version parameter.

[0014] Optionally, the first preset condition further includes a preset hardware version format, and the method further includes:

[0015] Determine a target hardware version parameter corresponding to the preset hardware version format from the first hardware version parameter; determine a second hardware version parameter corresponding to the preset hardware version number from the target hardware version parameter; and / or,

[0016] The second preset condition also includes a preset software version format, and the method further includes:

[0017] From the first software version parameter, a target software version parameter corresponding to the preset software version format is determined; from the target software version parameter, a second software version parameter corresponding to the preset software version number is determined.

[0018] Optionally, the acquiring a first hardware version parameter and a first software version parameter related to the domain controller includes:

[0019] In a case where the first hardware version parameter and the first software version parameter exist in the electronic control unit, the first hardware version parameter and the first software version parameter are acquired from the electronic control unit.

[0020] Optionally, before obtaining the first hardware version parameter related to the domain controller, the method further includes:

[0021] In the case where the first hardware version parameter does not exist in the electronic control unit, obtaining a current voltage between two adjacent resistors in a resistance ladder circuit of the vehicle;

[0022] Determining a target voltage range in which the current voltage is located from a plurality of voltage ranges;

[0023] According to the correspondence between the hardware version parameter and the voltage range, a first hardware version parameter corresponding to the target voltage range is written into the electronic control unit.

[0024] Optionally, the method further comprises:

[0025] The error flag is output if at least one of the following conditions exists:

[0026] The first hardware version parameter does not exist in the electronic control unit;

[0027] There is no second hardware version parameter corresponding to the preset hardware version format in the first hardware version parameter;

[0028] The first software version parameters do not contain a second software version parameter corresponding to the preset software version format.

[0029] Optionally, the method further comprises:

[0030] When it is determined that the error flag exists, an application layer task in the operating system is suspended and / or a diagnosis processing task in the operating system is controlled to output fault information.

[0031] Optionally, the method further comprises:

[0032] A CAN message is received through a diagnostic processing task in the operating system, wherein the CAN message includes a modified hardware version parameter and / or software version parameter.

[0033] A second aspect of the present disclosure provides a version processing device, including:

[0034] An acquisition module, configured to acquire a first hardware version parameter and a first software version parameter related to the domain controller;

[0035] A second hardware version parameter determination module is configured to determine a second hardware version parameter corresponding to the first preset condition from the first hardware version parameter;

[0036] A second software version parameter determination module is configured to determine a second software version parameter corresponding to a second preset condition from the first software version parameter;

[0037] The curing module is configured to cure the second hardware version parameter and the second software version parameter into an electronic control unit of the vehicle.

[0038] A third aspect of the present disclosure provides a vehicle, comprising:

[0039] a memory having a computer program stored thereon;

[0040] A processor is used to execute the computer program in the memory to implement the steps of the version processing method provided in the first aspect of the present disclosure.

[0041] Through the above technical scheme, multiple first hardware version parameters and first software version parameters are obtained, and the second hardware version parameters that meet the preset hardware version format and preset hardware version numbering conditions can be queried from the multiple first hardware version parameters. The second software version parameters that meet the preset software version format and preset software version numbering conditions can also be automatically queried from the multiple first software version parameters. Finally, after the queried second hardware version parameters and second software version parameters are written into the electronic control unit, the hardware version parameters and software version parameters viewed by the staff will have one version, and multiple versions will not coexist. The staff can directly use the second hardware version parameters and second software version parameters solidified in the electronic control unit, which brings convenience to after-sales work.

[0042] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0044] Figure 1 is a flowchart of a version processing method according to an exemplary embodiment;

[0045] Figure 2 is a logic diagram of a version processing method according to an exemplary embodiment;

[0046] Figure 3 is a logic diagram of a version processing method according to an exemplary embodiment;

[0047] Figure 4 is a logic diagram of a version processing method according to an exemplary embodiment;

[0048] Figure 5 is a logic diagram of a version processing method according to an exemplary embodiment;

[0049] Figure 6 It is a block diagram of a version processing device according to an exemplary embodiment. DETAILED DESCRIPTION

[0050] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0051] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0052] Figure 1 A version processing method is shown in an exemplary embodiment of the present disclosure, and the method includes the following steps:

[0053] In step S11, a first hardware version parameter and a first software version parameter related to the domain controller are obtained.

[0054] Among them, the domain controller proposed in any embodiment of the present disclosure can be any one of the front domain controller, rear domain controller, left domain controller and right domain controller on the vehicle.

[0055] When the domain controller performs hardware updates and iterations, multiple first hardware version parameters will be generated, and when the domain controller performs functional updates and iterations, multiple first software version parameters will be generated. Since hardware updates on the domain controller will derive multiple software versions, after the first hardware version parameter changes, the first software version parameter may also change accordingly.

[0056] For example, the two first hardware version parameters of the domain controller are V1.0 and V1.1. The domain controller of V1.0 has IC device A and IC device B, and the domain controller of V1.1 has IC device A1.1 and IC device B. Compared with the domain controller of V1.0, the domain controller of V1.1 is updated on IC device A, and IC device A is updated to IC device A1.1. It can be understood that when any device on the domain controller is updated, a new hardware version number of the domain controller will be generated.

[0057] For example, the two first software version parameters of the domain controller are V2.0 and V2.1. When IC device A on the domain controller is updated to IC device A1.1, function A implemented by the IC device may also be updated to function A1.1 implemented by IC device A1.1. It is understandable that when any function controlled by the domain controller is updated, a new software version number of the domain controller will be generated.

[0058] Among them, see Figure 2As shown, you can first input multiple domain controller version parameters of the domain controller into an Excel file; import the Excel file corresponding to the domain controller version parameters into the script tool to automatically generate a compilable file (the format of the compilable file is ".c\.h"). The compilable file is imported into the engineering project (the engineering project can be IR, CARE and other compilation software) for compilation to generate firmware (the format of the firmware can be ".hex or .bin or .srec", etc.), and the firmware is burned into the electronic control unit (Ecu) through the simulator or the host computer, so that the electronic control unit has the domain controller version parameters.

[0059] During this process, the script tool can use Excel files to generate domain controller version parameters with one click, without the developer having to add additional code, which reduces the difficulty of development; and the generated firmware can be burned into any domain controller, making the firmware more portable and the firmware can be regarded as code.

[0060] It can be understood that the above-mentioned domain controller version parameter is the first software version parameter. Therefore, after the electronic control unit has the first software version parameter, when the electronic control unit is powered on for the first time, the first software version parameter can be obtained from the electronic control unit.

[0061] It is understandable that after the electronic control unit is powered on for the first time, since there is no first hardware version parameter in the electronic control unit, the first hardware version parameter can be automatically generated through the ADC analog channel and then solidified into the electronic control unit; after the electronic control unit is powered on for the second time, since there is the first hardware version parameter in the electronic control unit, the first hardware version parameter can be obtained from the electronic control unit. Therefore, the first hardware version parameter can be obtained from the electronic control unit or the ADC analog channel.

[0062] In step S12, a second hardware version parameter corresponding to the first preset condition is determined from the first hardware version parameter.

[0063] The first preset condition is a pre-made condition related to hardware, and the first preset condition includes a preset hardware version format and a preset hardware version number.

[0064] When the hardware module on the domain controller is iteratively updated, a new first hardware version parameter of the domain controller will be derived, so the first hardware version parameters obtained are usually multiple.

[0065] Among them, the multiple first hardware version parameters obtained are all hardware version parameters related to the domain controller. The first hardware version parameters include a mapping relationship between multiple first hardware version numbers, hardware modules and hardware module parameters. One first hardware version number corresponds to at least one hardware module, and each hardware module corresponds to its own hardware module parameters. The hardware module is the hardware on the domain controller, such as electronic components or IC devices; the hardware module parameters are configuration parameters related to the hardware module, such as the source manufacturer, model, power, manufacturing process, memory and other configuration parameters of the electronic component device or IC device.

[0066] For example, the first hardware version number 0001 corresponds to hardware modules 0 to 2, and the hardware module parameters corresponding to hardware modules 0 to 2 are parameters 0 to 2 respectively; the first hardware version number 0002 corresponds to hardware modules 0 to 2, and the hardware module parameters corresponding to hardware modules 0 to 2 are parameters 3 to 5 respectively.

[0067] It is understandable that different first hardware version numbers correspond to different hardware versions, one first hardware version number uniquely corresponds to one hardware version, multiple hardware modules can derive multiple hardware versions, and the same hardware module can also derive multiple hardware versions.

[0068] Among them, since the first hardware version parameter includes the first hardware version number, each first hardware version number corresponds to its own hardware version format and hardware version number, the hardware version formats and hardware version numbers of multiple first hardware version numbers can be compared with the preset hardware version format and the preset hardware version number to obtain the second hardware version parameter corresponding to the preset hardware version format and the preset hardware version number.

[0069] The preset hardware version format and the preset hardware version number are parameters input by the user for identifying a hardware. After determining the second hardware version parameter corresponding to the preset hardware version format and the preset hardware version number from multiple first hardware version parameters, the second hardware version parameter is the hardware version parameter related to the domain controller that the user wants.

[0070] For example, there are hardware versions V1.0 to V1.5 in the vehicle, and the hardware version numbers corresponding to the hardware versions V1.0 to V1.5 are 0001 to 0005. The preset hardware version format is five digits, and the preset hardware version number is 0005. Then the hardware version numbers 0001 to 0005 all conform to the preset hardware version format; and the hardware version number 0005 corresponds to the preset hardware version number, so the hardware module and the hardware module parameters corresponding to the hardware version number 0005 will be used together as the second hardware version parameters.

[0071] In step S13, a second software version parameter corresponding to the second preset condition is determined from the first software version parameters.

[0072] The second preset condition is a pre-made condition related to the software, and the second preset condition includes a preset software version format and a preset software version number,

[0073] When the functional modules on the domain controller are iteratively updated, new first software version parameters of the domain controller will be derived, so the first software version parameters obtained are usually multiple.

[0074] Among them, the multiple first software version parameters obtained are all software version parameters related to the hardware functions on the domain controller. The first software version parameters include a mapping relationship between multiple first software version numbers, function modules and function module parameters. One first software version number corresponds to at least one software module, and each software module corresponds to its own software module parameter. The function module is the function implemented by the domain controller, such as the door lock function, automatic parking function, child safety lock function and other function modules; the function module parameter is the configuration parameter of the function module, such as the function module parameter of the door lock function with reset function and without reset function.

[0075] For example, the software modules corresponding to the first software version number xxx01 are software module 0 to software module 2, and the software module parameters corresponding to software module 0 to software module 2 are parameters 0 to parameter 2 respectively; the second software version number xxx02 corresponds to software module 0 to software module 1, and the software module parameters corresponding to software module 0 to software module 1 are parameters 0 to parameter 1 respectively.

[0076] It can be understood that different first software version numbers correspond to different software versions, and different software versions correspond to different vehicle models. Multiple vehicle models can derive multiple software versions, and the same vehicle model can also derive multiple software versions. For example, vehicle model 1 has multiple software versions, corresponding to multiple first software version numbers.

[0077] Among them, since the first software version parameter includes the first software version number, and each first software version number has its own different software version format and software version number, the software version formats and software version numbers of multiple first software version numbers can be compared with the preset software version format and the preset software version number to obtain the second hardware version parameter corresponding to the preset software version format and the preset software version number.

[0078] The preset software version format and the preset software version number are parameters input by the user for identifying a vehicle function. The second software version parameter corresponding to the preset software version format and the preset software version number determined from multiple first software version parameters is the software version parameter related to the domain controller that the user wants to obtain.

[0079] For example, there are software versions V1.0 to V1.5 in the vehicle, and the software versions V1.0 to V1.5 correspond to software version numbers xx01 to xx05. The preset software version format is two letters and two numbers, and the preset software version number is xx05. Then the software version numbers xx01 to xx05 all conform to the preset software version format; and the software version number xx05 corresponds to the preset software version number, so the functional module and software module parameters corresponding to the software version number xx05 will be used together as the second software version parameters.

[0080] In step S14, the second hardware version parameter and the second software version parameter are fixed in the electronic control unit of the vehicle.

[0081] After obtaining the second hardware version parameter and the second software version parameter, these two parameters can be fixed in the electronic control unit of the vehicle.

[0082] In the related art, after the hardware module on the vehicle domain controller is updated and iterated, there will be multiple hardware version parameters on the vehicle, and after the functional module on the vehicle domain controller is updated and iterated, there will also be multiple software version parameters on the vehicle. Then, after the hardware modules and functional modules are continuously updated and iterated, the number of hardware version parameters and software version parameters on the vehicle is also large, and the hardware version parameters and software version parameters obtained by after-sales staff are relatively confusing, and it is difficult to find the hardware version parameters and software version parameters they need from multiple hardware version parameters and multiple software version parameters.

[0083] In the disclosure, although there are multiple first hardware version parameters and first software version parameters obtained, the second hardware version parameters that meet the preset hardware version format and preset hardware version numbering conditions can be queried from the multiple first hardware version parameters, and the second software version parameters that meet the preset software version format and preset software version numbering conditions can also be automatically queried from the multiple first software version parameters. After the queried second hardware version parameters and second software version parameters are finally written into the electronic control unit, the hardware version parameters and software version parameters viewed by the staff will have one version (for example, in the related technology, the staff will obtain multiple versions of a hardware, while in the present disclosure, the staff will obtain one version of a hardware), and there will be no coexistence of multiple versions. The staff can directly use the second hardware version parameters and second software version parameters solidified in the electronic control unit, which brings convenience to after-sales work.

[0084] In one possible implementation, see Figure 2 and Figure 3 As shown, determining a second hardware version parameter corresponding to a first preset condition from the first hardware version parameter includes: determining a second hardware version parameter corresponding to the preset hardware version number from the first hardware version parameter.

[0085] In some embodiments, determining, from the first hardware version parameter, a second hardware version parameter corresponding to the preset hardware version number comprises the following steps:

[0086] In step S21, a target hardware version parameter corresponding to the preset hardware version format is determined from the first hardware version parameter.

[0087] Optionally, the target hardware version parameter corresponding to the hardware software version format may include: a target hardware version parameter consistent with a preset hardware version format.

[0088] The preset hardware version format refers to the format of the hardware version number, for example, it can be different hardware version formats such as four numbers 0001, four letters AABB, etc.

[0089] The first hardware version parameters include the first hardware version number, hardware module and hardware module parameters, and the mapping relationship between the three. Figure 3 As shown, the process of determining the target hardware version parameter corresponding to the preset hardware version format from the multiple first hardware version parameters can be called the hardware version number verification process (the hardware version number verification process is Figure 3 The hardware version verification process in the embodiment is a process of comparing the format correspondence between the first hardware version number and the target hardware version number.

[0090] For example, the preset hardware version format is four digits, and the three first hardware version numbers are 11222, 22111, and 0001 respectively. Among the three first hardware version numbers, only the hardware version format of 0001 is four digits, which conforms to the preset hardware version format. Therefore, the first hardware version number of 0001 is the target hardware version number. Naturally, the hardware version parameter corresponding to the target hardware version number is the target hardware version parameter.

[0091] In this process, if the first hardware version parameter corresponds to the preset hardware version format, it is determined that the first hardware version parameter verification is successful; if the first hardware version parameter is different from the preset hardware version format, it is determined that the first hardware version parameter verification fails.

[0092] In step S22, a second software version parameter corresponding to the preset hardware version number is determined from the target hardware version parameters.

[0093] The second hardware version parameter includes a target hardware version number corresponding to the preset hardware version number, and a hardware module and hardware module parameters corresponding to the target hardware version number, wherein the hardware module parameters are parameters related to the hardware module, and different preset hardware version numbers correspond to different hardware versions. The hardware version number is used to uniquely identify a hardware version.

[0094]

[0095]

[0096] Table 1

[0097] For example, please refer to the multiple target hardware version parameters shown in Table 1. The hardware version numbers of the same hardware version format are 0001, 0002, and 0003. The hardware version number 0001 corresponds to hardware module 0 to hardware module 2, and the hardware module parameters corresponding to hardware module 0 to hardware module 2 are parameter 1; the hardware version number 0002 corresponds to hardware module 0 to hardware module 2, and the hardware module parameters corresponding to hardware module 0 to hardware module 2 are parameter 2; the hardware version number 0003 corresponds to hardware module 0 to hardware module 2, and the hardware module parameters corresponding to hardware module 0 to hardware module 2 are parameter 3.

[0098] The process of determining the second hardware version parameter corresponding to the preset hardware version number from the plurality of first hardware version parameters may be referred to as a hardware version number pairing process.

[0099] For example, the preset hardware version format is four digits, and the four first hardware version numbers are 11222, 22111, 0001, and 1111 respectively. The target hardware version numbers 0000 and 1111 comply with the preset hardware version format. At this time, if the preset hardware version number is 0000, the target hardware version number 0000 will be used as the second hardware version number. Naturally, the hardware version parameter corresponding to the second hardware version number is the second hardware version parameter.

[0100] In this process, if the target hardware version number corresponds to the preset hardware version number, it is determined that the target hardware version number is successfully paired; if the target hardware version number is different from the preset hardware version number, it is determined that the target hardware version number is unsuccessfully paired.

[0101] Among them, the role of pairing is to filter out the hardware version number, hardware module and hardware module parameters that the user wants from Table 1, and connect the three so that they can be solidified into the electronic control unit. When the hardware version number is input again, the corresponding hardware module parameters can be directly obtained according to the hardware version number. And after pairing the hardware version number with the hardware module parameters, the driver module of the hardware module can be determined based on the hardware module parameters, and then the driver module can be initialized. Initializing the hardware module can be regarded as enabling the driver module so that the hardware module can run.

[0102] In the related art, due to reasons such as material defects, cost control and hardware defects, the hardware version will be continuously iterated and upgraded, resulting in multiple hardware versions being maintained and updated synchronously, causing troubles for after-sales or development work.

[0103] In the present disclosure, the second hardware version number corresponding to the preset hardware version number will be automatically queried, and the corresponding hardware module and hardware module parameters will be paired according to the second hardware version number. The corresponding driver module will be called through the hardware module parameters to enable the hardware module. The staff can also directly query the driver module paired with the second hardware version number after entering the second hardware version number; and the mapping relationship between the second hardware version number, the hardware module and the hardware module parameters will also be solidified in the electronic control unit to facilitate after-sales work. In addition, in the embodiment of the present disclosure, compared with directly querying the second hardware version parameters corresponding to the preset hardware version number from the first hardware version parameters, the target hardware version parameters corresponding to the preset hardware version format are first queried, and then the second hardware version parameters corresponding to the target hardware version parameters are queried. This layer-by-layer screening method can improve retrieval efficiency and avoid invalid retrieval.

[0104] In the embodiment of the present disclosure, step S21 and step S22 may be combined with the above-mentioned step S31 and step S32, and step S21 and step S22 may also be used as an embodiment separately.

[0105] In one possible implementation, see Figure 3 and Figure 5 As shown, determining the second software version parameter corresponding to the second preset condition from the first software version parameter includes: determining the second software version parameter corresponding to the preset software version number from the first software version parameter.

[0106] In some embodiments, determining, from the first software version parameter, a second software version parameter corresponding to the preset software version number comprises the following steps:

[0107] In step S31, a target software version parameter corresponding to the preset software version format is determined from the first software version parameter.

[0108] Optionally, the target software version parameters corresponding to the software version format may include: target software version parameters consistent with a preset software version format.

[0109] The preset software version format refers to the format of the software version, for example, it can be different software version formats such as xx01, xxxx01, etc.

[0110] The first software version parameter includes the first software version number, the mapping relationship between the function module and the function module parameter. Figure 3 As shown, the process of determining the target software version parameter corresponding to the preset software version format from the multiple first software version parameters can be called the software version number verification process (the software version number verification process is Figure 3 software version verification process in the ).

[0111] In this process, if the first software version parameter corresponds to the preset software version format, it is determined that the first software version parameter verification is successful; if the first software version parameter is different from the preset software version format, it is determined that the first software version parameter verification fails.

[0112] In step S32, a second software version parameter corresponding to the preset software version number is determined from the target software version parameters.

[0113] Among them, the second software version parameter includes a target software version number corresponding to the preset software version number, and a functional module and functional module parameters corresponding to the target software version number, and the functional module parameters are configuration parameters of the functional module; different software version numbers correspond to different vehicle models.

[0114] Software version number Functional module 0 Functional module 1 Functional module 2 … xx01 Parameter 1 Parameter 1 Parameter 1 … xx02 Parameter 2 Parameter 2 Parameter 2 … xx03 Parameter 3 Parameter 3 Parameter 3 … xx.. … … … …

[0115] Table 2

[0116] For example, please refer to the multiple target software version parameters shown in Table 2. The software version numbers in the same software version format are xx01, xx02, and xx03. The software version number xx01 corresponds to function modules 0 to function modules 2, and the function module parameters corresponding to function modules 0 to function modules 2 are parameter 1; the software version number xx02 corresponds to function modules 0 to function modules 2, and the function module parameters corresponding to function modules 0 to function modules 2 are parameter 2; the software version number xx03 corresponds to function modules 0 to function modules 2, and the function module parameters corresponding to function modules 0 to function modules 2 are parameter 3.

[0117] The process of determining the second software version parameter corresponding to the preset software version parameter from the plurality of first software version parameters can be referred to as a software version number pairing process. If the target software version number corresponds to the preset software version number, it is determined that the target software version number is successfully paired; if the target software version number is different from the preset software version number, it is determined that the target software version number is unsuccessfully paired.

[0118] Among them, the role of pairing is to filter out the software version number, function module and function module parameters that the user wants from Table 2, and establish a connection between the three, so that they can be solidified into the electronic control unit. When the software version number is input again, the corresponding function module parameters can be directly obtained according to the software version number. And after the software version number and the function module parameters are paired, the function module can be called through the function module parameters.

[0119] For example, software version number xx01 corresponds to vehicle model 1, and software version number xx02 corresponds to vehicle model 2. Both software version numbers xx01 and xx02 have a back door function module, but the function module parameter corresponding to xx01 is that the back door does not have a reset function, and the function module parameter corresponding to xx02 is that the back door has a reset function. Then, after determining that the software version number of the current vehicle is xx02, the vehicle back door reset function can be called.

[0120] In the related technology, based on the different experiences that each person pursues for a vehicle, vehicle indicators such as low-end, mid-end, and high-end are generated, resulting in multiple software versions of the vehicle that need to be maintained.

[0121] In the present disclosure, different software version numbers are input for vehicles with different vehicle indicators, so that the corresponding function modules can be queried, and the application layer modules corresponding to different function modules are called according to the function module parameters to meet the user's needs for different functions; and the mapping relationship between the second software version number, the function module and the function module parameters will also be solidified in the electronic control unit to facilitate after-sales work. In addition, in the embodiment of the present disclosure, compared with directly querying the second software version parameter corresponding to the preset software version number from the first software version parameter, the target software version parameter corresponding to the preset software version format is first queried, and then the second software version parameter corresponding to the target software version parameter is queried. This layer-by-layer screening method can improve the retrieval efficiency and avoid invalid retrieval.

[0122] In the embodiment of the present disclosure, step S31 and step S32 may be combined with the above-mentioned step S21 and step S22, and step S31 and step S32 may also be used as an embodiment separately.

[0123] In a possible implementation manner, obtaining the first hardware version parameter and the first software version parameter related to the domain controller includes the following situations.

[0124] Case 1: When the first hardware version parameter and the first software version parameter exist in the electronic control unit, the first hardware version parameter and the first software version parameter are obtained from the electronic control unit.

[0125] After the electronic control unit is powered on, if the first hardware version parameter and the first software version parameter exist in the electronic control unit, the first hardware version parameter and the first software version parameter can be directly obtained from the electronic control unit.

[0126] Case 2: When the first hardware version parameter does not exist in the electronic control unit, obtain the current voltage between two adjacent resistors in the vehicle's resistance ladder circuit; determine the target voltage range in which the current voltage is located from multiple voltage ranges; and write the first hardware version parameter corresponding to the target voltage range into the electronic control unit based on the correspondence between the hardware version parameter and the voltage range.

[0127] Among them, it is explained in the above step S11 that the first software version parameter will be input into an excel table, and the firmware will be generated and burned into the electronic control unit through script tools and engineering projects. Therefore, when the electronic control unit is powered on for the first time, the first software version parameter will exist in the electronic control unit, but the first hardware version parameter will not exist.

[0128] At this time, it is necessary to first determine whether the first hardware version parameters exist in the Flash (flash memory) or Eeprom (erasable programmable read-only memory) of the electronic control unit. If not, it is necessary to use the ADC analog channel to determine the first hardware version parameters corresponding to the target voltage range based on the correspondence between different voltage ranges and hardware version parameters.

[0129] ADC low level sampling value ADC high level sampling value Hardware version number 0 4096 / n 0001 4096 / n+1 4096 / n*2 0002 4096 / n*2+1 4096 / n*3 0003 … … … 4096 / (n-1)+1 4096 / n*3 000n

[0130] Table 3

[0131] Please refer to Table 3 which shows the correspondence between different voltage ranges and hardware version numbers. The hardware version number corresponding to the voltage range [0, 4096 / n] is 0001; the hardware version number corresponding to the voltage range [4096 / n+1, 4096 / n*2] is 0002; the hardware version number corresponding to the voltage range [4096 / n*2+1, 4096 / n*3] is 0003, and so on.

[0132] For example, if the current voltage between two adjacent resistors in the resistance ladder circuit of the vehicle is within the range of [4096 / n+1, 4096 / n*2], the ADC analog channel will automatically generate a hardware version number of 0002.

[0133] Among them, the voltage range of the ADC analog channel is usually [0, 3.3V], and the voltage range of the ADC analog channel corresponding to [0, 3.3V] is [0, 4096]. If there are n hardware version numbers, [0, 4096] will be divided into n voltage ranges, and n can be 10.

[0134] The vehicle's resistor ladder circuit is illustrated as two resistors. The midpoints of the two resistors are connected to the pins of the ADC analog channel. The pins of the ADC analog channel receive the current voltage between the two resistors. If the current voltage is within a voltage range in Table 3, the corresponding hardware version number is output.

[0135] After determining the hardware version number of the ADC analog channel output, it is checked whether the hardware version corresponding to the hardware version number is compatible with the actual hardware version of the hardware. If they are compatible, the next step of the verification process is performed.

[0136] It can be understood that in the above-mentioned situations 1 and 2, when the electronic control unit is powered on for the first time, the first hardware version parameter does not exist in the electronic control unit. At this time, an error flag will be output, and the ADC analog channel will determine the corresponding hardware version number, and then store the hardware version number in the electronic control unit, so that when the electronic control unit is powered on for the second time, it can have the first hardware version parameter.

[0137] It is understood that an error flag is output when at least one of the following conditions exists:

[0138] 1) The first hardware version parameter does not exist in the electronic control unit.

[0139] 2) There is no second hardware version parameter corresponding to the preset hardware version format among the multiple first hardware version parameters, that is, the hardware version parameter verification fails.

[0140] 3) There is no second software version parameter corresponding to the preset software version format among the multiple first software version parameters, that is, the software version parameter verification fails.

[0141] Wherein, in the case of outputting an error flag, it indicates that the verification has failed or the electronic control unit does not have the first hardware version parameter. At this time, the application layer task in the operating system can be suspended and / or the diagnostic processing task in the operating system can be controlled to output fault information.

[0142] Normally, when verification fails, running application layer tasks may cause the domain controller to burn out, so when verification fails, suspending application layer tasks can prevent the domain controller from burning out; and fault information such as diagnostic messages can be output through diagnostic processing tasks to remind users that the hardware version number cannot be found or the hardware version number is wrong or the software version number is wrong.

[0143] Through the above technical solution, when the electronic control unit has the first hardware version parameter and the first software version parameter, the first hardware version parameter and the first software version parameter can be obtained from the electronic control unit; when the electronic control unit has the first hardware version parameter in the middle part, the first hardware version parameter can be output through the ADC analog channel.

[0144] In a possible implementation manner, the present disclosure may also respond to the user's modification of the second hardware version parameter and the second software version parameter, specifically including:

[0145] In step S41, a CAN message is received through a diagnostic processing task in the operating system, wherein the CAN message includes a modified hardware version parameter and / or software version parameter.

[0146] Among them, see Figure 3As shown, the user can modify the second hardware version parameter and / or the second software version parameter through the vehicle model CAN message script file to generate modified hardware version parameters and / or software version parameters, and the script file imports the modified hardware version parameters and / or software version parameters into the CAN tool; the CAN tool selects different CAN messages according to different vehicle models and different hardware versions, and sends the modified hardware version parameters and / or software version parameters to the diagnostic processing task of the operating system; after the diagnostic processing task receives the CAN message, it performs a format check on the hardware version parameters and / or software version parameters in the CAN message, and after the check is successful, it is solidified into the Flash or Eeprom of the electronic control unit.

[0147] Through the above technical solution, the user can modify the second hardware version parameters and / or the second software version parameters when the vehicle is tested to test the operating effects of the vehicle under different hardware versions and / or software versions.

[0148] Figure 6 It is a block diagram of a version processing device according to an exemplary embodiment. The version processing device 600 includes: an acquisition module 610, a second hardware version parameter determination module 620, a second software version parameter determination module 630 and a curing module 640.

[0149] The acquisition module 610 is configured to acquire a first hardware version parameter and a first software version parameter related to the domain controller;

[0150] The second hardware version parameter determination module 620 is configured to determine the second hardware version parameter corresponding to the first preset condition from the first hardware version parameter;

[0151] The second software version parameter determination module 630 is configured to determine the second software version parameter corresponding to the second preset condition from the first software version parameter;

[0152] The curing module 640 is configured to cure the second hardware version parameter and the second software version parameter into an electronic control unit of the vehicle.

[0153] Optionally, the first preset condition includes a preset hardware version number, and the second preset condition includes a preset software version number;

[0154] The second hardware version parameter determination module 620 includes:

[0155] A first screening submodule is configured to determine a second hardware version parameter corresponding to the preset hardware version number from the first hardware version parameter;

[0156] The second software version parameter determination module 630 includes:

[0157] The second screening submodule is configured to determine a second software version parameter corresponding to the preset software version number from the first software version parameter.

[0158] Optionally, the first preset condition further includes a preset hardware version format, and the version processing device 600 includes:

[0159] A third screening module is configured to determine a target hardware version parameter corresponding to the preset software version format from the first hardware version parameter;

[0160] a fourth screening module, configured to determine, from the target hardware version parameters, a second hardware version parameter corresponding to the preset hardware version number;

[0161] The second preset condition also includes a preset hardware version format; the version processing device 600 includes:

[0162] a fifth screening module, configured to determine, from the first software version parameters, a target software version parameter corresponding to the preset software version format;

[0163] The sixth screening module is configured to determine, from the target software version parameters, a second software version parameter corresponding to the preset software version number.

[0164] Optionally, the acquisition module 610 includes:

[0165] The first acquisition submodule is configured to acquire the first hardware version parameter and the first software version parameter from the electronic control unit if the first hardware version parameter and the first software version parameter exist in the electronic control unit.

[0166] Optionally, the version processing device 600 includes:

[0167] a current voltage determination module, configured to obtain a current voltage between two adjacent resistors in a resistance ladder circuit of the vehicle when the first hardware version parameter does not exist in the electronic control unit;

[0168] a target voltage range determination module, configured to determine, from a plurality of voltage ranges, a target voltage range in which the current voltage is located;

[0169] The writing module is configured to write a first hardware version parameter corresponding to the target voltage range into the electronic control unit according to a correspondence between the hardware version parameter and the voltage range.

[0170] Optionally, the version processing device 600 includes:

[0171] The error flag output module is configured to output an error flag when at least one of the following conditions exists:

[0172] The first hardware version parameter does not exist in the electronic control unit;

[0173] There is no second hardware version parameter corresponding to the preset hardware version format in the first hardware version parameter;

[0174] The first software version parameters do not contain a second software version parameter corresponding to the preset software version format.

[0175] Optionally, the version processing device 600 includes:

[0176] The control module is configured to suspend the application layer task in the operating system and / or control the diagnosis processing task in the operating system to output fault information when determining that the error flag exists.

[0177] Optionally, the version processing device 600 includes:

[0178] The receiving module is configured to receive a CAN message through a diagnostic processing task in the operating system, wherein the CAN message includes a modified hardware version parameter and / or software version parameter.

[0179] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0180] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0181] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0182] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A version processing method, characterized in that: include: Obtaining a first hardware version parameter and a first software version parameter related to the domain controller; Determining, from the first hardware version parameters, a second hardware version parameter corresponding to the first preset condition; Determining, from the first software version parameters, a second software version parameter corresponding to a second preset condition; The second hardware version parameter and the second software version parameter are fixed into the electronic control unit of the vehicle.

2. The method according to claim 1, characterized in that The first preset condition includes a preset hardware version number, and the second preset condition includes a preset software version number; The determining, from the first hardware version parameter, a second hardware version parameter corresponding to the first preset condition comprises: determining, from the first hardware version parameter, a second hardware version parameter corresponding to the preset hardware version number; Determining the second software version parameter corresponding to the second preset condition from the first software version parameter includes: determining the second software version parameter corresponding to the preset software version number from the first software version parameter.

3. The method according to claim 2, characterized in that The first preset condition also includes a preset hardware version format, and the method further includes: Determine a target hardware version parameter corresponding to the preset hardware version format from the first hardware version parameter; determine a second hardware version parameter corresponding to the preset hardware version number from the target hardware version parameter; and / or, The second preset condition also includes a preset software version format, and the method further includes: From the first software version parameter, a target software version parameter corresponding to the preset software version format is determined; from the target software version parameter, a second software version parameter corresponding to the preset software version number is determined.

4. The method according to claim 1, characterized in that The obtaining of a first hardware version parameter and a first software version parameter related to the domain controller includes: In a case where the first hardware version parameter and the first software version parameter exist in the electronic control unit, the first hardware version parameter and the first software version parameter are acquired from the electronic control unit.

5. The method according to claim 1, characterized in that Before obtaining the first hardware version parameter related to the domain controller, the method further includes: In the case where the first hardware version parameter does not exist in the electronic control unit, obtaining a current voltage between two adjacent resistors in a resistance ladder circuit of the vehicle; Determining a target voltage range in which the current voltage is located from a plurality of voltage ranges; According to the correspondence between the hardware version parameter and the voltage range, a first hardware version parameter corresponding to the target voltage range is written into the electronic control unit.

6. The method according to claim 1, characterized in that The method further comprises: The error flag is output if at least one of the following conditions exists: The first hardware version parameter does not exist in the electronic control unit; There is no second hardware version parameter corresponding to the preset hardware version format in the first hardware version parameter; The first software version parameters do not contain a second software version parameter corresponding to the preset software version format.

7. The method according to claim 6, characterized in that The method further comprises: When it is determined that the error flag exists, an application layer task in the operating system is suspended and / or a diagnosis processing task in the operating system is controlled to output fault information.

8. The method according to claim 1, characterized in that The method further comprises: A CAN message is received through a diagnostic processing task in the operating system, wherein the CAN message includes a modified hardware version parameter and / or software version parameter.

9. A version processing device, characterized in that: include: An acquisition module, configured to acquire a first hardware version parameter and a first software version parameter related to the domain controller; A second hardware version parameter determination module is configured to determine a second hardware version parameter corresponding to the first preset condition from the first hardware version parameter; A second software version parameter determination module is configured to determine a second software version parameter corresponding to a second preset condition from the first software version parameter; The curing module is configured to cure the second hardware version parameter and the second software version parameter into an electronic control unit of the vehicle.

10. A vehicle, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 8.