CN113110958A - Intelligent power terminal based system file verification method - Google Patents

Intelligent power terminal based system file verification method Download PDF

Info

Publication number
CN113110958A
CN113110958A CN202110339540.2A CN202110339540A CN113110958A CN 113110958 A CN113110958 A CN 113110958A CN 202110339540 A CN202110339540 A CN 202110339540A CN 113110958 A CN113110958 A CN 113110958A
Authority
CN
China
Prior art keywords
file
power terminal
intelligent power
size
file verification
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
CN202110339540.2A
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 CN202110339540.2A priority Critical patent/CN113110958A/en
Publication of CN113110958A publication Critical patent/CN113110958A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a file checking method based on an intelligent power terminal system, which comprises the following steps: s1, powering on the intelligent power terminal to enable the intelligent power terminal to operate normally; s2, the intelligent power terminal meets any one of the following conditions and performs file verification; the first condition is that: setting appointed time, and when the time on the intelligent power terminal reaches the appointed time, carrying out file verification; the second condition is that: changing parameters set in the intelligent power terminal, and checking files; a third condition: the method comprises the following steps that when the intelligent power terminal is reset or powered off, file verification is carried out; according to the file verification method based on the intelligent power terminal system, provided by the invention, the file self-verification can be carried out and the processing can be immediately carried out after the intelligent power terminal system reaches the designated time or when a problem occurs; and a power company does not need to send professionals to maintain on site continuously, so that the cost is reduced.

Description

Intelligent power terminal based system file verification method
Technical Field
The invention relates to the field of electronic computers, in particular to a file verification method based on an intelligent power terminal system.
Background
With the wide application of the intelligent power terminal, the power company not only has a strong requirement on the terminal acquisition rate, but also has higher requirements on the integrity and the accuracy of data. In the prior art, the solution can only be that after a data problem occurs, the storage file is manually searched and processed, and the scheme has the defects: firstly, after a problem occurs, the problem is processed, so that the field use of a client is influenced; secondly, the site maintenance is required continuously, and the cost are increased; thirdly, the terminal itself lacks a self-processing mechanism and does not meet the requirements of the intelligent terminal. Based on the above three problems, it is necessary to develop a method for self-checking system files.
Disclosure of Invention
The invention aims to solve the technical problem of providing a file verification method based on an intelligent power terminal system for self file verification and processing aiming at the technical current situation.
The technical scheme adopted by the invention for solving the technical problems is as follows: a file checking method based on an intelligent power terminal system is characterized by comprising the following steps: the method comprises the following steps:
s1, powering on the intelligent power terminal to enable the intelligent power terminal to operate normally;
s2, the intelligent power terminal meets any one of the following conditions and performs file verification;
the first condition is that: setting appointed time, and when the time on the intelligent power terminal reaches the appointed time, carrying out file verification;
the second condition is that: changing parameters set in the intelligent power terminal, and checking files;
a third condition: and the intelligent power terminal performs file verification when the intelligent power terminal is automatically reset or is powered off.
Preferably, the first condition includes the following steps:
s211, judging whether the operation of the intelligent power terminal reaches the specified date, if so, entering a step S212, and if not, operating normally;
s212, judging whether the intelligent power terminal runs for the designated time, if so, carrying out file verification, and if not, normally running.
Preferably, the second condition includes the following determination step:
s221, judging whether the intelligent power terminal sets parameters or not, if so, entering a step S222, and if not, normally operating;
s222, judging whether the parameters of the intelligent power terminal are changed or not, if so, carrying out file verification, and if not, normally operating.
Preferably, in the third condition, the self-resetting mechanism includes the steps of:
s231, judging whether the running time of the intelligent power terminal reaches the set running time, if so, entering a step S232, and if not, normally running;
s232, judging whether the intelligent power terminal is in a reset time period, if so, entering a step S233, and if not, operating normally;
s233, resetting and shutting down the intelligent power terminal;
and S234, restarting the intelligent power terminal.
Preferably, in the third condition, the power-off mechanism means that the file verification is performed each time the intelligent power terminal is powered on again and restarted after power failure.
Preferably, the file verification comprises the following steps:
s10, opening any stored file by the intelligent power terminal;
s11, acquiring the size of the current file opened in the step S10;
s12, comparing the size of the current file with the set value of the size of the current file, judging whether the size is equal, if so, repeating the step S10 until all the stored files are verified, if not, creating a new file in the storage space of the current file to cover the original file, wherein the size of the new file is the same as that of the original file, and repeating the step S10 until all the stored files are verified.
In order to make the file verification process proceed smoothly, in step S10, if the current file has an error, a new file is created in the storage space of the current file to overwrite the original file, and the size of the new file is preferably the same as that of the original file.
Preferably, in the file verification S11, if the file size is not obtained, a new file is created in the storage space of the current file to overwrite the original file, and the new file size is the same as the original file size.
Preferably, the intelligent power terminal is provided with a corresponding file size parameter for each file, and the set value is the preset file size parameter.
Preferably, in each step, when a new file is created, the file data is randomly written data.
Compared with the prior art, the invention has the advantages that: according to the file verification method based on the intelligent power terminal system, provided by the invention, the file self-verification can be carried out and the processing can be immediately carried out after the intelligent power terminal system reaches the designated time or when a problem occurs; and a power company does not need to send professionals to maintain on site continuously, so that the cost is reduced.
Drawings
Fig. 1 is an overall flowchart of an intelligent power terminal file verification method according to an embodiment of the present invention;
fig. 2 is a flowchart of an embodiment of the present invention, illustrating a first condition of a file verification method for an intelligent power terminal;
fig. 3 is a flowchart of an embodiment of the present invention, illustrating a second condition of a file verification method for an intelligent power terminal;
fig. 4 is a flowchart of a method for verifying a file of an intelligent power terminal according to an embodiment of the present invention;
fig. 5 is an overall flowchart of a file verification method according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the accompanying examples.
Referring to fig. 1, a file verification method based on an intelligent power terminal system includes the following steps:
s1, powering on the intelligent power terminal to enable the intelligent power terminal to operate normally;
s2, the intelligent power terminal meets any one of the following conditions and performs file verification;
the first condition is that: setting appointed time, when the time on the intelligent power terminal reaches the appointed time, carrying out file verification:
referring to fig. 2, in the present embodiment, the following steps are included:
s211, judging whether the operation of the intelligent power terminal reaches the specified date, if so, entering a step S212, and if not, operating normally;
s212, judging whether the intelligent power terminal runs for a specified time, if so, carrying out file verification, and if not, normally running;
the second condition is that: the parameters set in the intelligent power terminal are changed, and file verification is carried out:
referring to fig. 3, in the present embodiment, the following steps are included:
s221, judging whether the intelligent power terminal is provided with parameters or not, if so, entering a step S222, and if not, operating normally; the parameters can be any parameters set in the intelligent power terminal, such as the specified date and time, the file size set value, the self-reset time, or the acquisition frequency related to the acquired data;
s222, judging whether parameters of the intelligent power terminal are changed or not, if so, carrying out file verification, and if not, normally operating;
a third condition: when the intelligent power terminal is automatically reset or stops being powered on, file verification is carried out:
referring to fig. 4, the self-reset mechanism includes the following steps:
s231, judging whether the running time of the intelligent power terminal reaches the set running time, such as 7 days or a multiple of 7 days, if so, entering the step S232, and if not, running normally;
s232, judging whether the intelligent power terminal is in a reset time period, if so, entering a step S233, and if not, operating normally;
s233, resetting and shutting down the intelligent power terminal;
and S234, restarting the intelligent power terminal.
In addition, in the third condition, the power off mechanism means that file verification is performed each time the intelligent power terminal is powered on again and restarted after power failure.
Referring to fig. 5, the file verification process that is entered after the above conditions are met includes the following steps:
s10, opening any stored file by the intelligent power terminal; if the current file is opened wrongly, a new file is created in the storage space of the current file to cover the original file, and the size of the new file is the same as that of the original file;
s11, acquiring the size of the current file opened in the step S10; if the file size is failed to be obtained, a new file is created in the storage space of the current file to cover the original file, and the size of the new file is the same as that of the original file;
s12, comparing the size of the current file with the set value of the size of the current file, judging whether the size is equal, if so, repeating the step S10 until all the stored files are verified, if not, creating a new file in the storage space of the current file to cover the original file, wherein the size of the new file is the same as that of the original file, and repeating the step S10 until all the stored files are verified.
In the above step S12, the set value of the file size is obtained as follows: in the intelligent power terminal, a corresponding file size parameter is set for each file, and the set value is the preset file size parameter. The file size may be in bytes.
In each step of the file verification, when a new file is created, the file data is randomly written data, and in the creating process, the specific content of the file is not limited as long as the size of the file is ensured to meet the requirement. When the file is failed to open, the size of the file cannot be acquired or the size of the file is wrong, the file is damaged, so that a new file is created, the size of the file is guaranteed to be a set value, and when the power terminal continues to collect data, the new data can cover the content written randomly, so that normal operation of subsequent collected data is guaranteed. If the file is failed to be opened, the size of the file cannot be obtained, or the size of the file is wrong, the power terminal cannot normally write after continuously acquiring data, and normal operation is affected.

Claims (10)

1. A file checking method based on an intelligent power terminal system is characterized by comprising the following steps: the method comprises the following steps:
s1, powering on the intelligent power terminal to enable the intelligent power terminal to operate normally;
s2, the intelligent power terminal meets any one of the following conditions and performs file verification;
the first condition is that: setting appointed time, and when the time on the intelligent power terminal reaches the appointed time, carrying out file verification;
the second condition is that: changing parameters set in the intelligent power terminal, and checking files;
a third condition: and the intelligent power terminal performs file verification when the intelligent power terminal is automatically reset or is powered off.
2. The intelligent power terminal system based file verification method according to claim 1, wherein: in the first condition, the following judging steps are included:
s211, judging whether the operation of the intelligent power terminal reaches the specified date, if so, entering a step S212, and if not, operating normally;
s212, judging whether the intelligent power terminal runs for the designated time, if so, carrying out file verification, and if not, normally running.
3. The intelligent power terminal system based file verification method according to claim 1, wherein: in the second condition, the following judging steps are included:
s221, judging whether the intelligent power terminal is provided with parameters or not, if so, entering a step S222, and if not, operating normally;
s222, judging whether the parameters of the intelligent power terminal are changed or not, if so, carrying out file verification, and if not, normally operating.
4. The intelligent power terminal system based file verification method according to claim 1, wherein: in a third condition, the self-reset mechanism comprises the steps of:
s231, judging whether the running time of the intelligent power terminal reaches the set running time, if so, entering a step S232, and if not, normally running;
s232, judging whether the intelligent power terminal is in a reset time period, if so, entering a step S233, and if not, operating normally;
s233, resetting and shutting down the intelligent power terminal;
and S234, restarting the intelligent power terminal.
5. The intelligent power terminal system based file verification method according to claim 1, wherein: in a third condition, the power-off mechanism means that file verification is performed each time the intelligent power terminal is powered on and restarted after power failure.
6. The intelligent power terminal system based file verification method according to claim 1, wherein: the file verification comprises the following steps:
s10, opening any stored file by the intelligent power terminal;
s11, acquiring the size of the current file opened in the step S10;
s12, comparing the size of the current file with the set value of the size of the current file, judging whether the size is equal, if so, repeating the step S10 until all the stored files are verified, if not, creating a new file in the storage space of the current file to cover the original file, wherein the size of the new file is the same as that of the original file, and repeating the step S10 until all the stored files are verified.
7. The intelligent power terminal system based file verification method according to claim 6, wherein: in step S10, if the current file is opened with an error, a new file is created in the storage space of the current file to cover the original file, and the size of the new file is the same as that of the original file.
8. The intelligent power terminal system based file verification method according to claim 6, wherein: in the file verification S11, if the size of the file fails to be obtained, a new file is created in the storage space of the current file to cover the original file, and the size of the new file is the same as that of the original file.
9. The intelligent power terminal system based file verification method according to any one of claims 6 to 8, wherein: in the intelligent power terminal, a corresponding file size parameter is set for each file, and the set value is the preset file size parameter.
10. The intelligent power terminal system based file verification method according to any one of claims 6 to 8, wherein: in each step, when a new file is created, the file data is randomly written data.
CN202110339540.2A 2021-03-30 2021-03-30 Intelligent power terminal based system file verification method Pending CN113110958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110339540.2A CN113110958A (en) 2021-03-30 2021-03-30 Intelligent power terminal based system file verification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110339540.2A CN113110958A (en) 2021-03-30 2021-03-30 Intelligent power terminal based system file verification method

Publications (1)

Publication Number Publication Date
CN113110958A true CN113110958A (en) 2021-07-13

Family

ID=76712696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110339540.2A Pending CN113110958A (en) 2021-03-30 2021-03-30 Intelligent power terminal based system file verification method

Country Status (1)

Country Link
CN (1) CN113110958A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626872A (en) * 2021-10-11 2021-11-09 宁波集联软件科技有限公司 Control method for integrity of preset resources in automobile memory chip module

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314421A (en) * 2010-06-29 2012-01-11 中兴通讯股份有限公司 Self-rescuing method and self rescuing device for file system after being damaged
CN104319891A (en) * 2014-10-31 2015-01-28 国家电网公司 Overhaul and operation maintenance device and method for intelligent substation process layer
CN105991965A (en) * 2015-01-27 2016-10-05 上海天跃科技股份有限公司 Data integrity checking method for record data of security prevention monitoring system
CN106549814A (en) * 2015-09-17 2017-03-29 大唐移动通信设备有限公司 The method of calibration and equipment of device parameter effectiveness
CN106708646A (en) * 2016-12-22 2017-05-24 郑州云海信息技术有限公司 Hard disk abnormal condition automatic resetting method and device thereof
WO2019168605A1 (en) * 2018-02-28 2019-09-06 Cummins Inc. Remote communication control system
CN112506722A (en) * 2020-11-26 2021-03-16 苏州浪潮智能科技有限公司 Self-checking reset method and device applied to switch

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314421A (en) * 2010-06-29 2012-01-11 中兴通讯股份有限公司 Self-rescuing method and self rescuing device for file system after being damaged
CN104319891A (en) * 2014-10-31 2015-01-28 国家电网公司 Overhaul and operation maintenance device and method for intelligent substation process layer
CN105991965A (en) * 2015-01-27 2016-10-05 上海天跃科技股份有限公司 Data integrity checking method for record data of security prevention monitoring system
CN106549814A (en) * 2015-09-17 2017-03-29 大唐移动通信设备有限公司 The method of calibration and equipment of device parameter effectiveness
CN106708646A (en) * 2016-12-22 2017-05-24 郑州云海信息技术有限公司 Hard disk abnormal condition automatic resetting method and device thereof
WO2019168605A1 (en) * 2018-02-28 2019-09-06 Cummins Inc. Remote communication control system
CN112506722A (en) * 2020-11-26 2021-03-16 苏州浪潮智能科技有限公司 Self-checking reset method and device applied to switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626872A (en) * 2021-10-11 2021-11-09 宁波集联软件科技有限公司 Control method for integrity of preset resources in automobile memory chip module

Similar Documents

Publication Publication Date Title
US9569325B2 (en) Method and system for automated test and result comparison
CN111767173A (en) Network equipment data processing method and device, computer equipment and storage medium
CN110609778A (en) Method and system for storing server downtime log
CN112486745A (en) SSD (solid State disk) safety power failure test method and device, computer equipment and storage medium
CN110063042A (en) A kind of response method and its terminal of database failure
CN112416634B (en) File processing method and device and storage medium
CN114816022B (en) Method, system and storage medium for monitoring server power supply abnormality
CN113110958A (en) Intelligent power terminal based system file verification method
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
US8347285B2 (en) Embedded agent for self-healing software
CN110069382B (en) Software monitoring method, server, terminal device, computer device and medium
CN110515792B (en) Monitoring method and device based on web version task management platform and computer equipment
CN114937316B (en) Software fault detection method, device, equipment and medium
CN113687867B (en) Shutdown method, system, equipment and storage medium of cloud platform cluster
CN115904698A (en) Method for managing OPC UA architecture by using YAML format file
CN115794486A (en) Robot information acquisition method, system, device and readable medium
CN115525461A (en) Anomaly detection method for energy storage device and server
CN115185724A (en) Fault processing method, device, electronic equipment and storage medium
CN111984844A (en) Method and system for automatically supplementing graph based on big data
CN113656358A (en) Database log file processing method and system
CN112099812B (en) Flash material identification and identification method, system, equipment and medium
CN102479131A (en) Test method
CN114884021B (en) Power supply control method of power supply circuit and related components
CN117240711B (en) Automatic updating method, device and equipment for cluster management tool configuration file
CN103713920B (en) Portable device system starting protection method and apparatus

Legal Events

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

Application publication date: 20210713