A kind of implementation method and device of low-power consumption panel-switch
Technical field
The present invention relates to a kind of switching technique field, more particularly to a kind of implementation method and dress of low-power consumption panel-switch
Put.
Background technology
At present, in the design of existing panel exploitation, many scenes, above panel-switch, only live wire, therefore can only all the way
Power supply is obtained by single fiery power taking, but this power supply can only provide very limited amount of electric current, therefore 433 communications can only be used
Deng the communication protocol of low-power consumption, but the communication protocols such as 433 are nonstandard, bring many insecure factors;And wifi agreements are made
For standard, it has been widely used, but conventional wifi is bigger due to receiving and launching power consumption, can not be used directly in list
The scene of fiery power taking.
Following defect be present in currently existing scheme:
(1) what wireless communication protocol used is not the communication protocol of standard;
(2) when using standard communication protocol, because power consumption is larger so that having no idea to apply in single fiery power taking
Scene above.
The content of the invention
For overcome the deficiencies in the prior art, an object of the present invention is to provide a kind of reality of low-power consumption panel-switch
Existing method, it can solve the technical problem of low-power consumption power supply.
The second object of the present invention is to provide a kind of implementation method of low-power consumption panel-switch, and it can solve low-power consumption confession
The technical problem of electricity.
The third object of the present invention is to provide computer-readable recording medium, and it can solve the technology of low-power consumption power supply and ask
Topic.
The fourth object of the present invention is to provide a kind of low-power consumption panel-switch, and it can solve the technology of low-power consumption power supply and ask
Topic.
An object of the present invention adopts the following technical scheme that realization:
A kind of implementation method of low-power consumption panel-switch, comprises the following steps:
Signal receiving step:Time synchronizing signal and the first information lock in time that main equipment is sent are received, and is entered
Resting state;
Reception state step:Enter information re-ception state when reaching first information lock in time;
Signal judgment step:Determine whether to receive control command signal, if it is, corresponding control operation is performed,
If it is not, then carry out resting state.
Further, network connection procedure is also included before signal receiving step:Judge signal receiver whether be
Special signal receiving device, if it is, carrying out network connection by the mode panel-switch and main equipment of privately owned encryption
And signal receiving step is performed, if it is not, then causing panel-switch to carry out network connection with main equipment using standard communication protocol
And perform signal receiving step.
Further, time receiving step is also included after signal judgment step:Received for the second synchronizing information time, when
To entering information re-ception state during the second synchronizing information time.
Further, the first information lock in time is different from the second synchronizing information time.
Further, connect in signal receiving step, signal judgment step and time receiving step by WIFI module
The collection of letters number.
The second object of the present invention adopts the following technical scheme that realization:
A kind of implementation method of low-power consumption panel-switch, comprises the following steps:
Signal receiving step:Time synchronizing signal and synchronizing information cycle, the described information for receiving main equipment transmission are same
Step period includes rest period and active period;
Reception state step:Enter information re-ception state when reaching the active period in the synchronizing information cycle;
Signal judgment step:Determine whether to receive control command signal, if it is, corresponding control operation is performed,
If it is not, then carry out resting state.
The third object of the present invention adopts the following technical scheme that realization:
A kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program
The as above method described in any one is realized when being executed by processor.
The fourth object of the present invention adopts the following technical scheme that realization:
A kind of low-power consumption panel-switch, including switch control module and WIFI module, including processing module and single fiery power taking
Module, the switch control module and WIFI module are electrically connected with processing module;The switch control module and processing mould
Block is electrically connected with single fiery electricity-fetching module, and the processing module is used to perform the as above method described in any one.
Further, in addition to touch key-press, the touch key-press are electrically connected with processing module, and the touch key-press is used
In the working condition by processing module controlling switch control module.Compared with prior art, the beneficial effects of the present invention are:
The low-power consumption panel-switch and its implementation of the present invention is by setting equipment periodic to monitor so as to realize equipment
Low-power consumption, so as to directly apply in the scene of single fiery power taking.
Brief description of the drawings
Fig. 1 is the flow chart of the implementation method of the low-power consumption panel-switch of embodiment one;
Fig. 2 is the flow chart of the implementation method of the low-power consumption panel-switch of embodiment two;
Fig. 3 is the structured flowchart of the low-power consumption panel-switch of embodiment three.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not
Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Embodiment one:
As shown in figure 1, present embodiments providing a kind of implementation method of low-power consumption panel-switch, comprise the following steps:
S100:Judge whether signal receiver is special signal receiving device, if it is, the side by privately owned encryption
Formula causes panel-switch to carry out network connection with main equipment and performs signal receiving step, if it is not, then being assisted using standard traffic
View causes panel-switch to carry out network connection with main equipment and performs signal receiving step;
S101:Time synchronizing signal and the first information lock in time that main equipment is sent are received, and enters resting state;
The purpose for receiving time synchronizing signal is for synchronous timing signal, conveniently carries out time setting and followed by synchronizing information
The calibration of time;
S102:Enter information re-ception state when reaching first information lock in time;Namely every is to make after a while
Obtain the panel-switch entering signal reception state, be after entering signal reception state can so that it starts reception signal, because
Consumed energy is just understood only when reception signal for WIFI module, corresponding energy will not be consumed when being in hibernation
Amount, so certain reduction power consumption can be played a part of;And because the control for being at every moment required for carrying out panel-switch it is not
System, so per entering information re-ception state this set more significant after a while;
S103:Determine whether to receive control command signal, if it is, corresponding control operation is performed, if it is not, then
Carry out resting state;When the judgment step has performed, step S104 can be all performed,;
S104:Received for the second synchronizing information time, enter information re-ception state when to the second synchronizing information time.
Receiving for the second synchronizing information time can enter among the circulation of next stage afterwards, in step S101, step S102 and step
By WIFI module come reception signal in S104.Receiving for the second synchronizing information time is known next time in order that obtaining panel-switch
Into the time of information re-ception state, the two synchronizing information times can be the same or different, and the rule that it is set is by can
Can not only set out conventional requirement by developer's self-defining, developer, can also be carried out according to the actual conditions of user
Customization operations so that it has more hommization.
Embodiment two:
As shown in Fig. 2 present embodiments providing a kind of implementation method of low-power consumption panel-switch, comprise the following steps:
S201:Receive time synchronizing signal and the synchronizing information cycle that main equipment is sent, described information bag synchronizing cycle
Include rest period and active period;By WIFI distributions, the route-map that panel-switch needs to connect is sent to WIFI module, road
The router or other equipment that can receive WIFI packets of standard can be used by device information;If connection is standard
Router, then use the WIFI communication protocols of standard, walk ICP/IP protocol;If connection is that proprietary WIFI is received
Equipment, then directly led to using the control manage date frame traffics inside WIFI protocol stacks using privately owned cipher mode
Letter, communication key can configure long-term preservation, when rest period time-out time, can set privately, can carry out according to demand
Dynamic adjusts, privately owned communication protocol, it is possible to reduce the networking time between router, reduce WIFI networking time, go
Fall TCP/IP DHCP, directly communicated, so as to reduce WIFI networking time;
Relative to 433 communication modules, the security of panel-switch is enhanced by the way of WIFI communications.
S202:Enter information re-ception state when reaching the active period in the synchronizing information cycle;In information re-ception state
When, control command signal can be not only received, otherwise signal can also be received, can also feedback panel switch
Relevant information be given on the intelligent mobile terminal of user;
S203:Determine whether to receive control command signal, if it is, corresponding control operation is performed, if it is not, then
Carry out resting state.
Single fiery power taking can be then realized by the above method, if allowing panel-switch to be constantly in the reception state of equipment,
The reception state of the WIFI module allowed in panel-switch is that is to say, then can produce larger power in use, so that
Obtain single fiery power taking and can not meet corresponding requirement.It can cause that the power of actual consumption is smaller by this method, actual consumption
Power=standard receives electric current * active periods/synchronizing information cycle, can its reality by setting different size of active period
The power of consumption is also different, and this point production firm can be designed according to the demand of reality.
Embodiment three:
As shown in figure 3, present embodiments provide a kind of low-power consumption panel-switch, including switch control module, WIFI module,
Processing module and single fiery electricity-fetching module, the switch control module and WIFI module are electrically connected with processing module;It is described to open
Close control module and processing module to be electrically connected with single fiery electricity-fetching module, the fiery electricity-fetching module of list is used to provide power to place
Module and switch control module are managed, generally, the supply current of single fiery power taking is less than 5mA, wherein the WIFI module
The complete communication between existing router or other WIFI equipments, the switch control module are mainly used in controlling switch electricity
Road and the adjustment for carrying out some power outputs;The processing module is used to perform institute in embodiment one or embodiment two
The method stated.
The panel-switch also includes touch key-press, physical button etc. is can also be in addition to touch key-press, it is only made
For a user and a mode of panel-switch direct interaction.So that the operation of the panel-switch has more versatility, more just
Just the use of user.
Example IV:
Present embodiment discloses a kind of computer-readable recording medium, computer program is stored thereon with, it is characterised in that:
The computer program realizes embodiment one or the reality of the low-power consumption panel-switch described in embodiment two when being executed by processor
Existing method.
Above-mentioned embodiment is only the preferred embodiment of the present invention, it is impossible to the scope of protection of the invention is limited with this,
The change and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed scope.