CN110087255B - Information statistical method and device - Google Patents

Information statistical method and device Download PDF

Info

Publication number
CN110087255B
CN110087255B CN201910322938.8A CN201910322938A CN110087255B CN 110087255 B CN110087255 B CN 110087255B CN 201910322938 A CN201910322938 A CN 201910322938A CN 110087255 B CN110087255 B CN 110087255B
Authority
CN
China
Prior art keywords
rssi
value
threshold
target terminals
maximum
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
CN201910322938.8A
Other languages
Chinese (zh)
Other versions
CN110087255A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201910322938.8A priority Critical patent/CN110087255B/en
Publication of CN110087255A publication Critical patent/CN110087255A/en
Application granted granted Critical
Publication of CN110087255B publication Critical patent/CN110087255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides an information statistical method and a device, wherein the method comprises the following steps: when signal frames sent by a plurality of target terminals are received, sending detection frames to the plurality of target terminals, and measuring RSSI values of the plurality of target terminals based on the received ACK frames of the plurality of target terminals; determining an RSSI threshold value according to the maximum RSSI value in the RSSI values of the target terminals, and updating the determined RSSI threshold value when the RSSI threshold value updating condition is determined to be met; and counting the target terminals entering the designated area according to the determined RSSI threshold value. By applying the embodiment of the invention, the automatic determination and update of the RSSI threshold can be realized, and the efficiency and the accuracy of determining the RSSI threshold are improved.

Description

Information statistical method and device
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to an information statistics method and apparatus.
Background
In recent years, with the rapid popularization of smart phones, Wireless access technologies based on Wireless Local Area Networks (WLANs) are also widely used, and the applications of counting people entering a specific Area (such as a store in a mall) based on the WLAN Network are becoming more and more widespread. Compared with other statistical modes (such as infrared and face recognition), the statistical mode based on the WLAN network can obtain a Media Access Control (MAC) address of the mobile phone terminal, where the MAC address can not only identify a mobile phone terminal holder, but also obtain data such as a communication identifier and a behavior record corresponding to the MAC address through a third-party big data platform.
At present, based on the statistical manner of the WLAN network for the person entering the designated area, a WLAN Access Point (AP for short) is usually placed at a preset distance (e.g. several meters) from the entrance of the designated area. When the owner of the terminal enters the designated area from the entrance, the WLAN AP (hereinafter referred to as AP) receives the Signal frame sent by the terminal and measures the Received Signal Strength Indication (RSSI) value corresponding to the frame. Since the closer a terminal is to an AP, the higher the RSSI value of a frame transmitted by the terminal measured by the AP. Therefore, whether the terminal holder enters the designated area can be judged according to whether the RSSI value reaches the preset RSSI threshold value.
However, practice shows that in the current implementation mode of counting the persons entering the designated area based on the WLAN network, each different designated area needs to be individually manually tested, and the RSSI threshold corresponding to each designated area is set based on the measurement result and the actual experience, so that the workload is large, and the implementation efficiency is low.
Disclosure of Invention
In view of this, the present invention provides an information statistics method and apparatus, so as to solve the problem of low RSSI threshold determination efficiency in the existing implementation manner of performing statistics on people entering a designated area based on a WLAN network.
In a first aspect, the present invention provides an information statistics method applied to an AP deployed in a designated area, where the method includes:
when signal frames sent by a plurality of target terminals are received, sending detection frames to the plurality of target terminals;
measuring RSSI values of the target terminals based on the received ACK frames sent by the target terminals;
determining an RSSI threshold value according to the maximum RSSI value in the RSSI values of the target terminals, and updating the determined RSSI threshold value when the RSSI threshold value updating condition is determined to be met;
and counting the target terminals entering the designated area according to the determined RSSI threshold value.
With reference to the first aspect, in a first possible implementation manner, the determining an RSSI threshold according to a maximum RSSI value of the RSSI values of the plurality of target terminals includes:
when the number of the target terminals reaches a first number threshold and the number of the received ACK frames reaches a second number threshold, determining an RSSI threshold according to the maximum RSSI value in the RSSI values of the target terminals;
or the like, or, alternatively,
and determining the RSSI threshold value according to the maximum RSSI value in the RSSI values of the plurality of target terminals measured in the preset time length.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the determining an RSSI threshold according to a maximum RSSI value of the RSSI values of the plurality of target terminals includes:
determining the difference value of the maximum RSSI value and a first RSSI value adjusting parameter as an RSSI threshold value; wherein the first RSSI value adjustment parameter is greater than 0;
or the like, or, alternatively,
determining the product of the maximum RSSI value and a second RSSI value adjusting parameter as an RSSI threshold value; and the second RSSI value adjusting parameter is less than 1.
With reference to the first aspect, in a third possible implementation manner, the updating the determined RSSI threshold when it is determined that the RSSI threshold update condition is satisfied includes:
updating the recorded maximum RSSI value to the first RSSI value when the measured first RSSI value is greater than the recorded maximum RSSI value;
and updating the RSSI threshold value according to the first RSSI value.
With reference to the first aspect, in a fourth possible implementation manner, the determining an RSSI threshold according to a maximum RSSI value of the RSSI values of the plurality of target terminals includes:
according to a preset period, periodically determining an RSSI threshold value used in the current period according to the maximum RSSI value in the RSSI values of a plurality of target terminals measured in the current period;
when it is determined that the RSSI threshold update condition is satisfied, updating the determined RSSI threshold includes:
in the current period, updating the RSSI threshold value determined in the previous period of the current period according to the maximum RSSI value in the RSSI values of the plurality of target terminals measured in the current period.
In a second aspect, the present invention provides an information statistics apparatus, applied to an AP deployed in a specified area, the apparatus including:
the receiving unit is used for receiving signal frames sent by a plurality of target terminals;
a sending unit, configured to send probe frames to the multiple target terminals when the receiving unit receives the signal frames sent by the multiple target terminals;
the measuring unit is further used for measuring RSSI values of the target terminals based on the ACK frames sent by the target terminals and received by the receiving unit;
a determining unit, configured to determine an RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals;
an updating unit configured to update the determined RSSI threshold when it is determined that the RSSI threshold update condition is satisfied;
and the counting unit is used for counting the target terminal entering the designated area according to the determined RSSI threshold value.
With reference to the second aspect, in a first possible implementation manner, the determining unit is specifically configured to determine the RSSI threshold according to a maximum RSSI value of the RSSI values of the multiple target terminals when the number of the multiple target terminals reaches a first number threshold and the number of the ACK frames received by the receiving unit reaches a second number threshold; or, determining the RSSI threshold value according to the maximum RSSI value in the RSSI values measured in the preset time length.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the determining unit is specifically configured to determine a difference between the maximum RSSI value and a first RSSI value adjustment parameter as an RSSI threshold; wherein the first RSSI value adjustment parameter is greater than 0; or, determining the product of the maximum RSSI value and a second RSSI value adjusting parameter as an RSSI threshold value; and the second RSSI value adjusting parameter is less than 1.
With reference to the second aspect, in a third possible implementation manner, the updating unit is specifically configured to update the recorded maximum RSSI value to the first RSSI value when the first RSSI value measured by the measuring unit is greater than the recorded maximum RSSI value;
the determining unit is further configured to update the RSSI threshold according to the first RSSI value.
With reference to the second aspect, in a fourth possible implementation manner, the determining unit is specifically configured to periodically determine, according to a preset period, an RSSI threshold used in the current period according to a maximum RSSI value of RSSI values of a plurality of target terminals measured in the current period;
the updating unit is specifically configured to update, in a current period, the RSSI threshold determined in a previous period of the current period according to a maximum RSSI value among the RSSI values of the plurality of target terminals measured in the current period.
By applying the technical scheme disclosed by the invention, when signal frames sent by a plurality of target terminals are received by the AP, the detection messages are sent to the plurality of target terminals, the RSSI values of the plurality of target terminals are measured based on the received ACK frames of the plurality of target terminals, the RSSI threshold value is determined according to the maximum RSSI value in the RSSI values of the plurality of target terminals, when the RSSI threshold value updating condition is met, the determined RSSI threshold value is updated, further, the target terminals entering the designated area are counted according to the determined RSSI threshold value, the automatic determination of the RSSI threshold value is realized, the RSSI threshold value can be determined in a self-adaptive updating mode when the updating condition is met, and the accuracy of the RSSI threshold value is improved.
Drawings
Fig. 1 is a schematic flow chart of an information statistics method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a relationship between an RSSI value and a distance according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an information statistics apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an information statistics apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flow chart of an information statistics method provided by an embodiment of the present invention is schematically shown, where the information statistics method can be applied to a WLAN AP (hereinafter referred to as AP) deployed in a specified area (such as a mall, a store in a mall, a park or an amusement park, etc.), and as shown in fig. 1, the information statistics method can include the following steps:
step 101, when receiving signal frames sent by a plurality of target terminals, sending probe frames to the plurality of target terminals.
And 102, measuring RSSI values of a plurality of target terminals based on the received ACK frames sent by the target terminals.
In the embodiment of the present invention, the target terminal does not refer to a fixed terminal device, but may refer to any terminal device (e.g., a mobile phone) that sends a signal frame to an AP deployed in a designated area. It should be noted that, in the embodiment of the present invention, the RSSI values of the multiple target terminals are measured independently, that is, for the multiple target terminals described in step 101, when the AP receives a signal frame sent by any one of the target terminals, the AP may send a probe frame to the target terminal to trigger the RSSI value measurement for the target terminal.
In the embodiment of the invention, the difference of the transmitting power of the terminal equipment is considered when the terminal equipment sends the signal frames at different rates.
For example, for the same mobile phone terminal, when it sends a signal frame at a low rate, the transmission power may reach the theoretical maximum transmission power; and when it transmits signal frames at a high rate, the transmit power is typically less than the theoretical maximum transmit power.
Correspondingly, in the embodiment of the invention, in order to reduce the influence of the transmission power difference on the accuracy of the RSSI value measurement, the AP does not directly perform the passive measurement of the RSSI value according to the received signal frame sent by the target terminal, but triggers the response acknowledgement (English: ACK) frame of the target terminal in a mode of sending a detection frame to the target terminal, and measures the RSSI value of the target terminal based on the received ACK frame so as to realize the active measurement of the RSSI value of the target terminal.
In order to ensure reliability, the ACK frame is usually sent at a fixed low rate, and therefore, the influence of the transmission power difference on the accuracy of the RSSI value measurement can be reduced by measuring the RSSI value of the target terminal based on the received ACK frame, and the accuracy of the RSSI value measurement can be improved.
Illustratively, the sounding frame may comprise a NULL DATA (English: NULL-DATA) frame or other frame that may trigger the terminal device to respond to an ACK frame.
In one example, for any target terminal, when the AP receives a signal frame sent by the target terminal, the AP sends a certain number (referred to as a first number herein, which may be set according to an actual scenario, such as 10) of probe frames to the target terminal, and receives an ACK frame responded by the target terminal, and measures an RSSI value of the target terminal based on the received ACK frame.
For example, the AP measures the RSSI value of the target terminal based on each received ACK frame, and determines the average of the RSSI values corresponding to each ACK frame as the measured RSSI value of the target terminal.
And 103, determining the RSSI threshold according to the maximum value of the RSSI values of the target terminals, and updating the determined RSSI threshold when the RSSI threshold updating condition is determined to be met.
In the embodiment of the invention, the installation positions of the APs in different designated areas are considered to be different, and the different installation positions may influence the signal reception of the APs.
For example, taking a given area as an in-store as an example, due to differences in overall store finishing styles or policies, the AP of some stores allows installation directly under the ceiling, or even hanging directly on metal ducts; while some stores do not allow for the destruction of the overall finish style, requiring the AP to be installed inside the ceiling. The ceiling has a large influence on the attenuation of signals, and the attenuation can reach 10dB according to different materials and thicknesses.
Therefore, in order to obtain more accurate threshold parameters, the corresponding RSSI thresholds can be determined according to the actual situation of signal reception of APs in different designated areas.
Accordingly, in the embodiment of the present invention, the RSSI threshold may be determined according to the maximum value of the RSSI values of the plurality of target terminals.
And step 104, counting the target terminals entering the designated area according to the determined RSSI threshold value.
In the embodiment of the invention, when the AP determines the RSSI threshold value, the target terminal entering the designated area can be counted according to the determined RSSI threshold value.
Wherein, when the RSSI threshold value is updated, the determined RSSI threshold value is the updated RSSI threshold value.
For example, when the AP determines the RSSI threshold and receives a signal frame sent by the target terminal, the AP sends a first number of probe frames to the target terminal, measures the RSSI value of the target terminal based on the received ACK frame responded by the target terminal, and determines that the target terminal enters the designated area if the RSSI value is greater than the RSSI threshold, at this time, adds 1 to the number of people entering the designated area.
It can be seen that, in the method flow shown in fig. 1, the RSSI value of the target terminal is measured by the AP, the RSSI threshold is determined according to the maximum RSSI value among the measured RSSI values, and then the target terminal entering the designated area is counted according to the determined RSSI threshold, so that the automatic determination of the RSSI threshold is realized, the efficiency of determining the RSSI threshold is improved, and the RSSI threshold can be adaptively updated when the update condition is satisfied, so that the accuracy of the RSSI threshold is improved.
Optionally, in an embodiment of the present invention, the determining the RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals may include:
and when the number of the target terminals reaches a first number threshold and the number of the received ACK frames reaches a second number threshold, determining the RSSI threshold according to the maximum RSSI value in the RSSI values of the target terminals.
In this embodiment, in order to improve the accuracy of the measured RSSI value, in the determination process of the RSSI threshold, the AP records the number of target terminals that have measured the RSSI value, and the number of received ACK frames.
When the AP determines that the number of target terminals having measured RSSI values reaches a preset number (which may be referred to as a first number threshold herein, and the value thereof may be set according to an actual scenario, for example, 10), and the number of received ACK frames reaches a preset number (which may be referred to as a second number threshold herein, and the value thereof may be set according to an actual scenario, for example, 100), the AP determines the RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals.
For example, the AP records a measured maximum RSSI value (an initial value of the maximum RSSI value may be set to 0 or other smaller value), when the AP measures an RSSI value of the target terminal based on the received ACK frame, the AP compares the RSSI value with the maximum RSSI value recorded by the AP, and if the RSSI value is greater than the maximum RSSI value recorded by the AP, the maximum RSSI value recorded by the AP is updated to the RSSI value; otherwise, the maximum RSSI value recorded by the user is not updated.
It should be noted that, in the embodiment of the present invention, the AP may also determine the RSSI threshold according to the maximum RSSI value of the RSSI values of the multiple target terminals when the number of target terminals that have measured the RSSI values reaches the first number threshold, or when the number of received ACK frames reaches the second number threshold.
Optionally, in another embodiment of the present invention, the determining the RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals includes:
and determining the RSSI threshold value according to the maximum RSSI value in the RSSI values of the plurality of target terminals measured in the preset time length.
In this embodiment, in order to improve the accuracy of the measured RSSI value, in the determination of the RSSI threshold, the AP may set a time period (referred to herein as a preset time period, whose value may be set according to an actual scene) for determining the RSSI threshold.
For example, when the AP first measures the RSSI values of the target terminals, the AP starts a timer, the timing duration of the timer is a preset duration, and when the timer expires, the AP determines the RSSI threshold according to the maximum value of the measured RSSI values of the plurality of target terminals within the preset duration.
It should be noted that, in the above embodiment, since a process is required from the start of measuring the RSSI value of the target terminal to the determination of the RSSI threshold, for the RSSI threshold of the target terminal measured in the process of determining the RSSI threshold, data may be recorded first, and statistics may be performed in a manner of determining whether to enter the designated area after the RSSI threshold is determined, that is, before the RSSI threshold is determined, the measured RSSI value of the target terminal and the corresponding target terminal are recorded, and when the RSSI threshold is determined, the RSSI value measured in the process of determining the RSSI threshold recorded by itself and the determined RSSI threshold are compared to determine whether the corresponding target terminal enters the designated area.
In addition, in the embodiment of the present invention, the number of target terminals that have measured the RSSI value, the number of received ACK frames, and the measurement duration may also be used as the determination conditions of the RSSI threshold.
For example, when the AP measures the RSSI value of the target terminal for the first time, the AP starts a timer, the timing duration of the timer is a preset duration, and if the number of target terminals for which the AP has measured the RSSI value reaches a first number threshold before the timer expires, or/and the number of received ACK frames reaches a second number threshold, the timer is stopped, and the RSSI threshold is determined according to the maximum RSSI value among the measured RSSI values; if the number of the target terminals of the RSSI frames measured by the AP does not reach the first number threshold value before the timer is overtime, or/and the number of the received ACK frames does not reach the second number threshold value, stopping the timer when the timer is overtime, and determining the RSSI threshold value according to the maximum RSSI value in the measured RSSI values.
Optionally, in an embodiment of the present invention, the determining the RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals may include:
determining the difference value between the maximum RSSI value and the first RSSI value adjusting parameter as an RSSI threshold value; wherein, the first RSSI value adjusting parameter is larger than 0.
In this embodiment, when the AP determines that the condition for determining the RSSI threshold is satisfied, for example, the number of target terminals that have measured the RSSI value reaches the first number threshold, and the number of received ACK frames reaches the second number threshold, or the measurement duration reaches the preset duration, the AP may determine the difference between the measured maximum RSSI value and the first RSSI value adjustment parameter (which may be set according to an empirical value or an experimental value, such as 2dB, 3dB, or the like) as the RSSI threshold.
Optionally, in an embodiment of the present invention, the determining the RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals may include:
determining the product of the maximum RSSI value and the second RSSI value adjusting parameter as an RSSI threshold value; wherein the second RSSI value adjustment parameter is less than 1.
In this embodiment, when the AP determines that the condition for determining the RSSI threshold is satisfied, for example, the number of target terminals that have measured the RSSI value reaches the first number threshold, and the number of received ACK frames reaches the second number threshold, or the measurement duration reaches the preset duration, the AP determines the product of the measured maximum RSSI value and the second RSSI value adjustment parameter (which may be set according to an empirical value or an experimental value, such as 80%, 90%, or the like) as the RSSI threshold.
In the embodiment of the present invention, in order to improve the accuracy of the RSSI threshold, after the AP determines the RSSI threshold, the determined RSSI threshold may be adaptively updated according to environmental changes, and when the AP determines that a preset condition (referred to as an RSSI threshold update condition herein) for triggering the RSSI threshold update is satisfied, the AP may update the determined RSSI threshold.
Optionally, in an embodiment of the present invention, the updating the determined RSSI threshold when it is determined that the RSSI threshold updating condition is satisfied may include:
when the first RSSI value is measured to be larger than the recorded maximum RSSI value, updating the recorded maximum RSSI value to the first RSSI value;
and updating the determined RSSI threshold value according to the first RSSI value.
In this embodiment, in order to improve the accuracy of the RSSI threshold, after the AP determines the RSSI threshold, when the RSSI value of the target terminal is measured, on one hand, the AP compares the measured RSSI value with the RSSI threshold to perform statistics on the target terminal entering the designated area.
On the other hand, the AP compares the measured RSSI value with the maximum RSSI value recorded by the AP; if an RSSI value greater than the maximum RSSI value recorded by the AP (referred to herein as a first RSSI value) is measured, the AP updates the maximum RSSI value recorded by the AP to the first RSSI value, and updates the determined RSSI threshold according to the first RSSI value.
And after the RSSI threshold value is updated, the AP carries out statistics on the target terminal entering the appointed area according to the updated RSSI threshold value.
Optionally, in an embodiment of the present invention, the determining the RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals may include:
according to a preset period, periodically determining an RSSI threshold value used in the current period according to the maximum RSSI value in the RSSI values of a plurality of target terminals measured in the current period;
the updating the determined RSSI threshold when it is determined that the RSSI threshold update condition is satisfied includes:
and in the current period, updating the RSSI threshold value determined in the previous period of the current period according to the maximum RSSI value in the RSSI values of the plurality of target terminals measured in the current period.
In this embodiment, it is considered that, in practical applications, the deployed positions of the APs in the specified area may change, and further, the RSSI values of the target terminals entering the specified area measured by the APs also change.
For example, in the case where the designated area is an in-store, assuming that the AP is initially installed at a location that is not shielded, and the AP is moved to the ceiling or shielded by a shelf or the like in the store, it is obvious that the RSSI value of the target terminal entering the store measured by the AP before a certain time is higher than the RSSI value of the target terminal entering the store measured by the AP after the certain time, and therefore, if the RSSI threshold determined before the certain time is still used for the travel store statistics, the target terminal entering the store may be determined as not entering the store due to the RSSI threshold being too high.
Accordingly, in this embodiment, a period (referred to as a preset period, such as one week, one month, etc.) is preset, and the AP determines the RSSI thresholds in different periods according to the preset period, respectively, where the determined RSSI thresholds are valid in the current period.
For any period, the AP determines the RSSI threshold value used in the current period according to the maximum RSSI value in the RSSI values of the multiple target terminals measured in the current period.
For example, taking a preset period as one month as an example, for any month, the AP determines the RSSI threshold value according to the manner described in the above method embodiment, and in the month, uses the RSSI threshold value to count the target terminals entering the designated area; and when entering the next month, determining the RSSI threshold again according to the mode described in the embodiment of the method, and counting the target terminals entering the designated area by using the newly determined RSSI threshold in the month.
Accordingly, in the current period, after the AP determines the RSSI threshold value according to the manner described in the above embodiment, the RSSI threshold value determined in the previous period (if existing) of the current period may be updated according to the RSSI threshold value, that is, the target terminal entering the designated area is counted by using the RSSI threshold value determined in the current period.
It should be noted that, in the embodiment of the present invention, a manner of determining the RSSI threshold in each period may be referred to in the related description in the above method embodiment. When entering the next period, before the RSSI threshold of the next period is determined, the RSSI threshold determined in the previous period may be used to count the persons entering the designated area; or, the RSSI values of the target terminals measured before the RSSI threshold of the next period is determined may be recorded first, and statistics may be performed in a manner of determining whether to enter a designated area after the RSSI threshold of the next period is determined, which is not described herein in detail.
In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present invention, the technical solutions provided by the embodiments of the present invention are described below with reference to specific examples.
In this embodiment, a WLAN network-based passenger flow statistics of an in-store shop (i.e., a specific area is an in-store shop) is taken as an example.
Referring to fig. 2, the relationship between the RSSI value and the distance is not linear for WLAN radio signals. As shown in fig. 2, the RSSI value decreases with increasing distance by a large margin at a position closer to the AP position; at a distance from the AP location, the RSSI value decreases by a small amount as the distance increases.
In consideration of the multipath effect of electromagnetic wave transmission in an indoor scene, the RSSI value of the wireless sensor network is not changed much at a place far away from the AP. For example, the RSSI value at 30 meters from AP is 25, while the RSSI value at 35 meters from AP may still be 25. But the RSSI value at a position 1 meter away from the AP is 70, and the RSSI value at a position 3 meters away from the AP is 60, namely, the stronger RSSI value has more obvious distance discrimination; and the weak RSSI value can not effectively distinguish the distance, so that the reasonable setting of the RSSI threshold value can accurately judge whether the customer carrying the mobile phone terminal enters the shop or not.
In practical applications, the factors affecting the RSSI value of the signal frame sent by the AP receiving terminal device may include, but are not limited to: signal occlusion, random fluctuations due to multipath effects, and differences in the transmit power of different rate frames of the terminal device. Wherein:
signal occlusion factor: the AP of part stores is directly arranged at the position which is not shielded, such as the position below the ceiling or a metal pipeline; and some stores AP are installed inside the ceiling, and signal shielding exists. The ceiling has a large effect on the attenuation of signals, and the attenuation can reach 10dB or more according to different materials and thicknesses. Obviously, the same RSSI threshold value cannot be used for different types of stores, and the influence degree of the ceiling and other materials on the signal cannot be accurately evaluated, so in order to obtain more accurate threshold parameters, a test needs to be performed in the actual environment of the store to determine the magnitude of the RSSI threshold value. In addition, the RSSI threshold needs to be adapted to environmental changes, considering that the location of the AP installed in the store may change, such as being moved from under the ceiling to inside the ceiling, or the relocation of the shelves of the store causing the AP signal to be blocked.
Random fluctuations due to multipath effects: the multipath effect means that the wireless electromagnetic wave reaches a receiver through different paths, because the lengths of the paths are different, a plurality of samples with different time delays exist in the same symbol on a time domain, and the final signal intensity value randomly fluctuates within a certain range according to the superposition of wave crests and wave troughs. Therefore, if the RSSI value of a single frame is used, the RSSI value may be inaccurate due to the influence of multipath effect, and further, the RSSI threshold may be misjudged if not high.
Difference of transmission power of different rate frames of the terminal equipment: for the same mobile phone terminal, the transmission power corresponding to the frames with different rates is different. For example, the transmit power of a low rate frame may reach the theoretical maximum power. While the transmit power of high rate frames is typically less than the theoretical maximum power.
In this embodiment, in view of the above factors affecting the reception of the RSSI value of the signal frame sent by the terminal device by the AP, in order to improve the accuracy of the store-entering statistics, when the AP measures the RSSI value of the terminal device, the AP may send a plurality of probe frames to the terminal device to trigger the terminal device to respond to the ACK frame, and measure the RSSI value of the terminal device based on the received ACK frame by using the rule that the ACK frame is sent at a fixed low rate to obtain a more accurate RSSI address; when the RSSI threshold value is determined, the RSSI values of a plurality of terminal devices are measured, the RSSI threshold value is determined according to the maximum RSSI value in the actually measured RSSI values of the terminal devices, so that the determined RSSI threshold value is more consistent with the actual scene, the accuracy is higher,
in this embodiment, the incoming statistics implementation process based on the WLAN network is as follows:
1. setting an initial value of Rmax (maximum RSSI value) to 0;
2. when the AP receives a signal frame sent by a terminal device, 10 NULL-DATA frames are sent to the terminal device at a constant rate, the RSSI value of the terminal device is measured based on the received ACK frames, and the average value of the RSSI values of the terminal device measured based on the received ACK frames is determined as the RSSI value of the terminal device; recording the RSSI value of the terminal equipment, comparing the RSSI value with Rmax, and updating Rmax to the RSSI value if the RSSI value is greater than Rmax; otherwise, keeping Rmax unchanged;
3. repeating the step 2 until the number of the measured terminal devices reaches 10, the number of the received frames (ACK frames) reaches 100, and determining the difference value between Rmax and a first RSSI value adjusting parameter (such as 5dB or 6dB) as an RSSI threshold value;
4. performing store statistics based on the RSSI threshold determined in the step 3, namely measuring the RSSI value of the terminal equipment in the mode in the step 2 when receiving a signal frame sent by the terminal equipment, on one hand, comparing the RSSI value with the RSSI threshold, and if the RSSI value is greater than the RSSI threshold, determining that a customer carrying the terminal equipment enters a store; on the other hand, comparing the RSSI value with Rmax, if the RSSI value is larger than Rmax, updating the Rmax to the RSSI value, and updating the RSSI threshold value according to the updated Rmax;
5. performing store-entering statistics on the RSSI value of the terminal equipment recorded before the RSSI threshold value is determined by adopting the RSSI threshold value determined in the step 3, and determining that a customer carrying the terminal equipment enters a store if the recorded RSSI value of the terminal equipment is greater than the RSSI threshold value for any terminal equipment;
6. and (4) repeating the steps 1-5 when a preset period (such as one month or one week) is reached.
As can be seen from the above description, in the technical solutions provided in the embodiments of the present invention, when signal frames sent by a plurality of target terminals are received, an AP sends a probe packet to the plurality of target terminals, RSSI values of the plurality of target terminals are measured based on the received ACK frames of the plurality of target terminals, and an RSSI threshold is determined according to a maximum RSSI value among the RSSI values of the plurality of target terminals, and when it is determined that an RSSI threshold update condition is satisfied, the determined RSSI threshold is updated, and further, the target terminals entering a specified area are counted according to the determined RSSI threshold, so that automatic determination of the RSSI threshold is implemented, efficiency of determining the RSSI threshold is improved, and the RSSI threshold can be adaptively updated when the update condition is satisfied, and accuracy of the RSSI threshold is improved.
Referring to fig. 3, a schematic structural diagram of an information statistics apparatus according to an embodiment of the present invention is provided, where the apparatus may be applied to an AP in the foregoing method embodiment, and as shown in fig. 3, the information statistics apparatus may include:
a receiving unit 310, configured to receive signal frames sent by a plurality of target terminals;
a sending unit 320, configured to send probe frames to the multiple target terminals when the receiving unit 310 receives signal frames sent by the multiple target terminals;
a measuring unit 330, configured to measure RSSI values of the target terminals based on the receiving unit 310 receiving ACK frames sent by the target terminals;
a determining unit 340, configured to determine an RSSI threshold according to a maximum RSSI value of the RSSI values of the plurality of target terminals;
an updating unit 350, configured to update the determined RSSI threshold when it is determined that the RSSI threshold updating condition is satisfied;
a counting unit 350, configured to count, according to the determined RSSI threshold, the target terminals entering the designated area.
In an optional embodiment, the determining unit 340 is specifically configured to determine the RSSI threshold according to a maximum RSSI value of the RSSI values of the plurality of target terminals when the number of the plurality of target terminals reaches a first number threshold and the number of frames received by the receiving unit 310 reaches a second number threshold; or, determining the RSSI threshold value according to the maximum RSSI value in the RSSI values measured in the preset time length.
In an optional embodiment, the determining unit 340 is specifically configured to determine a difference between the maximum RSSI value and a first RSSI value adjustment parameter as an RSSI threshold; wherein the first RSSI value adjustment parameter is greater than 0; or, determining the product of the maximum RSSI value and a second RSSI value adjusting parameter as an RSSI threshold value; and the second RSSI value adjusting parameter is less than 1.
In an optional embodiment, the updating unit 350 is specifically configured to update the recorded maximum RSSI value to the first RSSI value when the first RSSI value measured by the measuring unit is greater than the recorded maximum RSSI value;
the determining unit 340 is further configured to update the RSSI threshold according to the first RSSI value.
In an optional embodiment, the determining unit 340 is specifically configured to periodically determine, according to a preset period, an RSSI threshold used in the current period according to a maximum RSSI value of RSSI values of multiple target terminals measured in the current period
The updating unit 350 is specifically configured to update, in the current period, the RSSI threshold determined in the previous period of the current period according to the maximum RSSI value among the RSSI values of the multiple target terminals measured in the current period.
Fig. 4 is a schematic diagram of a hardware structure of an information statistics apparatus according to an embodiment of the present invention. The information statistics apparatus may include a processor 401, a machine-readable storage medium 402 having machine-executable instructions stored thereon. The processor 401 and the machine-readable storage medium 402 may communicate via a system bus 403. Also, the processor 401 may perform the above-described information statistics method by reading and executing machine-executable instructions in the machine-readable storage medium 402 corresponding to the information statistics logic.
The machine-readable storage medium 402 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be volatile memory, non-volatile memory, or similar storage medium. In particular, the machine-readable storage medium 402 may be a RAM (random Access Memory), a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
Embodiments of the present invention also provide a machine-readable storage medium, such as machine-readable storage medium 402 in fig. 4, comprising machine-executable instructions that are executable by processor 401 in an information statistics apparatus to implement the information statistics method described above.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. 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 can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
As can be seen from the above embodiments, when signal frames sent by a plurality of target terminals are received, an AP sends a probe message to the plurality of target terminals, RSSI values of the plurality of target terminals are measured based on the received ACK frames of the plurality of target terminals, and an RSSI threshold is determined according to a maximum RSSI value among the RSSI values of the plurality of target terminals, and when it is determined that an RSSI threshold update condition is satisfied, the determined RSSI threshold is updated, and then, the target terminals entering a designated area are counted according to the determined RSSI threshold, thereby implementing automatic determination of the RSSI threshold, improving efficiency of determining the RSSI threshold, and the RSSI threshold can be adaptively updated when the update condition is satisfied, and improving accuracy of the RSSI threshold.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. An information statistical method applied to an Access Point (AP) deployed in a specified area, the method comprising:
when signal frames sent by a plurality of target terminals are received, sending detection frames to the plurality of target terminals;
measuring RSSI values of the target terminals based on the received ACK frames sent by the target terminals;
determining an RSSI threshold value according to the maximum RSSI value in the RSSI values of the target terminals, and updating the determined RSSI threshold value when the RSSI threshold value updating condition is determined to be met;
and counting the target terminals entering the designated area according to the determined RSSI threshold value.
2. The method of claim 1, wherein determining the RSSI threshold from a largest RSSI value among the RSSI values of the plurality of target terminals comprises:
when the number of the target terminals reaches a first number threshold and the number of the received ACK frames reaches a second number threshold, determining an RSSI threshold according to the maximum RSSI value in the RSSI values of the target terminals;
or the like, or, alternatively,
and determining the RSSI threshold value according to the maximum RSSI value in the RSSI values of the plurality of target terminals measured in the preset time length.
3. The method of claim 1 or 2, wherein the determining the RSSI threshold from the largest RSSI value among the RSSI values of the plurality of target terminals comprises:
determining the difference value of the maximum RSSI value and a first RSSI value adjusting parameter as an RSSI threshold value; wherein the first RSSI value adjustment parameter is greater than 0;
or the like, or, alternatively,
determining the product of the maximum RSSI value and a second RSSI value adjusting parameter as an RSSI threshold value; and the second RSSI value adjusting parameter is less than 1.
4. The method of claim 1, wherein updating the determined RSSI threshold when it is determined that an RSSI threshold update condition is satisfied comprises:
updating the recorded maximum RSSI value to the first RSSI value when the measured first RSSI value is greater than the recorded maximum RSSI value;
and updating the RSSI threshold value according to the first RSSI value.
5. The method of claim 1, wherein determining the RSSI threshold from a largest RSSI value among the RSSI values of the plurality of target terminals comprises:
according to a preset period, periodically determining an RSSI threshold value used in the current period according to the maximum RSSI value in the RSSI values of a plurality of target terminals measured in the current period;
when it is determined that the RSSI threshold update condition is satisfied, updating the determined RSSI threshold includes:
in the current period, updating the RSSI threshold value determined in the previous period of the current period according to the maximum RSSI value in the RSSI values of the plurality of target terminals measured in the current period.
6. An information statistics device applied to a Wireless Local Area Network (WLAN) Access Point (AP) deployed in a specified area, the device comprising:
the receiving unit is used for receiving signal frames sent by a plurality of target terminals;
a sending unit, configured to send probe frames to the multiple target terminals when the receiving unit receives the signal frames sent by the multiple target terminals;
the measuring unit is further used for measuring RSSI values of the target terminals based on the ACK frames sent by the target terminals and received by the receiving unit;
a determining unit, configured to determine an RSSI threshold according to a maximum RSSI value among the RSSI values of the plurality of target terminals;
an updating unit configured to update the determined RSSI threshold when it is determined that the RSSI threshold update condition is satisfied;
and the counting unit is used for counting the target terminal entering the designated area according to the determined RSSI threshold value.
7. The apparatus of claim 6,
the determining unit is specifically configured to determine the RSSI threshold according to a maximum RSSI value of the RSSI values of the plurality of target terminals when the number of the plurality of target terminals reaches a first number threshold and the number of the ACK frames received by the receiving unit reaches a second number threshold; or, determining the RSSI threshold value according to the maximum RSSI value in the RSSI values measured in the preset time length.
8. The apparatus according to claim 6 or 7,
the determining unit is specifically configured to determine a difference between the maximum RSSI value and a first RSSI value adjustment parameter as an RSSI threshold; wherein the first RSSI value adjustment parameter is greater than 0; or, determining the product of the maximum RSSI value and a second RSSI value adjusting parameter as an RSSI threshold value; and the second RSSI value adjusting parameter is less than 1.
9. The apparatus of claim 6,
the updating unit is specifically configured to update the recorded maximum RSSI value to the first RSSI value when the first RSSI value measured by the measuring unit is greater than the recorded maximum RSSI value;
the determining unit is further configured to update the RSSI threshold according to the first RSSI value.
10. The apparatus of claim 6,
the determining unit is specifically configured to periodically determine, according to a preset period, an RSSI threshold used in the current period according to a maximum RSSI value among RSSI values of a plurality of target terminals measured in the current period;
the updating unit is specifically configured to update, in a current period, the RSSI threshold determined in a previous period of the current period according to a maximum RSSI value among the RSSI values of the plurality of target terminals measured in the current period.
CN201910322938.8A 2019-04-22 2019-04-22 Information statistical method and device Active CN110087255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910322938.8A CN110087255B (en) 2019-04-22 2019-04-22 Information statistical method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910322938.8A CN110087255B (en) 2019-04-22 2019-04-22 Information statistical method and device

Publications (2)

Publication Number Publication Date
CN110087255A CN110087255A (en) 2019-08-02
CN110087255B true CN110087255B (en) 2022-03-01

Family

ID=67415898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910322938.8A Active CN110087255B (en) 2019-04-22 2019-04-22 Information statistical method and device

Country Status (1)

Country Link
CN (1) CN110087255B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453307A (en) * 2020-03-25 2021-09-28 瑞昱半导体股份有限公司 Communication device and method for dynamically adjusting packet detection threshold
CN112184941A (en) * 2020-09-28 2021-01-05 深圳技术大学 Attendance checking method and system based on WiFi signal intensity data

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747464A (en) * 2014-01-17 2014-04-23 北京赢销通软件技术有限公司 Mobile terminal motion trail analyzing system
CN104217245A (en) * 2014-08-27 2014-12-17 高阳 People stream trajectory tracking and area dwell time statistics method and system based on heterogeneous network
CN104573859A (en) * 2014-12-31 2015-04-29 合肥城市云数据中心有限公司 Human traffic prediction method based on Wifi positioning and cloud data processing technology
CN106210144A (en) * 2016-08-22 2016-12-07 北京易游华成科技有限公司 People flow rate statistical method and apparatus
CN106199237A (en) * 2016-06-21 2016-12-07 广州视源电子科技股份有限公司 The system of test device antenna
CN106341465A (en) * 2016-08-30 2017-01-18 成都西加云杉科技有限公司 Statistical method, device and system of passenger flow and population flow distribution
CN106550326A (en) * 2016-10-20 2017-03-29 华迪计算机集团有限公司 A kind of scenic spot passenger flow detecting system and method based on wireless apss and WiFi network
CN106982411A (en) * 2017-03-20 2017-07-25 华南理工大学 A kind of real-time passenger flow statistical method based on WIFI probe datas
EP3227869A1 (en) * 2014-12-03 2017-10-11 Tyco Fire & Security GmbH Access control system
CN107306422A (en) * 2016-04-25 2017-10-31 西门子公司 A kind of method and apparatus for crowded detection
CN107333260A (en) * 2017-06-26 2017-11-07 迈普通信技术股份有限公司 A kind of method and device for the real MAC address for obtaining terminal
CN107995649A (en) * 2017-11-28 2018-05-04 四川长虹电器股份有限公司 Realize that the method and system of flow of the people is checked card or counted in attendance by WIFI probes
CN109214497A (en) * 2018-09-07 2019-01-15 珠海格力电器股份有限公司 Demographic method and device, intelligent home equipment control method and device, air-conditioning

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9499995B2 (en) * 2013-08-08 2016-11-22 Intel IP Corporation Coverage extension level for coverage limited device
WO2015115961A1 (en) * 2014-01-31 2015-08-06 Telefonaktiebolaget L M Ericsson (Publ) Methods and devices for conditional attachment to a network
JP6585111B2 (en) * 2017-03-15 2019-10-02 株式会社東芝 Wireless communication system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747464A (en) * 2014-01-17 2014-04-23 北京赢销通软件技术有限公司 Mobile terminal motion trail analyzing system
CN104217245A (en) * 2014-08-27 2014-12-17 高阳 People stream trajectory tracking and area dwell time statistics method and system based on heterogeneous network
EP3227869A1 (en) * 2014-12-03 2017-10-11 Tyco Fire & Security GmbH Access control system
CN104573859A (en) * 2014-12-31 2015-04-29 合肥城市云数据中心有限公司 Human traffic prediction method based on Wifi positioning and cloud data processing technology
CN107306422A (en) * 2016-04-25 2017-10-31 西门子公司 A kind of method and apparatus for crowded detection
CN106199237A (en) * 2016-06-21 2016-12-07 广州视源电子科技股份有限公司 The system of test device antenna
CN106210144A (en) * 2016-08-22 2016-12-07 北京易游华成科技有限公司 People flow rate statistical method and apparatus
CN106341465A (en) * 2016-08-30 2017-01-18 成都西加云杉科技有限公司 Statistical method, device and system of passenger flow and population flow distribution
CN106550326A (en) * 2016-10-20 2017-03-29 华迪计算机集团有限公司 A kind of scenic spot passenger flow detecting system and method based on wireless apss and WiFi network
CN106982411A (en) * 2017-03-20 2017-07-25 华南理工大学 A kind of real-time passenger flow statistical method based on WIFI probe datas
CN107333260A (en) * 2017-06-26 2017-11-07 迈普通信技术股份有限公司 A kind of method and device for the real MAC address for obtaining terminal
CN107995649A (en) * 2017-11-28 2018-05-04 四川长虹电器股份有限公司 Realize that the method and system of flow of the people is checked card or counted in attendance by WIFI probes
CN109214497A (en) * 2018-09-07 2019-01-15 珠海格力电器股份有限公司 Demographic method and device, intelligent home equipment control method and device, air-conditioning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
嵌入式多功能智能公交车载终端系统的研究与设计;袁海全 等;《电脑与信息技术》;20100504;第18卷(第1期);全文 *

Also Published As

Publication number Publication date
CN110087255A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CA2920189C (en) Detection of multipath and transmit level adaptation thereto for ultrasonic locationing
JP4527532B2 (en) Mobile positioning system
CN110087255B (en) Information statistical method and device
CN107431899B (en) Mobile terminal, operation method thereof, and non-transitory computer-readable storage medium
EP2491417B1 (en) Apparatus and method for determining a correspondence of a position with a reference position
WO2012032376A1 (en) Signal strength profiling
CN103826199A (en) Apparatus and method for performing low-power geo-fence operations
CN111447596B (en) Bluetooth low-power-consumption equipment and method for sending Bluetooth low-power-consumption advertisement data
US20190069152A1 (en) Method and system for entry and exit monitoring using bluetooth low energy (ble) beacons
US20180310243A1 (en) Terminal apparatus, communication control apparatus, communication system, and communication control method
JPWO2007119314A1 (en) COMMUNICATION AREA DETECTION SYSTEM AND METHOD, BASE STATION AND MOBILE DEVICE USED FOR THE SAME
WO2022047581A1 (en) Parking sensor device for determining occupancy of a parking space
Gallo et al. WMPS: A positioning system for localizing legacy 802.11 devices
Kalikova et al. People counting in smart buildings
US20110165845A1 (en) Method and apparatus for determining the location of a node in a wireless system
US10295646B2 (en) Positioning device, positioning system, positioning method, and computer-readable medium
CN108076465B (en) Discrimination method and device for pseudo base station
CN110108007B (en) Method and device for determining wind sweeping range of wind outlet equipment and air conditioner
US20090197613A1 (en) Method and apparatus for determining the location of a node in a wireless system
Horváth et al. Channel allocation technique for eliminating interference caused by RLANs on meteorological radars in 5 GHz band
CN116683941B (en) Radar signal detection method and device, electronic equipment and storage medium
Waters et al. WLAN scanning strategies for RSSI-based positioning
US20220260703A1 (en) Control device for a motor vehicle access or locating system and method
US20240029563A1 (en) Parking sensor device for determining occupancy of a parking space
CN118250682A (en) FTTR-based dynamic roaming threshold determination method, FTTR-based dynamic roaming threshold determination device, FTTR-based dynamic roaming threshold determination equipment and medium

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