Parameter calibration method, vehicle, computer equipment and computer program product
By detecting and using a second configuration file with a higher level than the initial configuration file in the vehicle terminal's body domain controller to configure the target service module, the problem of configuration difficulty and low efficiency in the vehicle function parameter calibration process is solved, and simplification is achieved Debugging steps and the effect of improving debugging efficiency.
Patent Information
- Application Number
- CN202411416037.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-21
AI Technical Summary
Against the background of the increasing degree of automotive intelligence, vehicle terminals have difficulties in calibration of functional parameters, are difficult to configure in the subsequent future, and cannot be changed in time.
By reading the first configuration file of the target service module from the body domain controller and detecting whether there is a second configuration file with a higher level than the first configuration file based on the registration information of the target service module, if it exists, the second configuration file is The file is sent to the target service module for configuration.
Avoid repeatedly writing the configuration file in the body controller during the debugging process of the service module, simplified the debugging steps, and improved the debugging efficiency.
Smart Images

Figure CN119336380A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a parameter calibration method, a vehicle, a computer device, and a computer program product. Background Art
[0002] As the level of automobile intelligence increases, functions become increasingly complex. In order to reduce dependence on underlying components, vehicle terminals generally adopt a service-oriented architecture (SOA), which extracts complex function processing logic (such as air conditioning control, interior ambient light control, etc.) from underlying components and converts it into a functional service to provide to the upper layer. Although this decoupling method simplifies the development process of new functions, there are still problems such as difficulty in calibrating function parameters during the development process, difficulty in subsequent configuration, and inability to change in a timely manner.
[0003] For example, if a function requires a json file for configuration, the json file needs to be written to the vehicle's body gateway module (BGM) in advance, and then read from the BGM during debugging to configure the function, and then display the configuration effect of the function. If the configuration effect does not meet expectations, the developer needs to rewrite the rewritten json file to the BGM by flashing the version, and then complete the debugging after multiple tests. This process takes a lot of time for developers and has low debugging efficiency. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a parameter calibration method, a vehicle, a computer device, and a computer program product.
[0005] In a first aspect, an embodiment of the present disclosure provides a parameter calibration method, which is applied to a management component, including:
[0006] Reading a first configuration file of a target service module from a vehicle body domain controller;
[0007] In the case of obtaining the registration information of the target service module, detecting whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component based on the configuration file identifier included in the registration information; wherein the registration information is used to indicate configuration of the target service module;
[0008] If so, read the second configuration file, and send the second configuration file to the target service module, so as to configure the target service module based on the second configuration file; wherein the second configuration file is a manual debugging file.
[0009] In a possible implementation manner, after configuring the target service module based on the second configuration file, the method further includes:
[0010] When it is detected that there is an updated second configuration file under the target thread, the updated second configuration file is sent to the target service module to reconfigure the target service module based on the updated second configuration file; wherein the updated second configuration file is sent to the target thread when the configuration result of the target service module does not meet a preset condition after the target service module is configured based on the second configuration file before the update.
[0011] In a possible implementation manner, the method further includes:
[0012] receiving a third configuration file sent by the cloud; wherein the file level of the third configuration file is higher than that of the first configuration file and lower than that of the second configuration file;
[0013] In a case where the second configuration file does not exist under the target thread, the third configuration file is sent to the target service module to configure the target service module based on the third configuration file.
[0014] In a possible implementation manner, the method further includes:
[0015] When it is detected that the second configuration file does not exist under the target thread corresponding to the management component and the third configuration file sent by the cloud is not received, the first configuration file is sent to the target service module to configure the target service module based on the first configuration file.
[0016] In a possible implementation, the detecting, based on the configuration file identifier included in the registration information, whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component includes:
[0017] Based on the configuration file identifier included in the registration information, detecting whether a second configuration file exists under the target thread according to a preset period;
[0018] After reading the second configuration file, the method further includes:
[0019] The second configuration file is cleared from the target thread.
[0020] In a possible implementation manner, the method further includes:
[0021] If the target configuration file sent to the target service module is the second configuration file or the third configuration file, after the target service module is configured based on the target configuration file, in response to a write instruction, the first configuration file in the body domain controller is replaced based on the target configuration file.
[0022] In a possible implementation manner, after the target service module is configured, the method further includes:
[0023] The target service module is deregistered.
[0024] In a second aspect, an embodiment of the present disclosure further provides a vehicle, which can be used to execute the steps in the above-mentioned first aspect or any possible implementation of the first aspect.
[0025] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the machine-readable instructions are executed by the processor to perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.
[0026] In a fourth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed, implements the method described in the above-mentioned first aspect, or any possible implementation manner of the first aspect.
[0027] In the parameter calibration method, vehicle, computer device and computer program product provided by the embodiments of the present disclosure, after reading the first configuration file in the vehicle body domain controller, it is possible to detect whether there is a second configuration file under the target thread corresponding to the management component when the registration information of the target service module is obtained. If so, the second configuration file is sent to the target service module, and the target service module is configured based on the second configuration file. In this way, if the configuration result of the target service module does not meet the preset conditions, the updated second configuration file can be resent to the target thread, avoiding the process of repeatedly writing the configuration file to the vehicle body domain controller during the debugging of the service module, simplifying the debugging steps and improving the debugging efficiency.
[0028] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0030] Figure 1 A flow chart of a parameter calibration method provided by an embodiment of the present disclosure is shown;
[0031] Figure 2 An example diagram of a parameter calibration method provided by an embodiment of the present disclosure is shown;
[0032] Figure 3 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure.
[0034] Research has found that as the level of automobile intelligence gradually increases, functions are becoming more complex. In order to reduce dependence on underlying components, vehicle terminals generally adopt a service-oriented architecture (SOA), which extracts complex function processing logic (such as air conditioning control, interior ambient light control, etc.) from the underlying components and converts it into a functional service to provide to the upper layer. Although this decoupling method simplifies the development process of new functions, there are still problems such as difficulty in calibrating function parameters during the development process, difficulty in subsequent configuration, and inability to change in a timely manner.
[0035] For example, if a function requires a json file for configuration, the json file needs to be written to the vehicle's body gateway module (BGM) in advance, and then read from the BGM during debugging to configure the function, and then display the configuration effect of the function. If the configuration effect does not meet expectations, the developer needs to rewrite the rewritten json file to the BGM by flashing the version, and then complete the debugging after multiple tests. This process takes a lot of time for developers and has low debugging efficiency.
[0036] Based on the above research, the present disclosure provides a parameter calibration method, a vehicle, a computer device, and a computer program product. After reading the first configuration file in the vehicle body domain controller, it is possible to detect whether there is a second configuration file under the target thread corresponding to the management component when the registration information of the target service module is obtained. If so, the second configuration file is sent to the target service module, and the target service module is configured based on the second configuration file. In this way, if the configuration result of the target service module does not meet the preset conditions, the updated second configuration file can be resent to the target thread, avoiding the process of repeatedly writing the configuration file to the vehicle body domain controller during the debugging of the service module, simplifying the debugging steps, and improving the debugging efficiency.
[0037] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0038] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0039] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the personal information involved in the present disclosure (including but not limited to attribute information, facial images, etc.) is obtained with the authorization of the user. Specifically, it can be through a pop-up window in the page, information push, etc., sending a prompt message requesting authorization to the user, and obtaining the above personal information after the user agrees to the authorization.
[0040] To facilitate understanding of this embodiment, a parameter calibration method disclosed in the embodiment of the present disclosure is first described in detail. Figure 1As shown, it is a flow chart of a parameter calibration method provided by an embodiment of the present disclosure, the method is applied to a management component, the management component is applied to the process of debugging and configuring control parameters, optionally, the management component can be embedded in an S2S module, the S2S module can refer to a middleware service module based on information and logic under SOA in SOA, mainly carrying the logic upward movement function. Here, S2S can refer to signal to service, service to signal, etc.
[0041] The parameter calibration method includes steps 101 to 103, wherein:
[0042] Step 101: read a first configuration file of a target service module from a vehicle body domain controller.
[0043] Here, the body gateway module (BGM) can also be called the body gateway module.
[0044] Step 102: When the registration information of the target service module is obtained, based on the configuration file identifier included in the registration information, detect whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component; wherein the registration information is used to indicate the configuration of the target service module.
[0045] Step 103: If yes, read the second configuration file, and send the second configuration file to the target service module to configure the target service module based on the second configuration file; wherein the second configuration file is a manual debugging file.
[0046] The following is a detailed description of the above steps.
[0047] In a possible implementation, before executing the above method, the management component may be initialized. Specifically, after the S2S module process is started, the management component may start initialization, and during the initialization process, a singleton management component may be constructed, and the constructed management component has the same life cycle as the S2S module.
[0048] After the management component is initialized, the management component can read the first configuration file of the target service module in the body domain controller BGM.
[0049] The service module may refer to a functional module on the vehicle for controlling different underlying components, such as an air conditioning module, a lighting module, a seat module, etc. In a specific implementation, the BGM may write configuration files of multiple service modules, and the configuration files are files containing configuration parameters of the service modules. For example, if the service module is a lighting module, the configuration file of the lighting module may contain configuration parameters such as lighting color, lighting duration, lighting frequency, etc.
[0050] Here, it should be noted that after the S2S module process is started, the configuration file in the BGM only supports reading, not writing.
[0051] The target service module may refer to any service module among multiple service modules of the vehicle, or may refer to a service module to be configured among multiple service modules of the vehicle. Optionally, the management component may read all configuration files in the BGM, and then select any service module as the target service module to execute the above method.
[0052] The registration information of the target service module can be used to indicate the configuration of the target service module. In a specific implementation, the registration code of the target service module can be added to the logic code of the management component in advance. The registration code can include the registration information of the target service module. The registration of the target service module to the management component can be achieved by running the registration code.
[0053] In actual applications, not all service modules are registered with the management component. Therefore, after reading the first configuration file of the target service module from the BGM, it is also necessary to determine whether the target service module is registered with the management component. If the target service module is registered with the management component, the registration information of the target service module can be obtained.
[0054] In a possible implementation, the registration information may include a configuration file identifier corresponding to the target service module, and the configuration file identifier may be a file name of a configuration file used to configure the target service module.
[0055] Optionally, the configuration file under the target thread is a second configuration file, and the file level of the second configuration file is higher than the first configuration file. When detecting whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component based on the configuration file identifier included in the registration information, it can be detected whether there is a configuration file corresponding to the configuration file identifier under the folder corresponding to the target thread.
[0056] In one implementation, when detecting whether the second configuration file exists under the target thread corresponding to the management component, it may be possible to detect whether the second configuration file exists under the target thread according to a preset period based on the configuration file identifier.
[0057] Here, the length of the preset cycle setting can be related to the response speed. In a specific application, if the debugger does not enter the second configuration file, the management component can first send the first configuration file to the target service module after initialization is completed, and configure the target service module based on the first configuration file. After the debugger enters the second configuration file, if the management component detects the second configuration file under the target thread, the second configuration file can be sent to the target service module to reconfigure the target service module based on the second configuration file. If the preset cycle setting time is long, it may take a long time for the debugger to enter the second configuration file before the second configuration file can be detected by the management component, so it takes a long time to update the target service module; and if the preset cycle setting time is short, the debugger may be detected by the management component quickly after entering the second configuration file. Exemplarily, the length of the preset cycle can be set to 5 seconds.
[0058] In actual applications, the management component does not compare the levels of configuration files when detecting the target thread. After reading the first configuration file from the BGM, the first configuration file can be cached first, and the file level of the first configuration file can be set to the third level; after detecting the second configuration file under the target thread, the second configuration file can also be cached, and the file level of the second configuration file can be set to the first level; when selecting which configuration file should be sent to the target service module, based on the file levels of each configuration file, the file with the highest file level is selected and sent to the target service module. Correspondingly, if the second configuration file exists under the target thread, the second configuration file is the configuration file with the highest file level, and the second configuration file needs to be sent to the target service module.
[0059] Optionally, the registration information may further include a callback execution function, and the callback execution function may process the configuration file by the user and apply the configuration information in the configuration file to the target service module.
[0060] In a possible implementation, after reading the second configuration file, the second configuration file may also be cleared from the target thread. Here, clearing the second configuration file from the target thread may be understood as deleting the second configuration file from a folder corresponding to the target thread.
[0061] Since the detection of the target thread is periodic, if an updated second configuration file is detected under the target thread later, the updated second configuration file can be sent to the target service module to reconfigure the target service module based on the updated second configuration file.
[0062] The updated second configuration file may be sent to the target thread after the target service module is configured based on the second configuration file before the update if the configuration result of the target service module does not meet the preset condition.
[0063] Here, the updated second configuration file refers to the second configuration file that the user re-sends to the target thread after the original second configuration file is cleared from the target thread. Exemplarily, if the user first sends the second configuration file 1 to the target thread, then the management component can send the second configuration file 1 to the target service module after detecting the second configuration file 1, and configure the target service module based on the second configuration file 1, and clear the second configuration file 1 from the target thread; if the configuration result does not meet the preset conditions after configuring the target service module based on the second configuration file 1, the user can send the second configuration file 2 to the target thread, and then the management component can send the second configuration file 2 to the target service module after detecting the second configuration file 2, and re-configure the target service module based on the second configuration file 2.
[0064] In this way, during the debugging process, the user does not need to write the second configuration file to the BGM, and can view the configuration effect of the second configuration file on the target service module, thereby improving configuration efficiency.
[0065] The configuration result of the target service module can be understood as the display effect of the target service module after configuration; optionally, the configuration result of the target service module not meeting the preset conditions can be determined manually, or the target display effect of the target service module can be set in advance. If the display effect of the target service module after configuration is different from the target display effect, it can be determined that the configuration result of the target service module does not meet the preset conditions.
[0066] In a possible implementation, the configuration file of the target service module may also be configured through the cloud. Specifically, a third configuration file sent by the cloud may be received, wherein the file level of the third configuration file is higher than the first configuration file and lower than the second configuration file, and when the second configuration file does not exist under the target thread, the third configuration file may be sent to the target service module to configure the target service module based on the third configuration file.
[0067] Specifically, the cloud configuration module interface can be monitored. If a third configuration file is received based on the cloud configuration interface module, it can be determined whether the currently cached configuration file contains the second configuration file in addition to the first configuration file. If the second configuration file is contained, only the third configuration file can be cached, and the target service module is not configured based on the third configuration file.
[0068] In another possible implementation, if the cache duration reaches a preset duration after the third configuration file is cached, and no other second configuration files are scanned in the target thread within the preset duration, the third configuration file can be sent to the target service module, and the target service module can be configured based on the third configuration file.
[0069] Here, the third configuration file can be understood as a file configured in the cloud, which is generally sent by remote debugging personnel. The second configuration file can be understood as a configuration file directly input by the user into the vehicle, which is generally a local debugging personnel who needs to view the configuration effect in real time. Therefore, the file level of the second configuration file is generally higher than that of the third configuration file. In actual applications, the file levels of the second configuration file and the third configuration file can be set according to actual conditions, and this disclosure does not limit it.
[0070] In another possible implementation, when it is detected that the second configuration file does not exist under the target thread corresponding to the management component and the third configuration file sent by the cloud is not received, the first configuration file can be sent to the target service module to configure the target service module based on the first configuration file.
[0071] Here, since the first configuration file is a configuration file written into the BGM, the configuration file can only be read from the BGM during the operation of the target service module, but cannot be written. Therefore, displaying the first configuration file can display the configuration effect currently written into the target service module.
[0072] Optionally, if the target configuration file sent to the target service module is the second configuration file or the third configuration file, after the target service module is configured based on the target configuration file, in response to a write instruction, the first configuration file in the BGM is replaced based on the target configuration file.
[0073] In this way, after replacing the first configuration file in BGM based on the target configuration file, it is equivalent to writing the target configuration file into BGM and deleting the first configuration file from BGM. After the target service module is debugged, the target service module can be configured based on the target configuration file each time it is run.
[0074] When the target service module is debugging parameters (i.e., debugging configuration files), the management component needs to continuously scan the target thread to determine whether the target service module has a new configuration file. If the target service module is configured, there are still other service modules that have not been configured. Therefore, the management component still needs to continuously scan the target thread. However, when scanning the target thread, it is not necessary to determine whether there is a second configuration file corresponding to the target service module. Therefore, in a possible implementation, after the target service module is configured, the target service module can also be deregistered.
[0075] Here, deregistering the target service module may include deleting the registration information stored by the management component.
[0076] The following takes the target service module as the lighting service module and the configuration effect as the light show effect as an example to illustrate the above parameter calibration method. Figure 2 FIG. 1 is an example diagram of a parameter calibration method provided by an embodiment of the present disclosure, and the specific execution process includes:
[0077] First, the S2S module process is started. After the S2S module process is started, the initialization of the management component can begin. The initialization process of the management component can include building the management component, reading the first configuration file of each service module, and starting the periodic detection target thread; then the light service module can register the light show json file (i.e., the configuration file identifier) to the management component.
[0078] Here, the management component can obtain three types of configuration files. One is the first configuration file read during initialization (referred to as initial data). In addition, the cloud can send down the third configuration file (referred to as cloud data), and the debugger can directly input the second configuration file (referred to as debugging data) locally.
[0079] Then the management component can select the configuration file with the highest file level according to the currently obtained configuration file and send it to the lighting service, and then determine whether the light show effect meets expectations. If it meets expectations, the calibration is completed. If it does not meet expectations, the debugger can reconfigure the json file locally, and the management component can read the reconfigured json file and set the file level of the reconfigured json file to debug (that is, set it to debug data). Then the management component can execute this step repeatedly until the light show modification meets expectations.
[0080] Regarding the specific implementation of the above steps, please refer to the description of the above embodiments and will not be repeated here.
[0081] The parameter calibration method provided by the embodiment of the present disclosure can detect whether there is a second configuration file under the target thread corresponding to the management component after reading the first configuration file in the vehicle body domain controller, if the registration information of the target service module is obtained, and if so, send the second configuration file to the target service module, and configure the target service module based on the second configuration file. In this way, if the configuration result of the target service module does not meet the preset conditions, the updated second configuration file can be resent to the target thread, avoiding the process of repeatedly writing the configuration file to the vehicle body domain controller during the debugging of the service module, simplifying the debugging steps, and improving the debugging efficiency.
[0082] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0083] Based on the same inventive concept, a parameter calibration device corresponding to the parameter calibration method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned parameter calibration method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0084] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 3 As shown, it is a schematic diagram of the structure of a computer device 300 provided in an embodiment of the present disclosure, including a processor 301, a memory 302, and a bus 303. Among them, the memory 302 is used to store execution instructions, including a memory 3021 and an external memory 3022; the memory 3021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 301, and the data exchanged with the external memory 3022 such as a hard disk. The processor 301 exchanges data with the external memory 3022 through the memory 3021. When the computer device 300 is running, the processor 301 communicates with the memory 302 through the bus 303, so that the processor 301 executes the following instructions:
[0085] Reading a first configuration file of a target service module from a vehicle body domain controller;
[0086] In the case of obtaining the registration information of the target service module, detecting whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component based on the configuration file identifier included in the registration information; wherein the registration information is used to indicate configuration of the target service module;
[0087] If so, read the second configuration file, and send the second configuration file to the target service module, so as to configure the target service module based on the second configuration file; wherein the second configuration file is a manual debugging file.
[0088] In a possible implementation manner, the instructions executed by the processor 301, after configuring the target service module based on the second configuration file, further include:
[0089] When it is detected that there is an updated second configuration file under the target thread, the updated second configuration file is sent to the target service module to reconfigure the target service module based on the updated second configuration file; wherein the updated second configuration file is sent to the target thread when the configuration result of the target service module does not meet a preset condition after the target service module is configured based on the second configuration file before the update.
[0090] In a possible implementation manner, the instructions executed by the processor 301 further include:
[0091] receiving a third configuration file sent by the cloud; wherein the file level of the third configuration file is higher than that of the first configuration file and lower than that of the second configuration file;
[0092] In a case where the second configuration file does not exist under the target thread, the third configuration file is sent to the target service module to configure the target service module based on the third configuration file.
[0093] In a possible implementation manner, the instructions executed by the processor 301 further include:
[0094] When it is detected that the second configuration file does not exist under the target thread corresponding to the management component and the third configuration file sent by the cloud is not received, the first configuration file is sent to the target service module to configure the target service module based on the first configuration file.
[0095] In a possible implementation manner, in the instructions executed by the processor 301, the detecting, based on the configuration file identifier included in the registration information, whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component includes:
[0096] Based on the configuration file identifier included in the registration information, detecting whether a second configuration file exists under the target thread according to a preset period;
[0097] After reading the second configuration file, the method further includes:
[0098] The second configuration file is cleared from the target thread.
[0099] In a possible implementation manner, in the instruction executed by the processor 301, the method further includes:
[0100] If the target configuration file sent to the target service module is the second configuration file or the third configuration file, after the target service module is configured based on the target configuration file, in response to a write instruction, the first configuration file in the body domain controller is replaced based on the target configuration file.
[0101] In a possible implementation manner, the instructions executed by the processor 301, after completing the configuration of the target service module, further include:
[0102] The target service module is deregistered.
[0103] The embodiments of the present disclosure also provide a vehicle, which can be used to execute the steps of the parameter calibration method described in the above embodiments.
[0104] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the parameter calibration method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0105] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the parameter calibration method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0106] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0107] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only 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 communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0108] The units described 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] In addition, each functional unit in each embodiment of the present disclosure 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.
[0110] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several 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 method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0111] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A parameter calibration method, characterized in that: Applicable to management components, including: Reading a first configuration file of a target service module from a vehicle body domain controller; In the case of obtaining the registration information of the target service module, detecting whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component based on the configuration file identifier included in the registration information; wherein the registration information is used to indicate configuration of the target service module; If so, read the second configuration file, and send the second configuration file to the target service module, so as to configure the target service module based on the second configuration file; wherein the second configuration file is a manual debugging file.
2. The method according to claim 1, characterized in that After configuring the target service module based on the second configuration file, the method further includes: When it is detected that there is an updated second configuration file under the target thread, the updated second configuration file is sent to the target service module to reconfigure the target service module based on the updated second configuration file; wherein the updated second configuration file is sent to the target thread when the configuration result of the target service module does not meet a preset condition after the target service module is configured based on the second configuration file before the update.
3. The method according to claim 1, characterized in that The method further comprises: receiving a third configuration file sent by the cloud; wherein the file level of the third configuration file is higher than that of the first configuration file and lower than that of the second configuration file; In a case where the second configuration file does not exist under the target thread, the third configuration file is sent to the target service module to configure the target service module based on the third configuration file.
4. The method according to claim 3, characterized in that The method further comprises: When it is detected that the second configuration file does not exist under the target thread corresponding to the management component and the third configuration file sent by the cloud is not received, the first configuration file is sent to the target service module to configure the target service module based on the first configuration file.
5. The method according to any one of claims 1 to 4, characterized in that: The detecting, based on the configuration file identifier included in the registration information, whether there is a second configuration file with a higher file level than the first configuration file under the target thread corresponding to the management component comprises: Based on the configuration file identifier included in the registration information, detecting whether a second configuration file exists under the target thread according to a preset period; After reading the second configuration file, the method further includes: The second configuration file is cleared from the target thread.
6. The method according to claim 3, characterized in that The method further comprises: If the target configuration file sent to the target service module is the second configuration file or the third configuration file, after the target service module is configured based on the target configuration file, in response to a write instruction, the first configuration file in the body domain controller is replaced based on the target configuration file.
7. The method according to claim 6, characterized in that After the target service module is configured, the method further includes: The target service module is deregistered.
8. A vehicle, characterized in that: The vehicle is used to execute the parameter calibration method as described in any one of claims 1 to 7.
9. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the machine-readable instructions are executed by the processor to perform the steps of the parameter calibration method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed, the steps of the parameter calibration method according to any one of claims 1 to 7 are implemented.