CN115617912A - Air switch data management method and device, terminal device and storage medium - Google Patents
Air switch data management method and device, terminal device and storage medium Download PDFInfo
- Publication number
- CN115617912A CN115617912A CN202211342191.0A CN202211342191A CN115617912A CN 115617912 A CN115617912 A CN 115617912A CN 202211342191 A CN202211342191 A CN 202211342191A CN 115617912 A CN115617912 A CN 115617912A
- Authority
- CN
- China
- Prior art keywords
- data
- service
- power utilization
- utilization data
- current power
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Power Sources (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method and a device for managing air switch data, terminal equipment and a storage medium, wherein initial power utilization data are acquired; processing the initial power utilization data, and performing format analysis on the processed data to obtain current power utilization data; processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data; and responding the service request of the user based on the service data through the service system. The current power utilization data are processed based on the preset rules, so that the service data meeting different services are obtained, the data storage overhead is reduced, and different requirements of a user for inquiring the latest data and tracing the data can be met.
Description
Technical Field
The invention relates to the technical field of power consumption management, in particular to an air switch data management method and device, terminal equipment and a storage medium.
Background
An air switch is an air switch, namely an air circuit breaker, and belongs to a low-voltage circuit breaker. Along with the promotion of modern demand, traditional air switch function can't satisfy the demand to power consumption safety in the daily life gradually, and the empty switch of intelligence upgrades on traditional empty switch distribution equipment, and the operation data processing that realizes distribution equipment through internet of things and the empty switch of intelligence manages the data of the product equipment of opening through wisdom power consumption platform.
At present, data of the air-powered product equipment are usually stored directly, so that great pressure is brought to a server, and a user cannot conveniently check the data, so that the power utilization management effect is influenced.
Therefore, a solution for improving the power management effect is needed.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
The invention mainly aims to provide an air switch data management method, an air switch data management device, terminal equipment and a storage medium, and aims to improve the effect of power utilization management.
In order to achieve the above object, the present invention provides an air switch data management method, including:
acquiring initial power consumption data;
processing the initial power consumption data, and performing format analysis on the processed data to obtain current power consumption data;
processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data;
and responding the service request of the user based on the service data through the service system.
Optionally, the step of acquiring initial power consumption data includes:
the method comprises the steps of obtaining initial power utilization data uploaded by the idle equipment at preset intervals, wherein the initial power utilization data comprise one or more of current, voltage, power, electric quantity, temperature, electric leakage and alarm states.
Optionally, the preset rules include a first preset rule, a second preset rule, a third preset rule and a fourth preset rule, the service data include first service data, second service data and/or third service data, the current power consumption data are processed and stored in a distributed manner based on the preset rules, and the step of obtaining corresponding service data includes at least one of the following steps:
storing the current power utilization data into a cache server based on the first preset rule and the second preset rule to obtain the first service data;
storing the current power utilization data into a first message queue based on the third preset rule to obtain second service data;
and storing the current electricity utilization data into a second message queue based on the fourth preset rule to obtain third service data.
Optionally, the step of storing the current power consumption data in a cache server based on the first preset rule to obtain the first service data includes:
judging whether the current power utilization data is the same as the last power utilization data or not based on the first preset rule;
if the current power utilization data is different from the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data;
if the current electricity utilization data is the same as the last electricity utilization data, judging whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a first time threshold value or not based on the second preset rule;
and if the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a first time threshold, storing the current power utilization data into the cache server to obtain the first service data.
Optionally, the step of storing the current power consumption data into a first message queue based on the third preset rule to obtain the second service data includes:
judging whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a second time threshold value or not based on the third preset rule;
if the distance between the access time of the current electricity utilization data and the access time of the last electricity utilization data exceeds a second time threshold, storing the current electricity utilization data into the first message queue to obtain second service data;
optionally, the step of storing the current power consumption data into a second message queue based on the fourth preset rule to obtain the third service data includes:
on the basis of the fourth preset rule, if the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data does not exceed a second time threshold, whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a third time threshold is judged;
and if the distance between the access time of the current power utilization data and the access time of the last power utilization data exceeds a third time threshold, storing the current power utilization data into the second message queue to obtain third service data.
Optionally, the step of responding, by the service system, to the service request of the user based on the service data includes at least one of:
calling the first service data through the service system to respond to a service request of the user for inquiring the latest state of equipment;
the second business data are taken out from the first message queue through the business system and stored in a time sequence database so as to respond to a service request for historical data tracing of the user;
and taking out the third service data from the second message queue through the service system, and pushing the third service data to a third-party service system.
In addition, to achieve the above object, the present invention also provides an air switch data management apparatus, including:
the acquisition module is used for acquiring initial power utilization data;
the processing module is used for processing the initial power utilization data and analyzing the format of the processed data to obtain the current power utilization data;
the storage module is used for processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data;
and the service module is used for responding to the service request of the user based on the service data through the service system.
In addition, in order to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and an idle data management program stored in the memory and operable on the processor, and the idle data management program, when executed by the processor, implements the steps of the idle data management method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium storing thereon a null data management program, which when executed by a processor implements the steps of the null data management method as described above.
According to the air switch data management method, the air switch data management device, the terminal equipment and the storage medium, initial power utilization data are obtained; processing the initial power utilization data, and performing format analysis on the processed data to obtain current power utilization data; processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data; and responding the service request of the user based on the service data through the service system. The current power utilization data are processed based on the preset rules, so that the service data meeting different services are obtained, the data storage overhead is reduced, and different requirements of a user for inquiring the latest data and tracing the data can be met.
Drawings
Fig. 1 is a functional module diagram of a terminal device to which an air switch data management apparatus belongs according to the present invention;
FIG. 2 is a flowchart illustrating an exemplary embodiment of a method for managing air switch data according to the present invention;
FIG. 3 is a flowchart illustrating the step S30 in the embodiment of FIG. 2;
fig. 4 is a schematic diagram illustrating a principle of processing and distributedly storing current power consumption data based on a preset rule in an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The main solution of the embodiment of the invention is as follows: acquiring initial power utilization data; processing the initial power consumption data, and performing format analysis on the processed data to obtain current power consumption data; processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data; and responding the service request of the user based on the service data through the service system. The current power utilization data are processed based on the preset rules, so that the service data meeting different services are obtained, the data storage overhead is reduced, and different requirements of a user for inquiring the latest data and tracing the data can be met.
Specifically, referring to fig. 1, fig. 1 is a functional module schematic diagram of a terminal device to which the air-laid data management apparatus belongs. The air switch data management device may be a device which is independent of the terminal device and can perform air switch data management, and may be carried on the terminal device in a form of hardware or software. The terminal device can be an intelligent mobile terminal with a data processing function, such as a mobile phone and a tablet personal computer, and can also be a fixed terminal device or a server with a data processing function.
In this embodiment, the terminal device to which the air switch data management apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores therein an operating system and an air switch data management program, and the air switch data management device may perform data processing on the acquired initial power consumption data to obtain current power consumption data, perform distributed storage on the current power consumption data based on a preset rule, and store information such as the obtained corresponding service data in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the air-on data manager in the memory 130, when executed by the processor, implements the steps of:
acquiring initial power utilization data;
processing the initial power consumption data, and performing format analysis on the processed data to obtain current power consumption data;
processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data;
and responding the service request of the user based on the service data through the service system.
Further, the air switch data manager in the memory 130, when executed by the processor, further implements the steps of:
acquiring initial power utilization data;
processing the initial power consumption data, and performing format analysis on the processed data to obtain current power consumption data;
processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data;
and responding the service request of the user based on the service data through the service system.
Further, the idle data manager in the memory 130, when executed by the processor, further performs the steps of:
the method comprises the steps of obtaining initial power utilization data uploaded by the idle equipment at preset intervals, wherein the initial power utilization data comprise one or more of current, voltage, power, electric quantity, temperature, electric leakage and alarm states.
Further, the idle data manager in the memory 130, when executed by the processor, further performs the steps of:
storing the current power utilization data into a cache server based on the first preset rule and the second preset rule to obtain the first service data;
storing the current power utilization data into a first message queue based on the third preset rule to obtain second service data;
and storing the current power utilization data into a second message queue based on the fourth preset rule to obtain third service data.
Further, the air switch data manager in the memory 130, when executed by the processor, further implements the steps of:
judging whether the current power utilization data is the same as the last power utilization data or not based on the first preset rule;
if the current power utilization data is different from the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data;
if the current electricity utilization data is the same as the last electricity utilization data, judging whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a first time threshold value or not based on the second preset rule;
and if the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a first time threshold, storing the current power utilization data into the cache server to obtain the first service data.
Further, the air switch data manager in the memory 130, when executed by the processor, further implements the steps of:
judging whether the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a second time threshold value or not based on the third preset rule;
if the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a second time threshold, storing the current power utilization data into the first message queue to obtain second service data;
based on the fourth preset rule, if the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data does not exceed a second time threshold, judging whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a third time threshold;
and if the distance between the access time of the current power utilization data and the access time of the last power utilization data exceeds a third time threshold, storing the current power utilization data into the second message queue to obtain third service data.
Further, the idle data manager in the memory 130, when executed by the processor, further performs the steps of:
calling the first service data through the service system to respond to a service request of the user for inquiring the latest state of equipment;
the second business data are taken out from the first message queue through the business system and stored in a time sequence database so as to respond to a service request for historical data tracing of the user;
and taking out the third service data from the second message queue through the service system, and pushing the third service data to a third-party service system.
According to the scheme, the embodiment specifically comprises the steps of acquiring initial power utilization data; processing the initial power consumption data, and performing format analysis on the processed data to obtain current power consumption data; processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data; and responding the service request of the user based on the service data through the service system. The current power utilization data are processed based on the preset rules, so that the service data meeting different services are obtained, the data storage overhead is reduced, and different requirements of a user for inquiring the latest data and tracing the data can be met.
Based on the above terminal device architecture but not limited to the above architecture, embodiments of the method of the present invention are presented.
The execution subject of the method of this embodiment may be an air data management apparatus or a terminal device, and the air data management apparatus is used for example in this embodiment.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of a method for managing overhead data according to the present invention. The air switch data management method comprises the following steps:
step S10, acquiring initial power utilization data;
in this application embodiment, through intelligent power consumption safety supervision and intelligent electric energy platform (intelligent platform for short), can supervise and record the power consumption data of air-break equipment, by the air-break equipment power consumption data that once gathers that reports at a certain interval, specifically include:
the method comprises the steps of obtaining initial power utilization data uploaded by the idle equipment at preset intervals, wherein the initial power utilization data comprise one or more of current, voltage, power, electric quantity, temperature, electric leakage and alarm states.
Specifically, the initial power consumption data collected and reported by the air switch equipment comprises the current, voltage and power, the power consumption, the temperature of the equipment, the electric leakage and the alarm state.
Step S20, processing the initial power consumption data, and performing format analysis on the processed data to obtain current power consumption data;
further, after the intelligent platform receives the initial power consumption data reported by the device, because the initial power consumption data is in a binary format, the initial power consumption data is not easy to identify and read, and therefore format analysis is required, and the method specifically comprises the following steps:
and analyzing the initial power utilization data to obtain the current power utilization data meeting the preset format.
The platform can analyze the format of the received initial power utilization data through the central server, so that a format required by the platform, such as a json format, is obtained, the identification and reading are easy, and the current power utilization data can be processed and stored in a distributed mode, so that service data capable of meeting different service requests of users can be obtained.
Step S30, processing and storing the current power utilization data in a distributed mode based on a preset rule to obtain corresponding service data;
in the embodiment of the present application, after the current electricity consumption data is obtained through format analysis, the current electricity consumption data may be compared with previous electricity consumption data based on a preset rule, where it should be noted that the previous electricity consumption data in the embodiment of the present application refers to electricity consumption data of a corresponding device that is last held (received) by a platform, and according to a comparison result, if the current electricity consumption data is different from the previous electricity consumption data, that is, the current electricity consumption data changes, the current electricity consumption data is immediately stored in a cache server, so that other business systems may immediately query the latest data; if the current power utilization data is the same as the last power utilization data, namely the current power utilization data is not changed, the time interval between the current power utilization data and the last power utilization data is continuously checked, and if the time between the current power utilization data and the last power utilization data exceeds a first time threshold value, the current power utilization data can be immediately stored in a cache server. In addition, the current electricity utilization data can be stored in the first message queue or the second message queue according to a preset rule to obtain corresponding service data for responding to different service requirements of users.
And S40, responding a service request of the user based on the service data through the service system.
Furthermore, after the current power consumption data is processed and stored in a distributed manner based on the preset rule and the corresponding service data is obtained, different service requests of the user can be responded through the service system based on the service data, and the method specifically includes the following steps:
calling the first service data through the service system to respond to a service request of the user for inquiring the latest state of equipment;
the second service data are taken out from the first message queue through the service system and stored in a time sequence database so as to respond to a service request for historical data tracing of the user;
and taking out the third service data from the second message queue through the service system, and pushing the third service data to a third-party service system.
Optionally, the first service data is latest data stored in the cache server instantly, and the user can call the first service data through the service system, so that the waiting time caused by a long link of data processing is reduced in the calling process, and the latest state data of the device can be inquired quickly.
Optionally, the second service data is service data stored in the first message queue, and the user can call the history data of the device when needing to trace the history data, and the service system takes the history data out of the first message queue and stores the history data in a corresponding database, so that the storage problem caused by an excessively large data volume reported by the device is avoided.
Optionally, the third service data is service data stored in the second message queue, and the service system in charge of pushing may take out the service data required by the user from the second message queue, and then push the notification to the service system of the third party, so that the frequency of pushing may be reduced, and the pressure on the client may be reduced.
In the embodiment, initial power utilization data is acquired; processing the initial power utilization data, and performing format analysis on the processed data to obtain current power utilization data; processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data; and responding the service request of the user based on the service data through the service system. The current power utilization data are processed based on the preset rules, so that the service data meeting different services are obtained, the data storage overhead is reduced, and different requirements of a user for inquiring the latest data and tracing the data can be met.
Referring to fig. 3, fig. 3 is a detailed flowchart of step S30 in the embodiment of fig. 2. This embodiment is based on the embodiment shown in fig. 2, in this embodiment, the step S30 includes:
step S301, storing the current power utilization data into a cache server based on the first preset rule and the second preset rule to obtain the first service data;
in the embodiment of the application, the current power utilization data is compared with the last power utilization data based on a preset rule, and according to the comparison result, if the current power utilization data is different from the last power utilization data, namely the current power utilization data changes, the current power utilization data is immediately stored in a cache server, so that other business systems can immediately inquire the latest data; if present power consumption data is the same with last power consumption data, and current power consumption data does not change promptly, then continue to check the time interval that current power consumption data and last power consumption data got into, if the time of two interval exceedes first time threshold value, then also can deposit current power consumption data in cache server immediately, specifically include:
judging whether the current power utilization data is the same as the last power utilization data or not based on the first preset rule;
if the current power utilization data are different from the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data;
if the current electricity utilization data is the same as the last electricity utilization data, judging whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a first time threshold value or not based on the second preset rule;
and if the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a first time threshold, storing the current power utilization data into the cache server to obtain the first service data.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a principle of processing and distributedly storing current electricity consumption data based on a preset rule in an embodiment of the present invention, as shown in fig. 4, when it is determined that the current electricity consumption data changes from the previous electricity consumption data based on a first preset rule, the current electricity consumption data can be stored in a cache server, so that other business systems can immediately query the latest data, and a long waiting time of a data processing link is reduced. And when the current electricity utilization data is judged to be the same as the last electricity utilization data, further checking whether the interval between the entering time of the current electricity utilization data and the entering time of the last electricity utilization data exceeds 5 minutes, and if the interval between the entering time of the current electricity utilization data and the entering time of the last electricity utilization data exceeds 5 minutes, storing the current electricity utilization data into a cache server. Other business systems can be made aware that even though the device data does not change, the data is still continuously uploaded in practice.
Step S302, based on the third preset rule, storing the current electricity utilization data into a first message queue to obtain second service data;
in this embodiment of the present application, according to a preset rule, current power consumption data may be stored in the first message queue or the second message queue to obtain corresponding service data, which is used for responding to different service requirements of a user, and specifically includes:
judging whether the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a second time threshold value or not based on the third preset rule;
if the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a second time threshold, storing the current power utilization data into the first message queue to obtain second service data;
step S303, based on the fourth preset rule, store the current power consumption data in a second message queue to obtain the third service data.
On the basis of the fourth preset rule, if the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data does not exceed a second time threshold, whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a third time threshold is judged;
and if the distance between the access time of the current power utilization data and the access time of the last power utilization data exceeds a third time threshold, storing the current power utilization data into the second message queue to obtain third service data.
Optionally, based on a third preset rule, no matter whether the current electricity consumption data is changed compared with the last electricity consumption data or not, sampling is required to be performed once every 10 minutes and the sampled data is stored in the message queue 1, that is, if it is determined that the time interval between the current electricity consumption data and the last electricity consumption data exceeds 10 minutes, the current electricity consumption data is stored in the message queue 1, and other business systems can take the current electricity consumption data out of the message queue 1 and store the current electricity consumption data in a database, so that the problem of huge data volume reported by equipment can be solved, and the data acquisition amount can be reduced, thereby reducing the overhead of data storage.
Optionally, based on a fourth preset rule, no matter whether the current power consumption data changes compared with the previous power consumption data, the current power consumption data needs to be sampled and stored in the message queue 2 every 5 minutes, that is, if it is determined that the entering time interval between the current power consumption data and the previous power consumption data does not exceed 10 minutes, it is further determined whether the entering time interval between the current power consumption data and the previous power consumption data exceeds 5 minutes, if the entering time interval between the current power consumption data and the previous power consumption data exceeds 5 minutes, the current power consumption data is stored in the message queue 2, and the service system in charge of pushing can take the current power consumption data out of the message queue 2 and then push and notify the service system to a third party. Therefore, the problem of huge data volume reported by equipment can be solved, and the pushing frequency of a third-party service system is reduced by reducing the acquisition amount, so that the pressure of the other party is reduced.
It should be noted that, in the embodiment of the present application, after the service data are stored in a distributed manner, when the service system calls the service data, the service data may be further processed, for example, a graph, a histogram, or other charts are drawn according to the service data, so that a user can view the service data more intuitively, and thus user experience is improved.
According to the scheme, the current power utilization data is stored in a cache server specifically based on the first preset rule and the second preset rule, so that the first service data is obtained; storing the current electricity utilization data into a first message queue based on the third preset rule to obtain second service data; and storing the current power utilization data into a second message queue based on the fourth preset rule to obtain third service data. The current power utilization data are processed and stored in a distributed mode according to preset rules, corresponding service data can be obtained, the data storage overhead is reduced, and meanwhile different requirements of a user for inquiring the latest data and tracing the data can be met.
In addition, an embodiment of the present invention further provides an air switch data management apparatus, where the air switch data management apparatus includes:
the acquisition module is used for acquiring initial power utilization data;
the processing module is used for processing the initial power utilization data and analyzing the format of the processed data to obtain the current power utilization data;
the storage module is used for processing and distributively storing the current power utilization data based on a preset rule to obtain corresponding service data;
and the service module is used for responding to the service request of the user based on the service data through the service system.
For the principle and implementation process of implementing the air-to-air data management in this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and an idle data management program that is stored in the memory and is executable on the processor, and the idle data management program implements the steps of the idle data management method when executed by the processor.
Since the air-laid data management program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and details are not repeated herein.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an idle data management program is stored on the computer-readable storage medium, and the idle data management program, when executed by a processor, implements the steps of the idle data management method described above.
Since the air switch data management program is executed by the processor, all technical solutions of all the embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the embodiments are achieved, and detailed description is omitted here.
Compared with the prior art, the air switch data management method, the air switch data management device, the terminal equipment and the storage medium provided by the embodiment of the invention acquire initial power utilization data; processing the initial power utilization data, and performing format analysis on the processed data to obtain current power utilization data; processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data; and responding the service request of the user based on the service data through the service system. The current power utilization data are processed based on the preset rules, so that the service data meeting different services are obtained, the data storage overhead is reduced, and different requirements of a user for inquiring the latest data and tracing the data can be met.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk) as above, and includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An air switch data management method, characterized in that the air switch data management method comprises the following steps:
acquiring initial power utilization data;
processing the initial power consumption data, and performing format analysis on the processed data to obtain current power consumption data;
processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data;
and responding the service request of the user based on the service data through the service system.
2. An air switch data management method according to claim 1, wherein the step of acquiring initial power usage data includes:
the method comprises the steps of obtaining initial power utilization data uploaded by the idle equipment at preset intervals, wherein the initial power utilization data comprise one or more of current, voltage, power, electric quantity, temperature, electric leakage and alarm states.
3. The air switch data management method according to claim 1, wherein the preset rules include a first preset rule, a second preset rule, a third preset rule and/or a fourth preset rule, the service data include first service data, second service data and/or third service data, and the step of processing and distributively storing the current power consumption data based on the preset rules to obtain corresponding service data includes at least one of:
storing the current power utilization data into a cache server based on the first preset rule and the second preset rule to obtain the first service data;
storing the current power utilization data into a first message queue based on the third preset rule to obtain second service data;
and storing the current electricity utilization data into a second message queue based on the fourth preset rule to obtain third service data.
4. The air switch data management method according to claim 3, wherein the step of storing the current power consumption data in a cache server based on the first preset rule to obtain the first service data comprises:
judging whether the current power utilization data is the same as the last power utilization data or not based on the first preset rule;
if the current power utilization data are different from the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data;
if the current electricity utilization data are the same as the last electricity utilization data, judging whether the entering time distance of the current electricity utilization data to the entering time of the last electricity utilization data exceeds a first time threshold value or not based on the second preset rule;
and if the entering time distance of the current power utilization data from the entering time of the last power utilization data exceeds a first time threshold, storing the current power utilization data into the cache server to obtain the first service data.
5. The air switch data management method according to claim 3, wherein the step of storing the current power consumption data into a first message queue based on the third preset rule to obtain the second service data comprises:
judging whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a second time threshold value or not based on the third preset rule;
and if the distance between the access time of the current power utilization data and the access time of the last power utilization data exceeds a second time threshold, storing the current power utilization data into the first message queue to obtain the second service data.
6. The air switch data management method according to claim 3, wherein the step of storing the current electricity consumption data into a second message queue based on the fourth preset rule to obtain the third service data comprises:
based on the fourth preset rule, if the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data does not exceed a second time threshold, judging whether the entering time distance of the current electricity utilization data from the entering time of the last electricity utilization data exceeds a third time threshold;
and if the distance between the access time of the current power utilization data and the access time of the last power utilization data exceeds a third time threshold, storing the current power utilization data into the second message queue to obtain third service data.
7. An air switch data management method according to claim 4, wherein the step of responding to a service request of a user based on the service data through a service system comprises at least one of:
calling the first service data through the service system to respond to a service request of the user for inquiring the latest state of equipment;
the second service data are taken out from the first message queue through the service system and stored in a time sequence database so as to respond to a service request for historical data tracing of the user;
and taking out the third service data from the second message queue through the service system, and pushing the third service data to a third-party service system.
8. An air switch data management apparatus, characterized in that the air switch data management apparatus comprises:
the acquisition module is used for acquiring initial power utilization data;
the processing module is used for processing the initial power utilization data and analyzing the format of the processed data to obtain the current power utilization data;
the storage module is used for processing and storing the current power utilization data in a distributed manner based on a preset rule to obtain corresponding service data;
and the service module is used for responding to the service request of the user based on the service data through the service system.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a null-on data management program stored on the memory and executable on the processor, the null-on data management program realizing the steps of the null-on data management method according to any one of claims 1-7 when executed by the processor.
10. A computer-readable storage medium, having stored thereon a null-on data management program which, when executed by a processor, implements the steps of the null-on data management method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211342191.0A CN115617912B (en) | 2022-10-31 | 2022-10-31 | Air interface data management method, device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211342191.0A CN115617912B (en) | 2022-10-31 | 2022-10-31 | Air interface data management method, device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115617912A true CN115617912A (en) | 2023-01-17 |
CN115617912B CN115617912B (en) | 2023-06-06 |
Family
ID=84876640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211342191.0A Active CN115617912B (en) | 2022-10-31 | 2022-10-31 | Air interface data management method, device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115617912B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105183371A (en) * | 2015-08-14 | 2015-12-23 | 山东大学 | Migration balancing policy based electricity-consuming information distributed file storage method and apparatus |
JP2016159790A (en) * | 2015-03-03 | 2016-09-05 | 三菱電機株式会社 | Regenerative electric power generation place monitoring device |
CN106326331A (en) * | 2016-06-29 | 2017-01-11 | 河南许继仪表有限公司 | Intelligent power utilization data service system based on cloud computation |
CN111245895A (en) * | 2019-12-29 | 2020-06-05 | 杭州拓深科技有限公司 | Intelligent Internet of things air switch data management method based on block chain |
CN111432295A (en) * | 2020-03-18 | 2020-07-17 | 北京科东电力控制系统有限责任公司 | Power consumption information acquisition master station system based on distributed technology |
CN112492024A (en) * | 2020-11-26 | 2021-03-12 | 国网湖南省电力有限公司 | Real-time data sharing system for user electricity utilization information acquisition system |
CN114089921A (en) * | 2021-11-26 | 2022-02-25 | 南方电网大数据服务有限公司 | Power system data storage method and device, computer equipment and storage medium |
-
2022
- 2022-10-31 CN CN202211342191.0A patent/CN115617912B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016159790A (en) * | 2015-03-03 | 2016-09-05 | 三菱電機株式会社 | Regenerative electric power generation place monitoring device |
CN105183371A (en) * | 2015-08-14 | 2015-12-23 | 山东大学 | Migration balancing policy based electricity-consuming information distributed file storage method and apparatus |
CN106326331A (en) * | 2016-06-29 | 2017-01-11 | 河南许继仪表有限公司 | Intelligent power utilization data service system based on cloud computation |
CN111245895A (en) * | 2019-12-29 | 2020-06-05 | 杭州拓深科技有限公司 | Intelligent Internet of things air switch data management method based on block chain |
CN111432295A (en) * | 2020-03-18 | 2020-07-17 | 北京科东电力控制系统有限责任公司 | Power consumption information acquisition master station system based on distributed technology |
CN112492024A (en) * | 2020-11-26 | 2021-03-12 | 国网湖南省电力有限公司 | Real-time data sharing system for user electricity utilization information acquisition system |
CN114089921A (en) * | 2021-11-26 | 2022-02-25 | 南方电网大数据服务有限公司 | Power system data storage method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115617912B (en) | 2023-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021169268A1 (en) | Data processing method, apparatus and device, and storage medium | |
CN100384161C (en) | Method and system for processing service behaviour abnormal | |
CN112732793A (en) | Service data processing method and device, storage medium and electronic device | |
CN111859127A (en) | Subscription method and device of consumption data and storage medium | |
CN112948223B (en) | Method and device for monitoring running condition | |
CN115629933A (en) | Business system monitoring method, device, equipment and storage medium | |
CN116662376A (en) | Data query method, device, electronic equipment and storage medium | |
CN113312553B (en) | User tag determining method and device | |
CN115001989A (en) | Equipment early warning method, device, equipment and readable storage medium | |
CN113765777A (en) | Equipment control method, message transfer method, equipment, readable medium and Internet of things | |
WO2024087995A1 (en) | Internet-of-things device linkage method and system, electronic device and readable storage medium | |
CN113780717A (en) | Method and device for analyzing electricity stealing and leakage behaviors based on gateway, intelligent gateway and medium | |
CN114786173B (en) | Broadband-based number-carrying network-switching identification method, device, equipment and storage medium | |
CN115617912A (en) | Air switch data management method and device, terminal device and storage medium | |
CN114510299A (en) | Method, device and storage medium for processing artificial intelligence service | |
CN111376255B (en) | Robot data acquisition method and device and terminal equipment | |
CN113761433B (en) | Service processing method and device | |
CN112788592B (en) | Data transmission processing method for adding wake-up time | |
CN114281817A (en) | Data cleaning method and device, computer equipment and storage medium | |
CN113779026A (en) | Method and device for processing service data table | |
CN103402214A (en) | Intelligent traffic monitoring method for mobile phone | |
CN114090397A (en) | Alarm information processing method and device | |
CN113971240A (en) | Internet of things fault early warning method and device and readable storage medium | |
CN117271610B (en) | Device state management method, device, terminal device and storage medium | |
CN110781370B (en) | Mobile terminal information query method and computer 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |