CN108989463B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN108989463B
CN108989463B CN201810978050.5A CN201810978050A CN108989463B CN 108989463 B CN108989463 B CN 108989463B CN 201810978050 A CN201810978050 A CN 201810978050A CN 108989463 B CN108989463 B CN 108989463B
Authority
CN
China
Prior art keywords
monitoring data
server
time period
data
acquired
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.)
Active
Application number
CN201810978050.5A
Other languages
Chinese (zh)
Other versions
CN108989463A (en
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.)
Zhejiang Emcshare Energy Saving Technology Service Co ltd
Original Assignee
Zhejiang Emcshare Energy Saving Technology Service 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 Zhejiang Emcshare Energy Saving Technology Service Co ltd filed Critical Zhejiang Emcshare Energy Saving Technology Service Co ltd
Priority to CN201810978050.5A priority Critical patent/CN108989463B/en
Publication of CN108989463A publication Critical patent/CN108989463A/en
Application granted granted Critical
Publication of CN108989463B publication Critical patent/CN108989463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/188Time-out mechanisms

Abstract

The invention provides a data processing method and a data processing device, which relate to the technical field of data processing and comprise the following steps: acquiring monitoring data of monitored equipment and sending the monitoring data to a server; if the confirmation information sent by the server is not acquired within a first preset time period, repeatedly sending the monitoring data to the server; and if the sending times of the monitoring data sent to the server reach preset times, determining that the network connection between the intelligent electric meter and the server is in a disconnected state, and performing statistical processing on the local monitoring data. The technical problem of when communication connection between smart electric meter and the server is unusual among the prior art, because smart electric meter can't cause data to lose easily with the effectual real-time upload of data for the server can't obtain the technical problem of complete monitoring data is solved.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for data processing.
Background
The intelligent electric energy meter is a tool for counting electric energy parameters, obtains the electric parameters of the monitored equipment through collecting the current and voltage changes of the monitored equipment and through statistical calculation, and sends the electric parameters to the server through the network to be stored in the database. In the whole monitoring process, the equipment may experience server abnormality, local network shielding, network state abnormality and the like, so that the intelligent electric energy meter cannot be successfully connected with the server, data cannot be effectively uploaded in real time, and data is lost.
No effective solution has been proposed to the above problems.
Disclosure of Invention
In view of this, an object of the present invention is to provide a data processing method and apparatus, so as to alleviate the technical problem in the prior art that when a communication connection between an intelligent electric meter and a server is abnormal, the intelligent electric meter cannot upload data effectively in real time, and data loss is easily caused.
In a first aspect, an embodiment of the present invention provides a data processing method, where the method is applied to a smart meter, and the method includes: acquiring monitoring data of monitored equipment, and sending the monitoring data to a server, wherein the monitoring data comprises at least one of the following data: electric quantity data, time parameters, current data, voltage data, active power, reactive power and apparent power; if the confirmation information sent by the server is not obtained within a first preset time period, the monitoring data are repeatedly sent to the server, wherein the confirmation information is response information fed back to the intelligent electric meter after the server receives the monitoring data; and if the sending times of the monitoring data sent to the server reach preset times, determining that the network connection between the intelligent electric meter and the server is in a disconnected state, and performing statistical processing on local monitoring data.
Further, the statistical processing of the local monitoring data includes: counting the monitoring data acquired in each time period from the monitoring data acquired at the moment of network disconnection until the network connection between the intelligent electric meter and the server is in a connection state; and performing summation statistical calculation on the electric quantity data in the monitoring data acquired in each time period to obtain a data packet acquired in at least one time period, and storing the data packet in a local database, wherein the data packet also comprises a time parameter in the last monitoring data acquired in the time period.
Further, the summing statistical calculation of the monitoring data acquired in each time period includes: monitoring data Ai,jAnd the monitoring data Ai,j+1Performing a sum statistical calculation, wherein Ai,jRepresents the jth monitoring data acquired in the ith time period, Ai,j+1And j represents j +1 th monitoring data acquired in the ith time period, wherein j is 1 to M in sequence, and M is the total amount of the monitoring data acquired in the ith time period.
Further, when the ith time period is the time period of the network disconnection time, Ai,1Monitoring data collected at the moment of network disconnection; when the ith time period is a time period after the time period of the network disconnection time, Ai,1Monitoring data collected at the beginning of the ith time period; when the ith time period is the time period of the target time, Ai,MFor the monitoring data collected at the target time, the target time is that the intelligent ammeter and the server reestablish network connectionThe time of day.
Further, the method further comprises: in the process of carrying out statistical processing on local monitoring data, restarting a network connection module in the intelligent electric meter every other second preset time period; after restarting the network connection module, sending a reconnection request to the server; if first feedback information sent by the server based on the reconnection request is not acquired, determining that the network connection between the server and the intelligent electric meter is in a disconnected state; and if first feedback information sent by the server based on the reconnection request is acquired, sending the data packet to the server.
Further, if the confirmation information sent by the server is not obtained within a first preset time period, repeatedly sending the monitoring data to the server includes: if the confirmation information sent by the server is not obtained within a first preset time period, the monitoring data are repeatedly sent to the server until the newly acquired monitoring data are obtained; and after the newly acquired monitoring data is acquired, transmitting the newly acquired monitoring data to the server under the condition that the confirmation information transmitted by the server is not acquired.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, where the apparatus includes: the device comprises an acquisition unit, a judgment unit and a data processing unit, wherein the acquisition unit is used for acquiring monitoring data of monitored equipment and sending the monitoring data to a server, and the monitoring data comprises at least one of the following data: electric quantity data, time parameters, current data, voltage data, active power, reactive power and apparent power; the judging unit is used for repeatedly sending the monitoring data to the server if the confirmation information sent by the server is not obtained within a first preset time period, wherein the confirmation information is response information fed back to the intelligent electric meter after the server receives the monitoring data; and the data processing unit is used for determining that the network connection between the intelligent electric meter and the server is in a disconnected state and carrying out statistical processing on local monitoring data if the sending times of sending the monitoring data to the server reach preset times.
Further, the data processing unit is further configured to: counting the monitoring data acquired in each time period from the monitoring data acquired at the moment of network disconnection until the network connection between the intelligent electric meter and the server is in a connection state; and performing summation statistical calculation on the monitoring data acquired in each time period to obtain a data packet acquired in at least one time period, and storing the data packet in a local database, wherein the data packet also comprises a time parameter in the last monitoring data acquired in the time period.
Further, the data processing unit is also used for monitoring data Ai,jAnd the monitoring data Ai,j+1Performing a sum statistical calculation, wherein Ai,jRepresents the jth monitoring data acquired in the ith time period, Ai,j+1And j represents j +1 th monitoring data acquired in the ith time period, wherein j is 1 to M in sequence, and M is the total amount of the monitoring data acquired in the ith time period.
Further, the data processing unit is further configured to, when the ith time period is the time period of the network disconnection time, ai,1Monitoring data collected at the moment of network disconnection; when the ith time period is a time period after the time period of the network disconnection time, Ai,1Monitoring data collected at the beginning of the ith time period; when the ith time period is the time period of the target time, Ai,MAnd the target time is the time when the intelligent ammeter and the server reestablish network connection.
In the embodiment of the invention, after the intelligent electric meter and the server are disconnected, the intelligent electric meter continuously acquires the monitoring data of the monitored equipment, then performs statistical processing on the acquired data to obtain statistical data, and sends the statistical data to the server after the intelligent electric meter and the server are restored to be connected, so that the technical problem that when communication connection between the intelligent electric meter and the server is abnormal in the prior art, data loss is easily caused because the intelligent electric meter cannot effectively upload the monitoring data in real time, and the server cannot acquire complete monitoring data is solved, and the technical effect that the server can completely acquire the monitoring data acquired by the intelligent electric meter is realized.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another data processing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
in accordance with an embodiment of the present invention, there is provided a method embodiment of data processing, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a method of data processing according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, obtaining monitoring data of monitored equipment, and sending the monitoring data to a server, wherein the monitoring data comprises at least one of the following data: electric quantity data, time parameters, current data, voltage data, active power, reactive power and apparent power;
step S104, if the confirmation information sent by the server is not obtained within a first preset time period, the monitoring data is repeatedly sent to the server, wherein the confirmation information is response information fed back to the intelligent electric meter after the server receives the monitoring data.
Step S106, if the sending times of the monitoring data sent to the server reach preset times, determining that the network connection between the intelligent electric meter and the server is in a disconnected state, and performing statistical processing on local monitoring data;
in the embodiment of the invention, after the intelligent electric meter and the server are disconnected, the intelligent electric meter continuously acquires the monitoring data of the monitored equipment, then performs statistical processing on the acquired data to obtain statistical data, and sends the statistical data to the server after the intelligent electric meter and the server are restored to be connected, so that the technical problem that when communication connection between the intelligent electric meter and the server is abnormal in the prior art, data loss is easily caused because the intelligent electric meter cannot effectively upload the monitoring data in real time, and the server cannot acquire complete monitoring data is solved, and the technical effect that the server can completely acquire the monitoring data acquired by the intelligent electric meter is realized.
It should be noted that the preset number of times may be set by a user, and is not limited in the embodiment of the present invention.
In addition, it should be noted that if the server does not acquire the monitoring data sent by the smart meter within the first preset time, the server broadcasts information to the smart meter according to a preset period.
Then, if the feedback information generated according to the broadcast information and sent by the smart meter is not obtained within a period of time after the server sends the broadcast information, it can also be determined that the network connection between the smart meter and the server is in a disconnected state, and the specific time length of the period of time may be set by the user, which is not specifically limited in the embodiment of the present invention.
In the embodiment of the present invention, as shown in fig. 2, step S104 further includes the following steps:
step S1041, if the confirmation information sent by the server is not obtained within the first preset time period, repeatedly sending the monitoring data to the server until the newly acquired monitoring data is obtained.
Step S1042, after acquiring the newly acquired monitoring data, and in a case where the confirmation information sent by the server is not acquired, sending the newly acquired monitoring data to the server.
In the embodiment of the invention, after the smart meter sends the monitoring data1 to the server, if the confirmation information sent by the server is not obtained within the first preset time, the smart meter repeatedly sends the monitoring data 1.
If the monitoring data1 cannot be sent to the server after the smart meter acquires the new monitoring data2, the monitoring data1 is stored in the local database, and the smart meter sends the monitoring data2 to the server.
In the embodiment of the present invention, on the basis of the embodiment shown in fig. 1, as shown in fig. 2, the statistical processing of the local monitoring data includes the following steps:
step S1061, counting the monitoring data acquired in each time period from the monitoring data acquired at the moment of network disconnection until the network connection between the intelligent electric meter and the server is in a connection state.
Step S1062, performing summation statistical calculation on the monitoring data acquired in each time period to obtain a data packet acquired in at least one time period, and storing the data packet in a local database, wherein the data packet further includes a time parameter in the last monitoring data acquired in the time period.
In the embodiment of the invention, after the network connection between the intelligent electric meter and the server is determined to be disconnected, the intelligent electric meter continuously acquires the monitoring data of the monitored equipment, and the acquired monitoring data is processed according to the preset time period until the intelligent electric meter and the server reply the connection.
And then, summing up and counting the monitoring data acquired in each preset time period to obtain at least one data packet, wherein one time period corresponds to one data packet.
And finally, storing the data packet into the body database.
It should be noted that the time period may be set by a user, and is not limited in the embodiment of the present invention.
In the embodiment of the present invention, on the basis of the embodiment shown in fig. 1, the summing statistical calculation of the monitoring data acquired in each time period includes the following steps:
step S11, monitoring data Ai,jAnd the monitoring data Ai,j+1Performing a sum statistical calculation, wherein Ai,jRepresents the jth monitoring data acquired in the ith time period, Ai,j+1And j represents j +1 th monitoring data acquired in the ith time period, wherein j is 1 to M in sequence, and M is the total amount of the monitoring data acquired in the ith time period.
It should be noted that, when the ith time period is the time period of the network disconnection time, ai,1Monitoring data collected at the moment of network disconnection; when the ith time period is a time period after the time period of the network disconnection time, Ai,1Monitoring data collected at the beginning of the ith time period; when the ith time period is the time period of the target time, Ai,MAnd the target time is the time when the intelligent ammeter and the server reestablish network connection.
In the embodiment of the invention, when the network connection between the intelligent electric meter and the server is determined to be disconnected, the first monitoring data A collected by the intelligent electric meter at the network disconnection time is acquiredi,jAnd storing the data into the first data packet.
Then, second monitoring data A collected by the intelligent electric meteri,j+1Storing the data into the first data packet, adding and counting the first monitoring data to obtain statistical data, and covering the statistical data with the first monitoring data Ai,jAnd in the same way, in the time period i of the network disconnection time, all the monitoring data acquired by the intelligent electric meter are subjected to addition statistics and covering operation to obtain a first data packet, and the first data packet is stored in the local database.
If the intelligent ammeter and the server are not successfully reconnected in the time period of the network disconnection time, storing the first monitoring data acquired by the intelligent ammeter into a second data packet in the next time period i +1, and processing the monitoring data acquired by the intelligent ammeter in the time period i +1 according to the data processing method in the previous monitoring period i.
In the embodiment of the present invention, as shown in fig. 3, the method further includes the following steps:
and S108, restarting the network connection module in the intelligent electric meter every second preset time period in the process of carrying out statistical processing on the local monitoring data.
Step S110, after restarting the network connection module, sending a reconnection request to the server.
Step S112, if the first feedback information sent by the server based on the reconnection request is not obtained, determining that the network connection between the server and the intelligent electric meter is in a disconnected state.
Step S114, if first feedback information sent by the server based on the reconnection request is acquired, sending the data packet to the server.
In the embodiment of the invention, the network connection module in the intelligent electric meter is restarted every second preset time period in the process of carrying out statistical processing on the local monitoring data by the intelligent electric meter.
And after the network connection module is restarted successfully every time, sending a reconnection request to the server.
And if the first feedback information sent by the server based on the reconnection request is not acquired, determining that the network connection between the server and the smart meter is still in a disconnected state, and executing the step S110 again.
If the first feedback information sent by the server based on the reconnection request is obtained, the reconnection between the intelligent electric meter and the server is successful, and the intelligent electric meter sends the monitoring data and the data packet stored in the local database to the server during the network disconnection period.
Example two:
the present invention further provides a data processing apparatus, where the system is configured to execute the after-sales service management method provided in the foregoing content of the embodiment of the present invention, and the following is a specific description of the after-sales service management system provided in the embodiment of the present invention
As shown in fig. 4, the apparatus includes: an acquisition unit 10, a determination unit 20, a data processing unit 30, wherein,
the acquiring unit 10 is configured to acquire monitoring data of a monitored device, and send the monitoring data to a server, where the monitoring data includes at least one of: electric quantity data, time parameters, current data, voltage data, active power, reactive power and apparent power;
the judging unit 20 is configured to repeatedly send the monitoring data to the server if a confirmation message sent by the server is not obtained within a first preset time period, where the confirmation message is a response message fed back to the smart meter after the server receives the monitoring data;
the data processing unit 30 is configured to determine that the network connection between the smart meter and the server is in a disconnected state if the sending times of sending the monitoring data to the server reaches preset times, and perform statistical processing on local monitoring data.
In the embodiment of the invention, after the connection between the intelligent electric meter and the server is disconnected, the acquisition unit of the intelligent electric meter continues to acquire the monitoring data of the monitored equipment, the data processing unit performs statistical processing on the acquired data to obtain statistical data, and the statistical data is sent to the server after the intelligent electric meter and the server are restored to be connected, so that the technical problem that when the communication connection between the intelligent electric meter and the server is abnormal in the prior art, the monitoring data cannot be effectively uploaded by the intelligent electric meter in real time, the data is easily lost, and the server cannot acquire complete monitoring data is solved, so that the technical effect that the server can completely acquire the monitoring data acquired by the intelligent electric meter is realized.
Optionally, the data processing unit 30 is further configured to: counting the monitoring data acquired in each time period from the monitoring data acquired at the moment of network disconnection until the network connection between the intelligent electric meter and the server is in a connection state; and performing summation statistical calculation on the monitoring data acquired in each time period to obtain a data packet acquired in at least one time period, and storing the data packet in a local database, wherein the data packet also comprises a time parameter in the last monitoring data acquired in the time period.
Optionally, the data processing unit 30 is further configured to: monitoring data Ai,jAnd the monitoring data Ai,j+1Performing a sum statistical calculation, wherein Ai,jRepresents the jth monitoring data acquired in the ith time period, Ai,j+1And j represents j +1 th monitoring data acquired in the ith time period, wherein j is 1 to M in sequence, and M is the total amount of the monitoring data acquired in the ith time period.
Optionally, the data processing unit 30 is further configured to: when the ith time period is the time period of the network disconnection time, Ai,1Monitoring data collected at the moment of network disconnection; when the ith time period is a time period after the time period of the network disconnection time, Ai,1Monitoring data collected at the beginning of the ith time period; when the ith time period is the time period of the target time, Ai,MAnd the target time is the time when the intelligent ammeter and the server reestablish network connection.
Optionally, the apparatus further comprises a reconnection unit, configured to: in the process of carrying out statistical processing on local monitoring data, restarting a network connection module in the intelligent electric meter every other second preset time period; after restarting the network connection module, sending a reconnection request to the server; if first feedback information sent by the server based on the reconnection request is not acquired, determining that the network connection between the server and the intelligent electric meter is in a disconnected state; and if first feedback information sent by the server based on the reconnection request is acquired, sending the data packet to the server.
Optionally, the determining unit 20 is further configured to: if the confirmation information sent by the server is not obtained within a first preset time period, the monitoring data are repeatedly sent to the server until the newly acquired monitoring data are obtained; and after the newly acquired monitoring data is acquired, transmitting the newly acquired monitoring data to the server under the condition that the confirmation information transmitted by the server is not acquired.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units 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 invention 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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1. A data processing method is applied to a smart electric meter and comprises the following steps:
acquiring monitoring data of monitored equipment, and sending the monitoring data to a server, wherein the monitoring data comprises at least one of the following data: electric quantity data, time parameters, current data, voltage data, active power, reactive power and apparent power;
if the confirmation information sent by the server is not obtained within a first preset time period, the monitoring data are repeatedly sent to the server, wherein the confirmation information is response information fed back to the intelligent electric meter after the server receives the monitoring data;
if the sending times of the monitoring data sent to the server reach preset times, determining that the network connection between the intelligent electric meter and the server is in a disconnected state, and performing statistical processing on local monitoring data;
wherein, the statistical processing of the local monitoring data comprises:
counting the monitoring data acquired in each time period from the monitoring data acquired at the moment of network disconnection until the network connection between the intelligent electric meter and the server is in a connection state;
performing summation statistical calculation on electric quantity data in the monitoring data acquired in each time period to obtain a data packet acquired in at least one time period, and storing the data packet in a local database, wherein the data packet also comprises a time parameter in the last monitoring data acquired in the time period;
the adding and counting calculation of the monitoring data acquired in each time period comprises the following steps:
monitoring data Ai,jAnd monitoring data Ai,j+1Performing a sum statistical calculation, wherein Ai,jRepresents the jth monitoring data acquired in the ith time period, Ai,j+1Representing j +1 th monitoring data acquired in the ith time period, wherein j is 1 to M in sequence, and M is the total amount of the monitoring data acquired in the ith time period;
when the ith time period is the time period of the network disconnection time, Ai,1Monitoring data collected at the moment of network disconnection; when the ith time period is a time period after the time period of the network disconnection time, Ai,1Monitoring data collected at the beginning of the ith time period; when the ith time period is the time period of the target time, Ai,MAnd the target time is the time when the intelligent ammeter and the server reestablish network connection.
2. The method of claim 1, further comprising:
in the process of carrying out statistical processing on local monitoring data, restarting a network connection module in the intelligent electric meter every other second preset time period;
after restarting the network connection module, sending a reconnection request to the server;
if first feedback information sent by the server based on the reconnection request is not acquired, determining that the network connection between the server and the intelligent electric meter is in a disconnected state;
and if first feedback information sent by the server based on the reconnection request is acquired, sending the data packet to the server.
3. The method of claim 1, wherein if the acknowledgement sent by the server is not obtained within a first preset time period, repeatedly sending the monitoring data to the server comprises:
if the confirmation information sent by the server is not obtained within a first preset time period, the monitoring data are repeatedly sent to the server until the newly acquired monitoring data are obtained;
and after the newly acquired monitoring data is acquired, transmitting the newly acquired monitoring data to the server under the condition that the confirmation information transmitted by the server is not acquired.
4. The utility model provides a data processing device which characterized in that sets up in smart electric meter, the device includes: an acquisition unit, a judgment unit, a data processing unit, wherein,
the acquisition unit is used for acquiring monitoring data of monitored equipment and sending the monitoring data to a server, wherein the monitoring data comprises at least one of the following data: electric quantity data, time parameters, current data, voltage data, active power, reactive power and apparent power;
the judging unit is used for repeatedly sending the monitoring data to the server if the confirmation information sent by the server is not obtained within a first preset time period, wherein the confirmation information is response information fed back to the intelligent electric meter after the server receives the monitoring data;
the data processing unit is used for determining that the network connection between the intelligent electric meter and the server is in a disconnected state and carrying out statistical processing on local monitoring data if the sending times of sending the monitoring data to the server reach preset times;
wherein the data processing unit is further configured to:
counting the monitoring data acquired in each time period from the monitoring data acquired at the moment of network disconnection until the network connection between the intelligent electric meter and the server is in a connection state;
performing summation statistical calculation on electric quantity data in the monitoring data acquired in each time period to obtain a data packet acquired in at least one time period, and storing the data packet in a local database, wherein the data packet also comprises a time parameter in the last monitoring data acquired in the time period;
wherein the data processing unit is further configured to:
monitoring data Ai,jAnd monitoring data Ai,j+1Performing a sum statistical calculation, wherein Ai,jRepresents the jth monitoring data acquired in the ith time period, Ai,j+1Representing j +1 th monitoring data acquired in the ith time period, wherein j is 1 to M in sequence, and M is the total amount of the monitoring data acquired in the ith time period;
wherein the data processing unit is further configured to:
when the ith time period is the time period of the network disconnection time, Ai,1Monitoring data collected at the moment of network disconnection; when the ith time period is a time period after the time period of the network disconnection time, Ai,1Monitoring data collected at the beginning of the ith time period; when the ith time period is the time period of the target time, Ai,MAnd the target time is the time when the intelligent ammeter and the server reestablish network connection.
CN201810978050.5A 2018-08-27 2018-08-27 Data processing method and device Active CN108989463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810978050.5A CN108989463B (en) 2018-08-27 2018-08-27 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810978050.5A CN108989463B (en) 2018-08-27 2018-08-27 Data processing method and device

Publications (2)

Publication Number Publication Date
CN108989463A CN108989463A (en) 2018-12-11
CN108989463B true CN108989463B (en) 2021-06-08

Family

ID=64546594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810978050.5A Active CN108989463B (en) 2018-08-27 2018-08-27 Data processing method and device

Country Status (1)

Country Link
CN (1) CN108989463B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598833A (en) * 2019-01-18 2019-04-09 泰华智慧产业集团股份有限公司 Smart lock control system based on optical cable joining cabinet
CN110324211A (en) * 2019-08-08 2019-10-11 宜人恒业科技发展(北京)有限公司 A kind of data capture method and device
CN110620701B (en) * 2019-09-12 2024-03-08 北京百度网讯科技有限公司 Data stream monitoring processing method, device, equipment and storage medium
CN117041305B (en) * 2023-10-10 2024-01-23 成都秦川物联网科技股份有限公司 Offline data management method, device and medium for gas flowmeter based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187554A (en) * 2015-09-29 2015-12-23 北京京东尚科信息技术有限公司 Method and system for monitoring server performance
CN106656597A (en) * 2016-12-22 2017-05-10 中国神华能源股份有限公司 Fully mechanized mining face device operation data transmission method, device and system
CN107846309A (en) * 2017-10-20 2018-03-27 深圳益邦阳光有限公司 Suspension data forward method, electronic equipment and storage medium based on remote monitoring

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187554A (en) * 2015-09-29 2015-12-23 北京京东尚科信息技术有限公司 Method and system for monitoring server performance
CN106656597A (en) * 2016-12-22 2017-05-10 中国神华能源股份有限公司 Fully mechanized mining face device operation data transmission method, device and system
CN107846309A (en) * 2017-10-20 2018-03-27 深圳益邦阳光有限公司 Suspension data forward method, electronic equipment and storage medium based on remote monitoring

Also Published As

Publication number Publication date
CN108989463A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN108989463B (en) Data processing method and device
EP3700135B1 (en) Method and apparatus for optimizing monitoring data collection policy for terminal device
CN104866632A (en) Failure data acquisition method, device and terminal of electric household appliance
CN104698309B (en) The method and system that a kind of power information obtains
CN110445682B (en) Method, server, equipment and system for monitoring survival state of networking node
CN105187554A (en) Method and system for monitoring server performance
CN107907759A (en) The electricity monitoring system and method for power equipment
CN112711514A (en) Monitoring system, method and device of terminal equipment
CN113821421B (en) Method, system, device and storage medium for collecting server performance data
CN110768869A (en) Household charging method and device for multi-split system and computer equipment
CN105548873A (en) Method and system for achieving health diagnosis of switchgear in online monitoring device
US20140095656A1 (en) Remote Monitoring of Battery Packs
CN204206220U (en) Electrical network cloud computing management system
CN114138771B (en) Abnormal data processing method and device and electronic equipment
CN113452576A (en) Network environment monitoring method and device, storage medium and electronic device
CN110601914B (en) Method and system for monitoring survival state of server
CN101917699B (en) Random reported signaling tracking method and device based on users
CN112419698B (en) Electric energy meter data transmission method, system and device based on distribution line message specification
CN113759210A (en) Power distribution room state monitoring system and power distribution room monitoring data transmission method
CN111913147A (en) Monitoring method and device of power metering device based on Internet of things, server and storage medium
CN113676347B (en) Load prediction method and device of server, storage medium and electronic device
CN116505630B (en) Method and system for prolonging service life of power supply battery of fire-fighting Internet of things equipment
CN104917625A (en) Method for obtaining powered-off state of user end device and head end device
CN103023623A (en) Data acquiring and transmitting method in online monitoring system
CN113625576A (en) Energy management method

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
GR01 Patent grant
GR01 Patent grant