A model running method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202611136833.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-10-27
AI Technical Summary
[0009]本发明实施例的技术方案,确定模型描述信息集合;基于所述模型描述信息集合,对各所述待集成模型进行封装,得到通道描述信息集合;基于所述通道描述信息集合,确定运行状态。通过模型描述信息集合对各待集成模型进行封装,得到通道描述信息集合,使通信导航系统所对应的待集成模型可以被统一适配集成,提高了集成效率,基于通道描述信息集合确定运行状态,实现了待集成模型之间的协同运行,保证通信导航系统的稳定运行。
Smart Images

Figure CN122993798A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a model running method, apparatus, electronic device, and storage medium. Background Technology
[0002] The Earth-Moon communication and navigation system's satellites are deployed near the Earth-Moon space libration point and in near-lunar space, providing communication, navigation, information services, and non-cooperative target situational awareness services to users in the Earth-Moon space and on the lunar surface. To address the digital simulation requirements of the Earth-Moon communication and navigation system, it is necessary to develop a digital simulation system to provide a foundational environment for modeling multi-level simulation verification models of the system.
[0003] Modeling and verifying a lunar communication and navigation system requires the use of multiple tools and modeling languages. System-level models, component-level models, and algorithm modules often originate from different sources, including Functional Mock-up Units (FMUs), C / C++, Python, or specialized algorithm code. However, these different models not only have inconsistent interfaces but also different protocol types. The encapsulation methods and data formats of models from different sources vary, requiring extensive custom development for each integration. Therefore, finding a unified integration method that adapts to all models to achieve unified operation of the lunar communication and navigation system is a pressing technical problem that needs to be solved. Summary of the Invention
[0004] This invention provides a model running method, apparatus, electronic device, and storage medium to enable collaborative operation between models and ensure the stable operation of the communication and navigation system.
[0005] According to one aspect of the present invention, a model running method is provided, applied to a communication and navigation system, comprising: A set of model description information is determined, which consists of model description information corresponding to at least one model to be integrated, including models required for the operation of the communication and navigation system. Based on the model description information set, each of the models to be integrated is encapsulated to obtain a channel description information set. The channel description information set consists of at least one channel description information, which includes the description information of the channel corresponding to the model to be integrated. Based on the channel description information set, the operating status is determined, and the operating status indicates whether the communication and navigation system and the corresponding models to be integrated are operating collaboratively.
[0006] According to another aspect of the present invention, a model running apparatus is provided, configured in a communication and navigation system, comprising: The first determining module is used to determine a set of model description information, which consists of model description information corresponding to at least one model to be integrated, including models required for the operation of the communication and navigation system. An encapsulation module is used to encapsulate each of the models to be integrated based on the model description information set to obtain a channel description information set. The channel description information set consists of at least one channel description information, which includes the description information of the channel corresponding to the model to be integrated. The second determining module is used to determine the operating status based on the channel description information set, wherein the operating status indicates whether the various models to be integrated corresponding to the communication and navigation system are operating collaboratively.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the model running method according to any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the model running method described in any embodiment of the present invention.
[0009] The technical solution of this invention involves determining a set of model description information; encapsulating each model to be integrated based on the set of model description information to obtain a set of channel description information; and determining the operating state based on the set of channel description information. Encapsulating each model to be integrated using the set of model description information to obtain the set of channel description information allows for unified adaptation and integration of the models corresponding to the communication and navigation system, improving integration efficiency. Determining the operating state based on the set of channel description information enables collaborative operation between the models to be integrated, ensuring the stable operation of the communication and navigation system.
[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0011] 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.
[0012] Figure 1 This is a flowchart of a model running method provided in Embodiment 1 of the present invention; Figure 2 This is a flowchart of a method for determining a set of model description information according to Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of a model running device according to Embodiment 3 of the present invention; Figure 4 This is a block diagram of an electronic device provided according to Embodiment 4 of the present invention. Detailed Implementation
[0013] 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 should fall within the scope of protection of the present invention.
[0014] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0015] Example 1 Figure 1 This is a flowchart of a model running method according to Embodiment 1 of the present invention. This embodiment is applicable to situations where the model running state is determined. This method can be executed by a model running device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1As shown, the method includes: S110. Determine the set of model description information.
[0016] The model description information set consists of model description information corresponding to at least one model to be integrated, and the models to be integrated include the models required for the operation of the communication and navigation system.
[0017] In this embodiment, the model description information set can be understood as a collection composed of the model description information of each model to be integrated. The model to be integrated can be understood as the model required for the operation of the communication and navigation system. The model to be integrated can include heterogeneous models and proxy models. Heterogeneous models can be models included in the communication and navigation system, and proxy models can be understood as models that call devices included in the communication and navigation system. The model description information can be understood as the description information of the model to be integrated. The model description information can include the metadata of the model to be integrated, which can include model type identifier, input variable set, output variable set, execution method, step size requirement, encapsulation form, version information, and dependencies, etc.
[0018] Specifically, the models to be integrated are identified, which may include heterogeneous models contained in the communication and navigation system, as well as proxy models of devices contained in the calling channel navigation system. Unified metadata is extracted from different types of models to be integrated, forming standardized model description information. The set of model description information for each model to be integrated is then defined as the model description information set.
[0019] S120. Based on the model description information set, each of the models to be integrated is encapsulated to obtain a channel description information set.
[0020] The channel description information set consists of at least one channel description information, which includes the description information of the channel corresponding to the model to be integrated.
[0021] In this embodiment, the channel description information set can be understood as consisting of the channel description information corresponding to each channel of the model to be integrated. The channel description information may include channel descriptors, endpoint descriptors, and a mapping rule table. The channel descriptor defines the unique identifier of the channel, the channel type, the transmission direction, and bandwidth constraints. Channel types include file, bus, network, and memory types. The endpoint descriptor contains different address information for different protocols. For bus protocols, it includes the remote terminal address and sub-address; for network protocols, it includes the IP address and port number; and for publish / subscribe protocols, it includes the topic name and quality of service policy. The mapping rule table defines the correspondence between source endpoint variables and target endpoint variables input and output, including variable name mapping, data type conversion, unit conversion, and sampling granularity alignment strategies.
[0022] Specifically, different encapsulation strategies are set for the models to be integrated based on their types, and the models to be integrated are encapsulated according to these strategies. The encapsulated models are then abstracted to obtain channel description information. The set of channel description information for each model to be integrated is defined as the channel description information set.
[0023] For example, the types of models to be integrated can include three categories: white-box models, gray-box models, and black-box models. White-box models are source code-visible models, inheriting from the platform SDK base class to implement initialization, stepping, pause / resume, and stop interfaces, and compiling to generate dynamic link library components. Gray-box models are dynamic library model interface parameters, parsing exported interface function signatures to generate bridging adapter components to complete the mapping conversion between platform standard calls and native interfaces. Black-box models are external software models, joining the platform as network clients, receiving platform control commands according to the unified communication protocol, and implementing step-by-step operation. The unified communication protocol's data packet format includes: a header field, a fixed-byte identifier serving as the packet boundary marker for the byte stream; a type field, used to distinguish between master control commands, communication data, and controlled feedback signals; a data length field, indicating the number of bytes of subsequent data content; and a data content field, a variable-length field carrying different content depending on the type. Control commands include single-step progression, termination, pause, and resume, while controlled feedback signals include execution success and execution failure. S130. Determine the operating status based on the channel description information set.
[0024] The operating status indicates whether the various models to be integrated corresponding to the communication and navigation system are operating collaboratively.
[0025] In this embodiment, the operating status can be understood as the state indicating whether each model to be integrated corresponding to the communication and navigation system is operating collaboratively, including whether each model to be integrated is operating collaboratively under a unified time base.
[0026] Specifically, based on the channel description information set, data mapping and protocol conversion are performed on each model to be integrated. For example, message field parsing, variable mapping, unit conversion, sampling granularity alignment, and publish / subscribe relationship configuration can be performed on each model to obtain the step size required for each model to run. Based on the step size corresponding to each model, it is determined whether the models to be integrated are running collaboratively, thus obtaining the running status.
[0027] The technical solution of this invention involves determining a set of model description information; encapsulating each model to be integrated based on the set of model description information to obtain a set of channel description information; and determining the operating state based on the set of channel description information. Encapsulating each model to be integrated using the set of model description information to obtain the set of channel description information allows for unified adaptation and integration of the models corresponding to the communication and navigation system, improving integration efficiency. Determining the operating state based on the set of channel description information enables collaborative operation between the models to be integrated, ensuring the stable operation of the communication and navigation system.
[0028] Based on the above embodiments, modified embodiments of the above embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in the modified embodiments.
[0029] In one embodiment, the step of encapsulating each of the models to be integrated based on the model description information set to obtain a channel description information set includes: For each model to be integrated, the model type of the model to be integrated is determined, and the model to be integrated is encapsulated based on the model type to obtain the channel description information corresponding to the model to be integrated. The model type indicates the visibility status of the model to be integrated. The set of channel description information corresponding to each of the aforementioned models to be integrated is defined as the channel description information set.
[0030] In this embodiment, the model type can indicate the visibility and modifiability of the model to be integrated. The model type can include three categories: white-box model, gray-box model, and black-box model.
[0031] Specifically, based on the visibility and modifiability of the models to be integrated, the model type is determined, categorizing them into three types: white-box models, gray-box models, and black-box models. Different access strategies are applied to encapsulate and transform the models to be integrated according to their different types, resulting in the corresponding channel description information. The set of channel description information corresponding to each model to be integrated is then defined as the channel description information set.
[0032] For example, the white-box model can include a C++ orbital model, which inherits from the platform SDK base class, implements `init()` to complete orbital initialization, and `doStep()` to complete orbital recursive calculation, and compiles to generate a DLL. The gray-box model can include an FMU communication link model, which is loaded and parsed through the FMU parameter parsing function, automatically generating a parameter list and integrating it into the model library with one click. The Python navigation algorithm is imported after implementing the `init()`, `do_step(step, sim_time)`, `set_inputData(key, value)`, and `get_outData(key)` interfaces according to the specification. The black-box model can include a proxy model corresponding to a semi-physical spaceborne computer, which accesses as a TCP client, receives control command packets starting with 0x5AA5 (single-step advancement 0x01, termination 0x02, pause 0x03, resume 0x04), and returns feedback signals (success 0x00, failure 0x01) after execution.
[0033] Optionally, the step of encapsulating the model to be integrated based on the model type to obtain the channel description information corresponding to the model to be integrated includes: Based on the model type, the encapsulation strategy corresponding to the model to be integrated is determined, and the model to be integrated is encapsulated based on the encapsulation strategy to obtain the encapsulated model. The encapsulation strategy includes a strategy for encapsulating the interface of the model to be integrated. The encapsulated model is abstracted to obtain the channel description information corresponding to the model to be integrated.
[0034] In this embodiment, the encapsulation strategy can be a strategy for encapsulating the interface of the model to be integrated. The encapsulation strategy can encapsulate file interfaces, bus interfaces, network interfaces, etc. into the model to be integrated.
[0035] For example, based on the model type, the encapsulation strategy corresponding to the model to be integrated is determined, with different model types corresponding to different encapsulation strategies. Different encapsulation strategies are then used to encapsulate and transform the model to be integrated, resulting in the encapsulated model. A unified interface abstraction layer is established to abstract the encapsulated model, obtaining the channel description information corresponding to the model to be integrated. For example: the orbital model to the communication link model is a memory-type channel (DDS publish / subscribe); the platform to the onboard computer is a bus-type channel (1553B protocol, RT address = 5, sub-address = 1); the DDS channel between models has Topic = 'SimData', and the QoS strategy is reliable transmission.
[0036] In one embodiment, determining the operating status based on the channel description information set includes: Based on the channel description information set, data mapping is performed on each of the models to be integrated to obtain the model step size corresponding to each model to be integrated. The model step size indicates the time required for the model to be integrated to run. Based on the model step size corresponding to each of the models to be integrated, a preset step size is determined; At the preset step size, each of the models to be integrated is executed, and the running status is determined.
[0037] In this embodiment, the model step size can be understood as the time required for the integrated models to run. The preset step size can be understood as the set synchronization point for the output of each integrated model.
[0038] Specifically, based on the channel description information set, data mapping and protocol conversion are performed on each model to be integrated. This includes parsing message fields, mapping variables, converting units, aligning sampling granularity, and configuring publish-subscribe relationships to obtain the model step size for each model to be integrated. Based on the model step size corresponding to each model to be integrated, a preset step size is determined. The preset step size can be a unified time base of the simulation engine's global clock. Finally, under the preset step size, each model to be integrated can be executed through heterogeneous step size coordination mechanisms, buffer queue mechanisms, delay compensation mechanisms, resampling mechanisms, and synchronization triggering mechanisms to achieve coordinated operation of each model to be integrated under a unified time base. During the execution of each model to be integrated, anomaly monitoring is achieved through heartbeat monitoring, timeout detection, packet loss detection, clock deviation calibration, and data verification to determine the running status.
[0039] For example, data mapping can establish data flow relationships between models to be integrated through a graphical interface using connections. The orbital model publishes position / velocity data to the Topic 'OrbitState', and the communication link model subscribes to obtain satellite positions. Example of data mapping rule: The orbital output position vector [x,y,z] (meters) is mapped to the communication link input distance d (kilometers), with the conversion formula d=sqrt(x²+y²+z²) / 1000.
[0040] Message field parsing (1553B parsing according to message word format, TCP / UDP parsing according to platform protocol, including packet header, type, and data content). Variable mapping (establishing the correspondence between source model output and target model input, achieving data transmission through publish-subscribe relationship configuration). Unit conversion (automatic conversion based on physical dimension information). Sampling granularity alignment (using interpolation, extrapolation, or preserve strategies). Publish-subscribe relationship configuration (based on DDS data distribution service, publishers publish data to the global data space, subscribers obtain data from this space, and QoS policies control the quality of the information flow).
[0041] The heterogeneous step-size coordination mechanism calculates key moment points based on the model step size of each model to be integrated, and only schedules the models to be integrated that need to be stepped within each preset step size. The buffer queue mechanism sets up a timestamp-sorted data buffer queue among the models to be integrated to absorb transmission jitter. The delay compensation mechanism measures communication latency in real time and calculates compensation to correct timestamps based on historical trends. The resampling mechanism performs linear interpolation or zero-order hold processing on the model step sizes of models to be integrated that do not match. The synchronization triggering mechanism executes in a fixed order of input acquisition, model calculation, and output distribution within each preset step size.
[0042] Optionally, the step of executing each of the models to be integrated and determining the running status at the preset step size includes: If each of the models to be integrated outputs under a unified time base, then the operating state is determined to be that the models to be integrated corresponding to the communication and navigation system are operating collaboratively. The unified time base includes the time point at which each of the models to be integrated outputs as indicated by the preset step size. Otherwise, the operating status is determined to be that the various models to be integrated corresponding to the communication and navigation system are not operating collaboratively.
[0043] In this embodiment, the unified time base can be understood as the time point at which each model to be integrated outputs, indicated by a preset step size. The unified time base can be configured based on the timing of the simulation engine's global clock and the preset step size, and supports fixed step size, variable step size, real-time and ultra-real-time operation modes.
[0044] Specifically, during the execution of each model to be integrated, anomaly monitoring is achieved through heartbeat monitoring, timeout detection, packet loss detection, clock deviation calibration, and data verification to determine whether each model to be integrated is outputting under a unified time base. If each model to be integrated is outputting under a unified time base, the operating status is determined to be that the models to be integrated corresponding to the communication and navigation system are operating collaboratively; otherwise, the operating status is determined to be that the models to be integrated corresponding to the communication and navigation system are not operating collaboratively, and different compensation and recovery methods can be used to compensate and recover each model to be integrated.
[0045] For example, heartbeat monitoring detects disconnections and triggers automatic reconnection (using the most recent valid value during reconnection). For instance, a heartbeat packet is sent to the communication and navigation system every 100 milliseconds; three consecutive no-response responses indicate a disconnection. During a disconnection, the attitude command retains the last valid value and triggers automatic reconnection. A timeout threshold is set for the data channel (resulting in retry, cache replacement, or degradation). For example, a 20-millisecond receive timeout threshold is used, replacing the most recent valid data from the buffer queue with the received data. Clock deviations are periodically compared and recalibrated when they exceed a threshold. For example, the timestamp of the model to be integrated is compared with the global clock every 10 seconds; recalibration is triggered if the deviation exceeds 1 millisecond. Packet loss is detected using sequence numbers, and interpolation reconstruction or retransmission is performed. For example, an emergency stop is triggered when the synchronization deviation exceeds 10 milliseconds or the continuous packet loss rate exceeds 5%, and a snapshot of the simulation state is saved to support breakpoint recovery.
[0046] Example 2 Figure 2 This is a flowchart of a method for determining a set of model description information according to Embodiment 2 of the present invention. This embodiment focuses on the method for determining the set of model description information in the above embodiment. Figure 2 As shown, the method includes: S210. Identify at least one model to be integrated.
[0047] Specifically, the models to be integrated may include heterogeneous models contained in the communication and navigation system, as well as proxy models that call the devices contained in the communication and navigation system.
[0048] Optionally, determining at least one model to be integrated includes: Identify at least one heterogeneous model, the heterogeneous model including the models contained in the communication and navigation system; Identify at least one target device, the target device including devices included in the communication and navigation system; For each target device, a corresponding proxy model is determined, the proxy model including the model that invokes the target device; Each of the heterogeneous models and each of the proxy models is identified as at least one model to be integrated.
[0049] In this embodiment, the target device can be understood as the device included in the communication and navigation system, and the target device can be a semi-physical device.
[0050] For example, heterogeneous models may include C / C++ models, FMU models, Modelica models, and Python models. Target devices may include 1553B buses, TCP / UDP network interfaces, etc. For each target device, a proxy model for calling the target device is determined. Each heterogeneous model and each proxy model is then identified as the model to be integrated.
[0051] S220. For each model to be integrated, extract the model description information of the model to be integrated.
[0052] The model description information includes the metadata of the model to be integrated.
[0053] For example, for the C / C++ model in the model to be integrated, the model description information can be obtained by parsing the data structure definition file to obtain the structure definition of the six orbital elements (semi-major axis, eccentricity, orbital inclination, right ascension of the ascending node, argument of perigee, and mean perigee), and by parsing the interface file to obtain the function signatures such as init() and doStep(), and to record the step size requirements. For example, the C++ satellite orbit dynamics model provides data_type_define.h and mode.h / mode.cpp. For the FMU model in the model to be integrated, the model description information can be obtained by parsing the model description file to obtain the list of model variables, causal relationships, and step size constraints. It can also include input variables (transmit power, antenna gain, carrier frequency) and output variables (bit error rate, signal-to-noise ratio, path loss). For example, the FMU communication link model follows the FMI 2.0 standard Co-Simulation type. For the Python model in the model to be integrated, the model description information can be obtained by parsing the data type definition file to obtain the input data (pseudorange observations, Doppler observations) and output data (position estimation, velocity estimation) definitions, and by parsing the model file to obtain the initialization, stepping, input data setting, and output data acquisition interfaces, etc. For example, the Python navigation algorithm model provides data_type_define.py and mode.p). The Modelica attitude control model (compiled and exported as an FMU) and the semi-physical spaceborne computer (1553B bus interface) are also included.
[0054] S230. The set of model description information corresponding to each of the models to be integrated is determined as the model description information set.
[0055] Specifically, the set of model description information corresponding to each model to be integrated is determined as the model description information set.
[0056] S240. Based on the model description information set, each of the models to be integrated is encapsulated to obtain a channel description information set.
[0057] S250. Determine the operating status based on the channel description information set.
[0058] The technical solution of this invention involves determining at least one model to be integrated; extracting model description information for each model to be integrated; and defining the set of model description information corresponding to each model to be integrated as a model description information set. By determining the models to be integrated, the heterogeneous models and target devices included in the communication and navigation system are simultaneously incorporated into a unified governance framework. Based on the model type of each model to be integrated, the model description information is determined, enabling the models to be integrated corresponding to the communication and navigation system to be uniformly adapted and integrated, thereby improving integration efficiency.
[0059] Example 3 Figure 3 This is a schematic diagram of the structure of a model running device according to Embodiment 3 of the present invention. Figure 3 As shown, the device includes: The first determining module 310 is used to determine a set of model description information, which consists of model description information corresponding to at least one model to be integrated, including models required for the operation of the communication and navigation system. The encapsulation module 320 is used to encapsulate each of the models to be integrated based on the model description information set to obtain a channel description information set. The channel description information set consists of at least one channel description information, and the channel description information includes the description information of the channel corresponding to the model to be integrated. The second determining module 330 is used to determine the operating status based on the channel description information set, wherein the operating status indicates whether each model to be integrated corresponding to the communication and navigation system is operating collaboratively.
[0060] The model running device provided in this embodiment of the invention determines a set of model description information through a first determining module; encapsulates each of the models to be integrated based on the set of model description information through an encapsulation module to obtain a set of channel description information; and determines the running state based on the set of channel description information through a second determining module. Through the cooperation between the modules, and by encapsulating each model to be integrated using the set of model description information to obtain the set of channel description information, the models to be integrated corresponding to the communication and navigation system can be uniformly adapted and integrated, improving integration efficiency. Determining the running state based on the set of channel description information enables collaborative operation between the models to be integrated, ensuring the stable operation of the communication and navigation system.
[0061] In one embodiment, the first determining module 310 includes: The first determining unit is used to determine at least one model to be integrated; An extraction unit is used to extract model description information for each model to be integrated, wherein the model description information includes the metadata of the model to be integrated; The second determining unit is used to determine the set of model description information corresponding to each of the models to be integrated as the model description information set.
[0062] In one embodiment, the first determining unit is specifically used for: Identify at least one heterogeneous model, the heterogeneous model including the models contained in the communication and navigation system; Identify at least one target device, the target device including devices included in the communication and navigation system; For each target device, a corresponding proxy model is determined, the proxy model including the model that invokes the target device; Each of the heterogeneous models and each of the proxy models is identified as at least one model to be integrated.
[0063] In one embodiment, the encapsulation module 320 includes: The third determining unit is used to determine the model type of each model to be integrated, and to encapsulate the model to be integrated based on the model type to obtain the channel description information corresponding to the model to be integrated, wherein the model type indicates the visibility state of the model to be integrated. The fourth determining unit is used to determine the set of channel description information corresponding to each of the models to be integrated as a channel description information set.
[0064] In one embodiment, the third determining unit is specifically used for: Based on the model type, the encapsulation strategy corresponding to the model to be integrated is determined, and the model to be integrated is encapsulated based on the encapsulation strategy to obtain the encapsulated model. The encapsulation strategy includes a strategy for encapsulating the interface of the model to be integrated. The encapsulated model is abstracted to obtain the channel description information corresponding to the model to be integrated.
[0065] In one embodiment, the second determining module 330 includes: The mapping unit is used to perform data mapping on each of the models to be integrated based on the channel description information set, so as to obtain the model step size corresponding to each model to be integrated, wherein the model step size indicates the time required for the model to be integrated to run; The fifth determining unit is used to determine a preset step size based on the model step size corresponding to each of the models to be integrated; The execution unit is used to execute each of the models to be integrated under the preset step size and determine the running status.
[0066] In one embodiment, the execution unit is specifically used for: If each of the models to be integrated outputs under a unified time base, then the operating state is determined to be that the models to be integrated corresponding to the communication and navigation system are operating collaboratively. The unified time base includes the time point at which each of the models to be integrated outputs as indicated by the preset step size. Otherwise, the operating status is determined to be that the various models to be integrated corresponding to the communication and navigation system are not operating collaboratively.
[0067] The model running device provided in this embodiment of the invention can execute the model running method provided in any embodiment of the invention. Through the cooperation and coordination between the modules, the model is run, and it has the corresponding functional modules and beneficial effects of the execution method.
[0068] Example 4 According to embodiments of the present invention, the present invention also provides an electronic device, a computer-readable storage medium, and a computer program product.
[0069] Figure 4 This is a block diagram of an electronic device according to Embodiment 4 of the present invention, which implements the model running method described in the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0070] like Figure 4 As shown, the electronic device 410 includes at least one processor 411 and a memory, such as a read-only memory (ROM) 412 or a random access memory (RAM), communicatively connected to the at least one processor 411. The memory stores computer programs executable by the at least one processor. The processor 411 can perform various appropriate actions and processes based on the computer program stored in the ROM 412 or loaded from storage unit 418 into the RAM 413. The RAM 413 can also store various programs and data required for the operation of the electronic device 410. The processor 411, ROM 412, and RAM 413 are interconnected via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0071] Multiple components in the electronic device are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, optical disk, etc.; and a communication unit 419, such as a network card, modem, wireless transceiver, etc. The communication unit 419 allows the electronic device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0072] Processor 411 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 411 performs the various methods and processes described above, such as model running methods.
[0073] In some embodiments, the model running method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 410 via ROM 412 and / or communication unit 419. When the computer program is loaded into RAM 413 and executed by processor 411, one or more steps of the model running method described above may be performed. Alternatively, in other embodiments, processor 411 may be configured to execute the model running method by any other suitable means (e.g., by means of firmware).
[0074] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0075] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0076] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0077] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0078] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0079] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0080] The technical solution of this invention provides a model operation method, apparatus, electronic device, and storage medium. It involves determining a set of model description information; encapsulating each model to be integrated based on the set of model description information to obtain a set of channel description information; and determining the operating state based on the set of channel description information. By encapsulating each model to be integrated using the set of model description information to obtain the set of channel description information, the models to be integrated corresponding to the communication and navigation system can be uniformly adapted and integrated, improving integration efficiency. Determining the operating state based on the set of channel description information enables collaborative operation between the models to be integrated, ensuring the stable operation of the communication and navigation system.
[0081] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0082] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A model running method, characterized in that, Applications in communication and navigation systems, including: A set of model description information is determined, which consists of model description information corresponding to at least one model to be integrated, including models required for the operation of the communication and navigation system. Based on the model description information set, each of the models to be integrated is encapsulated to obtain a channel description information set. The channel description information set consists of at least one channel description information, which includes the description information of the channel corresponding to the model to be integrated. Based on the channel description information set, the operating status is determined, and the operating status indicates whether the communication and navigation system and the corresponding models to be integrated are operating collaboratively.
2. The method according to claim 1, characterized in that, The set of determined model description information includes: Identify at least one model to be integrated; For each model to be integrated, extract the model description information of the model to be integrated, which includes the metadata of the model to be integrated; The set of model description information corresponding to each of the aforementioned models to be integrated is determined as the model description information set.
3. The method according to claim 2, characterized in that, The process of determining at least one model to be integrated includes: Identify at least one heterogeneous model, the heterogeneous model including the models contained in the communication and navigation system; Identify at least one target device, the target device including devices included in the communication and navigation system; For each target device, a corresponding proxy model is determined, the proxy model including the model that invokes the target device; Each of the heterogeneous models and each of the proxy models is identified as at least one model to be integrated.
4. The method according to claim 1, characterized in that, The process involves encapsulating each of the models to be integrated based on the model description information set to obtain a channel description information set, including: For each model to be integrated, the model type of the model to be integrated is determined, and the model to be integrated is encapsulated based on the model type to obtain the channel description information corresponding to the model to be integrated. The model type indicates the visibility status of the model to be integrated. The set of channel description information corresponding to each of the aforementioned models to be integrated is defined as the channel description information set.
5. The method according to claim 4, characterized in that, The process of encapsulating the model to be integrated based on the model type to obtain the channel description information corresponding to the model to be integrated includes: Based on the model type, the encapsulation strategy corresponding to the model to be integrated is determined, and the model to be integrated is encapsulated based on the encapsulation strategy to obtain the encapsulated model. The encapsulation strategy includes a strategy for encapsulating the interface of the model to be integrated. The encapsulated model is abstracted to obtain the channel description information corresponding to the model to be integrated.
6. The method according to claim 1, characterized in that, The determination of the operating status based on the channel description information set includes: Based on the channel description information set, data mapping is performed on each of the models to be integrated to obtain the model step size corresponding to each model to be integrated. The model step size indicates the time required for the model to be integrated to run. Based on the model step size corresponding to each of the models to be integrated, a preset step size is determined; At the preset step size, each of the models to be integrated is executed, and the running status is determined.
7. The method according to claim 6, characterized in that, The step of executing each of the models to be integrated at the preset step size and determining the running status includes: If each of the models to be integrated outputs under a unified time base, then the operating state is determined to be that the models to be integrated corresponding to the communication and navigation system are operating collaboratively. The unified time base includes the time point at which each of the models to be integrated outputs as indicated by the preset step size. Otherwise, the operating status is determined to be that the various models to be integrated corresponding to the communication and navigation system are not operating collaboratively.
8. A model running device, characterized in that, Configured in communication and navigation systems, including: The first determining module is used to determine a set of model description information, which consists of model description information corresponding to at least one model to be integrated, including models required for the operation of the communication and navigation system. An encapsulation module is used to encapsulate each of the models to be integrated based on the model description information set to obtain a channel description information set. The channel description information set consists of at least one channel description information, which includes the description information of the channel corresponding to the model to be integrated. The second determining module is used to determine the operating status based on the channel description information set, wherein the operating status indicates whether the various models to be integrated corresponding to the communication and navigation system are operating collaboratively.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the model running method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the model running method according to any one of claims 1-7.