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

Info

Publication number
CN102841549A
CN102841549A CN2012103021759A CN201210302175A CN102841549A CN 102841549 A CN102841549 A CN 102841549A CN 2012103021759 A CN2012103021759 A CN 2012103021759A CN 201210302175 A CN201210302175 A CN 201210302175A CN 102841549 A CN102841549 A CN 102841549A
Authority
CN
China
Prior art keywords
switch
button
transient state
pole
state time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103021759A
Other languages
Chinese (zh)
Other versions
CN102841549B (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.)
Fantem Technologies Shenzhen Co Ltd
Original Assignee
Fantem Technologies Shenzhen 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 Fantem Technologies Shenzhen Co Ltd filed Critical Fantem Technologies Shenzhen Co Ltd
Priority to CN201210302175.9A priority Critical patent/CN102841549B/en
Publication of CN102841549A publication Critical patent/CN102841549A/en
Application granted granted Critical
Publication of CN102841549B publication Critical patent/CN102841549B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

Switch identification method, its device and Z-wave control terminal
Technical field
The present invention relates to switch identification method, its device and Z-wave control terminal.
Background technology
Along with the continuous progress of society with science and technology, Smart Home is also more and more nearer from subscriber household.Smart Home is to utilize 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, and is comfortable for the user provides safer, easily living condition.Z-wave wireless network intelligent control device is an importance that realizes Smart Home.
Existing most of Z-wave wireless network Based Intelligent Control product is to the identification of external CS type; Normally used method is that manual work goes to mate external CS type through order or other approach; If through network to the setting of being correlated with of Z-wave control terminal; To mate corresponding external CS 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 deficiency of 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 said switch is for often opening button, normally closed button, locking press button, single-pole single-throw switch (SPST) or double control switch,
If said switch is a button, said button is serially connected between power supply and the ground, and said processor is through button ground connection;
If said switch is a single-pole single-throw switch (SPST), said single-pole single-throw switch (SPST) is serially connected between power supply and the ground, and said processor is through single-pole single-throw switch (SPST) ground connection;
If said switch is a double control switch; Said double control switch comprises first single-pole double-throw switch (SPDT) and second single-pole double-throw switch (SPDT); The 3rd stationary contact, the 4th stationary contact of first stationary contact of said first single-pole double-throw switch (SPDT), second stationary contact and said second single-pole double-throw switch (SPDT) are connected; The disconnecting link stationary end of said first single-pole double-throw switch (SPDT) is connected with processor with power supply respectively, and the disconnecting link stationary end of said second single-pole double-throw switch (SPDT) is connected with ground;
When said switch motion, the level that processor detects an end of the switch that is connected with processor carries out the transient state time between twice saltus step;
If transient state time less than first threshold, judges that then said switch is a double control switch;
If transient state time less than second threshold value, judges then that said switch is for often driving button or normally closed button greater than first threshold;
If transient state time greater than second threshold value, judges that then said switch is single-pole single-throw switch (SPST) or locking press button.
Preferably, said first threshold is 20-50ms, and said second threshold value is 80-150ms.
Preferably, said 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 the action work into;
The level that processor detects an end of the switch that is connected with processor carries out the transient state time between twice saltus step;
If transient state time less than first threshold, judges that then said switch is a double control switch;
If transient state time less than second threshold value, judges then that said switch is for often driving button or normally closed button greater than first threshold;
If transient state time greater than second threshold value, judges that then said 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: the user only need break off and closed procedure outside connected switch; The switch identification device promptly can be discerned the type of outside connected switch automatically; Thereby be directed against the coupling of dissimilar switches automatically; Avoided sending instruction to the Z-wave control terminal and gone coupling setting, reduced utilization Internet resources through gateway, and the calculated load that has alleviated gateway.
Description of drawings
Fig. 1 is that the circuit of the switch identification device of a kind of embodiment connects synoptic diagram;
Fig. 2 is that the circuit of the switch identification device of another kind of embodiment connects synoptic diagram;
Fig. 3 is that the circuit of the switch identification device of another kind of embodiment connects synoptic diagram;
Fig. 4 is the level waveform synoptic diagram of the test side of several kinds of embodiment;
Fig. 5 is that the circuit of the Z-wave control terminal of a kind of embodiment connects synoptic diagram;
Fig. 6 is the process flow diagram of the switch identification method of a kind of embodiment.
Embodiment
Below will combine accompanying drawing, specific embodiment of the present invention will be done further explain.
Shown in Fig. 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 through pull-up resistor R.
As shown in Figure 1; When the switch that is connected when the outside with the switch identification device is single-pole single-throw switch (SPST) S1; The test side is through single-pole single-throw switch (SPST) S1 ground connection; Power supply VCC is through pull-up resistor R and single-pole single-throw switch (SPST) S1 ground connection, and wherein the stationary contact S1-2 of single-pole single-throw switch (SPST) S1 is connected with the 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 be provided with 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, when switch was button B, the test side was through button B ground connection, and power supply VCC is through pull-up resistor R and button B ground connection, and wherein, the first stationary contact B1 of button B is connected with the test side, and the second stationary contact B2 is connected with ground; If when button B was normally closed button, wherein button B can adopt and often drive button or normally closed button.
Button B also can be a locking press button, and its circuit theory diagrams are with often to drive button identical.
As shown in Figure 3; When 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, and 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, and 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, and the first stationary contact S2-2 is connected with the 3rd stationary contact S3-2, and the disconnecting link stationary end S2-1 of the first single-pole double-throw switch (SPDT) S2 is connected with the test side; And be connected with power supply VCC through 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.
When processor need be judged the type of switch, need the user to split and put the action work into.
When single-pole single-throw switch (SPST) S1 was moved, if beginning single-pole single-throw switch (SPST) S1 is in off-state, processor detected the voltage of test side; Detecting stationary contact S1-2 is high level; Single-pole single-throw switch (SPST) S1 is closed, and stationary contact S1-2 is low level, if single-pole single-throw switch (SPST) S1 is broken off again; Stationary contact S1-2 is high level again; Owing to the physical construction reason of single-pole single-throw switch (SPST) S1, the user is after with its closure, and then with its disconnection (perhaps breaking off closed earlier) again; Its level jumps to low level from high level, and to jump to the transient state time t1 of high level longer; Usually can be (perhaps more than the 100ms or more than the 150ms) more than the 80ms (if the user only carries out closed procedure, can be regarded as transient state time t1 so be endless), the needed time of corresponding level, its level oscillogram was shown in the a1 among Fig. 4.
If button B is a locking press button, if original state button B is an off-state, the test side is detected to be high level; Button B presses, and the test side detects low level, and the user presses button B once more; Button B upsprings, and the test side detects high level, because 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, very approaching with above-mentioned transient state time t1.
When button B was moved, if button B often leaves button, the level that the beginning processor detects stationary contact B1 was a high level; B presses when button, and the level of stationary contact B1 is a 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 shorter than transient state time t1 usually, usually can be between 50ms-80ms, and its level oscillogram is shown in the a2 among Fig. 4.If normally closed button, original state, the test side is detected to be low level, transient state time t2 jumps to the low level duration again from the low transition to the high level.
When double control switch is moved, because the special connection of double control switch, under the original state; The detected low level that is in processor test side is moved the first single-pole double-throw switch (SPDT) S2, and disconnecting link is put the process of the first stationary contact S2-2 from the second stationary contact S2-3; The test side temporarily detects high level; When treating that disconnecting link contacts with the first stationary contact S2-2, the test side is in low level again, 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 when it is about to put the another one stationary contact, just break away from fully and the contacting of original stationary contact), disconnecting link is very of short duration from the process that the second stationary contact S2-3 puts the first stationary contact S2-2, and its level jumps to the low level time again from the low transition to the high level; Be transient state time t3 (usually less than 20ms) usually less than transient state time t2, promptly its level oscillogram is shown in the a3 among Fig. 4.Equally, it is similar the second single-pole double-throw switch (SPDT) S3 to be carried out operating process and result and the first single-pole double-throw switch (SPDT) S2.
Like 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 this switch identification device after, the Z-wave control terminal can go to mate the type of outside connected switch simply; And be provided with voluntarily the Z-wave control terminal to the control method of dissimilar switches and relative software setting; And do not need the client to go manual setting, like this, only need to produce a kind of Z-wave control terminal; And assembling promptly can be satisfied the coupling requirement of existing customer's dissimilar switches to the software of dissimilar switches.
As shown in Figure 6, a kind of switch identification method, it may further comprise the 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 of then judging this outside connected switch is a double control switch;
If less than second threshold value, the type of then judging this outside connected switch is often to drive button or normally closed button to this transient state time greater than first threshold;
If this transient state time is greater than second threshold value, the type of then judging this outside connected switch is single-pole single-throw switch (SPST) or locking press button.

Claims (5)

1. switch identification device is characterized in that: comprise processor, said switch is for often opening button, normally closed button, locking press button, single-pole single-throw switch (SPST) or double control switch,
If said switch is a button, said button is serially connected between power supply and the ground, and said processor is through button ground connection;
If said switch is a single-pole single-throw switch (SPST), said single-pole single-throw switch (SPST) is serially connected between power supply and the ground, and said processor is through single-pole single-throw switch (SPST) ground connection;
If said switch is a double control switch; Said double control switch comprises first single-pole double-throw switch (SPDT) and second single-pole double-throw switch (SPDT); The 3rd stationary contact, the 4th stationary contact of first stationary contact of said first single-pole double-throw switch (SPDT), second stationary contact and said second single-pole double-throw switch (SPDT) are connected; The disconnecting link stationary end of said first single-pole double-throw switch (SPDT) is connected with processor with power supply respectively, and the disconnecting link stationary end of said second single-pole double-throw switch (SPDT) is connected with ground;
When said switch motion, the level that processor detects an end of the switch that is connected with processor carries out the transient state time between twice saltus step;
If transient state time less than first threshold, judges that then said switch is a double control switch;
If transient state time less than second threshold value, judges then that said switch is for often driving button or normally closed button greater than first threshold;
If transient state time greater than second threshold value, judges that then said 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: said first threshold is 20-50ms, and said second threshold value is 80-150ms.
3. switch identification device as claimed in claim 1 is characterized in that: said button is for often driving button or normally closed button.
4. a switch identification method that adopts the described switch identification device of claim 1 is characterized in that, comprises the steps:
Split and put the action work into;
The level that processor detects an end of the switch that is connected with processor carries out the transient state time between twice saltus step;
If transient state time less than first threshold, judges that then said switch is a double control switch;
If transient state time less than second threshold value, judges then that said switch is for often driving button or normally closed button greater than first threshold;
If transient state time greater than second threshold value, judges that then said switch is single-pole single-throw switch (SPST) or locking press button.
5. a Z-wave control terminal is characterized in that: adopt the described switch identification device of claim 1.
CN201210302175.9A 2012-08-23 2012-08-23 Switch identification method and device thereof and Z-wave control terminal Expired - Fee Related CN102841549B (en)

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 true CN102841549A (en) 2012-12-26
CN102841549B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135055A (en) * 2013-02-04 2013-06-05 丰唐物联技术(深圳)有限公司 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 (6)

* Cited by examiner, † Cited by third party
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
US20110167375A1 (en) * 2010-01-06 2011-07-07 Kocienda Kenneth L Apparatus and Method for Conditionally Enabling or Disabling Soft Buttons
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
US20110167375A1 (en) * 2010-01-06 2011-07-07 Kocienda Kenneth L Apparatus and Method for Conditionally Enabling or Disabling Soft Buttons
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135055A (en) * 2013-02-04 2013-06-05 丰唐物联技术(深圳)有限公司 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

Also Published As

Publication number Publication date
CN102841549B (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103116296B (en) A kind of energy-saving socket
CN101728866A (en) Device and method for realizing switching of power supply
CN103204067A (en) Method and device for controlling power supply of double energy sources
CN104110800B (en) The method of controlling switch of resistive load, system and air-conditioner
CN111181138A (en) Intelligent protection device and method for opening and closing coil of circuit breaker
CN105785879A (en) Door switch circuit used for household appliances and the household appliances
CN101897093B (en) Circuit configuration for operating a household appliance
CN102841549B (en) Switch identification method and device thereof and Z-wave control terminal
CN202758187U (en) Switch identification apparatus and Z-wave control terminal
CN106130165B (en) The control circuit of automatic transfer switching electric appliance
CN203070004U (en) Remote double-control power supply management system with local forced control
CN203617935U (en) Overload starting control device for low-power motor
CN201877880U (en) Motor controlled switching circuit for primary/standby equipment
CN202503466U (en) Compressor starting circuit and air conditioner
CN103913997B (en) The local positively controlled long-range dual control power-supply management system of band and management method thereof
CN214227928U (en) AC/DC automatic change-over switch
CN205846854U (en) The control circuit of automatic transfer switching electric appliance
CN211557600U (en) Double-control switch and double-control system
CN202649754U (en) Novel electric operation control device
CN204794328U (en) Three -phase electricity dual supply automatic switching control equipment
CN110931311A (en) VSP5 switch electric control circuit
CN203840312U (en) Switch circuit
CN204631481U (en) Communication intelligent control device
CN205864059U (en) Phase shortage stand-by power supply switching circuit based on A.C. contactor
CN214474562U (en) Contactor

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140604

Termination date: 20210823