CN109859451A - It is a kind of based on passive and wireless switch to code method and system - Google Patents

It is a kind of based on passive and wireless switch to code method and system Download PDF

Info

Publication number
CN109859451A
CN109859451A CN201910127438.9A CN201910127438A CN109859451A CN 109859451 A CN109859451 A CN 109859451A CN 201910127438 A CN201910127438 A CN 201910127438A CN 109859451 A CN109859451 A CN 109859451A
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
CN201910127438.9A
Other languages
Chinese (zh)
Other versions
CN109859451B (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
Publication of CN109859451A publication Critical patent/CN109859451A/en
Application granted granted Critical
Publication of CN109859451B publication Critical patent/CN109859451B/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/964Piezo-electric 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 disclose it is a kind of based on passive and wireless switch to code method and system, be related to remote control switch technical field, for establishing passive and wireless switch and the corresponding relationship of controlled device.It is described based on passive and wireless switch to code method include: step S100, passive and wireless switch control button by next time when, receive passive and wireless switch send first information on the code;Step S110, judge after entering to code state in T seconds, if receive a the first information on the code, wherein a is the integer greater than 1;If so, thening follow the steps S130;Step S130, the first information on the code is stored, to complete the foundation of passive and wireless switch and the corresponding relationship of controlled device.

Description

It is a kind of based on passive and wireless switch to code method and system
It is on 07 18th, 2016 that the application, which is for the applying date, application No. is 201610573582.1, it is entitled The divisional application that is itd is proposed of patent application of " a kind of based on passive and wireless switch to code method and system ".
Technical field
The present invention relates to remote control switch technical field more particularly to it is a kind of based on passive and wireless switch to code method and be System.
Background technique
Work for the electronic equipment of such as household electrical appliance, can use has two kinds of sides of line traffic control and wireless control at present Formula is controlled, wherein line traffic control is to be controlled by being arranged in the fixed switch on wall, ground etc. to electronic equipment System, and wireless control is to send corresponding control signal to electronic equipment by equipment such as remote controler of wireless control etc., with reality Now to electronic equipment far distance control, convenience in life is provided to user, therefore, wireless control 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.
Wireless control usually can be using infrared light or radiofrequency signal carrying control signal, when wireless control is believed using radio frequency When number carrying control signal, since radiofrequency signal can pass through the barriers such as wall, floor, the equipment of wireless control needs Corresponding relationship is established with controlled device, control unexpected controlled device to avoid the equipment of wireless control, wherein establish nothing The process of the corresponding relationship of the equipment and controlled device of line traffic control is referred to as to code.
The equipment of wireless control is usually remote controler, and remote controler generallys use battery power supply, currently, in remote controler and being controlled When equipment is to code, the physical switch controlled on controlled device is kept open, and then the control button on long-pressing remote controler, distant The control button on device is controlled during being long pressed, remote controler continues to send information on the code to controlled device, and controlled device is connecing After the information on the code for receiving remote controler transmission, which is stored, completes remote controler pass corresponding with controlled device The foundation of system.After the foundation for completing the corresponding relationship of remote controler and controlled device, when pressing the function key on remote controler It is controlled by working condition of the remote controler to controlled device.
But since remote controler generallys use battery power supply, user needs to frequently replace the battery of remote controler, causes distant Control the inconvenient to use of device.Therefore, people start to research and develop and switch without battery powered passive and wireless, on passive and wireless switch When control button is pressed or bounces, the mechanical energy of control button is converted to electric energy by the electricity generation module of passive and wireless switch, is Passive and wireless switch power supply.But since passive and wireless switch is not to have electricity at any time, such as passive and wireless switchs Control button when by Continued depression, passive and wireless switch in without electricity state, thus passive and wireless switch without normal direction quilt It controls equipment and sends information on the code, cause passive and wireless switch that cannot establish corresponding relationship with controlled device.
Summary of the invention
The purpose of the present invention is to provide a kind of based on passive and wireless switch to code method and system, passive for establishing The corresponding relationship of wireless switching and controlled device.
To achieve the goals above, the invention provides the following technical scheme:
The first aspect of the present invention provide it is a kind of based on passive and wireless switch to code method, comprising:
Step S100, when the control button of passive and wireless switch is pressed next time, the passive and wireless switch is received First information on the code sent;
Step S110, judgement enters in T second after code state, if a first information on the code of reception, wherein a is Integer greater than 1;If so, thening follow the steps S130;
Step S130, first information on the code is stored, it is corresponding with controlled device to complete the passive and wireless switch The foundation of relationship.
The second aspect of the present invention provides a kind of system based on passive and wireless switch, comprising: passive and wireless switch is controlled Equipment, and control equipment corresponding with the controlled device, the control equipment include receiving module, first judgment module and Memory module;Wherein,
Control button of the passive and wireless switch for switch in the passive and wireless is pushed once, transmission one time the One information on the code;
The receiving module and passive and wireless switch connect, and the receiving module is used to switch in the passive and wireless Control button when being pushed once, receive primary first information on the code that the passive and wireless switch is sent;
The first judgment module is connect with the receiving module, and the first judgment module is for judging in the control Equipment enters after the state to code in T seconds, and whether the receiving module receives a first information on the code, wherein a is Integer greater than 1;
The memory module is connect with the first judgment module, after the memory module is used to enter the state to code In T seconds, when the receiving module receives a first information on the code, first information on the code is stored, to complete the nothing The foundation of the corresponding relationship of source wireless switching and the controlled device.
Passive and wireless switch and controlled device are established to code method based on passive and wireless switch using provided by the invention Corresponding relationship when, press passive and wireless switch control button a time, often press passive and wireless switch control button it is primary, Passive and wireless switch sends first information on the code, that is, control button a times for pressing passive and wireless switch, passive and wireless switch Send a the first information on the code;After receiving a the first information on the code, judge whether to be inscribed for T seconds after entering to code state A the first information on the code is received, when the judgment is yes, then stores the first information on the code, completes passive and wireless switch and controlled device Corresponding relationship foundation, press again passive and wireless switch control button when, then can pass through passive and wireless switch control The working condition of controlled device.Using it is provided by the invention based on passive and wireless switch to code method, solve passive and wireless The control button of switch in Continued depression cannot continue send the first information on the code the problem of, realize passive and wireless switch with The foundation of the corresponding relationship of controlled device.
The third aspect of the present invention provides another kind based on passive and wireless switch to code method, comprising:
Step S300, when the control button of passive and wireless switch is pressed, the passive and wireless switch hair is received The second information on the code sent receives the nothing when bouncing after the control button of passive and wireless switch is pressed and held within The third information on the code that source wireless switching is sent;
Step S310, it obtains and receives the time locating for second information on the code and receive locating for the third information on the code Time between time interval Δ t;
Step S320, judgement enters in T seconds after code state, if receives second information on the code and the third pair Code information, and Δ t=Δ t0;Wherein, Δ t0<T;If so, thening follow the steps S340;
Step S340, second information on the code is stored, it is corresponding with controlled device to complete the passive and wireless switch The foundation of relationship.
The third aspect of the present invention provides another system based on passive and wireless switch, comprising: passive and wireless switch, quilt Equipment, and control equipment corresponding with the controlled device are controlled, the control equipment includes receiving module, time acquisition mould Block, the 5th judgment module and memory module;Wherein,
When control button of the passive and wireless switch for switching in the passive and wireless is pressed, second pair of code is sent Information is also used to when bouncing after the control button is pressed and held within, and sends third information on the code;
The receiving module and passive and wireless switch connect, and the receiving module is opened for receiving the passive and wireless Close second information on the code and the third information on the code sent;
The time-obtaining module is connect with the receiving module, and the time-obtaining module receives described for obtaining Time locating for two information on the codes and the time interval Δ t for receiving the time locating for the third information on the code;
5th judgment module is connect with the receiving module and the time-obtaining module respectively, the 5th judgement For module for judging to enter in T seconds after code state, whether the receiving module receives second information on the code and described the Three information on the codes, and Δ t=Δ t0;Wherein, Δ t0<T;
The memory module is connect with the 5th judgment module, and the memory module is used to enter to T seconds after code state Interior, the receiving module receives second information on the code and the third information on the code, and Δ t=Δ t0When, described in storage Second information on the code, to complete the foundation of the passive and wireless switch and the corresponding relationship of the controlled device.
Passive and wireless switch and controlled device are established to code method based on passive and wireless switch using provided by the invention Corresponding relationship when, 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 bounces after being pressed and held within, and passive and wireless switch sends third information on the code;When receiving After second information on the code and third information on the code, obtains and receive time locating for the second information on the code and reception third information on the code Then the time interval of locating time judges whether to receive the second information on the code and third in T seconds after entering to code state Information on the code, and receive the time locating for the second information on the code and receive the time interval of time locating for third information on the code and be Δ t0 seconds, when the judgment is yes, then the second information on the code is stored, completes passive and wireless switch and the corresponding relationship of controlled device It establishes.Using it is provided by the invention based on passive and wireless switch to code method, solve the control button of passive and wireless switch It cannot continue the problem of sending the second information on the code in Continued depression, it is corresponding with controlled device to realize passive and wireless switch The foundation of relationship.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart one to code method provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 2 is the flowchart 2 to code method provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 3 is the flow chart 3 to code method provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 4 is the flow chart four to code method provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 5 is the flow chart five to code method provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 6 is the schematic diagram one to code system provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 7 is the schematic diagram two to code system provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 8 is the schematic diagram three to code system provided in an embodiment of the present invention based on passive and wireless switch;
Fig. 9 is a kind of structural schematic diagram of passive and wireless switch provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another passive and wireless switch provided in an embodiment of the present invention.
Appended drawing reference:
10- controlled device, 20- control equipment,
21- receiving module, 22- data processing unit,
23- execution module, 24- AC-DC conversion module,
30- passive and wireless switch, 31- electricity generation module,
32- power module, 33- transmitting module,
34- is from back springing type key, 35- wraping plate,
The end 36- key, 40- fixed switch.
Specific embodiment
In order to further illustrate the present invention embodiment provide based on passive and wireless switch to code method and system, below It is described in detail in conjunction with Figure of description.
When establishing the corresponding relationship of passive and wireless switch and controlled device, the following two kinds mode can be used, specifically:
To code method one
Referring to Fig. 1, provided in an embodiment of the present invention include: to code method based on passive and wireless switch
Step S100, when the control button of passive and wireless switch is pressed next time, passive and wireless switch is sent one is received Secondary first information on the code;
Step S110, judge after entering to code state in T seconds, if receive a the first information on the code, wherein a is big In 1 integer;If so, thening follow the steps S130;
Step S130, the first information on the code is stored, is built with completing passive and wireless switch with the corresponding relationship of controlled device It is vertical.
It is provided in an embodiment of the present invention that control equipment can be passed through to code method on hardware based on passive and wireless switch It realizes, the information on the code that passive and wireless switch is sent can be carried by radiofrequency signal, and controlling equipment at this time can be radio-frequency apparatus, The information on the code that passive and wireless switch is sent can also be carried by infrared signal, and controlling equipment at this time can be infrared equipment;Control Control equipment is connected with corresponding controlled device, and is controlled equipment and be may be mounted in controlled device, and wall can also be arranged separately in Wall, ground etc. can be only corresponding with a controlled device when control equipment is arranged separately in wall, ground etc., can also With corresponding with multiple controlled devices, control equipment may include receiving module, first judgment module and memory module;Moreover, by Controlling 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 transmitting module.
When establishing the corresponding relationship of passive and wireless switch and controlled device, it can first start control corresponding with controlled device Control equipment, control equipment then enter to code state;Then passive and wireless switch is operated, presses the control of passive and wireless switch Key processed is primary, the mechanical energy power generation when electricity generation module of passive and wireless switch is then pressed using control button, i.e., will control Mechanical energy when key is pressed is converted to electric energy, and electric energy is transmitted to transmitting module through power module, powers for transmitting module, nothing The transmitting module of source wireless switching then sends first information on the code to control equipment, the control button that passive and wireless is switched It presses a times, then the transmitting module of passive and wireless switch sends a the first information on the code to control equipment, wherein information on the code can To include frame head, address code, control code and postamble, i.e. the first information on the code includes frame head, address code, control code and postamble, In, passive and wireless switch has unique address code, and the control button of passive and wireless switch is corresponding to have unique control code.
Passive and wireless switchs to control equipment and sends the first information on the code, and the receiving unit for controlling equipment receives first pair of code Information;After receiving unit the first information on the code of reception for controlling equipment, the first judgment module for controlling equipment judges whether to meet: Control equipment, which enters, receives a the first information on the code to the receiving module in T seconds after code state, controlling equipment, wherein a is big In 1 integer;Wherein, T can be selected according to actual needs, for example, T can take 6, at this point, the first of control equipment judges mould Block judges whether to meet: control equipment, which enters, receives a first pair of code to the receiving module in 6 seconds after code state, controlling equipment Information;A is the integer greater than 1, i.e., receiving module needs to receive the first information on the code at least twice, then needs to open passive and wireless The control button of pass is pressed at least twice, and passive and wireless switchs to control equipment and sends the first information on the code at least twice, and a can be with Take 2 or 3 or 4 etc..
When the conditions are satisfied, the storing module for controlling equipment then stores the first information on the code, completes passive and wireless switch With the foundation of the corresponding relationship of controlled device.After the foundation for completing the corresponding relationship of passive and wireless switch and controlled device, when again When the secondary control button for pressing passive and wireless switch, then it can be switched by passive and wireless and the working condition of controlled device is carried out Control, for example, passing through the on or off of passive and wireless switch control controlled device.
After receiving unit a the first information on the code of reception for controlling equipment, the first judgment module judgement for controlling equipment is No satisfaction: control equipment enters to receiving module a the first information on the code of reception in T second after code state, controlling equipment, can be with Think, it should while meeting two conditions, one of condition is that the receiving module of control equipment receives a first pair of code letter Breath, another condition be control equipment receiving module receive a-th of first information on the codes time and control equipment into pair Time interval between the time of code state is less than T seconds, when one of condition is unsatisfactory for or two conditions are not satisfied, The memory module for then controlling equipment does not store the first information on the code, that is, it is corresponding with controlled device to fail to establish passive and wireless switch Relationship.
It can be seen from the above, establishing passive nothing to code method based on passive and wireless switch using provided in an embodiment of the present invention When the corresponding relationship of wiretap and controlled device, passive and wireless switch is often pressed in control button a times for pressing passive and wireless switch Control button it is primary, passive and wireless switch send first information on the code, that is, press passive and wireless switch control button a Secondary, passive and wireless switch sends a the first information on the code;After receiving a the first information on the code, judge whether in entrance pair A the first information on the code is received in T seconds after code state, when the judgment is yes, is then stored the first information on the code, is completed passive and wireless The foundation of switch and the corresponding relationship of controlled device can then pass through nothing when pressing the control button of passive and wireless switch again The working condition of source wireless switching control controlled device.Using it is provided in an embodiment of the present invention based on passive and wireless switch to code Method solves the problems, such as that the control button of passive and wireless switch cannot continue to send the first information on the code in Continued depression, Realize the foundation of passive and wireless switch and the corresponding relationship of controlled device.
In addition, it is provided in an embodiment of the present invention based on passive and wireless switch in code method, by pressing passive and wireless The control button of switch a times, it is simple to code method to realize that passive and wireless switch sends a the first information on the code, facilitate behaviour Make.
Furthermore provided in an embodiment of the present invention is based on passive and wireless switch to code method to code method, that is to say, that It is provided in an embodiment of the present invention based on passive and wireless switch to code method be applied to switch based on passive and wireless to code system, The equipment of wireless control for controlling controlled device is passive and wireless switch, passes through battery powered remote control control with using Controlled device is compared, and can be charged to avoid frequent replacement battery or for the battery of remote controler, be improved ease of use, reduce Use cost saves the energy, and reduces the harm to environment.
It is noted that please referring to Fig. 6 to Fig. 8, passive and wireless switch 30 includes electricity generation module 31,32 and of power module Transmitting module 33, when the control button of passive and wireless switch 30 is pressed or the control button of passive and wireless switch 30 bounces When, mechanical energy when control button is pressed or is bounced by electricity generation module 31 is converted to electric energy, and electric energy is transmitted through power module 32 It to transmitting module 33, powers for transmitting module 33, transmitting module 33 can then issue information on the code.
In the above-described embodiments, passive and wireless switch can be a variety of, for example, referring to Fig. 9, passive and wireless switch 30 can Think from back springing type passive and wireless and switch, alternatively, referring to Fig. 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 from back springing type passive and wireless switch when, control button be from back springing type without On the wireless switching of source from back springing type key 34, then the control button for often pressing passive and wireless switch 30 is primary, and passive and wireless is opened Closing 30 first information on the codes of transmission may include:
It presses from back springing type key, passive and wireless is switched to sending the first information on the code;
It unclamps from back springing type key.
For example, after control equipment enters to code state, passive and wireless switch is operated, passive and wireless is pressed and opens Close from back springing type key 34, passive and wireless switch then sends the first information on the code to control equipment;It unclamps from back springing type key 34, original position is recoiled to from back springing type key 34, at this point, the electricity generation module of passive and wireless switch can will be returned from back springing type key 34 Mechanical energy when bullet is converted to electric energy, and electric energy is transmitted to transmitting module by power module, powers for transmitting module, passive and wireless The transmitting module of switch corresponding information on the code when then can send to equipment is controlled and be sprung back from back springing type key 34, certainly, The transmitting module of passive and wireless switch can not also send corresponding to code with when springing back from back springing type key 34 to control equipment Information.A above-mentioned steps are repeated in, passive and wireless switch 30 can be realized to control equipment and send a the first information on the code.
Referring to Fig. 10, passive and wireless switch 30 includes sticking up when passive and wireless switch 30 is that moving seesaw-type passive and wireless switchs Plate 35, the both ends of wraping plate 35 are respectively arranged with an end key 36, for example, as shown in Figure 10, moving seesaw-type passive and wireless switch includes Two wraping plates 35, the both ends of each wraping plate 35 are respectively arranged with an end key 36, i.e. in Figure 10 the upper end of the wraping plate 35 in left side and Lower end is respectively arranged with an end key 36, and the top and bottom of the wraping plate 35 on right side are also respectively arranged with an end key in Figure 10 36;Control button is the end key 36 positioned at wherein one end of wraping plate 35, then often presses the control button one of passive and wireless switch 30 Secondary, passive and wireless switch 30 sends first information on the code and may include:
The end key positioned at wherein one end of wraping plate is pressed, passive and wireless switch sends the first information on the code;
Press the end key of the other end positioned at wraping plate.
For example, when the end key 36 for the upper end for needing the wraping plate 35 by being located at left side in Figure 10 controls controlled device When working condition, that is, need to establish end key 36 pass corresponding with controlled device in Figure 10 positioned at the upper end of the wraping plate 35 in left side The end key 36 for being located at the upper end of wraping plate 35 in left side in Figure 10, passive and wireless are pressed after control equipment enters to code state by system Switch 30 sends the first information on the code to control equipment;Then the end key for being located at the lower end of wraping plate 35 in left side in Figure 10 is pressed 36, make to bounce in Figure 10 positioned at the end key 36 of the upper end of the wraping plate 35 in left side, to be pressed next time, at this point, passive and wireless Mechanical energy when the end key 36 for the lower end for being located at the wraping plate 35 in left side in Figure 10 can be pressed by the electricity generation module of switch 30 turns It is changed to electric energy, electric energy is transmitted to transmitting module by power module, it powers for transmitting module, at this point, passive and wireless switch 30 Transmitting module can send corresponding with the end key 36 of lower end of wraping plate 35 in left side is located in Figure 10 to code letter to control equipment Breath, certainly, the transmitting module of passive and wireless switch can not also be to the transmission of control equipment and the wraping plate 35 for being located at left side in Figure 10 Lower end the corresponding information on the code of end key 36.A above-mentioned steps are repeated in, passive and wireless switch 30 can be realized to control Equipment sends a the first information on the code.
Referring to Fig. 2, after step silo, before step S130, it is provided in an embodiment of the present invention based on without passive nothing Wiretap to code method further include:
Step S120, it judges whether there is and identical with the first information on the code has deposited information on the code;If so, executing step S140;If not, executing step S130;
Step S140, removing is identical with the first information on the code has deposited information on the code, to complete passive and wireless switch and quilt Control the releasing of the corresponding relationship of equipment.
Specifically, the memory module for controlling equipment is used to store the corresponding relationship for completing passive and wireless switch and controlled device Foundation after, information on the code corresponding with passive and wireless switch is stored in memory module and has deposited information on the code, control equipment It can also include the second judgment module and erasing of information module.It is sent when the receiving module of control equipment receives passive and wireless switch The first information on the code, control equipment first judgment module judgement learn: control equipment enter to code state after in T seconds, Control equipment receiving module receive a the first information on the code after, control the second judgment module of equipment for the first information on the code Information on the code comparison is deposited with the memory module of control equipment, to judge whether to meet: existing and first in memory module Information on the code is identical to have deposited information on the code;There is deposited to code letter identical with the first information on the code when meeting in memory module When breath, i.e. passive and wireless switch and the corresponding relationship of controlled device has been established, at this point, the erasing of information module of control equipment then will It is identical with the first information on the code in memory module to have deposited information on the code removing, to release passive and wireless switch and controlled device Corresponding relationship;When be unsatisfactory for existing in memory module it is identical with the first information on the code deposited information on the code when, i.e. passive and wireless It switchs and is not set up with the corresponding relationship of controlled device, at this point, the memory module of control equipment then stores the first information on the code, to build The corresponding relationship of vertical passive and wireless switch and controlled device.
When meet in memory module exist it is identical with the first information on the code deposited information on the code when, control the information of equipment It removes module then to remove information on the code of having deposited identical with the first information on the code in memory module, at this point, sending first pair of code The passive and wireless switch of information and the corresponding relationship of controlled device are released from, and user cannot utilize the first information on the code of transmission The working condition of passive and wireless switch control controlled device, the passive and wireless switch for sending the first information on the code then may be used as it With with user-friendly.
When be unsatisfactory in memory module exist it is identical with the first information on the code deposited information on the code when, control depositing for equipment Storage module then stores the first information on the code, realizes that the passive and wireless switch for sending the first information on the code is corresponding with controlled device and closes The foundation of system, user can use the working condition for sending the passive and wireless switch control controlled device of the first information on the code.
It is designed in this way, when the second judgment module of control equipment judges to be not present and the first information on the code phase in memory module With when having deposited information on the code, the memory module for controlling equipment just store the first information on the code, thus can be to avoid repeatedly foundation The corresponding relationship of same passive and wireless switch and controlled device, avoids identical multiple information on the codes from occupying the sky of memory module Between.Furthermore it is also possible to convenient for users to releasing passive and wireless switch and the corresponding relationship of controlled device, passive and wireless switch can be with It uses it for anything else, it is user-friendly.
In above-described embodiment, when releasing the corresponding relationship of passive and wireless switch and controlled device, passive and wireless switch is pressed Control button number, when with establishing passive and wireless switch with the corresponding relationship of controlled device, press passive and wireless switch The number of control button is identical, that is, when establishing the corresponding relationship of passive and wireless switch and controlled device, presses passive and wireless switch Control button number be a time, then release passive and wireless switch and controlled device corresponding relationship when, press passive and wireless and open The number of the control button of pass is also a times.In practical applications, the corresponding relationship of passive and wireless switch and controlled device is released When, the number of the control button of passive and wireless switch is pressed, when with establishing passive and wireless switch with the corresponding relationship of controlled device, The number for pressing the control button of passive and wireless switch can also be different, specifically:
Referring to Fig. 3, after step S100, it is provided in an embodiment of the present invention based on passive and wireless switch to code method also Include:
Step S150, judgement entered after the state to code in T seconds, if b first information on the code is received, In, b is integer greater than 1, and b ≠ a;If so, thening follow the steps S160;
Step S160, acquisition is identical with the first information on the code has deposited information on the code;
Step S170, removing is identical with the first information on the code has deposited information on the code, to complete passive and wireless switch and quilt Control the releasing of the corresponding relationship of equipment.
When releasing the corresponding relationship of passive and wireless switch and controlled device, time of the control button of passive and wireless switch is pressed Number when with establishing passive and wireless switch with the corresponding relationship of controlled device, presses the number of the control button of passive and wireless switch When different, i.e. b ≠ a, for example, a can take 3, b that can take 2, convenient for users to oneself clear operation.
Please continue to refer to Fig. 2 or Fig. 3, in the above-described embodiments, when storing the first information on the code, passive and wireless switch is completed After foundation with the corresponding relationship of controlled device, code method is also wrapped based on passive and wireless switch provided in an embodiment of the present invention It includes:
Step S180, it issues and code is successfully indicated.
Information on the code has been deposited when control device clear is identical with the first information on the code, passive and wireless switch has been completed and is controlled After the releasing of the corresponding relationship of equipment, it is provided in an embodiment of the present invention based on passive and wireless switch to code method further include:
Step S190, clear code is issued successfully to indicate.
When it is implemented, control equipment may include indicating module, when the memory module of control equipment stores first pair of code Information after the foundation for completing the corresponding relationship of passive and wireless switch and controlled device, can pass through the indicating module of control equipment Sending successfully indicates code;Deposited identical with the first information on the code is removed when the erasing of information module of control equipment to believe code Breath after the releasing for completing the corresponding relationship of passive and wireless switch and controlled device, can be sent out by controlling the indicating module of equipment Clear code successfully indicates out.
When the indicating module sending of control equipment successfully indicates code or clear code successfully indicates, it can be and pass through instruction Lamp, charactron or liquid crystal display are prompted, and indicator light, charactron or liquid crystal display can be set on the control device, alternatively, control The indicating module of equipment makes controlled device issue instruction, for example, controlling the memory module storage the of equipment when controlled device is lamp One information on the code, alternatively, the erasing of information module of control equipment removes identical with the first information on the code in memory module deposited After information on the code, then can by indicating module to lamp issue instruct, make lamp flashing several times, sending code successfully indicate or clearly Code successfully instruction, to prompt the foundation or releasing of the corresponding relationship of user's completion passive and wireless switch and controlled device.
Please continue to refer to Fig. 2, before step S100, it is provided in an embodiment of the present invention based on passive and wireless switch to code Method further include:
Step S10, it reads and has deposited information on the code.
When practical application, control equipment can also include read module, and the read module by controlling equipment reads storage Information on the code has been deposited in module, facilitate the second judgment module for the first information on the code and has deposited information on the code comparison, with judgement Deposited information on the code with the presence or absence of identical with the first information on the code in memory module, so facilitate establish passive and wireless switch with The corresponding relationship of controlled device, alternatively, facilitating the corresponding relationship of contact passive and wireless switch and controlled device.
Information on the code is deposited in addition, reading in memory module by the read module of control equipment, when establishing passive nothing After the corresponding relationship of wiretap and controlled device, when by the working condition of passive and wireless switch control controlled device, Ke Yijia The response speed of fast controlled device.
Please continue to refer to Fig. 2, before step S100, it is provided in an embodiment of the present invention based on passive and wireless switch to code Method further include:
Step S20, into code state;
Step S30, timing is carried out to the time entered to code state;
Step S40, whether judge into the time to code state more than T seconds;If so, thening follow the steps S50;If It is no, then follow the steps S100;
Step S50, it exits to code state.
When it is implemented, control equipment can also include timing module and third judgment module, and after control equipment starting, control Control equipment can then start to enter control equipment automatically into the timing module for code state, controlling equipment to code state when Between carry out timing;Third judgment module then judges that whether control equipment enters to the time of code state more than T seconds;When being judged as YES When, control equipment is exited to code state, at this point, can not continue to establish or release passive and wireless switch pass corresponding with controlled device System;When the judgment is no, it controls equipment not exiting to code state, then can continue to establish or release passive and wireless switch and is controlled The corresponding relationship of equipment.
In embodiments of the present invention, after the starting of control equipment, automatically into code state, and according to the timing of control equipment Module, which enters control equipment, carries out timing to the time of code state, then judges that controlling equipment is by third judgment module It is no to exit to code state, i.e., in the embodiment of the present invention, can voluntarily being judged without peripheral operation code state for equipment is controlled, with In the prior art to during code must long-pressing control equipment start switch, code is compared with realization, i.e., and in the prior art It, can be to avoid because being needed to user during code to needing to carry out operation with remote controler to control equipment simultaneously during code to compare Control equipment and remote controler are operated simultaneously and be caused inconvenient for operation.
In the above-described embodiments, when starting control equipment, a variety of methods can be used, for example, equipment can be controlled with long-pressing Start switch, to start control equipment;Alternatively, when control equipment is mounted in controlled device, it can be on long-pressing controlled device Equipment is corresponding starts switch with control, to start control equipment;Alternatively, the fixed switch of control equipment and controlled device connects It connects, fixed switch is mounted on wall or ground, by opening the fixed switch of controlled device, to start control equipment.
Please refer to Fig. 6 or Fig. 7, the embodiment of the present invention also provide it is a kind of based on passive and wireless switch to code system, comprising: Passive and wireless switch 30, controlled device 10, and control equipment 20 corresponding with controlled device 10, control equipment 20 include receiving Module 21, first judgment module and memory module;Wherein, passive and wireless switch 30 is used to press in the control of passive and wireless switch 30 Key is pushed once, and sends first information on the code;Receiving module 21 and passive and wireless switch connect, and receiving module 21 is used for When the control button of passive and wireless switch 30 is pushed once, first pair of code letter that passive and wireless switch 30 is sent is received Breath;First judgment module is connect with receiving module 21, and first judgment module enters in control equipment 20 to code state for judging Afterwards in T seconds, whether receiving module 21 receives a the first information on the code, wherein a is the integer greater than 1;Memory module and first Judgment module connection, memory module are used to enter in T second after code state, when a the first information on the code of reception of receiving module 21, The first information on the code is stored, to complete the foundation of the corresponding relationship of passive and wireless switch 30 and controlled device 10.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.
Please continue to refer to Fig. 6, in embodiments of the present invention, control equipment 20 further includes the second judgment module and erasing of information Module;Second judgment module is connect with first judgment module and memory module respectively, and the second judgment module is for judging whether to deposit Information on the code has been deposited identical with the first information on the code;Erasing of information module connects with the second judgment module and memory module respectively It connects, erasing of information module is used to existing identical with the first information on the code when having deposited information on the code, removes and the first information on the code It is identical to have deposited information on the code, to complete the releasing of passive and wireless switch and the corresponding relationship of controlled device.
In practical applications, when releasing the corresponding relationship of passive and wireless switch 30 and controlled device 10, passive and wireless is pressed The number of the control button of switch 30 is pressed passive when with establishing corresponding relationship of the passive and wireless switch 30 with controlled device 10 The number of the control 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 further includes third judgment module, acquisition of information Module and erasing of information module;Third judgment module is connect with receiving module 21, and third judgment module is for judging to enter to code After state in T seconds, whether receiving module 21 receives b the first information on the code, wherein b is integer greater than 1, and b ≠ a;Information It obtains module to connect with memory module, data obtaining module is used to enter in T seconds after code state, and receiving module 21 receives b times When the first information on the code, acquisition is identical with the first information on the code to have deposited information on the code;Erasing of information module is obtained with information respectively Modulus block is connected with memory module, data obtaining module for remove it is identical with the first information on the code deposited information on the code, with Complete the releasing of passive and wireless switch and the corresponding relationship of controlled device.
In practical applications, judge to enter in T seconds after code state, whether receiving module 21 receives a first pair of code letter Breath, and judgement enter in T seconds after code state, and whether receiving module 21, which receives b the first information on the code, can use same mould Block realizes that is, the function of third judgment module can also be realized by first judgment module.
Please continue to refer to Fig. 6 or Fig. 7, in embodiments of the present invention, control equipment 20 further includes indicating module, indicating module It is connect respectively with memory module and erasing of information module;After indicating module is for storing the first information on the code, issue to code success Instruction;Indicating module be also used to remove it is identical with the first information on the code deposited information on the code after, issue clear code and successfully refer to Show.
When the indicating module sending of control equipment 20 successfully indicates code or clear code successfully indicates, it can be and pass through finger Showing that lamp, charactron or liquid crystal display are prompted, indicator light, charactron or liquid crystal display can be set in control equipment 20, alternatively, The indicating module of control equipment 20 directly makes the indicating module of controlled device sending instruction or control equipment 20 pass through control equipment 20 execution module 23 makes controlled device issue instruction, for example, controlling the memory module storage the of equipment when controlled device is lamp One information on the code, alternatively, the erasing of information module of control equipment removes identical with the first information on the code in memory module deposited After information on the code, then it can be issued and be instructed to lamp by indicating module, instructed alternatively, indicating module is issued to execution module 23, Execution module 23 executes instruction, and makes lamp flashing several times, and sending successfully indicates code or clear code successfully indicates, to prompt to use Person completes the foundation or releasing of the corresponding relationship of passive and wireless switch and controlled device.
Please continue to refer to Fig. 6 or Fig. 7, controlling equipment 20 further includes timing module and the 4th judgment module;Timing module is used In the time timing to the control entrance of equipment 20 to code state;4th judgment module connects with timing module and receiving module 21 respectively It connects, whether the 4th judgment module is used to judge into the time to code state more than T seconds;If it is, exiting to code state, such as Fruit is no, then can continue the foundation of the corresponding relationship of passive and wireless switch 30 and controlled device 10.
Please continue to refer to Fig. 6 or Fig. 7, controlling equipment 20 further includes read module, and read module is connect with memory module, is read Modulus block has deposited information on the code for reading in memory module.
It is provided in an embodiment of the present invention to further include to code system based on passive and wireless switch please continue to refer to Fig. 6 or Fig. 7 Fixed switch 40, AC-DC conversion module 24 of the fixed switch 40 respectively with controlled device 10 and control equipment 20 connect It connects, after fixed switch 40 is opened, control equipment 20 powers on and starts.
It is noted that pressing passive and wireless when releasing the corresponding relationship of passive and wireless switch 30 and controlled device 10 The number of the control button of switch 30 is pressed passive when with establishing corresponding relationship of the passive and wireless switch 30 with controlled device 10 When the number of the control button of wireless switching 30 is identical, please continue to refer to Fig. 6, first judgment module, memory module, the second judgement Module, erasing of information module, indicating module, read module, timing module and the 4th judgment module can integrate in control equipment In 20 data processing unit 22, data processing unit 22 can for micro-control unit (Microcontroller Unit, MCU);When releasing the corresponding relationship of passive and wireless switch 30 and controlled device 10, the control button of passive and wireless switch 30 is pressed Number, with establish passive and wireless switch 30 and controlled device 10 corresponding relationship when, press the control of passive and wireless switch 30 When the number difference of key, please continue to refer to Fig. 7, first judgment module, memory module, third judgment module, acquisition of information mould Block, indicating module, read module, timing module and the 4th judgment module can integrate the data processing unit in control equipment 20 In 22.
To code method two, referring to Fig. 4, the embodiment of the present invention also provides another kind based on passive and wireless switch to code side Method, comprising:
Step S300, when the control button of passive and wireless switch is pressed, passive and wireless switch is sent second is received Information on the code receives what passive and wireless switch was sent when bouncing after the control button of passive and wireless switch is pressed and held within Third information on the code;
Step S310, obtain receive the second information on the code locating for the time and receive third information on the code locating for the time it Between time interval Δ t;
Step S320, judgement enters in T seconds after code state, if the second information on the code and third information on the code are received, And Δ t=Δ t0;Wherein, Δ t0<T;If so, thening follow the steps S340;
Step S340, the second information on the code is stored, is built with completing passive and wireless switch with the corresponding relationship of controlled device It is vertical.
It is provided in an embodiment of the present invention that control equipment can be passed through to code method on hardware based on passive and wireless switch It realizes, control equipment is connected with corresponding controlled device, and is controlled equipment and be may be mounted in controlled device, can also individually be pacified Mounted in wall, ground etc., when controlling equipment and being arranged separately in wall, ground etc., can only with a controlled device pair It answers, can also be corresponding with multiple controlled devices, control equipment may include receiving module, time-obtaining module, first judge mould Block and memory module;Moreover, 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 transmitting module.
When establishing the corresponding relationship of passive and wireless switch and controlled device, it can first start control corresponding with controlled device Equipment, control equipment then enter to code state;Then passive and wireless switch is operated, the control that passive and wireless switchs is pressed Key pressing is simultaneously kept, 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 power generation when key is pressed, i.e., mechanical energy when control button being pressed are converted to electric energy, and electric energy is through power supply mould Block is transmitted to transmitting module, powers for transmitting module, and the transmitting module of passive and wireless switch then sends second pair to control equipment The control button of code information, passive and wireless switch presses and holds the control button bullet for after a certain period of time switching passive and wireless It rises, when the control button of passive and wireless switch bounces, when the electricity generation module of passive and wireless switch is then bounced using control button Mechanical energy power generation, i.e., mechanical energy when bouncing control button are converted to electric energy, and electric energy is transmitted to transmitting module through power module, For transmitting module power supply, the transmitting module of passive and wireless switch then sends third information on the code to control equipment.
Passive and wireless is switched to when controlling equipment the second information on the code of transmission, and the receiving unit for controlling equipment is scanned to second Information on the code simultaneously receives the second information on the code, and passive and wireless is switched to when controlling equipment transmission third information on the code, controls equipment Receiving unit scan and to third information on the code and receive third information on the code;The receiving unit for controlling equipment receives second pair of code After information and third information on the code, the time-obtaining module for controlling equipment obtains receiving module and receives locating for the second information on the code Time and receiving module receive the time interval Δ t of time locating for third information on the code;Then, the first judgement of equipment is controlled Module judges whether to meet: control equipment, which enters, receives second pair of code letter to the receiving module in T seconds after code state, controlling equipment Breath and third information on the code, and receiving module receives the time locating for the second information on the code and receiving module receives third and believes code The time interval Δ t of breath locating time is Δ t0Second, wherein Δ t0< T, T and Δ t0It can select according to actual needs, example Such as, T can take 6, Δ t03 can be taken, that is, controls the second judgment module of equipment, judges whether to meet: control equipment entrance pair After code state in 6 seconds, the receiving module for controlling equipment receives the second information on the code and third information on the code, and receiving module receives The time interval that time locating for second information on the code and receiving module receive the time locating for third information on the code is 3 seconds;When When meeting above-mentioned condition, the memory module for controlling equipment then stores the first information on the code, complete passive and wireless switch with The foundation of the corresponding relationship of controlled device.After the foundation for completing the corresponding relationship of passive and wireless switch and controlled device, when again When pressing the control button of passive and wireless switch, then the working condition of controlled device can be controlled.
It can be seen from the above, establishing passive nothing to code method based on passive and wireless switch using provided in an embodiment of the present invention When the corresponding relationship of wiretap and controlled device, the control button of passive and wireless switch is pressed, passive and wireless switch sends second Information on the code, the control button for then switching passive and wireless bounce after being pressed and held within, and passive and wireless switch sends third Information on the code;After receiving the second information on the code and third information on the code, obtains and receive the time locating for the second information on the code With the time interval for receiving the time locating for third information on the code, then judge whether to receive in T seconds after entering to code state Second information on the code and third information on the code, and receive the time locating for the second information on the code and receive locating for third information on the code Time time interval be Δ t0Second, when the judgment is yes, then the second information on the code is stored, completes passive and wireless switch and quilt Control the foundation of the corresponding relationship of equipment.Using it is provided in an embodiment of the present invention based on passive and wireless switch to code method, solve The control button of passive and wireless switch cannot continue the problem of sending the second information on the code in Continued depression, realize passive The foundation of the corresponding relationship of wireless switching and controlled device.
In addition, it is provided in an embodiment of the present invention based on passive and wireless switch in code method, by pressing passive and wireless The control button of switch and holding, passive and wireless switch send the second information on the code, the control for then switching passive and wireless by Key bounces, and passive and wireless switch sends third information on the code, sends second pair of code to realize that passive and wireless is switched to control equipment Then whether information and third information on the code receive the second information on the code and third after entering to code state and believe code in T seconds Breath, and judge to receive the time locating for the second information on the code and receive the time interval of time locating for third information on the code, i.e., Judge the duration that the control button of passive and wireless switch is pressed, it is corresponding with controlled device to establish passive and wireless switch Relationship, it is simple to code method, facilitate operation.
Furthermore provided in an embodiment of the present invention is based on passive and wireless switch to code method to code method, that is to say, that It is provided in an embodiment of the present invention based on passive and wireless switch to code method be applied to switch based on passive and wireless to code system, The equipment of wireless control for controlling controlled device is passive and wireless switch, passes through battery powered remote control control with using Controlled device is compared, and can be charged to avoid frequent replacement battery or for the battery of remote controler, be improved 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, it is provided in an embodiment of the present invention to be opened based on passive and wireless Close to code method further include:
Step S330, it judges whether there is and identical with the second information on the code has deposited information on the code;If it is, executing step Rapid S350;If not, thening follow the steps S340;
Step S350, removing is identical with the second information on the code has deposited information on the code, to complete passive and wireless switch and quilt Control the releasing of the corresponding relationship of equipment.
In practical operation, control equipment can also include the second judgment module and erasing of information module, and control equipment connects The second information on the code and third information on the code are received, and judges to learn: receiving second in T seconds after control equipment enters to code state Information on the code and third information on the code, and receiving the second information on the code and receiving the time interval Δ t of third information on the code is Δ t0After second, the second judgment module of equipment is controlled then by having deposited to code in the memory module of the second information on the code and control equipment Information comparison, to judge whether to meet: having deposited information on the code in the presence of identical with the second information on the code in memory module;Work as judgement Learn in memory module there is no it is identical with the second information on the code deposited information on the code when, control equipment memory module storage Second information on the code establishes the corresponding relationship of passive and wireless switch and controlled device, at this point, user can use passive and wireless The working condition of switch control controlled device;Learn there is deposited pair identical with the second information on the code in memory module when judgement When code information, controlling the erasing of information module of equipment, to have deposited information on the code clear by identical with the second information on the code in memory module It removes, passive and wireless switch and the corresponding relationship of controlled device release, at this point, user cannot utilize passive and wireless switch control quilt Control the working condition of equipment.
It is designed in this way, when the second judgment module of control equipment judges to be not present and the first information on the code phase in memory module With when having deposited information on the code, the memory module for controlling equipment just store the first information on the code, thus can be to avoid repeatedly foundation The corresponding relationship of same passive and wireless switch and controlled device, avoids identical multiple information on the codes from occupying the sky of memory module Between.Furthermore it is also possible to convenient for users to releasing passive and wireless switch and the corresponding relationship of controlled device, passive and wireless switch can be with It uses it for anything else, it is user-friendly.
It is noted that removing identical with the second information on the code in memory module deposited to code in above-described embodiment When information, the duration that the control button of passive and wireless switch is pressed, when with the second information on the code of storage, passive and wireless is opened The duration that the control button of pass is pressed is identical, in practical applications, remove memory module in the second information on the code phase With when having deposited information on the code, duration for being pressed of control button of passive and wireless switch, and store the second information on the code When, the duration that the control button of passive and wireless switch is pressed can also be different.
It is provided in an embodiment of the present invention in code method two in above-described embodiment, after storing the first information on the code, further include Sending successfully indicates code;When remove memory module in it is identical with the first information on the code deposited information on the code after, further include It issues clear code successfully to indicate, the control sending of equipment 20 successfully indicates code or clear code successfully indicates, with above-mentioned to code side Similar described in method one, details are not described herein.
In above-described embodiment, in code method two, before step S300, further includes: read module reads storage mould Information on the code has been deposited in block;Equipment is controlled to enter to code state;The timing module for controlling equipment enters to code control equipment The time of state carries out timing;4th judgment module judges that whether control equipment enters to the time of code state more than T seconds, if It is that control equipment is exited to code state, if not, control equipment does not exit to code state.Wherein, in code method two, on Step is stated with above-mentioned to similar described in code method one, details are not described herein.
In the above-described embodiments, when starting control equipment corresponding with controlled device, a variety of methods can be used, for example, Starting switch for equipment can be controlled with long-pressing, to start control equipment, alternatively, when control equipment is mounted in controlled device, it can With equipment is corresponding starts switch with control on long-pressing controlled device, to start control equipment, alternatively, control equipment is set with being controlled Standby fixed switch connection, by opening the fixed switch of controlled device, to start control equipment.
Referring to Fig. 8, the embodiment of the present invention also provides another kind based on passive and wireless switch to code system, comprising: nothing Source wireless switching 30, controlled device 10, and control equipment 20 corresponding with controlled device 10, control equipment 20 include receiving mould Block 21, time-obtaining module, the 5th judgment module and memory module, wherein passive and wireless switch 30 in passive and wireless for opening When the control button of pass 30 is pressed, the second information on the code is sent, is also used to bounce after control button is pressed and held within When, send third information on the code;Receiving module 21 is connect with passive and wireless switch 30, and receiving module 21 is for receiving passive and wireless The second information on the code and third information on the code that switch 30 is sent;Time-obtaining module is connect with receiving module 21, and the time obtains Module is used to obtain the time interval for receiving the time locating for the second information on the code and receiving the time locating for third information on the code Δt;5th judgment module is connect with receiving module 21 and time-obtaining module respectively, and the 5th judgment module is for judging entrance pair After code state in T seconds, whether receiving module receives the second information on the code and third information on the code, and Δ t=Δ t0, wherein Δ t0 <T;Memory module is connect with the 5th judgment module, and memory module is used to enter in T seconds after code state, and receiving module 21 receives Second information on the code and third information on the code, and Δ t=Δ t0When, the second information on the code is stored, to complete passive and wireless switch 30 with the foundation of the corresponding relationship of controlled device 10.
The system based on passive and wireless switch and it is above-mentioned based on passive and wireless switch to code method two relative to existing There is advantage possessed by technology identical, details are not described herein.
In embodiments of the present invention, control equipment 20 further includes the 6th judgment module and erasing of information module, the 6th judgement Module is connect with the 5th judgment module and memory module respectively, and the 6th judgment module is believed for judging whether there is with second pair of code It ceases and identical has deposited information on the code;Erasing of information module is connect with the 6th judgment module and memory module respectively, erasing of information mould Block be used for when exist it is identical with the second information on the code deposited information on the code when, remove deposited pair identical with the second information on the code Code information, to release the corresponding relationship of passive and wireless switch 30 Yu controlled device 10;When there is no identical as the second information on the code When having deposited information on the code, then store the second information on the code, with establish passive and wireless switch 30 it is corresponding with controlled device 10 close System.
In above-described embodiment, control equipment 20 further includes that indicating module, read module, timing module and the 4th judge mould Block, wherein indicating module is used for after memory module stores the first information on the code, and sending successfully indicates code, is also used to Erasing of information module remove memory module in it is identical with the first information on the code deposited information on the code after, issue clear code and successfully refer to Show;Read module has deposited information on the code for reading in memory module;Timing module is used to enter to code control equipment 20 The time timing of state;Whether the 4th judgment module is used to judge to control equipment 20 and enters to the time of code state more than T seconds;Such as Fruit is that control equipment 20 is exited to code state.
It is noted that in the above-described embodiments, the 5th judgment module, memory module, time-obtaining module, the 6th sentence Disconnected module, erasing of information module, indicating module, read module, timing module and the 4th judgment module can integrate and controlling In the data processing unit 22 of equipment 20.
In the description of above embodiment, particular features, structures, materials, or characteristics can be at any one or more It can be combined in any suitable manner in a embodiment or example.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (4)

1. it is a kind of based on passive and wireless switch to code method characterized by comprising
Step S300, when the control button of passive and wireless switch is pressed, receive what the passive and wireless switch was sent Second information on the code receives the passive nothing when bouncing after the control button of passive and wireless switch is pressed and held within The third information on the code that wiretap is sent;
Step S310, when obtaining the time locating for reception second information on the code and receiving locating for the third information on the code Between between time interval Δ t;
Step S320, judgement enters in T seconds after code state, if receives second information on the code and the third and believes code Breath, and Δ t=Δ t0;Wherein, Δ t0<T;If so, thening follow the steps S340;
Step S340, second information on the code is stored, to complete the corresponding relationship of the passive and wireless switch and controlled device Foundation.
2. it is according to claim 1 based on passive and wireless switch to code method, which is characterized in that the step S320 it It is afterwards, described to code method before the step S340 further include:
Step S330, it judges whether there is and identical with second information on the code has deposited information on the code;If it is, executing step Rapid S350;If it is not, then executing the step S340;
Step S350, removing is identical with second information on the code has deposited information on the code, to complete the passive and wireless switch With the releasing of the corresponding relationship of the controlled device.
3. it is a kind of based on passive and wireless switch to code system characterized by comprising passive and wireless switch, controlled device, with And control equipment corresponding with the controlled device, the control equipment include receiving module, time-obtaining module, the 5th judgement Module and memory module;Wherein,
When control button of the passive and wireless switch for switching in the passive and wireless is pressed, second pair of code letter is sent Breath, is also used to when bouncing after the control button is pressed and held within, and sends third information on the code;
The receiving module and passive and wireless switch connect, and the receiving module is for receiving the passive and wireless switch hair Second information on the code and the third information on the code sent;
The time-obtaining module is connect with the receiving module, and the time-obtaining module receives described second pair for obtaining Time locating for code information and the time interval Δ t for receiving the time locating for the third information on the code;
5th judgment module is connect with the receiving module and the time-obtaining module respectively, the 5th judgment module For judging to enter whether the receiving module receives second information on the code and the third pair in T seconds after code state Code information, and Δ t=Δ t0;Wherein, Δ t0<T;
The memory module is connect with the 5th judgment module, and the memory module is used to enter in T seconds after code state, institute It states receiving module and receives second information on the code and the third information on the code, and Δ t=Δ t0When, store described second pair Code information, to complete the foundation of the passive and wireless switch and the corresponding relationship of the controlled device.
4. it is according to claim 3 based on passive and wireless switch to code system, which is characterized in that the control equipment is also Including the 6th judgment module and erasing of information module;
6th judgment module is connect with the 5th judgment module and the memory module respectively, the 6th judgment module Identical with second information on the code information on the code has been deposited for judging whether there is;
The erasing of information module is connect with the 6th judgment module and the memory module respectively, the erasing of information module For when exist it is identical with second information on the code deposited information on the code when, remove it is identical with second information on the code It is described to have deposited information on the code, to complete the releasing of the passive and wireless switch and the corresponding relationship of the controlled device.
CN201910127438.9A 2016-07-18 2016-07-18 Code matching method and system based on passive wireless switch Active CN109859451B (en)

Priority Applications (1)

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

Applications Claiming Priority (2)

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
CN201910127438.9A CN109859451B (en) 2016-07-18 2016-07-18 Code matching method and system based on passive wireless switch

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN109859451A true CN109859451A (en) 2019-06-07
CN109859451B CN109859451B (en) 2020-04-07

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 Before (1)

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

Country Status (1)

Country Link
CN (2) CN106205089B (en)

Cited By (2)

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

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085379B (en) * 2017-06-06 2020-09-25 宁波公牛电器有限公司 Intelligent household 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
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

Citations (12)

* 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
US20070204156A1 (en) * 2006-02-28 2007-08-30 Mark Jeghers Systems and methods for providing access to network resources based upon temporary keys
CN101794501A (en) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 Method for performing remote control on home appliances and wireless network card
CN103616829A (en) * 2013-11-25 2014-03-05 北京林业大学 Passive wireless intelligent on-off controller
EP2772893A1 (en) * 2013-02-28 2014-09-03 GE Medical Systems Global Technology Company LLC Remote controller, remote control system, and x-ray system including the same
CN104158598A (en) * 2014-08-20 2014-11-19 华北电力大学 Passive and wireless switching value status transmitting method and apparatus
CN204067746U (en) * 2014-06-27 2014-12-31 深圳百纳思维科技有限公司 A kind of power distributor and power consumption control system
CN204272457U (en) * 2014-10-15 2015-04-15 深圳市启居智能科技有限公司 The Moltimode switched device of passive and wireless
CN104808559A (en) * 2015-04-24 2015-07-29 深圳市彩易生活科技有限公司 Wireless switch control method, system and related equipment
CN105096581A (en) * 2015-09-11 2015-11-25 青岛海信电器股份有限公司 Infrared remote control code matching method, remote control equipment and main controlled equipment
CN204968180U (en) * 2015-09-02 2016-01-13 郑州伟尚电子科技有限公司 Intelligence passive switch and because intelligent lighting control system of this switch
CN105427565A (en) * 2015-12-03 2016-03-23 林海航 Learning method for learning remote control switch

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102902213B (en) * 2012-10-15 2016-02-03 温州泰家宝智能控制系统有限公司 A kind of Intelligent wall switch and method of work thereof
CN103390337B (en) * 2013-07-10 2017-03-22 江苏海事职业技术学院 Control circuit of wireless control examination start-stop pen
CN203535460U (en) * 2013-11-04 2014-04-09 长沙市沃伽智能技术有限公司 High-efficiency pairing intelligent switch system
CN105093998B (en) * 2014-06-16 2017-11-17 宁波星宏智能技术有限公司 The control method of editable intelligent switch
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

Patent Citations (12)

* 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
US20070204156A1 (en) * 2006-02-28 2007-08-30 Mark Jeghers Systems and methods for providing access to network resources based upon temporary keys
CN101794501A (en) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 Method for performing remote control on home appliances and wireless network card
EP2772893A1 (en) * 2013-02-28 2014-09-03 GE Medical Systems Global Technology Company LLC Remote controller, remote control system, and x-ray system including the same
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
CN104158598A (en) * 2014-08-20 2014-11-19 华北电力大学 Passive and wireless switching value status transmitting method and apparatus
CN204272457U (en) * 2014-10-15 2015-04-15 深圳市启居智能科技有限公司 The Moltimode switched device of passive and wireless
CN104808559A (en) * 2015-04-24 2015-07-29 深圳市彩易生活科技有限公司 Wireless switch control method, system and related equipment
CN204968180U (en) * 2015-09-02 2016-01-13 郑州伟尚电子科技有限公司 Intelligence passive switch and because intelligent lighting control system of this switch
CN105096581A (en) * 2015-09-11 2015-11-25 青岛海信电器股份有限公司 Infrared remote control code matching method, remote control equipment and main controlled equipment
CN105427565A (en) * 2015-12-03 2016-03-23 林海航 Learning method for learning remote control switch

Cited By (2)

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

Also Published As

Publication number Publication date
CN106205089A (en) 2016-12-07
CN109859451B (en) 2020-04-07
CN106205089B (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN106205089B (en) It is a kind of based on passive and wireless switch to code method and system
EP3107485B2 (en) Oral care system
CN101794500B (en) System capable of remotely controlling electronic and electrical equipment
CN101713989B (en) Network-based household appliance control scheme
KR101803302B1 (en) Universal wireless trainable transceiver unit with integrated bidirectional wireless interface for vehicles
CN103488979B (en) Multifunctional electronic equipment based on fingerprint recognition
CN104574927A (en) Infrared matching method and infrared matching system with feedback function
CN105785955A (en) Smart home control method, smart home equipment and intelligent terminal
US20120229261A1 (en) Apparatus for low power wireless communication
CN201976219U (en) General three-dimensional spectacles
CN108143353A (en) Information prompting method, device, equipment and storage medium
CN204203770U (en) Cleaning systems and cleaning device
JP2005128846A5 (en)
JP5226251B2 (en) Communication method in home automation equipment
CN207545243U (en) A kind of facing takes care of box
CN203966315U (en) The self-generating wireless telepilot that adopts single button and be used in conjunction with socket
CN106679107B (en) Air conditioning control method and device
CN108776442A (en) A kind of self power generation passive switch and its working method
CN202513987U (en) Novel universal intelligent mobile phone remote controller
CN204665570U (en) Intelligent mobile air purifier
CN105519156B (en) Terminal device and wireless communication system
CN101452641A (en) Timing remote control method and timing remote controller
CN212782283U (en) Extension remote controller used in cooperation with intelligent sound box
CN116224817A (en) Intelligent control method and device based on positioning system
CN204516038U (en) A kind of Long-distance Control universal remote control

Legal Events

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