Monitoring method, system, computer equipment and storage medium based on door magnetic switch
By monitoring the door opening signal of the door sensor switch and using routers and gateways to send notifications, combined with multi-device monitoring threads to determine whether to send an early warning, the problem of the door sensor switch being unable to distinguish abnormal data is solved and the effect of intelligent monitoring and interference reduction is achieved.
Patent Information
- Application Number
- CN202210937376.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-08-05
AI Technical Summary
The existing door magnetic switch cannot distinguish whether the switch data is abnormal, resulting in the inability to realize intelligent reminders and disturbing users.
By monitoring the door opening signal of the door sensor switch, the access device of the router is obtained to determine whether there is a mobile communication device. If it exists, the door opening notification will be sent. If it does not exist, the door opening notification will be sent through the gateway, and multi-device monitoring threads will be enabled to determine whether to send an early warning. notify.
It improves the accuracy of abnormal recognition of door opening signals, reduces the interference of useless switch reminder information to users, and realizes intelligent monitoring.
Smart Images

Figure CN115314537B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a monitoring method, system, computer equipment and storage medium based on a door magnetic switch. Background Art
[0002] The door magnetic switch is a commonly used security monitoring device, which is used to monitor the opening and closing of doors, windows and safes. It can realize remote monitoring and promptly alert users when abnormal situations occur.
[0003] With the development of smart homes, door magnetic switches are increasingly used in general family homes. They are usually installed on the main door to provide reminders and records of door openings and closings, allowing users to keep abreast of the entry and exit of people at home.
[0004] However, a major problem with using door magnetic switches at home to detect and record the opening and closing of doors is that they cannot distinguish which switch data may be abnormal. They simply record the data and notify the user, but cannot provide intelligent reminders. Summary of the invention
[0005] Based on this, it is necessary to provide a monitoring method, system, computer device and storage medium based on a door magnetic switch to address the above-mentioned problems.
[0006] The embodiment of the present invention is implemented as follows: a monitoring method based on a door magnetic switch, the monitoring method based on a door magnetic switch comprising:
[0007] Detect the door opening signal of the door magnetic switch and obtain the access device of the router;
[0008] Determine whether the access devices of the router include a mobile communication device, and if so, send a door opening notification to at least one mobile communication device accessing the router;
[0009] If the access device of the router does not include a mobile communication device, a door opening notification is sent to at least one of the preset mobile communication devices through the gateway;
[0010] If no ignore instruction is received from the mobile communication device within the first set time period, the multi-device monitoring thread is enabled, and it is determined whether to send an early warning notification to the mobile communication device based on the multi-device monitoring result.
[0011] In one embodiment, the present invention provides a monitoring system based on a door magnetic switch, wherein the monitoring system based on a door magnetic switch comprises a door magnetic switch, a router, a gateway, and a computer device;
[0012] The door magnetic switch is configured to detect a door opening and closing signal;
[0013] The router is connected to the door magnetic switch for connection with a mobile communication device or a household device;
[0014] The gateway is used for communication connection with a remote mobile communication device;
[0015] The computer device communicates with the door magnetic switch, the router and the gateway respectively, and is used to execute the monitoring method based on the door magnetic switch as described in the present invention.
[0016] In one embodiment, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned monitoring method based on a door magnetic switch.
[0017] In one embodiment, the present invention provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned monitoring method based on a door magnetic switch.
[0018] The method provided by the present invention detects the door opening signal by means of a door magnetic switch, and then obtains the local mobile communication device by means of a router, and sends a door opening notification to the local mobile communication device; if there is no local mobile communication device, the door opening notification is sent to the remote mobile communication device; on this basis, the present invention also enables a multi-device detection thread to determine whether it is necessary to send an early warning notification to the mobile communication device. The present invention improves the accuracy of identifying whether the door opening signal is abnormal, reduces the interference of useless switch reminder information on the user, and realizes intelligent monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flow chart of a monitoring method based on a door magnetic switch provided by an embodiment of the present invention;
[0020] Figure 2 A structural block diagram of a monitoring system based on a door magnetic switch provided by an embodiment of the present invention;
[0021] Figure 3 FIG. 4 is a block diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0023] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script without departing from the scope of the present invention.
[0024] like Figure 1 As shown, in one embodiment, a monitoring method based on a door magnetic switch is proposed, which may specifically include the following steps:
[0025] Step S100, monitoring the door opening signal of the door magnetic switch and obtaining the access device of the router;
[0026] Step S200, determining whether the access devices of the router include a mobile communication device, and if so, sending a door opening notification to at least one mobile communication device accessing the router;
[0027] Step S300, if the access device of the router does not include a mobile communication device, a door opening notification is sent to at least one of the preset mobile communication devices through the gateway;
[0028] Step S400: If no ignore instruction is received from the mobile communication device within the first set time period, a multi-device monitoring thread is enabled, and it is determined whether to send an early warning notification to the mobile communication device according to the multi-device monitoring result.
[0029] In this embodiment, for home use scenarios, the door magnetic door opener is set on the door and the door frame. The specific setting form is related to the specific structure of the door magnetic switch, which can refer to the specific form of the existing door magnetic switch. The present invention does not involve improvements to the structure of the door magnetic switch itself, and this embodiment does not limit this.
[0030] In this embodiment, the door magnetic switch used in the present invention should have the ability to connect to a router or computer device to transmit data, preferably in a wireless connection manner, including but not limited to Bluetooth connection, WiFi connection, etc.
[0031] In this embodiment, if the access device of the router includes a mobile communication device, a door opening notification is sent to the mobile communication device connected to the router. If there is a local mobile communication device in the router, the probability that someone is at home is high. Sending a door opening notification to the local mobile communication device is the most effective and fast way, and even if an abnormal situation occurs, it can be handled in time. In this embodiment, the mobile communication device includes but is not limited to common forms such as smart phones, bracelets, and tablets. In this embodiment, whether to send a door opening notification to one or more local mobile communication devices can be set by the user.
[0032] In this embodiment, if the access device of the router does not include a local mobile communication device, a door opening notification is sent to a remote mobile communication device through the gateway and the Internet. Further, on this basis, if no ignore instruction is received after a first set time period after sending the door opening notification to the remote mobile communication device, and it is determined that an abnormal situation exists through the method of the present invention, an early warning notification is sent again to the corresponding mobile communication device or other mobile communication devices. In this embodiment, the first set time period can be set by the user, for example, 2 minutes, 3 minutes, 10 minutes, etc.
[0033] The method provided by the present invention detects the door opening signal by means of a door magnetic switch, and then obtains the local mobile communication device by means of a router, and sends a door opening notification to the local mobile communication device; if there is no local mobile communication device, the door opening notification is sent to the remote mobile communication device; on this basis, the present invention also enables a multi-device detection thread to determine whether it is necessary to send an early warning notification to the mobile communication device. The present invention improves the accuracy of identifying whether the door opening signal is abnormal, reduces the interference of useless switch reminder information on the user, and realizes intelligent monitoring.
[0034] As an optional embodiment of the present invention, the sending of a door opening notification to at least one mobile communication device accessing the router includes:
[0035] Determine the mobile communication device connected to the router;
[0036] Obtain the data transmission record of each mobile communication device connected to the router from t time before the door opening signal to the current time;
[0037] Determine the activity of the mobile communication device according to the data transmission record of the mobile communication device connected to the router;
[0038] A door opening notification is sent to at least one mobile communication device according to the activity level.
[0039] In this embodiment, it can be understood that the current moment here refers to the moment when the method of the present invention executes the corresponding step. Unless otherwise specified, all current moments in the present invention should be understood in this way. In this embodiment, the mobile communication device accessing the router can be determined by obtaining the signal occupancy of the router and the code or name of the device occupying each channel. For a family, the number of mobile communication devices is limited, so it is also possible to collect mobile communication devices that successfully access the router for multiple times within a period of time (such as one month, one year) and regard them as mobile communication devices belonging to the family. When the present invention is executed, the mobile communication device accessing the router is determined within the range of mobile communication devices belonging to the family.
[0040] In this embodiment, when the router transfers the data, it can be transmitted to the computer device executing the present invention in a backup manner, so that the computer device obtains the data transmission record of the mobile communication device. In this embodiment, it is not necessary to know what data the mobile communication device has transmitted specifically, but only to distinguish whether the data belongs to uplink or download, and the size of the data volume of the data.
[0041] In this embodiment, by calculating the activity of the mobile communication device, it is possible to determine which mobile communication device is the most active at the current moment, and by sending the door opening notification to the mobile communication device with the highest activity, the probability of the door opening notification being quickly known can be increased. In this embodiment, according to the activity level, the door opening notification is sent to at least one mobile communication device with the highest activity, and the door opening notification can also be sent to the second and third mobile communication devices ranked from high to low in terms of activity, so as to increase the probability of the door opening notification being known as soon as possible.
[0042] As an optional embodiment of the present invention, determining the activity of the mobile communication device according to the data transmission record of the mobile communication device accessing the router includes:
[0043] Determine the time t1 between the last data uplink of each mobile communication device accessing the router and the current time according to the data transmission record;
[0044] Determine the data upload volume Q of each mobile communication device accessing the router from the time the door opening signal is sent to the current moment according to the data transmission record;
[0045] The activity of each communication device is obtained from Q / t1.
[0046] In this embodiment, the activity of the mobile communication device is measured by the ratio Q / t1, wherein, within the same time period, the larger the amount of uplink data, the more times the device sends data requests to the network, the more complex the requested content, the more frequent the user's operation on the mobile device, and the more active the corresponding mobile communication device can be judged; accordingly, the shorter the time from the most recent data uplink to the current time, the more likely the corresponding mobile communication device is to receive a door opening notification.
[0047] As an optional embodiment of the present invention, the sending of the door opening notification to at least one mobile communication device accessing the router further includes:
[0048] Acquire the data uplink record of the mobile communication device that receives the door opening notification from the time when the door opening notification is sent to the second set time period;
[0049] Divide the second set time into three time periods: a front time period, a middle time period, and a back time period, and calculate the ratio of the uplink data volume to the time period in each time period to obtain a first ratio, a second ratio, and a third ratio;
[0050] If the three ratios obtained are all 0, the activity of each mobile communication device accessing the router is re-determined and the door opening notification is resent;
[0051] If the three ratios obtained are not 0 and the absolute value of the deviation between each ratio and the activity level Q / t1 is less than the first set threshold, the door opening notification is sent again to the mobile communication device that has received the door opening notification.
[0052] In this embodiment, the second set time length here can be set to 10 seconds, 15 seconds, etc. This time provides operation time for the user to view the door opening notification.
[0053] In this embodiment, by detecting the data uplink record of the mobile communication device within the second set time period, it is determined whether the door opening notification has been viewed. When the three ratios are not 0 and the deviation from the activity level is small, it indicates that the user is very likely not to stop the operation to view the notification before and after the door opening notification is sent. At this time, a reminder can be given by sending the door opening notification again.
[0054] In this embodiment, if all three ratios are 0, the corresponding mobile communication device has no data upload process during this period, the device is most likely not in use, and the door opening notification has not been effectively received. At this time, it is necessary to re-determine the highly active device and resend the door opening notification.
[0055] In this embodiment, it can be understood that when one or two of the three ratios are not 0, it indicates that the user has changed from operating to not operating or reducing the frequency of operation. At this time, the probability of the door opening notification being viewed after it is delivered is very high, and the computer device does not need to perform special processing.
[0056] In this embodiment, it should be noted that in other situations not listed, the system assumes that the user has been informed of the door opening notification and no special processing is required.
[0057] As an optional embodiment of the present invention, the enabling of a multi-device monitoring thread and determining whether to send an early warning notification to a mobile communication device according to a multi-device monitoring result includes:
[0058] Monitor the access records of each household device to the router within the third set time period since the door opening signal is generated;
[0059] Determining a newly added access device according to the access record;
[0060] Collect the data transmission volume of each newly connected device at a set frequency;
[0061] Calculate the average data transmission speed of each newly added access device in each collection cycle;
[0062] If the average data transmission speed of each collection cycle of the newly added access device is stable within the set range, it is judged that the corresponding newly added access device is in normal use, and there is no need to send an early warning notification to the mobile communication device.
[0063] In this embodiment, the third set time can be set to 5 to 10 minutes, which is used to determine whether an abnormality occurs in a household device. In this embodiment, it should be noted that the newly added access device here refers to the household device that originally existed in the home and matched with the router, which is changed from a non-access state to an access state, rather than a newly paired access of a device that has not been connected before. In this embodiment, if the door is opened, the home device is used normally after the door is opened. The person who opens the door is usually a family member, so no special treatment is required at this time. In this embodiment, the setting range here varies depending on different devices. For any specific device, the data transmission volume under the normal working state of the device can be collected to calculate the average data transmission speed, and the average data transmission speed can be fluctuated by 20% as the setting range. In this embodiment, the judgment that there is no need to send an early warning also needs to rely on data analysis.
[0064] As an optional embodiment of the present invention, the enabling of a multi-device monitoring thread and determining whether to send an early warning notification to the mobile communication device according to the multi-device monitoring result includes:
[0065] Monitor the disconnection records of each household device and the router within the fourth set time period since the door opening signal is generated;
[0066] Determining a newly added disconnected device according to the disconnection record;
[0067] Search available devices through the router to obtain a list of available devices;
[0068] Monitor the changes of the available device list to determine whether the newly added disconnected device always exists in the available device list, and if not, send an early warning notification to the mobile communication device.
[0069] In this embodiment, the fourth set time length can be equal to the third set time length, or can be set separately by the user, and the embodiment of the present invention does not specifically limit this. In this embodiment, it can be understood that the disconnection record here also refers to a newly added disconnection record, and the present invention does not consider the situation that the door has been disconnected before the door opening signal.
[0070] In this embodiment, if there is a newly added disconnection record, this is not a very common situation for household appliances. General household appliances that need to be connected to the network usually maintain the access status with the router for a long time without change. Therefore, it may be necessary to pay attention to the situation where the household appliance is disconnected after the door opening signal. In this case, the present invention further makes a judgment by exploring the list of available devices through the router. For normal situations, even if the household appliance is disconnected, it still remains powered on, and the router can still search for the household appliance. Therefore, only when the device is disconnected and disappears from the list of available devices, the present invention determines that an abnormal situation has occurred. At this time, it is necessary to send an early warning notification after the door opening notification to the remote mobile communication device.
[0071] As an optional embodiment of the present invention, the enabling of a multi-device monitoring thread and determining whether to send an early warning notification to the mobile communication device according to the multi-device monitoring result includes:
[0072] Search available devices through the router to obtain a list of available devices;
[0073] Determining whether there is a new device according to the available device list;
[0074] If so, an early warning notification is sent to the mobile communication device, and the network camera is turned on to collect environmental images and save them in the cloud for the mobile communication device to retrieve.
[0075] In this embodiment, with the help of the router's available device search, when the router detects the appearance of an unfamiliar available device after the door opening signal is generated, it is highly likely that the person opening the door is a stranger. At this time, in addition to sending the door opening notification, it is necessary to send an early warning notification to the remote mobile communication device to remind the user to pay attention to the situation at home; at the same time, after an abnormal situation may occur, the camera is called by the router to collect images in the area, and uploaded to the cloud for timely retrieval and viewing by the user, thereby realizing the function of automatic monitoring in advance.
[0076] like Figure 2 As shown, an embodiment of the present invention further provides a monitoring system based on a door magnetic switch, wherein the monitoring system based on a door magnetic switch includes a door magnetic switch, a router, a gateway, and a computer device;
[0077] The door magnetic switch is configured to detect a door opening and closing signal;
[0078] The router is connected to the door magnetic switch for connection with a mobile communication device or a household device;
[0079] The gateway is used for communication connection with a remote mobile communication device;
[0080] The computer device communicates with the door magnetic switch, the router and the gateway respectively, and is used to execute the monitoring method based on the door magnetic switch as described in any embodiment of the present invention.
[0081] In this embodiment, for the explanation of the steps executed in each part, please refer to the content of the method part of the present invention, and this embodiment will not go into details.
[0082] The system provided by the present invention detects the door opening signal with the help of a door magnetic switch, and then obtains the local mobile communication device with the help of a router, and sends a door opening notification to the local mobile communication device; if there is no local mobile communication device, the door opening notification is sent to the remote mobile communication device; on this basis, the present invention also enables a multi-device detection thread to determine whether it is necessary to send an early warning notification to the mobile communication device. The present invention improves the accuracy of identifying whether the door opening signal is abnormal, reduces the interference of useless switch reminder information on users, and realizes intelligent monitoring.
[0083] Figure 3 The internal structure diagram of a computer device in one embodiment is shown. The computer device may specifically be Figure 2 Computer equipment in. Figure 3 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the monitoring method based on the door magnetic switch provided in the embodiment of the present invention. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the monitoring method based on the door magnetic switch provided in the embodiment of the present invention. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0084] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0085] In one embodiment, a computer device is provided, the computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0086] Detect the door opening signal of the door magnetic switch and obtain the access device of the router;
[0087] Determine whether the access devices of the router include a mobile communication device, and if so, send a door opening notification to at least one mobile communication device accessing the router;
[0088] If the access device of the router does not include a mobile communication device, a door opening notification is sent to at least one of the preset mobile communication devices through the gateway;
[0089] If no ignore instruction is received from the mobile communication device within the first set time period, the multi-device monitoring thread is enabled, and it is determined whether to send an early warning notification to the mobile communication device based on the multi-device monitoring result.
[0090] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0091] Detect the door opening signal of the door magnetic switch and obtain the access device of the router;
[0092] Determine whether the access devices of the router include a mobile communication device, and if so, send a door opening notification to at least one mobile communication device accessing the router;
[0093] If the access device of the router does not include a mobile communication device, a door opening notification is sent to at least one of the preset mobile communication devices through the gateway;
[0094] If no ignore instruction is received from the mobile communication device within the first set time period, the multi-device monitoring thread is enabled, and it is determined whether to send an early warning notification to the mobile communication device based on the multi-device monitoring result.
[0095] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0097] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0098] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A monitoring method based on a door magnetic switch, characterized in that: The monitoring method based on the door magnetic switch includes: Detect the door opening signal of the door magnetic switch and obtain the access device of the router; Determine whether the access devices of the router include a mobile communication device, and if so, send a door opening notification to at least one mobile communication device accessing the router; If the access device of the router does not include a mobile communication device, a door opening notification is sent to at least one of the preset mobile communication devices through the gateway; If no ignore instruction is received from the mobile communication device within the first set time period, the multi-device monitoring thread is enabled, and whether to send an early warning notification to the mobile communication device is determined according to the multi-device monitoring result; The enabling of the multi-device monitoring thread and determining whether to send an early warning notification to the mobile communication device according to the multi-device monitoring result includes: Monitor the access records of each household device to the router within the third set time period since the door opening signal is generated; Determine a newly added access device according to the access record, where the newly added access device refers to a household device that originally existed in the household and matched with the router and has changed from a non-access state to an access state; Collect the data transmission volume of each newly connected device at a set frequency; Calculate the average data transmission speed of each newly added access device in each collection cycle; If the average data transmission speed of each collection cycle of the newly added access device is stable within the set range, it is judged that the corresponding newly added access device is in normal use, and there is no need to send an early warning notification to the mobile communication device; Monitor the disconnection records of each household device and the router within the fourth set time period since the door opening signal is generated; Determining a newly added disconnected device according to the disconnection record; Search available devices through the router to obtain a list of available devices; Monitor the changes of the available device list to determine whether the newly added disconnected device always exists in the available device list, and if not, send an early warning notification to the mobile communication device.
2. The monitoring method based on door magnetic switch according to claim 1 is characterized in that: The sending of a door opening notification to at least one mobile communication device accessing the router comprises: Determine the mobile communication device connected to the router; Obtain the data transmission record of each mobile communication device connected to the router from t time before the door opening signal to the current time; Determine the activity of the mobile communication device according to the data transmission record of the mobile communication device connected to the router; A door opening notification is sent to at least one mobile communication device according to the activity level.
3. The monitoring method based on door magnetic switch according to claim 2 is characterized in that: The step of determining the activity of the mobile communication device according to the data transmission record of the mobile communication device accessing the router comprises: Determine the time t1 between the last data uplink of each mobile communication device accessing the router and the current time according to the data transmission record; Determine the data upload volume Q of each mobile communication device accessing the router from the time the door opening signal is sent to the current moment according to the data transmission record; The activity of each communication device is obtained from Q / t1.
4. The monitoring method based on the door magnetic switch according to claim 3 is characterized in that: The step of sending a door opening notification to at least one mobile communication device accessing the router further comprises: Acquire the data uplink record of the mobile communication device that receives the door opening notification from the time when the door opening notification is sent to the second set time period; Divide the second set time into three time periods: a front time period, a middle time period, and a back time period, and calculate the ratio of the uplink data volume to the time period in each time period to obtain a first ratio, a second ratio, and a third ratio; If the three ratios obtained are all 0, the activity of each mobile communication device accessing the router is re-determined and the door opening notification is resent; If the three ratios obtained are not 0 and the absolute value of the deviation between each ratio and the activity level Q / t1 is less than the first set threshold, the door opening notification is sent again to the mobile communication device that has received the door opening notification.
5. The monitoring method based on door magnetic switch according to claim 1, characterized in that: The enabling of the multi-device monitoring thread and determining whether to send an early warning notification to the mobile communication device according to the multi-device monitoring result includes: Search available devices through the router to obtain a list of available devices; Determining whether there is a new device according to the available device list; If so, an early warning notification is sent to the mobile communication device, and the network camera is turned on to collect environmental images and save them in the cloud for the mobile communication device to retrieve.
6. A monitoring system based on a door magnetic switch, characterized in that: The monitoring system based on the door magnetic switch includes a door magnetic switch, a router, a gateway and a computer device; The door magnetic switch is configured to detect a door opening and closing signal; The router is connected to the door magnetic switch for connection with a mobile communication device or a household device; The gateway is used for communication connection with a remote mobile communication device; The computer device communicates with the door magnetic switch, the router and the gateway respectively, and is used to execute the monitoring method based on the door magnetic switch as described in any one of claims 1-5.
7. A computer device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the monitoring method based on the door magnetic switch as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the monitoring method based on a door magnetic switch as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Visitor informing method and device
CN104602204A
Monitoring method, monitoring device, electronic equipment and computer readable medium
CN114187720A
Indoor state monitoring method and device, storage medium and equipment
CN114220242A
