CN115277865A - Display method, device and medium for device panel - Google Patents

Display method, device and medium for device panel Download PDF

Info

Publication number
CN115277865A
CN115277865A CN202210845390.7A CN202210845390A CN115277865A CN 115277865 A CN115277865 A CN 115277865A CN 202210845390 A CN202210845390 A CN 202210845390A CN 115277865 A CN115277865 A CN 115277865A
Authority
CN
China
Prior art keywords
port
equipment
type
target
panel
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
CN202210845390.7A
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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology Co 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202210845390.7A priority Critical patent/CN115277865A/en
Publication of CN115277865A publication Critical patent/CN115277865A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a display method, device and medium of a device panel, which are used for solving the technical problem that the online state, the port name and the port type of a port cannot be displayed by manually editing the device panel in the prior art. The method comprises the following steps: determining the equipment type of each equipment, and acquiring an equipment panel corresponding to the equipment type of the target equipment as a background picture; configuring corresponding configuration files for each device and naming the configuration files corresponding to each device according to the device type corresponding to each device; reading the corresponding named configuration file according to the equipment type of the target equipment to obtain port names corresponding to the ports, and determining the corresponding port types according to the port names; according to the state information of the port obtained according to the port type and based on the relative coordinates and the size of the port in the configuration file of the target device, the port is displayed on the background image of the target device, the device data is visually displayed to a user, the readability of the data is increased, and the use experience of the user is improved.

Description

Display method, device and medium for device panel
Technical Field
The present application relates to the field of network management technologies, and in particular, to a method, an apparatus, and a medium for displaying an apparatus panel.
Background
The gateway or the controller often includes a plurality of devices, and in an IT operation and maintenance management and network management system, real-time display of device state information is very important, and real-time display of device information in topology is often realized by displaying panel information of the devices in detail in a chart form.
In the prior art, the equipment panel needs to be edited manually, whether the equipment ports are online or not cannot be visually displayed in real time, and the ports and the port types cannot be distinguished.
Disclosure of Invention
The embodiment of the application provides a method, equipment and a medium for displaying an equipment panel, which are used for solving the technical problem that the online state, the port name and the port type of a port cannot be displayed by manually editing the equipment panel in the prior art.
In one aspect, an embodiment of the present application provides a display method for an equipment panel, including:
determining the equipment type corresponding to each equipment, and acquiring an equipment panel corresponding to the equipment type of a target equipment according to a preset mode so as to take the corresponding equipment panel as a background image of the target equipment;
configuring corresponding configuration files for the equipment respectively, and naming the configuration files corresponding to the equipment respectively according to the equipment types corresponding to the equipment;
reading the configuration file named correspondingly according to the equipment type of the target equipment to obtain port names corresponding to all ports in the configuration file of the target equipment, and determining the port types corresponding to the ports according to the port names corresponding to the ports; wherein the port type comprises an optical port type and an electrical port type;
acquiring state information of a port in the target equipment according to the port type, and displaying the port on a background image of the target equipment based on relative coordinates and sizes of the port in the configuration file of the target equipment according to the state information of the port; wherein the state information of the port includes an online state and an offline state.
In an implementation manner of the present application, the determining a device type corresponding to each device, and obtaining a device panel corresponding to a device type of a target device according to a preset manner, so as to use the corresponding device panel as a background map of the target device specifically includes:
acquiring equipment images corresponding to the equipment, and inputting the equipment images into a pre-trained type recognition model so as to output equipment types of the equipment corresponding to the equipment images;
determining a panel acquisition mode corresponding to the equipment type from a preset mode according to the equipment type corresponding to the target equipment, and acquiring an equipment panel corresponding to the equipment type of the target equipment from a gateway or a controller according to the corresponding panel acquisition mode;
and taking the device panel corresponding to the target device as a background image of the target device.
In an implementation manner of the present application, before the inputting the device image into a pre-trained type recognition model to output a device type of a device corresponding to the device image, the method further includes:
inputting an equipment image with a predetermined equipment type into a convolutional neural network for training, and acquiring a plurality of attribute characteristics of the equipment from the equipment image through a convolutional layer, a pooling layer and a full-link layer of the convolutional neural network;
and outputting the equipment type corresponding to the equipment image according to the multiple attribute characteristics of the equipment, and finishing training a type recognition model when the equipment type output by the convolutional neural network is the same as the equipment type predetermined by the equipment image.
In an implementation manner of the present application, after configuring corresponding configuration files for each of the devices, the method further includes:
acquiring a trademark corresponding to the target equipment and port labels corresponding to ports in the target equipment so as to add the trademark corresponding to the target equipment to a background image corresponding to the target equipment;
according to the port labels corresponding to the ports in the target equipment, the ports corresponding to the port labels are respectively determined, and relative coordinates between the ports and the target equipment are obtained, so that the relative coordinates of the ports are added to the configuration files corresponding to the target equipment.
In an implementation manner of the present application, the reading, according to the device type of the target device, the configuration file named correspondingly to obtain a port name corresponding to each port in the configuration file of the target device, and determining, according to the port name corresponding to the port, the port type corresponding to the port specifically includes:
acquiring a configuration file named corresponding to the equipment type from a configuration file library according to the equipment type of the target equipment, and acquiring a plurality of ports corresponding to the identification information from the configuration file according to the identification information of the target equipment;
respectively acquiring port names corresponding to the ports from the configuration file according to the plurality of ports corresponding to the acquired identification information, and inquiring the port names in a port type table according to the port names corresponding to the ports;
and when the port name corresponding to the port is matched with the port name in the port type table, determining the port type corresponding to the port according to the port type of the matched port name in the port type table.
In an implementation manner of the present application, the obtaining, according to the port type, state information of a port in the target device, and displaying, according to the port state information and based on a relative coordinate and a size of the port in the target device configuration file, the port corresponding to the port state information on a background map of the target device specifically includes:
determining a state information table corresponding to the device type according to the device type of the target device, and acquiring state information corresponding to a port in the target device from the state information table according to the port type and the identification information of the target device;
according to the state information of the port, acquiring a resource path of a port image corresponding to the state information from a configuration file corresponding to the target equipment, and acquiring the port image corresponding to the state information according to the resource path of the port image;
according to the port name of the port, determining the relative coordinates and sizes of the port and the target equipment from a configuration file corresponding to the target equipment, and displaying a port image corresponding to the state information of the port on a background image of the target equipment based on the relative coordinates and sizes of the port.
In an implementation manner of the present application, after the port is displayed on the background map of the target device based on the relative coordinates and sizes of the port in the target device configuration file according to the state information of the port, the method further includes:
determining whether the state information of the port is on-line or not through the port image displayed on the background image, and determining the port type corresponding to the port according to the port name corresponding to the port on the background image;
and determining a port rate corresponding to the port according to the port type corresponding to the port, and sending the port type and the port rate corresponding to the port to a background image of the target equipment for displaying so as to obtain an equipment panel corresponding to the target equipment.
In one implementation of the present application, the configuration file includes at least one or more of the following: resource path of background picture, port name, resource path of port picture, relative coordinate and size of port.
On the other hand, the embodiment of the present application further provides a display device for a device panel, where the device includes:
at least one processor;
and a memory communicatively coupled to the at least one processor;
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for displaying the equipment panel.
In another aspect, an embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, where the computer-executable instructions are configured to:
the display method of the equipment panel is as described above.
The embodiment of the application provides a display method, equipment and a medium for an equipment panel, which at least have the following beneficial effects:
acquiring an equipment panel corresponding to the target equipment according to the equipment type of the target equipment, and taking the equipment panel as a background image of the target equipment, so that the equipment panel can be displayed on the basis of the background image; the configuration file corresponding to the target equipment is obtained, and the configuration file corresponding to the target equipment is named according to the equipment type of the target equipment, so that the configuration file of the target equipment can be determined according to the equipment type in the following process; acquiring the port name of each port from a configuration file corresponding to the target equipment, and determining whether the port type is an optical port type or an electrical port type according to the port name; by acquiring the state information of each port in the target equipment, whether the port picture on which the port is on line is displayed on the background picture can be visually displayed according to the state information of the port and the relative coordinates and sizes of the ports, so that the visual configuration of the equipment panel is realized, a user can visually acquire equipment data, the readability of the data is increased, the use experience of the user is improved, the resource management capability of the equipment is improved, the maintenance time is saved, and the maintenance efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart illustrating a method for displaying an equipment panel according to an embodiment of the present disclosure;
fig. 2 is a schematic internal structural diagram of a display device of a device panel according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method, equipment and a medium for displaying an equipment panel, wherein the equipment panel corresponding to target equipment is obtained through the equipment type of the target equipment and is used as a background image of the target equipment, and the equipment panel can be displayed on the basis of the background image; the configuration file corresponding to the target equipment is obtained, and the configuration file corresponding to the target equipment is named according to the equipment type of the target equipment, so that the configuration file of the target equipment can be determined according to the equipment type in the following process; acquiring the port name of each port from a configuration file corresponding to the target equipment, and determining whether the port type is an optical port type or an electrical port type according to the port name; by acquiring the state information of each port in the target equipment, a port picture for displaying whether the port is on line can be visually displayed on a background picture according to the state information of the port and the relative coordinates and the size of the port. The technical problem that in the prior art, the online state, the port name and the port type of the port cannot be displayed by manually editing the equipment panel is solved.
Fig. 1 is a schematic flowchart of a method for displaying an equipment panel according to an embodiment of the present disclosure. As shown in fig. 1, a method for displaying an equipment panel provided in an embodiment of the present application mainly includes the following steps:
step 101, determining the device type corresponding to each device, and acquiring a device panel corresponding to the device type of the target device according to a preset mode, so as to use the corresponding device panel as a background image of the target device.
In a gateway or a controller, multiple types of network devices of multiple manufacturers are often included, and therefore, the multiple types of network devices of multiple manufacturers need to be managed uniformly. Since the device compositions corresponding to different types of devices are also different, when a plurality of devices in a gateway or a controller are managed in a unified manner, the devices need to be managed in a subsequent manner according to the device types of the network devices.
The server firstly determines the device type corresponding to each device in the gateway or the controller, and then acquires the device panel corresponding to the device type of the target device in a preset mode according to the device type corresponding to the target device, so that the acquired device panel is used as a background image of the device type corresponding to the target device, and other data information of the device can be added on the background image conveniently in the follow-up process.
Specifically, the server determines an equipment image corresponding to the equipment from a plurality of equipment images in the gateway or the controller, inputs the equipment image corresponding to the equipment into a pre-trained type recognition model, so as to output the equipment type of the equipment corresponding to the equipment image, further determines a panel acquisition mode corresponding to the equipment type from a preset mode according to the equipment type corresponding to the equipment, and acquires an equipment panel corresponding to the equipment type of the target equipment from the gateway or the controller according to the panel acquisition mode corresponding to the target equipment, so as to take the equipment panel corresponding to the equipment type of the target equipment as a background image corresponding to the target equipment.
In an embodiment of the application, before inputting a device image into a pre-trained type recognition model to output a device type of a device corresponding to the device image, a server inputs the device image of the pre-determined device type into a convolutional neural network for training, acquires a plurality of attribute features of the device from the device image through a convolutional layer, a pooling layer and a full connection layer in the convolutional neural network, then outputs the device type corresponding to the device image according to the plurality of attribute features of the device, and completes training of the type recognition model when the device type output by the convolutional neural network is the same as the device type pre-determined by the device image.
And 102, configuring corresponding configuration files for each device, and naming the configuration files corresponding to the devices according to the device types corresponding to the devices.
The server respectively configures the corresponding configuration files for the devices, so that the data information of the target device can be conveniently displayed in a background image of the target device according to the specific configuration information of the target device in the configuration files. The server names the configuration files corresponding to the devices according to the device types corresponding to the devices, so that a user can find the configuration files corresponding to the devices according to the device types of the read configuration files, the acquisition time of the configuration files corresponding to the devices is saved, the execution efficiency of the system is improved, and the use experience of the user is improved.
It should be noted that the configuration file in the embodiment of the present application includes at least one or more of the following items: the resource path of the background picture, the port name, the resource path of the port picture, and the relative coordinates and size of the port. The server can acquire the port name of the target device and the resource path of the port picture from the configuration file, and further acquire the port picture corresponding to the port in the target device according to the resource path of the port picture. In addition, other contents of the corresponding device can be configured in the configuration file, for example: the content such as the port label corresponding to each port in the device may be configured according to the actual requirement, and this is not specifically limited in the present application.
In an embodiment of the application, after configuring corresponding configuration files for respective devices, a server acquires a trademark corresponding to a target device from a device image corresponding to the target device, acquires a port label corresponding to each port in the target device from the configuration file corresponding to the target device, adds the trademark corresponding to the target device to a background image corresponding to the target device, determines each port in the target device according to the port label corresponding to each port in the target device, determines relative coordinates between each port and the target device, and adds the relative coordinates of the ports to the configuration file corresponding to the target device.
Step 103, reading the corresponding named configuration file according to the device type of the target device to obtain the port name corresponding to each port in the configuration file of the target device, and determining the port type corresponding to the port according to the port name corresponding to the port.
The server finds the configuration file named corresponding to the device type of the target device from the configuration files corresponding to the multiple devices according to the device type corresponding to the target device, obtains the port name corresponding to each port from the configuration file corresponding to the target device, and then can determine the port type corresponding to the current port name according to the port name corresponding to the port, so that a subsequent user can visually obtain the type of each port in the device.
Specifically, the server obtains a configuration file corresponding to the device type of the target device from a configuration file library according to the device type of the target device, further obtains a plurality of ports corresponding to the identification information of the target device from the configuration file according to the identification information of the target device, then respectively obtains port names corresponding to the ports from the configuration file according to the plurality of ports corresponding to the obtained identification information, and queries the port names in a port type table according to the port names corresponding to the ports. And when the port name corresponding to the port is matched with the port name in the port type table, the server determines the port type corresponding to the port according to the port type of the matched port name in the port type table.
And 104, acquiring the state information of each port in the target equipment, and displaying the port on a background image of the target equipment according to the state information of the port on the basis of the relative coordinates and the size of the port in the configuration file of the target equipment.
The server regularly acquires the state information corresponding to the port in the target equipment according to the port type corresponding to the port and the preset time through the state acquisition device arranged in the target equipment, and then displays the port on a background picture of the target equipment according to the state information of the port and based on the relative coordinates and the size of the port in the configuration file, so that whether the equipment port is online or not can be intuitively displayed in real time, a user can also distinguish each port visually, and the port type corresponding to each port can be obtained in time.
It should be noted that, in the embodiment of the present application, the status information of the port includes an online status and an offline status. The port of the device is represented to be in an online state in a highlight picture mode, and the port of the device is represented to be in an offline state in a dark picture mode.
Specifically, the server determines a state information table corresponding to the device type according to the device type of the target device, acquires state information corresponding to the port of the target device from the state information table according to the port type corresponding to the port and identification information corresponding to the target device, acquires a resource path of a port image corresponding to the state information from a configuration file corresponding to the target device according to the state information of the port of the target device, and acquires the port image corresponding to the state information according to the resource path of the port image.
The server determines the relative coordinates and sizes of the output port and the target equipment from the configuration file corresponding to the target equipment according to the port name of the port, so that the port image corresponding to the state information of the port is displayed on the background picture of the target equipment based on the relative coordinates and sizes of the port, the automatic display of the equipment panel is realized, the human resources are saved, the misoperation during manual operation is avoided, the visual configuration of the equipment panel is realized, and the working efficiency is improved.
In an embodiment of the present application, after displaying a port on a background map of a target device according to state information of the port based on relative coordinates and sizes of the port in a configuration file of the target device, a server determines whether state information of an output port is online through a port image displayed on the background map, thereby determining a port type corresponding to the port according to a port name corresponding to the port on the background map, then determining a port rate corresponding to the port according to the port type corresponding to the port, and sending the port type corresponding to the port and the port rate to the background map of the target device for displaying, thereby obtaining a device panel corresponding to the target device.
The above is the method embodiment proposed by the present application. Based on the same inventive concept, the embodiment of the present application further provides a display device of a device panel, which is structurally shown in fig. 2.
Fig. 2 is a schematic internal structural diagram of a display device of a device panel according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to:
determining the equipment type corresponding to each equipment, and acquiring an equipment panel corresponding to the equipment type of the target equipment according to a preset mode so as to take the corresponding equipment panel as a background image of the target equipment;
determining a configuration file corresponding to target equipment, and naming the configuration file corresponding to the target equipment according to the equipment type corresponding to the target equipment;
reading the corresponding named configuration file according to the device type of the target device to obtain the port name corresponding to each port in the configuration file of the target device, and determining the port type corresponding to the port according to the port name corresponding to the port; the port type comprises an optical port type and an electric port type;
acquiring the state information of a port in the target equipment according to the port type, and displaying the port on a background image of the target equipment according to the state information of the port on the basis of the relative coordinates and the size of the port in the configuration file of the target equipment; the state information of the port includes an online state and an offline state.
An embodiment of the present application further provides a non-volatile computer storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to:
determining the equipment type corresponding to each equipment, and acquiring an equipment panel corresponding to the equipment type of the target equipment according to a preset mode so as to take the corresponding equipment panel as a background image of the target equipment;
determining a configuration file corresponding to target equipment, and naming the configuration file corresponding to the target equipment according to the equipment type corresponding to the target equipment;
reading the corresponding named configuration file according to the device type of the target device to obtain the port name corresponding to each port in the configuration file of the target device, and determining the port type corresponding to the port according to the port name corresponding to the port; the port type comprises an optical port type and an electric port type;
acquiring state information of a port in target equipment according to the port type, and displaying the port on a background image of the target equipment based on relative coordinates and sizes of the port in a configuration file of the target equipment according to the state information of the port; the state information of the port includes an online state and an offline state.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for displaying a device panel, the method comprising:
determining the equipment type corresponding to each equipment, and acquiring an equipment panel corresponding to the equipment type of a target equipment according to a preset mode so as to take the corresponding equipment panel as a background image of the target equipment;
configuring corresponding configuration files for each device, and naming the configuration files corresponding to the devices according to the device types corresponding to the devices;
reading the configuration file named correspondingly according to the equipment type of the target equipment to obtain port names corresponding to all ports in the configuration file of the target equipment, and determining the port types corresponding to the ports according to the port names corresponding to the ports; wherein the port type comprises an optical port type and an electrical port type;
acquiring the state information of a port in the target equipment according to the port type, and displaying the port on a background image of the target equipment according to the state information of the port on the basis of the relative coordinates and the size of the port in the configuration file of the target equipment; wherein the state information of the port includes an online state and an offline state.
2. The method for displaying the device panel according to claim 1, wherein the determining of the device type corresponding to each device and obtaining the device panel corresponding to the device type of the target device according to a preset manner to use the corresponding device panel as a background map of the target device specifically include:
acquiring equipment images corresponding to the equipment, and inputting the equipment images into a pre-trained type recognition model so as to output equipment types of the equipment corresponding to the equipment images;
determining a panel acquisition mode corresponding to the equipment type from a preset mode according to the equipment type corresponding to the target equipment, and acquiring an equipment panel corresponding to the equipment type of the target equipment from a gateway or a controller according to the corresponding panel acquisition mode;
and taking the device panel corresponding to the target device as a background image of the target device.
3. The method as claimed in claim 2, wherein before the inputting the device image into a pre-trained type recognition model to output the device type of the device corresponding to the device image, the method further comprises:
inputting an equipment image with a predetermined equipment type into a convolutional neural network for training, and acquiring a plurality of attribute characteristics of the equipment from the equipment image through a convolutional layer, a pooling layer and a full-link layer of the convolutional neural network;
and outputting the equipment type corresponding to the equipment image according to the multiple attribute characteristics of the equipment, and finishing training a type recognition model when the equipment type output by the convolutional neural network is the same as the equipment type predetermined by the equipment image.
4. The method as claimed in claim 1, wherein after configuring the corresponding configuration file for each of the devices, the method further comprises:
acquiring a trademark corresponding to the target equipment and port labels corresponding to ports in the target equipment so as to add the trademark corresponding to the target equipment to a background image corresponding to the target equipment;
according to the port labels corresponding to the ports in the target equipment, the ports corresponding to the port labels are respectively determined, and relative coordinates between the ports and the target equipment are obtained, so that the relative coordinates of the ports are added to the configuration files corresponding to the target equipment.
5. The method according to claim 1, wherein the reading the configuration file named correspondingly according to the device type of the target device to obtain a port name corresponding to each port in the configuration file of the target device, and determining the port type corresponding to the port according to the port name corresponding to the port specifically includes:
acquiring a configuration file named corresponding to the equipment type from a configuration file library according to the equipment type of the target equipment, and acquiring a plurality of ports corresponding to the identification information from the configuration file according to the identification information of the target equipment;
respectively acquiring port names corresponding to the ports from the configuration file according to the plurality of ports corresponding to the acquired identification information, and inquiring the port names in a port type table according to the port names corresponding to the ports;
and when the port name corresponding to the port is matched with the port name in the port type table, determining the port type corresponding to the port according to the port type of the matched port name in the port type table.
6. The method according to claim 1, wherein the obtaining status information of the port in the target device according to the port type, and displaying the port corresponding to the port status information on a background map of the target device according to the port status information based on the relative coordinates and sizes of the ports in the target device configuration file specifically includes:
determining a state information table corresponding to the device type according to the device type of the target device, and acquiring state information corresponding to a port in the target device from the state information table according to the port type and the identification information of the target device;
according to the state information of the port, acquiring a resource path of a port image corresponding to the state information from a configuration file corresponding to the target equipment, and acquiring the port image corresponding to the state information according to the resource path of the port image;
according to the port name of the port, determining the relative coordinates and sizes of the port and the target equipment from a configuration file corresponding to the target equipment, and displaying a port image corresponding to the state information of the port on a background image of the target equipment based on the relative coordinates and sizes of the port.
7. The method as claimed in claim 1, wherein after the displaying the port on the background map of the target device based on the relative coordinates and size of the port in the target device profile according to the status information of the port, the method further comprises:
determining whether the state information of the port is on-line or not through the port image displayed on the background image, and determining the port type corresponding to the port according to the port name corresponding to the port on the background image;
and determining a port rate corresponding to the port according to the port type corresponding to the port, and sending the port type and the port rate corresponding to the port to a background image of the target equipment for displaying so as to obtain an equipment panel corresponding to the target equipment.
8. The method for displaying the equipment panel according to claim 1, wherein the configuration file at least comprises one or more of the following items: resource path of background picture, port name, resource path of port picture, relative coordinate and size of port.
9. A display device for a device panel, the device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of displaying a device panel as claimed in any one of claims 1 to 8.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
a method of displaying an equipment panel as claimed in any one of claims 1 to 8.
CN202210845390.7A 2022-07-19 2022-07-19 Display method, device and medium for device panel Pending CN115277865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210845390.7A CN115277865A (en) 2022-07-19 2022-07-19 Display method, device and medium for device panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210845390.7A CN115277865A (en) 2022-07-19 2022-07-19 Display method, device and medium for device panel

Publications (1)

Publication Number Publication Date
CN115277865A true CN115277865A (en) 2022-11-01

Family

ID=83767130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210845390.7A Pending CN115277865A (en) 2022-07-19 2022-07-19 Display method, device and medium for device panel

Country Status (1)

Country Link
CN (1) CN115277865A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115775622A (en) * 2023-02-10 2023-03-10 成都瑞华康源科技有限公司 Visualization method based on port configuration of operating room equipment set

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510833A (en) * 2009-04-07 2009-08-19 杭州华三通信技术有限公司 Method and apparatus for generating equipment panel
CN109872317A (en) * 2019-02-22 2019-06-11 西南交通大学 A kind of defect identification method based on power equipments defect identification learning model

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510833A (en) * 2009-04-07 2009-08-19 杭州华三通信技术有限公司 Method and apparatus for generating equipment panel
CN109872317A (en) * 2019-02-22 2019-06-11 西南交通大学 A kind of defect identification method based on power equipments defect identification learning model

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115775622A (en) * 2023-02-10 2023-03-10 成都瑞华康源科技有限公司 Visualization method based on port configuration of operating room equipment set
CN115775622B (en) * 2023-02-10 2023-04-21 成都瑞华康源科技有限公司 Visualization method based on port configuration of operating room equipment set

Similar Documents

Publication Publication Date Title
CN110868763B (en) Method, device and system for establishing Bluetooth connection
CN109582403A (en) Interlocked display method and device between chart inner assembly
CN113112208A (en) Electric power material storage management method based on three-dimensional visualization model
CN115277865A (en) Display method, device and medium for device panel
CN106648567B (en) Data acquisition method and device
CN108874379B (en) Page processing method and device
CN116257666A (en) Echarts-based data dynamic rendering display method and system
CN113364640A (en) Visualization method and device for operation index
CN106569816B (en) Rendering method and device
CN110297958A (en) Data visualization processing method and processing device
CN107016044B (en) Data visualization processing method and device
CN113055209B (en) Arranging method and device for edge calculation
US11797719B2 (en) Dynamic preview generation in a product lifecycle management environment
CN114253845A (en) Automatic testing method and device for special-shaped architecture integration system
CN111966892B (en) Data processing method and device, computer storage medium and electronic equipment
CN114661814A (en) Method, system, device and readable medium for realizing warehouse 3D visualization
CN114187416A (en) Conference room reservation method and device
CN115687310A (en) Data cleaning method and device
CN112749229A (en) Data conversion method, device, storage medium and electronic equipment
CN111475589A (en) Image data rendering method and device
CN116309940B (en) Map information display method, equipment and medium based on animation popup window assembly
CN110968993A (en) Information processing method and device, storage medium and processor
CN110633181B (en) Visual display method and device
CN108182199B (en) Method and system for generating electric power transaction data graph
CN110909071A (en) Data synchronization method, device and system

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