CN110489439A - A kind of parameter processing method and electric power terminal - Google Patents
A kind of parameter processing method and electric power terminal Download PDFInfo
- Publication number
- CN110489439A CN110489439A CN201910866921.9A CN201910866921A CN110489439A CN 110489439 A CN110489439 A CN 110489439A CN 201910866921 A CN201910866921 A CN 201910866921A CN 110489439 A CN110489439 A CN 110489439A
- Authority
- CN
- China
- Prior art keywords
- parameter
- target component
- storage unit
- changed
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- 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/23—Updating
- G06F16/2358—Change logging, detection, and notification
-
- 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/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- 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
- 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/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/285—Clustering or classification
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of parameter processing method and electric power terminals, are related to technical field of data processing.The parameter processing method is applied to the processor of electric power terminal, by receiving a target component change directive, wherein, target component change directive includes target component to be changed, then the type of target component to be changed is determined according to target component to be changed and preset parameter configuration table, wherein, preset parameter configuration table includes changing the corresponding relationship of target component and parameter type, the type according to target component to be changed determines target component storage unit again, and it is modified according to the target component that target component change directive stores up target component memory cell, finally the target component after change is synchronized in the parameter backup unit and is backed up.Parameter processing method provided by the invention and electric power terminal have the advantages that the memory overhead that execution efficiency is higher, effectively reduces parameter backup unit.
Description
Technical field
The present invention relates to technical field of data processing, in particular to a kind of parameter processing method and electric power terminal.
Background technique
With the continuous propulsion that electric power information is transformed, usage amount of the electric power terminal concentrator in centralized meter-reading system exists
It is continuous to increase.There is up to tens kinds of all kinds of configuration parameters in concentrator, exactly these all kinds of parameter co- controllings
The electric power terminals such as concentrator, make its operation steady in a long-term according to the intrinsic scheme of design.But all ginsengs in concentrator
Number is not unalterable, according to the demand in each area, dynamically repair to the related parameter values of its inside
Change.Therefore how correct, effective these parameters of modification management become most important.
Modification for electric power terminal intrinsic parameter, the processing scheme generally used at present are as follows:
Parameter File is created in external memory unit by file system, while doing a parameter backup in memory.
It when needing to modify to parameter, first modifies to the backup parameter in memory, when all parameters to be modified are in memory
After the completion of middle modification, then the backup parameter Integral synchronous in memory in the Parameter File into external storage.
Although currently existing scheme can be realized the modification to electric power terminal parameter, since parameter type is more, every time
When needing to carry out the modification of parameter, it is required to first carry out parameter modification in memory and stores, then again by modified parameter
It is synchronized in external storage, causes content stored in memory more, memory overhead is larger, and execution efficiency is lower.
Summary of the invention
The purpose of the present invention is to provide a kind of parameter processing methods, to solve in the prior art in the mistake to parameter processing
Lead to the problem that memory overhead is big and execution efficiency is low in journey.
Another object of the present invention is to provide a kind of electric power terminals, to solve in the prior art in the mistake to parameter processing
Lead to the problem that memory overhead is big and execution efficiency is low in journey.
To solve the above problems, the application is achieved in that
On the one hand, the embodiment of the present application provides a kind of parameter processing method, described applied to the controller of electric power terminal
Electric power terminal further includes parameter backup unit and multiple parameters storage unit, each parameter storage unit with the parameter
Backup units connection, the controller are connect with the parameter backup unit, the multiple parameter storage unit respectively, and each
The parameter storage unit is for storing different types of data;The parameter processing method includes:
Receive a target component change directive, wherein the target component change directive includes target component to be changed;
The type of the target component to be changed is determined according to the target component to be changed and preset parameter configuration table,
Wherein, the preset parameter configuration table includes changing the corresponding relationship of target component and parameter type;
Type according to the target component to be changed determines target component storage unit, and more according to the target component
Change the target component that the target component memory cell is stored up in instruction to be modified;
Target component after change is synchronized in the parameter backup unit and is backed up.
Further, the target component to be changed is provided with identification code, it is described according to the target component to be changed with
Preset parameter configuration table determines that the step of type of the target component to be changed includes:
The type of the target component is determined according to the identification code of the target component and preset parameter configuration table;Its
In, it include the corresponding relationship of identification code and parameter type in the parameter configuration table.
Further, the identification code according to the target component and preset parameter configuration table determine that the target is joined
The step of several types includes:
Identification code according to the target component determines intermediate belonging to the target component with the parameter configuration table
Not;
The type of the target component is determined according to middle category belonging to the target component and the parameter configuration table;
Wherein, pair of the corresponding relationship and intermediate form including identification code and intermediate form in the parameter configuration table and parameter type
It should be related to.
Further, the multiple parameter storage unit include the first parameter storage unit, the second parameter storage unit with
And third parameter storage unit, the type of the target component to be changed include first kind parameter, the second class parameter and third
Class parameter;
The step of type according to the target component to be changed determines target component storage unit include:
When the type of the target component to be changed is first kind parameter, determine that first parameter storage unit is mesh
Mark parameter storage unit;
When the type of the target component to be changed is the second class parameter, determine that second parameter storage unit is mesh
Mark parameter storage unit;
When the type of the target component to be changed is third class parameter, determine that the third parameter storage unit is mesh
Mark parameter storage unit.
Further, first parameter storage unit is database, and second parameter storage unit is rsv file,
The third parameter storage unit is self file, and the type of the target component to be changed includes General Parameters, Yi Biandong
Important parameter and it is not easy the important parameter changed;
The step of type according to the target component to be changed determines target component storage unit include:
When the type of the target component to be changed is General Parameters, determine that the database is that target component storage is single
Member;
When the type of the target component to be changed is the important parameter easily changed, determine that the rsv file is target
Parameter storage unit;
When the type of the target component to be changed is the important parameter for being not easy to change, determine that the self file is mesh
Mark parameter storage unit.
Further, the electric power terminal is equipped with system crossover tool, the parameter processing method further include:
The parameter stored in rsv file and the parameter stored in database are mutually turned using system crossover tool
It changes.
Further, the parameter processing method further include:
It receives a target component and reads instruction, wherein it includes target component to be read that the target component, which reads instruction,
Byte;
When reading the parameter in any one parameter storage unit of instruction reading according to the target component, acquisition has been read
The byte of target component;
When the byte of the byte for having read target component and the target component to be read is unequal, determine to read
Parameter failure.
Further, the parameter processing method further include:
When receiving synchronic command, the data stored in the parameter backup unit are sent to one or more parameters
Storage unit.
On the other hand, the embodiment of the present application also provides a kind of electric power terminal, the electric power terminal includes controller, parameter
Backup units and multiple parameters storage unit, the controller are deposited with the parameter backup unit, the multiple parameter respectively
Storage unit connection, each parameter storage unit are connect with the parameter backup unit, and each parameter storage is single
Member is used to store different types of data, wherein;
The controller for receive a target component change directive, wherein the target component change directive include to
Change target component;
The controller is also used to determine according to the target component to be changed and preset parameter configuration table described to more
Change the type of target component, wherein the preset parameter configuration table, which includes that change target component is corresponding with parameter type, closes
System;
The controller is also used to determine target component storage unit according to the type of the target component to be changed, and according to
It is modified according to the target component that the target component change directive stores up the target component memory cell;
The parameter storage unit be used for by change after target component be synchronized in the parameter backup unit carry out it is standby
Part.
Further, the target component of the target component memory cell storage is provided with safety code, and when described
When target component is modified, the corresponding change of the safety code.
Referring now to the prior art, the application is had the advantages that
This application provides a kind of parameter processing method and electric power terminals, wherein the parameter processing method is applied to electric power
The processor of terminal, and electric power terminal further includes parameter backup unit and multiple parameters storage unit, each parameter storage unit
It is connect with parameter backup unit, controller is connect with parameter backup unit, multiple parameters storage unit respectively, and each parameter
Storage unit is for storing different types of data.By receiving a target component change directive, wherein target component change refers to
Enabling includes target component to be changed, then determines that target to be changed is joined according to target component to be changed and preset parameter configuration table
Several type, wherein preset parameter configuration table includes changing the corresponding relationship of target component and parameter type, then foundation is to more
The type for changing target component determines target component storage unit, and according to target component change directive to target component storage unit
The target component of interior storage is modified, finally the target component after change is synchronized in the parameter backup unit carry out it is standby
Part.On the one hand, the change for directly carrying out parameter in parameter storage unit due to using, then again by the parameter backup after change
To parameter backup unit, there is no need to wait the change that parameter can be realized, execution efficiency is higher.On the other hand, due to ginseng
Number carries out classification processing, therefore only needs to be backed up the parameter after being modified, and the data for not being modified
Then without being backed up, to effectively reduce the memory overhead of parameter backup unit.
Detailed description of the invention
Fig. 1 is the module diagram of electric power terminal provided by the embodiments of the present application.
Fig. 2 is the partial process view of parameter processing method provided by the embodiments of the present application.
Fig. 3 is the flow chart of a seed step of S104 in Fig. 2 provided by the embodiments of the present application.
Fig. 4 is the flow chart of another seed step of S104 in Fig. 2 provided by the embodiments of the present application.
Fig. 5 is another part flow chart of parameter processing method provided by the embodiments of the present application.
100- electric power terminal;110- controller;120- parameter storage unit;130- parameter backup unit.
Specific embodiment
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention
Specific embodiment be described in detail.
It is general for the parameter processing method of electric power terminal at present are as follows:
External memory unit and memory are set in electric power terminal, wherein are created in external memory unit by file system
Parameter File is built, while doing a parameter backup in memory.When to be modified to parameter, i.e., parameter is increased,
Delete and modification etc. operation when, first the backup parameter in memory is modified, when all parameters to be changed in memory
After the completion of modification, then the backup parameter Integral synchronous in memory into external memory unit.Although such scheme can be realized
The change of parameter, but there is a problem of that memory overhead is bigger in practical applications, and with the increase of parameter type, memory
Expense be consequently increased, and execution efficiency is lower.For electric power terminal, all parameters exist together, and
The amount of parameter is larger, so that the readability of parameter is poor.
For example, in existing parameter processing scheme, when needing to be modified parameter, such as voltage parameter, electric current
When parameter is modified, then after needing to complete change to data in memory, whole data are synchronized to external storage wherein,
When progress data are synchronous every time, it is also necessary to additional data, such as terminal address etc. are carried, so that carrying out parameter change every time
When, it is both needed to repeatedly store parameter that is some important and being not easy to change, the used time is same by parameter after the completion of parameter is modified
Step, so that storing some data for being not easy to change in memory repeatedly, causes memory overhead big, and hold into external memory unit
The low problem of line efficiency.
First embodiment
Based in the prior art for the processing method of parameter there are the problem of, this application provides at a kind of new parameter
Reason method, the controller 110 applied to electric power terminal 100, wherein referring to Fig. 1, electric power terminal 100 further includes parameter backup
Unit 130 and multiple parameters storage unit 120, each parameter storage unit 120 are connect with parameter backup unit 130, are controlled
Device 110 is connect with parameter backup unit 130, multiple parameters storage unit 120 respectively, and each parameter storage unit 120 is used for
Store different types of data.By parameter processing method provided by the present application, can be realized during parameter processing, effectively
Execution efficiency is promoted, while realizing the expense for reducing memory during parameter processing.
As the possible implementation of the application, referring to Fig. 2, parameter processing method provided by the present application includes:
S102 receives a target component change directive, wherein target component change directive includes target component to be changed.
When the changes operation such as needing to increase parameter, being deleted and modified, need from user to electric power terminal 100
Target component change directive is sent, for example, communicating to connect before electric power terminal 100 and server, user can pass through server
Target component, which is sent, to electric power terminal 100 changes quality.
Also, in the target component change directive, including at least target component to be changed, that is, the target for needing to change is joined
Number, for example, target component to be changed is current information, information of voltage etc..
S104 determines the type of target component to be changed according to target component to be changed and preset parameter configuration table,
In, preset parameter configuration table includes changing the corresponding relationship of target component and parameter type.
As a kind of implementation of the application, electric power terminal 100 further includes signal receiving unit, signal receiving unit with
Controller 110 is electrically connected, and signal receiving unit is receiving target component change for receiving target component change directive
After instruction, target component change directive is transmitted to controller 110.
In this application, it is pre-stored with parameter configuration table in controller 110, and includes parameter and ginseng in parameter configuration table
The corresponding relationship of several classes of types, for example, information of voltage belongs to first kind parameter, address information belongs to second class parameter etc..Work as control
Device 110 receives target component change directive, can be according to the target component to be changed that target component change directive carries from ginseng
The type of target component to be changed is determined in number allocation list.
S106, the type according to target component to be changed determines target component storage unit, and changes according to target component
The target component stored up to target component memory cell is instructed to be modified.
Since different parameter storage units 120 is for storing different types of parameter, when controller 110 has determined
After the type of target component to be changed, can the corresponding determining target component storage unit 120 for storing such shape parameter, then
The target component stored in target component storage unit 120 is modified.For example, target component is information of voltage, and voltage
Information is stored in target component storage unit 120, and the value of the information of voltage stored at this time is 210V.Staff needs at this time
The value of information of voltage is revised as 220V, then the content of target component change directive can be for " information of voltage is changed to
220V " can determine storage information of voltage after controller 110 determines type described in information of voltage according to upper information of voltage
Then the information of voltage stored in target component storage unit 120 is revised as 220V, in turn by target component storage unit 120
Complete the modification that parameter has been rapidly completed.Similarly, the increase or deletion for parameter can be realized in the same way.
Target component after change is synchronized in parameter backup unit and backs up by S108.
After the completion of modifying target component, controller 110 can also control target component storage unit 120 will be modified
Target component is sent in parameter backup unit 130 and is backed up.
It should be noted that controller 110 can only control modified parameter and be sent to parameter backup unit in the application
It is backed up in 130, and for unmodified parameter, since it had carried out backup in parameter backup unit 130,
Without being sent data in parameter backup unit 130 again, so that after what is stored in parameter backup unit 130 is always modification
Parameter, effectively reduce the expense of memory.
It wherein, include that the storage of the first parameter is single as a kind of possible implementation, in multiple parameters storage unit 120
Member, the second parameter storage unit and third parameter storage unit, for storing primary sources, second deposits the first storage unit
Storage unit is for storing secondary sources, and third storage unit is for storing third class data.Parameter is divided into three classes, certainly
Parameter can also be divided into more multiclass in some other embodiments by ground, and the application does not do any restriction to this.
I.e. S106 includes:
S106-1 determines that the first parameter storage unit is mesh when the type of target component to be changed is first kind parameter
Mark parameter storage unit.
S106-2 determines that the second parameter storage unit is mesh when the type of target component to be changed is the second class parameter
Mark parameter storage unit.
S106-3 determines that third parameter storage unit is mesh when the type of target component to be changed is third class parameter
Mark parameter storage unit.
It, can corresponding determining target component storage unit after controlling the type for determining target component.
Further, as a kind of implementation, the first parameter storage unit is database, and the second parameter storage unit is
Rsv file, third parameter storage unit be self file, also, by the parameter of electric power terminal 100 be divided into General Parameters with it is important
Parameter, while important parameter being divided into the important parameter easily changed and is not easy the important parameter changed.Database is general for storing
Logical parameter, such as information of voltage, current information parameter;Rsv file is for storing the important parameter easily changed, such as communication ginseng
Number;Self file is for storing the important parameter for being not easy to change, such as terminal address.
Under this implementation, S106 be may particularly include:
S106-a determines that database is that target component storage is single when the type of target component to be changed is General Parameters
Member.
S106-b determines rsv file for target ginseng when the type of target component to be changed is the important parameter easily changed
Number storage unit.
S106-c determines that self file is mesh when the type of target component to be changed is the important parameter for being not easy to change
Mark parameter storage unit.
By using database and the two-in-one mode of file, the classification storage to parameter is realized, in a first aspect, passing through
Different parameter storage units 120 is set, parameter can be handled in real time, be can be realized parameter real-time storage in data
In library, rsv file or self file, other transfers operation is not needed, the execution efficiency made is high.Second aspect, by parameter
Classification storage is carried out, so that the readability of parameter is more preferable, and can quickly position the parameter for needing to change, and then saved parameter
The time of positioning.Important parameter is put into rsv file and self file by the third aspect, can be relatively reliable, so that electric power is whole
100 operation of end is more stable, meanwhile, by the way that parameter is carried out classification storage, even if when the damage of one of parameter, it will not
Cause all types of parameters to be damaged, and then improves the safety of data storage.
Furthermore, it is desirable to explanation, csv file is a kind of mode stored according to argument structure body, according to each parameter
Shared byte number is allocated storage, relative to the binary storage mode of database db file, has good intuitive, branch
Direct modification is held, and can be with SDK (Software Development Kit, Software Development Kit) layer parameter in compiling
It is consistent.
Meanwhile in order to enable staff intuitively to see the content stored in database, electric power terminal 100 is equipped with
System crossover tool, the data stored in rsv file and the parameter stored in database are mutually converted.As one kind
Implementation, system crossover tool are csv2db and db2csv tool, realize the parameter stored in database and the storage of csv file
Mutual conversion between parameter will store parameter and be converted into 16 systems, or 16 systems that will be stored in rsv file in database
Parameter Switch is binary parameters, and then realizes that application layer and SDK layers of parameter use, and reaching can be intuitive by csv file
Show the effect of database, realizes the database form that the convenient and compatible linux system of modification identifies.
Further, type, area and the protocol type of different product can be also distinguished by rsv file provided by the present application
Parameter etc., a set of code can distinguish different regional demands, reduce code release quantity.It will be suitable for the generation in multiple areas
Code collection is integrally formed, and is stored in rsv file.It should be understood that the code in each area has fixed number, such as number
1 code is suitable for Pekinese's code release, and the code of number 2 is the code release suitable for Jiangsu.To utilize rsv file
Reach and really realize that function is configurable, unitized theory reduces maintenance, the effect improved work efficiency.For example, working as
After the electric power terminal 100 is installed in Beijing, user can send code release selection instruction to electric power terminal 100, i.e., only need to select
The code that number is 1 achieves that the configuration of Beijing area electric power terminal 100, develops single version without independent corresponding area,
It improves work efficiency.
On the basis of above-mentioned implementation, realize that the mode of S102 includes three kinds.
The first, realizes sending and receiving for target component change directive, this implementation by way of message
In, it is communicated to connect by being realized between server and electric power terminal 100, and sent by server lamp to electric power terminal 100
The form of message realizes the change for parameter.For example, being realized by way of message to parameter in database and rsv file
Modification.Simultaneously, it should be noted that modified by way of message to parameter, generally modify single parameter.
It second, directly modifies to the parameter in database, can be by long-range form, it can also be by existing
Form, for example, at the scene of electric power terminal 100, by the backstage xShell directly modification database parameter it is a certain
Part, so that parameter modification is more efficient.
The third, the modification of parameter is realized by the liquid crystal on electric power terminal 100, i.e., is provided on electric power terminal 100
Key, by the content shown on liquid crystal, user can choose a certain parameter by case, and then realize for parameter more
Change.Of course, the liquid crystal of electric power terminal 100 may be alternatively provided as the mode of touch screen, and the application does not do any restriction to this.
On the basis of S104, as the possible implementation of the application, referring to Fig. 3, S104 includes:
S104-1 determines the type of target component according to the identification code of target component and preset parameter configuration table;Wherein,
It include the corresponding relationship of identification code and parameter type in parameter configuration table.
Wherein, each parameter that electric power terminal 100 stores is provided with identification code, which is determined for parameter
Type.For example, the identification code of parameter can be convenient for the expression of difference for a, b, c etc..Similarly, target component is also provided with
There is identification code.
Meanwhile actually including that identification code is corresponding with parameter type in the parameter configuration table being pre-stored in controller 110 and closing
System, such as the corresponding parameter type of parameter that identification code is a in parameter configuration table is General Parameters, identification code is the parameter of b
Corresponding parameter type is the important parameter for being easy to change, and the corresponding parameter type of the parameter that identification code is c is not easy to change
Important parameter can determine the type of target component by the identification code of parameter configuration table and target component.
Since in actual use, parameter type is more, thus General Parameters, be easy to change important parameter and be not easy
The important parameter of variation may include tens even several hundred various parameters, therefore when parameter determines, time for needing to respond compared with
It is long.
Therefore, as a kind of possible implementation of the application, referring to Fig. 4, S104-1 can include:
S104-2, identification code and parameter configuration table according to target component determine middle category belonging to target component.
S104-3 determines the type of target component according to middle category belonging to target component and parameter configuration table;Wherein,
It include the corresponding relationship and intermediate form of identification code and intermediate form and the corresponding relationship of parameter type in parameter configuration table.
That is General Parameters, the important parameter that is easy to change and to be not easy the important parameter changed include multiple intermediate
Not, while each middle category corresponds to a variety of identification codes, for example, for General Parameters comprising middle category A1, A2,
The corresponding identification code of A3, A1 includes a1, a2 and a3.At this point, if target component is information of voltage, and the corresponding table of information of voltage
Show that code is a1, then can determine that middle category belonging to target component is A1 according to the identification code of target component and parameter configuration table,
Meanwhile can determine that the type of target component according to middle category belonging to target component and parameter configuration table, to reach more
The type of target component is determined fastly.
As a kind of implementation of the application, the mark of parameter uses OAD, and controller 110 is looked into parameter configuration table
Which kind of parameter is looked for and determined is, if it is General Parameters, then parameter is stored in database, and root according to the size order of OAD
It goes to execute according to OAD to change the additions and deletions of parameter and the operation such as looks into, by this kind of set-up mode, in determination database that can be more accurate
The storage location of parameter is realized and quickly carries out additions and deletions to parameter and change the effects of operations such as to look into.
Moreover, in order to guarantee that correctness when reading parameter, the application store corresponding parameter also according to JSON grammer,
Referring to Fig. 5, the parameter processing method further include:
S110 receives a target component and reads instruction, wherein it includes target component to be read that target component, which reads instruction,
Byte.
S112, when reading the parameter in any one parameter storage unit of instruction reading according to target component, acquisition has been read
Take the byte of target component.
S114 determines to read ginseng when the byte of the byte and target component to be read that have read target component is unequal
Number failure.
When needing to read the parameter in parameter storage unit 120, it is necessary first to whole to electric power by equipment such as servers
End 100 sends target component and reads instruction, such as when needing to read information of voltage, then it includes needing that target component, which reads instruction,
The byte of the voltage parameter of reading.
Also, controller 110 reads corresponding one after receiving parameter and reading instruction, according to instruction is read according to parameter
Parameter in a or multiple parameters storage unit 120, such as when only needing to read information of voltage, then controller 110 only needs to read
The parameter of information of voltage in database is taken, and at the same time obtaining the byte of the information of voltage read.
When the byte of the byte of the target component of acquisition and target component to be read is unequal, then JSON syntax error,
Parameter failure is read in the judgement of controller 110 at this time can not read the parameter.For example, the byte of information of voltage is 4 bytes, but control
The byte that device 110 processed is read is 3 bytes, then it represents that it is likely to occur misreads at this time, failure is read in the judgement of controller 110, thus
Correctness when reading parameter has been effectively ensured.
Colleague, the application can not only realize the backup of parameter, additionally it is possible to the reduction for realizing parameter, when database, rsv text
When part or self file corruption, user can send synchronic command to electric power terminal 100, when controller 110 receives synchronic command
When, the data stored in parameter backup unit 130 can be sent to one or more parameter storage units 120.
For example, parameter backup can be realized in xShell input fbak mode, when execution parameter by writing shell script
When initialization operation, got parms from backup parameter initial value by parameter path, to realize parameter backup unit 130
It is synchronous between parameter storage unit 120.
Second embodiment
Referring to Fig. 1, the embodiment of the present application also provides a kind of electric power terminal 100, which includes control
Device 110, parameter backup unit 130 and multiple parameters storage unit 120 processed, controller 110 respectively with parameter backup unit
130, multiple parameters storage unit 120 connects, and each parameter storage unit 120 is connect with parameter backup unit 130, and each
Parameter storage unit 120 is for storing different types of data.
Controller 110 is for receiving a target component change directive, wherein target component change directive includes mesh to be changed
Mark parameter.
Controller 110 is also used to determine target component to be changed according to target component to be changed and preset parameter configuration table
Type, wherein preset parameter configuration table include change target component and parameter type corresponding relationship.
Controller 110 is also used to determine target component storage unit 120, and foundation according to the type of target component to be changed
Target component change directive is modified the target component stored in target component storage unit 120.
Parameter storage unit 120 is used to for the target component after change being synchronized in parameter backup unit 130 and back up.
Also, for Protection parameters safety, the parameter stored in electric power terminal 100 is correspondingly arranged on safety code, can
To understand ground, the target component stored in target component storage unit 120 is also equipped with safety code, and when target component is modified
When, the corresponding change of safety code, so as to determine whether parameter has been modified according to safety code.For example, when storage voltage letter
Safety code when breath is X, when reading information of voltage, if the safety code of information of voltage is X, then it represents that information of voltage is not modified
It crosses;When reading information of voltage, if the safety code of information of voltage is Y, then it represents that information of voltage had been modified, so that realizing can
The detection of 100 parameter safety of electric power terminal.
As a kind of implementation of the application, the application guarantees the correctness of important parameter using md5 method, i.e., safely
Code is md5 value.When normally to parameter manipulation, can real-time update md5 value, if parameter is made because changing caused by illegal operation
Inconsistent at md5 value, operation is illegal, and then guarantees the reliability of parameter.
In conclusion this application provides a kind of parameter processing method and electric power terminals, wherein the parameter processing method is answered
For the processor of electric power terminal, and electric power terminal further includes parameter backup unit and multiple parameters storage unit, each parameter
Storage unit is connect with parameter backup unit, and controller is connect with parameter backup unit, multiple parameters storage unit respectively, and
Each parameter storage unit is for storing different types of data.By receiving a target component change directive, wherein target ginseng
Number change directive includes target component to be changed, is then determined according to target component to be changed and preset parameter configuration table to more
Changing the type of target component, wherein preset parameter configuration table includes the corresponding relationship of change target component and parameter type, then
Type according to target component to be changed determines target component storage unit, and according to target component change directive to target component
The target component of memory cell storage is modified, and the target component after change is finally synchronized to the parameter backup unit
In backed up.On the one hand, the change for directly carrying out parameter in parameter storage unit due to using, then again will be after change
Parameter backup is to parameter backup unit, and there is no need to wait the change that parameter can be realized, execution efficiency is higher.On the other hand,
Due to only needing to be backed up the parameter after being modified to parameter progress classification processing, and more for no progress
The data changed are then not necessarily to be backed up, to effectively reduce the memory overhead of parameter backup unit.
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this
It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
Subject to the range of restriction.
Claims (10)
1. a kind of parameter processing method, which is characterized in that applied to the controller of electric power terminal, the electric power terminal further includes ginseng
Number backup units and multiple parameters storage unit, each parameter storage unit are connect with the parameter backup unit, institute
It states controller to connect with the parameter backup unit, the multiple parameter storage unit respectively, and each parameter storage is single
Member is for storing different types of data;The parameter processing method includes:
Receive a target component change directive, wherein the target component change directive includes target component to be changed;
The type of the target component to be changed is determined according to the target component to be changed and preset parameter configuration table,
In, the preset parameter configuration table includes changing the corresponding relationship of target component and parameter type;
Type according to the target component to be changed determines target component storage unit, and refers to according to target component change
The target component stored up to the target component memory cell is enabled to be modified;
Target component after change is synchronized in the parameter backup unit and is backed up.
2. parameter processing method according to claim 1, which is characterized in that the target component to be changed is provided with mark
Code, the type that the target component to be changed is determined according to the target component to be changed and preset parameter configuration table
Step includes:
The type of the target component is determined according to the identification code of the target component and preset parameter configuration table;Wherein, institute
State the corresponding relationship in parameter configuration table including identification code and parameter type.
3. parameter processing method according to claim 2, which is characterized in that the identification code according to the target component
The step of determining the type of the target component with preset parameter configuration table include:
Middle category belonging to the target component is determined according to the identification code of the target component and the parameter configuration table;
The type of the target component is determined according to middle category belonging to the target component and the parameter configuration table;Its
In, it include the corresponding of identification code and the corresponding relationship of intermediate form and intermediate form and parameter type in the parameter configuration table
Relationship.
4. parameter processing method according to claim 1, which is characterized in that the multiple parameter storage unit includes first
Parameter storage unit, the second parameter storage unit and third parameter storage unit, the type packet of the target component to be changed
Include first kind parameter, the second class parameter and third class parameter;
The step of type according to the target component to be changed determines target component storage unit include:
When the type of the target component to be changed is first kind parameter, determine first parameter storage unit for target ginseng
Number storage unit;
When the type of the target component to be changed is the second class parameter, determine second parameter storage unit for target ginseng
Number storage unit;
When the type of the target component to be changed is third class parameter, determine the third parameter storage unit for target ginseng
Number storage unit.
5. parameter processing method according to claim 4, which is characterized in that first parameter storage unit is data
Library, second parameter storage unit are rsv file, and the third parameter storage unit is self file, the mesh to be changed
Mark parameter type include General Parameters, Yi Biandong important parameter and be not easy the important parameter changed;
The step of type according to the target component to be changed determines target component storage unit include:
When the type of the target component to be changed is General Parameters, determine that the database is target component storage unit;
When the type of the target component to be changed is the important parameter easily changed, determine that the rsv file is target component
Storage unit;
When the type of the target component to be changed is the important parameter for being not easy to change, determine the self file for target ginseng
Number storage unit.
6. parameter processing method according to claim 5, which is characterized in that the electric power terminal is equipped with system conversion work
Tool, the parameter processing method further include:
The parameter stored in rsv file and the parameter stored in database are mutually converted using system crossover tool.
7. parameter processing method according to claim 1, which is characterized in that the parameter processing method further include:
It receives a target component and reads instruction, wherein the target component reads the byte that instruction includes target component to be read;
When reading the parameter in any one parameter storage unit of instruction reading according to the target component, target has been read in acquisition
The byte of parameter;
When the byte of the byte for having read target component and the target component to be read is unequal, determine to read parameter
Failure.
8. parameter processing method according to claim 1, which is characterized in that the parameter processing method further include:
When receiving synchronic command, the data stored in the parameter backup unit are sent to one or more parameters and are stored
Unit.
9. a kind of electric power terminal, which is characterized in that the electric power terminal includes controller, parameter backup unit and multiple parameters
Storage unit, the controller are connect with the parameter backup unit, the multiple parameter storage unit respectively, each ginseng
Number storage unit is connect with the parameter backup unit, and each parameter storage unit is for storing different types of number
According to, wherein
The controller is for receiving a target component change directive, wherein the target component change directive includes to be changed
Target component;
The controller is also used to determine the mesh to be changed according to the target component to be changed and preset parameter configuration table
Mark the type of parameter, wherein the preset parameter configuration table includes changing the corresponding relationship of target component and parameter type;
The controller is also used to determine target component storage unit according to the type of the target component to be changed, and according to institute
The target component that target component change directive stores up the target component memory cell is stated to be modified;
The parameter storage unit is used to for the target component after change being synchronized in the parameter backup unit and back up.
10. electric power terminal according to claim 9, which is characterized in that the mesh of the target component memory cell storage
Mark parameter is provided with safety code, and when the target component is modified, the corresponding change of the safety code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910866921.9A CN110489439B (en) | 2019-09-12 | 2019-09-12 | Parameter processing method and power terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910866921.9A CN110489439B (en) | 2019-09-12 | 2019-09-12 | Parameter processing method and power terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110489439A true CN110489439A (en) | 2019-11-22 |
CN110489439B CN110489439B (en) | 2022-09-20 |
Family
ID=68557930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910866921.9A Active CN110489439B (en) | 2019-09-12 | 2019-09-12 | Parameter processing method and power terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110489439B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114003491A (en) * | 2021-10-15 | 2022-02-01 | 赛轮集团股份有限公司 | Test equipment parameter modification method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012014400A1 (en) * | 2010-07-27 | 2012-02-02 | パナソニック株式会社 | Data transfer control device and data transfer control method |
CN103106123A (en) * | 2012-12-27 | 2013-05-15 | 苏州佳世达电通有限公司 | Backup recovery device and wireless parameter backup recovery method |
WO2013107158A1 (en) * | 2012-01-19 | 2013-07-25 | 青岛海信传媒网络技术有限公司 | Method and system for managing system parameter in terminal device |
CN103676913A (en) * | 2013-12-27 | 2014-03-26 | 恒天创丰重工有限公司 | Method for engineering device electrical parameter protection |
CN104536398A (en) * | 2014-12-10 | 2015-04-22 | 沈阳远大电力电子科技有限公司 | Frequency converter monitoring method and system |
CN108647154A (en) * | 2018-05-14 | 2018-10-12 | 国网山东省电力公司阳谷县供电公司 | A method of carrying out parameter modification in concentrator |
US20190033830A1 (en) * | 2017-07-26 | 2019-01-31 | Fanuc Corporation | Numerical controller and method of controlling a numerical controller |
CN110209529A (en) * | 2019-04-29 | 2019-09-06 | 深圳市有方科技股份有限公司 | The guard method of radio frequency parameter and electronic equipment |
CN110225612A (en) * | 2018-03-02 | 2019-09-10 | 松下知识产权经营株式会社 | Micro-control unit, LED drive unit and products thereof parameter setting system |
-
2019
- 2019-09-12 CN CN201910866921.9A patent/CN110489439B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012014400A1 (en) * | 2010-07-27 | 2012-02-02 | パナソニック株式会社 | Data transfer control device and data transfer control method |
WO2013107158A1 (en) * | 2012-01-19 | 2013-07-25 | 青岛海信传媒网络技术有限公司 | Method and system for managing system parameter in terminal device |
CN103106123A (en) * | 2012-12-27 | 2013-05-15 | 苏州佳世达电通有限公司 | Backup recovery device and wireless parameter backup recovery method |
CN103676913A (en) * | 2013-12-27 | 2014-03-26 | 恒天创丰重工有限公司 | Method for engineering device electrical parameter protection |
CN104536398A (en) * | 2014-12-10 | 2015-04-22 | 沈阳远大电力电子科技有限公司 | Frequency converter monitoring method and system |
US20190033830A1 (en) * | 2017-07-26 | 2019-01-31 | Fanuc Corporation | Numerical controller and method of controlling a numerical controller |
CN110225612A (en) * | 2018-03-02 | 2019-09-10 | 松下知识产权经营株式会社 | Micro-control unit, LED drive unit and products thereof parameter setting system |
CN108647154A (en) * | 2018-05-14 | 2018-10-12 | 国网山东省电力公司阳谷县供电公司 | A method of carrying out parameter modification in concentrator |
CN110209529A (en) * | 2019-04-29 | 2019-09-06 | 深圳市有方科技股份有限公司 | The guard method of radio frequency parameter and electronic equipment |
Non-Patent Citations (2)
Title |
---|
JOSEP M.GUERRERO: "Hierarchical Control of Droop-Controlled AC and DC Microgrids—A General Approach Toward Standardization", 《IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS》 * |
董自奇: "智能电网输配电互动系统的研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114003491A (en) * | 2021-10-15 | 2022-02-01 | 赛轮集团股份有限公司 | Test equipment parameter modification method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110489439B (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102005818A (en) | Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line | |
EP3709149B1 (en) | Off-board flash memory | |
CN103166765B (en) | A kind of PoE power threshold changing method and equipment | |
CN111130962A (en) | Automatic configuration method, equipment, system and storage medium for switch | |
CN106371869B (en) | IEC61850 configuration software implementation method for bay level equipment of intelligent substation | |
CN107645310B (en) | The data transmission device and data transmission method of breaker controller | |
CN111401864A (en) | Regulation and control programmed operation application system based on artificial intelligence | |
CN109656607A (en) | A kind of full address scaling method that supporting super large nominal data amount and system | |
CN102608497A (en) | Power failure diagnosis method and device | |
CN109032318A (en) | A kind of power monitoring system and storage server system | |
CN104485748A (en) | System and method for monitoring UPS of transformer substation | |
CN104505947A (en) | Transformer substation direct current power supply monitoring system and transformer substation direct current power supply monitoring method | |
CN110489439A (en) | A kind of parameter processing method and electric power terminal | |
CN108768995B (en) | Substation self-adaptive master station access method | |
CN104181836B (en) | Signal switching apparatus | |
CN110096291A (en) | Power management chip upgrades circuit, method and the network equipment | |
CN102841634A (en) | Server mainboard | |
CN104504537A (en) | Transformer substation alternating current power supply monitoring system and transformer substation alternating current power supply monitoring method | |
CN107707544A (en) | A kind of equipment automatic identification collocation methods of IEC 61850 | |
CN110231951A (en) | A kind of multiple single chip microcomputer program upgrade system and its method | |
CN100394384C (en) | Method and system for on-line updating of network | |
CN209460601U (en) | A kind of distributed micro-capacitance sensor protection system based on the communication of high speed real-time ethernet | |
CN113063471A (en) | NB-IoT intelligent gas meter based on OpenCPU technology | |
CN208752958U (en) | The under-voltage protecting circuit and embedded system of storage chip | |
CN202841134U (en) | Main control exchange board heat backup system based on data center |
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 |