CN111273573A - Environmental data monitoring method and device - Google Patents

Environmental data monitoring method and device Download PDF

Info

Publication number
CN111273573A
CN111273573A CN201811476202.8A CN201811476202A CN111273573A CN 111273573 A CN111273573 A CN 111273573A CN 201811476202 A CN201811476202 A CN 201811476202A CN 111273573 A CN111273573 A CN 111273573A
Authority
CN
China
Prior art keywords
environmental data
sensor
server
acquisition
acquisition device
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
CN201811476202.8A
Other languages
Chinese (zh)
Inventor
王隆海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201811476202.8A priority Critical patent/CN111273573A/en
Publication of CN111273573A publication Critical patent/CN111273573A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21068Configure input signals either as interrupt or status signals

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to the technical field of data monitoring, in particular to an environmental data monitoring method and an environmental data monitoring device, wherein the method can be applied to at least one acquisition device of a monitoring system, each acquisition device in the at least one acquisition device is connected with at least one sensor, and the method executed aiming at each acquisition device comprises the following steps: acquiring environmental data acquired by at least one sensor every a preset acquisition period; recording environment data corresponding to each sensor in at least one sensor in a temporary file; and selecting the environmental data corresponding to the target sensor from the temporary file to upload to the server, and deleting the environmental data uploaded to the server from the temporary file. By adopting the mode, the environmental data acquired by each acquisition device in the monitoring system can be integrally and intensively managed and controlled, and the occupation of storage resources can be reduced.

Description

Environmental data monitoring method and device
Technical Field
The present application relates to the field of data monitoring technologies, and in particular, to a method and an apparatus for monitoring environmental data.
Background
At present, places where a large number of electronic devices are deployed have high requirements on the surrounding environment. For example, in a computer room, the operating state of the electronic device may be affected by the surrounding environment, for example, when the temperature of the area where the electronic device is located is too high, the operating temperature of the electronic device may also be too high, and thus the processing performance of the electronic device may be affected. Therefore, there is a need for effective monitoring of the environment of a machine room.
However, in the existing solutions, a set of independent monitoring system is usually built in each machine room, for example, a sensor, a monitoring device, and the like are deployed in each machine room, and the monitoring device acquires and stores environmental parameters acquired by the sensor, so as to implement environmental monitoring. On one hand, because the machine rooms of a plurality of enterprises are distributed, the machine rooms are probably distributed in all regions of the country, and if an independent monitoring system is built in each region, the whole management and control of the enterprise machine rooms are difficult to realize; on the other hand, the monitoring equipment needs to store data acquired by the sensors, but the number of the sensors deployed in the machine room is large, the data amount stored by the monitoring equipment is large, and more storage resources need to be occupied.
Disclosure of Invention
In view of this, embodiments of the present application provide an environmental data monitoring method and apparatus, which can perform overall and centralized management and control on environmental data collected by each collection device in a monitoring system, and can reduce occupation of storage resources at the same time.
Mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides an environmental data monitoring method, which is applied to at least one acquisition device of a monitoring system, where each acquisition device of the at least one acquisition device is connected to at least one sensor, and for each acquisition device, the method performed includes:
acquiring environmental data acquired by at least one sensor every a preset acquisition period;
recording the environmental data corresponding to each sensor in the at least one sensor in a temporary file;
and selecting the environmental data corresponding to the target sensor from the temporary file to upload to a server, and deleting the environmental data uploaded to the server from the temporary file.
In a possible implementation manner, before uploading the environment data corresponding to each sensor stored in the temporary file to a server, the method further includes:
sending a registration request message to the server, wherein the registration request message carries attribute information of the acquisition equipment;
and receiving a registration response message sent by the server after the server authenticates the attribute information, wherein the registration response message is used for indicating the acquisition equipment to complete registration.
In one possible embodiment, the attribute information includes at least one of the following information:
the identification information of the acquisition equipment; acquiring configuration information of a sensor connected with the equipment; and the Simple Network Management Protocol (SNMP) group name of the acquisition equipment.
In a possible embodiment, the recording the environmental data corresponding to each of the at least one sensor in a temporary file includes:
and filtering the acquired environment data corresponding to each sensor, and recording the environment data meeting preset conditions in the temporary file.
In a possible implementation manner, the selecting, from the temporary file, environmental data corresponding to the target sensor to upload to a server includes:
and selecting the environment data corresponding to each sensor acquired in the latest continuous N time periods from the temporary file and uploading the environment data to a server, wherein N is a positive integer.
In a possible implementation manner, the selecting, from the temporary file, environmental data corresponding to the target sensor to upload to a server includes:
and selecting environmental data corresponding to the sensor with abnormal environmental data from the temporary file and uploading the environmental data to a server.
In a possible implementation manner, the selecting, from the temporary file, environmental data corresponding to the target sensor to upload to a server includes:
receiving a data acquisition request sent by a server, wherein the data acquisition request carries target sensor information;
and selecting environmental data corresponding to the target sensor matched with the target sensor information from the temporary file and uploading the environmental data to a server based on the target sensor information.
In one possible embodiment, the method further comprises:
when detecting that at least one connected sensor is updated, updating configuration information of the sensor;
sending a configuration update message to the server, the configuration update message including updated configuration information of the sensor.
In one possible embodiment, the sensor includes at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
In a second aspect, an embodiment of the present application further provides an environmental data monitoring method, which is applied to a server in a monitoring system, and the method includes:
determining at least one acquisition device successfully registered to a server, wherein each acquisition device of the at least one acquisition device records environmental data acquired by at least one sensor;
acquiring environmental data corresponding to a target sensor recorded by target acquisition equipment in the at least one acquisition equipment;
and when the situation that the environmental data corresponding to the target sensor meets the preset conditions is monitored, sending a prompt message to the user terminal.
In one possible embodiment, the determining at least one acquisition device that successfully registers with the server includes:
for the ith acquisition device of the at least one acquisition device, i being a positive integer, performing the following operations:
receiving a registration request message sent by the ith acquisition device, wherein the registration request message comprises a Simple Network Management Protocol (SNMP) group name of the ith acquisition device;
and when the SNMP group name of the ith acquisition device is configured in the server, allowing the ith acquisition device to register to the server.
In a possible implementation manner, the acquiring environmental data corresponding to the target sensor recorded by the target acquisition device in the at least one acquisition device includes:
establishing an SNMP process corresponding to each target acquisition device;
and acquiring the environmental data corresponding to the target sensor recorded by each target acquisition device by using the SNMP process corresponding to each target acquisition device.
In a possible embodiment, the preset condition comprises any one of the following conditions:
the environmental data is not within a preset range;
the environmental data is in the preset range in the current acquisition period, and the environmental data is not in the preset range in the last acquisition period.
In a possible embodiment, the preset range comprises a first preset range and a second preset range;
when the environment data is in the first preset range, the environment data is in a normal range; when the environmental data is not in the first preset range but in the second preset range, the environmental data is not in the normal range but the environmental data measurement state is in the normal state; when the environmental data are not in the second preset range, the measurement state of the environmental data is an abnormal state;
when the situation that the environmental data corresponding to the target sensor meet the preset conditions is monitored, a prompt message is sent to a user terminal, and the prompt message comprises the following steps:
when the situation that the environmental data corresponding to the target sensor is not in the first preset range but in the second preset range is monitored, sending a prompt message of environmental data abnormity to the user terminal; alternatively, the first and second electrodes may be,
and when the situation that the environmental data corresponding to the target sensor is not in the second preset range is monitored, sending a prompt message of abnormal environmental data measurement state to the user terminal.
In one possible embodiment, the method further comprises:
generating description information of the environmental data according to the corresponding relation between the acquisition time corresponding to the environmental data and the environmental data;
and displaying the description information of the environment data, and/or sending the description information of the environment data to the user terminal.
In one possible embodiment, the sensor includes at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
In a third aspect, an embodiment of the present application further provides an environmental data monitoring device, where the environmental data monitoring device is connected to at least one sensor, and the environmental data monitoring device includes:
the first acquisition module is used for acquiring environmental data acquired by at least one sensor every preset acquisition period;
the recording module is used for recording the environment data corresponding to each sensor in the at least one sensor in a temporary file;
and the uploading module is used for selecting the environmental data corresponding to the target sensor from the temporary file to upload to the server and deleting the environmental data uploaded to the server in the temporary file.
In a possible embodiment, the apparatus further comprises:
a first sending module, configured to send a registration request message to the server, where the registration request message carries attribute information of the device;
a receiving module, configured to receive a registration response message sent by the server after authenticating the attribute information, where the registration response message is used to instruct the device to complete registration.
In one possible embodiment, the attribute information includes at least one of the following information:
identification information of the device; configuration information of sensors to which the device is connected; a simple network management protocol, SNMP, protocol community name for the device.
In a possible implementation manner, the recording module is specifically configured to:
and filtering the acquired environment data corresponding to each sensor, and recording the environment data meeting preset conditions in the temporary file.
In a possible implementation manner, the upload module is specifically configured to:
and selecting the environment data corresponding to each sensor acquired in the latest continuous N time periods from the temporary file and uploading the environment data to a server, wherein N is a positive integer.
In a possible implementation manner, the upload module is specifically configured to:
and selecting environmental data corresponding to the sensor with abnormal environmental data from the temporary file and uploading the environmental data to a server.
In a possible implementation manner, the uploading module is specifically configured to upload the environment data corresponding to the target sensor to a server according to the following steps:
receiving a data acquisition request sent by a server, wherein the data acquisition request carries target sensor information;
and selecting environmental data corresponding to the target sensor matched with the target sensor information from the temporary file and uploading the environmental data to a server based on the target sensor information.
In a possible embodiment, the apparatus further comprises:
the updating module is used for updating the configuration information of the sensor when detecting that at least one connected sensor is updated;
and the second sending module is used for sending a configuration updating message to the server, wherein the configuration updating message comprises updated configuration information of the sensor.
In one possible embodiment, the sensor includes at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
In a fourth aspect, an embodiment of the present application further provides an environmental data monitoring device, where the device includes:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining at least one acquisition device successfully registered to the device, and each acquisition device in the at least one acquisition device records environmental data acquired by at least one sensor;
the second acquisition module is used for acquiring the environmental data corresponding to the target sensor recorded by the target acquisition equipment in the at least one acquisition equipment;
and the third sending module is used for sending a prompt message to the user terminal when the situation that the environmental data corresponding to the target sensor meets the preset conditions is monitored.
In a possible implementation, the determining module is specifically configured to determine that at least one acquisition device successfully registered to the apparatus according to the following steps:
for the ith acquisition device of the at least one acquisition device, i being a positive integer, performing the following operations:
receiving a registration request message sent by the ith acquisition device, wherein the registration request message comprises a Simple Network Management Protocol (SNMP) group name of the ith acquisition device;
when the SNMP community name of the ith acquisition device configured in the device is determined, allowing the ith acquisition device to register to the device.
In a possible implementation manner, the second obtaining module is specifically configured to:
establishing an SNMP process corresponding to each target acquisition device;
and acquiring the environmental data corresponding to the target sensor recorded by each target acquisition device by using the SNMP process corresponding to each target acquisition device.
In a possible embodiment, the preset condition comprises any one of the following conditions:
the environmental data is not within a preset range;
the environmental data is in the preset range in the current acquisition period, and the environmental data is not in the preset range in the last acquisition period.
In a possible embodiment, the preset range comprises a first preset range and a second preset range;
when the environment data is in the first preset range, the environment data is in a normal range; when the environmental data is not in the first preset range but in the second preset range, the environmental data is not in the normal range but the environmental data measurement state is in the normal state; when the environmental data are not in the second preset range, the measurement state of the environmental data is an abnormal state;
when the situation that the environmental data corresponding to the target sensor meet the preset conditions is monitored, a prompt message is sent to a user terminal, and the prompt message comprises the following steps:
when the situation that the environmental data corresponding to the target sensor is not in the first preset range but in the second preset range is monitored, sending a prompt message of environmental data abnormity to the user terminal; alternatively, the first and second electrodes may be,
and when the situation that the environmental data corresponding to the target sensor is not in the second preset range is monitored, sending a prompt message of abnormal environmental data measurement state to the user terminal.
In a possible embodiment, the apparatus further comprises:
the generating module is used for generating description information of the environmental data according to the corresponding relation between the acquisition time corresponding to the environmental data and the environmental data;
and the display module is used for displaying the description information of the environment data and/or sending the description information of the environment data to the user terminal.
In one possible embodiment, the sensor includes at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
In a fifth aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions, when executed by the processor, performing the steps of the environmental data monitoring method according to the first aspect or any one of the possible embodiments of the first aspect, and/or performing the steps of the environmental data monitoring method according to the second aspect or any one of the possible embodiments of the second aspect.
In a sixth aspect, the present embodiments also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program is executed by a processor to perform the steps of the environmental data monitoring method described in the first aspect or any one of the possible embodiments of the first aspect, and/or to perform the steps of the environmental data monitoring method described in the second aspect or any one of the possible embodiments of the second aspect.
In the embodiment of the application, the acquisition equipment acquires the environmental data acquired by at least one sensor every other preset acquisition period, records the environmental data corresponding to each sensor in the temporary file, further selects the environmental data corresponding to the target sensor from the temporary file to upload to the server, and deletes the environmental data uploaded to the server in the temporary file. Adopt above-mentioned mode, the server to the monitoring center is uploaded to in unison through the environmental data with the sensor collection in each region, can realize the whole of the environmental data that each collection equipment passes through the sensor collection in the monitoring system, concentrate the management and control, collection equipment can delete the environmental data who has uploaded to the server simultaneously, thereby also can reduce the occupation to storage resource in the collection equipment, reduce the requirement to collection equipment storage condition, and then can make collection equipment connect more sensors, so that can monitor the environmental data in each region more meticulously.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 illustrates an architectural diagram of a monitoring system of some embodiments of the present application;
FIG. 2 illustrates a flow chart of a method of registration between a collection device and a server of some embodiments of the present application;
FIG. 3 is a flowchart illustrating an environmental data monitoring method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating an environmental data monitoring method according to a second embodiment of the present application;
FIG. 5 is a functional block diagram of an environmental data monitoring apparatus according to a third embodiment of the present application;
FIG. 6 is a functional block diagram of an environmental data monitoring apparatus according to a fourth embodiment of the present application;
fig. 7 shows a schematic structural diagram of an electronic device provided in the fifth embodiment of the present application;
fig. 8 shows a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, 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 should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to enable those skilled in the art to use the present disclosure, the following embodiments are provided in conjunction with specific application scenarios, such as monitoring environmental monitoring data in areas of a machine room, a warehouse, a workshop, and the like. It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application.
The method, apparatus, electronic device or computer storage medium described in the embodiments of the present application may be applied to any scenario that requires monitoring of environmental monitoring data, and the embodiments of the present application do not limit a specific application scenario, and any scheme using the method and apparatus for monitoring environmental data provided in the embodiments of the present application is within the scope of protection of the present application.
It is worth noting that before the present application is proposed, in the existing scheme, a set of independent monitoring system is generally built in each machine room, for example, a sensor, a monitoring device, and the like are deployed in each machine room, and the monitoring device acquires and stores environmental parameters acquired by the sensor, so as to implement environmental monitoring. On one hand, because the machine rooms of a plurality of enterprises are distributed, the machine rooms are probably distributed in all regions of the country, and if an independent monitoring system is built in each region, the whole management and control of the enterprise machine rooms are difficult to realize; on the other hand, the monitoring equipment needs to store data acquired by the sensors, but the number of the sensors deployed in the machine room is large, the data amount stored by the monitoring equipment is large, and more storage resources need to be occupied.
In view of the above problems, according to the environmental data monitoring method and apparatus provided by the application, the collection device may acquire the environmental data collected by at least one sensor every preset collection period, and record the environmental data corresponding to each sensor in the temporary file, and then select the environmental data corresponding to the target sensor from the temporary file to upload to the server, and delete the environmental data uploaded to the server in the temporary file.
For the convenience of understanding of the present application, the technical solutions provided in the present application will be described in detail below with reference to specific embodiments.
First, the architecture of a monitoring system to which the present application is applicable will be described. Referring to fig. 1, an architecture schematic diagram of a suitable monitoring system provided in the embodiment of the present application includes a server 110, at least one acquisition device 120, where at least one sensor 130 is connected to each acquisition device 120 of the at least one acquisition device 120. The at least one acquisition device 120 may be deployed in any monitoring area that needs to perform environmental data monitoring, the at least one sensor 130 connected to each acquisition device 120 may be configured to acquire environmental data in the corresponding monitoring area, and the acquisition device 120 and the sensor 130 may be connected by a wire and perform transmission of the environmental data. The collection devices 120 deployed in each monitoring area may communicate with the server 110 in the monitoring system through a network, so as to report the monitored environmental data to the server 110, or receive a related control instruction and the like issued by the server 110. In some embodiments, the network may be any type of wired or wireless network, or combination thereof. By way of example only, the network may include a wired network, a wireless network, a fiber optic network, and the like, or any combination thereof. Each collection device 120 reports the environmental data of each monitoring area to the server 110, so that the server 110 performs overall control on the environmental data in each monitoring area.
For example, the monitoring system may be a monitoring system for monitoring environmental data of an enterprise machine room. In this example, at least one collection device 120 may be deployed in each room of the enterprise, and at least one sensor 130 connected to each collection device 120 may be deployed around each electronic device in the room, so as to monitor the overall environment of the room and the environment of each electronic device in the room. The at least one collection device 120 may report the environment data of each machine room to the server 110, so that the server 110 performs overall control on the environment data in each machine room.
Here, the collection device 120 may be a single chip, an embedded device, or a Programmable Gate Array (FPGA), and in one example, the collection device is, for example, a Raspberry Pi (RPi), where the Raspberry Pi is a micro circuit board based on a microprocessor (Advanced RISC Machines, ARM). The collection device 120 is configured with a plurality of communication interfaces for connecting the sensors 130. The sensor 130 includes a temperature and humidity sensor and the like, and is configured to detect environmental data such as temperature and humidity in the monitored area. The above-mentioned collecting device 120 and each sensor 130 may be connected through a single bus (1-Wire), for example, the 1-Wire bus is a simple signal transmission circuit, and the half-duplex bidirectional communication between the collecting device 120 and at least one sensor 130 may be realized through a common data line.
In view of the above description of the monitoring system, the workflow of the acquisition device 120 and the workflow of the server 110 in the monitoring system are described below respectively to explain the environmental data monitoring method provided by the embodiment of the present application.
In this embodiment, before performing a communication process such as transmission of environment data, a registration process may be completed between at least one acquisition device 120 and the server 110.
Referring to fig. 2, taking any one of the acquisition devices in the monitoring system as an example, a registration process between the acquisition device and the server in the embodiment of the present application is described, including the following steps:
s201: the acquisition equipment sends a registration request message to the server, wherein the registration request message carries attribute information of the acquisition equipment.
In the embodiment of the present application, the attribute information of the acquisition device includes, for example, at least one of the following information:
the method comprises the steps of firstly, collecting identification information of equipment.
Here, the identification information may be a name, an IP address, a serial number of the acquisition apparatus, and the like of the acquisition apparatus.
Therefore, the server can identify which acquisition device is requested to be registered by carrying the identification information of the acquisition device in the registration request information, so that which monitoring area the environment data transmitted by the acquisition device requesting to be registered comes from is determined in the following, and the monitoring of the environment data in the monitoring area is realized.
And acquiring configuration information of a sensor connected with the equipment.
Here, the configuration information of the sensors may be the number of sensors connected to the collecting apparatus, the identification of the sensors, the port number of each sensor connected to the collecting apparatus, and the like.
Therefore, the configuration information of the sensor connected with the acquisition equipment is carried in the registration request information, so that the server can determine the information of the sensor connected with the acquisition equipment, further determine the environmental data uploaded by each sensor connected with the acquisition equipment, and subsequently can acquire the environmental data acquired by the target sensor connected with the target acquisition equipment in a target monitoring area when a certain monitoring area needs to be monitored in a key mode, so that the monitoring of the environmental data acquired by the target sensor is realized.
And thirdly, acquiring the group name of a Simple Network Management Protocol (SNMP) Protocol of the equipment.
Here, the SNMP protocol group name of the collection device corresponds to an authentication identifier, and the server and the collection device can be identified from each other by the group name, and the server can retrieve the environmental data stored in the corresponding collection device by starting the SNMP process corresponding to the group name. In an example, in a communication process between the collection device and the server, the collection device may carry a group name in a message sent to the server, where the group name may be placed in a header of a message, and after receiving the message sent by the collection device, the server may first identify an SNMP group name of the header, and if the SNMP group name is configured in the server, it indicates that the authentication is successful, and may further parse the content in the message.
It should be noted that SNMP is a protocol for managing network devices, and a server can manage network devices based on the SNMP protocol, where a network device is an acquisition device in this application.
S202: the server analyzes the received registration request message sent by the acquisition equipment, and sends a registration response message to the acquisition equipment after the attribute information of the acquisition equipment is successfully authenticated, wherein the registration response message is used for indicating the acquisition equipment to complete registration.
In a specific implementation, when the registration request message sent by the collection device carries the SNMP community name, for an ith collection device in the at least one collection device, the operation of the server for authenticating the attribute information of the ith collection device may be, for example:
and detecting whether the server is configured with the SNMP group name in the registration request message sent by the ith acquisition equipment, and allowing the ith acquisition equipment to register to the server when the SNMP group name of the ith acquisition equipment is determined to be configured in the server, otherwise, not allowing the ith acquisition equipment to register to the server.
After determining that the acquisition devices are allowed to register to the server, the server may record the attribute information of the acquisition devices in the server, so as to subsequently determine the environmental data in the monitoring area corresponding to each acquisition device based on the attribute information of the acquisition devices.
After the registration process between the server and the acquisition device is completed based on the process shown in fig. 2, the acquisition device and the server transmit the environment data and the related control instructions via the network. The following specifically describes a specific implementation process of the lower acquisition device and the server to complete the environmental data monitoring, with reference to the first embodiment and the second embodiment, respectively.
Example one
Referring to fig. 3, a flowchart of an environmental data monitoring method provided in this embodiment of the present application is applied to at least one acquisition device of a monitoring system, where each acquisition device of the at least one acquisition device is connected to at least one sensor, and a specific implementation process for each acquisition device includes the following steps:
s301: and acquiring the environmental data acquired by at least one sensor every a preset acquisition period.
In step S301, each of the collection devices is connected to at least one sensor, both the collection devices and the sensors are disposed on site, such as a machine room, the sensors are used for collecting environmental data in real time, and the collection devices can acquire the environmental data from the at least one sensor connected thereto every preset collection period.
Here, the preset acquisition period is set by a worker according to actual needs in the acquisition device, a default acquisition period of the acquisition device may be adopted, and the preset acquisition period of the acquisition device may be changed according to an instruction of the server, where the preset acquisition period may be set to 30 seconds, for example.
S302: and recording the environment data corresponding to each sensor in the at least one sensor in a temporary file.
In step S302, each acquisition device records the environment data in a temporary file after acquiring the corresponding environment data from each of the at least one sensor connected thereto.
In specific implementation, the environmental data uploaded to the server by the acquisition device may be environmental data acquired by the target sensor in a plurality of preset acquisition periods, or abnormal environmental data exists, or environmental data corresponding to the target sensor requested to be acquired by the server.
Here, the temporary file is a file for temporarily storing the environmental data in the acquisition device, and specifically, there are the following ways of acquiring the environmental data acquired by the sensor from the temporary file:
the first method is as follows: the server reads the environmental data collected by the sensor from the temporary file of the collecting device through the network;
the second method comprises the following steps: when the network between the acquisition equipment and the server is disconnected and the server cannot read the environmental data acquired by the sensor from the temporary file, the environmental data acquired by the sensor stored in the temporary file can be exported from the acquisition equipment on site by a worker.
S303: and selecting the environmental data corresponding to the target sensor from the temporary file to upload to the server, and deleting the environmental data uploaded to the server from the temporary file.
In step S303, the collection device may select the environmental data corresponding to the target sensor from the temporary file to upload to the server, and may automatically delete the environmental data from the temporary file after uploading the environmental data corresponding to the target sensor is completed.
The temporary file is used for temporarily storing the environmental data uploaded to the acquisition equipment by the sensor, specifically, the server stores the environmental data after obtaining the environmental data corresponding to the target sensor, and then the acquisition equipment deletes the environmental data uploaded to the server from the temporary file.
In the embodiment of the application, the acquisition equipment acquires the environmental data acquired by at least one sensor every other preset acquisition period, records the environmental data corresponding to each sensor in the temporary file, further selects the environmental data corresponding to the target sensor from the temporary file to upload to the server, and deletes the environmental data uploaded to the server in the temporary file. Adopt above-mentioned mode, the server to the monitoring center is uploaded to in unison through the environmental data with the sensor collection in each region, can realize the whole of the environmental data that each collection equipment passes through the sensor collection in the monitoring system, concentrate the management and control, collection equipment can delete the environmental data who has uploaded to the server simultaneously, thereby also can reduce the occupation to storage resource in the collection equipment, reduce the requirement to collection equipment storage condition, and then can make collection equipment connect more sensors, so that can monitor the environmental data in each region more meticulously.
In a possible implementation manner, considering that the measurement state of the sensor may be an abnormal state in some cases, and some environmental data detected by the sensor in the abnormal state has no positive effect on the monitoring of the environmental data, when the acquisition device records the environmental data corresponding to each sensor in the at least one sensor in the temporary file, the acquired environmental data corresponding to each sensor may be filtered first, and then the environmental data meeting the preset condition is recorded in the temporary file.
The preset condition is a data range of the environmental data collected in the normal state in the environmental data measurement state. In this embodiment, the collection device may filter the environmental data detected by the sensor in the abnormal state, and store the environmental data detected by the sensor in the normal state. The abnormal state may be, for example, a state in which the detected environmental data is abnormal when the connection line between the sensor and the acquisition device is in poor contact, for example, the range of the environmental data in the normal measurement state is between-100 ℃ and 100 ℃, but a certain environmental data is 1000 ℃ or-1000 ℃ suddenly, and such an environmental data may be a situation in which the detected environmental data is abnormal due to the abnormal measurement state of the sensor.
In the embodiment of the application, the process of selecting the environmental data corresponding to the target sensor from the temporary file and uploading the environmental data to the server includes the following modes:
the method comprises the steps of selecting environment data corresponding to each sensor acquired in the latest continuous N time periods from a temporary file and uploading the environment data to a server, wherein N is a positive integer.
Specifically, the acquisition device may upload, according to a preset upload rule, for example, environment data of N preset acquisition periods, and then the acquisition device may upload, to the server, the environment data corresponding to each sensor acquired in the N preset acquisition periods every N preset acquisition periods.
And secondly, selecting environmental data corresponding to the sensor with abnormal environmental data from the temporary file and uploading the environmental data to the server.
Specifically, in order to better monitor environmental data in places such as a machine room, the collection device may select only the environmental data corresponding to the sensor whose environmental data is abnormal from the temporary file to upload to the server. Therefore, after receiving the abnormal environment data uploaded by a certain acquisition device, the server can determine the monitoring area corresponding to the acquisition device according to the attribute information of the acquisition device uploading the abnormal environment data, further determine the sensor detecting the abnormal environment data, and determine which electronic device in the monitoring area has an abnormal surrounding environment. The server can also send abnormal environment data prompt information to the user terminal so that relevant workers can take measures against abnormal conditions in time, and the accident handling efficiency can be improved.
The environmental data abnormality means that the environmental data is not in a preset threshold range, or the environmental data in the current acquisition time period is far lower or far higher than the environmental data recorded before.
For example, taking a monitoring area as a machine room and environmental data as temperature and humidity data as an example, assuming that a normal environmental state of the machine room is a temperature range: [20 ℃, 24 ℃ C. ], humidity range: [ 45% Rh, 55% Rh ], when the acquisition equipment detects that the temperature in the machine room is 25 ℃ and the humidity is 42% Rh, it indicates that the temperature and humidity data in the machine room is not in a normal range, so the acquisition equipment can upload the temperature and humidity data to the server, and the staff at the server end can take corresponding measures to process the abnormal temperature and humidity data in time after monitoring the abnormal temperature and humidity data.
And thirdly, the acquisition equipment receives a data acquisition request sent by the server, wherein the data acquisition request carries the information of the target sensor. And then, the acquisition equipment selects the environmental data corresponding to the target sensor matched with the target sensor information from the temporary file and uploads the environmental data to the server based on the target sensor information.
In specific implementation, the server may record monitoring area information monitored by each sensor in advance, and the server may acquire and record sensor information from attribute information uploaded by the acquisition device in a process of registering the acquisition device in the server, where the sensor information includes an identifier of the sensor, a monitoring area corresponding to the sensor, and the like. In this way, the server may obtain, from the acquisition device, the environmental data detected by the target sensor in a certain monitoring area based on the pre-recorded monitoring area information monitored by each sensor, so that the certain monitoring area may be monitored in a targeted manner.
In an example, assume that the monitoring system includes a collection device a, the collection device a is responsible for collecting the temperature in the machine room a, the collection device a is connected with three sensors a, b and c, the sensor a is responsible for collecting the temperature in the east side area of the machine room a, the sensor b is responsible for collecting the temperature in the west side area of the machine room a, the sensor c is responsible for collecting the temperature in the south side area of the machine room a, when the temperature data in the south side area of the machine room a needs to be checked, the server can directly send a data acquisition request to the collection device a, wherein the identification information of the sensor c is carried, so as to acquire the temperature data collected by the sensor c, and thereby a certain specific monitoring area can be monitored in a targeted manner.
In addition, in the implementation of the present application, a sensor connected to the acquisition device may be updated, so that when the acquisition device detects that at least one connected sensor is updated, the acquisition device may update the configuration information of the sensor, and further send a configuration update message to the server, where the configuration update message includes the updated configuration information of the sensor.
Here, since there may be a case where the sensor is damaged, the sensor needs to be replaced; or, in the case of replacing one type of sensor with another type of sensor, for example, replacing a temperature sensor with a humidity sensor; or, a new sensor. In the above case, the acquisition device may determine that the configuration information of the connected sensor changes, and notify the server in time, so that the server records the latest configuration information of the sensor corresponding to the acquisition device. The configuration information of the sensor comprises one or more of the number of the sensors, the identification of the sensors, the port numbers of the sensors connected with the acquisition equipment and the like.
According to the first embodiment of the application, the environmental data acquired by at least one sensor is acquired every other preset acquisition period through the acquisition equipment, the environmental data corresponding to each sensor is recorded in the temporary file, the environmental data corresponding to the target sensor is selected from the temporary file and uploaded to the server, and the environmental data uploaded to the server in the temporary file is deleted. Adopt above-mentioned mode, the server to the monitoring center is uploaded to in unison through the environmental data with the sensor collection in each region, can realize the whole of the environmental data that each collection equipment passes through the sensor collection in the monitoring system, concentrate the management and control, collection equipment can delete the environmental data who has uploaded to the server simultaneously, thereby also can reduce the occupation to storage resource in the collection equipment, reduce the requirement to collection equipment storage condition, and then can make collection equipment connect more sensors, so that can monitor the environmental data in each region more meticulously.
Example two
Referring to fig. 4, a flowchart of an environmental data monitoring method provided in an embodiment of the present application is applied to a server in a monitoring system, and the method includes:
s401: and determining at least one acquisition device successfully registered to the server, wherein each acquisition device in the at least one acquisition device records the environmental data acquired by the at least one sensor.
In the embodiment of the present application, after the registration process between the server and the collection device is completed in view of the flow shown in fig. 2, the server may determine at least one collection device to which the registration is successfully performed, so as to accurately acquire the environmental data from the corresponding collection device.
S402: and acquiring environmental data corresponding to a target sensor recorded by target acquisition equipment in at least one acquisition device.
In step S402, the server may send a data acquisition request to a target acquisition device in the monitoring system, where the data acquisition request may carry identification information of the target acquisition device, so as to implement monitoring of environmental data of a monitoring area where the target acquisition device is located. In addition, for at least one sensor connected to the target acquisition device, the server may also acquire environmental data of all sensors connected to the target acquisition device, or may also specifically select to acquire environmental data of the target sensor from the at least one sensor connected to the target acquisition device, in this case, the data acquisition request may also carry identification information of the target sensor, so as to implement monitoring on the environmental data of a specific monitoring area corresponding to the target sensor.
In a possible implementation manner, when acquiring the environmental data corresponding to the target sensor recorded by the target acquisition device in the at least one acquisition device, the server may create an SNMP process corresponding to each target acquisition device, and further may acquire the environmental data corresponding to the target sensor recorded by each target acquisition device by using the SNMP process corresponding to each target acquisition device.
S403: and when the situation that the environmental data corresponding to the target sensor meets the preset conditions is monitored, sending a prompt message to the user terminal.
In step S403, when monitoring that the environmental data corresponding to the target sensor is abnormal, the server sends a prompt message to the user terminal through a preset communication mode, so as to notify the worker that the environmental data is abnormal in time and prompt to take measures as soon as possible. Here, the preset communication mode includes, but is not limited to, short message, wechat, mail, and the like. The prompt message may carry, for example, information of a monitored area monitored by the target sensor, abnormal environmental data, and the like.
Wherein the preset condition comprises any one of the following conditions:
(1) the environmental data is not within a preset range;
(2) the environmental data in the current collection period is within a preset range, and the environmental data in the last collection period is not within the preset range.
In an example, it is assumed that a temperature range in which a machine in a machine room normally operates is [20 ℃, 24 ℃), and temperature data acquired by a target sensor is 18 ℃, at this time, a server may send a prompt message to a user terminal after determining that the temperature data acquired by the target sensor is abnormal. Or, the temperature data acquired by the target sensor in the last acquisition cycle is 22 ℃, the temperature data acquired by the target sensor in the current acquisition cycle is 25 ℃, at this time, the server can determine that the temperature of the monitored area monitored by the target sensor returns to the normal temperature range again, and under the condition, a prompt message can be sent to the user terminal so as to prompt the user that the environmental data of the monitored area monitored by the target sensor returns to normal.
In an embodiment of the present application, the preset range may include, for example, a first preset range and a second preset range. When the environment data is in a first preset range, the environment data is in a normal range; when the environmental data is not in the first preset range but in the second preset range, the environmental data is not in the normal range but the environmental data measurement state is in the normal state; when the environmental data are not in the second preset range, the measurement state of the environmental data is an abnormal state;
in a possible implementation manner, when it is monitored that the environmental data corresponding to the target sensor is not within the first preset range but within the second preset range, the server may send a notification message that the environmental data is abnormal to the user terminal.
In another possible implementation manner, when it is monitored that the environmental data corresponding to the target sensor is not within the second preset range, the server sends a prompt message indicating that the environmental data measurement state is abnormal to the user terminal.
The first preset range is a normal range of the environmental data, for example, a normal temperature range of the machine running in the machine room is [20 ℃, 24 ℃), and the temperature data in the range meets the normal environmental temperature of the equipment in the machine room; the second preset range is that the environmental data is not in the normal range, but the environmental data measurement state is the normal state, for example, the normal temperature range of the machine running in the machine room is [20 ℃, 24 ℃), the temperature range is [ -100 ℃, 100 ℃) in the normal measurement state, the temperature data in the range of [ -100 ℃, 100 ℃) but not in the range of [20 ℃, 24 ℃) is the data in the second preset range, which indicates that the temperature in the machine room does not meet the normal environmental temperature of the equipment in the machine room but is in the normal measurement state. When the monitored environmental data is not in the second preset range, for example, the temperature range of the machine room is [ -100 ℃, 100 ℃) in a normal state, and the temperature data which is not in [ -100 ℃, 100 ℃) is data which is not in the second preset range, which indicates that the measurement state is abnormal, for example, a line between the sensor and the acquisition equipment may be in failure.
In view of the above description, there are two cases of abnormal environmental data being monitored, one is that the environmental data is not within the normal range, but the environmental data measurement state is the normal state; the other is that the environment data measurement state is an abnormal state. In the embodiment of the application, in order to enable the staff to distinguish two abnormal situations, different abnormal prompt messages can be sent to the user terminal, and when it is monitored that the environmental data corresponding to the target sensor belongs to the first situation, the abnormal prompt message of the environmental data is sent to the user terminal, for example, the prompt message is 'the temperature when the temperature of the machine room does not meet the temperature during normal operation'; or, when it is monitored that the environmental data corresponding to the target sensor belongs to the second condition, sending a prompt message indicating that the environmental data measurement state is abnormal to the user terminal, where the prompt message indicates "communication line is abnormal", for example.
In addition, in the embodiment of the application, in order to facilitate a worker to more clearly view the corresponding relationship between the environment data and the acquisition time so as to determine the change trend of the environment data, in the embodiment of the application, the server may further store the acquired environment data in a database, generate description information of the environment data according to the corresponding relationship between the acquisition time and the environment data corresponding to the environment data, display the description information through a display of the server, and/or send the description information of the environment data to the user terminal through a preset communication mode.
Wherein, the description information includes but is not limited to line graph, bar graph, etc.; the preset communication mode includes but is not limited to short message, WeChat, mail and the like; the user terminal includes, but is not limited to, a mobile terminal, a Personal Computer (PC), and the like.
In the second embodiment of the application, the server can monitor the environment of the area where the target acquisition device is located by acquiring the environment data corresponding to the target sensor recorded by the target acquisition device. And moreover, the user can be reminded in time when the monitoring is abnormal in the environmental data, so that the user can take measures in time.
Based on the same application concept, an environmental data monitoring device corresponding to the environmental data monitoring method provided in the first embodiment is also provided in the third embodiment of the present application, and because the principle of solving the problem of the device in the embodiment of the present application is similar to that of the environmental data monitoring method in the first embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are omitted.
EXAMPLE III
Referring to fig. 5, a functional block diagram of an environmental data monitoring apparatus 500 according to a third embodiment of the present application is shown, in which the apparatus 500 is connected to at least one sensor, and the apparatus 500 includes:
a first obtaining module 501, configured to obtain environment data collected by at least one sensor every preset collection period;
a recording module 502, configured to record environment data corresponding to each sensor in at least one sensor in a temporary file;
the uploading module 503 is configured to select the environment data corresponding to the target sensor from the temporary file to upload to the server, and delete the environment data uploaded to the server in the temporary file.
In a possible implementation, the apparatus 500 further includes:
a first sending module 504, configured to send a registration request message to a server, where the registration request message carries attribute information of the device 500;
a receiving module 505, configured to receive a registration response message sent by the server after authenticating the attribute information, where the registration response message is used to instruct the apparatus 500 to complete registration.
In one possible embodiment, the attribute information includes at least one of the following information:
identification information of the apparatus 500; configuration information of sensors to which the apparatus 500 is connected; the simple network management protocol SNMP protocol community name of device 500.
In a possible implementation, the recording module 502 is specifically configured to:
and filtering the acquired environment data corresponding to each sensor, and recording the environment data meeting the preset conditions in a temporary file.
In a possible implementation manner, the uploading module 503 is specifically configured to:
and selecting the environment data corresponding to each sensor acquired in the latest continuous N time periods from the temporary file and uploading the environment data to the server, wherein N is a positive integer.
In a possible implementation manner, the uploading module 503 is specifically configured to:
and selecting environmental data corresponding to the sensor with abnormal environmental data from the temporary file and uploading the environmental data to the server.
In a possible implementation manner, the uploading module 503 is specifically configured to upload the environment data corresponding to the target sensor to a server according to the following steps:
receiving a data acquisition request sent by a server, wherein the data acquisition request carries target sensor information;
and selecting the environmental data corresponding to the target sensor matched with the target sensor information from the temporary file and uploading the environmental data to the server based on the target sensor information.
In a possible implementation, the apparatus 500 further includes:
an update module 506, configured to update configuration information of the sensor when detecting that the connected at least one sensor is updated;
the second sending module 507 is configured to send a configuration update message to the server, where the configuration update message includes updated configuration information of the sensor.
In one possible embodiment, the sensor includes at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
In the third embodiment of the application, the device 500 acquires the environmental data acquired by at least one sensor every preset acquisition period, records the environmental data corresponding to each sensor in a temporary file, and then selects the environmental data corresponding to the target sensor from the temporary file to upload to the server, and deletes the environmental data uploaded to the server in the temporary file. Adopt above-mentioned mode, the server to the monitoring center is uploaded in unison through the environmental data with the sensor collection in each region, can realize the whole of the environmental data that each device 500 gathered through the sensor in the monitoring system, concentrate the management and control, the environmental data that has uploaded to the server can be deleted to device 500 simultaneously, thereby also can reduce the occupation to storage resource in the device 500, reduce the requirement to device 500 storage condition, and then can make device 500 connect more sensors, so that can monitor the environmental data in each region more meticulously.
Based on the same application concept, an environmental data monitoring device corresponding to the environmental data monitoring method provided in the second embodiment is also provided in the fourth embodiment of the present application, and because the principle of solving the problem of the device in the embodiment of the present application is similar to that of the environmental data monitoring method in the second embodiment of the present application, the implementation of the device can refer to the implementation of the method, and repeated details are omitted.
Example four
Referring to fig. 6, a functional block diagram of an environmental data monitoring apparatus 600 according to a fourth embodiment of the present application is shown, where the apparatus 600 includes:
a determining module 601, configured to determine at least one acquiring device successfully registered to the apparatus 600, where each acquiring device of the at least one acquiring device records environment data acquired by at least one sensor;
a second obtaining module 602, configured to obtain environmental data corresponding to a target sensor recorded by a target collecting device in at least one collecting device;
a third sending module 603, configured to send a prompt message to the user terminal when it is monitored that the environmental data corresponding to the target sensor meets the preset condition.
In a possible implementation, the determining module 601 is specifically configured to determine that at least one acquisition device successfully registered to the apparatus 600 according to the following steps:
for the ith acquisition device in the at least one acquisition device, wherein i is a positive integer, the following operations are performed:
receiving a registration request message sent by the ith acquisition device, wherein the registration request message comprises a Simple Network Management Protocol (SNMP) group name of the ith acquisition device;
when the SNMP community name of the ith collection device configured in the apparatus 600 is determined, the ith collection device is allowed to register to the apparatus 600.
In a possible implementation manner, the second obtaining module 602 is specifically configured to:
establishing an SNMP process corresponding to each target acquisition device;
and acquiring the environmental data corresponding to the target sensor recorded by each target acquisition device by using the SNMP process corresponding to each target acquisition device.
In a possible embodiment, the preset condition comprises any one of the following conditions:
the environmental data is not within a preset range;
the environmental data in the current collection period is within a preset range, and the environmental data in the last collection period is not within the preset range.
In one possible embodiment, the preset range includes a first preset range and a second preset range;
when the environment data is in a first preset range, the environment data is in a normal range; when the environmental data is not in the first preset range but in the second preset range, the environmental data is not in the normal range but the environmental data measurement state is in the normal state; when the environmental data are not in the second preset range, the measurement state of the environmental data is an abnormal state;
when the situation that the environmental data corresponding to the target sensor meets the preset conditions is monitored, a prompt message is sent to the user terminal, and the prompt message comprises the following steps:
when the situation that the environmental data corresponding to the target sensor is not in the first preset range but in the second preset range is monitored, sending a prompt message of environmental data abnormity to the user terminal; alternatively, the first and second electrodes may be,
and when the situation that the environmental data corresponding to the target sensor is not in the second preset range is monitored, sending a prompt message of abnormal environmental data measuring state to the user terminal.
In a possible implementation, the apparatus 600 further includes:
a generating module 604, configured to generate description information of the environmental data according to a corresponding relationship between the acquisition time corresponding to the environmental data and the environmental data;
a display module 605, configured to display the description information of the environment data and/or send the description information of the environment data to the user terminal.
In one possible embodiment, the sensor includes at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
In the fourth embodiment of the present application, the device 600 can monitor the environment of the area where the target collection device is located by acquiring the environment data corresponding to the target sensor recorded by the target collection device. And moreover, the user can be reminded in time when the monitoring is abnormal in the environmental data, so that the user can take measures in time.
EXAMPLE five
Based on the same application concept, referring to fig. 7, a schematic structural diagram of an electronic device 700 provided in the fifth embodiment of the present application is shown, where the electronic device 700 is, for example, a collection device, and includes: a processor 701, a memory 702, and a bus 703. The memory 702 stores machine-readable instructions executable by the processor 701 (for example, execution instructions corresponding to the first obtaining module 501, the recording module 502, and the uploading module 503 in fig. 5), when the electronic device 700 is operated, the processor 701 and the memory 702 communicate via the bus 703, and the machine-readable instructions, when executed by the processor 701, execute the following instructions:
acquiring environmental data acquired by at least one sensor every a preset acquisition period;
recording environment data corresponding to each sensor in at least one sensor in a temporary file;
and selecting the environmental data corresponding to the target sensor from the temporary file to upload to the server, and deleting the environmental data uploaded to the server from the temporary file.
EXAMPLE six
Based on the same application concept, referring to fig. 8, a schematic structural diagram of an electronic device 800 provided in a sixth embodiment of the present application is shown, where the electronic device 800 is, for example, a server, and includes: a processor 801, a memory 802, and a bus 803. The memory 802 stores machine-readable instructions executable by the processor 801 (for example, the execution instructions corresponding to the determining module 601, the second obtaining module 602, and the third sending module 603 in fig. 6), when the electronic device 800 is operated, the processor 801 communicates with the memory 802 through the bus 803, and the machine-readable instructions, when executed by the processor 801, execute the following instructions:
determining at least one acquisition device successfully registered to a server, wherein each acquisition device in the at least one acquisition device records environmental data acquired by at least one sensor;
acquiring environmental data corresponding to a target sensor recorded by target acquisition equipment in at least one acquisition equipment;
and when the situation that the environmental data corresponding to the target sensor meets the preset conditions is monitored, sending a prompt message to the user terminal.
Based on the same application concept, embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the environmental data monitoring method provided in the first embodiment, and/or the steps of the environmental data monitoring method provided in the second embodiment.
Specifically, the storage medium may be a general storage medium, such as a mobile disk, a hard disk, or the like, and when the computer program on the storage medium is executed, the environmental data monitoring method may be executed, so as to perform overall and centralized management and control on the environmental data acquired by each acquisition device in the monitoring system, and reduce the occupation of storage resources.
Based on the same application concept, embodiments of the present application further provide a computer program product, which includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the environmental data monitoring method, and specific implementation may refer to the above method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. 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 includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. 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 above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (34)

1. The environmental data monitoring method is applied to at least one acquisition device of a monitoring system, each acquisition device of the at least one acquisition device is connected with at least one sensor, and the method executed by aiming at each acquisition device comprises the following steps:
acquiring environmental data acquired by at least one sensor every a preset acquisition period;
recording the environmental data corresponding to each sensor in the at least one sensor in a temporary file;
and selecting the environmental data corresponding to the target sensor from the temporary file to upload to a server, and deleting the environmental data uploaded to the server from the temporary file.
2. The method of claim 1, prior to uploading the environmental data corresponding to each sensor stored in the temporary file to a server, further comprising:
sending a registration request message to the server, wherein the registration request message carries attribute information of the acquisition equipment;
and receiving a registration response message sent by the server after the server authenticates the attribute information, wherein the registration response message is used for indicating the acquisition equipment to complete registration.
3. The method of claim 2, wherein the attribute information comprises at least one of:
the identification information of the acquisition equipment; acquiring configuration information of a sensor connected with the equipment; and the Simple Network Management Protocol (SNMP) group name of the acquisition equipment.
4. The method of claim 1, wherein said recording environmental data corresponding to each of said at least one sensor in a temporary file comprises:
and filtering the acquired environment data corresponding to each sensor, and recording the environment data meeting preset conditions in the temporary file.
5. The method of claim 1, wherein selecting the environmental data corresponding to the target sensor from the temporary file to upload to a server comprises:
and selecting the environment data corresponding to each sensor acquired in the latest continuous N time periods from the temporary file and uploading the environment data to a server, wherein N is a positive integer.
6. The method of claim 1, wherein selecting the environmental data corresponding to the target sensor from the temporary file to upload to a server comprises:
and selecting environmental data corresponding to the sensor with abnormal environmental data from the temporary file and uploading the environmental data to a server.
7. The method of claim 1, wherein selecting the environmental data corresponding to the target sensor from the temporary file to upload to a server comprises:
receiving a data acquisition request sent by a server, wherein the data acquisition request carries target sensor information;
and selecting environmental data corresponding to the target sensor matched with the target sensor information from the temporary file and uploading the environmental data to a server based on the target sensor information.
8. The method of claim 1, wherein the method further comprises:
when detecting that at least one connected sensor is updated, updating configuration information of the sensor;
sending a configuration update message to the server, the configuration update message including updated configuration information of the sensor.
9. The method of any of claims 1 to 8, wherein the sensor comprises at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
10. An environmental data monitoring method is applied to a server in a monitoring system, and is characterized by comprising the following steps:
determining at least one acquisition device successfully registered to a server, wherein each acquisition device of the at least one acquisition device records environmental data acquired by at least one sensor;
acquiring environmental data corresponding to a target sensor recorded by target acquisition equipment in the at least one acquisition equipment;
and when the situation that the environmental data corresponding to the target sensor meets the preset conditions is monitored, sending a prompt message to the user terminal.
11. The method of claim 10, wherein the determining at least one acquisition device that successfully registers with a server comprises:
for the ith acquisition device of the at least one acquisition device, i being a positive integer, performing the following operations:
receiving a registration request message sent by the ith acquisition device, wherein the registration request message comprises a Simple Network Management Protocol (SNMP) group name of the ith acquisition device;
and when the SNMP group name of the ith acquisition device is configured in the server, allowing the ith acquisition device to register to the server.
12. The method of claim 10, wherein the obtaining environmental data corresponding to the target sensor recorded by the target acquisition device of the at least one acquisition device comprises:
establishing an SNMP process corresponding to each target acquisition device;
and acquiring the environmental data corresponding to the target sensor recorded by each target acquisition device by using the SNMP process corresponding to each target acquisition device.
13. The method of claim 10, wherein the preset condition comprises any one of the following conditions:
the environmental data is not within a preset range;
the environmental data is in the preset range in the current acquisition period, and the environmental data is not in the preset range in the last acquisition period.
14. The method of claim 13, wherein the preset range comprises a first preset range and a second preset range;
when the environment data is in the first preset range, the environment data is in a normal range; when the environmental data is not in the first preset range but in the second preset range, the environmental data is not in the normal range but the environmental data measurement state is in the normal state; when the environmental data are not in the second preset range, the measurement state of the environmental data is an abnormal state;
when the situation that the environmental data corresponding to the target sensor meet the preset conditions is monitored, a prompt message is sent to a user terminal, and the prompt message comprises the following steps:
when the situation that the environmental data corresponding to the target sensor is not in the first preset range but in the second preset range is monitored, sending a prompt message of environmental data abnormity to the user terminal; alternatively, the first and second electrodes may be,
and when the situation that the environmental data corresponding to the target sensor is not in the second preset range is monitored, sending a prompt message of abnormal environmental data measurement state to the user terminal.
15. The method of claim 10, wherein the method further comprises:
generating description information of the environmental data according to the corresponding relation between the acquisition time corresponding to the environmental data and the environmental data;
and displaying the description information of the environment data, and/or sending the description information of the environment data to the user terminal.
16. The method of any of claims 10 to 15, wherein the sensor comprises at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
17. An environmental data monitoring device, wherein the device is connected to at least one sensor, the device comprising:
the first acquisition module is used for acquiring environmental data acquired by at least one sensor every preset acquisition period;
the recording module is used for recording the environment data corresponding to each sensor in the at least one sensor in a temporary file;
and the uploading module is used for selecting the environmental data corresponding to the target sensor from the temporary file to upload to the server and deleting the environmental data uploaded to the server in the temporary file.
18. The apparatus of claim 17, wherein the apparatus further comprises:
a first sending module, configured to send a registration request message to the server, where the registration request message carries attribute information of the device;
a receiving module, configured to receive a registration response message sent by the server after authenticating the attribute information, where the registration response message is used to instruct the device to complete registration.
19. The apparatus of claim 18, wherein the attribute information comprises at least one of:
identification information of the device; configuration information of sensors to which the device is connected; a simple network management protocol, SNMP, protocol community name for the device.
20. The apparatus of claim 17, wherein the recording module is specifically configured to:
and filtering the acquired environment data corresponding to each sensor, and recording the environment data meeting preset conditions in the temporary file.
21. The apparatus of claim 17, wherein the upload module is specifically configured to:
and selecting the environment data corresponding to each sensor acquired in the latest continuous N time periods from the temporary file and uploading the environment data to a server, wherein N is a positive integer.
22. The apparatus of claim 17, wherein the upload module is specifically configured to:
and selecting environmental data corresponding to the sensor with abnormal environmental data from the temporary file and uploading the environmental data to a server.
23. The apparatus of claim 17, wherein the uploading module is specifically configured to upload the environmental data corresponding to the target sensor to a server according to the following steps:
receiving a data acquisition request sent by a server, wherein the data acquisition request carries target sensor information;
and selecting environmental data corresponding to the target sensor matched with the target sensor information from the temporary file and uploading the environmental data to a server based on the target sensor information.
24. The apparatus of claim 17, wherein the apparatus further comprises:
the updating module is used for updating the configuration information of the sensor when detecting that at least one connected sensor is updated;
and the second sending module is used for sending a configuration updating message to the server, wherein the configuration updating message comprises updated configuration information of the sensor.
25. The apparatus of any one of claims 17 to 24, wherein the sensor comprises at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
26. An environmental data monitoring device, the device comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining at least one acquisition device successfully registered to the device, and each acquisition device in the at least one acquisition device records environmental data acquired by at least one sensor;
the second acquisition module is used for acquiring the environmental data corresponding to the target sensor recorded by the target acquisition equipment in the at least one acquisition equipment;
and the third sending module is used for sending a prompt message to the user terminal when the situation that the environmental data corresponding to the target sensor meets the preset conditions is monitored.
27. The apparatus of claim 26, wherein the determining module is specifically configured to determine the successful registration of the at least one acquisition device to the apparatus according to the following steps:
for the ith acquisition device of the at least one acquisition device, i being a positive integer, performing the following operations:
receiving a registration request message sent by the ith acquisition device, wherein the registration request message comprises a Simple Network Management Protocol (SNMP) group name of the ith acquisition device;
when the SNMP community name of the ith acquisition device configured in the device is determined, allowing the ith acquisition device to register to the device.
28. The apparatus of claim 26, wherein the second obtaining module is specifically configured to:
establishing an SNMP process corresponding to each target acquisition device;
and acquiring the environmental data corresponding to the target sensor recorded by each target acquisition device by using the SNMP process corresponding to each target acquisition device.
29. The apparatus of claim 26, wherein the preset condition comprises any one of the following conditions:
the environmental data is not within a preset range;
the environmental data is in the preset range in the current acquisition period, and the environmental data is not in the preset range in the last acquisition period.
30. The apparatus of claim 29, wherein the preset range comprises a first preset range and a second preset range;
when the environment data is in the first preset range, the environment data is in a normal range; when the environmental data is not in the first preset range but in the second preset range, the environmental data is not in the normal range but the environmental data measurement state is in the normal state; when the environmental data are not in the second preset range, the measurement state of the environmental data is an abnormal state;
when the situation that the environmental data corresponding to the target sensor meet the preset conditions is monitored, a prompt message is sent to a user terminal, and the prompt message comprises the following steps:
when the situation that the environmental data corresponding to the target sensor is not in the first preset range but in the second preset range is monitored, sending a prompt message of environmental data abnormity to the user terminal; alternatively, the first and second electrodes may be,
and when the situation that the environmental data corresponding to the target sensor is not in the second preset range is monitored, sending a prompt message of abnormal environmental data measurement state to the user terminal.
31. The apparatus of claim 26, wherein the apparatus further comprises:
the generating module is used for generating description information of the environmental data according to the corresponding relation between the acquisition time corresponding to the environmental data and the environmental data;
and the display module is used for displaying the description information of the environment data and/or sending the description information of the environment data to the user terminal.
32. The apparatus of any one of claims 26 to 31, wherein the sensor comprises at least one of a temperature sensor and a humidity sensor; the environmental data includes at least one of temperature and humidity.
33. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine readable instructions when executed by the processor performing the steps of the environmental data monitoring method of any one of claims 1 to 9 and/or performing the steps of the environmental data monitoring method of any one of claims 10 to 16.
34. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the method for environmental data monitoring according to one of the claims 1 to 9 and/or performs the steps of the method for environmental data monitoring according to one of the claims 10 to 16.
CN201811476202.8A 2018-12-04 2018-12-04 Environmental data monitoring method and device Pending CN111273573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811476202.8A CN111273573A (en) 2018-12-04 2018-12-04 Environmental data monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811476202.8A CN111273573A (en) 2018-12-04 2018-12-04 Environmental data monitoring method and device

Publications (1)

Publication Number Publication Date
CN111273573A true CN111273573A (en) 2020-06-12

Family

ID=71001424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811476202.8A Pending CN111273573A (en) 2018-12-04 2018-12-04 Environmental data monitoring method and device

Country Status (1)

Country Link
CN (1) CN111273573A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915452A (en) * 2020-08-28 2020-11-10 平安国际智慧城市科技股份有限公司 Monitoring system, method and device, monitoring processing equipment and storage medium
CN112738879A (en) * 2021-04-02 2021-04-30 广州塔塔检测技术有限公司 Multi-channel data normalization type environment data transmission system
CN113566878A (en) * 2021-06-29 2021-10-29 青岛海尔科技有限公司 Detection method and device of environmental data
CN114609329A (en) * 2022-01-28 2022-06-10 西安电子科技大学 Gas monitoring system based on sensor networking under industrial environment
CN114785683A (en) * 2022-04-22 2022-07-22 中国电信股份有限公司 Data processing method, data acquisition system and storage medium
CN116847223A (en) * 2023-09-01 2023-10-03 山东溯源安全科技有限公司 Temperature monitoring system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003217068A (en) * 2002-01-22 2003-07-31 Sanyo Electric Co Ltd Physical quantity remote control system
CN1972202A (en) * 2005-11-25 2007-05-30 华为技术有限公司 A network management method aiming at network device
CN101158858A (en) * 2007-10-29 2008-04-09 宁波中科集成电路设计中心有限公司 Machinery room environmental monitoring system and method
CN201429177Y (en) * 2009-05-14 2010-03-24 杭州光泽科技有限公司 System for remote intelligent real-time monitoring and optimization evaluation of air conditioner energy conservation
CN102354198A (en) * 2011-10-10 2012-02-15 曙光信息产业(北京)有限公司 Method and device for monitoring machine room
CN103002003A (en) * 2012-09-11 2013-03-27 摩卡软件(天津)有限公司 System and method of remote control for machine room facilities
CN104267707A (en) * 2014-10-17 2015-01-07 中国科学院计算技术研究所 Environmental data multi-point real-time collecting system
CN106713389A (en) * 2015-11-13 2017-05-24 深圳云联讯数据科技有限公司 Monitoring method and system
CN106774564A (en) * 2017-02-23 2017-05-31 郑州云海信息技术有限公司 A kind of remote equipment room humiture real-time monitoring system
CN206441331U (en) * 2017-02-20 2017-08-25 广州高胜阀门技术有限公司 A kind of wireless temperature measurement apparatus monitored for valve temperature
CN107885602A (en) * 2017-10-31 2018-04-06 新华三技术有限公司 Data collecting system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003217068A (en) * 2002-01-22 2003-07-31 Sanyo Electric Co Ltd Physical quantity remote control system
CN1972202A (en) * 2005-11-25 2007-05-30 华为技术有限公司 A network management method aiming at network device
CN101158858A (en) * 2007-10-29 2008-04-09 宁波中科集成电路设计中心有限公司 Machinery room environmental monitoring system and method
CN201429177Y (en) * 2009-05-14 2010-03-24 杭州光泽科技有限公司 System for remote intelligent real-time monitoring and optimization evaluation of air conditioner energy conservation
CN102354198A (en) * 2011-10-10 2012-02-15 曙光信息产业(北京)有限公司 Method and device for monitoring machine room
CN103002003A (en) * 2012-09-11 2013-03-27 摩卡软件(天津)有限公司 System and method of remote control for machine room facilities
CN104267707A (en) * 2014-10-17 2015-01-07 中国科学院计算技术研究所 Environmental data multi-point real-time collecting system
CN106713389A (en) * 2015-11-13 2017-05-24 深圳云联讯数据科技有限公司 Monitoring method and system
CN206441331U (en) * 2017-02-20 2017-08-25 广州高胜阀门技术有限公司 A kind of wireless temperature measurement apparatus monitored for valve temperature
CN106774564A (en) * 2017-02-23 2017-05-31 郑州云海信息技术有限公司 A kind of remote equipment room humiture real-time monitoring system
CN107885602A (en) * 2017-10-31 2018-04-06 新华三技术有限公司 Data collecting system and method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915452A (en) * 2020-08-28 2020-11-10 平安国际智慧城市科技股份有限公司 Monitoring system, method and device, monitoring processing equipment and storage medium
CN112738879A (en) * 2021-04-02 2021-04-30 广州塔塔检测技术有限公司 Multi-channel data normalization type environment data transmission system
CN113566878A (en) * 2021-06-29 2021-10-29 青岛海尔科技有限公司 Detection method and device of environmental data
CN113566878B (en) * 2021-06-29 2023-10-24 青岛海尔科技有限公司 Environment data detection method and device
CN114609329A (en) * 2022-01-28 2022-06-10 西安电子科技大学 Gas monitoring system based on sensor networking under industrial environment
CN114785683A (en) * 2022-04-22 2022-07-22 中国电信股份有限公司 Data processing method, data acquisition system and storage medium
CN116847223A (en) * 2023-09-01 2023-10-03 山东溯源安全科技有限公司 Temperature monitoring system

Similar Documents

Publication Publication Date Title
CN111273573A (en) Environmental data monitoring method and device
JP6339173B2 (en) Remote sharing of measurement data
US8762400B2 (en) Method of collecting data
KR101386591B1 (en) CCTV integrated management system
JP7073952B2 (en) Data collection system and data collection method
CN106296861A (en) Night watching recording method, device and system
JPWO2015068210A1 (en) Trace data recording system, trace data recording server, trace data recording method, program, and information storage medium
CN110138637B (en) Test data processing method and device, computer equipment and storage medium
CN116203362B (en) Distribution panel state monitoring system
JP6153455B2 (en) Work machine management system
JP2021144639A (en) Asset information management system, and asset information management method
CN116504039A (en) Abnormality identification method and device for indoor equipment and electronic equipment
JP2001076278A (en) Method, system and terminal station for transmitting meter-reading value
KR20090054747A (en) Network segment fault detecting method on sensor network has that low power quality
CN104113939A (en) Method and device for processing operation on terminal peripheral
JP3815384B2 (en) Server operating state confirmation method and system
KR100505151B1 (en) Remote control system for using pda
CN106341439B (en) System for managing the instant job information of zero lens of motor
JP5440545B2 (en) INFORMATION COLLECTION SYSTEM, INFORMATION MEDIATION DEVICE, INFORMATION COLLECTION METHOD, AND INFORMATION MEDIATION PROGRAM
KR102438833B1 (en) Method of Positioning Based on User Terminal for Contact Tracing
JP2019049906A (en) Site work information collection device and site work information collection method
CN116485613A (en) Safety operation supervision method and device
CN115599587A (en) Detection method and device for log collection, storage medium and electronic device
CN116722650A (en) Electric power inspection method, device, terminal and computer equipment
CN114302257A (en) Data acquisition equipment, production data monitoring method, device, equipment and medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612