Disclosure of Invention
The application aims to provide a method, a device and a medium for checking the working state of equipment so as to achieve the purpose of checking the working state of the equipment in real time.
In order to solve the above technical problem, the present application provides a method for checking a working state of a device, including:
displaying equipment and the working state of the equipment;
acquiring current state information of the equipment;
and updating the working state according to the current state information.
Preferably, the acquiring the current state information of the device includes:
when a preset condition is met, calling an API (application program interface) method of the Internet of things to acquire the current state information sent by the equipment node through a message system;
or receiving message push sent by the message system to acquire the current state information.
Preferably, before the step of displaying the device and the working state of the device, the method further comprises:
acquiring pipe rack place information and pipe rack coordinate information, wherein the pipe rack place information comprises road information and cabin information;
establishing an environment model according to the pipe gallery place information and the pipe gallery coordinate information;
displaying the environmental model on a map.
Preferably, the display device and the operating state of the device include:
acquiring equipment information and screening conditions of the equipment, wherein the equipment information comprises identification information and equipment coordinate information;
judging whether the equipment information and the working state of the equipment meet the screening condition or not;
and if the screening condition is met, displaying the equipment and the working state on the map.
Preferably, the displaying the device and the operating state on the map includes:
judging whether the number of the equipment in a single cabin is greater than a threshold value or not according to the equipment coordinate information and the cabin information;
if the current state is greater than the threshold value, only displaying a state icon and listing all the devices in a pull-down menu mode, wherein if all the devices work, the state icon is a working icon, and if the devices which do not work exist, the state icon is a non-working icon;
and if the current state is not greater than the threshold value, displaying all the equipment and the working state.
Preferably, the method further comprises the following steps:
when the working state of the equipment is detected to be abnormal, changing the icon of the equipment to send an alarm to a manager, wherein the abnormal working state is that the working state is inconsistent with a preset state.
Preferably, the current state information of the device is acquired by a zone unit controller.
In order to solve the above technical problem, the present application further provides a device for checking an operating status of an apparatus, including:
the display module is used for displaying equipment and the working state of the equipment;
the judging module is used for acquiring the current state information of the equipment;
and the updating module is used for updating the working state according to the current state information.
In order to solve the above technical problem, the present application further provides an apparatus for checking a working state of a device, including a memory for storing a computer program;
and the processor is used for realizing the steps of the method for viewing the working state of the equipment when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for viewing the operating state of a device.
The method for checking the working state of the equipment comprises the following steps: the device and the operating state of the device are displayed on a map to facilitate monitoring of the operating state of the device. The server acquires the current state information of the equipment, updates the working state according to the current state information and can reflect the working state of the equipment to the user in real time. Therefore, according to the technical scheme provided by the application, the display information can be updated according to the real-time working state of the equipment, so that a user can check the working state of the equipment in real time, and the use experience of the user is improved.
In addition, the application also provides a device and a medium for checking the working state of the equipment, which correspond to the method and have the same effects.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a method, a device and a medium for checking the working state of equipment.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
In the application scene of using internet of things to monitor city utility tunnel engineering, the accurate detailed operating condition of response equipment of static picture can't be accurate, in order can real time monitoring equipment's operating condition, at first write in the map with the coordinate information of equipment in the piping lane to display the operating condition information of the concrete position of equipment and equipment on the map. And the current state information of the corresponding equipment is obtained through the sensor at all times, and the working state of the equipment is updated according to the current state information. It can be understood that the map mentioned in the present application may be a map set by a manager, or may also adopt third-party map software such as a Baidu map.
Fig. 1 is a flowchart of a method for viewing an operating state of a device according to an embodiment of the present application, where as shown in fig. 1, the method includes:
s10: displaying the device and the operating state of the device.
In the specific implementation, the coordinate information (such as the information of the road where the pipe gallery is located, the cabin of the pipe gallery, partition information, name and coordinate position) and the geographical information (such as the information of the type of the equipment, the name of the equipment, the coordinate position of the equipment and the like) of the pipe gallery and the geographic information of the pipe gallery are collected and stored into the service database, so that the working states of the equipment and the corresponding equipment can be displayed to a user through the equipment state viewing platform. The service database can be a local database or a cloud database located at a remote end.
It can be understood that the working status of the device can be displayed in the form of a file or a table, and the identity (for example, the device number) of the device and the status of the device are displayed to the user in a one-to-one correspondence manner, or can be directly displayed on a map, that is: and displaying the equipment and the equipment state on a map correspondingly according to the coordinate position of the equipment. The latter display scheme is more clear and intuitive. The map can be a map built and imported by a user, and can also be a map provided by third-party GIS map software such as a Baidu map and a heaven-earth map.
It can be understood that the working state of the device may be the current working state of the device, or may be a preset working state.
When the user views the working state of the equipment, map data of the area where the pipe gallery range is located (such as important place names, road names and topographic features of the area where the pipe gallery is located) are displayed to the user, and the trend of the pipe gallery is distinguished and identified on the map in obvious colors.
Further, the devices and the operating states of the devices displayed to the user at the initial time may be all the devices and the operating states of the devices, or the operating states of the devices in the area may be designated in advance for the user. And the user can change the displayed device by operation.
S11: current state information of the device is obtained.
In a specific implementation, after the device and the operating state of the device are displayed in a map, the current state information of the device needs to be acquired through a sensor arranged at the device, so as to update the current state information of the device.
A sensor for gathering equipment state information is usually connected with the regional Control Unit (ACU) that sets up in the piping lane, and the state information that will gather is sent to equipment state through ACU and is looked over the platform and look over for the user and look over.
In specific implementation, when a preset condition is met (for example, a refresh operation of a user is detected, or a time period is met), the device status viewing platform acquires current device status information sent by the ACU through an API method provided by the internet of things platform, so as to update the device operating status displayed on the map.
S12: and updating the working state according to the current state information.
Further, the displayed working state of the device can be directly updated according to the obtained current state information, or whether the current state information is consistent with the working state of the device displayed on the map or not can be judged firstly, and if not, the displayed working state of the device is updated. The first method is selected in this embodiment.
And if the acquired equipment state information is inconsistent with the working state of the equipment displayed on the map, updating the running state of the equipment on the map.
It will be appreciated that in order to enable a user to more intuitively view the operational status of the device, the current operational status of the device may be represented on the map by icons of different colors. Taking the lighting device as an example, the lighting device in the on state is displayed in yellow, and the lighting device in the off state is displayed in gray.
In this embodiment, a method for checking an operating state of a device is provided, where the method includes: the device and the operating state of the device are displayed on a map to facilitate monitoring of the operating state of the device. The server acquires the current state information of the equipment and judges whether the current state information is consistent with the working state or not; if the current state information is inconsistent with the working state, the working state is updated according to the current state information, and the working state of the equipment can be reflected to the user in real time. Therefore, according to the technical scheme provided by the application, the display information can be updated according to the real-time working state of the equipment, so that a user can check the working state of the equipment in real time, and the use experience of the user is improved.
In a specific implementation, in order to enable a user to view the operating state of the device in time, current operating state information of the device needs to be acquired multiple times to update the operating state of the device displayed on the map.
On the basis of the above embodiment, acquiring the current state information of the device includes:
when the preset conditions are met, calling an API (application program interface) method of the Internet of things to acquire current state information sent by the equipment node through a message system;
or receiving message push sent by the message system to acquire the current state information.
It is understood that the preset condition mentioned in the present embodiment may be that a time period is satisfied, for example: presetting a time period by a manager, and acquiring current state information of the equipment at intervals of preset time; or detecting that a user triggers an update operation, such as: when detecting that a user clicks or drags an equipment icon through a mouse or presses a refresh button, acquiring current state information of the equipment; the method can also be used for calling an API (application programming interface) method of the internet of things to acquire the current state information sent by the equipment node through the message system when the client of the equipment state viewing platform is started. The preset condition is not limited herein.
In the operation process of the equipment state viewing platform, the client side and the ACU of the equipment state viewing platform acquire and realize the sending and receiving of data through the message system, and the client side subscribes the state information of the equipment and receives the pushing of the message system to acquire the current state information of the equipment. When the device status viewing platform calls the query interface to obtain the current status information of the device, the messaging system used comprises the Nats messaging technology and the RabbitMQ message queue. The Nats message technology is responsible for subscribing real-time monitoring data to real-time monitoring service in the Internet of things, and the RabbitMQ is responsible for pushing the real-time monitoring data from the real-time monitoring service to the client GIS map. And the client subscribes equipment state monitoring points in the pipe gallery. After the device state changes, the Nats message theme and the MQ message queue can automatically push the changed device state, or can automatically push the current device state information to the client at preset time intervals. And after receiving the state message, the client program updates the running state of the equipment on the GIS map in real time to realize automatic updating of the equipment state.
In this embodiment, the device status viewing platform calls an API method provided by the internet of things to obtain the current status information of the device through the message system, so that the efficiency of obtaining the device status information is improved, and data support is provided for subsequently updating the working status of the device.
It can be understood that, because the structure of the underground pipe gallery system is complicated, the structure of the pipe gallery and the building information inside the pipe gallery cannot be accurately displayed on the third-party map adopted in the embodiment, and the user cannot conveniently check the information.
In order to solve this problem, on the basis of the above embodiment, before the step of displaying the operating states of the device and the device, the method further includes:
acquiring pipe rack place information and pipe rack coordinate information, wherein the pipe rack place information comprises road information and cabin information;
establishing an environment model according to the pipe gallery place information and the pipe gallery coordinate information;
the environmental model is displayed on a map.
In specific implementation, the existing geographic information file may be directly input into a third-party map to construct an environment model, or a field measurement method may be adopted to obtain management geographic information, which is not limited herein.
It can be understood that the pipe gallery location information includes the road where the pipe gallery is located, the pipe gallery cabin, the partition information, the name and the coordinate position, etc.; and also includes corresponding equipment information (including equipment type, equipment name, coordinate position) in the cabin of each partition, and the like.
In this embodiment, the pipe gallery place information and the pipe gallery coordinate information are acquired in advance before the working states of the display device and the device to establish the pipe gallery environment model, so that a user can view the position of each device and the working state of the device in the pipe gallery more intuitively and accurately.
It can be understood that, because the display area is limited, all the devices in the pipe gallery cannot be displayed, in order to facilitate the viewing of a user, the devices in a certain area or the thumbnail of the whole pipe gallery can be randomly displayed, and after the user operation is detected, the display content is changed according to the user operation; the device and the working state of the device can also be displayed according to a display rule preset by a user.
On the basis of the above embodiment, the display device and the operating state of the device include:
acquiring equipment information and screening conditions of equipment, wherein the equipment information comprises identification information and equipment coordinate information;
judging whether the equipment information and the working state of the equipment meet the screening condition or not;
and if the screening condition is met, displaying the equipment and the working state on the map.
The device information includes identification information of the device (such as a device code, a serial number, etc.) and coordinate information of the device. The screening condition may be the working state of the device, the area where the device is located or the type of the device, for example: only the lighting device is displayed; displaying only the activated devices; devices that display only the designated area, etc.
Further, a user may also use the screening system to quickly check the working state of the designated device, fig. 2 is an application scene diagram of the screening system provided in the embodiment of the present application, and as shown in fig. 2, after the user selects the "off state" or "normal lighting" option, the lighting device currently in the off state may be displayed in the display interface.
In this embodiment, the devices are screened according to the screening conditions selected by the user, and the devices and the working states of the devices meeting the screening conditions are displayed on the map, so that the user can conveniently use the device working viewing platform and search the working states of the specified devices.
It will be appreciated that the number of devices in each area of the pipe rack may vary, for example, the number of horizontal displacement sensors used to monitor the monitoring of the pipe rack structure may range from 6 to 10 in each cabin (i.e. fire zone unit, typically 200 meters long area), and if the devices and the operating status of the devices are all displayed on the map, the icons of the different devices may be obstructed from each other, which is not easy for the user to view.
To solve this problem, on the basis of the above-described embodiment, displaying the device and the operating state on the map includes:
judging whether the number of the devices in a single cabin is greater than a threshold value or not according to the device coordinate information and the cabin information;
if the current state is greater than the threshold value, only displaying the state icon and listing all the devices in a pull-down menu mode, wherein if all the devices work, the state icon is a working icon, and if equipment which does not work exists, the state icon is a non-working icon;
and if the current value is not greater than the threshold value, displaying all equipment and working states.
The threshold mentioned in this embodiment may be a fixed value, or may be a value determined according to the size of the cabin area or the screen display area (that is, when the area of the display area for displaying a certain cabin is different, the threshold is also different), and is not limited herein.
In specific implementation, when the number of the devices in the cabin is not more than a threshold value, completely displaying each device icon and the working state of the corresponding device on a map; when the number of the devices in the cabin is larger than the threshold value, the cabin area only displays one device icon (the icon and the working state of any one device in the cabin can be randomly displayed, or an icon for representing that the area is shown in a contracted mode can be displayed, if all the devices in the cabin are in the working state, a red icon is displayed, and if the devices which are not in the working state exist in the cabin, a gray icon is displayed). When a user clicks the icon, all the devices in the cabin corresponding to the icon and the working states of the devices are displayed, fig. 3 is a display diagram of the devices in the cabin provided by the application embodiment, as shown in fig. 3, the devices in the cabin can be listed in a pull-down list form, or the cabin can be enlarged to display all the devices in the cabin.
It can be understood that because underground pipe gallery system scale is huge, and equipment quantity is many, the user can't in time master the operating condition of whole equipment through the visual observation. If the user does not find the equipment with abnormal working state in time, the pipe gallery system can not work normally.
In order to solve this problem, on the basis of the above embodiment, the method further includes: when the abnormal working state of the equipment is detected, the icon of the equipment is changed and an alarm is sent to a manager, wherein the abnormal working state is that the working state is inconsistent with the preset state.
When the platform detects that the current working state of a certain device is inconsistent with the preset working state, the platform judges that the working state of the device is abnormal and sends an alarm to a manager so that the manager can maintain the device in time.
It is understood that the preset working state may be a working state set by a manager or a user, or may be a theoretical working state obtained according to a management manual. Further, in this embodiment, the control operation of the administrator may also be checked, and it is determined whether the control operation of the administrator is consistent with that in the management manual, and if not, the operation of the administrator may be invalidated.
Further, for in time maintaining the equipment in the piping lane, can show maintainer's position in the piping lane on the map to in time the managers can transfer managers maintenance equipment, wherein, managers's position is by the positioning device (like GPS positioning device) direct transmission that can be carried by managers to the platform, also can be sent to nearest ACU by positioning device, and upload to the platform by ACU.
In this embodiment, when the abnormal working state of the device is detected, the icon of the device is changed and an alarm is given to a manager, so that the manager is reminded to maintain the device in time, and the safety and reliability of the platform are improved.
As a preferred embodiment, the current status information of the device is acquired by the zone unit controller in this embodiment.
The ACU is an area control module which is set according to the requirements of centralized control and transmission of numerous monitoring data on the site of a comprehensive pipe rack/cable tunnel, and integrates signal acquisition, local control, data exchange and remote networking.
In specific implementation, the ACU is generally made into a control cabinet, the state information acquired by the ACU is uploaded to a monitoring platform through equipment such as a programmable logic controller and an industrial switch, the working state of each equipment in a pipe rack is monitored by using the ACU, the system reliability is greatly improved, the fusion degree and the integration degree of each subsystem of comprehensive monitoring of the comprehensive pipe rack/cable tunnel are also improved, centralized control of a plurality of on-site monitoring data can be realized, and the repeated construction of a communication network is effectively reduced.
In the foregoing embodiment, a method for checking an operating state of a device is described in detail, and the present application also provides an embodiment corresponding to the device for checking an operating state of a device. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 4 is an apparatus for viewing an operating state of a device according to an embodiment of the present application, as shown in fig. 4, the apparatus includes:
thedisplay module 10 is used for displaying equipment and the working state of the equipment;
the judgingmodule 11 is configured to obtain current state information of the device, and judge whether the current state information is consistent with a working state;
and the updatingmodule 12 is configured to update the working state according to the current state information if the working state is inconsistent with the current state information.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
In addition, the application also provides an environment model establishing unit and an alarm unit,
wherein, environmental model establishes the unit and is used for acquireing piping lane place information and piping lane coordinate information, piping lane place information includes road information, cabin information, according to piping lane place information and piping lane coordinate information establish environmental model, show on the map environmental model makes the user can be more audio-visual looks over the relevant information of underground pipe gallery system on the map.
The alarm unit is used for changing the icon of the equipment and giving an alarm to a manager when the abnormal working state of the equipment is detected so as to remind the manager to maintain in time and improve the safety and reliability of the platform.
In this embodiment, an apparatus for checking an operating status of a device is provided, where the apparatus includes: the device and the operating state of the device are displayed on a map to facilitate monitoring of the operating state of the device. The server acquires the current state information of the equipment and judges whether the current state information is consistent with the working state or not; if the current state information is inconsistent with the working state, the working state is updated according to the current state information, and the working state of the equipment can be reflected to the user in real time. Therefore, according to the technical scheme provided by the application, the display information can be updated according to the real-time working state of the equipment, so that a user can check the working state of the equipment in real time, and the use experience of the user is improved.
Fig. 5 is a structural diagram of an apparatus for checking an operating state of a device according to another embodiment of the present application, and as shown in fig. 5, the apparatus for checking an operating state of a device includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for acquiring the operating state of the device as described in the above embodiments when executing the computer program.
The terminal device for viewing the working state of the device provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the method for viewing the working state of the device disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. Data 203 may include, but is not limited to, the operational status of the device, etc.
In some embodiments, the means for viewing the operating status of the device may further comprise a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in fig. 5 does not constitute a limitation of the means for viewing the operating state of the device and may include more or fewer components than those shown.
The device for checking the working state of the equipment, provided by the embodiment of the application, comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the following method can be realized:
acquiring equipment information and working state information of equipment, wherein the equipment information comprises identification information and coordinate information;
acquiring a screening condition, and judging whether equipment information and working state information of equipment meet the screening condition;
and if the screening condition is met, displaying the equipment and the working state of the equipment on the map according to the equipment information and the working state information.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, the device and the medium for checking the working state of the equipment provided by the application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.