CN111025944A - State information acquisition method and device, readable medium and electronic equipment - Google Patents
State information acquisition method and device, readable medium and electronic equipment Download PDFInfo
- Publication number
- CN111025944A CN111025944A CN201911324060.8A CN201911324060A CN111025944A CN 111025944 A CN111025944 A CN 111025944A CN 201911324060 A CN201911324060 A CN 201911324060A CN 111025944 A CN111025944 A CN 111025944A
- Authority
- CN
- China
- Prior art keywords
- state information
- memory
- image
- acquisition
- equipment
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and a device for acquiring state information, a readable medium and electronic equipment, wherein the method comprises the following steps: acquiring state information of equipment according to a preset time period by using an image acquisition device; storing the state information into a memory; when an acquisition instruction is received, the state information is called from the memory and pushed; periodically acquiring state information of equipment and storing the state information into a memory; when the state information needs to be acquired, the acquired state information can be directly called from the memory without being acquired on site, so that the response speed is improved.
Description
Technical Field
The invention relates to the technical field of internet of things, in particular to a method and a device for acquiring state information, a readable medium and electronic equipment.
Background
In the internet of things technology, acquiring the state information of equipment in real time and monitoring the state of the equipment are very important development directions. In the field of energy, the state information of equipment such as a boiler and an air compressor can be expected to be monitored in real time by means of the technology of the internet of things. In many scenes, however, the devices such as the boiler and the air compressor are old devices without network communication function, and cannot be directly connected to the platform of the internet of things.
In the prior art, the internet of things platform can acquire the state information of the equipment in an indirect mode. For example, the device is shot by a camera accessing to the platform of the internet of things, and the shot image includes the state information of the device. And then uploading the image to an Internet of things platform to acquire the state information.
However, it can be seen that the process of indirectly acquiring the state information is complicated, so that when the user needs to retrieve the state information, the response speed may be slow.
Disclosure of Invention
The invention provides a state information acquisition method, a state information acquisition device, a readable medium and electronic equipment.
In a first aspect, the present invention provides a method for acquiring status information, including:
acquiring state information of equipment according to a preset time period by using an image acquisition device;
storing the state information into a memory;
and when receiving an acquisition instruction, calling the state information from the memory and pushing.
Preferably, the acquiring, by the image acquisition apparatus, the state information of the device according to the preset time period includes:
shooting an image of the equipment according to the time period by using the image acquisition device, wherein the image comprises the reading of the equipment;
and determining the state information of the equipment according to the indication number of the equipment in the image.
Preferably, the determining the status information of the device according to the indication of the device in the image comprises:
the indication of the device in the image is parsed using image analysis techniques to determine status information for the device.
Preferably, the storing the state information into a memory comprises:
determining a storage path corresponding to the equipment;
and storing the state information to a position corresponding to the equipment in the memory according to the storage path.
Preferably, the storing the state information to a location in the memory corresponding to the device comprises:
and storing the state information and the acquisition time corresponding to the state information to the position corresponding to the equipment in the memory.
Preferably, when the obtaining instruction is received, the retrieving the state information from the memory includes:
and when an acquisition instruction carrying a time condition is received, calling state information of which the acquisition time is matched with the time condition.
Preferably, when the obtaining instruction is received, the retrieving the state information from the memory includes:
and when an acquisition instruction which does not carry a time condition is received, calling the finally stored state information.
In a second aspect, the present invention provides an apparatus for acquiring status information, including:
the state information acquisition module is used for acquiring the state information of the equipment according to a preset time period by using the image acquisition device;
the storage module is used for storing the state information;
and the state information acquisition module is used for calling the state information from the storage module and pushing the state information when receiving the acquisition instruction.
In a third aspect, the present invention provides a readable medium, which includes an execution instruction, and when a processor of an electronic device executes the execution instruction, the electronic device executes the method for acquiring status information according to any one of the first aspect.
In a fourth aspect, the present invention provides an electronic device, including a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor executes the method for acquiring status information according to any one of the first aspect.
The invention provides a method and a device for acquiring state information, a readable medium and electronic equipment, wherein the state information of the equipment is periodically acquired and stored in a memory; when the state information needs to be acquired, the acquired state information can be directly called from the memory without being acquired on site, so that the response speed is improved.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a method for acquiring status information according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another status information obtaining method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for acquiring status information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
Large-scale equipment in the energy field, such as boilers, air compressors and the like, usually have a long service life. That is, the mass-active devices are still old devices manufactured many years ago, do not have network communication function, and the status information is usually displayed on the display screen of the devices in the form of readings. Therefore, under the current trend that the technology of the internet of things starts to be popularized, the old-fashioned devices are difficult to be directly accessed into the platform of the internet of things, and the state information of the old-fashioned devices cannot be uploaded in real time.
At present, the Internet of things platform can realize the collection of state information for old equipment in an indirect mode. For example, shooting equipment through a camera accessed to the platform of the internet of things so as to acquire state information. That is to say, when a user needs to acquire the state information of a certain device, the camera corresponding to the device can be called to shoot the image of the device through the platform of the internet of things. The image includes a display of the device on a display screen. And then the picture is transmitted to the Internet of things platform, so that the acquisition of the state information is realized.
Therefore, the above process is a more complex communication process, and the camera needs to be directly controlled, wait for the response of the camera and return the picture. There is often a significant communication delay. Especially, when multiple cameras need to be called simultaneously to shoot multiple devices, or multiple users call the cameras simultaneously, the efficiency of the system is unstable. Therefore, the invention provides the method and the device for acquiring the state information, which avoid calling a camera to shoot each time the state information is acquired, thereby improving the response efficiency.
Fig. 1 shows a specific embodiment of the method for acquiring status information according to the present invention. In this embodiment, the method specifically includes the following steps:
The image acquisition device can be a camera connected to the Internet of things platform, and can directly upload acquired images to the Internet of things platform. In this embodiment, the image capturing apparatus does not capture the device in response to a user instruction, but captures the device at regular time according to a preset time period.
Specifically, the image acquisition device may capture an image of the device according to a time period, where the image includes a display of the device. And the status information of the device can be determined according to the indication number of the device in the image.
Generally speaking, the display of the representation in the image is still in "image format" in nature, so further image analysis techniques may be used to parse the representation of the device in the image to determine status information of the device in "text format" for subsequent further processing. The process of analyzing the display of the "image format" to obtain the status information of the "text format" may be regarded as an existing image recognition process, and is not limited in this embodiment. Any image recognition technique having the same or similar functions may be incorporated in the present embodiment.
In this embodiment, the image capture device no longer responds to the user instruction, but acquires the state information according to a preset time period. It is necessary to store the state information in a specific memory after the state information is periodically acquired. The memory is also a memory under the platform of the internet of things, and specifically can be a cloud storage medium. After the state information is stored in the memory, the user may wait for a call.
And 103, when an acquisition instruction is received, calling the state information from the memory and pushing.
When a user wants to acquire the state information of the equipment, an acquisition instruction can be input to the platform of the Internet of things. In the embodiment, the image acquisition device periodically acquires the state information and stores the state information in the memory. It is not necessary to call the camera to take a picture in response to the user's instruction at this time. In this embodiment, the stored state information may be directly retrieved from the memory and pushed to the user, that is, the user may obtain the state information of the device.
Therefore, in the embodiment, the situation that the user directly calls the image acquisition device when acquiring the state information is avoided, and the complex processes of communication, image processing, information processing and the like on site are also avoided. The user can directly call the corresponding state information from the memory, thereby reducing the communication delay and improving the efficiency of obtaining the state information.
Although the status information acquired by the user is not absolutely "real-time", in this scenario, there is usually no strict requirement for real-time performance, so that a certain time lag in the status information is still acceptable. Also, the time lag of the state information may be adjusted by adjusting the preset period. The shorter the preset period is, the higher the real-time performance of the state information is. Therefore, the time period can be set according to the real-time requirement in this embodiment. Preferably, the time period may be set to 5 minutes.
According to the technical scheme, the beneficial effects of the embodiment are as follows: periodically acquiring state information of equipment and storing the state information into a memory; when the state information needs to be acquired, the acquired state information can be directly called from the memory without being acquired on site, so that the response speed is improved.
Fig. 1 shows only a basic embodiment of the method of the present invention, and based on this, certain optimization and expansion can be performed, and other preferred embodiments of the method can also be obtained.
Fig. 2 shows another embodiment of the method for acquiring status information according to the present invention. The present embodiment is further developed on the basis of the foregoing embodiments. The method specifically comprises the following steps:
In this embodiment, while the state information is collected, the collection time corresponding to the state information may be further recorded.
In general, a large number of devices are monitored simultaneously in the internet of things platform. Then in this embodiment, each device will be assigned a particular storage path when storing state information. That is, all the status information collected by the same device at a time period is stored in the corresponding position of the route, so as to facilitate management and maintenance.
In this embodiment, after the state information of a certain device is collected, a storage path corresponding to the device needs to be determined, and the device can be stored.
And 203, storing the state information to a position corresponding to the equipment in the memory according to the storage path.
In this embodiment, all the state information acquired by the same device according to the time period is stored in the position corresponding to the route. Specifically, the state information and the acquisition time corresponding to the state information may be stored in the memory at a location corresponding to the device. Therefore, a plurality of pieces of state information acquired according to the time period and the acquisition time corresponding to each piece of state information can be combined into one time sequence data, and the time sequence data can reflect the change condition of the state information of the equipment along with the time.
When acquiring the state information, the user may need to acquire real-time state information, or may need to acquire state information corresponding to a certain time point. In this embodiment, it is considered that, if the user needs to acquire the state information corresponding to a certain time point, the acquisition instruction input by the user should carry a time condition indicating the time point, and the method in this embodiment may enter step 204. Otherwise, if the time condition is not carried, the real-time status information is acquired by default, and the method in this embodiment enters step 205.
And step 204, when an acquisition instruction carrying a time condition is received, calling state information of which the acquisition time is matched with the time condition.
When an acquisition instruction carrying a time condition is received, inquiring the time sequence data according to the time condition, determining the acquisition time matched with the time condition, and calling the state information acquired by the acquisition time as the state information corresponding to the specific time point required to be acquired by the user.
And step 205, when an acquisition instruction which does not carry a time condition is received, calling the finally stored state information.
When an acquisition instruction carrying no time condition is received, the real-time state information, namely the state information stored in the memory for the last time, is acquired by default.
And step 206, pushing the state information to the user.
After the state information is acquired, the state information can be pushed to the user, and the acquisition of the state information is completed.
According to the technical solutions above, on the basis of the embodiment shown in fig. 1, the present embodiment further has the following beneficial effects: and combining a plurality of state information acquired according to the time period and the acquisition time corresponding to each state information into time sequence data, thereby realizing the acquisition of the state information at different time points.
Fig. 3 shows an embodiment of the apparatus for acquiring status information according to the present invention. The apparatus of this embodiment is a physical apparatus for performing the method described in fig. 1-2. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in this embodiment includes:
the state information acquiring module 301 is configured to acquire, by using an image acquiring apparatus, state information of the device according to a preset time period.
A storage module 302, configured to store the state information.
And the state information acquiring module 303 is configured to, when an acquiring instruction is received, retrieve the state information from the storage module and push the state information.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding execution instruction from the non-volatile memory into the memory and then runs the execution instruction, and may also obtain the corresponding execution instruction from other devices to form the state information obtaining device on a logic level. The processor executes the execution instruction stored in the memory, so that the state information acquisition method provided by any embodiment of the invention is realized through the executed execution instruction.
The method executed by the apparatus for acquiring status information according to the embodiment of the present invention shown in fig. 3 may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
An embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can be caused to execute the method for acquiring status information provided in any embodiment of the present invention, and is specifically configured to execute the method shown in fig. 1 or fig. 2.
The electronic device described in the foregoing embodiments may be a computer.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments of the present invention 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, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims (10)
1. A method for acquiring status information is characterized by comprising the following steps:
acquiring state information of equipment according to a preset time period by using an image acquisition device;
storing the state information into a memory;
and when receiving an acquisition instruction, calling the state information from the memory and pushing.
2. The method of claim 1, wherein the acquiring, by the image acquisition device, the state information of the device according to the preset time period comprises:
shooting an image of the equipment according to the time period by using the image acquisition device, wherein the image comprises the reading of the equipment;
and determining the state information of the equipment according to the indication number of the equipment in the image.
3. The method of claim 2, wherein determining the status information of the device based on the indication of the device in the image comprises:
the indication of the device in the image is parsed using image analysis techniques to determine status information for the device.
4. The method of claim 1, wherein storing the state information into a memory comprises:
determining a storage path corresponding to the equipment;
and storing the state information to a position corresponding to the equipment in the memory according to the storage path.
5. The method of claim 4, wherein storing the status information to the location in the memory corresponding to the device comprises:
and storing the state information and the acquisition time corresponding to the state information to the position corresponding to the equipment in the memory.
6. The method of claim 5, wherein the retrieving the state information from the memory when receiving the fetch instruction comprises:
and when an acquisition instruction carrying a time condition is received, calling state information of which the acquisition time is matched with the time condition.
7. The method of claim 1, wherein the retrieving the state information from the memory upon receiving a fetch instruction comprises:
and when an acquisition instruction which does not carry a time condition is received, calling the finally stored state information.
8. An apparatus for acquiring status information, comprising:
the state information acquisition module is used for acquiring the state information of the equipment according to a preset time period by using the image acquisition device;
the storage module is used for storing the state information;
and the state information acquisition module is used for calling the state information from the storage module and pushing the state information when receiving the acquisition instruction.
9. A readable medium comprising execution instructions that, when executed by a processor of an electronic device, cause the electronic device to perform the method of acquiring status information as claimed in any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor executes the method for acquiring status information according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911324060.8A CN111025944A (en) | 2019-12-20 | 2019-12-20 | State information acquisition method and device, readable medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911324060.8A CN111025944A (en) | 2019-12-20 | 2019-12-20 | State information acquisition method and device, readable medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111025944A true CN111025944A (en) | 2020-04-17 |
Family
ID=70211774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911324060.8A Pending CN111025944A (en) | 2019-12-20 | 2019-12-20 | State information acquisition method and device, readable medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111025944A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113984172A (en) * | 2021-10-20 | 2022-01-28 | 干霸干燥剂(深圳)有限公司 | Weighing method, system, device and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281846A (en) * | 2013-07-12 | 2015-01-14 | 苏州新天远节能环保科技有限公司 | Instrument data collecting method based on visual identity |
CN208754331U (en) * | 2018-09-25 | 2019-04-16 | 海宁纺织机械有限公司 | A kind of textile machine novel maintenance system based on Internet of Things and industrial cloud |
CN109669406A (en) * | 2018-11-21 | 2019-04-23 | 上海资鑫机电设备有限公司 | A kind of remote online monitoring system and its workflow of industrial equipment |
-
2019
- 2019-12-20 CN CN201911324060.8A patent/CN111025944A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281846A (en) * | 2013-07-12 | 2015-01-14 | 苏州新天远节能环保科技有限公司 | Instrument data collecting method based on visual identity |
CN208754331U (en) * | 2018-09-25 | 2019-04-16 | 海宁纺织机械有限公司 | A kind of textile machine novel maintenance system based on Internet of Things and industrial cloud |
CN109669406A (en) * | 2018-11-21 | 2019-04-23 | 上海资鑫机电设备有限公司 | A kind of remote online monitoring system and its workflow of industrial equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113984172A (en) * | 2021-10-20 | 2022-01-28 | 干霸干燥剂(深圳)有限公司 | Weighing method, system, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180225854A1 (en) | Picture processing method and apparatus | |
CN110769175B (en) | Intelligent analysis system, method and device | |
CN112291520A (en) | Abnormal event identification method and device, storage medium and electronic device | |
CN110031697B (en) | Method, device, system and computer readable medium for testing target identification equipment | |
CN105847413A (en) | Camera parameter processing method, apparatus and system, and server | |
CN111813629A (en) | Method, device and equipment for generating monitoring data of Web page | |
CN109656800B (en) | Method and device for testing image recognition application, terminal and storage medium | |
CN111025944A (en) | State information acquisition method and device, readable medium and electronic equipment | |
CN111324675A (en) | Analysis display method and system of application access link and electronic equipment | |
CN111586432A (en) | Method and device for determining air-broadcast live broadcast room, server and storage medium | |
CN113886273A (en) | Performance test method, device, test equipment and medium of application program | |
CN104170367A (en) | Virtual shutter image capture | |
CN111104915B (en) | Method, device, equipment and medium for peer analysis | |
CN114143429B (en) | Image shooting method, device, electronic equipment and computer readable storage medium | |
CN111797339A (en) | Page rendering monitoring method and device | |
CN113743342B (en) | Method, system, terminal and storage medium for detecting assembly flow | |
CN105472405A (en) | Reminder generation method and device | |
CN114595146A (en) | AB test method, device, system, electronic equipment and medium | |
CN115237669A (en) | Data backup method, data recovery method, data backup device, data recovery device and electronic equipment | |
CN111881153A (en) | Data processing method and device, electronic equipment and machine-readable storage medium | |
US8004569B2 (en) | Method and apparatus for obtaining still image frame with anti-vibration clearness for image processing device | |
CN117149608A (en) | Delay test method, delay test device, delay test equipment and storage medium | |
CN112988475B (en) | Disaster tolerance test method, device, test server and medium | |
CN111008145B (en) | Test information acquisition method and device | |
US20240259699A1 (en) | Method and electronic device for interested event based image capture |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200417 |
|
RJ01 | Rejection of invention patent application after publication |