CN102841549B - Switch identification method and device thereof and Z-wave control terminal - Google Patents
Switch identification method and device thereof and Z-wave control terminal Download PDFInfo
- Publication number
- CN102841549B CN102841549B CN201210302175.9A CN201210302175A CN102841549B CN 102841549 B CN102841549 B CN 102841549B CN 201210302175 A CN201210302175 A CN 201210302175A CN 102841549 B CN102841549 B CN 102841549B
- Authority
- CN
- China
- Prior art keywords
- switch
- button
- threshold
- transient state
- pole
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention discloses a switch identification method and a device thereof and a Z-wave control terminal. The device thereof comprises a processor. A switch is a normally open press-button or a normal closed press-button or a locking press-button or a single-pole single-throw switch or a double control switch. When the switch is in motion, the processor detects transient state between two jumps of an electrical level at one end of a switch connected with the processor, if the transient state time is less than a first threshold, then the switch is judged to be the double control switch; if the transient state time is greater than the first threshold and less than a second threshold, then the switch is judged to be the normally open press-button or the normal closed press-button; if the transient state time is greater than the second threshold, then the switch is judged to be the single-pole single-throw switch or the locking press-button.
Description
Technical field
The present invention relates to switch identification method, its device and Z-wave control terminal.
Background technology
Along with society with science and technology continuous progress, Smart Home from subscriber household also more and more close to.Smart Home is to utilize the technology such as computing machine, network service, and the various subsystems relevant with life staying idle at home are organically combined, and Smart Home can provide omnibearing information exchange functions, for user provides safer, comfortable, living condition easily.Z-wave wireless network intelligent opertaing device is an importance that realizes Smart Home.
The identification of existing most of Z-wave wireless network intelligent control product to external gauge tap type, normally used method is manually to go to mate external gauge tap type by order or other approach, if by network to the setting of being correlated with of Z-wave control terminal, to mate corresponding external gauge tap type, must consume a large amount of Z-wave Internet resources, increase the calculated amount of Z-wave gateway.
Summary of the invention
In order to overcome the deficiencies in the prior art, the invention provides a kind of switch identification device, to reduce the calculated amount of gateway.
A kind of switch identification device, comprises processor, and described switch is for often opening button, normally closed button, locking press button, single-pole single-throw switch (SPST) or double control switch,
If described switch is button, described button is serially connected between VDD-to-VSS, and described processor is by button ground connection;
If described switch is single-pole single-throw switch (SPST), described single-pole single-throw switch (SPST) is serially connected between VDD-to-VSS, and described processor is by single-pole single-throw switch (SPST) ground connection;
If described switch is double control switch, described double control switch comprises the first single-pole double-throw switch (SPDT) and the second single-pole double-throw switch (SPDT), the 3rd stationary contact, the 4th stationary contact of the first stationary contact, the second stationary contact and described second single-pole double-throw switch (SPDT) of described the first single-pole double-throw switch (SPDT) are connected, the disconnecting link stationary end of described the first single-pole double-throw switch (SPDT) is connected with power supply and processor respectively, and the disconnecting link stationary end of described the second single-pole double-throw switch (SPDT) is connected with ground;
In the time of described switch motion, processor detects and the level of one end of the switch that processor is connected carries out the transient state time between twice saltus step;
If transient state time is less than first threshold, judge that described switch is double control switch;
If transient state time is greater than first threshold and is less than Second Threshold, judge that described switch is for often driving button or normally closed button;
If transient state time is greater than Second Threshold, judge that described switch is single-pole single-throw switch (SPST) or locking press button.
Preferably, described first threshold is 20-50ms, and described Second Threshold is 80-150ms.
Preferably, described button is for often driving button or normally closed button.
In order to solve the problems of the technologies described above, the present invention also provides a kind of switch identification method that adopts described switch identification device, comprises the steps:
Split and put action work into;
Processor detects and the level of one end of the switch that processor is connected carries out the transient state time between twice saltus step;
If transient state time is less than first threshold, judge that described switch is double control switch;
If transient state time is greater than first threshold and is less than Second Threshold, judge that described switch is for often driving button or normally closed button;
If transient state time is greater than Second Threshold, judge that described switch is single-pole single-throw switch (SPST) or locking press button.
In order to solve the problems of the technologies described above, the present invention also provides a kind of Z-wave control terminal, and it adopts described switch identification device.
The invention has the beneficial effects as follows: user only need to disconnect and closed procedure outside connected switch, switch identification device can identify the type of outside connected switch automatically, thereby automatically carry out the coupling for dissimilar switch, avoid sending instruction to Z-wave control terminal by gateway and gone coupling setting, reduce the utilization to Internet resources, and alleviated the calculated load of gateway.
Accompanying drawing explanation
Fig. 1 is the circuit connection diagram of the switch identification device of a kind of embodiment;
Fig. 2 is the circuit connection diagram of the switch identification device of another kind of embodiment;
Fig. 3 is the circuit connection diagram of the switch identification device of another kind of embodiment;
Fig. 4 is the level waveform schematic diagram of the test side of several embodiment;
Fig. 5 is the circuit connection diagram of the Z-wave control terminal of a kind of embodiment;
Fig. 6 is the process flow diagram of the switch identification method of embodiment a kind of.
Embodiment
Below with reference to accompanying drawing, specific embodiments of the invention are described in further detail.
As Figure 1-3, the switch identification device of a kind of embodiment, comprises processor, and the test side of processor is connected with power supply VCC by pull-up resistor R.
As shown in Figure 1, in the time that the switch being connected with the outside of switch identification device is single-pole single-throw switch (SPST) S1, test side is by single-pole single-throw switch (SPST) S1 ground connection, power supply VCC is by pull-up resistor R and single-pole single-throw switch (SPST) S1 ground connection, wherein the stationary contact S1-2 of single-pole single-throw switch (SPST) S1 is connected with test side, and the disconnecting link stationary end S1-1 of single-pole single-throw switch (SPST) S1 is connected with ground.Certainly single-pole single-throw switch (SPST) S1 also can arrange like this: stationary contact S1-2 is connected with ground, and disconnecting link stationary end S1-1 test side connects.
As shown in Figure 2, in the time that switch is button B, test side is by button B ground connection, and power supply VCC is by pull-up resistor R and button B ground connection, and wherein, the first stationary contact B1 of button B is connected with test side, and the second stationary contact B2 is connected with ground; If when button B is normally closed button, wherein button B can adopt and often drive button or normally closed button.
Button B can be also locking press button, and its circuit theory diagrams are with often to drive button identical.
As shown in Figure 3, in the time that switch is double control switch, it comprises the first single-pole double-throw switch (SPDT) S2 and the second single-pole double-throw switch (SPDT) S3, the first single-pole double-throw switch (SPDT) S2 comprises the first stationary contact S2-2, the second stationary contact S2-3 and the first disconnecting link stationary end S2-1, the second single-pole double-throw switch (SPDT) S3 comprises the 3rd stationary contact S3-2, the 4th stationary contact S3-3 and the second disconnecting link stationary end S3-1, the first stationary contact S2-2 is connected with the second stationary contact S2-3, the 3rd stationary contact S3-2 is connected with the 4th stationary contact S3-3, the first stationary contact S2-2 is connected with the 3rd stationary contact S3-2, the disconnecting link stationary end S2-1 of the first single-pole double-throw switch (SPDT) S2 is connected with test side, and be connected with power supply VCC by pull-up resistor R, the disconnecting link stationary end S3-1 of the second single-pole double-throw switch (SPDT) S3 is connected with ground.
In the time that processor need to judge the type of switch, need user to split and put action work into.
In the time that single-pole single-throw switch (SPST) S1 is moved, if start single-pole single-throw switch (SPST) S1 in off-state, processor detects the voltage of test side, detect that stationary contact S1-2 is high level, by single-pole single-throw switch (SPST) S1 closure, stationary contact S1-2 is low level, if again single-pole single-throw switch (SPST) S1 is disconnected, stationary contact S1-2 is high level again, due to the physical construction reason of single-pole single-throw switch (SPST) S1, user is by after its closure, and then disconnected (or first disconnect again closed), its level jumps to low level from high level, and to jump to the transient state time t1 of high level longer again, conventionally can be more than 80ms (or more than 100ms, or more than 150ms) (if user only carries out closed procedure, can be considered as so transient state time t1 is endless), the needed time of corresponding level, its level oscillogram was as shown in the a1 in Fig. 4.
If button B is locking press button, if original state button B is off-state, what test side detected is high level, and button B presses, and test side detects low level, user presses button B again, button B upsprings, and test side detects high level, due to the decision of locking press button structure, its level jumps to low level from high level, and to jump to the transient state time of high level longer again, very approaching with above-mentioned transient state time t1.
In the time that button B is moved; if button B often leaves button; start processor and detect that the level of stationary contact B1 is high level; when button, B presses, and the level of stationary contact B1 is low level, release button B; the level of stationary contact B1 comes back to high level; its level jumps to low level from high level, and to jump to the transient state time t2 of high level conventionally shorter than transient state time t1 again, conventionally can be between 50ms-80ms, and its level oscillogram is as shown in the a2 in Fig. 4.If normally closed button, original state, what test side detected is low level, transient state time t2 jumps to the low level duration from low transition to high level again.
In the time that double control switch is moved, due to the special connection of double control switch, under original state, what processor test side detected is low level, move the first single-pole double-throw switch (SPDT) S2, disconnecting link is put the process of the first stationary contact S2-2 from the second stationary contact S2-3, test side temporarily detects high level, in the time that disconnecting link contacts with the first stationary contact S2-2, test side is again in low level, because the decisive action of the physical construction of single-pole double-throw switch (SPDT) (especially has the auxiliary single-pole double-throw switch (SPDT) of elastic force for some, its disconnecting link is in swing process, only being about to pendulum at it just departs from when the another one stationary contact and the contacting of original stationary contact completely), the process that disconnecting link is put the first stationary contact S2-2 from the second stationary contact S2-3 is very of short duration, its level jumps to the low level time from low transition to high level again, be that transient state time t3(is less than 20ms conventionally) be conventionally less than transient state time t2, be that its level oscillogram is as shown in the a3 in Fig. 4.Equally, the second single-pole double-throw switch (SPDT) S3 is carried out to operating process and result and the first single-pole double-throw switch (SPDT) S2 similar.
If Fig. 5 is a kind of circuit block diagram of Z-wave control terminal, it comprises Z-wave radio-frequency module, and above-mentioned switch identification device, adopt after this switch identification device, Z-wave control terminal can go to mate the type of outside connected switch simply, and the control method for dissimilar switch of Z-wave control terminal and relative software setting be set voluntarily, and do not need client to go manual setting, like this, only need to produce a kind of Z-wave control terminal, and assembling is for the software of dissimilar switch, can meet the coupling requirement of existing customer's dissimilar switch.
As shown in Figure 6, a kind of switch identification method, it comprises the following steps:
Processor calculates the transient state time between twice saltus step of outside connected switch level;
If this transient state time is less than first threshold, the type that judges this outside connected switch is double control switch;
If this transient state time is greater than first threshold and is less than Second Threshold, the type that judges this outside connected switch is often to drive button or normally closed button;
If this transient state time is greater than Second Threshold, the type that judges this outside connected switch is single-pole single-throw switch (SPST) or locking press button.
Claims (4)
1. a switch identification device, is characterized in that: comprise processor, described switch is for often opening button, normally closed button, locking press button, single-pole single-throw switch (SPST) or double control switch,
If described switch is button, described button is serially connected between VDD-to-VSS, and described processor is by button ground connection;
If described switch is single-pole single-throw switch (SPST), described single-pole single-throw switch (SPST) is serially connected between VDD-to-VSS, and described processor is by single-pole single-throw switch (SPST) ground connection;
If described switch is double control switch, described double control switch comprises the first single-pole double-throw switch (SPDT) and the second single-pole double-throw switch (SPDT), the 3rd stationary contact, the 4th stationary contact of the first stationary contact, the second stationary contact and described second single-pole double-throw switch (SPDT) of described the first single-pole double-throw switch (SPDT) are connected, the disconnecting link stationary end of described the first single-pole double-throw switch (SPDT) is connected with power supply and processor respectively, and the disconnecting link stationary end of described the second single-pole double-throw switch (SPDT) is connected with ground;
In the time of described switch motion, processor detects and the level of one end of the switch that processor is connected carries out the transient state time between twice saltus step;
If transient state time is less than first threshold, judge that described switch is double control switch;
If transient state time is greater than first threshold and is less than Second Threshold, judge that described switch is for often driving button or normally closed button;
If transient state time is greater than Second Threshold, judge that described switch is single-pole single-throw switch (SPST) or locking press button.
2. switch identification device as claimed in claim 1, is characterized in that: described first threshold is 20-50ms, and described Second Threshold is 80-150ms.
3. a switch identification method that adopts switch identification device claimed in claim 1, is characterized in that, comprises the steps:
Split and put action work into;
Processor detects and the level of one end of the switch that processor is connected carries out the transient state time between twice saltus step;
If transient state time is less than first threshold, judge that described switch is double control switch;
If transient state time is greater than first threshold and is less than Second Threshold, judge that described switch is for often driving button or normally closed button;
If transient state time is greater than Second Threshold, judge that described switch is single-pole single-throw switch (SPST) or locking press button.
4. a Z-wave control terminal, is characterized in that: adopt switch identification device claimed in claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210302175.9A CN102841549B (en) | 2012-08-23 | 2012-08-23 | Switch identification method and device thereof and Z-wave control terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210302175.9A CN102841549B (en) | 2012-08-23 | 2012-08-23 | Switch identification method and device thereof and Z-wave control terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102841549A CN102841549A (en) | 2012-12-26 |
CN102841549B true CN102841549B (en) | 2014-06-04 |
Family
ID=47369018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210302175.9A Expired - Fee Related CN102841549B (en) | 2012-08-23 | 2012-08-23 | Switch identification method and device thereof and Z-wave control terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102841549B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103135055B (en) * | 2013-02-04 | 2015-04-22 | 丰唐物联技术(深圳)有限公司 | Method of distinguishing type of external-connection switch of intelligent device |
CN109946598A (en) * | 2019-03-22 | 2019-06-28 | Tcl-罗格朗国际电工(惠州)有限公司 | Double control switch detection circuit and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2762435Y (en) * | 2004-10-25 | 2006-03-01 | 凌伟建 | Improved control circuit three-phase auto-transformer starter |
CN201590558U (en) * | 2009-08-12 | 2010-09-22 | 戴昌盛 | Intelligent receptacle |
WO2011084157A1 (en) * | 2010-01-06 | 2011-07-14 | Apple Inc. | Apparatus and method for conditionally enabling or disabling soft buttons |
JP4962424B2 (en) * | 2008-06-16 | 2012-06-27 | 株式会社デンソーウェーブ | Robot direct teach controller |
CN202758187U (en) * | 2012-08-23 | 2013-02-27 | 丰唐物联技术(深圳)有限公司 | Switch identification apparatus and Z-wave control terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8621380B2 (en) * | 2010-01-06 | 2013-12-31 | Apple Inc. | Apparatus and method for conditionally enabling or disabling soft buttons |
-
2012
- 2012-08-23 CN CN201210302175.9A patent/CN102841549B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2762435Y (en) * | 2004-10-25 | 2006-03-01 | 凌伟建 | Improved control circuit three-phase auto-transformer starter |
JP4962424B2 (en) * | 2008-06-16 | 2012-06-27 | 株式会社デンソーウェーブ | Robot direct teach controller |
CN201590558U (en) * | 2009-08-12 | 2010-09-22 | 戴昌盛 | Intelligent receptacle |
WO2011084157A1 (en) * | 2010-01-06 | 2011-07-14 | Apple Inc. | Apparatus and method for conditionally enabling or disabling soft buttons |
CN202758187U (en) * | 2012-08-23 | 2013-02-27 | 丰唐物联技术(深圳)有限公司 | Switch identification apparatus and Z-wave control terminal |
Also Published As
Publication number | Publication date |
---|---|
CN102841549A (en) | 2012-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201733129U (en) | Multifunctional double-load double-power automatic switching control device | |
CN102841549B (en) | Switch identification method and device thereof and Z-wave control terminal | |
CN105785879A (en) | Door switch circuit used for household appliances and the household appliances | |
CN111181138A (en) | Intelligent protection device and method for opening and closing coil of circuit breaker | |
CN202758187U (en) | Switch identification apparatus and Z-wave control terminal | |
CN106130165B (en) | The control circuit of automatic transfer switching electric appliance | |
CN201725737U (en) | Magnetic latching relay with electricity loss automatically reset function | |
CN202837868U (en) | Standby zero power consumption circuit and dishwasher | |
CN210838933U (en) | Silicon chain open-circuit protection system for direct-current power supply of power system | |
CN101908778A (en) | Multifunctional dual-load dual-power automatic switchover control device | |
CN203617935U (en) | Overload starting control device for low-power motor | |
CN201829416U (en) | Manual and network concurrently-controlled relay output device | |
CN201877880U (en) | Motor controlled switching circuit for primary/standby equipment | |
CN205846854U (en) | The control circuit of automatic transfer switching electric appliance | |
CN203070004U (en) | Remote double-control power supply management system with local forced control | |
CN202649754U (en) | Novel electric operation control device | |
CN208100420U (en) | A kind of robot control system and robot | |
CN204794328U (en) | Three -phase electricity dual supply automatic switching control equipment | |
CN211557600U (en) | Double-control switch and double-control system | |
CN208654573U (en) | A kind of robot control system and robot | |
CN103913997B (en) | The local positively controlled long-range dual control power-supply management system of band and management method thereof | |
CN209402489U (en) | Reset circuit and control system | |
CN201689357U (en) | Device capable of realizing zero standby power consumption | |
CN201893293U (en) | Arcless switching relay | |
CN204967417U (en) | Incessant DC power supply system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140604 Termination date: 20210823 |
|
CF01 | Termination of patent right due to non-payment of annual fee |