Software Model Architecture, Battery Management System Controller and Vehicle
By separating the external function calling function and the logic unit in the embedded software model, the problems of low offline debugging efficiency and insufficient online debugging simulation coverage in the existing technology are solved, and efficient offline debugging and fast online simulation are achieved.
Patent Information
- Application Number
- CN202210734035.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-06-24
AI Technical Summary
During offline debugging of existing embedded software models, due to the integration of external function call functions, the simulation fails and requires manual deletion of modules. The workload is large, the efficiency is low, and there is a risk of abnormal functions. In addition, batch calibration cannot be achieved during online debugging, resulting in insufficient simulation coverage. and slow troubleshooting.
Design a software model architecture that separates external function calling functions from functional units to achieve isolation of function calls and functional units. A calibration unit is added to achieve batch calibration during online debugging. The logic unit and function calling unit are offline Separate to facilitate offline debugging and perform batch calibration of signals online.
It improves the efficiency of offline debugging of the model, avoids the risk of manually deleting function calling functions, realizes fast switching of logic units and fast simulation of online debugging, and improves the debugging efficiency and simulation coverage of the model.
Smart Images

Figure CN117311672B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of software model development, and more specifically, to a software model architecture, a battery management system controller, and a vehicle. Background Art
[0002] The embedded software model architecture is used in many scenarios because of its strong model visualization, easy maintenance, automatic code generation, and suitability for writing complex logic.
[0003] As products are updated and iterated, the embedded software model architecture needs to be debugged and updated. However, when the existing model is debugged offline, since the model's processing unit has the function of calling external functions, the entire model will fail to simulate because the corresponding function cannot be located. Therefore, some function modules need to be manually deleted. Every time the model is modified and offline testing is required, the model needs to be modified, resulting in a large workload, low efficiency, and the risk of model function abnormalities due to modification errors.
[0004] Therefore, it can be seen that improving the existing model is an urgent problem to be solved. Summary of the invention
[0005] One purpose of the present application is to provide a new technical solution for a software model architecture, a battery management system controller and a vehicle.
[0006] According to a first aspect of the present disclosure, there is provided a software model architecture, the model architecture comprising: a first function calling unit, a logic unit, and a second function calling unit connected in sequence;
[0007] The first function calling unit is used to read a function value of an external function and output the function value to the logic unit;
[0008] The logic unit is used to execute a preset calculation logic according to the function value, and output a first calculation result to the second function calling unit;
[0009] The second function calling unit is used to write the first calculation result into an external function;
[0010] Wherein, when the model architecture is in an offline debugging state, the logic unit is in a separate state independent of the first function calling unit and the second function calling unit.
[0011] Optionally, when the logic unit is in an offline debugging state, the logic unit is connected to an output observer, and the logic unit is used to:
[0012] Receive input working condition information;
[0013] The model architecture is debugged according to the input operating condition information, and the debugging result is output to the output observer, where the output observer is used to display the debugging result.
[0014] Optionally, the model architecture further includes: an input calibration unit and an output calibration unit,
[0015] The input calibration unit is used to calibrate the received signal to be calibrated when the model architecture is in an online debugging state to obtain input calibration data, wherein the signal to be calibrated includes the input signal received by the input calibration unit and the function value of the external function read by the first function calling unit;
[0016] The logic unit is used to execute a preset calculation logic according to the input calibration data, and output a second calculation result to the output calibration unit;
[0017] The output calibration unit is used to calibrate the second calculation result to obtain output calibration data, and output the output calibration data through the output end of the model architecture.
[0018] Optionally, the first input end of the input calibration unit is the input end of the model architecture, and the second input end of the input calibration unit is connected to the output end of the first function calling unit;
[0019] The output end of the input calibration unit is connected to the first end of the logic unit, and the second end of the logic unit is connected to the input end of the output calibration unit;
[0020] The first output end of the output calibration unit is the output end of the model architecture, and the second output end of the output calibration unit is connected to the input end of the second function calling unit.
[0021] Optionally, the output calibration unit is further used to send the output calibration data to the second function calling unit, so that the second function calling unit writes the output calibration data into an external function.
[0022] Optionally, the input calibration unit is configured with a calibration switch and a calibration value corresponding to the signal to be calibrated one by one; the input calibration unit calibrates the received signal to be calibrated when the model architecture is in an online debugging state, including:
[0023] The signal to be calibrated is calibrated according to the calibration switch and the calibration value, wherein the calibration switch includes an on state and a off state, and the calibration value includes the signal to be calibrated itself or a preset value corresponding to the signal to be calibrated.
[0024] Optionally, the calibration unit calibrates the signal to be calibrated according to the calibration switch and the calibration value, including:
[0025] Receiving a calibration instruction input by a user, wherein the calibration instruction is used to control the on or off state of the calibration switch;
[0026] Wherein, when the calibration instruction is that the calibration switch is turned on, a calibration value corresponding to the signal to be calibrated is output;
[0027] When the calibration instruction is that the calibration switch is closed, the signal to be calibrated is output.
[0028] Optionally, the model architecture further includes a model auxiliary unit, and the model auxiliary unit is used to store model information.
[0029] The model information includes the model version number, model project number and model scheduling period of the model architecture.
[0030] Optionally, the model auxiliary unit is used to:
[0031] When the software model architecture is in an online debugging state, receiving a query instruction input by a user;
[0032] The model information is output according to the query instruction.
[0033] According to the second aspect of the present disclosure, a battery management system controller is also provided, which includes a control chip and a software model architecture set on the control chip, and the software model architecture is any software model architecture described in the first aspect.
[0034] According to a second aspect of the present disclosure, a vehicle is also provided, comprising the battery management system controller according to the second aspect.
[0035] One beneficial effect of the present application is that the software model architecture of the present embodiment reads the function value of the external function through the first function calling unit, and outputs the function value to the logic unit, so that the logic unit executes the preset calculation logic according to the function value, and outputs the first calculation result, and writes the first calculation result into the external function through the second function calling unit. While realizing the functions of the model architecture itself, the separation of the reading and writing functions of the logic unit can be realized. When the model architecture is in an offline debugging state, the logic unit can be separated from the first function calling unit and the second function calling unit respectively, so that there is no external function calling function inside the logic unit, which is convenient for offline debugging of the logic unit, and can greatly improve the debugging efficiency of the model.
[0036] Other features and advantages of the embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the embodiments of the present disclosure.
[0038] Figure 1 It is a software model architecture provided by this embodiment;
[0039] Figure 2 This is a schematic diagram of the offline debugging state of the model architecture provided in this embodiment;
[0040] Figure 3 is another model architecture provided by this embodiment;
[0041] Figure 4 is a calibration flow chart of an input calibration unit provided in an embodiment;
[0042] Figure 5 is a schematic block diagram of the structure of the battery management system controller provided in this embodiment;
[0043] Figure 6 It is a structural block diagram of the vehicle provided in this embodiment. DETAILED DESCRIPTION
[0044] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0047] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0048] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0049] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.
[0050] One application scenario of the embodiments of the present disclosure is the scenario of software model development.
[0051] Embedded software model development in the automotive field increasingly adopts model design to meet the growing functional requirements. Compared with handwritten code, the model has strong visualization, easy maintenance, and can automatically generate code, which is suitable for writing complex logic.
[0052] The model architecture divides different functions by setting up different areas and sections, and then builds logical models and fills in codes in different areas, ultimately achieving the effective operation of the entire model function. Subsequent model maintenance, migration and expansion can be completed according to the clear instructions of the architecture. A good model architecture can make maintenance work more efficient.
[0053] The existing model architecture is generally divided into several units, which are connected to each other and to the outside through signals. The functions of the units are independent, and each unit is filled with models or codes. Each unit executes different calculation logics. With the update and iteration of products, the embedded software model architecture needs to be debugged and updated. When debugging the existing model offline, the model is simulated and debugged using debugging software on the computer desktop. Since the calling function of the external function of the existing model is integrated in each unit, during offline debugging, the entire model will fail to simulate because the corresponding function cannot be located. Therefore, some modules need to be manually deleted. Every time the model needs to be modified for offline testing, the model needs to be modified, resulting in a large workload, low efficiency, and the risk of abnormal model functions caused by modification errors.
[0054] In addition, when debugging the existing model online, the software can be flashed into the MCU, and the debugging software can be used to debug the software function when it is running online. However, since the existing model does not have a unit for batch calibration of input and output, the model input and output signals cannot be modified on a large scale. In order to achieve the purpose of online debugging, it is necessary to add debugging CAN messages outside the software to simulate and observe a small number of model input and output signals through CAN message signals. Under this solution, due to the limitation of CAN communication load, the simulation of all input and output signals cannot be realized, resulting in insufficient coverage of simulated working conditions and slow troubleshooting.
[0055] In view of the technical problems existing in the above implementation methods, the inventors proposed a software model architecture, which separates the calling function of external functions from the functional units, realizes the functional isolation of function calling and functional units, and achieves rapid implementation and switching of model offline testing. And by adding a calibration unit, batch calibration of signals during online debugging can be realized, which can quickly realize online debugging.
[0056] Figure 1 This is a software model architecture of this embodiment, refer to Figure 1 The model architecture 100 includes: a first function call unit 101, a logic unit 102 and a second function call unit 103 connected in sequence, wherein the output end of the first function call is connected to the input end of the logic unit, and the output end of the logic unit is connected to the input end of the second function call unit.
[0057] In this embodiment, the first function calling unit is used to read the function value of the external function and output the function value to the logic unit, wherein the external function is a function outside the model architecture so that the software model can perform its own logic calculation.
[0058] The first function calling unit only has the function of reading data. When the software model is connected to an external device, the function value of the external function can be read, thereby not affecting the function realization of the logic unit when the software model is running normally. When the model needs to be debugged, the connection between the first function calling unit and the logic unit can be disconnected, thereby avoiding manual deletion of the function calling function and improving the offline debugging efficiency of the model.
[0059] In this embodiment, the logic unit is used to execute a preset calculation logic according to the function value, and output a first calculation result to the second function calling unit.
[0060] The logic unit may include multiple functional units, each functional unit executes different preset logics to achieve different preset functions, and the specific preset logics may be achieved by manually writing a program.
[0061] In this embodiment, during the normal operation of the model, the input end of the logic unit can also receive an input signal to execute normal calculation logic according to the input signal, obtain the calculation result, and output it to the outside of the model through the output end of the logic unit. At the same time, the logic unit can also receive the function value output by the first function calling unit, and can also output the calculation result to the second function calling unit.
[0062] In this embodiment, the second function calling unit is used to write the first calculation result into the external function. That is, the second function calling unit can receive the first calculation result output by the logic unit in the model, and the first calculation result can be a signal value or a function value. The second function calling unit can use the first calculation result as an input parameter of the external function, so that the first calculation result participates in the calling and execution of the external function.
[0063] From this, it can be seen that the first function calling unit can call the function value of the external function, the logic unit performs calculations based on the function value and outputs a second calculation result, and the second function calling unit can use the second calculation result as an input parameter of the external function, thereby realizing the normal operation of the software model architecture of this embodiment.
[0064] At the same time, when the model architecture is in an offline debugging state, the logic unit is in an independent separation state from the first function call unit and the second function call unit. Therefore, the logic unit can be separated and placed in an offline debugging environment to facilitate offline debugging of the logic unit. At this time, since there is no function call unit in the logic unit, there is no need to manually find and delete the function call unit, which can avoid the risk of model function abnormality caused by function call errors.
[0065] Among them, reference Figure 2 , Figure 2 Schematic diagram of offline debugging state of the model architecture of this embodiment. When the logic unit is in offline debugging state, the logic unit 102 is connected to the output observer 201, and the logic unit is used to: receive input working condition information; debug the model architecture according to the input working condition information, and output the debugging result to the output observer, and the output observer is used to display the debugging result.
[0066] For example, the input operating condition information may include the vehicle's driving speed, battery voltage, etc. In the offline debugging state, the input end of the logic unit can be used to receive the input operating condition information, and the output end of the logic unit is connected to the output observer. The logic unit executes the preset calculation logic according to the vehicle's driving speed, battery voltage and other input operating condition information, and outputs the debugging result representing whether the model is suitable to the output observer. The output observer is used to display the debugging result for the debugging personnel to observe. At the same time, the output observer can also store the preset debugging results, and compare the debugging results output by the logic unit with the preset debugging results, so as to more intuitively observe whether the model meets expectations.
[0067] According to the model architecture of this embodiment, when the tester detects that the logic of a logic unit has changed, the tester only needs to update the logic unit to perform retesting, thereby realizing rapid switching of the logic unit and improving debugging efficiency.
[0068] The software model architecture of this embodiment reads the function value of the external function through the first function calling unit, and outputs the function value to the logic unit, so that the logic unit executes the preset calculation logic according to the function value, and outputs the first calculation result, and writes the first calculation result into the external function through the second function calling unit. While realizing the functions of the model architecture itself, the separation of the reading and writing functions of the logic unit can be realized. When the model architecture is in the offline debugging state, the logic unit can be separated from the first function calling unit and the second function calling unit respectively, so that there is no external function calling function in the logic unit, which is convenient for offline debugging of the logic unit and can greatly improve the debugging efficiency of the model.
[0069] Figure 3 Another model architecture provided for this embodiment is shown in FIG. Figure 3 The model architecture of this embodiment not only includes Figure 1 The first function calling unit 101 , the logic unit 102 and the second function calling unit 103 shown in the figure further include: an input calibration unit 104 and an output calibration unit 105 .
[0070] Among them, the first input end of the input calibration unit is the input end of the model architecture, and the second input end of the input calibration unit is connected to the output end of the first function calling unit; the output end of the input calibration unit is connected to the first end of the logic unit, and the second end of the logic unit is connected to the input end of the output calibration unit; the first output end of the output calibration unit is the output end of the model architecture, and the second output end of the output calibration unit is connected to the input end of the second function calling unit.
[0071] In this embodiment, when the model architecture is in an online debugging state, the input calibration unit is used to calibrate the received signal to be calibrated, obtain input calibration data, and output it to the logic unit. The logic unit is used to execute the preset calculation logic according to the input calibration data, and output the second calculation result to the output calibration unit; the output calibration unit is used to calibrate the second calculation result, obtain output calibration data, and output the above-mentioned output calibration data through the output end of the model architecture.
[0072] It should be noted that when the model architecture is in a non-online debugging state, that is, in a normal operating state, the input calibration unit can be in a dormant state, that is, when the model is in a non-online debugging state, the input calibration unit does not calibrate the input signal so that the logic unit executes the preset operating logic. When the model architecture is in an online debugging state, the calibration function of the model architecture can be triggered.
[0073] In addition, when the input calibration unit can be in a dormant state, the output calibration unit can also be in a dormant state. At this time, the operating principle of the model architecture is as follows Figure 1 As shown, offline debugging can also be achieved, that is, Figure 3 The model architecture shown can realize both offline debugging and online debugging, which can improve the applicability of the model.
[0074] In this embodiment, the signal to be calibrated received by the input calibration unit includes the input signal received by the calibration unit and the function value of the external function read by the first function calling unit. The input signal received by the calibration unit can be a signal required for the normal operation of the model, such as the operation data of the vehicle, and the function value of the external function read by the first function calling unit can be the return value of the external function set by the staff to realize a certain function of the vehicle.
[0075] The input calibration unit can fuse and calibrate all signals that are about to be input into the logic unit and then output them to the logic unit. It can calibrate the input signals to realize online simulation and calibration of the model input signals, thereby simulating different test conditions and increasing the types and quantity of test conditions.
[0076] In this embodiment, the logic unit may include multiple functional units, such as Figure 3 Functional unit 1 and functional unit 2 are shown.
[0077] Correspondingly, the output calibration unit of this embodiment can calibrate the second calculation result output by the logic unit to obtain output calibration data, and output the output calibration data through the output end of the model architecture, and send the output calibration data to the second function calling unit, so that the second function calling unit writes the output calibration data into the external function. The output signal can be calibrated to achieve online simulation and calibration of the model output signal, thereby simulating different test conditions and increasing the types and number of test conditions.
[0078] In this embodiment, the input calibration unit is configured with a calibration switch and a calibration value corresponding to the signal to be calibrated. When the model architecture is in an online debugging state, the input calibration unit calibrates the received signal to be calibrated, including: the input calibration unit can calibrate the signal to be calibrated according to the calibration switch and the calibration value. Among them, the calibration switch includes an on state and an off state, and the calibration value includes the signal to be calibrated itself or a preset value corresponding to the signal to be calibrated.
[0079] It should be noted that, in the online debugging or offline debugging state of the model in this embodiment, a debugging signal can be input to the model through an Explicit Control Protocol (XCP) tool.
[0080] In this embodiment, the input calibration unit calibrates the signal to be calibrated according to the calibration switch and the calibration value, including: receiving a calibration instruction input by the user, the calibration instruction is used to control the on or off state of the calibration switch; wherein, when the calibration instruction is for the calibration switch to be turned on, the calibration value corresponding to the signal to be calibrated is output; when the calibration instruction is for the calibration switch to be turned off, the signal to be calibrated is output.
[0081] For example, the user can input a calibration instruction through the XCP tool, and the calibration instruction can control the opening or closing of the calibration switch. Figure 4 For the calibration flow chart of the input calibration unit in this embodiment, refer to Figure 4, when the calibration switch is turned on, the value corresponding to the calibration switch can be True. When the calibration switch is True, the input calibration unit turns on the calibration function and outputs the calibration value corresponding to the signal to be calibrated. When the value corresponding to the calibration switch is not True, the input calibration unit turns off the calibration function and the output data is the signal to be calibrated, that is, the input signal of the input calibration unit is kept unchanged. It should be noted that the data output by the input calibration unit of this embodiment is configured as a global variable to facilitate the call of the data during the debugging process. That is, the calibration value and the calibration switch are defined as readable and writable global variables in the software.
[0082] Similarly, the output calibration unit is also configured with a calibration switch and a calibration value corresponding to the second calculation result output by the logic unit, and the output calibration unit can calibrate the second calculation result according to the calibration switch and the calibration value, and then output the calibrated data through the output end of the model, and write the calibrated data into the second function calling unit.
[0083] This embodiment provides a model architecture, including a first function calling unit, a logic unit, a second function calling unit, an input calibration unit, and an output calibration unit. The model input signal and the function value called by the first function calling unit are calibrated by the input calibration unit, the output data of the logic unit is calibrated by the output calibration unit, and then output through the output end of the model, and the calibrated data is written into the second function calling unit, so that the input and output signals of the model can be calibrated, and the online simulation and calibration of the model input and output signals can be realized to simulate different test conditions, thereby increasing the types and quantity of test conditions.
[0084] refer to Figure 3 The model architecture of this embodiment further includes a model auxiliary unit 106, which is used to store model information, including the model version number, model project number and model scheduling cycle of the model architecture. This allows users to retrieve model information, supports online tracing of model versions and verification of operating cycles, and improves the efficiency of troubleshooting.
[0085] The model auxiliary unit 106 may be arranged in the logic unit, and the model auxiliary unit 106 is used to: receive a query instruction input by a user when the software model architecture is in an online debugging state; and output model information according to the query instruction.
[0086] For example, when a user sends a query instruction to the model auxiliary unit through the XCP tool, the model auxiliary unit retrieves the stored model information in response to the query instruction so that the user can observe the model version number and project number. It can support the positioning of the model version and project, thereby quickly troubleshooting the model in reverse and improving the accuracy and efficiency of problem troubleshooting.
[0087] The model scheduling period of this embodiment can be obtained by observing the model scheduling counter. Each time the model is scheduled, the value of the model scheduling counter is increased by 1. By obtaining the time interval of each increase of the model scheduling counter, the model scheduling period is confirmed to verify the stability of the software model. The more stable the time interval, the better the stability of the software model.
[0088] Figure 5 is a schematic block diagram of the structure of a battery management system controller according to an embodiment.
[0089] The battery management system controller 500 includes a control chip 501 and a software model architecture 502 arranged on the control chip 501. The software model architecture 502 is Figure 1 or Figure 3 The software model architecture shown in the figure. The specific structure and function of each module are described in the above embodiments, and will not be repeated here to avoid repetition.
[0090] A battery management system controller provided in this embodiment can read the function value of an external function through the first function calling unit of the software model architecture, and output the function value to the logic unit, so that the logic unit executes a preset calculation logic according to the function value, and outputs a first calculation result, and writes the first calculation result into the external function through the second function calling unit. While realizing the functions of the model architecture itself, the separation of the reading and writing functions of the logic unit can be realized. When the model architecture is in an offline debugging state, the logic unit can be separated from the first function calling unit and the second function calling unit respectively, so that there is no external function calling function in the logic unit, which is convenient for offline debugging of the logic unit, and can greatly improve the debugging efficiency of the model and the debugging efficiency of the battery management system controller.
[0091] Figure 6 is a schematic block diagram of the structure of a vehicle according to an embodiment, wherein the vehicle 600 includes the battery management system controller 500 of the above embodiment.
[0092] The battery management system controller 500 includes a control chip 501 and a software model architecture 502 arranged on the control chip. The software model architecture 502 is Figure 1 or Figure 3 The software model architecture shown.
[0093] Embedded software development in the vehicle field increasingly adopts model design to meet the growing functional requirements. It can be seen that the vehicle 600 using the battery management system controller 500 of this embodiment can improve the debugging efficiency of the vehicle because the battery management system controller 500 has a software model architecture 502.
[0094] The logic unit of the present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0095] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0096] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0097] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of 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., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0098] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0099] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0100] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0101] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0102] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A software model architecture, characterized in that: The model architecture includes: a first function calling unit, a logic unit, and a second function calling unit connected in sequence; The first function calling unit is used to read a function value of an external function and output the function value to the logic unit; The logic unit is used to execute a preset calculation logic according to the function value, and output a first calculation result to the second function calling unit; The second function calling unit is used to write the first calculation result into an external function; Wherein, when the model architecture is in an offline debugging state, the logic unit is in a separate state independent of the first function calling unit and the second function calling unit, respectively, and the external function is a function outside the model architecture.
2. The model architecture according to claim 1, characterized in that When the logic unit is in an offline debugging state, the logic unit is connected to an output observer, and the logic unit is used to: Receive input working condition information; The model architecture is debugged according to the input operating condition information, and the debugging result is output to the output observer, where the output observer is used to display the debugging result.
3. The model architecture according to claim 1, characterized in that The model architecture also includes: an input calibration unit and an output calibration unit, The input calibration unit is used to calibrate the received signal to be calibrated when the model architecture is in an online debugging state to obtain input calibration data, wherein the signal to be calibrated includes a signal required for the normal operation of the model architecture received by the input calibration unit and a function value of the external function read by the first function calling unit; The logic unit is used to execute a preset calculation logic according to the input calibration data, and output a second calculation result to the output calibration unit; The output calibration unit is used to calibrate the second calculation result to obtain output calibration data, and output the output calibration data through the output end of the model architecture.
4. The model architecture according to claim 3, characterized in that The first input end of the input calibration unit is the input end of the model architecture, and the second input end of the input calibration unit is connected to the output end of the first function calling unit; The output end of the input calibration unit is connected to the first end of the logic unit, and the second end of the logic unit is connected to the input end of the output calibration unit; The first output end of the output calibration unit is the output end of the model architecture, and the second output end of the output calibration unit is connected to the input end of the second function calling unit.
5. The model architecture according to claim 3, characterized in that: The output calibration unit is further used to send the output calibration data to the second function calling unit, so that the second function calling unit writes the output calibration data into an external function.
6. The model architecture according to claim 3, characterized in that The input calibration unit is configured with a calibration switch and a calibration value corresponding to the signal to be calibrated. When the model architecture is in an online debugging state, the input calibration unit calibrates the received signal to be calibrated, including: The signal to be calibrated is calibrated according to the calibration switch and the calibration value, wherein the calibration switch includes an on state and a off state, and the calibration value includes the signal to be calibrated itself or a preset value corresponding to the signal to be calibrated.
7. The model architecture according to claim 6, characterized in that The calibration unit calibrates the signal to be calibrated according to the calibration switch and the calibration value, including: Receiving a calibration instruction input by a user, wherein the calibration instruction is used to control the on or off state of the calibration switch; Wherein, when the calibration instruction is that the calibration switch is turned on, a calibration value corresponding to the signal to be calibrated is output; When the calibration instruction is that the calibration switch is closed, the signal to be calibrated is output.
8. The model architecture according to claim 1 or 3, characterized in that: The model architecture also includes a model auxiliary unit, which is used to store model information. The model information includes the model version number, model project number and model scheduling period of the model architecture.
9. The model architecture according to claim 8, characterized in that The model auxiliary unit is used for: When the software model architecture is in an online debugging state, receiving a query instruction input by a user; The model information is output according to the query instruction.
10. A battery management system controller, characterized in that: The battery management system controller includes a control chip and a software model architecture arranged on the control chip, and the software model architecture is the software model architecture described in any one of claims 1-9.
11. A vehicle, characterized in that: The vehicle includes the battery management system controller of claim 10.
Citation Information
Cited By
Software model architecture, battery management system controller and vehicle
EP4546115A1
