CN113326236A - Limited space storage method based on intelligent power terminal - Google Patents

Limited space storage method based on intelligent power terminal Download PDF

Info

Publication number
CN113326236A
CN113326236A CN202110437608.0A CN202110437608A CN113326236A CN 113326236 A CN113326236 A CN 113326236A CN 202110437608 A CN202110437608 A CN 202110437608A CN 113326236 A CN113326236 A CN 113326236A
Authority
CN
China
Prior art keywords
space
intelligent power
power terminal
storage space
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110437608.0A
Other languages
Chinese (zh)
Inventor
张聪聪
苟孟生
邬科科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Sanxing Electric Co Ltd
Original Assignee
Ningbo Sanxing Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Electric Co Ltd filed Critical Ningbo Sanxing Electric Co Ltd
Priority to CN202110437608.0A priority Critical patent/CN113326236A/en
Publication of CN113326236A publication Critical patent/CN113326236A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1727Details of free space management performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention relates to a limited space storage method based on an intelligent power terminal, which comprises the steps of S1, judging whether the residual storage space of the intelligent power terminal meets the newly increased requirement, if so, executing S3, otherwise, executing S2; s2, adjusting corresponding parameter information in the newly added requirement to obtain the storage space to be occupied by the adjusted newly added requirement, and performing corresponding operation; and S3, allocating the residual storage space to meet the new requirement. The invention ensures the multifunction of the intelligent power terminal, improves the space utilization rate of the intelligent power terminal, and has convenient operation and strong applicability.

Description

Limited space storage method based on intelligent power terminal
Technical Field
The invention relates to the technical field of intelligent power terminals, in particular to a limited space storage method based on an intelligent power terminal.
Background
The intelligent power terminal is more and more extensive in industrial and agricultural production life, and along with the increase of demand, people are more and more to intelligent power terminal's functional requirement, and this has provided higher requirement to the storage space at terminal, and old generation intelligent power terminal's storage mode can't satisfy multi-functional demand.
Because the file storage size in the current intelligent power terminal is fixedly distributed by the type of the external meters, although the total number of the external meters is determined, the configuration of each station area is different, and in order to ensure normal storage, the maximum space can only be opened up for each requirement, namely the maximum space is equal to the total number of the electric meters.
However, not every demand will use up the maximum space, which results in not only waste of space but also insufficient demand due to too much consumption of the whole storage and no extra space allocated to new functional demand.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a limited space storage method based on an intelligent power terminal, which can adjust a limited storage space of a system according to a demand, improve a space utilization rate, and satisfy a multifunctional demand.
In order to achieve the purpose, the invention adopts the technical scheme that: a limited space storage method based on an intelligent power terminal is characterized in that: the method comprises the following steps of,
s1, judging whether the residual storage space of the intelligent power terminal meets the newly added requirement, if so, executing S3, otherwise, executing S2;
s2, adjusting corresponding parameter information in the newly added requirement to obtain the storage space to be occupied by the adjusted newly added requirement, and performing corresponding operation;
and S3, allocating the residual storage space to meet the new requirement.
Further, the performing the corresponding operation in S2 specifically includes,
s21, adding 1 to the execution times i, and judging whether i is larger than n, wherein the initial value of i is 0, if so, executing S22, otherwise, executing S23, and n is a natural number larger than 1;
s22, judging whether the adjusted newly-added required occupied storage space is smaller than the rest storage space, if so, executing S24, otherwise, performing related operations;
s23, judging whether the storage space to be occupied by the newly increased requirement after adjustment is smaller than the rest storage space, if so, executing S24, and if not, continuing executing S2;
and S24, allocating the residual storage space to meet the adjusted new requirement.
Further, the performing the correlation operation in S22 specifically includes,
and S4, reducing the original occupied space of the intelligent power terminal by adopting a file merging mode, obtaining a new residual storage space, and performing subsequent operation.
Further, the files that can be merged in S4 are files with similar characteristic attributes.
Further, the file with the similar characteristic attribute is obtained by searching a file with the similar characteristic attribute of the newly added requirement in the intelligent power terminal.
Further, the S4 specifically includes,
s41, finding out the newly added requirement and the object with the largest maximum occupied space amount in the similar files, if the object with the largest maximum occupied space amount is from the similar files, executing S42, otherwise, executing S43;
s42, recording subsequent data to be written in the other similar files into the file with the largest maximum occupied space amount, removing original data in the other similar files to obtain new residual storage space, and distributing the new residual storage space to meet the new requirement;
and S43, removing the original data in all the similar files to obtain a new residual storage space, and performing corresponding operation.
Further, the performing the corresponding operation in S43 specifically includes,
s431, comparing the new residual storage space with the storage space to be occupied by the original newly-increased requirement, if the former is larger than the latter, executing S432, otherwise, continuously executing S2 on the basis of the mode, and when i is larger than n and the adjusted space to be occupied by the newly-increased requirement is larger than the new residual storage space, giving a terminal alarm;
and S432, allocating new residual storage space to meet the original newly increased requirement.
Further, the value of n is 10.
Further, in S2, parameter information is adjusted according to the feature attribute of the new demand, where the parameter information includes the number of days to record and the number of points to record.
Further, the adjustment in S2 includes decreasing the number of days recorded in the new demand and/or decreasing the number of points recorded.
Compared with the prior art, the invention has the advantages that: the space to be occupied by the newly increased demand is compared with the terminal residual storage space, and corresponding operation is performed under different comparison results, so that the multifunctional demand of the intelligent power terminal is well realized, meanwhile, the storage utilization of the limited space of the intelligent power terminal is considered, the applicability of the intelligent power terminal is improved, and the method is efficient, simple and convenient, easy to operate, strong in reproducibility and good in universality.
Drawings
Fig. 1 is a flow chart corresponding to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
As shown in fig. 1, the limited space storage method based on the intelligent power terminal of the present application includes,
s1, judging whether the residual storage space of the intelligent power terminal meets the newly added requirement, if so, executing S3, otherwise, executing S2;
s2, adjusting corresponding parameter information in the newly added requirement to obtain the storage space to be occupied by the adjusted newly added requirement, and performing corresponding operation;
and S3, allocating the residual storage space to meet the new requirement.
Wherein, the corresponding operation in step S2 specifically includes,
s21, adding 1 to the execution times i, and judging whether i is larger than n, wherein the initial value of i is 0, if so, executing S22, otherwise, executing S23, and n is a natural number larger than 1;
s22, judging whether the adjusted newly-increased storage space required to be occupied is smaller than the rest storage space, if so, executing S24, otherwise, performing related operations, namely reducing the original occupied space of the intelligent power terminal by adopting a file merging mode to obtain a new rest storage space, and performing subsequent operations, wherein the subsequent operations are defined as S4 and will be explained below;
s23, judging whether the storage space to be occupied by the newly increased requirement after adjustment is smaller than the rest storage space, if so, executing S24, and if not, continuing executing S2;
and S24, allocating the residual storage space to meet the adjusted new requirement.
For convenience of description, in this embodiment, the value of n is 10, but may be other data, which is determined according to actual needs.
In S4, combinable files are obtained by searching for files in the intelligent power terminal that are similar to the feature attributes of the new demand. And the specific process of S4 is,
s41, finding out the newly added requirement and the object with the largest maximum occupied space amount in the similar files, if the object with the largest maximum occupied space amount is from the similar files, executing S42, otherwise, executing S43;
s42, recording subsequent data to be written in the other similar files into the file with the largest maximum occupied space amount, removing original data in the other similar files to obtain new residual storage space, and distributing the new residual storage space to meet the new requirement;
and S43, removing the original data in all the similar files to obtain a new residual storage space, and performing corresponding operation.
In this embodiment, the corresponding operation in step S43 specifically includes,
s431, comparing the new residual storage space with the storage space to be occupied by the original newly-increased requirement, if the former is larger than the latter, executing S432, otherwise, continuously executing S2 on the basis of the mode, and when i is larger than n and the adjusted space to be occupied by the newly-increased requirement is larger than the new residual storage space, giving a terminal alarm;
and S432, distributing the obtained new residual storage space to meet the original newly increased requirement.
Since most of the data recorded in the intelligent power terminal is statistical data characterized by days or points, in this embodiment, the parameter information in S2 is adjusted according to the characteristic attribute of the new demand, and the parameter information includes the number of days recorded and the number of points recorded.
Obviously, since the present application is an improvement to the case where the space to be occupied by the new demand is large, the adjustment in S2 mainly includes reducing the number of days recorded in the new demand and/or reducing the number of points recorded. Of course, if the amount of one-time reduction is too much, so that the available space in the intelligent power terminal is not fully utilized, the adjustment can be performed on the basis, and how to perform the adjustment is determined according to actual needs, and the adjustment is more continuously attempted by a software algorithm.
According to the method, the space to be occupied by the newly-added demand is compared with the terminal residual storage space, and corresponding operation is performed under different comparison results, so that the multifunctional demand of the intelligent power terminal is well realized, meanwhile, the storage and utilization of the limited space of the intelligent power terminal are considered, the applicability of the intelligent power terminal is improved, and the method is efficient, simple, convenient, easy to operate, strong in reproducibility and good in universality.
While embodiments of the invention have been shown and described, it will be understood by those skilled in the art that: many changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention.

Claims (10)

1. A limited space storage method based on an intelligent power terminal is characterized in that: the method comprises the following steps of,
s1, judging whether the residual storage space of the intelligent power terminal meets the newly added requirement, if so, executing S3, otherwise, executing S2;
s2, adjusting corresponding parameter information in the newly added requirement to obtain the storage space to be occupied by the adjusted newly added requirement, and performing corresponding operation;
and S3, allocating the residual storage space to meet the new requirement.
2. The limited space storage method based on the intelligent power terminal according to claim 1, characterized in that: the performing of the corresponding operation in S2 specifically includes,
s21, adding 1 to the execution times i, and judging whether i is larger than n, wherein the initial value of i is 0, if so, executing S22, otherwise, executing S23, and n is a natural number larger than 1;
s22, judging whether the adjusted newly-added required occupied storage space is smaller than the rest storage space, if so, executing S24, otherwise, performing related operations;
s23, judging whether the storage space to be occupied by the newly increased requirement after adjustment is smaller than the rest storage space, if so, executing S24, and if not, continuing executing S2;
and S24, allocating the residual storage space to meet the adjusted new requirement.
3. The limited space storage method based on the intelligent power terminal as claimed in claim 2, wherein: the performing the relevant operation in S22 specifically includes,
and S4, reducing the original occupied space of the intelligent power terminal by adopting a file merging mode, obtaining a new residual storage space, and performing subsequent operation.
4. The limited space storage method based on the intelligent power terminal according to claim 3, wherein: the files that can be merged in S4 are files with similar characteristic attributes.
5. The limited space storage method based on the intelligent power terminal according to claim 4, wherein:
the file with the similar characteristic attribute is obtained by searching a file with the similar characteristic attribute of the newly added requirement in the intelligent power terminal.
6. The limited space storage method based on the intelligent power terminal according to claim 5, wherein: the S4 may specifically include the following steps,
s41, finding out the newly added requirement and the object with the largest maximum occupied space amount in the similar files, if the object with the largest maximum occupied space amount is from the similar files, executing S42, otherwise, executing S43;
s42, recording subsequent data to be written in the other similar files into the file with the largest maximum occupied space amount, removing original data in the other similar files to obtain new residual storage space, and distributing the new residual storage space to meet the new requirement;
and S43, removing the original data in all the similar files to obtain a new residual storage space, and performing corresponding operation.
7. The limited space storage method based on the intelligent power terminal as claimed in claim 6, wherein: the performing of the corresponding operation in S43 specifically includes,
s431, comparing the new residual storage space with the storage space to be occupied by the original newly-increased requirement, if the former is larger than the latter, executing S432, otherwise, continuously executing S2 on the basis of the mode, and when i is larger than n and the adjusted space to be occupied by the newly-increased requirement is larger than the new residual storage space, giving a terminal alarm;
and S432, allocating new residual storage space to meet the original newly increased requirement.
8. The limited space storage method based on the intelligent power terminal as claimed in claim 2, wherein:
the value of n is 10.
9. The limited space storage method based on the intelligent power terminal according to claim 1, characterized in that:
in S2, parameter information is adjusted according to the feature attribute of the new demand, where the parameter information includes the number of days recorded and the number of points recorded.
10. The limited space storage method based on the intelligent power terminal according to claim 9, wherein:
the adjustment in S2 includes reducing the number of days recorded in the new demand and/or reducing the number of points recorded.
CN202110437608.0A 2021-04-22 2021-04-22 Limited space storage method based on intelligent power terminal Pending CN113326236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110437608.0A CN113326236A (en) 2021-04-22 2021-04-22 Limited space storage method based on intelligent power terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110437608.0A CN113326236A (en) 2021-04-22 2021-04-22 Limited space storage method based on intelligent power terminal

Publications (1)

Publication Number Publication Date
CN113326236A true CN113326236A (en) 2021-08-31

Family

ID=77415023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110437608.0A Pending CN113326236A (en) 2021-04-22 2021-04-22 Limited space storage method based on intelligent power terminal

Country Status (1)

Country Link
CN (1) CN113326236A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020045198A (en) * 2000-12-08 2002-06-19 장근호 Electric Data Recorder Control
CN104506572A (en) * 2014-11-27 2015-04-08 惠州Tcl移动通信有限公司 Synchronizing method and smart terminal
CN106569748A (en) * 2016-10-27 2017-04-19 南方电网科学研究院有限责任公司 Data processing method and device for Flash file system
CN106802773A (en) * 2017-01-13 2017-06-06 刘超 The management method and mobile terminal of a kind of memory space
CN110069215A (en) * 2019-03-27 2019-07-30 浙江宇视科技有限公司 A kind of method and device of the dynamic adjustment storage unit based on block storage
CN110300134A (en) * 2018-03-22 2019-10-01 杭州海康威视系统技术有限公司 Memory space method of adjustment, device and the cloud storage system of cloud storage resource pool
CN112559462A (en) * 2020-12-14 2021-03-26 深圳供电局有限公司 Data compression method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020045198A (en) * 2000-12-08 2002-06-19 장근호 Electric Data Recorder Control
CN104506572A (en) * 2014-11-27 2015-04-08 惠州Tcl移动通信有限公司 Synchronizing method and smart terminal
CN106569748A (en) * 2016-10-27 2017-04-19 南方电网科学研究院有限责任公司 Data processing method and device for Flash file system
CN106802773A (en) * 2017-01-13 2017-06-06 刘超 The management method and mobile terminal of a kind of memory space
CN110300134A (en) * 2018-03-22 2019-10-01 杭州海康威视系统技术有限公司 Memory space method of adjustment, device and the cloud storage system of cloud storage resource pool
CN110069215A (en) * 2019-03-27 2019-07-30 浙江宇视科技有限公司 A kind of method and device of the dynamic adjustment storage unit based on block storage
CN112559462A (en) * 2020-12-14 2021-03-26 深圳供电局有限公司 Data compression method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106445738B (en) Database backup method and device
CN107578288B (en) Non-invasive load decomposition method considering user power consumption mode difference
KR102046728B1 (en) Method and device for identifying time information from voice information
CN105989076A (en) Data statistical method and device
CN106777387B (en) HBase-based Internet of things big data access method
CN106302930A (en) The control method of a kind of volume and adjusting means
CN103020175A (en) Method and device for acquiring aggregated data
WO2023179226A1 (en) Method and apparatus for voice control of air conditioner, and air conditioner and storage medium
CN113326236A (en) Limited space storage method based on intelligent power terminal
CN111008181A (en) Method, system, terminal and storage medium for switching storage strategies of distributed file system
CN102231676A (en) Network management data collecting method and device
CN109819013A (en) A kind of block chain memory capacity optimization method based on cloud storage
CN113690949A (en) Control mode switching method and device for energy storage system of new energy station
CN112181302A (en) Data multilevel storage and access method and system
CN115130842B (en) Wind-solar-fire integrated base configuration method and device
CN114020208B (en) Data garbage collection method, device, computer equipment and storage medium
CN105262649A (en) Self-adaptive data connection method and device
CN107589886A (en) The display control method and device of a kind of icon, terminal and readable storage medium storing program for executing
CN102117274A (en) Patent retrieval method and system
CN112905684A (en) Electric power data storage method and device and computer readable storage medium
CN104037771B (en) Network load decline method of adjustment and system
CN105446774B (en) A kind of plug-in unit processing method and user terminal
CN111930690A (en) File generation method and device
CN1252676C (en) Data reproducer
CN112269903B (en) Data processing method, data processing apparatus, and readable storage medium

Legal Events

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

Application publication date: 20210831

RJ01 Rejection of invention patent application after publication