CN105049422A - WIFI detection and identification equipment and system and WIFI detection and identification method - Google Patents

WIFI detection and identification equipment and system and WIFI detection and identification method Download PDF

Info

Publication number
CN105049422A
CN105049422A CN201510358147.2A CN201510358147A CN105049422A CN 105049422 A CN105049422 A CN 105049422A CN 201510358147 A CN201510358147 A CN 201510358147A CN 105049422 A CN105049422 A CN 105049422A
Authority
CN
China
Prior art keywords
information
mac
time
mac address
module
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.)
Granted
Application number
CN201510358147.2A
Other languages
Chinese (zh)
Other versions
CN105049422B (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.)
Shanghai DS Communication Equipment Co Ltd
Original Assignee
Shanghai DS Communication Equipment Co 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 Shanghai DS Communication Equipment Co Ltd filed Critical Shanghai DS Communication Equipment Co 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

Abstract

The invention discloses WIFI detection and identification equipment. The WIFI detection and identification equipment comprises an awakening and packet transmitting module which awakens mobile equipment to transmit data packets; an MAC address acquisition module which receives and parses the data packets transmitted by the mobile equipment so as to acquire an MAC address; an identification module which is connected with the MAC address acquisition module and identifies the mobile equipment according to the MAC address and judges the state of the mobile equipment and transmits state information to a communication module; and the communication module which is connected with the identification module and transmits the state information of the mobile equipment to a server. The mobile equipment can be identified under the condition that the mobile equipment has no WIFI network connection, and time of entering state and leaving state of the mobile equipment can be recorded.

Description

A kind of WIFI detection and identify equipment, system and WIFI detection identification method
Technical field
The present invention relates to wireless communication field, particularly relate to a kind of equipment, the system and method that detect mobile device.
Background technology
Along with the arrival in Internet of Things epoch, present trend that is polynary, explosive growth towards the information service of handheld mobile device and location-based service.No matter be enterprise, businessman and social safety field, to the identifying information with handheld mobile device, quantity statistics information, is proposed higher requirement.Therefore the mobile device how accurately near identification equipment device, the mobile device information recognized is recorded and by data upload to server, and by the difference of data according to business, screening and filtering being combined into meets the business datum that business uses becomes one of focus of this area research.
To the detecting and identifying of mobile device, existing method has identification of base stations and WIFI (WIreless-Fidelity, WiMAX) access to identify, specifically describes as follows:
Identification of base stations method is that mobile device (mobile phone) is when accessing mobile base station, mobile base station recognizes the IMSI ((InternationalMobileSubscriberIdentity of mobile phone, international member identification code) and IMEI (InternationalMobileEquipmentIdentity, mobile device identification code).IMSI and IMEI is unique, therefore can recognize this mobile phone in current mobile base station coverage.In general, the coverage of mobile base station is about 1km in city proper.So, handset identity to the scope of positional information be 1km.In city, this information is difficult to practical value.
WIFI access identifies mobile phone, is that cellphone subscriber is linked into WIFI network in WIFI region by username and password.Simultaneously, the specifying information of access mobile phone is collected by daemon software, as MAC Address (MAC (MediaAccessControl or MediumAccessControl) address, free translation is that media interviews control, or be called physical address, hardware address, be used for the position of define grid equipment.)。Therefore the position of user can be determined in mobile phone WIFI network region, and the network area of WIFI is 20-100 rice, but prerequisite is that user is by WIFI access network.Current many mobile phones are under screen lock state, and WIFI module dormancy, now cannot detect this mobile phone.For above mobile device identification, be difficult to there is universal usability in actual applications.Identification of base stations does not possess positional precision, and WIFI access identifies not possess versatility.Mobile device identification needs consider positional precision simultaneously and identify versatility.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of WIFI detection and identify equipment, technical scheme realizes as follows:
A kind of WIFI detection and identify equipment, comprising:
Wake-up packet sending module, wakes mobile device up and sends packet;
MAC Address acquisition module, receive and resolve mobile device send packet, obtain MAC Address;
Identification module, is connected with described MAC Address acquisition module, according to described MAC Address identification mobile device, and judges the state of mobile device, sends state information to communication module;
Communication module, is connected with described identification module, sends the state information of described mobile device to server.
The present invention wakes the mobile device in coverage up by transmission wake-up packet, obtain its MAC Address, by carrying out inquiry and analysis process to its MAC Address, know mobile device whether at ad-hoc location (i.e. WIFI detection and identify equipment of the present invention can detect area).
Preferred further, the state information of described mobile device at least comprises the information of getting the hang of and leaves state information.This optimal technical scheme further can obtain the time that mobile device entered and left ad-hoc location.
Preferred further, described identification module comprises:
Receive cache module, be connected with MAC Address acquisition module, generate a MAC information for receiving and storing described MAC Address, a described MAC information comprises MAC Address and time of reception;
MAC information cache module, stores the 2nd MAC information, and described 2nd MAC information comprises MAC Address and writing time;
Real time capable module, is connected with described MAC information cache module with described reception cache module respectively, for judging that whether described mobile device is for getting the hang of, and the entry time of record move equipment, generate the information of getting the hang of and be sent to server;
Application module, is connected with the first memory module with described MAC information cache module respectively, and for judging whether described mobile device leaves state, and the time departure of record move equipment generates and leaves state information and be sent to server.
Preferred further, described Real time capable module specifically comprises in the described 2nd MAC information judged in described MAC information cache module the MAC Address whether included in a described MAC information; And, time also for being no when judged result, marking a described MAC information for the generation that gets the hang of gets the hang of information send communication module, simultaneously, described time of reception is recorded as writing time, and described writing time and described MAC Address generation the 2nd MAC information are stored in described MAC information cache module; And, also for when judged result is for being, the 2nd MAC information comprising identical described MAC Address is searched in described MAC information cache module, is updated to the time of reception in a described MAC information wherein said writing time, and the described 2nd MAC information after storage update is to described first memory module.
Preferred further, described application module, specifically for the described 2nd MAC information of timing cycle scanning, calculates the last described writing time of record and the time difference of current time in described 2nd MAC information; Time also for being greater than setting threshold values when described time difference, marking described MAC Address in described 2nd MAC information for leaving state, calculating time departure and being stored to the 2nd MAC information and generating and leave state information, being sent to communication module;
Described application module also for when described 2nd MAC information flag is for leaving state, deletes described 2nd MAC information from described MAC information cache module.
Present invention also offers a kind of WIFI intelligence system, comprise at least one above-mentioned WIFI detection and identify equipment and at least one server;
Described WIFI detection and identify equipment for obtaining the MAC Address of mobile device, and obtains the information that gets the hang of of described mobile device according to described MAC Address and leaves state information, and is sent to server;
Described server comprises receiver module, the second memory module and processing module;
Described receiver module receive described WIFI detection and identify equipment send described in get the hang of information and describedly leave state information;
Described second memory module be used for storing receive described in get the hang of information and describedly leave state information.
The information that gets the hang of described in described processing module sends for the treatment of described WIFI detection and identify equipment and describedly leave state information, obtains entry time and the time departure of described mobile device.
The present invention obtains the MAC Address of mobile device by WIFI detection and identify equipment, and be sent to server by the time that analyzing and processing acquisition mobile device enters and leaves in coverage, the time that enters and leave of server to mobile device processes, and can provide data, services for the state of inquiring about mobile device.
Preferred further, the communication mode of WIFI detection and identify equipment and server comprises the one in WIFI, 3G/4G, LAN.
The present invention also provides a kind of WIFI detection identification method, comprising:
Step 1 is waken mobile device up and is sent packet;
Step 2 receives and resolves described packet and obtains a MAC information;
Step 3 judges whether the MAC Address in a described MAC information is new MAC Address, if, then mark described MAC Address for getting the hang of, generation gets the hang of information be sent to server, record time of reception is writing time simultaneously, and described writing time and MAC Address are generated the 2nd MAC information and store; Otherwise, search the 2nd MAC information comprising identical described MAC Address, the writing time in described 2nd MAC information be updated to time of reception, the described 2nd MAC information after storage update;
Step 4 scans described 2nd MAC information, calculate the last described writing time of record and the time difference of current time in described 2nd MAC information, if described time difference is greater than setting threshold values, then marking MAC Address in described 2nd MAC information for leaving state, calculating time departure and generating and leave state information and be sent to server;
Be labeled as the information of getting the hang of described in step 5 server receives and leave state information, obtaining time of reception and the writing time of mobile device, obtain entry time and the time departure of mobile device according to described time of reception and writing time.
Preferred further, judge in step 3 whether the MAC Address in a MAC information is that new MAC Address is specially:
Comparison the one MAC information and the 2nd MAC information, search the MAC Address in the 2nd all MAC information, whether there is the MAC Address identical with the MAC Address of a MAC information, and the MAC Address if so, then in a MAC information is not new MAC Address; If not, then the MAC Address in a MAC information is new MAC Address.
Preferred further, the writing time in described step 4 in all described MAC information of timing cycle calculating and the time difference of current time, described time departure is that described current time deducts described time difference.
The invention has the beneficial effects as follows: achieve to the mobile device with WIFI function simple, efficient, accurately identify, overcoming tional identification equipment needs WIFI interconnection network, installs the shortcomings such as specific fixation and recognition software, recognition accuracy and coverage rate be on the low side.The wake-up packet sending module that the equipment utilization of this detection and identify is special, completely avoid the problem that standby mode equipment can not effectively identify; And utilize data cache module and the state of computing chip to mobile device to calculate in real time, effective identification also have recorded the unique mac address of mobile device and enters/leave the time of WIFI coverage, for the application such as zone location, data statistics and motion track provide Data support, the service application scenes such as dense population monitoring, commercial circle passenger flow analysing, scenic spot passenger flow induction can be widely applied to.Based on present device identification accuracy, real-time, and the cheap property of cost, it will be a useful supplement to the current population surveillance based on high cost video analysis, passenger flow analysis system, can large scale deployment be carried out, thus significant for fields such as public safety, traffic, business, tourisms.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail:
Fig. 1 is WIFI detection and identify device structure schematic diagram of the present invention;
Fig. 2 is another specific embodiment schematic diagram of WIFI detection and identify equipment of the present invention;
Fig. 3 is WIFI intelligence system of the present invention composition schematic diagram;
Fig. 4 is the step schematic diagram of WIFI detection identification method of the present invention;
Drawing reference numeral:
100.WIFI detection and identify equipment, 101. wake-up packet sending modules, 102.MAC address acquisition module, 103. identification module, 1031. receive cache module 1032.MAC information cache module 1033. Real time capable module 1034. application module, 1035. first memory modules, 104. communication modules;
200. servers, 201. receiver modules, 202. second memory modules, 203. processing modules.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, to those skilled in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of WIFI detection and identify of the present invention device structure schematic diagram, and as a specific embodiment of the present invention, as shown in Figure 1, a kind of WIFI detection and identify equipment, comprising:
Wake-up packet sending module 101, for regularly sending wakeup packet to mobile device;
Concrete, mobile device all has battery saving mode, when in a power-save mode, Frame is not had to send in a period of time, the present invention is by sending wake-up packet termly to mobile device, thus waking the mobile device be in hibernation up, mobile device responds after receiving wake-up packet, sends out 802.11 protocol data bags to WIFI detection and identify equipment 100.
In the WIFI module of mobile device, amplifier is the element of most power consumption, and the signal being responsible for sending out by it amplifies, and received signal is amplified to accessible level.802.11 work stations can close radio wave transceiver, and regularly enter resting state, to maintain the longest service time of battery.During this section, the work station that base station can be in resting state for every portion keeps in frame.If there is temporary frame, work station can be informed in base station in follow-up Beacon (beacon) frame.The work station waken up by power down mode can use PS-Poll frame to obtain these temporary frames.
Beaconinterval position in Beacon frame, it is used to the existence of declaration 802.11 network.
802.11 agreement regulation wireless terminals regularly must be revived and be monitored Beacons frame, by checking the TIM field of Beacon frame, judge whether AP has to issue oneself Frame.If determine AP there is the Frame will issuing oneself, then terminal obtains temporal data by sending PS-Poll, and a PS-Poll frame is only for obtaining a temporary frame.
And contain BSSID and TransmitterAddress (transmitting terminal address) in PS-Poll frame, i.e. the MAC Address of the transmitting terminal of PS-Poll frame.
MAC Address acquisition module 102, for receive and resolve mobile device send packet, obtain the first MAC Address.
Concrete, MAC Address acquisition module 102 repeating query in the present invention receives 802.11 protocol data bags and resolution data bag on each channel of 2.4GHz and 5.8GHz, from the destination address field (DAF) of frame head, extract MAC Address.
802.11 frames are divided into three parts: frame head (Macheader), frame entity (body), FCS territory.Be divided into MACheader, FrameBody and FCS.MACheader is made up of 4 fields, is respectively: FrameControl, DurationID, Address, Seqctl.Comprise Address on purpose location, source address and BSSID.
FrameControl (frame control) field of the beginning of all frames to be all length be two bytes, and in FrameControl (frame control), comprise following son field: Protocol, Type, Subtype, ToDS, FromDS, Morefragments, Morefragments, Retry, Powermanagement, Moredata, ProtectedFrame.
Type (type) and Subtype (subtype) field are used to specify the frame type of use.Frame in 802.11 has three types: management frames (ManagementFrame, such as Beacon frame, Association frame), control frame (ControlFrame, such as RTS frame, CTS frame, ACK frame), Frame (DataFrame, the carrier of carrying data, it is very important that DS field is wherein used for identifying direction).
The frame header of packet is divided and parses MAC Address.
WIFI detection and identify equipment 100 supports 2.4GHz and 5GHz two-band, and why says it is frequency range instead of frequency, is because the carrier frequency that wireless router uses is a set, contains the frequency that various numerical value is different.According to IEEE802.11 and improve the regulation of standard, the carrier frequency that WLAN (wireless local area network) uses is divided into 2.4GHz frequency range and 5GHz frequency range two parts, and every part is divided into some channels with certain frequency interval again.These channels are referred to as WLAN channel, and the frequency that each channel is corresponding is actually the centre frequency of this channel.
2.4GHz frequency range can be divided into 14 WLAN channels, except No. 14 channel and the 13rd channel spacing 12MHz, interval between all the other each channels is 5MHz, and IEEE802.11 standard regulation, each signal needs the frequency range taking 20MHz (being actually 22MHz), be equivalent to 5 WLAN channels, therefore when wireless router takies certain channel of 2.4GHz frequency range, centered by this channel, amount to 5 WLAN channels all can bring in the scope that this router uses.Illustrate, when router takies No. 6 channel of 2.4GHz frequency range, it has in fact occupied the 4th to No. 8 and has amounted to 5 channels.
If IEEE802.11 signal demand takies the frequency range of 40MHz, such as IEEE802.11n standard, so when wireless router uses certain channel, its actual channel quantity taken will reach 9, such as, when it takies No. 6 channel, it has in fact occupied the 2nd to No. 10 and has amounted to 9 channels.The IEEE802.11n router why Here it is has obviously can use the frequency range of 40MHz, under in fact but only operating in 20MHz frequency range pattern.This is because 2.4GHz frequency range there have been many channels taken by miscellaneous equipment, in order to ensure network stabilization, wireless router can select the mode reducing frequency range to carry out promotion signal intensity.
The scope of 5GHz frequency range wants much broad undoubtedly compared with 2.4GHz, coverage is actually 4.9GHz to 5.8GHz, the division of channel is also more diversified, a standard is but had to be constant, that is exactly that centre frequency corresponding to channel often promotes 5MHz, the numbering of channel just adds 1, and the standard that this point and 2.4GHz band channels divide is basically identical.
Support that the wireless router majority of 5GHz frequency range uses No. 36 channel to No. 165 channel, the centre frequency of both correspondences is respectively 5.170GHz to 5.825GHz.
Identification module 103, is connected with described MAC Address acquisition module 102, according to described MAC Address identification mobile device, and judges the state of mobile device, sends state information to communication module 104.
When the MAC Address that identification module 103 receives, by to MAC Address and stored MAC Address contrast, judge to receive, MAC Address is if new MAC Address, then think the mobile device newly entered, mark this MAC Address generation information of getting the hang of and be sent to communication module 104.
Identification module 103 timing cycle from the mac address information stored, find out the MAC Address that set time period threshold values do not occur, and be labeled as the state of leaving, generate and leave state information and be sent to communication module 104.
Communication module 104, is connected with described identification module 103, sends the state information of described mobile device to server 200.Concrete, communication module is different according to communication modes, adopts different modules, supports the communication transfer data process of WIFI, 3G/4G or LAN (LocalAreaNetwork, local area network (LAN)) mode.
WIFI communicates, and works in Station pattern, can arrange SSID, user name, password be connected to AP network; By AP network, data are sent to public network or LAN server.
3G/4G communication mode, can select the mobile communications network of movement, UNICOM, communication network, buys the mobile communication card insert module of operator, just directly can send data to appointment public network server by mobile network.
LAN mode, accesses this module by the netting twine of local area network (LAN), just by LAN, data is sent to public network or LAN server.
Concrete, the state information of described mobile device comprises the information of getting the hang of and leaves state information.
Improve above-described embodiment, obtaining preferred embodiment 2, Fig. 2 is WIFI detection and identify apparatus embodiments 2 schematic diagram of the present invention, and wherein identification module 103 comprises:
Receive cache module 1031, be connected with MAC Address acquisition module 102, for receiving and storing a MAC information, a MAC information comprises MAC Address and time of reception.
Concrete, the present invention by the MAC Address that obtains with time of reception stored in receiving cache module 1031, while carry out next step reception again.
MAC information cache module 1032, stores the 2nd MAC information, and the 2nd MAC information comprises MAC Address and writing time.
Concrete, be stored in MAC information cache module 1032 to after the MAC information processing received, it stores the 2nd MAC information of the mobile device in all coverages.
Real time capable module 1033, be connected with described MAC information cache module 1032 with described reception cache module 1031 respectively, for judging that whether described mobile device is for getting the hang of, and the entry time of record move equipment, generate the information of getting the hang of and be sent to server 200.
Wherein, Real time capable module 1033, is connected with MAC information cache module 1032 with reception cache module 1031 respectively, judges the MAC Address whether included in the described 2nd MAC information in described MAC information cache module 1032 in a described MAC information; And, time also for being no when judged result, marking a described MAC information for the generation that gets the hang of gets the hang of information send communication module 104, simultaneously, described time of reception is recorded as writing time, and described writing time and described MAC Address generation the 2nd MAC information are stored in described MAC information cache module 1032; And, also for when judged result is for being, the 2nd MAC information comprising identical described MAC Address is searched in described MAC information cache module 1032, is updated to the time of reception in a described MAC information wherein said writing time, and the described 2nd MAC information after storage update is to described first memory module 1035.
Concrete, Real time capable module 1033 accesses MAC information cache module 1032 and the first memory module 1035 simultaneously, the 2nd MAC information stored in the MAC information received and MAC information cache module 1032 is compared, newly-increased MAC Address is stored in MAC information cache module 1032 and the first memory module 1035.
Application module 1034, is connected with the first memory module 1035 with described MAC information cache module 1032 respectively, and for judging whether described mobile device leaves state, and the time departure of record move equipment generates and leaves state information and be sent to server 200.
Described application module 1034 is specifically for the described 2nd MAC information of timing cycle scanning, calculate the last described writing time of record and the time difference of current time in described 2nd MAC information, and judge whether the mobile device of this MAC Address leaves by the time difference comparing its writing time and current time; Time also for being greater than setting threshold values when described time difference, marking described MAC Address in described 2nd MAC information for leaving state, calculating time departure and being stored to the 2nd MAC information and generating and leave state information, being sent to communication module 104.
When the 2nd MAC information flag is for leaving state, application module 1034 also deletes the 2nd MAC information from MAC information cache module 1032.
First memory module 1035, for the 2nd MAC information after storage update;
The present invention wakes the mobile device in coverage up by transmission wake-up packet, obtain its MAC Address, by carrying out inquiry and analysis process to its MAC Address, obtains entering and time departure of mobile device.
Present invention also offers a kind of WIFI intelligence system, Fig. 3 is WIFI intelligence system of the present invention composition schematic diagram, and as shown in Figure 3, WIFI intelligence system comprises at least one above-mentioned WIFI detection and identify equipment 100 and at least one server 200;
WIFI detection and identify equipment 100 for obtaining the MAC Address of mobile device, and obtains the information that gets the hang of of mobile device according to MAC Address and leaves state information, and is sent to server 200;
Wherein, the communication mode of WIFI detection and identify equipment 100 and server 200 comprises the one in WIFI, 3G/4G, LAN.
Server 200 comprises receiver module 201, second memory module 202 and processing module 203;
Receiver module 201 receives the information that gets the hang of of WIFI detection and identify equipment 100 transmission and leaves state information; Concrete, the information of getting the hang of comprises MAC Address and time of reception, leaves state information and comprises MAC Address and writing time.
Second memory module 202 is used for storing the information that gets the hang of that receives and leaves state information.
The information that gets the hang of that processing module 203 sends for the treatment of WIFI detection and identify equipment 100 and leave state information, according to time of reception and entry time and the time departure that can obtain mobile device writing time.
The present invention obtains the MAC Address of mobile device by WIFI detection and identify equipment 100, and be sent to server 200 by the time that analyzing and processing acquisition mobile device enters and leaves in coverage, the time entering and leave of server 200 pairs of mobile devices processes, and can provide data, services for the state of inquiring about mobile device.
Lower mask body introduces the course of work of WIFI intelligence system of the present invention:
First, wake-up packet sending module 101 sends wakeup packet to mobile device, and wake the mobile device be in hibernation up, mobile device responds after receiving wake-up packet, sends out 802.11 protocol data bags to WIFI detection and identify equipment 100.
802.11 protocol data bags of mobile device transmission are received by MAC Address acquisition module 102, and resolution data bag, from the destination address field (DAF) of frame head, extract MAC Address stored in reception cache module 1031, carry out next step reception simultaneously.
Reception cache module 1031 store M AC address and time of reception are a MAC information.
Then, Real time capable module 1033 timing obtains a MAC information from reception cache module 1031, compared by the 2nd MAC information stored with MAC information cache module 1032, judge the MAC Address whether included in the 2nd MAC information in a MAC information, when traversal MAC information cache module 1032 does not find the MAC Address in a MAC information, mark a current MAC information for getting the hang of, the generation information of getting the hang of is sent to communication module 104, simultaneously, time of reception is recorded as writing time, and writing time and MAC Address generation the 2nd MAC information are stored in MAC information cache module 1032.
When judged result is, the 2nd MAC information comprising identical MAC Address is searched in MAC information cache module 1032, wherein will be updated to the time of reception in a MAC information writing time, and the 2nd MAC information to the first memory module 1035 after storage update.
Then, application module 1034 timing cycle scans the 2nd MAC information in MAC information cache module 1032 and the first memory module 1035, calculate the last writing time of record and the time difference of current time in the 2nd MAC information, when time difference is greater than setting threshold values, mark MAC Address in the 2nd MAC information for leaving state, calculate time departure generation and leave state information, be sent to communication module 104.If time difference is less than setting threshold values, then this mobile device is described also in the scope of WIFI detection and identify equipment 100, the packet that mobile device sends can be received, do not do any process.
When the 2nd MAC information flag is for leaving state, application module 1034 also deletes the 2nd MAC information from MAC information cache module 1032.
Communication module 104 is by the information that gets the hang of received and leave state information and be sent to server 200.
Server 200 receives by receiver module 201 information that gets the hang of and leaves state information, is stored in the second memory module 202.
Process by processing module 203 information that gets the hang of and leave state information, obtaining the time that mobile device entered and left WIFI detection and identify equipment 100 coverage.
Fig. 4 is the step schematic diagram of WIFI detection identification method of the present invention, and as the present invention's specific embodiment, as shown in Figure 4, a kind of WIFI detection identification method, comprising:
Step 1 is waken mobile device up and is sent packet;
Step 2 receives and resolution data bag obtains a MAC information;
Step 3 judges whether the MAC Address in a described MAC information is new MAC Address, if, then mark described MAC Address for getting the hang of, generation gets the hang of information be sent to server 200, record time of reception is writing time simultaneously, and described writing time and MAC Address are generated the 2nd MAC information and store; Otherwise, search the 2nd MAC information comprising identical described MAC Address, the writing time in described 2nd MAC information be updated to time of reception, the described 2nd MAC information after storage update;
Step 4 scans described 2nd MAC information, calculate the last described writing time of record and the time difference of current time in described 2nd MAC information, if described time difference is greater than setting threshold values, then marking MAC Address in described 2nd MAC information for leaving state, calculating time departure and generating and leave state information and be sent to server 200.Concrete, time departure is that current time deducts time difference.
Be labeled as the information of getting the hang of described in step 5 server 200 receives and leave state information, obtaining time of reception and the writing time of mobile device, obtain entry time and the time departure of mobile device according to described time of reception and writing time.
Wherein, judge in step 3 whether the MAC Address in a MAC information is that new MAC Address is specially:
Comparison the one MAC information and the 2nd MAC information, search the MAC Address in the 2nd all MAC information, whether there is the MAC Address identical with the MAC Address of a MAC information, and the MAC Address if so, then in a MAC information is not new MAC Address; If not, then the MAC Address in a MAC information is new MAC Address.
Wherein, in step 4, timing cycle calculates the time difference of writing time in all MAC information and current time.
Introduce the more detailed steps flow chart of WIFI detection identification method of the present invention below:
Step 1, send wakeup packet to mobile device, wake the mobile device be in hibernation up, mobile device responds after receiving wake-up packet, sends out 802.11 protocol data bags to WIFI detection and identify equipment 100.
Step 2, receives the 802.11 protocol data bags that mobile device sends, and resolution data bag, from the destination address field (DAF) of frame head, extract MAC Address and be stored as a MAC information, carrying out next step reception simultaneously.
Step 3, timing obtains a MAC information, by comparing with the 2nd MAC information stored, judging the MAC Address whether included in the 2nd MAC information in a MAC information, when traversal the 2nd MAC information does not find the MAC Address in a MAC information, marking a current MAC information for getting the hang of, the generation information of getting the hang of is sent to communication module 104, meanwhile, time of reception is recorded as writing time, and writing time and MAC Address are generated the 2nd MAC information and store.
If when including the MAC Address in a MAC information in the 2nd MAC information, then search the 2nd MAC information comprising identical MAC Address, wherein will be updated to the time of reception in a MAC information writing time, and the 2nd MAC information after storage update.
Step 4, the all 2nd MAC information of timing cycle scanning, calculate the last writing time of record and the time difference of current time in the 2nd MAC information, when time difference is greater than setting threshold values, mark MAC Address in the 2nd MAC information for leaving state, calculating time departure generation leaves in state information, is sent to server 200.If time difference is less than setting threshold values, then this mobile device is described also in the scope of WIFI detection and identify equipment 100, the packet that mobile device sends can be received, do not do any process.
When the 2nd MAC information flag is for leaving state, delete the 2nd MAC information.
Server 200 receives the information that gets the hang of of WIFI detection and identify equipment 100 transmission and leaves state information and store.
Process the information that gets the hang of and leave state information, obtaining the time that mobile device entered and left WIFI detection and identify equipment 100 coverage.
The present invention obtains the MAC Address of mobile device by WIFI detection and identify equipment 100, and be sent to server 200 by the time that analyzing and processing acquisition mobile device enters and leaves in coverage, the time entering and leave of server 200 pairs of mobile devices processes, and can provide data, services for the state of inquiring about mobile device.
Obviously, those skilled in the art can carry out various change and distortion to the present invention, and does not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention belong within the scope of the claims in the present invention and equivalent technology thereof, then the present invention is also intended to comprise these changes and distortion.

Claims (10)

1. a WIFI detection and identify equipment, is characterized in that, comprising:
Wake-up packet sending module, wakes mobile device up and sends packet;
MAC Address acquisition module, receive and resolve mobile device send packet, obtain MAC Address;
Identification module, is connected with described MAC Address acquisition module, according to described MAC Address identification mobile device, and judges the state of mobile device, sends state information to communication module;
Communication module, is connected with described identification module, sends the state information of described mobile device to server.
2. WIFI detection and identify equipment as claimed in claim 1, is characterized in that:
The state information of described mobile device at least comprises the information of getting the hang of or leaves state information.
3. WIFI detection and identify equipment as claimed in claim 2, is characterized in that:
Described identification module comprises:
Receive cache module, be connected with MAC Address acquisition module, generate a MAC information for receiving and storing described MAC Address, a described MAC information comprises MAC Address and time of reception;
MAC information cache module, stores the 2nd MAC information, and described 2nd MAC information comprises MAC Address and writing time;
Real time capable module, is connected with described MAC information cache module with described reception cache module respectively, for judging that whether described mobile device is for getting the hang of, and the entry time of record move equipment, generate the information of getting the hang of and be sent to server;
Application module, is connected with the first memory module with described MAC information cache module respectively, and for judging whether described mobile device leaves state, and the time departure of record move equipment generates and leaves state information and be sent to server.
4. WIFI detection and identify equipment as claimed in claim 3, is characterized in that:
Described Real time capable module specifically comprises in the described 2nd MAC information judged in described MAC information cache module the MAC Address whether included in a described MAC information; And, time also for being no when judged result, mark a described MAC information for getting the hang of, generation gets the hang of information send communication module, simultaneously, described time of reception is recorded as writing time, and described writing time and described MAC Address generation the 2nd MAC information are stored in described MAC information cache module; And, also for when judged result is for being, the 2nd MAC information comprising identical described MAC Address is searched in described MAC information cache module, is updated to the time of reception in a described MAC information wherein said writing time, and the described 2nd MAC information after storage update is to described first memory module.
5. WIFI detection and identify equipment as claimed in claim 4, is characterized in that:
Described application module, specifically for the described 2nd MAC information of timing cycle scanning, calculates the last described writing time of record and the time difference of current time in described 2nd MAC information; Time also for being greater than setting threshold values when described time difference, marking described MAC Address in described 2nd MAC information for leaving state, calculating time departure and being stored to the 2nd MAC information and generating and leave state information, being sent to communication module;
Described application module also for when described 2nd MAC information flag is for leaving state, deletes described 2nd MAC information from described MAC information cache module.
6. a WIFI intelligence system, is characterized in that, comprises at least one WIFI detection and identify equipment as described in claim 1-5 and at least one server;
Described WIFI detection and identify equipment for obtaining the MAC Address of mobile device, and obtains the information that gets the hang of of described mobile device according to described MAC Address and leaves state information, and is sent to server;
Described server comprises receiver module, the second memory module and processing module;
Described receiver module receive described WIFI detection and identify equipment send described in get the hang of information and describedly leave state information;
Described second memory module be used for storing receive described in get the hang of information and describedly leave state information;
The information that gets the hang of described in described processing module sends for the treatment of described WIFI detection and identify equipment and describedly leave state information, obtains entry time and the time departure of described mobile device.
7. WIFI intelligence system as claimed in claim 6, is characterized in that:
The communication mode of described WIFI detection and identify equipment and described server comprises the one in WIFI, 3G/4G, LAN.
8. a WIFI detection identification method, is characterized in that, comprising:
Step 1 is waken mobile device up and is sent packet;
Step 2 receives and resolves described packet and obtains a MAC information;
Step 3 judges whether the MAC Address in a described MAC information is new MAC Address, if, then mark described MAC Address for getting the hang of, generation gets the hang of information be sent to server, record time of reception is writing time simultaneously, and described writing time and MAC Address are generated the 2nd MAC information and store; Otherwise, search the 2nd MAC information comprising identical described MAC Address, the writing time in described 2nd MAC information be updated to time of reception, the described 2nd MAC information after storage update;
Step 4 scans described 2nd MAC information, calculate the last described writing time of record and the time difference of current time in described 2nd MAC information, if described time difference is greater than setting threshold values, then marking MAC Address in described 2nd MAC information for leaving state, calculating time departure and generating and leave state information and be sent to server;
Be labeled as the information of getting the hang of described in step 5 server receives and leave state information, obtaining time of reception and the writing time of mobile device, obtain entry time and the time departure of mobile device according to described time of reception and writing time.
9. WIFI detection identification method as claimed in claim 8, is characterized in that:
Judge in described step 3 whether the described MAC Address in a described MAC information is that new MAC Address is specially:
Comparison the one MAC information and the 2nd MAC information, search the MAC Address in the 2nd all MAC information, whether there is the MAC Address identical with the MAC Address of a described MAC information, the MAC Address if so, then in a described MAC information is not new MAC Address; If not, then the MAC Address in a described MAC information is new MAC Address.
10. WIFI detection identification method as claimed in claim 8, is characterized in that:
Writing time in described step 4 in all described MAC information of timing cycle calculating and the time difference of current time, described time departure is that described current time deducts described time difference.
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 true CN105049422A (en) 2015-11-11
CN105049422B 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)

Cited By (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
CN106131241A (en) * 2016-08-15 2016-11-16 广东欧珀移动通信有限公司 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
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
WO2018014874A1 (en) * 2016-07-21 2018-01-25 深圳奇迹智慧网络有限公司 Mobile terminal mac data acquisition method
CN107682913A (en) * 2017-09-21 2018-02-09 烽火通信科技股份有限公司 Gather the method and system of terminal device information in the range of wireless signal
CN109526254A (en) * 2016-11-26 2019-03-26 华为技术有限公司 The method and apparatus for sending WiFi information, sending WUR information
CN109644360A (en) * 2016-12-30 2019-04-16 同济大学 A method of differentiating that pedestrian flows to using WI-FI probe
CN110944317A (en) * 2019-11-28 2020-03-31 南京森林警察学院 Method for realizing mobile digital communication equipment characteristic discovery and identification
CN111918210A (en) * 2019-05-07 2020-11-10 武汉微物云联科技有限公司 Positioning method and system for realizing exhibition hall service robot based on wifi probe technology
CN113507476A (en) * 2021-07-15 2021-10-15 北京融汇画方科技有限公司 Method, system, device and storage medium for defending against ARP spoofing attack
CN113613245A (en) * 2021-08-19 2021-11-05 支付宝(杭州)信息技术有限公司 Method and apparatus for managing communication channels
CN114339949A (en) * 2022-01-26 2022-04-12 成都真杰瑞科技有限公司 Method, equipment and storage medium for realizing intelligent gateway

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060128415A1 (en) * 2004-12-09 2006-06-15 Hideto Horikoshi Apparatus and method for detecting a wireless access point for wireless network communication
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060128415A1 (en) * 2004-12-09 2006-06-15 Hideto Horikoshi Apparatus and method for detecting a wireless access point for wireless network communication
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

Cited By (14)

* 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
WO2018014874A1 (en) * 2016-07-21 2018-01-25 深圳奇迹智慧网络有限公司 Mobile terminal mac data acquisition method
CN106131241A (en) * 2016-08-15 2016-11-16 广东欧珀移动通信有限公司 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
CN109526254A (en) * 2016-11-26 2019-03-26 华为技术有限公司 The method and apparatus for sending WiFi information, sending WUR information
CN109644360A (en) * 2016-12-30 2019-04-16 同济大学 A method of differentiating that pedestrian flows to using WI-FI probe
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
CN113507476A (en) * 2021-07-15 2021-10-15 北京融汇画方科技有限公司 Method, system, device and storage medium for defending against ARP spoofing attack
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
CN114339949A (en) * 2022-01-26 2022-04-12 成都真杰瑞科技有限公司 Method, equipment and storage medium for realizing intelligent gateway

Also Published As

Publication number Publication date
CN105049422B (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN105049422A (en) WIFI detection and identification equipment and system and WIFI detection and identification method
US9456306B2 (en) Fine timing measurement transmissions between APs
CN104980885A (en) Data processing system and method for WIFI detection and recognition
EP3022960B1 (en) Mobile device tracking prevention method and system
CN108738109B (en) Site awakening method and site
EP2907344B1 (en) Method and apparatus for maintaining association in wireless lan system
CN107979443B (en) Wake-up method and device
US8259670B2 (en) Handover method and handover apparatus
US8831643B2 (en) Systems and methods for utilizing hidden access points
US11064437B2 (en) Power saving for wireless device
US20090268652A1 (en) Power management mode aware mesh beacon collision avoidance and information update mechanism
US20200015166A1 (en) Wireless communication method and wireless communication terminal using wake-up radio
US20170188242A1 (en) Method and apparatus for IoT device clustering
CN103916163A (en) Method, Apparatus, And Computer Program Product For Wireless Short-range Communication
CN102917406A (en) Data flow shunting method and equipment
US10945202B2 (en) Method for selecting wireless access point, FTM session method, terminal, and server
KR101453523B1 (en) Method and apparatus for providing information based on wireless local area network
CN108513339B (en) Communication method, communication device and communication terminal of wireless local area network
CN108737053B (en) Communication method and device of wireless local area network, station equipment and access point equipment
CN108738114A (en) Communication means, device, access point apparatus and the site apparatus of WLAN
US9247476B2 (en) Systems and methods for coordinating power management in an independent basic service set
CN203813965U (en) Wireless environmental data sniffer for positioning
CN204741572U (en) WIFI surveys identification equipment and WIFI intelligence system
CN105763735A (en) User equipment and quick sleep method
US20150296457A1 (en) Systems and methods for implementing wlan power saving using an alternate wireless protocol

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
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.

GR01 Patent grant
GR01 Patent grant