CN110446157B - Method and device for determining target information based on WIFI probe - Google Patents

Method and device for determining target information based on WIFI probe Download PDF

Info

Publication number
CN110446157B
CN110446157B CN201910712660.5A CN201910712660A CN110446157B CN 110446157 B CN110446157 B CN 110446157B CN 201910712660 A CN201910712660 A CN 201910712660A CN 110446157 B CN110446157 B CN 110446157B
Authority
CN
China
Prior art keywords
target
detected
mac address
wifi
determining
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
CN201910712660.5A
Other languages
Chinese (zh)
Other versions
CN110446157A (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.)
Beijing Laili Space Time Technology Co ltd
Original Assignee
Beijing Laili Space Time Technology 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 Beijing Laili Space Time Technology Co ltd filed Critical Beijing Laili Space Time Technology Co ltd
Priority to CN201910712660.5A priority Critical patent/CN110446157B/en
Publication of CN110446157A publication Critical patent/CN110446157A/en
Application granted granted Critical
Publication of CN110446157B publication Critical patent/CN110446157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Abstract

The embodiment of the invention provides a method and a device for determining target information based on a WIFI probe, wherein the method comprises the following steps: receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; if the target MAC address is judged and found to be detected by at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information. The device performs the above method. The method and the device provided by the embodiment of the invention can conveniently determine the target information based on the WIFI probe.

Description

Method and device for determining target information based on WIFI probe
Technical Field
The invention relates to the technical field of information acquisition, in particular to a method and a device for determining target information based on a WIFI probe.
Background
At present, a thermodynamic diagram of passenger flow is generally required to be drawn in a public area (e.g., a shopping mall or a supermarket), and a passenger flow direction is known according to the thermodynamic diagram, but before the thermodynamic diagram is drawn, a position of a customer needs to be acquired.
In the prior art, a plurality of WIFI probes are deployed in a public area, a position coordinate is set for each WIFI probe, each WIFI probe acquires an MAC address of a terminal, and sends data related to target information determination to a server, so that the server determines the target information according to the data. However, some mobile phone device manufacturers update the security policy of the mobile phone, and generate a pseudo MAC address on the basis of the real MAC address, which increases the amount of calculation in determining the target information, thereby causing inconvenience to the determination process of the target information.
Therefore, how to avoid the above-mentioned drawbacks and determine the target information based on the WIFI probe is a problem that needs to be solved urgently.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a device for determining target information based on a WIFI probe.
The embodiment of the invention provides a method for determining target information based on a WIFI probe, which comprises the following steps:
receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes;
detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes;
if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
The detecting all the MAC addresses to be detected and determining the target MAC address according to the detection result comprises the following steps:
acquiring the occurrence frequency of each MAC address to be detected in all MAC addresses to be detected, and rejecting the MAC addresses to be detected, the occurrence frequency of which is less than or equal to two times;
and determining the target MAC address in the remaining MAC addresses to be tested.
Wherein the determining the target MAC address among the remaining MAC addresses to be tested includes:
and determining the target MAC address in the remaining MAC addresses to be tested by adopting a polling mode.
Wherein the method further comprises:
and if the target MAC address is judged and found to be detected by all the three WIFI probes, determining the three WIFI probes which detect the target MAC address as the target WIFI probes.
The method comprises the steps of receiving information sent by all WIFI probes in a target area respectively, wherein the information comprises the information sent by all WIFI probes in the target area periodically; correspondingly, the method further comprises the following steps:
and carrying out synchronization processing on the received periodically transmitted information.
The detecting all the MAC addresses to be detected and determining the target MAC address according to the detection result comprises the following steps:
periodically detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; and the periodic interval for periodically detecting all MAC addresses to be detected is a time interval for synchronous processing.
The terminal also comprises a network equipment terminal; correspondingly, the detecting all the MAC addresses to be detected and determining the target MAC address according to the detection result includes:
detecting all MAC addresses to be detected by adopting an OUI table; the OUI table is prestored with a preset real MAC address corresponding to a preset network equipment terminal;
and if a target MAC address to be detected corresponding to the preset real MAC address is detected, eliminating the target MAC address to be detected, detecting all the residual MAC addresses to be detected, and determining the target MAC address according to the detection result.
The embodiment of the invention provides a device for determining target information based on a WIFI probe, which comprises:
the receiving unit is used for receiving information respectively sent by all WIFI probes in the target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes;
the first determining unit is used for detecting all MAC addresses to be detected and determining target MAC addresses according to detection results; the target MAC address is the same real MAC address detected by all the at least three WIFI probes;
the second determining unit is used for determining, according to the distance to be selected between the target terminal corresponding to the target MAC address and each WIFI probe to be selected, the WIFI probe to be selected corresponding to the three target distances with the shortest distance to be selected as the target WIFI probe, and determining target position information and target distance of each target WIFI probe as target information if the target MAC address is judged to be detected by all the at least four WIFI probes; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
An embodiment of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein,
the processor, when executing the program, implements the method steps of:
receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes;
detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes;
if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
An embodiment of the invention provides a non-transitory computer readable storage medium having a computer program stored thereon, which when executed by a processor implements the following method steps:
receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes;
detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes;
if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
According to the method and the device for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the target MAC address is determined by detecting all the MAC addresses to be detected, the target WIFI probe is determined according to the shortest distance principle, and then the target position information and the target distance of each target WIFI probe are determined as the target information, so that the target information can be conveniently determined based on the WIFI probe.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment of a method for determining target information based on a WIFI probe according to the present invention;
fig. 2 is a schematic structural diagram of an embodiment of the apparatus for determining target information based on a WIFI probe according to the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of an embodiment of a method for determining target information based on a WIFI probe according to the present invention, and as shown in fig. 1, the method for determining target information based on a WIFI probe according to the embodiment of the present invention includes the following steps:
s101: receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area includes at least three WIFI probes.
Specifically, the device receives information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area includes at least three WIFI probes. The device may be a server performing the method, and the server may be networked with all WIFI probes. The terminal may comprise a user terminal, such as a cell phone used by a customer, and the target area may be a sub-area of a public area, the sub-area deploying at least three WIFI probes. The position information of the WIFI probe itself may be a position coordinate of each WIFI probe, and is not particularly limited.
The MAC address to be tested may include a real MAC address and a pseudo MAC address, and it is understood that: each mobile phone corresponds to a unique real MAC address which is fixed and invariable, namely, the real MAC addresses of the same terminal detected by each WIFI probe are the same, and the same WIFI probe detects the real MAC addresses in different waysThe real MAC addresses of the same terminals detected periodically are also the same. For mobile phones of different models, pseudo MAC addresses can also be provided, and the pseudo MAC addresses are not fixed, that is, the pseudo MAC addresses of the same terminal detected by each WIFI probe are different, and the pseudo MAC addresses of the same terminal detected by the same WIFI probe in different detection periods are also different. The distance between one of the WIFI probes PA and one of the terminals UE1 is denoted as dA1,dA1Can be calculated according to the following formula:
dA1=10(A-RSSI)/n
where a represents a signal strength at a distance of one meter, a Received Signal Strength Indication (RSSI), and n represents an attenuation coefficient. Calculating the distance between each WIFI probe and each terminal, and referring to the dA1The calculation process of (2) is not described in detail.
For example, the target region has p WIFI probes and q terminals in total, where p is greater than or equal to 3, q is greater than or equal to 1, for example, q is 2, the two terminals are respectively denoted as UE1 and UE2, if the MAC address to be measured corresponding to UE1 is a real MAC address a1 (no pseudo MAC address exists in UE 1), and the MAC address to be measured corresponding to UE2 is a real MAC address a2 and a pseudo MAC address (different pseudo MAC addresses detected by different WIFI probes are different), the information sent by the WIFI probe PA carries a1, a2, and a21 (the pseudo MAC address detected by the WIFI probe PA is UE 2); dA1、dA2(ii) a The location information XA of the WIFI probe PA, XA may mark that the location information is of the WIFI probe PA. Taking three WIFI probes as an example, the information sent by the WIFI probe PB carries a1, a2, a22 (UE2 pseudo MAC address detected by the WIFI probe PB); dB1、dB2(ii) a Position information XB, XB of WIFI probe PB can mark that this position information is of WIFI probe PB. The information sent by the WIFI probe PC carries A1, A2 and a23 (UE2 pseudo MAC address detected by the WIFI probe PC); dC1、dC2(ii) a The position information XC and XC of the WIFI probe PC can mark that the position information is of the WIFI probe PC.
S102: detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes.
Specifically, the device detects all MAC addresses to be detected, and determines a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes. Referring to the above example, a1 is the same real MAC address detected by the WIFI probe PA, the WIFI probe PB, and the WIFI probe PC, and a2 is the other same real MAC address detected by the WIFI probe PA, the WIFI probe PB, and the WIFI probe PC, so that a1 and a2 are both target MAC addresses, and a21, a22, and a23 are all detected by only one WIFI probe, and therefore are not target MAC addresses. It should be noted that: due to the fact that the pseudo MAC address is not fixed and unchangeable, the pseudo MAC address can be removed through the step, the real MAC address detected by two WIFI probes or one WIFI probe is also removed, and therefore data are cleaned through the step, a large amount of data corresponding to the non-target MAC address are removed, calculation of the subsequent step is not involved, and calculation amount in determining the target information is reduced.
S103: if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
Specifically, if the device judges that the target MAC address is detected by all of at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest candidate distance as target WIFI probes according to the candidate distance between the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in at least four WIFI probes for detecting the target MAC addressAnd (3) a needle. On the basis of the above example, a WIFI probe PD is added, and the information sent by the WIFI probe PD carries a2 (that is, a1 corresponding to the UE1 is not detected by the WIFI probe PD), a24 (the UE2 pseudo MAC address detected by the WIFI probe PD); dD1、dD2(ii) a Position information XD of the WIFI probe PD, and the XD can mark that the position information is that of the WIFI probe PD. Taking UE2 as an example, a2 is detected by all of WIFI probes PA to PD, and therefore, each WIFI probe to be selected corresponding to UE2(UE2 is a target terminal corresponding to a 2) is: WIFI Probe PA ~ WIFI Probe PD. At a candidate distance dA2、dB2、dC2、dD2In the step (d) if the shortest candidate distance isA2、dB2、dC2Then the target distance is dA2、dB2、dC2. The target WIFI probes are WIFI probes PA-PC. The target information is: position information XA and target distance d of WIFI probe PAA2(ii) a Position information XB and target distance d of WIFI probe PBB2(ii) a Position information XC and target distance d of WIFI probe PCC2
According to the method for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the target MAC address is determined by detecting all the MAC addresses to be detected, the target WIFI probe is determined according to the shortest distance principle, and then the target position information and the target distance of each target WIFI probe are determined as the target information, so that the target information can be conveniently determined based on the WIFI probe.
On the basis of the above embodiment, the detecting all MAC addresses to be detected and determining a target MAC address according to a detection result includes:
and acquiring the occurrence frequency of each MAC address to be detected in all the MAC addresses to be detected, and rejecting the MAC addresses to be detected, wherein the occurrence frequency of the MAC addresses to be detected is less than or equal to two times.
Specifically, the device obtains the occurrence frequency of each MAC address to be detected in all MAC addresses to be detected, and eliminates the MAC addresses to be detected with the occurrence frequency less than or equal to two times. Referring to the above example, taking three WIFI probes PA to PC as examples, the occurrence frequency of a21 to a23 is one time, so a21 to a23 are eliminated.
And determining the target MAC address in the remaining MAC addresses to be tested.
Specifically, the device determines the target MAC address among the remaining MAC addresses to be tested.
Referring to the above example, the remaining MAC addresses to be tested are a1 and a2, and are all detected by the WIFI probes PA to PC, and therefore, a1 and a2 are both determined as target MAC addresses.
According to the method for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the MAC address to be detected with the occurrence frequency less than or equal to two times is removed, so that data cleaning is efficiently realized, and the target information can be further conveniently determined based on the WIFI probe.
On the basis of the above embodiment, the determining the target MAC address from the remaining MAC addresses to be tested includes:
and determining the target MAC address in the remaining MAC addresses to be tested by adopting a polling mode.
Specifically, the device determines the target MAC address in the remaining MAC addresses to be tested in a polling manner. The sequencing of the remaining MAC addresses to be detected (which may be according to the detection order of the WIFI probes PA to PC) may be a1 and a2 (the first group corresponds to the WIFI probe PA); a1, a2 (second set, corresponding to WIFI probe PB); a1 and a2 (a third group corresponding to the WIFI probe PC), a1 is found in the first group, whether a1 still exists is sequentially found in other groups, and the number of occurrences of a1 is counted, for example, the number of occurrences of a1 is three for each of the second group and the third group a1, and therefore, it is determined that a1 is the target MAC address, and the description of a2 may refer to a1, which is not described again.
According to the method for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the target MAC address is determined in a polling mode, and the data query process is further optimized, so that the target information can be further conveniently determined based on the WIFI probe.
On the basis of the above embodiment, the method further includes:
and if the target MAC address is judged and found to be detected by all the three WIFI probes, determining the three WIFI probes which detect the target MAC address as the target WIFI probes.
Specifically, if the device judges that the target MAC address is detected by all three WIFI probes, the three WIFI probes that detect the target MAC address are determined to be the target WIFI probes. Referring to the above example, for the UE1, since the a1 is not detected by the WIFI probe PD, the a1 is detected by all of the WIFI probes PA to WIFI probes PC, and since the position coordinates reflecting the position of the customer need to be calculated by a three-point positioning method, this example only has three WIFI probes, and therefore, the distance does not need to be compared, the WIFI probes PA to WIFI probes PC are directly determined as target WIFI probes, and the step of determining the target information based on the distance does not need to be described again with reference to the above description.
According to the method for determining the target information based on the WIFI probe, provided by the embodiment of the invention, for the condition that the target MAC address is detected by all three WIFI probes, the target information can be determined more quickly based on the WIFI probe.
On the basis of the above embodiment, the receiving of the information respectively sent by all WIFI probes in the target area includes receiving information respectively periodically sent by all WIFI probes in the target area; correspondingly, the method further comprises the following steps:
and carrying out synchronization processing on the received periodically transmitted information.
Specifically, the device synchronizes the received periodically transmitted information. On the basis of the information respectively sent by each WIFI probe, each piece of information can also carry the reporting time T sent to the server, and the reporting times T can be recorded as TA-TC for the WIFI probes PA-PC respectively. Because each WIFI probe respectively sends information periodically according to the detection time interval (denoted as tA to tC), tA to tC may be inconsistent, and therefore tA to tC received by the server may also be inconsistent, a threshold TS may be set, so that all WIFI probes will be detected completely within TS seconds, that is, all WIFI probes in the next round are started to detect at every interval of one synchronization processing time interval TS, and the synchronization processing time interval TS may be greater than the maximum detection time interval of tA to tC, and may be selected as 300 seconds.
According to the method for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the received periodically sent information is subjected to synchronous processing, so that the execution synchronism of the method is ensured.
On the basis of the above embodiment, the detecting all MAC addresses to be detected and determining a target MAC address according to a detection result includes:
periodically detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; and the periodic interval for periodically detecting all MAC addresses to be detected is a time interval for synchronous processing.
Specifically, the device periodically detects all MAC addresses to be detected, and determines a target MAC address according to a detection result; and the periodic interval for periodically detecting all MAC addresses to be detected is a time interval for synchronous processing. Referring to the above example, the step of detecting all MAC addresses to be detected once every TS interval and determining the target MAC address according to the detection result is performed. For example, in a time interval TS of a first synchronization process, the received information periodically transmitted by all WIFI probes in the target area is stored in the data table 1, in a time interval TS of a second synchronization process, the information periodically transmitted by all WIFI probes in the target area of a next cycle is received, meanwhile, the data stored in the data table 1 is copied to the data table 2, and in the data table 2, all MAC addresses to be tested in the time interval TS of the first synchronization process are detected, so that the information is periodically received, and all MAC addresses to be tested in the information are detected.
According to the method for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the execution efficiency of the method is further improved on the basis of ensuring the execution synchronism of the method.
On the basis of the above embodiment, the terminal further includes a network device terminal; correspondingly, the detecting all the MAC addresses to be detected and determining the target MAC address according to the detection result includes:
detecting all MAC addresses to be detected by adopting an OUI table; the OUI table prestores preset real MAC addresses corresponding to preset network device terminals.
Specifically, the device adopts an OUI table to detect all MAC addresses to be detected; the OUI table prestores preset real MAC addresses corresponding to preset network device terminals. An organization unique identifier (OUI for short). It should be noted that: all MAC addresses to be tested herein also include MAC addresses of network device terminals, and the network device terminals may include routers and the like, and are not particularly limited. That is, the OUI table stores in advance the correspondence between the preset network device terminal and the preset real MAC address, for example, the router 1 to the preset real MAC address R1, the router 2 to the preset real MAC address R2, and the like.
And if a target MAC address to be detected corresponding to the preset real MAC address is detected, eliminating the target MAC address to be detected, detecting all the residual MAC addresses to be detected, and determining the target MAC address according to the detection result.
Specifically, if the device detects a target MAC address to be detected corresponding to the preset real MAC address, the device rejects the target MAC address to be detected, detects all remaining MAC addresses to be detected, and determines the target MAC address according to the detection result. Examples are as follows: if it is detected that R1 and R2 exist in all the MAC addresses to be tested, since the preset real MAC addresses R1 and R2 correspond to the router 1 and the router 2, respectively, it is recognized that R1 and R2 are the MAC addresses to be tested of the router 1 and the router 2, that is, the MAC addresses to be tested of the routers are determined as the target MAC addresses to be tested, and the target MAC addresses are removed, so that all the remaining MAC addresses to be tested are the MAC addresses to be tested of the user terminal. The description of detecting all MAC addresses to be detected for the user terminal and determining the target MAC address according to the detection result may refer to the above description, and will not be described again.
According to the method for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the target information can be further rapidly determined based on the WIFI probe by removing the MAC address of the network equipment terminal.
Fig. 2 is a schematic structural diagram of an embodiment of the apparatus for determining target information based on a WIFI probe of the present invention, and as shown in fig. 2, an embodiment of the present invention provides an apparatus for determining target information based on a WIFI probe, which includes a receiving unit 201, a first determining unit 202, and a second determining unit 203, where:
the receiving unit 201 is configured to receive information sent by all WIFI probes in a target area respectively; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes; the first determining unit 202 is configured to detect all MAC addresses to be detected, and determine a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes; the second determining unit 203 is configured to determine, according to the candidate distance between the target terminal corresponding to the target MAC address and each of the to-be-selected WIFI probes and the to-be-selected WIFI probe corresponding to the three target distances having the shortest candidate distance, that the to-be-selected WIFI probe is a target WIFI probe, and determine target position information and target distance of each target WIFI probe as target information if it is determined that the target MAC address is detected by all of the at least four WIFI probes; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
Specifically, the receiving unit 201 is configured to receive information sent by all WIFI probes in the target area respectively; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes; the first determining unit 202 is configured to detect all MAC addresses to be detected, and determine a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes; the second determining unit 203 is configured to determine, according to the candidate distance between the target terminal corresponding to the target MAC address and each of the to-be-selected WIFI probes and the to-be-selected WIFI probe corresponding to the three target distances having the shortest candidate distance, that the to-be-selected WIFI probe is a target WIFI probe, and determine target position information and target distance of each target WIFI probe as target information if it is determined that the target MAC address is detected by all of the at least four WIFI probes; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
According to the device for determining the target information based on the WIFI probe, provided by the embodiment of the invention, the target MAC address is determined by detecting all the MAC addresses to be detected, the target WIFI probe is determined according to the shortest distance principle, and then the target position information and the target distance of each target WIFI probe are determined as the target information, so that the target information can be conveniently determined based on the WIFI probe.
The device for determining target information based on the WIFI probe provided by the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the device are not described herein again, and reference may be made to the detailed description of the above method embodiments.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device includes: a processor (processor)301, a memory (memory)302, and a bus 303;
the processor 301 and the memory 302 complete communication with each other through a bus 303;
the processor 301 is configured to call program instructions in the memory 302 to perform the methods provided by the above-mentioned method embodiments, including: receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes; detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes; if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes; detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes; if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes; detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes; if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in the at least four WIFI probes and the target MAC address is detected.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for determining target information based on a WIFI probe is characterized by comprising the following steps:
receiving information respectively sent by all WIFI probes in a target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes;
detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; the target MAC address is the same real MAC address detected by all the at least three WIFI probes;
if the target MAC address is judged and found to be detected by all the at least four WIFI probes, determining the WIFI probes to be selected corresponding to the three target distances with the shortest distance to be selected as target WIFI probes according to the distance to be selected of the target terminal corresponding to the target MAC address and each WIFI probe to be selected, and determining the target position information and the target distance of each target WIFI probe as target information; the WIFI probe to be selected is each WIFI probe in at least four WIFI probes when the target MAC address is detected;
the detecting all the MAC addresses to be detected and determining the target MAC address according to the detection result comprises the following steps:
acquiring the occurrence frequency of each MAC address to be detected in all MAC addresses to be detected, and rejecting the MAC addresses to be detected, the occurrence frequency of which is less than or equal to two times;
and determining the target MAC address in the remaining MAC addresses to be tested.
2. The method of claim 1, wherein the determining the target MAC address among the remaining MAC addresses to be tested comprises:
and determining the target MAC address in the remaining MAC addresses to be tested by adopting a polling mode.
3. The WIFI probe-based method of determining target information of claim 1, the method further comprising:
and if the target MAC address is judged and found to be detected by all the three WIFI probes, determining the three WIFI probes which detect the target MAC address as the target WIFI probes.
4. The method for determining target information based on the WIFI probe according to any one of claims 1 to 3, wherein the receiving information respectively transmitted by all the WIFI probes in the target area comprises receiving information respectively periodically transmitted by all the WIFI probes in the target area; correspondingly, the method further comprises the following steps:
and carrying out synchronization processing on the received periodically transmitted information.
5. The method for determining target information based on the WIFI probe according to claim 4, wherein the detecting all the MAC addresses to be detected and determining the target MAC address according to the detection result comprises:
periodically detecting all MAC addresses to be detected, and determining a target MAC address according to a detection result; and the periodic interval for periodically detecting all MAC addresses to be detected is a time interval for synchronous processing.
6. The WIFI probe-based method for determining the target information according to any one of claims 1 to 3, wherein the terminal further comprises a network device terminal; correspondingly, the detecting all the MAC addresses to be detected and determining the target MAC address according to the detection result includes:
detecting all MAC addresses to be detected by adopting an OUI table; the OUI table is prestored with a preset real MAC address corresponding to a preset network equipment terminal;
and if a target MAC address to be detected corresponding to the preset real MAC address is detected, eliminating the target MAC address to be detected, detecting all the residual MAC addresses to be detected, and determining the target MAC address according to the detection result.
7. An apparatus for determining target information based on a WIFI probe, comprising:
the receiving unit is used for receiving information respectively sent by all WIFI probes in the target area; each piece of information carries the MAC address to be detected corresponding to each terminal, the distance between each terminal and each MAC address to be detected, and the position information of each terminal, which are detected by each WIFI probe; the target area comprises at least three WIFI probes;
the first determining unit is used for detecting all MAC addresses to be detected and determining target MAC addresses according to detection results; the target MAC address is the same real MAC address detected by all the at least three WIFI probes;
the second determining unit is used for determining, according to the distance to be selected between the target terminal corresponding to the target MAC address and each WIFI probe to be selected, the WIFI probe to be selected corresponding to the three target distances with the shortest distance to be selected as the target WIFI probe, and determining target position information and target distance of each target WIFI probe as target information if the target MAC address is judged to be detected by all the at least four WIFI probes; the WIFI probe to be selected is each WIFI probe in at least four WIFI probes when the target MAC address is detected;
the first determining unit is specifically configured to:
acquiring the occurrence frequency of each MAC address to be detected in all MAC addresses to be detected, and rejecting the MAC addresses to be detected, the occurrence frequency of which is less than or equal to two times;
and determining the target MAC address in the remaining MAC addresses to be tested.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the computer program is executed by the processor.
9. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910712660.5A 2019-08-02 2019-08-02 Method and device for determining target information based on WIFI probe Active CN110446157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910712660.5A CN110446157B (en) 2019-08-02 2019-08-02 Method and device for determining target information based on WIFI probe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910712660.5A CN110446157B (en) 2019-08-02 2019-08-02 Method and device for determining target information based on WIFI probe

Publications (2)

Publication Number Publication Date
CN110446157A CN110446157A (en) 2019-11-12
CN110446157B true CN110446157B (en) 2021-02-19

Family

ID=68433065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910712660.5A Active CN110446157B (en) 2019-08-02 2019-08-02 Method and device for determining target information based on WIFI probe

Country Status (1)

Country Link
CN (1) CN110446157B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109360373A (en) * 2018-11-13 2019-02-19 四创科技有限公司 Reservoir based on WIFI positioning discharges water personnel's method for early warning

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9679171B2 (en) * 2014-12-19 2017-06-13 Fortinet, Inc. Securing internet of things (IOT) RF (radio frequency) location tags using source addresses to locate stations on a Wi-Fi network
CN106658586B (en) * 2016-12-05 2019-12-06 任子行网络技术股份有限公司 Method for collecting MAC address of iOS device
CN107103569A (en) * 2017-04-28 2017-08-29 深圳市前海安测信息技术有限公司 Endowment management system and method based on positioning
CN107623754B (en) * 2017-09-28 2020-07-10 武汉虹旭信息技术有限责任公司 WiFi acquisition system and method based on authenticity MAC identification
CN108012309A (en) * 2017-11-28 2018-05-08 北京锐安科技有限公司 People flow rate statistical method, apparatus and system based on WiFi
CN109215285A (en) * 2018-11-15 2019-01-15 王悦廷 The intelligent fire-pretection system and method for fire behavior monitoring and rescue run based on WiFi probe

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109360373A (en) * 2018-11-13 2019-02-19 四创科技有限公司 Reservoir based on WIFI positioning discharges water personnel's method for early warning

Also Published As

Publication number Publication date
CN110446157A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
WO2017113527A1 (en) Method and device for switching virtual sim card, and terminal
US9041786B2 (en) Monitoring system and monitoring terminal
CN104780316B (en) A kind of camera starts detection method and camera starts detection means
CN107447442A (en) A kind of alarm method and smart machine based on image recognition technology
CN110708696B (en) Network data recovery method and device, storage medium and electronic equipment
EP3188371A1 (en) Anti-lost prompting method and anti-theft device
CN105307284B (en) A kind of accidental access method and user equipment
CN106572152A (en) Message reminding method and message reminding apparatus
WO2018103402A1 (en) Wireless fidelity (wifi) scan method and related product
WO2016192357A1 (en) Method and system for terminal device pairing connection
CN109152005A (en) A kind of uplink beam indicating means, UE, base station and storage medium
US20160312393A1 (en) Control method for washing machine, washing machine
CN111641619B (en) Method and device for constructing hacker portrait based on big data and computer equipment
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN110446157B (en) Method and device for determining target information based on WIFI probe
CN103957514B (en) Prompt the method and device of user
CN108197958B (en) Method and device for counting off-line cattle and storage medium
CA3129986A1 (en) Network testing method and device
CN104883705A (en) Problem positioning method for data service complaints and device thereof
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN104754601B (en) A kind of concealed nodes detection method, network node and server
CN109729159B (en) Method and device for reminding loss of network equipment
CN107682909B (en) Control method and device for connecting access point
CN107920386B (en) Sparse point positioning method, server, system and computer readable storage medium
US9715811B2 (en) Electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant