According to detection mobile phone address, automatically cloth is withdrawn a garrison the method for monitoring
Technical field
The present invention relates to domestic safety monitoring field, especially relate to a kind of according to detection mobile phone address automatically cloth to withdraw a garrison the method for monitoring.
Background technology
Along with the raising of people's living standard and the universal of network, security protection becomes more and more popular, the development of information technology especially in recent years and the improvement of people's living environment, impels the consciousness of people to home safety protection unprecedentedly to be strengthened.Therefore, the use in the family of indoor video monitoring system is further universal, and by video monitoring system, user can carry out effective remote video monitoring whenever and wherever possible, realizes the alarm linkage function of various ways.Go to work at ordinary times as owner or go on business temporarily, utilize this video monitoring system, field condition at home can be observed in time, if family also has stay-at-home old man, child, the situations such as its daily life, game and health can also be understood in time, and can also remote assistance process to accident, allow oneself more relieved work.Giving monitoring timely and processing simultaneously to anomalous events such as burglaries, ensure that the safety of family.
Current indoor security is two kinds of modes mainly: one is video monitoring, and another kind is infra-red detection.Current video monitoring mode mainly adopts camera, and additional main frame and storage hard disk can connect into monitor network by external network, realize remote monitoring.This technology is based on video technique monitoring, and monitoring content data volume is large, and deploys troops on garrison duty and entirely to control artificially with removing to put.Deploying troops on garrison duty of infrared acquisition needs special operation with withdrawing a garrison, cumbersome, operates, once forget that operation is just ineffective when being only suitable on and off duty.To sum up, existing supervisory control system cloth is withdrawn a garrison and is divided into two kinds: one is controlled by people, whether owner is at guarded region for None-identified, must be withdrawn a garrison by remote controller or APP cloth artificially, not only not intelligent but also add human cost, this situation is forgotten to withdraw a garrison after causing likely owner to go home and is caused false alarm, or gos out that forgetting deploys troops on garrison duty cannot know stolen information; Another is that timing cloth is withdrawn a garrison, and need complicated configuration, can not be applicable to time erratic scene, needs and Non-follow control combine and could effectively work.
Chinese patent CN103198632 discloses the indoor security system of a kind of intelligent human-body identification and owner's identification, the system be made up of security protection main frame, WIFI wireless router, danger button, portable WIFI terminal, the smart mobile phone carried with or other intelligent terminal.This patent is read all clients of router, this technology removes to open the configuration interface of router, read the list of online client, then by comparing with the MAC Address of preserving, automatically withdrawing a garrison/deploying troops on garrison duty of safety-protection system is realized with this.The shortcoming of this invention is; 1, the configuration of routers interface of each producer is different, needs to simulate different requests for different routers, if adaptive router upgrade, also may need update routine, so can not be applicable to all-router; 2, this technology needs the account executive of acquisition router and password just can carry out; 3, speed of detection is slow, needs repeatedly just can get correct information alternately with router.
Summary of the invention
The object of the invention is to overcome the defect existed in prior art, and propose according to detection mobile phone address automatically cloth to withdraw a garrison the method for monitoring, it comprises mobile intelligent terminal and supervising device, described supervising device is provided with wireless module and memory module, the present invention does not need the manual or complicated object arranging to reach cloth and withdraw a garrison, full automation runs, accurately can control the opportunity that cloth is withdrawn a garrison, and applicability is strong, realization is simple, stable performance, for domestic safety monitoring provides a kind of more economic, practical technical scheme.
Technical solution problem of the present invention, the technical scheme adopted is:
According to detection mobile phone address, automatically cloth is withdrawn a garrison the method for monitoring, and comprise mobile intelligent terminal and supervising device, the wireless module of described supervising device is provided with RARP server and memory module, and described automatic arming and disarming method specifically comprises the following steps:
Steps A: the mac address of intelligent mobile terminal is sent to supervising device by the APP in mobile intelligent terminal by legal user, mac address described in supervising device keeping records, forms the mac address list of supervising device;
Step B: the mac address list that supervising device timing is preserved detects, confirm that the user carrying intelligent mobile terminal is whether within the scope of the wireless signal of supervising device, concrete grammar is: the mac address list that supervising device timing is preserved carries out RARP (RFC 903:Reverse Address Resolution Protocol) broadcast, if the intelligent mobile terminal in steps A is within the scope of the wireless signal of supervising device, then described intelligent mobile terminal is to supervising device response data packet, represent that validated user is in, if intelligent mobile terminal is not within the scope of the wireless signal of supervising device, then supervising device can not receive response data packet, represent that validated user is stayed out,
Step C: as supervising device does not detect the intelligent mobile terminal of the mac address adopted in list, then supervising device is deployed troops on garrison duty, as supervising device detects the intelligent mobile terminal of the mac address adopted in list, then supervising device is withdrawn a garrison.
Further, described according to detection mobile phone address automatically the withdraw a garrison method of monitoring of cloth be: also comprise wireless router, described mobile intelligent terminal can with wireless router wireless connections, the compatible DHCP service agreement of wireless module of described supervising device.
Further, in described step B, the concrete grammar that the MAC Address list that supervising device is preserved is carried out detecting is: the wireless module of supervising device monitors 67 ports of udp broadcast, if the wireless module of supervising device receives DHCP offer message, wireless module parses MAC Address and the IP address of the transmitting terminal of DHCP offer message, the MAC Address parsed and the list of preservation MAC Address are contrasted, if the MAC Address parsed is consistent with the MAC address preserved in MAC Address list, then preserve the MAC Address and IP address that parse, if the MAC Address parsed is all inconsistent with all MAC Address of preserving in MAC Address list, then the wireless module of supervising device continues 67 ports monitoring udp broadcast, whether the wireless module of supervising device regularly inquires about the IP address of having preserved online, if online, mobile intelligent terminal then in steps A is within the scope of the wireless signal of wireless router, represent that validated user is in, supervising device is withdrawn a garrison, if the IP address of having preserved is not online, then the mobile intelligent terminal in steps A is not within the scope of the wireless signal of wireless router, and represent that validated user is stayed out, supervising device is deployed troops on garrison duty.
The whether online method in the IP address of having preserved regularly inquired about by described supervising device is the ping instruction adopting ICMP agreement.
In described step B, the concrete grammar that the MAC Address list that supervising device is preserved is carried out detecting can also be: the wireless module of supervising device adopts monitor pattern, detect all wireless data packet, wireless module parses the MAC Address of transmitting terminal in wireless data packet, the MAC Address parsed and the list of preservation MAC Address are contrasted, if the MAC Address parsed is consistent with the MAC address preserved in MAC Address list, mobile intelligent terminal then in steps A is within the scope of the wireless signal of wireless router, represent that validated user is in, supervising device is withdrawn a garrison, if the MAC Address parsed is with all MAC Address of preserving in MAC Address list, inconsistent or wireless module does not detect the wireless data packet comprising MAC Address, mobile intelligent terminal then in steps A is not within the scope of the wireless signal of wireless router, represent that validated user is stayed out, supervising device is deployed troops on garrison duty.
Further, described mobile intelligent terminal is smart mobile phone, and described supervising device is CCTV camera.
Further, in described steps A, MAC Address sending method adopts the APP software in mobile intelligent terminal to send.
Compared with prior art, the invention has the beneficial effects as follows:
Adopt above-mentioned according to detection mobile phone address automatically cloth to withdraw a garrison the method for monitoring, can adaptive all wireless routers, do not need to carry out adaptation for special router.Realize simple and stable, speed be fast, only need ping to inquire about just can to know the MAC Address of specifying whether restriction apart from, thus can not be too high to the performance requirement of system hardware and software, thus the manufacturing cost of whole watch-dog is also controlled effectively.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, specific embodiment of the invention scheme is elaborated.
Fig. 1 is that automatically cloth is withdrawn a garrison the method step A schematic diagram of monitoring according to detection mobile phone address.
Fig. 2 is that automatically cloth is withdrawn a garrison the method step B flow chart of monitoring according to detection mobile phone address.
Fig. 3 is that automatically cloth is withdrawn a garrison the method step C flow chart of monitoring according to detection mobile phone address.
Fig. 4 is that automatically cloth is withdrawn a garrison method the second embodiment step B of monitoring, the flow chart of C according to detection mobile phone address.
Specific embodiments
Below in conjunction with specific embodiments of the invention; clear, complete description is carried out to technical scheme of the present invention; obviously described embodiment is only a part of embodiment of the present invention; based on the embodiment in the present invention; those skilled in the art, in all embodiments not having to obtain under creative work prerequisite, belong to protection scope of the present invention.
According to detection mobile phone address, automatically cloth is withdrawn a garrison the method for monitoring, comprise smart mobile phone, wireless router and CCTV camera, wireless module and memory is provided with in CCTV camera, smart mobile phone can with wireless router wireless connections, the compatible DHCP service agreement of wireless module of CCTV camera, specifically comprises the following steps:
Steps A as shown in Figure 1, belong to the registration process of smart mobile phone, the MAC Address of smart mobile phone is sent to CCTV camera by the APP software in smart mobile phone by legal user, MAC Address described in CCTV camera keeping records, form the MAC Address list of CCTV camera, this step is also just carried out when smart mobile phone is registered for the first time.
Step B as shown in Figure 2, now CCTV camera is in starting state, the wireless module of CCTV camera monitors 67 port receives data bags of udp broadcast, the difference of this snoop procedure and the first embodiment is to monitor carries out always, if the wireless module of CCTV camera receives DHCP offer message, wireless module goes out MAC Address and the IP address of the transmitting terminal of DHCP offer message by DHCP protocol analysis, the MAC Address list of the MAC Address parsed and preservation is contrasted, if the MAC Address parsed is consistent with the MAC address in the MAC Address list of preservation, represent that registered smart mobile phone is in the wireless network of wireless router, then preserve the MAC Address and IP address that parse, if the MAC Address parsed is all inconsistent with all MAC Address of preserving in MAC Address list, represent that smart mobile phone is not in the wireless network of wireless router, then the wireless module of CCTV camera continues 67 ports monitoring udp broadcast.
Step C as shown in Figure 3: whether the IP address that CCTV camera timing adopts the ping instructions query of ICMP agreement to preserve is online, if online, the smart mobile phone then registered is within the scope of the wireless signal of wireless router, and represent that validated user is in, so CCTV camera is withdrawn a garrison; If the IP address of having preserved is not online, then the smart mobile phone registered is not within the scope of the wireless signal of wireless router, and represent that validated user is stayed out, so CCTV camera is deployed troops on garrison duty; Above-mentioned steps C will repeat once at set intervals, to reaffirm that whether smart mobile phone is online.
CCTV camera carries out detecting the monitor pattern that can also adopt wireless network card, detect all wireless data packet that can receive, wireless network card parses the MAC Address of the transmitting terminal comprised in wireless data packet, the MAC Address parsed and the list of preservation MAC Address are contrasted, if the MAC Address parsed is consistent with the MAC address preserved in MAC Address list, then represent that registered smart mobile phone is within the scope of the wireless signal of wireless network card, represent that validated user is in, CCTV camera is withdrawn a garrison; If the MAC Address parsed is with all MAC Address of preserving in MAC Address list, inconsistent or wireless module does not detect the wireless data packet comprising MAC Address, then represent that validated user is stayed out, CCTV camera is deployed troops on garrison duty.
Adopt above-mentioned according to detection mobile phone address automatically cloth to withdraw a garrison the method for monitoring, the object not needing manual or complicated setting just can reach automatic cloth to withdraw a garrison, can adaptive all wireless routers, do not need to carry out adaptation for special router, full automation runs, accurately can control the opportunity that cloth is withdrawn a garrison, applicability is strong, realization is simple, stable performance, and to system hardware and software performance less demanding, the manufacturing cost of whole watch-dog is also controlled effectively.
In addition, according to detection mobile phone address, automatically cloth is withdrawn a garrison the method for monitoring, also has the second specific embodiment, its the second specific embodiment comprises smart mobile phone and CCTV camera, wireless module and memory is provided with in CCTV camera, be integrated with RARP server in described wireless module, described RARP Servers installed is the response part only used in RARP agreement, specifically comprises the following steps:
Steps A: as shown in Figure 4, belong to the registration process of smart mobile phone, the MAC Address of smart mobile phone is sent to CCTV camera by the APP software in smart mobile phone by legal user, MAC Address described in CCTV camera keeping records, forms the MAC Address list of CCTV camera; Owing to can preserve MAC Address at CCTV camera, therefore steps A only needs to carry out once for a mobile phone, and CCTV camera can store the address information of multiple mobile phone.
Step B, C as shown in Figure 4: CCTV camera starts, the MAC Address list that timing is preserved detects, confirm that the user carrying smart mobile phone is whether within the scope of the wireless signal of CCTV camera, concrete grammar is: RARP broadcast is carried out in the MAC Address list that CCTV camera is preserved, if the smart mobile phone in steps A is within the scope of the wireless signal of CCTV camera, then described smart mobile phone is to CCTV camera response data packet, and represent that validated user is in, supervising device is withdrawn a garrison; If smart mobile phone is not within the scope of the wireless signal of CCTV camera, then CCTV camera can not receive response data packet, represent that validated user is stayed out, supervising device is deployed troops on garrison duty, the present embodiment only uses the response part in RARP agreement, do not use IP address assignment part wherein, the MAC Address therefore only needing RARP just can know alternately to specify whether restriction apart from, speed is better than prior art greatly; If do not detect the smart mobile phone of the MAC Address in CCTV camera address list, then CCTV camera is deployed troops on garrison duty, if detect the smart mobile phone of the MAC Address in CCTV camera address list, then CCTV camera is withdrawn a garrison; The detection process of the MAC Address of step B and C is repeated after one section of time delay.Adopt above-mentioned steps, data interaction is only carried out between video camera and smart mobile phone, need not consider the model of router and the problem such as close down, having certain versatility.
The above; be only the specific embodiment of the present invention; those of ordinary skill in the art are in the scope that the present invention discloses; the change that can expect easily, any simple modification and remodeling; as CCTV camera is changed into warning device, automatic air conditioner etc., all should be encompassed within protection scope of the present invention.