CN111371618A - Data processing method and gateway - Google Patents

Data processing method and gateway Download PDF

Info

Publication number
CN111371618A
CN111371618A CN202010159176.7A CN202010159176A CN111371618A CN 111371618 A CN111371618 A CN 111371618A CN 202010159176 A CN202010159176 A CN 202010159176A CN 111371618 A CN111371618 A CN 111371618A
Authority
CN
China
Prior art keywords
monitoring data
gateway
monitoring
data
electric equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010159176.7A
Other languages
Chinese (zh)
Inventor
尤耀
杨鸿宾
杨雷
赵晨阳
贾国栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202010159176.7A priority Critical patent/CN111371618A/en
Publication of CN111371618A publication Critical patent/CN111371618A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Water Supply & Treatment (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention discloses a data processing method and a gateway, relates to the technical field of communication, and is used for reducing the load of a server. The method comprises the following steps: the gateway receives monitoring data sent by the monitoring device; the gateway judges whether the monitoring data are power utilization parameters of the power utilization equipment; if the monitoring data are power utilization parameters of the electric equipment, the gateway judges whether the monitoring data meet a first preset condition; if the monitoring data meet the first preset condition, the gateway generates an alarm instruction, and the alarm instruction is used for indicating that the electric equipment has an electrical fault; and if the monitoring data are not the electricity utilization parameters of the electricity utilization equipment, the gateway sends the monitoring data to the server so that the server stores the monitoring data. The embodiment of the invention is applied to data forwarding.

Description

Data processing method and gateway
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data processing method and a gateway.
Background
At present, in the field of energy, in order to improve the efficiency of monitoring the operating environment and the operating condition of electric equipment, a method of patrolling personnel is replaced by monitoring by using a monitoring system. The method specifically comprises the steps that a monitoring device is arranged on the site of the electric equipment, the operating parameters, the environmental parameters and the video data of the electric equipment are collected, after the monitoring device collects various data, the various data are uploaded to a server located on a cloud platform through a gateway connected with the monitoring device, and the server stores and analyzes the various data, so that whether the operating condition or the operating environment of the electric equipment has fault hidden danger or not is judged.
However, as the number of monitoring devices increases and the types of various monitoring data are more, the server on the cloud platform needs to receive various monitoring data sent by a large number of monitoring devices, which results in that the server needs to consume a large amount of hardware resources during storage and analysis, and the operation load is too large.
Disclosure of Invention
The embodiment of the invention provides a data processing method and a gateway, which are used for reducing the load of a server.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a data processing method is provided, including: the gateway receives monitoring data sent by the monitoring device; the gateway judges whether the monitoring data are power utilization parameters of the power utilization equipment; if the monitoring data are power utilization parameters of the electric equipment, the gateway judges whether the monitoring data meet a first preset condition; if the monitoring data meet the first preset condition, the gateway generates an alarm instruction, and the alarm instruction is used for indicating that the electric equipment has an electrical fault; and if the monitoring data are not the electricity utilization parameters of the electricity utilization equipment, the gateway sends the monitoring data to the server so that the server stores the monitoring data.
In a second aspect, a gateway is provided, which includes a receiving unit, a determining unit, a generating unit, and a sending unit; the receiving unit is used for receiving the monitoring data sent by the monitoring device; the judging unit is used for judging whether the monitoring data are power utilization parameters of the electric equipment; the judging unit is further used for judging whether the monitoring data meet a first preset condition or not if the monitoring data are determined to be the power utilization parameters of the power utilization equipment; the generating unit is used for generating an alarm instruction if the judging unit determines that the monitoring data meet the first preset condition, wherein the alarm instruction is used for indicating that the electric equipment has an electrical fault; and the sending unit is used for sending the monitoring data to the server if the judging unit determines that the monitoring data is not the power utilization parameter of the power utilization equipment, so that the server stores the monitoring data.
In a third aspect, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer, cause the computer to perform the data processing method of the first aspect.
In a fourth aspect, there is provided a gateway comprising: a processor, a memory, and a communication interface; wherein, the communication interface is used for the gateway to communicate with other devices or networks; the memory is used for storing one or more programs, and the one or more programs comprise computer-executable instructions, and when the gateway runs, the processor executes the computer-executable instructions stored in the memory, so that the gateway executes the data processing method of the first aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data processing method of the first aspect.
The embodiment of the invention provides a data processing method and device, which are applied to data forwarding. And after receiving the monitoring data sent by the monitoring device, the gateway judges whether the monitoring data is the power utilization parameters of the electric equipment. And if the monitoring data is the power utilization parameters of the electric equipment, the gateway judges whether the electric equipment has electrical faults or not according to the power utilization parameters of the electric equipment. And if the monitoring data are not the electricity utilization parameters of the electricity utilization equipment, the gateway sends the monitoring data to the server so that the server stores the monitoring data. By adopting the method, which monitoring data need to be processed by the gateway and which monitoring data need to be sent to the server can be judged at the gateway side.
Drawings
Fig. 1 is a first schematic structural diagram of a monitoring system according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating a data processing method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 5 is a fourth schematic flowchart of a data processing method according to an embodiment of the present invention;
fig. 6 is a first schematic diagram of a gateway structure according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a gateway structure according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a gateway structure provided in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In the description of the present invention, "/" means "or" unless otherwise specified, for example, a/B may mean a or B. "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. Further, "at least one" means one or more, "a plurality" means two or more. The terms "first", "second", and the like do not necessarily limit the number and execution order, and the terms "first", "second", and the like do not necessarily limit the difference.
The inventive concept of the present invention is described below: at present, in the field of energy, in order to improve the efficiency of monitoring the operating environment and the operating condition of electric equipment, a method of patrolling personnel is replaced by monitoring by using a monitoring system. The method specifically comprises the steps that various monitoring devices (such as cameras with networking functions, temperature sensors, humidity sensors, voltage detectors, current detectors, relays and the like) are arranged on different electric equipment sites and used for collecting operating parameters, environmental parameters and video data of the electric equipment, after the monitoring devices collect the various data, the various data are uploaded to a server located on a cloud platform through a gateway connected with the monitoring devices, and the various data are stored and analyzed by the server, so that whether the operating condition or the operating environment of the electric equipment has fault hazards or not is judged.
Based on the above technology, the invention finds that the number of monitoring devices increases with the increase of electric equipment, and because various types of monitoring data are more, a server located on a cloud platform needs to receive various types of monitoring data sent by a large number of monitoring devices, so that the server needs to consume a large amount of hardware resources during storage and analysis, and the operation load is too large.
In view of the above technical problems, the present invention considers that the gateway can process the monitoring data in time after receiving the monitoring data sent by the monitoring device. If the monitoring data are data with small calculation amount and small occupied space such as power utilization parameters, the gateway detects whether power utilization abnormality exists in the power utilization equipment according to the power utilization parameters; meanwhile, if the received monitoring data are non-power-consumption parameters with large calculation amount and large occupied space, the gateway can also send the monitoring data to a server, and the server stores, analyzes or otherwise processes the monitoring data. Therefore, in the process of reporting the monitoring data by the monitoring device, if the gateway and the server can participate in the work of processing the monitoring data, the technical problem can be solved.
Based on the above inventive concept, an embodiment of the present invention provides a data processing method, which is applied to any one gateway (the gateway 111 and the gateway 112 are exemplarily shown in the figure, and there may be more or fewer gateways in practical application, and the gateway 111 is taken as an example in the embodiment of the present invention) in a plurality of gateways in a monitoring system 10 shown in fig. 1, where the monitoring system 10 specifically further includes a server 12 and a plurality of monitoring devices (the monitoring device 131, the monitoring device 132, and the monitoring device 133 are exemplarily shown in the figure, and there may be more or fewer monitoring devices in practical application, and the monitoring device 131 is specifically taken as an example in the embodiment of the present invention for description).
The monitoring device 131 performs data interaction with the server 12 through the gateway 111, the monitoring device 131 may be various sensors listed in the above inventive concept, and the gateway 111 is connected with the server 12 through a preset network.
In an implementation manner, the north direction of the gateway 111 may support multiple mobile communication network systems such as a 5th-Generation (5G) network, a Long Term Evolution (Long Term Evolution, LTE) network, a NarrowBand Internet of Things (NarrowBand band Internet of Things, NB-IoT network), and the like, and in the embodiment of the present invention, data interaction may be performed with the server 12 through the 5G network, and the gateway may also be connected with the server 12 through multiple networks, so as to implement redundant backup of a transport network.
It should be noted that the gateway 111 can also perform data interaction with other gateways (for example, the gateway 112 in fig. 1), and can be used as a redundant backup device for the other gateways.
As shown in fig. 2, the data processing method provided in the embodiment of the present invention may specifically include S201 to S204:
s201, the gateway receives monitoring data sent by the monitoring device.
The gateway has various data interface types, can support various wired and Wireless communication standards such as an RS232 serial port, an RS485 serial port, Ethernet, Wireless broadband (Wi-Fi), ZigBee (Zigbee protocol) and the like in the south direction, and can transmit data with different monitoring devices through various communication modes.
Illustratively, The gateway has 2 independent Ethernet interfaces, 4 isolated RS485 interfaces, 1 developable CAN2.0 protocol interface and supports OTG-USB (USB On-The-Go) device debugging.
As a possible implementation manner, the gateway receives the monitoring data sent by the monitoring device through a preset connection manner.
It should be noted that the gateway can be connected with different monitoring devices in different connection manners, and the monitoring devices do not need to have specific standard interfaces. And if the gateway is connected with different monitoring devices at the same time, the gateway receives the monitoring data of the different monitoring devices in a polling mode.
S202, the gateway judges whether the monitoring data are power utilization parameters of the electric equipment.
It should be noted that the type of the monitoring data may specifically include video data of the operating environment of the electrical device, temperature data of the operating environment of the electrical device, humidity data of the operating environment of the electrical device, voltage of the electrical device, current of the electrical device, instantaneous power of the electrical device, and on-off record of the electrical device.
The power consumption parameters of the electric equipment specifically include voltage of the electric equipment, current of the electric equipment and instantaneous power of the electric equipment.
In one implementation, the number of the electric devices may be one or more; on the other hand, a plurality of electric devices may be located in the same area, or may be located in different areas, and may be specifically distinguished by the monitoring apparatus through the identifier of the electric device.
Optionally, as shown in fig. 3, in the data processing method provided in the embodiment of the present invention, S202 may specifically include S2021 to S2023:
s2021, the gateway obtains a preset field of a data frame carrying the monitoring data.
The preset field is used for identifying the data type of the monitoring data.
As a possible implementation manner, the gateway analyzes the monitoring data according to a preset protocol, and determines a preset field of a data frame of the monitoring data.
It should be noted that the preset field is a letter or a number in a preset format. After analyzing the monitoring data, the gateway can generate a frame header, a data part and a frame tail of the monitoring data. The preset field may be located in a header, a data portion, or an end of frame of the monitoring data.
In one possible design, in order to determine a preset protocol capable of analyzing the monitoring data, after receiving the monitoring data, the gateway identifies a protocol type corresponding to the monitoring data, and queries the preset protocol corresponding to the protocol type.
S2022, the gateway queries the data type of the monitoring data according to the preset field of the data frame bearing the monitoring data.
As a possible implementation manner, the gateway queries a data type corresponding to the preset field in a preset corresponding list stored in the gateway.
It should be noted that the preset correspondence list may be predefined by the operation and maintenance staff and stored in the gateway, and the preset correspondence list includes correspondence between different preset fields and different data types.
S2023, if the data type of the monitored data is one of the voltage of the electric equipment, the current of the electric equipment and the instantaneous power of the electric equipment, the gateway determines that the monitored data is the electric parameter of the electric equipment.
As a possible implementation manner, if the gateway inquires that the data type corresponding to the preset field is voltage, current or instantaneous power, it is determined that the monitoring data is the power utilization parameter of the power utilization equipment.
S203, if the monitoring data are power utilization parameters of the electric equipment, the gateway judges whether the monitoring data meet a first preset condition.
The first preset condition specifically comprises that the monitoring data exceeds the safe power utilization range of the power utilization parameters of the electric equipment, and the numerical value of the safe power utilization range of the power utilization parameters of the electric equipment, which exceeds the monitoring data, is more than or equal to a preset threshold value.
As a possible implementation manner, the gateway obtains a numerical value corresponding to the data type of the power consumption parameter from a data portion generated in analyzing the monitoring data, and determines whether the numerical value corresponding to the current data type meets a first preset condition.
It should be noted that the gateway includes an open Application Program Interface (API), the safe power utilization range and the preset threshold may be set by an operation and maintenance person through the API, and the safe power utilization range and the preset threshold are different according to the type of the power utilization parameter.
In one implementation, if the monitoring data is the voltage of the electric device, the first preset condition specifically includes that the voltage value of the electric device is greater than an upper limit value of a first safe power utilization range, and a difference from the upper limit value is greater than or equal to a first threshold value, or the voltage value of the electric device is smaller than a lower limit value of the first safe power utilization range, and a difference between the lower limit value and the voltage value of the electric device is greater than or equal to the first threshold value.
The upper limit value of the first safety electricity utilization range, the lower limit value of the first safety electricity utilization range and the first threshold value can be set in the gateway by operation and maintenance personnel.
Illustratively, the upper limit value of the first safe power utilization range is 240V, the lower limit value of the first safe power utilization range is 190V, and the first threshold value is 40V.
In another implementation manner, if the monitoring data is the current of the electric device, the first preset condition specifically includes that the current value of the electric device is greater than an upper limit value of a second safe power utilization range, and a difference between the current value of the electric device and the upper limit value is greater than or equal to a second threshold value, or the current value of the electric device is smaller than a lower limit value of the second safe power utilization range, and a difference between the lower limit value and the current value of the electric device is greater than or equal to the second threshold value.
The upper limit value of the second safety electricity utilization range, the lower limit value of the second safety electricity utilization range and the second threshold value can be set in the gateway by operation and maintenance personnel.
In another implementation manner, if the monitoring data is the instantaneous power of the electric device, the first preset condition specifically includes that the instantaneous power value of the electric device is greater than an upper limit value of a third safety power utilization range, and a difference between the instantaneous power value of the electric device and the upper limit value is greater than or equal to a third threshold value, or the instantaneous power value of the electric device is less than a lower limit value of the third safety power utilization range, and a difference between the lower limit value and the instantaneous power value of the electric device is greater than or equal to the third threshold value.
The upper limit value of the third safety electricity utilization range, the lower limit value of the third safety electricity utilization range and the third threshold value can be set in the gateway by operation and maintenance personnel.
And S204, if the monitoring data meet the first preset condition, generating an alarm instruction by the gateway.
Wherein, the alarm instruction is used for indicating that the electrical fault exists in the electric equipment.
In one implementation, after generating the alarm instruction, the gateway may alarm locally at the gateway, and may also send the alarm instruction to the server.
The alarm instruction comprises an identification of the electric equipment and monitoring data of the monitoring device, and the request alarm message is used for requesting the server to alarm or sending an alarm short message to operation and maintenance personnel.
And S205, if the monitoring data are not the electricity utilization parameters of the electricity utilization equipment, the gateway sends the monitoring data to the server so that the server stores the monitoring data.
As a possible implementation manner, after determining that the monitoring data is not the power utilization parameter of the power utilization device, the gateway sends the monitoring data to the server according to the address of the server.
It should be noted that the gateway may obtain the address of the server from the data portion of the monitoring data after parsing the monitoring data.
It can be understood that the server stores the monitoring data in the storage unit of the server after receiving the monitoring data, and when the monitoring data needs to be calculated and analyzed, the monitoring data can be directly read from the storage unit.
In one implementation, the gateway also has a high-performance industrial chip Cortex-A7 processor loaded with an embedded Linux real-time multitasking operating system.
The Linux real-time multitask operating system is internally provided with an encryption chip.
When the gateway sends the monitoring data to the server, the monitoring data can be encrypted through the encryption chip. Correspondingly, after receiving the encrypted data sent by the server, the gateway can also decrypt the encrypted data through the encryption chip.
Optionally, as shown in fig. 4, after S203, the data processing method provided in the embodiment of the present invention may further include S206-S207:
s206, if the monitoring data does not meet the first preset condition, the gateway judges whether the monitoring data meets a second preset condition.
The second preset condition comprises that the numerical value of the monitoring value exceeding the safe power utilization range of the electric equipment is smaller than a preset threshold value.
In one implementation, if the monitoring data is the voltage of the electric device, the second preset condition includes that the voltage value of the electric device is greater than an upper limit value of a first safe power utilization range, and a difference from the upper limit value is smaller than a first threshold value, or the voltage value of the electric device is smaller than a lower limit value of the first safe power utilization range, and a difference between the lower limit value and the voltage value of the electric device is smaller than or equal to the first threshold value.
The upper limit value of the first safety electricity utilization range, the lower limit value of the first safety electricity utilization range and the first threshold value can be set in the gateway by operation and maintenance personnel.
Illustratively, the upper limit value of the first safe power utilization range is 240V, the lower limit value of the first safe power utilization range is 190V, and the first threshold value is 40V.
In another implementation manner, if the monitoring data is the current of the electric device, the second preset condition specifically includes that the current value of the electric device is greater than an upper limit value of a second safe power utilization range, and a difference between the current value of the electric device and the upper limit value is smaller than a second threshold value, or the current value of the electric device is smaller than a lower limit value of the second safe power utilization range, and a difference between the lower limit value and the current value of the electric device is smaller than the second threshold value, and the gateway determines that the electric device satisfies the alarm condition.
The upper limit value of the second safety electricity utilization range, the lower limit value of the second safety electricity utilization range and the second threshold value can be set in the gateway by operation and maintenance personnel.
In another implementation manner, if the monitoring data is the instantaneous power of the electric equipment, the second preset condition specifically includes that the instantaneous power value of the electric equipment is greater than an upper limit value of a third safety power utilization range, and a difference between the instantaneous power value of the electric equipment and the upper limit value is smaller than a third threshold value, or the instantaneous power value of the electric equipment is smaller than a lower limit value of the third safety power utilization range, and a difference between the lower limit value and the instantaneous power value of the electric equipment is smaller than the third threshold value, then the gateway determines that the electric equipment meets the alarm condition.
The upper limit value of the third safety electricity utilization range, the lower limit value of the third safety electricity utilization range and the third threshold value can be set in the gateway by operation and maintenance personnel.
And S207, if the monitoring data meet a second preset condition, the gateway sends an indication message to the monitoring device.
The indication message is used for indicating the monitoring device to improve the frequency of reporting the power utilization parameters of the electric equipment.
As a possible implementation manner, after determining that the monitoring data meets the second preset condition, the gateway generates an indication message and sends the indication message to the monitoring device. Correspondingly, after receiving the indication message, the monitoring device responds to the indication message to improve the frequency of collecting the electricity utilization parameters and reporting the electricity utilization parameters.
It should be noted that the indication message specifically includes an identifier of the power consumption device and a type of the power consumption parameter.
In another possible implementation manner, in the data processing method provided in the embodiment of the present invention, after S206, if the monitoring data does not satisfy the second preset condition, the gateway determines that the electric device is operating normally.
Optionally, as shown in fig. 4, after S203, the data processing method provided in the embodiment of the present invention may specifically include S208-S209:
and S208, if the monitoring data meets the first preset condition, the gateway generates a request shutdown message.
The request shutdown message comprises an identifier of the electric equipment, and the request shutdown message is used for requesting the monitoring device to shut down the electric equipment.
S209, the gateway sends a request shutdown message to the monitoring device.
As a possible implementation manner, the gateway sends a request shutdown message to the monitoring apparatus, so that the monitoring apparatus responds to the request shutdown message and sends a shutdown signal to the relay of the electrical equipment according to the identifier of the electrical equipment in the request shutdown message. Correspondingly, the relay of the electric equipment closes the electric equipment after receiving the shutdown signal.
Optionally, as shown in fig. 5, the data processing method provided in the embodiment of the present invention, after S202, may further include S210-S211:
and S210, if the monitoring data are power utilization parameters of the power utilization equipment, the gateway updates the index record.
The index record comprises an identifier of the monitoring device, acquisition time of monitoring data and an identifier of the electric equipment.
It should be noted that the gateway is internally provided with a built-in SQLite3 database, has functions of data storage and breakpoint resume, and can store monitoring data and index records for querying the monitoring data. After receiving the power utilization parameters of the electric equipment, the gateway stores the power utilization parameters of the electric equipment and updates the data corresponding to the power utilization parameters into the index record.
In one implementation, the index record further includes an identification of the gateway and an address of the gateway.
Wherein the identification of the gateway is used to uniquely identify the gateway in the server.
S211, the gateway sends the index record to the server.
As a possible implementation, the gateway sends the updated index record to the server. Correspondingly, when the server needs to inquire the power utilization parameters of the target power utilization equipment within the preset time period, the server can generate a request inquiry message and send the request inquiry message to the gateway according to the identifier of the monitoring device, the acquisition time of the monitoring data and the identifier of the power utilization equipment in the index record.
The request query message is used for requesting the gateway to query and send the power utilization parameters of the target power utilization equipment in the target time period to the server.
The embodiment of the invention provides a data processing method and device, which are applied to data forwarding. And after receiving the monitoring data sent by the monitoring device, the gateway judges whether the monitoring data is the power utilization parameters of the electric equipment. And if the monitoring data is the power utilization parameters of the electric equipment, the gateway judges whether the electric equipment has electrical faults or not according to the power utilization parameters of the electric equipment. And if the monitoring data are not the electricity utilization parameters of the electricity utilization equipment, the gateway sends the monitoring data to the server so that the server stores the monitoring data. By adopting the method, which monitoring data need to be processed by the gateway and which monitoring data need to be sent to the server can be judged at the gateway side.
In the embodiment of the present invention, the gateway may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiments of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module according to each function, the embodiment of the present invention provides a schematic diagram of a possible structure of the gateway 111 in the above embodiment, and as shown in fig. 6, the gateway 111 includes a receiving unit 1111, a determining unit 1112, a generating unit 1113, and a transmitting unit 1114.
A receiving unit 1111, configured to receive monitoring data sent by the monitoring apparatus.
The determining unit 1112 is configured to determine whether the monitoring data is a power consumption parameter of the power consumption device.
The determining unit 1112 is further configured to determine whether the monitoring data meets a first preset condition if the monitoring data is determined to be the power utilization parameter of the power utilization device.
The generating unit 1113 is configured to generate an alarm instruction if the determining unit 1112 determines that the monitoring data meets the first preset condition, where the alarm instruction is used to indicate that an electrical fault exists in the electrical device.
A sending unit 1114, configured to send the monitoring data to the server if the determining unit 1112 determines that the monitoring data is not the power consumption parameter of the power consumption device, so that the server stores the monitoring data.
Optionally, as shown in fig. 7, the determining unit 1112 provided in the embodiment of the present invention may specifically include an acquiring sub-unit 11121 and a determining sub-unit 11122.
The acquiring subunit 11121 is configured to acquire a preset field of a data frame carrying monitoring data, where the preset field is used to identify a data type of the monitoring data.
The determining subunit 11122 is configured to determine the monitored data as the power utilization parameter of the power utilization device if the data type of the monitored data is one of a voltage of the power utilization device, a current of the power utilization device, and an instantaneous power of the power utilization device.
Optionally, as shown in fig. 7, the determining unit 1112 provided in the embodiment of the present invention is further configured to determine whether the monitoring data satisfies a second preset condition if the monitoring data does not satisfy the first preset condition.
The sending unit 1114 is further configured to send an indication message to the monitoring device if the determining unit 1112 determines that the monitoring data meets the second preset condition, where the indication message is used to instruct the monitoring device to increase the frequency of reporting the power consumption parameter of the electrical equipment.
Optionally, as shown in fig. 7, in the gateway 111 provided in the embodiment of the present invention, the second preset condition includes that the monitoring data exceeds a safe power utilization range of the power utilization parameter of the power utilization device, and a value of the safe power utilization range of the power utilization parameter of the power utilization device, which is exceeded by the monitoring data, is smaller than a preset threshold.
Optionally, as shown in fig. 7, the generating unit 1113 according to the embodiment of the present invention is further configured to generate a shutdown request message if the determining unit 1112 determines that the monitoring data meets the first preset condition, where the shutdown request message includes an identifier of the electrical device, and the shutdown request message is used to request the monitoring apparatus to shutdown the electrical device.
The sending unit 1114 is further configured to send a request shutdown message to the monitoring apparatus.
Optionally, as shown in fig. 7, the gateway 111 provided in the embodiment of the present invention specifically further includes an updating unit 1115.
An updating unit 1115, configured to update an index record if the determining unit 1112 determines that the monitoring data is the power consumption parameter of the power consumption device, where the index record includes an identifier of the monitoring apparatus, a collection time of the monitoring data, and an identifier of the power consumption device.
The sending unit 1114 is further configured to send the index record to the server after the updating unit 1115 updates the index record.
Fig. 8 shows a schematic diagram of another possible structure of the gateway 111 involved in the above embodiments. The gateway 111 includes: a processor 302 and a communication interface 303. The processor 302 is used to control and manage the actions of the device, e.g., to perform various steps in the method flows shown in the above-described method embodiments, and/or to perform other processes for the techniques described herein. Communication interface 303 is used to support communication of the gateway with other network entities. The terminal may further comprise a memory 301 and a bus 304, the memory 301 being used for storing program codes and data of the device.
The processor 302 may implement or execute various illustrative logical blocks, units and circuits described in connection with the present disclosure. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
Memory 301 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 304 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 304 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
It is clear to those skilled in the art from the foregoing description of the embodiments that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the device may be divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by a computer, the computer executes each step in the method flow shown in the above method embodiment.
Embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data processing method described in the above method embodiments.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), registers, a hard disk, an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium, in any suitable combination, or as appropriate in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Since the gateway, the computer-readable storage medium, and the computer program product in the embodiments of the present invention may be applied to the method described above, reference may also be made to the method embodiments for obtaining technical effects, and details of the embodiments of the present invention are not described herein again.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention.

Claims (14)

1. A method of data processing, the method comprising:
the gateway receives monitoring data sent by the monitoring device;
the gateway judges whether the monitoring data are power utilization parameters of the electric equipment;
if the monitoring data are the electricity utilization parameters of the electric equipment, the gateway judges whether the monitoring data meet a first preset condition;
if the monitoring data meet the first preset condition, the gateway generates an alarm instruction, and the alarm instruction is used for indicating that the electric equipment has an electrical fault;
and if the monitoring data are not the electricity utilization parameters of the electric equipment, the gateway sends the monitoring data to a server so that the server stores the monitoring data.
2. The data processing method according to claim 1, wherein the gateway determines whether the monitoring data is a power consumption parameter of a power consumption device, and specifically includes:
the gateway acquires a preset field of a data frame bearing the monitoring data, wherein the preset field is used for identifying the data type of the monitoring data;
if the data type of the monitoring data is one of the voltage of the electric equipment, the current of the electric equipment and the instantaneous power of the electric equipment, the gateway determines that the monitoring data is the electricity utilization parameter of the electric equipment.
3. The data processing method according to claim 2, wherein after the gateway determines whether the monitoring data satisfies the first preset condition, the method further comprises:
if the monitoring data does not meet the first preset condition, the gateway judges whether the monitoring data meets a second preset condition;
and if the monitoring data meet a second preset condition, the gateway sends an indication message to the monitoring device, wherein the indication message is used for indicating the monitoring device to improve the frequency of reporting the power utilization parameters of the electric equipment.
4. The data processing method according to claim 3, wherein the second preset condition includes that the monitored data exceeds a safe power utilization range of the power utilization parameter of the electric device, and a value of the monitored data exceeding the safe power utilization range of the power utilization parameter of the electric device is smaller than a preset threshold.
5. The data processing method according to claim 1, wherein after the gateway determines whether the monitoring data satisfies the first preset condition, the method further comprises:
if the monitoring data meet the first preset condition, the gateway generates a request shutdown message, wherein the request shutdown message comprises an identifier of the electric equipment, and the request shutdown message is used for requesting the monitoring device to shut down the electric equipment;
the gateway sends the request shutdown message to the monitoring device.
6. The data processing method according to any one of claims 1 to 5, wherein after the gateway determines whether the monitoring data is a power utilization parameter of a power utilization device, the method further comprises:
if the monitoring data are the electricity utilization parameters of the electric equipment, the gateway updates an index record, wherein the index record comprises the identification of the monitoring device, the acquisition time of the monitoring data and the identification of the electric equipment;
and the gateway sends the index record to the server.
7. A gateway is characterized by comprising a receiving unit, a judging unit, a generating unit and a sending unit;
the receiving unit is used for receiving monitoring data sent by the monitoring device;
the judging unit is used for judging whether the monitoring data are power utilization parameters of the electric equipment;
the judging unit is further configured to judge whether the monitoring data meets a first preset condition if it is determined that the monitoring data is the power utilization parameter of the power utilization equipment;
the generating unit is used for generating an alarm instruction if the judging unit determines that the monitoring data meet the first preset condition, wherein the alarm instruction is used for indicating that the electric equipment has an electrical fault;
the sending unit is configured to send the monitoring data to a server if the judging unit determines that the monitoring data is not the power consumption parameter of the electric device, so that the server stores the monitoring data.
8. The gateway according to claim 7, wherein the determining unit comprises an acquiring subunit and a determining subunit;
the acquiring subunit is configured to acquire a preset field of a data frame carrying the monitoring data, where the preset field is used to identify a data type of the monitoring data;
the determining subunit is configured to determine the monitored data as the power consumption parameter of the power consumption device if the data type of the monitoring data is one of a voltage of the power consumption device, a current of the power consumption device, and an instantaneous power of the power consumption device.
9. The gateway according to claim 8,
the judging unit is further configured to judge whether the monitoring data meets a second preset condition if the monitoring data does not meet the first preset condition;
the sending unit is further configured to send an indication message to the monitoring device if the determining unit determines that the monitoring data meets a second preset condition, where the indication message is used to indicate the monitoring device to increase the frequency of reporting the power consumption parameters of the electrical equipment.
10. The gateway according to claim 9, wherein the second preset condition includes that the monitoring data exceeds a safe power range of the power parameter of the power device, and a value of the monitoring data exceeding the safe power range of the power parameter of the power device is smaller than a preset threshold.
11. The gateway according to claim 7,
the generating unit is configured to generate a shutdown request message if the determining unit determines that the monitoring data meets the first preset condition, where the shutdown request message includes an identifier of the electrical equipment, and the shutdown request message is used to request the monitoring device to shutdown the electrical equipment;
the sending unit is further configured to send the request shutdown message to the monitoring apparatus.
12. The gateway according to any of claims 7-11, wherein the gateway further comprises an update unit;
the updating unit is configured to update an index record if the judging unit determines that the monitoring data is the power consumption parameter of the electrical equipment, where the index record includes an identifier of the monitoring device, acquisition time of the monitoring data, and an identifier of the electrical equipment;
the sending unit is further configured to send the index record to the server after the updating unit updates the index record.
13. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer, cause the computer to perform the data processing method of any of claims 1-6.
14. A gateway, comprising: a processor, a memory, and a communication interface; wherein the communication interface is used for the gateway to communicate with other devices or networks; the memory is used for storing one or more programs, the one or more programs comprise computer-executable instructions, and when the gateway runs, the processor executes the computer-executable instructions stored by the memory to cause the gateway to execute the data processing method of any one of claims 1 to 6.
CN202010159176.7A 2020-03-09 2020-03-09 Data processing method and gateway Pending CN111371618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010159176.7A CN111371618A (en) 2020-03-09 2020-03-09 Data processing method and gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010159176.7A CN111371618A (en) 2020-03-09 2020-03-09 Data processing method and gateway

Publications (1)

Publication Number Publication Date
CN111371618A true CN111371618A (en) 2020-07-03

Family

ID=71211741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010159176.7A Pending CN111371618A (en) 2020-03-09 2020-03-09 Data processing method and gateway

Country Status (1)

Country Link
CN (1) CN111371618A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112616127A (en) * 2020-12-07 2021-04-06 深圳市万睿智能科技有限公司 Method for realizing gateway data processing and related components thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494572A (en) * 2009-03-10 2009-07-29 中国电信股份有限公司 Remote management method and system for equipment alarm information
CN103078405A (en) * 2012-12-31 2013-05-01 银江股份有限公司 Intelligent front-end system for transmission line on-line detection system
CN207490955U (en) * 2017-11-03 2018-06-12 云南合续环境科技有限公司 A kind of monitoring device and system
CN109088817A (en) * 2018-07-25 2018-12-25 南京智能制造研究院有限公司 A kind of industry platform of internet of things edge calculations machine gateway
CN109118732A (en) * 2018-08-27 2019-01-01 中国科学院上海微***与信息技术研究所 Sensor perception event judgement and alarm system and method based on marginal information
CN110098953A (en) * 2019-03-29 2019-08-06 南京邮电大学 The things-internet gateway hierarchical control framework of rule-based engine
CN110365529A (en) * 2019-07-10 2019-10-22 广州博依特智能信息科技有限公司 A kind of edge calculations intelligent gateway method for processing business and edge calculations intelligent gateway
CN110430128A (en) * 2019-06-24 2019-11-08 上海展湾信息科技有限公司 Edge calculations gateway
CN110650084A (en) * 2019-08-26 2020-01-03 山东省科学院自动化研究所 Intelligent gateway, networking system and data processing method for industrial Internet of things
CN110807905A (en) * 2019-10-23 2020-02-18 北方工业大学 Community fire monitoring system based on end-edge-cloud architecture

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494572A (en) * 2009-03-10 2009-07-29 中国电信股份有限公司 Remote management method and system for equipment alarm information
CN103078405A (en) * 2012-12-31 2013-05-01 银江股份有限公司 Intelligent front-end system for transmission line on-line detection system
CN207490955U (en) * 2017-11-03 2018-06-12 云南合续环境科技有限公司 A kind of monitoring device and system
CN109088817A (en) * 2018-07-25 2018-12-25 南京智能制造研究院有限公司 A kind of industry platform of internet of things edge calculations machine gateway
CN109118732A (en) * 2018-08-27 2019-01-01 中国科学院上海微***与信息技术研究所 Sensor perception event judgement and alarm system and method based on marginal information
CN110098953A (en) * 2019-03-29 2019-08-06 南京邮电大学 The things-internet gateway hierarchical control framework of rule-based engine
CN110430128A (en) * 2019-06-24 2019-11-08 上海展湾信息科技有限公司 Edge calculations gateway
CN110365529A (en) * 2019-07-10 2019-10-22 广州博依特智能信息科技有限公司 A kind of edge calculations intelligent gateway method for processing business and edge calculations intelligent gateway
CN110650084A (en) * 2019-08-26 2020-01-03 山东省科学院自动化研究所 Intelligent gateway, networking system and data processing method for industrial Internet of things
CN110807905A (en) * 2019-10-23 2020-02-18 北方工业大学 Community fire monitoring system based on end-edge-cloud architecture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112616127A (en) * 2020-12-07 2021-04-06 深圳市万睿智能科技有限公司 Method for realizing gateway data processing and related components thereof

Similar Documents

Publication Publication Date Title
KR101813067B1 (en) SCADA MAINTENANCE MANAGING SYSTEM AND A GATEWAY WITH IoT MONITORING FUNCTION
CN111426345A (en) Distributed cable channel environment monitoring system, method and computer equipment
CN105093047B (en) Power circuit load monitoring early warning system
CN111579923A (en) Power distribution network fault diagnosis system and method
CN102879712A (en) System and method for positioning power distribution network terminal failures
CN111890933A (en) Battery management method and system for vehicle, vehicle and server
CN113507691B (en) Information pushing system and method based on power distribution network cross-region service
CN115173567A (en) Monitoring method, device, server and medium for intelligent power distribution room
CN111341063A (en) Intelligent control system, method and device for safety early warning and monitoring of electric equipment and terminal equipment
CN112702219B (en) Internet of things network monitoring method, device, equipment and storage medium
CN115085381A (en) Power utilization abnormity monitoring method, device and system
CN111371618A (en) Data processing method and gateway
CN111221366A (en) Control method and system for power equipment in cable tunnel and computer equipment
CN112015813B (en) Data sharing method, system and device for power distribution network and computer equipment
CN113241848B (en) Comprehensive monitoring system for power distribution network
CN105207367B (en) A kind of electric power remote monitoring and control system
CN113780717A (en) Method and device for analyzing electricity stealing and leakage behaviors based on gateway, intelligent gateway and medium
WO2023231837A1 (en) Data processing method and apparatus, and device, storage medium and system
CN204906010U (en) Transmission line dynamic monitoring early warning system
CN115766398B (en) Station area electricity consumption information acquisition fault analysis system based on edge calculation
CN110824980A (en) Household gas comprehensive disposal system based on Internet of things
CN201689327U (en) Service room environment monitoring system
CN116014886A (en) Method and system for judging and monitoring abnormal state of platform
CN112749861A (en) Ubiquitous power Internet of things edge calculation method and system
CN104701983A (en) State diagnosis and state evaluation system for substation secondary equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200703