Door magnetic device based on NB-IoT
By using NB-IoT communication modules and micro switches in door sensor equipment, combined with PSM status wake-up and self-wake-up circuits, the problems of high equipment cost, high power consumption and anti-tamper risks are solved, achieving low cost and low power consumption. Door sensor equipment with anti-tamper function provides real-time data reporting and visual feedback.
Patent Information
- Application Number
- CN202420076140.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2034-01-11
AI Technical Summary
The existing door sensor equipment has high cost, high power consumption and lack of anti-tampering function, and there is a risk of being completely dismantled.
The NB-IoT communication module is used as the main control unit, combined with micro switches and LED indicators, to report anti-theft and anti-tampering data through the PSM status wake-up input pin, reduce power consumption, and detect equipment through function buttons and self-wake-up circuits. Status, providing installation data reporting function.
A low-cost, low-power door sensor device is realized, which has an anti-tamper function, reducing the risk of the device being illegally dismantled, and provides visual feedback of data reporting through LED indicators.
Smart Images

Figure CN221746674U
Abstract
Description
Technical Field
[0001] The embodiment of the utility model relates to the technical field of security alarm, and in particular to a door magnetic device based on NB-IoT. Background Art
[0002] A door magnetic device is an electronic device used to monitor the open and closed status of doors and windows. It usually consists of a door magnetic switch and a wireless communication module. The door magnetic switch is installed on the door frame and door leaf to detect the open and closed status of the door. When the door is opened or closed, the door magnetic switch will sense the change in the magnetic field and send this information to the wireless communication module. The wireless communication module then uses Narrow Band Internet of Things (NB-IoT) technology to send this information to the cloud platform or other receiving devices. In this way, users can monitor and control the status of doors and windows in real time through mobile phone applications or other terminal devices, and realize real-time monitoring and alarm of the status of doors and windows.
[0003] The existing door magnetic device uses MCU plus wireless communication module to realize wireless communication function, which is high in cost and power consumption. In addition, the current door magnetic device does not have its own anti-dismantling function and there is a risk of being completely dismantled. Utility Model Content
[0004] The purpose of the embodiments of the utility model is to provide a low-cost door magnetic device with an anti-dismantling function.
[0005] An embodiment of the utility model provides a door magnetic device based on NB-IoT, wherein the door magnetic device comprises: a door magnetic switch, a micro switch and a NB_IoT communication module; the micro switch is installed between the door magnetic switch and an opening and closing device to be monitored, and when the door magnetic device is installed on the opening and closing device to be monitored, the micro switch is pressed closed, and when the door magnetic device is removed from the opening and closing device to be monitored, the micro switch pops open; the NB_IoT communication module comprises a first PSM state wake-up input pin and a second PSM state wake-up input pin, the first PSM state wake-up input pin is electrically connected to the door magnetic switch, and is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and perform an anti-theft data reporting operation according to the switch change state of the door magnetic switch, and the second PSM state wake-up input pin is electrically connected to the micro switch, and is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and perform an anti-disassembly data reporting operation according to the pop-up state of the micro switch.
[0006] In addition, the door magnetic device also includes a function button, which is electrically connected to the second PSM state wake-up input pin of the NB_IoT communication module. The second PSM state wake-up input pin is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and execute the installation data reporting operation of the door magnetic device according to the pressing state of the function button.
[0007] In addition, the door magnetic device also includes an LED indicator light electrically connected to the NB_IoT communication module, which is used to light up and indicate in a preset manner when the NB_IoT communication module executes data reporting.
[0008] In addition, the LED indicator light includes a first color indicator light, which is used to light up when the NB_IoT communication module performs an anti-theft data reporting operation, and a second color indicator light, which is used to light up when the NB_IoT communication module performs an anti-dismantling data reporting operation.
[0009] In addition, the first color indicator light is a yellow LED light, which is used to light up the light when the NB_IoT communication module performs an anti-theft data reporting operation; the second color indicator light is a red LED light, which is used to light up the light at a fixed interval when the NB_IoT communication module performs an anti-dismantling data reporting operation.
[0010] In addition, the NB_IoT communication module is electrically connected to the self-wake-up circuit, and is used to trigger the NB_IoT communication module to self-wake up from the PSM state according to the time set by the clock, so as to detect the switch change state of the door magnetic switch, the pop-up state of the micro switch and the pressed state of the function button, and perform the anti-theft data reporting operation, the anti-dismantling data reporting operation and the installation data reporting operation of the door magnetic device.
[0011] In addition, the door magnetic device is powered by direct current through two dry batteries connected in series.
[0012] In addition, the door magnetic device also includes a battery voltage detection circuit, which is used to report low voltage alarm information through the NB_IoT communication module when the voltage of the dry battery is lower than a preset voltage value.
[0013] In addition, the opening and closing device is a door and window device.
[0014] In addition, the NB_IoT communication module is a BC260Y-CN module.
[0015] The technical solution provided by the embodiment of the utility model has the following advantages:
[0016] In the above technical solution, since the NB_IoT communication module has the functions of wireless communication and main control unit at the same time, compared with the prior art, the use of MCU plus wireless communication module to realize the wireless communication function saves costs, and the use of micro switches solves the risk of the door magnetic device being removed as a whole. In addition, the PSM state is awakened through two wake-up input pins, achieving the advantage of low power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments of the present invention are exemplarily described by the images in the corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.
[0018] Figure 1 A schematic diagram of the structure of a door magnetic device based on NB-IoT provided in one embodiment of the utility model;
[0019] Figure 2 A circuit diagram of an NB_IoT communication module in a NB-IoT-based door magnetic device provided in an embodiment of the utility model;
[0020] Figure 3 A circuit diagram of a micro switch trigger circuit in a door magnetic device based on NB-IoT provided in one embodiment of the utility model;
[0021] Figure 4 A circuit diagram of a function button trigger circuit in a door magnetic device based on NB-IoT provided in one embodiment of the utility model;
[0022] Figure 5 A circuit diagram of a driving circuit for an LED lamp in a NB-IoT-based door magnetic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] As can be seen from the background technology, the current door magnetic device uses MCU plus a wireless communication module to realize the wireless communication function, which has high cost and high power consumption. In addition, the current door magnetic device does not have its own anti-dismantling function and there is a risk of being completely dismantled.
[0024] To solve the above problems, an embodiment of the utility model provides a door magnetic device based on NB-IoT, wherein the door magnetic device includes: a door magnetic switch, a micro switch and a NB_IoT communication module; the micro switch is installed between the door magnetic switch and the opening and closing device to be monitored, and when the door magnetic device is installed on the opening and closing device to be monitored, the micro switch is pressed closed, and when the door magnetic device is removed from the opening and closing device to be monitored, the micro switch pops open; the NB_IoT communication module includes a first PSM state wake-up input pin and a second PSM state wake-up input pin, the first PSM state wake-up input pin is electrically connected to the door magnetic switch, and is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and perform the reporting operation of the anti-theft data according to the switch change state of the door magnetic switch, and the second PSM state wake-up input pin is electrically connected to the micro switch, and is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and perform the reporting operation of the anti-disassembly data according to the pop-up state of the micro switch. In the above technical solution, the NB_IoT communication module is used as the main control unit and the communication unit, which saves costs. The micro switch is used to solve the risk of the door magnetic device being removed as a whole. In addition, the PSM state is awakened through two wake-up input pins, achieving the advantage of low power consumption.
[0025] In addition, the door magnetic device also includes a function button, which is electrically connected to the second PSM state wake-up input pin of the NB_IoT communication module. The second PSM state wake-up input pin is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and execute the installation data reporting operation of the door magnetic device according to the pressing state of the function button.
[0026] In addition, the door magnetic device also includes an LED indicator light electrically connected to the NB_IoT communication module, which is used to light up and indicate in a preset manner when the NB_IoT communication module executes data reporting.
[0027] In addition, the LED indicator light includes a first color indicator light, which is used to light up when the NB_IoT communication module performs an anti-theft data reporting operation, and a second color indicator light, which is used to light up when the NB_IoT communication module performs an anti-dismantling data reporting operation.
[0028] In addition, the first color indicator light is a yellow LED light, which is used to light up the light when the NB_IoT communication module performs an anti-theft data reporting operation; the second color indicator light is a red LED light, which is used to light up the light at a fixed interval when the NB_IoT communication module performs an anti-dismantling data reporting operation.
[0029] In addition, the NB_IoT communication module is electrically connected to the self-wake-up circuit, and is used to trigger the NB_IoT communication module to self-wake up from the PSM state according to the time set by the clock, so as to detect the switch change state of the door magnetic switch, the pop-up state of the micro switch and the pressed state of the function button, and perform the anti-theft data reporting operation, the anti-dismantling data reporting operation and the installation data reporting operation of the door magnetic device.
[0030] In addition, the door magnetic device is powered by direct current through two dry batteries connected in series.
[0031] In addition, the door magnetic device also includes a battery voltage detection circuit, which is used to report low voltage alarm information through the NB_IoT communication module when the voltage of the dry battery is lower than a preset voltage value.
[0032] In addition, the opening and closing device is a door and window device.
[0033] In addition, the NB_IoT communication module is a BC260Y-CN module.
[0034] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present application, many technical details are provided in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented.
[0035] Figure 1 A schematic diagram of the structure of a door magnetic device based on NB-IoT provided in one embodiment of the utility model.
[0036] The NB-IoT-based door magnetic device described in the embodiment of the utility model includes a door magnetic switch 10. In the embodiment of the utility model, the door magnetic switch 10 mainly includes two shells, one of which includes a magnet part, and the other shell includes a switch part, and the switch part includes a circuit board with a normally open reed switch. The magnet part is mainly a permanent magnet containing a permanent magnet inside, which is used to provide a stable magnetic field. The two shells are respectively installed on the opening and closing devices to be monitored, such as doors and windows and door and window frames. When the doors and windows are in a closed state, the switch part is very close to the magnet part, and the magnetic field of the permanent magnet keeps the reed switch in a closed state. When the door or window is in an open state, the switch part is far away from the magnet part, and the reed switch that leaves the magnetic field will be disconnected, thereby realizing the monitoring of the door and window status.
[0037] Furthermore, in one of the embodiments of the utility model, the NB-IoT-based door magnetic device includes a NB-IoT communication module 11. The NB_IoT communication module 11 can select the BC260Y-CN module. The BC260Y-CN module can simultaneously realize the functions of wireless communication and main control unit, which solves the problem that the traditional door magnetic device uses MCU plus wireless communication module to realize wireless communication function, which is high in cost and power consumption. Furthermore, the wide voltage range of the NB_IoT communication module 11 is 2.2~4.5V, which is suitable for dry battery power supply; the maximum downlink rate is 127Kbps, and the maximum uplink rate is 158.5Kbps; in the PSM state, the maximum power consumption is 800nA, which meets the low power consumption requirements of door magnetic state monitoring.
[0038] Further, in one embodiment of the present invention, refer to Figure 2 The circuit diagram of the NB_IoT communication module shown in the figure, the NB_IoT communication module 11 includes two independent PSM state wake-up input pins, namely the first PSM state wake-up input pin PSM_EINT0 and the second PSM state wake-up input pin PSM_EINT1.
[0039] Among them, the PSM_EINT0 is electrically connected to the door magnetic switch 10 through the door magnetic switch detection circuit 100. The door magnetic switch detection circuit 100 triggers the awakening or interruption of the PSM state of the NB_IoT communication module 11 through PSM_EINT0 according to the switch change state of the door magnetic switch 10 and performs the reporting operation of the anti-theft data. After the NB_IoT communication module 11 is awakened or the interrupt is triggered, it reads the state of the door magnetic switch 10 to determine whether the reed switch in the door magnetic switch 10 is far away from the permanent magnet. If far away, it means that the doors and windows are opened, and the information that the doors and windows are opened is reported through the NB-IoT network. If not far away, it means that the doors and windows are closed, and the information that the doors and windows are closed is reported through the NB-IoT network.
[0040] Furthermore, in order to facilitate and flexibly install, the traditional door magnetic device is attached to the doors and windows by means of double-sided tape. Because the door magnetic device is divided into two shells, one shell is far away from the other shell, and the magnetic field of the reed switch changes, it will trigger the on-off change of the reed switch; however, if the two shells are moved at the same time and the distance between the two shells remains unchanged, the door magnetic device will be at risk of being illegally disassembled as a whole. In order to solve this problem, in the embodiment of the utility model, the door magnetic device also includes a micro switch 12; the guide rod outside the micro switch 12 is directly below the shell including the switch part. After the door magnetic device is installed on the door and window, the micro switch 12 will be pressed closed. If this shell is removed from the door and window, the micro switch 12 will pop open, triggering the anti-disassembly function.
[0041] In one embodiment of the utility model, the PSM_EINT1 of the NB_IoT communication module 11 is as follows Figure 3 The micro switch trigger circuit 120 shown is electrically connected to the micro switch 12. When the door magnetic device is removed as a whole, the micro switch 12 pops open. The micro switch trigger circuit 120 triggers the wake-up or interruption of the PSM state of the NB_IoT communication module 11 through PSM_EINT1 according to the pop-up state of the micro switch 12 and performs the reporting operation of the anti-disassembly data. After the NB_IoT communication module 11 is awakened or interrupted, it reads the state of the micro switch 12 to determine whether the micro switch 12 is popped open. If it is in the pop-up state, the alarm information that the door magnetic device is disassembled is reported through the NB-IoT network.
[0042] In one embodiment of the present invention, the NB-IoT-based door magnetic device further includes a function button 13. The function button 13 is configured as follows: Figure 4 The function button trigger circuit 130 shown is electrically connected to the PSM_EINT1 of the NB_IoT communication module 11. The function button 13 is used to report the formal installation data of the door magnetic device. When the function button trigger circuit 130 detects that the function button 13 is pressed, it triggers the wake-up or interruption of the PSM state of the NB_IoT communication module 11 through PSM_EINT1 and executes the installation data reporting operation of the door magnetic device. After the NB_IoT communication module 11 is awakened or interrupted, the state of the function button 13 is read to determine whether the function button 13 is pressed. If there is a pressing action, the formal installation application information will be reported through the NB-IoT network.
[0043] Furthermore, in one embodiment of the utility model, the NB-IoT-based door magnetic device also includes an LED indicator light 14 electrically connected to the NB_IoT communication module 11, which is used to light up and indicate in a preset manner when the NB_IoT communication module 11 performs data reporting. In one embodiment of the utility model, when the NB_IoT communication module performs an anti-theft data reporting operation, the first color indicator light performs a light-on indication, and when the NB_IoT communication module performs an anti-dismantling data reporting operation, the second color indicator light performs a light-on indication. In one embodiment of the utility model, the first color indicator light is a yellow LED light, and when the NB_IoT communication module performs an anti-theft data reporting operation, it lights up, such as performing a short light operation for two seconds; the second color indicator light is a red LED light, and when the NB_IoT communication module performs an anti-dismantling data reporting operation, it lights up at a fixed interval, such as a short light operation for two seconds every three seconds. The driving circuit of the LED indicator light can be found in Figure 5 shown.
[0044] Furthermore, the NB_IoT communication module 11 is electrically connected to a self-wake-up circuit, and the self-wake-up circuit is triggered by a clock to open and close the state. Specifically, the clock self-wakes up the NB_IoT communication module 11 from the PSM state according to the set time, and turns on the PSM state of the NB_IoT communication module 11 when the preset time is reached, such as 1 minute after the start of the PSM state self-wake-up time. In the embodiment of the utility model, the NB_IoT communication module 11 self-wakes up from the PSM state according to the set time using the self-wake-up circuit, and after waking up, it will detect the battery voltage, the reed switch status, the function button status, the micro switch status, and finally report the whole machine status information of the door magnetic device, indicating that the door magnetic circuit is working normally.
[0045] In the embodiment of the utility model, the door magnetic device further includes a power supply unit 15. The power supply unit 15 supplies power to all devices and circuits in the door magnetic device through dry batteries. Dry batteries are convenient to purchase and flexible to use. After two dry batteries are connected in series, a 3V voltage is output to power the NB_IoT communication module 11. The embodiment of the utility model may include a battery voltage detection circuit. When the battery voltage is too low, a low voltage alarm message will be reported through the NB-IoT network.
[0046] The following uses the application scenario of the door magnetic device on the entrance door of a house sealed by the court as an example to illustrate the use of the door magnetic device:
[0047] After the SIM card is installed on the door magnetic device, it is powered by 3V DC after two dry batteries are connected in series. The door magnetic device automatically turns on and is in pre-installation mode. At this time, no information will be reported; after the door magnetic device is installed on the door, the permanent magnet part is on the door frame, the circuit board part is on the door, and the entrance door is closed. By pressing the function button, the door magnetic device will detect that the SIM card has been installed, the power supply battery voltage is normal, the micro switch has been closed, the reed switch has been turned on, and the device status information and application installation information are reported to the background server through NB-IoT wireless communication. After receiving the installation letter, the background server identifies the identity of the door magnetic device according to the door magnetic device number and the preset identification code in the whole machine. After determining that it is legal, it sends the startup information. After the door magnetic device receives the startup information, the NB-IoT communication module enters the PSM (Power Saving Mode) state, and the door magnetic device starts the normal working process. When the door is pushed open, the reed switch moves away from the magnetic field, and the state changes from on to off, causing the door magnetic switch detection circuit to trigger the NB-IoT communication module through PSM_EINT0. The NB-IoT communication module detects that the reed switch is off, the micro switch is normal, and the battery supply voltage is normal, and reports the door open status information; when the door is closed, the reed switch enters the magnetic field, and the state changes from off to on, causing the trigger circuit to trigger the NB-IoT communication module through PSM_EINT0, detect that the reed switch is on, the micro switch is normal, and the battery supply voltage is normal, and report the door closed status information. When the door magnetic device is removed, the micro switch is triggered to pop open, and the NB-IoT communication module is directly triggered through PSM_EINT1. After checking that the micro switch pops open, the door magnetic device is reported to be removed. If the status of the reed switch, function button, and micro switch of the door magnetic device has not changed, and the NB-IoT communication module has no external wake-up and interrupt signals, the NB-IoT communication module will wake up from the PSM state after the preset time, detect the battery supply voltage, the status of the reed switch, the status of the micro switch, and report the device status, indicating that the device is working normally.
[0048] Those skilled in the art can understand that the above-mentioned embodiments are specific examples for implementing the present application, and in practical applications, various changes can be made to them in form and detail without departing from the spirit and scope of the present application. Any person skilled in the art can make their own changes and modifications without departing from the spirit and scope of the present application, so the scope of protection of the present application shall be based on the scope defined in the claims.
Claims
1. A door magnetic device based on NB-IoT, characterized in that: The door magnetic device includes: a door magnetic switch, a micro switch and a NB_IoT communication module; the micro switch is installed between the door magnetic switch and the opening and closing device to be monitored, when the door magnetic device is installed on the opening and closing device to be monitored, the micro switch is pressed closed, and when the door magnetic device is removed from the opening and closing device to be monitored, the micro switch pops open; the NB_IoT communication module includes a first PSM state wake-up input pin and a second PSM state wake-up input pin, the first PSM state wake-up input pin is electrically connected to the door magnetic switch, and is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and perform the reporting operation of the anti-theft data according to the switch change state of the door magnetic switch, and the second PSM state wake-up input pin is electrically connected to the micro switch, and is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and perform the reporting operation of the anti-disassembly data according to the pop-up state of the micro switch.
2. The NB-IoT-based door magnetic device according to claim 1, characterized in that: The door magnetic device also includes a function button, which is electrically connected to the second PSM state wake-up input pin of the NB_IoT communication module. The second PSM state wake-up input pin is used to trigger the wake-up or interruption of the PSM state of the NB_IoT communication module and execute the installation data reporting operation of the door magnetic device according to the pressing state of the function button.
3. The NB-IoT-based door magnetic device according to claim 1, characterized in that: The door magnetic device also includes an LED indicator light electrically connected to the NB_IoT communication module, which is used to light up and indicate in a preset manner when the NB_IoT communication module executes data reporting.
4. The NB-IoT-based door magnetic device according to claim 3, characterized in that: The LED indicator light includes a first color indicator light, which is used to light up when the NB_IoT communication module performs an anti-theft data reporting operation, and a second color indicator light, which is used to light up when the NB_IoT communication module performs an anti-disassembly data reporting operation.
5. The NB-IoT-based door magnetic device according to claim 4, characterized in that: The first color indicator light is a yellow LED light, which is used to light up the light when the NB_IoT communication module performs an anti-theft data reporting operation; the second color indicator light is a red LED light, which is used to light up the light at a fixed interval when the NB_IoT communication module performs an anti-dismantling data reporting operation.
6. The NB-IoT-based door magnetic device according to claim 2, characterized in that: The NB_IoT communication module is electrically connected to the self-wake-up circuit, and is used to trigger the NB_IoT communication module to self-wake up from the PSM state according to the time set by the clock, so as to detect the switch change state of the door magnetic switch, the pop-up state of the micro switch and the pressed state of the function button, and perform the reporting operation of anti-theft data, the reporting operation of anti-dismantling data and the reporting operation of installation data of the door magnetic device.
7. The NB-IoT-based door magnetic device according to claim 1, characterized in that: The door magnetic device is powered by direct current through two dry batteries connected in series.
8. The NB-IoT-based door magnetic device according to claim 7, characterized in that: The door magnetic device also includes a battery voltage detection circuit, which is used to report low voltage alarm information through the NB_IoT communication module when the voltage of the dry battery is lower than a preset voltage value.
9. The NB-IoT-based door magnetic device according to claim 1, characterized in that: The opening and closing device is a door and window device.
10. The NB-IoT-based door magnetic device according to claim 1, characterized in that: The NB_IoT communication module is a BC260Y-CN module.
