Summary of the invention
It is an object of the invention to provide one and automatically control ONU start and stop method and system, make the switching between ONU mode of operation more intelligent, convenient, play energy-conservation effect.
Technical scheme provided by the invention is as follows:
The present invention provides one to automatically control ONU start and stop method, including: open, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, automatically turn on ONU; Open night operation pattern in the second time of presetting, when ONU is when default room, determine whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; When ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, be automatically switched off ONU.
The present invention also provides for another kind and automatically controls ONU start and stop method, including: open, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, determine whether whether ONU is open state; If it is not, automatically turn on ONU; Open night operation pattern in the second time of presetting, when ONU is when default room, determine whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; When ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, be automatically switched off ONU.
The present invention also provides for another kind and automatically controls ONU start and stop method, including: open, in the default very first time, the pattern that works by day, it is judged that whether ONU is open state; If it is not, open ONU; Traffic monitoring data are detected whether; If having, duplicate detection traffic monitoring data; Otherwise, determine whether whether user is in; When judging that user is in, automatically turn on ONU; Night operation pattern is opened, it is judged that whether ONU is in default room in the second time of presetting; When ONU is when default room, determine whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; When ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, be automatically switched off ONU.
The present invention also provides for another kind and automatically controls ONU start and stop method, including: open, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, automatically turn on ONU; Night operation pattern is opened, it is judged that whether ONU is open state in the second time of presetting; If it is not, open ONU; Judge that whether ONU is in default room; When ONU is when default room, determine whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; When ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, be automatically switched off ONU.
It is further preferred that described when the brightness in default room is lower than predetermined threshold value, it is automatically switched off ONU and specifically includes: when detection presets the brightness in room lower than predetermined threshold value, after the default waiting time, close ONU.
The present invention also provides for another kind and automatically controls ONU start and stop method, including: open, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, automatically turn on ONU; Night operation pattern is opened, it is judged that whether ONU is open state in the second time of presetting; If it is not, open ONU; Judge that whether ONU is in default room; When ONU is when default room, determine whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; When ONU is not when default room, it is judged that whether user is in; If so, further determine whether there are traffic monitoring data; Otherwise, ONU is closed; Further determine whether there are traffic monitoring data, when being absent from traffic monitoring data, be automatically switched off ONU.
It is further preferred that described step judges whether that traffic monitoring data also include: when detection is absent from traffic monitoring data, after the default waiting time, close ONU.
Present invention also offers one and automatically control ONU start stop system, should in aforementioned manners, including mode conversion module, infrared detection module, presetting module, light sensor module, traffic monitoring module, logic processing module and automatic switching module; Described mode conversion module opens, in the default very first time, the pattern that works by day, and opens night operation pattern in the second time of presetting; Mode of operation by day, described infrared detection module judges whether user is in; Described logic processing module receives described infrared detection module and judges that controlling described automatic switching module when user is in opens ONU; In night operation pattern, whether described presetting module arranges ONU in default room; Described light sensor module arranges ONU when default room in described presetting module, it is judged that whether preset the brightness in room lower than predetermined threshold value; Described logic processing module receives described light sensor module and judges that controlling described automatic switching module when the brightness presetting room is lower than predetermined threshold value closes ONU; Described traffic monitoring module arranges ONU not when default room in described presetting module, it may be judged whether there are traffic monitoring data; Described logic processing module receives described traffic monitoring module and judges that controlling described automatic switching module when being absent from traffic monitoring data closes ONU.
Compared with prior art, the present invention passes through infrared detection module, light sensor module, traffic monitoring module, realize the comprehensive on-off state analyzed various relevant parameters and control ONU according to result intelligent, make the switching automatization more between ONU switching on and shutting down different working modes, intellectuality, thus reducing loss, saving the energy, the safety of the user's living environment simultaneously also improved.
Detailed description of the invention
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below comparison accompanying drawing is illustrated the specific embodiment of the present invention. Apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings, and obtain other embodiment.
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent its practical structures as product. It addition, so that simplified form readily appreciates, some figure has the parts of identical structure or function, only symbolically depict one of them, or only mark one of them. In this article, " one " not only represents " only this ", it is also possible to represent the situation of " more than one ".
Fig. 1 is a kind of step schematic diagram automatically controlling ONU start and stop method of the present invention, as a specific embodiment of the present invention, as it is shown in figure 1, one automatically controls ONU start and stop method, including: S10 opens, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, automatically turn on ONU; S20 opens night operation pattern in the second time of presetting; S30, when ONU is when default room, determines whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; S40, when ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, is automatically switched off ONU.
The present invention mode of operation of ONU is divided into daytime and night two kinds of mode of operations, 6:00��20:00 is defined as day mode, and 20:00��next day 6:00 is defined as Night. Every day, 6:00 automatically turned on the pattern of working by day, especially by closing light sensor module 40 and opening infrared detection module 20 and realize, every day, 20:00 automatically turned on night operation pattern, especially by closing infrared detection module 20 and starting light sensor module 40 and realize, infrared detection module 20 and light sensor module 40 alternation, achieve day and night working mode change, avoid the risk of the adverse consequences caused due to anthropic factor, so that the switching between ONU duty is more intelligent, convenience, play energy-conservation effect. This by user's self-defining, only for the concrete time period in the present embodiment, can be not especially limited by the time period of concrete day and night mode of operation.
By day under mode of operation, first judge whether user is in by infrared detection module 20 and open ONU, ONU is closed when user is away from home, ONU is opened when user goes home, present invention effectively prevents the situation automatically turning on ONU when user stays out, save electric energy, ensure that Electrical Safety simultaneously.
Under night operation pattern, it is divided into ONU to be arranged on default room (presetting room in the present embodiment is bedroom) according to the difference arranging ONU riding position and ONU is not disposed on presetting room and provides two schemes.
One is arranged on default room and bedroom for ONU, if ONU is in bedroom, combines with traffic monitoring and infrared acquisition and judges, be unlikely to be 0 flow, so ONU accurately and timely can not accomplish automatic shutdown when the mobile phone of user is connected with ONU. Consider the health of user, therefore the present invention is that the brightness by bedroom carrys out start and stop ONU, judges that the brightness in bedroom is to judge whether user has turned off the light sleep especially by light sensor module, if the brightness in bedroom is lower than predetermined threshold value, then illustrate that user turns off the light, then close ONU.
When another kind is arranged on other rooms for ONU, without considering that infrared acquisition affects the health of user, with flow and infrared judge more suitable, namely according to traffic monitoring and infrared acquisition result comprehensive descision the need of closing ONU, namely judge whether user is in and judges that whether user is in online by infrared detection by traffic monitoring
The present invention combines pattern and the night operation pattern of working by day, and whether ONU is in default room and carrys out start and stop ONU so that ONU more can accurately judge the demand of user, more green health.
Above-described embodiment is improved, obtains another kind and automatically control ONU start and stop method, including: S10 opens, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, determine whether whether ONU is open state; If it is not, automatically turn on ONU; S20 opens night operation pattern in the second time of presetting, it is judged that whether ONU is in default room; S30, when ONU is when default room, determines whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; S40, when ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, is automatically switched off ONU.
In the modern life that network is popularized very much, the frequency using network when user is in is very high, by first judging whether user is in the present embodiment, further judge whether ONU is off-mode, if shutdown, automatically turn on ONU, achieving after closing ONU night, user is in rest daytime, it is necessary to can surf the Net easily and fast at any time during commonly used network.
Above-described embodiment is improved, obtains another kind and automatically control ONU start and stop method, including: S10 opens, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user stays out, close ONU; When judging that user is in, determine whether whether ONU is open state; If ONU is not open state, then automatically turn on ONU; If ONU is open state, then traffic monitoring data are detected whether further; If there being traffic monitoring data, then duplicate detection traffic monitoring data; Otherwise, repeat to judge whether user is in; S20 opens night operation pattern in the second time of presetting, it is judged that whether ONU is in default room; S30, when ONU is when default room, determines whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; S40, when ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, is automatically switched off ONU.
Concrete, pass through merely traffic monitoring, user is shut off ONU after stopping online, the phenomenon of repeated switching is easily caused when the use network of the frequent discontinuity of user, by adding infrared detection module 2020, achieve festivals or holidays or other users are in when having a rest and make ONU keep open state, user closes ONU after going out, both improve safety, reach energy-saving and cost-reducing effect, when turn avoid the use network of the frequent discontinuity of user, cause the bad phenomenon of the machine of frequently switching on, reduce equipment loss.
Above-described embodiment is improved, obtains another kind and automatically control ONU start and stop method, including: S10 opens, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, automatically turn on ONU; S20 opens night operation pattern in the second time of presetting, it is judged that whether ONU is open state; If it is not, open ONU; Judge that whether ONU is in default room; S30, when ONU is when default room, determines whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; S40, when ONU is not when default room, further determines whether there are traffic monitoring data, when being absent from traffic monitoring data, is automatically switched off ONU.
Concrete, the time that in most cases user goes home is fixing, but also there will be the situation that user just goes home very late once in a while, and this step solves ONU when user's late home can not Auto Power On situation.
Preferably, described when the brightness in default room is lower than predetermined threshold value, it is automatically switched off ONU and specifically includes: when detection presets the brightness in room lower than predetermined threshold value, after the default waiting time, close ONU. Some user habit lies on a bed after turning off the light and goes up net a little while again, then just have a rest, in order to adapt to case above, wait for a period of time and turn off ONU, this time can be a regular time, can also be the time set by user, thus can meet the multiple demand continuing online after user turns off the light.
Above-described embodiment is improved, obtains another kind and automatically control ONU start and stop method, including: S10 opens, in the default very first time, the pattern that works by day, it is judged that whether user is in; When judging that user is in, automatically turn on ONU; S20 opens night operation pattern in the second time of presetting, it is judged that whether ONU is open state; If it is not, open ONU; Judge that whether ONU is in default room; S30, when ONU is when default room, determines whether that whether the brightness presetting room is lower than predetermined threshold value, when the brightness in default room is lower than predetermined threshold value, is automatically switched off ONU; S40 is when ONU is not when default room, it is judged that whether user is in; If so, further determine whether there are traffic monitoring data; Otherwise, ONU is closed; Further determine whether there are traffic monitoring data, when being absent from traffic monitoring data, be automatically switched off ONU.
It is further preferred that described step judges whether that traffic monitoring data also include: when detection is absent from traffic monitoring data, after the default waiting time, close ONU.
Concrete, user is it is possible that the situation of intermittent online, in order to meet the requirement of user's intermittence online, wait and preset the waiting time, this time can be a regular time, it is also possible to is the time set by user, thus can meet the demand demand of multiple intermittent online.
Fig. 2 is the model process figure that works by day of a kind of ONU of automatically controlling start and stop method of the present invention. In conjunction with Fig. 2, the workflow under the present invention by day mode of operation is introduced.
ONU is in when working by day pattern, concrete operation step:
200) preset the very first time and open the pattern that works by day,
201) judge whether user is in, if so, perform step 202; Otherwise, perform step 204 and close ONU.
202) judge whether ONU is open state, if it is not, when then ONU is in off-mode, performs step 205 and open ONU; Otherwise, step 203 is performed.
203) traffic monitoring data are determined whether; If having, repeated execution of steps 203, otherwise, repeated execution of steps 201.
204 close ONU.
205 open ONU.
User opens ONU after going home, and makes user that the use of ONU is more convenient, improves user and use the comfort level of network. The pattern that works by day of ONU, it is achieved that user closes ONU after going out, opens ONU after going home, meet simultaneously user be in daytime rest time can use the demand of network easily and fast, under not affecting the premise that user uses, can not only save energy and reduce the cost, and safer.
Fig. 3 is a kind of night operation model process figure automatically controlling ONU start and stop method of the present invention. In conjunction with Fig. 3, present invention workflow under night operation pattern is introduced.
When ONU is in night operation pattern, concrete operation step is as follows:
300) night operation pattern is opened.
301) judge whether ONU starts shooting, if ONU is in off-mode, performs step 310 and open ONU, otherwise perform step 302.
302) whether ONU is arranged on default room, if so, performs step 303), otherwise, when being placed in elsewhere, perform step 306).
303) judge that whether the brightness presetting room is lower than predetermined threshold value, if it is not, then user does not turn off the light, continues executing with step 303), otherwise, user turns off the light rests, execution step 304).
304) the default waiting time is waited.
305) perform automatic shutdown operation, close ONU.
306) judge whether user is in, if so, then perform step 307), otherwise, user is in, and performs step 305).
307) determining whether flow by traffic monitoring data, if so, then user, in online, continues executing with step 307), otherwise, user does not surf the Net, and performs step 308).
308) wait the default waiting time, perform step 305.
The pattern of working at night of ONU, it is achieved that user turns off the light and has a rest or not in use by closing ONU after network, under not affecting the premise that user uses, has reached purpose that is energy-saving and cost-reducing and that improve safety equally.
Fig. 4 is a kind of composition structure chart automatically controlling ONU start stop system of the present invention, another specific embodiment as the present invention, as shown in Figure 4, one automatically controls ONU start stop system, should in aforementioned manners, including mode conversion module 10, infrared detection module 20, presetting module 30, light sensor module 40, traffic monitoring module 50, logic processing module 60 and automatic switching module 70; Described mode conversion module 10 opens, in the default very first time, the pattern that works by day, and opens night operation pattern in the second time of presetting; Mode of operation by day, described infrared detection module 20 judges whether user is in; Described logic processing module 60 receives described infrared detection module 20 and judges that controlling described automatic switching module 70 when user is in opens ONU; In night operation pattern, described presetting module 30 judges that whether ONU is in default room; In described presetting module 30, described light sensor module 40 judges that ONU is when default room, it is judged that whether preset the brightness in room lower than predetermined threshold value; Described logic processing module 60 receives described light sensor module 40 and judges that controlling described automatic switching module 70 when the brightness presetting room is lower than predetermined threshold value closes ONU; In described presetting module 30, described traffic monitoring module 50 judges that ONU is not when default room, it may be judged whether there are traffic monitoring data; Described logic processing module 60 receives described traffic monitoring module 50 and judges that controlling described automatic switching module 70 when being absent from traffic monitoring data closes ONU.
Concrete, working mode change module 10 mode of operation of ONU is divided into daytime and night two kinds of mode of operations, 6:00��20:00 is defined as day mode, 20:00��next day 6:00 is defined as Night, 6:00 closed light sensor module 40 and opened infrared detection module 20 every day, 20:00 closed infrared detection module 20 and started light sensor module 40 every day, this module achieves infrared detection module 20, light sensor module 40 alternation, avoid infrared detection module 20, the problem that the long-term continuous firing of light sensor module 40 causes equipment loss, improve the safety of equipment, and extend the life cycle of equipment.
Presetting module 30, this module is used for night operation pattern, is used for judging that whether ONU is default room (presetting room in the present embodiment is bedroom). When ONU is when bedroom, not performing any operation, ONU, when other positions, closes light sensor module 40 turn-on flow rate monitoring module 50. This module solves ONU when not leaving bedroom in, and light sensor module 40 cannot correctly judge whether to turn off the light, the problem causing error cut-off machine.
Infrared detection module 20, periodically sends the message of whether presence of people to logic processing module 60 during startup.
Light sensor module 40, periodically sends, to logic processing module 60, the message whether turned off the light during startup.
Traffic monitoring module 50, periodically sends, to logic processing module 60, the message whether having flow during startup.
Logic processing module 60, control infrared detection module 20, light sensor module 40, the unlatching of traffic monitoring module 50, closed mode according to demand, receive the message of infrared detection module 20, light sensor module 40, traffic monitoring module 50 transmission, and process, send switching on and shutting down to automatic switching module 70 when switching on and shutting down condition meets and control message.
Automatic switching module 70, receives switching on and shutting down and controls message and perform the operation of automatic switching ONU.
The present invention is mainly when ONU uses, daytime by infrared detection module 20, network learns whether people exists after stopping using, and people's presence or absence is transmitted as parameter, logic processing module 60 receives information and decides whether that sending switching on and shutting down controls information according to information content, whether night is placed in bedroom according to ONU and provides two schemes, ONU photosensitive sensing module 40 when bedroom judges whether user has turned off the light sleep, after turning off the light, logic processing module 60 sends shutdown control information after waiting one section, when ONU is placed in elsewhere, logic processing module 60 is according to when traffic monitoring and infrared acquisition result comprehensive descision send shutdown control information, ONU automatic switching module 70 receives control information and performs automatic switching operation.
It should be noted that, above-described embodiment all can independent assortment as required. The above is only the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.