Equipment ubiquitous access and monitoring system based on metadata driving

Through the equipment ubiquitous access and monitoring system driven by metadata, automated control and automatic generation of control instructions are achieved, which solves the problem of low manual configuration instructions when multiple equipment in the prior art work in collaboration, and improves task execution efficiency.

CN120218545AActive Publication Date: 2025-06-27CHENGDU MOKE TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510357514.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-06-27
Estimated Expiration
2045-03-25

AI Technical Summary

Technical Problem

The prior art requires a large number of manual configuration control instructions when multiple equipment work together, resulting in inefficient task execution.

Method used

It provides a ubiquitous access and monitoring system for equipment based on metadata drive, and realizes automatic control through the ubiquitous control agent module, automatically generates control instructions, and reduces manual participation.

Benefits of technology

It improves task execution efficiency, reduces the need for the capabilities of technicians, and can automatically complete multiple equipment collaborative tasks without manual participation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120218545A_ABST
    Figure CN120218545A_ABST
Patent Text Reader

Abstract

The invention provides an equipment ubiquitous access and monitoring system based on metadata driving, and in the system, an equipment library of an equipment management module stores an equipment metadata model; the equipment operation scheduling module sends a scheduling instruction to the equipment ubiquitous control agent module; the equipment ubiquitous control agent module determines target equipment when detecting a scheduling instruction corresponding to the target task; setting an execution mark corresponding to the target equipment based on the task information; analyzing the equipment metadata model to obtain control parameters; converting the scheduling instruction into a control instruction based on a control parameter and task information corresponding to the target equipment; and sending a control instruction to the target equipment based on the execution mark to monitor a business process of executing the target task by the target equipment. By applying the system provided by the invention, the control instruction corresponding to each business process in the task can be automatically generated, and a user does not need to participate in the matching corresponding operation of the control instruction of each device even if a plurality of devices are required to cooperatively execute the task, so that the execution efficiency of the task is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of equipment control, and particularly to an equipment ubiquitous access and monitoring system based on metadata-driven. Background Art

[0002] With the accelerated installation of new types of equipment such as satellites, unmanned aerial vehicle clusters, optoelectronic radars, and signal detection equipment, due to differences in the research and development years, functional positions, and technical standards of various types of equipment, there are generally situations where communication protocols are incompatible, data formats are heterogeneous, and interface specifications are not unified.

[0003] In the prior art, when performing tasks related to combat simulation each time, multiple pieces of equipment usually need to work together. However, due to the differences between the equipment, before each task execution, technicians need to configure corresponding control instructions in advance according to the differences between each piece of equipment, so as to call each piece of equipment to execute the task collaboratively through different control instructions. The method of calling each piece of equipment to work together through the prior art not only has high requirements for the capabilities of technicians, but also affects the execution efficiency of tasks when a large number of pieces of equipment need to work together. Summary of the Invention

[0004] In view of this, the present application provides an equipment ubiquitous access and monitoring system based on metadata-driven. Through this system, the automatic control equipment can automatically complete the target task through the equipment ubiquitous control agent module without manual participation, improving the execution efficiency of the task.

[0005] In a first aspect, the present application provides an equipment ubiquitous access and monitoring system based on metadata-driven, and the system includes: An equipment management module, an equipment operation scheduling module, and an equipment ubiquitous control agent module; The equipment management module includes an equipment library, and the equipment library is used to store an equipment metadata model; The equipment operation scheduling module is used to send a scheduling instruction to the equipment ubiquitous control agent module; The equipment ubiquitous control agent module is used to determine at least one target equipment for executing the target task when detecting a scheduling instruction corresponding to the target task; Set an execution mark corresponding to the target equipment based on the task information of the target task, and the execution mark is used to record at least one execution time for the target equipment to execute the target task; Analyze the preset equipment metadata model corresponding to the target equipment to obtain control parameters corresponding to the target equipment, and the equipment metadata model is used to define the standardized data of its corresponding target equipment; Convert the scheduling instruction into at least one control instruction based on the control parameters corresponding to the target equipment and the task information; Send the control instruction to the target equipment based on the execution mark corresponding to the target equipment; Monitor the business process related to the control instruction in the target equipment's execution of the target task to obtain the execution data of the target equipment's execution of the business process.

[0006] In an alternative embodiment, the equipment management module is further configured to: Collect the metadata description information of the newly added equipment; Establish an equipment metadata model corresponding to the newly added equipment based on the metadata description information.

[0007] In an alternative embodiment, the equipment management module collects the metadata description information of the newly added equipment, specifically: when the newly added equipment is scanned within the target network range, collect the metadata description information of the newly added equipment; or, when receiving the registration message sent by the newly added equipment, obtain the metadata description information uploaded by the newly added equipment.

[0008] In an alternative embodiment, the equipment ubiquitous control agent module parses the equipment metadata model corresponding to the preset target equipment, specifically: Generate a model cache queue, which is used to store the equipment metadata models corresponding to all target equipment executing the target task; Parse each of the equipment metadata models in the model cache queue according to the queue order of the model cache queue.

[0009] In an alternative embodiment, the equipment ubiquitous control agent module converts the scheduling instruction into at least one control instruction based on the control parameters corresponding to the target equipment and the task information, specifically: When the current time reaches the time range corresponding to an execution time recorded by the execution mark of the target equipment, determine the target business process to be executed by the target task at this execution time; Obtain the process information of the target business process in the task information; Based on the process information and the control parameters corresponding to the target equipment, convert the scheduling instruction into a control instruction matching the target equipment, and the control instruction is only used to control the target equipment to execute the target business process.

[0010] In an alternative embodiment, after the equipment ubiquitous control agent module converts the scheduling instruction into control instructions related to each business process for which the target equipment is responsible, the equipment ubiquitous control agent module is further configured to: Determine at least one business process for which the target equipment is responsible based on the task information; Obtain the process information of all business processes in the task information; Based on the control parameters of the target equipment and the process information of each business process for which the target equipment is responsible, convert the scheduling instruction into control instructions related to each business process for which the target equipment is responsible.

[0011] In an alternative embodiment, after the equipment ubiquitous control agent module converts the scheduling instruction into control instructions related to each business process for which the target equipment is responsible, the equipment ubiquitous control agent module further includes: generating an instruction queue for storing all control instructions related to the business processes for executing the target task; Wherein, the equipment ubiquitous control agent sends the control instruction to the target equipment based on the execution mark corresponding to the target equipment, and specifically is configured to: If the current time reaches the time range corresponding to an execution time in the execution mark of the target equipment, determine the business process to be executed by the target equipment at the execution time; Select the target control instruction related to the business process to be executed from the instruction queue; Send the target control instruction to the target equipment.

[0012] In an alternative embodiment, before the equipment ubiquitous control agent module sends the control instruction to the target equipment, it is further configured to: Obtain the communication protocol and connection method supported by the target equipment in the control parameters; Establish a remote connection with the target equipment based on the communication protocol and connection method.

[0013] In an alternative embodiment, the equipment ubiquitous control agent module monitors the business processes related to the control instruction in the target equipment's execution of the target task, and specifically is configured to: Receive in real time the status information uploaded by the target equipment during the business operation process of the business process related to the control instruction; Output the alarm information corresponding to the business process in the case where the status information indicates that there is an abnormality in the target equipment's execution of the business operation.

[0014] In an alternative embodiment, the equipment ubiquitous control agent module monitors the business processes related to the control instructions in the execution of the target task by the target equipment, specifically used for: Receiving in real time the business data uploaded by the target equipment during the business operation process of the business process related to the control instruction; Converting the business data into data in a target format.

[0015] Compared with the prior art, the present application has the following advantages: The present application provides a metadata-driven equipment ubiquitous access and monitoring system, including: when the equipment ubiquitous control agent module detects a scheduling instruction corresponding to a target task issued by the equipment operation scheduling module, determining at least one target equipment for executing the target task; setting an execution mark corresponding to the target equipment based on the task information of the target task, where the execution mark is used to record at least one execution time of the target equipment for executing the target task; parsing the preset equipment metadata model corresponding to the target equipment to obtain the control parameters corresponding to the target equipment, and the equipment metadata model is used to define the standardized data of its corresponding target equipment; converting the scheduling instruction into at least one control instruction based on the control parameters and task information corresponding to the target equipment; and sending the control instruction to the target equipment based on the execution mark corresponding to the target equipment to monitor the business processes related to the control instruction in the execution of the target task by the target equipment. Applying the embodiments of the present application, when a task needs to be executed, control instructions corresponding to each business process in the task can be automatically generated. Even when multiple pieces of equipment need to cooperate to execute the task, there is no need for the user to participate in the operation of matching the control instructions for each piece of equipment, thereby improving the execution efficiency of the task. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on the provided drawings.

[0017] Figure 1 It is a system structure diagram of a metadata-driven equipment ubiquitous access and monitoring system provided by an embodiment of the present application; Figure 2 It is a flowchart of the equipment ubiquitous control agent module provided by an embodiment of the present application for realizing the control of the equipment; Figure 3 It is a flowchart of the equipment ubiquitous control agent module provided by an embodiment of the present application for generating control instructions; Figure 4Another flowchart for generating control instructions for the equipment ubiquitous control agent module provided by the embodiments of the present application. Detailed implementation manners

[0018] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0019] In the present application, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. The terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the element defined by the statement "including an..." does not exclude the presence of additional identical elements in the process, method, article or device including the element.

[0020] The present application can be used in many general-purpose or special-purpose computing device environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or equipment, and so on.

[0021] The embodiments of the present application provide an equipment ubiquitous access and monitoring system based on metadata driving. The system block diagram of the system is as Figure 1 shown. Among them, the system includes: an equipment management module 10, an equipment operation scheduling module 20, and an equipment ubiquitous control agent module 30.

[0022] The equipment management module 10 includes an equipment library, and the equipment library is used to store an equipment metadata model, and the equipment metadata model is used to define the standardized data of the equipment. Among them, the equipment management module 10 integrates the equipment metadata models corresponding to multiple pieces of equipment respectively, and each integrated equipment metadata model is stored in the equipment library.

[0023] The process of the equipment management module 10 integrating the equipment metadata model corresponding to the equipment is as follows: collecting the metadata description information of the newly added equipment; based on the metadata description information, establishing the equipment metadata model corresponding to the newly added equipment. The newly added equipment is the equipment newly connected to the preset target network.

[0024] In an implementable manner, the equipment management module 10 may further include an equipment type spectrum management sub-module. The equipment type spectrum management sub-module scans the target network in real time to check if there is any newly connected equipment. When new equipment is detected within the target network range, it collects the metadata description information of the new equipment. When the equipment management module 10 detects new equipment connected within the target network range, it sends a request message corresponding to the metadata description information to the new equipment. If the new equipment responds to the request message, the equipment management module 10 actively obtains the metadata description information of the new equipment, constructs an equipment metadata model corresponding to the new equipment based on the metadata description information, and stores the equipment metadata model in the equipment library.

[0025] In another implementable manner, the equipment management module 10 may further include an equipment registration management sub-module. After the equipment is connected to the target network, it can actively send a registration message to the equipment management module 10. When the equipment registration management sub-module of the equipment management module 10 receives the registration message sent by the new equipment, it responds to the registration message. The new equipment uploads the metadata description information according to the response of the equipment registration management sub-module. The equipment registration management sub-module then obtains the metadata description information actively uploaded by the new equipment, constructs an equipment metadata model corresponding to the new equipment based on the metadata description information, and stores the equipment metadata model in the equipment library.

[0026] The equipment operation scheduling module 20 is used to send scheduling instructions to the equipment ubiquitous control agent module 30. The equipment operation scheduling module 20 further includes an interaction module, and the interaction module includes a display control sub-module and a scheduling control sub-module. The display control sub-module is mainly used to display each task that the equipment ubiquitous access and monitoring system based on metadata drive can currently execute, as well as the operation page corresponding to the task. When the user selects a task through the operation page, it generates a scheduling instruction corresponding to the task. The scheduling control sub-module can be an external device or a control component connected to an external device in the equipment ubiquitous access and monitoring system based on metadata drive for selecting executable tasks. When the user selects a task through the external device or the control component, it generates a scheduling instruction corresponding to the task.

[0027] In this application, if the equipment operation scheduling module 20 generates scheduling instructions corresponding to multiple tasks, they can be saved to a preset control queue in the order of generation of each scheduling instruction. According to the principle of first in first out in the control queue, when each task needs to be executed, the equipment operation scheduling module obtains the scheduling instruction in the control queue and sends it to the equipment ubiquitous control agent module 30.

[0028] After detecting the scheduling instruction of the equipment operation scheduling module 20, the equipment ubiquitous control agent module 30 controls multiple pieces of equipment to collaboratively process the target task corresponding to the scheduling instruction.

[0029] Reference Figure 2 , Figure 2 The flowchart shown is the relevant execution steps for the ubiquitous control agent module 30 in this application to control multiple devices to collaboratively process the scheduling instruction according to the scheduling instruction: S1: When detecting the scheduling instruction corresponding to the target task, determine at least one target device for executing the target task.

[0030] The scheduling instruction can also be pre-set by the device operation scheduling module 20 according to a preset time node (for example: set a timer, and when the time of the timer reaches the target time, automatically initiate the scheduling instruction corresponding to the target task).

[0031] According to each business process included in the target task, determine the target device responsible for each business process. Specifically, the various business processes required to execute the target task and the target device responsible for each business process can be determined through the task information of the target task.

[0032] S2: Based on the task information of the target task, set the execution mark corresponding to the target device.

[0033] Among them, the execution mark is used to record at least one execution time for the target device to execute the target task.

[0034] The task information includes task type, task number, each business included in the task, business process, business start time, and the execution time of each business process. According to the process content of the business process in the task information, determine the target device for executing each business process, and set the execution mark corresponding to each target device according to the execution time of each business process.

[0035] In an optional embodiment, if the task information does not include the execution time of each business process, the execution time of each business process can be set according to the association relationship between the various business processes in the target task. Among them, for the execution time of the various business processes in the target task, if there is no association relationship between the business processes, the execution time of each business process is set according to the actual application; if there is an association relationship between the business processes, calculate the time required for each business process to complete, and set the execution time corresponding to each business process according to the start time of the target task and the time required for each business process to complete.

[0036] For a target task to be executed, when multiple target devices need to work together, it is not necessary to apply all target devices to execute the business process to be executed during the same time period. Therefore, according to the execution time of each business process in the task information and the process information of the business process, the target devices required for each execution time are determined. For each target device, it may be responsible for the business operations of at least one business process. Therefore, the execution times of the various business processes that the target device needs to execute are used as the execution marks of the target device.

[0037] S3: Analyze the equipment metadata model corresponding to the preset target device to obtain the control parameters corresponding to the equipment.

[0038] Among them, the equipment metadata model is used to define the standardized data of its corresponding target device. Among them, the control parameter descriptions such as the classification, model, performance parameters, connection method, interface type, communication protocol, etc. of the equipment are included in the standardized data. By analyzing the equipment metadata model, the specific control parameters of the target device are obtained.

[0039] Before receiving the scheduling instruction, there are equipment metadata models of multiple devices stored in the preset equipment library, and each equipment metadata model is used to define the metadata structure and control parameter structure of its corresponding equipment.

[0040] After receiving the scheduling instruction, obtain the instruction information of the scheduling instruction. The instruction information includes the task information of the task to be executed and the equipment identifiers (such as: equipment name and equipment id, etc.) of each equipment specified to execute the task. According to the equipment identifiers, find the equipment metadata models corresponding to each target device that executes the task in the equipment library, and analyze the equipment metadata models.

[0041] In the embodiment of the present application, the equipment metadata models stored in the equipment library of the equipment management module 10 are updated in real time. However, if any equipment exits the target network, the equipment metadata model corresponding to the equipment in the equipment library will be deleted. On the contrary, if there is a newly added equipment accessing the network range of the target network, the equipment metadata model corresponding to the newly added equipment will be added to the equipment library.

[0042] In the present application, the process of the equipment ubiquitous control agent module 30 analyzing the equipment metadata model corresponding to the target device may be: generating a model cache queue, where the model cache queue is used to store the equipment metadata models corresponding to all target devices that execute the target task; according to the queue order of the model cache queue, analyze each equipment metadata model in the model cache queue.

[0043] It should be noted that after generating the model cache queue, the model cache queue is persistently cached to avoid the subsequent target device from restarting during the execution of the business process operation and being able to obtain the equipment metadata model from the model queue again for parsing.

[0044] Among them, the queue order of each equipment metadata model in the model cache queue is sorted according to the first execution time in the execution mark of the target equipment.

[0045] For example, currently there are equipment A, equipment B, and equipment C that need to cooperate to complete a target task. Among them, the execution times recorded in the execution mark of equipment A include 10:20 and 12:00, the execution times recorded in the execution mark of equipment B include 10:00 and 13:00, and the execution time recorded in the execution mark of equipment C is 11:00. Then the model cache queue is sorted only according to the execution order of the first execution time in the execution mark of each equipment. The order in which the model cache queue caches the equipment metadata models corresponding to each equipment is as follows: the equipment metadata model B corresponding to equipment B, the equipment metadata model A corresponding to equipment A, and the equipment metadata model C corresponding to equipment C. When parsing each equipment metadata model in the model cache queue, the parsing order is as follows: the corresponding equipment metadata model B, the corresponding equipment metadata model A, and the corresponding equipment metadata model C.

[0046] S4: Based on the control parameters and task information corresponding to the target equipment, convert the scheduling instruction into at least one control instruction.

[0047] It should be noted that the target task includes multiple business processes. During the process of generating control instructions, corresponding control instructions need to be generated for each business process. In the target task, the same target equipment may be responsible for the execution of multiple business processes. Therefore, during the process of converting the scheduling instruction into a control instruction based on the control parameters and task information corresponding to the target equipment, corresponding control instructions will be generated according to each business process that the target equipment needs to be responsible for.

[0048] In an optional implementation manner, for each target equipment responsible for the target task, the specific implementation process of converting the scheduling instruction into at least one control instruction based on the control parameters and task information corresponding to the target equipment refers to the Figure 3 flowchart shown as follows, Figure 3 The flowchart shown includes the following steps: S41: When the current time reaches the time range corresponding to an execution time recorded in the execution mark of the target equipment, determine the target business process to be executed by the target task at this execution time.

[0049] In the target task, each business process has a corresponding execution time, and the target equipment responsible for executing the business process. After setting execution marks for each target equipment responsible for the target task, according to the execution times in the execution marks, poll whether the current time reaches the time range corresponding to any execution time. The latest time t1 in this time range (t0 - t1) is equal to the execution time T1.

[0050] S42: Obtain the process information of the target business process in the task information.

[0051] The process information includes relevant execution parameters such as the process serial number, process name, process content, and process execution standard of the target business process.

[0052] S43: Based on the process information and the control parameters corresponding to the target equipment, convert the scheduling instruction into a control instruction matching the target equipment.

[0053] Among them, the control instruction is only used to control the target equipment to execute the target business process. The control instruction carries relevant execution parameters such as the process serial number, process name, process content, and process execution standard of the target business process, can also carry parameters such as the equipment address, equipment port, and equipment communication method corresponding to the target equipment, and can also carry the original instruction information of the scheduling instruction.

[0054] Converting the scheduling instruction into a control instruction matching the target equipment means converting the scheduling instruction into an instruction in a data format that the target equipment can receive according to the control parameters corresponding to the target equipment, so as to facilitate the target equipment to normally receive relevant instructions and realize the invocation of relevant data and information. Based on the content of the above steps S41 - S43, in the process of converting the scheduling instruction into a control instruction, it is possible to determine whether there is a business process to be executed at the current time in a polling manner, and the single polling process is only used for the business process to be executed currently.

[0055] Optionally, after parsing and obtaining the control parameters corresponding to each target equipment responsible for the target task, it is also possible to set a parameter cache queue corresponding to each control parameter. The parameter cache queue is used to cache each control parameter. A polling mechanism can be set to poll whether a new control instruction needs to be generated at the preset time period or in real time according to the current time. If the polling mechanism detects that at the current time it reaches the time range corresponding to any execution time (for example, the current time T0 ≤ execution time T1 - Δt, where Δt is the time difference between the earliest time t0 and the latest time t1 in the time range corresponding to the execution time), obtain the control parameters corresponding to the target equipment used to execute the target business process from the parameter cache queue, and convert the scheduling instruction into a control instruction according to the control parameters and the process information of the target business process.

[0056] Combined with the embodiments corresponding to S3 above, after obtaining the equipment metadata models corresponding to each target equipment, the equipment metadata models can be stored in the model cache queue. After parsing each equipment metadata model in the model cache queue and obtaining the control parameters, the control parameters can also be cached in the parameter cache queue. If it is necessary to generate a control instruction corresponding to the target business process at the current time, only the control parameters of the target equipment need to be obtained from the parameter cache queue and the scheduling instruction can be converted into a control instruction according to the process information of the target business process.

[0057] Applying the embodiments of the present application, even if multiple business processes need to be executed for the target equipment, the equipment metadata model only needs to be parsed once. When executing each business process, only the existing control parameters and the process information of the business process are required to convert the scheduling instruction into a control instruction for the currently to-be-executed business process. Therefore, in the process of generating scheduling instructions in the present application, the instruction generation process can be automatically realized every time a business process needs to be executed, and the user is not required to participate in the relevant configuration throughout the process. If it is necessary to generate corresponding control instructions for a large number of equipment, it can also be quickly executed, improving the execution efficiency of the target task.

[0058] In another alternative embodiment, for each target equipment responsible for the target task, the specific implementation process of converting the scheduling instruction into at least one control instruction based on the control parameters and task information corresponding to the target equipment is as follows Figure 3 shown in the flowchart Figure 3 The shown flowchart includes the following steps: S44: Based on the task information, determine at least one business process that the target equipment is responsible for.

[0059] According to the task content in the task information, determine each target equipment responsible for each business process in the target task. For each target equipment specified in the scheduling instruction responsible for the target task, each target equipment is responsible for at least one business process.

[0060] S45: Obtain the process information of all business processes in the task information.

[0061] S46: Based on the control parameters of the target equipment and the process information of each business process that the target equipment is responsible for, convert the scheduling instruction into control instructions related to each business process that the target equipment is responsible for.

[0062] If the target equipment is responsible for multiple business processes in the target task, then according to the process information of each business process that the target equipment is responsible for and the control instruction corresponding to the target equipment, the scheduling instruction is converted into multiple control instructions at one time, and each of the converted control instructions corresponds to each business process that the target equipment is responsible for.

[0063] Based on the embodiments of the present application, for each business process responsible for by a target device, the scheduling instruction is converted into control instructions related to each business process at one time. When it is necessary to control the target device to execute any business process subsequently, the control instructions related to this business process can be directly obtained without generating new control instructions again, thereby saving the generation time of the instructions and improving the execution efficiency of the target task.

[0064] Optionally, in the process of converting the scheduling instruction into control instructions respectively related to multiple business processes simultaneously, the process of instruction conversion can be carried out by calling multiple threads to cooperate, thereby accelerating the conversion process of multiple instructions and further improving the work efficiency.

[0065] S5: Based on the execution mark corresponding to the target device, send a control instruction to the target device, so that the target device executes the business process related to the control instruction in the target task.

[0066] The execution mark records the execution time of the business process responsible for by the target device in the target task. If the current time reaches the time range corresponding to any one of the execution times in the execution mark, a control instruction for executing this business process is sent to the target device.

[0067] In the embodiments of the present application, when the scheduling instruction corresponding to the target task is monitored, the target devices that need to execute this target are determined, and based on the task information of the target task, the corresponding execution mark is set for each target device to determine the time when the control instruction needs to be sent to the target device through each execution mark. The equipment metadata model corresponding to the target device is obtained, the equipment metadata model is parsed to determine the metadata structure of the target device, and the control parameters of the target device are obtained according to the metadata structure. Based on the control parameters of the target device and the task information of the target task, the scheduling instruction is converted into a control instruction, and when the current time reaches the time range corresponding to the execution time in the execution mark, the control instruction is sent to the target device. The target device, after receiving the control instruction, executes the business process related to this control instruction according to the control parameters and task information carried in the control instruction.

[0068] In the process of generating the control instruction, if the control instruction is generated according to the execution steps of S41-S43 above, after generating this control instruction, it is directly sent to the target device responsible for executing this target business process; if the control instruction is generated according to the execution steps of S44-S46 above, it is necessary to wait until the current time reaches the execution time range in the executable mark before the control instruction can be sent to the target device.

[0069] It can be understood that the control instruction generation process of the above S41-S43 is generated only after the current time reaches the time range corresponding to the execution time, while the control instruction generation process of the above S44-S46 can be generated in advance when the current time does not reach the time range corresponding to the execution time.

[0070] Through the control instruction generation process corresponding to S41-S43 or the control instruction generation process corresponding to S44-S46, the control instructions can be automatically generated without the need for the user to participate in the relevant configuration, thereby further improving the execution efficiency of the target task.

[0071] According to the process corresponding to S41-S43 above, before the current time reaches the execution time recorded in the execution mark, it is necessary to pre-determine the target business process that needs to be executed, so as to obtain control instructions in advance based on the process information of the target business process and the control parameters corresponding to the target equipment, until the current time is the execution time recorded in the execution mark, and then send control instructions to the target equipment.

[0072] In this application, if the control instructions corresponding to all business processes are pre-generated according to the above-mentioned process S44-S46, an instruction queue can also be generated, and the instruction queue is used to store all the control instructions related to the business processes for executing the target task. After the instruction queue is generated, the specific implementation process of sending the control instruction to the target equipment based on the execution mark corresponding to the target equipment is as follows: If the current time reaches the time range corresponding to an execution time in the execution mark of the target device, determine the business process to be executed by the target device at the execution time; select the target control instruction related to the business process to be executed from the instruction queue; and send the target control instruction to the target device.

[0073] Each control instruction saved in the instruction queue can be sorted according to its corresponding execution time. All control instructions are stored in the instruction queue. If the target equipment encounters an abnormal situation such as execution interruption during the execution of any business process, if the business process needs to be re-executed, the control instruction can be obtained from the instruction queue again and re-sent to the target equipment, so that the target equipment re-executes the business process after receiving the control instruction.

[0074] Since different devices support different communication protocols and connection methods, in order to avoid communication failures during the communication process, it is necessary to establish a remote connection with the device in advance before sending a control instruction to the target device each time. After obtaining the control parameters by parsing the device metadata model corresponding to the target device, the communication protocol and connection method supported by the target device can be directly determined. Among them, the communication protocol can include Modbus, RS-232, RS-485, Ethernet, etc., and the remote connection method can be to connect to the target device through an independent thread. Therefore, before sending the control instruction to the target device, obtain the communication protocol and connection method supported by the target device in the control parameters; establish a remote connection with the target device based on the communication protocol and connection method.

[0075] In one embodiment, the relevant parameters and statements for establishing a remote connection with the target device according to the communication protocol and connection method of the target device can be as follows: {DevId: “”, / / Device ID; DevConType: “”, / / Device communication method, such as Modbus, RS-232, RS-485, Ethernet, etc.; DevAddr: “”, / / Device address; DevPort: “”, / / Device port; DevArgs / / Device parameters, automatically mapped and generated according to the metadata model. Taking the control of the antenna azimuth and elevation as an example; {azimuth_deg: 45.5, elevation_deg: 78.25}} Among them, according to the metadata definition of the device metadata model, extract the above “DevArgs” content, automatically generate a control instruction, and after generating the control instruction, the control instruction can also be converted into a format supported by the target device. Among them, the formats supported by the target device can be JSON, XML, Bytes, and SCPI, etc.

[0076] S6: Monitor the business processes related to the control instruction during the target device's execution of the target task to obtain the execution data of the target device's execution of the business process.

[0077] Among them, the execution data includes the business data generated during the business operations corresponding to the business processes executed by the target device and the status information of the target device uploaded in real time by the target device.

[0078] In one embodiment, after sending a control instruction to a target device, it is possible to monitor the business operation process of the target device executing a business process and obtain in real time the status information and business data actively fed back by the target device during the execution of the business operation. Among them, the status information is used to reflect whether the target device is currently abnormal, and the business data is used to determine the execution result of the target device executing the business process.

[0079] By receiving in real time the status information uploaded by the target device during the business operation process of executing the business process related to the control instruction; when the status information indicates that there is an abnormality in the target device's execution of the business operation, output the alarm information corresponding to the business process. If the target device does not perform the business operation of the business process according to the instruction after receiving the control instruction, it indicates that there is an error in the control instruction itself (such as a syntax error), or the software or hardware of the target device cannot keep up with the corresponding business operation, or the network connection is not smooth. When the status information indicates that there is an abnormality in the target device's execution of the business operation, output the alarm information, and the alarm information includes the device name, device number, execution time, error description, original instruction information, etc., so that when the technical personnel receive the alarm information, they can conduct technical troubleshooting on the abnormality according to the content of the alarm information.

[0080] The equipment ubiquitous control agent module 30 receives in real time the business data uploaded by the target device during the business operation process of executing the business process related to the control instruction; converts the business data into data in a target format, and the target data format is the data format supported by the equipment ubiquitous access and monitoring system based on metadata drive. After converting the format of the business data, it is possible to perform persistent storage on the business data. At the same time, the equipment ubiquitous control agent module 30 can also send the business data to the equipment operation scheduling module 20, and the equipment operation scheduling module 20 displays the business data. Technical personnel can query the execution progress of the target task based on the displayed business data, or extract the business data for performing other business operations through the display interface.

[0081] In the embodiment of the present application, when the business operation of the last business process in the target task ends, the equipment ubiquitous control agent module 30 can also generate an initialization instruction and send the initialization instruction to the target device to initialize each target device. In addition, it is also possible to delete or empty the data saved in each queue created in advance (such as: instruction queue, model cache queue, and parameter cache queue).

[0082] Applying the embodiments of the present application, when multiple devices need to complete a target task, the ubiquitous control agent module 30 of the device can automatically generate control instructions for controlling each device according to the received scheduling instructions. Even if there are differences between the devices, different devices can still be called without manual operation, further improving the efficiency of task execution.

[0083] Each embodiment in this specification is described in a progressive manner. For the same or similar parts between the embodiments, reference can be made to each other. The key point of each embodiment is to illustrate the differences from other embodiments. In particular, for a system or a system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiment. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0084] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two.

[0085] To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0086] The above description of the disclosed embodiments enables those skilled in the art to implement or use this application. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application will not be limited to these embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A metadata-driven ubiquitous equipment access and monitoring system, characterized in that: include: Equipment management module, equipment operation scheduling module and equipment ubiquitous control agent module; The equipment management module includes an equipment library, and the equipment library is used to store equipment metadata models; The equipment operation scheduling module is used to send scheduling instructions to the equipment ubiquitous control agent module; The equipment ubiquitous control agent module is used to: When a scheduling instruction corresponding to a target task is detected, determining at least one target equipment to execute the target task; Based on the task information of the target task, setting an execution mark corresponding to the target equipment, the execution mark being used to record at least one execution time of the target equipment executing the target task; Parsing a preset equipment metadata model corresponding to the target equipment to obtain control parameters corresponding to the target equipment, wherein the equipment metadata model is used to define standardized data of the corresponding target equipment; Based on the control parameters corresponding to the target equipment and the task information, converting the scheduling instruction into at least one control instruction; Sending the control instruction to the target device based on the execution flag corresponding to the target device; The target device is monitored for executing a business process related to the control instruction in the target task, so as to obtain execution data of the business process executed by the target device.

2. The metadata-driven ubiquitous equipment access and monitoring system according to claim 1, characterized in that: The equipment management module is also used for: Collect metadata description information of newly added equipment; Based on the metadata description information, an equipment metadata model corresponding to the newly added equipment is established.

3. The metadata-driven ubiquitous equipment access and monitoring system according to claim 2, characterized in that: The equipment management module collects metadata description information of newly added equipment, specifically used for: In the case where the newly added equipment is found to be connected within the target network range, metadata description information of the newly added equipment is collected; or, in the case where a registration message sent by the newly added equipment is received, metadata description information uploaded by the newly added equipment is obtained.

4. The metadata-driven ubiquitous equipment access and monitoring system according to claim 1, characterized in that: The equipment ubiquitous control agent module parses the preset equipment metadata model corresponding to the target equipment, specifically for: Generate a model cache queue, wherein the model cache queue is used to store corresponding equipment metadata models of all target equipment that execute the target task; According to the queue order of the model cache queue, each of the equipment metadata models in the model cache queue is parsed.

5. The metadata-driven ubiquitous equipment access and monitoring system according to claim 1, characterized in that: The equipment ubiquitous control agent module converts the scheduling instruction into at least one control instruction based on the control parameters corresponding to the target equipment and the task information, specifically for: When the current time reaches a time range corresponding to an execution time recorded by the execution mark of the target equipment, determining a target business process to be executed by the target task at the execution time; Obtaining process information of the target business process in the task information; Based on the process information and the control parameters corresponding to the target equipment, the scheduling instruction is converted into a control instruction matching the target equipment, and the control instruction is only used to control the target equipment to execute the target business process.

6. The metadata-driven ubiquitous equipment access and monitoring system according to claim 1, characterized in that: The equipment ubiquitous control agent module converts the scheduling instruction into at least one control instruction based on the control parameters corresponding to the target equipment and the task information, specifically for: Based on the task information, determining at least one business process that the target equipment is responsible for; Obtaining process information of all business processes in the task information; Based on the control parameters of the target device and the process information of each business process that the target device is responsible for, the scheduling instruction is converted into a control instruction related to each business process that the target device is responsible for.

7. The metadata-driven ubiquitous equipment access and monitoring system according to claim 6, characterized in that: After the equipment ubiquitous control agent module converts the scheduling instruction into a control instruction related to each business process that the target equipment is responsible for, the equipment ubiquitous control agent module is further used to: generate an instruction queue, the instruction queue is used to store all the control instructions related to the business process of executing the target task; The equipment ubiquitous control agent module sends the control instruction to the target equipment based on the execution tag corresponding to the target equipment, specifically for: If the current time reaches a time range corresponding to an execution time in the execution mark of the target device, determining a business process to be executed by the target device at the execution time; Selecting a target control instruction related to the business process to be executed from the instruction queue; The target control instruction is sent to the target equipment.

8. The metadata-driven ubiquitous equipment access and monitoring system according to claim 1 or 7, characterized in that: Before sending the control instruction to the target equipment, the equipment ubiquitous control agent module is further used to: Obtaining the communication protocol and connection mode supported by the target equipment in the control parameters; A remote connection is established with the target device based on the communication protocol and the connection method.

9. The metadata-driven ubiquitous equipment access and monitoring system according to claim 1, characterized in that: The equipment ubiquitous control agent module monitors the business process related to the control instruction in the target equipment executing the target task, and is specifically used to: receiving in real time status information uploaded by the target equipment during the business operation process of executing the business process related to the control instruction; When the status information indicates that an abnormality occurs in the target equipment executing the business operation, alarm information corresponding to the business process is output.

10. The metadata-driven ubiquitous equipment access and monitoring system according to claim 9, characterized in that: The equipment ubiquitous control agent module monitors the business process related to the control instruction in the target equipment executing the target task, and is specifically used to: receiving in real time the business data uploaded by the target equipment during the business operation process of executing the business process related to the control instruction; The business data is converted into data in a target format.

Citation Information

Patent Citations

  • Metadata acquisition method, device and equipment and computer readable storage medium

    CN109656963A

  • Equipment intelligence method, equipment and readable storage medium

    CN114442537A

  • Internet of Things equipment communication method and Internet of Things equipment

    CN116032968A