Summary of the invention
In order to solve the above technical problems, the present invention provides the method for restarting and device of a kind of cultivation box, so that cultivation box weight
On-demand open function module after opening, avoids the normal growth for influencing target plant in cultivation box, promotes the plantation experience of user.
A kind of method for restarting of cultivation box is applied to cultivation box, is provided at least one functional module in the cultivation box,
For each functional module, target plant required functional module in each growth time section in the cultivation box is predefined
The total working duration of work, which comprises
In power-off restarting, the current growth time section of the target plant is determined;
Obtain the information of operating time of each functional module in the current growth time section;
For each functional module, if the operating time of the functional module is less than the target plant described current
The total working duration of the work of the functional module needed in growth time section then controls functional module unlatching.
In a kind of specific embodiment of the invention, further includes:
In normal work, each functional module is recorded in preset record sheet in the work shape of each preset time point
The information of state.
It is described to obtain each functional module in the current growth time section in a kind of specific embodiment of the invention
The information of interior operating time, comprising:
For each functional module, the record sheet is inquired, obtains the functional module in the work at each preset time point
Make the information of state;
According to the functional module in the information of the working condition at each preset time point, determine the functional module described
Operating time in current growth time section.
In a kind of specific embodiment of the invention, it is described according to the functional module each preset time point work
The information for making state determines operating time of the functional module in the current growth time section, comprising:
According to the functional module in the information of the working condition at each preset time point, determine that the functional module is being in
Time point corresponding working condition in the current growth time section;
According to determining working condition and corresponding time point, the functional module is calculated in the current growth time section
Operating time.
In a kind of specific embodiment of the invention, target plant in the cultivation box is predefined by following steps
The total working duration of required each functional module work in each growth time section:
According to the growth model of target plant in the cultivation box being obtained ahead of time, the target plant is predefined every
The total working duration of required each functional module work in a growth time section.
A kind of rebooting device of cultivation box is applied to cultivation box, is provided at least one functional module in the cultivation box,
Described device includes:
Total working duration determination unit predefines target plant in the cultivation box for being directed to each functional module
The total working duration of the work of the functional module needed in each growth time section;
Growth time section determination unit, for determining the current growth time section of the target plant in power-off restarting;
Operating time obtaining unit, for obtaining each functional module having worked in the current growth time section
The information of duration;
Functional module control unit, for being directed to each functional module, if the operating time of the functional module is less than
The total working duration of the target plant required functional module work in the current growth time section, then control the function
Module is opened.
In a kind of specific embodiment of the invention, further includes:
Information recording unit, in normal work, each functional module being recorded in preset record sheet each
The information of the working condition of preset time point.
In a kind of specific embodiment of the invention, the operating time obtaining unit, comprising:
Work state information obtains subelement, for being directed to each functional module, inquires the record sheet, obtains the function
Information of the module in the working condition at each preset time point;
Operating time determines subelement, for according to the functional module each preset time point working condition
Information determines operating time of the functional module in the current growth time section.
In a kind of specific embodiment of the invention, the operating time determines subelement, is specifically used for:
According to the functional module in the information of the working condition at each preset time point, determine that the functional module is being in
Time point corresponding working condition in the current growth time section;
According to determining working condition and corresponding time point, the functional module is calculated in the current growth time section
Operating time.
In a kind of specific embodiment of the invention, the total working duration determination unit is specifically used for:
According to the growth model of target plant in the cultivation box being obtained ahead of time, the target plant is predefined every
The total working duration of required each functional module work in a growth time section.
Using technical solution provided by the embodiment of the present invention, target plant is in each growth in predetermined cultivation box
Between in section required each functional module work total working duration, for cultivation box in power-off restarting, determine target plant works as previous existence
Long period obtains the information of operating time of each functional module in this prior in growth time section, for each function mould
Block, if the functional module needed for the operating time of the functional module is less than target plant in current growth time section works
Total working duration, then control the functional module unlatching.In this way, can open function module on demand, avoid influencing in cultivation box
The normal growth of target plant promotes the plantation experience of user.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of method for restarting of cultivation box, this method is applied to cultivation box.It is set in cultivation box
Be equipped at least one functional module, for example be provided with blower module, lighting module, spray water module etc., different function module
Work can provide corresponding environmental condition for target plant in cultivation box.
In embodiments of the present invention, the environmental condition needed for each growth time section of the target plant in cultivation box may
It is all different, for example, target plant needs illumination 3 hours, needs more in the 10th day this growth time section after initial plantation
It ventilates 5 hours, correspondingly, needing to open lighting module in this growth time section, and lighting module is made to work 3 hours,
It needs to open blower module, and blower module is made to work 5 hours.In practical applications, function can be controlled according to default rule
Duration needed for duration needed for energy module continuous work or interrupter duty.
For each functional module, it may be predetermined that should needed for target plant is in each growth time section in cultivation box
The total working duration of functional module work.
Specifically, target plant can be predefined according to the growth model of target plant in the cultivation box being obtained ahead of time
The total working duration of required each functional module work in each growth time section.
In embodiments of the present invention, the growth mould of every kind of plant can be pre-established according to the historical growth data of plant
Type may include plant in each growth phase in the growth model, as needed for seed stage, plantlet stage, stage of ripeness etc.
Environmental condition can also include more specifically in each growth phase daily or per environmental condition needed for several days.
Cultivation box when leaving the factory, the growth model of target plant can be stored in cultivation box, alternatively, cultivation box with
When server communication, the growth model of target plant is obtained from server.The growth model of server memory storage can be according to more
New historical growth data are updated, and the growth model for obtaining target plant from server more meets the growth rule of target plant
Rule.
According to the growth model for the target plant being obtained ahead of time, it may be predetermined that target plant is in each growth time section
The total working duration of each functional module work needed for interior.Growth time section can be each growth phase corresponding period,
It can also be each period in each growth phase.
It is, of course, also possible to by other means, such as the modes such as technical staff's setting or user's setting, predefine kind
Plant the total working duration of functional module work needed for target plant is in each growth time section in case.
Cultivation box, can be according to the functional module in current growth time for each functional module in power-off restarting
When the total working for needing the functional module to work in the operating time and the predetermined section of growth time in this prior in section
It is long, it is determined whether to open the functional module.So that cultivation box restarts rear open function module on demand, avoid influencing mesh in cultivation box
The normal growth for marking plant promotes the plantation experience of user.
It is shown in Figure 1, it is a kind of implementation flow chart of the method for restarting of cultivation box provided by the embodiment of the present invention, it should
Method may comprise steps of:
S110: in power-off restarting, the current growth time section of target plant is determined.
Cultivation box can determine the current growth time section of target plant, the i.e. current institute of target plant in power-off restarting
The growth time section at place.Specifically, cultivation box can be according between the initial implantation time point and power-off time point of target plant
Duration, determine the current growth time section of target plant.
For example, the unit of the growth time section of target plant is day, between initial implantation time point and power-off time point
Shi Changwei 15 days, then it can determine current growth time Duan Wei 15 days of target plant.
S120: the information of operating time of each functional module in current growth time section is obtained.
After cultivation box determines the current growth time section of target plant, each functional module can be obtained and grown in this prior
The information of operating time in period.
In a kind of specific embodiment of the invention, this method may also comprise the following steps::
In normal work, each functional module is recorded in preset record sheet in the work shape of each preset time point
The information of state.
In practical applications, cultivation box can monitor the work of each functional module in real time or according to setting time interval
State, and the information by the working condition of each functional module in the working condition of each preset time point is recorded in record sheet
In, which can store in the memory module built in itself.
Preset time point can be working condition switching time point.
Such as example 1, cultivation box in normal work, monitors lighting module in time point T0It opens, is switched to working condition,
In time point T1It closes, off working state is switched to, in time point T2It opens, is switched to working condition, then cultivation box is in record sheet
In can be sequentially recorded: lighting module be switched to working condition time point be T0, it is switched to the time point of off working state
For T1, the time point for being switched to working condition is T2。
Preset time point can also be the time point for being set and being adjusted according to the actual situation, for example every 3 minutes record
Once.
Alternatively, server can send inquiry instruction to cultivation box at set time intervals, to determine that cultivation box is
It is no to be in existing state.The time interval can be set and be adjusted according to the actual situation, for example be set as 5 minutes, this hair
Bright embodiment is without limitation.
Cultivation box in normal work, can instruct, to server returning response information, the sound for the inquiry of server
The work state information in information including each functional module is answered, so that work state information of the server according to each functional module,
Each functional module is recorded in the record sheet that it is locally stored in the information of the working condition of each preset time point.
It should be noted that the time interval between preset time point can be between the time of server transmission inquiry instruction
Every identical or different.
Correspondingly, step S120 may comprise steps of in a kind of specific embodiment of the invention:
Step 1: being directed to each functional module, inquires record sheet, obtains the functional module at each preset time point
The information of working condition;
Step 2: according to the functional module in the information of the working condition at each preset time point, the function mould is determined
Operating time of the block in current growth time section.
Cultivation box is in power-off restarting, after the current growth time section for determining target plant, can be directed to each function
Module obtains the functional module in the information of the working condition at each preset time point, according to the function by inquiring record sheet
Energy module can determine the functional module in current growth time section in the information of the working condition at each preset time point
Operating time.
Specifically, can determine the function according to the functional module in the information of the working condition at each preset time point
Can module in the time point corresponding working condition in the current growth time section, according to determining working condition and corresponding
Time point calculates operating time of the functional module in current growth time section.
Which time point can be determined in the information of the working condition at each preset time point according to the functional module
In current growth time section, according to these time points and these time points corresponding working condition, calculates the functional module and exist
Operating time in current growth time section.
In order to make it easy to understand, continuing to be illustrated by taking example 1 as an example.
If it is determined that time point T1、T2In current growth time section, T1For lighting module be switched to off working state when
Between point, T2It is switched to the time point of working condition for lighting module, then illumination mould in current growth time section can be calculated
The operating time of block are as follows: power-off time point-T2。
It above are only a kind of example, in practical applications, can be calculated according to other calculation methods.
S130: being directed to each functional module, if the operating time of the functional module is less than target plant and is working as previous existence
The total working duration of the work of the functional module needed in long period then controls functional module unlatching.
In embodiments of the present invention, it is previously determined target plant required each functional module work in each growth time section
The total working duration of work after the current growth time section for determining target plant, that is, can determine mesh in cultivation box power-off restarting
Mark the total working duration of plant each functional module work needed for growth time section in this prior.
For each functional module, the operating time and target plant that can determine the functional module are in current growth
Between in section needed for functional module work total working duration size relation, if it is less, showing the functional module
Operating time is not up to corresponding requirement, can control functional module unlatching, is at working condition.
Using method provided by the embodiment of the present invention, target plant is in each growth time section in predetermined cultivation box
The total working duration of each functional module work needed for interior, cultivation box is in power-off restarting, when determining the current growth of target plant
Between section, obtain the information of operating time of each functional module in this prior in growth time section, for each functional module, such as
Functional module work is total needed for the operating time of the fruit functional module is less than target plant in current growth time section
Operating time then controls functional module unlatching.In this way, can open function module on demand, avoid influencing target in cultivation box
The normal growth of plant promotes the plantation experience of user.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of rebooting device of cultivation box, the dresses
It sets and is applied to cultivation box, be provided at least one functional module, a kind of rebooting device of cultivation box described below in cultivation box
Reference can be corresponded to each other with a kind of above-described method for restarting of cultivation box.
Shown in Figure 2, which includes with lower unit:
Total working duration determination unit 210 predefines target plant in cultivation box and exists for being directed to each functional module
The total working duration of the work of the functional module needed in each growth time section;
Growth time section determination unit 220, for determining the current growth time section of target plant in power-off restarting;
Operating time obtaining unit 230, for obtaining each functional module having worked in current growth time section
The information of duration;
Functional module control unit 240, for being directed to each functional module, if the operating time of the functional module is small
The total working duration of the work of the functional module needed for target plant is in current growth time section, then control the functional module and open
It opens.
Using device provided by the embodiment of the present invention, target plant is in each growth time section in predetermined cultivation box
The total working duration of each functional module work needed for interior, cultivation box is in power-off restarting, when determining the current growth of target plant
Between section, obtain the information of operating time of each functional module in this prior in growth time section, for each functional module, such as
Functional module work is total needed for the operating time of the fruit functional module is less than target plant in current growth time section
Operating time then controls functional module unlatching.In this way, can open function module on demand, avoid influencing target in cultivation box
The normal growth of plant promotes the plantation experience of user.
In a kind of specific embodiment of the invention, further includes:
Information recording unit, in normal work, each functional module being recorded in preset record sheet each
The information of the working condition of preset time point.
In a kind of specific embodiment of the invention, operating time obtaining unit 230, comprising:
Work state information obtains subelement, for being directed to each functional module, inquires record sheet, obtains the functional module
In the information of the working condition at each preset time point;
Operating time determines subelement, for according to the functional module each preset time point working condition
Information determines operating time of the functional module in current growth time section.
In a kind of specific embodiment of the invention, operating time determines subelement, is specifically used for:
According to the functional module in the information of the working condition at each preset time point, determine that the functional module is being in
Time point corresponding working condition in current growth time section;
According to determining working condition and corresponding time point, the functional module is calculated in current growth time section
Operating time.
In a kind of specific embodiment of the invention, total working duration determination unit 210 is specifically used for:
According to the growth model of target plant in the cultivation box being obtained ahead of time, target plant is predefined in each growth
Between in section required each functional module work total working duration.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment
For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part
Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The method for restarting and device of a kind of cultivation box provided by the present invention are described in detail above.It answers herein
With a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manage
Solve method and its core concept of the invention.It should be pointed out that for those skilled in the art, not departing from
, can be with several improvements and modifications are made to the present invention under the premise of the principle of the invention, these improvement and modification also fall into this hair
In bright scope of protection of the claims.