CN117404996A - Switch state detector, detection method and detection system - Google Patents

Switch state detector, detection method and detection system Download PDF

Info

Publication number
CN117404996A
CN117404996A CN202210804310.3A CN202210804310A CN117404996A CN 117404996 A CN117404996 A CN 117404996A CN 202210804310 A CN202210804310 A CN 202210804310A CN 117404996 A CN117404996 A CN 117404996A
Authority
CN
China
Prior art keywords
housing
switch
message
state detector
interval
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.)
Pending
Application number
CN202210804310.3A
Other languages
Chinese (zh)
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.)
Wuhan Linptech Co Ltd
Original Assignee
Wuhan Linptech 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 Wuhan Linptech Co Ltd filed Critical Wuhan Linptech Co Ltd
Priority to CN202210804310.3A priority Critical patent/CN117404996A/en
Publication of CN117404996A publication Critical patent/CN117404996A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/02Measuring arrangements characterised by the use of electric or magnetic techniques for measuring length, width or thickness
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Switches That Are Operated By Magnetic Or Electric Fields (AREA)

Abstract

The invention provides a switch state detector, comprising: a magnetic assembly and an inductive assembly for detecting magnetic induction and configured to: when the distance parameter between the magnetic component and the induction component is gradually reduced to a first interval taking a first threshold value as an end point, a first message is sent to the outside; when the distance parameter between the magnetic component and the induction component is gradually increased to a second interval taking a second threshold value as a starting point, a second message is sent to the outside; the first interval and the second interval are not coincident, and the difference value between the second threshold value and the first threshold value is greater than or equal to 1mm. The switch state detector provided by the invention can prevent the repeated switching of the induction state when the distance between the magnetic component and the induction component reaches a certain critical value.

Description

Switch state detector, detection method and detection system
Technical Field
The application relates to the field of intelligent home, in particular to a switch state detector, a detection method and a detection system.
Background
The door and window magnetic sensor is very important equipment in intelligent house, and its form is usually divided into left and right two parts, and these two parts are installed respectively in fixed position and the movable part of door and window, and when two parts distance were farther, the sensor perception was "open", and when two parts distance were nearer, the sensor perception was "closed", and through these two perception states cooperation other intelligent equipment use, can realize a lot of automated control.
The existing door and window magnetic sensor is too small in sensing condition distinction of the two states of opening and closing, when door and window is virtually masked, the sensor is repeatedly switched between the opening and closing states, so that intelligent equipment connected with the sensor is repeatedly switched to the working state, and the intelligent equipment is damaged.
Disclosure of Invention
In order to solve the technical problems, the invention provides a switch state detector, a detection method and a detection system.
According to a first aspect of the present invention there is provided a switch state detector comprising: a magnetic assembly for generating a magnetic field;
a sensing assembly disposed independently of the magnetic assembly and capable of changing position relative to the magnetic assembly; and the induction component is used for detecting magnetic induction intensity and is configured to:
when the distance parameter between the magnetic component and the induction component is gradually reduced to a first interval taking a first threshold value as an end point, a first message is sent to the outside; the first message is used for indicating that a target object associated with the sensing assembly is in an open state; when the distance parameter between the magnetic component and the induction component is gradually increased to a second interval taking a second threshold value as a starting point, a second message is sent to the outside; the second message is used for indicating that a target object associated with the sensing assembly is in a closed state; the distance parameter is associated with the magnetic induction;
The first interval and the second interval are not coincident, and the difference value between the second threshold value and the first threshold value is greater than or equal to 1mm.
According to another aspect of the present invention, there is also provided a switch state detection method applied to a switch state detector; the detection method is characterized by comprising the following steps:
detecting a distance parameter between a magnetic component and an induction component; the distance parameter is used for indicating the distance between the magnetic component and the induction component;
if the distance parameter is gradually reduced to a first interval taking a first threshold value as an end point, a first message is sent to the outside; the first message is used for indicating that a target object associated with the sensing assembly is in an open state;
if the distance parameter is gradually increased to a second interval taking a second threshold value as a starting point, a second message is sent to the outside; the second message is used for indicating that a target object associated with the sensing assembly is in a closed state;
the first interval and the second interval are not coincident, and the difference value between the second threshold value and the first threshold value is greater than or equal to 1mm.
According to another aspect of the present invention, there is also provided a switch state detection system, which is characterized by comprising an intelligent terminal, a gateway, and the switch state detector and/or a switch state detector capable of executing the detection method; the switch state detector can be communicated with the gateway after joining the network where the gateway is located; the intelligent terminal can directly or indirectly communicate with the gateway;
The switch state detector is used for: reporting a detection event to the gateway; the detection event is used for indicating an action event or a state event of a target object associated with the sensing component; the action event comprises that the target object is opened or closed, and the state event comprises that the target object is in an opened state or in a closed state;
the gateway is used for: feeding back the detection event to the intelligent terminal and/or controlling a trigger result associated with the switch state detector to be executed based on a trigger rule;
the intelligent terminal is used for: acquiring trigger rules defined by a user and sending the trigger rules to the gateway so that: the gateway receives and stores the trigger rule; the triggering rule defines a triggering relationship between at least one triggering condition and at least one triggering result, wherein the triggering condition is a detection event of the switch state detector, and the triggering result is an executable function of an intelligent device in a network where the gateway is located.
The beneficial effects of the invention at least comprise:
(1) According to the switch state detector, the distance parameter between the magnetic component and the induction component is divided into at least two sections, wherein the first section is from 0 to a first threshold value, and the second section is from a second threshold value to infinity. When the hysteresis interval which is more than or equal to 1mm is set, the sensing state of the sensing component can be prevented from being repeatedly switched when the distance parameter reaches a certain critical value, so that intelligent equipment connected with the sensing component is protected from being repeatedly switched to a working state.
(2) The sensing assembly is provided with the detection switch, and can be triggered to send a third message outwards, so that the working state of external equipment matched with the sensing assembly is controlled, and the switch state detector provided by the invention can be used as a sensor for detecting opening and closing of doors and windows to passively control intelligent equipment, can also be used as a small wireless switch to actively control the intelligent equipment, and improves the practicability.
(3) And configuring the wireless transmitting module to enter a low-power consumption mode when the duration of the detection switch continuously triggered is larger than the appointed duration. The wireless transmitting module is prevented from being in a wake-up state consistently due to false triggering of the detection switch in the transportation process.
(4) According to the switch state detector provided by the invention, the first shell can be pressed to trigger the detection switch, so that the first shell is equivalent to a large-size key, the controllable area is greatly increased, the pressing hand feeling is improved, and the blind operation can be realized without deliberately searching the position of the key.
(5) Be provided with the sealing member in the response subassembly, and the sealing member not only has waterproof sealing's effect, has the effect that provides reset force again for first casing need not to design special reset member, has simplified response subassembly inner structure, is favorable to reducing the volume.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of a switch state detection system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a switch state detection method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a switch state detection system according to an embodiment of the present invention;
FIG. 4 is an exploded view of one embodiment of the present invention;
FIG. 5 is a semi-sectional view of an inductive element according to an embodiment of the invention;
FIG. 6 is a half cross-sectional view of a sensing assembly in a pressed state according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an induction component according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an induction component according to an embodiment of the present invention;
FIG. 9 is a bottom view of the first housing of one embodiment of the present invention;
FIG. 10 is a schematic diagram of a circuit board mounting according to an embodiment of the present invention;
FIG. 11 is a schematic view of a second housing structure according to an embodiment of the present invention;
FIG. 12 is a schematic view of a circuit board mounting direction according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of an embodiment of the present invention;
FIG. 14 is an exploded view of a magnetic assembly according to one embodiment of the present invention;
FIG. 15 is a cross-sectional view of an embodiment of the present invention;
fig. 16 is a schematic configuration diagram of an electronic device according to an embodiment of the present invention.
Reference numerals:
101. a switch state detector; 102. a gateway; 103. an intelligent device; 104. an intelligent terminal; 105. an electronic device; 1051. a processor; 1052. a memory; 1053. a bus; 100. an induction assembly; 1. a magnetic induction module; 2. a wireless transmitting module; 21. a processing chip; 3. a detection switch; 4. a housing; 41. a first housing; 411. a first buckle; 412. a second buckle; 413. a third mark; 414. a first accommodating groove; 415. a seal ring limit part; 4151. sealing ring limit bone; 416. a seal ring placement area; 417. the circuit board is buckled; 418. a light guide section; 4181. a light blocking section; 419. an avoidance unit; 42. a second housing; 421. a first buckling position; 422. a second buckling position; 423. a clearance gap; 424. prying the tongue; 425. a bottom case; 426. a sealing part; 427. a battery compartment; 4271. a first battery bone site; 4272. the second battery bone position; 4273. a third battery bone site; 43. a first mark; 44. a first side; 45. a first surface; 5. a circuit board; 51. an electric quantity detection module; 52. a light emitting module; 53. a circuit board buckling position; 54. a button cell; 55. a power supply module; 551 electrode connection parts; 5511. a positive pole spring plate; 5512. a negative pole shrapnel; 6. a seal; 7. an elastic support; 8. a magnetic assembly; 81. a permanent magnet; 82. a third housing; 821. a second surface; 83. a second marker, 84, a magnet mounting shell; 841. a clamping part; 85. an upper cover; 9. double faced adhesive tape; 91. and a double-sided adhesive tape adhering part.
Detailed Description
In the description of the present invention, the terms "inner", "outer", "longitudinal", "transverse", "upper", "lower", "top", "bottom", etc. refer to an orientation or positional relationship based on that shown in the drawings, merely for convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In the description of the present specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
In the description of the present invention, unless explicitly stated and limited otherwise, the term "coupled" and the like should be construed broadly, and may be, for example, fixedly coupled, detachably coupled, or integrally formed; may be mechanically connected, may be electrically connected or may communicate with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1 and 3, the present disclosure provides a switch state detection system, which may include a switch state detector 101, a gateway 102, and an intelligent terminal 104, where the switch state detector 101 can communicate with the gateway 102 after joining a network where the gateway 102 is located; the intelligent terminal 104 can communicate directly or indirectly with the gateway;
the switch state detector 101 is configured to: reporting a detection event to the gateway 102; the detection event is used for indicating an action event or a state event of a target object associated with the switch state detector 101; the action event includes the object being opened or closed, and the state event includes the object being in an opened state or in a closed state. Wherein the action event may be understood as an event triggered based on a certain action, e.g. a certain sensor is triggered; the status event may be understood as a self-generated event after a certain status is reached, for example in response to a certain time interval. As shown in fig. 4, the switch state detector 101 includes two parts, one of which is an induction component 100, the inside of which is provided with a magnetic induction module 1 capable of inducing magnetic field intensity, such as a hall switch, a reed switch, etc., and the other of which is a magnetic component 8, and the inside of which is provided with a permanent magnet 81, and when in use, the two parts are respectively installed at a fixed part and a movable part of a door and a window, and the distance between the two parts changes due to the opening and closing of the door and the window, so that the magnetic field intensity induced by the induction component 100 changes, and the induction component 100 determines the distance between the induction component 100 and the magnetic component 8 according to the magnetic field intensity, thereby obtaining the opening and closing state of the door and the window. In one embodiment, when the distance between the sensing element 100 and the magnetic element 8 is smaller than the first threshold, it is determined that the target object is in the off state; when the distance between the sensing component 100 and the magnetic component 8 is greater than the second threshold value, the object is judged to be in an on state.
The switch state detector 101 may be a door and window opening and closing sensing device capable of communicating with the outside based on wireless communication, where the wireless communication may be any mode such as radio frequency, bluetooth, wifi, etc., and in this embodiment, description is mainly based on the bluetooth mode. Meanwhile, the sensing assembly 100 is provided with a detection switch 3, which can be pressed to send wireless signals to the outside, so as to control the working state of an intelligent device 103 in the same network as the gateway 102, and the switch state detector 101 can be used as a small wireless switch.
The gateway 102 is configured to: the detection event is fed back to the intelligent terminal 104 and/or control of the trigger result associated with the switch state detector 101 is performed based on a trigger rule. The gateway 102 may be any gateway of a network, and the network may be any one of a Wifi network, a Zigbee network, and a bluetooth network; in the following part of the description, the description is mainly based on the bluetooth mode. In a further aspect, the gateway 102 may access the internet, thereby enabling data exchange with the intelligent terminal 104 that accesses the internet. The gateway 102 may be a gateway device dedicated to the gateway 102, or may be another device having the gateway 102 function, for example, a speaker device having the gateway function, a display device having the gateway function, a computer having the gateway function, a host, or the like.
The intelligent terminal 104 is configured to: acquiring trigger rules defined by a user and transmitting the trigger rules to the gateway 102 such that: the gateway 102 receives and stores the trigger rules; the triggering rule defines a triggering relationship between at least one triggering condition and at least one triggering result, wherein the triggering condition is a detection event of the switch state detector 101, and the triggering result is an executable function of an intelligent device in the network where the gateway 102 is located. The intelligent terminal 104 may be any device or combination of devices with data processing capability and external communication capability, for example, it may be a mobile phone, a computer, a tablet computer, a car machine, etc. The triggering rule may be a control method between the intelligent terminal 104 and the intelligent device 103 through the switch state detector 101 set by the APP.
The intelligent device 103 may be any device or combination of devices capable of being controlled to realize on-off control, and is provided with a circuit with data processing capability such as a processing module, a circuit with wireless communication capability such as a wireless communication module, wherein one example of the intelligent device 103 may be a wall switch, and other examples of the intelligent device 103 may be an air conditioner, a lamp, a curtain motor, a sweeping robot, or the like, or a device connected with the intelligent device 103, and the controlled result of the intelligent device 103 may include on/off of the device, on/off of a corresponding switch of the device, and may further include specific functions of the device, such as playing specific music and video by a controlled entertainment device, and may also be adjustment of an air conditioner working mode and temperature. The external communication manner of the intelligent device 103 may include at least one of the following: radio frequency, bluetooth, wifi, mobile networks, etc.; in the following part of the description, the description is mainly based on the bluetooth mode.
In some schemes, the detection system may further include a server, where both the gateway 102 and the intelligent terminal 104 may interact with the server, and the data interaction between the gateway 102 and the intelligent terminal 104 may be implemented based on the server, where in some examples, the server may mainly play a role in data forwarding, and in some examples, the server may also play a role in data storage and processing.
In one embodiment, if the gateway 102 is a bluetooth gateway, the corresponding network is a bluetooth network, and the switch state detector 101 may join the bluetooth network after the network is configured, and communicate with the gateway 102 through bluetooth signals. Meanwhile, the switch state detector 101 may be further paired with the intelligent device 103 through a bluetooth signal, and further, the switch state detector 101 may send a message to the gateway 102 based on the bluetooth signal, or may send a message to the intelligent device 103 based on the bluetooth signal. In addition, the smart device 103 may also join the bluetooth network after the network is configured, and communicate with the gateway 102 through bluetooth signals. Further, the data interaction between the switch state detector 101 and the intelligent terminal 104, and the data interaction between the intelligent device 103 and the intelligent terminal 104 may be based on the forwarding of the gateway 102.
In some embodiments, the intelligent terminal 104 may define the triggering condition to satisfy a state event of the switch state detector 101 and a detection event of a smart detection device at the same time. For example, the smart detection device may be a human body sensor, where the human body sensor is communicatively connected to the gateway 102, and the state event may be a closed state or an open state, in a specific embodiment, the smart device is an air conditioner, and when the state of the switch state detector 101 is the closed state and the detection event of the human body sensor is "no person", the air conditioner executes a closing instruction; the system can realize energy-saving control of the intelligent home.
The switch state detector 101 in the partial aspects of the embodiments of the present invention will be described in detail below, but the scope of the embodiments of the present invention is not limited thereto.
Based on fig. 1-16, a switch state detector 101 proposed by the present disclosure is specifically explained. Referring to fig. 4 and 15, the switch state detector 101 includes a magnetic component 8 and an induction component 100, where the magnetic component 8 is used to generate a magnetic field; the sensing assembly 100 is arranged independently of the magnetic assembly 8 and is capable of changing position relative to the magnetic assembly 8; and the induction component 100 is used for detecting magnetic induction intensity, as shown in fig. 2, and is configured to: when the distance parameter between the magnetic component 8 and the sensing component 100 is gradually reduced to a first interval taking a first threshold value as an end point, sending a first message to the outside; the first message is used for indicating that a target object associated with the sensing assembly 100 is in an open state; when the distance parameter between the magnetic component 8 and the sensing component 100 is gradually increased to a second interval taking a second threshold value as a starting point, a second message is sent to the outside; the second message is used for indicating that the target object associated with the sensing assembly 100 is in a closed state; the distance parameter is associated with the magnetic induction; the first interval and the second interval are not coincident, and the difference value between the second threshold value and the first threshold value is greater than or equal to 1mm.
The magnetic component 8 is understood to be a component with magnetic properties, which may be a device provided with a permanent magnet or an electro-magnetic generator, which is capable of generating a stable magnetic field. The sensing component 100 and the magnetic component 8 are respectively disposed on a movable object and a fixed surface matched with the object, and the object can move in response to a manipulation, so that the position between the magnetic component 8 and the sensing component 100 changes, for example, the object can be a movable object such as a door, a window, a drawer, etc. The induction component 100 can sense the change of magnetic induction intensity, when the distance between the magnetic component 8 and the induction component 100 gradually decreases, the magnetic induction intensity sensed by the induction component 100 can gradually increase, when the distance between the magnetic component 8 and the induction component 100 gradually increases, the magnetic induction intensity sensed by the induction component 100 can gradually decrease, and the induction component 100 acquires the distance information between the magnetic component 8 and the induction component 100 by detecting the magnetic induction intensity. The distance parameter may be understood as a distance value between the magnetic assembly 8 and the inductive assembly 100. The first interval ending with the first threshold and the second interval ending with the second threshold are understood as dividing the distance parameter between the magnetic component 8 and the inductive component 100 into at least two intervals, wherein the first interval is from 0 to the first threshold, and the second interval is from the second threshold to infinity. The distance parameter is related to the magnetic induction intensity, which can be understood that when the distance parameter is changed, the magnetic induction intensity sensed by the sensing module is also changed correspondingly, the first threshold and the second threshold can respectively correspond to a magnetic induction intensity, and the sensing assembly 100 determines the "on" and "off" states of the target object by sensing the magnetic induction intensities corresponding to the first threshold and the second threshold.
The existing switch state detector is too small in the distinction of the induction conditions of the two states of "on" and "off", so that when the distance between the magnetic component 8 and the induction component 100 reaches a critical value, the magnetic induction intensity generated by the magnetic component 8 is influenced by the environment and fluctuates, and the magnetic induction module 1 in the induction component 100 detects that the magnetic induction intensity also fluctuates, so that the induction state of the induction component 100 is repeatedly switched between "on" and "off", so that the intelligent device 103 connected with the intelligent device repeatedly switches the working state, and the controlled intelligent device is damaged. The applicant discloses a switch state detector 101, by setting the difference between the first threshold and the second threshold to be greater than or equal to 1mm, so that a hysteresis interval of at least 1mm is provided between the first interval and the second interval, when the distance parameter reaches the hysteresis interval, the sensing state of the sensing component 100 is not changed, and the last sensing state is maintained. When the hysteresis interval which is more than or equal to 1mm is set, the sensing state of the sensing assembly 100 can be effectively prevented from being repeatedly switched when the distance parameter reaches a certain critical value, so that the intelligent device 103 connected with the sensing assembly 100 is protected from being repeatedly switched to the working state. The applicant finds through experiments that when the hysteresis interval is smaller than 1mm, the fluctuation of the magnetic induction intensity sensed by the magnetic induction module 1 may exceed the hysteresis interval, and the repeated switching of the sensing state of the sensing assembly 100 may be caused, so that the hysteresis interval needs to be set to be larger than 1mm, and the stability of the sensing state is ensured. In a specific embodiment, the first threshold is set to 18mm, the second threshold is set to 23mm, and further the first interval is [0, 18] mm, the second interval is [23, ++ infinity ] mm, and the hysteresis interval is [18, 23] mm, and setting a hysteresis interval of 5mm can more effectively improve the stability of the induction state. Of course, it is within the scope of the present embodiment as long as the difference between the first threshold and the second threshold is greater than or equal to 1 mm.
Further, the sensing assembly 100 is further configured to: when the distance parameter changes from the second interval to the first interval in response to the position change between the magnetic component 8 and the sensing component 100, sending a first message to the outside; when the distance parameter changes from the first interval to the second interval in response to the change of the position between the magnetic component 8 and the sensing component 100, a second message is sent to the outside. Because of the existence of the hysteresis section, the situation that the distance parameter enters the first section or the second section from the hysteresis section in response to the position change of the magnetic component 8 and the sensing component 100, at this time, whether the section before entering the hysteresis section is identical to the section after entering the hysteresis section needs to be judged, if so, a message is not sent, if not, a corresponding message is sent, in a specific embodiment, the distance parameter is gradually reduced, the second section enters the first section through the hysteresis section, and the sensing component 100 sends the first message to the outside; in another case, the distance parameter gradually decreases, and enters the hysteresis interval from the second interval and then gradually increases, and returns to the second interval from the hysteresis interval, so that the sensing component 100 does not send a message, and further, the repeated sending of the message can be effectively prevented.
In some embodiments, as shown in fig. 3, the induction assembly 100 includes a magnetic induction module 1 and a wireless transmission module 2, where the magnetic induction module 1 is used to induce magnetic induction and generate a level signal; the wireless transmission module 2 is electrically connected with the magnetic induction module 1 and is configured to: and when the level signal is detected to jump, sending a first message or a second message to the outside. The magnetic induction module 1 adopts a level jump type hall switch or a magnetic switch sensor, that is, a level signal sent by the magnetic induction module 1 jumps according to the change of magnetic induction intensity, and the wireless transmission module 2 can be further provided with other devices or combination of devices for digitally sampling, filtering or logically operating the signal, so that the level signal output by the magnetic induction module 1 can be detected. In a specific embodiment, the wireless transmitting module 2 includes a processing chip, the hall switch is electrically connected to a pin of the processing chip, and the processing chip determines the working state of the magnetic induction module 1 according to the level signal of the pin.
Further, the level signals include a first level signal and a second level signal opposite to the first level signal; when the distance parameter between the induction component 100 and the magnetic component 8 is in the first interval, the magnetic induction module 1 continuously outputs a first level signal; when the distance parameter between the induction component 100 and the magnetic component 8 is in the second interval, the magnetic induction module 1 continuously outputs a second level signal; when the distance parameter enters a second interval from a first interval, the level signal output by the magnetic induction module 1 jumps from a first level signal to a second level signal, and the wireless transmission module 2 sends a second message outwards; when the distance parameter enters the first interval from the second interval, the level signal output by the magnetic induction module 1 jumps from the second level signal to the first level signal, and the wireless transmitting module 2 transmits a first message to the outside. The second level signal is opposite to the first level signal, which is understood as that the first level signal is high level, the second level signal is low level, or the first level signal is low level, and the second level signal is high level. The magnetic induction module 1 adopted in the embodiment is a KTM1901XD type magnetic switch sensor, which is a magnetic switch sensor integrated with a tunnel magnetic resistance technology and a CMOS technology, has the characteristics of high precision, high speed, low power consumption, high sensitivity and the like, and supports the detection of a forward magnetic field and a reverse magnetic field; the magnetic switch sensor outputs a low level when the absolute value of the magnetic field strength is greater than 9Gauss, and outputs a high level when the absolute value of the magnetic field strength is less than 6 Gauss. Namely, for the induction module 100 using the KTM1901XD type magnetic switch sensor, the magnetic induction intensity interval corresponding to the first interval is [9, and the magnetic induction intensity interval corresponding to the second interval is [0,6] Gauss. When the magnetic induction intensity detected by the magnetic switch sensor is increased from the interval of [0,6] Gauss to [9, ++ infinity in the time of the interval, the magnetic switch sensor jumps from the output high level to the output low level; when the magnetic induction intensity detected by the magnetic switch sensor is reduced from the interval of [9, + ] Gauss to the interval of [0,6] Gauss, the magnetic switch sensor jumps from the output low level to the output high level, and the induction component 100 externally sends a corresponding message according to the level jump of the magnetic switch sensor. The beneficial effects are as follows: compared with a magnetic induction module which continuously detects the magnetic field intensity, the magnetic induction module 1 of the embodiment adopts the magnetic switch sensor with the level jump function, and when the magnetic induction intensity reaches the corresponding threshold value, the jump occurs, so that the processing frequency of the processing chip to the electric signal sent by the magnetic induction module 1 can be effectively reduced, and the power consumption is reduced.
Further, the level signals include a first level signal and a second level signal opposite to the first level signal; when the distance parameter between the induction component 100 and the magnetic component 8 is in the first interval, the magnetic induction module 1 continuously outputs a first level signal; when the distance parameter between the induction component 100 and the magnetic component 8 is in the second interval, the magnetic induction module 1 continuously outputs a second level signal; when the distance parameter enters a second interval from the first interval through a third interval, the level signal output by the magnetic induction module 1 jumps to a second level signal, and the wireless transmitting module 2 transmits a second message to the outside; when the distance parameter enters a first interval from a second interval through a third interval, the level signal output by the magnetic induction module 1 jumps to a first level signal, and the wireless transmitting module 2 transmits a first message outwards; the third section is a section greater than the first threshold and less than the second threshold. The third interval is the hysteresis interval described above, and when the distance parameter is in the third interval, the level signal output by the magnetic induction module 1 is not changed, so that the wireless transmission module 2 does not send a message to the outside, so as to prevent the sensing state of the sensing component 100 from repeatedly switching between "on" and "off". Because of the existence of the third section, the situation that the distance parameter enters the first section or the second section from the third section in response to the position change of the magnetic component 8 and the sensing component 100 is generated, at this time, whether the section before entering the third section is the same as the section after leaving the third section is required to be judged, if so, the level output by the magnetic induction module 1 does not jump, if not, the level output by the magnetic induction module 1 jumps, and then the wireless transmission module 2 sends a corresponding message to the outside. The scheme can effectively prevent the wireless transmitting module 2 from sending repeated messages to the outside.
In some embodiments, the induction assembly 100 includes a magnetic induction module 1 and a wireless transmission module 2, wherein the magnetic induction module 1 is used for inducing magnetic induction intensity and generating a voltage signal; the wireless transmitting module 2 is electrically connected with the magnetic induction module 1 to receive the voltage signal, compare the voltage signal with a reference voltage, and then send a first message or a second message according to a comparison result. The magnetic induction module 1 is a hall sensor, which can detect nearby magnetic induction intensity and generate a voltage signal corresponding to the current magnetic induction intensity, and compared with the magnetic switch sensor described above, the hall sensor can output a voltage signal instead of a level signal, and the output voltage signal can be changed in real time according to the change of the magnetic induction intensity. In a specific embodiment, the hall sensor is configured to continuously detect magnetic induction and send a continuous voltage signal, and the wireless transmitting module 2 receives the voltage signal and determines the interval in which the distance parameter is located according to the voltage signal. The magnetic induction module 1 using a hall sensor has the advantage that the first threshold value and the second threshold value can be flexibly changed by adjusting them to any value, i.e. the first interval and the second interval. Since the mounting method of the switch state sensor is mostly adhered to the mounting surface through the double faced adhesive tape 9, the mounting method is one-time mounting, the adjustability is poor, and if the first mounting position is not good, the condition that the sensing effect is poor, the sensing error occurs or the sensing is insensitive can be caused. The magnetic induction module 1 of this embodiment adopts a hall sensor capable of continuously detecting magnetic induction intensity, and a user can adjust the first threshold and the second threshold through the intelligent terminal 104, so as to adjust the switch state detector 101 to a suitable induction distance, and optimize the induction state.
Further, the reference voltage includes a first reference voltage value and a second reference voltage value; the wireless transmission module 2 is configured to: when the voltage signal is gradually reduced to be smaller than or equal to a first reference voltage value, a first message is transmitted; the first reference voltage value characterizes the distance of the inductive component 100 from the magnetic component 8 as a first threshold value; when the voltage signal is gradually increased to be greater than or equal to a second reference voltage value, a second message is transmitted; the second reference voltage value characterizes the distance of the inductive element 100 from the magnetic element 8 as a second threshold value. The voltage signal sent by the magnetic induction module 1 changes along with the change of the magnetic induction intensity, the first reference voltage value is the voltage value sent by the magnetic induction module 1 when the magnetic induction intensity reaches a first threshold value, and the second reference voltage value is the voltage value sent by the magnetic induction module 1 when the magnetic induction intensity reaches a second threshold value. When the voltage signal is equal to a first reference voltage value, the wireless transmitting module 2 judges that the distance parameter reaches the first threshold value, and when the voltage signal is equal to a second reference voltage value, the wireless transmitting module 2 judges that the distance parameter reaches the second threshold value.
Further, the first threshold includes a plurality of first preset thresholds, and is configured to: being able to switch between a plurality of said first preset thresholds; the second threshold includes a plurality of second preset thresholds and is configured to: the switching between a plurality of said second preset thresholds is enabled. The first preset threshold value and the second preset threshold value are stored in the intelligent terminal 104, the intelligent terminal 104 can be a mobile phone, a tablet, a computer or other equipment, a user selects a proper threshold value through the APP, in some embodiments, multiple threshold value combination recommendations are provided on the intelligent terminal 104, that is, recommendation collocation of multiple groups of first preset threshold values and second preset threshold values prevents the user from adjusting proper values when the user adjusts the threshold values by himself or herself, so that the use is prevented from being affected.
In some embodiments, the wireless transmitting module 2 includes a packet sending queue, and the first message and the second message are sequentially sent to the outside according to the message generating time after being stored in the packet sending queue; and after the message in the packet sending queue is sent, if the message sent last time does not correspond to the judging state, a message corresponding to the judging state is reissued. The wireless transmitting module 2 of the embodiment generates a first message or a second message corresponding to the electric signal change of the magnetic induction module 1, when the first message or the second message is generated, the first message or the second message is packaged and then stored into a packet transmitting queue to be transmitted, and then the packet transmitting queue sequentially transmits outwards from the packet transmitting queue, wherein the packet transmitting queue can store 8 messages at most, the packet transmitting speed of the packet transmitting queue is one second to transmit one message outwards, and the message is repeatedly transmitted for 20 times in the second, so as to prevent a receiving end from not receiving the packet due to electromagnetic interference; when the message generating speed is higher than the packet sending speed, the situation that the packet sending queue is full and the new message is blocked outside the packet sending queue can occur, so that the new message is lost, and the situation that the transmitted door and window opening and closing information does not correspond to the actual door and window opening and closing information can occur. In order to solve this problem, in this embodiment, after the packet sending queue finishes sending the packet, it is checked whether the last sent packet corresponds to the state of the magnetic induction module 1, that is, whether the content of the last sent packet is consistent with the door and window opening and closing information, if not, a packet corresponding to the current state is reissued, and if so, the sending of the packet is ended, so as to avoid that the induction state is inconsistent with the content of the sent packet due to packet loss. In addition, when the packet sending queue is full, the new packet is discarded, and the packet in the queue gradually generates a spare queue in the process of sending the packet to the outside, if a second new packet is generated, the second new packet enters the queue, so that the condition that the second new packet is identical to one packet arranged in front of the second new packet can occur, the packet sending queue sends the same packet, in order to prevent the condition, before the packet is added into the packet sending queue, whether the last packet in the packet sending queue is identical to the new packet is judged, if the packet is different, the packet is allowed to be added into the packet sending queue, otherwise, the packet sending queue cannot be added, thereby not only preventing the inconsistent sensing state and the content of the sent packet due to packet loss, but also avoiding repeated sending of the same packet.
In some embodiments, the sensing assembly 100 is further configured to: and sending a fourth message to the outside at a first appointed time after the first message or the second message is sent, wherein the fourth message is used for indicating whether the current state of the target object is a closed state or an open state. In this embodiment, the message caused by the event is assigned to the event message, and the self-generated message is assigned to the status message. The event message may be understood as a message, such as a first message and a second message, generated in response to a certain trigger signal; the status message may be understood as a message that is self-generated in response to a certain time interval, and is used to indicate the current status of the sensing assembly 100. In a specific embodiment, the first designated time is set to 4 seconds, and after the first message or the second message is sent for 4 seconds, a status message is sent to the outside, where the content of the status message at least includes the opening and closing information of the magnetic induction module 1, which is effective in improving the stability of sensing the opening and closing state of the door and window. In addition, the sensing assembly 100 further includes a button battery 54 and an electric quantity detection module 51, which are electrically connected with the processing chip in the wireless transmitting module 2, the button battery 54 is used for providing electric energy for each module, the electric quantity detection module 51 can detect the electric quantity of the button battery 54, and the content of the status message further includes battery electric quantity information for providing battery electric quantity for the user.
Further, the sensing assembly 100 further includes a light emitting module 52 electrically connected to the wireless transmitting module 2. The light emitting module 52 converts a light emitting frequency and/or a light emitting color in response to an electric signal of the magnetic induction module 1 or the detection switch 3 for indicating an operation state of the switch state detector 101.
In some embodiments, the wireless transmitting module 2 is configured to enter the low power consumption mode within a second specified time after the first message or the second message is sent.
The inventor of the present application found that the existing switch state detector 101 has higher power consumption during the use process, and in order to reduce the power consumption of the switch state detector 101, the inventor of the present application found that, through research of the present application, the wireless transmitting module 2 of the switch state detector 101 has a specified state, and the power consumption of the wireless transmitting module 2 can be effectively reduced by pertinently configuring the working state of the wireless transmitting module 2 based on the specified state. Specifically:
when the wireless transmitting module 2 receives a wake-up instruction in a low power consumption state, the wireless transmitting module may enter a normal working state in response to the wake-up instruction, and send a message to the outside in the normal working state according to the wake-up instruction, and the wake-up instruction may be generated when the magnetic induction intensity sensed by the magnetic induction module 1 reaches a first threshold or a second threshold, for example. In this embodiment, the power consumption of the wireless transmitting module 2 in the low-power-consumption working state is smaller than that in the normal working state, so that the wireless transmitting module 2 is in a relatively low-power-consumption state in the low-power-consumption working state in which the packet-issuing task is not executed, and is switched to the normal working state to issue packets only when being awakened, and compared with the case that the switch state detector 101 is always in the packet-issuing state in the prior art, the power consumption of the switch state detector 101 in this embodiment is lower.
Further, the wireless transmitting module 2 is configured to: in a low power consumption mode, the level signal sent by the magnetic induction module 1 is awakened; the level signal includes a high level or a low level; when the wireless transmitting module 2 is awakened by a high level, setting the next awakening condition as low level awakening; when the wireless transmitting module 2 is awakened by the low level, setting the next awakening condition as the high level awakening. Wherein, the wake-up is understood as entering a normal operation mode from the low power consumption mode. The magnetic induction module 1 of this embodiment is the magnetic switch sensor, and can output the level signal, and the wireless transmitting module 2 includes the processing chip, and a pin of processing chip is connected with the magnetic induction module 1 electricity, can detect the level signal of this pin. In other embodiments, the magnetic induction module 1 may also employ a hall sensor, capable of outputting a voltage signal, and the processing chip is configured to be able to detect the voltage signal of the pin. The following description will be based on an embodiment in which the processing chip is capable of detecting a level signal, and the applicant has found that the processing chip can employ a chip that does not support edge wake-up, thereby reducing the chip volume and the chip cost; the edge wakeup may be understood as being awakened in response to a level transition of a pin. In one embodiment, the processing chip is a TLSR8251 type chip that does not support edge wake-up, but has the advantages of small size, low cost, and low power consumption, and is suitable for the switch state detector 101. Compared with the processing chip used by the existing switch state detector 101, the processing chip can save cost and reduce the volume of the sensing assembly 100.
The used processing chip does not have the function of edge awakening, the awakening is realized through a special algorithm, a general wireless switch only needs to be set with low level awakening, because the wireless switch adopts the detection switch 3 as an induction module, when the detection switch 3 is pressed down, a low level signal is output, when the detection switch 3 is sprung up, a high level signal is output, the detection switch 3 has a self-resetting function, and when the detection switch 3 is pressed down, the detection switch can be automatically sprung up, and only the low level awakening is required to be set under the awakening condition. The high level of the detection switch 3 only exists in the pressed short time and is not in the high level pressing state for a long time, but the switch state detector 101 cannot set a single level signal to wake up in the use process, because the door and the window may be in an open state for a long time or in a closed state for a long time when in use, that is, the level signal of the magnetic induction module 1 may be in a high level for a long time or in a low level for a long time, so that a corresponding wake-up condition needs to be set for the current state of the magnetic induction module 1. Therefore, the wake-up condition of the wireless transmission module 2 is set to: when the wireless transmitting module 2 is awakened by a high level, setting the next awakening condition as low level awakening; when the wireless transmitting module 2 is awakened by the low level, setting the next awakening condition as the high level awakening.
In some embodiments, the sensing assembly 100 is further configured to detect an external pressing operation to generate a third message; the third message is used for controlling the working state of the external device paired with the sensing component 100. It may be understood that the sensing assembly 100 is capable of detecting an external pressing operation to generate the third message, and the sensing assembly 100 is provided with, for example, a detection switch 3, a pressure sensor, a distance sensor, or other electronic components capable of changing an output electrical signal corresponding to the pressing operation, and the wireless transmitting module 2 is electrically connected to the electronic components, when the sensing assembly 100 is subjected to the pressing operation, the electrical signal output by the electronic components changes, and the wireless transmitting module 2 responds to the change of the electrical signal to externally transmit the third message. The third message is used for controlling the working state of the external device, and as described above, the switch state detector 101 provided by the invention is connected with the gateway 102 through bluetooth, and the switch state detector 101 can send a message to the gateway 102 based on bluetooth signals, and can also send a message to the intelligent device 103 based on bluetooth signals. In addition, the smart device 103 may also join the bluetooth network after the network is configured, and communicate with the gateway 102 through bluetooth signals. Further, the data interaction between the switch state detector 101 and the intelligent terminal 104, and the data interaction between the intelligent device 103 and the intelligent terminal 104 may be based on the forwarding of the gateway 102. The intelligent device 103 switches the working state in response to the third message, and the specific control method can be set in the intelligent terminal 104 through the APP, and the scheme enables the switch state detector 101 to be used as a small wireless switch.
Further, the sensing assembly 100 further includes a housing 4 and a detection switch 3, wherein the detection switch 3 is coupled to the housing 4 and can be triggered based on the pressing of the housing 4, so as to generate a trigger signal; the detection switch 3 is electrically connected to the wireless transmission module 2 such that: the wireless transmitting module 2 sends the third message outwards based on the trigger signal. The detection switch 3 is coupled to the housing 4, which may be understood that a specific connection relationship is provided between the detection switch 3 and the housing 4, so that the triggering portion of the detection switch 3 can move along with a part of the housing 4, so that the housing 4 triggers the detection switch 3 when being pressed, and the specific connection relationship may be abutting, fixing, clamping, or non-contact connection.
In some embodiments, the wireless transmitting module 2 is configured to enter a low power consumption mode within a third specified time after the first message, the second message, or the third message is sent, and wake up in response to the trigger signal in the low power consumption mode. The wireless transmitting module 2 comprises the processing chip, the detection switch 3 is connected to one pin of the processing chip, the detection switch 3 outputs a low-level signal when triggered, and the processing chip is set to be awakened when detecting that the pin connected with the detection switch 3 outputs the low-level signal.
Further, the wireless transmitting module 2 is further configured to: if the duration of the continuous triggering of the detection switch 3 is detected to be longer than the appointed duration, a low power consumption mode is entered, and the next wake-up condition is set as the trigger-releasing state of the detection switch 3. Since the sensing assembly 100 is configured to be suitable for detecting an external pressing operation to generate the third message, that is, the switch state detector 101 provided in this embodiment may wirelessly control the working state of other devices, in order to improve the pressing feeling, the portion of the sensing assembly 100 that can be pressed is designed to be relatively large, and in some embodiments, most of the upper surface of the housing 4 may be pressed to trigger the detection switch 3. Since the area of the sensing assembly 100 that can be pressed is too large, during transportation, the pressing area is pressed to trigger the detection switch 3, so that the wireless transmitting module 2 is in a wake-up state, and the electric quantity of the button battery 54 is rapidly exhausted, in order to prevent the above situation, the wireless transmitting module 2 is configured to detect that the duration of the continuous triggering of the detection switch 3 is longer than the designated duration, and then enter a low power consumption mode. In a preferred embodiment, the specified duration is greater than 8 seconds.
Further, the wireless transmitting module 2 is further configured to: if the wireless transmitting module 2 is detected to not transmit the second message within the fourth appointed time after transmitting the first message, waking up and transmitting a fifth message to the outside; the fifth message is used for indicating that the target object is in an open state for a fourth appointed time. When the gateway 102 receives the fifth message, the fifth message is fed back to the intelligent terminal 104, and the intelligent terminal 104 reminds the user that the target object is in the open state for a fourth specified time, so as to remind the user to close the door, the window, the drawer or the wardrobe. In a preferred embodiment, the fourth specified time is greater than or equal to 30 seconds, preventing the user from being reminded too often.
Further, the wireless transmitting module 2 is further configured to: if the wireless transmitting module 2 is detected to enter a low power consumption mode to reach a fifth appointed time, waking up and sending a fifth message to the outside; the fifth message includes the status message, that is, the message content includes at least the opening and closing information of the magnetic induction module 1 and the battery power information, and may also include other status information. In a preferred embodiment, the fifth specified time is set to be greater than or equal to 20 minutes, preventing the wake-up frequency from being too high to cause a decrease in the duration of the button cell 54.
In some embodiments, the wireless transmission module 2 is further configured to: and if the detection switch 3 is triggered and then triggered again in a sixth appointed time, sending a seventh message to the outside, wherein the seventh message characterizes OTA upgrading. In a preferred embodiment, the fifth specified time is less than 1 second. In this embodiment, a scheme of coexistence of a single-click message and a double-click message is adopted, that is, when the detection switch 3 triggers a single-click instruction, the wireless transmitting module 2 will immediately send the third message to the outside, and when the detection switch 3 triggers a double-click instruction, the wireless transmitting module 2 sends the seventh message to the outside, so that delay of sending the third message by the wireless transmitting module 2 can be reduced, and user experience is improved. The content of the seventh message characterizes the OTA upgrade, so that even if the detection switch 3 is triggered by mistake to double-click instructions, the normal use of the switch-on state sensing device is not affected.
Referring to fig. 16, there is provided an electronic device 105 including: a processor 1051 and a memory 1052, the memory 1052 for storing executable instructions for the processor 1051;
wherein the processor 1051 is configured to perform the above-referenced methods via execution of the executable instructions. Processor 1051 is capable of communicating with memory 1052 over bus 1053.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by the processor 1051, implements the methods referred to above. Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
In some embodiments, as shown in fig. 4, the sensing assembly 100 includes: the device comprises a shell 4, a magnetic induction module 1, a wireless transmitting module 2 and a detection switch 3, wherein the magnetic induction module 1 is arranged in the shell 4 and used for inducing magnetic induction intensity; the wireless transmitting module 2 is arranged in the shell 4 and is electrically connected with the magnetic induction module 1; and is configured to:
when the magnetic induction module 1 detects that the absolute value of the magnetic induction intensity is gradually increased to be larger than the first magnetic induction intensity, the wireless transmission module 2 externally transmits the first message; when the magnetic induction module 1 detects that the absolute value of the magnetic induction intensity gradually decreases to be smaller than the second magnetic induction intensity, the wireless transmission module 2 sends the second message outwards; the first magnetic induction corresponds to the magnetic induction when the distance parameter reaches the first threshold value, and the second magnetic induction corresponds to the magnetic induction when the distance parameter reaches the second threshold value; the detection switch 3 is disposed in the housing 4 and electrically connected to the wireless transmitting module 2, and the detection switch 3 may be triggered in response to a pressing force, so that the wireless transmitting module 2 sends a third message to the outside. The control methods of the magnetic induction module 1, the wireless transmitting module 2 and the detection switch 3 are described in detail above, and are not repeated here.
In some embodiments, as shown in fig. 5 and 6, the housing 4 includes a first housing 41 and a second housing 42, the first housing 41 is movably connected with the second housing 42, the detection switch 3 is disposed between the first housing 41 and the second housing 42, the first housing 41 generates a pressing motion in response to the pressing force, and further, a distance between the first housing 41 and the second housing 42 is reduced, so that the first housing 41 or the second housing 42 presses against and triggers the detection switch 3. The movable connection between the first housing 41 and the second housing 42 may be understood as that the first housing 41 and the second housing 42 are connected by a kinematic pair, so that a relative motion may occur between the two, and the movable connection may include a pivot connection, a snap connection, a sliding block and sliding rail connection, a multi-link connection, an elastic connection, or other connection manners capable of being implemented by those skilled in the art and capable of relatively moving. The first housing 41 generating the pressing motion in response to the pressing force may be understood as that a user applies a pressing force to the first housing 41, and the first housing 41 is movably connected with the second housing 42, so that the first housing 41 generates the pressing motion with respect to the second housing 42. The detection switch 3 is disposed between the first housing 41 and the second housing 42, and it is understood that the detection switch 3 is fixedly mounted on the first housing 41 or the second housing 42 and is sandwiched between the first housing 41 and the second housing 42, and when the first housing 41 is pressed, the first housing 41 or the second housing 42 presses against the triggering portion of the detection switch 3 to trigger the detection switch 3.
The switch state detector 101 provided by the invention can detect the opening and closing state of doors and windows and can be used as a small wireless switch, and a user can control intelligent electric appliances in home to work by pressing the switch state detector 101. The existing switch state detector 101 does not have the function of wireless switch, and the key functions are limited to distribution network, reset and the like, so that the key use frequency is very low, the requirement on the operability of the key is not high, the key is designed to be very small for aesthetic property, the position of the key is hidden, and the volume of the switch state detector 101 is very small (the general length is 4-6 cm), so that the key of the existing switch state detector 101 is very difficult to operate. According to the switch state detector 101 provided by the invention, the first shell 41 can be pressed to trigger the detection switch 3, the whole first shell 41 is equivalent to a large-size key, the controllable area is greatly increased, the pressing hand feeling is improved, the blind operation can be realized, the position of the key is not required to be found deliberately, and a practical foundation is laid for the switch state detector 101 to be used as a wireless switch.
In some embodiments, as shown in fig. 5, at least one first buckle 411 is protruding from the first housing 41, a first buckling position 421 is provided at a corresponding position of the first buckle 411 on the second housing 42, and the first buckle 411 is buckled to the first buckling position 421, so that the first buckling position 421 limits an extreme position of the first buckle 411 moving in a first direction; in the second direction, a movable gap 423 exists between the first fastening position 421 and the first fastening buckle 411, so that the first fastening buckle 411 can generate relative displacement relative to the first fastening position 421 in the second direction; wherein the first direction is a direction in which the first housing 41 is away from the second housing 42, and the second direction is opposite to the first direction. The limiting position of the first fastening position 421 to limit the movement of the first fastener 411 in the first direction may be understood as a vertical upward direction in fig. 5, where the hook of the first fastener 411 is hooked on the lower surface of the first fastening position 421, so that the first fastener 411 cannot be separated from the first fastening position 421. The existence of the movable gap 423 between the first fastening position 421 and the first fastening 411 may be understood, as shown in fig. 5 and fig. 6, where the second direction is a vertical downward direction in the drawing, the first fastening position 421 is provided with a movable slot below the first fastening 411, the width of the movable slot is adapted to the width of the first fastening 411, and the height of the movable slot is greater than the height of the hook of the first fastening 411, so that the hook of the first fastening 411 can slide up and down in the movable slot, and the first fastening 411 can generate relative displacement with respect to the first fastening position 421 in the second direction. In this embodiment, the first housing 41 and the second housing 42 are connected by a buckle, and since the first housing 41 can be pressed to perform the pressing motion, the first fastening position 421 is provided with a movable gap 423 below the first buckle 411, so as to provide a movable space for the first buckle 411.
Further, as shown in fig. 5 and 6, the first buckle 411 is disposed at one end of the first housing 41, a second buckle 412 is protruding from the other end of the first housing 41, a second buckling position 422 is provided at a corresponding position of the second buckle 412 on the second housing 42, the second buckle 412 is buckled to the second buckling position 422, and the one end of the first housing 41 is pivoted based on the second buckling position 422 in response to the pressing force, so as to generate the pressing motion. The second buckle 412 and the first buckle 411 are symmetrically disposed at two ends of the first housing 41, one end of the first housing 41 provided with the first buckle 411 can be pressed to pivot based on the second buckling position 422, and the detection switch 3 is disposed at one end close to the first buckle 411 and is triggered in response to a pressing operation by a user. Therefore, the second fastening position 422 plays a role of a pivot, and compared with the first fastening position 421, the second fastening position 422 is not provided with the movable gap 423, or the movable gap 423 of the second fastening position 422 is far smaller than the first fastening position 421, so that the second fastener 412 cannot slide up and down relative to the second fastening position 422, and the second fastener 412 moves downwards when the user presses the middle position of the first housing 41, so that the detection switch 3 cannot be triggered.
Further, as shown in fig. 13, the pressed surface of the first housing 41 is provided with a third mark 413 at a corresponding position of the detection switch 3, and in a preferred embodiment, the third mark 413 is provided as an annular silk screen. The third mark 413 is used to indicate the optimal pressing position of the first housing 41.
Further, as shown in fig. 5 and 7, the second housing 42 is provided with a prying tongue 424 protruding outwards at an end close to the detection switch 3, and a prying gap is formed between the prying tongue 424 and the first housing 41. For when the second housing 42 is fixedly mounted on the external mounting surface, a user can insert the gap between the prying tongue 424 and the first housing 41 by using a straight line, prying the first housing 41 apart, and facilitating replacement of the battery. Without the prying tongue 424, a user needs to pry the first housing 41 by inserting the prying tongue between the first housing 41 and the external mounting surface, which may damage the external mounting surface on one hand, and pry the entire sensing assembly 100 away from the external mounting surface on the other hand, so that the sensing assembly 100 is separated. The present embodiment uses the structure of the prying tongue 424, which can effectively avoid the occurrence of the above situation.
Further, as shown in fig. 7, the first housing 41 is provided with a first accommodating groove 414 towards the second housing 42, and the shape of the first accommodating groove 414 is matched with the shape of the second housing 42, so that the first accommodating groove 414 is covered on the second housing 42, and the second housing 42 is at least partially accommodated in the first accommodating groove 414. The shape of the first accommodating groove 414 matches with the shape of the second housing 42, which is understood that the first accommodating groove 414 can accommodate at least the upper half of the second housing 42, and the side wall of the first accommodating groove is equidistant from the outer side wall of the second housing 42, and the gap between the side wall and the outer side wall is smaller than a certain value.
Further, the first housing 41 and the second housing 42 may be triangular, rectangular, polygonal, circular or racetrack circular columns. In a specific embodiment, the first housing 41 and the second housing 42 are both rectangular solids, and correspondingly, the first accommodating groove 414 is also rectangular solids, two ends of the first accommodating groove 414 in the long side direction are respectively provided with the first buckle 411 and the second buckle 412 in a protruding manner, and the other two ends of the first accommodating groove 414 are also provided with the first buckle 411 for enhancing the buckling force between the first housing 41 and the second housing 42 and preventing the first housing 41 from falling off.
In another embodiment, four first fasteners 411 are uniformly distributed along the circumference of the first housing 41 (not shown in the figure); the four first buckles 411 are respectively buckled at the corresponding first buckling positions 421, and a movable gap 423 exists between each first buckling position 421 and the corresponding first buckle 411, so as to realize movable connection between the first housing 41 and the second housing 42, and when the first housing 41 responds to the pressing force to generate the pressing motion, the first housing 41 drives at least one first buckle 411 to generate the relative displacement. The four first buckles 411 are respectively buckled at the corresponding first buckling positions 421, which can be understood that the first accommodating groove 414 of the first housing 41 is rectangular, four side walls of the first housing 41 are respectively provided with four first buckles 411 in a protruding manner, and four side walls of the second housing 42 are respectively provided with the first buckling positions 421 at corresponding positions of the first buckles 411. Because the first buckling position 421 is provided with the clearance 423 below the first buckle 411, the four first buckles 411 can slide up and down, each part of the first shell 41 can generate the pressing motion, the detection switch 3 is arranged at the middle position of the first shell 41, each part of the first shell 41 can be pressed to trigger the detection switch 3, the pressing hand feeling of the first shell 41 is further improved, and meanwhile blind operation of a user is facilitated.
In another embodiment, the first buckle 411 is disposed at one end of the first housing 41, and the other end of the first housing 41 is connected to the second housing 42 through a rotating shaft (not shown in the drawings); when the first housing 41 is displaced in response to the pressing force, the first housing 41 drives the first catch 411 to generate the relative sliding movement. Specifically, the other end of the first housing 41 is provided with a rotating shaft protruding from a side wall of the first accommodating cavity, the second housing 42 is provided with a rotating shaft hole at a corresponding position of the rotating shaft, and the rotating shaft is inserted into the rotating shaft hole, so that the first housing 41 can pivot based on the rotating shaft. The end of the first housing 41 opposite to the rotating shaft is provided with the first buckle 411, and since the first buckling position 421 is provided with the movable gap 423, the first buckle 411 can slide up and down relative to the first buckling position 421, so that a movable space is provided for the pivoting movement of the first housing 41.
Further, as shown in fig. 5, 7 and 8, the switch state detector 101 provided by the present invention further includes a sealing member 6, where the sealing member 6 is disposed along a circumference of the first housing 41, and the sealing member 6 is clamped between the first housing 41 and the second housing 42, so as to realize sealing connection between the first housing 41 and the second housing 42. The sealing member 6 is made of elastic sealing material, such as rubber, silica gel, etc., and can be pressed to achieve sealing effect. The arrangement of the sealing element 6 along the circumference of the first housing 41 is understood to mean that the sealing element 6 has a ring-shaped structure, the shape of which corresponds to the shape of the first receiving groove 414 of the first housing 41. Further, the sealing member 6 is disposed in the first accommodating groove 414, and the sealing member 6 is clamped between the inner wall of the first accommodating groove 414 and the second housing 42, so that the first accommodating groove 414 and the second housing 42 form a sealed cavity. The sealing member 6 is installed in the first accommodating groove 414 and is attached to the top wall or the side wall of the first accommodating groove 414, and the second casing 42 compresses the sealing member 6 on the top wall or the side wall of the first accommodating groove 414, so as to realize the sealing connection between the first casing 41 and the second casing 42.
Further, as shown in fig. 5 and 6, the first housing 41 generates the pressing motion in response to the pressing force, presses the seal member 6 to be elastically deformed, and thus the seal member 6 generates a restoring force against the elastic deformation, and when the pressing force is removed, the restoring force supports the first housing 41 to be restored to its original position. Because the volume of the switch state detector 101 needs to be made small, the sealing member 6 has the functions of waterproof sealing and restoring force, so that the first shell 41 does not need to be designed with a special restoring member, the internal structure of the sensing assembly 100 is simplified, and the volume is reduced.
Further, as shown in fig. 5 and 8, the sealing member 6 is a sealing ring, and the width of the cross section of the sealing ring in the first direction is greater than the width of the cross section in the third direction, where the first direction is a direction in which the first housing 41 is away from the second housing 42, and the third direction is perpendicular to the first direction. The width of the cross section of the sealing ring in the first direction is greater than the width of the cross section of the sealing ring in the third direction, which is the vertical upward direction in fig. 5, and the width of the cross section of the sealing ring in the third direction is understood to be greater than the horizontal width, for example, a rectangular cross section, an oval cross section, and the like, and in a specific embodiment, the cross section of the sealing ring is an oval with a transverse diameter of 1.8mm and a longitudinal diameter of 3 mm. The advantage of this design is that the compression margin in the vertical direction of the sealing ring is increased, so that the first housing 41 can be triggered by a sufficient pressing margin when pressed. Meanwhile, the restoring force can be reduced by increasing the compression allowance of the sealing ring in the vertical direction, so that the first shell 41 is pressed more labor-saving, and the pressing hand feeling is improved.
In another embodiment, the first housing 41 includes a first end and a second end remote from the first end, and the detection switch 3 is disposed at the first end of the first housing 41; the sealing member 6 is a sealing ring, the cross section of the sealing ring at the position corresponding to the first end is a first cross section, the cross section of the sealing ring at the position corresponding to the second end is a second cross section, and the area of the first cross section is larger than that of the second cross section (not shown in the figure). The seal ring can be understood as an annular structure with a variable cross section, the cross section of the seal ring near the first end is thicker, the cross section near the second end is thinner, and the thickness of the cross section is gradually changed. The reason for this is that, since the detection switch 3 is disposed at the first end, the first end of the first housing 41 is pressed to trigger the detection switch 3, the seal ring is flattened during long-term pressing of the first end, and the second section is not pressed, so that the sealing effect of the seal ring at the first end is deteriorated. Therefore, the sealing ring is designed into a structure with gradually changed thickness, is thicker near the first end, is not easy to flatten in long-term pressing, and provides better waterproof sealing effect in long-term use.
Further, as shown in fig. 8, the second housing 42 includes a bottom shell 425 and a sealing portion 426, the sealing portion 426 extends from a periphery of the edge of the bottom shell 425, and the sealing portion 426 presses the sealing member 6 against the inner wall of the first accommodating groove 414, so as to realize sealing connection between the first housing 41 and the second housing 42. The second housing 42 may be understood as a groove structure with an open top, the sealing portion 426 is formed on the peripheral side portion thereof, the bottom housing 425 is formed on the bottom portion thereof, and the shape of the sealing portion 426 corresponds to the shape of the sealing member 6, so that the sealing portion 426 can be completely pressed against the sealing member 6 to form a sealing structure. The sealing portion 426 may be understood that the sealing portion 426 abuts against the inner wall of the first accommodating groove 414, the top surface of the sealing portion 426 abuts against the lower surface of the sealing portion 6, so that the upper surface of the sealing portion 6 abuts against the top surface of the first accommodating groove 414, and the distance between the top surface of the sealing portion 426 and the top surface of the first accommodating groove 414 is smaller than the thickness of the sealing portion 6 in the vertical direction, so that a sealing structure is formed between the first accommodating groove 414 and the second housing 42, thereby providing a better sealing effect. At the same time, the seal 6 can provide a return force which assists in its return after the first housing 41 has been brought into a pressing movement.
Further, the first fastening portion 421 and the second fastening portion 422 are respectively disposed on an outer side surface of the sealing portion 426.
Further, as shown in fig. 8, 9 and 10, the sealing member 6 is a sealing ring, the side wall of the first accommodating groove 414 is offset from the sealing ring limiting portion 415 inward in a circumferential direction, so as to form an annular sealing ring placement area 416 between the sealing ring limiting portion 415 and the side wall of the first accommodating groove 414, and the sealing ring is placed in the sealing ring placement area 416 and is clamped in the sealing ring placement area 416; the seal ring limiting portion 415 includes a plurality of seal ring limiting ribs 4151 extending downward from a top wall of the accommodating groove, and each seal ring limiting rib 4151 is combined to form the seal ring limiting portion 415. The fact that the side wall of the first accommodating groove 414 is offset from the seal ring limiting portion 415 in a circumferential direction may be understood that the outer side wall of the seal ring limiting portion 415 and the side wall of the first accommodating groove 414 are in an equidistant offset relationship, so that the seal ring placement area with uniform width is formed between the outer side wall of the seal ring limiting portion 415 and the side wall of the first accommodating groove 414. The seal ring is clamped in the seal ring placement area 416, it is understood that the seal ring has elasticity, the inner ring Zhou Changshi of the seal ring is configured on the circumference of the seal ring placement area 416, and the cross section transverse width of the seal ring is slightly larger than the width of the seal ring placement area 416, so that the seal ring is in interference fit with the seal ring placement area 416, and thus the seal ring can be stably placed in the seal ring placement area 416, and the assembly is convenient. The seal ring limiting portion 415 is formed by combining a plurality of seal ring limiting ribs 4151, specifically, the seal ring limiting portion 415 leaves a clearance gap at the corresponding positions of the four first buckles 411, and leaves a clearance gap at the corner of one side far away from the detection switch 3, so as to form a plurality of seal ring limiting ribs 4151, wherein the purpose of setting the clearance gap at the corresponding positions of the first buckles 411 is to reserve deformation for the first buckling positions 421, so that the first buckles 411 can be smoothly separated from the first buckling positions 421 when the first shell 41 is disassembled; the corner far away from one side of the detection switch 3 is provided with a clearance space, because the circuit board 5 is installed on the sealing ring limiting frame 4151 through a buckle, the circuit board 5 abuts against the end part of the sealing ring limiting frame 4151, and the clearance space is reserved for an antenna module on the circuit board 5. The top surface of the first accommodating groove 414 is hollowed inward to form an avoidance portion 419, and the avoidance portion 419 is arranged to be concave and is used for reserving an avoidance space for electronic elements on the circuit board 5, so that the circuit board 5 can be adapted to different modules.
In other embodiments, the sealing portion 426 may be abutted against the sealing member 6 (not shown in the drawings) through a side surface, that is, the sealing member 6 may be a sealing ring, the outer side surface of the sealing portion 426 is provided with a ring-shaped groove for limiting the sealing ring in the vertical direction, the sealing ring is sleeved in the ring-shaped groove of the sealing portion 426 and clamped between the outer side surface of the sealing portion 426 and the inner side surface of the first accommodating groove 414, the cross-sectional width of the sealing ring is larger than the gap between the sealing portion 426 and the inner side surface of the first accommodating groove 414, so that a sealing structure is formed between the first accommodating groove 414 and the second housing 42, but the sealing member 6 is designed to not provide a restoring force any more, but rather provides a friction resistance for blocking the restoring force, at this time, the restoring force of the first housing 41 is provided by the self-elastic force of the detecting switch 3.
Further, as shown in fig. 5, 7 and 10, the circuit board 5 is mounted on the first housing 41 and is disposed inside the sealed cavity, and the detection switch 3 is disposed on a surface of the circuit board 5 facing the second housing 42; when the first housing 41 responds to the pressing force to generate the pressing motion, the first housing 41 drives the detection switch 3 to move towards the second housing 42, and then the second housing 42 presses against and triggers the detection switch 3. The circuit board 5 is mounted on the first housing 41, the seal ring limiting frame 4151 of the first housing 41 is provided with four circuit board buckles 417 in a protruding manner, corresponding positions on the circuit board 5 are provided with circuit board buckling positions 53 in a recessed manner, the width of the circuit board buckling positions 53 is adapted to the width of the circuit board buckling positions 417, the circuit board 5 is limited in the horizontal direction, the circuit board 5 is clamped to the seal ring limiting frame 4151 through the circuit board buckling positions 417, and the upper surface of the circuit board 5 is abutted to the end portion of the seal ring limiting frame 4151, so that the circuit board 5 is limited in the vertical direction. The shape of the circuit board 5 is smaller than the shape of the outer side wall of the seal ring limiting bone 4151, so that the circuit board 5 is retracted in the outer side wall of the seal ring, the circuit board 5 is prevented from obstructing the installation of the seal ring, and the sealing part 426 of the second shell 42 is prevented from falling off the circuit board 5 when the first shell 41 is detached.
Compared with the circuit board 5 arranged on the second casing 42, the circuit board 5 is arranged on the first casing 41 in the embodiment, the circuit board 5 is driven to move downwards through the pressing motion of the first casing 41, so that the second casing 42 is abutted against the detection switch 3, and the design has the advantages that the light emitting module 52, the button cell 54, the detection switch 3, the magnetic induction module 1 and the wireless transmission module 2 can be respectively arranged on two sides of the circuit board 5, so that the space utilization rate of the circuit board 5 is improved. Since the first casing 41 is covered on the second casing 42, the light emitting module 52 needs to be disposed on a surface of the circuit board 5 facing the first casing 41, and light is transmitted through the first casing 41, so that the user can watch the light conveniently; the detection switch 3 needs to be pressed to trigger, and meanwhile, the convenience of replacing the button cell 54, the installation position of the magnetic induction module 1 and the influence of the orientation of the wireless transmission module 2 on the signal are considered, specifically, the convenience of replacing the button cell 54 can be understood that the user can detach the first housing 41 without further detaching the circuit board 5, so that the button cell 54 can be replaced; the installation position of the magnetic induction module 1 is required to correspond to the central position of the magnetic assembly so as to accurately induce the magnetic field change; the wireless transmission module 2 cannot be close to the mounting surface of the metal door, window, etc., and the signal of the wireless transmission module 2 is affected, and the switch state detector 101 needs to be mounted to the door, window through the second housing 42, so the wireless transmission module 2 cannot be disposed on the surface of the circuit board 5 facing the second housing 42. In summary, if the circuit board 5 is disposed on the second housing 42, the light emitting module 52, the button cell 54, the detection switch 3 and the magnetic induction module 1 need to be disposed on the surface of the circuit board 5 facing the first housing 41, which greatly increases the area of the circuit board 5, resulting in a large volume of the switch state detector 101. The inventive circuit board 5 is disposed on the first housing 41 and moves along with the first housing 41, so that the button cell 54, the detection switch 3 are disposed on the lower surface of the circuit board 5, the light emitting module 52, the magnetic induction module 1 and the wireless transmitting module 2 are disposed on the upper surface of the circuit board 5, which improves the space utilization rate of the circuit board 5, reduces the area of the circuit board 5, and further reduces the volume of the switch state detector 101, so that the switch state detector 101 can control the volume to a small extent while realizing the magnetic induction function and the wireless switch function, and in a specific embodiment, the volume of the switch state detector 101 is 41mm×26mm×11mm.
Further, as shown in fig. 7 and 10, the circuit board 5 is provided with an electrode connection portion 551 facing the second housing 42, the electrode connection portion 551 includes a positive electrode spring 5511 and a negative electrode spring 5512, the positive electrode spring 5511 and the negative electrode spring 5512 are respectively abutted against the positive electrode and the negative electrode of a button cell 54, and the electrode connection portion 551 has conductivity, so that the circuit board 5 and the button cell 54 are conductive. The positive pole spring plate 5511 and the negative pole spring plate 5512 are connected to the circuit board 5 through welding, wire connection or other conductive connection modes, the positive pole spring plate 5511 and the negative pole spring plate 5512 are formed by stamping thin iron sheets, the negative pole spring plate 5512 comprises a positive pole conductive portion connected to the circuit board 5 and a negative pole abutting portion tilting towards the button battery 54, the negative pole abutting portion abuts against the upper surface of the button battery 54, the negative pole abutting portion has elasticity, when the circuit board 5 moves along with the first shell 41, the distance between the upper surface of the button battery 54 and the circuit board 5 may be changed, and good contact between the circuit board 5 and the button battery 54 can be ensured due to the elasticity of the negative pole abutting portion. The positive pole shell fragment 5511 is including connecting in the positive pole conductive part of circuit board 5 and the positive pole butt portion of butt in button cell 54 side, and positive pole butt portion is "nearly" font crooked, and the perk towards button cell 54, and negative pole butt portion has elasticity, guarantees to contact well with button cell 54.
Further, as shown in fig. 11 and 7, the second housing 42 is provided with a battery compartment 427 at a position corresponding to the electrode connection portion 551, and the battery compartment 427 is shaped to fit with the shape of the button cell 54, so that the inner side wall of the battery compartment 427 encloses the outer side wall of the button cell 54, so as to limit the button cell 54 in the horizontal direction. The inner side wall of the battery compartment 427 encloses the outer side wall of the button battery 54, which can be understood that the shape enclosed by the battery compartment 427 matches the shape of the side surface of the button battery 54 and is in clearance fit with the button battery 54, so that the button battery 54 can move up and down in the battery compartment 427. At least one elastic supporting member 7 is disposed between the bottom wall of the battery compartment 427 and the button cell 54, and the button cell 54 is clamped between the elastic supporting member 7 and the negative pole elastic sheet 5512, so that the button cell 54 is limited in the vertical direction. The elastic supporting piece 7 is made of elastic materials, including foam, rubber, silica gel, metal spring pieces or other practical elastic materials, and is used for supporting the button cell 54, so that when the button cell 54 is pressed by the circuit board 5 to move, a pressing allowance is provided for the button cell 54, and meanwhile, supporting force is provided, and good contact between the button cell 54 and the negative electrode spring piece 5512 is ensured.
The battery compartment 427 is arranged on the second shell 42, and has the beneficial effects that: (1) easy removal and installation of button cell 54; (2) The structure of the first shell 41 is simplified, and meanwhile, the space of the circuit board 5 is saved, so that the volume of the switch state detector 101 is reduced; (3) The second casing 42 is fixedly installed on the installation surface of the door and the window, the button cell 54 is relatively stable in the second casing 42, if the button cell 54 is arranged on the first casing 41, the button cell 54 moves along with the first casing 41, and the first casing 41 vibrates more in the pressing process, so that the conductive stability of the button cell 54 can be influenced; meanwhile, since the button cell 54 has a large weight and a corresponding large inertia, the pressing hand is heavy if the button cell is arranged in the first housing 41.
Further, as shown in fig. 7, the battery compartment 427 includes a first battery bone position 4271, a second battery bone position 4272, and a third battery bone position 4273, where the first battery bone position 4271 is in a circular arc shape, and the radian of the first battery bone position 4271 is attached to the radian of the side surface of the button battery 54, and the second battery bone position 4272 and the third battery bone position 4273 are separately located at two sides of the first battery bone position 4271, and are enclosed with the first battery bone position 4271 to form the battery compartment 427; the electrode connection portion 551 includes two positive pole shrapnel 5511, and the two positive pole shrapnels 5511 are respectively abutted to the side surface of the button cell 54, and are arranged between the second cell bone 4272 and the third cell bone 4273 at intervals. In this embodiment, the first battery rib 4271 is disposed opposite to the two positive pole spring plates 5511, the positive pole spring plates 5511 are abutted against the side surfaces of the button battery 54, and the button battery 54 is abutted against the first battery rib 4271, and the first battery rib 4271 is arc-shaped, so that the button battery 54 can be prevented from being offset to two sides under the action of the abutment pressure.
In some embodiments, as shown in fig. 5, 10 and 12, the circuit board 5 is provided with a light emitting module 52 facing the first housing 41, the first housing 41 is provided with a light guiding portion 418 at a position corresponding to the light emitting module 52, and the light guiding portion 418 has light guiding property, so that light emitted by the light emitting module 52 can be at least partially led out of the first housing 41. The light emitting module 52 includes electronic components capable of emitting light, and the embodiment adopts an orange-blue dual-color LED lamp, and different color bands and different use states. The light guide 418 has light guiding property, which is understood to mean that the light guide 418 is made of a light-transmitting material, such as transparent plastic, white opaque plastic, silica gel, rubber or other materials capable of transmitting light. The first housing 41 may be provided with a through hole to mount the light guide 418, or the first housing 41 and the light guide 418 may be integrally formed. The light guide 418 guides at least part of the light emitted from the light emitting module 52 to the outside of the first housing 41, and can indicate the operation state of the switch state detector 101.
Further, as shown in fig. 5, the light guiding portion 418 is integrally formed with the first housing 41, the light guiding portion 418 extends toward the circuit board 5 to form a light blocking portion 4181, and the light blocking portion 4181 encloses the light emitting module 52; the inner surface of the first housing 41 is thinned toward the outer surface to form the light guide 418 at the thinned portion. The light blocking portion 4181 is understood as an annular column extending from the top wall of the first accommodating groove 414 of the first housing 41 toward the LED, and can surround the light emitting module 52. Since the light guide 418 and the first housing 41 are integrally formed, both are made of the same material and are made of a light-transmitting material, and light emitted from the LED can be transmitted through the first housing 41 in addition to the light guide 418, so that the entire first housing 41 is light-transmitting. The light blocking portion 4181 serves to block light emitted from the side surface of the LED so that the LED light can only be transmitted through the light guiding portion 418 located thereabove. The thinning process may be understood as thinning the thickness of the housing 4 of the first housing 41 at the opposite position of the LED, and forming the light guiding portion 418 at the thinned portion, and simultaneously, thinning the outer surface of the first housing 41 inwards, so that the light transmission capability of the light guiding portion 418 is greatly enhanced, and other portions of the first housing 41 are thickened, so that the light transmission capability is weakened, and the light transmitted by the light guiding portion 418 is highlighted.
In some embodiments, the housing 4 is provided with a trigger hole (not shown in the figure) at a corresponding position of the detection switch 3, and a key with a shape adapted to the trigger hole is embedded in the trigger hole, and at least a part of the key is displaced in response to the pressing force, so as to press and trigger the detection switch 3. The trigger hole is embedded with a key with a shape adapted to the trigger hole, which may be a circular hole, a square hole or a polygonal hole, and may be formed on any surface of the housing 4, and may be a through hole, a countersunk hole, or a hole with a middle tightening and two expanded ends, which will be described in detail below. The shape of the key is consistent with the trigger hole, and the key can be made of a rigid material or an elastic material, and is matched with the trigger hole, so that the key is limited and the key is prevented from being separated from the trigger hole.
In a specific embodiment, the trigger hole is a circular through hole, the button is of a round platform-shaped structure, the button is made of plastics, the button comprises a button head and a button cap arranged at the tail end of the button head, the button head is in clearance fit with the trigger hole, the diameter of the button cap is larger than the inner diameter of the trigger hole, the button head penetrates through the trigger hole from inside to outside, the button head part exposes out of the outer side of the trigger hole, the button cap is limited on the inner side of the trigger hole, the button cannot be separated from the trigger hole, the button cap is abutted to the detection switch 3, the button can move towards the inner side of the trigger hole in response to the pressing force, the detection switch 3 is abutted to press and trigger the detection switch 3, the detection switch 3 is suitable for a tact switch made of rubber materials, the tact switch has larger reset force, the button can be reset, the rubber materials of the button can be matched with the plastic materials of the button, and the pressing hand feeling can be improved.
In another embodiment, the trigger hole is a countersunk hole, the aperture of the trigger hole facing the inner side is larger than the aperture of the trigger hole facing the outer side, the key is in a truncated cone-shaped structure as in the previous embodiment, and the key cap is matched with the countersunk hole of the trigger hole, so that the key is limited to be separated from the trigger hole, the key of the embodiment is made of rubber, and correspondingly, the detection switch 3 is a metal tact switch or a micro switch, so that better pressing hand feeling can be achieved.
In a further embodiment, the trigger hole is a hole with a middle tightening, the shapes of the two ends of the trigger hole are expanded and are similar to those of diabolos, the key is made of rubber, the shape of the key is matched with that of the trigger hole, the key is also middle tightening, the two ends of the trigger hole are expanded, the key is in interference fit with the trigger hole, the key is extruded into the trigger hole due to self elasticity, waterproof sealing is achieved through interference fit between the key and the trigger hole, and the key cannot be separated from the trigger hole due to the middle tightening structure of the trigger hole. The middle part of button is protruding towards the trigger hole outside and establishes a pressing part, presses the part protrusion in first casing 41 surface for the user presses, and when the pressing force acted on the button, the button inwards sunken, supports and presses and trigger detection switch 3, and when the pressing force was removed, the button was restoreed the original state under the effect of self elasticity and detection switch 3 reset force.
In some embodiments, as shown in fig. 13, the magnetic induction module 1 is disposed inside the housing 4, and a first mark 43 is disposed on an outer surface of the housing 4 at a position corresponding to the magnetic induction module 1, and a distance between the first mark 43 and the magnetic induction module 1 is less than 10mm. The first mark 43 may be understood as a pattern or a recess on the outer surface of the housing 4 for marking the position of the magnetic induction module 1, where the housing 4 includes a first side 44, and the magnetic induction module 1 is disposed at a position close to the first side 44 of the housing 4, so that the magnetic induction module 1 can be close to the outer side of the housing 4 as much as possible, and further, the distance between the magnetic induction module 1 and the magnetic assembly is shortened, and the first mark 43 is disposed at a corresponding position of the magnetic induction module 1 on the first side 44, so as to prompt a user to pay attention to the first side 44 to face the magnetic assembly when the magnetic induction module is mounted, and meanwhile, align the center position of the magnetic attraction piece with the first mark 43, so that the detection distance of the magnetic induction module 1 can be ensured to be accurate. In an embodiment, the magnetic induction module 1 is a hall switch, the hall switch detects magnetic flux density, that is, magnetic induction density, and the magnetic induction density at the middle position of the magnetic assembly is stronger than that at the two ends, so that the center of the magnetic assembly is aligned with the first mark 43, and the magnetic assembly is installed parallel to the first side 44, the distance between the magnetic assembly and the first side 44 is changed, when the distance between the magnetic assembly and the first side 44 is less than 18mm, the switch state detector 101 is identified as "off", and when the distance between the magnetic assembly and the first side 44 is greater than 23mm, the switch state detector 101 is identified as "on". In the installation, the relative position of the middle position of the magnetic component and the first mark 43 in the fourth direction, the fourth direction is parallel to the first side 44 and parallel to the bottom surface of the housing 4, namely, the direction indicated by an arrow in the figure, and experiments prove that in the fourth direction, the distance between the middle position of the magnetic component and the first mark 43 is adjusted to be 10mm, the sensing distance is reduced to 7mm and 11mm, namely, when the distance between the magnetic component and the first side 44 is smaller than 7mm, the switch state detector 101 is identified as being "off', and when the distance between the magnetic component and the first side 44 is larger than 11mm, the switch state detector 101 is identified as being" on ", the sensing distance is already close to the installation limit of the household door and window, and if the sensing distance is reduced again, the switch state detector 101 cannot be installed, so that the distance between the first mark 43 and the magnetic sensing module 1 needs to be controlled, and a user installs the middle position of the magnetic component aligned with the first mark 43, so that the sensing distance after installation can be kept in a usable range.
Further, as shown in fig. 13 and 14, the magnetic assembly includes a third housing 824 and a permanent magnet 81 disposed inside the third housing 824, and a second mark 83 is disposed on an outer surface of the third housing 824, and the second mark 83 corresponds to a center position of the permanent magnet 81. The second mark 83 serves to mark the middle position of the permanent magnet 81, so that a user can align the center position of the permanent magnet 81 with the first mark 43 at the time of installation. The third housing 824 includes a magnet mounting housing 84 and an upper cover 85, the permanent magnet 81 is disposed inside the magnet mounting housing 84, and the upper cover 85 covers the magnet mounting housing 84 and is fixedly connected with the magnet mounting housing 84 through a buckle. The magnet mounting case 84 has a groove-shaped structure with an open top, and a plurality of clamping portions 841 are provided on an inner wall thereof, and the permanent magnets 81 are clamped and fixed by the clamping portions 841 to prevent the permanent magnets 81 from shaking.
In some embodiments, as shown in fig. 15, the housing 4 includes a first surface 45, the housing 4 is fixedly connected to an external mounting surface through the first surface 45, the magnetic assembly includes a third housing 824 and a permanent magnet 81 disposed inside the third housing 824, the third housing 824 includes a second surface 821, and the third housing 824 is fixedly connected to the external mounting surface through the second surface 821. The case 4 is fixedly connected to the external mounting surface through the first surface 45, which may be understood as that the first surface 45 is fixedly mounted to the external mounting surface through bonding, magnetic attraction, screw fixation, etc., and the external mounting surface may be understood as a surface of a door, a window, a drawer, or a wardrobe. The housing 4 and the third housing 824 are respectively mounted on a fixed portion and a movable portion of the door and the window, and the opening and closing state of the door and the window are determined by the opening and closing state detector 101 according to the magnitude of the magnetic field intensity due to the change of the distance between the two portions caused by the opening and closing of the door and the window, which results in the change of the magnetic field intensity induced by the magnetic induction module 1. The exterior mounting surfaces to which the housing 4 and the third housing 824 are mounted are not the same, and in one embodiment the housing 4 is adhered to the door frame by double sided adhesive and the third housing 824 is adhered to the door panel by double sided adhesive.
The distance between the magnetic induction module 1 and the first surface 45 is set to be a first distance, the distance between the center position of the permanent magnet 81 and the second surface 821 is set to be a second distance, and the absolute value of the difference between the first distance and the second distance is smaller than 8mm. Since the first surface 45 and the second surface 821 are fixed on the external mounting surface, the difference between the first distance and the second distance is set to be less than 8mm, so that the center position of the permanent magnet 81 and the position of the magnetic induction module 1 are close to each other in the first direction, and the induction distance of the magnetic induction module 1 is accurate, and the first direction is the direction in which the housing 4 faces the first surface 45 and is perpendicular to the first surface 45, namely, the direction indicated by the arrow in fig. 15. In this embodiment, through experiments by research and development personnel, when the installation interval between the housing 4 and the third housing 824 is 10mm, the switch state detector 101 is identified as "off" when the distance between the magnetic induction module 1 and the center position of the permanent magnet 81 in the first direction is less than 16mm, and the switch state detector 101 is identified as "on" when the distance between the magnetic induction module 1 and the center position of the permanent magnet 81 in the first direction is greater than 21 mm. Therefore, the distance between the center of the permanent magnet 81 and the magnetic induction module 1 in the first direction cannot be too large, and when the distance is less than 8mm, the induction distance is optimal.
Further, as shown in fig. 8, the first surface 45 and the second surface 821 are respectively provided with a double-sided adhesive part 91, and the double-sided adhesive part 91 may be a groove or a mark. The shape of the double-sided tape pasting part 91 is adapted to the double-sided tape 9, so that the double-sided tape 9 can be pasted on the double-sided tape pasting part 91, and the double-sided tape pasting part 91 is convenient for pasting the double-sided tape on the center of the first surface 45 or the second surface 821.
According to another aspect of the present invention, as shown in fig. 2, there is also provided a switch state detection method applied to a switch state detector 101; the detection method is characterized by comprising the following steps: detecting a distance parameter between a magnetic element 8 and a sensing element 100; the distance parameter is used to indicate the distance between the magnetic assembly 8 and the inductive assembly 100;
if the distance parameter is gradually reduced to a first interval taking a first threshold value as an end point, a first message is sent to the outside; the first message is used for indicating that a target object associated with the sensing assembly 100 is in an open state;
if the distance parameter is gradually increased to a second interval taking a second threshold value as a starting point, a second message is sent to the outside; the second message is used for indicating that the target object associated with the sensing assembly 100 is in a closed state; the first interval and the second interval are not coincident, and the difference value between the second threshold value and the first threshold value is greater than or equal to 1mm.
The technical details of the above method are described in detail above, and are not described here again. The existing switch state detector is too small in the distinction of the induction conditions of the two states of "on" and "off", so that when the distance between the magnetic component 8 and the induction component 100 reaches a critical value, the magnetic induction intensity generated by the magnetic component 8 is influenced by the environment and fluctuates, and the magnetic induction module 1 in the induction component 100 detects that the magnetic induction intensity also fluctuates, so that the induction state of the induction component 100 is repeatedly switched between "on" and "off", so that the intelligent device 103 connected with the intelligent device repeatedly switches the working state, and the controlled intelligent device is damaged. The applicant discloses a switch state detector 101, by setting the difference between the first threshold and the second threshold to be greater than or equal to 1mm, so that a hysteresis interval of at least 1mm is provided between the first interval and the second interval, when the distance parameter reaches the hysteresis interval, the sensing state of the sensing component 100 is not changed, and the last sensing state is maintained. When the hysteresis interval which is more than or equal to 1mm is set, the sensing state of the sensing assembly 100 can be effectively prevented from being repeatedly switched when the distance parameter reaches a certain critical value, so that the intelligent device 103 connected with the sensing assembly 100 is protected from being repeatedly switched to the working state.
In some embodiments, the method further comprises: if the distance parameter is detected to be changed from the second interval to the first interval, a first message is sent to the outside; and if the distance parameter is detected to be changed from the first interval to the second interval, sending a second message to the outside.
The technical details of the above method are described in detail above, and are not described here again. Because of the existence of the hysteresis section, the situation that the distance parameter enters the first section or the second section from the hysteresis section in response to the position change of the magnetic component 8 and the sensing component 100 may occur, at this time, it needs to be judged whether the section before entering the hysteresis section is the same as the section after entering the hysteresis section, if so, no message is sent, and if not, a corresponding message is sent, so that repeated sending of the message can be effectively prevented.
In some embodiments, the method further comprises: the sensing component 100 is triggered to generate and send a third message to the outside in response to an external pressing force; the third message is used for controlling the working state of the external device paired with the sensing component 100. The technical details of the above method are described in detail above, and are not described here again. The method enables the switch state detector 101 to be used as a sensor for detecting the opening and closing of doors and windows and also can be used as a small wireless switch.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (40)

1. A switch state detector, comprising:
a magnetic assembly for generating a magnetic field;
a sensing assembly disposed independently of the magnetic assembly and capable of changing position relative to the magnetic assembly; and the induction component is used for detecting magnetic induction intensity and is configured to:
when the distance parameter between the magnetic component and the induction component is gradually reduced to a first interval taking a first threshold value as an end point, a first message is sent to the outside; the first message is used for indicating that a target object associated with the sensing assembly is in an open state; when the distance parameter between the magnetic component and the induction component is gradually increased to a second interval taking a second threshold value as a starting point, a second message is sent to the outside; the second message is used for indicating that a target object associated with the sensing assembly is in a closed state; the distance parameter is associated with the magnetic induction;
The first interval and the second interval are not coincident, and the difference value between the second threshold value and the first threshold value is greater than or equal to 1mm.
2. The switch-state detector of claim 1, wherein the sensing assembly is further configured to: when the distance parameter is changed from the second interval to the first interval in response to the position change between the magnetic component and the sensing component, a first message is sent to the outside; and when the distance parameter is changed from the first interval to the second interval in response to the position change between the magnetic component and the sensing component, sending a second message to the outside.
3. The switch-state detector of claim 1, wherein the sensing assembly is further configured to: and sending a fourth message to the outside at a first appointed time after the first message or the second message is sent, wherein the fourth message is used for indicating whether the current state of the target object is a closed state or an open state.
4. The switch-state detector of claim 1, wherein the sensing assembly comprises:
the magnetic induction module is used for inducing magnetic induction intensity and generating a level signal;
A wireless transmission module electrically connected with the magnetic induction module and configured to:
and when the level signal is detected to jump, sending a first message or a second message to the outside.
5. The switch-state detector of claim 4, wherein the level signals include a first level signal and a second level signal opposite the first level signal;
when the distance parameter between the induction component and the magnetic component is in a first interval, the magnetic induction module continuously outputs a first level signal; when the distance parameter between the induction component and the magnetic component is in a second interval, the magnetic induction module continuously outputs a second level signal; when the distance parameter enters a second interval from a first interval, the level signal output by the magnetic induction module jumps from the first level signal to a second level signal, and the wireless transmitting module externally transmits a second message; when the distance parameter enters the first interval from the second interval, the level signal output by the magnetic induction module jumps from the second level signal to the first level signal, and the wireless transmitting module transmits a first message outwards.
6. The switch-state detector of claim 4, wherein the level signals include a first level signal and a second level signal opposite the first level signal;
When the distance parameter between the induction component and the magnetic component is in a first interval, the magnetic induction module continuously outputs a first level signal; when the distance parameter between the induction component and the magnetic component is in a second interval, the magnetic induction module continuously outputs a second level signal; when the distance parameter enters a second interval from the first interval through a third interval, the level signal output by the magnetic induction module jumps to a second level signal, and the wireless transmitting module transmits a second message to the outside; when the distance parameter enters a first interval from a second interval through a third interval, the level signal output by the magnetic induction module jumps to a first level signal, and the wireless transmitting module externally transmits a first message; the third section is a section greater than the first threshold and less than the second threshold.
7. The switch state detector of claim 1, wherein the sensing assembly includes a magnetic induction module for sensing magnetic induction and generating a voltage signal;
and the wireless transmitting module is electrically connected with the magnetic induction module to receive the voltage signal, compares the voltage signal with a reference voltage and further transmits a first message or a second message according to a comparison result.
8. The switch-state detector of claim 7, wherein the reference voltage comprises a first reference voltage value and a second reference voltage value; the wireless transmit module is configured to:
when the voltage signal is gradually reduced to be smaller than or equal to a first reference voltage value, a first message is transmitted; the first reference voltage value characterizes the distance between the induction component and the magnetic component as a first threshold value;
when the voltage signal is gradually increased to be greater than or equal to a second reference voltage value, a second message is transmitted; the second reference voltage value characterizes a second threshold distance of the inductive component from the magnetic component.
9. The switch-state detector of claim 8, wherein the first threshold comprises a plurality of first preset thresholds and is configured to: being able to switch between a plurality of said first preset thresholds;
the second threshold includes a plurality of second preset thresholds and is configured to: the switching between a plurality of said second preset thresholds is enabled.
10. The switch state detector of any of claims 4-6, wherein the wireless transmission module is configured to enter the low power mode within a second specified time after the first message or the second message is sent.
11. The switch-state detector of claim 10, wherein the wireless transmit module is configured to: in a low power consumption mode, the level signal sent by the magnetic induction module is awakened; the level signal includes a high level or a low level;
when the wireless transmitting module is awakened by a high level, setting the next awakening condition as low level awakening;
and when the wireless transmitting module is awakened by the low level, setting the next awakening condition as high level awakening.
12. The switch-state detector of any one of claims 4 and 7, wherein the sensing assembly is further configured to detect an external press manipulation to generate a third message; the third message is used for controlling the working state of the external equipment matched with the sensing assembly.
13. The switch-state detector of claim 12, wherein the sensing assembly further comprises a housing and a detection switch coupled to the housing and capable of being triggered based on depression of the housing to generate a trigger signal;
the detection switch is electrically connected to the wireless transmission module such that: and the wireless transmitting module transmits the third message outwards based on the trigger signal.
14. The switch state detector of claim 13, wherein the wireless transmitting module is configured to enter a low power mode within a third specified time after the first, second, or third message is sent, and to wake up in response to the trigger signal in the low power mode.
15. The switch-state detector of claim 14, wherein the wireless transmit module is further configured to: if the duration that the detection switch is continuously triggered is detected to be longer than the appointed duration, a low power consumption mode is entered, and the next wake-up condition is set as the detection switch to be in a trigger-releasing state.
16. The switch-state detector of claim 1, wherein the sensing assembly comprises:
the shell body is provided with a plurality of grooves,
the magnetic induction module is arranged in the shell and used for inducing magnetic induction intensity;
the wireless transmitting module is arranged in the shell and is electrically connected with the magnetic induction module; and is configured to:
when the magnetic induction module detects that the absolute value of the magnetic induction intensity is gradually increased to be larger than the first magnetic induction intensity, the wireless transmitting module externally transmits the first message; when the magnetic induction module detects that the absolute value of the magnetic induction intensity is gradually reduced to be smaller than the second magnetic induction intensity, the wireless transmitting module externally transmits the second message; the first magnetic induction corresponds to the magnetic induction when the distance parameter reaches the first threshold value, and the second magnetic induction corresponds to the magnetic induction when the distance parameter reaches the second threshold value;
The detection switch is arranged on the shell and is electrically connected with the wireless transmitting module, and the detection switch can be triggered in response to a pressing force so that the wireless transmitting module can send a third message outwards.
17. The switch state detector of claim 16, wherein the housing comprises a first housing and a second housing, the first housing is movably connected with the second housing, the detection switch is disposed between the first housing and the second housing, the first housing generates a pressing motion in response to the pressing force, and a distance between the first housing and the second housing is reduced, so that the first housing or the second housing is pressed against and triggers the detection switch.
18. The switch state detector of claim 17, wherein the first housing is provided with at least one first buckle, the second housing is provided with a first buckling position at a corresponding position of the first buckle, and the first buckle is buckled at the first buckling position, so that the first buckling position limits a limit position of the first buckle moving in a first direction; in a second direction, a movable gap exists between the first buckling position and the first buckle, so that the first buckle can generate relative displacement relative to the first buckling position in the second direction; the first direction is a direction of the first shell away from the second shell, and the second direction is opposite to the first direction.
19. The switch state detector of claim 18, wherein the first buckle is disposed at one end of the first housing, the other end of the first housing is provided with a second buckle, the second housing is provided with a second buckling position at a corresponding position of the second buckle, the second buckle is buckled at the second buckling position, and the one end of the first housing is pivoted based on the second buckling position in response to the pressing force, so as to generate the pressing motion.
20. The switch state detector of claim 18, wherein the first clasp is four and evenly distributed along the circumference of the first housing; the four first buckles are buckled in the corresponding first buckling positions respectively, and a movable gap exists between each first buckling position and the corresponding first buckle so as to realize movable connection of the first shell and the second shell, and when the first shell responds to the pressing force to generate pressing movement, the first shell drives at least one first buckle to generate relative displacement.
21. The switch-state detector of any of claims 17-20, further comprising a seal disposed circumferentially about the first housing and clamped between the first housing and the second housing to achieve a sealed connection of the first housing and the second housing.
22. The switch-state detector of claim 21, wherein the first housing generates the pressing motion in response to the pressing force, against which the seal member is elastically deformed, such that the seal member generates a restoring force against the elastic deformation, the restoring force supporting the first housing to its original position when the pressing force is removed.
23. The switch-state detector of claim 22, wherein the seal is a seal ring having a cross-section with a width in a first direction that is perpendicular to the first direction that is a direction of the first housing away from the second housing that is greater than a width of the cross-section in a third direction.
24. The switch-state detector of claim 22, wherein the first housing includes a first end and a second end remote from the first end, the detection switch being disposed at the first end of the first housing;
the sealing piece is a sealing ring, the cross section of the sealing ring at the position corresponding to the first end is set to be a first cross section, the cross section of the sealing ring at the position corresponding to the second end is set to be a second cross section, and the area of the first cross section is larger than that of the second cross section.
25. The switch state detector of claim 21, wherein the first housing defines a first receiving slot toward the second housing, the first receiving slot having a shape matching an outer shape of the second housing such that the first receiving slot covers the second housing and the second housing is at least partially enclosed in the first receiving slot;
the sealing piece is arranged in the first accommodating groove and clamped between the inner wall of the first accommodating groove and the second shell, so that a sealing cavity is formed by the first accommodating groove and the second shell.
26. The switch-state detector of claim 25, wherein the second housing includes a bottom shell and a sealing portion extending circumferentially from an edge of the bottom shell, the sealing portion pressing the sealing member against an inner wall of the first receiving groove to achieve a sealed connection between the first housing and the second housing.
27. The switch state detector of claim 26, wherein the seal member is a seal ring, the side wall of the first receiving groove is biased circumferentially inward out of the seal ring limiting portion to form an annular seal ring placement area between the seal ring limiting portion and the side wall of the first receiving groove, the seal ring being placed in and clamped to the seal ring placement area; the sealing ring limiting part comprises a plurality of sealing ring limiting bones which extend downwards from the top wall of the accommodating groove, and the sealing ring limiting bones are combined to form the sealing ring limiting part.
28. The switch state detector of claim 25, further comprising a circuit board mounted to the first housing and disposed within the sealed cavity, the detection switch being disposed on a side of the circuit board facing the second housing; when the first shell responds to the pressing force to generate the pressing motion, the first shell drives the detection switch to move towards the second shell, and then the second shell is pressed against and triggers the detection switch.
29. The switch state detector of claim 28, wherein the circuit board is provided with an electrode connection portion facing the second housing, the electrode connection portion including a positive pole spring and a negative pole spring, the positive pole spring and the negative pole spring respectively abutting against a positive pole and a negative pole of a button cell, the electrode connection portion having electrical conductivity to make the circuit board electrically conductive with the button cell.
30. The switch state detector of claim 29, wherein a battery compartment is provided at a corresponding position of the electrode connection portion of the second housing, and the shape of the battery compartment is adapted to the shape of the button cell, so that the inner side wall of the battery compartment encloses the outer side wall of the button cell to limit the button cell in the horizontal direction;
At least one elastic support piece is arranged between the bottom wall of the battery bin and the button battery, and the button battery is clamped between the elastic support piece and the negative pole shrapnel, so that the button battery is limited in the vertical direction.
31. The switch state detector of claim 28, wherein the circuit board is provided with a light emitting module facing the first housing, and the first housing is provided with a light guiding part at a corresponding position of the light emitting module, and the light guiding part has light guiding property and can at least partially guide light emitted by the light emitting module out of the first housing.
32. The switch-state detector of claim 31, wherein the light guide is integrally formed with the first housing, the light guide extending out of a light blocking portion toward the circuit board, the light blocking portion surrounding the light emitting module; the inner surface of the first shell faces the outer surface and is thinned so as to form the light guide part at the thinned part.
33. The switch state detector of claim 16, wherein the housing has a trigger hole formed in a corresponding position of the detection switch, and a key having a shape adapted to the trigger hole is embedded in the trigger hole, and the key is displaced at least partially in response to the pressing force, so as to press against and trigger the detection switch.
34. The switch state detector of claim 16, wherein the magnetic induction module is disposed inside the housing, and a first mark is disposed on an outer surface of the housing at a position corresponding to the magnetic induction module, and a distance between the first mark and the magnetic induction module is less than 10mm.
35. The switch-state detector of claim 34, wherein the magnetic assembly comprises a third housing and a permanent magnet disposed inside the third housing, an outer surface of the third housing being provided with a second marker, the second marker corresponding to a center position of the permanent magnet.
36. The switch-state detector of claim 16, wherein the housing includes a first surface through which the housing is fixedly attached to an external mounting surface, the magnetic assembly includes a third housing including a second surface and a permanent magnet disposed within the third housing, the third housing being fixedly attached to the external mounting surface through the second surface;
the distance between the magnetic induction module and the first surface is set to be a first distance, the distance between the center position of the permanent magnet and the second surface is set to be a second distance, and the absolute value of the difference value between the first distance and the second distance is smaller than 8mm.
37. A switch state detection method is applied to a switch state detector; the detection method is characterized by comprising the following steps:
detecting a distance parameter between a magnetic component and an induction component; the distance parameter is used for indicating the distance between the magnetic component and the induction component;
if the distance parameter is gradually reduced to a first interval taking a first threshold value as an end point, a first message is sent to the outside; the first message is used for indicating that a target object associated with the sensing assembly is in an open state;
if the distance parameter is gradually increased to a second interval taking a second threshold value as a starting point, a second message is sent to the outside; the second message is used for indicating that a target object associated with the sensing assembly is in a closed state;
the first interval and the second interval are not coincident, and the difference value between the second threshold value and the first threshold value is greater than or equal to 1mm.
38. The method of probing as recited in claim 37 wherein the method further comprises:
if the distance parameter is detected to be changed from the second interval to the first interval, a first message is sent to the outside; and if the distance parameter is detected to be changed from the first interval to the second interval, sending a second message to the outside.
39. The method of probing as recited in claim 37 wherein the method further comprises:
the sensing component is triggered in response to an external pressing force so as to generate and send a third message outwards; the third message is used for controlling the working state of the external equipment matched with the sensing assembly.
40. A switch state detection system comprising a smart terminal, a gateway and a switch state detector according to any of claims 1 to 36 and/or a switch state detector capable of performing the detection method according to any of claims 37 to 39; the switch state detector can be communicated with the gateway after joining the network where the gateway is located; the intelligent terminal can directly or indirectly communicate with the gateway;
the switch state detector is used for: reporting a detection event to the gateway; the detection event is used for indicating an action event or a state event of a target object associated with the switch state detector; the action event comprises that the target object is opened or closed, and the state event comprises that the target object is in an opened state or in a closed state;
The gateway is used for: feeding back the detection event to the intelligent terminal and/or controlling a trigger result associated with the switch state detector to be executed based on a trigger rule;
the intelligent terminal is used for: acquiring trigger rules defined by a user and sending the trigger rules to the gateway so that: the gateway receives and stores the trigger rule; the triggering rule defines a triggering relationship between at least one triggering condition and at least one triggering result, wherein the triggering condition is a detection event of the switch state detector, and the triggering result is an executable function of an intelligent device in a network where the gateway is located.
CN202210804310.3A 2022-07-07 2022-07-07 Switch state detector, detection method and detection system Pending CN117404996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210804310.3A CN117404996A (en) 2022-07-07 2022-07-07 Switch state detector, detection method and detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210804310.3A CN117404996A (en) 2022-07-07 2022-07-07 Switch state detector, detection method and detection system

Publications (1)

Publication Number Publication Date
CN117404996A true CN117404996A (en) 2024-01-16

Family

ID=89496765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210804310.3A Pending CN117404996A (en) 2022-07-07 2022-07-07 Switch state detector, detection method and detection system

Country Status (1)

Country Link
CN (1) CN117404996A (en)

Similar Documents

Publication Publication Date Title
TW201415752A (en) Operating clock synchronization adjusting method for wireless power system
CN110558687B (en) Wrist-worn device
CN113410971A (en) Self-generating switch and processing method and control system thereof
CN113433841A (en) Self-generating wireless switch, controlled equipment and control system
CN216649662U (en) Self-generating wireless switch
CN117404996A (en) Switch state detector, detection method and detection system
CN217765011U (en) Switch state detector
RU2649312C2 (en) Remote control device
CN210090955U (en) Self-powered module, wireless control switch and wireless control system
CN211060421U (en) Electric water heater with remote controller
US20200288554A1 (en) Systems and methods for providing illumination
CN210574183U (en) Anti-dismounting device of smoke alarm base
CN209860955U (en) Subassembly and cell-phone shell with infrared remote control function
CN104166342B (en) A kind of intelligent clock
TWM466428U (en) Multi-functional remote control device
CN207882680U (en) Intelligent housing panel based on image sensing sensing
CN218630952U (en) Door magnetic alarm adopting Cat.1 system communication
CN214623843U (en) Novel door magnetic alarm
CN114513567B (en) Terminal protection shell, communication tag, control method, device and system
JP2001309451A (en) Remote control transmitter for switching device, remote control receiver for the switching device and remote control system for the switching device
CN213601361U (en) Ultra-thin self-powered wireless switch
CN219642375U (en) Sedentary prompting device
CN114766097B (en) Pose conversion device, human body sensor, processing method thereof and control system
CN214038159U (en) Wirelessly-chargeable silica gel racket lamp
CN113130253B (en) Device with closed shell for magnet control switch

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