CN107318090B - A kind of method and device carrying out traffic statistics based on MAC Address - Google Patents

A kind of method and device carrying out traffic statistics based on MAC Address Download PDF

Info

Publication number
CN107318090B
CN107318090B CN201710447608.2A CN201710447608A CN107318090B CN 107318090 B CN107318090 B CN 107318090B CN 201710447608 A CN201710447608 A CN 201710447608A CN 107318090 B CN107318090 B CN 107318090B
Authority
CN
China
Prior art keywords
terminal
period
getting
bus
station
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
CN201710447608.2A
Other languages
Chinese (zh)
Other versions
CN107318090A (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 Telescope Media Co Ltd
Original Assignee
Beijing Telescope Media 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 Telescope Media Co Ltd filed Critical Beijing Telescope Media Co Ltd
Priority to CN201710447608.2A priority Critical patent/CN107318090B/en
Publication of CN107318090A publication Critical patent/CN107318090A/en
Application granted granted Critical
Publication of CN107318090B publication Critical patent/CN107318090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of method and devices that traffic statistics are carried out based on MAC Address.Wherein, this method comprises: obtaining multiple connection handshake requests that terminal is sent to multiple wireless access points respectively, connection handshake request includes the MAC Address of terminal;Determine that range information, range information include terminal and different the distance between wireless access points according to the signal strength of connection handshake request respectively;The location information that terminal is presently in is determined according to range information, and the flow of the people at position corresponding with location information is counted according to location information.This method can very easily count the flow of user corresponding with terminal using the location information of terminal, and this method can save manpower, and the variation that can be measured with express statistic major pedestrian movement, people flow rate statistical are high-efficient.

Description

A kind of method and device carrying out traffic statistics based on MAC Address
Technical field
The present invention relates to field of communication technology more particularly to a kind of methods and dress that traffic statistics are carried out based on MAC Address It sets.
Background technique
The development of mobile Internet and popularizing for mobile intelligent terminal, promote the construction of wireless city.The volume of the flow of passengers is quotient Significant consideration in industry analysis, the especially volume of the flow of passengers in the short time have weight to business choice, crowd's guiding, logistics support Want meaning.Short-term prediction has the non-linear and uncertain of height, and at the same time intersexuality is stronger.In addition, public for opening The volume of the flow of passengers of occasion is of great significance in security and order management aspect.In addition, people often selected in festivals or holidays etc. Between concentrate trip tourism etc., therefore usually will appear the full situation of flow of the people in scenic spot, railway station, bus station, market etc., this Big inconvenience is brought to the trip of people.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Existing Pedestrian flow detection is to need (such as to take the photograph monitoring device based on echelette or portrait image identification method As head etc.) it is mounted on entrance.And opening public arena outdoors can only have fixed monitoring device region to look into It sees simultaneously statistical number of person, or is estimated by patrol, do not have any monitoring device.In addition, existing intelligence passenger flow statistical system base Passenger flow data is carried out in conjunction with artificial intelligence and mode identification technology real in video identification technology by the method for motion detection When analysis handle, programming count pass in and out passenger flow number.Existing statistical is time-consuming and laborious, inefficiency and statistical result is inaccurate.
Summary of the invention
The embodiment of the present invention provides a kind of method and device that traffic statistics are carried out based on MAC Address, existing for solving The technical issues of people flow rate statistical method inefficiency.
A kind of method that traffic statistics are carried out based on MAC Address provided in an embodiment of the present invention, comprising the following steps:
Multiple connection handshake requests that terminal is sent to multiple wireless access points respectively are obtained, handshake request packet is connected Include the MAC Address of terminal;
Determine that range information, range information include terminal and different nothings according to the signal strength of connection handshake request respectively The distance between line access points;
The location information that terminal is presently in is determined according to range information, and according to location information statistics and location information phase Flow of the people at corresponding position.
In one possible implementation, location information that terminal is presently in is determined according to range information, comprising:
The first circle, the second round and third circle are determined respectively, and the first circle is with the position coordinates of the first wireless access points It is the circle that radius determines for the distance between origin, terminal and first wireless access points, the second circle is with the second wireless visit It is the circle that radius determines that the position coordinates for asking access point, which are the distance between origin, terminal and second wireless access points, the Three circles is using the position coordinates of third wireless access points as the distance between origin, terminal and third wireless access points The circle determined for radius;
Determine the first circle and the first coordinate points nearest apart from third wireless access points in all intersection points of the second circle, It determines the second coordinate points that the second wireless access points of distance are nearest in first round all intersection points with third circle, determines second The nearest third coordinate points of the first wireless access points of distance in round all intersection points with third circle;
The position coordinates of terminal are determined according to the first coordinate points, the second coordinate points and third coordinate points:
Wherein, x, y are respectively the abscissa and ordinate of the position coordinates of terminal;xab,yabRespectively the first coordinate points Abscissa and ordinate;xac,yacThe abscissa and ordinate of respectively the second coordinate points;xbc,ybcRespectively third coordinate points Abscissa and ordinate.
In one possible implementation, the stream of people at position corresponding with location information is counted according to location information Amount, comprising:
It determines that terminal enters the time Tx1 of platform range and leaves the time Txn of platform range, is set according to platform range Set the range determining in the wireless access points of platform;
Acquire that i-th train enters the time Tti of platform range and train leaves the corresponding time Tli of platform range, Period between Tti and Tli is Ti, wherein i=1,2 ..., n, n is the train total quantity in preset time period by platform;
According to Tx1, Txn, Tti and Tli determine in period Ti terminal terminal class: when Tti≤Tx1, Txn≤ Tli and when Txn-Tx1>=α (Tli-Tti), terminal are terminal of missing the stop, and α is constant, and 0<α≤1;As Tti≤Tx1≤Tli and When Tli < Txn, determine that terminal is get off terminal or the terminal that enters the station;As Tli-1≤Tx1 < Tti, determine that terminal is the terminal that enters the station; As Tx1 < Tti and Tti≤Txn≤Tli, determine that terminal is get on the bus terminal or outbound terminal;As Tli < Txn≤Tti+1, really Determining terminal is outbound terminal;
The terminal class of all terminals is counted, determines the quantity Pxi for terminal of getting off in period Ti and terminal of getting on the bus Quantity Psi;
It determines total flow of the people Pi=Pxi+Psi of the platform in period Ti, and determines total stream of people in preset time period Amount
In one possible implementation, the quantity Pxi for terminal of getting off in period Ti and terminal of getting on the bus are determined Quantity Psi, comprising:
Determine the quantity for being converted into terminal of getting on the bus in period Tj for the terminal for the terminal that enters the station in period Ti Pasij, wherein i≤j≤n;The terminal quantity that enters the station in period Ti
Determine the terminal quantity Pxi=Pxai-Pai that gets off in period Ti, wherein Pxai be in period Ti under The sum of the quantity of vehicle terminal and the terminal that enters the station;And determine terminal quantity of getting on the bus in period TiPaski is Terminal in period Tk for the terminal that enters the station is converted into the quantity for terminal of getting on the bus in period Ti.
In one possible implementation, the quantity Pxi for terminal of getting off in period Ti and terminal of getting on the bus are determined Quantity Psi, comprising:
The historical information of the location information of record terminal and the temporal information out of the station of train is obtained, it is true according to historical information Be scheduled on the terminal class of all terminals in historical time section Ti ', terminal class include miss the stop terminal, terminal of getting off, the terminal that enters the station, Terminal of getting on the bus and outbound terminal;
It determines and is converted into terminal of getting on the bus in historical time section Tj ' for the terminal for the terminal that enters the station in historical time section Ti ' Quantity Pasij ', wherein i≤j≤n;The terminal quantity that enters the station in historical time section Ti '
Determine the terminal quantity Pxi'=Pxai'-Pai' that gets off in historical time section Ti ', wherein Pxai ' is to go through The sum of the quantity of terminal of getting off in history period Ti ' and the terminal that enters the station;And determine terminal quantity of getting on the bus in historical time section Ti 'Paski ' is terminal conversion in historical time section Ti ' in historical time section Tk ' for the terminal that enters the station For the quantity for terminal of getting on the bus;
Determine the accounting for terminal quantity of getting off in historical time section Ti 'And it determines in historical time section The accounting of the interior terminal quantity of getting on the bus of Ti 'Wherein Psbi ' is to get on the bus terminal and outbound end in historical time section Ti ' The sum of the quantity at end;
Determine the quantity Pxi=ui × Pxai of terminal of getting off in period Ti, wherein Pxai be in period Ti under The sum of the quantity of vehicle terminal and the terminal that enters the station;And determine the terminal quantity Psi=vi × Psbi that gets on the bus in period Ti, wherein Psbi is get on the bus in period Ti the sum of terminal and the quantity of outbound terminal.
The embodiment of the present invention also provides a kind of device that traffic statistics are carried out based on MAC Address, comprising:
Module is obtained, the multiple connection handshake requests sent respectively to multiple wireless access points for obtaining terminal, Connection handshake request includes the MAC Address of terminal;
Apart from determining module, for determining range information, range information according to the signal strength of connection handshake request respectively Including terminal and different the distance between wireless access points;
Statistical module for determining location information that terminal is presently according to range information, and is united according to location information Count the flow of the people at position corresponding with location information.
In one possible implementation, statistical module includes:
Round determination unit, for determining the first circle, the second round and third circle respectively, the first circle is to be connect with the first accessing wirelessly The position coordinates of access point are that the distance between origin, terminal and first wireless access points are the circle that radius determines, the second circle To be the distance between origin, terminal and second wireless access points for half using the position coordinates of the second wireless access points The circle that diameter determines, third circle are to connect by origin, terminal and third accessing wirelessly of the position coordinates of third wireless access points The distance between access point is the circle that radius determines;
Intersection point determination unit, for determining in the first circle and second round all intersection points apart from third wireless access points The first nearest coordinate points, determine the second wireless access points of distance in first round all intersection points with third circle it is nearest the Two coordinate points determine the third coordinate that the first wireless access points of distance are nearest in second round all intersection points with third circle Point;
End coordinates determination unit, for determining terminal according to the first coordinate points, the second coordinate points and third coordinate points Position coordinates:
Wherein, x, y are respectively the abscissa and ordinate of the position coordinates of terminal;xab,yabRespectively the first coordinate points Abscissa and ordinate;xac,yacThe abscissa and ordinate of respectively the second coordinate points;xbc,ybcRespectively third coordinate points Abscissa and ordinate.
In one possible implementation, statistical module includes:
Determination unit the time Tx1 of platform range and leaves the time Txn of platform range for determining that terminal enters, stands Platform range is the range determined according to the wireless access points that platform is arranged in;
Acquisition unit, for acquiring, i-th train enters the time Tti of platform range and train leaves platform range Corresponding time Tli, the period between Tti and Tli are Ti, wherein i=1,2 ..., n, n is in preset time period through missing the stop The train total quantity of platform;
Judging unit, for determining the terminal class of the terminal in period Ti according to Tx1, Txn, Tti and Tli: working as Tti ≤ Tx1, Txn≤Tli and when Txn-Tx1>=α (Tli-Tti), terminal are terminal of missing the stop, and α is constant, and 0<α≤1;When Tti≤ Tx1≤Tli and when Tli < Txn, determines that terminal is get off terminal or the terminal that enters the station;As Tli-1≤Tx1 < Tti, terminal is determined For the terminal that enters the station;As Tx1 < Tti and Tti≤Txn≤Tli, determine that terminal is get on the bus terminal or outbound terminal;As Tli < Txn When≤Tti+1, determine that terminal is outbound terminal;
Statistic unit determines the quantity Pxi for terminal of getting off in period Ti for counting the terminal class of all terminals With the quantity Psi for terminal of getting on the bus;
Processing unit for determining total flow of the people Pi=Pxi+Psi of the platform in period Ti, and determines preset time Total flow of the people in section
In one possible implementation, statistic unit includes:
Transforming subunit is got on the bus for determining that the terminal in period Ti for the terminal that enters the station is converted into period Tj The quantity Pasij of terminal, wherein i≤j≤n;The terminal quantity that enters the station in period Ti
Subelement is counted, for determining the terminal quantity Pxi=Pxai-Pai that gets off in period Ti, wherein Pxai For the sum of the quantity of get off in period Ti terminal and the terminal that enters the station;And determine terminal quantity of getting on the bus in period TiPaski is that the terminal in period Tk for the terminal that enters the station is converted into terminal of getting on the bus in period Ti Quantity.
In one possible implementation, statistic unit includes:
Subelement is obtained, for obtaining the history letter of the location information of record terminal and the temporal information out of the station of train Breath, according to historical information determine in historical time section Ti ' all terminals terminal class, terminal class include miss the stop terminal, It gets off terminal, the terminal that enters the station, terminal of getting on the bus and outbound terminal;
Transforming subunit, for determining the terminal in historical time section Ti ' for the terminal that enters the station in historical time section Tj ' It is converted into the quantity Pasij ' for terminal of getting on the bus, wherein i≤j≤n;The terminal quantity that enters the station in historical time section Ti '
First statistics subelement, for determining the terminal quantity Pxi'=Pxai'- that gets off in historical time section Ti ' Pai', wherein Pxai ' is the sum of the quantity in historical time section Ti ' interior get off terminal and the terminal that enters the station;And it determines in history Between get on the bus in section Ti ' terminal quantityPaski ' is in historical time section Tk ' for the terminal for the terminal that enters the station The quantity for terminal of getting on the bus is converted into historical time section Ti ';
Subelement is handled, for determining the accounting for terminal quantity of getting off in historical time section Ti 'And really It is scheduled on the accounting for terminal quantity of getting on the bus in historical time section Ti 'Wherein Psbi ' is on historical time section Ti ' is interior The sum of vehicle terminal and the quantity of outbound terminal;
Second statistics subelement, for determining the quantity Pxi=ui × Pxai for terminal of getting off in period Ti, wherein Pxai is get off in period Ti terminal and the sum of the quantity of terminal of entering the station;And determine terminal quantity of getting on the bus in period Ti Psi=vi × Psbi, wherein Psbi is get on the bus in period Ti the sum of terminal and the quantity of outbound terminal.
A kind of method and device carrying out traffic statistics based on MAC Address provided in an embodiment of the present invention, according to terminal MAC Address determines the location information of terminal, so that also may be implemented to be accurately positioned indoors;Meanwhile being believed using the position of terminal Breath can very easily count the flow of user corresponding with terminal, and this method can save manpower, and can quickly unite The variation of major pedestrian movement's amount is counted, people flow rate statistical is high-efficient.It can be further improved WiFi positioning by way of center coordination Accuracy.By determining that the terminal that enters the station within the scope of platform is converted in different time sections the quantity for terminal of getting on the bus, so as to It conveniently accurately determines the quantity for terminal of getting off in current slot and the quantity for terminal of getting on the bus, and then facilitates the statistics platform stream of people Amount.It is got off terminal and the quantity of terminal of getting on the bus according to the estimation of history accounting, can quickly determine to get off in real time and terminal and get on the bus The quantity of terminal, and then can be with real-time statistics platform flow of the people.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram for carrying out traffic statistics in the embodiment of the present invention based on MAC Address;
Fig. 2 is the first schematic diagram that center coordination is determined in the embodiment of the present invention;
Fig. 3 is the second schematic diagram that center coordination is determined in the embodiment of the present invention;
Fig. 4 is the structure chart for carrying out the device of traffic statistics in the embodiment of the present invention based on MAC Address.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Referring to Fig. 1, it is provided in an embodiment of the present invention it is a kind of based on MAC Address carry out traffic statistics method process such as Under, specifically include step 101-103:
Step 101: obtaining multiple connection handshake requests that terminal is sent to multiple wireless access points respectively, connection is held Hand request includes the MAC Address of terminal.
After any one network equipment is once produced, MAC Address is forever unique and cannot be changed by user, because And the MAC Address for the mobile terminal that can possess function of surfing the Net according to one uniquely determines a user.And terminal passes through net Network issue request or send information when, MAC Address as end message can be placed in data packet header on data link level into Row transmission identification, to be different from other network-termination devices.Therefore, for opening the mobile terminal of Wi-Fi connection, MAC Location information acquisition device (i.e. Wi-Fi Monitors) can collect and survey the information of terminal transmission, to obtain the ID of mobile terminal (MAC Address).Specifically, nearby whether there is or not can issue probe when available WiFi network for mobile terminal detection in the embodiment of the present invention The connection handshake request of data packet form, MAC Address collector can analyze terminal according to the head of the probe data packet MAC Address.Wherein, MAC Address collector is specifically as follows wireless access points, by wireless access points (AP, WirelessAccess Point) the connection handshake request that sends of acquisition terminal, and then it can according to the connection handshake request Determine the MAC Address of terminal.
Step 102: range information is determined according to the signal strength of connection handshake request respectively, range information include terminal with The distance between different wireless access points.
GPS positioning mode may be implemented to position in spacious or less obstruction place, but indoor positioning that there are precision is low, The big disadvantage of power consumption.In the embodiment of the present invention, due to needing in analysis room the flow of the people (in such as market, in subway), therefore Terminal is positioned by the way of Wifi positioning.Since the location information of AP is determining, therefore AP detection terminal transmission signal Power, the power of networking AP also available signal positions mobile terminal, and the more positioning of AP are more accurate.
But the request frequency that under normal circumstances, terminal issues is too low or intensity is inadequate, so that MAC Address collector is difficult to Capture or collected the connection handshake request.Since collection process is hardware based reception and processing, it is difficult in the level It breaks through, thus the frequency and the probability that send probe data packet in the embodiment of the present invention by improving mobile phone terminal obtain to improve Connect the probability of handshake request.
It is asked specifically, shaking hands respectively to multiple connections that multiple wireless access points are sent in step 101 acquisition terminal Before asking, this method further include: setting emulation wireless access points, emulation wireless access points are for simulating public wireless Net simultaneously Broadcast SSIDs.
SSID (Service Set Identifier, the services set of the public Wi-Fi of some hot topics are imitated with emulation AP Mark), stimulation mobile terminal issues connection handshake request, is simultaneously emitted by probe data packet, simultaneously by the acquisition of MAC Address collector It collects.Alternatively, launching MAC Address collector there is the place for hiding Wi-Fi, actively being connected using terminal device and hiding Wi- Fi, the movement that the information of the packings such as MAC Address is broadcasted and awaited a response in the range of it can be broadcast to obtain the terminal and set Standby MAC Address.
Step 103: the location information that terminal is presently in being determined according to range information, and according to location information statistics and position Flow of the people at the corresponding position of confidence manner of breathing.
In the embodiment of the present invention, it can determine whether terminal is according to the location information of terminal and need to count place In scope of statistics, and determine the flow of the people at this.Such as need to count the flow of the people in market, at this time according to the AP for being set to market It can determine market range, when the location information according to terminal determines that terminal enters within the scope of market outside the range of market, It can determine that this terminal is inbound traffics;Opposite, when terminal enters outside the range of market out of market, it can determine this Terminal is outflow.
A kind of method that traffic statistics are carried out based on MAC Address provided in an embodiment of the present invention, according to the MAC Address of terminal The location information of terminal is determined, so that also may be implemented to be accurately positioned indoors;Meanwhile it can using the location information of terminal The flow of user corresponding with terminal is very easily counted, this method can save manpower, and can be with a large amount of people of express statistic The variation of flow, people flow rate statistical are high-efficient.
Another embodiment of the present invention provides a kind of methods for carrying out traffic statistics based on MAC Address comprising shown in Fig. 1 Step 101-103, and it implements process and technical effect embodiment shown in Figure 1;Meanwhile implementing in the present invention In example, the location information that terminal is presently in, including step A1-A3 are determined according to range information:
Step A1: the first circle, the second round and third circle are determined respectively, the first circle is with the position of the first wireless access points Setting coordinate is the circle that the distance between origin, terminal and first wireless access points are radius determination, and the second circle is with second The position coordinates of wireless access points are that the distance between origin, terminal and second wireless access points are what radius determined Circle, third circle for using the position coordinates of third wireless access points between origin, terminal and third wireless access points Distance be radius determine circle.
In the embodiment of the present invention, at least three wireless access points, (i.e. the first wireless access points, second are wirelessly Access points and third wireless access points) terminal is positioned, and the position of three wireless access points is sat It marks not conllinear.Specifically, three accessing wirelesslies connect after terminal sends connection handshake request to three wireless access points respectively Access point can determine the distance between terminal and corresponding wireless access points according to the signal strength of connection handshake request. It can be later origin, between corresponding terminal and wireless access points by the position coordinates of wireless access points Distance be that radius work is justified, and then determines above-mentioned first circle, the second round and third circle respectively.Three round schematic diagrames are referring to figure Shown in 2 and Fig. 3;In Fig. 2, three circles intersect two-by-two and three circles also common intersections;In Fig. 3, three circles are only two-by-two Intersection.It should be noted that be also possible to three circles meet at it is unique a bit, this point can directly as the position coordinates of terminal, But due to the presence of measurement error, such case is difficult to exist;In addition, when three circles mutually disjoint or only intersect there are two round When, illustrate that measurement error is excessive, is also not considered at this time.
Specifically, 3 points of ABC respectively indicate the first wireless access points, the second wireless visit shown in referring to figs. 2 and 3 Ask the position of access point and third wireless access points, and x1、y1Respectively indicate the position coordinates of the first wireless access points Abscissa and ordinate, x2、y2Respectively indicate the abscissa and ordinate of the position coordinates of the second wireless access points, x3、 y3Respectively indicate the abscissa and ordinate of the position coordinates of third wireless access points.d1、d2、d3Respectively indicate terminal with The distance between the distance between first wireless access points A, terminal and second wireless access points B, terminal and third The distance between wireless access points C.
Step A2: determine the first circle in all intersection points of the second circle apart from third wireless access points it is nearest first Coordinate points determine the second coordinate points that the second wireless access points of distance are nearest in first round all intersection points with third circle, Determine the third coordinate points that the first wireless access points of distance are nearest in second round all intersection points with third circle.
In the embodiment of the present invention, three round geometric expression formulas are indicated respectively with following formulas (1), formula (2) and formula (3):
(x-x1)2+(y-y1)2=d1 2 (1)
(x-x2)2+(y-y2)2=d2 2 (2)
(x-x3)2+(y-y3)2=d3 2 (3)
Later, two intersection points of the first circle with the second circle can be determined according to formula (1) and formula (2), and then determine distance The first third wireless access points C nearest coordinate points D (xab,yab);Similarly, can be determined according to formula (1) and formula (3) The second the second wireless access points of distance B nearest coordinate points E (x in one round two intersection points with third circleac,yac), according to Formula (2) and formula (3) can determine nearest the of the first wireless access points of distance A in second round two intersection points with third circle Three coordinate points F (xbc,ybc)。
Step A3: the position coordinates of terminal are determined according to the first coordinate points, the second coordinate points and third coordinate points:
Wherein, x, y are respectively the abscissa and ordinate of the position coordinates of terminal;xab,yabRespectively the first coordinate points Abscissa and ordinate;xac,yacThe abscissa and ordinate of respectively the second coordinate points;xbc,ybcRespectively third coordinate points Abscissa and ordinate.
It, can be according to matter after determining the first coordinate points, the second coordinate points and third coordinate points in the embodiment of the present invention The method of heart positioning determines the mass center of three coordinate points, i.e., (x, y).It can be further improved WiFi by way of center coordination The accuracy of positioning.
Another embodiment of the present invention provides a kind of methods for carrying out traffic statistics based on MAC Address comprising shown in Fig. 1 Step 101-103, and it implements process and technical effect embodiment shown in Figure 1;Meanwhile implementing in the present invention In example, the method for statistically iron man's flow is also provided.Since the traffic statistics of subway personnel are more complicated, therefore the embodiment of the present invention In simplify the scene of subway flow of the people, specifically, it is assumed that 1. all pedestrians only have a mobile phone;2. all mobile phones exist MAC Address can be collected in collector coverage area;3. all pedestrians into subway station can ride;4. all seatings Subway can leave subway station per capita;5. the passenger for entering subway simultaneously with train can miss this and plow iron, the passenger just to have got off Subway station is not walked out before subway sails out of.
Specifically, step 103 " counting the flow of the people at position corresponding with location information according to location information " is specific Including step B1-B5:
Step B1: determine that terminal enters the time Tx1 of platform range and leaves the time Txn of platform range, platform range For the range determined according to the wireless access points that platform is arranged in.
In the embodiment of the present invention, MAC Address collector acquires a subway station pedestrian MAC every preset time (such as 0.1s) Address, capture range cover entire subway station, and capture range is the platform range in step B1.For wherein some pedestrian institute The terminal x possessed, the MAC Address collector being arranged within the scope of platform collect the time be respectively Tx1, Tx2, Tx3 ..., Txn, wherein Tx1 is the time for being collected into MAC Address earliest, i.e. the terminal time Tx1 that enters platform range;Txn For the time for being collected into MAC Address the latest, that is, leave the time of platform range;Then stop of the terminal x within the scope of subway platform Time is Tx=Txn-Tx1.
Step B2: i-th train of acquisition enter the time Tti of platform range and train to leave platform range corresponding Time Tli, period between Tti and Tli are Ti, wherein i=1,2 ..., n, n is the column in preset time period by platform Vehicle total quantity.
In the embodiment of the present invention, there is n train to enter platform range, and train within a preset period of time (such as in one day) Time into platform range be respectively Tt1, Tt2, Tt3 ..., Ttn, train sail out of platform range time be respectively Tl1, Tl2, Tl3 ..., Tln, then residence time of the train within the scope of platform is respectively Tl1-Tt1, Tl2-Tt2, Tl3- Tt3,……,Tln-Ttn.Wherein, the n in the embodiment of the present invention is the train total quantity in preset time period by platform, The terminal for being not used to limit above-mentioned acquisition is in quantity within the scope of platform, that is, is not used to limit Txn.Meanwhile Tti with Period between Tli is Ti, wherein i=1,2 ..., n, i.e., i-th train is located within the scope of platform in period Ti.
Step B3: according to Tx1, Txn, Tti and Tli determine in period Ti associated terminal terminal class: when Tti≤ Tx1, Txn≤Tli and when Txn-Tx1>=α (Tli-Tti), terminal are terminal of missing the stop, and α is constant, and 0<α≤1;When Tti≤ Tx1≤Tli and when Tli < Txn, determines that terminal is get off terminal or the terminal that enters the station;As Tli-1≤Tx1 < Tti, terminal is determined For the terminal that enters the station;As Tx1 < Tti and Tti≤Txn≤Tli, determine that terminal is get on the bus terminal or outbound terminal;As Tli < Txn When≤Tti+1, determine that terminal is outbound terminal.
In the embodiment of the present invention, terminal class is fallen into 5 types, that is, terminal of missing the stop, the terminal that enters the station, is got on the bus end at terminal of getting off End and outbound terminal.Specifically, illustrating the passenger almost as Tti≤Tx1, Txn≤Tli and Txn-Tx1 >=α (Tli-Tti) While and train in/out station, it can determine that terminal x is passenger always ON TRAINS at this time, that is, miss the stop passenger, corresponding end End is terminal of missing the stop.Wherein, α is preset constant, and 0 < α≤1 is specifically as follows 0.8,0.9 or 0.95 etc., with guarantee should Terminal almost simultaneously and train in/out station.
As Tti≤Tx1≤Tli and Tli < Txn, i.e., passenger is entered the station in period Ti, and later sometime Leaving from station, which may be the passenger that gets off;Simultaneously as assuming that the passenger for entering subway station simultaneously with train can miss this and plow Iron, therefore can determine that the passenger may also be passenger of entering the station.That is, terminal is get off terminal (Px) or the terminal that enters the station (Pa).In addition, As Tli-1≤Tx1 < Tti, determine terminal be enter the station terminal, although the terminal that enters the station at this time be not in period Ti into It stands, but still will meet Tli-1≤Tx1 < Tti terminal as the terminal that enters the station in period Ti for convenience of description.
As Tx1 < Tti and Tti≤Txn≤Tli, i.e., passenger is entered the station before period Ti, and in period Ti from It stands, which may be the passenger that gets on the bus;Simultaneously as assume that the passenger just to have got off does not walk out subway station before subway sails out of, therefore The passenger is also possible to be outbound passenger.That is, terminal at this time is get on the bus terminal (Ps) or outbound terminal (Pb).When Tli < Txn≤ When Tti+1, determine terminal be outbound terminal, similarly, for the convenience of description, will meet Tli < Txn≤Tti+1 terminal as Outbound terminal in period Ti.Wherein, Tli-1 is the time that the corresponding train of period Ti-1 leaves platform range;Tti + 1 enters the time of platform range for the corresponding train of period Ti+1.That is, standing in Tli-1 to Tti, Tli to Tti+1 Without train within the scope of platform.
Step B4: counting the terminal class of all terminals, determines the quantity Pxi for terminal of getting off in period Ti and gets on the bus The quantity Psi of terminal.
In the embodiment of the present invention, determine respectively n period (quantity of the terminal Px that gets off in T1 to Tn) with get on the bus end Hold the quantity of Ps, it can determine the flow of the people of the train within some period.
In one possible implementation, by determining that the terminal conversion that enters the station is terminal of getting on the bus in the embodiment of the present invention Quantity determines the quantity for the terminal Px that gets off and the quantity of terminal Ps of getting on the bus.Above-mentioned steps B4 specifically includes step B41-B42:
Step B41: determine that the terminal in period Ti for the terminal that enters the station is converted into terminal of getting on the bus in period Tj Quantity Pasij, wherein i≤j≤n;The terminal quantity that enters the station in period Ti
In the embodiment of the present invention, the terminal in period Ti for the terminal that enters the station is in period Ti+1, Ti+ later 2 ..., Tn may be converted into terminal of getting on the bus, meanwhile, the terminal in period Ti for the terminal that enters the station may also be in the period Switch to terminal of getting on the bus in Ti at once, i.e. counted in step B3 enter the station terminal and get on the bus terminal there may be repeat the phenomenon that, i.e., A certain terminal may both be enter the station terminal, and terminal of getting on the bus in period Ti.As it is assumed that " and train enters subway simultaneously Passenger can miss this and plow iron ", therefore only Tli-1≤Tx1 < Tti enters the station, terminal may switch at once in period Ti It gets on the bus terminal.Specifically, needing to be determined according to the Tnx of terminal, which Tnx be located in period, i.e., the terminal in which time Terminal of getting on the bus is converted into section.
In the embodiment of the present invention, indicate the terminal in period Ti for the terminal Pa that enters the station in period Tj (j with Pasij Minimum i) the interior quantity for being converted into the terminal Ps that gets on the bus.As it is assumed that all pedestrians into subway station can ride, thus when Between the terminal quantity that enters the station in section TiThe quantity of corresponding terminal of getting off in period Ti is Pxi= Pxai-Pai, wherein Pxai is get off in period Ti terminal and the sum of the quantity of terminal of entering the station, and meets Tti by statistics The quantity of the terminal of≤Tx1≤Tli and Tli < Txn, and meet the quantity of Tli-1≤Tx1 < Tti terminal and can determine Pxai。
Step B42: the terminal quantity Pxi=Pxai-Pai that gets off in period Ti is determined, wherein Pxai is in the time The sum of the quantity for the terminal and the terminal that enters the station of getting off in section Ti;And determine terminal quantity of getting on the bus in period TiPaski is that the terminal in period Tk for the terminal that enters the station is converted into terminal of getting on the bus in period Ti Quantity.
In the embodiment of the present invention, the terminal of getting on the bus in period Ti be period Ti and before period Tk As entering the station made of terminal conversion in (k≤i).For example, enter the station terminal Pa1 respectively T1, T2, T3 ..., the Tn moment is converted into Get on the bus terminal, be denoted as respectively Pas11, Pas12, Pas3 ..., Pasn, then:
Pa1=Pas11+Pas12+Pas13+ ...+Pas1n;
Pa2=Pas22+Pas23+Pas24+ ...+Pas2n;……
And the quantity of the terminal of getting on the bus in different time sections is respectively as follows:
Ps1=Pas11;
Ps2=Pas12+Pas22;
Ps3=Pas13+Pas23+Pas33;……
In the embodiment of the present invention, since the terminal for the terminal that enters the station in period Ti is in period Tj (the minimum i of j) The quantity for being converted into terminal of getting on the bus can determine that i.e. Pasij (or Paski) is it is believed that therefore in the period according to Txn The quantity Psi of enter the station terminal quantity Pai and the terminal of getting on the bus in period Ti in Ti can count to obtain, and then really The terminal quantity Pxi=Pxai-Pai that gets off being scheduled in period Ti.
Step B5: it determines total flow of the people Pi=Pxi+Psi of the platform in period Ti, and determines in preset time period Total flow of the people
In the embodiment of the present invention, the total people for the passenger that gets on or off the bus in period Ti can be determined after determining Pxi and Psi Flow.
In one possible implementation, above-mentioned steps B4 " determine get off in period Ti terminal quantity Pxi and The quantity Psi " for terminal of getting on the bus can also be determined by historical data, specifically, the process includes step C1-C5:
Step C1: the historical information of the location information of record terminal and the temporal information out of the station of train is obtained, according to going through History information determine in historical time section Ti ' all terminals terminal class, terminal class include miss the stop terminal, terminal of getting off, Enter the station terminal, terminal of getting on the bus and outbound terminal.
Step C2: it determines and is converted into historical time section Tj ' in historical time section Ti ' for the terminal for the terminal that enters the station The quantity Pasij ' of vehicle terminal, wherein i≤j≤n;The terminal quantity that enters the station in historical time section Ti '
Step C3: the terminal quantity Pxi'=Pxai'-Pai' that gets off in historical time section Ti ' is determined, wherein Pxai ' For the sum of the quantity of get off in historical time section Ti ' terminal and the terminal that enters the station;And it determines and gets on the bus end in historical time section Ti ' Hold quantityPaski ' is in the interior terminal for the terminal that enters the station of historical time section Tk ' in historical time section Ti ' Inside it is converted into the quantity for terminal of getting on the bus.
In the embodiment of the present invention, historical time section is the period determined according to the preset time period of history, when such as default Between section be 1 day, then the historical time section can for before some day period.Above-mentioned steps C2-C3 and above-mentioned steps B41- B42 is similar, is not repeated herein.
Step C4: the accounting for terminal quantity of getting off in historical time section Ti ' is determinedAnd it determines in history The accounting of the interior terminal quantity of getting on the bus of period Ti 'Wherein Psbi ' be get on the bus in the historical time section Ti ' terminal and The sum of the quantity of outbound terminal.
It is essentially identical in the conversion ratio of the same period on different dates in the embodiment of the present invention, that is, the terminal that enters the station conversion Ratio for terminal of getting on the bus is held essentially constant.In order to improve counting accuracy, multiple history preset time periods can be acquired (such as When preset time period is 1 day, 1 week data can be acquired, is equivalent to 7 history preset time periods at this time), it determines average Conversion ratio.
Specifically, the accounting for terminal quantity of getting off in historical time section Ti 'Then in period Ti under The accounting of vehicle terminal quantity is also about ui;Likewise, the accounting for terminal quantity of getting on the bus in historical time section Ti 'The accounting for terminal of then getting on the bus in period Ti is also about vi.
Step C5: the quantity Pxi=ui × Pxai for terminal of getting off in period Ti is determined, wherein Pxai is in the time The sum of the quantity for the terminal and the terminal that enters the station of getting off in section Ti;And the determining terminal quantity Psi=vi that gets on the bus in period Ti × Psbi, wherein Psbi is get on the bus in period Ti the sum of terminal and the quantity of outbound terminal.
In the embodiment of the present invention, determine that the accounting for terminal quantity of getting off and the quantity for terminal of getting on the bus account for based on historical data Than, and then got off terminal and the quantity of terminal of getting on the bus according to accounting estimation.It, can be fast although the evaluation method can reduce precision The fast quantity for determining get off terminal and terminal of getting on the bus in real time, and then can be with real-time statistics platform flow of the people.
A kind of method that traffic statistics are carried out based on MAC Address provided in an embodiment of the present invention, according to the MAC Address of terminal The location information of terminal is determined, so that also may be implemented to be accurately positioned indoors;Meanwhile it can using the location information of terminal The flow of user corresponding with terminal is very easily counted, this method can save manpower, and can be with a large amount of people of express statistic The variation of flow, people flow rate statistical are high-efficient.It can be further improved the accuracy of WiFi positioning by way of center coordination. By determining that the terminal that enters the station within the scope of platform is converted in different time sections the quantity for terminal of getting on the bus, so as to convenient accurate It determines the quantity for terminal of getting off in current slot and the quantity for terminal of getting on the bus, and then facilitates statistics platform flow of the people.According to going through History accounting estimates the quantity of get off terminal and terminal of getting on the bus, and can quickly determine the number of get off terminal and terminal of getting on the bus in real time Amount, and then can be with real-time statistics platform flow of the people.
The process for carrying out the method for traffic statistics in the embodiment of the present invention based on MAC Address, the party are described in detail above Method can also be realized by corresponding device, and the structure and function of the device is described in detail below.
A kind of device carrying out traffic statistics based on MAC Address provided in an embodiment of the present invention, it is shown in Figure 4, comprising:
Module 41 is obtained, shakes hands and asks to multiple connections that multiple wireless access points are sent respectively for obtaining terminal It asks, connection handshake request includes the MAC Address of terminal;
Apart from determining module 42, for determining range information, distance letter according to the signal strength of connection handshake request respectively Breath includes terminal and different the distance between wireless access points;
Statistical module 43, for determining location information that terminal is presently according to range information, and according to location information Count the flow of the people at position corresponding with location information.
In one possible implementation, statistical module 43 includes:
Round determination unit, for determining the first circle, the second round and third circle respectively, the first circle is to be connect with the first accessing wirelessly The position coordinates of access point are that the distance between origin, terminal and first wireless access points are the circle that radius determines, the second circle To be the distance between origin, terminal and second wireless access points for half using the position coordinates of the second wireless access points The circle that diameter determines, third circle are to connect by origin, terminal and third accessing wirelessly of the position coordinates of third wireless access points The distance between access point is the circle that radius determines;
Intersection point determination unit, for determining in the first circle and second round all intersection points apart from third wireless access points The first nearest coordinate points, determine the second wireless access points of distance in first round all intersection points with third circle it is nearest the Two coordinate points determine the third coordinate that the first wireless access points of distance are nearest in second round all intersection points with third circle Point;
End coordinates determination unit, for determining terminal according to the first coordinate points, the second coordinate points and third coordinate points Position coordinates:
Wherein, x, y are respectively the abscissa and ordinate of the position coordinates of terminal;xab,yabRespectively the first coordinate points Abscissa and ordinate;xac,yacThe abscissa and ordinate of respectively the second coordinate points;xbc,ybcRespectively third coordinate points Abscissa and ordinate.
In one possible implementation, statistical module 43 includes:
Determination unit the time Tx1 of platform range and leaves the time Txn of platform range for determining that terminal enters, stands Platform range is the range determined according to the wireless access points that platform is arranged in;
Acquisition unit, for acquiring, i-th train enters the time Tti of platform range and train leaves platform range Corresponding time Tli, the period between Tti and Tli are Ti, wherein i=1,2 ..., n, n is in preset time period through missing the stop The train total quantity of platform;
Judging unit, for determining the terminal class of the terminal in period Ti according to Tx1, Txn, Tti and Tli: working as Tti ≤ Tx1, Txn≤Tli and when Txn-Tx1>=α (Tli-Tti), terminal are terminal of missing the stop, and α is constant, and 0<α≤1;When Tti≤ Tx1≤Tli and when Tli < Txn, determines that terminal is get off terminal or the terminal that enters the station;As Tli-1≤Tx1 < Tti, terminal is determined For the terminal that enters the station;As Tx1 < Tti and Tti≤Txn≤Tli, determine that terminal is get on the bus terminal or outbound terminal;As Tli < Txn When≤Tti+1, determine that terminal is outbound terminal;
Statistic unit determines the quantity Pxi for terminal of getting off in period Ti for counting the terminal class of all terminals With the quantity Psi for terminal of getting on the bus;
Processing unit for determining total flow of the people Pi=Pxi+Psi of the platform in period Ti, and determines preset time Total flow of the people in section
In one possible implementation, statistic unit includes:
Transforming subunit is got on the bus for determining that the terminal in period Ti for the terminal that enters the station is converted into period Tj The quantity Pasij of terminal, wherein i≤j≤n;The terminal quantity that enters the station in period Ti
Subelement is counted, for determining the terminal quantity Pxi=Pxai-Pai that gets off in period Ti, wherein Pxai For the sum of the quantity of get off in period Ti terminal and the terminal that enters the station;And determine terminal quantity of getting on the bus in period TiPaski is that the terminal in period Tk for the terminal that enters the station is converted into terminal of getting on the bus in period Ti Quantity.
In one possible implementation, statistic unit includes:
Subelement is obtained, for obtaining the history letter of the location information of record terminal and the temporal information out of the station of train Breath, according to historical information determine in historical time section Ti ' all terminals terminal class, terminal class include miss the stop terminal, It gets off terminal, the terminal that enters the station, terminal of getting on the bus and outbound terminal;
Transforming subunit, for determining the terminal in historical time section Ti ' for the terminal that enters the station in historical time section Tj ' It is converted into the quantity Pasij ' for terminal of getting on the bus, wherein i≤j≤n;The terminal quantity that enters the station in historical time section Ti '
First statistics subelement, for determining the terminal quantity Pxi'=Pxai'- that gets off in historical time section Ti ' Pai', wherein Pxai ' is the sum of the quantity in historical time section Ti ' interior get off terminal and the terminal that enters the station;And it determines in history Between get on the bus in section Ti ' terminal quantityPaski ' is in historical time section Tk ' for the terminal for the terminal that enters the station The quantity for terminal of getting on the bus is converted into historical time section Ti ';
Subelement is handled, for determining the accounting for terminal quantity of getting off in historical time section Ti 'And really It is scheduled on the accounting for terminal quantity of getting on the bus in historical time section Ti 'Wherein Psbi ' is on historical time section Ti ' is interior The sum of vehicle terminal and the quantity of outbound terminal;
Second statistics subelement, for determining the quantity Pxi=ui × Pxai for terminal of getting off in period Ti, wherein Pxai is get off in period Ti terminal and the sum of the quantity of terminal of entering the station;And determine terminal quantity of getting on the bus in period Ti Psi=vi × Psbi, wherein Psbi is get on the bus in period Ti the sum of terminal and the quantity of outbound terminal.
A kind of method and device carrying out traffic statistics based on MAC Address provided in an embodiment of the present invention, according to terminal MAC Address determines the location information of terminal, so that also may be implemented to be accurately positioned indoors;Meanwhile being believed using the position of terminal Breath can very easily count the flow of user corresponding with terminal, and this method can save manpower, and can quickly unite The variation of major pedestrian movement's amount is counted, people flow rate statistical is high-efficient.It can be further improved WiFi positioning by way of center coordination Accuracy.By determining that the terminal that enters the station within the scope of platform is converted in different time sections the quantity for terminal of getting on the bus, so as to It conveniently accurately determines the quantity for terminal of getting off in current slot and the quantity for terminal of getting on the bus, and then facilitates the statistics platform stream of people Amount.It is got off terminal and the quantity of terminal of getting on the bus according to the estimation of history accounting, can quickly determine to get off in real time and terminal and get on the bus The quantity of terminal, and then can be with real-time statistics platform flow of the people.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of method for carrying out traffic statistics based on MAC Address, which comprises the following steps:
Obtain multiple connection handshake requests that terminal is sent to multiple wireless access points respectively, the connection handshake request packet Include the MAC Address of the terminal;
Range information is determined according to the signal strength of the connection handshake request respectively, the range information include the terminal with The distance between different described wireless access points;
The location information that the terminal is presently in is determined according to the range information, and statistics and institute according to the positional information Flow of the people at the corresponding position of rheme confidence manner of breathing;
The flow of the people counted at position corresponding with the location information according to the positional information, comprising:
Determine that the terminal enters the time Tx1 of platform range and leaves the time Txn of the platform range, the platform range For the range determined according to the wireless access points that platform is arranged in;
Acquiring i-th train, to leave the platform range corresponding into the time Tti of the platform range and the train Time Tli, period between Tti and Tli are Ti, wherein i=1,2 ..., n, n is the column in preset time period by platform Vehicle total quantity;
The terminal class of the terminal described in period Ti is determined according to described Tx1, Txn, Tti and Tli: as Tti≤Tx1, Txn ≤ Tli and when Txn-Tx1>=α (Tli-Tti), the terminal are terminal of missing the stop, and α is constant, and 0<α≤1;When Tti≤Tx1≤ Tli and when Tli < Txn, determines that the terminal is get off terminal or the terminal that enters the station;As Tli-1≤Tx1 < Tti, the end is determined End is the terminal that enters the station;As Tx1 < Tti and Tti≤Txn≤Tli, determine that the terminal is get on the bus terminal or outbound terminal;When When Tli < Txn≤Tti+1, determine that terminal is outbound terminal;
The terminal class of all terminals is counted, determines the quantity of the quantity Pxi for terminal of getting off in period Ti and terminal of getting on the bus Psi;
It determines total flow of the people Pi=Pxi+Psi of the platform described in period Ti, and determines total in the preset time period Flow of the people
2. the method according to claim 1, wherein described determine that the terminal is current according to the range information Location information, comprising:
The first circle, the second round and third circle are determined respectively, and first circle is with the position coordinates of the first wireless access points It is the circle that radius determines for the distance between origin, the terminal and described first wireless access points, second circle is Using the position coordinates of the second wireless access points between origin, the terminal and second wireless access points away from From the circle determined for radius, third circle for using the position coordinates of third wireless access points as origin, the terminal with The distance between described third wireless access points are the circle that radius determines;
Determine third wireless access points described in distance in described first round all intersection points with second circle it is nearest the One coordinate points determine that the second wireless access points described in distance are nearest in described first round all intersection points with third circle The second coordinate points, determine the first wireless access points described in distance in described second round all intersection points with third circle Nearest third coordinate points;
The position coordinates of the terminal are determined according to first coordinate points, the second coordinate points and third coordinate points:
Wherein, x, y are respectively the abscissa and ordinate of the position coordinates of the terminal;xab,yabRespectively described first coordinate The abscissa and ordinate of point;xac,yacThe abscissa and ordinate of respectively described second coordinate points;xbc,ybcIt is respectively described The abscissa and ordinate of third coordinate points.
3. the quantity of terminal the method according to claim 1, wherein the determination is got off in period Ti The quantity Psi of Pxi and terminal of getting on the bus, comprising:
Determine the quantity Pasij for being converted into terminal of getting on the bus in period Tj for the terminal for the terminal that enters the station in period Ti, Middle i≤j≤n;The terminal quantity that enters the station in period Ti
Determine the terminal quantity Pxi=Pxai-Pai that gets off in period Ti, wherein Pxai is to get off end in period Ti It holds and enters the station the sum of the quantity of terminal;And determine terminal quantity of getting on the bus in period TiPaski be when Between be that the enter the station terminal of terminal is converted into the quantity of terminal of getting on the bus in period Ti in section Tk.
4. the quantity of terminal the method according to claim 1, wherein the determination is got off in period Ti The quantity Psi of Pxi and terminal of getting on the bus, comprising:
The historical information of the location information of record terminal and the temporal information out of the station of train is obtained, it is true according to the historical information Be scheduled on the terminal class of all terminals in historical time section Ti ', the terminal class include miss the stop terminal, terminal of getting off, enter the station Terminal, terminal of getting on the bus and outbound terminal;
Determine that the terminal in historical time section Ti ' for the terminal that enters the station is converted into the number for terminal of getting on the bus in historical time section Tj ' Pasij ' is measured, wherein i≤j≤n;The terminal quantity that enters the station in historical time section Ti '
Determine the terminal quantity Pxi'=Pxai'-Pai' that gets off in historical time section Ti ', wherein Pxai ' is in history Between get off in section Ti ' the sum of the quantity of terminal and the terminal that enters the station;And determine terminal quantity of getting on the bus in historical time section Ti 'Paski ' is terminal conversion in historical time section Ti ' in historical time section Tk ' for the terminal that enters the station For the quantity for terminal of getting on the bus;
Determine the accounting for terminal quantity of getting off in historical time section Ti 'And it determines in historical time section Ti ' The accounting of vehicle terminal quantityWherein Psbi ' is the number in historical time section Ti ' interior get on the bus terminal and outbound terminal The sum of amount;
Determine the quantity Pxi=ui × Pxai for terminal of getting off in period Ti, wherein Pxai is to get off end in period Ti It holds and enters the station the sum of the quantity of terminal;And determine the terminal quantity Psi=vi × Psbi that gets on the bus in period Ti, wherein Psbi For the sum of the terminal and the quantity of outbound terminal of getting on the bus in period Ti.
5. a kind of device for carrying out traffic statistics based on MAC Address characterized by comprising
Module is obtained, the multiple connection handshake requests sent respectively to multiple wireless access points for obtaining terminal are described Connection handshake request includes the MAC Address of the terminal;
Apart from determining module, for determining range information, the distance according to the signal strength of the connection handshake request respectively Information includes the terminal and different the distance between the wireless access points;
Statistical module, for determining location information that the terminal is presently according to the range information, and according to institute's rheme Set the flow of the people at Information Statistics position corresponding with the location information;
Determination unit the time Tx1 of platform range and leaves the time of the platform range for determining that the terminal enters Txn, the platform range are the range determined according to the wireless access points that platform is arranged in;
Acquisition unit leaves for acquiring i-th train into the time Tti of the platform range and the train described The corresponding time Tli of platform range, period between Tti and Tli are Ti, wherein i=1,2 ..., n, n is preset time period The interior train total quantity by platform;
Judging unit, for determining the terminal class of the terminal described in period Ti according to described Tx1, Txn, Tti and Tli: As Tti≤Tx1, Txn≤Tli and Txn-Tx1>=α (Tli-Tti), the terminal is to miss the stop terminal, and α is constant, and 0<α≤ 1;As Tti≤Tx1≤Tli and Tli < Txn, determine that the terminal is get off terminal or the terminal that enters the station;When Tli-1≤Tx1 < When Tti, determine that the terminal is the terminal that enters the station;As Tx1 < Tti and Tti≤Txn≤Tli, determine that the terminal is to get on the bus end End or outbound terminal;As Tli < Txn≤Tti+1, determine that terminal is outbound terminal;
Statistic unit determines the quantity Pxi of terminal of getting off in period Ti and upper for counting the terminal class of all terminals The quantity Psi of vehicle terminal;
Processing unit for determining total flow of the people Pi=Pxi+Psi of the platform described in period Ti, and determines described default Total flow of the people in period
6. device according to claim 5, which is characterized in that the statistical module includes:
Round determination unit, for determining the first circle, the second round and third circle respectively, first circle is to be connect with the first accessing wirelessly The position coordinates of access point are that the distance between origin, the terminal and described first wireless access points are what radius determined Circle, second circle are wirelessly to visit using the position coordinates of the second wireless access points as origin, the terminal with described second Ask that the distance between access point is the circle that radius determines, the third circle is to be with the position coordinates of third wireless access points The distance between origin, the terminal and described third wireless access points are the circle that radius determines;
Intersection point determination unit, for determining, third described in distance is wirelessly visited in described first round all intersection points with second circle It asks the first nearest coordinate points of access point, determines the second nothing described in distance in described first round all intersection points with third circle The second nearest coordinate points of line access points determine in described second round all intersection points with third circle described in distance the The nearest third coordinate points of one wireless access points;
End coordinates determination unit, for determining the end according to first coordinate points, the second coordinate points and third coordinate points The position coordinates at end:
Wherein, x, y are respectively the abscissa and ordinate of the position coordinates of the terminal;xab,yabRespectively described first coordinate The abscissa and ordinate of point;xac,yacThe abscissa and ordinate of respectively described second coordinate points;xbc,ybcIt is respectively described The abscissa and ordinate of third coordinate points.
7. device according to claim 5, which is characterized in that the statistic unit includes:
Transforming subunit, for determining that the terminal in period Ti for the terminal that enters the station is converted into terminal of getting on the bus in period Tj Quantity Pasij, wherein i≤j≤n;The terminal quantity that enters the station in period Ti
Subelement is counted, for determining the terminal quantity Pxi=Pxai-Pai that gets off in period Ti, wherein Pxai be The sum of the quantity of terminal of getting off in period Ti and the terminal that enters the station;And determine terminal quantity of getting on the bus in period TiPaski is that the terminal in period Tk for the terminal that enters the station is converted into terminal of getting on the bus in period Ti Quantity.
8. device according to claim 5, which is characterized in that the statistic unit includes:
Subelement is obtained, for obtaining the historical information of the location information of record terminal and the temporal information out of the station of train, root Determine that the terminal class of all terminals in historical time section Ti ', the terminal class include missing the stop end according to the historical information It holds, terminal of getting off, the terminal that enters the station, terminal of getting on the bus and outbound terminal;
Transforming subunit, for determining the conversion in historical time section Tj ' of the terminal in historical time section Ti ' for the terminal that enters the station For the quantity Pasij ' for terminal of getting on the bus, wherein i≤j≤n;The terminal quantity that enters the station in historical time section Ti '
First statistics subelement, for determining the terminal quantity Pxi'=Pxai'-Pai' that gets off in historical time section Ti ', In, Pxai ' is the sum of the quantity in historical time section Ti ' interior get off terminal and the terminal that enters the station;And it determines in historical time section Ti ' It inside gets on the bus terminal quantityPaski ' is in the historical time section Tk ' be enter the station terminal terminal in history Between the quantity of terminal of getting on the bus is converted into section Ti ';
Subelement is handled, for determining the accounting for terminal quantity of getting off in historical time section Ti 'And determination is being gone through The accounting of the interior terminal quantity of getting on the bus of history period Ti 'Wherein Psbi ' is terminal of getting on the bus in historical time section Ti ' The sum of with the quantity of outbound terminal;
Second statistics subelement, for determining the quantity Pxi=ui × Pxai for terminal of getting off in period Ti, wherein Pxai For the sum of the quantity of get off in period Ti terminal and the terminal that enters the station;And determine the terminal quantity Psi that gets on the bus in period Ti =vi × Psbi, wherein Psbi is get on the bus in period Ti the sum of terminal and the quantity of outbound terminal.
CN201710447608.2A 2017-06-14 2017-06-14 A kind of method and device carrying out traffic statistics based on MAC Address Active CN107318090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710447608.2A CN107318090B (en) 2017-06-14 2017-06-14 A kind of method and device carrying out traffic statistics based on MAC Address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710447608.2A CN107318090B (en) 2017-06-14 2017-06-14 A kind of method and device carrying out traffic statistics based on MAC Address

Publications (2)

Publication Number Publication Date
CN107318090A CN107318090A (en) 2017-11-03
CN107318090B true CN107318090B (en) 2019-11-15

Family

ID=60183266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710447608.2A Active CN107318090B (en) 2017-06-14 2017-06-14 A kind of method and device carrying out traffic statistics based on MAC Address

Country Status (1)

Country Link
CN (1) CN107318090B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107901949A (en) * 2017-11-24 2018-04-13 金绪林 A kind of platform smart electronics protective device and method according to motor-car high ferro
CN113891296B (en) * 2020-07-03 2023-04-18 星宸科技股份有限公司 Wireless network detection device and method for detecting non-predetermined electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980550A (en) * 2004-10-29 2011-02-23 探空气球无线公司 Method for locating user device and server system
CN103661501A (en) * 2013-12-31 2014-03-26 北方工业大学 Automatic station current limiting method based on multi-point passenger flow detection information feedback
CN103700174A (en) * 2013-12-26 2014-04-02 中国电子科技集团公司第三十三研究所 Method for data collection and OD (Origin-Destination) analysis of public transport passenger flow based on WIFI identity recognition
CN104918216A (en) * 2015-05-11 2015-09-16 上海网罗电子科技有限公司 Advertisement pushing system based on position service and method
CN105611492A (en) * 2016-02-29 2016-05-25 京信通信技术(广州)有限公司 Processing method, apparatus and system for positioning information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980550A (en) * 2004-10-29 2011-02-23 探空气球无线公司 Method for locating user device and server system
CN103700174A (en) * 2013-12-26 2014-04-02 中国电子科技集团公司第三十三研究所 Method for data collection and OD (Origin-Destination) analysis of public transport passenger flow based on WIFI identity recognition
CN103661501A (en) * 2013-12-31 2014-03-26 北方工业大学 Automatic station current limiting method based on multi-point passenger flow detection information feedback
CN104918216A (en) * 2015-05-11 2015-09-16 上海网罗电子科技有限公司 Advertisement pushing system based on position service and method
CN105611492A (en) * 2016-02-29 2016-05-25 京信通信技术(广州)有限公司 Processing method, apparatus and system for positioning information

Also Published As

Publication number Publication date
CN107318090A (en) 2017-11-03

Similar Documents

Publication Publication Date Title
CN104980885B (en) A kind of data processing system and method towards WIFI detection identifications
CN103917887B (en) Location based on the subscriber equipment that virtual reference is measured
CN108109423B (en) Underground parking lot intelligent navigation method and system based on WiFi indoor positioning
CN103281778B (en) Based on Internet of Things smart mobile phone indoor orientation method and the system of radio sensing network
US9979559B2 (en) Feedback in a positioning system
JP5143955B2 (en) Population flow information generation system and population flow information generation method
US20150215797A1 (en) Information processing apparatus and information processing method
CN106170712A (en) Network-centric location
CN109275090B (en) Information processing method, device, terminal and storage medium
CN106918338A (en) Indoor locating system and method based on Bluetooth gateway
CN103581821A (en) Ranging method and ranging device
CN108737968A (en) A method of passing through wireless technology sensing passengers abnormal behaviour
CN107318090B (en) A kind of method and device carrying out traffic statistics based on MAC Address
CN107274717A (en) A kind of indoor parking Position Fixing Navigation System and its air navigation aid
CN111464948A (en) Passenger flow detection method and system
CN110337065A (en) A kind of intelligent hinge personnel positioning monitoring and pre-warning system and method based on three-dimensional map
Oransirikul et al. Feasibility of analyzing Wi-Fi activity to estimate transit passenger population
US10447637B2 (en) Method and platform for sending a message to a communication device associated with a moving object
US9294879B2 (en) Determining path traversed by a mobile communication device
CN109089313B (en) Double-fingerprint joint positioning method and device
CN207968962U (en) A kind of pipe gallery personnel positioning apparatus based on Wi-Fi
CN105744569B (en) Site shunt method, server and system
CN201234349Y (en) Position service platform for positioning, information service and control
Song et al. Using mobile sensing technology for capturing people mobility information
KR101278167B1 (en) Method and apparatus for measuring position using access point

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