CN112948005A - Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk - Google Patents

Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk Download PDF

Info

Publication number
CN112948005A
CN112948005A CN202110082271.6A CN202110082271A CN112948005A CN 112948005 A CN112948005 A CN 112948005A CN 202110082271 A CN202110082271 A CN 202110082271A CN 112948005 A CN112948005 A CN 112948005A
Authority
CN
China
Prior art keywords
intelligent power
terminal
usb flash
flash disk
power utilization
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
CN202110082271.6A
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 CN202110082271.6A priority Critical patent/CN112948005A/en
Publication of CN112948005A publication Critical patent/CN112948005A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a method for acquiring and setting parameters of an intelligent power utilization terminal based on a USB flash disk, which comprises the steps of S1, setting the parameters of one of the intelligent power utilization terminals to be set with the parameters to form an export file; s2, carrying out plug-in communication with the USB flash disk, and writing the export file into the USB flash disk; and S3, the intelligent power utilization terminals with the remaining parameters to be set are sequentially in plug-in communication with the USB flash disk, the export file is read out and written into the terminal, and the parameters are set until the completion. The method is efficient and accurate.

Description

Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk
Technical Field
The invention relates to the technical field of intelligent power utilization terminals, in particular to a method for acquiring and setting parameters of an intelligent power utilization terminal based on a USB flash disk.
Background
With the wide application of the intelligent power utilization terminal, the power company not only strengthens the requirement on terminal data, but also puts higher requirements on maintenance work. At present, parameter maintenance setting is carried out on an intelligent electric terminal system in a manual mode, namely parameter setting is carried out by inputting parameters through keys on a liquid crystal surface of a terminal.
The scheme has the problems that manual setting is easy to make mistakes, difficult to find, low in setting efficiency, not suitable for batch operation, incapable of recording manual operation, further incapable of tracing and the like.
Disclosure of Invention
In view of the foregoing problems, an object of the present invention is to provide a method for acquiring and setting parameters of an intelligent power consumption terminal based on a usb disk, which improves the efficiency of setting parameters of the intelligent power consumption terminal and is safe and reliable.
In order to achieve the purpose, the technical scheme of the invention is as follows: a method for acquiring and setting parameters of an intelligent power utilization terminal based on a USB flash disk is characterized by comprising the following steps: the method comprises the following steps of,
s1, setting parameters by one of the intelligent power utilization terminals to be set with the parameters to form an export file;
s2, carrying out plug-in communication with the USB flash disk, and writing the export file into the USB flash disk;
and S3, the intelligent power utilization terminals with the remaining parameters to be set are sequentially in plug-in communication with the USB flash disk, the export file is read out and written into the terminal, and the parameters are set until the completion.
Further, in S3, the export file is read and written into the terminal, and the parameters are set until the completion, specifically including,
a1, detecting whether the read export file is a parameter file to be used, if so, executing A2, and if not, not operating the intelligent power utilization terminal;
and A2, writing the export file into an area A of the intelligent power utilization terminal, and setting parameters until the parameters are set.
Further, the writing of the export file in the a2 to the area a of the intelligent power consumption terminal, and the parameter setting is performed until the completion, specifically including,
b1, detecting whether the export file written in the area A is a parameter setting file, if so, executing B2, and if not, not operating the intelligent power utilization terminal;
b2, comparing whether the export file written in the A area is consistent with the parameter file in the terminal, and carrying out corresponding operation.
Further, the comparing in B2, whether the export file written in the a area is consistent with the parameter file in the terminal, and performs corresponding operations, specifically including,
c1, if the export file written into the area A is judged to be consistent with the parameter file in the terminal, the intelligent power utilization terminal does not operate;
and C2, if the export file written in the area A is judged to be inconsistent with the parameter file in the terminal, writing the export file in the area A into the corresponding parameter physical address of the terminal, and finishing the operation.
Further, the area a is a buffer area of the intelligent power consumption terminal, and the export file is an update.
Furthermore, the method also comprises that after the export file of the area A is written into the corresponding parameter physical address of the terminal by the intelligent electric terminal, a liquid crystal display screen of the intelligent electric terminal prompts the completion of parameter import, and the parameter setting is successful.
Further, the S2, which is in plug-in communication with the usb disk, writes the export file into the usb disk, specifically including,
after the intelligent power utilization terminal detects that the USB flash disk is inserted, whether the USB flash disk is mounted on the terminal is judged, if yes, the export file is written into the USB flash disk, and if not, the judgment is continued until the USB flash disk is mounted on the terminal.
Further, one of the intelligent power terminals to be provided with the parameters in S1 performs parameter setting to form an export file, specifically including,
and selecting one of the intelligent power utilization terminals to be subjected to parameter setting, starting a debugging mode, determining the initial offset and length of the current parameter according to the set parameter structure, and deriving the initial offset and length.
Further, the method further comprises the step of after the current parameter starting offset and the length are determined, the intelligent power utilization terminal generates an export file through an input parameter export command expapp.
Further, the export file includes header information of setting parameters, parameter information, and check information.
Compared with the prior art, the invention has the advantages that:
after obtaining the export file that forms in the intelligent power consumption terminal that initial setting parameter succeeded through the USB flash disk, insert the USB flash disk in the surplus intelligent power consumption terminal that waits to set up and judge one by one whether satisfy the parameter setting demand, and when satisfying the demand, write in the parameter physical address that the terminal corresponds with the export file, thereby realize duplicating the parameter that will want to set up to other terminals fast, do not change other parameters simultaneously, it is high-efficient convenient, the loaded down with trivial details of manual parameter setting in the past has been removed from, and safe and reliable.
Drawings
Fig. 1 is an operation flowchart of a method for acquiring and setting parameters of an intelligent power consumption terminal based on a usb flash disk according to the present application.
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.
Fig. 1 shows a preferred embodiment of the method for acquiring and setting parameters of an intelligent power consumption terminal based on a usb flash disk according to the present application, and as shown in the figure, the method includes,
s1, setting parameters by one of the intelligent power utilization terminals to be set with the parameters to form an export file;
s2, carrying out plug-in communication with the USB flash disk, and writing the export file into the USB flash disk;
and S3, the intelligent power utilization terminals with the remaining parameters to be set are sequentially in plug-in communication with the USB flash disk, the export file is read out and written into the terminal, and the parameters are set until the completion.
In other words, the first step is to obtain parameters to the usb flash disk, and the usb flash disk sets the parameters to the other terminals. When the parameter setting is carried out on the first intelligent electric terminal, the traditional manual setting mode is adopted.
The specific operation process of S1 includes:
firstly, setting required parameters to a terminal;
secondly, connecting an xshell tool, starting a debugging mode by a terminal, determining initial offset and length of parameters to be derived according to a parameter structure of the terminal, and determining the initial offset and length of the set parameters according to the physical addresses of the parameters because each parameter has a corresponding physical address;
and thirdly, inputting a parameter export command expapp, and forming an update. sp4 file by the terminal according to the export command, wherein the file comprises header information, parameter information and verification information of the parameters.
After forming the export file, the export file is used for directly setting parameters of other terminals to be set with the parameters, and the mode adopted by the application is the fourth: inserting a U disk into the terminal, detecting whether the U disk is inserted by the terminal, if so, continuously judging whether the U disk is mounted on the terminal, and if so, writing an export file, namely an updte.sp4 file into the U disk, which is the process of acquiring the setting parameters by the U disk.
After the parameters are obtained by the usb disk, the parameters of other remaining intelligent power terminals to be set are set by using the usb disk, and this step corresponds to S3, which specifically includes
Fifth, the method comprises the following steps: inserting a U disk to a terminal needing to set parameters, detecting and reading a file in the U disk by the terminal, judging whether the file is a parameter file to be used or not, and if not, not operating the terminal; and if so, writing the mounted updat. sp4 file in the U disk into the terminal buffer area.
And then, the terminal continuously checks whether the file is a parameter setting file, if so, the file is compared with the parameter file in the terminal, if the comparison result shows that the file is consistent with the parameter file in the terminal, the terminal does not operate, if the comparison result shows that the file is inconsistent with the parameter file in the terminal, the parameter information in update. sp4 is written into a parameter physical address corresponding to the terminal to complete the operation, and if the file is not the parameter setting file, the terminal does not operate.
And after the parameter setting is finished, the importing of the liquid crystal display parameters on the terminal is finished, and the parameter setting is successful. Therefore, the export file formed in the intelligent power consumption terminal with the successful initial parameter setting is obtained through the USB flash disk, the USB flash disk is inserted into the residual intelligent power consumption terminal to be set, whether the parameter setting requirement is met is judged one by one, and the export file is written into the parameter physical address corresponding to the terminal when the requirement is met, so that the aim of quickly copying the parameter to be set to other terminals is fulfilled, meanwhile, the aim of not changing other parameters is fulfilled, the method is efficient and convenient, the complexity of manual parameter setting in the past is avoided, and the method is safe and reliable.
While embodiments of the invention have been shown and described, it will be understood by those skilled in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. A method for acquiring and setting parameters of an intelligent power utilization terminal based on a USB flash disk is characterized by comprising the following steps: the method comprises the following steps of,
s1, setting parameters by one of the intelligent power utilization terminals to be set with the parameters to form an export file;
s2, carrying out plug-in communication with the USB flash disk, and writing the export file into the USB flash disk;
and S3, the intelligent power utilization terminals with the remaining parameters to be set are sequentially in plug-in communication with the USB flash disk, the export file is read out and written into the terminal, and the parameters are set until the completion.
2. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 1, wherein the method comprises the following steps: in S3, the export file is read and written into the terminal, and the parameters are set until the completion, specifically including,
a1, detecting whether the read export file is a parameter file to be used, if so, executing A2, and if not, not operating the intelligent power utilization terminal;
and A2, writing the export file into an area A of the intelligent power utilization terminal, and setting parameters until the parameters are set.
3. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 2, wherein the method comprises the following steps: the writing of the export file in the a2 to the area a of the intelligent power consumption terminal, and the parameter setting is performed until the completion, specifically including,
b1, detecting whether the export file written in the area A is a parameter setting file, if so, executing B2, and if not, not operating the intelligent power utilization terminal;
b2, comparing whether the export file written in the A area is consistent with the parameter file in the terminal, and carrying out corresponding operation.
4. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 3, wherein the method comprises the following steps: the comparison in B2 is to determine whether the export file written in area a is consistent with the parameter file in the terminal, and perform corresponding operations, including,
c1, if the export file written into the area A is judged to be consistent with the parameter file in the terminal, the intelligent power utilization terminal does not operate;
and C2, if the export file written in the area A is judged to be inconsistent with the parameter file in the terminal, writing the export file in the area A into the corresponding parameter physical address of the terminal, and finishing the operation.
5. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 4, wherein the method comprises the following steps:
the area A is a buffer area of the intelligent power utilization terminal, and the export file is an update.
6. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 4, wherein the method comprises the following steps:
the method further comprises that after the export file of the area A is written into the corresponding parameter physical address of the intelligent electric terminal, a liquid crystal display screen of the intelligent electric terminal prompts that the parameter import is completed, and the parameter setting is successful.
7. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 1, wherein the method comprises the following steps: the S2 is in plug-in communication with the usb disk, and writes the export file into the usb disk, specifically including,
after the intelligent power utilization terminal detects that the USB flash disk is inserted, whether the USB flash disk is mounted on the terminal is judged, if yes, the export file is written into the USB flash disk, and if not, the judgment is continued until the USB flash disk is mounted on the terminal.
8. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 1, wherein the method comprises the following steps: one of the intelligent power terminals to be set with the parameters in S1 sets the parameters to form an export file, which specifically includes,
and selecting one of the intelligent power utilization terminals to be subjected to parameter setting, starting a debugging mode, determining the initial offset and length of the current parameter according to the set parameter structure, and deriving the initial offset and length.
9. The method for acquiring and setting parameters of the intelligent power utilization terminal based on the USB flash disk according to claim 8, wherein the method comprises the following steps:
the method further comprises the step of after the current parameter starting offset and the length are determined, enabling the intelligent power terminal to form an export file through an input parameter export command expapp.
10. The method for acquiring and setting parameters of the intelligent power consumption terminal based on the USB flash disk according to claim 9, wherein:
the export file comprises header information of setting parameters, parameter information and verification information.
CN202110082271.6A 2021-01-21 2021-01-21 Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk Pending CN112948005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110082271.6A CN112948005A (en) 2021-01-21 2021-01-21 Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110082271.6A CN112948005A (en) 2021-01-21 2021-01-21 Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk

Publications (1)

Publication Number Publication Date
CN112948005A true CN112948005A (en) 2021-06-11

Family

ID=76235774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110082271.6A Pending CN112948005A (en) 2021-01-21 2021-01-21 Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk

Country Status (1)

Country Link
CN (1) CN112948005A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858748A (en) * 2006-05-22 2006-11-08 上海怀瑾计算机科技有限公司 Method for realizing directly access USB master facility end file from slave facility end at USB
CN105260215A (en) * 2015-11-04 2016-01-20 福建星海通信科技有限公司 Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
CN107995044A (en) * 2017-12-18 2018-05-04 宁波三星医疗电气股份有限公司 A kind of upgrade method for power collection systems terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858748A (en) * 2006-05-22 2006-11-08 上海怀瑾计算机科技有限公司 Method for realizing directly access USB master facility end file from slave facility end at USB
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
CN105260215A (en) * 2015-11-04 2016-01-20 福建星海通信科技有限公司 Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk
CN107995044A (en) * 2017-12-18 2018-05-04 宁波三星医疗电气股份有限公司 A kind of upgrade method for power collection systems terminal

Similar Documents

Publication Publication Date Title
CN103425597B (en) The block management method of data memory device and flash memory
CN101452745B (en) Programmer and programming method thereof
WO2021248786A1 (en) Key code data burning method and apparatus, terminal device, and readable storage medium
CN102033814B (en) Method for accessing flash memory and relevant memory device
CN101604272A (en) Storage card proving installation and method of testing thereof
WO2020140354A1 (en) Full address calibration method and system supporting ultra-large calibration data volume
CN104268075A (en) Test mode entry method and device and mobile terminal
CN103778964B (en) Process, using method and the device of a kind of NAND Flash programming data, system
CN107193560B (en) Configuration updating method and device
CN105740031B (en) Card opening method based on card opening external member and card opening external member
WO2016078315A1 (en) Programming apparatus, programming system and programming method
TW200837551A (en) Storage device capable of cooperating to adjust reliability, method for establishing and input data thereof
CN107153852A (en) The chip data Improvement and device of device are rewritten based on consumable chip
CN102902626B (en) Block management method, Memory Controller and memorizer memory devices
CN106649137B (en) Nand Flash bad block management method and device and memory
CN111580837A (en) Method, device, terminal and storage medium for burning MAC address
CN112948005A (en) Method for acquiring and setting parameters of intelligent power utilization terminal based on USB flash disk
CN103177772A (en) Flash memory test method
CN110659036B (en) Method and system for automatically burning google key in Windows system
CN102855145A (en) Starting method and starting system of embedding type electronic device
CN108829443B (en) Design method, loading method and application of terminal equipment configuration data
CN113112786B (en) Multi-data reading method, medium and electronic equipment for ammeter
CN111858532B (en) Solid state disk log export method, system and device and readable storage medium
CN110209433B (en) Method for identifying concentrators of different models
CN209591533U (en) A kind of NOR Flash test macro based on FPGA

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