Parameter updating method and parameter updating device, cultivation box and storage medium
Technical field
The present invention relates to intelligent planting technology field, in particular to a kind of parameter updating method of cultivation box, one kind
Parameter updating device, a kind of cultivation box and a kind of computer-readable recording medium of cultivation box.
Background technology
At present, existing cultivation box is connected by Wi-Fi (Wireless-Fidelity, WiMAX) and server mostly
Connect, and be connected by Wi-Fi, bluetooth etc. with terminal, wherein terminal is provided with the APP for management and control cultivation box
It (Application, application program), then can just start upgrading when terminal APP detects that cultivation box system needs upgrading, and be
System upgrading failure, for example there is exception etc. in network during system upgrade, easily causing cultivation box system can not run well, i.e.,
The healthy growth of crop can be influenceed during the configuration parameter update abnormal of cultivation box.
Therefore, it is how abnormal in cultivation box system upgrade, when causing the configuration parameter update abnormal of cultivation box, make cultivation box
It can run well, ensure plantation safety, avoid influenceing the healthy growth of crop, turn into technical problem urgently to be resolved hurrily.
The content of the invention
It is contemplated that at least solves one of technical problem present in prior art or correlation technique.
Therefore, it is an object of the present invention to provide a kind of parameter updating method of cultivation box, can be in cultivation box
When system exception or parameter update abnormal, effectively ensure that cultivation box can run well, ensure plantation safety, so as to avoid shadow
Ring the healthy growth of crop.
It is another object of the present invention to provide a kind of parameter updating device of cultivation box and including the parameter more new clothes
The cultivation box put.
It is yet a further object of the present invention to provide a kind of cultivation box.
A further object of the present invention is to provide a kind of computer-readable recording medium.
In order to realize above-mentioned at least one purpose, technical scheme according to a first aspect of the present invention, there is provided one kind plantation
The parameter updating method of case, the fixed partition for data storage, and the ginseng of the cultivation box are provided with the cultivation box
Number update method includes:The current configuration parameters of the cultivation box are backed up into the fixed partition to be used as the first backup ginseng
Number;When receiving the more new command to the current configuration parameters, the current configuration parameters are updated to target configuration ginseng
Number;Whether the operation that the current configuration parameters are updated to the target configuration parameter by detection succeeds;It is true according to testing result
It is fixed whether the target configuration parameter to be backed up into the fixed partition to be used as the second backup parameter.
The technical scheme, the independent fixed partition for data storage is set in cultivation box, specifically for plantation
The configuration parameter of case is backed up, and is stored in first using the current configuration parameters that cultivation box is used as the first backup parameter
In fixed partition, when needing the current configuration parameters to cultivation box to be updated, it will first be planted according to the more new command received
The current configuration parameters for planting case are updated to target configuration parameter, and reproducting periods keeps the backup parameter stored in fixed partition not
Become, and then the process to the current configuration parameters of cultivation box to be updated to target configuration parameter is monitored, and determines that parameter updates
Whether succeed, and then determine whether target configuration parameter backing up to fixed partition as the second backup parameter, in this way, passing through elder generation
The configuration parameter of cultivation box is updated determine whether to store the configuration parameter after renewal into fixed partition again carry out it is standby
Part, during preventing the system exception of cultivation box or parameter update abnormal, cultivation box can not run well, so as to ensure plantation peace
Entirely, avoid influenceing the healthy growth of crop.
In the above-mentioned technical solutions, it is preferable that it is described determined whether according to testing result the target configuration parameter is standby
Part to the fixed partition, the step of as the second backup parameter replacement the first backup parameter, including:When detecting institute
When stating current configuration parameters and being updated to target configuration parameter success, the target configuration parameter is backed up into the fixation point
Area is to be used as the second backup parameter;The current configuration parameters are updated to the target configuration parameter failure when detecting
When, reconfigure the cultivation box according to the first backup parameter.
, can be with if the current configuration parameters of cultivation box are successfully updated as target configuration parameter in the technical scheme
Cultivation box is operated according to newest configuration parameter, growing environment preferably is provided for crop, and can be by the target
Configuration parameter storage is backed up into fixed partition, and cultivation box is without available configuration ginseng during preventing the system exception of cultivation box
Number, influences plant growth;And if the current configuration parameters of cultivation box are updated to the procedure failure of target configuration parameter, i.e., can not
, then can be with order to ensure crop can grow in convenient environment when ensuring that cultivation box operates according to newest configuration parameter
Transfer the first backup parameter being stored in fixed partition and reconfigure cultivation box, so that it is according to configuration parameter newest before
Run well, reduced because the configuration parameter of cultivation box is updated unsuccessfully to the growth effect of crop.
In any of the above-described technical scheme, it is preferable that the current configuration parameters are updated into the target when detecting
During configuration parameter success, in addition to:The first prompt message that generation parameter is updated successfully, and send to user terminal, wherein, institute
The first prompt message is stated to be used to indicate that the cultivation box currently configures according to the target configuration parameter;And by the target
After the completion of configuration parameter is as the second backup parameter backup, the first backup parameter is deleted.
In the technical scheme, in order that user's moment grasps the latest configuration situation of cultivation box, then it will can plant
The current configuration parameters of case are successfully updated sends corresponding prompt message for target configuration parameter rear line terminal, to inform use
The currently used configuration parameter of family cultivation box, to further appreciate that the growth conditions of crop;Target is further being configured into ginseng
After number successfully backups to fixed partition as the second backup parameter, in order to save the memory space of fixed partition, and shadow is avoided
Ring the accuracy that the system failure after undated parameter obtains relatively newest configuration parameter, will can store before first
Backup parameter is deleted, i.e., with second backup parameters distribution the first backup parameter, makes to store cultivation box in fixed partition all the time current
The configuration parameter used.
In any of the above-described technical scheme, it is preferable that the current configuration parameters are updated into the target when detecting
When configuration parameter fails, in addition to:The second prompt message of parameter renewal failure is generated, and is sent to user terminal, wherein, institute
The second prompt message is stated to be used to indicate the cultivation box currently according to the first backup parameter configuration.
In the technical scheme, in order that user grasps the latest tendency of the parameter renewal of cultivation box, can be by currently
Corresponding prompt message is sent to user when configuration parameter is updated to target configuration parameter failure, to inform that user's cultivation box is current
The configuration parameter used, while the renewal failure of user's cultivation box parameter is informed, remind it to take corresponding counter-measure, avoid shadow
Ring the healthy growth of crop.
In any of the above-described technical scheme, it is preferable that the configuration parameter includes:Plant parameter and/or system configuration ginseng
Number.
In the technical scheme, the configuration parameter of cultivation box includes being used for the plantation parameter for ensuring healthy growth of crops, than
Such as temperature, humidity, gas concentration lwevel, oxygen concentration, pH value, and/or the system that can be run well for ensuring cultivation box
Configuration parameter, so that cultivation box can be the environment bar that crop normally provided or built healthy growth according to configuration plantation parameter
Part.
Technical scheme according to a second aspect of the present invention, there is provided a kind of parameter updating device of cultivation box, the plantation
The fixed partition for data storage is provided with case, and the parameter updating device of the cultivation box includes:Backup module, use
In the current configuration parameters of the cultivation box are backed up into the fixed partition to be used as the first backup parameter;Update module, use
When the more new command to the current configuration parameters is being received, the current configuration parameters are updated to target configuration ginseng
Number;Whether detection module, the operation that the current configuration parameters are updated to the target configuration parameter for detecting succeed;Control
Molding block, for being determined whether the target configuration parameter backing up to the fixed partition to be used as second according to testing result
Backup parameter.
The technical scheme, the independent fixed partition for data storage is set in cultivation box, specifically for plantation
The configuration parameter of case is backed up, and is stored in first using the current configuration parameters that cultivation box is used as the first backup parameter
In fixed partition, when needing the current configuration parameters to cultivation box to be updated, it will first be planted according to the more new command received
The current configuration parameters for planting case are updated to target configuration parameter, and reproducting periods keeps the backup parameter stored in fixed partition not
Become, and then the process to the current configuration parameters of cultivation box to be updated to target configuration parameter is monitored, and determines that parameter updates
Whether succeed, and then determine whether target configuration parameter backing up to fixed partition as the second backup parameter, in this way, passing through elder generation
The configuration parameter of cultivation box is updated determine whether to store the configuration parameter after renewal into fixed partition again carry out it is standby
Part, during preventing the system exception of cultivation box or parameter update abnormal, cultivation box can not run well, so as to ensure plantation peace
Entirely, avoid influenceing the healthy growth of crop.
In the above-mentioned technical solutions, it is preferable that the control module is specifically used for:When the detection module is detected institute
When stating current configuration parameters and being updated to target configuration parameter success, the backup module is controlled by the target configuration parameter
The fixed partition is backed up to be used as the second backup parameter;When the detection module detects ginseng is currently configured by described
When number is updated to the target configuration parameter failure, controls and reconfigure the cultivation box according to the first backup parameter.
, can be with if the current configuration parameters of cultivation box are successfully updated as target configuration parameter in the technical scheme
Cultivation box is operated according to newest configuration parameter, growing environment preferably is provided for crop, and can be by the target
Configuration parameter storage is backed up into fixed partition, and cultivation box is without available configuration ginseng during preventing the system exception of cultivation box
Number, influences plant growth;And if the current configuration parameters of cultivation box are updated to the procedure failure of target configuration parameter, i.e., can not
, then can be with order to ensure crop can grow in convenient environment when ensuring that cultivation box operates according to newest configuration parameter
Transfer the first backup parameter being stored in fixed partition and reconfigure cultivation box, so that it is according to configuration parameter newest before
Run well, reduced because the configuration parameter of cultivation box is updated unsuccessfully to the growth effect of crop.
In any of the above-described technical scheme, it is preferable that the parameter updating device of the cultivation box also includes:First prompting mould
Block, for when the detection module detects that the current configuration parameters are updated into the target configuration parameter succeeds, giving birth to
The first prompt message being updated successfully into parameter, and send to user terminal, wherein, first prompt message is used to indicate institute
Cultivation box is stated currently to configure according to the target configuration parameter;And the backup module is additionally operable to:Configured by the target
After the completion of parameter is as the second backup parameter backup, the first backup parameter is deleted.
In the technical scheme, in order that user's moment grasps the latest configuration situation of cultivation box, then it will can plant
The current configuration parameters of case are successfully updated sends corresponding prompt message for target configuration parameter rear line terminal, to inform use
The currently used configuration parameter of family cultivation box, to further appreciate that the growth conditions of crop;Target is further being configured into ginseng
After number successfully backups to fixed partition as the second backup parameter, in order to save the memory space of fixed partition, and shadow is avoided
Ring the accuracy that the system failure after undated parameter obtains relatively newest configuration parameter, will can store before first
Backup parameter is deleted, i.e., with second backup parameters distribution the first backup parameter, makes to store cultivation box in fixed partition all the time current
The configuration parameter used.
In any of the above-described technical scheme, it is preferable that the parameter updating device of the cultivation box also includes:Second prompting mould
Block, for when the detection module detects that the current configuration parameters are updated into the target configuration parameter fails, giving birth to
Into the second prompt message of parameter renewal failure, and send to user terminal, wherein, second prompt message is used to indicate institute
Cultivation box is stated currently according to the first backup parameter configuration.
In the technical scheme, in order that user grasps the latest tendency of the parameter renewal of cultivation box, can be by currently
Corresponding prompt message is sent to user when configuration parameter is updated to target configuration parameter failure, to inform that user's cultivation box is current
The configuration parameter used, while the renewal failure of user's cultivation box parameter is informed, remind it to take corresponding counter-measure, avoid shadow
Ring the healthy growth of crop.
In any of the above-described technical scheme, it is preferable that the configuration parameter includes:Plant parameter and/or system configuration ginseng
Number.
In the technical scheme, the configuration parameter of cultivation box includes being used for the plantation parameter for ensuring healthy growth of crops, than
Such as temperature, humidity, gas concentration lwevel, oxygen concentration, pH value, and/or the system that can be run well for ensuring cultivation box
Configuration parameter, so that cultivation box can be the environment bar that crop normally provided or built healthy growth according to configuration plantation parameter
Part.
Technical scheme according to a third aspect of the present invention, it is proposed that a kind of cultivation box, including the as above technology of second aspect
The parameter updating device of cultivation box any one of scheme.Therefore, the cultivation box has the technical side of as above second aspect
All beneficial effects of the parameter updating device of cultivation box any one of case, will not be repeated here.
Technical scheme according to a fourth aspect of the present invention, there is provided a kind of cultivation box, the cultivation box include processor, institute
State any one technical side that processor is used to realize above-mentioned first aspect when performing the computer program stored in the memory
The step of parameter updating method for the cultivation box that case proposes.
Technical scheme according to a fifth aspect of the present invention, there is provided a kind of computer-readable recording medium, be stored thereon with
Computer program, the computer program realize what any one technical scheme of above-mentioned first aspect proposed when being executed by processor
The step of parameter updating method of cultivation box.
The additional aspect and advantage of the present invention will provide in following description section, will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment
Substantially and it is readily appreciated that, wherein:
Fig. 1 shows the schematic flow sheet of the parameter updating method of the cultivation box of embodiments of the invention;
Fig. 2 shows the schematic block diagram of the parameter updating device of the cultivation box of embodiments of the invention;
Fig. 3 shows the schematic block diagram of the cultivation box of the first embodiment of the present invention;
Fig. 4 shows the schematic block diagram of the cultivation box of the second embodiment of the present invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the schematic flow sheet of the parameter updating method of the cultivation box of embodiments of the invention.
As described in Figure 1, the parameter updating method of cultivation box according to an embodiment of the invention, wherein being set in the cultivation box
The fixed partition for data storage is equipped with, and the parameter updating method of the cultivation box includes below scheme step:
Step 102, the current configuration parameters of the cultivation box are backed up into the fixed partition to join as the first backup
Number.
Step 104, when receiving the more new command to the current configuration parameters, the current configuration parameters are updated
For target configuration parameter.
Step 106, detect and the current configuration parameters are updated to the operation of the target configuration parameter whether succeeded.
Step 108, determine whether the target configuration parameter backing up to the fixed partition to make according to testing result
For the second backup parameter.
The embodiment, the independent fixed partition for data storage is set in cultivation box, specifically for cultivation box
Configuration parameter backed up, be stored in first using the current configuration parameters that cultivation box is used as the first backup parameter solid
Determine in subregion, when needing the current configuration parameters to cultivation box to be updated, will first be planted according to the more new command received
The current configuration parameters of case are updated to target configuration parameter, and reproducting periods keeps the backup parameter constant stored in fixed partition,
And then the process to the current configuration parameters of cultivation box to be updated to target configuration parameter is monitored, whether parameter renewal is determined
Success, and then determine whether target configuration parameter backing up to fixed partition as the second backup parameter, in this way, by first to kind
The configuration parameter of plant case is updated to determine whether to store the configuration parameter after renewal into fixed partition again and backed up, with
When preventing the system exception or parameter update abnormal of cultivation box, cultivation box can not run well, and so as to ensure plantation safety, avoid
Influence the healthy growth of crop.
Further, in the above-described embodiments, step 108 can be specifically performed as following two embodiments, specifically:
Embodiment one
When detecting that the current configuration parameters are updated into the target configuration parameter succeeds, the target is configured
Parameter backup is to the fixed partition to be used as the second backup parameter.
In this embodiment, if the current configuration parameters of cultivation box are successfully updated as target configuration parameter, can make
Cultivation box is operated according to newest configuration parameter, growing environment preferably is provided for crop, and can match somebody with somebody the target
Put parameter storage to be backed up into fixed partition, cultivation box is without available configuration ginseng during preventing the system exception of cultivation box
Number, influences plant growth.
Further, in the above-described embodiments, the parameter updating method of the cultivation box also includes:Generation parameter is updated to
First prompt message of work(, and send to user terminal, wherein, first prompt message is used to indicate that the cultivation box is current
Configured according to the target configuration parameter;And completed using the target configuration parameter as the second backup parameter backup
Afterwards, the first backup parameter is deleted.
In this embodiment, then can be by cultivation box in order that user's moment grasps the latest configuration situation of cultivation box
Current configuration parameters be successfully updated and send corresponding prompt message for target configuration parameter rear line terminal, to inform user
The currently used configuration parameter of cultivation box, to further appreciate that the growth conditions of crop;Further by target configuration parameter
After successfully backuping to fixed partition as the second backup parameter, in order to save the memory space of fixed partition, and avoid influenceing
System, which breaks down, after undated parameter obtains the accuracy of relatively newest configuration parameter, can be standby by store before first
Part parameter is deleted, i.e., with second backup parameters distribution the first backup parameter, making to store cultivation box in fixed partition all the time currently makes
Configuration parameter.
Embodiment two
It is standby according to described first when detecting that the current configuration parameters are updated into the target configuration parameter fails
Part parameter reconfigures the cultivation box.
In this embodiment, if the current configuration parameters of cultivation box to be updated to the procedure failure of target configuration parameter, i.e.,
When can not ensure that cultivation box operates according to newest configuration parameter, in order to ensure crop can grow in convenient environment, then
The first backup parameter being stored in fixed partition can be transferred and reconfigure cultivation box, so that it is according to configuration newest before
Parameter is run well, and is reduced because the configuration parameter of cultivation box is updated unsuccessfully to the growth effect of crop.
Further, in the above-described embodiments, the parameter updating method of the cultivation box also includes:Parameter renewal is generated to lose
The second prompt message lost, and send to user terminal, wherein, second prompt message is used to indicate that the cultivation box is current
According to the first backup parameter configuration.
In this embodiment, in order that user grasps the latest tendency of the parameter renewal of cultivation box, will can currently match somebody with somebody
Put and send corresponding prompt message to user when parameter is updated to target configuration parameter failure, to inform that user's cultivation box currently makes
Configuration parameter, while the renewal failure of user's cultivation box parameter is informed, remind it to take corresponding counter-measure, avoid influenceing
The healthy growth of crop.
Further, in any of the above-described embodiment, the configuration parameter includes:Plant parameter and/or system configuration ginseng
Number.
In this embodiment, the configuration parameter of cultivation box includes being used for the plantation parameter for ensuring healthy growth of crops, such as
Temperature, humidity, gas concentration lwevel, oxygen concentration, pH value etc., and/or the system that can be run well for ensuring cultivation box are matched somebody with somebody
Parameter is put, so that cultivation box can be the environmental condition that crop normally provided or built healthy growth according to configuration plantation parameter.
Fig. 2 shows the schematic block diagram of the parameter updating device of the cultivation box of embodiments of the invention.
As shown in Fig. 2 the parameter updating device 20 of cultivation box according to an embodiment of the invention, wherein in the cultivation box
The fixed partition for data storage is provided with, and the parameter updating device 20 of the cultivation box includes:Backup module 202,
Update module 204, detection module 206 and control module 208.
Wherein, the backup module 202 is used to the current configuration parameters of the cultivation box backing up to the fixed partition
To be used as the first backup parameter;The update module 204 is used for when receiving the more new command to the current configuration parameters,
The current configuration parameters are updated to target configuration parameter;The detection module 206 is used to detect is currently configured ginseng by described
Whether the operation that number is updated to the target configuration parameter succeeds;The control module 208 is used to be determined according to testing result
It is no that the target configuration parameter is backed up into the fixed partition to be used as the second backup parameter.
The embodiment, the independent fixed partition for data storage is set in cultivation box, specifically for cultivation box
Configuration parameter backed up, be stored in first using the current configuration parameters that cultivation box is used as the first backup parameter solid
Determine in subregion, when needing the current configuration parameters to cultivation box to be updated, will first be planted according to the more new command received
The current configuration parameters of case are updated to target configuration parameter, and reproducting periods keeps the backup parameter constant stored in fixed partition,
And then the process to the current configuration parameters of cultivation box to be updated to target configuration parameter is monitored, whether parameter renewal is determined
Success, and then determine whether target configuration parameter backing up to fixed partition as the second backup parameter, in this way, by first to kind
The configuration parameter of plant case is updated to determine whether to store the configuration parameter after renewal into fixed partition again and backed up, with
When preventing the system exception or parameter update abnormal of cultivation box, cultivation box can not run well, and so as to ensure plantation safety, avoid
Influence the healthy growth of crop.
Further, in the above-described embodiments, the control module 208 is specifically used for:When the detection module 206 detects
To when the current configuration parameters are updated into the target configuration parameter success, the backup module 202 is controlled by the mesh
Standard configuration puts parameter backup to the fixed partition to be used as the second backup parameter;When the detection module 206 detect by
When the current configuration parameters are updated to the target configuration parameter failure, control and reconfigured according to the first backup parameter
The cultivation box.
In this embodiment, if the current configuration parameters of cultivation box are successfully updated as target configuration parameter, can make
Cultivation box is operated according to newest configuration parameter, growing environment preferably is provided for crop, and can match somebody with somebody the target
Put parameter storage to be backed up into fixed partition, cultivation box is without available configuration ginseng during preventing the system exception of cultivation box
Number, influences plant growth;And if the current configuration parameters of cultivation box are updated to the procedure failure of target configuration parameter, i.e., can not
, then can be with order to ensure crop can grow in convenient environment when ensuring that cultivation box operates according to newest configuration parameter
Transfer the first backup parameter being stored in fixed partition and reconfigure cultivation box, so that it is according to configuration parameter newest before
Run well, reduced because the configuration parameter of cultivation box is updated unsuccessfully to the growth effect of crop.
Further, in the above-described embodiments, as shown in Fig. 2 the parameter updating device of the cultivation box also includes:First
Reminding module 210.
First reminding module 210 is used to update the current configuration parameters when the detection module 206 detects
When succeeding for the target configuration parameter, the first prompt message that parameter is updated successfully is generated, and is sent to user terminal, its
In, first prompt message is used to indicate that the cultivation box currently configures according to the target configuration parameter;It is and described standby
Part module 202 is additionally operable to:After the completion of using the target configuration parameter as the second backup parameter backup, described the is deleted
One backup parameter.
In this embodiment, then can be by cultivation box in order that user's moment grasps the latest configuration situation of cultivation box
Current configuration parameters be successfully updated and send corresponding prompt message for target configuration parameter rear line terminal, to inform user
The currently used configuration parameter of cultivation box, to further appreciate that the growth conditions of crop;Further by target configuration parameter
After successfully backuping to fixed partition as the second backup parameter, in order to save the memory space of fixed partition, and avoid influenceing
System, which breaks down, after undated parameter obtains the accuracy of relatively newest configuration parameter, can be standby by store before first
Part parameter is deleted, i.e., with second backup parameters distribution the first backup parameter, making to store cultivation box in fixed partition all the time currently makes
Configuration parameter.
Further, in the above-described embodiments, as shown in Fig. 2 the parameter updating device of the cultivation box also includes:Second
Reminding module 212.
Second reminding module 212 is used to update the current configuration parameters when the detection module 206 detects
When failing for the target configuration parameter, the second prompt message of generation parameter renewal failure, and send to user terminal, its
In, second prompt message is used to indicate the cultivation box currently according to the first backup parameter configuration.
In this embodiment, in order that user grasps the latest tendency of the parameter renewal of cultivation box, will can currently match somebody with somebody
Put and send corresponding prompt message to user when parameter is updated to target configuration parameter failure, to inform that user's cultivation box currently makes
Configuration parameter, while the renewal failure of user's cultivation box parameter is informed, remind it to take corresponding counter-measure, avoid influenceing
The healthy growth of crop.
Further, in the above-described embodiments, the configuration parameter includes:Plant parameter and/or system configuration parameter.
In this embodiment, the configuration parameter of cultivation box includes being used for the plantation parameter for ensuring healthy growth of crops, such as
Temperature, humidity, gas concentration lwevel, oxygen concentration, pH value etc., and/or the system that can be run well for ensuring cultivation box are matched somebody with somebody
Parameter is put, so that cultivation box can be the environmental condition that crop normally provided or built healthy growth according to configuration plantation parameter.
Fig. 3 shows the schematic block diagram of the cultivation box of the first embodiment of the present invention.
As shown in figure 3, according to the cultivation box 30 of the first embodiment of the present invention, including such as any one of above-mentioned embodiment institute
The parameter updating device 20 for the cultivation box stated.Therefore, the cultivation box 30 has the cultivation box being performed as described above any one of example
Parameter updating device 20 all beneficial effects, will not be repeated here.
Fig. 4 shows the schematic block diagram of the cultivation box of the second embodiment of the present invention.
As shown in figure 4, according to the cultivation box 40 of the embodiment of the embodiment of the present disclosure, including memory 402 and processor
404, wherein being stored with the computer program that can be run on the processor 404, wherein memory on the memory 402
It can be connected between 402 and processor 404 by bus, the processor 404 is used to perform the calculating stored in memory 402
Following operate is realized during machine program:
The current configuration parameters of the cultivation box are backed up into the fixed partition to be used as the first backup parameter;
When receiving the more new command to the current configuration parameters, the current configuration parameters are updated to target and matched somebody with somebody
Put parameter;
Whether the operation that the current configuration parameters are updated to the target configuration parameter by detection succeeds;
Determined whether the target configuration parameter backing up to the fixed partition using standby as second according to testing result
Part parameter.
As optional embodiment, then processor 404 calls the program code stored in memory 402, specifically can be with
Perform following operate:
When detecting that the current configuration parameters are updated into the target configuration parameter succeeds, the target is configured
Parameter backup is to the fixed partition to be used as the second backup parameter;
It is standby according to described first when detecting that the current configuration parameters are updated into the target configuration parameter fails
Part parameter reconfigures the cultivation box.
As an alternative embodiment, the current configuration parameters are updated to the target configuration ginseng when detecting
When counting successfully, processor 404 calls the program code stored in memory 402, can also carry out following operation:
The first prompt message that generation parameter is updated successfully, and send to user terminal, wherein, first prompt message
For indicating that the cultivation box currently configures according to the target configuration parameter;And
After the completion of using the target configuration parameter as the second backup parameter backup, the first backup ginseng is deleted
Number.
As an alternative embodiment, the current configuration parameters are updated to the target configuration ginseng when detecting
During number failure, processor 404 calls the program code stored in memory 402, can also carry out following operation:
The second prompt message of parameter renewal failure is generated, and is sent to user terminal, wherein, second prompt message
For indicating the cultivation box currently according to the first backup parameter configuration.
Step in the method for the embodiment of the present disclosure can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the parameter updating device and cultivation box of the cultivation box of the embodiment of the present disclosure can according to be actually needed into
Row combination, division and deletion.
According to the embodiment of the present disclosure, it is proposed that a kind of computer-readable recording medium, be stored thereon with computer program, institute
State the parameter of cultivation box when computer program is executed by processor any one of the embodiment of realization as shown in Figure 1 above
The step of update method.
Further, one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment
Or part steps are by program the hardware of correlation can be instructed to complete, the program can be stored in one and computer-readable deposit
In storage media, storage medium includes read-only storage (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), it is programmable read only memory (Programmable Read-only Memory, PROM), erasable
Except programmable read only memory (Erasable Programmable Read Only Memory, EPROM), disposable programmable only
Reading memory (One-time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only
Memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc
(Compact Disc Read-Only Memory, CD-ROM) or other disk storages, magnetic disk storage, magnetic tape storage,
Or it can be used in any other computer-readable medium of carrying or data storage.
Further, above computer equipment can be that PC (Personal Computer, PC) is held.
Technical scheme is described in detail above in association with accompanying drawing, by technical scheme, can plant
When planting the system exception or parameter update abnormal of case, effectively ensure that cultivation box can run well, ensure plantation safety, so as to
Avoid influenceing the healthy growth of crop.
In the description of this specification, term " first ", " second " are only used for the purpose of description, and it is not intended that instruction
Or relative importance is implied, for the ordinary skill in the art, it can understand that above-mentioned term exists as the case may be
Concrete meaning in the embodiment of the present disclosure.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.