Variable calibration method, device, equipment, medium and product
By matching the variable address in the A2L file with the file identifier in the database, the target data is determined and modified, which solves the update omission problem caused by duplicate variable addresses and realizes the simultaneous update of variables.
Patent Information
- Application Number
- CN202510674678.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-09-16
AI Technical Summary
In the A2L file, the variable update is omitted due to the duplication of variable addresses.
By obtaining the address of the variable to be calibrated, matching the file identifier in the database, determining the target file and modifying the target data, update omissions caused by repeated variable addresses can be avoided.
It enables simultaneous updating of multiple variables with duplicate variable addresses, thus avoiding the problem of missing variable updates.
Smart Images

Figure CN120653616A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic control unit calibration, and in particular to a variable calibration method, device, equipment, medium and product. Background Art
[0002] An A2L file is a description file of an automotive electronic control unit (ECU) data.
[0003] Currently, some variable addresses in A2L files overlap. When using A2L files to calibrate the electronic control unit data of a car engine, to calibrate a variable, it is necessary to manually update the values of other variables that have the same address as the variable, resulting in the problem of missing variable updates. Summary of the Invention
[0004] The present disclosure provides a variable calibration method, apparatus, device, medium and product, which solve the problem of variable update omission caused by repeated variable addresses.
[0005] According to one aspect of the present disclosure, a variable calibration method is provided, comprising:
[0006] Get the address of the variable to be calibrated;
[0007] Matching the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address;
[0008] Determine a target file corresponding to a file identifier corresponding to the address of the variable to be calibrated, determine target data corresponding to the address of the variable to be calibrated in the target file, and modify the target data.
[0009] According to another aspect of the present disclosure, a variable calibration device is provided, comprising:
[0010] Variable address acquisition module, used to obtain the address of the variable to be calibrated;
[0011] A file identifier matching module is used to match the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address;
[0012] The address corresponding data modification module is used to determine the target file corresponding to the file identifier corresponding to the address of the variable to be calibrated, determine the target data corresponding to the address of the variable to be calibrated in the target file, and modify the target data.
[0013] According to another aspect of the present disclosure, an electronic device is provided, comprising:
[0014] at least one processor;
[0015] and a memory communicatively coupled to the at least one processor;
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the variable calibration method described in any embodiment of the present disclosure.
[0017] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the variable calibration method described in any embodiment of the present disclosure when executed.
[0018] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the variable calibration method as described in any one of the embodiments of the present disclosure.
[0019] The technical solution of the embodiment of the present disclosure obtains the address of the variable to be calibrated, and then matches the address of the variable to be calibrated in a database to obtain the file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and the file identifier corresponding to each consecutive address, and then determines the target file corresponding to the file identifier corresponding to the address of the variable to be calibrated, determines the target data corresponding to the address of the variable to be calibrated in the target file, and modifies the target data. In the above technical solution, by modifying the target data corresponding to the address of the variable to be calibrated rather than the value of a certain variable, that is, the present disclosure can realize the simultaneous update of multiple variables with repeated variable addresses, and can avoid the problem of missing variable updates due to repeated variable addresses.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 is a flow chart of a variable calibration method provided according to an embodiment of the present disclosure;
[0023] Figure 2 is a flow chart of another variable calibration method provided according to an embodiment of the present disclosure;
[0024] Figure 3 is a flow chart of another variable calibration method provided according to an embodiment of the present disclosure;
[0025] Figure 4 is a structural diagram of a variable calibration device provided according to an embodiment of the present disclosure;
[0026] Figure 5 It is a structural diagram of an electronic device for implementing the variable calibration method of an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solutions of the present disclosure, 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 embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present disclosure.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of the present disclosure comply with the relevant provisions of national laws and regulations.
[0029] The following is a further detailed description of a variable calibration method, apparatus, device, medium, and product provided by the embodiments of the present disclosure.
[0030] Figure 1This is a flow chart of a variable calibration method provided by an embodiment of the present disclosure. This embodiment is applicable to the case of calibrating engine ECU data. The method can be executed by a variable calibration device. The variable calibration device can be implemented in the form of hardware and / or software. The variable calibration device can be configured in electronic devices such as terminals or servers. Figure 1 As shown, the method includes:
[0031] S110. Obtain the address of the variable to be calibrated.
[0032] Calibration variables refer to the process of modifying, adjusting, or optimizing parameters related to the controller's internal algorithms to meet engine or vehicle performance requirements. Uncalibrated variables refer to variables in the ECU that need to be optimized or adjusted. Specifically, uncalibrated variables can include adjusting parameters in the engine control algorithm, such as voltage, current, fuel injection rate, and ignition advance angle.
[0033] Specifically, the variable name of the variable to be calibrated can be obtained; the variable name of the variable to be calibrated is matched in the database to obtain the address of the variable to be calibrated; wherein the database also includes the variable names of multiple variables and the address corresponding to each variable. The variable name and address have an associated relationship.
[0034] For example, the variable name of the variable to be calibrated may be Voltage_1, and the address corresponding to Voltage_1 may be 0x8032CD30; the variable name of the variable to be calibrated may also be Voltage_2, and the address corresponding to Voltage_2 may be 0x8032CD32.
[0035] S120. Match the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database includes address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address.
[0036] Continuous addresses refer to consecutive, uninterrupted addresses, for example, 0x80400000 - 0x804FFAE0. Address range information refers to the interval between the start and end addresses, for example, the address range from 0x80400000 to 0x804FFAE0. File identifiers are used to distinguish between different files and are unique. For example, the file identifier for file 1 may be 00001, and the file identifier for file 2 may be 00002. Files are used to store variable values.
[0037] For example, the address of the first data area is: 0x80400000-0x804FFAE0; the address of the second data area is: 0x804FFAE0-0x80500000; the address of the third data area is: 0x80510000-0x80510520. It can be seen that the address of the first data area and the address of the second data area are continuous and uninterrupted, that is, the addresses of the first data area and the second data area can be a continuous address, and the address range information of the continuous address can be 0x80400000-0x80500000. The address of the third data area is not continuous with the addresses of the first data area and the second data area. The address of the third data area can be a continuous address alone, and the address range information of the continuous address can be 0x80510000-0x80510520.
[0038] Specifically, the address of the variable to be calibrated can be matched with the address range information of multiple continuous addresses in the database; for any continuous address, if the address of the variable to be calibrated coincides with the address range information of the continuous address, the file identifier corresponding to the continuous address will be used as the file identifier corresponding to the address of the variable to be calibrated.
[0039] For example, the address of the variable to be calibrated may be 0x8042CD30-0x8042CD40. 0x8042CD30-0x8042CD40 is matched with the address range information of multiple consecutive addresses in the database. If 0x8042CD30-0x8042CD40 overlaps with 0x80400000-0x80500000, the file identifier 0001 corresponding to 0x80400000-0x80500000 is used as the file identifier corresponding to the address of the variable to be calibrated.
[0040] S130 , determining a target file corresponding to a file identifier corresponding to the address of the variable to be calibrated, determining target data corresponding to the address of the variable to be calibrated in the target file, and modifying the target data.
[0041] The target file is the file corresponding to the file identifier. In other words, the file identifier can be used to quickly locate the file storing the variable to be calibrated. The target data refers to the data corresponding to the address of the variable to be calibrated in the target file, that is, the variable value of the variable to be calibrated.
[0042] For example, after the target file is found through the address of the variable to be calibrated, the data at the corresponding address in the target file can be modified through memory mapping.
[0043] It should be noted that modifying data through memory mapping is equivalent to establishing the space where the file on the disk is located as a piece of virtual memory. When the program accesses it, it can be performed in the memory manner, eliminating some links of the ordinary I / O method.
[0044] The technical solution of the embodiment of the present disclosure obtains the address of the variable to be calibrated, and then matches the address of the variable to be calibrated in a database to obtain the file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and the file identifier corresponding to each consecutive address, and then determines the target file corresponding to the file identifier corresponding to the address of the variable to be calibrated, determines the target data corresponding to the address of the variable to be calibrated in the target file, and modifies the target data. In the above technical solution, by modifying the target data corresponding to the address of the variable to be calibrated rather than the value of a certain variable, that is, the present disclosure can realize the simultaneous update of multiple variables with repeated variable addresses, and can avoid the problem of missing variable updates due to repeated variable addresses.
[0045] Figure 2 This is a flow chart of another variable calibration method provided by an embodiment of the present disclosure. The method of this embodiment can be combined with the various optional solutions of the variable calibration method provided in the above embodiments. Based on the above embodiments, this embodiment adds the step of address splitting.
[0046] like Figure 2 As shown, the method includes:
[0047] S210: Obtain a description file of vehicle electronic control unit data.
[0048] The description file of the automotive electronic control unit data refers to the A2L file.
[0049] Exemplarily, the A2L file may be imported from a preset storage path of the electronic device.
[0050] S220: Parse the description file of the automotive electronic control unit data to obtain addresses of multiple data.
[0051] The address of the data refers to the address of the data area. For example, the address of the first data area may be: 0x80400000-0x804FFAE0.
[0052] Exemplarily, the A2L file may be parsed to obtain the address of the first data area, the address of the second data area, the address of the third data area, and the like.
[0053] S230: Determine whether the addresses of the plurality of data are continuous.
[0054] Specifically, whether the addresses of the plurality of data are continuous can be determined by checking whether there is a discontinuity in the addresses between the data areas. If there is a discontinuity in the addresses between the data areas, it is determined that the addresses of the plurality of data are discontinuous; if there is no discontinuity in the addresses between the data areas, it is determined that the addresses of the plurality of data are continuous.
[0055] S240. When the addresses of the multiple data are discontinuous, split the addresses of the multiple data into multiple continuous addresses, create a corresponding file for each continuous address, determine the address range information and file identifier of each continuous address, and store the address range information of each continuous address and the file identifier corresponding to each continuous address in a database; parse the data file based on the multiple continuous addresses to obtain data corresponding to each continuous address; and for each continuous address, store the data corresponding to the continuous address in the file corresponding to the continuous address.
[0056] The data file may be a Hex file or a file in other formats that stores variable values.
[0057] It should be noted that the present disclosure splits the addresses of multiple data and creates files based on the split addresses. The data is stored by address and file, which provides a calibration matching basis for subsequent variable calibration, thereby avoiding the problem of missing variable updates due to repeated variable addresses.
[0058] For example, the address of the first data area is: 0x80400000-0x804FFAE0; the address of the second data area is: 0x804FFAE0-0x80500000; and the address of the third data area is: 0x80510000-0x80510520. It can be seen that the address of the first data area and the address of the second data area are continuous and uninterrupted, that is, the addresses of the first data area and the second data area can be divided into first continuous addresses, the address range information of the first continuous addresses can be 0x80400000-0x80500000, and the file identifier of the created file can be set to 00001. The address of the third data area is discontinuous with the addresses of the first data area and the second data area, and the address of the third data area can be separately divided into second continuous addresses, the address range information of the second continuous addresses can be 0x80510000-0x80510520, and the file identifier of the created file can be set to 00002. Furthermore, the address range information of the first continuous address: 0x80400000-0x80500000, file identification: 00001; the address range information of the second continuous address: 0x80510000-0x80510520, file identification: 00002 are stored in the database; the Hex data file is parsed according to the first continuous address and the second continuous address to obtain the data corresponding to the first continuous address and the data corresponding to the second continuous address; the data corresponding to the first continuous address is stored in the file with file identification 00001, and the data corresponding to the second continuous address is stored in the file with file identification 00002.
[0059] Based on the above embodiments, optionally, after determining whether the addresses of the multiple data are continuous, the method further includes: if the addresses of the multiple data are continuous, creating a file and storing the file identifier of the file in a database; parsing the data file to obtain the data corresponding to the data file; and storing the data corresponding to the data file in the file.
[0060] For example, the address of the first data area is: 0x80400000-0x804FFAE0; the address of the second data area is: 0x804FFAE0-0x80500000. Therefore, it can be seen that the address of the first data area and the address of the second data area are continuous and uninterrupted, that is, the addresses of the first data area and the second data area can be divided into a continuous address. The address range information of the continuous address can be 0x80400000-0x80500000, and the file identifier of a created file can be set to 00003. Further, the address range information of the continuous address: 0x80400000-0x80500000, file identifier: 00003; is stored in a database; the Hex data file is parsed to obtain the data in the Hex data file; and the data in the Hex data file is stored in a file with a file identifier of 00003.
[0061] S250: Obtain the address of the variable to be calibrated.
[0062] S260: Match the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database includes address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address.
[0063] S270 , determining a target file corresponding to a file identifier corresponding to the address of the variable to be calibrated, determining target data corresponding to the address of the variable to be calibrated in the target file, and modifying the target data.
[0064] The technical solution of the embodiment of the present disclosure splits the addresses of multiple data and creates files based on the split addresses. The data is stored by address and file, which provides a calibration matching basis for subsequent variable calibration, thereby avoiding the problem of missing variable updates due to repeated variable addresses.
[0065] Figure 3 This is a flow chart of another variable calibration method provided by the embodiment of the present disclosure. The method of this embodiment is a preferred example of the above embodiment. Figure 3 As shown, the method includes:
[0066] 1) Import the A2L file and data file, perform A2L parsing, parse the addresses of multiple data, and determine whether the addresses of multiple data are continuous.
[0067] 2) If the addresses of multiple data are continuous, create a file 1 with a unique ID and store the file ID in the database. Then, parse the data file and store the parsed data in the newly created file 1.
[0068] 3) If the addresses of the multiple data are discontinuous, the addresses of the multiple data are split according to the continuous addresses. A corresponding file is created for each block of continuous addresses. The created files may include File 2, File 3, and File 4. The file ID, file start address, and address length are stored in the database. Furthermore, the data files are parsed according to the addresses, and the parsed data is stored in File 2, File 3, and File 4 according to the addresses.
[0069] 4) Perform variable calibration, obtain the address of the variable to be calibrated, and match the corresponding file in the database according to the address of the variable to be calibrated.
[0070] 5) Use memory mapping to modify the data at the corresponding address in the file.
[0071] The technical solution of the embodiment of the present disclosure modifies the data corresponding to the address of the variable to be calibrated rather than the value of a certain variable. That is, the present disclosure can realize the simultaneous update of multiple variables with repeated variable addresses, and can avoid the problem of missing variable updates due to repeated variable addresses.
[0072] Figure 4 This is a schematic diagram of the structure of a variable calibration device provided by an embodiment of the present disclosure. Figure 4 As shown, the device includes:
[0073] The variable address acquisition module 410 is used to obtain the address of the variable to be calibrated;
[0074] A file identifier matching module 420 is configured to match the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database includes address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address;
[0075] The address corresponding data modification module 430 is used to determine the target file corresponding to the file identifier corresponding to the address of the variable to be calibrated, determine the target data corresponding to the address of the variable to be calibrated in the target file, and modify the target data.
[0076] The technical solution of the embodiment of the present disclosure obtains the address of the variable to be calibrated, and then matches the address of the variable to be calibrated in a database to obtain the file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and the file identifier corresponding to each consecutive address, and then determines the target file corresponding to the file identifier corresponding to the address of the variable to be calibrated, determines the target data corresponding to the address of the variable to be calibrated in the target file, and modifies the target data. In the above technical solution, by modifying the target data corresponding to the address of the variable to be calibrated rather than the value of a certain variable, that is, the present disclosure can realize the simultaneous update of multiple variables with repeated variable addresses, and can avoid the problem of missing variable updates due to repeated variable addresses.
[0077] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the variable address acquisition module 410 may be specifically configured to:
[0078] Get the variable name of the variable to be calibrated;
[0079] Match the variable name of the variable to be calibrated in the database to obtain the address of the variable to be calibrated;
[0080] The database also includes the variable names of multiple variables and the address corresponding to each variable
[0081] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the file identification matching module 420 may be specifically configured to:
[0082] Performing address matching on the address of the variable to be calibrated and the address range information of multiple consecutive addresses in the database;
[0083] For any continuous address, if the address of the variable to be calibrated coincides with the address range information of the continuous address, the file identifier corresponding to the continuous address is used as the file identifier corresponding to the address of the variable to be calibrated.
[0084] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the variable calibration device includes:
[0085] An electronic control unit description file acquisition module is used to obtain the description file of the automobile electronic control unit data;
[0086] A data address acquisition module, configured to parse a description file of the automotive electronic control unit data to obtain addresses of multiple data;
[0087] An address continuity judgment module, used for judging whether the addresses of the plurality of data are continuous;
[0088] An address splitting module is used to split the addresses of the multiple data into multiple continuous addresses when the addresses of the multiple data are discontinuous, create a corresponding file for each continuous address, determine the address range information and file identifier of each continuous address, and store the address range information of each continuous address and the file identifier corresponding to each continuous address in a database; parse the data file based on the multiple continuous addresses to obtain the data corresponding to each continuous address; and for each continuous address, store the data corresponding to the continuous address in the file corresponding to the continuous address.
[0089] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the variable calibration device includes:
[0090] The data overall storage module is used to create a file when the addresses of the multiple data are continuous, store the file identifier of the file in the database; parse the data file to obtain the data corresponding to the data file; and store the data corresponding to the data file in the file.
[0091] Based on any optional technical solution in the embodiments of the present disclosure, optionally, the address corresponding data modification module 430 can be specifically used to:
[0092] The target data is modified through memory mapping.
[0093] The variable calibration device provided in the embodiments of the present disclosure can execute the variable calibration method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0094] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0095] like Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 and a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An I / O interface 15 is also connected to the bus 14.
[0096] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0097] The processor 11 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the variable calibration method, which includes:
[0098] Get the address of the variable to be calibrated;
[0099] Matching the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address;
[0100] Determine a target file corresponding to a file identifier corresponding to the address of the variable to be calibrated, determine target data corresponding to the address of the variable to be calibrated in the target file, and modify the target data.
[0101] In some embodiments, the variable calibration method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the variable calibration method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the variable calibration method in any other appropriate manner (e.g., by means of firmware).
[0102] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0103] Computer programs for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0104] In the context of the present disclosure, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0105] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0106] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0107] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0108] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of this disclosure can be achieved, and this document is not limited here.
[0109] An embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the variable calibration method provided in any embodiment of the present disclosure.
[0110] The computer program product, during implementation, may be written in one or more programming languages, or a combination thereof, for performing the operations of the present disclosure and may include computer program code written in object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product that includes a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication unit 19, or installed from the storage unit 18, or installed from the ROM 12. When the computer program is executed by the processor 11, the above-mentioned functions defined in the method of the embodiment of the present invention are performed.
[0112] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A variable calibration method, characterized in that: include: Get the address of the variable to be calibrated; Matching the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address; Determine a target file corresponding to a file identifier corresponding to the address of the variable to be calibrated, determine target data corresponding to the address of the variable to be calibrated in the target file, and modify the target data.
2. The method according to claim 1, characterized in that The step of obtaining the address of the variable to be calibrated includes: Get the variable name of the variable to be calibrated; Match the variable name of the variable to be calibrated in the database to obtain the address of the variable to be calibrated; The database also includes variable names of multiple variables and the address corresponding to each variable.
3. The method according to claim 1, characterized in that The step of matching the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated includes: Performing address matching on the address of the variable to be calibrated and the address range information of multiple consecutive addresses in the database; For any continuous address, if the address of the variable to be calibrated coincides with the address range information of the continuous address, the file identifier corresponding to the continuous address is used as the file identifier corresponding to the address of the variable to be calibrated.
4. The method according to claim 1, wherein Before obtaining the address of the variable to be calibrated, it also includes: Get the description file of the vehicle electronic control unit data; Parsing the description file of the automotive electronic control unit data to obtain addresses of multiple data; Determining whether addresses of the plurality of data are continuous; In the case where the addresses of the multiple data are discontinuous, the addresses of the multiple data are split into multiple continuous addresses, a corresponding file is created for each continuous address, the address range information and file identifier of each continuous address are determined, and the address range information of each continuous address and the file identifier corresponding to each continuous address are stored in a database; the data file is parsed based on the multiple continuous addresses to obtain the data corresponding to each continuous address; for each continuous address, the data corresponding to the continuous address is stored in the file corresponding to the continuous address.
5. The method according to claim 4, characterized in that After determining whether the addresses of the plurality of data are continuous, the method further includes: In the case where the addresses of the multiple data are continuous, a file is created, and a file identifier of the file is stored in a database; the data file is parsed to obtain data corresponding to the data file; and the data corresponding to the data file is stored in the file.
6. The method according to claim 1, characterized in that The modifying of the target data includes: The target data is modified through memory mapping.
7. A variable calibration device, characterized in that: include: Variable address acquisition module, used to obtain the address of the variable to be calibrated; A file identifier matching module is used to match the address of the variable to be calibrated in a database to obtain a file identifier corresponding to the address of the variable to be calibrated, wherein the database contains address range information of multiple consecutive addresses and a file identifier corresponding to each consecutive address; The address corresponding data modification module is used to determine the target file corresponding to the file identifier corresponding to the address of the variable to be calibrated, determine the target data corresponding to the address of the variable to be calibrated in the target file, and modify the target data.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the variable calibration method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the variable calibration method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the variable calibration method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for detecting A2L standard quantitative address range conflicts
CN110287153A
Generation method of automobile controller diagnosis module A2L file
CN116822480A
Method and device for calibrating test data in batches and computer readable storage medium
CN119440996A
Method and device for determining target calibration file of vehicle-mounted system and storage medium
CN119806533A
A2l file merging method and device
WO2018188222A1