The electricity saving method of bidirectional wireless perimeter set
Technical field
The invention relates to a kind of computer wireless peripheral device, and particularly relevant for a kind of bidirectional wireless perimeter set and its electricity saving method.
Background technology
Flourish along with information, the relation of computer and daily life also is inseparable day by day.Traditional computer framework comprises that a host computer, a display and the peripheral equipment that some are connected with host computer form.And with the fast development of this industry of person, except the contest on the function, pursuit on compact, the dealer there's no one who doesn't or isn't seeks to promote the convenience of operational efficient and operation.So the relevant dealer of peripheral equipment develops some and have the wireless perimeter set that characteristic is gone in wireless output, for example wireless mouse, Wireless Keyboard or the like, main order ground is in order to lifting operator's convenience, also can reduce the numerous puzzlements of wiring.
Yet in general above-mentioned wireless perimeter set all is as main electric power supply source, so for wireless perimeter set, power consumption will be very important considering with battery.No matter general wireless perimeter set can be the means with software or hardware at inner setting one power management policy all usually.If the power management policy of wireless perimeter set is not good, can imagine that the user will need often this device to be done the action of changing battery or charging, therefore will cause the very large inconvenience of user.
Fig. 1 illustrates the constitutional diagram that is applied in the power management policy on the wireless perimeter set for existing.Please refer to Fig. 1, in Fig. 1, comprise 3 operator schemes, is respectively mode of operation 101, standby mode 102 and shutdown mode 103.On existing wireless perimeter set, after starting completion, generally all can be introduced into mode of operation 101, the electric power consumption of this moment is maximum.In the middle of one section preset time T 1, this wireless perimeter set does not receive the user when operating, and just gets into standby modes 102 by mode of operation 101.In general, standby mode 102 can be closed some specific function on the wireless perimeter set usually, and keeps some necessary function.Come for example with wireless optical mouse; Standby mode 102 times; The light emitting diode of optical sensor may deepening under optical mice; The operating frequency of internal circuit may step-down, perhaps closes optical sensor fully with reduce power consumption, and the function that only keeps button is waken optical mice up and got back to mode of operation 101.
Next, get into after the standby mode 102, this wireless perimeter set does not still receive user's operation, and lasting standby just can get into shutdown mode 103 by standby mode 102 through after another preset time T 2.In general shutdown mode 103 all closes all power supplys exactly.The opening program that the user must pass through standard just can make this wireless perimeter set get into mode of operation 101 by shutdown mode 103.Yet above-mentioned preset time T 1 does not have certain regular definable with T2, generally is with the consumer behavior pattern of this product to be come definition of T 1 and T2.If T1 or T2 timing definition are too short, it is very insensitive that then the user can experience the wireless perimeter set operation, causes the very large inconvenience of user.After the user uses up shut down of computer,, will cause very big power consumption if T1 or T2 timing definition are oversize.
Summary of the invention
The object of the invention is providing a kind of electricity saving method and a kind of bidirectional wireless perimeter set exactly, in order to solve in the prior art unnecessary power consumption.
The present invention proposes a kind of electricity saving method, is used to operate a two-way wireless perimeter set of a main frame, and the method comprises: at main frame and bidirectional wireless perimeter set, a wireless communication protocol is provided; Through wireless communication protocol, set up two-way wireless connections (link) of main frame and bidirectional wireless perimeter set; And when the double-direction radio connection does not exist, then get into a shutdown mode, wherein when shutdown mode, the above-mentioned functions module all is in non-operating state.
According to the described electricity saving method of preferred embodiment of the present invention, above-mentioned bidirectional wireless perimeter set also comprises the following operations pattern: originate mode, mode of operation and standby mode, wherein; When originate mode; Start a plurality of functional modules of bidirectional wireless perimeter set, in mode of operation, the above-mentioned functions module is at operating state; When standby mode, the part of above-mentioned functions module is in non-operating state.
According to the described electricity saving method of preferred embodiment of the present invention, when at originate mode, also comprise the following steps: to set up above-mentioned double-direction radio and connect; When above-mentioned double-direction radio connects the foundation completion, get into mode of operation; And when double-direction radio connects the foundation failure, get into shutdown mode.
According to the described electricity saving method of preferred embodiment of the present invention, also comprise: in a schedule time, bidirectional wireless perimeter set does not receive user's operation, then gets into standby mode.
The present invention proposes a kind of bidirectional wireless perimeter set, comprises a plurality of functional modules, wireless communication module and electric power controller.Wireless communication module comprises a wireless communication protocol, in order to set up two-way wireless connections through wireless communication protocol and external host.When electric power controller does not exist in order to be connected to when double-direction radio, close the above-mentioned functions module.
According to the described bidirectional wireless perimeter set of preferred embodiment of the present invention, above-mentioned electric power controller comprises: a state machine comprises: originate mode, mode of operation, standby mode and shutdown mode.Originate mode is in order to starting a plurality of functional modules of bidirectional wireless perimeter set, and sets up double-direction radio and connect; In mode of operation, the above-mentioned functions module is at operating state; At standby mode, the part of above-mentioned functions module is in non-operating state; At shutdown mode, the above-mentioned functions module all is in non-operating state, wherein; When double-direction radio connects the foundation completion; Get into mode of operation, do not receive user's one schedule time of operation when bidirectional wireless perimeter set after, then get into standby mode; When the double-direction radio connection does not exist, get into shutdown mode.
According to the described bidirectional wireless perimeter set of preferred embodiment of the present invention, above-mentioned state machine also comprises: attempt connection mode, when connection failure, get into and attempt connection mode, attempt setting up double-direction radio once more and connect.
The present invention passes through wireless communication protocol because of employing; Set up two-way wireless connections of main frame and bidirectional wireless perimeter set; When this double-direction radio connects the foundation failure; Therefore then get into a shutdown mode, need not to consume the existing power consumption that must one section Preset Time of very long wait just can carry out shutdown mode, so the unnecessary power consumption of minimizing that the present invention can be a large amount of.When double-direction radio connects because of the main frame shutdown; Or main frame and bidirectional wireless perimeter set are apart from too far away; Or bandwidth receives strong interference and causes broken string, because of bidirectional wireless perimeter set can not receive host information this moment, can confirm that bidirectional wireless perimeter set is connected when not existing with the double-direction radio of main frame; Also can get into a shutdown mode, the unnecessary power consumption of minimizing that so also can be a large amount of at once.
For let above-mentioned and other purposes of the present invention, feature and advantage can be more obviously understandable, hereinafter is special lifts preferred embodiment, and conjunction with figs. elaborates as follows.
Description of drawings
Fig. 1 illustrates the constitutional diagram into the power management policy of existing application on wireless perimeter set.
Fig. 2 illustrates the computer system synoptic diagram into the embodiment of the invention.
Fig. 3 illustrates among Fig. 2 embodiment of the present invention, the state machine in the electric power controller 223 (statemachine) figure.
Fig. 4 illustrates among Fig. 2 embodiment of the present invention, the state machine in the electric power controller 223 (statemachine) figure.
Embodiment
Fig. 2 illustrates the computer system synoptic diagram into the embodiment of the invention.Please refer to Fig. 2, this computer system comprises a two-way wireless perimeter set 22 of a main frame 21 and an embodiment of the invention, and wherein this bidirectional wireless perimeter set 22 comprises a plurality of functional module 221, wireless communication module 222 and electric power controller 223.Fig. 3 illustrates among Fig. 2 embodiment of the present invention, the state machine in the electric power controller 223 (state machine) figure.For the embodiment of the invention clearly is described, and spirit of the present invention is described clearly, the bidirectional wireless perimeter set 22 of above embodiment just with wireless mouse as for example.Should be known in that wireless mouse, Wireless Keyboard, wireless blue tooth earphone, wireless microphone all can be as wireless perimeter sets 22 such as; In addition, have computer, notebook computer, personal digital assistant, mobile phone of radio receiving transmitting module etc. such as, all can be as main frame 21, so the invention is not restricted to this.
Please be simultaneously with reference to figure 2 and Fig. 3, at first, user's open wireless slide-mouse 22.At this moment, the state machine in the electric power controller 223 just gets into originate mode 301 by shutdown mode 304.After getting into originate mode 301, this wireless mouse 22 just begins to control inner wireless communication module 222 and sets up two-way wireless connections (link) through a communications protocol (for example bluetooth communication agreement) and main frame 21.General way is to send the signal package that meets above-mentioned communications protocol, and waits for main frame 21 responses.When main frame 21 has been responded above-mentioned signal, just begin this double-direction radio of foundation table and connect.When the double-direction radio connection was set up successfully, the state machine in the electric power controller 223 had just got into mode of operation 302 by originate mode 301.The user just can accomplish its vernier control and the action of clicking through 22 pairs of these main frames of this wireless mouse 21.If this wireless mouse 22 of hypothesis apart from main frame 21 too far away or main frame 21 at all start cause these wireless connections to be set up not, then can directly get back to shutdown mode 304.
Next; Suppose that the user operates these main frame 21 shutdown of these wireless mouse 22 controls; Main frame 21 shutdown process can be done the broken string action to wireless mouse 22 notices usually, and after the broken string action was accomplished, the state machine in the electric power controller 223 had just got into shutdown mode 304 by mode of operation 302.Electric power controller 223 is just with the power-off of above-mentioned functions module 221, wireless communication module 222.So just can save many unnecessary power consumptions.
If above-mentioned power saving mode is only arranged, may be not enough to some extent in some situation.Assumed wireless connects when still being in the state (connected) of connection: in the present embodiment; As user when T1 does not operate this wireless mouse 22 for some time, the state machine in this moment electric power controller 223 just gets into standby modes 303 by mode of operation 302.And electric power controller 223 is just with the power-off of the functional module 221 of an above-mentioned part or let operating frequency descend with reduce power consumption and prolong battery serviceable life.Get into after the standby mode 302; This wireless perimeter set does not still receive user's operation; And after lasting another section of standby time T 2; State machine in the electric power controller 223 just can get into shutdown modes 304 by standby mode 303 at this moment, the power-off of above-mentioned functions module 221 and wireless communication module 222.In addition, if in the middle of mode of operation 302 or standby mode 303, main frame 21 is connected if break with double-direction radio between the wireless mouse 22, and the state machine in the electric power controller 223 is with regard to direct entering shutdown mode 304 at this moment.
What deserves to be mentioned is; Though above-mentioned example has been depicted a possible kenel to the electricity saving method and the bidirectional wireless perimeter set of the embodiment of the invention; But this area has common knowledge the knowledgeable should be known in that the double-direction radio connection also can't guarantee always all can to have factor of environmental once in a while and go to disturb wireless connections at the good state of signal; For example the covering or use the wireless device of same bandwidth too much or the like of antenna all might temporarily interfere with double-direction radio and connect.Therefore the state machine of above-mentioned Fig. 3 can be modified to Fig. 4 a little.Judge that at wireless perimeter set 22 its double-direction radio is connected to broken string state (disconnected) afterwards; Be introduced into one and attempt connection mode 401; Make wireless communication module 222 attempt connecting main frame at least once, get rid of the back double-direction radio in the hope of of short duration disturbing factor and connect to set up at once.After some trial line failures, should confirm non-of short duration disturbing factor, wireless perimeter set 22 can get into shutdown mode 304.
In sum, the present invention is because of adopting through wireless communication protocol, and two-way wireless connections of setting up main frame and bidirectional wireless perimeter set when this double-direction radio connects the foundation failure, then get into a shutdown mode; Double-direction radio connect to be set up the back if break again, also can get into shutdown mode at once or attempts getting into shutdown mode again after the line failure, therefore need not to consume existingly must very long wait fix the electric energy that one section Preset Time could get into shutdown mode.So the unnecessary power consumption of minimizing that the present invention can be a large amount of, and can prolong service time of bidirectional wireless perimeter set.
Though the present invention discloses as above with preferred embodiment; Right its is not in order to limit the present invention; Technical field has common knowledge the knowledgeable under any; Do not breaking away from the spirit and scope of the present invention, when can doing a little change and retouching, so protection scope of the present invention is when being as the criterion with what claim defined.