CN106205089A - A kind of based on passive and wireless switch to code method and system - Google Patents

A kind of based on passive and wireless switch to code method and system Download PDF

Info

Publication number
CN106205089A
CN106205089A CN201610573582.1A CN201610573582A CN106205089A CN 106205089 A CN106205089 A CN 106205089A CN 201610573582 A CN201610573582 A CN 201610573582A CN 106205089 A CN106205089 A CN 106205089A
Authority
CN
China
Prior art keywords
code
information
passive
module
wireless switch
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
CN201610573582.1A
Other languages
Chinese (zh)
Other versions
CN106205089B (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.)
Ningbo Gongniu Electric Appliances Co Ltd
Original Assignee
Ningbo Gongniu Electric Appliances 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 Ningbo Gongniu Electric Appliances Co Ltd filed Critical Ningbo Gongniu Electric Appliances Co Ltd
Priority to CN201910127438.9A priority Critical patent/CN109859451B/en
Priority to CN201610573582.1A priority patent/CN106205089B/en
Publication of CN106205089A publication Critical patent/CN106205089A/en
Application granted granted Critical
Publication of CN106205089B publication Critical patent/CN106205089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/964Piezoelectric touch switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present invention discloses a kind of based on passive and wireless switch to code method and system, relates to remote switch technical field, for setting up the corresponding relation of passive and wireless switch and controlled device.Described based on passive and wireless switch code method is included: step S100, passive and wireless switch control button press once time, receive passive and wireless switch send first information on the code;Step S110, judge after entering code state in the T second, if receiving a order one information on the code, wherein, a is the integer more than 1;If it is, perform step S130;Step S130, store the first information on the code, to complete the foundation of passive and wireless switch and the corresponding relation of controlled device.

Description

A kind of based on passive and wireless switch to code method and system
Technical field
The present invention relates to remote switch technical field, particularly relate to a kind of based on passive and wireless switch to code method and be System.
Background technology
For the work of the electronic equipment of such as household electrical appliance, line traffic control and two kinds of sides of controlled in wireless can be used at present Formula is controlled, and wherein, having line traffic control is to control electronic equipment by being arranged in the fixed switch on wall, ground etc. System, and controlled in wireless is to send corresponding control signal by the equipment of controlled in wireless such as remote controller etc. to electronic equipment, with reality Now to electronic equipment distant control, providing facility in life to user, therefore, controlled in wireless is widely used to window The control of the electronic equipments such as curtain, electric fan, water heater and lamp, has broad application prospects in Smart Home field.
Controlled in wireless generally can use infrared light or radiofrequency signal carrying control signal, when controlled in wireless uses radio frequency letter During number carrying control signal, owing to radiofrequency signal can pass the barrier such as wall, floor, therefore, the equipment need of controlled in wireless To set up corresponding relation with controlled device, to avoid the equipment of controlled in wireless to control unexpected controlled device, wherein, to set up nothing The equipment of line traffic control is referred to as code with the process of the corresponding relation of controlled device.
The equipment of controlled in wireless is usually remote controller, and remote controller generally uses battery to power, at present, at remote controller with controlled When equipment is to code, the physical switch controlled on controlled device remains on, and then length presses the control button on remote controller, distant Control button on control device is during being long pressed, and remote controller continues to send information on the code to controlled device, and controlled device is connecing After receiving the information on the code that remote controller sends, this information on the code is stored, complete remote controller pass corresponding with controlled device The foundation of system.After the foundation of the corresponding relation completing remote controller and controlled device, when pressing the function key on remote controller, By remote controller, the duty of controlled device is controlled.
But, generally use battery to power due to remote controller, user needs frequently to change the battery of remote controller, causes distant Control device in-convenience in use.Therefore, people start research and development and switch without battery powered passive and wireless, on passive and wireless switch When control button is pressed or upsprings, the mechanical energy controlling button is converted to electric energy by the electricity generation module of passive and wireless switch, for Passive and wireless switch power supply.But owing to passive and wireless switch is not the most all to have electricity, such as on passive and wireless switch Control button when by Continued depression, passive and wireless switch be in without electricity state, thus passive and wireless switch cannot be to quilt Control equipment sends information on the code, causes passive and wireless switch can not set up corresponding relation with controlled device.
Summary of the invention
It is an object of the invention to provide a kind of based on passive and wireless switch to code method and system, be used for setting up passive Wireless switching and the corresponding relation of controlled device.
To achieve these goals, the present invention provides following technical scheme:
A first aspect of the present invention provides a kind of based on passive and wireless switch to code method, including:
Step S100, when the control button that described passive and wireless switchs is pressed once, receive described passive and wireless switch First information on the code sent;
Step S110, judgement enter in the T second after code state, if receiving a described first information on the code, wherein, a is Integer more than 1;If it is, perform step S130;
Step S130, store described first information on the code, corresponding with controlled device to complete described passive and wireless switch The foundation of relation.
A second aspect of the present invention provides a kind of system based on passive and wireless switch, including: passive and wireless switchs, controlled Equipment, and the control equipment corresponding with described controlled device, described control equipment include receiver module, the first judge module and Memory module;Wherein,
Described passive and wireless switch is pushed once for the control button switched at described passive and wireless, sends an order One information on the code;
Described receiver module is connected with described passive and wireless switch, and described receiver module is for switching at described passive and wireless Control button when being pushed once, receive the most described first information on the code that described passive and wireless switch sends;
Described first judge module is connected with described receiver module, and described first judge module is for judging in described control Equipment enters described in the T second after code state, and whether described receiver module receives a described first information on the code, and wherein, a is Integer more than 1;
Described memory module is connected with described first judge module, described memory module be used for entering described to code state after In the T second, when described receiver module receives a described first information on the code, store described first information on the code, to complete described nothing The foundation of the corresponding relation of source wireless switching and described controlled device.
The passive and wireless of setting up code method based on passive and wireless switch using the present invention to provide switchs and controlled device Corresponding relation time, press control button a time of passive and wireless switch, often press control button that passive and wireless switchs once, Passive and wireless switch sends first information on the code, i.e. presses control button a time of passive and wireless switch, passive and wireless switch Send a order one information on the code;After receiving a order one information on the code, it may be judged whether connect in the T second after entering code state Receive a order one information on the code, when being judged as YES, then store the first information on the code, complete passive and wireless switch and controlled device The foundation of corresponding relation, when again pressing the control button of passive and wireless switch, then can pass through passive and wireless on-off control The duty of controlled device.The based on passive and wireless switch to code method of present invention offer is provided, solves passive and wireless Switch control the button problem that can not persistently send the first information on the code when Continued depression, it is achieved that passive and wireless switch with The foundation of the corresponding relation of controlled device.
A third aspect of the present invention provides another kind of based on passive and wireless switch to code method, including:
Step S300, when the control button that described passive and wireless switchs is pressed, receive described passive and wireless switch send out The second information on the code sent, when upspringing after the control button that described passive and wireless switchs is pressed and held within, receives described nothing The 3rd information on the code that source wireless switching sends;
Step S310, acquisition receive the time residing for described second information on the code and receive residing for described 3rd information on the code Time between time interval Δ t;
Step S320, judge to enter in the T second after code state, if receive described second information on the code and described 3rd right Code information, and Δ t=Δ t0;Wherein, Δ t0<T;If it is, perform step S340;
Step S340, store described second information on the code, corresponding with controlled device to complete described passive and wireless switch The foundation of relation.
A third aspect of the present invention provides another kind of system based on passive and wireless switch, including: passive and wireless switchs, quilt Control equipment, and the control equipment corresponding with described controlled device, described control equipment includes that receiver module, time obtain mould Block, the 5th judge module and memory module;Wherein,
Described passive and wireless switch, for when the control button that described passive and wireless switchs is pressed, sends second to code Information, is additionally operable to when described control button is pressed and held within upspringing afterwards, sends the 3rd information on the code;
Described receiver module is connected with described passive and wireless switch, and described receiver module is used for receiving described passive and wireless and opens Close described second information on the code and described 3rd information on the code sent;
Described time-obtaining module is connected with described receiver module, and described time-obtaining module is used for obtaining reception described the Time residing for two information on the codes and the time interval Δ t of reception time residing for described 3rd information on the code;
Described 5th judge module is connected with described receiver module and described time-obtaining module respectively, and the described 5th judges Module is used for judging entering in the T second after code state, and whether described receiver module receives described second information on the code and described the Three information on the codes, and Δ t=Δ t0;Wherein, Δ t0<T;
Described memory module is connected with described 5th judge module, and described memory module is for entering the T second after code state In, described receiver module receives described second information on the code and described 3rd information on the code, and Δ t=Δ t0Time, storage is described Second information on the code, to complete the foundation of described passive and wireless switch and the corresponding relation of described controlled device.
The passive and wireless of setting up code method based on passive and wireless switch using the present invention to provide switchs and controlled device Corresponding relation time, press passive and wireless switch control button, passive and wireless switch send the second information on the code, then make nothing The control button of source wireless switching is upspring after being pressed and held within, and passive and wireless switch sends the 3rd information on the code;When receiving After second information on the code and the 3rd information on the code, obtain and receive the time residing for the second information on the code and receive the 3rd information on the code The time interval of residing time, then judges whether to receive the second information on the code and the 3rd in the T second after entering code state Information on the code, and time residing for the second information on the code of reception and receive the time interval of the time residing for the 3rd information on the code and be The Δ t0 second, when being judged as YES, then store the second information on the code, complete the passive and wireless switch corresponding relation with controlled device Set up.The based on passive and wireless switch to code method of present invention offer is provided, solves the control button of passive and wireless switch The problem that can not persistently send the second information on the code when Continued depression, it is achieved that passive and wireless switch is corresponding with controlled device The foundation of relation.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the present invention, this Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
The flow chart one to code method based on passive and wireless switch that Fig. 1 provides for the embodiment of the present invention;
The flowchart 2 to code method based on passive and wireless switch that Fig. 2 provides for the embodiment of the present invention;
The flow chart 3 to code method based on passive and wireless switch that Fig. 3 provides for the embodiment of the present invention;
The flow chart four to code method based on passive and wireless switch that Fig. 4 provides for the embodiment of the present invention;
The flow chart five to code method based on passive and wireless switch that Fig. 5 provides for the embodiment of the present invention;
The schematic diagram one to code system based on passive and wireless switch that Fig. 6 provides for the embodiment of the present invention;
The schematic diagram two to code system based on passive and wireless switch that Fig. 7 provides for the embodiment of the present invention;
The schematic diagram three to code system based on passive and wireless switch that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of passive and wireless switch that Fig. 9 provides for the embodiment of the present invention;
The structural representation of the another kind of passive and wireless switch that Figure 10 provides for the embodiment of the present invention.
Reference:
10-controlled device, 20-controls equipment,
21-receiver module, 22-data processing unit,
23-performs module, 24-AC-DC modular converter,
30-passive and wireless switchs, 31-electricity generation module,
32-power module, 33-transmitter module,
34-from back springing type button, 35-seesaw,
36-terminal link, 40-fixed switch.
Detailed description of the invention
In order to further illustrate the based on passive and wireless switch to code method and system of embodiment of the present invention offer, below It is described in detail in conjunction with Figure of description.
When setting up the corresponding relation of passive and wireless switch and controlled device, can be to use the following two kinds mode, specifically:
To code method one
Referring to Fig. 1, what the embodiment of the present invention provided includes code method based on what passive and wireless switched:
Step S100, passive and wireless switch control button press once time, receive passive and wireless switch send one An information on the code one after another;
Step S110, judge after entering code state in the T second, if receiving a order one information on the code, wherein, a is big In the integer of 1;If it is, perform step S130;
Step S130, store the first information on the code, to complete building of the passive and wireless switch corresponding relation with controlled device Vertical.
The based on passive and wireless switch of embodiment of the present invention offer can be by controlling equipment on hardware to code method Realizing, the information on the code that passive and wireless switch sends can be carried by radiofrequency signal, and now controlling equipment can be radio-frequency apparatus, The information on the code that passive and wireless switch sends can also be carried by infrared signal, and now controlling equipment can be infrared equipment;Control Control equipment connects with corresponding controlled device, and controls equipment and may be mounted in controlled device, it is also possible to be arranged separately in wall Wall, ground etc., when control equipment is arranged separately in wall, ground etc., can be the most corresponding with a controlled device, it is possible to With corresponding with multiple controlled devices, control equipment can include receiver module, the first judge module and memory module;And, quilt Control equipment can be lamp, curtain, electric fan, water heater etc.;In above-described embodiment, passive and wireless switch includes electricity generation module, electricity Source module and transmitter module.
When setting up the corresponding relation of passive and wireless switch and controlled device, can first start the control corresponding with controlled device Control equipment, control equipment then enters code state;Then passive and wireless switch is operated, press the control of passive and wireless switch Once, the electricity generation module of passive and wireless switch then utilizes the mechanical energy generating controlled when button is pressed to button processed, will control Mechanical energy when button is pressed is converted to electric energy, and electric energy transmits to transmitter module through power module, powers for transmitter module, nothing The transmitter module of source wireless switching is then to controlling equipment first information on the code of transmission, the control button switched by passive and wireless Press a time, then the transmitter module of passive and wireless switch sends a order one information on the code to controlling equipment, and wherein, information on the code can To include frame head, address code, control code and postamble, the i.e. first information on the code includes frame head, address code, control code and postamble, its In, passive and wireless switch has unique address code, and the control button correspondence of passive and wireless switch has unique control code.
Passive and wireless switch sends the first information on the code to control equipment, and the reception unit controlling equipment receives first to code Information;After the reception unit of control equipment receives the first information on the code, the first judge module controlling equipment judges whether to meet: Control equipment enters in the T second after code state, and the receiver module controlling equipment receives a order one information on the code, and wherein, a is big In the integer of 1;Wherein, T can select according to actual needs, and such as, T can take 6, and now, control equipment first judges mould Block judges whether to meet: controlling equipment and enter in after code state 6 seconds, the receiver module controlling equipment receives a order a pair yard Information;A is the integer more than 1, i.e. receiver module needs to receive the first information on the code at least twice, then need to open passive and wireless The control button closed is pressed at least twice, and passive and wireless switch sends the first information on the code at least twice to controlling equipment, and a is permissible Take 2, or 3, or 4 etc..
When the conditions are satisfied, the storing module controlling equipment then stores the first information on the code, completes passive and wireless switch Foundation with the corresponding relation of controlled device.After the foundation of the corresponding relation completing passive and wireless switch and controlled device, when again Secondary press passive and wireless switch control button time, then can be switched by passive and wireless and the duty of controlled device is carried out Control, such as, by opening or closing of passive and wireless on-off control controlled device.
After the reception unit of control equipment receives a order one information on the code, the first judge module judgement controlling equipment is No satisfied: controlling equipment and enter in the T second after code state, the receiver module controlling equipment receives an a information on the code one after another, permissible Thinking, it should meet two conditions, one of them condition is that the receiver module of control equipment receives a a pair yard of letter of order simultaneously Breath, it is right with the entrance of control equipment that another condition is that the receiver module of control equipment receives time of a the first information on the code Time interval between the time of code state is less than the T second, when one of them condition is unsatisfactory for or two conditions are all unsatisfactory for, The memory module then controlling equipment does not store the first information on the code, i.e. fails to set up passive and wireless switch corresponding with controlled device Relation.
From the foregoing, use the based on passive and wireless switch of embodiment of the present invention offer that code method is set up passive nothing During the corresponding relation of wiretap and controlled device, press control button a time of passive and wireless switch, often press passive and wireless and switch Control button once, passive and wireless switch send first information on the code, i.e. press passive and wireless switch control button a Secondary, passive and wireless switch sends a order one information on the code;After receiving a order one information on the code, it may be judged whether right entering Receive a order one information on the code after code state in the T second, when being judged as YES, then store the first information on the code, complete passive and wireless Switch and the foundation of the corresponding relation of controlled device, when again pressing the control button of passive and wireless switch, then can pass through nothing Source wireless switching controls the duty of controlled device.The based on passive and wireless switch to code of embodiment of the present invention offer is provided Method, the control button solving passive and wireless switch can not persistently send the problem of the first information on the code when Continued depression, Achieve the foundation of passive and wireless switch and the corresponding relation of controlled device.
It addition, embodiment of the present invention offer is based on passive and wireless switch in code method, by pressing passive and wireless The control button of switch a time, to realize passive and wireless switch transmission a order one information on the code, simple to code method, convenient behaviour Make.
Furthermore, what the embodiment of the present invention provided is based on passive and wireless switch to code method to code method, say, that The embodiment of the present invention provide based on passive and wireless switch code method is applied to based on passive and wireless switch to code system, It is passive and wireless switch for controlling the equipment of the controlled in wireless of controlled device, is controlled by battery powered remote controller with using Controlled device is compared, and can avoid frequently changing battery or the battery charging for remote controller, improve ease of use, reduce Use cost, saves the energy, and reduces the harm to environment.
It is noted that refer to Fig. 6 to Fig. 8, passive and wireless switch 30 includes electricity generation module 31, power module 32 and Transmitter module 33, when passive and wireless switch 30 control button be pressed or passive and wireless switch 30 control button upspring Time, the mechanical energy controlled when button is pressed or upsprings is converted to electric energy by electricity generation module 31, and electric energy transmits through power module 32 To transmitter module 33, powering for transmitter module 33, transmitter module 33 then can send information on the code.
In the above-described embodiments, passive and wireless switch can be multiple, such as, refers to Fig. 9, and passive and wireless switch 30 can Think and switch from back springing type passive and wireless, or, referring to Figure 10, passive and wireless switch 30 can also be moving seesaw-type passive and wireless Switch.
Referring to Fig. 9, passive and wireless switch 30 be when back springing type passive and wireless switchs, control button be from back springing type without On the wireless switching of source from back springing type button 34, the most often press the control button of passive and wireless switch 30 once, passive and wireless is opened Close 30 first information on the codes of transmission may include that
Pressing from back springing type button, passive and wireless switchs to sending the first information on the code;
Unclamp from back springing type button.
For example, after control equipment enters code state, passive and wireless switch is operated, presses passive and wireless and open Close from back springing type button 34, passive and wireless switch then sends the first information on the code to control equipment;Unclamp from back springing type button 34, recoil in situ from back springing type button 34, now, the electricity generation module of passive and wireless switch can be by from back springing type button 34 times Mechanical energy during bullet is converted to electric energy, and electric energy is transmitted to transmitter module by power module, powers for transmitter module, passive and wireless The transmitter module of switch then can be to controlling the information on the code that equipment transmission is corresponding with during from back springing type button 34 resilience, certainly, The transmitter module of passive and wireless switch can not also send corresponding with during from back springing type button 34 resilience to code to controlling equipment Information.It is repeated in a above-mentioned steps, passive and wireless switch 30 can be realized and send a order one information on the code to control equipment.
Referring to Figure 10, when passive and wireless switch 30 switchs for moving seesaw-type passive and wireless, passive and wireless switch 30 includes sticking up Plate 35, the two ends of seesaw 35 are respectively arranged with a terminal link 36, and such as, as shown in Figure 10, moving seesaw-type passive and wireless switch includes Two seesaws 35, the two ends of each seesaw 35 are respectively arranged with a terminal link 36, i.e. in Figure 10 left side seesaw 35 upper end and Lower end is respectively arranged with a terminal link 36, and in Figure 10, the top and bottom of the seesaw 35 on right side are also respectively arranged with a terminal link 36;Control the terminal link 36 that button is the wherein one end being positioned at seesaw 35, the most often press the control button one of passive and wireless switch 30 Secondary, passive and wireless switch 30 first information on the code of transmission may include that
Pressing the terminal link of the wherein one end being positioned at seesaw, passive and wireless switch sends the first information on the code;
Press the terminal link of the other end being positioned at seesaw.
For example, the terminal link 36 of the upper end being positioned at the seesaw 35 in left side in needing by Figure 10 controls controlled device During duty, i.e. need terminal link 36 pass corresponding with controlled device setting up the upper end of the seesaw 35 being positioned at left side in Figure 10 System, after control equipment enters code state, presses the terminal link 36 of the upper end of the seesaw 35 being positioned at left side in Figure 10, passive and wireless Switch 30 sends the first information on the code to control equipment;Then the terminal link of the lower end of the seesaw 35 being positioned at left side is pressed in Figure 10 36, make the terminal link 36 being positioned at the upper end of the seesaw 35 in left side in Figure 10 upspring, in order to be pressed next time, now, passive and wireless The mechanical energy when terminal link 36 being positioned at the lower end of the seesaw 35 in left side in Figure 10 can be pressed by the electricity generation module of switch 30 turns Being changed to electric energy, electric energy is transmitted to transmitter module by power module, powers for transmitter module, now, and passive and wireless switch 30 Transmitter module can send believe code corresponding with the terminal link 36 of the lower end of the seesaw 35 being positioned at left side in Figure 10 to control equipment Breath, certainly, the transmitter module of passive and wireless switch can not also send to control equipment and be positioned at the seesaw 35 in left side in Figure 10 The information on the code of terminal link 36 correspondence of lower end.It is repeated in a above-mentioned steps, passive and wireless switch 30 can be realized to control Equipment sends a order one information on the code.
Refer to Fig. 2, after step silo, before step S130, the embodiment of the present invention provide based on without passive nothing Wiretap code method is also included:
Step S120, judge whether identical with the first information on the code to deposit information on the code;If it is, execution step S140;If it does not, perform step S130;
Step S140, remove and identical with the first information on the code deposit information on the code, switch and quilt completing passive and wireless The releasing of the corresponding relation of control equipment.
Specifically, the memory module of equipment is controlled for having stored the corresponding relation of passive and wireless switch and controlled device Foundation after, and passive and wireless information on the code corresponding to switch, i.e. in memory module, storage has and deposits information on the code, control equipment The second judge module and erasing of information module can also be included.Send when the receiver module controlling equipment receives passive and wireless switch The first information on the code, the first judge module controlling equipment judges to learn: after controlling equipment and entering code state in the T second, After the receiver module of control equipment receives a order one information on the code, control the second judge module of equipment by the first information on the code Contrast with the information on the code of depositing in the memory module controlling equipment, to judge whether to meet: memory module exists and first What information on the code was identical deposits information on the code;When meeting, memory module exists deposit code letter identical with the first information on the code During breath, i.e. passive and wireless switch is set up with the corresponding relation of controlled device, and now, the erasing of information module controlling equipment then will Information on the code of depositing identical with the first information on the code in memory module is removed, to release passive and wireless switch and controlled device Corresponding relation;Identical with the first information on the code when depositing information on the code when being unsatisfactory in memory module existing, i.e. passive and wireless Switching the corresponding relation with controlled device not set up, now, the memory module controlling equipment then stores the first information on the code, to build Vertical passive and wireless switch and the corresponding relation of controlled device.
When meet memory module exists identical with the first information on the code when depositing information on the code, the information of control equipment Remove module then information on the code of depositing identical with the first information on the code in memory module to be removed, now, send first to code The passive and wireless switch of information is released from the corresponding relation of controlled device, and user can not utilize and send the first information on the code The duty of passive and wireless on-off control controlled device, the passive and wireless switch sending the first information on the code then can serve as it With, to facilitate the use of user.
Identical with the first information on the code when depositing information on the code when being unsatisfactory in memory module existing, depositing of control equipment Storage module then stores the first information on the code, it is achieved send the passive and wireless switch pass corresponding with controlled device of the first information on the code The foundation of system, user can utilize the duty of the passive and wireless on-off control controlled device sending the first information on the code.
It is so designed that, when the second judge module controlling equipment judges not exist in memory module and the first information on the code phase With when depositing information on the code, the memory module controlling equipment just stores the first information on the code, thus can avoid repeating foundation Same passive and wireless switch and the corresponding relation of controlled device, it is to avoid identical multiple information on the codes take the sky of memory module Between.Furthermore it is also possible to facilitate user to release the corresponding relation of passive and wireless switch and controlled device, passive and wireless switch is permissible Use it for anything else, facilitate the use of user.
In above-described embodiment, when releasing the corresponding relation of passive and wireless switch and controlled device, press passive and wireless switch The number of times controlling button, with when setting up passive and wireless switch with the corresponding relation of controlled device, press passive and wireless switch The number of times controlling button is identical, i.e. when setting up the corresponding relation of passive and wireless switch and controlled device, presses passive and wireless switch The number of times controlling button be a time, then when releasing passive and wireless switch and the corresponding relation of controlled device, press passive and wireless and open The number of times controlling button closed also is a time.In actual applications, the corresponding relation of passive and wireless switch and controlled device is released Time, press the number of times controlling button of passive and wireless switch, and when setting up passive and wireless switch with the corresponding relation of controlled device, The number of times controlling button pressing passive and wireless switch can also be different, specifically:
Refer to Fig. 3, after step S100, the embodiment of the present invention provide based on passive and wireless switch to code method also Including:
Step S150, judgement enter described in the T second after code state, if receive b described first information on the code, its In, b is the integer more than 1, and b ≠ a;If it is, perform step S160;
Step S160, obtain and identical with the first information on the code deposit information on the code;
Step S170, remove and identical with the first information on the code deposit information on the code, switch and quilt completing passive and wireless The releasing of the corresponding relation of control equipment.
When releasing passive and wireless switchs the corresponding relation with controlled device, that presses passive and wireless switch controls the secondary of button Number, with when setting up passive and wireless switch with the corresponding relation of controlled device, presses the number of times controlling button of passive and wireless switch Time different, i.e. b ≠ a, such as, a can take 3, and b can take 2, to facilitate user oneself operation clear and definite.
Please continue to refer to Fig. 2 or Fig. 3, in the above-described embodiments, when storing the first information on the code, complete passive and wireless switch After the foundation of the corresponding relation of controlled device, what the embodiment of the present invention provided also wraps code method based on what passive and wireless switched Include:
Step S180, send instruction successful to code.
When control device clear and the first information on the code identical deposit information on the code, complete passive and wireless switch with controlled After the releasing of the corresponding relation of equipment, what the embodiment of the present invention provided also includes code method based on what passive and wireless switched:
Step S190, send clear code and successfully indicate.
When being embodied as, control equipment can include indicating module, when controlling the memory module storage first of equipment to code Information, after the foundation of the corresponding relation completing passive and wireless switch and controlled device, can be by controlling the indicating module of equipment Send instruction successful to code;Remove deposit identical with the first information on the code when the erasing of information module controlling equipment code is believed Breath, after the releasing of the corresponding relation completing passive and wireless switch and controlled device, can send out by controlling the indicating module of equipment Go out clear code successfully to indicate.
When the indicating module of control equipment sends instruction successful to code or clear code successfully indicates, can be by instruction Lamp, charactron or liquid crystal display screen are pointed out, and display lamp, charactron or liquid crystal display screen can be arranged on the control device, or, control The indicating module of equipment makes controlled device send instruction, such as, when controlled device is lamp, control the memory module storage the of equipment One information on the code, or, the erasing of information module controlling equipment removes deposit identical with the first information on the code in memory module After information on the code, then can send instruction by indicating module to lamp, make lamp flash several times, send instruction successful to code or clear Code successfully instruction, to point out foundation or the releasing of corresponding relation that user completes passive and wireless switch and controlled device.
Please continue to refer to Fig. 2, before step S100, it is based on passive and wireless switch to code that the embodiment of the present invention provides Method also includes:
Information on the code has been deposited in step S10, reading.
During actual application, control equipment can also include read module, reads storage by controlling the read module of equipment Module deposits information on the code, facilitate the second judge module by the first information on the code with deposited information on the code contrast, to judge Whether memory module exist identical with the first information on the code information on the code of depositing, so conveniently set up passive and wireless switch with The corresponding relation of controlled device, or, convenient contact passive and wireless switch and the corresponding relation of controlled device.
It addition, read by controlling the read module of equipment memory module deposit information on the code, when setting up passive nothing After the corresponding relation of wiretap and controlled device, during by the duty of passive and wireless on-off control controlled device, Ke Yijia The response speed of fast controlled device.
Please continue to refer to Fig. 2, before step S100, it is based on passive and wireless switch to code that the embodiment of the present invention provides Method also includes:
Step S20, entrance are to code state;
Step S30, to entering, time of code state is carried out timing;
Step S40, judge whether to enter time of code state more than the T second;If it is, perform step S50;If No, then perform step S100;
Step S50, exit code state.
When being embodied as, control equipment can also include timing module and the 3rd judge module, after controlling equipment startup, and control Control equipment automatically into code state, can control the timing module of equipment then start control equipment is entered to code state time Between carry out timing;3rd judge module then judges that whether control equipment enters the time to code state more than the T second;When being judged as YES Time, control equipment exits code state, now, it is impossible to continue to set up or release passive and wireless switch pass corresponding with controlled device System;When being judged as NO, control equipment does not exit code state, then can continue to set up or release passive and wireless and switch with controlled The corresponding relation of equipment.
In embodiments of the present invention, control after equipment starts, automatically into code state, and according to controlling the timing of equipment Module carries out timing to the entrance of control equipment to the time of code state, then judges that control equipment is by the 3rd judge module No exit in code state, the i.e. embodiment of the present invention, control equipment code state can be judged voluntarily without peripheral operation, with To growing the activate switch by control equipment during code in prior art, with realize to code-phase ratio, i.e. with in prior art To needing during code with remote controller, control equipment to be carried out operation to compare simultaneously, can avoid because user during code is needed Control equipment and remote controller are operated and causes inconvenient operation simultaneously.
In the above-described embodiments, when starting control equipment, multiple method can be used, for example, it is possible to long by control equipment Activate switch, to start control equipment;Or, when control equipment is arranged in controlled device, can grow by controlled device The activate switch corresponding with controlling equipment, to start control equipment;Or, control the fixed switch of equipment and controlled device even Connecing, fixed switch is arranged on wall or ground, by opening the fixed switch of controlled device, to start control equipment.
Referring to Fig. 6 or Fig. 7, the embodiment of the present invention also provides for a kind of based on passive and wireless switch to code system, including: Passive and wireless switch 30, controlled device 10, and the control equipment 20 corresponding with controlled device 10, control equipment 20 includes receiving Module the 21, first judge module and memory module;Wherein, passive and wireless switch 30 is for pressing in the control of passive and wireless switch 30 Key is pushed once, and sends first information on the code;Receiver module 21 is connected with passive and wireless switch, and receiver module 21 is used for When the control button of passive and wireless switch 30 is pushed once, receive a time first code being believed of passive and wireless switch 30 transmission Breath;First judge module is connected with receiver module 21, and the first judge module is for judging to enter code state at control equipment 20 In the rear T second, whether receiver module 21 receives a order one information on the code, and wherein, a is the integer more than 1;Memory module and first Judge module connects, and memory module is for entering in the T second after code state, when receiver module 21 receives a order one information on the code, Store the first information on the code, to complete the foundation of passive and wireless switch 30 and the corresponding relation of controlled device 10.
Each embodiment in this specification all uses the mode gone forward one by one to describe, identical similar portion between each embodiment Dividing and see mutually, what each embodiment stressed is the difference with other embodiments.Real especially for system For executing example, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part sees embodiment of the method Part illustrate.
Please continue to refer to Fig. 6, in embodiments of the present invention, control equipment 20 also includes the second judge module and erasing of information Module;Second judge module is connected with the first judge module and memory module respectively, and the second judge module is used for judging whether to deposit Information on the code is deposited identical with the first information on the code;Erasing of information module connects with the second judge module and memory module respectively Connecing, erasing of information module is identical with the first information on the code when depositing information on the code for existing, and removes and the first information on the code Identical deposits information on the code, to complete the releasing of passive and wireless switch and the corresponding relation of controlled device.
In actual applications, when releasing the corresponding relation of passive and wireless switch 30 and controlled device 10, passive and wireless is pressed The number of times controlling button of switch 30, with when setting up passive and wireless switch 30 with the corresponding relation of controlled device 10, presses passive The number of times controlling button of wireless switching 30 can also be different, specifically:
Please continue to refer to Fig. 7, in embodiments of the present invention, control equipment 20 also includes the 3rd judge module, acquisition of information Module and erasing of information module;3rd judge module is connected with receiver module 21, and the 3rd judge module is used for judging to enter code After state in the T second, whether receiver module 21 receives b order one information on the code, and wherein, b is the integer more than 1, and b ≠ a;Information Acquisition module is connected with memory module, and data obtaining module is for entering in the T second after code state, and receiver module 21 receives b time During the first information on the code, obtain and identical with the first information on the code deposit information on the code;Erasing of information module obtains with information respectively Delivery block and memory module connect, and data obtaining module identical with the first information on the code deposits information on the code for removing, with Complete the releasing of passive and wireless switch and the corresponding relation of controlled device.
In actual applications, it is judged that entering in the T second after code state, whether receiver module 21 receives a a pair yard of letter of order Breath, and judge to enter in the T second after code state, whether receiver module 21 receives b order one information on the code can use same mould Block realizes, and the function of the i.e. the 3rd judge module can also be realized by the first judge module.
Please continue to refer to Fig. 6 or Fig. 7, in embodiments of the present invention, control equipment 20 also includes indicating module, indicating module It is connected with memory module and erasing of information module respectively;Indicating module, after storage the first information on the code, sends code success Instruction;Indicating module is additionally operable to remove identical with the first information on the code after depositing information on the code, sends clear code and successfully refers to Show.
When the indicating module of control equipment 20 sends instruction successful to code or clear code successfully indicates, can be by referring to Showing that lamp, charactron or liquid crystal display screen are pointed out, display lamp, charactron or liquid crystal display screen can be arranged on control equipment 20, or, The indicating module of control equipment 20 directly makes controlled device send the indicating module of instruction or control equipment 20 by control equipment The execution module 23 of 20 makes controlled device send instruction, such as, when controlled device is lamp, control the memory module storage the of equipment One information on the code, or, the erasing of information module controlling equipment removes deposit identical with the first information on the code in memory module After information on the code, then can send instruction by indicating module to lamp, or, indicating module sends instruction to performing module 23, Perform module 23 and perform instruction, make lamp flash several times, send instruction successful to code or clear code successfully indicates, to point out use Person completes foundation or the releasing of the corresponding relation of passive and wireless switch and controlled device.
Please continue to refer to Fig. 6 or Fig. 7, control equipment 20 also includes timing module and the 4th judge module;Timing module is used In control equipment 20 being entered the time timing to code state;4th judge module connects with timing module and receiver module 21 respectively Connecing, the 4th judge module is for judging that whether the entrance time to code state is more than the T second;If it is, exit code state, as The most no, then can proceed the foundation of passive and wireless switch 30 and the corresponding relation of controlled device 10.
Please continue to refer to Fig. 6 or Fig. 7, control equipment 20 also includes read module, and read module is connected with memory module, reads Delivery block deposits information on the code for reading in memory module.
Please continue to refer to Fig. 6 or Fig. 7, what the embodiment of the present invention provided also includes code system based on what passive and wireless switched Fixed switch 40, fixed switch 40 respectively with controlled device 10 and control the AC-DC modular converter 24 of equipment 20 even Connecing, after fixed switch 40 is opened, control equipment 20 powers on and starts.
During it is noted that release the corresponding relation of passive and wireless switch 30 and controlled device 10, press passive and wireless The number of times controlling button of switch 30, with when setting up passive and wireless switch 30 with the corresponding relation of controlled device 10, presses passive When the number of times controlling button of wireless switching 30 is identical, please continue to refer to Fig. 6, the first judge module, memory module, the second judgement Module, erasing of information module, indicating module, read module, timing module and the 4th judge module can be integrated in control equipment In the data processing unit 22 of 20, data processing unit 22 can be micro-control unit (Microcontroller Unit, MCU);When releasing the corresponding relation of passive and wireless switch 30 and controlled device 10, press the control button of passive and wireless switch 30 Number of times, with when setting up passive and wireless switch 30 with the corresponding relation of controlled device 10, press the control of passive and wireless switch 30 During the number of times difference of button, please continue to refer to Fig. 7, the first judge module, memory module, the 3rd judge module, acquisition of information mould Block, indicating module, read module, timing module and the 4th judge module can be integrated in the data processing unit of control equipment 20 In 22.
To code method two, referring to Fig. 4, the embodiment of the present invention also provides for another kind of based on passive and wireless switch to code side Method, including:
Step S300, passive and wireless switch control button be pressed time, receive passive and wireless switch send second Information on the code, when upspringing after the control button of passive and wireless switch is pressed and held within, receives what passive and wireless switch sent 3rd information on the code;
Step S310, obtain time residing for the second information on the code of reception and receive the time residing for the 3rd information on the code it Between time interval Δ t;
Step S320, judgement enter in the T second after code state, if receive the second information on the code and the 3rd information on the code, And Δ t=Δ t0;Wherein, Δ t0<T;If it is, perform step S340;
Step S340, store the second information on the code, to complete building of the passive and wireless switch corresponding relation with controlled device Vertical.
The based on passive and wireless switch of embodiment of the present invention offer can be by controlling equipment on hardware to code method Realize, control equipment and connect with corresponding controlled device, and control equipment and may be mounted in controlled device, it is also possible to individually pacify Be contained in wall, ground etc., when control equipment is arranged separately in wall, ground etc., can only with a controlled device pair Should, it is also possible to corresponding with multiple controlled devices, control equipment can include receiver module, time-obtaining module, first judge mould Block and memory module;And, controlled device can be lamp, curtain, electric fan, water heater etc.;In above-described embodiment, passive and wireless Switch includes electricity generation module, power module and transmitter module.
When setting up the corresponding relation of passive and wireless switch and controlled device, can first start the control corresponding with controlled device Equipment, control equipment then enters code state;Then passive and wireless switch is operated, the control that passive and wireless switchs is pressed Key presses and holds, and when the control button of passive and wireless switch is pressed, the electricity generation module of passive and wireless switch then utilizes control Mechanical energy generating when button is pressed, will control mechanical energy when button is pressed and be converted to electric energy, and electric energy is through power supply mould Block transmits to transmitter module, powers for transmitter module, and it is right that the transmitter module of passive and wireless switch then sends second to control equipment Code information, after the control button of passive and wireless switch presses and holds certain time, makes the control button bullet that passive and wireless switchs Rising, when the control button of passive and wireless switch is upspring, the electricity generation module of passive and wireless switch then utilizes and controls when button is upspring Mechanical energy generates electricity, and will control mechanical energy when button is upspring and be converted to electric energy, and electric energy transmits to transmitter module through power module, Powering for transmitter module, the transmitter module of passive and wireless switch is then to controlling equipment transmission the 3rd information on the code.
Passive and wireless switched when control equipment sends the second information on the code, controlled the reception unit scan of equipment to second Information on the code also receives the second information on the code, and passive and wireless switch, in time controlling equipment transmission three information on the code, controls equipment Reception unit scan to the 3rd information on the code and receive the 3rd information on the code;The reception unit of control equipment receives second to code After information and the 3rd information on the code, the time-obtaining module acquisition receiver module controlling equipment receives residing for the second information on the code Time and receiver module receive the time interval Δ t of the time residing for the 3rd information on the code;Then, the first judgement of equipment is controlled Module judges whether to meet: controlling equipment and enter in the T second after code state, the receiver module controlling equipment receives second to code letter Breath and the 3rd information on the code, and receiver module receives the time residing for the second information on the code and receiver module receives the 3rd and believes code The time interval Δ t of the time residing for breath is Δ t0Second, wherein, Δ t0< T, T and Δ t0Can select according to actual needs, example As, T can take 6, Δ t03 can be taken, i.e. control the second judge module of equipment, it may be judged whether meet: control equipment entrance right After code state in 6 seconds, the receiver module controlling equipment receives the second information on the code and the 3rd information on the code, and receiver module receives Time and the time interval of receiver module reception time residing for the 3rd information on the code residing for second information on the code are 3 seconds;When When meeting above-mentioned condition, control equipment memory module then the first information on the code is stored, complete passive and wireless switch with The foundation of the corresponding relation of controlled device.After the foundation of the corresponding relation completing passive and wireless switch and controlled device, when again When pressing the control button of passive and wireless switch, then the duty of controlled device can be controlled.
From the foregoing, use the based on passive and wireless switch of embodiment of the present invention offer that code method is set up passive nothing During the corresponding relation of wiretap and controlled device, press the control button of passive and wireless switch, passive and wireless switch transmission second Information on the code, the control button then making passive and wireless switch upsprings after being pressed and held within, and passive and wireless switch sends the 3rd Information on the code;After receiving the second information on the code and the 3rd information on the code, obtain the time received residing for the second information on the code With the time interval of the time received residing for the 3rd information on the code, then judge whether to receive in the T second after entering code state Second information on the code and the 3rd information on the code, and receive the time residing for the second information on the code and receive residing for the 3rd information on the code The time interval of time be Δ t0Second, when being judged as YES, then store the second information on the code, complete passive and wireless switch and quilt The foundation of the corresponding relation of control equipment.The based on passive and wireless switch to code method of embodiment of the present invention offer is provided, solves Passive and wireless switch control the problem that button can not persistently send the second information on the code when Continued depression, it is achieved that passive The foundation of the corresponding relation of wireless switching and controlled device.
It addition, embodiment of the present invention offer is based on passive and wireless switch in code method, by pressing passive and wireless The control button of switch also keeps, and passive and wireless switch sends the second information on the code, then make control that passive and wireless switchs by Key is upspring, and passive and wireless switch sends the 3rd information on the code, to realize passive and wireless switch to the transmission second of control equipment to code The most whether information and the 3rd information on the code, receive the second information on the code and the 3rd after entering code state and believe code in the T second Breath, and judge the time residing for the second information on the code that receives and the time interval of reception time residing for the 3rd information on the code, i.e. Judge the persistent period that the control button that passive and wireless switchs is pressed, corresponding with controlled device to set up passive and wireless switch Relation, simple to code method, convenient operation.
Furthermore, what the embodiment of the present invention provided is based on passive and wireless switch to code method to code method, say, that The embodiment of the present invention provide based on passive and wireless switch code method is applied to based on passive and wireless switch to code system, It is passive and wireless switch for controlling the equipment of the controlled in wireless of controlled device, is controlled by battery powered remote controller with using Controlled device is compared, and can avoid frequently changing battery or the battery charging for remote controller, improve ease of use, reduce Use cost, saves the energy, and reduces the harm to environment.
Referring to Fig. 5, after step S320, before step S340, what the embodiment of the present invention provided opens based on passive and wireless Close also includes code method:
Step S330, judge whether identical with the second information on the code to deposit information on the code;If it is, perform step Rapid S350;If it is not, then perform step S340;
Step S350, remove and identical with the second information on the code deposit information on the code, switch and quilt completing passive and wireless The releasing of the corresponding relation of control equipment.
When practical operation, control equipment can also include the second judge module and erasing of information module, and control equipment connects Receive the second information on the code and the 3rd information on the code, and judge to learn: after controlling equipment and entering code state, receive second in the T second Information on the code and the 3rd information on the code, and receive the second information on the code and receive the 3rd information on the code time interval Δ t be Δ t0After Miao, control equipment the second judge module then by the second information on the code with control equipment memory module in deposit code Information contrasts, to judge whether to meet: what in memory module, existence was identical with the second information on the code deposits information on the code;Work as judgement Learn and memory module does not exist identical with the second information on the code when depositing information on the code, control the memory module storage of equipment Second information on the code, sets up the corresponding relation of passive and wireless switch and controlled device, and now, user can utilize passive and wireless The duty of on-off control controlled device;When judge to learn in memory module exist identical with the second information on the code deposit right During code information, to deposit information on the code clear by identical with the second information on the code in memory module to control the erasing of information module of equipment Removing, passive and wireless switch releases with the corresponding relation of controlled device, and now, user can not utilize passive and wireless on-off control quilt The duty of control equipment.
It is so designed that, when the second judge module controlling equipment judges not exist in memory module and the first information on the code phase With when depositing information on the code, the memory module controlling equipment just stores the first information on the code, thus can avoid repeating foundation Same passive and wireless switch and the corresponding relation of controlled device, it is to avoid identical multiple information on the codes take the sky of memory module Between.Furthermore it is also possible to facilitate user to release the corresponding relation of passive and wireless switch and controlled device, passive and wireless switch is permissible Use it for anything else, facilitate the use of user.
It is noted that in above-described embodiment, remove and identical with the second information on the code in memory module deposit code During information, the persistent period that the control button of passive and wireless switch is pressed, with when storing the second information on the code, passive and wireless is opened The persistent period that the control button closed is pressed is identical, in actual applications, with the second information on the code phase in removing memory module With when depositing information on the code, passive and wireless switch control persistent period of being pressed of button, and store the second information on the code Time, the persistent period that the control button of passive and wireless switch is pressed can also be different.
In above-described embodiment, the embodiment of the present invention provide in code method two, after storing the first information on the code, also include Send instruction successful to code;When remove in memory module identical with the first information on the code deposit information on the code after, also include Sending clear code successfully to indicate, control equipment 20 sends instruction successful to code or clear code successfully indicates, with above-mentioned to code side Being similar to described in method one, does not repeats them here.
In above-described embodiment, in code method two, before step S300, also include: read module reads storage mould Block deposits information on the code;Control equipment enters code state;The timing module of control equipment enters code controlling equipment The time of state carries out timing;4th judge module judges that whether control equipment enters time of code state more than the T second, if It is that control equipment exits code state, if it does not, control equipment does not exit code state.Wherein, in code method two, on State step and above-mentioned similar to described in code method one, do not repeat them here.
In the above-described embodiments, when starting the control equipment corresponding with controlled device, multiple method can be used, such as, The activate switch by control equipment can be grown, to start control equipment, or, when control equipment is arranged in controlled device, can Activate switch corresponding with controlling equipment on controlled device is pressed with long, to start control equipment, or, control equipment sets with controlled Standby fixed switch connects, by opening the fixed switch of controlled device, to start control equipment.
Referring to Fig. 8, the embodiment of the present invention also provides for another kind of based on passive and wireless switch to code system, including: nothing Source wireless switching 30, controlled device 10, and the control equipment 20 corresponding with controlled device 10, control equipment 20 includes receiving mould Block 21, time-obtaining module, the 5th judge module and memory module, wherein, passive and wireless switch 30 is for opening at passive and wireless When the control button of pass 30 is pressed, send the second information on the code, be additionally operable to be pressed and held within upspringing afterwards at control button Time, send the 3rd information on the code;Receiver module 21 is connected with passive and wireless switch 30, and receiver module 21 is used for receiving passive and wireless Second information on the code of switch 30 transmission and the 3rd information on the code;Time-obtaining module is connected with receiver module 21, and the time obtains Module is for obtaining the time residing for the second information on the code that receives and the time interval of reception time residing for the 3rd information on the code Δt;5th judge module is connected with receiver module 21 and time-obtaining module respectively, and it is right that the 5th judge module is used for judging entering After code state in the T second, whether receiver module receives the second information on the code and the 3rd information on the code, and Δ t=Δ t0, wherein, Δ t0 <T;Memory module is connected with the 5th judge module, and memory module is for entering in the T second after code state, and receiver module 21 receives Second information on the code and the 3rd information on the code, and Δ t=Δ t0Time, store the second information on the code, to complete passive and wireless switch 30 with the foundation of the corresponding relation of controlled device 10.
Described system based on passive and wireless switch with above-mentioned based on passive and wireless switch to code method two relative to existing There is technology have the advantage that identical, do not repeat them here.
In embodiments of the present invention, control equipment 20 also includes the 6th judge module and erasing of information module, and the 6th judges Module is connected with the 5th judge module and memory module respectively, and the 6th judge module is used for judging whether to believe code with second What manner of breathing was same deposits information on the code;Erasing of information module is connected with the 6th judge module and memory module respectively, erasing of information mould Block for identical with the second information on the code when depositing information on the code when existing, remove identical with the second information on the code deposit right Code information, to release the corresponding relation of passive and wireless switch 30 and controlled device 10;Identical with the second information on the code when not existing When depositing information on the code, then store the second information on the code, with set up passive and wireless switch 30 corresponding with controlled device 10 passes System.
In above-described embodiment, control equipment 20 also includes that indicating module, read module, timing module and the 4th judge mould Block, wherein, indicating module, for after memory module stores the first information on the code, sends instruction successful to code, is additionally operable to Erasing of information module remove in memory module identical with the first information on the code deposit information on the code after, send clear code and successfully refer to Show;Read module deposits information on the code for reading in memory module;Timing module is for entering code control equipment 20 The time timing of state;4th judge module is for judging that whether control equipment 20 enters the time to code state more than the T second;As Fruit is that control equipment 20 exits code state.
It is noted that in the above-described embodiments, the 5th judge module, memory module, time-obtaining module, the 6th sentence Disconnected module, erasing of information module, indicating module, read module, timing module and the 4th judge module can be integrated in control In the data processing unit 22 of equipment 20.
In the description of above-mentioned embodiment, specific features, structure, material or feature can be at any one or many Individual embodiment or example combine in an appropriate manner.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with described scope of the claims.

Claims (18)

1. one kind based on passive and wireless switch to code method, it is characterised in that including:
Step S100, when the control button that described passive and wireless switchs is pressed once, receive described passive and wireless switch send First information on the code;
Step S110, judgement enter in the T second after code state, if receiving a described first information on the code, wherein, a is for being more than The integer of 1;If it is, perform step S130;
Step S130, store described first information on the code, to complete the corresponding relation of described passive and wireless switch and controlled device Foundation.
The most according to claim 1 based on passive and wireless switch to code method, it is characterised in that described passive and wireless is opened Close as switching from back springing type passive and wireless, described control button be described on back springing type passive and wireless switch from back springing type by Key.
The most according to claim 1 based on passive and wireless switch to code method, it is characterised in that described passive and wireless is opened Closing and switch for moving seesaw-type passive and wireless, described moving seesaw-type passive and wireless switch includes that seesaw, the two ends of described seesaw are respectively provided with Having a terminal link, described control button is the described terminal link of the wherein one end being positioned at described seesaw.
The most according to claim 1 based on passive and wireless switch to code method, it is characterised in that described step S110 it Afterwards, before described step S130, described code method is also included:
Step S120, judge whether identical with described first information on the code to deposit information on the code;If it is, execution step S140;If it does not, perform described step S130;
Step S140, remove and identical with described first information on the code described deposited information on the code, to complete described passive and wireless The releasing of the corresponding relation of switch and described controlled device.
The most according to claim 1 based on passive and wireless switch to code method, it is characterised in that described step S100 it After, described code method is also included:
Step S150, judgement enter described in the T second after code state, if receiving b described first information on the code, wherein, b is Integer more than 1, and b ≠ a;If it is, perform step S160;
Step S160, obtain and identical with described first information on the code deposit information on the code;
Step S170, remove and identical with described first information on the code described deposited information on the code, to complete described passive and wireless The releasing of the corresponding relation of switch and described controlled device.
6. based on passive and wireless switch to code method according to described in claim 4 or 5, it is characterised in that store described the After one information on the code, described code method is also included:
Step S180, send instruction successful to code;
Remove identical with described first information on the code described deposit information on the code after, described code method is also included:
Step S190, send clear code and successfully indicate.
7. according to described in claim 4 or 5 based on passive and wireless switch to code method, it is characterised in that in described step Before 100, described code method is also included:
Information on the code has been deposited described in step S10, reading.
The most according to claim 1 based on passive and wireless switch to code method, it is characterised in that in described step S100 Before, described code method is also included:
Step S20, enter described to code state;
Step S30, to enter the described time to code state carry out timing;
Step S40, judge enter the described time to code state whether more than the T second;If it is, perform step S50;If No, then perform described step S100;
Step S50, exit described to code state.
9. one kind based on passive and wireless switch to code system, it is characterised in that including: passive and wireless switch, controlled device, with And the control equipment corresponding with described controlled device, described control equipment includes receiver module, the first judge module and storage mould Block;Wherein,
Described passive and wireless switch is pushed once for the control button switched at described passive and wireless, send one time first right Code information;
Described receiver module is connected with described passive and wireless switch, and described receiver module is for the control switched at described passive and wireless When button processed is pushed once, receive the most described first information on the code that described passive and wireless switch sends;
Described first judge module is connected with described receiver module, and described first judge module is used for judging entering described to code shape After state in the T second, whether described receiver module receives a described first information on the code, and wherein, a is the integer more than 1;
Described memory module is connected with described first judge module, and described memory module is used for entering described to the T second after code state In, when described receiver module receives a described first information on the code, store described first information on the code, described passive to complete The foundation of the corresponding relation of wireless switching and described controlled device.
The most according to claim 9 based on passive and wireless switch to code system, it is characterised in that described control equipment Also include the second judge module and erasing of information module;
Described second judge module is connected with described first judge module and described memory module respectively, described second judge module Identical with described first information on the code deposit information on the code for judging whether;
Described erasing of information module is connected with described second judge module and described memory module respectively, described erasing of information module Identical with described first information on the code when depositing information on the code for existing, remove identical with described first information on the code Deposit information on the code, to complete the releasing of described passive and wireless switch and the corresponding relation of described controlled device.
11. is according to claim 9 based on passive and wireless switch to code system, it is characterised in that described control equipment Also include the 3rd judge module, data obtaining module and erasing of information module;
Described 3rd judge module is connected with described receiver module, and described 3rd judge module is used for judging entering described to code shape After state in the T second, whether described receiver module receives b described first information on the code, and wherein, b is the integer more than 1, and b ≠ a;
Described data obtaining module is connected with described memory module, described data obtaining module be used for entering described to code state after In the T second, when described receiver module receives b described first information on the code, obtain and described identical the depositing of first information on the code Information on the code;
Described erasing of information module is connected with described data obtaining module and described memory module respectively, described data obtaining module For remove identical with described first information on the code described in deposited information on the code, with complete described passive and wireless switch with described The releasing of the corresponding relation of controlled device.
12. according to described in claim 10 or 11 based on passive and wireless switch to code system, it is characterised in that described control Equipment also includes indicating module, and described indicating module is connected with described memory module and described erasing of information module respectively;
After described indicating module is used for storing described first information on the code, send instruction successful to code;
Described indicating module be additionally operable to remove identical with described first information on the code described in deposit information on the code after, send clearly Code successfully instruction.
13. is according to claim 9 based on passive and wireless switch to code system, it is characterised in that described control equipment Also include read module, timing module and the 4th judge module;
Described read module is connected with described memory module, and described read module has deposited information on the code for reading;
Described timing module is for entering the described time timing to code state;
Described 4th judge module is connected with described timing module and described receiver module respectively, and described 4th judge module is used for Judge whether to enter the described time to code state more than the T second.
14. is according to claim 9 based on passive and wireless switch to code system, it is characterised in that described based on passive Wireless switching code system is also included fixed switch, described fixed switch respectively with described controlled device and described control Equipment connects, and after described fixed switch is opened, described control equipment starts and enters described to code state.
15. 1 kinds are based on passive and wireless switch to code method, it is characterised in that including:
Step S300, when the control button that described passive and wireless switchs is pressed, receive described passive and wireless switch send Second information on the code, when upspringing after the control button that described passive and wireless switchs is pressed and held within, receives described passive nothing The 3rd information on the code that wiretap sends;
Step S310, obtain time residing for described second information on the code of reception and receive residing for described 3rd information on the code time Time interval Δ t between;
Step S320, judgement enter in the T second after code state, if receive described second information on the code and the described 3rd and believe code Breath, and Δ t=Δ t0;Wherein, Δ t0<T;If it is, perform step S340;
Step S340, store described second information on the code, to complete the corresponding relation of described passive and wireless switch and controlled device Foundation.
16. is according to claim 15 based on passive and wireless switch to code method, it is characterised in that described step S320 Afterwards, before described step S340, described code method is also included:
Step S330, judge whether identical with described second information on the code to deposit information on the code;If it is, perform step Rapid S350;If it is not, then perform described step S340;
Step S350, remove and identical with described second information on the code deposit information on the code, switch completing described passive and wireless Releasing with the corresponding relation of described controlled device.
17. 1 kinds are based on passive and wireless switch to code system, it is characterised in that including: passive and wireless switchs, controlled device, And the control equipment corresponding with described controlled device, described control equipment includes receiver module, time-obtaining module, the 5th sentences Disconnected module and memory module;Wherein,
Described passive and wireless switch, for when the control button that described passive and wireless switchs is pressed, sends second and believes code Breath, is additionally operable to when described control button is pressed and held within upspringing afterwards, sends the 3rd information on the code;
Described receiver module is connected with described passive and wireless switch, and described receiver module is used for receiving described passive and wireless switch and sends out Described second information on the code sent and described 3rd information on the code;
Described time-obtaining module is connected with described receiver module, and it is described second right that described time-obtaining module is used for obtaining reception The time interval Δ t of code time residing for information and the reception time residing for described 3rd information on the code;
Described 5th judge module is connected with described receiver module and described time-obtaining module respectively, described 5th judge module Entering in the T second after code state for judging, whether described receiver module receives described second information on the code and described 3rd right Code information, and Δ t=Δ t0;Wherein, Δ t0<T;
Described memory module is connected with described 5th judge module, described memory module for entering in the T second after code state, institute State receiver module and receive described second information on the code and described 3rd information on the code, and Δ t=Δ t0Time, it is described second right to store Code information, to complete the foundation of described passive and wireless switch and the corresponding relation of described controlled device.
18. is according to claim 17 based on passive and wireless switch to code system, it is characterised in that described control equipment Also include the 6th judge module and erasing of information module;
Described 6th judge module is connected with described 5th judge module and described memory module respectively, described 6th judge module Identical with described second information on the code deposit information on the code for judging whether;
Described erasing of information module is connected with described 6th judge module and described memory module respectively, described erasing of information module For identical with described second information on the code when depositing information on the code when existing, remove identical with described second information on the code Described deposit information on the code, to complete the releasing of described passive and wireless switch and the corresponding relation of described controlled device.
CN201610573582.1A 2016-07-18 2016-07-18 It is a kind of based on passive and wireless switch to code method and system Active CN106205089B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910127438.9A CN109859451B (en) 2016-07-18 2016-07-18 Code matching method and system based on passive wireless switch
CN201610573582.1A CN106205089B (en) 2016-07-18 2016-07-18 It is a kind of based on passive and wireless switch to code method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610573582.1A CN106205089B (en) 2016-07-18 2016-07-18 It is a kind of based on passive and wireless switch to code method and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910127438.9A Division CN109859451B (en) 2016-07-18 2016-07-18 Code matching method and system based on passive wireless switch

Publications (2)

Publication Number Publication Date
CN106205089A true CN106205089A (en) 2016-12-07
CN106205089B CN106205089B (en) 2019-08-09

Family

ID=57494721

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610573582.1A Active CN106205089B (en) 2016-07-18 2016-07-18 It is a kind of based on passive and wireless switch to code method and system
CN201910127438.9A Active CN109859451B (en) 2016-07-18 2016-07-18 Code matching method and system based on passive wireless switch

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910127438.9A Active CN109859451B (en) 2016-07-18 2016-07-18 Code matching method and system based on passive wireless switch

Country Status (1)

Country Link
CN (2) CN106205089B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085379A (en) * 2017-06-06 2017-08-22 宁波公牛电器有限公司 A kind of intelligent home control system and control method
CN108174456A (en) * 2017-12-30 2018-06-15 武汉领普科技有限公司 Passive and wireless switchs transmitter and receiver remote match method and receiver
CN110120147A (en) * 2019-05-16 2019-08-13 上海东软载波微电子有限公司 Wireless communication is to code method and system, reception device, emitter, medium
CN111833587A (en) * 2019-04-23 2020-10-27 梁满业 Infrared remote control learning circuit and learning method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112754355A (en) * 2019-11-01 2021-05-07 苏州欧圣电气股份有限公司 Code matching method of dust collector remote controller and dust collector
CN111107702A (en) * 2019-11-21 2020-05-05 乐清市星鸿电气科技有限公司 Wireless wall switch wiring control device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204156A1 (en) * 2006-02-28 2007-08-30 Mark Jeghers Systems and methods for providing access to network resources based upon temporary keys
CN101039113A (en) * 2007-03-13 2007-09-19 鲁定尧 Wireless intelligent switch and its remote control method
CN201290106Y (en) * 2008-08-11 2009-08-12 深圳市丰日科技有限公司 Intelligent household remote switch
CN202615143U (en) * 2011-11-02 2012-12-19 武汉领普科技有限公司 Self-power-generation wireless switch control device
CN102902213A (en) * 2012-10-15 2013-01-30 温州泰家宝智能控制***有限公司 Intelligent wall switch and operating method thereof
CN103390337A (en) * 2013-07-10 2013-11-13 江苏海事职业技术学院 Control circuit of wireless control examination start-stop pen
CN203535460U (en) * 2013-11-04 2014-04-09 长沙市沃伽智能技术有限公司 High-efficiency pairing intelligent switch system
CN104299386A (en) * 2014-10-27 2015-01-21 刘爱友 Non-contact remote control learning method and system
CN104981066A (en) * 2015-07-03 2015-10-14 邹玉龙 Novel multifunctional remote-control intelligent solar lamp
CN105093998A (en) * 2014-06-16 2015-11-25 宁波星宏智能技术有限公司 Editable intelligent switch and control method
CN105427565A (en) * 2015-12-03 2016-03-23 林海航 Learning method for learning remote control switch

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003143670A (en) * 2001-10-31 2003-05-16 Sony Corp Remote control system, electronic device, and program
CN101794501A (en) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 Method for performing remote control on home appliances and wireless network card
CN104013416A (en) * 2013-02-28 2014-09-03 Ge医疗***环球技术有限公司 Remote control unit, remote control system and X-ray system with remote control unit and remote control system
CN103616829A (en) * 2013-11-25 2014-03-05 北京林业大学 Passive wireless intelligent on-off controller
CN204067746U (en) * 2014-06-27 2014-12-31 深圳百纳思维科技有限公司 A kind of power distributor and power consumption control system
CN104158598B (en) * 2014-08-20 2016-08-17 华北电力大学 A kind of passive and wireless on-off state transmission method and device
CN204272457U (en) * 2014-10-15 2015-04-15 深圳市启居智能科技有限公司 The Moltimode switched device of passive and wireless
CN104808559B (en) * 2015-04-24 2019-01-22 深圳市彩易生活科技有限公司 A kind of wireless switching control method, system and relevant device
CN204968180U (en) * 2015-09-02 2016-01-13 郑州伟尚电子科技有限公司 Intelligence passive switch and because intelligent lighting control system of this switch
CN105096581B (en) * 2015-09-11 2019-07-09 青岛海信电器股份有限公司 Infrared remote control is to code method, remote control equipment and main controlled device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204156A1 (en) * 2006-02-28 2007-08-30 Mark Jeghers Systems and methods for providing access to network resources based upon temporary keys
CN101039113A (en) * 2007-03-13 2007-09-19 鲁定尧 Wireless intelligent switch and its remote control method
CN201290106Y (en) * 2008-08-11 2009-08-12 深圳市丰日科技有限公司 Intelligent household remote switch
CN202615143U (en) * 2011-11-02 2012-12-19 武汉领普科技有限公司 Self-power-generation wireless switch control device
CN102902213A (en) * 2012-10-15 2013-01-30 温州泰家宝智能控制***有限公司 Intelligent wall switch and operating method thereof
CN103390337A (en) * 2013-07-10 2013-11-13 江苏海事职业技术学院 Control circuit of wireless control examination start-stop pen
CN203535460U (en) * 2013-11-04 2014-04-09 长沙市沃伽智能技术有限公司 High-efficiency pairing intelligent switch system
CN105093998A (en) * 2014-06-16 2015-11-25 宁波星宏智能技术有限公司 Editable intelligent switch and control method
CN104299386A (en) * 2014-10-27 2015-01-21 刘爱友 Non-contact remote control learning method and system
CN104981066A (en) * 2015-07-03 2015-10-14 邹玉龙 Novel multifunctional remote-control intelligent solar lamp
CN105427565A (en) * 2015-12-03 2016-03-23 林海航 Learning method for learning remote control switch

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085379A (en) * 2017-06-06 2017-08-22 宁波公牛电器有限公司 A kind of intelligent home control system and control method
CN108174456A (en) * 2017-12-30 2018-06-15 武汉领普科技有限公司 Passive and wireless switchs transmitter and receiver remote match method and receiver
CN111833587A (en) * 2019-04-23 2020-10-27 梁满业 Infrared remote control learning circuit and learning method
CN111833587B (en) * 2019-04-23 2021-11-19 梁满业 Infrared remote control learning circuit
CN110120147A (en) * 2019-05-16 2019-08-13 上海东软载波微电子有限公司 Wireless communication is to code method and system, reception device, emitter, medium

Also Published As

Publication number Publication date
CN106205089B (en) 2019-08-09
CN109859451A (en) 2019-06-07
CN109859451B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN106205089A (en) A kind of based on passive and wireless switch to code method and system
CN105453151B (en) Remote control equipment with WLAN ability
CN103345211B (en) Intelligent home control system and control method
CN105282583A (en) Intelligent matching system of remote controller and realization method of system
CN103996281A (en) Learning-type wireless-to-infrared universal forwarding device and work method thereof
CN103400487A (en) Household appliance energy consumption managing system and household appliance energy consumption managing method based on intelligent mobile phone
CN102065526A (en) Power-saving operation mode of wireless transceiver
CN104185092A (en) Remote control adaptor and adaption method
CN104574927A (en) Infrared matching method and infrared matching system with feedback function
US20120229261A1 (en) Apparatus for low power wireless communication
CN101436344A (en) Intelligent universal remote controller system
CN109471607A (en) A kind of intelligence knob control system and implementation method
CN205721127U (en) Smart jack and intelligent home control system
CN203745876U (en) Intelligent household control device
CN205983186U (en) Intelligence house power management system based on power timing sequence control
CN105282140B (en) A kind of control method of smart home system, equipment and system
CN103442151A (en) Remote controller and remote control method based on smart mobile terminal
CN109257795A (en) Method and equipment for network distribution
CN108427301A (en) Control method, system and the control device of smart home device
CN108174456A (en) Passive and wireless switchs transmitter and receiver remote match method and receiver
CN103956040A (en) Learnable-type remote controller system based on intelligent equipment
CN203164746U (en) Household control terminal, household transfer device and household intelligent control system
CN106161150A (en) A kind of intelligent domestic system
CN204693160U (en) Intelligence children desk lamp
CN108776442A (en) A kind of self power generation passive switch and its working method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant