CN109859451B - Code matching method and system based on passive wireless switch - Google Patents

Code matching method and system based on passive wireless switch Download PDF

Info

Publication number
CN109859451B
CN109859451B CN201910127438.9A CN201910127438A CN109859451B CN 109859451 B CN109859451 B CN 109859451B CN 201910127438 A CN201910127438 A CN 201910127438A CN 109859451 B CN109859451 B CN 109859451B
Authority
CN
China
Prior art keywords
code
wireless switch
passive wireless
information
module
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.)
Active
Application number
CN201910127438.9A
Other languages
Chinese (zh)
Other versions
CN109859451A (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

Images

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

Abstract

The invention discloses a code matching method and system based on a passive wireless switch, relates to the technical field of remote switches, and is used for establishing a corresponding relation between the passive wireless switch and controlled equipment. The code matching method based on the passive wireless switch comprises the following steps: s100, receiving primary first code matching information sent by a passive wireless switch when a control key of the passive wireless switch is pressed down once; step S110, judging whether a-time first code pairing information is received within T seconds after the code pairing state is entered, wherein a is an integer larger than 1; if yes, go to step S130; and step S130, storing the first pair of code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.

Description

Code matching method and system based on passive wireless switch
The application is a divisional application provided by a patent application with the application date of 2016, 07, 18 and the application number of 201610573582.1, and the name of the invention is 'a code matching method and system based on a passive wireless switch'.
Technical Field
The invention relates to the technical field of remote control switches, in particular to a code matching method and system based on a passive wireless switch.
Background
For the work of electronic equipment such as household appliances, at present, two modes of wired control and wireless control can be adopted for control, wherein the wired control is to control the electronic equipment through a fixed switch arranged on a wall, the ground and the like, and the wireless control is to transmit corresponding control signals to the electronic equipment through wireless control equipment such as a remote controller and the like so as to realize the remote control of the electronic equipment and provide convenience for the life of a user.
The wireless control system may generally use infrared light or a radio frequency signal to carry the control signal, and when the wireless control system uses the radio frequency signal to carry the control signal, since the radio frequency signal may pass through a wall, a floor, and other obstacles, the wireless control device needs to establish a corresponding relationship with the controlled device to avoid the wireless control device from controlling an undesired controlled device, where a process of establishing the corresponding relationship between the wireless control device and the controlled device is called code matching.
The wireless control equipment is usually a remote controller, the remote controller is usually powered by a battery, at present, when the remote controller and the controlled equipment match codes, a physical switch on the controlled equipment is controlled to be kept in an open state, then a control key on the remote controller is pressed for a long time, the remote controller continuously sends code matching information to the controlled equipment in the process that the control key on the remote controller is pressed for a long time, and the controlled equipment stores the code matching information after receiving the code matching information sent by the remote controller, so that the establishment of the corresponding relation between the remote controller and the controlled equipment is completed. After the corresponding relation between the remote controller and the controlled equipment is established, when a function key on the remote controller is pressed, the working state of the controlled equipment can be controlled through the remote controller.
However, since the remote controller is usually powered by a battery, a user needs to frequently replace the battery of the remote controller, which causes inconvenience in use of the remote controller. Therefore, people begin to research and develop a passive wireless switch which does not need to be powered by a battery, and when a control key on the passive wireless switch is pressed down or bounced, a power generation module of the passive wireless switch converts mechanical energy of the control key into electric energy to supply power for the passive wireless switch. However, the passive wireless switch is not powered at any time, for example, when a control button on the passive wireless switch is continuously pressed, the passive wireless switch is in a non-power state, and thus the passive wireless switch cannot send code matching information to the controlled device, and the passive wireless switch cannot establish a corresponding relationship with the controlled device.
Disclosure of Invention
The invention aims to provide a code matching method and system based on a passive wireless switch, which are used for establishing a corresponding relation between the passive wireless switch and controlled equipment.
In order to achieve the above purpose, the invention provides the following technical scheme:
the invention provides a code matching method based on a passive wireless switch, which comprises the following steps:
step S100, when a control key of the passive wireless switch is pressed down once, receiving primary first code matching information sent by the passive wireless switch;
step S110, judging whether the first code matching information is received for a times within T seconds after entering the code matching state, wherein a is an integer larger than 1; if yes, go to step S130;
and step S130, storing the first pair of code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
A second aspect of the invention provides a system based on a passive wireless switch, comprising: the control device comprises a receiving module, a first judging module and a storage module; wherein the content of the first and second substances,
the passive wireless switch is used for sending first code matching information once when a control key of the passive wireless switch is pressed down once;
the receiving module is connected with the passive wireless switch and used for receiving the first code pairing information sent by the passive wireless switch once when a control key of the passive wireless switch is pressed once;
the first judging module is connected with the receiving module, and is used for judging whether the receiving module receives the first code matching information for a times within T seconds after the control equipment enters the code matching state, wherein a is an integer greater than 1;
the storage module is connected with the first judging module, the storage module is used for storing the first code matching information within T seconds after entering the code matching state, and the receiving module receives the first code matching information a times so as to complete establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
When the code matching method based on the passive wireless switch provided by the invention is adopted to establish the corresponding relation between the passive wireless switch and the controlled equipment, the control key of the passive wireless switch is pressed a times, the passive wireless switch sends first code matching information once every time the control key of the passive wireless switch is pressed, namely the control key of the passive wireless switch is pressed a times, and the passive wireless switch sends the first code matching information a times; and after the a-time first code pairing information is received, judging whether the a-time first code pairing information is received within T seconds after the code pairing state is entered, if so, storing the first code pairing information, finishing the establishment of the corresponding relation between the passive wireless switch and the controlled equipment, and controlling the working state of the controlled equipment through the passive wireless switch when the control key of the passive wireless switch is pressed again. By adopting the code matching method based on the passive wireless switch, the problem that the control key of the passive wireless switch cannot continuously send the first code matching information when continuously pressed is solved, and the establishment of the corresponding relation between the passive wireless switch and the controlled equipment is realized.
The third aspect of the present invention provides another code matching method based on a passive wireless switch, including:
step S300, receiving second code pairing information sent by the passive wireless switch when a control key of the passive wireless switch is pressed, and receiving third code pairing information sent by the passive wireless switch when the control key of the passive wireless switch is pressed and held and then bounces;
step S310, obtaining a time interval delta t between the time of receiving the second pair of code information and the time of receiving the third pair of code information;
step S320 of determining whether to receive the second pair of code information and the third pair of code information within T seconds after entering the code matching state, where Δ T is Δ T0(ii) a Wherein, Δ t0<T; if yes, go to step S340;
and step S340, storing the second pair code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
A third aspect of the invention provides another system based on a passive wireless switch, comprising: the control device comprises a receiving module, a time obtaining module, a fifth judging module and a storage module; wherein the content of the first and second substances,
the passive wireless switch is used for sending second pair code information when a control key of the passive wireless switch is pressed down, and is also used for sending third pair code information when the control key is pressed down and kept and then bounced;
the receiving module is connected with the passive wireless switch and used for receiving the second code pairing information and the third code pairing information sent by the passive wireless switch;
the time acquisition module is connected with the receiving module and is used for acquiring a time interval delta t between the time of receiving the second pair of code information and the time of receiving the third pair of code information;
the fifth judging module is respectively connected with the receiving module and the time acquiring module, and is used for judging whether the receiving module receives the second pairing information and the third pairing information within T seconds after entering the pairing state, and delta T is delta T0(ii) a Wherein, Δ t0<T;
The storage module is connected with the fifth judging module, the storage module is used for entering a code matching state within T seconds, the receiving module receives the second code matching information and the third code matching information, and delta T is delta T0And then, storing the second pair of code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
When the code matching method based on the passive wireless switch provided by the invention is adopted to establish the corresponding relation between the passive wireless switch and the controlled equipment, the control key of the passive wireless switch is pressed, the passive wireless switch sends second code matching information, then the control key of the passive wireless switch is pressed and kept to bounce, and the passive wireless switch sends third code matching information; and after receiving the second pair of code information and the third pair of code information, acquiring a time interval between the time of receiving the second pair of code information and the time of receiving the third pair of code information, then judging whether to receive the second pair of code information and the third pair of code information within T seconds after entering a code matching state, wherein the time interval between the time of receiving the second pair of code information and the time of receiving the third pair of code information is delta T0 seconds, and if so, storing the second pair of code information to complete the establishment of the corresponding relationship between the passive wireless switch and the controlled equipment. By adopting the code matching method based on the passive wireless switch, the problem that the control key of the passive wireless switch cannot continuously send the second code matching information when continuously pressed is solved, and the establishment of the corresponding relation between the passive wireless switch and the controlled equipment is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a first flowchart of a code matching method based on a passive wireless switch according to an embodiment of the present invention;
fig. 2 is a second flowchart of a code matching method based on a passive wireless switch according to an embodiment of the present invention;
fig. 3 is a third flowchart of a code matching method based on a passive wireless switch according to an embodiment of the present invention;
fig. 4 is a fourth flowchart of a code matching method based on a passive wireless switch according to an embodiment of the present invention;
fig. 5 is a fifth flowchart of a code matching method based on a passive wireless switch according to an embodiment of the present invention;
fig. 6 is a first schematic diagram of a code matching system based on a passive wireless switch according to an embodiment of the present invention;
fig. 7 is a second schematic diagram of a code matching system based on a passive wireless switch according to an embodiment of the present invention;
fig. 8 is a third schematic diagram of a code matching system based on a passive wireless switch according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a passive wireless switch according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another passive wireless switch according to an embodiment of the present invention.
Reference numerals:
10-controlled device, 20-controlling device,
21-a receiving module, 22-a data processing unit,
23-an execution module, 24-an alternating current-direct current conversion module,
30-a passive wireless switch, 31-a power generation module,
32-a power supply module, 33-a transmission module,
34-self-rebound keys, 35-rocker,
36-terminal key, 40-fixed switch.
Detailed Description
In order to further explain the code matching method and system based on the passive wireless switch provided by the embodiment of the invention, the following detailed description is made in conjunction with the accompanying drawings of the specification.
When the corresponding relationship between the passive wireless switch and the controlled device is established, the following two ways can be adopted, specifically:
code matching method 1
Referring to fig. 1, a code matching method based on a passive wireless switch according to an embodiment of the present invention includes:
s100, receiving primary first code matching information sent by a passive wireless switch when a control key of the passive wireless switch is pressed down once;
step S110, judging whether a-time first code pairing information is received within T seconds after the code pairing state is entered, wherein a is an integer larger than 1; if yes, go to step S130;
and step S130, storing the first pair of code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
The code matching method based on the passive wireless switch provided by the embodiment of the invention can be realized on hardware through the control device, the code matching information sent by the passive wireless switch can be carried by a radio frequency signal, at the moment, the control device can be a radio frequency device, the code matching information sent by the passive wireless switch can also be carried by an infrared signal, and at the moment, the control device can be an infrared device; the control device is connected with the corresponding controlled device, the control device can be installed in the controlled device or on the wall, the ground and the like, when the control device is installed on the wall, the ground and the like, the control device can correspond to only one controlled device or a plurality of controlled devices, and the control device can comprise a receiving module, a first judging module and a storage module; moreover, the controlled equipment can be a lamp, a curtain, an electric fan, a water heater and the like; in the above embodiments, the passive wireless switch includes a power generation module, a power supply module, and a transmission module.
When the corresponding relation between the passive wireless switch and the controlled equipment is established, the control equipment corresponding to the controlled equipment can be started first, and the control equipment enters a code matching state; then the passive wireless switch is operated, the control key of the passive wireless switch is pressed once, the power generation module of the passive wireless switch generates power by utilizing the mechanical energy when the control key is pressed, the mechanical energy when the control key is pressed is converted into electric energy, the electric energy is transmitted to the transmitting module through the power supply module to supply power to the transmitting module, the transmitting module of the passive wireless switch sends first code matching information to the control equipment once, the control key of the passive wireless switch is pressed a times, the transmitting module of the passive wireless switch sends a-times the first pair of code information to the control device, wherein the pair of code information may include a frame header, an address code, a control code and a frame trailer, the first pair of code information comprises a frame head, an address code, a control code and a frame tail, wherein the passive wireless switch has a unique address code, and a control key of the passive wireless switch correspondingly has a unique control code.
The passive wireless switch sends first code pairing information to the control equipment, and a receiving unit of the control equipment receives the first code pairing information; after the receiving unit of the control device receives the first code pairing information, a first judgment module of the control device judges whether the first code pairing information meets the following conditions: within T seconds after the control equipment enters the code matching state, a receiving module of the control equipment receives a times of first code matching information, wherein a is an integer larger than 1; wherein, T can be selected according to actual needs, for example, T can take 6, and at this time, the first judgment module of the control device judges whether: within 6 seconds after the control equipment enters the code matching state, a receiving module of the control equipment receives a-time first code matching information; a is an integer greater than 1, that is, the receiving module needs to receive the first code matching information at least twice, and then needs to press the control key of the passive wireless switch at least twice, the passive wireless switch sends the first code matching information at least twice to the control device, and a can be 2, 3, 4, or the like.
When the conditions are met, the storage module of the control equipment stores the first code pairing information, and the establishment of the corresponding relation between the passive wireless switch and the controlled equipment is completed. After the establishment of the corresponding relationship between the passive wireless switch and the controlled device is completed, when the control key of the passive wireless switch is pressed again, the working state of the controlled device can be controlled through the passive wireless switch, for example, the on or off of the controlled device is controlled through the passive wireless switch.
After the receiving unit of the control device receives the first pairing information for the a times, a first judgment module of the control device judges whether the first pairing information meets the following conditions: within T seconds after the control device enters the code matching state, the receiving module of the control device receives the first code matching information a times, and it can be considered that two conditions should be simultaneously met, wherein one condition is that the receiving module of the control device receives the first code matching information a times, and the other condition is that the time interval between the time when the receiving module of the control device receives the first code matching information a times and the time when the control device enters the code matching state is less than T seconds, when one condition is not met or the two conditions are not met, the storage module of the control device does not store the first code matching information, namely, the corresponding relation between the passive wireless switch and the controlled device cannot be established.
As can be seen from the above, when the code matching method based on the passive wireless switch provided by the embodiment of the present invention is used to establish the corresponding relationship between the passive wireless switch and the controlled device, the control key of the passive wireless switch is pressed a times, and the passive wireless switch sends the first code matching information once every time the control key of the passive wireless switch is pressed, that is, the control key of the passive wireless switch is pressed a times, and the passive wireless switch sends the first code matching information a times; and after the a-time first code pairing information is received, judging whether the a-time first code pairing information is received within T seconds after the code pairing state is entered, if so, storing the first code pairing information, finishing the establishment of the corresponding relation between the passive wireless switch and the controlled equipment, and controlling the working state of the controlled equipment through the passive wireless switch when the control key of the passive wireless switch is pressed again. By adopting the code matching method based on the passive wireless switch provided by the embodiment of the invention, the problem that the control key of the passive wireless switch cannot continuously send the first code matching information when continuously pressed is solved, and the establishment of the corresponding relation between the passive wireless switch and the controlled equipment is realized.
In addition, in the code matching method based on the passive wireless switch provided by the embodiment of the invention, the passive wireless switch sends the first code matching information a times by pressing the control key of the passive wireless switch a times, and the code matching method is simple and convenient to operate.
Furthermore, the code matching method provided by the embodiment of the invention is a code matching method based on a passive wireless switch, that is, the code matching method based on the passive wireless switch provided by the embodiment of the invention is applied to a code matching system based on the passive wireless switch, and the device for controlling the wireless control of the controlled device is the passive wireless switch.
It should be noted that, please refer to fig. 6 to 8, the passive wireless switch 30 includes a power generation module 31, a power supply module 32 and a transmission module 33, when the control key of the passive wireless switch 30 is pressed or the control key of the passive wireless switch 30 bounces, the power generation module 31 converts the mechanical energy when the control key is pressed or bounced into electrical energy, the electrical energy is transmitted to the transmission module 33 through the power supply module 32 to supply power to the transmission module 33, and the transmission module 33 can send code matching information.
In the above embodiments, the passive wireless switch may be various, for example, referring to fig. 9, the passive wireless switch 30 may be a self-rebounding passive wireless switch, or, referring to fig. 10, the passive wireless switch 30 may also be a rocker type passive wireless switch.
Referring to fig. 9, when the passive wireless switch 30 is a self-rebounding passive wireless switch, the control key is the self-rebounding key 34 on the self-rebounding passive wireless switch, and the sending of the first pair of code information by the passive wireless switch 30 once every time the control key of the passive wireless switch 30 is pressed may include:
pressing the self-resilience type key, and sending first pairing information to the passive wireless switch;
and releasing the self-resilience type key.
For example, after the control device enters the code matching state, the passive wireless switch is operated, the self-resilience type key 34 of the passive wireless switch is pressed, and the passive wireless switch sends first code matching information to the control device; unclamp from resilience formula button 34, kick-back to the normal position from resilience formula button 34, at this moment, passive wireless switch's power module can be the electric energy with mechanical energy conversion when rebounding from resilience formula button 34, the electric energy passes through power module and transmits to transmitting module, for the transmitting module power supply, passive wireless switch's transmitting module then can send to controlgear and the pair code information that corresponds when rebounding from resilience formula button 34, of course, passive wireless switch's transmitting module also can not send to controlgear and the pair code information that corresponds when rebounding from resilience formula button 34. The steps are repeated for a times in sequence, and the passive wireless switch 30 can send the first pairing information to the control equipment for a times.
Referring to fig. 10, when the passive wireless switch 30 is a rocker type passive wireless switch, the passive wireless switch 30 includes a rocker 35, two ends of the rocker 35 are respectively provided with an end key 36, for example, as shown in fig. 10, the rocker type passive wireless switch includes two rockers 35, two ends of each rocker 35 are respectively provided with an end key 36, that is, the upper end and the lower end of the left rocker 35 in fig. 10 are respectively provided with an end key 36, and the upper end and the lower end of the right rocker 35 in fig. 10 are also respectively provided with an end key 36; the control key is an end key 36 located at one end of the rocker 35, and the sending of the first pair of code information by the passive wireless switch 30 once every time the control key of the passive wireless switch 30 is pressed may include:
pressing an end key at one end of the rocker, and sending first pairing code information by the passive wireless switch;
an end key at the other end of the rocker is pressed.
For example, when the operating state of the controlled device needs to be controlled by the end key 36 located at the upper end of the rocker 35 on the left side in fig. 10, that is, the corresponding relationship between the end key 36 located at the upper end of the rocker 35 on the left side in fig. 10 and the controlled device needs to be established, after the control device enters the code matching state, the end key 36 located at the upper end of the rocker 35 on the left side in fig. 10 is pressed, and the passive wireless switch 30 sends the first code matching information to the control device; then, an end key 36 at the lower end of the rocker 35 on the left side in fig. 10 is pressed, so that the end key 36 at the upper end of the rocker 35 on the left side in fig. 10 is bounced, so as to be pressed next time, at this time, the power generation module of the passive wireless switch 30 may convert mechanical energy when the end key 36 at the lower end of the rocker 35 on the left side in fig. 10 is pressed into electrical energy, the electrical energy is transmitted to the transmission module through the power module, and power is supplied to the transmission module, at this time, the transmission module of the passive wireless switch 30 may transmit pairing code information corresponding to the end key 36 at the lower end of the rocker 35 on the left side in fig. 10 to the control device, and of course, the transmission module of the passive wireless switch may not transmit pairing code information corresponding to the end key 36 at the lower end of the rocker 35 on the left side in fig.. The steps are repeated for a times in sequence, and the passive wireless switch 30 can send the first pairing information to the control equipment for a times.
Referring to fig. 2, after step S110 and before step S130, the code matching method based on the passive-free wireless switch according to the embodiment of the present invention further includes:
step S120, judging whether stored code matching information identical to the first code matching information exists or not; if yes, go to step S140; if not, executing step S130;
and step S140, removing the stored paired code information which is the same as the first paired code information to finish the release of the corresponding relation between the passive wireless switch and the controlled equipment.
Specifically, the storage module of the control device is configured to store the pairing information corresponding to the passive wireless switch after the establishment of the correspondence between the passive wireless switch and the controlled device is completed, that is, the stored pairing information is stored in the storage module, and the control device may further include a second determining module and an information clearing module. When the receiving module of the control device receives first pairing information sent by the passive wireless switch, the first judging module of the control device judges that: within T seconds after the control equipment enters the code matching state, after the receiving module of the control equipment receives the first code matching information for a times, the second judging module of the control equipment compares the first code matching information with the stored code matching information in the storage module of the control equipment to judge whether the first code matching information meets the following requirements: stored code matching information identical to the first code matching information exists in the storage module; when the stored code information which is the same as the first code information exists in the storage module, namely the corresponding relation between the passive wireless switch and the controlled equipment is established, at the moment, the information clearing module of the control equipment clears the stored code information which is the same as the first code information in the storage module so as to remove the corresponding relation between the passive wireless switch and the controlled equipment; when the stored code information which is the same as the first code information does not exist in the storage module, namely the corresponding relation between the passive wireless switch and the controlled equipment is not established, at the moment, the storage module of the control equipment stores the first code information so as to establish the corresponding relation between the passive wireless switch and the controlled equipment.
When the condition that stored code information which is the same as the first code information exists in the storage module is met, the information clearing module of the control device clears the stored code information which is the same as the first code information in the storage module, at the moment, the corresponding relation between the passive wireless switch sending the first code information and the controlled device is relieved, a user cannot control the working state of the controlled device by using the passive wireless switch sending the first code information, and the passive wireless switch sending the first code information can be used for other purposes, so that the user can use the passive wireless switch conveniently.
When the stored code information identical to the first code information exists in the storage module, the storage module of the control device stores the first code information, the establishment of the corresponding relation between the passive wireless switch for sending the first code information and the controlled device is realized, and a user can control the working state of the controlled device by using the passive wireless switch for sending the first code information.
By the design, when the second judgment module of the control device judges that the stored code matching information which is the same as the first code matching information does not exist in the storage module, the storage module of the control device stores the first code matching information, so that the corresponding relation between the same passive wireless switch and the controlled device can be avoided being repeatedly established, and the space of the storage module occupied by the same code matching information is avoided. In addition, the corresponding relation between the passive wireless switch and the controlled equipment can be conveniently released by a user, and the passive wireless switch can be used for other purposes and is convenient for the user to use.
In the above embodiment, when the corresponding relationship between the passive wireless switch and the controlled device is released, the number of times the control key of the passive wireless switch is pressed is the same as the number of times the control key of the passive wireless switch is pressed when the corresponding relationship between the passive wireless switch and the controlled device is established, that is, when the corresponding relationship between the passive wireless switch and the controlled device is established, the number of times the control key of the passive wireless switch is pressed is a times, and when the corresponding relationship between the passive wireless switch and the controlled device is released, the number of times the control key of the passive wireless switch is pressed is also a times. In practical applications, the number of times the control key of the passive wireless switch is pressed when the corresponding relationship between the passive wireless switch and the controlled device is released may be different from the number of times the control key of the passive wireless switch is pressed when the corresponding relationship between the passive wireless switch and the controlled device is established, specifically:
referring to fig. 3, after step S100, the code matching method based on the passive wireless switch according to the embodiment of the present invention further includes:
step S150, judging whether the first pairing code information is received for b times within T seconds after the code pairing state is entered, wherein b is an integer larger than 1, and b is not equal to a; if yes, go to step S160;
step S160, obtaining stored code matching information which is the same as the first code matching information;
and step S170, removing the stored paired code information which is the same as the first paired code information to finish the release of the corresponding relation between the passive wireless switch and the controlled equipment.
When the corresponding relation between the passive wireless switch and the controlled equipment is released, the times of pressing the control key of the passive wireless switch are different from the times of pressing the control key of the passive wireless switch when the corresponding relation between the passive wireless switch and the controlled equipment is established, namely b is not equal to a, for example, a can be 3, and b can be 2, so that a user can conveniently determine own operation.
With reference to fig. 2 or fig. 3, in the above embodiment, after the first pair code information is stored and the establishment of the corresponding relationship between the passive wireless switch and the controlled device is completed, the passive wireless switch-based pair code method provided in the embodiment of the present invention further includes:
and step S180, sending an indication of success of the code.
When the control device clears the stored code matching information which is the same as the first code matching information and completes the release of the corresponding relationship between the passive wireless switch and the controlled device, the code matching method based on the passive wireless switch provided by the embodiment of the invention further comprises the following steps:
and step S190, sending an indication that the clear code is successful.
When the control device is implemented specifically, the control device may include an indication module, and when the storage module of the control device stores the first pair of code information and completes establishment of the corresponding relationship between the passive wireless switch and the controlled device, an indication of successful code pairing may be sent by the indication module of the control device; when the information clearing module of the control equipment clears the stored code information which is the same as the first code information, and the corresponding relation between the passive wireless switch and the controlled equipment is released, the indication module of the control equipment can be used for sending an indication that the code clearing is successful.
When the indication module of the control device sends the indication of successful code matching or the indication of successful code clearing, the indication may be performed through an indication lamp, a nixie tube or a liquid crystal screen, the indication lamp, the nixie tube or the liquid crystal screen may be arranged on the control device, or the indication module of the control device may enable the controlled device to send the indication, for example, when the controlled device is a lamp, the storage module of the control device stores first code matching information, or after the information clearing module of the control device clears the stored code matching information in the storage module, which is the same as the first code matching information, the indication module may send an instruction to the lamp to enable the lamp to flash several times, and send the indication of successful code matching or the indication of successful code clearing, so as to prompt a user to complete establishment or release of the corresponding relationship between the passive wireless switch and the controlled device.
Referring to fig. 2, before step S100, the code matching method based on the passive wireless switch according to the embodiment of the present invention further includes:
and step S10, reading the stored paired code information.
During practical application, the control device can further comprise a reading module, the reading module of the control device reads stored code matching information in the storage module, the second judgment module can compare the first code matching information with the stored code matching information conveniently, whether stored code matching information identical to the first code matching information exists in the storage module or not is judged, and then the corresponding relation between the passive wireless switch and the controlled device is conveniently established, or the corresponding relation between the passive wireless switch and the controlled device is conveniently contacted.
In addition, the reading module of the control device reads the stored code information in the storage module, and after the corresponding relation between the passive wireless switch and the controlled device is established, the response speed of the controlled device can be increased when the working state of the controlled device is controlled through the passive wireless switch.
Referring to fig. 2, before step S100, the code matching method based on the passive wireless switch according to the embodiment of the present invention further includes:
step S20, entering a code matching state;
step S30, timing the time for entering the code matching state;
step S40, judging whether the time for entering the code matching state exceeds T seconds; if so, go to step S50; if not, executing step S100;
and step S50, exiting the code checking state.
In specific implementation, the control device may further include a timing module and a third determination module, after the control device is started, the control device may automatically enter a code matching state, and the timing module of the control device starts timing the time when the control device enters the code matching state; the third judging module judges whether the time for the control equipment to enter the code matching state exceeds T seconds; when the judgment result is yes, the control equipment exits from the code matching state, and at the moment, the corresponding relation between the passive wireless switch and the controlled equipment cannot be continuously established or released; and when the judgment result is no, the control equipment does not exit the code matching state, and the corresponding relation between the passive wireless switch and the controlled equipment can be continuously established or released.
In the embodiment of the invention, after the control equipment is started, the control equipment automatically enters the code matching state, the time for the control equipment to enter the code matching state is timed according to the timing module of the control equipment, and then whether the control equipment exits the code matching state is judged through the third judging module.
In the above embodiments, when the control device is started, various methods may be adopted, for example, the start switch of the control device may be pressed for a long time to start the control device; or when the control equipment is installed in the controlled equipment, the starting switch corresponding to the control equipment on the controlled equipment can be pressed for a long time to start the control equipment; or, the control device is connected with a fixed switch of the controlled device, the fixed switch is installed on the wall or the ground, and the control device is started by opening the fixed switch of the controlled device.
Referring to fig. 6 or fig. 7, an embodiment of the present invention further provides a code matching system based on a passive wireless switch, including: the control device comprises a passive wireless switch 30, a controlled device 10 and a control device 20 corresponding to the controlled device 10, wherein the control device 20 comprises a receiving module 21, a first judging module and a storage module; the passive wireless switch 30 is used for sending first code matching information once when a control key of the passive wireless switch 30 is pressed once; the receiving module 21 is connected with the passive wireless switch, and the receiving module 21 is used for receiving primary first code matching information sent by the passive wireless switch 30 when the control key of the passive wireless switch 30 is pressed once; the first judging module is connected with the receiving module 21, and is used for judging whether the receiving module 21 receives the first pairing information a times within T seconds after the control device 20 enters the code pairing state, where a is an integer greater than 1; the storage module is connected with the first judging module, and the storage module is used for storing the first code pairing information when the receiving module 21 receives the first code pairing information a times within T seconds after entering the code pairing state, so as to complete establishment of the corresponding relationship between the passive wireless switch 30 and the controlled device 10.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, they are described in a relatively simple manner, and reference may be made to some descriptions of method embodiments for relevant points.
Referring to fig. 6, in the embodiment of the present invention, the control device 20 further includes a second determining module and an information clearing module; the second judging module is respectively connected with the first judging module and the storage module and is used for judging whether stored code matching information identical to the first code matching information exists or not; the information clearing module is respectively connected with the second judging module and the storage module, and is used for clearing the stored code information which is the same as the first code information when the stored code information which is the same as the first code information exists so as to complete the release of the corresponding relation between the passive wireless switch and the controlled equipment.
In practical applications, the number of times the control key of the passive wireless switch 30 is pressed when the corresponding relationship between the passive wireless switch 30 and the controlled device 10 is released may be different from the number of times the control key of the passive wireless switch 30 is pressed when the corresponding relationship between the passive wireless switch 30 and the controlled device 10 is established, specifically:
referring to fig. 7, in the embodiment of the present invention, the control device 20 further includes a third determining module, an information obtaining module, and an information clearing module; the third judging module is connected with the receiving module 21, and is used for judging whether the receiving module 21 receives the first pairing information for b times within T seconds after entering the code pairing state, wherein b is an integer greater than 1, and b is not equal to a; the information acquisition module is connected with the storage module, and is used for acquiring stored code matching information which is the same as the first code matching information within T seconds after the information acquisition module enters the code matching state and when the receiving module 21 receives the first code matching information for b times; the information clearing module is respectively connected with the information acquisition module and the storage module, and the information acquisition module is used for clearing the stored code matching information which is the same as the first code matching information so as to complete the release of the corresponding relation between the passive wireless switch and the controlled equipment.
In practical application, it is determined whether the receiving module 21 receives the first pairing information a times within T seconds after entering the pairing state, and it is determined whether the receiving module 21 receives the first pairing information b times within T seconds after entering the pairing state.
With continuing reference to fig. 6 or fig. 7, in the embodiment of the present invention, the control device 20 further includes an indication module, and the indication module is connected to the storage module and the information clearing module respectively; the indicating module is used for sending an indication of successful code matching after the first code matching information is stored; the indicating module is also used for sending an indication of successful code clearing after clearing the stored code-pair information which is the same as the first code-pair information.
When the indication module of the control device 20 sends the indication of successful code matching or the indication of successful code clearing, the indication lamp, the nixie tube or the liquid crystal display may be used for prompting, and the indication lamp, the nixie tube or the liquid crystal display may be arranged on the control device 20, or the indication module of the control device 20 directly enables the controlled device to send the indication or the indication module of the control device 20 enables the controlled device to send the indication through the execution module 23 of the control device 20, for example, when the controlled device is a lamp, the storage module of the control device stores the first pair of code information, or after the information clearing module of the control device clears the stored pair of code information in the storage module, the indication module sends the instruction to the lamp, or the indication module sends the instruction to the execution module 23, the execution module 23 executes the instruction, makes the lamp flash for several times, and sends the indication of successful code matching or the indication of successful code clearing, so as to prompt the user to complete the establishment or the release of the corresponding relation between the passive wireless switch and the controlled equipment.
With continued reference to fig. 6 or fig. 7, the control device 20 further includes a timing module and a fourth determining module; the timing module is used for timing the time when the control device 20 enters the code matching state; the fourth judging module is respectively connected with the timing module and the receiving module 21, and is used for judging whether the time for entering the code matching state exceeds T seconds; if yes, the code checking state is exited, and if not, the establishment of the corresponding relation between the passive wireless switch 30 and the controlled device 10 can be continued.
With reference to fig. 6 or fig. 7, the control device 20 further includes a reading module, where the reading module is connected to the storage module, and the reading module is configured to read the stored code information in the storage module.
Referring to fig. 6 or fig. 7, the code matching system based on the passive wireless switch according to the embodiment of the present invention further includes a fixed switch 40, where the fixed switch 40 is connected to the controlled device 10 and the ac-dc conversion module 24 of the control device 20, respectively, and after the fixed switch 40 is turned on, the control device 20 is powered on and started.
It should be noted that, when the corresponding relationship between the passive wireless switch 30 and the controlled device 10 is released, the number of times of pressing the control key of the passive wireless switch 30 is the same as the number of times of pressing the control key of the passive wireless switch 30 when the corresponding relationship between the passive wireless switch 30 and the controlled device 10 is established, please continue to refer to fig. 6, the first determining module, the storage module, the second determining module, the information clearing module, the indicating module, the reading module, the timing module, and the fourth determining module may be integrated in the data processing Unit 22 of the control device 20, and the data processing Unit 22 may be a Micro Controller Unit (MCU); when the corresponding relationship between the passive wireless switch 30 and the controlled device 10 is released, the number of times the control key of the passive wireless switch 30 is pressed is different from the number of times the control key of the passive wireless switch 30 is pressed when the corresponding relationship between the passive wireless switch 30 and the controlled device 10 is established, please continue to refer to fig. 7, and the first determining module, the storage module, the third determining module, the information acquiring module, the indicating module, the reading module, the timing module, and the fourth determining module may be integrated in the data processing unit 22 of the control device 20.
Referring to fig. 4, another code matching method based on a passive wireless switch is further provided in an embodiment of the present invention, including:
step S300, receiving second code pairing information sent by the passive wireless switch when a control key of the passive wireless switch is pressed, and receiving third code pairing information sent by the passive wireless switch when the control key of the passive wireless switch is pressed and kept and bounces;
step S310, acquiring a time interval delta t between the time of receiving the second pair of code information and the time of receiving the third pair of code information;
step S320, determining whether to receive the second pair of code information and the third pair of code information within T seconds after entering the code matching state, where Δ T is Δ T0(ii) a Wherein, Δ t0<T; if yes, go to step S340;
and step S340, storing the second pair code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
The code matching method based on the passive wireless switch provided by the embodiment of the invention can be realized on hardware through a control device, the control device is connected with the corresponding controlled device, the control device can be installed in the controlled device and also can be installed on the wall, the ground and the like, when the control device is installed on the wall, the ground and the like, the control device can only correspond to one controlled device and also can correspond to a plurality of controlled devices, and the control device can comprise a receiving module, a time acquisition module, a first judgment module and a storage module; moreover, the controlled equipment can be a lamp, a curtain, an electric fan, a water heater and the like; in the above embodiments, the passive wireless switch includes a power generation module, a power supply module, and a transmission module.
When the corresponding relation between the passive wireless switch and the controlled equipment is established, the control equipment corresponding to the controlled equipment can be started first, and the control equipment enters a code matching state; then the passive wireless switch is operated, a control key of the passive wireless switch is pressed and kept, when the control key of the passive wireless switch is pressed, a power generation module of the passive wireless switch generates power by using mechanical energy when the control key is pressed, the mechanical energy when the control key is pressed is converted into electric energy, the electric energy is transmitted to a transmitting module through a power supply module to supply power to the transmitting module, the transmitting module of the passive wireless switch transmits second code alignment information to control equipment, after the control key of the passive wireless switch is pressed and kept for a certain time, the control key of the passive wireless switch is bounced, when the control key of the passive wireless switch is bounced, the power generation module of the passive wireless switch generates power by using the mechanical energy when the control key is bounced, the mechanical energy when the control key is bounced is converted into electric energy, and the electric energy is transmitted to the transmitting module through the power supply module, and the transmitting module of the passive wireless switch sends third pair code information to the control equipment.
When the passive wireless switch sends the second code pairing information to the control equipment, the receiving unit of the control equipment scans the second code pairing information and receives the second code pairing information, and when the passive wireless switch sends the third code pairing information to the control equipment, the receiving unit of the control equipment scans the third code pairing information and receives the third code pairing information; after the receiving unit of the control device receives the second pair of code information and the third pair of code information, the time obtaining module of the control device obtains the time interval delta t between the time when the receiving module receives the second pair of code information and the time when the receiving module receives the third pair of code information; then, a first judgment module of the control device judges whether: within T seconds after the control equipment enters the code matching state, a receiving module of the control equipment receives second code matching information and third code matching information, and the time interval delta T between the time when the receiving module receives the second code matching information and the time when the receiving module receives the third code matching information is delta T0Second, where, Δ t0<T, T and Δ T0Can be selected according to actual needs, for example, T can be 6, delta T0And 3 can be taken, namely a second judgment module of the control device judges whether the following conditions are met: within 6 seconds after the control equipment enters the code matching state, a receiving module of the control equipment receives the second code matching information and the third code matching information, and the receiving module receives the second code matching informationThe time interval between the time of the receiving module and the time of the receiving module for receiving the third pair of code information is 3 seconds; when the conditions are met, the storage module of the control equipment stores the first pair of code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment. After the corresponding relation between the passive wireless switch and the controlled equipment is established, when the control key of the passive wireless switch is pressed down again, the working state of the controlled equipment can be controlled.
As can be seen from the above, when the code matching method based on the passive wireless switch provided by the embodiment of the present invention is used to establish the corresponding relationship between the passive wireless switch and the controlled device, the control key of the passive wireless switch is pressed, the passive wireless switch sends the second code matching information, the control key of the passive wireless switch is pressed and kept to bounce, and the passive wireless switch sends the third code matching information; after receiving the second code pair information and the third code pair information, acquiring a time interval between the time of receiving the second code pair information and the time of receiving the third code pair information, and then judging whether to receive the second code pair information and the third code pair information within T seconds after entering a code pair state, wherein the time interval between the time of receiving the second code pair information and the time of receiving the third code pair information is delta T0And second, if the judgment result is yes, storing second pair code information, and completing establishment of the corresponding relation between the passive wireless switch and the controlled equipment. By adopting the code matching method based on the passive wireless switch provided by the embodiment of the invention, the problem that the control key of the passive wireless switch cannot continuously send the second code matching information when continuously pressed is solved, and the establishment of the corresponding relation between the passive wireless switch and the controlled equipment is realized.
In addition, in the code matching method based on the passive wireless switch provided by the embodiment of the invention, the passive wireless switch sends the second code matching information and the third code matching information to the control device by pressing and holding the control key of the passive wireless switch, then the control key of the passive wireless switch is bounced, and the passive wireless switch sends the third code matching information, so that the passive wireless switch sends the second code matching information and the third code matching information to the control device, whether the second code matching information and the third code matching information are received within T seconds after the passive wireless switch enters the code matching state or not is judged, and the time interval of the time of receiving the second code matching information and the time of receiving the third code matching information is judged, namely the duration time of pressing the control key of the passive wireless switch is judged, so that the corresponding relation between the passive wireless switch and the controlled device is established.
Furthermore, the code matching method provided by the embodiment of the invention is a code matching method based on a passive wireless switch, that is, the code matching method based on the passive wireless switch provided by the embodiment of the invention is applied to a code matching system based on the passive wireless switch, and the device for controlling the wireless control of the controlled device is the passive wireless switch.
Referring to fig. 5, after step S320 and before step S340, the code matching method based on the passive wireless switch according to the embodiment of the present invention further includes:
step S330, judging whether stored code matching information identical to the second code matching information exists; if yes, go to step S350; if not, go to step S340;
and step S350, removing the stored pair code information which is the same as the second pair code information to finish the release of the corresponding relation between the passive wireless switch and the controlled equipment.
During actual operation, the control device may further include a second determining module and an information clearing module, and the control device receives the second pair of code information and the third pair of code information, and determines to know: receiving second pair code information and third pair code information within T seconds after the control equipment enters the pair code state, wherein the time interval delta T between the receiving of the second pair code information and the receiving of the third pair code information is delta T0After the second, the second judging module of the control device compares the second pairing code information with the already-stored pairing code information in the storage module of the control device to judge whether the following conditions are met: stored code matching information identical to the second code matching information exists in the storage module; when the judgment result shows that the second code matching information does not exist in the storage moduleWhen the same stored code matching information is stored, the storage module of the control equipment stores the second code matching information and establishes the corresponding relation between the passive wireless switch and the controlled equipment, and at the moment, a user can control the working state of the controlled equipment by using the passive wireless switch; when the stored code information identical to the second code information exists in the storage module, the information clearing module of the control device clears the stored code information identical to the second code information in the storage module, the corresponding relation between the passive wireless switch and the controlled device is removed, and at the moment, a user cannot control the working state of the controlled device by using the passive wireless switch.
By the design, when the second judgment module of the control device judges that the stored code matching information which is the same as the first code matching information does not exist in the storage module, the storage module of the control device stores the first code matching information, so that the corresponding relation between the same passive wireless switch and the controlled device can be avoided being repeatedly established, and the space of the storage module occupied by the same code matching information is avoided. In addition, the corresponding relation between the passive wireless switch and the controlled equipment can be conveniently released by a user, and the passive wireless switch can be used for other purposes and is convenient for the user to use.
It is worth mentioning that, in the above embodiment, when the stored paired code information identical to the second paired code information in the storage module is cleared, the duration of pressing the control key of the passive wireless switch is identical to the duration of pressing the control key of the passive wireless switch when the second paired code information is stored, in practical application, when the stored paired code information identical to the second paired code information in the storage module is cleared, the duration of pressing the control key of the passive wireless switch is identical to the duration of pressing the control key of the passive wireless switch when the second paired code information is stored, and the duration of pressing the control key of the passive wireless switch may also be different.
In the above embodiment, in the second code pairing method provided in the embodiment of the present invention, after the first code pairing information is stored, an indication of successful code pairing is further sent; after the stored code matching information in the storage module, which is the same as the first code matching information, is cleared, the method further includes sending an indication that the code clearing is successful, and the control device 20 sends an indication that the code matching is successful or an indication that the code clearing is successful, which is similar to that described in the first code matching method, and is not described herein again.
In the above embodiment, in the second code matching method, before step S300, the method further includes: the reading module reads the stored code matching information in the storage module; controlling the equipment to enter a code matching state; a timing module of the control equipment times the time when the control equipment enters a code matching state; and the fourth judging module judges whether the time for the control equipment to enter the code matching state exceeds T seconds, if so, the control equipment exits the code matching state, and if not, the control equipment does not exit the code matching state. In the second code matching method, the above steps are similar to those described in the first code matching method, and are not described again here.
In the above embodiments, when the control device corresponding to the controlled device is started, various methods may be adopted, for example, the start switch of the control device may be pressed for a long time to start the control device, or when the control device is installed in the controlled device, the start switch corresponding to the control device on the controlled device may be pressed for a long time to start the control device, or the control device is connected to the fixed switch of the controlled device to start the control device by opening the fixed switch of the controlled device.
Referring to fig. 8, another code matching system based on a passive wireless switch is further provided in an embodiment of the present invention, including: the control device 20 comprises a receiving module 21, a time acquisition module, a fifth judgment module and a storage module, wherein the passive wireless switch 30 is used for sending second pair code information when a control key of the passive wireless switch 30 is pressed down and also used for sending third pair code information when the control key is pressed down and kept and bounced; the receiving module 21 is connected with the passive wireless switch 30, and the receiving module 21 is used for receiving the second pair of code information and the third pair of code information sent by the passive wireless switch 30; the time acquisition module is connected with the receiving module 21, and is used for acquiring a time interval delta t between the time of receiving the second pair of code information and the time of receiving the third pair of code information; the fifth judging module is respectively connected with the receiving module 21 and the time obtaining moduleWithin T seconds after the code matching state is entered, whether the receiving module receives the second code matching information and the third code matching information is judged, and delta T is equal to delta T0Wherein, Δ t0<T; the storage module is connected to the fifth judgment module, the storage module is configured to receive the second pairing information and the third pairing information within T seconds after entering the pairing state, and Δ T is equal to Δ T0And then, storing the second pair of code information to complete the establishment of the corresponding relationship between the passive wireless switch 30 and the controlled device 10.
Compared with the prior art, the system based on the passive wireless switch has the same advantages as the code matching method based on the passive wireless switch, and the description is omitted here.
In this embodiment of the present invention, the control device 20 further includes a sixth determining module and an information clearing module, where the sixth determining module is respectively connected to the fifth determining module and the storage module, and is configured to determine whether there is stored pair code information that is the same as the second pair code information; the information clearing module is respectively connected with the sixth judging module and the storage module, and is used for clearing the stored paired code information which is the same as the second paired code information when the stored paired code information which is the same as the second paired code information exists so as to remove the corresponding relation between the passive wireless switch 30 and the controlled equipment 10; when the stored pair code information identical to the second pair code information does not exist, the second pair code information is stored to establish the corresponding relation between the passive wireless switch 30 and the controlled device 10.
In the above embodiment, the control device 20 further includes an indication module, a reading module, a timing module, and a fourth determination module, where the indication module is configured to send an indication that code matching is successful after the storage module stores the first code matching information, and is further configured to send an indication that code clearing is successful after the information clearing module clears stored code matching information in the storage module, which is the same as the first code matching information; the reading module is used for reading the stored code matching information in the storage module; the timing module is used for timing the time when the control device 20 enters the code matching state; the fourth judging module is configured to judge whether the time for the control device 20 to enter the code matching state exceeds T seconds; if so, the control device 20 exits the code checking state.
It is worth mentioning that, in the above-described embodiment, the fifth judging module, the storage module, the time obtaining module, the sixth judging module, the information clearing module, the indicating module, the reading module, the timing module, and the fourth judging module may be integrated in the data processing unit 22 of the control device 20.
In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (4)

1. A code matching method based on a passive wireless switch is characterized by comprising the following steps:
step S300, receiving second code pairing information sent by the passive wireless switch when a control key of the passive wireless switch is pressed, and receiving third code pairing information sent by the passive wireless switch when the control key of the passive wireless switch is pressed and held and then bounces;
step S310, obtaining a time interval delta t between the time of receiving the second pair of code information and the time of receiving the third pair of code information;
step S320 of determining whether to receive the second pair of code information and the third pair of code information within T seconds after entering the code matching state, where Δ T is Δ T0(ii) a Wherein, Δ t0<T; if yes, go to step S340;
and step S340, storing the second pair code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
2. The passive wireless switch-based code matching method according to claim 1, wherein after the step S320 and before the step S340, the code matching method further comprises:
step S330, judging whether stored code matching information identical to the second code matching information exists; if yes, go to step S350; if not, executing the step S340;
and step S350, removing the stored pair code information which is the same as the second pair code information to finish the release of the corresponding relation between the passive wireless switch and the controlled equipment.
3. A code matching system based on a passive wireless switch, comprising: the control device comprises a receiving module, a time obtaining module, a fifth judging module and a storage module; wherein the content of the first and second substances,
the passive wireless switch is used for sending second pair code information when a control key of the passive wireless switch is pressed down, and is also used for sending third pair code information when the control key is pressed down and kept and then bounced;
the receiving module is connected with the passive wireless switch and used for receiving the second code pairing information and the third code pairing information sent by the passive wireless switch;
the time acquisition module is connected with the receiving module and is used for acquiring a time interval delta t between the time of receiving the second pair of code information and the time of receiving the third pair of code information;
the fifth judging module is respectively connected with the receiving module and the time acquiring module, and is used for judging whether the receiving module receives the second pairing information and the third pairing information within T seconds after entering the pairing state, and delta T is delta T0(ii) a Wherein, Δ t0<T;
The storage module is connected with the fifth judgment module, the storage module is used for entering a code matching state within T seconds, and the receiving module receives the second code matchingInformation and said third pair of code information, and Δ t ═ Δ t0And then, storing the second pair of code information to complete the establishment of the corresponding relation between the passive wireless switch and the controlled equipment.
4. The code matching system based on the passive wireless switch as claimed in claim 3, wherein the control device further comprises a sixth judging module and an information clearing module;
the sixth judging module is respectively connected with the fifth judging module and the storage module, and is used for judging whether stored code matching information identical to the second code matching information exists or not;
the information clearing module is respectively connected with the sixth judging module and the storage module, and is used for clearing the stored paired code information which is the same as the second paired code information when the stored paired code information which is the same as the second paired code information exists so as to complete the release of the corresponding relation between the passive wireless switch and the controlled equipment.
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 CN109859451A (en) 2019-06-07
CN109859451B true CN109859451B (en) 2020-04-07

Family

ID=57494721

Family Applications (2)

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
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

Family Applications After (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) CN109859451B (en)

Families Citing this family (6)

* 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
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

Family Cites Families (21)

* 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
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
CN101794501A (en) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 Method for performing remote control on home appliances and wireless network card
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
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
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
CN103616829A (en) * 2013-11-25 2014-03-05 北京林业大学 Passive wireless intelligent on-off controller
CN105093998B (en) * 2014-06-16 2017-11-17 宁波星宏智能技术有限公司 The control method of editable intelligent switch
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
CN104299386A (en) * 2014-10-27 2015-01-21 刘爱友 Non-contact remote control learning method and system
CN104808559B (en) * 2015-04-24 2019-01-22 深圳市彩易生活科技有限公司 A kind of wireless switching control method, system and relevant device
CN104981066A (en) * 2015-07-03 2015-10-14 邹玉龙 Novel multifunctional remote-control intelligent solar lamp
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
CN105427565A (en) * 2015-12-03 2016-03-23 林海航 Learning method for learning remote control switch

Also Published As

Publication number Publication date
CN109859451A (en) 2019-06-07
CN106205089B (en) 2019-08-09
CN106205089A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN109859451B (en) Code matching method and system based on passive wireless switch
JP5164430B2 (en) Electronic device control method, electronic device and electronic system
US8242640B2 (en) Power system with light-controlled function and the control method thereof
WO2017152607A1 (en) Remote control method, remote controller and remote control system
JP6222962B2 (en) Radiation imaging apparatus, radiation imaging method, and program
EP2405415A1 (en) Device used for eliminating standby power consumption of the infrared remote control electrical appliance
JP2008501280A (en) Multi-protocol remote control device
RU2530537C2 (en) Determining code set for remote control panel
US20140191854A1 (en) Power-saving remote control apparatus and power-saving manual control apparatus
CN104238392A (en) Remote control power supply device, remote control lamp assembly thereof and code matching method thereof
CN202632500U (en) Device for eliminating standby power dissipation of electric appliance switched off automatically by system
CN218040118U (en) Energy storage power supply and power consumption device assembly
JP2009238530A (en) Wireless type light control system
KR20100060178A (en) Non-contact charge remote controller and charge control method thereof
JP2007074565A (en) Transmitter, receiver, and transceiver
CN110185377B (en) Method and device for code matching on receiver, electronic equipment and storage medium
US20120161548A1 (en) Wall outlet device, power management system having same and method for controlling thereof
CN110298998B (en) Receiver non-contact code matching method and device, electronic equipment and storage medium
CN101452641A (en) Timing remote control method and timing remote controller
CN102468559B (en) Remote-controllable patch board and remote control method thereof
JPH10133788A (en) Radio type information inputting device with power source controlling function
TWI396390B (en) Can be multi-group matching remote control device
JP5186261B2 (en) Wireless dimming control system
CN201303110Y (en) Multifunctional remote control electric socket vehicle
JP6909994B2 (en) Remote control system, remote control method, remote control program and electrical equipment

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