CN107491322A - A kind of control method and device of parameter storage - Google Patents
A kind of control method and device of parameter storage Download PDFInfo
- Publication number
- CN107491322A CN107491322A CN201710538947.1A CN201710538947A CN107491322A CN 107491322 A CN107491322 A CN 107491322A CN 201710538947 A CN201710538947 A CN 201710538947A CN 107491322 A CN107491322 A CN 107491322A
- Authority
- CN
- China
- Prior art keywords
- storage
- configuration parameter
- parameter
- subregion
- storage subregion
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Storage Device Security (AREA)
Abstract
The invention provides a kind of control method and device of parameter storage, its method includes:Including step:S100 establishes the first storage subregion;Configuration parameter corresponding to equipment to be configured is stored in the first storage subregion by S200;The configuration parameter being stored in the first storage subregion is synchronously stored in the second storage subregion by S300, and the second storage subregion sets the region of data to preserve.The present invention is when electronic product updating software release or recovery shipping operations, configuration parameter meeting automatic synchronization after change in new partition is stored into the second storage subregion, the preservation of configuration parameter can not only be realized, moreover it is possible to avoid electronic equipment from occurring abnormal, lift Consumer's Experience.
Description
Technical field
The present invention relates to field of computer technology, espespecially a kind of control method and device of parameter storage.
Background technology
With the high speed development of science and technology, people become increasingly dependent on electronic product, in Intelligent hardware field, Hen Duo electricity
Sub- product since the listing all can constantly upgrade software, only software, which constantly upgrades, can just better meet user to product
Demand, the function of product could be expanded.Further, since electronic product is in use for some time, can leave in systems a lot
" garbage files ", cause electronic product internal memory occupied and occur interim card etc. influence electronic product performance phenomenon, user
Typically electronic product can be subjected to factory reset.
But when the software upgrading to electronic product, recover to dispatch from the factory etc. operation when, therefore, to assure that configured factory parameters
Original value can not be resumed.And current problem is, escalation process, recovery shipping operations can cause configured power, mac addresses etc.
Exception occurs in parameter change, router power, and Consumer's Experience declines.When to router software upgrading, recovering the operation such as dispatch from the factory
When, prior art be from it is parameter-embedded be directly synchronized to nvram (Non-Volatile Random Access Memory,
Based non-volatile random access holder, refer to a kind of RAM for remaining to keep data after power-off) subregion, factory parameters are independent
It is stored in factory subregions, causes similar operations to reduce configured parameter value.
The content of the invention
It is an object of the invention to provide a kind of control method and device of parameter storage, realization ensures configured parameter not
It can be changed because non-user operates reason, avoid electronic product from the problem of abnormal occur.
Technical scheme provided by the invention is as follows:
A kind of control method of parameter storage, including step:S100 establishes the first storage subregion;S200 is by equipment to be configured
Corresponding configuration parameter is stored in the first storage subregion;The configuration that S300 will be stored in the first storage subregion
Parameter synchronization is stored in the second storage subregion, and the second storage subregion sets the region of data to preserve.
Further, the step S200 includes step:S210 is the first work when the mode of operation of the equipment to be configured
During operation mode, the configuration parameter of user's input is received, and configuration parameter renewal first storage inputted according to the user
Subregion.
Further, the step S200 includes step:S220 is the second work when the mode of operation of the equipment to be configured
During operation mode, judge whether the first storage subregion is empty blocks;If so, perform step S230;Otherwise, step is performed
S240;S230 calls the configuration script having previously been stored in file system that parameter preset is stored in into the first storage subregion;
S240 judges whether to receive modification configuration parameter instruction;The modification configuration parameter instruction includes the configuration ginseng of user's input
Number;If so, perform step S250;The configuration parameter that S250 inputs according to the user is substituted in the first storage subregion
Existing configuration parameter.
Further, the S300 includes step:S310 judges that the configuration parameter in the first storage subregion is
It is no to change;If so, perform step S320;S320 obtains the configuration parameter after the change in the first storage subregion, and
Configuration parameter synchronized update after the change is substituted into the already present configuration parameter in the second storage subregion.
Further, step is included after the step S300:S400 reads from the described first storage subregion and synchronously stored
Synchronous configuration parameter in the described second storage subregion;S500 calls the synchronization being stored in the second storage subregion
Configuration parameter configures to the equipment to be configured.
The present invention also provides a kind of control device of parameter storage, including the second storage subregion, in addition to:Establish module,
Establish the first storage subregion;Control module, configuration parameter corresponding to equipment to be configured is stored in the first storage subregion, and
The configuration parameter being stored in the first storage subregion is synchronously stored in the second storage subregion, second storage
Subregion is deposited to preserve the region of setting data.
Further, the control module includes:Receiving unit, receive the configuration parameter of user's input;First control is single
Member, when the mode of operation of the equipment to be configured is the first mode of operation, store the user that the receiving unit receives
The configuration parameter of input stores subregion described first.
Further, the control module also includes:First judging unit, when the mode of operation of the equipment to be configured is
During the second mode of operation, judge whether the first storage subregion is empty blocks;Second control unit, when the described first judgement
When unit judgement the first storage subregion is empty blocks, call the configuration script having previously been stored in file system will be default
Parameter is stored in the first storage subregion;Second judging unit, when first judging unit judges first storage point
When area is not empty blocks, judge whether receiving unit receives modification configuration parameter instruction;The modification configuration parameter instruction
Include the configuration parameter of user's input;3rd control unit, when first judging unit judges the first storage subregion not
It is empty blocks, and second judging unit judgement receiving unit is received when changing configuration parameter instruction, according to institute
The configuration parameter for stating user's input substitutes existing configuration parameter in the first storage subregion.
Further, the control module also includes:3rd judging unit, judge described in the first storage subregion
Whether configuration parameter changes;Updating block, the configuration parameter after the change in the first storage subregion is obtained, and by institute
State the configuration parameter synchronized update after change and substitute the already present configuration parameter in the second storage subregion.
Further, in addition to:Read module, read from the described first storage subregion and be synchronously stored in second storage
Synchronous configuration parameter in subregion;Configuration module, call the synchronous configuration parameter being stored in the second storage subregion
The equipment to be configured is configured.
The control method and device stored by a kind of parameter provided by the invention, can bring following at least one beneficial
Effect:
1) when electronic product updating software release or recovery shipping operations, new partition ensures the present invention
The parameter of configuration will not change, and avoid electronic equipment from occurring abnormal, lift Consumer's Experience.
2) the configuration parameter meeting automatic synchronization after the change in new partition of the present invention is stored into the second storage subregion, not only
The preservation of configuration parameter can be realized, it is not easy to be tampered, provide the user conveniently.
Brief description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, the control to a kind of storage of parameter
Above-mentioned characteristic, technical characteristic, advantage and its implementation of method and device are further described.
Fig. 1 is a kind of flow chart of one embodiment of the control method of parameter storage of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of the control method of parameter storage of the present invention;
Fig. 3 is a kind of flow chart of another embodiment of the control method of parameter storage of the present invention;
Fig. 4 is a kind of flow chart of another embodiment of the control method of parameter storage of the present invention;
Fig. 5 is a kind of structural representation of one embodiment of the control device of parameter storage of the present invention;
Fig. 6 is a kind of structural representation of another embodiment of the control device of parameter storage of the present invention;
Fig. 7 is a kind of structural representation of an example of the control method of parameter storage of the present invention;
Fig. 8 is a kind of flow chart of an example of the control method of parameter storage of the present invention;
Fig. 9 is a kind of flow chart of an example of the control method of parameter storage of the present invention.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented
Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures
Part, one of those is only symbolically depicted, or only marked one of those.Herein, "one" is not only represented
" only this ", the situation of " more than one " can also be represented.
Fig. 1 is a kind of one embodiment of the control method of parameter storage of the present invention, including:
S100 establishes the first storage subregion;
Configuration parameter corresponding to equipment to be configured is stored in the first storage subregion by S200;
The configuration parameter being stored in the first storage subregion is synchronously stored in the second storage subregion, institute by S300
The second storage subregion is stated to preserve the region of setting data.
Specifically, in the present embodiment, when the software upgrading to router, mobile phone etc. electronic equipment, the behaviour such as recover to dispatch from the factory
When making, therefore, to assure that configured factory parameters can not be resumed original value.And current problem is, escalation process, recovery are dispatched from the factory
Operation can cause the parameter changes such as configured power, mac addresses, and exception occurs in electronic equipment, and Consumer's Experience declines.The present invention
It is new to set one first storage subregion to deposit this parameter so that after recovery shipping operations or during edition upgrading, to have obtained
The configuration parameter obtained will not be reset, if configuration parameter changes in newly-built subregion, then the change in new partition
Configuration parameter meeting automatic synchronization afterwards is stored into the second storage subregion, can not only realize the preservation of configuration parameter, it is not easy to quilt
Distort, moreover, process is also uncomplicated, provide the user conveniently.
Fig. 2 is a kind of another embodiment of the control method of parameter storage of the present invention, including:
S100 establishes the first storage subregion;
S210 receives the configuration ginseng of user's input when the mode of operation of the equipment to be configured is the first mode of operation
Number, and configuration parameter renewal the first storage subregion inputted according to the user;
The configuration parameter being stored in the first storage subregion is synchronously stored in the second storage subregion, institute by S300
The second storage subregion is stated to preserve the region of setting data.
Specifically, the present embodiment is the optimal enforcement example of above-described embodiment, when mode of operation is the first mode of operation, no
By whether there are the configuration parameter of the history inputted in the first storage subregion, as long as being in the first mode of operation,
Equipment so to be configured once receives the configuration parameter of user's input in input interface, then just currently defeated according to the user
New configuration parameter renewal the first storage subregion entered, i.e., if the first storage subregion or empty blocks, then just store up
Deposit the configuration parameter of user's input.And if the first storage subregion is not empty blocks, the configuration for the storage of there are over
Parameter, then just delete in the past storage configuration parameter and according to input interface receive user input new configuration parameter come
The first storage area of covering renewal.New setting one first of the invention stores subregion to deposit this parameter so that recovers behaviour of dispatching from the factory
After work or during edition upgrading, acquired configuration parameter will not be reset, if configuration parameter is sent out in newly-built subregion
Changing, then the configuration parameter meeting automatic synchronization after the change in new partition is stored into the second storage subregion, can not only
Realize the preservation of configuration parameter, it is not easy to be tampered, moreover, process is also uncomplicated, provide the user conveniently.
Fig. 3 is a kind of another embodiment of the control method of parameter storage of the present invention, including:
S100 establishes the first storage subregion;
S220 judges that the first storage subregion is when the mode of operation of the equipment to be configured is the second mode of operation
No is empty blocks;If so, perform step S230;Otherwise, step S240 is performed;
S230 calls the configuration script having previously been stored in file system that parameter preset is stored in into first storage point
Area;
S240 judges whether to receive modification configuration parameter instruction;The modification configuration parameter instruction includes user's input
Configuration parameter;If so, perform step S250;
The configuration parameter that S250 inputs according to the user, which substitutes existing configuration in the first storage subregion, joins
Number;
The configuration parameter being stored in the first storage subregion is synchronously stored in the second storage subregion, institute by S300
The second storage subregion is stated to preserve the region of setting data.
Specifically, the present embodiment is the optimal enforcement example of above-described embodiment, it is first when mode of operation is the second mode of operation
First judge whether the first storage subregion is empty blocks, when the described first storage subregion is empty blocks, then wait to match somebody with somebody
Put the configuration script that equipment calls are had previously been stored in file system and parameter preset is stored in the first storage subregion;Work as institute
When to state the first storage subregion be not empty blocks, judge whether to receive modification configuration parameter instruction within a preset time interval,
If receive modification configuration parameter instruction within a preset time interval, according in the modification configuration parameter instruction received
The configuration parameter of user's input substitutes existing configuration parameter in the first storage subregion, then will be stored in described the
The configuration parameter in one storage subregion is synchronously stored in the second storage subregion, and the second storage subregion sets number to preserve
According to region.It is of the invention new to set one first storage subregion to deposit this parameter so as to recover after shipping operations or version
In escalation process, acquired configuration parameter will not be reset, if configuration parameter changes in newly-built subregion, then new
The configuration parameter meeting automatic synchronization built after the change in subregion is stored into the second storage subregion, can not only realize configuration parameter
Preserve, it is not easy to be tampered, moreover, process is also uncomplicated, provide the user conveniently.
Fig. 4 is a kind of another embodiment of the control method of parameter storage of the present invention, including:
S100 establishes the first storage subregion;
Configuration parameter corresponding to equipment to be configured is stored in the first storage subregion by S200;
S310 judges whether the configuration parameter in the first storage subregion changes;If so, perform step
S320;
S320 obtains the configuration parameter after the change in the first storage subregion, and by the configuration parameter after the change
Synchronized update substitutes the already present configuration parameter in the second storage subregion;
S400 reads the synchronous configuration parameter being synchronously stored in from the described first storage subregion in the second storage subregion;
S500 calls the synchronous configuration parameter being stored in the second storage subregion to enter the equipment to be configured
Row configuration.
Specifically, in the present embodiment, because possible user needs to carry out continually changing to configure joining according to the demand of oneself
Number etc. operation, and be so possible to that deadlock, the situation of system necrosis occurs, then the present invention establishes the first storage subregion,
By configure equipment corresponding configuration parameter be stored in the first storage subregion, avoid electronic equipment recover shipping operations after or version
In this escalation process, acquired configuration parameter is reset, if configuration parameter changes in newly-built subregion, then newly-built
Configuration parameter meeting automatic synchronization after change in subregion is stored into the second storage subregion, can not only realize the guarantor of configuration parameter
Deposit, it is not easy to be tampered, moreover, process is also uncomplicated, provide the user conveniently.
For how creating the first new storage subregion, comprising the following steps that, including step before the step S100:
S010 obtains the remaining space capacity in default storage region;
S020 judges whether the remaining space capacity is more than the object space capacity for establishing the first storage subregion;If
It is to perform step S100;Otherwise, step S030 is performed;
After the default storage region is carried out cleaning operation by S030, return to step S010.
Specifically, in the present embodiment, the first storage subregion can be new in the remaining space capacity in default storage region
The subregion built or USB flash disk, mobile hard disk etc. may move storage medium, can so be stored up when needed by mobile
Deposit after medium and equipment to be configured is attached, then upload or imports configuration parameter and store subregion to second.Above-mentioned all implementations
In example, the second storage subregion is FLASH subregions or NVRAN subregions etc., based non-volatile random access holder, refers to power off
Remain to keep a kind of storage medium of data afterwards.
Fig. 5 is a kind of one embodiment of the control device 100 of parameter storage of the present invention, including
Module 110 is established, establishes the first storage subregion;
Control module 120, configuration parameter corresponding to equipment to be configured is stored in the first storage subregion, and will storage
The configuration parameter in the described first storage subregion is synchronously stored in the second storage subregion, the second storage subregion
To preserve the region for setting data.
Specifically, the present embodiment electronic product updating software release or recover shipping operations when, newly-built point
Area ensures that configured parameter will not change, and avoids electronic equipment from occurring abnormal, lifts Consumer's Experience.Change in new partition
Configuration parameter meeting automatic synchronization afterwards is stored into the second storage subregion, can not only realize the preservation of configuration parameter, it is not easy to quilt
Distort, provide the user conveniently, and process is uncomplicated.
With reference to shown in figure 6, the present invention provides a kind of another embodiment of the control device 100 of parameter storage, this implementation
Other parts are same as the previously described embodiments in example, including:Establish module 110, control module 120;
In addition the control module 120 also includes:
Receiving unit 121, receive the configuration parameter of user's input;
First control unit 122, when the mode of operation of the equipment to be configured is the first mode of operation, connect described in storage
The configuration parameter for receiving the user input that unit 121 receives stores subregion described first.
First judging unit 123, when the mode of operation of the equipment to be configured is the second mode of operation, judge described
Whether one storage subregion is empty blocks;
Second control unit 124, when first judging unit 123 judges that the first storage subregion is empty blocks
When, call the configuration script having previously been stored in file system that parameter preset is stored in into the first storage subregion;
Second judging unit 125, when first judging unit 123 judges that the first storage subregion is not empty blocks
When, judge whether receiving unit 121 receives modification configuration parameter instruction;The modification configuration parameter instruction includes user's input
Configuration parameter;
3rd control unit 126, when first judging unit 123 judges that the first storage subregion is not blank point
Area, and second judging unit 125 judge the receiving unit 121 receive modification configuration parameter instruction when, according to described
The configuration parameter of user's input substitutes existing configuration parameter in the first storage subregion.
3rd judging unit 127, judges whether the configuration parameter in the first storage subregion changes;
Updating block 128, the configuration parameter after the change in the first storage subregion is obtained, and by after the change
Configuration parameter synchronized update substitutes the already present configuration parameter in the second storage subregion.
Specifically, in the present embodiment, when mode of operation is the first mode of operation, no matter in the first storage subregion whether
The configuration parameter of the history inputted through there are, as long as being in the first mode of operation, then equipment to be configured is once defeated
Incoming interface receives the configuration parameter of user's input, then the new configuration parameter just currently inputted according to the user updates institute
The first storage subregion is stated, i.e., if the first storage subregion or empty blocks, then just store the configuration ginseng of user's input
Number.And if the first storage subregion is not empty blocks, the configuration parameter for the storage of there are over, then just delete and store in the past
Configuration parameter and according to input interface receive user input new configuration parameter come cover renewal the first storage area.When
When mode of operation is the second mode of operation, first determine whether the first storage subregion is empty blocks, when the described first storage
When to deposit subregion be empty blocks, then equipment calls to be configured have previously been stored in configuration script in file system by parameter preset
It is stored in the first storage subregion;When the described first storage subregion is not empty blocks, judge within a preset time interval
Whether modification configuration parameter instruction is received, if receive modification configuration parameter instruction within a preset time interval, according to
The configuration parameter of user's input in the modification configuration parameter instruction received substitutes have been existed in the first storage subregion
Configuration parameter, the configuration parameter that then will be stored in the first storage subregion is synchronously stored in the second storage point
Area, the second storage subregion set the region of data to preserve.New setting one first of the invention stores subregion to deposit this
Parameter so that after recovery shipping operations or during edition upgrading, acquired configuration parameter will not be reset, newly-built point
If configuration parameter changes in area, then the configuration parameter meeting automatic synchronization after the change in new partition is stored into second
Subregion is stored, the preservation of configuration parameter can not only be realized, it is not easy to be tampered, moreover, process is also uncomplicated, reduce the later stage
User needs to set the process of configuration parameter one by one again in addition, avoids the waste on temporal waste and manpower, is user
It is convenient to provide.
Preferably, in the present embodiment, in addition to:
Read module 130, read the synchronization being synchronously stored in from the described first storage subregion in the second storage subregion
Configuration parameter;
Configuration module 140, the synchronous configuration parameter being stored in the second storage subregion is called to wait to match somebody with somebody to described
Install standby configured.
Specifically, in the present embodiment when to electronic product software upgrading, recover to dispatch from the factory etc. operation when.Electronic product at present
Configuration parameter store method has the defects of larger, after new parameter is configured, if upgraded version or recovery shipping operations,
Original default value can be recovered, cause some default values such as transmit power of electronic product that exception occurs, Consumer's Experience declines.
The newly-built subregion of the present invention, when upgraded version or recovery shipping operations, it is ensured that configured parameter will not change
Become.Configuration parameter is stored by a newly-built subregion, recovery dispatch from the factory or edition upgrading during, measured the configuration of acquisition
Parameter will not be reset, if configuration parameter changes in newly-built subregion, then the configuration after change in new partition
Parameter meeting automatic synchronization is stored into the second storage subregion, can not only realize the preservation of configuration parameter, it is not easy to it is tampered, and
It and process is also uncomplicated, will not additionally increase the workload of electronic equipment, provide the user conveniently.
It is an a kind of example of the control method of parameter storage of the present invention with reference to shown in figure 7,8,9, including:
As shown in fig. 7,1,2,4 part is the part having had in the prior art, and parameter preset built in 1 part, the storage of 2 parts
There is configuration script, 3 can real-time dynamic storing parameter.But at present when to electronic product software upgrading, recovering the operation such as dispatch from the factory
When, the configuration parameter store method of electronic product has the defects of larger, after new parameter is configured, if upgraded version or
Recover shipping operations, it is default value that can obtain the built-in parameter preset in 1 from nvram recoveries, causes the one of electronic product
A little default values because 4 during the software upgrading upgrading or factory reset can to 4 in the parameter that stores be updated,
For example seem that exception occurs in transmit power in router, channel, MAC Address etc. hardware parameter, Consumer's Experience declines.And
Present specification is that 3 part factory subregions in newly-built one first storage subregion, such as Fig. 7 store configuration parameter, from
And when user needs to carry out software upgrading upgrading or factory reset to electronic product, can be synchronous by 4 in Fig. 7
Call 3 in configuration parameter, so as to avoid recovery from dispatching from the factory or edition upgrading during, the configuration parameter for having measured acquisition will not
It is reset, if configuration parameter changes in newly-built subregion, then the configuration parameter after the change in new partition can be certainly
It is dynamic to be synchronously stored into the second storage subregion, the preservation of configuration parameter can not only be realized, it is not easy to be tampered, moreover, process
It is uncomplicated, it will not additionally increase the workload of electronic equipment, provide the user conveniently.A newly-built factory subregion stores
Factory parameters, recovery dispatch from the factory or edition upgrading during, configured factory parameters will not be reset, modification factory point
Qu Hou, factory partitioned parameters meeting automatic synchronization are raw to nvram subregions (being one kind in the present invention in the second storage subregion)
Effect.
In addition, as shown in figure 8, the mode that configuration parameter to factory are write under different patterns is different, specific steps are such as
Under:
It is electric on S11 electronic equipments;
S12 judges present mode for factory mode, into step S13;S13 reads factory subregions;
S14 judges to whether there is parameter in factory subregions;
S15 calls configuration script that parameter preset is automatically write into factory subregions;
S16 judges present mode for user model, into step S17;
The configuration parameter that user inputs is written to factory subregions by S17;
In the present embodiment, if being the first mode of operation in the present invention into user model, input can be passed through under this pattern
Order write parameters are to factory subregions.If being the second mode of operation of the invention into factory mode, factory subregions are read,
If sky, configuration script is called automatically to write into parameter preset in factory subregions.If into factory mode, read
Factory subregions, if value, then it represents that subregion has been written into parameter, can by input order modify factory subregions join
Number.As shown in figure 9, configuration parameter is write after factory subregions, it is necessary to configuration parameter is synchronously written into the second storage subregion,
Comprise the following steps that:
It is electric on S21 electronic equipments;
S22 judges whether the first storage subregion such as factory subregions write configuration parameter;
S23 reads configuration parameter from factory subregions automatically when factory subregions write configuration parameter;
Configuration parameter write-in the second storage subregion such as nvram subregions of reading are carried out subsequent configuration by S24;
In the present embodiment, on electronic product after electricity, judge whether factory subregions have and write new configuration parameter, if any
Modification writes new configuration parameter, then new configuration parameter is write to nvram subregions from factory subregions automatically, if do not had
Have and write new parameter, then do not change in nvram subregions existing configuration parameter, configuration parameter is probably default ginseng here
Number, it is also possible to which later stage user is tested obtained calibration parameter.A subregion is newly set to deposit this parameter.Recovery is dispatched from the factory
Or during edition upgrading, the parameter set will not be reset.The present invention is in electronic product updating software release or extensive
When multiple shipping operations, new partition ensures that configured parameter will not change, and avoids electronic equipment from occurring abnormal, lifting
Consumer's Experience.Configuration parameter meeting automatic synchronization after change in new partition is stored into the second storage subregion, can not only be real
The preservation of existing configuration parameter, it is not easy to be tampered, provide the user conveniently.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of control method of parameter storage, it is characterised in that including step:
S100 establishes the first storage subregion;
Configuration parameter corresponding to equipment to be configured is stored in the first storage subregion by S200;
The configuration parameter that S300 will be stored in the first storage subregion is synchronously stored in the second storage subregion, and described the
Two storage subregions set the region of data to preserve.
2. the control method of parameter storage according to claim 1, it is characterised in that the step S200 includes step:
S210 receives the configuration parameter of user's input when the mode of operation of the equipment to be configured is the first mode of operation, and
Configuration parameter renewal the first storage subregion inputted according to the user.
3. the control method of parameter storage according to claim 1, it is characterised in that the step S200 includes step:
S220 when the mode of operation of the equipment to be configured is the second mode of operation, judge it is described first storage subregion whether be
Empty blocks;If so, perform step S230;Otherwise, step S240 is performed;
S230 calls the configuration script having previously been stored in file system that parameter preset is stored in into the first storage subregion;
S240 judges whether to receive modification configuration parameter instruction;The modification configuration parameter instruction includes the configuration of user's input
Parameter;If so, perform step S250;
The configuration parameter that S250 is inputted according to the user substitutes in the first storage subregion existing configuration parameter.
4. the control method of parameter storage according to claim 1, it is characterised in that the S300 includes step:
S310 judges whether the configuration parameter in the first storage subregion changes;If so, perform step S320;
S320 obtains the configuration parameter after the change in the first storage subregion, and the configuration parameter after the change is synchronous
Renewal substitutes the already present configuration parameter in the second storage subregion.
5. according to claim any one of 1-4 parameter storage control method, it is characterised in that the step S300 it
Include step afterwards:
S400 reads the synchronous configuration parameter being synchronously stored in from the described first storage subregion in the second storage subregion;
S500 calls the synchronous configuration parameter being stored in the second storage subregion to match somebody with somebody the equipment to be configured
Put.
6. a kind of control device of parameter storage, including the second storage subregion, it is characterised in that also include:
Module is established, establishes the first storage subregion;
Control module, configuration parameter corresponding to equipment to be configured is stored in the first storage subregion, and will be stored in described
The configuration parameter in first storage subregion is synchronously stored in the second storage subregion, and the second storage subregion is preservation
The region of data is set.
7. the control device of parameter storage according to claim 6, it is characterised in that the control module includes:
Receiving unit, receive the configuration parameter of user's input;
First control unit, when the mode of operation of the equipment to be configured is the first mode of operation, store the receiving unit
The configuration parameter of the user input received stores subregion described first.
8. the control device of parameter storage according to claim 6, it is characterised in that the control module also includes:
First judging unit, when the mode of operation of the equipment to be configured is the second mode of operation, judge first storage
Whether subregion is empty blocks;
Second control unit, when it is empty blocks that first judging unit, which judges the first storage subregion, call advance
Parameter preset is stored in the first storage subregion by the configuration script being stored in file system;
Second judging unit, when it is not empty blocks that first judging unit, which judges the first storage subregion, judge to connect
Receive whether unit receives modification configuration parameter instruction;The modification configuration parameter instruction includes the configuration parameter of user's input;
3rd control unit, when first judging unit judges that the first storage subregion is not empty blocks, and described the
When two judging units judge that the receiving unit receives modification configuration parameter instruction, according to the configuration parameter of user input
Substitute existing configuration parameter in the first storage subregion.
9. the control device of parameter storage according to claim 6, it is characterised in that the control module also includes:
3rd judging unit, judges whether the configuration parameter in the first storage subregion changes;
Updating block, the configuration parameter after the change in the first storage subregion is obtained, and the configuration after the change is joined
Number synchronized update substitutes the already present configuration parameter in the second storage subregion.
10. the control device of the parameter storage according to claim any one of 6-9, it is characterised in that also include:
Read module, read the synchronous configuration ginseng being synchronously stored in from the described first storage subregion in the second storage subregion
Number;
Configuration module, the synchronous configuration parameter being stored in the second storage subregion is called to enter the equipment to be configured
Row configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710538947.1A CN107491322A (en) | 2017-07-04 | 2017-07-04 | A kind of control method and device of parameter storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710538947.1A CN107491322A (en) | 2017-07-04 | 2017-07-04 | A kind of control method and device of parameter storage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107491322A true CN107491322A (en) | 2017-12-19 |
Family
ID=60644326
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710538947.1A Pending CN107491322A (en) | 2017-07-04 | 2017-07-04 | A kind of control method and device of parameter storage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107491322A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108227629A (en) * | 2017-12-29 | 2018-06-29 | 浙江众邦机电科技有限公司 | Control method/system, readable storage medium storing program for executing and the electronic equipment of electronic equipment |
CN108958836A (en) * | 2018-06-27 | 2018-12-07 | 泰康保险集团股份有限公司 | A kind of management method of profile data, system, medium and electronic equipment |
CN111078237A (en) * | 2018-10-19 | 2020-04-28 | 环达电脑(上海)有限公司 | Synchronization method |
CN111767062A (en) * | 2019-03-13 | 2020-10-13 | 北京字节跳动网络技术有限公司 | Application configuration data updating method, device, equipment and storage medium |
CN113312091A (en) * | 2020-02-27 | 2021-08-27 | 西安诺瓦星云科技股份有限公司 | Parameter processing method, device and system |
CN114888714A (en) * | 2022-04-27 | 2022-08-12 | 北京烁科精微电子装备有限公司 | Wafer polishing protection method, device, equipment and medium |
CN116737089A (en) * | 2023-08-15 | 2023-09-12 | 北京紫光芯能科技有限公司 | Method, device and system for storing configuration data |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866207A (en) * | 2005-05-18 | 2006-11-22 | 鸿富锦精密工业(深圳)有限公司 | Updating method for preset value initial setting program of embedded system |
CN103077048A (en) * | 2012-12-28 | 2013-05-01 | 东莞宇龙通信科技有限公司 | Method for updating operating parameters of communication module and communication terminal |
CN103514013A (en) * | 2013-09-11 | 2014-01-15 | 深圳市共进电子股份有限公司 | Gateway product FLASH configuration loss processing method |
CN104156279A (en) * | 2014-08-04 | 2014-11-19 | 上海斐讯数据通信技术有限公司 | Backup method for configuration data of router |
CN104484592A (en) * | 2014-12-31 | 2015-04-01 | 广州视源电子科技股份有限公司 | Starting method and system of mobile equipment factory pattern |
CN105072044A (en) * | 2015-07-28 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | System and method for remotely recovering router by using router guide system |
CN105988851A (en) * | 2015-05-15 | 2016-10-05 | 乐视致新电子科技(天津)有限公司 | Terminal setting method and device |
CN106155716A (en) * | 2015-03-30 | 2016-11-23 | 联想(北京)有限公司 | The configuration store method of BIOS and configuration save set |
CN106201362A (en) * | 2016-07-22 | 2016-12-07 | 纳瓦电子(上海)有限公司 | A kind of storage configuration information method |
CN106708587A (en) * | 2017-01-11 | 2017-05-24 | 微鲸科技有限公司 | Parameter configuration method and system |
-
2017
- 2017-07-04 CN CN201710538947.1A patent/CN107491322A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866207A (en) * | 2005-05-18 | 2006-11-22 | 鸿富锦精密工业(深圳)有限公司 | Updating method for preset value initial setting program of embedded system |
CN103077048A (en) * | 2012-12-28 | 2013-05-01 | 东莞宇龙通信科技有限公司 | Method for updating operating parameters of communication module and communication terminal |
CN103514013A (en) * | 2013-09-11 | 2014-01-15 | 深圳市共进电子股份有限公司 | Gateway product FLASH configuration loss processing method |
CN104156279A (en) * | 2014-08-04 | 2014-11-19 | 上海斐讯数据通信技术有限公司 | Backup method for configuration data of router |
CN104484592A (en) * | 2014-12-31 | 2015-04-01 | 广州视源电子科技股份有限公司 | Starting method and system of mobile equipment factory pattern |
CN106155716A (en) * | 2015-03-30 | 2016-11-23 | 联想(北京)有限公司 | The configuration store method of BIOS and configuration save set |
CN105988851A (en) * | 2015-05-15 | 2016-10-05 | 乐视致新电子科技(天津)有限公司 | Terminal setting method and device |
CN105072044A (en) * | 2015-07-28 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | System and method for remotely recovering router by using router guide system |
CN106201362A (en) * | 2016-07-22 | 2016-12-07 | 纳瓦电子(上海)有限公司 | A kind of storage configuration information method |
CN106708587A (en) * | 2017-01-11 | 2017-05-24 | 微鲸科技有限公司 | Parameter configuration method and system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108227629A (en) * | 2017-12-29 | 2018-06-29 | 浙江众邦机电科技有限公司 | Control method/system, readable storage medium storing program for executing and the electronic equipment of electronic equipment |
CN108958836A (en) * | 2018-06-27 | 2018-12-07 | 泰康保险集团股份有限公司 | A kind of management method of profile data, system, medium and electronic equipment |
CN111078237A (en) * | 2018-10-19 | 2020-04-28 | 环达电脑(上海)有限公司 | Synchronization method |
CN111078237B (en) * | 2018-10-19 | 2023-05-09 | 环达电脑(上海)有限公司 | Synchronization method |
CN111767062A (en) * | 2019-03-13 | 2020-10-13 | 北京字节跳动网络技术有限公司 | Application configuration data updating method, device, equipment and storage medium |
CN113312091A (en) * | 2020-02-27 | 2021-08-27 | 西安诺瓦星云科技股份有限公司 | Parameter processing method, device and system |
CN113312091B (en) * | 2020-02-27 | 2024-02-06 | 西安诺瓦星云科技股份有限公司 | Parameter processing method, device and system |
CN114888714A (en) * | 2022-04-27 | 2022-08-12 | 北京烁科精微电子装备有限公司 | Wafer polishing protection method, device, equipment and medium |
CN116737089A (en) * | 2023-08-15 | 2023-09-12 | 北京紫光芯能科技有限公司 | Method, device and system for storing configuration data |
CN116737089B (en) * | 2023-08-15 | 2023-11-21 | 北京紫光芯能科技有限公司 | Method, device and system for storing configuration data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107491322A (en) | A kind of control method and device of parameter storage | |
CN102129375B (en) | Method and equipment for system upgrade of mobile terminal | |
CN105487980B (en) | The method and device that repairing applications are operating abnormally | |
US20170206079A1 (en) | Method and Device for Upgrading Software | |
CN107566165B (en) | Method and system for discovering and deploying available resources of power cloud data center | |
CN106610840A (en) | FOTA (Firmware Over-The-Air) upgrade method and system | |
CN105573864A (en) | Terminal system recovery method and system thereof | |
CN103297985B (en) | Base station collocation method and system | |
CN102625281A (en) | Wireless communication module and upgrade method thereof | |
CN103186404A (en) | System firmware update method and server system applying same | |
CN103067445A (en) | Method and device of software upgrading of distributed system | |
CN106603306A (en) | Network connection abnormity processing method and device | |
CN104375854B (en) | A kind of application updates method for down loading and user terminal | |
CN102938817A (en) | Storage mount achieving method and device under recovery mode of mobile phone | |
CN104572207A (en) | Intelligent accessories based APP expanded application method and intelligent accessories | |
CN104954482A (en) | Configuration management system and method | |
CN105721204A (en) | Firmware upgrading method and system for network adapters | |
CN104156279A (en) | Backup method for configuration data of router | |
CN105930178A (en) | Configurable parameter dynamic loading method and system | |
CN105591801A (en) | Virtual network function VNF fault processing method and VNF management equipment | |
CN104980886A (en) | Software upgrade method and device | |
CN104410511A (en) | Server management method and system | |
CN101616430A (en) | A kind of method and home gateway of managing family gateway software version | |
CN104793998A (en) | Terminal system resource management method and device | |
CN107016054A (en) | A kind of method and device of log information storage |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201105 Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Applicant before: Phicomm (Shanghai) Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171219 |
|
RJ01 | Rejection of invention patent application after publication |