CN107357614A - Parameter updating method and device, planting box and storage medium - Google Patents

Parameter updating method and device, planting box and storage medium Download PDF

Info

Publication number
CN107357614A
CN107357614A CN201710525654.XA CN201710525654A CN107357614A CN 107357614 A CN107357614 A CN 107357614A CN 201710525654 A CN201710525654 A CN 201710525654A CN 107357614 A CN107357614 A CN 107357614A
Authority
CN
China
Prior art keywords
parameter
cultivation box
backup
updated
target configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710525654.XA
Other languages
Chinese (zh)
Other versions
CN107357614B (en
Inventor
殷文涛
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Heyuan Hongjia Agricultural Technology Co ltd
Original Assignee
Shenzhen Qianhai Hongjia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianhai Hongjia Technology Co Ltd filed Critical Shenzhen Qianhai Hongjia Technology Co Ltd
Priority to CN201710525654.XA priority Critical patent/CN107357614B/en
Publication of CN107357614A publication Critical patent/CN107357614A/en
Application granted granted Critical
Publication of CN107357614B publication Critical patent/CN107357614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01GHORTICULTURE; CULTIVATION OF VEGETABLES, FLOWERS, RICE, FRUIT, VINES, HOPS OR SEAWEED; FORESTRY; WATERING
    • A01G9/00Cultivation in receptacles, forcing-frames or greenhouses; Edging for beds, lawn or the like
    • A01G9/14Greenhouses
    • A01G9/16Dismountable or portable greenhouses ; Greenhouses with sliding roofs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1456Hardware arrangements for backup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A40/00Adaptation technologies in agriculture, forestry, livestock or agroalimentary production
    • Y02A40/10Adaptation technologies in agriculture, forestry, livestock or agroalimentary production in agriculture
    • Y02A40/25Greenhouse technology, e.g. cooling systems therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Environmental Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cultivation Receptacles Or Flower-Pots, Or Pots For Seedlings (AREA)

Abstract

The invention provides a parameter updating method and a parameter updating device for a planting box, the planting box and a computer readable storage medium, wherein a fixed partition used for storing data is arranged in the planting box, and the parameter updating method for the planting box comprises the following steps: backing up the current configuration parameters of the planting box to the fixed partition to serve as first backup parameters; updating the current configuration parameter to a target configuration parameter when an updating instruction of the current configuration parameter is received; detecting whether the operation of updating the current configuration parameter to the target configuration parameter is successful; and determining whether the target configuration parameters are backed up to the fixed partition to serve as second backup parameters or not according to the detection result. This technical scheme can guarantee effectively that the case of planting can normal operating when the system of planting the case is unusual or the parameter renewal is unusual, guarantees to plant safety to avoid influencing the healthy growth of crop.

Description

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.

Claims (13)

1. a kind of parameter updating method of cultivation box, it is characterised in that consolidating for data storage is provided with the cultivation box Determine subregion, the parameter updating method of the cultivation box includes:
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 configuration ginseng Number;
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 to be used as the second backup ginseng according to testing result Number.
2. the parameter updating method of cultivation box according to claim 1, it is characterised in that described to be determined according to testing result Whether the target configuration parameter backed up into the fixed partition, the first backup parameter is replaced as the second backup parameter The step of, including:
When detecting that the current configuration parameters are updated into the target configuration parameter succeeds, by the target configuration parameter The fixed partition is backed up to be used as the second backup parameter;
When detecting that the current configuration parameters are updated into the target configuration parameter fails, join according to the described first backup Number reconfigures the cultivation box.
3. the parameter updating method of cultivation box according to claim 2, it is characterised in that
When detecting that the current configuration parameters are updated into the target configuration parameter succeeds, in addition to:Generate parameter more New successful first prompt message, and send to user terminal, wherein, first prompt message is used to indicate the cultivation box Currently configured according to the target configuration parameter;And using the target configuration parameter as the second backup parameter backup After the completion of, delete the first backup parameter.
4. the parameter updating method of cultivation box according to claim 2, it is characterised in that currently match somebody with somebody described when detecting When putting parameter and being updated to target configuration parameter failure, in addition to:
The second prompt message of parameter renewal failure is generated, and is sent to user terminal, wherein, second prompt message is used for Indicate the cultivation box currently according to the first backup parameter configuration.
5. the parameter updating method of cultivation box according to any one of claim 1 to 4, it is characterised in that the configuration Parameter includes:Plant parameter and/or system configuration parameter.
6. the parameter updating device of a kind of cultivation box, it is characterised in that consolidating for data storage is provided with the cultivation box Determine subregion, the parameter updating device of the cultivation box includes:
Backup module, for the current configuration parameters of the cultivation box to be backed up into the fixed partition to join as the first backup Number;
Update module, for when receiving the more new command to the current configuration parameters, by the current configuration parameters more New is target configuration parameter;
Whether detection module, the operation that the current configuration parameters are updated to the target configuration parameter for detecting succeed;
Control module, for determining whether the target configuration parameter backing up to the fixed partition to make according to testing result For the second backup parameter.
7. the parameter updating device of cultivation box according to claim 6, it is characterised in that the control module is specifically used In:
When the detection module is detected, and the current configuration parameters are updated into the target configuration parameter success, institute is controlled State backup module and the target configuration parameter is backed up into the fixed partition to be used as the second backup parameter;
When the detection module is detected, and the current configuration parameters are updated into the target configuration parameter failure, control is pressed The cultivation box is reconfigured according to the first backup parameter.
8. the parameter updating device of cultivation box according to claim 7, it is characterised in that also include:
First reminding module, for the current configuration parameters to be updated into the target configuration when the detection module detects During parameter success, the first prompt message that parameter is updated successfully is generated, and is sent to user terminal, wherein, first prompting Information is used to indicate that the cultivation box currently configures according to the target configuration parameter;And
The backup module is additionally operable to:After the completion of using the target configuration parameter as the second backup parameter backup, delete Except the first backup parameter.
9. the parameter updating device of cultivation box according to claim 7, it is characterised in that also include:
Second reminding module, for the current configuration parameters to be updated into the target configuration when the detection module detects When parameter fails, the second prompt message of generation parameter renewal failure, and send to user terminal, wherein, second prompting Information is used to indicate the cultivation box currently according to the first backup parameter configuration.
10. the parameter updating device of the cultivation box according to any one of claim 6 to 9, it is characterised in that the configuration Parameter includes:Plant parameter and/or system configuration parameter.
A kind of 11. cultivation box, it is characterised in that including:The parameter of cultivation box as any one of claim 6 to 10 is more New equipment.
12. a kind of cultivation box, it is characterised in that the cultivation box includes processor, and the processor is used to perform in memory The step of parameter updating method of the cultivation box as any one of claim 1 to 5 is realized during the computer program of storage.
13. a kind of computer-readable recording medium, is stored thereon with computer program instructions, it is characterised in that the computer The step of parameter updating method of the cultivation box as any one of claim 1 to 5 is realized when instruction is executed by processor.
CN201710525654.XA 2017-06-30 2017-06-30 Parameter updating method and device, planting box and storage medium Active CN107357614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710525654.XA CN107357614B (en) 2017-06-30 2017-06-30 Parameter updating method and device, planting box and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710525654.XA CN107357614B (en) 2017-06-30 2017-06-30 Parameter updating method and device, planting box and storage medium

Publications (2)

Publication Number Publication Date
CN107357614A true CN107357614A (en) 2017-11-17
CN107357614B CN107357614B (en) 2020-12-04

Family

ID=60274154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710525654.XA Active CN107357614B (en) 2017-06-30 2017-06-30 Parameter updating method and device, planting box and storage medium

Country Status (1)

Country Link
CN (1) CN107357614B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271673A (en) * 2018-02-28 2018-07-13 深圳春沐源控股有限公司 Tomato soilless culture method, device, computer equipment and storage medium
CN110609763A (en) * 2018-06-15 2019-12-24 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for managing and executing data backup jobs
CN111290886A (en) * 2020-03-11 2020-06-16 珠海格力电器股份有限公司 Method for automatically recovering operation of equipment and water heater
CN113625072A (en) * 2021-06-15 2021-11-09 安克创新科技股份有限公司 Data calibration method
CN113686848A (en) * 2020-05-19 2021-11-23 台达电子工业股份有限公司 Plant state judging method
WO2022061772A1 (en) * 2020-09-25 2022-03-31 深圳市大疆创新科技有限公司 Gimbal control method and apparatus, movable platform, and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200643694A (en) * 2005-06-15 2006-12-16 Inventec Corp Data secured storage system and method thereof
CN101159647A (en) * 2007-10-22 2008-04-09 中国电信股份有限公司 System and method of implementing gateway local parameter fast recovery
CN101694637A (en) * 2009-11-06 2010-04-14 金蝶软件(中国)有限公司 Method and system for restoring database
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
CN101790154A (en) * 2009-01-23 2010-07-28 沈阳晨讯希姆通科技有限公司 Method and system for processing abnormal parameters of wireless communication module
CN102455954A (en) * 2011-10-17 2012-05-16 中标软件有限公司 Power-failure-preventing upgrading method of Linux system
CN103032920A (en) * 2011-10-10 2013-04-10 Lg电子株式会社 Air conditioner, air conditioning system having the same, and method for controlling outdoor unit of the system
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems
CN104901840A (en) * 2015-07-01 2015-09-09 冯旋宇 Data updating method of router and router
CN105306731A (en) * 2015-11-13 2016-02-03 上海斐讯数据通信技术有限公司 Mobile phone recovery method and system
CN105550066A (en) * 2015-12-10 2016-05-04 希姆通信息技术(上海)有限公司 File system breakdown solution method and system
CN105744008A (en) * 2016-05-11 2016-07-06 百度在线网络技术(北京)有限公司 Intelligent home platform, and system updating method and device applied to intelligent home platform
CN105930184A (en) * 2016-04-19 2016-09-07 青岛海信移动通信技术股份有限公司 System upgrade method and device
CN106325901A (en) * 2015-06-24 2017-01-11 南宁富桂精密工业有限公司 Software version management method and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200643694A (en) * 2005-06-15 2006-12-16 Inventec Corp Data secured storage system and method thereof
CN101159647A (en) * 2007-10-22 2008-04-09 中国电信股份有限公司 System and method of implementing gateway local parameter fast recovery
CN101790154A (en) * 2009-01-23 2010-07-28 沈阳晨讯希姆通科技有限公司 Method and system for processing abnormal parameters of wireless communication module
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
CN101694637A (en) * 2009-11-06 2010-04-14 金蝶软件(中国)有限公司 Method and system for restoring database
CN103032920A (en) * 2011-10-10 2013-04-10 Lg电子株式会社 Air conditioner, air conditioning system having the same, and method for controlling outdoor unit of the system
CN102455954A (en) * 2011-10-17 2012-05-16 中标软件有限公司 Power-failure-preventing upgrading method of Linux system
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems
CN106325901A (en) * 2015-06-24 2017-01-11 南宁富桂精密工业有限公司 Software version management method and system
CN104901840A (en) * 2015-07-01 2015-09-09 冯旋宇 Data updating method of router and router
CN105306731A (en) * 2015-11-13 2016-02-03 上海斐讯数据通信技术有限公司 Mobile phone recovery method and system
CN105550066A (en) * 2015-12-10 2016-05-04 希姆通信息技术(上海)有限公司 File system breakdown solution method and system
CN105930184A (en) * 2016-04-19 2016-09-07 青岛海信移动通信技术股份有限公司 System upgrade method and device
CN105744008A (en) * 2016-05-11 2016-07-06 百度在线网络技术(北京)有限公司 Intelligent home platform, and system updating method and device applied to intelligent home platform

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271673A (en) * 2018-02-28 2018-07-13 深圳春沐源控股有限公司 Tomato soilless culture method, device, computer equipment and storage medium
CN110609763A (en) * 2018-06-15 2019-12-24 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for managing and executing data backup jobs
CN110609763B (en) * 2018-06-15 2023-05-05 伊姆西Ip控股有限责任公司 Method, electronic device, and computer-readable medium for managing and executing data backup jobs
CN111290886A (en) * 2020-03-11 2020-06-16 珠海格力电器股份有限公司 Method for automatically recovering operation of equipment and water heater
CN113686848A (en) * 2020-05-19 2021-11-23 台达电子工业股份有限公司 Plant state judging method
WO2022061772A1 (en) * 2020-09-25 2022-03-31 深圳市大疆创新科技有限公司 Gimbal control method and apparatus, movable platform, and storage medium
CN113625072A (en) * 2021-06-15 2021-11-09 安克创新科技股份有限公司 Data calibration method
CN113625072B (en) * 2021-06-15 2024-05-03 安克创新科技股份有限公司 Data calibration method

Also Published As

Publication number Publication date
CN107357614B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN107357614A (en) Parameter updating method and device, planting box and storage medium
CN103294566B (en) Signal conditioning package, information processing method and message processing program
US20160283711A1 (en) eMMC Monitoring Method and Apparatus
EP0823086B1 (en) Methods and apparatus for protecting the integrity of process data stored on a removable storage medium
US11865253B2 (en) Respiration system and respiration apparatus and method
CN109885337A (en) A kind of system version upgrade method, device, equipment and readable storage medium storing program for executing
CN106445578A (en) Remote hardware upgrading method and apparatus, and wireless temperature and humidity monitor
CN112100027A (en) Server maintenance method, device, equipment and machine readable storage medium
US20140310561A1 (en) Dynamic function-level hardware performance profiling for application performance analysis
CN109333952B (en) Management method and device of injection molding machine
CN114422329A (en) Node upgrading method, device, equipment and readable storage medium
CN106897092A (en) A kind of remote software upgrade method and controller
CN112202909B (en) Online upgrading method and system for computer storage system
US7403792B2 (en) Cellular phone and automatic program update method used therefor
CN111506839B (en) Data statistics method and device, page server and statistics server
CN105975322A (en) Device and method for updating program and microcontroller
CN116126379A (en) BIOS firmware upgrading method, device, equipment and storage medium
US11262834B1 (en) Data processing system and method for monitoring system properties
JP4946926B2 (en) Software update system, software update method and program
CN111735542B (en) Thermal infrared imager temperature measurement correction method based on target detection and related equipment
CN114217831A (en) Multifunctional software upgrading method and system for embedded system
CN110083393B (en) Flash memory and implantable medical device
CN107758461B (en) A kind of control software field debugging system
CN106468898A (en) Vehicle maintenance system and method
CN109933485B (en) Scheduling method for algorithm execution and monitoring

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518052 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: Shenzhen Chun Mu source Holdings Limited

Address before: 518052 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: Shenzhen Qianhai Hong Jia Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220510

Address after: 517025 room 317-1, enterprise service center building, No. 8, Longling Third Road, Longling Industrial Park, Yuancheng District, Heyuan City, Guangdong Province

Patentee after: HEYUAN HONGJIA AGRICULTURAL TECHNOLOGY CO.,LTD.

Address before: 518052 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: SHENZHEN SPRINGWOODS HOLDING Co.,Ltd.