According to detection mobile phone address, automatic cloth is withdrawn a garrison the method for monitoring
Technical field
The present invention relates to domestic safety monitoring field, is withdrawn a garrison more particularly, to a kind of cloth automatic according to detection mobile phone address
The method of monitoring.
Background technology
Become more and more popular with the improvement of people ' s living standards with the popularization of network, security protection, it is especially near several
The year development of information technology and the improvement of people's living environment, people are promoted to obtain the consciousness of home safety protection unprecedented strong
Change.Therefore, the use of indoor video monitoring system in the family is popularized further, by video monitoring system, user can at any time with
Ground carries out effective remote video monitoring, realizes the alarm linkage function of various ways.Usually go to work such as owner or go on business temporarily,
Using this video monitoring system, house field condition can be observed in time, if family also has stay-at-home old man, child, may be used also
Situations such as to understand its daily life, game and health in time, and accident can be handled with remote assistance, allow certainly
Oneself more trusts work.Timely monitoring and processing are given to anomalous events such as burglaries simultaneously, it is ensured that family
Safety.
Indoor security is mainly two ways at present:One kind is video monitoring, and another kind is infra-red detection.Current regards
Frequency monitor mode mainly uses camera, additional main frame and storage hard disk, monitoring network can be connected into by external network,
Realize remote monitoring.Based on this technology is monitored with video technique, monitoring content data volume is big, and deploy troops on garrison duty and remove put it is complete by artificial
Control.Deploying troops on garrison duty and withdrawing a garrison for infrared acquisition needs special operation, cumbersome, is operated when being only suitable on and off duty, once forget
Operation is just ineffective.To sum up, existing monitoring system cloth, which is withdrawn a garrison, is divided into two kinds:One kind is controlled by people, and whether None- identified
Owner is in monitor area, it is necessary to artificially withdrawn a garrison by remote control or APP cloth, not only not intelligence and also add manpower into
This, such case causes to be possible to forget to withdraw a garrison after owner goes home to cause false alarm, or go out forget to deploy troops on garrison duty can not know by
Steal information;Another is that timing cloth is withdrawn a garrison, it is necessary to complicated configuration, it is impossible to the irregular scene suitable for the time, it is necessary to and
Control is combined and could effectively worked manually.
Chinese patent CN103198632 discloses a kind of indoor security system of intelligent human-body identification and owner's identification, by
Security protection main frame, WIFI wireless routers, danger button, portable WIFI terminal, the smart mobile phone carried with or other intelligence are eventually
The system for holding composition.The patent is that all clients of router are read by the program in security protection main frame, and the technology is to pass through
Program simulates people and is gone to open the configuration interface of router with browser, reads the list of online client, then by with preservation
MAC Address compare, realize that the automatic of safety-protection system is withdrawn a garrison/deployed troops on garrison duty with this.The shortcomings that invention, is;1st, each producer
Configuration of routers interface it is all different, it is necessary to different requests be simulated for different router, if adapted road
Upgraded by device, may also need to change program, it is impossible to suitable for all-router;2nd, the technology needs to obtain router
Account executive and password could carry out;3rd, speed of detection is slow, it is necessary to which the interaction of multiple and router can just get correct letter
Breath.
The content of the invention
It is an object of the invention to overcome defect present in prior art, and the foundation detection mobile phone address that proposes and from
Dynamic cloth is withdrawn a garrison the method for monitoring, and it includes mobile intelligent terminal and supervising device, and the supervising device is provided with wireless module and deposited
Module is stored up, the present invention does not need manual or complicated setting to reach the purpose that cloth is withdrawn a garrison, full automation operation, Ke Yijing
The opportunity for really controlling cloth to withdraw a garrison, and strong applicability, simple, stable performance is realized, provide one kind for domestic safety monitoring
More economic, practical technical scheme.
The present invention solves technical problem, and used technical scheme is:
According to detection mobile phone address, automatic cloth is withdrawn a garrison the method for monitoring, including mobile intelligent terminal and supervising device, institute
The wireless module for stating supervising device is provided with RARP servers and memory module, and the automatic arming and disarming method specifically includes following step
Suddenly:
Step A:The mac addresses of intelligent mobile terminal are sent to by legal user by the APP in mobile intelligent terminal
Supervising device, mac addresses described in supervising device keeping records, form the mac address lists of supervising device;
Step B:Supervising device timing is detected with the mac address lists preserved, confirms to carry intelligent mobile terminal
Whether in the range of the wireless signal of supervising device, specific method is user:The mac address lists that supervising device timing preserves
Carry out RARP (RFC 903:Reverse Address Resolution Protocol) broadcast, if the intelligent sliding in step A
Dynamic terminal is in the range of the wireless signal of supervising device, then the intelligent mobile terminal gives supervising device one response data packet,
Represent that validated user is in, if intelligent mobile terminal is not in the range 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 using the mac addresses in list, then supervising device
Deployed troops on garrison duty, as supervising device detects the intelligent mobile terminal using the mac addresses in list, then supervising device is withdrawn a garrison.
Further, the withdraw a garrison method of monitoring of described foundation detection mobile phone address and automatic cloth is:Also include without circuit
By device, the mobile intelligent terminal can take with wireless router wireless connection, the wireless module compatibility DHCP of the supervising device
Business agreement.
Further, in the step B, the specific method that supervising device is detected with the MAC Address list preserved is:
The wireless module of supervising device monitors 67 ports of udp broadcast, if the wireless module of supervising device receives DHCP offer and disappeared
Breath, wireless module parses the MAC Address and IP address of the transmitting terminal of DHCP offer message, by the MAC Address parsed with
Preserve MAC Address list to be contrasted, if the MAC Address parsed is with preserving the MAC address in MAC Address list
It is consistent, then the MAC Address parsed and IP address are preserved, if the MAC Address parsed is with preserving in MAC Address list
All MAC Address are all inconsistent, then the wireless module of supervising device continues to monitor 67 ports of udp broadcast, the nothing of supervising device
Whether wire module regularly inquires about the IP address preserved online, if online, the mobile intelligent terminal in step A is without circuit
In the range of the wireless signal of device, represent that validated user is in, supervising device is withdrawn a garrison;If the IP address preserved is not online,
Then the mobile intelligent terminal in step A represents that validated user is stayed out, monitored not in the range of the wireless signal of wireless router
Device is deployed troops on garrison duty.
It is the ping using ICMP agreements that the supervising device, which regularly inquires about the whether online method of the IP address preserved,
Instruction.
In the step B, the specific method that supervising device is detected with the MAC Address list preserved can also be:Prison
The wireless module of control device uses monitor patterns, detects all wireless data packets, wireless module parses wireless data packet
The MAC Address of middle transmitting terminal, the MAC Address parsed is contrasted with preserving MAC Address list, if the MAC parsed
Address is consistent with preserving the MAC address in MAC Address list, then the mobile intelligent terminal in step A is in wireless routing
In the range of the wireless signal of device, represent that validated user is in, supervising device is withdrawn a garrison;If the MAC Address parsed is with preserving MAC
All MAC Address in address list are inconsistent or wireless module does not detect the wireless data packet comprising MAC Address, then walk
Mobile intelligent terminal in rapid A represents that validated user is stayed out, supervising device not in the range of the wireless signal of wireless router
Deploy troops on garrison duty.
Further, the mobile intelligent terminal is smart mobile phone, and the supervising device is CCTV camera.
Further, MAC Address sending method is to use the APP softwares in mobile intelligent terminal to send in the step A.
Compared with prior art, the beneficial effects of the invention are as follows:
Using above-mentioned according to mobile phone address is detected and automatic cloth is withdrawn a garrison the method for monitoring, all wireless routings can be adapted to
Device, it is not necessary to be adapted to for special router.Realize that simple and stable, speed are fast, it is only necessary to which ping inquiries can obtains
Know whether the MAC Address specified is being limited in distance, thus will not be too high to the performance requirement of system hardware and software, thus it is whole
The manufacturing cost of individual monitoring device is also controlled effectively.
Brief description of the drawings
Specific embodiments of the present invention are elaborated below in conjunction with the accompanying drawings.
Fig. 1 is according to detection mobile phone address and automatic cloth is withdrawn a garrison the method and step A schematic diagrames of monitoring.
Fig. 2 is according to detection mobile phone address and automatic cloth is withdrawn a garrison the method and step B flow charts of monitoring.
Fig. 3 is according to detection mobile phone address and automatic cloth is withdrawn a garrison the method and step C flow charts of monitoring.
Fig. 4 is according to detection mobile phone address and automatic cloth is withdrawn a garrison the flow of second of embodiment step B, C of method of monitoring
Figure.
Specific embodiment
With reference to the specific embodiment of the present invention, clear, complete description is carried out to technical scheme, it is clear that
Described embodiment is only the part of the embodiment of the present invention, based on the embodiment in the present invention, those skilled in the art
All embodiments obtained under the premise of no creative work, belong to protection scope of the present invention.
According to detection mobile phone address, automatic cloth is withdrawn a garrison the method for monitoring, including smart mobile phone, wireless router and monitoring
Video camera, CCTV camera is interior to be provided with wireless module and memory, and smart mobile phone can monitor with wireless router wireless connection
The wireless module compatibility DHCP service agreement of video camera, specifically includes following steps:
Step A as shown in Figure 1, belongs to the registration process of smart mobile phone, and legal user passes through the APP in smart mobile phone
The MAC Address of smart mobile phone is sent to CCTV camera by software, the MAC Address described in CCTV camera keeping records, is formed
The MAC Address list of CCTV camera, this step are also simply carried out when smart mobile phone is registered for the first time.
Step B as shown in Figure 2, now CCTV camera be in starting state, the wireless module of CCTV camera is monitored
The difference of 67 port received data packets of udp broadcast, this snoop procedure and first embodiment is that monitoring is one straight
Capable, if the wireless module of CCTV camera receives DHCP offer message, wireless module is parsed by DHCP protocol
The MAC Address and IP address of the transmitting terminal of DHCP offer message, by the MAC Address parsed and the MAC Address list of preservation
Contrasted, if the MAC Address parsed is consistent with the MAC address in the MAC Address list preserved, represent registration
The smart mobile phone crossed then preserves the MAC Address parsed and IP address in the wireless network of wireless router, if parsed
MAC Address and preserve MAC Address list in all MAC Address it is all inconsistent, represent smart mobile phone not in wireless router
Wireless network in, then the wireless module of CCTV camera continue monitor udp broadcast 67 ports.
Step C as shown in Figure 3:The IP that CCTV camera timing has been preserved using the ping instructions queries of ICMP agreements
Whether location is online, if online, the smart mobile phone registered represents validated user in the range of the wireless signal of wireless router
It is in, then CCTV camera is withdrawn a garrison;If the IP address preserved is not online, the smart mobile phone registered is not in wireless routing
In the range of the wireless signal of device, represent that validated user is stayed out, then CCTV camera is deployed troops on garrison duty;Above-mentioned steps C is when one section
Between will be repeated once, to reaffirm whether smart mobile phone online.
CCTV camera, which carries out detection, can also use the monitor patterns of wireless network card, and detecting can receive all
Wireless data packet, wireless network card parses the MAC Address of the transmitting terminal included in wireless data packet, by the MAC parsed
Location is contrasted with preserving MAC Address list, if the MAC Address parsed is with any MAC in preservation MAC Address list
Location is consistent, then it represents that registered smart mobile phone represents that validated user is in, supervised in the range of the wireless signal of wireless network card
Control video camera is withdrawn a garrison;If the MAC Address parsed with preserve in MAC Address list all MAC Address are inconsistent or nothing
Wire module does not detect the wireless data packet comprising MAC Address, then it represents that validated user is stayed out, and CCTV camera is deployed troops on garrison duty.
Using above-mentioned according to detecting mobile phone address and automatic cloth is withdrawn a garrison the method for monitoring, it is not necessary to which manual or complicated sets
Put can and reach the purpose that automatic cloth is withdrawn a garrison, all wireless routers can be adapted to, it is not necessary to for special router
It is adapted to, full automation operation, the opportunity that cloth is withdrawn a garrison can be accurately controlled, strong applicability, realize that simple, performance is steady
It is fixed and less demanding to system hardware and software performance so that the manufacturing cost of whole monitoring device is also effectively controlled
System.
In addition, according to detection mobile phone address, automatic cloth is withdrawn a garrison the method for monitoring, also second of specific embodiment, and it the
Two kinds of specific embodiments include smart mobile phone and CCTV camera, and wireless module and memory are provided with CCTV camera, described
RARP servers are integrated with wireless module, the RARP servers are arranged to only use the response part in RARP agreements, tool
Body comprises the following steps:
Step A:As shown in figure 4, belonging to the registration process of smart mobile phone, legal user passes through the APP in smart mobile phone
The MAC Address of smart mobile phone is sent to CCTV camera by software, MAC Address described in CCTV camera keeping records, forms prison
Control the MAC Address list of video camera;Due to that can preserve MAC Address in CCTV camera, therefore step A is for a mobile phone
Need to carry out once, CCTV camera can store the address information of multiple mobile phones.
Step B, C as shown in Figure 4:CCTV camera starts, and is regularly detected with the MAC Address list preserved, confirms
The user of smart mobile phone is carried whether in the range of the wireless signal of CCTV camera, specific method is:CCTV camera is protected
The MAC Address list deposited carries out RARP broadcast, if the smart mobile phone in step A is in the wireless signal scope of CCTV camera
Interior, then the smart mobile phone gives CCTV camera one response data packet, represents that validated user is in, supervising device is withdrawn a garrison;Such as
Fruit smart mobile phone is not in the range of the wireless signal of CCTV camera, then CCTV camera can not receive response data packet, represents to close
Method user is stayed out, and supervising device is deployed troops on garrison duty, and the present embodiment only uses the response part in RARP agreements, and without using IP therein
Address assigning section, therefore only need a RARP interactions can to know whether the MAC Address specified is being limited in distance, speed
Degree is significantly better than prior art;If not detecting the smart mobile phone of the MAC Address in CCTV camera address list, monitor
Video camera is deployed troops on garrison duty, if detecting the smart mobile phone of the MAC Address in CCTV camera address list, CCTV camera
Withdraw a garrison;The detection process of repeat step B and C MAC Address after one section of delay.Using above-mentioned steps, data interaction only exists
Carried out between video camera and smart mobile phone, it is not necessary to the problems such as considering the model of router and closing down, there is certain versatility.
The foregoing is only a specific embodiment of the invention, those skilled in the art the invention discloses
In the range of, can readily occur in change, any simple modification and remodeling, CCTV camera such as is changed into warning device, automatically
Air-conditioning device etc., it should all be included within the scope of the present invention.