CN117294590A - Equipment control method and device - Google Patents

Equipment control method and device Download PDF

Info

Publication number
CN117294590A
CN117294590A CN202210698089.8A CN202210698089A CN117294590A CN 117294590 A CN117294590 A CN 117294590A CN 202210698089 A CN202210698089 A CN 202210698089A CN 117294590 A CN117294590 A CN 117294590A
Authority
CN
China
Prior art keywords
real
equipment
target
information
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210698089.8A
Other languages
Chinese (zh)
Inventor
云龙
阳志明
田海波
李凌
张宇婕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210698089.8A priority Critical patent/CN117294590A/en
Publication of CN117294590A publication Critical patent/CN117294590A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention provides a device control method and a device, which relate to the technical field of data processing, and the method comprises the following steps: acquiring target information of a real device, and constructing a virtual device with the same function as the real device based on the target information; obtaining an instruction to be sent to target real equipment in the real equipment by the management equipment; operating target virtual equipment corresponding to the target real equipment, and responding to the instruction; and if the target virtual equipment does not have a fault in the running process, sending an instruction to the target real equipment so as to control the target real equipment. By applying the scheme provided by the embodiment of the invention, other equipment faults caused by the error instruction sent by the management equipment are avoided.

Description

Equipment control method and device
Technical Field
The invention relates to the technical field of data processing and automatic control, in particular to a device control method and device.
Background
The management device can control the operation of other devices by sending an instruction to the other devices, for example, the management device sends a log acquisition instruction to the network element device, and can control the network element device to report an operation log to the management device. The command sent by the management device may affect the operation of other devices, and if the command sent by the management device is an error command, the device receiving the error command may fail when responding to the error command.
Disclosure of Invention
The embodiment of the invention aims to provide a device control method and device, so as to avoid faults of other devices caused by error instructions sent by management devices. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a device control method, where the method includes:
acquiring target information of a real device, and constructing a virtual device with the same function as the real device based on the target information;
obtaining an instruction to be sent to a target reality device in the reality devices by a management device;
operating target virtual equipment corresponding to the target real equipment, and responding to the instruction;
and if the target virtual equipment does not have a fault in the running process, sending the instruction to the target reality equipment so as to control the target reality equipment.
In one embodiment of the invention, for each real device, the method further comprises:
obtaining target information of the real equipment according to a preset period, wherein the target information comprises: configuration information representing the configuration condition of the real equipment and operation information representing the operation condition of the real equipment;
and updating the virtual equipment corresponding to the real equipment based on the target information acquired last time.
In one embodiment of the present invention, after the target information of the real device is acquired according to the preset period, the method further includes:
under the condition that the real equipment is determined to be faulty, sending repair information to the real equipment, so that the real equipment reconfigures itself according to the repair information, wherein the repair information is as follows: target information acquired before the real device fails.
In one embodiment of the present invention, after the target information of the real device is acquired according to the preset period, the method further includes:
if a data acquisition request sent by other equipment is received, performing data processing indicated by the data acquisition request on the obtained target information of each real equipment to obtain a processing result;
and feeding back the processing result to the other equipment.
In one embodiment of the present invention, after the target information of the real device is acquired according to the preset period, the method further includes:
under the condition that a virtual device backup instruction is received, constructing backup virtual devices which are the same as the virtual devices indicated by the virtual device backup instruction based on the acquired backup information, wherein the backup information is: and the virtual equipment backup instruction indicates target information of the real equipment corresponding to the virtual equipment.
In one embodiment of the present invention, the acquiring the target information of the real device according to the preset period includes:
and acquiring target information of the real equipment according to a preset real-time acquisition period and a preset periodic acquisition period respectively, wherein the duration of the real-time acquisition period is smaller than that of the periodic acquisition period.
In a second aspect, an embodiment of the present invention provides a device data acquisition and device control apparatus based on digital twinning, where the apparatus includes:
the virtual device construction module is used for acquiring target information of the real device and constructing virtual devices with the same functions as the real device based on the target information, wherein the target information comprises: configuration information representing the configuration condition of the real equipment and operation information representing the operation condition of the real equipment;
the instruction obtaining module is used for obtaining an instruction to be sent to target reality equipment in the reality equipment by the management equipment;
the instruction response module is used for operating the target virtual equipment corresponding to the target real equipment and responding to the instruction;
and the instruction forwarding module is used for sending the instruction to the target reality equipment so as to control the target reality equipment if the target virtual equipment does not have a fault in the running process.
In one embodiment of the invention, for each real device, the apparatus further comprises:
the information acquisition module is used for acquiring target information of the real equipment according to a preset period;
and the device updating module is used for updating the virtual device corresponding to the real device based on the target information acquired last time.
In one embodiment of the invention, the apparatus further comprises:
the information sending module is used for sending repair information to the real equipment under the condition that the real equipment is determined to be faulty, so that the real equipment reconfigures itself according to the repair information, wherein the repair information is as follows: target information acquired before the real device fails.
In one embodiment of the invention, the apparatus further comprises:
the data processing module is used for carrying out data processing indicated by the data acquisition request on the obtained target information of each real device if the data acquisition request sent by other devices is received, so as to obtain a processing result;
and the result feedback module is used for feeding back the processing result to the other equipment.
In one embodiment of the invention, the apparatus further comprises:
The backup device construction module is used for constructing the backup virtual device which is the same as the virtual device indicated by the virtual device backup instruction based on the acquired backup information under the condition that the virtual device backup instruction is received, wherein the backup information is: and the virtual equipment backup instruction indicates target information of the real equipment corresponding to the virtual equipment.
In one embodiment of the present invention, the information acquisition module is specifically configured to:
and acquiring target information of the real equipment according to a preset real-time acquisition period and a preset periodic acquisition period respectively, wherein the duration of the real-time acquisition period is smaller than that of the periodic acquisition period.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspects when executing a program stored on a memory.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having a computer program stored therein, which when executed by a processor, implements the method steps of any of the first aspects.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspects when executing a program stored on a memory.
The embodiment of the invention has the beneficial effects that:
the embodiment of the invention provides a device control method, which is based on collecting target information of real devices and constructing virtual devices with the same functions as the real devices based on the target information; obtaining an instruction to be sent to target real equipment in the real equipment by the management equipment; operating target virtual equipment corresponding to the target real equipment, and responding to the instruction; and if the target virtual equipment does not have a fault in the running process, sending an instruction to the target real equipment so as to control the target real equipment.
From the above, the virtual device constructed by the embodiment of the invention has the same function as the real device, and can reflect the configuration condition and the operation condition of the real device. In the embodiment of the invention, after the command to be sent to the target reality device by the management device is obtained, the command is responded to and the target virtual device with the same function as the target reality device is operated, if the target virtual device does not fail, the command is determined not to cause the failure of the target reality device with the same function, and the command can be forwarded to the target reality device to control the target reality device under the condition. However, if the target virtual device fails in the operation process, the above instruction may also cause the target real device with the same function as the target virtual device to fail, and the above instruction belongs to an error instruction. Therefore, the embodiment of the invention can avoid the influence of the error instruction sent by the management equipment on the operation of the target reality equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
Fig. 1 is a schematic flow chart of a first device control method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a second device control method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a third device control method according to an embodiment of the present invention;
fig. 4 is a flow chart of a fourth device control method according to an embodiment of the present invention;
fig. 5 is a flowchart of a fifth device control method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a software control system according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a digital twin model layer according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first device control apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a second device control apparatus according to an embodiment of the present invention;
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art will be able to devise all other embodiments that are obtained based on this application and are within the scope of the present invention.
In order to avoid other equipment from being failed due to instructions issued by management equipment, the embodiment of the invention provides an equipment control method and device.
The embodiment of the invention provides a device control method, which comprises the following steps:
acquiring target information of a real device, and constructing a virtual device with the same function as the real device based on the target information;
obtaining an instruction to be sent by the management device to a target reality device in the reality devices;
operating target virtual equipment corresponding to the target real equipment, and responding to the instruction;
and if the target virtual equipment does not fail in the running process, sending the instruction to the target real equipment so as to control the target real equipment.
From the above, the virtual device constructed by the embodiment of the invention has the same function as the real device, and can reflect the configuration condition and the operation condition of the real device. In the embodiment of the invention, after the command to be sent to the target reality device by the management device is obtained, the command is responded to and the target virtual device with the same function as the target reality device is operated, if the target virtual device does not fail, the command is determined not to cause the failure of the target reality device with the same function, and the command can be forwarded to the target reality device to control the target reality device under the condition. However, if the target virtual device fails in the operation process, the above instruction may also cause the target real device with the same function as the target virtual device to fail, and the above instruction belongs to an error instruction. Therefore, the embodiment of the invention can avoid the influence of the error instruction sent by the management equipment on the operation of the target reality equipment.
First, description will be made of an execution body of an embodiment of the present invention, and the execution body of the embodiment may be a management device or another device other than the management device.
Referring to fig. 1, a flowchart of a first device control method according to an embodiment of the present invention is shown, where the method includes the following steps S101 to S104.
S101: and acquiring target information of the real equipment, and constructing virtual equipment with the same function as the real equipment based on the target information.
Specifically, the real device may be any electronic device in a real scene, for example, the real device may be a network element device such as an AMF (Access and Mobility Management Function ), an SMF (Service Management Function, service management function), a PCF (Policy Control function ), an NSSF (The NetworkSliceSelection Function, network slice selection function), a UPF (User Plane Function ), an NRF (Network Repository Function, network storage function), or a UDM (Unified Data Management ), or may be a device such as a mobile terminal, a computer, or a server. A virtual device having the same function as the above-described real device may be constructed based on a digital twin technique.
In addition, the target information includes: configuration information indicating the configuration of the real device, and operation information indicating the operation of the real device. The configuration information indicates a configuration situation of the real device, and is an inherent attribute of the real device, for example, the configuration information may include a model number, a manufacturer, an IP address, and the like of the real device. The operation information indicates an operation condition of the real device, and may change with the operation of the real device, for example, the operation information may include a data processing speed, a CPU usage rate, and the like of the real device.
S102: and obtaining an instruction to be sent to a target reality device in the reality devices by the management device.
Specifically, if the execution subject of the present invention is a management device, the instruction can be directly obtained after the management device generates the instruction, and if the execution subject of the present invention is a device other than the management device, the management device can send the instruction to the execution subject of the present invention after generating the instruction, so that the execution subject of the present invention obtains the instruction.
In addition, the instruction may be generated by the user controlling the management device, or may be directly generated by the management device itself. For example, the above instructions may be used to control the target real device to turn on, turn off, feed back device logs, perform data processing, and the like.
Specifically, the target real device may be a base station, and the instruction may instruct the base station to open a communication package N for the user device M, instruct the base station to adjust the communication package of the user device M from the communication package X to the communication package Y, instruct the base station to cancel the communication package Z for the user device M, and so on.
S103: and operating the target virtual equipment corresponding to the target real equipment, and responding to the instruction.
In one embodiment of the present invention, after receiving the instruction, the target real device for which the instruction is directed may be first determined, and the virtual device corresponding to the target real device is determined as the target virtual device. Specifically, the execution body may record a correspondence between each real device and each virtual device, where the correspondence may be represented in a correspondence table, and each row in the correspondence table records an identifier of one real device and an identifier of a virtual device corresponding to the real device.
Since the functions of the target virtual device and the target real device are the same, the operation of the target virtual device to complete the instruction after receiving the instruction is equivalent to the operation which is performed after the target real device receives the instruction in the virtual environment.
S104: and if the target virtual equipment does not have a fault in the running process, forwarding the instruction to the target real equipment so as to control the target real equipment.
Because the target virtual device does not have a fault in the operation process, the target real device with the same function as the target virtual device can be considered to have no fault after responding to the instruction, the instruction can be sent to the target real device, and the target real device can respond to the instruction after receiving the instruction, so that the control of the target real device is realized.
On the contrary, if the target virtual device fails in the operation process, it can be considered that the target real device with the same function as the target virtual device may also fail after responding to the instruction, and the instruction is not sent to the target real device, so as to prevent the target real device from failing due to the influence of the instruction on the target real device.
In addition, in the case that the target virtual device fails during the operation, if the execution subject of the present invention is the management device, the management device may readjust the instruction and re-execute the embodiment shown in fig. 1 to control the target real device. If the execution subject of the present invention is other than the management device, the instruction error feedback may be sent to the management device, so that the management device determines that the instruction is wrong after receiving the instruction error feedback, readjust the instruction, and readjust the instruction to the execution subject of the present invention, where the execution subject of the present invention re-executes the embodiment shown in fig. 1 to control the target real device.
From the above, the virtual device constructed by the embodiment of the invention has the same function as the real device, and can reflect the configuration condition and the operation condition of the real device. In the embodiment of the invention, after the command to be sent to the target reality device by the management device is obtained, the command is responded to and the target virtual device with the same function as the target reality device is operated, if the target virtual device does not fail, the command is determined not to cause the failure of the target reality device with the same function, and the command can be forwarded to the target reality device to control the target reality device under the condition. However, if the target virtual device fails in the operation process, the above instruction may also cause the target real device with the same function as the target virtual device to fail, and the above instruction belongs to an error instruction. Therefore, the embodiment of the invention can avoid the influence of the error instruction sent by the management equipment on the operation of the target reality equipment.
In particular, the embodiment of the invention can be applied to the test of the new service of the target reality equipment, the probability of failure in the process of operating the new service of the electronic equipment is often higher, and if the instruction related to the new service is directly sent to the target reality equipment, the probability of failure in the process of operating the new service in response to the instruction of the target reality equipment is higher. Therefore, the embodiment of the invention can preferentially operate the target virtual equipment, and the instruction related to the new service is sent to the target real equipment under the condition that the target virtual equipment does not have faults, so that the faults of the target real equipment in the operation process can be avoided.
In addition, because the target virtual device used in the embodiment of the invention is the virtual device constructed in the virtual environment, the resources consumed for constructing the target virtual device are less compared with the resources consumed for constructing the real device in the real scene, and therefore, the normal operation of the target real device can be ensured under the condition of consuming less resources through the embodiment of the invention.
In order to make the running result of the virtual device and the corresponding real device identical after receiving the instruction, it needs to be ensured that the virtual device and the actual situation of the real device remain synchronous, for which in the embodiment of the present invention, the virtual device may be periodically updated, and the specific updating process may refer to steps S105-S106 shown in fig. 2 below.
Referring to fig. 2, a flow chart of a second device control method according to an embodiment of the present invention, compared with the embodiment shown in fig. 1, further includes the following steps S105-S106 for each real device.
S105: and acquiring target information of the real equipment according to a preset period.
Specifically, the shorter the duration of the preset period, the more frequently the target information is acquired, and the more frequently the virtual device is updated, the more the virtual device can reflect the real-time running condition of the corresponding real device, so the duration of the preset period can be set to a smaller value, for example, 1 minute, 30 seconds, and the like.
In one embodiment of the present invention, the real device may actively send its own target information to the execution body of the present invention according to a preset period, so that the execution body of the present invention may acquire the target information of the real device.
In another embodiment of the present invention, the execution subject may send a target information request to each real device according to a preset period, so as to request the target real device to feed back the target information to the execution subject. The execution body may store the target information after acquiring the target information, for example, may store the target information in a database.
The execution subject can store the target information of different real devices in a classified manner.
For example, the target information of different real devices may be stored separately, or the target information of different real devices may be stored in a classified manner based on the manufacturer of the real devices.
In addition, the real equipment often generates a log to record the running condition of the real equipment in the running process, and the log comprises a running log, an alarm log and the like.
S106: and updating the virtual equipment corresponding to the real equipment based on the last acquired target information.
Specifically, the virtual device may be updated in a manner included in the existing digital twin technology, which is not described in detail in this embodiment.
As can be seen from the above, in the embodiment of the present invention, the target information of the real device is periodically acquired, and the virtual device corresponding to the real device is updated based on the target information, so that the change conditions of the virtual device and the corresponding real device are kept synchronous. On this basis, the virtual device is operated based on the instruction with a higher possibility that the operation result of the real device corresponding to the virtual device is the same as that of the virtual device based on the instruction. The embodiment of the invention can further ensure the normal operation of the target reality equipment.
Specifically, the virtual device corresponding to the real device may be built after the real device starts to operate, and the embodiments of steps S105 to S106 begin to update the virtual device corresponding to the real device, and stop executing steps S105 to S106 when the real device ends to operate, that is, stop updating the virtual device, so that the life cycle of the virtual device is kept synchronous with the life cycle of the corresponding real device. Therefore, the processes of capacity expansion, change, shutdown, fault recovery and the like of the virtual equipment and the real equipment in the life cycle are kept synchronous.
In one embodiment of the present invention, the above step S105 may be implemented by the following step a.
Step A: and acquiring target information of the real equipment according to a preset real-time acquisition period and a preset periodic acquisition period respectively.
The duration of the real-time acquisition period is smaller than that of the periodic acquisition period.
Specifically, two different preset periods may be set in the embodiment of the present invention, including a real-time acquisition period and a periodic acquisition period, for example, the duration of the real-time acquisition period may be 1 minute, and the duration of the periodic acquisition period may be 24 hours.
In one embodiment of the present invention, the target information may be acquired based on a real-time acquisition period and the step S106 may be continuously performed to update the virtual device, so that the virtual device may approximately reflect the real-time operation condition of the corresponding real device. However, a fault may occur in the process of acquiring the target information based on the real-time acquisition period, for example, the acquisition of the target information fails, or the acquired target information is missing.
For example, in the embodiment of the present invention, the target information of the real device in the previous minute may be acquired according to the frequency of once per minute, but a fault may occur in the process of acquiring the target information.
Referring to fig. 3, a flowchart of a third device control method according to an embodiment of the present invention, compared with the embodiment shown in fig. 2, further includes the following step S107 after the above step S105.
S107: and sending repair information to the real equipment under the condition that the real equipment is determined to be faulty, so that the real equipment reconfigures itself according to the repair information.
Wherein, the repair information is: target information acquired before the real device fails.
Specifically, a software failure or a device entity failure may occur in the operation process of the real device, so that the real device cannot work normally, for example, the entity of the real device fails due to a natural disaster or the like. In one embodiment of the present invention, after the real device fails, the user may input a repair instruction to the execution subject of the present invention, so that the execution subject determines that the real device fails.
Because the execution main body stores the repair information acquired before the real equipment fails, the execution main body can send the repair information to the real equipment after the real equipment is repaired, and the real equipment can reconfigure itself based on the repair information after receiving the repair information, so that the real equipment is restored to the state before the failure occurs.
Preferably, the target information acquired last time before the real device fails may be transmitted to the real device as repair information.
From the above, it can be seen that, the execution body in the embodiment of the present invention periodically acquires the target information of the real device, so that after the real device fails, the repair information included in the target information and acquired before the real device fails can be sent to the real device, so that the real device can reconfigure itself based on the repair information, so that the real device can recover to the state before the failure, and the disaster tolerance capability of the real device is improved.
Referring to fig. 4, a flowchart of a fourth device control method according to an embodiment of the present invention, compared with the embodiment shown in fig. 2, further includes the following steps S108 to S109 after the step S105.
S108: and if the data acquisition request sent by other equipment is received, performing data processing indicated by the data acquisition request on the obtained target information of each real equipment to obtain a processing result.
Specifically, the data processing indicated by the data acquisition request may include screening, cleaning, comparing, mining, counting, and the like, on the target information.
For example, if the real device is a base station, the data acquisition request may instruct the executing body to count the number of user devices opening the communication package N, and after receiving the data acquisition request, the executing body may search the obtained target information of each real device for information of each user device opening the communication package N, and count the number of the searched information, as a processing result.
S109: and feeding back the processing result to the other equipment.
From the above, in the embodiment of the present invention, a large amount of target information of each real device is continuously acquired periodically, and other devices can acquire various information of the real device at different times from the target information through a data acquisition request. The target information acquired in the embodiment of the invention not only can be used for updating the virtual equipment, but also can be used for responding to various data acquisition requests of other equipment, thereby playing the value of a large amount of target information and realizing data capitalization.
Referring to fig. 5, a flowchart of a fifth device control method according to an embodiment of the present invention may further include the following step S110 after the above step S105, compared with the embodiment shown in fig. 2.
S110: and under the condition that the virtual equipment backup instruction is received, constructing the backup virtual equipment which is the same as the virtual equipment indicated by the virtual equipment backup instruction based on the acquired backup information.
Wherein, the backup information is: and the virtual equipment backup instruction indicates the target information of the real equipment corresponding to the virtual equipment.
Specifically, the backup information may represent a configuration situation and an operation situation of a real device corresponding to the virtual device indicated by the virtual device backup instruction, and based on the backup information, another backup virtual device that is the same as the virtual device corresponding to the real device may be constructed based on a digital twin technology, so as to realize backup of the virtual device.
Preferably, the backup virtual device may be constructed by selecting the backup information received most recently, so that the state of the backup virtual device most recently is synchronized with the state of the real device.
From the above, based on the backup information, the backup virtual device identical to the virtual device indicated by the virtual device backup instruction can be constructed, and the backup virtual device can reflect the state of the real device as well.
In one embodiment of the present invention, the device control method may be implemented by a software control system, where the software system includes a digital twin model layer and a unified acquisition control layer.
Referring to fig. 6, a schematic structural diagram of a software control system according to an embodiment of the present invention is provided.
The software control system comprises a digital twin model layer and a unified acquisition control layer, wherein the unified acquisition control layer is respectively connected with the real equipment 1-the real equipment n, the unified acquisition control layer can acquire target information of each real equipment, the acquired target information is fed back to the digital twin model layer, and an instruction is sent to each real equipment, so that bidirectional data interaction between the software control system and the real equipment is realized.
The digital twin model layer is respectively connected with application 1-application m, the application 1-application m is each application configured on the management device, the digital twin model layer can store information of each real device, receive instructions sent by each application in the management device and operate the virtual device, update the virtual device corresponding to each real device, realize copying and migration of the virtual device, respond to data acquisition requests sent by other devices, send repair information to the real device after the real device breaks down, enable the real device to reconfigure itself, and provide a user interaction interface, so that a user can view the state of the virtual device through the user interaction interface and control the virtual device.
Referring to fig. 7, a schematic structural diagram of a digital twin model layer is provided in an embodiment of the present invention.
The digital twin model layer comprises a network element depicting unit, a visual window unit, a data processing unit, an equipment management unit and a standardized synchronization unit.
Specifically, the network element depiction unit is used for constructing, updating and running virtual devices corresponding to each real device.
The visual window unit is used for providing a user interaction interface for a user, so that the user can view the state of each virtual device through the user interaction interface and control the virtual device, and other units in the digital twin model layer are called through the user interaction interface.
The data processing unit is used for responding to data acquisition requests sent by other devices, carrying out data processing on the stored configuration information and state information of the real device, and feeding back a data processing result.
The device management unit is used for managing each virtual device, including copying and migrating the virtual device, and sending the stored repair information of the real device to the real device after the real device fails, so as to realize the fault management of the real device.
The standardized synchronization unit is used for receiving the instruction sent by the management equipment and receiving the information of the real equipment acquired by the unified acquisition control layer. Specifically, the instruction sent by the management device may be received through a restful interface.
Corresponding to the device control method, the embodiment of the invention also provides a device control device.
Referring to fig. 8, a schematic structural diagram of a first device control apparatus according to an embodiment of the present invention is provided, where the apparatus includes:
a virtual device construction module 801, configured to construct, for each real device, a virtual device having the same function as the real device based on a digital twin technique;
an instruction obtaining module 802, configured to obtain an instruction to be sent by a management device to a target reality device in the reality devices;
The instruction response module 803 is configured to operate a target virtual device corresponding to the target real device, and respond to the instruction;
and the instruction forwarding module 804 is configured to send the instruction to the target reality device to control the target reality device if the target virtual device does not fail in the operation process.
From the above, the virtual device constructed by the embodiment of the invention has the same function as the real device, and can reflect the configuration condition and the operation condition of the real device. In the embodiment of the invention, after the command to be sent to the target reality device by the management device is obtained, the command is responded to and the target virtual device with the same function as the target reality device is operated, if the target virtual device does not fail, the command is determined not to cause the failure of the target reality device with the same function, and the command can be forwarded to the target reality device to control the target reality device under the condition. However, if the target virtual device fails in the operation process, the above instruction may also cause the target real device with the same function as the target virtual device to fail, and the above instruction belongs to an error instruction. Therefore, the embodiment of the invention can avoid the influence of the error instruction sent by the management equipment on the operation of the target reality equipment.
Referring to fig. 9, a schematic structural diagram of a second device control apparatus according to an embodiment of the present invention, compared with the embodiment shown in fig. 8, the apparatus further includes, for each real device:
an information obtaining module 805, configured to obtain target information of the real device according to a preset period, where the target information includes: configuration information representing the configuration condition of the real equipment and operation information representing the operation condition of the real equipment;
and the device updating module 806 is configured to update the virtual device corresponding to the real device, where the target information is acquired last time.
As can be seen from the above, in the embodiment of the present invention, the target information of the real device is periodically acquired, and the virtual device corresponding to the real device is updated based on the target information, so that the change conditions of the virtual device and the corresponding real device are kept synchronous. On this basis, the virtual device is operated based on the instruction with a higher possibility that the operation result of the real device corresponding to the virtual device is the same as that of the virtual device based on the instruction. The embodiment of the invention can further ensure the normal operation of the target reality equipment.
In one embodiment of the invention, the apparatus further comprises:
The information sending module is used for sending repair information to the real equipment under the condition that the real equipment is determined to be faulty, so that the real equipment reconfigures itself according to the repair information, wherein the repair information is as follows: target information acquired before the real device fails.
From the above, it can be seen that, the execution body in the embodiment of the present invention periodically acquires the target information of the real device, so that after the real device fails, the repair information included in the target information and acquired before the real device fails can be sent to the real device, so that the real device can reconfigure itself based on the repair information, so that the real device can recover to the state before the failure, and the failure resistance of the real device is improved.
In one embodiment of the invention, the apparatus further comprises:
the data processing module is used for carrying out data processing indicated by the data acquisition request on the obtained target information of each real device if the data acquisition request sent by other devices is received, so as to obtain a processing result;
and the result feedback module is used for feeding back the processing result to the other equipment.
From the above, in the embodiment of the present invention, a large amount of target information of each real device is continuously acquired periodically, and other devices can acquire various information of the real device at different times from the target information through a data acquisition request. The target information acquired in the embodiment of the invention not only can be used for updating the virtual equipment, but also can be used for responding to various data acquisition requests of other equipment, thereby playing the value of a large amount of target information and realizing data capitalization.
In one embodiment of the invention, the apparatus further comprises:
the backup device construction module is used for constructing the backup virtual device which is the same as the virtual device indicated by the virtual device backup instruction based on the acquired backup information under the condition that the virtual device backup instruction is received, wherein the backup information is: and the virtual equipment backup instruction indicates target information of the real equipment corresponding to the virtual equipment.
From the above, the backup virtual device which is the same as the target virtual device can be constructed based on the target information, and the backup virtual device can reflect the state of the target real device as well.
In one embodiment of the present invention, the information obtaining module 805 is specifically configured to:
and acquiring target information of the real equipment according to a preset real-time acquisition period and a preset periodic acquisition period respectively, wherein the duration of the real-time acquisition period is smaller than that of the periodic acquisition period.
In one embodiment of the present invention, the target information may be acquired based on a real-time acquisition period and the virtual device may be updated, so that the virtual device may approximately reflect the real-time operation condition of the corresponding real device. However, the process of acquiring the target information based on the real-time acquisition period may be failed, and in the embodiment of the invention, the target information may be acquired according to the periodic acquisition period with longer duration, so as to solve the problem of acquiring the target information.
The embodiment of the invention also provides an electronic device, as shown in fig. 10, which comprises a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete communication with each other through the communication bus 1004,
a memory 1003 for storing a computer program;
The processor 1001 is configured to implement any of the method steps described in the above-described device control method when executing the program stored in the memory 1003.
The electronic equipment provided by the embodiment of the invention is used for equipment control, and the virtual equipment constructed by the embodiment of the invention has the same function as the real equipment and can reflect the configuration condition and the operation condition of the real equipment. In the embodiment of the invention, after the command to be sent to the target reality device by the management device is obtained, the command is responded to and the target virtual device with the same function as the target reality device is operated, if the target virtual device does not fail, the command is determined not to cause the failure of the target reality device with the same function, and the command can be forwarded to the target reality device to control the target reality device under the condition. However, if the target virtual device fails in the operation process, the above instruction may also cause the target real device with the same function as the target virtual device to fail, and the above instruction belongs to an error instruction. Therefore, the embodiment of the invention can avoid the influence of the error instruction sent by the management equipment on the operation of the target reality equipment.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the device control methods described above.
The virtual device constructed by the embodiment of the invention has the same function as the real device and can reflect the configuration condition and the operation condition of the real device. In the embodiment of the invention, after the command to be sent to the target reality device by the management device is obtained, the command is responded to and the target virtual device with the same function as the target reality device is operated, if the target virtual device does not fail, the command is determined not to cause the failure of the target reality device with the same function, and the command can be forwarded to the target reality device to control the target reality device under the condition. However, if the target virtual device fails in the operation process, the above instruction may also cause the target real device with the same function as the target virtual device to fail, and the above instruction belongs to an error instruction. Therefore, the embodiment of the invention can avoid the influence of the error instruction sent by the management equipment on the operation of the target reality equipment.
In a further embodiment of the present invention, a computer program product comprising instructions is also provided, which when run on a computer causes the computer to perform the method steps of the device control method of any of the above embodiments.
The virtual equipment constructed by the embodiment of the invention has the same function as the real equipment and can reflect the configuration condition and the operation condition of the real equipment. In the embodiment of the invention, after the command to be sent to the target reality device by the management device is obtained, the command is responded to and the target virtual device with the same function as the target reality device is operated, if the target virtual device does not fail, the command is determined not to cause the failure of the target reality device with the same function, and the command can be forwarded to the target reality device to control the target reality device under the condition. However, if the target virtual device fails in the operation process, the above instruction may also cause the target real device with the same function as the target virtual device to fail, and the above instruction belongs to an error instruction. Therefore, the embodiment of the invention can avoid the influence of the error instruction sent by the management equipment on the operation of the target reality equipment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, electronic devices, storage media, computer program product embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the description of method embodiments in part.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (14)

1. A method of controlling a device, the method comprising:
acquiring target information of a real device, and constructing a virtual device with the same function as the real device based on the target information;
obtaining an instruction to be sent to a target reality device in the reality devices by a management device;
operating target virtual equipment corresponding to the target real equipment, and responding to the instruction;
and if the target virtual equipment does not have a fault in the running process, sending the instruction to the target reality equipment so as to control the target reality equipment.
2. The method of claim 1, wherein for each real world device, the method further comprises:
obtaining target information of the real equipment according to a preset period, wherein the target information comprises: configuration information representing the configuration condition of the real equipment and operation information representing the operation condition of the real equipment;
And updating the virtual equipment corresponding to the real equipment based on the target information acquired last time.
3. The method according to claim 2, further comprising, after the target information of the real device is acquired according to the preset period:
under the condition that the real equipment is determined to be faulty, sending repair information to the real equipment, so that the real equipment reconfigures itself according to the repair information, wherein the repair information is as follows: target information acquired before the real device fails.
4. The method according to claim 2, further comprising, after the target information of the real device is acquired according to the preset period:
if a data acquisition request sent by other equipment is received, performing data processing indicated by the data acquisition request on the obtained target information of each real equipment to obtain a processing result;
and feeding back the processing result to the other equipment.
5. The method according to claim 2, further comprising, after the target information of the real device is acquired according to the preset period:
under the condition that a virtual device backup instruction is received, constructing backup virtual devices which are the same as the virtual devices indicated by the virtual device backup instruction based on the acquired backup information, wherein the backup information is: and the virtual equipment backup instruction indicates target information of the real equipment corresponding to the virtual equipment.
6. The method according to claim 2, wherein the acquiring the target information of the real device according to the preset period includes:
and acquiring target information of the real equipment according to a preset real-time acquisition period and a preset periodic acquisition period respectively, wherein the duration of the real-time acquisition period is smaller than that of the periodic acquisition period.
7. A device control apparatus, characterized in that the apparatus comprises:
the virtual equipment construction module is used for acquiring target information of the real equipment and constructing virtual equipment with the same function as the real equipment based on the target information;
the instruction obtaining module is used for obtaining an instruction to be sent to target reality equipment in the reality equipment by the management equipment;
the instruction response module is used for operating the target virtual equipment corresponding to the target real equipment and responding to the instruction;
and the instruction forwarding module is used for sending the instruction to the target reality equipment so as to control the target reality equipment if the target virtual equipment does not have a fault in the running process.
8. The apparatus of claim 7, wherein for each real device, the apparatus further comprises:
The information acquisition module is used for acquiring target information of the real equipment according to a preset period, wherein the target information comprises: configuration information representing the configuration condition of the real equipment and operation information representing the operation condition of the real equipment;
and the device updating module is used for updating the virtual device corresponding to the real device based on the target information acquired last time.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the information sending module is used for sending repair information to the real equipment under the condition that the real equipment is determined to be faulty, so that the real equipment reconfigures itself according to the repair information, wherein the repair information is as follows: target information acquired before the real device fails.
10. The apparatus of claim 8, wherein the apparatus further comprises:
the data processing module is used for carrying out data processing indicated by the data acquisition request on the obtained target information of each real device if the data acquisition request sent by other devices is received, so as to obtain a processing result;
and the result feedback module is used for feeding back the processing result to the other equipment.
11. The apparatus of claim 8, wherein the apparatus further comprises:
the backup device construction module is used for constructing the backup virtual device which is the same as the virtual device indicated by the virtual device backup instruction based on the acquired backup information under the condition that the virtual device backup instruction is received, wherein the backup information is: and the virtual equipment backup instruction indicates target information of the real equipment corresponding to the virtual equipment.
12. The apparatus of claim 8, wherein the information acquisition module is specifically configured to:
and acquiring target information of the real equipment according to a preset real-time acquisition period and a preset periodic acquisition period respectively, wherein the duration of the real-time acquisition period is smaller than that of the periodic acquisition period.
13. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-6 when executing a program stored on a memory.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN202210698089.8A 2022-06-20 2022-06-20 Equipment control method and device Pending CN117294590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210698089.8A CN117294590A (en) 2022-06-20 2022-06-20 Equipment control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210698089.8A CN117294590A (en) 2022-06-20 2022-06-20 Equipment control method and device

Publications (1)

Publication Number Publication Date
CN117294590A true CN117294590A (en) 2023-12-26

Family

ID=89243201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210698089.8A Pending CN117294590A (en) 2022-06-20 2022-06-20 Equipment control method and device

Country Status (1)

Country Link
CN (1) CN117294590A (en)

Similar Documents

Publication Publication Date Title
US9049105B1 (en) Systems and methods for tracking and managing event records associated with network incidents
CN110535692B (en) Fault processing method and device, computer equipment, storage medium and storage system
JP6273927B2 (en) Information processing system, monitoring device, monitoring program, and monitoring method
WO2020248507A1 (en) Container cloud-based system resource monitoring method and related device
CN110825420A (en) Configuration parameter updating method, device, equipment and storage medium for distributed cluster
CN111049928B (en) Data synchronization method, system, electronic device and computer readable storage medium
CN111478796B (en) Cluster capacity expansion exception handling method for AI platform
CN104065526A (en) Server fault alarming method and device thereof
US11500812B2 (en) Intermediate file processing method, client, server, and system
CN110209526A (en) A kind of accumulation layer synchronization system and storage medium
CN108509296B (en) Method and system for processing equipment fault
CN112600690B (en) Configuration data synchronization method, device, equipment and storage medium
CN117294590A (en) Equipment control method and device
CN110928945B (en) Data processing method and device for database and data processing system
CN115604088A (en) Main/standby switching method, device, equipment and storage medium of component cluster system
CN113596195B (en) Public IP address management method, device, main node and storage medium
CN111581033B (en) Load balancing method, system and device
CN113568781B (en) Database error processing method and device and database cluster access system
CN115033927A (en) Method, device, equipment and medium for detecting data integrity
US7644306B2 (en) Method and system for synchronous operation of an application by a purality of processing units
CN112486718A (en) Database fault automatic switching method and device and computer storage medium
CN112491633A (en) Fault recovery method, system and related components of multi-node cluster
CN107707402B (en) Management system and management method for service arbitration in distributed system
CN117573415A (en) Fault processing method, system, electronic equipment and storage medium
CN115150253B (en) Fault root cause determining method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination