CN115617912B - Air interface data management method, device, terminal equipment and storage medium - Google Patents
Air interface data management method, device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN115617912B CN115617912B CN202211342191.0A CN202211342191A CN115617912B CN 115617912 B CN115617912 B CN 115617912B CN 202211342191 A CN202211342191 A CN 202211342191A CN 115617912 B CN115617912 B CN 115617912B
- Authority
- CN
- China
- Prior art keywords
- data
- power utilization
- service
- 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.)
- Active
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)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Power Sources (AREA)
Abstract
The invention discloses an air-open data management method, an air-open data management device, terminal equipment and a storage medium, wherein initial electricity utilization data are acquired; processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data; processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data; responding to a service request of a user based on the service data through a service system. The current electricity utilization data is processed based on the preset rule to obtain service data conforming to different services, so that the cost of data storage is reduced, and different requirements of users for inquiring the latest data and carrying out data tracing can be met.
Description
Technical Field
The present invention relates to the field of power management technologies, and in particular, to a method and apparatus for managing air interface data, a terminal device, and a storage medium.
Background
The air switch is opened immediately, and is also called an air circuit breaker, which belongs to a low-voltage circuit breaker, and when the current in the circuit generates overvoltage or undervoltage state, the power is automatically started to be cut off, so that the electric appliance in use is protected, and the damage of the electric appliance equipment is avoided. Along with the promotion of modern demand, traditional air switch function can't satisfy the demand to the electrical safety in daily life gradually, and intelligent air switch upgrades on traditional air switch distribution equipment, realizes distribution equipment's operation data processing through internet of things and intelligent air switch, manages air switch product equipment's data through wisdom with the level platform.
At present, data of the empty product equipment is usually directly stored, so that larger pressure is brought to a server, and a user cannot conveniently check the data, so that the electricity management effect is influenced.
Therefore, there is a need to propose a solution to improve the power management effect.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an air-interface data management method, an air-interface data management device, terminal equipment and a storage medium, which aim to improve the effect of power consumption management.
In order to achieve the above object, the present invention provides an air-open data management method, including:
acquiring initial electricity utilization data;
processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data;
processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data;
responding to a service request of a user based on the service data through a service system.
Optionally, the step of acquiring the initial electricity data includes:
and acquiring initial electricity utilization data uploaded by the air-on equipment at intervals of preset time, wherein the initial electricity utilization data comprises 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 includes first service data, second service data and/or third service data, and the step of processing and storing the current electricity utilization data in a distributed manner based on the preset rules to obtain corresponding service data includes at least one of the following steps:
based on the first preset rule and the second preset rule, storing the current power consumption data into a cache server to obtain the first service data;
based on the third preset rule, storing the current electricity utilization data into a first message queue to obtain the second service data;
and storing the current electricity utilization data into a second message queue based on the fourth preset rule to obtain the third service data.
Optionally, the step of storing the current electricity consumption data into 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 consumption data is different from the last power consumption data, storing the current power consumption data into the cache server to obtain the first service data;
if the current power utilization data is the same as the last power utilization data, judging whether the entering time of the current power utilization data is more than a first time threshold from the entering time of the last power utilization data based on the second preset rule;
and if the entering time of the current power utilization data exceeds a first time threshold from the entering time of the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data.
Optionally, the step of storing the current electricity consumption data into a first message queue based on the third preset rule to obtain the second service data includes:
based on the third preset rule, judging whether the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data;
if the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data, the current power utilization data is stored in the first message queue, and the second service data is obtained;
optionally, the step of storing the current electricity consumption data into a second message queue based on the fourth preset rule, and obtaining the third service data includes:
based on the fourth preset rule, if the entering time of the current power utilization data is not more than a second time threshold from the entering time of the last power utilization data, judging whether the entering time of the current power utilization data is more than a third time threshold from the entering time of the last power utilization data;
and if the entering time of the current power utilization data exceeds a third time threshold from the entering time of the last power utilization data, storing the current power utilization data into the second message queue to obtain the third service data.
Optionally, the step of responding to the service request of the user based on the service data by the service system includes at least one of:
invoking the first service data through the service system to respond to a service request of the latest state of the user query equipment;
the second service data is taken out from the first message queue through the service system, and the second service data is stored in a time sequence database to be used for responding to the service request of the user for historical data tracing;
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-open data management apparatus, including:
the acquisition module is used for acquiring initial electricity utilization data;
the processing module is used for processing the initial power utilization data and carrying out format analysis on the processed data to obtain current power utilization data;
the storage module is used for processing and storing the current power utilization data in a distributed mode 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, to achieve the above object, the present invention also provides a terminal device including a memory, a processor, and an idle data management program stored on the memory and executable on the processor, the idle data management program implementing the steps of the idle data management method as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a space-open data management program which, when executed by a processor, implements the steps of the space-open data management method as described above.
The embodiment of the invention provides a method, a device, terminal equipment and a storage medium for managing idle data, which are used for acquiring initial electricity utilization data; processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data; processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data; responding to a service request of a user based on the service data through a service system. The current electricity utilization data is processed based on the preset rule to obtain service data conforming to different services, so that the cost of data storage is reduced, and different requirements of users for inquiring the latest data and carrying out data tracing can be met.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which an air interface data management device of the present invention belongs;
FIG. 2 is a flowchart illustrating an exemplary embodiment of a method for managing unopened data according to the present invention;
FIG. 3 is a schematic diagram illustrating a specific flow of step S30 in the embodiment of FIG. 2;
fig. 4 is a schematic diagram of processing and distributed storing current electricity consumption data based on a preset rule in an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: acquiring initial electricity utilization data; processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data; processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data; responding to a service request of a user based on the service data through a service system. The current electricity utilization data is processed based on the preset rule to obtain service data conforming to different services, so that the cost of data storage is reduced, and different requirements of users for inquiring the latest data and carrying out data tracing can be met.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the air interface data management device of the present invention belongs. The air-interface data management device may be a device independent of the terminal device and capable of air-interface data management, and may be carried on the terminal device in a form of hardware or software. The terminal equipment 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 equipment or a server with a data processing function.
In this embodiment, the terminal device to which the air interface 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 an operating system and an idle data management program, and the idle data management device can store the acquired initial power consumption data, perform data processing on the initial power consumption data to obtain current power consumption data, and perform distributed storage on the current power consumption data based on a preset rule, so as to obtain corresponding information such as service data and the like 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 idle data management program in the memory 130 when executed by the processor performs the steps of:
acquiring initial electricity utilization data;
processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data;
processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data;
responding to a service request of a user based on the service data through a service system.
Further, the idle data management program in the memory 130, when executed by the processor, further performs the following steps:
acquiring initial electricity utilization data;
processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data;
processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data;
responding to a service request of a user based on the service data through a service system.
Further, the idle data management program in the memory 130, when executed by the processor, further performs the following steps:
and acquiring initial electricity utilization data uploaded by the air-on equipment at intervals of preset time, wherein the initial electricity utilization data comprises one or more of current, voltage, power, electric quantity, temperature, electric leakage and alarm states.
Further, the idle data management program in the memory 130, when executed by the processor, further performs the following steps:
based on the first preset rule and the second preset rule, storing the current power consumption data into a cache server to obtain the first service data;
based on the third preset rule, storing the current electricity utilization data into a first message queue to obtain the second service data;
and storing the current electricity utilization data into a second message queue based on the fourth preset rule to obtain the third service data.
Further, the idle data management program in the memory 130, when executed by the processor, further performs the following steps:
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 consumption data is different from the last power consumption data, storing the current power consumption data into the cache server to obtain the first service data;
if the current power utilization data is the same as the last power utilization data, judging whether the entering time of the current power utilization data is more than a first time threshold from the entering time of the last power utilization data based on the second preset rule;
and if the entering time of the current power utilization data exceeds a first time threshold from the entering time of the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data.
Further, the idle data management program in the memory 130, when executed by the processor, further performs the following steps:
based on the third preset rule, judging whether the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data;
if the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data, the current power utilization data is stored in the first message queue, and the second service data is obtained;
based on the fourth preset rule, if the entering time of the current power utilization data is not more than a second time threshold from the entering time of the last power utilization data, judging whether the entering time of the current power utilization data is more than a third time threshold from the entering time of the last power utilization data;
and if the entering time of the current power utilization data exceeds a third time threshold from the entering time of the last power utilization data, storing the current power utilization data into the second message queue to obtain the third service data.
Further, the idle data management program in the memory 130, when executed by the processor, further performs the following steps:
invoking the first service data through the service system to respond to a service request of the latest state of the user query equipment;
the second service data is taken out from the first message queue through the service system, and the second service data is stored in a time sequence database to be used for responding to the service request of the user for historical data tracing;
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 initial electricity utilization data are acquired; processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data; processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data; responding to a service request of a user based on the service data through a service system. The current electricity utilization data is processed based on the preset rule to obtain service data conforming to different services, so that the cost of data storage is reduced, and different requirements of users for inquiring the latest data and carrying out data tracing can be met.
The method embodiment of the invention is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
The execution subject of the method of this embodiment may be a space-time data management device or a terminal device, and this embodiment is exemplified by the space-time data management device.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of a method for managing unopened data according to the present invention. The air interface data management method comprises the following steps:
step S10, initial electricity utilization data are obtained;
in this application embodiment, through intelligent electricity consumption safety supervision and intelligent electric energy platform (intelligent platform for short), can supervise and record the electricity consumption data of sky-opening equipment, report the electricity consumption data of gathering once every a while by sky-opening equipment, specifically include:
and acquiring initial electricity utilization data uploaded by the air-on equipment at intervals of preset time, wherein the initial electricity utilization data comprises one or more of current, voltage, power, electric quantity, temperature, electric leakage and alarm states.
Specifically, initial electricity utilization data collected and reported by the idle equipment comprises current, voltage and power, electricity consumption, equipment temperature, electric leakage and alarm states, and based on the electricity utilization data, a user can know the latest state and the historical running state of the idle equipment, so that effective electricity management of the equipment is realized.
Step S20, processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data;
further, after the intelligent platform receives the initial power consumption data reported by the device, the initial power consumption data is in a binary format, so that the identification and reading are not easy, and format analysis is required, which specifically comprises the following steps:
and analyzing the initial electricity utilization data to obtain the current electricity utilization data meeting a preset format.
The platform can analyze the format of the received initial power utilization data through the central server, so that the format required by the platform, such as json format, is easy to identify and read, and further can process and store the current power utilization data in a distributed manner, so as to obtain service data capable of meeting different service requests of users.
Step S30, processing and distributing storage are carried out on the current electricity utilization data based on preset rules, and corresponding service data are obtained;
in the embodiment of the application, after the current electricity data is obtained through format analysis, the current electricity data and the last electricity data can be compared based on a preset rule, and it is to be noted that the last electricity data in the embodiment of the application refers to the last (received) electricity data of the corresponding equipment held by the platform, and if the current electricity data is different from the last electricity data according to the comparison result, that is, the current electricity data is immediately stored in the cache server if the current electricity data is changed, so that other service systems can immediately inquire the latest data; if the current power consumption data is the same as the last power consumption data, namely the current power consumption data is not changed, the time interval between the current power consumption data and the last power consumption data is continuously checked, and if the time between the current power consumption data and the last power consumption data exceeds a first time threshold, the current power consumption data is immediately stored in the 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, so that corresponding service data is obtained and used for responding to different service demands of users.
And step S40, responding to the service request of the user based on the service data through the service system.
Further, when the current electricity consumption data is processed and stored in a distributed manner based on a preset rule, and corresponding service data is obtained, different service requests of the user can be responded based on each service data through the service system, and the method specifically comprises the following steps:
invoking the first service data through the service system to respond to a service request of the latest state of the user query equipment;
the second service data is taken out from the first message queue through the service system, and the second service data is stored in a time sequence database to be used for responding to the service request of the user for historical data tracing;
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 the latest data stored in the cache server in real time, and the user can call the first service data through the service system, so that the waiting time caused by long data processing link is reduced in the call process, and the latest state data of the equipment is quickly queried.
Optionally, the second service data is the service data stored in the first message queue, the user can call the historical data of the device when needing to trace back, and the service system takes the historical data out of the first message queue and stores the historical data into a corresponding database, so that the storage problem caused by overlarge data volume reported by the device is avoided.
Optionally, the third service data is the service data stored in the second message queue, and the service system responsible for pushing can take the service data required by the user out of the second message queue, and then push and notify the service system of the third party, so that the frequency of pushing can be reduced, and the pressure of the client can be reduced.
In this embodiment, the initial electricity data is acquired; processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data; processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data; responding to a service request of a user based on the service data through a service system. The current electricity utilization data is processed based on the preset rule to obtain service data conforming to different services, so that the cost of data storage is reduced, and different requirements of users for inquiring the latest data and carrying out data tracing can be met.
Referring to fig. 3, fig. 3 is a specific flowchart of step S30 in the embodiment of fig. 2. The present embodiment is based on the embodiment shown in fig. 2, and in the present embodiment, the step S30 includes:
step S301, storing the current electricity consumption 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, based on a preset rule, comparing current electricity data with last electricity data, and according to a comparison result, if the current electricity data is different from the last electricity data, namely the current electricity data changes, immediately storing the current electricity data into a cache server, so that other service systems can immediately inquire the latest data; if the current power consumption data is the same as the last power consumption data, namely the current power consumption data is not changed, continuously checking the time interval of the current power consumption data and the last power consumption data, and if the time of the time interval exceeds a first time threshold, immediately storing the current power consumption data into a cache server, wherein the method specifically comprises the following steps:
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 consumption data is different from the last power consumption data, storing the current power consumption data into the cache server to obtain the first service data;
if the current power utilization data is the same as the last power utilization data, judging whether the entering time of the current power utilization data is more than a first time threshold from the entering time of the last power utilization data based on the second preset rule;
and if the entering time of the current power utilization data exceeds a first time threshold from the entering time of the last power utilization data, 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 of processing and storing current electricity data in a distributed manner based on a preset rule in the embodiment of the present invention, and as shown in fig. 4, based on a first preset rule, when it is determined that the current electricity data is changed compared with the previous electricity data, the current electricity data can be stored in a cache server, so that other service systems can immediately query the latest data, and the waiting time of a link due to data processing is reduced. When the current power consumption data and the last power consumption data are judged to be the same, further checking whether the interval between the entering time of the current power consumption data and the entering time of the last power consumption data exceeds 5 minutes, and if the interval between the current power consumption data and the entering time of the last power consumption data exceeds 5 minutes, storing the current power consumption data into a cache server. Other business systems can be made aware that even if the device data is unchanged, the data is still continuously uploaded in practice.
Step S302, based on the third preset rule, storing the current power consumption data into a first message queue to obtain the second service data;
in this embodiment of the present application, current electricity consumption data may be stored in a first message queue or a second message queue according to a preset rule, so as to obtain corresponding service data, where the corresponding service data is used to respond to different service requirements of a user, and specifically includes:
based on the third preset rule, judging whether the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data;
if the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data, the current power utilization data is stored in the first message queue, and the second service data is obtained;
step S303, storing the current electricity consumption data into a second message queue based on the fourth preset rule, so as to obtain the third service data.
Based on the fourth preset rule, if the entering time of the current power utilization data is not more than a second time threshold from the entering time of the last power utilization data, judging whether the entering time of the current power utilization data is more than a third time threshold from the entering time of the last power utilization data;
and if the entering time of the current power utilization data exceeds a third time threshold from the entering time of the last power utilization data, storing the current power utilization data into the second message queue to obtain the third service data.
Optionally, based on a third preset rule, whether the current electricity data is changed compared with the last electricity data or not, the current electricity data needs to be sampled and stored into the message queue 1 every 10 minutes, that is, if the entering time interval of the current electricity data and the last electricity data exceeds 10 minutes, the current electricity data is stored into the message queue 1, and other service systems can take the current electricity data out of the message queue 1 and store the current electricity data into a database, so that the problem of huge data volume reported by equipment can be solved, and the data collection volume can be reduced, thereby reducing the cost of data storage.
Optionally, based on a fourth preset rule, whether the current electricity data is changed compared with the last electricity data or not, the current electricity data needs to be sampled and stored into the message queue 2 every 5 minutes, that is, if it is determined that the time interval between the current electricity data and the last electricity data does not exceed 10 minutes, whether the time interval between the current electricity data and the last electricity data exceeds 5 minutes is further determined, if the time interval between the current electricity data and the last electricity data exceeds 5 minutes, the current electricity data is stored into the message queue 2, and a service system responsible for pushing can take the current electricity data out of the message queue 2 and then push the current electricity data to a service system of a third party. Therefore, the problem of huge data volume reported by the equipment can be solved, and the pushing frequency for a third party service system is reduced by reducing the collection volume, so that the pressure of the other party is reduced.
It should be noted that, after each service data is stored in a distributed manner in the embodiment of the present application, when the service system calls the service data, the service data may be further processed, for example, a graph such as a graph or a histogram is drawn according to the service data, so that a user can more intuitively view the service data, thereby improving user experience.
According to the scheme, the current power consumption data is stored in a cache server based on the first preset rule and the second preset rule, so that the first service data is obtained; based on the third preset rule, storing the current electricity utilization data into a first message queue to obtain the second service data; and storing the current electricity utilization data into a second message queue based on the fourth preset rule to obtain the third service data. The current power utilization data is processed and stored in a distributed mode according to the preset rules, corresponding service data can be obtained, the cost of data storage is reduced, and different requirements of users for inquiring the latest data and carrying out data tracing can be met.
In addition, the embodiment of the invention also provides an air-open data management device, which comprises:
the acquisition module is used for acquiring initial electricity utilization data;
the processing module is used for processing the initial power utilization data and carrying out format analysis on the processed data to obtain current power utilization data;
the storage module is used for processing and storing the current power utilization data in a distributed mode 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.
The principle and implementation process of the air interface data management are implemented in this embodiment, please refer to the above embodiments, and no further description is given here.
In addition, the embodiment of the invention also provides a terminal device, which comprises a memory, a processor and an idle data management program stored on the memory and capable of running on the processor, wherein the idle data management program realizes the steps of the idle data management method when being executed by the processor.
Because all the technical solutions of all the embodiments are adopted when the idle data management program is executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments are provided, and the detailed description is omitted.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a space-open data management program, and the space-open data management program realizes the steps of the space-open data management method when being executed by a processor.
Because all the technical solutions of all the embodiments are adopted when the idle data management program is executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments are provided, and the detailed description is omitted.
Compared with the prior art, the air-open data management method, the device, the terminal equipment and the storage medium provided by the embodiment of the invention acquire initial power consumption data; processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data; processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data; responding to a service request of a user based on the service data through a service system. The current electricity utilization data is processed based on the preset rule to obtain service data conforming to different services, so that the cost of data storage is reduced, and different requirements of users for inquiring the latest data and carrying out data tracing 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 phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (6)
1. An air-open data management method, characterized in that the air-open data management method comprises the following steps:
acquiring initial electricity utilization data;
processing the initial power utilization data, and carrying out format analysis on the processed data to obtain current power utilization data;
processing and distributing storage are carried out on the current power utilization data based on a preset rule to obtain corresponding service data;
responding to a service request of a user based on the service data through a service system;
the preset rules comprise a first preset rule, a second preset rule, a third preset rule and/or a fourth preset rule, the service data comprise first service data, second service data and/or third service data, the current power utilization data are processed and stored in a distributed mode based on the preset rules, and the step of obtaining corresponding service data comprises at least one of the following steps:
based on the first preset rule and the second preset rule, storing the current power consumption data into a cache server to obtain the first service data;
based on the third preset rule, storing the current electricity utilization data into a first message queue to obtain the second service data;
based on the fourth preset rule, storing the current electricity utilization data into a second message queue to obtain the third service data;
the step of storing the current electricity consumption data into a cache server based on the first preset rule to obtain the first service data comprises the following steps:
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 consumption data is different from the last power consumption data, storing the current power consumption data into the cache server to obtain the first service data;
if the current power utilization data is the same as the last power utilization data, judging whether the entering time of the current power utilization data is more than a first time threshold from the entering time of the last power utilization data based on the second preset rule;
if the entering time of the current power utilization data exceeds a first time threshold from the entering time of the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data;
the step of storing the current electricity consumption data into a first message queue based on the third preset rule to obtain the second service data comprises the following steps:
based on the third preset rule, judging whether the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data;
if the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data, the current power utilization data is stored in the first message queue, and the second service data is obtained;
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 the following steps:
based on the fourth preset rule, if the entering time of the current power utilization data is not more than a second time threshold from the entering time of the last power utilization data, judging whether the entering time of the current power utilization data is more than a third time threshold from the entering time of the last power utilization data;
and if the entering time of the current power utilization data exceeds a third time threshold from the entering time of the last power utilization data, storing the current power utilization data into the second message queue to obtain the third service data.
2. The air-time data management method according to claim 1, wherein the step of acquiring initial electricity data comprises:
and acquiring initial electricity utilization data uploaded by the air-on equipment at intervals of preset time, wherein the initial electricity utilization data comprises one or more of current, voltage, power, electric quantity, temperature, electric leakage and alarm states.
3. The air-time data management method of claim 1, wherein the responding to the service request of the user based on the service data through the service system comprises at least one of:
invoking the first service data through the service system to respond to a service request of the latest state of the user query equipment;
the second service data is taken out from the first message queue through the service system, and the second service data is stored in a time sequence database to be used for responding to the service request of the user for historical data tracing;
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.
4. An air-open data management apparatus, characterized in that the air-open data management apparatus comprises:
the acquisition module is used for acquiring initial electricity utilization data;
the processing module is used for processing the initial power utilization data and carrying out format analysis on the processed data to obtain current power utilization data;
the storage module is used for processing and storing the current power utilization data in a distributed mode based on a preset rule to obtain corresponding service data;
the service module is used for responding to the service request of the user based on the service data through the service system;
the preset rules comprise a first preset rule, a second preset rule, a third preset rule and/or a fourth preset rule, the service data comprise first service data, second service data and/or third service data, and the storage module is further used for:
based on the first preset rule and the second preset rule, storing the current power consumption data into a cache server to obtain the first service data;
based on the third preset rule, storing the current electricity utilization data into a first message queue to obtain the second service data;
based on the fourth preset rule, storing the current electricity utilization data into a second message queue to obtain the third service data;
the storage module is further configured to:
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 consumption data is different from the last power consumption data, storing the current power consumption data into the cache server to obtain the first service data;
if the current power utilization data is the same as the last power utilization data, judging whether the entering time of the current power utilization data is more than a first time threshold from the entering time of the last power utilization data based on the second preset rule;
if the entering time of the current power utilization data exceeds a first time threshold from the entering time of the last power utilization data, storing the current power utilization data into the cache server to obtain the first service data;
the storage module is further configured to:
based on the third preset rule, judging whether the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data;
if the entering time of the current power utilization data exceeds a second time threshold from the entering time of the last power utilization data, the current power utilization data is stored in the first message queue, and the second service data is obtained;
the storage module is further configured to:
based on the fourth preset rule, if the entering time of the current power utilization data is not more than a second time threshold from the entering time of the last power utilization data, judging whether the entering time of the current power utilization data is more than a third time threshold from the entering time of the last power utilization data;
and if the entering time of the current power utilization data exceeds a third time threshold from the entering time of the last power utilization data, storing the current power utilization data into the second message queue to obtain the third service data.
5. A terminal device comprising a memory, a processor and a space-time data management program stored on the memory and executable on the processor, the space-time data management program when executed by the processor implementing the steps of the space-time data management method according to any of claims 1-3.
6. A computer readable storage medium, wherein a space-time data management program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the space-time data management method according to any one of claims 1-3.
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 CN115617912A (en) | 2023-01-17 |
CN115617912B true 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 (2)
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 |
CN114089921A (en) * | 2021-11-26 | 2022-02-25 | 南方电网大数据服务有限公司 | Power system data storage method and device, computer equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN112492024B (en) * | 2020-11-26 | 2022-04-29 | 国网湖南省电力有限公司 | Real-time data sharing system for user electricity utilization information acquisition system |
-
2022
- 2022-10-31 CN CN202211342191.0A patent/CN115617912B/en active Active
Patent Citations (2)
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 |
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 |
---|---|
CN115617912A (en) | 2023-01-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021169268A1 (en) | Data processing method, apparatus and device, and storage medium | |
CN109669835B (en) | MySQL database monitoring method, device, equipment and readable storage medium | |
CN112311617A (en) | Configured data monitoring and alarming method and system | |
CN104021141B (en) | Method, device and system for data processing and cloud service | |
CN111049673A (en) | Method and system for counting and monitoring API call in service gateway | |
CN101951623B (en) | User behavior statistical method and device based on user events | |
CN112396432B (en) | Interview task generation system, interview task generation method, interview task generation equipment and interview task generation medium | |
CN115617912B (en) | Air interface data management method, device, terminal equipment and storage medium | |
CN115001989A (en) | Equipment early warning method, device, equipment and readable storage medium | |
CN213876703U (en) | Resource pool management system | |
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 | |
CN113065054A (en) | Request processing method and device, electronic equipment and storage medium | |
CN114745275A (en) | Node updating method and device in cloud service environment and computer equipment | |
CN114786173B (en) | Broadband-based number-carrying network-switching identification method, device, equipment and storage medium | |
CN115065587B (en) | Active power failure early warning method and device | |
CN115455077A (en) | Sectional type data statistical method, statistical device and electronic device | |
CN113971240A (en) | Internet of things fault early warning method and device and readable storage medium | |
CN114553944A (en) | Early warning message pushing method and system | |
CN101964993A (en) | Method and system for implementing user early warning | |
CN109508356B (en) | Data abnormality early warning method, device, computer equipment and storage medium | |
CN113411828A (en) | Method, device and equipment for sensing call quality and computer readable storage medium | |
CN117271610B (en) | Device state management method, device, terminal device and storage medium | |
CN111049893B (en) | Method and system for regularly capturing screen of virtual equipment | |
CN117097635B (en) | Method, device, storage medium and equipment for calling link sampling |
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 |