CN113496580A - Method and device for setting door and window sensor, electronic equipment and storage medium - Google Patents
Method and device for setting door and window sensor, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113496580A CN113496580A CN202010268688.7A CN202010268688A CN113496580A CN 113496580 A CN113496580 A CN 113496580A CN 202010268688 A CN202010268688 A CN 202010268688A CN 113496580 A CN113496580 A CN 113496580A
- Authority
- CN
- China
- Prior art keywords
- module
- magnetic induction
- magnetic
- processing unit
- door
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B13/00—Burglar, theft or intruder alarms
- G08B13/02—Mechanical actuation
- G08B13/08—Mechanical actuation by opening, e.g. of door, of window, of drawer, of shutter, of curtain, of blind
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B13/00—Burglar, theft or intruder alarms
- G08B13/22—Electrical actuation
- G08B13/24—Electrical actuation by interference with electromagnetic field distribution
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Burglar Alarm Systems (AREA)
- Switches That Are Operated By Magnetic Or Electric Fields (AREA)
Abstract
The invention provides a method and a device for setting a door and window sensor, electronic equipment and a storage medium, wherein the door and window sensor comprises a magnetic module and an induction module which correspond to each other, and the setting method comprises the following steps: acquiring first magnetic induction intensity, wherein the first magnetic induction intensity corresponds to a first preset distance between the induction module and the magnetic module; setting a working point of the induction module according to the first magnetic induction intensity; acquiring second magnetic induction intensity, wherein the second magnetic induction intensity corresponds to a second preset distance between the induction module and the magnetic module; and setting a release point of the induction module according to the second magnetic induction intensity. According to the setting method and device of the door and window sensor, the electronic equipment and the storage medium, the sensing distance of the door and window sensor is adjusted by setting the working point and the release point of the sensing module, and the application range of the door and window sensor is widened.
Description
Technical Field
The invention relates to the technical field of environment sensors, in particular to a method and a device for setting a door and window sensor, electronic equipment and a storage medium.
Background
With the rapid development of the global intelligent home industry, the cognition of the user on the intelligent home is gradually enhanced, and the whole market is in a rapid climbing stage. Door and window sensors have been heavily invested by numerous internet macros as an important segment in smart homes. The door and window sensor is used for detecting whether doors, windows, drawers and the like are illegally opened or moved, consists of a wireless transmitter and a magnetic block, is used as a first defense line of an intelligent household security part, can be intelligently linked with a final management system and an alarm system, and starts corresponding light or modes and the like a synchronous disarming alarm. The door and window sensor is composed of a wireless transmitter and a magnetic block, and has a sensing distance, when the distance between the wireless transmitter and the magnetic block is larger than the sensing distance, the door and window sensor can trigger the alarm system until the distance between the wireless transmitter and the magnetic block is smaller than the sensing distance.
The sensing distance of the existing door and window sensor finished product is determined before leaving a factory, whether the sensor can be normally triggered or not is determined according to product parameters before installation, and a proper door and window sensor needs to be selected to be matched with a specific door and window sensor, so that the application range of the sensor is greatly reduced, and the actual requirements of users cannot be met.
Disclosure of Invention
The present invention is directed to a method and an apparatus for installing a door/window sensor, an electronic device, and a storage medium, to solve the above problems. The embodiment of the invention achieves the aim through the following technical scheme.
In a first aspect, the present invention provides a method for setting a door/window sensor, where the door/window sensor includes a magnetic module and an induction module corresponding to each other, and the setting method includes: acquiring first magnetic induction intensity, wherein the first magnetic induction intensity corresponds to a first preset distance between the induction module and the magnetic module; setting a working point of the induction module according to the first magnetic induction intensity; acquiring second magnetic induction intensity, wherein the second magnetic induction intensity corresponds to a second preset distance between the induction module and the magnetic module; and setting a release point of the induction module according to the second magnetic induction intensity.
In a second aspect, the present invention also provides a setting device for a door and window sensor, the setting device comprising: the first acquisition module is used for acquiring first magnetic induction intensity, and the first magnetic induction intensity corresponds to a first preset distance between the induction module and the magnetic module; the first setting module is used for setting the working point of the induction module according to the first magnetic induction intensity; the second acquisition module is used for acquiring second magnetic induction intensity, and the second magnetic induction intensity corresponds to a second preset distance between the induction module and the magnetic module; and the second setting module is used for setting a release point of the induction module according to the second magnetic induction intensity.
In a third aspect, the present invention further provides an electronic device, including: one or more processing units; a storage unit; one or more application programs, wherein the one or more application programs are stored in the storage unit and configured to be executed by the one or more processing units, the one or more programs configured to perform the above-described methods.
In a fourth aspect, the present invention further provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processing unit to execute the method.
Compared with the prior art, the setting method and device of the door and window sensor, the electronic device and the storage medium provided by the invention realize the adjustment of the sensing distance of the door and window sensor by setting the working point and the release point of the sensing module, and increase the application range of the door and window sensor.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the technical solution in the present embodiment, the drawings needed to be used in the description of the embodiment will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a door/window sensor according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a sensing module according to an embodiment of the present invention.
Fig. 3 is a block diagram of a door/window sensor according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a magnetic module according to an embodiment of the present invention.
Fig. 5 is a flowchart of a method for setting a door/window sensor according to an embodiment of the present invention.
Fig. 6 is a flowchart of a method for setting an induction module according to a first magnetic induction according to an embodiment of the present invention.
Fig. 7 is a flowchart of a method for setting an induction module according to a second magnetic induction according to an embodiment of the present invention.
Fig. 8 is a flowchart of a method for obtaining a first magnetic induction according to an embodiment of the present invention.
FIG. 9 is a graph of magnetic induction as a function of distance between a magnetic module and an induction module provided by an embodiment of the present invention.
FIG. 10 is a flowchart of a method for obtaining a second magnetic induction according to an embodiment of the present invention.
Fig. 11 is a block diagram of a setting device of a door/window sensor according to an embodiment of the present invention.
Fig. 12 is a block diagram of an electronic device according to an embodiment of the present invention.
Fig. 13 is a storage unit for storing or carrying a program code implementing a setting method of a door/window sensor according to an embodiment of the present invention.
Detailed Description
To facilitate an understanding of the present embodiments, the present embodiments will be described more fully below with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the present examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The inventors of the present application have found that, to date, door and window sensors have not become widespread. Accordingly, the inventors of the present application have conducted extensive studies and found that the conventional door/window sensor cannot adjust the sensing distance in many cases. That is, the sensing distance of the finished door and window sensors is determined before the factory, and whether the sensors can be normally triggered or not is determined according to product parameters before installation. When different doors and windows need to be adapted, different models of door and window sensors need to be selected for adaptation. These have greatly limited the application of door and window sensors. The inventor of the present application has proposed a method for setting a door sensor and a window sensor of the present application, and embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a door/window sensor 1 according to the present invention includes a sensing module 10 and a magnetic module 20.
The door and window sensor 1 provided in the embodiment can be used for general doors and windows, and can also be used for important containers such as drawers and safes. For example, for a double-opening window, magnetic module 20 may be mounted in one of the windows and sensing module 10 may be mounted in the other window. For example, for a security door, one of the magnetic module 20 or the sensing module 10 may be mounted on a door panel, and the other structure may be mounted on a door frame or a wall, so that when a lawbreaker opens a window or a security door, the door/window sensor 1 may send a warning signal to remind a user.
Referring to fig. 2 and 3, the sensing module 10 includes a first housing 11, a second housing 12, a circuit board assembly 14 and a battery 17, the first housing 11 and the second housing 12 cooperate to form an accommodating space 13, and the circuit board assembly 14 is accommodated in the accommodating space 13. The battery 17 is accommodated in the accommodating space 13, and the battery 17 is adjacent to and electrically connected with the circuit board assembly 14 to supply power to the circuit board assembly 14.
The circuit board assembly 14 includes a circuit board 141, a hall sensing unit 143, a processing unit 145, and a detection switch 147, wherein the hall sensing unit 143, the processing unit 145, and the detection switch 147 are mounted to the circuit board 141.
In this embodiment, the hall sensing unit 143 may be a magnetic induction sensor that can convert the magnetic property change of the sensing element caused by the magnetic field into an electrical signal, such as a reed switch. The operating principle of the hall sensing unit 143 is as follows: in the armed state of the door/window sensor 1, the distance between the hall sensor unit 143 and the permanent magnet 25 does not exceed a predetermined distance, for example, 15 mm. When a person pushes a door, a window or a drawer provided with the door and window sensor 1, the hall sensing unit 143 triggers an alarm signal because the distance between the hall sensing unit 143 and the permanent magnet 25 exceeds 15mm, and the processing unit 145 sends the alarm signal and informs the user. The hall sensing unit 143 may be used to detect a state of the door and window and output state information, such as opening or closing of the door and window, and the hall sensing unit 143 may also be electrically connected to the processing unit 145 to transmit the state information to the processing unit 145.
In other embodiments, the hall sensing unit 143 may also be a device that converts the performance change of the sensing element caused by external factors such as current, stress strain, temperature, light, etc. into an electrical signal, such as a pressure sensor, a temperature sensor, an infrared sensor, etc.
The detection switch 147 abuts against the second housing 12. Specifically, in the present embodiment, the detection switch 147 may be a pressure sensitive switch or a microswitch, and is in an off state when abutting against the second housing 12 and in an on state when departing from the second housing 12. The detection switch 147 is substantially triangular, and one corner of the triangle may abut against the second housing 12.
The processing unit 145 is in signal connection with the hall sensing unit 143, and the processing unit 145 can be used for receiving the status information detected by the hall sensing unit 143 and sending out a corresponding control signal to control the indicator lamp 142 to emit light. The processing unit 145 may also be used to issue an alarm signal, in particular, the processing unit 145 may generate an alarm signal when the detection switch 147 is out of the second housing 12.
The circuit board assembly 14 may further include components such as an integrated circuit, a capacitor, and a resistor, wherein the structure and location of the integrated circuit, the capacitor, and the resistor may be referred to in the art and will not be described herein.
The circuit board assembly 14 further includes an indicator light 142, the indicator light 142 being mounted to the circuit board 141, the indicator light 142 being electrically connected to the processing unit 145 and the battery 17. The indicator lamp 142 is adapted to be turned on when the processing unit 145 generates an alarm signal. The indicator lamp 142 may emit light intermittently to exhibit a flickering light effect, thereby alerting a user. In the present embodiment, the indicator lamp 142 is disposed toward the first housing 11, so as to guide the light emitted from the indicator lamp 142 to the outside of the sensing module 10 as much as possible.
Referring to fig. 3, the circuit board assembly 14 further includes an antenna 144, and the antenna 144 is mounted on the circuit board 141 and electrically connected to the processing unit 145. The antenna 144 is used for transmitting the alarm signal to the user terminal, so that the terminal can check the opening and closing state of the door and window at the moment.
The sensing module 10 further includes a storage unit 104, the storage unit 104 is electrically connected to the processing unit 145, and the storage unit 104 can be used for storing the opening and closing state information of the door and window, so that the user can know the opening and closing state of the door and window at any time. In this embodiment, the storage unit 104 further stores a fitting function of the magnetic induction and the distance between the induction module and the magnetic module.
The sensing module 10 further includes an input button 100 installed on the first housing 11, specifically, the input button 100 is installed through the first housing 11 and installed on the circuit board assembly 14, and the input button 100 may be used to set an operating point and a releasing point of the door/window sensor 1.
The magnetic module 20 cooperates with the hall sensing unit 143 so that the processing unit 145 generates an alarm signal when the magnetic hall sensing unit 13 leaves the range of action of the magnetic module 20. Specifically, after the door/window sensor 1 is installed, the magnetic module 20 has a preset distance from the hall sensing unit 143, the magnetic module 20 is installed on one of the windows, and the sensing module 10 is installed on the other window. When the window is opened, the distance between the magnetic module 20 and the sensing module 10 changes, that is, the distance between the magnetic module 20 and the hall sensing unit 143 is greater than a preset distance, the magnetic field changes as the distance increases, so that the hall sensing unit 143 converts the magnetic signal into an electrical signal, and the processing unit 145 receives the electrical signal and sends an alarm signal.
Referring to fig. 4, the magnetic module 20 includes a first cover 21, a second cover 23 and a permanent magnet 25, and the first cover 21 and the second cover 23 are engaged to receive the permanent magnet 25. Specifically, one side of the second cover 23 close to the first cover 21 includes a plurality of limiting ribs 27, and the permanent magnet 25 is engaged with the plurality of limiting ribs 27. The side of the second cover 23 away from the first cover 21 may also be coated with adhesive to mount the magnetic module on the door/window.
Referring to fig. 5, based on the door/window sensor, the present invention provides a method for setting a door/window sensor, including steps S110 to S140.
S110: the method comprises the steps of obtaining first magnetic induction intensity, wherein the first magnetic induction intensity corresponds to a first preset distance between an induction module and a magnetic module.
Wherein the first predetermined distance may be a gap of the door or window, and is generally set to 0-3 mm. The first predetermined distance may be measured by an auxiliary tool such as a ruler or may be measured by the user's own experience. In one embodiment, the first preset distance may be obtained by keeping the magnetic module still and moving the sensing module until the distance between the sensing module and the magnetic module is equal to the first preset distance. In another embodiment, the obtaining of the first preset distance may be keeping the sensing module still and moving the magnetic module until the distance between the sensing module and the magnetic module is equal to the first preset distance. In yet another embodiment, the obtaining of the first preset distance may be moving the magnetic module and the induction module in opposite directions simultaneously until the distance between the induction module and the magnetic module is equal to the first preset distance.
The first magnetic induction intensity corresponds to a first preset distance, so that the first magnetic induction intensity corresponding to the first preset distance can be determined according to the first preset distance set by a user, and the first magnetic induction intensity can be obtained by measuring the distance between the induction module and the magnetic module. As one mode, a calculation formula may be prestored in the storage unit, where the input of the formula is distance and the output of the formula is magnetic induction, so that by inputting the first preset distance, the first magnetic induction corresponding to the first preset distance is obtained. As another way, a mapping table between magnetic induction and distance may be pre-stored in the storage unit, so that the first magnetic induction corresponding to the first preset distance may be found according to the first preset distance based on the mapping table.
In this embodiment, the step S110 of acquiring the first magnetic induction includes: the processing unit acquires the first magnetic induction intensity from the Hall sensing unit.
The processing unit may obtain the first magnetic induction intensity from the hall sensing unit, where the hall sensing unit sends the detected first magnetic induction intensity to the processing unit; the processing unit sends a first request signal when the hall sensing unit detects the first magnetic induction intensity, and the hall sensing unit sends the first magnetic induction intensity to the processing unit according to the first request signal.
S120: and setting the working point of the induction module according to the first magnetic induction intensity.
Wherein, the working point refers to the conduction threshold of the Hall sensing unit, generally BOPAnd (4) showing. When the external magnetic induction intensity exceeds the working point, the output pin of the Hall sensing unit is conducted, a first level is output, and after the first level is output, if the magnetic induction intensity continues to increase, the conduction state is still kept and the first level is output. In this embodiment, the first level is a low level. In other embodiments, the first level may also be a high level.
In one embodiment, the first magnetic induction can be a value range, and the setting of the operating point of the induction module according to the first magnetic induction can be the setting of the operating point of the induction module according to a maximum value of the value range. In another embodiment, the operating point of the sensing module may be set according to the minimum value of the value interval. In another embodiment, the operating point of the sensing module may be set according to an average value of the value interval.
The setting method can be that when the first magnetic induction intensity is reached, the processing unit sends a first interrupt signal to the Hall sensing unit, and the Hall sensing unit controls the output pin to be conducted and starts to output the low level V according to the first interrupt signalOLAnd the working point of the Hall sensing unit is set.
Step S120: the operating point that sets up induction module according to first magnetic induction includes: the processing unit sets the first magnetic induction intensity as a conduction threshold value of the Hall sensing unit, so that the Hall sensing unit outputs a first level through an output pin when the Hall sensing unit conducts the threshold value.
Referring to fig. 6, the step S120 of setting the operating point of the sensing module according to the first magnetic induction strength may further include the following steps.
S121: the processing unit receives a first input signal indicating that an input key is pressed.
Before the input key is pressed, the setting mode can be entered through third-party software such as APP of the terminal device or other control devices such as a remote controller. The third-party software or the control device is in signal connection with the processing unit. In one embodiment, the third-party software sends out a prompt signal by opening the third-party software, and the processing unit receives the prompt signal and enters the setting mode. In another embodiment, the remote controller may send an infrared signal by double-clicking, single-clicking, or long-pressing a setting button of the remote controller, and the processing unit receives the infrared signal and enters a setting mode. After the mode is set, a user can press an input key to generate a first input signal through pressing, the processing unit sends a first interrupt signal to the Hall sensing unit according to the first input signal, and the Hall sensing unit controls the output pin to be conducted and starts to output a low level V according to the first interrupt signalOLAnd the working point of the Hall sensing unit is set. At this time, the indicator lamp is in an off state. In other embodiments, the indicator lights may be turned on and off at intervals, i.e., flashing, after entering the set mode.
The first input signal can be generated by pressing an input key by a user, and specifically, the door and window sensor can further include a pressure sensor inside, the pressure sensor corresponds to the input key and is in signal connection with the processing unit, and when the user presses the input key, the pressure sensor is pressed to generate the first input signal and send the first input signal to the processing unit.
S122: the processing unit controls the indicator light according to the first input signal.
In the embodiment, the processing unit controls the indicator lamp to be turned on according to the first input signal, wherein the turning on refers to turning off to emitting light. In one embodiment, the illumination may also be from blinking to continuous illumination. It will be appreciated that other forms are also possible. In another embodiment, the processing unit may further control the indicator light to be turned off or to be flickered or to change colors or the like according to the first input signal.
S130: and acquiring second magnetic induction intensity, wherein the second magnetic induction intensity corresponds to a second preset distance between the induction module and the magnetic module.
Wherein the second preset distance can be an alarm redundancy distance, and is usually set according to actual needs, such as 1-4 cm. As an example, the sensor is mounted on a door which can swing easily, and the sensor can be displaced by about 3cm when wind blows, and if the second preset distance is set to 1cm, the sensor can trigger an alarm when wind blows, but the alarm is a false alarm. At this time, the second preset distance needs to be set to a value larger than 3cm, for example, 4cm or 5cm, and the second preset distance needs to be reasonably set to obtain better safety experience so as to reduce unnecessary troubles. The second predetermined distance may also be measured by an auxiliary tool such as a ruler, or may be based on the user's own experience. In one embodiment, the second preset distance may be obtained by keeping the magnetic module still and moving the sensing module until the distance between the sensing module and the magnetic module is equal to the first preset distance. In another embodiment, the obtaining of the second preset distance may be keeping the sensing module still and moving the magnetic module until the distance between the sensing module and the magnetic module is equal to the second preset distance. In yet another embodiment, the obtaining of the second preset distance may be moving the magnetic module and the induction module in opposite directions simultaneously until the distance between the induction module and the magnetic module is equal to the second preset distance.
The second magnetic induction corresponds to a second preset distance, so that the second magnetic induction corresponding to the second preset distance can be determined according to the second preset distance set by a user, and the second magnetic induction can be obtained by measuring the distance between the induction module and the magnetic module. As one mode, a calculation formula may be prestored in the storage unit, where the input of the formula is distance and the output of the formula is magnetic induction, so that by inputting a second preset distance, a second magnetic induction corresponding to the second preset distance is obtained. As another way, a mapping table between the magnetic induction and the distance may be pre-stored in the storage unit, so that based on the mapping table, the second magnetic induction corresponding to the second preset distance may be found according to the second preset distance.
The step S130 of obtaining the second magnetic induction intensity includes: the processing unit acquires the second magnetic induction intensity from the Hall sensing unit.
The processing unit acquires the second magnetic induction intensity from the hall sensing unit, and the hall sensing unit sends the detected second magnetic induction intensity to the processing unit; the processing unit may further send a second request signal when the hall sensing unit detects the second magnetic induction, and the hall sensing unit sends the second magnetic induction to the processing unit according to the second request signal.
S140: and setting a release point of the induction module according to the second magnetic induction intensity.
Where a release point refers to a cutoff threshold, typically denoted BRPIs represented by, and BRPIs less than BOP. When the external magnetic induction intensity exceeds the release point, the output pin of the Hall sensing unit is cut off, and outputs a second level, after the second level is output, if the magnetic induction intensity continues to increase, the cut-off state is still kept and the second level is output until the magnetic induction intensity increases to BOPThen, the first level is output. When the external magnetic induction intensity is reduced to be lower than the release point, the output level of the Hall sensing unit is unchanged. In this embodiment, the second level is a high level.
The setting method can be that when the second magnetic induction intensity is reached, the processing unit sends a second interrupt signal to the Hall sensing unit, and the Hall sensing unit controls the output pin to cut off and starts to output the high level V according to the second interrupt signalOHThe release point of the hall sensing unit is set.
The user can manually press an input key from B with different settingsRPAnd BOPThereby adjusting the different feeling of the door and window sensorThe distance should be used. Different B can also be set on third-party softwareRPAnd BOP. After the door and window sensor is installed, a user only needs to manually press an input key or set a B on third-party softwareRPAnd BOPAnd the installation distance does not need to be adjusted, so that the installation trouble of a user is reduced, and the user can quickly complete the installation of the door and window sensor.
The step S140 of setting the release point of the sensing module according to the second magnetic induction intensity includes: the processing unit sets the second magnetic induction intensity as a cut-off threshold value of the Hall sensing unit, so that the Hall sensing unit outputs a second level through the output pin when the Hall sensing unit cuts off the threshold value.
Referring to fig. 7, the step S140 of setting the release point of the sensing module according to the second magnetic induction intensity further includes the following steps.
S141: the processing unit receives a second input signal indicating that the input key is pressed again.
The second input signal may also be generated by pressing an input key of the user, specifically, when the user presses the input key again, the pressure sensor senses that the input key is pressed again to generate the second input signal, and sends the second input signal to the processing unit, the processing unit sends a second interrupt signal to the hall sensing unit according to the second input signal, and the hall sensing unit controls the output pin to be turned on and starts to output the high-level V according to the second interrupt signalOHThe release point of the hall sensing unit is set.
S142: the processing unit controls the indicator light according to the second input signal.
In the embodiment, the processing unit controls the indicator lamp to be turned off according to the second input signal. Wherein the turning off may be that the processing unit directly controls the indicator light to change from the light-emitting state to the turning-off state. In other embodiments, the extinguishing may be that the processing unit controls the indicator light to gradually decrease the light intensity from the light-emitting state to the completely extinguished position. In still other embodiments, the turning off may be that the processing unit controls the indicator light to turn off directly after the light maintains a certain intensity. In other embodiments, the processing unit controls the indicator light to light up or flash or change color according to the second input signal.
In other embodiments, the first magnetic induction and the second magnetic induction may also be obtained by the processing unit by calling a fitting function prestored in the storage unit for fitting. Specifically, referring to fig. 8, the step of obtaining the first magnetic induction intensity may include the following steps.
S211: the processing unit acquires parameters of the magnetic module and a first preset distance.
The parameters of the magnetic module include a brand, performance parameters and the like, wherein the brand corresponds to different manufacturers, and the performance parameters include the shape, size, brand, polarity and the like of the magnetic module. The shape of the device is U-shaped, cylindrical, square or rectangular, etc. The designation refers to the performance of the magnet, and as an example, the designation of a magnet is N35M, where N represents neodymium iron boron; numeral 35 represents the magnetic energy product; the next letter represents the coercivity characteristic, M is the medium coercivity, H represents the high coercivity, etc., the common type without letters represents the larger the number the larger the magnetic energy product. Different corresponding relations exist between the magnetic induction intensity corresponding to different brands and performance parameters and the distance between the magnetic module and the induction module, so that a user needs to determine whether the input brands and performance parameters are correct or not, and the influence on subsequent operation is avoided.
In this embodiment, the obtaining manner may be through third-party software, the third-party software may be an APP of the terminal device or software installed on a computer, and the third-party software is in signal connection with the processing unit and sends the brand, the performance parameter, and the first preset distance of the magnetic module, which are received by the user input, to the processing unit. In one embodiment, the sending mode may be receiving and sending, for example, the third-party software sends the brand information to the processing unit immediately after receiving the brand information input by the user, and sends the magnet brand number to the processing unit immediately after the magnet brand number is input by the user. In another embodiment, after receiving the brand information input by the user, the third-party software sends out confirmation information to prompt the user to confirm, and after the user confirms, the third-party software sends the brand information to the processing unit. In another embodiment, the third-party software may send all the received information to the processing unit immediately after receiving all the information. In other embodiments, the sending method may also be that the third-party software sends a confirmation message after receiving all the information, prompts the user to confirm, and sends all the information input by the user to the processing unit after the user confirms, so as to avoid the phenomenon that the door and window sensor is set incorrectly due to incorrect information input by the user. It will be appreciated that the third party software may send the confirmation message a plurality of times after receiving the message, where the plurality of times may be two or more times.
In one embodiment, the obtaining manner may be through voice or a gesture, and the user may also input the parameter of the magnetic module and the first preset distance through voice or a corresponding gesture.
S212: the processing unit calls a fitting function corresponding to the magnetic module parameter and pre-stored in the storage unit to obtain first magnetic induction intensity corresponding to the first preset distance. The fitting function refers to the functional relationship between the magnetic induction and the spacing between the magnetic module and the induction module.
The magnetic induction can be read by a fluxmeter or other device having the function of measuring the magnetic induction. The door and window sensor provided by the embodiment can also read out the magnetic induction intensity. The spacing between the magnetic module and the sensing module may be measured by a ruler, tape measure, or other length measuring tool. The measurement method may be that magnetic induction density is recorded every 5mm at the distance between the magnetic module and the induction module, for example, when the magnetic module and the induction module are in contact (the distance is 0mm), magnetic induction intensity value at this time is measured, corresponding magnetic induction intensity value is measured when the distance is 5mm, corresponding magnetic induction intensity value is measured when the distance is 10mm, and so on, and finally, data corresponding to multiple groups of distances and magnetic induction densities is measured, as shown in fig. 9. Inputting the data into a processing unit, processing the data by the processing unit through data processing software, and fitting a functional relation between the distance and the magnetic induction intensity, such as a polynomial function:
y=ax4+bx3+cx2+dx+e,
wherein x refers to the spacing between the magnetic module and the sensing module; y refers to magnetic induction; a. b, c and d respectively refer to the coefficients of terms of quartic, cubic, quadratic and first order, and e is a constant. It will be appreciated that a, b, c, d, e will vary depending on the particular fenestration sensor product model.
The processing unit may obtain the first magnetic induction corresponding to the first preset distance by calling a fitting function corresponding to the magnetic module parameter, or may obtain the first preset distance corresponding to the first magnetic induction. Because the data are obtained through measurement, the method is reliable and stable, whether the data are cracked by external strong magnetic interference can be judged through the continuity of the data, and the safety performance of the door and window sensor is improved.
Referring to fig. 10, similarly, obtaining the second magnetic induction may include the following steps.
S231: the processing unit acquires parameters of the magnetic module and a second preset distance.
The step S211 of acquiring the parameters of the magnetic module and the second predetermined distance by the processing unit is not repeated herein.
S232: the processing unit calls a fitting function corresponding to the magnetic module parameter and pre-stored in the storage unit to obtain second magnetic induction intensity corresponding to a second preset distance.
The processing unit calls the fitting function to obtain the second magnetic induction intensity corresponding to the second preset distance, referring to step S212, which is not described herein again.
In one embodiment, the method for setting the door/window sensor further includes: the processing unit sends the first magnetic induction intensity or the second magnetic induction intensity to output the setting parameters of the door and window sensor.
After setting up the operating point and the release point of response module, processing unit can be through calling the fitting function, the first distance of predetermineeing that corresponds with first magnetic induction to and the second distance of predetermineeing that corresponds with second magnetic induction, and send first distance of predetermineeing or the second distance of predetermineeing, with the first distance of predetermineeing or the second distance of predetermineeing that output set up, the user can judge whether to set up correctly according to the setting parameter of door and window sensor. If not, steps S211 and S212 and S231 and S232 need to be repeated until the setting is completed. In this embodiment, for example, the processing unit may send the first magnetic induction or the second magnetic induction to third-party software, and the user may view the setting parameters of the door/window sensor through the third-party software.
In summary, according to the setting method of the door and window sensor provided by the invention, the adjustment of the sensing distance of the door and window sensor is realized by setting the working point and the release point of the sensing module, and the application range of the door and window sensor is increased. In the maximum measuring range supported by the Hall sensing unit, the door and window sensor does not need to be installed at a specific position, and the installation procedure is simplified.
Referring to fig. 11, the present embodiment further provides a setting apparatus 1300 for a door/window sensor, where the setting apparatus 1300 for a door/window sensor includes a first obtaining module 1310, a first setting module 1320, a second obtaining module 1330, and a second setting module 1340.
A first obtaining module 1310, configured to obtain a first magnetic induction intensity, where the first magnetic induction intensity corresponds to a first preset distance between the induction module and the magnetic module;
a first setting module 1320, configured to set an operating point of the sensing module according to the first magnetic induction intensity;
a second obtaining module 1330 configured to obtain a second magnetic induction intensity, where the second magnetic induction intensity corresponds to a second preset distance between the induction module and the magnetic module;
the second setting module 1340 is configured to set a release point of the sensing module according to the second magnetic induction.
Further, the sensing module includes a processing unit and a hall sensing unit, the processing unit is in signal connection with the hall sensing unit, and the first obtaining module 1310 includes a first sub-obtaining module; the second obtaining module 1330 includes a second obtaining sub-module, wherein:
and the first acquisition submodule is used for acquiring the first magnetic induction intensity from the Hall sensing unit by the processing unit.
And the second acquisition submodule is used for acquiring the second magnetic induction intensity from the Hall sensing unit by the processing unit.
Further, the first setting module 1320 includes a first setting sub-module, configured to set the first magnetic induction intensity as a conduction threshold of the hall sensing unit by the processing unit, so that the hall sensing unit outputs a first level through an output pin when the conduction threshold is reached.
Further, the second setting module 1340 includes a second setting submodule, configured to set the second magnetic induction intensity to a cut-off threshold of the hall sensing unit by the processing unit, so that the hall sensing unit outputs a second level through an output pin when the hall sensing unit is at the cut-off threshold.
Further, the sensing module further includes an input key and an indicator light, and the first setting module 1320 further includes a first control sub-module, where the processing unit receives a first input signal, the first input signal indicates that the input key is pressed, and the processing unit controls the indicator light according to the first input signal.
Further, the second setting module 1340 further includes a second control sub-module, configured to receive a second input signal by the processing unit, where the second input signal indicates that the input key is pressed again, and the processing unit controls the indicator light according to the second input signal.
Further, the sensing module comprises a processing unit and a storage unit, the storage unit stores a fitting function of the magnetic induction and the distance between the sensing module and the magnetic module, the first obtaining module 1310 further comprises a third obtaining sub-module and a first fitting sub-module, wherein:
the third obtaining submodule is used for the processing unit to obtain the magnetic module parameter and the first preset distance;
the first fitting submodule is used for the processing unit to call a fitting function which is prestored in the storage unit and corresponds to the magnetic module parameter so as to obtain first magnetic induction intensity corresponding to the first preset distance.
Further, the sensing module includes a processing unit and a storage unit, the storage unit stores a fitting function of the magnetic induction and the distance between the sensing module and the magnetic module, and the second obtaining module 1330 further includes a fourth obtaining sub-module and a second fitting sub-module, where:
the third obtaining submodule is used for the processing unit to obtain the parameters of the magnetic module and the second preset distance;
the second fitting submodule is used for the processing unit to call a fitting function which is prestored in the storage unit and corresponds to the magnetic module parameter so as to obtain second magnetic induction intensity corresponding to the second preset distance.
Further, the setting device 1300 of the door and window sensor further includes a parameter output module, which is used for the processing unit to send the first magnetic induction intensity or the second magnetic induction intensity, so as to output the setting parameters of the door and window sensor.
The setting device 1300 of the door and window sensor provided by the embodiment of the application is used for realizing the setting method of the corresponding door and window sensor in the embodiment of the method, has the beneficial effects of the corresponding method embodiment, and is not repeated here.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 12, an embodiment of the present invention further provides an electronic device 1400, where the electronic device 1400 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, an electronic book, a personal computer, and a server. The electronic device 1400 in the present application may include one or more of the following components: a processing unit 1410, a storage unit 1420, and one or more applications, wherein the storage unit 1420 is electrically coupled to the one or more processing units 1410; one or more application programs may be stored in the storage unit 1420 and configured to be executed by the one or more processing units 1410, the one or more programs configured to perform methods as described in the foregoing method embodiments.
Further, the processing unit 1410 further includes: an external storage device management module and a storage management service module. The external storage device management module can be a management and control center of an external storage system in an Android (Android) platform and is a background process for managing and controlling the external storage device of the Android platform. The functions mainly comprise: plug-pull event detection of the external storage device, mounting, uninstalling, formatting and the like of the external storage device; the storage management service module is a module for communicating the Android system framework layer with the external storage device management module, and is also a module for providing a storage access interface and storing mounting message broadcast for the application. Further, in one embodiment, the external storage device management module and the storage management service module may communicate based on a Binder communication mechanism.
The Memory unit 1420 may include a Random Access Memory (RAM) or a read only Memory (ReadOnly Memory). The storage unit 1420 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The storage unit 1420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the electronic device 1400 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 13, the present application further provides a computer readable storage medium 1500, wherein the computer readable storage medium 1500 stores a program code, and the program code can be called by the processing unit to execute the method described in the above method embodiment.
The computer-readable storage medium 1500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable and programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1500 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1500 has storage space for program code 1510 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code 1510 may be compressed, for example, in a suitable form.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (12)
1. A method for arranging a door and window sensor, wherein the door and window sensor comprises a magnetic module and an induction module which correspond to each other, and the method comprises the following steps:
acquiring first magnetic induction intensity, wherein the first magnetic induction intensity corresponds to a first preset distance between the induction module and the magnetic module;
setting a working point of the induction module according to the first magnetic induction intensity;
acquiring a second magnetic induction intensity, wherein the second magnetic induction intensity corresponds to a second preset distance between the induction module and the magnetic module; and
and setting a release point of the induction module according to the second magnetic induction intensity.
2. The setting method of the door and window sensor according to claim 1, wherein the sensing module comprises a processing unit and a hall sensing unit, the processing unit is in signal connection with the hall sensing unit, and the obtaining of the first magnetic induction intensity comprises: the processing unit acquires the first magnetic induction intensity from the Hall sensing unit; the obtaining a second magnetic induction comprises: and the processing unit acquires the second magnetic induction intensity from the Hall sensing unit.
3. The setting method of the door and window sensor according to claim 2, wherein setting the operating point of the sensing module according to the first magnetic induction comprises:
the processing unit sets the first magnetic induction intensity as a conduction threshold value of the Hall sensing unit, so that the Hall sensing unit outputs a first level through an output pin when the conduction threshold value is reached.
4. The setting method of the door and window sensor according to claim 2, wherein setting the release point of the sensing module according to the second magnetic induction comprises:
the processing unit sets the second magnetic induction intensity as a cut-off threshold value of the Hall sensing unit, so that the Hall sensing unit outputs a second level through an output pin when the Hall sensing unit is at the cut-off threshold value.
5. The setting method of the door and window sensor as claimed in claim 2, wherein the sensing module further comprises an input button and an indicator light, and the setting of the operating point of the sensing module according to the first magnetic induction comprises:
the processing unit receives a first input signal, the first input signal indicates that the input key is pressed, and the processing unit controls the indicator light according to the first input signal.
6. The setting method of the door and window sensor as claimed in claim 5, wherein the setting of the release point of the sensing module according to the second magnetic induction comprises:
the processing unit receives a second input signal, the second input signal indicates that the input key is pressed again, and the processing unit controls the indicator light according to the second input signal.
7. The setting method of door and window sensor as claimed in any one of claims 1 to 6, wherein the sensing module comprises a processing unit and a storage unit, the storage unit stores a fitting function of magnetic induction and a distance between the sensing module and the magnetic module, and the obtaining the first magnetic induction comprises:
the processing unit acquires magnetic module parameters and the first preset distance;
the processing unit calls a fitting function which is prestored in the storage unit and corresponds to the magnetic module parameter to obtain first magnetic induction intensity corresponding to the first preset distance.
8. The setting method of door and window sensor as claimed in any one of claims 1 to 6, wherein the sensing module comprises a processing unit and a storage unit, the storage unit stores a fitting function of magnetic induction and a distance between the sensing module and the magnetic module, and the obtaining the second magnetic induction comprises:
the processing unit acquires parameters of the magnetic module and the second preset distance;
and the processing unit calls a fitting function which is prestored in the storage unit and corresponds to the magnetic module parameter to obtain second magnetic induction intensity corresponding to the second preset distance.
9. The setting method of the door and window sensor as claimed in any one of claims 1 to 6, further comprising:
and the processing unit sends the first magnetic induction intensity or the second magnetic induction intensity to output the setting parameters of the door and window sensor.
10. The utility model provides a setting device of door and window sensor, its characterized in that, door and window sensor includes corresponding magnetism module and response module, the device includes:
the first acquisition module is used for acquiring first magnetic induction intensity, and the first magnetic induction intensity corresponds to a first preset distance between the induction module and the magnetic module;
the first setting module is used for setting the working point of the induction module according to the first magnetic induction intensity;
the second acquisition module is used for acquiring second magnetic induction intensity, and the second magnetic induction intensity corresponds to a second preset distance between the induction module and the magnetic module;
and the second setting module is used for setting a release point of the induction module according to the second magnetic induction intensity.
11. An electronic device, comprising:
one or more processing units;
a memory unit electrically connected to the one or more processing units; and
one or more application programs, wherein the one or more application programs are stored in the storage unit and configured to be executed by the one or more processing units, the one or more programs configured to perform the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that is invoked by a processing unit to perform the method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010268688.7A CN113496580B (en) | 2020-04-07 | 2020-04-07 | Method and device for setting door and window sensor, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010268688.7A CN113496580B (en) | 2020-04-07 | 2020-04-07 | Method and device for setting door and window sensor, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113496580A true CN113496580A (en) | 2021-10-12 |
CN113496580B CN113496580B (en) | 2022-12-06 |
Family
ID=77995441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010268688.7A Active CN113496580B (en) | 2020-04-07 | 2020-04-07 | Method and device for setting door and window sensor, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113496580B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2682188A1 (en) * | 1991-10-04 | 1993-04-09 | Serthel | Electric current sensor, particularly for large high-frequency alternating current circuits |
US20090319212A1 (en) * | 1999-08-26 | 2009-12-24 | Tk Holdings, Inc. | Magnetic crash sensor |
JP2010129010A (en) * | 2008-11-30 | 2010-06-10 | Hochiki Corp | Window opening/closing detecting device |
CN202183146U (en) * | 2011-09-09 | 2012-04-04 | 江苏中讯数码电子有限公司 | Magnetic alarm device of door |
CN204201039U (en) * | 2014-07-31 | 2015-03-11 | 长城汽车股份有限公司 | A kind of magnetic switch, gearshift and vehicle |
CN205876017U (en) * | 2016-05-24 | 2017-01-11 | 珠海市魅族科技有限公司 | Relative position check out test set and window/door switch induction system |
KR20170047457A (en) * | 2015-10-22 | 2017-05-08 | 한국표준과학연구원 | Convergence window sensor and method of generating warning signal using the sensor |
CN106879112A (en) * | 2017-03-06 | 2017-06-20 | 深圳市茂捷半导体有限公司 | A kind of proximity magnetic induction switch control chip and its control method |
WO2017117397A2 (en) * | 2015-12-31 | 2017-07-06 | Robert Bosch Gmbh | Door/window magnetic sensing device and method of installing |
CN206829008U (en) * | 2017-06-27 | 2018-01-02 | 周雅洁 | A kind of cell car stopping rod automatic lifting control system |
CN109162531A (en) * | 2018-08-24 | 2019-01-08 | 南京东屋电气有限公司 | A kind of cam relative position monitoring method and cam spinning solution |
CN209460895U (en) * | 2019-04-02 | 2019-10-01 | 王之威 | A kind of door and window alarm based on Hall effect |
CN209746651U (en) * | 2019-06-06 | 2019-12-06 | 控慧科技(上海)有限公司 | Access control device with magnetic induction is prevented tearing open |
-
2020
- 2020-04-07 CN CN202010268688.7A patent/CN113496580B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2682188A1 (en) * | 1991-10-04 | 1993-04-09 | Serthel | Electric current sensor, particularly for large high-frequency alternating current circuits |
US20090319212A1 (en) * | 1999-08-26 | 2009-12-24 | Tk Holdings, Inc. | Magnetic crash sensor |
JP2010129010A (en) * | 2008-11-30 | 2010-06-10 | Hochiki Corp | Window opening/closing detecting device |
CN202183146U (en) * | 2011-09-09 | 2012-04-04 | 江苏中讯数码电子有限公司 | Magnetic alarm device of door |
CN204201039U (en) * | 2014-07-31 | 2015-03-11 | 长城汽车股份有限公司 | A kind of magnetic switch, gearshift and vehicle |
KR20170047457A (en) * | 2015-10-22 | 2017-05-08 | 한국표준과학연구원 | Convergence window sensor and method of generating warning signal using the sensor |
WO2017117397A2 (en) * | 2015-12-31 | 2017-07-06 | Robert Bosch Gmbh | Door/window magnetic sensing device and method of installing |
CN108475459A (en) * | 2015-12-31 | 2018-08-31 | 罗伯特·博世有限公司 | Door/window magnetic sensing device and installation method |
CN205876017U (en) * | 2016-05-24 | 2017-01-11 | 珠海市魅族科技有限公司 | Relative position check out test set and window/door switch induction system |
CN106879112A (en) * | 2017-03-06 | 2017-06-20 | 深圳市茂捷半导体有限公司 | A kind of proximity magnetic induction switch control chip and its control method |
CN206829008U (en) * | 2017-06-27 | 2018-01-02 | 周雅洁 | A kind of cell car stopping rod automatic lifting control system |
CN109162531A (en) * | 2018-08-24 | 2019-01-08 | 南京东屋电气有限公司 | A kind of cam relative position monitoring method and cam spinning solution |
CN209460895U (en) * | 2019-04-02 | 2019-10-01 | 王之威 | A kind of door and window alarm based on Hall effect |
CN209746651U (en) * | 2019-06-06 | 2019-12-06 | 控慧科技(上海)有限公司 | Access control device with magnetic induction is prevented tearing open |
Also Published As
Publication number | Publication date |
---|---|
CN113496580B (en) | 2022-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8847772B2 (en) | Smoke detector with remote alarm silencing means | |
US7994928B2 (en) | Multifunction smoke alarm unit | |
JP3205420U (en) | Hazard detection device | |
CN201282476Y (en) | Intelligent household information terminal | |
US10839677B2 (en) | In-field sensor programming | |
EP1991969B1 (en) | Alarm system | |
US9865157B2 (en) | Device interface for alarm monitoring systems | |
US20190169916A1 (en) | Carbon Defense | |
CN110488692B (en) | Device control method, device, system, electronic device and storage medium | |
CA2411312C (en) | Environmental condition alarm with voice enunciation | |
CN207946907U (en) | A kind of cigarette sense detecting and warning system | |
CN113496580B (en) | Method and device for setting door and window sensor, electronic equipment and storage medium | |
CN205265839U (en) | Intelligence electron cat eye monitored control system | |
WO2018001156A1 (en) | Biological sensing window frame | |
CN110319538B (en) | Equipment position query method and device, remote controller and electrical equipment | |
CN108989445A (en) | Biological safety protection method and car networking system based on car networking | |
CN210295350U (en) | Smoke alarm capable of adjusting alarm sound frequency and volume | |
US20190394817A1 (en) | Method and apparatus for home monitoring and control system setup | |
US20040028190A1 (en) | Condition awareness system | |
CN221040179U (en) | Portable wireless anti-theft alarm | |
CN110806700A (en) | Household equipment control method based on intelligent umbrella, intelligent umbrella and storage medium | |
CN205249420U (en) | Signal conversion equipment | |
TWM642269U (en) | Wireless anti-burglary alarm device and wireless anti-burglary alarm system | |
CN208225231U (en) | Smart home safe antitheft prompt system | |
CN216287007U (en) | Wireless intelligent alarm host |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |