CN105049422B - A kind of WIFI detections identification equipment, system and WIFI detection identification methods - Google Patents

A kind of WIFI detections identification equipment, system and WIFI detection identification methods Download PDF

Info

Publication number
CN105049422B
CN105049422B CN201510358147.2A CN201510358147A CN105049422B CN 105049422 B CN105049422 B CN 105049422B CN 201510358147 A CN201510358147 A CN 201510358147A CN 105049422 B CN105049422 B CN 105049422B
Authority
CN
China
Prior art keywords
mac
information
time
module
mac address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510358147.2A
Other languages
Chinese (zh)
Other versions
CN105049422A (en
Inventor
陈春东
肖桂云
陈耀
陈一耀
周奕
那正平
邱祥平
周赵云
王宇文
郭煜
罗俊
李申玉
王文英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Di'aisi Information Technology Ltd By Share Ltd
Original Assignee
Di'aisi Information Technology Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Di'aisi Information Technology Ltd By Share Ltd filed Critical Di'aisi Information Technology Ltd By Share Ltd
Priority to CN201510358147.2A priority Critical patent/CN105049422B/en
Publication of CN105049422A publication Critical patent/CN105049422A/en
Application granted granted Critical
Publication of CN105049422B publication Critical patent/CN105049422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/102Entity profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a kind of WIFI detections identification equipment, and a kind of WIFI detects identification equipment, including:Wake-up packet sending module, wakes up mobile equipment and sends data packet;MAC Address acquisition module, receives and parses through the data packet that mobile equipment is sent, and obtains MAC Address;Identification module, is connected with the MAC Address acquisition module, and mobile equipment is identified according to the MAC Address, and judges the state of mobile equipment, sends status information to communication module;Communication module, is connected with the identification module, sends the status information of the mobile equipment to server.The present invention can recognize mobile equipment in the case of mobile equipment does not connect WIFI network, and record the time into state and leave state of mobile equipment.

Description

A kind of WIFI detections identification equipment, system and WIFI detection identification methods
Technical field
The present invention relates to wireless communication field, more particularly to a kind of equipment for detecting mobile equipment, system and method.
Background technology
With the arrival of the Internet of things era, information service and the location-based service presentation towards handheld mobile device are polynary, quick-fried The trend that fried formula increases.Either enterprise, businessman and social safety field, to the identification information with handheld mobile device, Quantity statistics information, is proposed higher requirement.Therefore how the mobile equipment near accurate identification equipment device, to identification To mobile facility information recorded and data uploaded onto the server, and the difference by data according to business, screening Filter and be combined into and meet one of hot spot that the business datum that business uses is studied as this area.
Detection and identification to mobile equipment, existing method have identification of base stations and WIFI (WIreless-Fidelity, WiMAX) access identification, it is described in detail below:
When identification of base stations method is mobile equipment (mobile phone) access mobile base station, mobile base station recognizes the IMSI of mobile phone ((International Mobile Subscriber Identity, international member identification code) and IMEI (International Mobile Equipment Identity, mobile EIC equipment identification code).IMSI and IMEI is unique , therefore the mobile phone can be recognized in current mobile base station coverage.In general, the coverage of mobile base station exists It is 1km or so in city proper.So the scope for the positional information that handset identity arrives is 1km.In city, which is difficult It is with practical value.
WIFI access identification mobile phones, are that mobile phone user is linked into WIFI network in WIFI regions by username and password. Meanwhile the specifying information of access mobile phone is collected by daemon software, such as MAC Address (MAC (Media Access Control Or Medium Access Control) address, free translation is media access control, or is physical address, hardware address, is used To define the position of the network equipment.).Therefore the position of user can be determined in mobile phone WIFI network region, the network area of WIFI Domain is 20-100 meters, but on condition that user accesses network by WIFI.Current many mobile phones under screen lock state, stop by WIFI module Sleep, can not detect the mobile phone at this time.Mobile equipment for more than identifies, is difficult to the use for having popularization in practical applications Property.Identification of base stations does not possess positional precision, and WIFI access identifications do not possess versatility.Need to examine at the same time in mobile equipment identification Consider positional precision and identification versatility.
The content of the invention
In order to solve the above technical problems, the present invention provides a kind of WIFI to detect identification equipment, technical solution is with such as lower section Formula is realized:
A kind of WIFI detects identification equipment, including:
Wake-up packet sending module, wakes up mobile equipment and sends data packet;
MAC Address acquisition module, receives and parses through the data packet that mobile equipment is sent, and obtains MAC Address;
Identification module, is connected with the MAC Address acquisition module, identifies mobile equipment according to the MAC Address, and judge The state of mobile equipment, sends status information to communication module;
Communication module, is connected with the identification module, sends the status information of the mobile equipment to server.
The present invention obtains its MAC Address, by it by sending the mobile equipment in wake-up packet wake-up coverage Whether MAC Address is inquired about and analyzed and processed, know mobile equipment in specific location (WIFI detections identification equipment i.e. of the present invention The area that can be detected).
Believe it is further preferred that the status information of the mobile equipment is included at least into status information and leave state Breath.This optimal technical scheme can further obtain the time that mobile equipment enters and leaves specific location.
It is further preferred that the identification module includes:
Order caching module, is connected with MAC Address acquisition module, for receiving and storing the MAC Address generation first MAC information, the first MAC information include MAC Address and receiving time;
MAC information cache modules, are stored with the 2nd MAC information, when the 2nd MAC information includes MAC Address and record Between;
Real time capable module, is connected with the order caching module and the MAC information cache modules respectively, described for judging Whether mobile equipment is into state, and records the entry time of mobile equipment, is generated into status information and sends to server;
Application module, is connected with the MAC information cache modules and the first memory module, for judging the movement respectively Whether equipment is leave state, and the time departure generation leave state information for recording mobile equipment is sent to server.
It is further preferred that the Real time capable module specifically includes described second judged in the MAC information cache modules Whether MAC Address in the first MAC information is included in MAC information;And it is additionally operable to when judging result is no, mark The MAC Address in the first MAC information is remembered to be generated into status information into state and sending communication module, meanwhile, will The receiving time is recorded as the record time, and the record time and the MAC Address are generated the 2nd MAC information and are stored in In the MAC information cache modules;And it is additionally operable to, when judging result is to be, search in the MAC information cache modules Include the 2nd MAC information of the identical MAC Address, the wherein described record time is updated in the first MAC information Receiving time, and the 2nd MAC information after renewal is stored to first memory module.
It is further preferred that the application module, which is specifically used for timing cycle, scans the 2nd MAC information, described in calculating The record time recorded for the last time in 2nd MAC information and the time difference of current time;It is additionally operable to work as the time When difference is more than setting threshold values, it is leave state to mark the MAC Address in the 2nd MAC information, calculates time departure Store to the 2nd MAC information and generate leave state information, send to communication module;
The application module is additionally operable to when the 2nd MAC information flags are leave state, from the MAC information caches The 2nd MAC information is deleted in module.
Present invention also offers a kind of WIFI intelligence systems, including at least one above-mentioned WIFI detection identification equipments and At least one server;
The WIFI detections identification equipment is used for the MAC Address for obtaining mobile equipment, and obtains institute according to the MAC Address The entrance status information and leave state information of mobile equipment are stated, and is sent to server;
The server includes receiving module, the second memory module and processing module;
What the receiving module received that the WIFI detections identification equipment sends described enter status information and described leaves Status information;
Second memory module is used for storing entrance status information and the leave state information received.
The processing module is used to handle the described into status information and described of the WIFI detections identification equipment transmission Leave state information, obtains the entry time and time departure of the mobile equipment.
The present invention detects identification equipment by WIFI and obtains the MAC Address of mobile equipment, and is obtained and moved by analyzing and processing The time that dynamic equipment enters and leaves in coverage sent to server, and server enters and leaves to mobile equipment Time is handled, and can provide data service for the state of the mobile equipment of inquiry.
It is further preferred that the communication mode of WIFI detection identification equipments and server is included in WIFI, 3G/4G, LAN It is a kind of.
The present invention also provides a kind of WIFI detection identification methods, including:
Step 1 wakes up mobile equipment and sends data packet;
Step 2 receives and parses through the data packet and obtains the first MAC information;
Step 3 judges whether the MAC Address in the first MAC information is new MAC Address, if so, then marking the MAC Address is into state, is generated into status information and sends to server, while records receiving time as the record time, by institute State the record time and MAC Address generates the 2nd MAC information and stores;Otherwise, searching includes the second of the identical MAC Address MAC information, is updated to receiving time, the 2nd MAC letters after storage renewal by the record time in the 2nd MAC information Breath;
Step 4 scans the 2nd MAC information, calculates the record recorded for the last time in the 2nd MAC information Time and the time difference of current time, if the time difference is more than setting threshold values, mark in the 2nd MAC information MAC Address is leave state, calculates time departure generation leave state information and sends to server;
It is status information and leave state information that step 5 server, which receives the mark, obtains connecing for mobile equipment Between time receiving and the time is recorded, the entry time and time departure of mobile equipment are obtained according to the receiving time and record time.
It is further preferred that judge whether the MAC Address in the first MAC information is that new MAC Address is specific in step 3 For:
The first MAC information and the 2nd MAC information are compared, searches the MAC Address in the 2nd all MAC information, if deposit In the MAC Address identical with the MAC Address of the first MAC information, if so, then the MAC Address in the first MAC information is not new MAC Address;If it is not, then the MAC Address in the first MAC information is new MAC Address.
It is further preferred that in the step 4 timing cycle calculate record time in all 2nd MAC information with The time difference of current time, the time departure subtract the time difference for the current time.
The beneficial effects of the invention are as follows:Realize simple, efficient, the accurate knowledge to the mobile equipment with WIFI function Not, overcoming tional identification equipment needs WIFI connections network, installation specific fixation and recognition software, recognition accuracy and covering The shortcomings of rate is relatively low.This detection identification equipment utilizes special wake-up packet sending module, it is entirely avoided standby mode equipment The problem of cannot effectively identifying;And the state of mobile equipment is calculated in real time using data cache module and computing chip, Effectively identify and have recorded the unique mac address of mobile equipment and the time of into/out WIFI coverages, determine for region The application such as position, data statistics and motion track provides data support, can be widely applied to dense population monitoring, commercial circle passenger flow The service application scenes such as analysis, the induction of scenic spot passenger flow.Based on present device identification accuracy, real-time, and cost is low Lian Xing, will be a useful supplement to being currently based on the population surveillance of high cost video analysis, passenger flow analysis system, Ke Yijin Row large scale deployment, is of great significance hence for fields such as public safety, traffic, business, tourisms.
Brief description of the drawings
The present invention is described in further detail with reference to the accompanying drawings and detailed description:
Fig. 1 detects identification equipment structure diagram for WIFI of the present invention;
Fig. 2 detects identification equipment another specific embodiment schematic diagram for WIFI of the present invention;
Fig. 3 is WIFI intelligence systems composition schematic diagram of the present invention;
Fig. 4 is the step schematic diagram of WIFI detection identification methods of the present invention;
Drawing reference numeral:
100.WIFI detects identification equipment, 101. wake-up packet sending modules, 102.MAC address acquisition modules, 103. identifications Module, 1031. 1033. Real time capable module of order caching module 1032.MAC information cache modules, 1034. application module, 1035. One memory module, 104. communication modules;
200. servers, 201. receiving modules, 202. second memory modules, 203. processing modules.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, to those skilled in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 detects identification equipment structure diagram for a kind of WIFI of the present invention, as the specific embodiment of the present invention, As shown in Figure 1, a kind of WIFI detections identification equipment, including:
Wake-up packet sending module 101, for periodically sending wakeup packet to mobile equipment;
Specifically, mobile equipment all has battery saving mode, it is no data frame when in a power-save mode, in a period of time Sending, the present invention is by regularly sending wake-up packet to mobile equipment, so that the mobile equipment being in hibernation is waken up, it is mobile Equipment is received to give after wake-up packet and responded, and is sent out 802.11 protocol data bags and is given WIFI detection identification equipments 100.
Amplifier is the element of most power consumption in the WIFI modules of mobile equipment, and the signal for being responsible for will send out by it amplifies, And the received signal of institute is amplified to accessible level.802.11 work stations can close radio wave transceiver, and Resting state is periodically into, to maintain longest service time of battery.During this section, base station can be for every portion in a dormant state Work station keep in frame.If there is temporary frame, base station can inform work station in follow-up Beacon (beacon) frame.By power down mode The work station of wake-up can obtain these temporary frames using PS-Poll frames.
Beacon interval in Beacon frames, it is the presence for announcing 802.11 networks.
802.11 agreement regulation wireless terminals, which must periodically revive, monitors Beacons frames, by the TIM for checking Beacon frames Whether field, oneself data frame will be issued by judging to have on AP.If it is determined that there is the data frame that issue oneself on AP, then terminal passes through PS-Poll is sent to obtain temporal data, a PS-Poll frame is served only for obtaining a temporary frame.
And BSSID and Transmitter Address (transmitting terminal address) are contained in PS-Poll frames, i.e. PS-Poll frames Transmitting terminal MAC Address.
MAC Address acquisition module 102, the data packet sent for receiving and parsing through mobile equipment, with obtaining the first MAC Location.
Specifically, 102 repeating query of MAC Address acquisition module in the present invention connects on each channel of 2.4GHz and 5.8GHz Receive 802.11 protocol data bags and parse data packet, MAC Address is extracted from the destination address field (DAF) of frame head.
802.11 frames are divided into three parts:Frame head (Mac header), frame entity (body), FCS domains.It is divided into MAC Header, Frame Body and FCS.MAC header are made of 4 fields, are respectively:Frame Control、Duration ID、Address、Seq ctl.Include the purposeful addresses of Address, source address and BSSID.
The beginning of all frames is Frame Control (frame control) field of a length of two bytes, and Frame In Control (frame control), including following subfield:Protocol、Type、Subtype、To DS、From DS、More fragments、More fragments、Retry、Power management、More data、Protected Frame。
Type (type) is used to specify the frame type used with Subtype (subtype) field.Frame in 802.11 has three Type:Management frame (Management Frame, such as Beacon frames, Association frames), control frame (Control Frame, such as RTS frames, CTS frames, ACK frames), (Data Frame, carry the carrier of data to data frame, and DS fields therein are used It is critically important to identify direction).
The frame head part analysis of data packet is gone out into MAC Address.
WIFI detection identification equipments 100 support 2.4GHz and 5GHz two-bands, and why say it is frequency range rather than frequency, It is because carrier frequency used in wireless router is a set, contains the different frequency of various numerical value.According to IEEE 802.11 and its regulation of standard is improved, carrier frequency used in WLAN is divided into 2.4GHz frequency ranges and 5GHz frequency ranges two Part, each section are divided into some channels with certain frequency interval again.These channels are referred to as WLAN channels, each The corresponding frequency of channel is actually the centre frequency of the channel.
2.4GHz frequency ranges can be divided into 14 WLAN channels, in addition to No. 14 channel and the 13rd channel spacing 12MHz, its Interval between remaining each channel is 5MHz, and 802.11 standards of IEEE provide, each signal is required for taking 20MHz The bandwidth of (being actually 22MHz), equivalent to 5 WLAN channels, therefore when wireless router takes some of 2.4GHz frequency ranges During channel, 5 WLAN channels can be all brought into used in the router in scope altogether centered on the channel.Illustrate Bright, when router takes No. 6 channel of 2.4GHz frequency ranges, it has actually occupied the 4th to No. 8 and has amounted to 5 letters Road.
If 802.11 signals of IEEE need to take the bandwidth of 40MHz, such as IEEE 802.11n standards, then work as nothing When line router uses some channel, its actual channel quantity taken is up to 9, such as during its No. 6 channel of occupancy, its Actually occupy the 2nd to No. 10 and amount to 9 channels.Here it is why the IEEE 802.11n routers having obviously The bandwidth of 40MHz can be used, is actually but only operated under 20MHz bandwidth patterns.This is because in 2.4GHz frequency ranges There are many channels to be taken by miscellaneous equipment, in order to ensure network stabilization, wireless router can select the mode for reducing bandwidth Promotion signal intensity.
The scope of 5GHz frequency ranges is undoubtedly much broader compared with 2.4GHz, and coverage is actually that 4.9GHz is arrived 5.8GHz, the division of channel is also more diversified, is constant but with a standard, that is, the corresponding centre frequency of channel is every 5MHz is lifted, the numbering of channel just adds 1, this point and the standard of 2.4GHz band channels division are basically identical.
The wireless router majority of 5GHz frequency ranges is supported to use No. 36 channel to No. 165 channel, both correspondences Centre frequency be respectively 5.170GHz to 5.825GHz.
Identification module 103, is connected with the MAC Address acquisition module 102, and mobile equipment is identified according to the MAC Address, And judge the state of mobile equipment, status information is sent to communication module 104.
When 103 received MAC Address of identification module, by being contrasted to MAC Address and stored MAC Address, Judge to receive, MAC Address is if new MAC Address, then it is assumed that is the mobile equipment newly entered, marks this MAC Address Status information is generated into send to communication module 104.
The set period threshold values of being found out from stored mac address information of 103 timing cycle of identification module does not have The MAC Address of appearance, and leave state is labeled as, generation leave state information is sent to communication module 104.
Communication module 104, is connected with the identification module 103, sends the status information of the mobile equipment to server 200.Specifically, communication module is different according to communication modes, using different modules, WIFI, 3G/4G or LAN (Local are supported Area Network, LAN) mode communication transfer data processing.
WIFI communicates, and works in Station patterns, SSID, user name, password can be set to be connected to AP networks;Pass through AP Network transmits data to public network or LAN server.
3G/4G communication modes, can be selected movement, unicom, the mobile communications network of telecommunication network, buy the movement of operator Communication card is inserted into module, so that it may directly sends data to specified public network server by mobile network.
LAN modes, the module is accessed by the cable of LAN, so that it may transmits data to public network or office by local area network Domain network server.
Specifically, the status information of the mobile equipment includes entering status information and leave state information.
Above-described embodiment is improved, obtains preferred embodiment 2, Fig. 2 detects identification equipment reality for WIFI of the present invention 2 schematic diagram of example is applied, wherein identification module 103 includes:
Order caching module 1031, is connected with MAC Address acquisition module 102, for receiving and storing the first MAC information, First MAC information includes MAC Address and receiving time.
Specifically, the MAC Address of acquisition and receiving time are stored in order caching module 1031 by the present invention, while carry out again The reception of next step.
MAC information cache modules 1032, are stored with the 2nd MAC information, when the 2nd MAC information includes MAC Address and record Between.
Specifically, being stored in MAC information cache modules 1032 after the received first MAC information processings of docking, it is stored with 2nd MAC information of the mobile equipment in all coverages.
Real time capable module 1033, is connected with the order caching module 1031 and the MAC information cache modules 1032 respectively, For judging whether the mobile equipment is into state, and the entry time of mobile equipment is recorded, be generated into status information Send to server 200.
Wherein, Real time capable module 1033, are connected with order caching module 1031 and MAC information cache modules 1032, sentence respectively Whether include in the first MAC information in the 2nd MAC information in the MAC information cache modules 1032 of breaking MAC Address;And be additionally operable to when judging result is no, it is to be generated into state into state to mark the first MAC information Information simultaneously sends communication module 104, meanwhile, the receiving time is recorded as the record time, and time and institute are recorded by described The 2nd MAC information of MAC Address generation is stated to be stored in the MAC information cache modules 1032;And it is additionally operable to work as judging result During to be, the 2nd MAC information for including the identical MAC Address is searched in the MAC information cache modules 1032, will wherein The record time is updated to the receiving time in the first MAC information, and stores the 2nd MAC information after renewal extremely First memory module 1035.
Specifically, Real time capable module 1033 accesses 1032 and first memory module 1035 of MAC information cache modules at the same time, will connect Received first MAC information is compared with the 2nd MAC information stored in MAC information cache modules 1032, to newly-increased MAC Address stores in 1032 and first memory module 1035 of MAC information cache modules.
Application module 1034, is connected with 1032 and first memory module 1035 of MAC information cache modules, is used for respectively Judge the mobile equipment whether leave state, and record mobile equipment time departure generation leave state information send to clothes Business device 200.
The application module 1034 is specifically used for timing cycle and scans the 2nd MAC information, calculates the 2nd MAC letters The record time recorded for the last time in breath and the time difference of current time, and record time and current by comparing it The time difference of time judges whether the mobile equipment of the MAC Address has been moved off;It is additionally operable to set when the time difference is more than When determining threshold values, it is leave state to mark the MAC Address in the 2nd MAC information, calculates time departure and stores to second MAC information generates leave state information, sends to communication module 104.
When the 2nd MAC information flags are leave state, application module 1034 is also deleted from MAC information cache modules 1032 Except the 2nd MAC information.
First memory module 1035, for storing the 2nd MAC information after updating;
The present invention obtains its MAC Address, by it by sending the mobile equipment in wake-up packet wake-up coverage MAC Address is inquired about and analyzed and processed, and obtain mobile equipment enters and leaves the time.
Present invention also offers a kind of WIFI intelligence systems, Fig. 3 shows for WIFI intelligence systems of the present invention composition It is intended to, as shown in figure 3, WIFI intelligence systems include at least one above-mentioned WIFI detection identification equipment 100 and at least one Server 200;
WIFI detection identification equipments 100 are used for the MAC Address for obtaining mobile equipment, and obtain movement according to MAC Address and set Standby entrance status information and leave state information, and send to server 200;
Wherein, WIFI, which detects identification equipment 100 and the communication mode of server 200, includes one in WIFI, 3G/4G, LAN Kind.
Server 200 includes receiving module 201, the second memory module 202 and processing module 203;
Receiving module 201 receives the entrance status information and leave state information that WIFI detection identification equipments 100 are sent;Tool Body, include MAC Address and receiving time into status information, leave state information includes MAC Address and record time.
Second memory module 202 is used for storing the entrance status information and leave state information received.
Processing module 203 is used to handle entrance status information and the leave state letter that WIFI detection identification equipments 100 are sent Breath, the entry time and time departure of mobile equipment can be obtained according to receiving time and record time.
The present invention detects the MAC Address of the mobile equipment of the acquisition of identification equipment 100 by WIFI, and is obtained by analyzing and processing The time that mobile equipment enters and leaves in coverage is sent to server 200, entrance of the server 200 to mobile equipment Handled with the time left, data service can be provided for the state of the mobile equipment of inquiry.
Lower mask body introduces the course of work of WIFI intelligence systems of the present invention:
First, wake-up packet sending module 101 sends wakeup packet to mobile equipment, wakes up the movement being in hibernation and sets Standby, mobile equipment is received to give after wake-up packet and responded, and is sent out 802.11 protocol data bags and is given WIFI detection identification equipments 100.
802.11 protocol data bags of mobile equipment transmission are received by MAC Address acquisition module 102, and parse data Bag, MAC Address deposit order caching module 1031 is extracted from the destination address field (DAF) of frame head, is carried out at the same time connecing for next step Receive.
It is the first MAC information that order caching module 1031, which stores MAC Address and receiving time,.
Then, 1033 timing of Real time capable module obtains the first MAC information from order caching module 1031, by believing with MAC The 2nd stored MAC information of breath cache module 1032 is compared, and judges whether include first in the 2nd MAC information MAC Address in MAC information, when traversal MAC information cache modules 1032 do not find the MAC Address in the first MAC information, mark It is into state to remember current first MAC information, is generated into status information and sends to communication module 104, meanwhile, by receiving time The record time is recorded as, and record time and MAC Address are generated into the 2nd MAC information and are stored in MAC information cache modules 1032 In.
When judging result is, the 2nd MAC letters for including identical MAC Address are searched in MAC information cache modules 1032 Breath, receiving time in the first MAC information is updated to by the wherein record time, and stores the 2nd MAC information after renewal to the One memory module 1035.
Then, in 1034 timing cycle of application module scanning MAC information cache modules 1032 and the first memory module 1035 The 2nd MAC information, calculate the 2nd MAC information in record for the last time record the time and current time time difference, when When time difference is more than setting threshold values, the MAC Address in the 2nd MAC information of mark is leave state, calculates time departure generation Leave state information, sends to communication module 104.If time difference is less than setting threshold values, illustrate that the movement equipment also exists In the range of WIFI detection identification equipments 100, the data packet that mobile equipment is sent can be received, does not make any processing.
When the 2nd MAC information flags are leave state, application module 1034 is also deleted from MAC information cache modules 1032 Except the 2nd MAC information.
Communication module 104 sends the entrance status information of reception and leave state information to server 200.
Server 200 is received by receiving module 201 enters status information and leave state information, stores it in second Memory module 202.
Status information and leave state information are entered by 203 processing of processing module, mobile equipment is obtained and enters and leaves WIFI detects the time of 100 coverage of identification equipment.
Fig. 4 is the step schematic diagram of WIFI detection identification methods of the present invention, as a specific embodiment of the invention, is such as schemed Shown in 4, a kind of WIFI detection identification methods, including:
Step 1 wakes up mobile equipment and sends data packet;
Step 2 receives and parses through data packet and obtains the first MAC information;
Step 3 judges whether the MAC Address in the first MAC information is new MAC Address, if so, then marking the MAC Address is into state, is generated into status information and sends to server 200, while records receiving time as the record time, The record time and MAC Address are generated into the 2nd MAC information and stored;Otherwise, searching includes the of the identical MAC Address Two MAC information, receiving time, the 2nd MAC after storage renewal are updated to by the record time in the 2nd MAC information Information;
Step 4 scans the 2nd MAC information, calculates the record recorded for the last time in the 2nd MAC information Time and the time difference of current time, if the time difference is more than setting threshold values, mark in the 2nd MAC information MAC Address is leave state, calculates time departure generation leave state information and sends to server 200.Specifically, when leaving Between subtract time difference for current time.
It is status information and leave state information that step 5 server 200, which receives the mark, obtains mobile equipment Receiving time and record time, when obtaining the entry time of mobile equipment according to the receiving time and record time and leave Between.
Wherein, judge whether the MAC Address in the first MAC information is that new MAC Address is specially in step 3:
The first MAC information and the 2nd MAC information are compared, searches the MAC Address in the 2nd all MAC information, if deposit In the MAC Address identical with the MAC Address of the first MAC information, if so, then the MAC Address in the first MAC information is not new MAC Address;If it is not, then the MAC Address in the first MAC information is new MAC Address.
Wherein, timing cycle calculates the record time in all MAC information and the time difference of current time in step 4.
The more detailed steps flow chart of WIFI detection identification methods of the present invention is described below:
Step 1, wakeup packet is sent to mobile equipment, wakes up the mobile equipment being in hibernation, mobile equipment receives Give and respond after wake-up packet, send out 802.11 protocol data bags and detect identification equipment 100 to WIFI.
Step 2, the 802.11 protocol data bags that mobile equipment is sent are received, and parse data packet, from the destination of frame head MAC Address is extracted in the field of location and is stored as the first MAC information, is carried out at the same time the reception of next step.
Step 3, timing obtains the first MAC information, by being compared with the 2nd stored MAC information, judges the Whether MAC Address in first MAC information is included in two MAC information, and the 2nd MAC information of traversal does not find the first MAC letters During MAC Address in breath, it is into state to mark current first MAC information, is generated into status information and sends to communication module 104, meanwhile, receiving time is recorded as the record time, and record time and MAC Address are generated into the 2nd MAC information and stored.
If include the MAC Address in the first MAC information in the 2nd MAC information, lookup includes identical MAC Address 2nd MAC information, the receiving time in the first MAC information is updated to by the wherein record time, and stores the 2nd MAC after renewal Information.
Step 4, timing cycle scans all 2nd MAC information, calculates the record recorded for the last time in the 2nd MAC information Time and the time difference of current time, when time difference is more than setting threshold values, the MAC Address in the 2nd MAC information of mark For leave state, calculate in time departure generation leave state information, send to server 200.If time difference is less than setting Threshold values, then illustrate that the movement equipment also in the range of WIFI detects identification equipment 100, can receive the number that mobile equipment is sent According to bag, any processing is not made.
When the 2nd MAC information flags are leave state, the 2nd MAC information is deleted.
The entrance status information and leave state information of the reception WIFI detection transmissions of identification equipment 100 of server 200 are simultaneously deposited Storage.
Processing enters status information and leave state information, obtains mobile equipment and enters and leaves WIFI detection identification equipments The time of 100 coverages.
The present invention detects the MAC Address of the mobile equipment of the acquisition of identification equipment 100 by WIFI, and is obtained by analyzing and processing The time that mobile equipment enters and leaves in coverage is sent to server 200, entrance of the server 200 to mobile equipment Handled with the time left, data service can be provided for the state of the mobile equipment of inquiry.
Obviously, those skilled in the art can carry out the present invention various changes and deformation, without departing from the present invention's Spirit and scope.If in this way, the present invention these modifications belong within the scope of the claims in the present invention and its equivalent technology, Then the present invention is also intended to comprising including these changes and deformation.

Claims (7)

1. a kind of WIFI detects identification equipment, it is characterised in that including:
Wake-up packet sending module, wakes up mobile equipment and sends data packet;
MAC Address acquisition module, receives and parses through the data packet that mobile equipment is sent, and obtains MAC Address;
Identification module, is connected with the MAC Address acquisition module, identifies mobile equipment according to the MAC Address, and judge to move The state of equipment, sends status information to communication module;The status information of the mobile equipment, which includes at least, enters status information Or leave state information;
Communication module, is connected with the identification module, sends the status information of the mobile equipment to server;
The identification module includes:
Order caching module, is connected with MAC Address acquisition module, and the first MAC letters are generated for receiving and storing the MAC Address Breath, the first MAC information include MAC Address and receiving time;
MAC information cache modules, are stored with the 2nd MAC information, and the 2nd MAC information includes MAC Address and record time;
Real time capable module, is connected with the order caching module and the MAC information cache modules, for judging the movement respectively Whether equipment is into state, and records the entry time of mobile equipment, is generated into status information and sends to server;
Application module, is connected with the MAC information cache modules and the first memory module respectively, for judging the mobile equipment Whether it is leave state, and records the time departure of mobile equipment, generation leave state information is sent to server;
Whether the Real time capable module specifically includes includes in the 2nd MAC information judged in the MAC information cache modules There is the MAC Address in the first MAC information;And it is additionally operable to, when judging result is no, mark the first MAC information In MAC Address be into state, be generated into status information and send communication module, meanwhile, the receiving time is recorded To record the time, and the record time and the MAC Address are generated into the 2nd MAC information and are stored in the MAC information caches In module;And it is additionally operable to when judging result as when being, being searched in the MAC information cache modules includes the identical MAC 2nd MAC information of address, the receiving time wherein described record time being updated in the first MAC information, and store The 2nd MAC information after renewal is to first memory module.
2. WIFI as claimed in claim 1 detects identification equipment, it is characterised in that:
The application module is specifically used for timing cycle and scans the 2nd MAC information, calculates last in the 2nd MAC information The record time once recorded and the time difference of current time;It is additionally operable to when the time difference is more than setting threshold values When, it is leave state to mark the MAC Address in the 2nd MAC information, calculates time departure and stores to the 2nd MAC and believes Breath, generates leave state information, sends to communication module;
The application module is additionally operable to when the 2nd MAC information flags are leave state, from the MAC information cache modules It is middle to delete the 2nd MAC information.
3. a kind of WIFI intelligence systems, it is characterised in that visited including at least one WIFI as claimed in claim 1 or 2 Survey identification equipment and at least one server;
The WIFI detects identification equipment, including:
Wake-up packet sending module, wakes up mobile equipment and sends data packet;
MAC Address acquisition module, receives and parses through the data packet that mobile equipment is sent, and obtains MAC Address;
Identification module, is connected with the MAC Address acquisition module, identifies mobile equipment according to the MAC Address, and judge to move The state of equipment, sends status information to communication module;The status information of the mobile equipment, which includes at least, enters status information Or leave state information;
Communication module, is connected with the identification module, sends the status information of the mobile equipment to server;
The identification module includes:
Order caching module, is connected with MAC Address acquisition module, and the first MAC letters are generated for receiving and storing the MAC Address Breath, the first MAC information include MAC Address and receiving time;
MAC information cache modules, are stored with the 2nd MAC information, and the 2nd MAC information includes MAC Address and record time;
Real time capable module, is connected with the order caching module and the MAC information cache modules, for judging the movement respectively Whether equipment is into state, and records the entry time of mobile equipment, is generated into status information and sends to server;
Application module, is connected with the MAC information cache modules and the first memory module respectively, for judging the mobile equipment Whether it is leave state, and records the time departure of mobile equipment, generation leave state information is sent to server;
Whether the Real time capable module specifically includes includes in the 2nd MAC information judged in the MAC information cache modules There is the MAC Address in the first MAC information;And it is additionally operable to, when judging result is no, mark the first MAC information In MAC Address be into state, be generated into status information and send communication module, meanwhile, the receiving time is recorded To record the time, and the record time and the MAC Address are generated into the 2nd MAC information and are stored in the MAC information caches In module;And it is additionally operable to when judging result as when being, being searched in the MAC information cache modules includes the identical MAC 2nd MAC information of address, the receiving time wherein described record time being updated in the first MAC information, and store The 2nd MAC information after renewal is to first memory module;
The WIFI detections identification equipment is used for the MAC Address for obtaining mobile equipment, and obtains the shifting according to the MAC Address The entrance status information and leave state information of dynamic equipment, and send to server;
The server includes receiving module, the second memory module and processing module;
The receiving module receives the described of WIFI detections identification equipment transmission and enters status information and the leave state Information;
Second memory module is used for storing entrance status information and the leave state information received;
The processing module is used to handling that WIFI detection identification equipment to send described enter status information and described leave Status information, obtains the entry time and time departure of the mobile equipment.
4. WIFI intelligence systems as claimed in claim 3, it is characterised in that:
The communication mode of the WIFI detection identification equipments and the server includes one kind in WIFI, 3G/4G, LAN.
A kind of 5. WIFI detection identification methods, it is characterised in that including:
Step 1 wakes up mobile equipment and sends data packet;
Step 2 receives and parses through the data packet and obtains the first MAC information;
Step 3 judges whether the MAC Address in the first MAC information is new MAC Address, if so, then marking the MAC Address Into state, to be generated into status information and sending to server, while receiving time is recorded as the record time, by the note Record time and MAC Address generate the 2nd MAC information and store;Otherwise, searching includes the 2nd MAC letters of the identical MAC Address Breath, receiving time, the 2nd MAC information after storage renewal are updated to by the record time in the 2nd MAC information;
Step 4 scans the 2nd MAC information, calculates the record time recorded for the last time in the 2nd MAC information With the time difference of current time, if the time difference is more than setting threshold values, the MAC in the 2nd MAC information is marked Address is leave state, calculates time departure generation leave state information and sends to server;
It is status information and leave state information that step 5 server, which receives the mark, when obtaining the reception of mobile equipment Between and the record time, the entry time and time departure of mobile equipment are obtained according to the receiving time and record time.
6. WIFI detection identification methods as claimed in claim 5, it is characterised in that:
Judge whether the MAC Address in the first MAC information is that new MAC Address is specially in the step 3:
Compare the first MAC information and the 2nd MAC information, search the MAC Address in the 2nd all MAC information, if exist with The identical MAC Address of the MAC Address of the first MAC information, if so, then the MAC Address in the first MAC information is not new MAC Address;If it is not, then the MAC Address in the first MAC information is new MAC Address.
7. WIFI detection identification methods as claimed in claim 5, it is characterised in that:
Timing cycle calculates the record time in all 2nd MAC information and the time difference of current time in the step 4 Value, the time departure subtract the time difference for the current time.
CN201510358147.2A 2015-06-25 2015-06-25 A kind of WIFI detections identification equipment, system and WIFI detection identification methods Active CN105049422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510358147.2A CN105049422B (en) 2015-06-25 2015-06-25 A kind of WIFI detections identification equipment, system and WIFI detection identification methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510358147.2A CN105049422B (en) 2015-06-25 2015-06-25 A kind of WIFI detections identification equipment, system and WIFI detection identification methods

Publications (2)

Publication Number Publication Date
CN105049422A CN105049422A (en) 2015-11-11
CN105049422B true CN105049422B (en) 2018-04-13

Family

ID=54455633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510358147.2A Active CN105049422B (en) 2015-06-25 2015-06-25 A kind of WIFI detections identification equipment, system and WIFI detection identification methods

Country Status (1)

Country Link
CN (1) CN105049422B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682134A (en) * 2016-03-28 2016-06-15 上海物联网有限公司 WIFI-based intelligent terminal real-time sniffing method and real-time sniffing system
CN106211210B (en) * 2016-07-21 2020-02-07 深圳奇迹智慧网络有限公司 Mobile terminal MAC data acquisition method
CN106131241B (en) * 2016-08-15 2019-04-26 Oppo广东移动通信有限公司 A kind of method for connecting network, device and mobile terminal
CN106302802A (en) * 2016-08-22 2017-01-04 北京易游华成科技有限公司 A kind of volume of the flow of passengers supervising device, method and system
WO2018094926A1 (en) * 2016-11-26 2018-05-31 华为技术有限公司 Method and device for sending wifi information, and method and device for sending wur information
GB201711411D0 (en) * 2016-12-30 2017-08-30 Maxu Tech Inc Early entry
CN107195047A (en) * 2017-05-22 2017-09-22 福建创寓信息科技有限公司 A kind of wireless network physical address collection method and Intelligent door access control device and system
CN107682913A (en) * 2017-09-21 2018-02-09 烽火通信科技股份有限公司 Gather the method and system of terminal device information in the range of wireless signal
CN111918210A (en) * 2019-05-07 2020-11-10 武汉微物云联科技有限公司 Positioning method and system for realizing exhibition hall service robot based on wifi probe technology
CN110944317A (en) * 2019-11-28 2020-03-31 南京森林警察学院 Method for realizing mobile digital communication equipment characteristic discovery and identification
CN113507476B (en) * 2021-07-15 2023-07-07 北京融汇画方科技有限公司 Defense method, system, equipment and storage medium for ARP spoofing attack
CN113613245A (en) * 2021-08-19 2021-11-05 支付宝(杭州)信息技术有限公司 Method and apparatus for managing communication channels
CN114339949B (en) * 2022-01-26 2024-09-03 成都埃欧体科技有限公司 Method, equipment and storage medium for realizing intelligent gateway

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067943A (en) * 2013-01-25 2013-04-24 公安部第三研究所 Method for confirming existence of WiFi (wireless fidelity) mobile terminal and counting number thereof
CN103179648A (en) * 2013-03-11 2013-06-26 浙江大学 Low-power-consumption personnel zone location method based on multi-sensor coordination
CN104683995A (en) * 2013-11-27 2015-06-03 北京易汇众盟网络技术有限公司 A visitor information processing system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4433400B2 (en) * 2004-12-09 2010-03-17 レノボ シンガポール プライヴェート リミテッド Wireless network communication card, device incorporating the card, device supporting wireless network communication, and method of detecting a wireless access point for wireless network communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067943A (en) * 2013-01-25 2013-04-24 公安部第三研究所 Method for confirming existence of WiFi (wireless fidelity) mobile terminal and counting number thereof
CN103179648A (en) * 2013-03-11 2013-06-26 浙江大学 Low-power-consumption personnel zone location method based on multi-sensor coordination
CN104683995A (en) * 2013-11-27 2015-06-03 北京易汇众盟网络技术有限公司 A visitor information processing system and method

Also Published As

Publication number Publication date
CN105049422A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN105049422B (en) A kind of WIFI detections identification equipment, system and WIFI detection identification methods
CN104980885B (en) A kind of data processing system and method towards WIFI detection identifications
US8897788B2 (en) Techniques to provide measurement pilot transmission information in wireless networks
EP2907344B1 (en) Method and apparatus for maintaining association in wireless lan system
US8259670B2 (en) Handover method and handover apparatus
CN102844672B (en) Positioning device and positioning method
US8014804B2 (en) Associating a wireless station with an access point
US8831643B2 (en) Systems and methods for utilizing hidden access points
US20060142004A1 (en) Method and apparatus to intelligently perform scanning and assist scanning by profiling scanning history
CN108738114B (en) Communication method and device of wireless local area network, access point equipment and site equipment
US20140105172A1 (en) Method and System for Time Based WLAN Scanning
CN104247548A (en) Communication using distributed channel access parameters
KR20050032095A (en) Transponder subsystem for supporting location awareness in wireless networks
CN108737053B (en) Communication method and device of wireless local area network, station equipment and access point equipment
CN108513339B (en) Communication method, communication device and communication terminal of wireless local area network
KR20140090001A (en) Method and apparatus for providing information based on wireless local area network
CN106856492A (en) A kind of method of stream of people's measurement
JP2005012973A (en) Radio communication system
CN107820303A (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN203813965U (en) Wireless environmental data sniffer for positioning
CN108880767A (en) Signaling method and communication equipment
CN204741572U (en) WIFI surveys identification equipment and WIFI intelligence system
US20070076656A1 (en) Method for transmitting information of a mobile station through a wlan
Zhou Research on wi-fi probe technology based on esp8266
Buchakchiev People density estimation using Wi-Fi infrastructure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 200233 three floor of No. 333, No. 41, Qinjiang Road, Xuhui District, Shanghai

Applicant after: Di'aisi information technology Limited by Share Ltd

Address before: No. 6, building No. 1, No. 48, Pingjiang Road, Xuhui District, Shanghai

Applicant before: Shanghai DS Communication Equipment Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant