CN112727300B - Door magnetic switch and control method thereof - Google Patents

Door magnetic switch and control method thereof Download PDF

Info

Publication number
CN112727300B
CN112727300B CN202011528692.9A CN202011528692A CN112727300B CN 112727300 B CN112727300 B CN 112727300B CN 202011528692 A CN202011528692 A CN 202011528692A CN 112727300 B CN112727300 B CN 112727300B
Authority
CN
China
Prior art keywords
magnetic
information
encoding
coding
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011528692.9A
Other languages
Chinese (zh)
Other versions
CN112727300A (en
Inventor
杨全生
郑庆三
郑晓钥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ithinking Electronic Technology Co ltd
Original Assignee
Guangzhou Ithinking Electronic Technology 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 Guangzhou Ithinking Electronic Technology Co ltd filed Critical Guangzhou Ithinking Electronic Technology Co ltd
Priority to CN202011528692.9A priority Critical patent/CN112727300B/en
Publication of CN112727300A publication Critical patent/CN112727300A/en
Application granted granted Critical
Publication of CN112727300B publication Critical patent/CN112727300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05FDEVICES FOR MOVING WINGS INTO OPEN OR CLOSED POSITION; CHECKS FOR WINGS; WING FITTINGS NOT OTHERWISE PROVIDED FOR, CONCERNED WITH THE FUNCTIONING OF THE WING
    • E05F15/00Power-operated mechanisms for wings
    • E05F15/70Power-operated mechanisms for wings with automatic actuation
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Abstract

The invention discloses a door magnetic switch and a control method thereof, wherein the door magnetic switch comprises a magnetic coding component and a magnetic detection component, the magnetic coding component is used for generating a magnetic field with first coding information, the magnetic detection component is used for generating a trigger signal when the first coding information and verification information meet a matching condition, and the trigger signal is used for triggering an access control mechanism to open or close a door. According to the door magnetic switch, the magnetic detection component generates the trigger information when the detected magnetic field has the first coded information matched with the locally stored verification information, and does not generate the trigger information when the magnetic field is not detected or the detected magnetic field does not have the first coded information matched with the locally stored verification information, so that the normal work of the door magnetic switch can be prevented from being interfered by personnel by using a common magnet, and the door magnetic switch has high safety. The invention is widely applied to the technical field of door magnetic switches.

Description

Door magnetic switch and control method thereof
Technical Field
The invention relates to the technical field of door magnetic switches, in particular to a door magnetic switch and a control method thereof.
Background
The existing door magnetic switch mainly comprises a switch and a magnet, wherein the switch is formed by connecting, shaping and packaging a magnetic reed switch through a lead, the magnet is packaged in a plastic or alloy shell by the magnet with the corresponding magnetic field intensity, and when the switch and the magnet are separated or close to a certain distance, the switch is switched off to sense the position change of an object, so that the actions such as locking or alarming are triggered. The magnet is placed near the switch part of the existing door magnetic switch, so that the effect that the magnet part approaches the switch part can be achieved, and the work of the door magnetic switch is interfered. The above shows that the prior art work is susceptible to interference, which forms a security hole when made by a lawless person.
Disclosure of Invention
In view of at least one of the above technical problems, an object of the present invention is to provide a gate magnetic switch and a control method thereof.
In one aspect, an embodiment of the present invention includes a gate magnetic switch, including:
a magnetic encoding assembly for generating a magnetic field with first encoded information;
the magnetic detection component is used for detecting the magnetic field generated by the magnetic coding component, processing first coding information in the magnetic field generated by the magnetic coding component and locally stored verification information, and generating a trigger signal when the first coding information and the verification information meet a matching condition; the trigger signal is used for triggering the entrance guard mechanism to open or close the door.
Further, the magnetic encoding assembly includes:
a first substrate;
a plurality of permanent magnets distributed on the first substrate; the magnetic field generated by each permanent magnet is used as a data bit of coded information.
Further, the magnetic encoding assembly includes:
a first substrate;
a plurality of mounting positions distributed on the first substrate; the mounting position is used for mounting a permanent magnet; when each installation position is installed with a corresponding permanent magnet, the magnetic field generated by each permanent magnet is used as the data bit of the coded information.
Further, the magnetic encoding assembly includes:
a first substrate;
a plurality of electromagnets distributed on the first substrate;
an electromagnet drive circuit; the electromagnet driving circuit is used for electrifying the electromagnets so that the magnetic field generated by the permanent magnets is used as the data bit of the coded information.
Further, the magnetic detection assembly comprises:
a second substrate;
a plurality of magnetic sensors disposed on the second substrate in a distributed manner; one of the magnetic sensors is used for detecting a magnetic field generated by a corresponding one of the permanent magnets or the electromagnet;
a processor; the processor is connected with each magnetic sensor, receives detection signals of each magnetic sensor, takes each detection signal as a data bit of the first coding information respectively so as to determine the first coding information, compares the first coding information with the verification information, and generates the trigger signal when the first coding information is consistent with the verification information.
Further, the magnetic detection assembly further comprises:
and the alarm circuit is connected with the logic gate circuit, receives the control level generated by the logic gate circuit and gives an alarm.
Further, the magnetic detection assembly further comprises:
an indicator light circuit; the indicating lamp circuit is used for indicating the current working state of the magnetic detection component through the display state of the indicating lamp circuit.
On the other hand, the embodiment of the invention comprises a control method of a door magnetic switch, which comprises the following steps:
when the magnetic detection assembly detects a magnetic field with first coding information and the magnetic detection assembly locally stores verification information, the magnetic detection assembly compares the first coding information with the verification information, and when the first coding information is consistent with the verification information, the triggering signal is generated.
On the other hand, the embodiment of the invention comprises a control method of a door magnetic switch, which comprises the following steps:
when the magnetic encoding component detects a magnetic field with second encoding information at a first moment and the magnetic detection component does not locally store the verification information, the magnetic detection component records the second encoding;
when the magnetic encoding component detects a magnetic field with third encoded information at a second moment, the magnetic detection component detects the third encoding;
when the third encoding is consistent with the second encoding, the magnetic detection component stores the second encoding as the verification information;
when the third code is not consistent with the second code, the magnetic detection component deletes the stored second code.
Further, the control method further includes:
when the third code is consistent with the second code, the magnetic detection component controls the indicator light circuit to generate a first display state;
when the third code is inconsistent with the second code, the magnetic detection component controls the indicator light circuit to generate a second display state.
The invention has the beneficial effects that: in the embodiment of the door magnetic switch, the magnetic detection component generates the trigger information when the detected magnetic field has the first coded information matched with the locally stored verification information, and does not generate the trigger information when the magnetic field is not detected or the detected magnetic field does not have the first coded information matched with the locally stored verification information, so that the normal work of the door magnetic switch can be prevented from being interfered by personnel by using a common magnet, and the door magnetic switch has high safety.
Drawings
Fig. 1 and 2 are schematic structural diagrams of a door magnetic switch in an embodiment;
fig. 3 and 4 are schematic diagrams of a control method of a door magnetic switch in an embodiment.
Detailed Description
In this embodiment, the door magnetic switch includes a magnetic encoding component 100 and a magnetic detection component 200. Wherein the magnetic encoding assembly 100 is similar in position to the magnet portion of the prior art and the magnetic sensing assembly 200 is similar in position to the switch portion of the prior art. In this embodiment, the magnetic encoding component 100 can generate a magnetic field with first encoded information, and the magnetic detection component 200 determines whether the magnetic encoding component 100 is close to or far from the magnetic detection component 200 by detecting whether the magnetic field exists or the strength of the magnetic field, on this basis, the magnetic detection component 200 further responds to the first encoded information in the magnetic field generated by the magnetic encoding component 100, so as to generate a trigger signal, and the trigger signal can be received by the door control mechanism, so as to trigger the door control mechanism to open or close the door. The trigger signal may also be sent to a terminal or cloud server or the like, thereby triggering an alarm or the like.
In this embodiment, referring to fig. 2, the main structure of the magnetic encoding assembly 100 is a first substrate 101, a plurality of magnets 102 are disposed on the first substrate 101, a magnetic field generated by each magnet 102 is used as one data bit of encoded information, and the magnetic fields generated by the plurality of magnets 102 form a plurality of data bits of the encoded information. Specifically, when viewed from the side of the first substrate 101 close to the magnetic detection element 200, the polarity of the magnet 102 toward the side is a south pole, which may indicate that the data bit is 1, the polarity of the magnet 102 toward the side is a north pole, which may indicate that the data bit is 0, or the polarity of the magnet 102 toward the side is a south pole, which may indicate that the data bit is 0, and the polarity of the magnet 102 toward the side is a north pole, which may indicate that the data bit is 1.
In this embodiment, the magnet 102 may be a permanent magnet fixed on the first substrate 101 by welding or adhering, and the magnetic encoding assembly 100 obtained by this way has the advantages of simple structure and low cost.
In this embodiment, a plurality of grooves with shapes and sizes matched with the permanent magnets can be processed on the first substrate 101, and the grooves are used as mounting positions of the permanent magnets. The user can insert the permanent magnet into the corresponding groove by himself. Each permanent magnet embedded in a slot, which on the side of the first substrate 101 facing the magnetic detection assembly 200 may be either a south pole or a north pole, results in a corresponding magnet 102. With the magnetic encoder set 100 obtained in this manner, a user can change the specific value of the data bit represented by the magnet 102 by taking out part or all of the permanent magnets in the mounting position of the first substrate 101, changing the polarity orientation of the permanent magnets, and then placing the permanent magnets in the original mounting position. After a user uses the first coding information of a specific numerical value for a period of time, the specific content of the first coding information can be modified, so that the password is modified, and the safety is improved.
In this embodiment, the permanent magnet used may be a neodymium magnet.
In this embodiment, when the magnets 102 are manufactured, electromagnets may be used instead of permanent magnets, and an electromagnet driving circuit may be added, where the electromagnet driving circuit energizes each electromagnet, and each electromagnet generates a magnetic field, so as to obtain a corresponding magnet 102. In the magnetic encoding assembly 100 obtained in this way, a user can change the polarity of the electromagnet facing the first substrate 101 on the side close to the magnetic detection assembly 200 by setting the electromagnet driving circuit to output the current to each electromagnet, and can also modify the specific content of the first encoded information without performing mechanical structural operation on the electromagnet, thereby playing a role in modifying the password and improving the security.
In this embodiment, referring to fig. 2, the main structure of the magnetic detection assembly 200 is a second substrate 201, a plurality of magnetic sensors 202 are distributed on the second substrate 201, and the magnetic sensors 202 and the magnets 102 on the first substrate 101 form a one-to-one correspondence relationship, that is, each magnetic sensor 202 detects a magnetic field generated by a corresponding one of the magnets 102.
In the present embodiment, a hall sensor is used as the magnetic sensor 202.
In this embodiment, a processor is mounted inside or on one side of the second substrate 201. In this embodiment, an MCU, an FPGA, a CPLD, a DSP, or an ARM, etc. are used as the processor. The input interface of the processor is connected to each of the magnetic sensors 202, processes and receives the detection signal of each of the magnetic sensors 202, and determines the first encoded information by using each of the detection signals as a data bit of the first encoded information. The processor may store the verification information locally, where the verification information may be information having the same format as the first encoded information, e.g., the number of bits of the verification information may be the same as the first encoded information. The processor compares the first coding information with the verification information, and generates a trigger signal when the first coding information and the verification information meet a matching condition, for example, the first coding information is consistent with the verification information.
In this embodiment, a logic gate circuit may be used instead of the processor. The logic gate circuit comprises a plurality of AND, OR, not equal logic gates, and forms an input end with the number not less than the data bit number of the first coded information, and the output end can be one. The structure of the logic gate circuit may be set such that the output terminal of the logic gate circuit outputs a high level only when a specific data bit level is input to the input terminal of the logic gate circuit and outputs a low level when a data bit level other than any specific data bit level is input to the input terminal of the logic gate circuit, based on the design knowledge of the digital circuit, so that the logic gate circuit has an effect of recognizing the first encoded information. Specifically, the structure of the logic gate circuit is set such that the output terminal thereof outputs a high level only when the input terminal of the logic gate circuit inputs a level combination corresponding to the first encoded information, and outputs a low level when any level combination different from the first encoded information is input to the input terminal of the logic gate circuit, and by detecting the output level of the logic gate circuit, it is possible to judge whether the magnetic detection element 200 detects the first encoded information, thereby determining whether the magnetic detection element 200 is close to the magnetic encoding element 100.
In this embodiment, the magnetic detection assembly 200 further comprises an alarm circuit, wherein the alarm circuit may be an alarm light or an alarm horn, etc. The alarm circuit is connected with the logic gate circuit, the alarm circuit receives the control level generated by the logic gate circuit and gives an alarm, and specifically, the control level generated by the logic gate circuit and indicating that the first coded information is inconsistent with the verification information can drive the alarm circuit to give an alarm, so that a worker is prompted that the door magnet switch is possibly invaded illegally.
In this embodiment, referring to fig. 2, the first substrate 101 and the second substrate 201 are respectively mounted with a fixing screw 300, and the magnetic encoder assembly 100 and the magnetic detector assembly 200 can be respectively mounted at different positions through the fixing screw 300, for example, the magnetic encoder assembly 100 can be mounted on a door panel, and the magnetic detector assembly 200 can be mounted on a door frame, so that the magnetic encoder assembly 100 and the magnetic detector assembly 200 are close to each other when the door is closed.
In this embodiment, referring to fig. 2, the magnetic detection assembly 200 further includes an indicator light circuit. Referring to fig. 2, the indicator light circuit includes a red light 206 and a green light 205 mounted on the second substrate 201. The processor indicates the current operating state of the magnetic detection assembly 200 by controlling the display state of the indicator light circuit.
In this embodiment, the control method of the magnetic detection assembly 200 includes the following steps:
s1, when the magnetic detection assembly 200 detects a magnetic field with first coded information and the magnetic detection assembly 200 locally stores verification information, the magnetic detection assembly 200 compares the first coded information with the verification information, and if the first coded information is consistent with the verification information, the magnetic detection assembly 200 generates a trigger signal to trigger an access control mechanism and the like to open or close a door.
If the first encoded information does not correspond to the authentication information, this indicates that a foreign intrusion may be encountered, for example, a lawbreaker generates a magnetic field without encoded information using a general magnet or a combination of magnets, or although the magnetic field of the first encoded information is generated, this first encoded information cannot be authenticated by the authentication information, and the magnetic sensing assembly 200 may not respond, for example, does not generate a trigger signal, so that a door access mechanism or the like is not triggered.
S2, when the magnetic encoding component 100 detects a magnetic field with second encoding information at a first moment, and the magnetic detection component 200 does not locally store verification information, the magnetic detection component 200 records a second encoding;
s3, when the magnetic encoding component 100 detects a magnetic field with third encoding information at a second moment, the magnetic detection component 200 detects a third encoding;
s4, when the third code is consistent with the second code, the magnetic detection component 200 stores the second code as verification information;
steps S2-S4 are procedures for setting the authentication information in the magnetic detection component 200 in the case where the magnetic detection component 200 is not stored locally in the initial state, or the authentication information has been stored previously but deleted later. When steps S2-S4 are executed, the magnetic encoding component 100 may be manually approached to the magnetic detecting component 200 by a worker at a first time and a second time, respectively, so that the magnetic detecting component 200 can detect the magnetic field with the second encoded information generated by the magnetic encoding component 100 twice, and when the encoded information detected twice by the magnetic detecting component 200 is consistent, the magnetic detecting component 200 stores the second encoded information as the verification information, thereby completing the setting of the verification information.
And S5, when the third code is inconsistent with the second code, the magnetic detection component 200 deletes the stored second code.
In step S5, if the encoded information detected twice by the magnetic detection module 200 is inconsistent, the setting of the verification information fails, and the magnetic detection module 200 deletes the stored second code, and the setting of the verification information can be completed only by re-executing steps S2-S4 under the operation of the operator.
By executing steps S2-S5, the verification information stored in the magnetic detection assembly 200 can be modified, thereby playing a role of modifying the password and improving the security.
In this embodiment, the indicator light circuit includes a red light 206 and a green light 205, and the processor controls the indicator light circuit to enter a display state of response through the processes shown in fig. 3 and 4, so as to indicate the working state of the processor.
Fig. 3 corresponds to the flow of step S1. Referring to fig. 3, at this time, the processor stores the verification information, when the processor is powered on and the magnetic encoding component 100 is not close to the magnetic detection component 200, the red light 206 and the green light 205 flash for five seconds, when the magnetic encoding component 100 first approaches the hall detection component, the encoded information in the magnetic field formed by the magnetic encoding component 100 is different from the verification information stored by the processor, the red light 2067 flashes the encoded information in the magnetic field formed by the magnetic encoding component 100 for five seconds and is the same as the verification information stored by the processor, and the green light 205 is normally on; when the magnetic encoding component 100 leaves the magnetic detection component 200, the green light 205 flashes for five seconds, and when the magnetic encoding component 100 approaches the magnetic detection component 200 for the second time, if the encoding information in the magnetic fields generated by the first magnetic encoding component 100 and the second magnetic encoding component 100 is the same, the green light 205 is normally on; if the encoded information in the magnetic fields generated by the first and second magnetic encoding assemblies 100 are not the same, the red light 206 is always on. When the red light 206 flash times out, the green light 205 flash times out, and the magnetic encoder assembly 100 approaches the magnetic detection assembly 200 and times out, the red light 206 is always on. When the door magnetic switch is in a normal working state, when the magnetic encoding component 100 is close to the magnetic detection component 200 and the first encoding information is the same as the verification information stored by the control module, the green light 205 is normally on; when the magnetic encoding component 100 is not close to the magnetic detection component 200, or the first encoded information is different from the verification information stored by the control module, the red light 206 is always on.
FIG. 4 corresponds to the flow of steps S2-S5. Referring to fig. 4, at this time, the processor does not store the verification information, after the processor is powered on, and when the magnetic encoding component 100 is not close to the magnetic detection component 200, the red light 206 and the green light 205 are flashed for five seconds, when the magnetic encoding component 100 is close to the magnetic detection component 200 for the first time, the red light 206 is flashed for five seconds, when the magnetic encoding component 100 is away from the magnetic detection component 200, the green light 205 is flashed for five seconds, when the magnetic encoding component 100 is close to the magnetic detection component 200 for the second time, if the magnetic encoding formed by the magnetic encoding component 100 for the first time and the second time is the same, the magnetic detection component 200 controls the indicator light circuit to generate the first display state, and the first display state is that the green light 205 is normally on; if the magnetic codes formed by the first and second magnetic encoding components 100 are different, the magnetic detection component 200 controls the indicator light circuit to generate a second display state, wherein the second display state is a flash of the red light 206 and the green light 205. When the red light 206 flash times out, the green light 205 flash times out, and the magnetic encoder assembly 100 approaches the magnetic detection assembly 200 and times out, the red light 206 and the green light 205 flash.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature or indirectly fixed or connected to the other feature. Furthermore, the descriptions of upper, lower, left, right, etc. used in the present disclosure are only relative to the mutual positional relationship of the constituent parts of the present disclosure in the drawings. As used in this disclosure, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. In addition, unless defined otherwise, all technical and scientific terms used in this example have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description of the embodiments herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this embodiment, the term "and/or" includes any combination of one or more of the associated listed items.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language ("e.g.," such as "or the like") provided with this embodiment is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Further, operations of processes described in this embodiment can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described in this embodiment (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated onto a computing platform, such as a hard disk, optically read and/or write storage media, RAM, ROM, etc., so that it is readable by a programmable computer, which when read by the computer can be used to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
A computer program can be applied to input data to perform the functions described in the present embodiment to convert the input data to generate output data that is stored to a non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on a display.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

Claims (7)

1. A door magnetic switch, comprising:
a magnetic encoding assembly for generating a magnetic field with first encoded information;
the magnetic detection component is used for detecting the magnetic field generated by the magnetic coding component, processing first coding information in the magnetic field generated by the magnetic coding component and locally stored verification information, and generating a trigger signal when the first coding information and the verification information meet a matching condition; the trigger signal is used for triggering the door control mechanism to open or close the door;
the magnetic encoding assembly includes:
a first substrate;
a plurality of permanent magnets distributed on the first substrate; the magnetic field generated by each permanent magnet is used as a data bit of coded information;
the magnetic detection assembly includes:
a second substrate;
a plurality of magnetic sensors disposed on the second substrate in a distributed manner; one of the magnetic sensors is used for detecting a magnetic field generated by a corresponding one of the permanent magnets;
a processor; the processor is connected with each magnetic sensor, receives detection signals of each magnetic sensor, respectively uses each detection signal as a data bit of the first coding information so as to determine the first coding information, compares the first coding information with the verification information, and generates the trigger signal when the first coding information is consistent with the verification information.
2. A door magnetic switch, comprising:
a magnetic encoding assembly for generating a magnetic field with first encoded information;
the magnetic detection component is used for detecting the magnetic field generated by the magnetic coding component, processing first coding information in the magnetic field generated by the magnetic coding component and locally stored verification information, and generating a trigger signal when the first coding information and the verification information meet a matching condition; the trigger signal is used for triggering the door control mechanism to open or close the door;
the magnetic encoding assembly includes:
a first substrate;
a plurality of mounting positions distributed on the first substrate; the mounting position is used for mounting a permanent magnet; when each installation position is provided with a corresponding permanent magnet, the magnetic field generated by each permanent magnet is used as the data bit of the coded information;
the magnetic detection assembly includes:
a second substrate;
a plurality of magnetic sensors disposed on the second substrate in a distributed manner; one of the magnetic sensors is used for detecting a magnetic field generated by a corresponding one of the permanent magnets;
a processor; the processor is connected with each magnetic sensor, receives detection signals of each magnetic sensor, respectively uses each detection signal as a data bit of the first coding information so as to determine the first coding information, compares the first coding information with the verification information, and generates the trigger signal when the first coding information is consistent with the verification information.
3. A door magnetic switch, comprising:
a magnetic encoding assembly for generating a magnetic field with first encoded information;
the magnetic detection component is used for detecting the magnetic field generated by the magnetic coding component, processing first coding information in the magnetic field generated by the magnetic coding component and locally stored verification information, and generating a trigger signal when the first coding information and the verification information meet a matching condition; the trigger signal is used for triggering the door control mechanism to open or close the door;
the magnetic encoding assembly includes:
a first substrate;
a plurality of electromagnets distributed on the first substrate;
an electromagnet drive circuit; the electromagnet driving circuit is used for electrifying each electromagnet so as to enable a magnetic field generated by each electromagnet to be used as a data bit of coded information;
the magnetic detection assembly includes:
a second substrate;
a plurality of magnetic sensors disposed on the second substrate in a distributed manner; one of the magnetic sensors is used for detecting a magnetic field generated by a corresponding one of the electromagnets;
a processor; the processor is connected with each magnetic sensor, receives detection signals of each magnetic sensor, respectively uses each detection signal as a data bit of the first coding information so as to determine the first coding information, compares the first coding information with the verification information, and generates the trigger signal when the first coding information is consistent with the verification information.
4. A door magnetic switch according to any of claims 1 to 3, wherein said magnetic sensing assembly further comprises:
an indicator light circuit; the indicating lamp circuit is used for indicating the current working state of the magnetic detection component through the display state of the indicating lamp circuit.
5. The method for controlling a door magnet switch according to any one of claims 1 to 4, comprising:
when the magnetic detection assembly detects a magnetic field with first coding information and the magnetic detection assembly locally stores verification information, the magnetic detection assembly compares the first coding information with the verification information, and when the first coding information is consistent with the verification information, the triggering signal is generated.
6. The method for controlling a door magnet switch according to any one of claims 1 to 4, comprising:
when the magnetic encoding component detects a magnetic field with second encoding information at a first moment and the magnetic detection component does not locally store the verification information, the magnetic detection component records the second encoding;
when the magnetic encoding assembly detects a magnetic field with third encoded information at a second moment, the magnetic detection assembly detects the third encoding;
when the third code is consistent with the second code, the magnetic detection component stores the second code as the verification information;
when the third code is not consistent with the second code, the magnetic detection component deletes the stored second code.
7. The method of controlling a door magnet switch according to claim 4, comprising:
when the magnetic encoding component detects a magnetic field with second encoding information at a first moment and the magnetic detection component does not locally store the verification information, the magnetic detection component records the second encoding;
when the magnetic encoding component detects a magnetic field with third encoded information at a second moment, the magnetic detection component detects the third encoding;
when the third encoding is consistent with the second encoding, the magnetic detection component stores the second encoding as the verification information;
when the third encoding is not consistent with the second encoding, the magnetic detection component deletes the stored second encoding;
when the third code is consistent with the second code, the magnetic detection component controls the indicator light circuit to generate a first display state;
when the third code is inconsistent with the second code, the magnetic detection component controls the indicator light circuit to generate a second display state.
CN202011528692.9A 2020-12-22 2020-12-22 Door magnetic switch and control method thereof Active CN112727300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011528692.9A CN112727300B (en) 2020-12-22 2020-12-22 Door magnetic switch and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011528692.9A CN112727300B (en) 2020-12-22 2020-12-22 Door magnetic switch and control method thereof

Publications (2)

Publication Number Publication Date
CN112727300A CN112727300A (en) 2021-04-30
CN112727300B true CN112727300B (en) 2022-08-16

Family

ID=75605491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011528692.9A Active CN112727300B (en) 2020-12-22 2020-12-22 Door magnetic switch and control method thereof

Country Status (1)

Country Link
CN (1) CN112727300B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113538778B (en) * 2021-07-02 2023-05-12 支付宝(杭州)信息技术有限公司 Cabinet and method for detecting closing of cabinet door

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1513960A (en) * 1974-08-02 1978-06-14 Western Electric Co Apparatus for reading coded information
CN202795622U (en) * 2012-09-28 2013-03-13 中国电信股份有限公司 Light-controlled type door magnetic sensor
CN103066970A (en) * 2012-12-25 2013-04-24 福州思迈特数码科技有限公司 Realization method and realization device for non-contact circuit reset
CN103905093A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Control method, control apparatus and electronic device
CN205140102U (en) * 2015-07-10 2016-04-06 成都凯天电子股份有限公司 Two -way wireless Intelligence door magnetic detector
CN106228656A (en) * 2016-08-03 2016-12-14 北海和思科技有限公司 A kind of intelligent access control system
CN206557874U (en) * 2017-03-09 2017-10-13 广东中安金狮科创有限公司 Intelligent entrance guard warning device and gate control system
CN110992548A (en) * 2019-11-27 2020-04-10 刘雪涵 Access control method and device and user terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1513960A (en) * 1974-08-02 1978-06-14 Western Electric Co Apparatus for reading coded information
CN202795622U (en) * 2012-09-28 2013-03-13 中国电信股份有限公司 Light-controlled type door magnetic sensor
CN103066970A (en) * 2012-12-25 2013-04-24 福州思迈特数码科技有限公司 Realization method and realization device for non-contact circuit reset
CN103905093A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Control method, control apparatus and electronic device
CN205140102U (en) * 2015-07-10 2016-04-06 成都凯天电子股份有限公司 Two -way wireless Intelligence door magnetic detector
CN106228656A (en) * 2016-08-03 2016-12-14 北海和思科技有限公司 A kind of intelligent access control system
CN206557874U (en) * 2017-03-09 2017-10-13 广东中安金狮科创有限公司 Intelligent entrance guard warning device and gate control system
CN110992548A (en) * 2019-11-27 2020-04-10 刘雪涵 Access control method and device and user terminal

Also Published As

Publication number Publication date
CN112727300A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US20220349245A1 (en) Lock device having position sensor
US9982459B2 (en) Door improvements and data mining via accelerometer and magnetometer electronic component
AU724204B2 (en) Process and device for controlling the closure of locks
CN112727300B (en) Door magnetic switch and control method thereof
EP2650848A2 (en) Large gap door/window, high security, intrusion detectors using magnetometers
US20080273754A1 (en) Apparatus and method for defining an area of interest for image sensing
CN207776611U (en) Door lock
CN110499964B (en) Intelligent lock and door opening identification method thereof
US20170038005A1 (en) Safety System
CN213988730U (en) Door magnetic switch
ES2730204T3 (en) Signaling system
CN205158558U (en) Door and window safety inspection device
Albak et al. Design security system based on arduino
CN204731913U (en) A kind of door magnetic-inductive device
EP3044597B1 (en) Shock sensor
RU170689U1 (en) MAGNETIC CONTACT ALARM SYSTEM
EP3170723A1 (en) Lock for a bicycle
US10643440B2 (en) Door/window sensor
EP3923257A1 (en) Security device, system and method
KR101626452B1 (en) Method of Separation and Control of Magnetic Signal for Detectry Invasion
JP2007146637A (en) Locking structure for opening part
TR201617852A2 (en) Door lock with alarm
EP3874285B1 (en) Determining an extent of opening of an openable barrier based on a magnetic sensor
CN113611045B (en) Helmet use control method of electric bicycle and electric bicycle
CN205577649U (en) Novel electronic intelligence lock

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