Model updating control method and device applied to bms-hil system

CN123011277APending Publication Date: 2026-10-30GUANGXI LIUGONG MASCH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611277925.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0003]当前,关于被控对象模型的更新方法主要高度依赖测试工程师在线下实验室标定与人工手动迭代的工作模式,测试工程师依靠自身工作经验完成多样化实验设定及实验实施,手动采集电芯的多样化关键参数,再逐一完成模型参数的录入、校验与适配调试,模型更新周期过长,人工操作环节占比过高,不同测试人员针对不同项目内容会有不同的模型更新方案,使得模型的更新准确性及更新效率低

Benefits of technology

本发明实施例中,当检测到针对待更新被控对象模型的模型更新触发指令时,根据确定出的模型配置信息,执行相应的模型确定操作,得到目标配置模型;根据该目标配置模型,对该待更新被控对象模型执行相应的模型更新操作,得到更新后的被控对象模型。可见,本发明能够通过模型确定操作及模型替换操作实现被控对象模型的模型更新控制,有利于提高模型的更新控制准确性及可靠性,有利于提高模型的更新控制效率及便捷性,进而有效避免人工模型搭建造成的漏搭建模型或者搭建模型错误的现象,有利于提高确定出的更新后模型的准确性及可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123011277A_ABST
    Figure CN123011277A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of model updating, and discloses a model updating control method and device applied to a BMS-HIL system, which comprises the following steps: when a model updating trigger instruction for a to-be-updated controlled object model is detected, a target configuration model is obtained by performing a corresponding model determination operation according to determined model configuration information; and a corresponding model updating operation is performed on the to-be-updated controlled object model according to the target configuration model, so that an updated controlled object model is obtained. It can be seen that the application can improve the updating control accuracy and reliability of the model, improve the updating control efficiency and convenience of the model, effectively avoid the phenomenon of missing model or model error caused by artificial model building, and improve the accuracy and reliability of the determined updated model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of model update technology, and in particular to a model update control method and apparatus for BMS-HIL systems. Background Technology

[0002] With the rapid popularization of the new energy vehicle industry, the requirements for safety control and energy efficiency management of power battery systems are constantly increasing. As the core control unit of power batteries, the battery management system (BMS) has a controlled object model built inside that is the basic support for realizing core functions such as SOC estimation, SOH prediction, thermal runaway early warning, and charge and discharge strategy regulation.

[0003] Currently, the methods for updating the controlled object model mainly rely heavily on the work mode of offline laboratory calibration and manual iteration by test engineers. Test engineers rely on their own work experience to complete diverse experimental settings and implementations, manually collect diverse key parameters of the battery cells, and then complete the input, verification, and adaptation debugging of model parameters one by one. The model update cycle is too long, the proportion of manual operation is too high, and different testers will have different model update schemes for different project contents, resulting in low accuracy and efficiency of model updates. Summary of the Invention

[0004] This invention provides a model update control method and apparatus for BMS-HIL systems, which can improve the accuracy and reliability of model updates, as well as the efficiency and convenience of model updates.

[0005] To address the aforementioned technical problems, the first aspect of this invention discloses a model update control method applied to a BMS-HIL system, the method comprising: When a model update trigger command for the controlled object model to be updated is detected, the corresponding model determination operation is performed according to the determined model configuration information to obtain the target configuration model; Based on the target configuration model, perform the corresponding model update operation on the controlled object model to be updated to obtain the updated controlled object model.

[0006] As an optional implementation, in the first aspect of the present invention, the step of performing a corresponding model determination operation based on the determined model configuration information to obtain the target configuration model includes: When the model update triggering instruction includes a first model update triggering instruction for the core model input model, the corresponding model determination operation is performed according to the first undetermined model channel number and the first CAN database file information in the determined model configuration information to obtain the core model input model. When the model update triggering instruction includes a second model update triggering instruction for the core model output model, the corresponding model determination operation is performed according to the second undetermined model channel number and the second CAN database file information in the determined model configuration information to obtain the core model output model; When the model update triggering instruction includes a third model update triggering instruction for the CAN input model, the corresponding model determination operation is performed according to the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model; When the model update triggering instruction includes a fourth model update triggering instruction for the CAN output model, the corresponding model determination operation is performed according to the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model; The target configuration model is determined based on the core model input model and / or the core model output model and / or the CAN input model and / or the CAN output model.

[0007] As an optional implementation, in the first aspect of the present invention, the step of performing a corresponding model determination operation based on the first number of model channels to be determined and the first CAN database file information in the determined model configuration information to obtain the core model input model includes: Based on the number of channels of the first model to be determined and the information of the first CAN database file in the determined model configuration information, the first blank model for the input model of the core model is determined from the pre-built custom model library, and one or more first message information is determined based on the information of the first CAN database file. For each of the first message messages, determine whether the first message message meets the preset BMS sending conditions; When it is determined that the first message information meets the BMS sending conditions, a second blank model for the message input model is determined from the custom model library, and a first signal model for each first message signal is determined according to each first message signal in the first message information. Based on the second blank model and all the first signal models corresponding to each first message information, determine the message model of each first message information; Based on the first blank model and the message models of all the first message information, determine the core model input model; And, based on the determined model configuration information, the second undetermined model channel number and the second CAN database file information are used to perform the corresponding model determination operation to obtain the core model output model, including: Based on the number of second undetermined model channels and the second CAN database file information in the determined model configuration information, a third blank model for the core model output model is determined from the pre-built custom model library, and one or more second message information is determined based on the second CAN database file information; For each of the second message messages, determine whether the second message message meets the preset non-BMS sending conditions; When it is determined that the second message information meets the non-BMS sending condition, a fourth blank model for the message output model is determined from the custom model library, and a second signal model for each second message signal is determined according to each second message signal in the second message information. Based on the fourth blank model and all the second signal models corresponding to each second message information, determine the message model of each second message information; Based on the third blank model and the message models of all the second message information, the core model output model is determined.

[0008] As an optional implementation, in the first aspect of the present invention, the step of performing a corresponding model determination operation based on the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model includes: Based on the first CAN communication configuration information in the determined model configuration information and the pre-built custom model library, the fifth blank model for the CAN input model is determined, and the CAN signal reading module is determined. Based on the third CAN database file information in the first CAN communication configuration information, determine one or more third message information that meet the preset BMS transmission conditions; For each of the third message messages, the corresponding CAN message model determination and message parsing module determination operations are performed based on the third message message to obtain the first CAN message model of the third message message, wherein the first CAN message model includes a message parsing module; and the third signal model of each of the third message signals is determined based on each third message signal in the third message message. The CAN input model is determined based on the fifth blank model, the CAN signal reading module, the first CAN message model corresponding to each third message information, and all third signal models.

[0009] As an optional implementation, in the first aspect of the present invention, the step of performing a corresponding model determination operation based on the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model includes: Based on the second CAN communication configuration information in the determined model configuration information and the pre-built custom model library, determine the sixth blank model for the CAN output model; Based on the network segment name information in the second CAN communication configuration information, determine the network segment enable module and CAN message sending module for each target network segment; Based on the fourth CAN database file information in the second CAN communication configuration information, target nodes that meet the preset non-BMS transmission conditions are determined, and the node enable module of each target node is determined. For each target node, a message output module and a message enable module are determined based on the fourth message information of the target node, and a fourth signal model for each fourth message signal is determined based on each fourth message signal in the fourth message information. Based on the second CAN communication configuration information and the custom model library, the message packaging module and the CAN signal transmission module are determined; The CAN output model is determined based on the sixth blank model, the network segment enable module and CAN message transmission module of each target network segment, the node enable module and message output module and message enable module corresponding to each target node, all fourth signal models, the message packaging module and the CAN signal transmission module.

[0010] As an optional implementation, in the first aspect of the present invention, the step of performing a corresponding model update operation on the controlled object model to be updated according to the target configuration model to obtain the updated controlled object model includes: Determine the replacement source model name information input by the user, and determine the update model name and path information for the controlled object model to be updated input by the user. Based on the target configuration model, determine the target configuration model name information, and based on the target configuration model name information and the replacement source model name information, determine the replacement source model name array; Based on the name and path information of the model to be updated, determine the name of the subsystem module corresponding to the controlled object model to be updated, and determine the array of model names to be updated based on all the names of the subsystem modules. Based on the array of replacement source model names and the array of model names to be updated, perform corresponding name information comparison and / or model element replacement operations to obtain the updated controlled object model.

[0011] As an optional implementation, in the first aspect of the present invention, the step of performing corresponding name information comparison and / or model element replacement operations based on the replacement source model name array and the model name array to be updated to obtain the updated controlled object model includes: Based on the array of replacement source model names, determine the current replacement element that satisfies the first preset replacement sorting condition, and based on the array of model names to be updated, determine the current update element that satisfies the second preset update sorting condition. Determine whether the currently replaced element and the currently updated element meet a preset name consistency condition; When it is determined that the current replacement element and the current update element satisfy the name consistency condition, the corresponding model element replacement operation is performed based on the current replacement element and the current update element to obtain the model element replacement result; Based on the array of replacement source model names, determine the next replacement element that satisfies the first preset replacement sorting condition, and based on the next replacement element, determine whether the array of replacement source model names satisfies the preset condition for continuing comparison and replacement. When it is determined that the array of replacement source model names does not meet the conditions for continuing comparison and replacement, the overall model replacement result of the target configuration model is determined based on the replacement results of all model elements of the target configuration model. When it is determined that the replacement source model name array meets the condition for continuing comparison and replacement, the next replacement element is determined as the current replacement element, and the step of determining whether the current replacement element and the current update element meet the preset name consistency condition is executed again until the replacement source model name array does not meet the condition for continuing comparison and replacement. When it is determined that the current replacement element and the current update element do not meet the name consistency condition, the next update element that meets the second preset update sorting condition is determined according to the array of model names to be updated, and the array of model names to be updated is determined according to the next update element to determine whether the array of model names to be updated meets the preset condition for continued comparison and update. When it is determined that the array of model names to be updated does not meet the conditions for continuing comparison and updating, the step of determining the next replacement element that meets the preset replacement sorting conditions based on the array of replacement source model names is executed again. When it is determined that the array of model names to be updated meets the conditions for continuing comparison and update, the next update element is determined as the current update element, and the step of determining whether the current replacement element and the current update element meet the preset name consistency condition is executed again, until the array of replacement source model names does not meet the conditions for continuing comparison and replacement. Based on the overall model replacement results of all the target configuration models, the updated controlled object model is determined.

[0012] A second aspect of the present invention discloses a model update control device for a BMS-HIL system, the device comprising: The model determination module is used to perform corresponding model determination operations based on the determined model configuration information when a model update trigger instruction for the controlled object model to be updated is detected, so as to obtain the target configuration model. The model replacement module is used to perform corresponding model update operations on the controlled object model to be updated according to the target configuration model, so as to obtain the updated controlled object model.

[0013] As an optional implementation, in the second aspect of the present invention, the model determination module performs a corresponding model determination operation based on the determined model configuration information to obtain the target configuration model in the following specific ways: When the model update triggering instruction includes a first model update triggering instruction for the core model input model, the corresponding model determination operation is performed according to the first undetermined model channel number and the first CAN database file information in the determined model configuration information to obtain the core model input model. When the model update triggering instruction includes a second model update triggering instruction for the core model output model, the corresponding model determination operation is performed according to the second undetermined model channel number and the second CAN database file information in the determined model configuration information to obtain the core model output model; When the model update triggering instruction includes a third model update triggering instruction for the CAN input model, the corresponding model determination operation is performed according to the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model; When the model update triggering instruction includes a fourth model update triggering instruction for the CAN output model, the corresponding model determination operation is performed according to the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model; The target configuration model is determined based on the core model input model and / or the core model output model and / or the CAN input model and / or the CAN output model.

[0014] As an optional implementation, in the second aspect of the present invention, the model determination module performs a corresponding model determination operation based on the first number of channels of the model to be determined and the first CAN database file information in the determined model configuration information, and the specific method for obtaining the core model input model includes: Based on the number of channels of the first model to be determined and the information of the first CAN database file in the determined model configuration information, the first blank model for the input model of the core model is determined from the pre-built custom model library, and one or more first message information is determined based on the information of the first CAN database file. For each of the first message messages, determine whether the first message message meets the preset BMS sending conditions; When it is determined that the first message information meets the BMS sending conditions, a second blank model for the message input model is determined from the custom model library, and a first signal model for each first message signal is determined according to each first message signal in the first message information. Based on the second blank model and all the first signal models corresponding to each first message information, determine the message model of each first message information; Based on the first blank model and the message models of all the first message information, determine the core model input model; Furthermore, the model determination module performs corresponding model determination operations based on the number of channels of the second model to be determined and the information of the second CAN database file in the determined model configuration information, and the specific methods for obtaining the core model output model include: Based on the number of second undetermined model channels and the second CAN database file information in the determined model configuration information, a third blank model for the core model output model is determined from the pre-built custom model library, and one or more second message information is determined based on the second CAN database file information; For each of the second message messages, determine whether the second message message meets the preset non-BMS sending conditions; When it is determined that the second message information meets the non-BMS sending condition, a fourth blank model for the message output model is determined from the custom model library, and a second signal model for each second message signal is determined according to each second message signal in the second message information. Based on the fourth blank model and all the second signal models corresponding to each second message information, determine the message model of each second message information; Based on the third blank model and the message models of all the second message information, the core model output model is determined.

[0015] As an optional implementation, in the second aspect of the present invention, the model determination module performs a corresponding model determination operation based on the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model, specifically including: Based on the first CAN communication configuration information in the determined model configuration information and the pre-built custom model library, the fifth blank model for the CAN input model is determined, and the CAN signal reading module is determined. Based on the third CAN database file information in the first CAN communication configuration information, determine one or more third message information that meet the preset BMS transmission conditions; For each of the third message messages, the corresponding CAN message model determination and message parsing module determination operations are performed based on the third message message to obtain the first CAN message model of the third message message, wherein the first CAN message model includes a message parsing module; and the third signal model of each of the third message signals is determined based on each third message signal in the third message message. The CAN input model is determined based on the fifth blank model, the CAN signal reading module, the first CAN message model corresponding to each third message information, and all third signal models.

[0016] As an optional implementation, in the second aspect of the present invention, the model determination module performs a corresponding model determination operation based on the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model, specifically including: Based on the second CAN communication configuration information in the determined model configuration information and the pre-built custom model library, determine the sixth blank model for the CAN output model; Based on the network segment name information in the second CAN communication configuration information, determine the network segment enable module and CAN message sending module for each target network segment; Based on the fourth CAN database file information in the second CAN communication configuration information, target nodes that meet the preset non-BMS transmission conditions are determined, and the node enable module of each target node is determined. For each target node, a message output module and a message enable module are determined based on the fourth message information of the target node, and a fourth signal model for each fourth message signal is determined based on each fourth message signal in the fourth message information. Based on the second CAN communication configuration information and the custom model library, the message packaging module and the CAN signal transmission module are determined; The CAN output model is determined based on the sixth blank model, the network segment enable module and CAN message transmission module of each target network segment, the node enable module and message output module and message enable module corresponding to each target node, all fourth signal models, the message packaging module and the CAN signal transmission module.

[0017] As an optional implementation, in the second aspect of the present invention, the model replacement module performs a corresponding model update operation on the controlled object model to be updated according to the target configuration model to obtain the updated controlled object model, specifically including the following methods: Determine the replacement source model name information input by the user, and determine the update model name and path information for the controlled object model to be updated input by the user. Based on the target configuration model, determine the target configuration model name information, and based on the target configuration model name information and the replacement source model name information, determine the replacement source model name array; Based on the name and path information of the model to be updated, determine the name of the subsystem module corresponding to the controlled object model to be updated, and determine the array of model names to be updated based on all the names of the subsystem modules. Based on the array of replacement source model names and the array of model names to be updated, perform corresponding name information comparison and / or model element replacement operations to obtain the updated controlled object model.

[0018] As an optional implementation, in the second aspect of the present invention, the model replacement module performs corresponding name information comparison and / or model element replacement operations based on the replacement source model name array and the model name array to be updated to obtain the updated controlled object model in the following specific ways: Based on the array of replacement source model names, determine the current replacement element that satisfies the first preset replacement sorting condition, and based on the array of model names to be updated, determine the current update element that satisfies the second preset update sorting condition. Determine whether the currently replaced element and the currently updated element meet a preset name consistency condition; When it is determined that the current replacement element and the current update element satisfy the name consistency condition, the corresponding model element replacement operation is performed based on the current replacement element and the current update element to obtain the model element replacement result; Based on the array of replacement source model names, determine the next replacement element that satisfies the first preset replacement sorting condition, and based on the next replacement element, determine whether the array of replacement source model names satisfies the preset condition for continuing comparison and replacement. When it is determined that the array of replacement source model names does not meet the conditions for continuing comparison and replacement, the overall model replacement result of the target configuration model is determined based on the replacement results of all model elements of the target configuration model. When it is determined that the replacement source model name array meets the condition for continuing comparison and replacement, the next replacement element is determined as the current replacement element, and the step of determining whether the current replacement element and the current update element meet the preset name consistency condition is executed again until the replacement source model name array does not meet the condition for continuing comparison and replacement. When it is determined that the current replacement element and the current update element do not meet the name consistency condition, the next update element that meets the second preset update sorting condition is determined according to the array of model names to be updated, and the array of model names to be updated is determined according to the next update element to determine whether the array of model names to be updated meets the preset condition for continued comparison and update. When it is determined that the array of model names to be updated does not meet the conditions for continuing comparison and updating, the step of determining the next replacement element that meets the preset replacement sorting conditions based on the array of replacement source model names is executed again. When it is determined that the array of model names to be updated meets the conditions for continuing comparison and update, the next update element is determined as the current update element, and the step of determining whether the current replacement element and the current update element meet the preset name consistency condition is executed again, until the array of replacement source model names does not meet the conditions for continuing comparison and replacement. Based on the overall model replacement results of all the target configuration models, the updated controlled object model is determined.

[0019] A third aspect of the present invention discloses another model update control device for a BMS-HIL system, the device comprising: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the model update control method for BMS-HIL system disclosed in the first aspect of the present invention.

[0020] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the model update control method for BMS-HIL systems disclosed in the first aspect of the present invention.

[0021] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: In this embodiment of the invention, when a model update trigger command for the controlled object model to be updated is detected, a corresponding model determination operation is performed based on the determined model configuration information to obtain a target configuration model. Based on this target configuration model, a corresponding model update operation is performed on the controlled object model to be updated to obtain the updated controlled object model. Therefore, this invention can achieve model update control of the controlled object model through model determination and model replacement operations, which is beneficial to improving the accuracy and reliability of model update control, improving the efficiency and convenience of model update control, and effectively avoiding the phenomenon of missed model building or incorrect model building caused by manual model building, thus improving the accuracy and reliability of the determined updated model. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a schematic flowchart of a model update control method for a BMS-HIL system disclosed in an embodiment of the present invention; Figure 2 This is a flowchart illustrating another model update control method for BMS-HIL systems disclosed in an embodiment of the present invention. Figure 3 This is a schematic diagram of the structure of a model update control device applied to a BMS-HIL system disclosed in an embodiment of the present invention; Figure 4 This is a schematic diagram of another model update control device for a BMS-HIL system disclosed in an embodiment of the present invention; Figure 5 This is a flowchart illustrating another model update control method for BMS-HIL systems disclosed in an embodiment of the present invention; Figure 6 This is a flowchart illustrating an automatic determination / generation method for the input model of a controlled object (i.e., the core model input model) disclosed in an embodiment of the present invention. Figure 7 This is a flowchart illustrating an automatic determination / automatic generation method for the output model of a controlled object (i.e., the core model output model) disclosed in an embodiment of the present invention. Figure 8 This is a flowchart illustrating an automatic determination / generation method for a CAN input model disclosed in an embodiment of the present invention. Figure 9 This is a flowchart illustrating an automatic determination / generation method for a CAN output model disclosed in an embodiment of the present invention. Figure 10 This is a schematic flowchart of a model replacement and update method disclosed in an embodiment of the present invention. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0026] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0027] This invention discloses a model update control method and apparatus for BMS-HIL systems. It enables model update control of the controlled object model through model determination and model replacement operations, which improves the accuracy and reliability of model update control, as well as its efficiency and convenience. This effectively avoids the phenomenon of missed or incorrect model building caused by manual model construction, and ultimately enhances the accuracy and reliability of the determined updated model. Detailed descriptions follow.

[0028] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating a model update control method applied to a BMS-HIL system, as disclosed in an embodiment of the present invention. Figure 1 The described method can be applied to the model update control device of a BMS-HIL system, wherein the device may include a server, which may be a local server or a cloud server, and this embodiment of the invention is not limited thereto. Figure 1 As shown, the model update control method applied to the BMS-HIL system includes the following operations: 101. When a model update trigger command is detected for the controlled object model to be updated, the corresponding model determination operation is performed according to the determined model configuration information to obtain the target configuration model.

[0029] Optionally, the target configuration model may include, but is not limited to, one or more of the following: the controlled object model input model (e.g., the core model input model), the controlled object model output model (e.g., the core model output model), the CAN input model, the CAN output model, and other related models of the controlled object model in BMS-HIL. This embodiment of the invention does not limit the specific model.

[0030] 102. Based on the target configuration model, perform the corresponding model update operation on the controlled object model to be updated to obtain the updated controlled object model.

[0031] Optionally, this solution can be applied to, but is not limited to, BMS-HIL systems for construction machinery; furthermore, a flowchart illustrating another model update control method for BMS-HIL systems disclosed in this embodiment of the invention can also be found in, but is not limited to, the appendix to the specification. Figure 5 As shown, specifically, the embodiments of the present invention mainly involve the automatic generation of the input model of the controlled object model, the automatic generation of the output model of the controlled object model, the automatic generation of the CAN input model, the automatic generation of the CAN output model, and a one-click model replacement. The automatic generation of the input / output model of the controlled object model mainly generates the input / output interface model associated with the core model of the controlled object model. The automatic generation of the CAN input / output model mainly generates the input / output model related to the CAN interface. After the model is generated, a one-click replacement is performed to complete the model update of the controlled object model. The embodiments of the present invention are not limited.

[0032] Optionally, the automatically generated controlled object model input model, controlled object model output model, CAN input model, and CAN output model can be used to replace the modules with the same names in the controlled object model to be updated, thereby updating the controlled object model to be updated. This embodiment of the invention does not impose any limitations on this method.

[0033] As can be seen, the model update control method for BMS-HIL systems described in this embodiment of the invention can realize model update control of the controlled object model through model determination operation and model replacement operation, which is beneficial to improving the accuracy and reliability of model update control, improving the efficiency and convenience of model update control, and effectively avoiding the phenomenon of missing model building or incorrect model building caused by manual model building, and improving the accuracy and reliability of the determined updated model.

[0034] In an optional embodiment, the above-mentioned process of performing a corresponding model determination operation based on the determined model configuration information to obtain the target configuration model may include: When the model update trigger instruction includes the first model update trigger instruction for the core model input model, the corresponding model determination operation is performed according to the first undetermined model channel number and the first CAN database file information in the determined model configuration information to obtain the core model input model; When the model update trigger instruction includes a second model update trigger instruction for the core model output model, the corresponding model determination operation is performed based on the second undetermined model channel number and the second CAN database file information in the determined model configuration information to obtain the core model output model. When the model update trigger instruction includes a third model update trigger instruction for the CAN input model, the corresponding model determination operation is performed according to the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model; When the model update trigger instruction includes the fourth model update trigger instruction for the CAN output model, the corresponding model determination operation is performed according to the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model; Determine the target configuration model based on the core model input model and / or the core model output model and / or the CAN input model and / or the CAN output model.

[0035] Optionally, the first model update trigger instruction is used to trigger the determination / generation operation of the core model input model, the second model update trigger instruction is used to trigger the determination / generation operation of the core model output model, the third model update trigger instruction is used to trigger the determination / generation operation of the CAN input model, and the fourth model update trigger instruction is used to trigger the determination / generation operation of the CAN output model. This embodiment of the invention does not limit the scope of the invention.

[0036] Optionally, when it is detected that the user clicks the "Automatic Generation of Controlled Object Model Input Model" button on the main interface (i.e., the first model update trigger instruction), the automatic determination / automatic generation operation of the core model input model is executed; furthermore, the core model input model can be understood as the input interface model of the core model of the BMS-HIL controlled object model, and its main function is to provide input CAN signals for the core model. This embodiment of the invention does not limit this.

[0037] Optionally, when the user clicks the "Automatic Generation of Controlled Object Model Output Model" button on the main interface (i.e., the second model update trigger instruction), the automatic determination / generation operation of the core model output model is executed; furthermore, the core model output model can be understood as the output interface model of the core model of the BMS-HIL controlled object model, and its main function is to be able to process the CAN signal output by the core model. This embodiment of the invention does not limit this.

[0038] Optionally, when the system detects that the user clicks the "Automatic Generation of CAN Input Model" button on the main interface (i.e., the third model update trigger instruction), the automatic determination / generation of the CAN input model is performed. Furthermore, the CAN input model can be understood as a CAN input interface model that receives CAN messages output by the BMS, parses out CAN signals, and provides the controlled object model. Its main function is to provide the controlled object model with all the output CAN signals of the BMS. This embodiment of the invention does not limit this.

[0039] Optionally, when the user clicks the "Automatic Generation of CAN Output Model" button on the main interface (i.e., the fourth model update trigger instruction), the automatic determination / generation of the CAN output model is executed. Further, the CAN output model receives the output signal of the controlled object model, packages the signal into CAN format data, outputs it to the CANWrite module, and provides the CAN output interface model of the controlled object model. Its main function is to convert the output signal of the controlled object model into a CAN signal. This embodiment of the invention does not limit the scope of the invention.

[0040] Optionally, the core models in the core model input model and core model output model may include, but are not limited to, one or more of the following: controller model related to BMS, component physical model, vehicle dynamics model, and other core models related to BMS; further, examples include: battery model, cell model, motor model, vehicle controller model, motor controller model, etc., but this embodiment of the invention does not limit them.

[0041] As can be seen, this optional embodiment can perform corresponding model determination operations to obtain different target configuration models based on different model update trigger instructions and model configuration information. This is beneficial to improving the comprehensiveness and rationality of the target configuration model determination method, as well as the diversity, flexibility, and pertinence of the target configuration model determination method. In turn, it is beneficial to improve the diversity and fit of the determined target configuration models, and the accuracy and reliability of the determined target configuration models.

[0042] In another optional embodiment, the above-mentioned model determination operation, based on the first number of channels to be determined in the determined model configuration information and the first CAN database file information, to obtain the core model input model, may include: Based on the number of channels of the first model to be determined and the information of the first CAN database file in the determined model configuration information, the first blank model for the input model of the core model is determined from the pre-built custom model library, and one or more first message information is determined based on the information of the first CAN database file. For each first message, determine whether the first message meets the preset BMS sending conditions; When it is determined that the first message information meets the BMS sending conditions, a second blank model for the message input model is determined from the custom model library, and a first signal model for each first message signal is determined according to each first message signal in the first message information. Based on the second blank model and all the first signal models corresponding to each first message information, determine the message model of each first message information; Based on the first blank model and the message models of all first message information, determine the core model input model.

[0043] Optionally, when it is determined that the first message does not meet the BMS sending conditions, the above steps of determining whether the first message meets the preset BMS sending conditions for each first message are executed again. This embodiment of the invention does not limit the scope of the invention.

[0044] Optionally, a detailed flowchart illustrating the automatic determination / generation of the controlled object input model (i.e., the core model input model) can be provided in accordance with, but is not limited to, the appendix to the instruction manual. Figure 6 As shown, the embodiments of the present invention are not limited.

[0045] Optionally, when the first model update trigger command is detected, a custom model library file is loaded, and then an input dialog box pops up, where the user manually inputs information such as the number of channels of the model to be generated (i.e., the core model input model), the path and name of the CAN database file, etc., to obtain the number of channels of the first model to be determined and the information of the first CAN database file in the model configuration information. This embodiment of the invention does not limit this.

[0046] Optionally, for example: Based on manually input information (i.e., the number of channels of the first model to be determined and the information of the first CAN database file in the model configuration information), firstly, copy the blank model of the controlled object model input model (i.e., the first blank model of the core model input model) from the custom model library, then read the message (i.e., the first message information) in the first CAN database file (such as a DBC file), and determine whether the message was sent by the BMS; if the message was not sent by the BMS, then execute the step of "reading the message in the first CAN database file (such as a DBC file)" again; if the message was sent by the BMS, firstly, copy the second blank model for the message input model from the custom model library, and then read the signal (i.e., the first message information) in the message. The process involves generating a signal model (i.e., the first signal model of the first message signal) based on the signals read from the message. Finally, it determines whether the signal model of the message has been fully generated. If the signals of the message have been fully generated, then the message model is fully generated. If the signals of the message have not been fully generated, the "read signals from the message" step is executed again. Finally, it determines whether all message models have been fully generated. If all message models have not been fully generated, the "read messages from the first CAN database file (e.g., a DBC file)" step is executed again to continue the process. If all message models have been fully generated, the controlled object model input model is saved, thus obtaining the core model input model, and the automatic generation process of the controlled object model input model ends. This embodiment of the invention does not impose limitations.

[0047] As can be seen, this optional embodiment can provide a specific method for determining the core model input model. It determines the message model based on the second blank model and the first signal model for the message input model, and determines the core model input model based on the message model and the first blank model for the core model input model. This is beneficial to improving the comprehensiveness, rationality, and progressiveness of the method for determining the core model input model, and to improving the diversity and flexibility of the building modules used to construct the core model input model. In turn, it is beneficial to improving the accuracy and reliability of the determined core model input model.

[0048] In another optional embodiment, the above-mentioned model determination operation, based on the second undetermined model channel number and the second CAN database file information in the determined model configuration information, to obtain the core model output model, may include: Based on the number of second undetermined model channels and the second CAN database file information in the determined model configuration information, a third blank model for the core model output model is determined from the pre-built custom model library, and one or more second message information is determined based on the second CAN database file information. For each second message, determine whether the second message meets the preset non-BMS sending conditions; When it is determined that the second message information meets the non-BMS sending conditions, the fourth blank model for the message output model is determined from the custom model library, and the second signal model for each second message signal is determined according to each second message signal in the second message information. Based on the fourth blank model and all the second signal models corresponding to each second message information, determine the message model of each second message information; Based on the third blank model and the message models of all second message information, determine the core model output model.

[0049] Optionally, when it is determined that the second message does not meet the non-BMS sending conditions, the above steps of determining whether the second message meets the preset non-BMS sending conditions for each second message are executed again. This embodiment of the invention does not limit the scope of the invention.

[0050] Optionally, a detailed flowchart illustrating the automatic determination / generation of the controlled object's output model (i.e., the core model's output model) can be provided, but is not limited to, the attached diagram of the instruction manual. Figure 7 As shown, the embodiments of the present invention are not limited.

[0051] Optionally, when a second model update trigger command is detected, a custom model library file is loaded, and then an input dialog box pops up, allowing the user to manually input information such as the number of channels of the model to be generated (i.e., the core model output model), the path and name of the CAN database file, etc., to obtain the number of channels of the second model to be determined and the information of the second CAN database file in the model configuration information. This embodiment of the invention does not impose any limitations.

[0052] Optionally, for example: Based on manually input information (i.e., the number of channels of the second model to be determined and the information of the second CAN database file in the model configuration information), copy the blank model of the controlled object model output model (i.e., the third blank model of the core model output model) from the custom model library. Then, read the message (i.e., the second message information) in the second CAN database file (DBC file) and determine whether the message was not sent by the BMS. If the message was sent by the BMS, then execute the step of "reading the message in the second CAN database file (DBC file)" again; if the message was not sent by the BMS, first copy the blank model of the "message output model" (i.e., the fourth blank model) from the custom model library, and then read the signal (i.e., the first blank model) in the message. The second message signal is used to generate a signal model (i.e., the second signal model of the second message signal) based on the signals read from the message. Finally, it is determined whether the signal model of the message has been generated. If the signal of the message has been generated, the message model is generated. If the signal of the message has not been generated, the "read the signal in the message" step is executed again. Further, it is determined whether all message models have been generated. If all message models have not been generated, the initial "read the message in the second CAN database file (DBC file)" step is executed again to continue the process. If all message models have been generated, the controlled object model output model is saved, that is, the core model output model is obtained, and the automatic generation process of the controlled object model output model ends. This embodiment of the invention is not limited.

[0053] As can be seen, this optional embodiment can provide a specific method for determining the core model output model. It determines the message model based on the second blank model and the second signal model for the message output model, and determines the core model output model based on the message model and the first blank model for the core model output model. This is beneficial to improving the comprehensiveness, rationality, and progressiveness of the method for determining the core model output model, and to improving the diversity and flexibility of the building modules used to construct the core model output model. In turn, it is beneficial to improving the accuracy and reliability of the determined core model output model.

[0054] In another optional embodiment, the above-mentioned model determination operation, performed based on the first CAN communication configuration information in the determined model configuration information, to obtain the CAN input model, may include: Based on the first CAN communication configuration information in the determined model configuration information and the pre-built custom model library, the fifth blank model for the CAN input model is determined, and the CAN signal reading module is determined. Based on the third CAN database file information in the first CAN communication configuration information, determine one or more third message information that meet the preset BMS transmission conditions; For each third message, the corresponding CAN message model determination and message parsing module determination operations are performed based on the third message to obtain the first CAN message model of the third message, which includes a message parsing module; and the third signal model of each third message signal is determined based on each third message signal in the third message. The CAN input model is determined based on the fifth blank model, the CAN signal reading module, the first CAN message model corresponding to each third message information, and all third signal models.

[0055] Optionally, a detailed flowchart illustrating the automatic determination / generation of the CAN input model can be provided, but is not limited to, the attached instruction manual. Figure 8 As shown, the embodiments of the present invention are not limited.

[0056] Optionally, when a third model update trigger command is detected, a custom model library file is loaded, and then an input dialog box pops up. The user manually inputs information such as selecting the CAN database file (DBC) to be generated, entering the network segment name and determining the CAN channel number, and selecting the real controller (BMS) to obtain the first CAN communication configuration information in the model configuration information. This embodiment of the invention does not limit this.

[0057] Optionally, for example: Based on manually input information, create a new blank model (i.e., the fifth blank model for the CAN input model) and copy the CANRead module to the blank model, and determine the CAN channel number; then read the message sent by the BMS (i.e., the third message information) from the third CAN database file (such as a DBC file), copy and change the CAN message model of the read message (i.e., the first CAN message model), and generate a message parsing module to read the signals in the third message (i.e., the third message signals), and generate a message parsing module based on the signals read from the third message. The signal model (i.e., the third signal model of the third message signal) is then determined. Finally, it is determined whether the signal model of the message has been generated. If the signal of the message has been generated, then the message model has been generated. If the signal of the message has not been generated, the "read signal in the third message" step is executed again. Finally, it is determined whether all message models have been generated. If all message models have not been generated, the initial "read BMS send message" step is executed again to continue the process. If all message models have been generated, the CAN input model is saved, and the automatic CAN input model generation process ends. This embodiment of the invention is not limited.

[0058] As can be seen, this optional embodiment can provide a specific method for determining the CAN input model. Based on the determined fifth blank model for the CAN input model, the CAN signal reading module, the first CAN message model corresponding to each third message information, and all third signal models, the CAN input model is determined. This is beneficial to improving the comprehensiveness, rationality, and progressiveness of the CAN input model determination method, and to improving the diversity and flexibility of the building modules used to construct the CAN input model. In turn, it is beneficial to improving the accuracy and reliability of the determined CAN input model.

[0059] In another optional embodiment, the above-mentioned model determination operation based on the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model may include: Based on the second CAN communication configuration information in the determined model configuration information and the pre-built custom model library, determine the sixth blank model for the CAN output model; Based on the network segment name information in the second CAN communication configuration information, determine the network segment enable module and CAN message transmission module for each target network segment; Based on the fourth CAN database file information in the second CAN communication configuration information, the target nodes that meet the preset non-BMS transmission conditions are determined, and the node enable module of each target node is determined. For each target node, the message output module and message enable module are determined based on the fourth message information of the target node, and the fourth signal model of each fourth message signal is determined based on each fourth message signal in the fourth message information. Based on the second CAN communication configuration information and the custom model library, the message packaging module and the CAN signal transmission module are determined; Based on the sixth blank model, the network segment enable module and CAN message transmission module of each target network segment, the node enable module and message output module and message enable module corresponding to each target node, and all fourth signal models, message packaging module and CAN signal transmission module, the CAN output model is determined.

[0060] Optionally, a detailed flowchart illustrating the automatic determination / generation of the CAN output model can be provided in accordance with, but is not limited to, the instructions attached. Figure 9 As shown, the embodiments of the present invention are not limited.

[0061] Optionally, when the fourth model update trigger command is detected, a custom model library file is loaded, and then an input dialog box pops up. The user manually inputs information such as selecting the CAN database file (DBC) to be generated, entering the network segment name and determining the CAN channel number, and selecting the real controller (BMS) to obtain the second CAN communication configuration information in the model configuration information. This embodiment of the invention does not limit this.

[0062] Optionally, for example: Based on manually input information (i.e., the second CAN communication configuration information in the model configuration information), create a new blank model (i.e., the sixth blank model for the CAN output model) and copy and generate the network segment enable module and CAN message sending module of the target network segment; then read the non-BMS nodes (i.e., the target nodes) in the fourth CAN database file (such as a DBC file), copy and generate the enable module of the target node (i.e., the node enable module of the target node) based on the read node information, then read the message of the target node (i.e., the fourth message information of the target node), copy and generate the message output module and message enable module based on the fourth message, and finally read the signal in the fourth message (i.e., the fourth message signal) to generate the signal model (i.e., the fourth signal model of the fourth message signal). The process involves determining whether the signal model of the fourth message has been fully generated. If the fourth signal model of the fourth message signal has not been fully generated, the "read signals in the fourth message" step is executed again. If the fourth signal model of the fourth message signal has been fully generated, the message model is considered complete. The message packaging module and CANWrite module (i.e., CAN signal transmission module) are then copied and generated. Finally, the process involves determining whether all message models have been fully generated. If all message models have not been fully generated, the "read messages from the target node" step is executed again to continue the process. If all message models have been fully generated and all nodes in the target network segment have finished, the CAN output model is saved, and the automatic CAN input model generation process ends. If all nodes in the target network segment have not finished, the "read non-BMS nodes" step is executed again to continue the process. This embodiment of the invention does not impose limitations on the process.

[0063] As can be seen, this optional embodiment can provide a specific method for determining the CAN output model. Based on the determined sixth blank model for the CAN output model, the network segment enable module and CAN message transmission module of each target network segment, the node enable module and message output module and message enable module corresponding to each target node, and all fourth signal models, message packaging module and CAN signal transmission module, the CAN output model is determined. This is beneficial to improving the comprehensiveness, rationality and progressiveness of the CAN output model determination method, and to improving the diversity and flexibility of the building modules used to construct the CAN output model, thereby improving the accuracy and reliability of the determined CAN output model.

[0064] Example 2 Please see Figure 2 , Figure 2 This is a flowchart illustrating another model update control method for a BMS-HIL system disclosed in an embodiment of the present invention. Figure 2 The described method can be applied to the model update control device of a BMS-HIL system, wherein the device may include a server, which may be a local server or a cloud server, and this embodiment of the invention is not limited thereto. Figure 2 As shown, the model update control method applied to the BMS-HIL system includes the following operations: 201. When a model update trigger command is detected for the controlled object model to be updated, the corresponding model determination operation is performed according to the determined model configuration information to obtain the target configuration model.

[0065] 202. Determine the replacement source model name information input by the user, and determine the update model name and path information for the controlled object model to be updated input by the user.

[0066] Optionally, when the user clicks the "One-Click Replace" button on the main interface, an input dialog box pops up, requiring manual input of the preset replacement source model name, the name and path of the controlled object model to be updated, etc., to obtain the replacement source model name information, the name and path information of the model to be updated for the controlled object model to be updated. This embodiment of the invention does not impose any limitations.

[0067] 203. Based on the target configuration model, determine the target configuration model name information, and based on the target configuration model name information and the replacement source model name information, determine the replacement source model name array.

[0068] Optionally, the above method determines the array of replacement source model names based on the target configuration model name information and the replacement source model name information. For example, a name comparison operation is performed based on the replacement source model name information and the previously automatically generated target configuration model name information to obtain the names of the replacement source models and form an array of replacement source model names. This embodiment of the invention does not impose any limitations.

[0069] 204. Based on the name and path information of the model to be updated, determine the name of the subsystem module corresponding to the controlled object model to be updated, and determine the array of model names to be updated based on all subsystem module names.

[0070] Optionally, for example: based on the name and path information of the model to be updated, the names of all subsystem modules of the controlled object model to be updated are obtained by querying and formed into an array of target model names, which is used as the array of model names to be updated. This embodiment of the invention does not impose any limitations.

[0071] 205. Based on the array of source model names to be replaced and the array of model names to be updated, perform the corresponding name information comparison and / or model element replacement operations to obtain the updated controlled object model.

[0072] In this embodiment of the invention, for other descriptions of steps 201-205, please refer to the other detailed descriptions of steps 101-102 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.

[0073] As can be seen, the embodiments of the present invention can realize model update control of the controlled object model through model determination operation and model replacement operation, which is beneficial to improving the accuracy and reliability of model update control, improving the efficiency and convenience of model update control, and effectively avoiding the phenomenon of missing model building or incorrect model building caused by manual model building, thus improving the accuracy and reliability of the determined updated model; and, it can also determine the replacement source model name array according to the target configuration model name information and the replacement source model name information, determine the model name array to be updated according to the name and path information of the model to be updated, and perform corresponding name information comparison and / or model element replacement operation according to the aforementioned array to obtain the updated controlled object model, which is beneficial to improving the comprehensiveness and rationality of the model element update method, improving the diversity, accuracy and pertinence of the reference parameters of the model element update operation, thus improving the execution accuracy and reliability of the model update operation of the controlled object model to be updated, thereby improving the accuracy and reliability of the determined updated controlled object model.

[0074] In an optional embodiment, the above-mentioned process of performing corresponding name information comparison and / or model element replacement operations based on the replacement source model name array and the model name array to be updated to obtain the updated controlled object model may include: Based on the array of source model names to be replaced, determine the current replacement element that meets the first preset replacement sorting condition, and based on the array of model names to be updated, determine the current update element that meets the second preset update sorting condition. Determine whether the currently replaced element and the currently updated element meet the preset condition of having the same name; When it is determined that the current replacement element and the current update element meet the condition of name consistency, the corresponding model element replacement operation is performed based on the current replacement element and the current update element to obtain the model element replacement result; Based on the array of replacement source model names, determine the next replacement element that meets the first preset replacement sorting condition, and based on the next replacement element, determine whether the array of replacement source model names meets the preset condition for continued comparison and replacement. When it is determined that the array of source model names to be replaced does not meet the conditions for continuing comparison and replacement, the overall model replacement result of the target configuration model is determined based on the replacement results of all model elements of the target configuration model. When it is determined that the replacement source model name array meets the conditions for continuing comparison and replacement, the next replacement element is determined as the current replacement element, and the step of judging whether the current replacement element and the current update element meet the preset name consistency condition is executed again, until the replacement source model name array no longer meets the conditions for continuing comparison and replacement. When it is determined that the current replacement element and the current update element do not meet the name consistency condition, the next update element that meets the second preset update sorting condition is determined according to the array of model names to be updated, and the array of model names to be updated is determined according to the next update element to determine whether the array of model names to be updated meets the preset condition for continued comparison and update. When it is determined that the array of model names to be updated does not meet the conditions for continuing comparison and update, the step of determining the next replacement element that meets the preset replacement sorting conditions based on the array of replacement source model names is executed again. When it is determined that the array of model names to be updated meets the conditions for continuing comparison and update, the next update element is determined as the current update element, and the step of judging whether the current replacement element and the current update element meet the preset name consistency condition is executed again, until the array of replacement source model names no longer meets the conditions for continuing comparison and replacement. Based on the overall model replacement results of all target configuration models, determine the updated controlled object model.

[0075] Optionally, the model update method for the controlled object model to be updated can refer to, but is not limited to, the appendix to the instruction manual. Figure 10 As shown, the embodiments of the present invention are not limited.

[0076] Further optionally, the above determination of whether the array of replacement source model names meets the preset conditions for continuing comparison and replacement based on the next replacement element may include: Determine if the next replacement element is in the replacement source model name array; if it is, determine that the replacement source model name array meets the preset condition for continuing comparison and replacement; if it is not, determine that the replacement source model name array does not meet the preset condition for continuing comparison and replacement; and / or, Determine if the next replacement element is greater than the length of the replacement source model name array; if the next replacement element is greater than the length of the replacement source model name array, determine that the replacement source model name array does not meet the preset condition for continuing comparison and replacement; if the next replacement element is less than or equal to the length of the replacement source model name array, determine that the replacement source model name array meets the preset condition for continuing comparison and replacement.

[0077] Further optionally, the above determination of whether the array of model names to be updated meets the preset conditions for continuing comparison and update based on the next update element may include: Determine if the next update element is in the array of model names to be updated; if it is, determine that the array of model names to be updated meets the preset conditions for continuing comparison and update; if it is not, determine that the array of replacement source model names does not meet the preset conditions for continuing comparison and update; and / or, Determine if the next update element is greater than the length of the array of model names to be updated; if the next update element is greater than the length of the array of model names to be updated, determine that the array of model names to be updated does not meet the preset condition for continuing comparison and update; if the next update element is less than or equal to the length of the array of model names to be updated, determine that the array of model names to be updated meets the preset condition for continuing comparison and update.

[0078] Optionally, for example: Extract the first replacement element (C1=1) of the source model name array Sec and the first update element (C2=1) of the model name array Trq to be updated. Compare the names of C1 and C2 elements of the source model name array with each other. If they do not match, the pointer of the model name array Trq to be updated points to the next update element (C2=C2+1). At the same time, check whether C2 exceeds the length of the model name array Trq to be updated (i.e., check whether the model name array to be updated meets the preset condition for continuing comparison and update). If C2 does not exceed the length of the array Trq (i.e., meets the condition for continuing comparison and update), then the step of "comparing the C1 element of the source model name array with the C2 element of the model name array to be updated" is executed again, and the process continues. If C2 exceeds the length of the array Trq (i.e., does not meet the condition for continuing comparison and update), then the step of "replacing the pointer of the source model name array Sec" is executed again. The process continues with the step "pointing to the next replacement element (C1=C1+1)". If the name of the C1 element of the replacement source model name array is the same as the name of the C2 element of the target model name array, the model of the C1 element of the replacement source model name array is used to replace the model of the C2 element of the target model name array. After the replacement is completed, the step "pointing to the next replacement element (C1=C1+1)" is executed. Then, it is determined whether C1 exceeds the length of the array Sec (i.e., whether the replacement source model name array meets the preset condition for continuing comparison and replacement). If C1 does not exceed the length of the array Sec (i.e., the condition for continuing comparison and replacement is met), the step "comparing the C1 element of the replacement source model name array with the C2 element of the target model name array" is executed again, and the process continues. If C1 exceeds the length of the array Sec (i.e., the condition for continuing comparison and replacement is not met), the updated controlled object model is maintained, and the process ends. This embodiment of the invention does not impose any limitations.

[0079] As can be seen, this optional embodiment can provide specific model name information comparison and model element replacement methods, which is conducive to improving the comprehensiveness, rationality and progressiveness of model name information comparison and model element replacement methods, thereby improving the accuracy and reliability of model element replacement, which in turn is conducive to improving the accuracy and reliability of the overall model replacement result of the determined target configuration model, and further conducive to improving the accuracy and reliability of the determined updated controlled object model.

[0080] Example 3 Please see Figure 3 , Figure 3 This is a schematic diagram of a model update control device applied to a BMS-HIL system, as disclosed in an embodiment of the present invention. Figure 3The described apparatus may include a server, wherein the server includes a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 3 As shown, the model update control device applied to the BMS-HIL system may include: The model determination module 301 is used to perform corresponding model determination operations based on the determined model configuration information when a model update trigger instruction for the controlled object model to be updated is detected, so as to obtain the target configuration model.

[0081] The model replacement module 302 is used to perform corresponding model update operations on the controlled object model to be updated based on the target configuration model, so as to obtain the updated controlled object model.

[0082] It is evident that implementation Figure 3 The described model update control device for the BMS-HIL system can realize model update control of the controlled object model through model determination operation and model replacement operation, which is conducive to improving the accuracy and reliability of model update control, improving the efficiency and convenience of model update control, and effectively avoiding the phenomenon of missing model building or incorrect model building caused by manual model building, and improving the accuracy and reliability of the determined updated model.

[0083] In an optional embodiment, the model determination module 301 performs a corresponding model determination operation based on the determined model configuration information, and the specific methods for obtaining the target configuration model include: When the model update trigger instruction includes the first model update trigger instruction for the core model input model, the corresponding model determination operation is performed according to the first undetermined model channel number and the first CAN database file information in the determined model configuration information to obtain the core model input model; When the model update trigger instruction includes a second model update trigger instruction for the core model output model, the corresponding model determination operation is performed based on the second undetermined model channel number and the second CAN database file information in the determined model configuration information to obtain the core model output model. When the model update trigger instruction includes a third model update trigger instruction for the CAN input model, the corresponding model determination operation is performed according to the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model; When the model update trigger instruction includes the fourth model update trigger instruction for the CAN output model, the corresponding model determination operation is performed according to the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model; Determine the target configuration model based on the core model input model and / or the core model output model and / or the CAN input model and / or the CAN output model.

[0084] It is evident that implementation Figure 3 The described device can also update the trigger command and model configuration information according to different models, and perform corresponding model determination operations to obtain different target configuration models. This is conducive to improving the comprehensiveness and rationality of the target configuration model determination method, improving the diversity, flexibility and pertinence of the target configuration model determination method, and thus improving the diversity and fit of the determined target configuration models, and improving the accuracy and reliability of the determined target configuration models.

[0085] In another optional embodiment, the model determination module 301 performs a corresponding model determination operation based on the number of channels of the first model to be determined and the information of the first CAN database file in the determined model configuration information, and the specific methods for obtaining the core model input model include: Based on the number of channels of the first model to be determined and the information of the first CAN database file in the determined model configuration information, the first blank model for the input model of the core model is determined from the pre-built custom model library, and one or more first message information is determined based on the information of the first CAN database file. For each first message, determine whether the first message meets the preset BMS sending conditions; When it is determined that the first message information meets the BMS sending conditions, a second blank model for the message input model is determined from the custom model library, and a first signal model for each first message signal is determined according to each first message signal in the first message information. Based on the second blank model and all the first signal models corresponding to each first message information, determine the message model of each first message information; Based on the first blank model and the message models of all first message information, determine the core model input model.

[0086] It is evident that implementation Figure 3 The described apparatus can also provide a specific method for determining the core model input model. It determines the message model based on the second blank model and the first signal model for the message input model, and determines the core model input model based on the message model and the first blank model for the core model input model. This method is beneficial to improving the comprehensiveness, rationality, and progressiveness of the core model input model determination method, and is beneficial to improving the diversity and flexibility of the building modules used to construct the core model input model. In turn, it is beneficial to improving the accuracy and reliability of the determined core model input model.

[0087] In another optional embodiment, the model determination module 301 performs a corresponding model determination operation based on the number of channels of the second model to be determined and the second CAN database file information in the determined model configuration information, and the specific methods for obtaining the core model output model include: Based on the number of second undetermined model channels and the second CAN database file information in the determined model configuration information, a third blank model for the core model output model is determined from the pre-built custom model library, and one or more second message information is determined based on the second CAN database file information. For each second message, determine whether the second message meets the preset non-BMS sending conditions; When it is determined that the second message information meets the non-BMS sending conditions, the fourth blank model for the message output model is determined from the custom model library, and the second signal model for each second message signal is determined according to each second message signal in the second message information. Based on the fourth blank model and all the second signal models corresponding to each second message information, determine the message model of each second message information; Based on the third blank model and the message models of all second message information, determine the core model output model.

[0088] It is evident that implementation Figure 3 The described apparatus can also provide a specific method for determining the core model output model. It determines the message model based on the second blank model and the second signal model for the message output model, and determines the core model output model based on the message model and the first blank model for the core model output model. This method is beneficial to improving the comprehensiveness, rationality, and progressiveness of the method for determining the core model output model, and is beneficial to improving the diversity and flexibility of the building modules used to construct the core model output model. In turn, it is beneficial to improving the accuracy and reliability of the determined core model output model.

[0089] In another optional embodiment, the model determination module 301 performs a corresponding model determination operation based on the first CAN communication configuration information in the determined model configuration information, and the specific methods for obtaining the CAN input model include: Based on the first CAN communication configuration information in the determined model configuration information and the pre-built custom model library, the fifth blank model for the CAN input model is determined, and the CAN signal reading module is determined. Based on the third CAN database file information in the first CAN communication configuration information, determine one or more third message information that meet the preset BMS transmission conditions; For each third message, the corresponding CAN message model determination and message parsing module determination operations are performed based on the third message to obtain the first CAN message model of the third message, which includes a message parsing module; and the third signal model of each third message signal is determined based on each third message signal in the third message. The CAN input model is determined based on the fifth blank model, the CAN signal reading module, the first CAN message model corresponding to each third message information, and all third signal models.

[0090] It is evident that implementation Figure 3 The described device can also provide a specific method for determining the CAN input model. Based on the determined fifth blank model for the CAN input model, the CAN signal reading module, the first CAN message model corresponding to each third message information, and all third signal models, the CAN input model is determined. This helps to improve the comprehensiveness, rationality, and progressiveness of the CAN input model determination method, and helps to improve the diversity and flexibility of the building modules used to construct the CAN input model, thereby improving the accuracy and reliability of the determined CAN input model.

[0091] In another optional embodiment, the model determination module 301 performs a corresponding model determination operation based on the second CAN communication configuration information in the determined model configuration information, and the specific methods for obtaining the CAN output model include: Based on the second CAN communication configuration information in the determined model configuration information and the pre-built custom model library, determine the sixth blank model for the CAN output model; Based on the network segment name information in the second CAN communication configuration information, determine the network segment enable module and CAN message transmission module for each target network segment; Based on the fourth CAN database file information in the second CAN communication configuration information, the target nodes that meet the preset non-BMS transmission conditions are determined, and the node enable module of each target node is determined. For each target node, the message output module and message enable module are determined based on the fourth message information of the target node, and the fourth signal model of each fourth message signal is determined based on each fourth message signal in the fourth message information. Based on the second CAN communication configuration information and the custom model library, the message packaging module and the CAN signal transmission module are determined; Based on the sixth blank model, the network segment enable module and CAN message transmission module of each target network segment, the node enable module and message output module and message enable module corresponding to each target node, and all fourth signal models, message packaging module and CAN signal transmission module, the CAN output model is determined.

[0092] It is evident that implementation Figure 3 The described device can also provide a specific method for determining the CAN output model. Based on the determined sixth blank model for the CAN output model, the network segment enable module and CAN message transmission module for each target network segment, the node enable module and message output module and message enable module corresponding to each target node, and all fourth signal models, message packaging module and CAN signal transmission module, the CAN output model is determined. This is beneficial to improving the comprehensiveness, rationality and progressiveness of the CAN output model determination method, and to improving the diversity and flexibility of the building modules used to construct the CAN output model, thereby improving the accuracy and reliability of the determined CAN output model.

[0093] In another optional embodiment, the model replacement module 302 performs a corresponding model update operation on the controlled object model to be updated based on the target configuration model, and the method for obtaining the updated controlled object model specifically includes: Determine the replacement source model name information input by the user, and determine the update model name and path information for the controlled object model to be updated input by the user; Based on the target configuration model, determine the target configuration model name information, and based on the target configuration model name information and the replacement source model name information, determine the replacement source model name array; Based on the name and path information of the model to be updated, determine the name of the subsystem module corresponding to the controlled object model to be updated, and determine the array of model names to be updated based on all subsystem module names; Based on the array of source model names to be replaced and the array of model names to be updated, perform the corresponding name information comparison and / or model element replacement operations to obtain the updated controlled object model.

[0094] It is evident that implementation Figure 3 The described apparatus can also determine an array of replacement source model names based on the target configuration model name information and the replacement source model name information, determine an array of model names to be updated based on the model name to be updated and path information, and perform corresponding name information comparison and / or model element replacement operations based on the aforementioned arrays to obtain the updated controlled object model. This is beneficial to improving the comprehensiveness and rationality of the model element update method, improving the diversity, accuracy and pertinence of the reference parameters for the model element update operation, and thus improving the execution accuracy and reliability of the model update operation of the controlled object model to be updated, thereby improving the accuracy and reliability of the determined updated controlled object model.

[0095] In another optional embodiment, the model replacement module 302 performs corresponding name information comparison and / or model element replacement operations based on the replacement source model name array and the model name array to be updated, specifically obtaining the updated controlled object model in the following ways: Based on the array of source model names to be replaced, determine the current replacement element that meets the first preset replacement sorting condition, and based on the array of model names to be updated, determine the current update element that meets the second preset update sorting condition. Determine whether the currently replaced element and the currently updated element meet the preset condition of having the same name; When it is determined that the current replacement element and the current update element meet the condition of name consistency, the corresponding model element replacement operation is performed based on the current replacement element and the current update element to obtain the model element replacement result; Based on the array of replacement source model names, determine the next replacement element that meets the first preset replacement sorting condition, and based on the next replacement element, determine whether the array of replacement source model names meets the preset condition for continued comparison and replacement. When it is determined that the array of source model names to be replaced does not meet the conditions for continuing comparison and replacement, the overall model replacement result of the target configuration model is determined based on the replacement results of all model elements of the target configuration model. When it is determined that the replacement source model name array meets the conditions for continuing comparison and replacement, the next replacement element is determined as the current replacement element, and the step of judging whether the current replacement element and the current update element meet the preset name consistency condition is executed again, until the replacement source model name array no longer meets the conditions for continuing comparison and replacement. When it is determined that the current replacement element and the current update element do not meet the name consistency condition, the next update element that meets the second preset update sorting condition is determined according to the array of model names to be updated, and the array of model names to be updated is determined according to the next update element to determine whether the array of model names to be updated meets the preset condition for continued comparison and update. When it is determined that the array of model names to be updated does not meet the conditions for continuing comparison and update, the step of determining the next replacement element that meets the preset replacement sorting conditions based on the array of replacement source model names is executed again. When it is determined that the array of model names to be updated meets the conditions for continuing comparison and update, the next update element is determined as the current update element, and the step of judging whether the current replacement element and the current update element meet the preset name consistency condition is executed again, until the array of replacement source model names no longer meets the conditions for continuing comparison and replacement. Based on the overall model replacement results of all target configuration models, determine the updated controlled object model.

[0096] It is evident that implementation Figure 3The described device can also provide specific model name information comparison and model element replacement methods, which helps to improve the comprehensiveness, rationality and progressiveness of model name information comparison and model element replacement methods, thereby improving the accuracy and reliability of model element replacement, which in turn helps to improve the accuracy and reliability of the overall model replacement result of the determined target configuration model, and further helps to improve the accuracy and reliability of the determined updated controlled object model.

[0097] Example 4 Please see Figure 4 , Figure 4 This is a schematic diagram of another model update control device applied to a BMS-HIL system disclosed in an embodiment of the present invention. Figure 4 The described apparatus may include a server, wherein the server includes a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 4 As shown, the device may include: Memory 401 storing executable program code; Processor 402 coupled to memory 401; Furthermore, it may also include an input interface 403 coupled to the processor 402 and an output interface 404; The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the model update control method for the BMS-HIL system described in Embodiment 1 or Embodiment 2.

[0098] Example 5 This invention discloses a computer storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to execute the steps in the model update control method for a BMS-HIL system described in Embodiment 1 or Embodiment 2.

[0099] Example 6 This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the model update control method for a BMS-HIL system described in Embodiment 1 or Embodiment 2.

[0100] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0101] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0102] Finally, it should be noted that the model update control method and apparatus for BMS-HIL systems disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A model update control method applied to a BMS-HIL system, characterized in that, The method includes: When a model update trigger command for the controlled object model to be updated is detected, the corresponding model determination operation is performed according to the determined model configuration information to obtain the target configuration model; Based on the target configuration model, perform the corresponding model update operation on the controlled object model to be updated to obtain the updated controlled object model.

2. The model update control method applied to a BMS-HIL system according to claim 1, characterized in that, The step of performing corresponding model determination operations based on the determined model configuration information to obtain the target configuration model includes: When the model update triggering instruction includes a first model update triggering instruction for the core model input model, the corresponding model determination operation is performed according to the first undetermined model channel number and the first CAN database file information in the determined model configuration information to obtain the core model input model. When the model update triggering instruction includes a second model update triggering instruction for the core model output model, the corresponding model determination operation is performed according to the second undetermined model channel number and the second CAN database file information in the determined model configuration information to obtain the core model output model; When the model update triggering instruction includes a third model update triggering instruction for the CAN input model, the corresponding model determination operation is performed according to the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model; When the model update triggering instruction includes a fourth model update triggering instruction for the CAN output model, the corresponding model determination operation is performed according to the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model; The target configuration model is determined based on the core model input model and / or the core model output model and / or the CAN input model and / or the CAN output model.

3. The model update control method applied to the BMS-HIL system according to claim 2, characterized in that, The process involves performing a corresponding model determination operation based on the first undetermined model channel number and the first CAN database file information from the determined model configuration information, to obtain the core model input model, including: Based on the number of channels of the first model to be determined and the information of the first CAN database file in the determined model configuration information, the first blank model for the input model of the core model is determined from the pre-built custom model library, and one or more first message information is determined based on the information of the first CAN database file. For each of the first message messages, determine whether the first message message meets the preset BMS sending conditions; When it is determined that the first message information meets the BMS sending conditions, a second blank model for the message input model is determined from the custom model library, and a first signal model for each first message signal is determined according to each first message signal in the first message information. Based on the second blank model and all the first signal models corresponding to each first message information, determine the message model of each first message information; Based on the first blank model and the message models of all the first message information, determine the core model input model; And, based on the determined model configuration information, the second undetermined model channel number and the second CAN database file information are used to perform the corresponding model determination operation to obtain the core model output model, including: Based on the number of second undetermined model channels and the second CAN database file information in the determined model configuration information, a third blank model for the core model output model is determined from the pre-built custom model library, and one or more second message information is determined based on the second CAN database file information; For each of the second message messages, determine whether the second message message meets the preset non-BMS sending conditions; When it is determined that the second message information meets the non-BMS sending condition, a fourth blank model for the message output model is determined from the custom model library, and a second signal model for each second message signal is determined according to each second message signal in the second message information. Based on the fourth blank model and all the second signal models corresponding to each second message information, determine the message model of each second message information; Based on the third blank model and the message models of all the second message information, the core model output model is determined.

4. The model update control method applied to the BMS-HIL system according to claim 2, characterized in that, The step of performing a corresponding model determination operation based on the first CAN communication configuration information in the determined model configuration information to obtain the CAN input model includes: Based on the first CAN communication configuration information in the determined model configuration information and the pre-built custom model library, the fifth blank model for the CAN input model is determined, and the CAN signal reading module is determined. Based on the third CAN database file information in the first CAN communication configuration information, determine one or more third message information that meet the preset BMS transmission conditions; For each of the third message messages, the corresponding CAN message model determination and message parsing module determination operations are performed based on the third message message to obtain the first CAN message model of the third message message, wherein the first CAN message model includes a message parsing module; and the third signal model of each of the third message signals is determined based on each third message signal in the third message message. The CAN input model is determined based on the fifth blank model, the CAN signal reading module, the first CAN message model corresponding to each third message information, and all third signal models.

5. The model update control method applied to a BMS-HIL system according to claim 2, characterized in that, The step of performing a corresponding model determination operation based on the second CAN communication configuration information in the determined model configuration information to obtain the CAN output model includes: Based on the second CAN communication configuration information in the determined model configuration information and the pre-built custom model library, determine the sixth blank model for the CAN output model; Based on the network segment name information in the second CAN communication configuration information, determine the network segment enable module and CAN message sending module for each target network segment; Based on the fourth CAN database file information in the second CAN communication configuration information, target nodes that meet the preset non-BMS transmission conditions are determined, and the node enable module of each target node is determined. For each target node, a message output module and a message enable module are determined based on the fourth message information of the target node, and a fourth signal model for each fourth message signal is determined based on each fourth message signal in the fourth message information. Based on the second CAN communication configuration information and the custom model library, the message packaging module and the CAN signal transmission module are determined; The CAN output model is determined based on the sixth blank model, the network segment enable module and CAN message transmission module of each target network segment, the node enable module and message output module and message enable module corresponding to each target node, all fourth signal models, the message packaging module and the CAN signal transmission module.

6. The model update control method for a BMS-HIL system according to any one of claims 1-5, characterized in that, The step of performing a corresponding model update operation on the controlled object model to be updated according to the target configuration model to obtain the updated controlled object model includes: Determine the replacement source model name information input by the user, and determine the update model name and path information for the controlled object model to be updated input by the user. Based on the target configuration model, determine the target configuration model name information, and based on the target configuration model name information and the replacement source model name information, determine the replacement source model name array; Based on the name and path information of the model to be updated, determine the name of the subsystem module corresponding to the controlled object model to be updated, and determine the array of model names to be updated based on all the names of the subsystem modules. Based on the array of replacement source model names and the array of model names to be updated, perform corresponding name information comparison and / or model element replacement operations to obtain the updated controlled object model.

7. The model update control method applied to a BMS-HIL system according to claim 6, characterized in that, The step of performing corresponding name information comparison and / or model element replacement operations based on the replacement source model name array and the model name array to be updated to obtain the updated controlled object model includes: Based on the array of replacement source model names, determine the current replacement element that satisfies the first preset replacement sorting condition, and based on the array of model names to be updated, determine the current update element that satisfies the second preset update sorting condition. Determine whether the currently replaced element and the currently updated element meet a preset name consistency condition; When it is determined that the current replacement element and the current update element satisfy the name consistency condition, the corresponding model element replacement operation is performed based on the current replacement element and the current update element to obtain the model element replacement result; Based on the array of replacement source model names, determine the next replacement element that satisfies the first preset replacement sorting condition, and based on the next replacement element, determine whether the array of replacement source model names satisfies the preset condition for continuing comparison and replacement. When it is determined that the array of replacement source model names does not meet the conditions for continuing comparison and replacement, the overall model replacement result of the target configuration model is determined based on the replacement results of all model elements of the target configuration model. When it is determined that the replacement source model name array meets the condition for continuing comparison and replacement, the next replacement element is determined as the current replacement element, and the step of determining whether the current replacement element and the current update element meet the preset name consistency condition is executed again until the replacement source model name array does not meet the condition for continuing comparison and replacement. When it is determined that the current replacement element and the current update element do not meet the name consistency condition, the next update element that meets the second preset update sorting condition is determined according to the array of model names to be updated, and the array of model names to be updated is determined according to the next update element to determine whether the array of model names to be updated meets the preset condition for continued comparison and update. When it is determined that the array of model names to be updated does not meet the conditions for continuing comparison and updating, the step of determining the next replacement element that meets the preset replacement sorting conditions based on the array of replacement source model names is executed again. When it is determined that the array of model names to be updated meets the conditions for continuing comparison and update, the next update element is determined as the current update element, and the step of determining whether the current replacement element and the current update element meet the preset name consistency condition is executed again, until the array of replacement source model names does not meet the conditions for continuing comparison and replacement. Based on the overall model replacement results of all the target configuration models, the updated controlled object model is determined.

8. A model update control device applied to a BMS-HIL system, characterized in that, The device includes: The model determination module is used to perform corresponding model determination operations based on the determined model configuration information when a model update trigger instruction for the controlled object model to be updated is detected, so as to obtain the target configuration model. The model replacement module is used to perform corresponding model update operations on the controlled object model to be updated according to the target configuration model, so as to obtain the updated controlled object model.

9. A model update control device applied to a BMS-HIL system, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the model update control method applied to the BMS-HIL system as described in any one of claims 1-7.

10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the model update control method for the BMS-HIL system as described in any one of claims 1-7.