CN108924933B - Wireless data acquisition method and equipment - Google Patents

Wireless data acquisition method and equipment Download PDF

Info

Publication number
CN108924933B
CN108924933B CN201810603196.1A CN201810603196A CN108924933B CN 108924933 B CN108924933 B CN 108924933B CN 201810603196 A CN201810603196 A CN 201810603196A CN 108924933 B CN108924933 B CN 108924933B
Authority
CN
China
Prior art keywords
wireless
acquisition
channel
acquisition module
wireless channel
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
CN201810603196.1A
Other languages
Chinese (zh)
Other versions
CN108924933A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201810603196.1A priority Critical patent/CN108924933B/en
Publication of CN108924933A publication Critical patent/CN108924933A/en
Application granted granted Critical
Publication of CN108924933B publication Critical patent/CN108924933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a wireless data acquisition method and wireless data acquisition equipment, which are used for solving the problem of low wireless data acquisition rate when a wireless acquisition module scans on a fixed channel in the prior art. The embodiment of the invention firstly determines the channel information of each wireless channel acquired last time, then determines the channel priority according to the channel information, and then determines the current acquisition time of the wireless channel according to the minimum acquisition time of the channel and the channel priority, thereby determining the acquisition requirement. Because each adjusted wireless acquisition module meets the acquisition requirement, the acquisition rate of wireless data can be improved, and the acquisition rate of MAC addresses and network virtual identities is improved.

Description

Wireless data acquisition method and equipment
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a wireless data acquisition method and device.
Background
With the rapid development of Wireless communication technology, more and more terminals with a WIFI (Wireless Fidelity) access function are provided. WIFI is used as a low-cost wireless local area network access mode to provide services for more and more users, and according to statistics, the number of terminals with WIFI access functions in the whole world in 2015 reaches 1200 hundred million.
A MAC (Media Access Control) address, also called a hardware address, serves as a device identifier of the mobile terminal to provide a wireless Access service to each wireless terminal.
The network virtual identity is an identifier of a person who surfs the internet, for example, a login account when logging in the APP, and the login account can be used as the identifier of the person who surfs the internet, that is, the network virtual identity.
In the face of increasingly large internet systems, equipment with a WIFI function is increasingly popularized, internet access personnel are more and more, and the MAC address and the network virtual identity of the terminal can be used as the basis for people flow statistics of criminal investigation, public security and large markets, so that safety guarantee is provided for increasingly complex social environments.
For the collection of the MAC address and the network virtual identity, key information needs to be extracted from a large number of wireless data packets, that is, the wireless data packets are collected first, and then the MAC address and the network virtual identity are extracted from the wireless data packets. At present, in order to improve the acquisition rate of wireless data packets, the prior art has been developed from a single-frequency module based on 2.4G to a frequency band module using dual-frequency 2.4G and 5G, which solves the problem that the original single-frequency module only acquires a 2.4GHz frequency band. According to the method, the acquisition rate of the wireless data packets is improved through hardware, each wireless acquisition module scans on a fixed channel, the wireless data packets on a plurality of channels can be acquired at the same time, and the data flow of the upper layer has burstiness, parallelism and instability, so that the wireless data acquisition rate is low when the wireless acquisition modules scan on the fixed channel.
In summary, when the wireless acquisition module scans on the fixed channel, there is a problem of low wireless data acquisition rate.
Disclosure of Invention
The invention provides a wireless data acquisition method and wireless data acquisition equipment, which are used for solving the problem of low wireless data acquisition rate when a wireless acquisition module scans on a fixed channel in the prior art.
In a first aspect, an embodiment of the present invention provides a wireless data acquisition method, including: determining channel information according to data transmitted by a corresponding wireless channel acquired last time by each wireless acquisition module; determining the channel priority of each wireless channel according to the determined channel information; determining the current acquisition time length of each wireless channel according to the minimum acquisition time length of the channel and the determined channel priority; if at least one wireless acquisition module does not meet the acquisition requirements, adjusting a wireless channel corresponding to each wireless acquisition module so that each adjusted wireless acquisition module meets the acquisition requirements; acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module; the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total acquisition time of the wireless acquisition module at this time is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module at this time.
The method includes the steps that firstly, channel information of each wireless channel is determined according to data transmitted by the corresponding wireless channel acquired by each wireless acquisition module last time, then, channel priority of each wireless channel is determined according to the determined channel information of each channel, then, acquisition time of each wireless channel at this time is determined according to the minimum acquisition time of the channel and the determined priority of the wireless channel, if the wireless acquisition module comprises the wireless acquisition module which does not accord with the acquisition requirement, the wireless channel corresponding to each wireless acquisition module is adjusted so that each adjusted wireless acquisition module accords with the acquisition requirement, finally, wireless data are acquired according to the adjusted acquisition time of the wireless channel corresponding to each wireless acquisition module, wherein the acquisition requirement is that the difference value between the total acquisition time of the wireless acquisition module at this time and the average value of the total acquisition time of all the wireless acquisition modules at this time is within an error range, and the total acquisition time of the wireless acquisition module at this time is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module. Because one wireless acquisition module does not meet the acquisition requirement, the wireless channel corresponding to the wireless acquisition module is adjusted, all the adjusted wireless acquisition modules meet the acquisition requirement, and the acquisition rate of wireless data can be improved, so that the acquisition rate of MAC addresses and network virtual identities in the wireless data is improved.
In one possible implementation, the channel information includes some or all of the following: a number of valid MACs, a number of valid virtual identities IDs, and a valid wireless signal strength indication indicator.
In the above possible implementation manner, the channel information includes part or all of the valid MAC numbers, the valid virtual identity IDs, and the valid radio signal strength indicator. That is to say, according to the data transmitted by the corresponding wireless channel acquired last time by each wireless acquisition module, part or all of the effective MAC number, the effective virtual identity ID number, and the effective wireless signal strength indicator can be determined, so as to determine the priority of each wireless channel.
In one possible implementation, the channel information includes a number of valid MACs, a number of valid virtual identities IDs, and a valid radio signal strength indication indicator; determining a channel priority for each wireless channel according to the determined channel information, including: aiming at any wireless channel, summing and normalizing the effective MAC number and the effective virtual Identity (ID) number of the wireless channel to obtain a first normalized value; summing and normalizing the effective wireless signal strength indication indexes of the wireless channel to obtain a second normalized value; multiplying the first normalization value by a preset first weight value to obtain a first product, and multiplying the second normalization value by a preset second weight value to obtain a second product; determining a priority value for the wireless channel according to the first product and the second product; and determining the channel priority of each wireless channel according to the priority value of each wireless channel.
In the above possible implementation manner, when the channel information includes the number of valid MACs, the number of valid virtual IDs, and the valid radio signal strength indication indicator, the channel priority of each radio channel is determined.
In a possible implementation manner, the determining the current acquisition duration of each wireless channel according to the minimum channel acquisition duration and the determined channel priority includes: taking the minimum channel acquisition time as the acquisition time of the wireless channel with the lowest channel priority; and aiming at any wireless channel except the wireless channel with the lowest channel priority, taking the product of the ratio of the priority value of the wireless channel to the priority value of the wireless channel with the lowest priority and the minimum acquisition time length of the channel as the acquisition time length of the wireless channel at this time.
According to the possible implementation mode, according to the minimum channel acquisition time and the channel priority, the method for determining the acquisition time of each wireless channel at this time comprises the steps of firstly taking the minimum channel acquisition market as the acquisition time of the wireless channel with the lowest channel priority, and then taking the product of the ratio of the priority value of the wireless channel and the priority value of the wireless channel with the lowest priority and the minimum channel acquisition time of the wireless channel as the acquisition time of the wireless channel at this time aiming at any wireless channel except the wireless channel with the lowest channel priority, so as to calculate the acquisition time of each wireless channel at this time.
In a possible implementation manner, the adjusting the wireless channel corresponding to each wireless acquisition module includes: adopting a depth-first search algorithm, and dividing the wireless channels into N groups according to the current acquisition time of each wireless channel and the number N of the wireless acquisition modules, wherein any two groups of wireless channels are different, and the difference value between the sum of the current acquisition time of the wireless channels included in each group and the average value of the current total acquisition time of the N groups of wireless channels is within an error range; and distributing the determined N groups to N wireless acquisition modules, wherein each wireless acquisition module is distributed to one group, the groups distributed by different wireless acquisition modules are different, and N is a positive integer.
According to the possible implementation mode, the wireless channels corresponding to each wireless acquisition module are determined to be adjusted, the wireless channels are divided into N groups by adopting a depth-first search algorithm according to the current acquisition time length of each wireless channel and the number N of the wireless acquisition modules, the difference value between the sum of the current acquisition time lengths of the wireless channels included in each group and the average value of the current total acquisition time lengths of the N groups of wireless channels is within an error range, and then the determined N groups are distributed to the N wireless acquisition modules, so that the wireless channels corresponding to each wireless acquisition module are adjusted.
In a possible implementation manner, if each wireless acquisition module meets the acquisition requirement, each wireless acquisition module is triggered to acquire data according to the acquisition duration, wherein the acquisition duration is the acquisition duration of the wireless channel corresponding to each wireless acquisition module.
In the possible implementation manner, if each wireless acquisition module meets the acquisition requirement, that is, the difference between the current total acquisition time of each wireless acquisition module and the average value of the current total acquisition time of all the wireless acquisition modules is within the error range, the wireless channel corresponding to each wireless acquisition module is not adjusted, and each wireless acquisition module acquires data according to the current acquisition time of the corresponding wireless channel.
In a possible implementation manner, after the adjusting the wireless channel corresponding to each wireless acquisition module, the method further includes: and triggering each wireless acquisition module to acquire data according to the adjusted acquisition duration of the corresponding wireless channel.
According to the possible implementation mode, after the wireless channel is adjusted, the wireless channel corresponding to each wireless acquisition module is adjusted, and when the wireless acquisition modules acquire data, the data are acquired according to the acquisition duration of the wireless channel corresponding to each adjusted wireless acquisition module. Because the wireless channel corresponding to each wireless acquisition module is adjusted, each adjusted wireless acquisition module meets the acquisition requirement, and the data acquisition rate can be improved.
In a second aspect, an embodiment of the present invention further provides a wireless data acquisition device, at least one processing unit and at least one storage unit, where the storage unit stores program codes, and when the program codes are executed by the processing unit, the processing unit is caused to perform the following processes:
determining channel information according to data transmitted by the corresponding wireless channel acquired last time by each wireless acquisition module; determining the channel priority of each wireless channel according to the determined channel information; determining the current acquisition time length of each wireless channel according to the minimum acquisition time length of the channel and the determined channel priority; if at least one wireless acquisition module does not meet the acquisition requirement, adjusting a wireless channel corresponding to each wireless acquisition module so that each adjusted wireless acquisition module meets the acquisition requirement; acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module; the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total acquisition time of the wireless acquisition module at this time is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module at this time.
In a third aspect, an embodiment of the present invention further provides a wireless data acquisition device, where the wireless data acquisition device is configured to:
an information determination module: the wireless acquisition module is used for acquiring data transmitted by a corresponding wireless channel last time according to each channel wireless acquisition module and determining channel information;
a priority determination module: the channel priority of each wireless channel is determined according to the determined channel information;
a duration determination module: the wireless channel acquisition device is used for determining the acquisition time of each wireless channel at this time according to the minimum acquisition time of the channel and the determined channel priority;
an adjustment module: the wireless acquisition module is used for adjusting the wireless channel corresponding to each wireless acquisition module if each wireless acquisition module comprises the wireless acquisition module which does not meet the acquisition requirement, so that each adjusted wireless acquisition module meets the acquisition requirement;
the wireless data acquisition module: the wireless acquisition module is used for acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module;
the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total acquisition time of the wireless acquisition module at this time is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module at this time.
In a fourth aspect, the present application also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of the method of the first aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the fourth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings may be obtained according to the drawings without inventive labor.
FIG. 1 is a schematic diagram of a wireless acquisition module entering a next acquisition cycle when acquiring wireless data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a wireless data collection method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for determining a need for adjustment of a wireless channel and a method for performing the method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a wireless data collection method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a system for wireless data acquisition according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a first wireless data acquisition device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second wireless data acquisition device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the development of internet technology, devices with wifi functions are more and more, and when people surf the internet by using the devices with wifi functions, network virtual identities are more and more, but the network virtual identities serve as identification IDs of surfers and play an important role in national security and social stability, so that the requirements of effective supervision on the network virtual identities are met.
On a large-scale market or a highway, the pedestrian flow or the traffic flow can be tested according to equipment for collecting the wifi function, namely the MAC address, so that the order can be effectively maintained or the traffic can be controlled.
Therefore, wireless terminals are currently developed for MAC address acquisition and network virtual identity acquisition, and are used as important tools for criminal investigation, public security, large-scale market people flow statistics and the like, so that safety guarantee is provided for increasingly complex social environments.
Key information needs to be extracted from a large number of wireless data packets in MAC address acquisition and network virtual identity acquisition, a 2.4G or 5G radio frequency band is usually used for WIFI, a dual-frequency wireless acquisition module is used for switching channels at regular time to scan 2.4G and 5G frequency band wireless data packets, and the dual-frequency wireless acquisition module is used for acquiring a plurality of channels, so that all wireless data packets cannot be captured, the acquisition rate of the wireless data packets is improved, and the acquisition rate of MAC addresses and network virtual identities is also improved.
When the wireless acquisition module acquires wireless data, each acquisition module corresponds to at least one acquisition channel, for example, there are three wireless acquisition modules, wireless acquisition module a, wireless acquisition module B, wireless acquisition module C, there are 11 wireless channels, wireless channel 1, wireless channel 2, wireless channel 3, wireless channel 4, wireless channel 5, wireless channel 6, wireless channel 7, wireless channel 8, wireless channel 9, wireless channel 10, wireless channel 11.
Each wireless acquisition module corresponds to at least one wireless channel, and if the wireless acquisition module A corresponds to a wireless channel 1, a wireless channel 2 and a wireless channel 3; the acquisition module B corresponds to a wireless channel 4, a wireless channel 5 and a wireless channel 6; the acquisition module C corresponds to the wireless channel 7, the wireless channel 8, the wireless channel 9, the wireless channel 10 and the wireless channel 11.
Meanwhile, each wireless channel corresponds to an acquisition duration, that is, the time that the wireless acquisition module stays in the wireless channel when acquiring wireless data, for example, the acquisition duration corresponding to the wireless channel 1 is 20ms, the acquisition duration corresponding to the wireless channel 2 is 21ms, the acquisition duration corresponding to the wireless channel 3 is 20.5ms, the acquisition duration corresponding to the wireless channel 4 is 22ms, the acquisition duration corresponding to the wireless channel 5 is 20ms, the acquisition duration corresponding to the wireless channel 6 is 20ms, the acquisition duration corresponding to the wireless channel 7 is 21ms, the acquisition duration corresponding to the wireless channel 8 is 20.5ms, the acquisition duration corresponding to the wireless channel 9 is 20ms, the acquisition duration corresponding to the wireless channel 10 is 20ms, and the acquisition duration corresponding to the wireless channel 11 is 20ms.
The total collection time length is (20 +21+20.5+22+ 20) ms, that is, 225ms is the total collection time length.
When the wireless acquisition module acquires wireless data, the wireless acquisition module acquires the wireless data according to the acquisition duration corresponding to the wireless channel corresponding to the wireless acquisition module, for example, the wireless acquisition module a corresponds to the wireless channel 1, the wireless channel 2 and the wireless channel 3, and the acquisition duration corresponding to the wireless acquisition module is (20 +21+ 20.5) ms, that is, 61.5ms.
When the wireless acquisition module acquires wireless data, after one round of acquisition is finished, the next round of acquisition is carried out. For the wireless acquisition module a, the last corresponding wireless channel is wireless channel 1, wireless channel 2, and wireless channel 3, the acquisition duration corresponding to wireless channel 1 is 20ms, the acquisition duration corresponding to wireless channel 2 is 21ms, and the acquisition duration corresponding to wireless channel 3 is 20.5ms, then the last acquisition duration of wireless channel is wireless channel 1 is 20ms, wireless channel 2 is 21ms, wireless channel 3 is 20.5ms, and the last acquisition duration of wireless acquisition module a is (20 +21+ 20.5) ms, that is, 61.5ms.
When the next round of acquisition is started, if the acquisition time length of the wireless channel changes, the acquisition time length corresponding to the wireless channel 1 is 22ms, the acquisition time length corresponding to the wireless channel 2 is 20.5ms, and the acquisition time length corresponding to the wireless channel 3 is 21ms, the acquisition time length corresponding to the wireless channel at this time is the acquisition time length of this time, and the changed acquisition time length (22 +20.5+ 21) ms, namely 63.5ms, corresponding to the wireless acquisition module a is the acquisition time length of this time of the wireless acquisition module a.
When the wireless acquisition modules acquire wireless data, after all the wireless acquisition modules finish acquiring, the next round of acquisition is started.
As shown in fig. 1, the wireless acquisition module according to the embodiment of the present invention enters a next acquisition cycle when acquiring wireless data.
In fig. 1, a wireless acquisition module a corresponds to a wireless channel 1, a wireless channel 2, and a wireless channel 3; the acquisition module B corresponds to a wireless channel 4, a wireless channel 5 and a wireless channel 6; the acquisition module C corresponds to the wireless channel 7, the wireless channel 8, the wireless channel 9, the wireless channel 10 and the wireless channel 11.
Acquisition duration that radio channel 1 corresponds is 20ms, acquisition duration that radio channel 2 corresponds is 21ms, acquisition duration that radio channel 3 corresponds is 20.5ms, acquisition duration that radio channel 4 corresponds is 22ms, acquisition duration that radio channel 5 corresponds is 20ms, acquisition duration that radio channel 6 corresponds is 20ms, acquisition duration that radio channel 7 corresponds is 21ms, acquisition duration that radio channel 8 corresponds is 20.5ms, acquisition duration that radio channel 9 corresponds is 20ms, acquisition duration that radio channel 10 corresponds is 20ms, acquisition duration that radio channel 11 corresponds is 20ms.
The acquisition duration corresponding to the wireless acquisition module a is 61.5ms, the acquisition duration corresponding to the wireless acquisition module B is 62ms, and the acquisition duration corresponding to the wireless acquisition module C is 101.5ms. Because the wireless acquisition module C has the longest acquisition time, after the acquisition of the wireless acquisition module C is finished, the wireless acquisition module A, the wireless acquisition module B and the wireless acquisition module C enter the next round of acquisition.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
The wireless data acquisition method provided by the embodiment of the invention, as shown in fig. 2, specifically comprises the following steps:
s200, determining channel information according to data transmitted by the corresponding wireless channel acquired last time by each wireless acquisition module;
s201, determining the channel priority of each wireless channel according to the determined channel information;
s202, determining the current acquisition time of each wireless channel according to the minimum acquisition time of the channel and the determined channel priority;
s203, if each wireless acquisition module comprises a wireless acquisition module which does not meet the acquisition requirement, adjusting a wireless channel corresponding to each wireless acquisition module so as to enable each adjusted wireless acquisition module to meet the acquisition requirement;
s204, acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module;
the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total collection time of the wireless collection module is the sum of the collection time of each wireless channel corresponding to the wireless collection module.
The method comprises the steps of firstly, determining channel information of each wireless channel according to data transmitted by the corresponding wireless channel acquired by each wireless acquisition module last time, then determining channel priority of each wireless channel according to the determined channel information of each channel, then determining acquisition time of each wireless channel according to the minimum acquisition time of the channel and the determined priority of the wireless channel, adjusting the wireless channel corresponding to each wireless acquisition module if the wireless acquisition module comprises the wireless acquisition module which does not accord with the acquisition requirement, so that each adjusted wireless acquisition module accords with the acquisition requirement, and finally acquiring the wireless data according to the adjusted acquisition time of the wireless channel corresponding to each wireless acquisition module, wherein the acquisition requirement is that the difference value between the current total acquisition time of the wireless acquisition module and the average value of the current total acquisition time of all the wireless acquisition modules is within an error range, and the current total acquisition time of the wireless acquisition module is the sum of the current acquisition time of each wireless channel corresponding to the wireless acquisition module. Because one wireless acquisition module does not accord with the acquisition requirement, the wireless channel corresponding to the wireless acquisition module is adjusted, all the adjusted wireless acquisition modules accord with the acquisition requirement, and the acquisition rate of wireless data can be improved, so that the acquisition rate of MAC addresses and network virtual identities in the wireless data is improved.
The wireless acquisition module can be a 2.4G and 5G dual-frequency wireless acquisition module, and can also be a wireless acquisition module of other frequency bands.
Firstly, according to the corresponding wireless channel transmission data acquired last time by each wireless acquisition module, determining channel information.
In implementation, when the wireless acquisition module acquires wireless data for the first time, the wireless channels may be randomly allocated. For example, the 2.4G frequency band has 13 wireless channels, and if there are 3 wireless acquisition modules, when allocation is performed for the first time, the wireless channels allocated by the module 1 are channel 1, channel 2, channel 3, and channel 4; the wireless channels allocated by the module 2 are a channel 5, a channel 6, a channel 7 and a channel 8; the wireless channels allocated by the module 3 are channel 9, channel 10, channel 11, channel 12 and channel 13.
When the wireless acquisition module is used for acquiring for the first time, wireless data are acquired according to the allocated channels, and then channel information of each channel is determined according to the acquired wireless data in each wireless channel.
Wherein the channel information includes part or all of the following: a number of valid MACs, a number of valid virtual identities IDs, and a valid wireless signal strength indication indicator.
The effective MAC number is the number of source MAC addresses and/or the number of destination MAC addresses; the number of the effective virtual identity identification numbers ID is the number of the marks of the Internet surfing personnel; the effective Signal Strength indicator is the channel AP (Application Processor) Strength and the indicator RSSI (Received Signal Strength indicator).
After one scanning round is finished, counting messages on a wireless channel, and analyzing BSSID (Basic Service Set IDentity), a source MAC address and a destination MAC address, so as to determine the number of effective MAC and the number of effective virtual ID.
In the embodiment of the present invention, the message on the channel may be an 802.11 protocol message.
And after the scanning round is finished, counting the wireless signal strength indication of the effective wireless router on the wireless channel.
If the channel information includes the number of valid MACs, the number of valid virtual identities IDs, and the valid radio signal strength indicator, the method for determining the channel priority of each radio channel according to the determined channel information includes: for any wireless channel, summing and normalizing the effective MAC number and the effective virtual Identity (ID) number of the wireless channel to obtain a first normalized value; summing and normalizing the effective wireless signal strength indication indexes of the wireless channel to obtain a second normalized value; adding the product of the first normalization value and a preset first weight value and the product of the second normalization value and a preset second weight value to obtain a priority value of the wireless channel; and determining the channel priority of each wireless channel according to the priority value of each wireless channel.
For example, for any wireless channel, the effective MAC number and the effective virtual identity ID number of the wireless channel are summed and normalized, and are denoted as F; and summing and normalizing the effective wireless signal strength indication indexes of the wireless channels, and recording as phi.
And if the weight of the effective MAC number and the effective virtual ID number of the wireless channel is w, and the weight of the effective wireless signal strength indicator of the wireless channel is p, performing weighted summation on the wireless channels, namely (F x w) + (phi x p) is the priority value of the wireless channel, and determining the channel priority of each channel according to the calculated priority value of each wireless channel.
For example, if there are 3 wireless channels, wireless channel a, wireless channel B and wireless channel C, the weight of the number of valid MACs and the number of valid virtual IDs of the wireless channel is 40%, and the weight of the valid wireless signal strength indicator of the wireless channel is 60%.
The result of the summation normalization of the number of the effective MACs of the wireless channel a and the number of the effective virtual IDs is 2, and the result of the summation normalization of the effective wireless signal strength indicator indicators of the wireless channel is 3, then the priority value of the wireless channel a is (2 × 0.4) + (3 × 0.6) =2.6;
the result of the summation normalization of the number of the effective MACs of the wireless channel B and the number of the effective virtual IDs is 3, and the result of the summation normalization of the effective wireless signal strength indicator indicators of the wireless channel is 3, then the priority value of the wireless channel a is (3 × 0.4) + (3 × 0.6) =3;
the result of the summation normalization of the number of the effective MACs of the wireless channel C and the number of the effective virtual IDs is 3, and the result of the summation normalization of the effective wireless signal strength indicator indicators of the wireless channel is 2, then the priority value of the wireless channel a is (3 × 0.4) + (2 × 0.6) =2.4;
and if the priority value of the wireless channel A is 2.6, the priority value of the wireless channel B is 3 and the priority value of the wireless channel C is 2.4, determining the priority of the wireless channel according to the priority value of the wireless channel, namely the priority of the wireless channel B is the highest, and the priority of the wireless channel A is the next lowest.
And after the priority of each wireless channel is determined, determining the current acquisition time of each wireless channel according to the minimum acquisition time of the channel and the determined channel priority.
The minimum channel acquisition time is a preset acquisition time, and may be 20ms.
Firstly, taking the minimum channel acquisition time as the current acquisition time of the wireless channel with the lowest channel priority, and then taking the product of the ratio of the priority value of the wireless channel to the priority value of the wireless channel with the lowest priority and the minimum channel acquisition time as the current acquisition time of the wireless channel for any wireless channel except the wireless channel with the lowest channel priority.
For example, the minimum channel acquisition time is 20ms, the priority value of the wireless channel 1 is 2.6, the priority value of the wireless channel 2 is 3, and the priority value of the wireless channel 3 is 2.4. If the priority of the radio channel 3 is the lowest, taking 20ms as the current acquisition time length of the radio channel 3, and the current acquisition time length of the radio channel 1 is (2.6/2.4) × 20ms = (65/3) ms; the acquisition time of the radio channel 2 is (3/2.4) × 20ms =25ms.
After the current acquisition time length of each wireless channel is determined, it is necessary to determine whether the wireless channel corresponding to each wireless acquisition module needs to be adjusted.
And if each wireless acquisition module comprises a wireless acquisition module which does not accord with the acquisition requirement, adjusting a wireless channel corresponding to each wireless acquisition module so as to enable each adjusted wireless acquisition module to accord with the acquisition requirement.
The acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total acquisition time of the wireless acquisition module is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module.
It should be noted that, each wireless acquisition module corresponds at least one wireless channel, and each device includes a wireless acquisition module at least, and wireless acquisition module is more, and wireless data acquisition rate is higher, but wireless acquisition module can not be unlimited many, because wireless acquisition module still needs to be handled after with wireless data acquisition, if the throughput is not enough, the data of gathering are useless again too much. Therefore, the number of the wireless acquisition modules is determined according to actual needs.
And when judging whether the wireless acquisition module meets the acquisition requirement, firstly determining the acquisition requirement. The acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range. The total acquisition time of the wireless acquisition module is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module.
For example, there are 3 wireless acquisition modules, wireless acquisition module a, wireless acquisition module B, wireless acquisition module C. The wireless acquisition module A corresponds to a wireless channel 1, a wireless channel 2 and a wireless channel 3; the wireless acquisition module B corresponds to a wireless channel 4, a wireless channel 5 and a wireless channel 6; the wireless acquisition module C corresponds to a wireless channel 7, a wireless channel 8 and a wireless channel 9.
If the current acquisition time of the wireless channel 1 is 21ms, the current acquisition time of the wireless channel 2 is 22.5ms, the current acquisition time of the wireless channel 3 is 20ms, the current acquisition time of the wireless channel 4 is 23ms, the current acquisition time of the wireless channel 5 is 21ms, the current acquisition time of the wireless channel 6 is 20.5ms, the current acquisition time of the wireless channel 7 is 22ms, the current acquisition time of the channel 8 is 20ms, and the current acquisition time of the channel 9 is 22.5ms.
The total acquisition time length of wireless acquisition module A this time is (21 +22.5+ 20) ms, that is, 63.5ms; the total acquisition time length of wireless acquisition module B is (23 +21+ 20.5) ms, namely 64.5ms; the total acquisition time length of wireless acquisition module C is (22 +20+ 22.5) ms, that is, 64.5ms.
The average value of the total acquisition time of all wireless acquisition modules at this time is (63.5 + 64.5)/3, i.e. 64.17ms. The difference between the current total acquisition time length of the wireless acquisition module A and the average value of the current total acquisition time lengths of all the wireless acquisition modules is 0.67; the difference value between the current total acquisition time of the wireless acquisition module B and the average value of the current total acquisition time of all the wireless acquisition modules is 0.33; the difference between the current total acquisition time of the wireless acquisition module C and the average value of the current total acquisition time of all the wireless acquisition modules is 0.33.
If the error range is 0-0.5, the wireless acquisition module A does not accord with the acquisition requirement, and the wireless acquisition module B and the wireless acquisition module C accord with the acquisition requirement. Because one wireless acquisition module does not accord with the acquisition requirement, the wireless channel corresponding to each wireless acquisition module is adjusted, so that each adjusted wireless acquisition module accords with the acquisition requirement.
When the wireless channels corresponding to each wireless acquisition module are adjusted, a depth-first algorithm can be adopted, the wireless channels are divided into N groups according to the current acquisition time length of each wireless channel and the number N of the wireless acquisition modules, wherein any two groups of wireless channels are different, and the difference value between the sum of the current acquisition time lengths of the wireless channels included in each group and the average value of the current total acquisition time lengths of the N groups of wireless channels is within an error range. After the wireless channels are divided into N groups, the N groups of wireless channels are distributed to N wireless acquisition modules, each wireless acquisition module is distributed with one group, the groups distributed by different wireless acquisition modules are different, and N is a positive integer.
That is to say, after the wireless channels are determined to need to be adjusted, the wireless channels are divided into N groups by adopting a depth-first search algorithm, wherein N is the number of the wireless acquisition modules, and the difference value between the sum of the current acquisition time of each group of wireless channels and the average value of the current total acquisition time of the N groups of wireless channels is within an error range.
For example, there are 9 wireless channels, the current acquisition duration corresponding to each wireless channel is that the current acquisition duration of the wireless channel 1 is 21ms, the current acquisition duration of the wireless channel 2 is 22.5ms, the current acquisition duration of the wireless channel 3 is 20ms, the current acquisition duration of the wireless channel 4 is 23ms, the current acquisition duration of the wireless channel 5 is 21ms, the current acquisition duration of the wireless channel 6 is 20.5ms, the current acquisition duration of the wireless channel 7 is 22ms, the current acquisition duration of the channel 8 is 20ms, and the current acquisition duration of the channel 9 is 22.5ms.
The wireless acquisition module comprises 3 wireless acquisition modules, a wireless acquisition module A, a wireless acquisition module B and a wireless acquisition module C, wherein 9 wireless channels are divided into 3 groups by adopting a depth-first search algorithm according to the current acquisition time of each wireless channel and the number 3 of the wireless acquisition modules, so that the value of the difference between the total acquisition time of the wireless channels in each group and the average value of the total acquisition time of the wireless channels of the 3 groups is in an error range.
For example, group 1 consists of wireless channel 1, wireless channel 2 and wireless channel 6, and the sum T1 of the acquisition time length of group 1 at this time is 21+22.5+20.5=64ms; group 2 consists of a wireless channel 4, a wireless channel 5 and a wireless channel 8, and the sum T2 of the acquisition time length of group 2 at this time is 23+21+20=64ms; group 3 consists of wireless channel 3, wireless channel 7 and wireless channel 9, and the sum T3 of the acquisition time length of group 3 at this time is 20+22+22.5=64.5ms.
The average value T of the total acquisition time length of 3 groups of wireless channels this time is (21 +22.5+20+23+21+20.5+22+20+ 22.5)/3 =64.17.
The numerical value of the difference between the sum T1 of the current acquisition time of the wireless channels in the 1 st group and the average value T of the current total acquisition time of the wireless channels in the 3 rd group is | T1-T | =0.17; the difference value between the sum T2 of the current acquisition time of the wireless channels in the group 2 and the average value T of the current total acquisition time of the wireless channels in the group 3 is | T2-T | =0.17; the difference value between the total T3 of the current collection time length of the 3 rd group of wireless channels and the average T of the current total collection time length of the 3 rd group of wireless channels is | T3-T | =0.33.
If the error range is 0-0.5, the difference value between the sum of the current acquisition time of the 1 st group, the 2 nd group and the 3 rd group wireless channels and the average value of the current total acquisition time of the 3 groups of wireless channels is within the error range, the 1 st group, the 2 nd group and the 3 rd group are allocated to the wireless acquisition module A, and the wireless acquisition module B and the wireless acquisition module C can be randomly allocated during allocation.
And after the wireless channel corresponding to each wireless acquisition module is adjusted, triggering each wireless acquisition module to acquire data according to the acquisition time length of the adjusted corresponding wireless channel.
For example, after adjustment, the wireless channel corresponding to the wireless acquisition module a is the wireless channel 1, the wireless channel 2 and the wireless channel 6, the acquisition time length corresponding to the wireless channel 1 is 21ms, the acquisition time length corresponding to the wireless channel 2 is 22.5ms, the acquisition time length corresponding to the wireless channel 6 is 20.5ms, the acquisition time length of the wireless acquisition module a is (21 +22.5+ 20.5) =64ms, and the wireless acquisition module a acquires data according to the acquisition time length of 64 ms.
And if each wireless acquisition module meets the acquisition requirement, triggering each wireless acquisition module to acquire data according to the acquisition duration of the corresponding wireless channel.
That is to say, the wireless acquisition modules all meet the acquisition requirements, the wireless channels are not adjusted, and each wireless acquisition module acquires data according to the current acquisition duration of the corresponding wireless channel.
For example, there are three wireless acquisition modules, wireless acquisition module a, wireless acquisition module B, wireless acquisition module C. The total acquisition time of the wireless acquisition module A is 63.5ms; the total acquisition time of the wireless acquisition module B is 64.5ms; the total acquisition time of the wireless acquisition module C is 64.5ms. The difference value between the current total acquisition time length of the wireless acquisition module A and the average value of the current total acquisition time lengths of all the wireless acquisition modules is 0.67; the difference between the current total acquisition time length of the wireless acquisition module B and the average value of the current total acquisition time lengths of all the wireless acquisition modules is 0.33; the difference between the current total acquisition time of the wireless acquisition module C and the average value of the current total acquisition time of all the wireless acquisition modules is 0.33.
If the error range is 0-1, the wireless acquisition module A, the wireless acquisition module B and the wireless acquisition module C meet the acquisition requirements, the wireless channel is not adjusted, the wireless acquisition module A acquires data according to 63.5ms, the wireless acquisition module B acquires data according to 64.5ms, and the wireless acquisition module C acquires data according to 64.5ms.
As shown in fig. 3, a flowchart of a method for determining a wireless channel to be adjusted and adjusting the wireless channel according to an embodiment of the present invention is shown.
Step 300, determining the acquisition time length of each module according to the acquisition time length of the wireless channel, wherein Ta = Ta1+ Ta2+ · 9. + tai, tb = Tb1+ Tb2+. Once.. Once. + tbj, tc = Tc1+ Tc2+. Once.. Once. + tck, and tai, tbj and tck are the acquisition time length of the wireless channel;
step 301, calculating an average value T of the current total acquisition time of all the wireless acquisition modules;
step 302, judging whether the difference value between the acquisition time lengths Tn of all the wireless acquisition modules and the average value T of the current total acquisition time lengths of all the wireless acquisition modules is smaller than a preset allowable error e, if so, executing step 306, otherwise, executing step 303;
step 303, determining a wireless channel for adjustment;
step 304, taking | Tn-T | < e as a target function, and adopting a depth-first search algorithm to recombine all wireless channels;
305, distributing the recombined wireless channels to each wireless acquisition module, and acquiring wireless data by each wireless acquisition module according to the acquisition time of the corresponding wireless channel;
step 306, determine that the wireless channel is not adjusted.
As shown in fig. 4, a schematic flow chart of a wireless data acquisition complete method according to an embodiment of the present invention is provided.
Step 400, loading each wireless acquisition module driver and initializing a wireless network card protocol stack;
step 401, setting a mode of each wireless acquisition module as a monitoring mode to ensure that each wireless acquisition module can capture all transmission data in the coverage area of the wireless acquisition module;
step 402, initializing each wireless channel scheduling time array to be equal interval switching, and setting the priority of each channel element to be the same level according to different distribution of 2.4G and 5G wireless channels of different countries and the number of wireless acquisition modules;
step 403, the timing call interface acquires a data message reported by a network protocol stack of the wireless acquisition module, and creates two independent threads, a data analysis thread and a channel management thread;
step 404, a data analysis thread analyzes the format of the wireless data message, and analyzes information such as a source MAC address, a destination MAC address, a network virtual identity ID and the like;
step 405, the channel management thread determines the current channel dwell time of each wireless channel according to the data analyzed by the data analysis thread and the minimum channel dwell time;
step 406, determining whether the wireless channel needs to be adjusted, if so, executing step 407, otherwise, executing step 403;
step 407, redistributing the wireless channels to each wireless acquisition module, so that the current acquisition time length of each wireless acquisition module and the current average acquisition time length of each module after being distributed are within an error range;
and 408, each wireless acquisition module acquires wireless data according to the reallocated acquisition time length, and repeats the step 403.
As shown in fig. 5, a schematic diagram of a system apparatus for wireless data acquisition according to an embodiment of the present invention is provided.
A schematic diagram of a system device for wireless data acquisition mainly comprises: the system comprises a main controller, a wireless acquisition module, a communication bus and the like. The main controller mainly completes the receiving and sending work of all data, the wireless data acquisition and maintenance and the control command issuing work; the wireless acquisition module mainly completes a data monitoring task; the Bus is used for connecting the main controller and the wireless acquisition module, so that the main controller and the wireless acquisition module can communicate with each other, and the Bus can be a USB (Universal Serial Bus) Bus, a SDIO (Secure Digital Input and Output) Bus, and the like. The specific bus used in the implementation is determined by the wireless acquisition module.
In order to ensure that the network cards in the wireless acquisition modules have the same wireless data processing capacity and the same channel monitoring range, the embodiment of the invention can select 2.4G and 5G double-frequency wireless acquisition modules.
Based on the same inventive concept, the embodiment of the present invention further provides a device for wireless data acquisition, and as the principle of the device for solving the problem is similar to the method for wireless data acquisition in the embodiment of the present invention, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 6, a wireless data acquisition device provided in an embodiment of the present invention includes: at least one processing unit 600 and at least one memory unit 601, wherein the memory unit 601 stores program code that, when executed by the processing unit 600, causes the processing unit 600 to perform the following:
determining channel information according to data transmitted by the corresponding wireless channel acquired last time by each wireless acquisition module; determining the channel priority of each wireless channel according to the determined channel information; determining the current acquisition time length of each wireless channel according to the minimum acquisition time length of the channel and the determined channel priority; if at least one wireless acquisition module does not meet the acquisition requirement, adjusting a wireless channel corresponding to each wireless acquisition module so that each adjusted wireless acquisition module meets the acquisition requirement; acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module; the acquisition requirement is that the difference value between the current total acquisition time of the wireless acquisition module and the average value of the current total acquisition time of all the wireless acquisition modules is within an error range; the total collection time of the wireless collection module is the sum of the collection time of each wireless channel corresponding to the wireless collection module.
Optionally, the channel information includes part or all of the following:
a number of valid MACs, a number of valid virtual identities IDs, and a valid wireless signal strength indication indicator.
Optionally, the channel information includes the number of valid MACs, the number of valid virtual identities IDs, and a valid radio signal strength indicator, and the processing unit 600 is specifically configured to:
for any wireless channel, summing and normalizing the effective MAC number and the effective virtual Identity (ID) number of the wireless channel to obtain a first normalized value; summing and normalizing the effective wireless signal strength indication indexes of the wireless channel to obtain a second normalized value; multiplying the first normalization value by a preset first weight value to obtain a first product, and multiplying the second normalization value by a preset second weight value to obtain a second product; determining a priority value of the wireless channel according to the first product and the second product; and determining the channel priority of each wireless channel according to the priority value of each wireless channel.
Optionally, the processing unit 600 is specifically configured to:
taking the minimum channel acquisition time as the acquisition time of the wireless channel with the lowest channel priority; and aiming at any wireless channel except the wireless channel with the lowest channel priority, taking the product of the ratio of the priority value of the wireless channel to the priority value of the wireless channel with the lowest priority and the minimum acquisition time length of the channel as the acquisition time length of the wireless channel at this time.
Optionally, the processing unit 600 is specifically configured to:
adopting a depth-first search algorithm, and dividing the wireless channels into N groups according to the current acquisition time of each wireless channel and the number N of the wireless acquisition modules, wherein any two groups of wireless channels are different, and the difference value between the sum of the current acquisition time of the wireless channels included in each group and the average value of the current total acquisition time of the N groups of wireless channels is within an error range; and distributing the determined N groups to N wireless acquisition modules, wherein each wireless acquisition module is distributed with one group, the groups distributed by different wireless acquisition modules are different, and N is a positive integer.
Optionally, the processing unit 600 is further configured to:
and if each wireless acquisition module meets the acquisition requirement, triggering each wireless acquisition module to acquire data according to the acquisition time length, wherein the acquisition time length is the acquisition time length of the wireless channel corresponding to each wireless acquisition module.
Optionally, the processing unit 600 is further configured to:
and triggering each wireless acquisition module to acquire data according to the adjusted acquisition duration of the corresponding wireless channel.
Based on the same inventive concept, the embodiment of the present invention further provides a device for wireless data acquisition, and as the principle of solving the problem of the device is similar to the method for wireless data acquisition in the embodiment of the present invention, the implementation of the device may refer to the implementation of the method, and the repeated parts are not described again.
As shown in fig. 7, an embodiment of the present invention further provides a wireless data acquisition device, which includes an information determining module 700, a priority determining module 701, a duration determining module 702, and an adjusting module 703:
the information determination module 700: the wireless acquisition module is used for acquiring data transmitted by a corresponding wireless channel last time according to each wireless acquisition module and determining channel information;
the priority determination module 701: the channel priority of each wireless channel is determined according to the determined channel information;
duration determination module 702: the wireless channel acquisition device is used for determining the acquisition time of each wireless channel at this time according to the minimum acquisition time of the channel and the determined channel priority;
the adjusting module 703: the wireless acquisition module is used for adjusting a wireless channel corresponding to each wireless acquisition module if at least one wireless acquisition module does not meet the acquisition requirement, so that each adjusted wireless acquisition module meets the acquisition requirement;
the wireless data acquisition module 704: the wireless acquisition module is used for acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module;
the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total acquisition time of the wireless acquisition module at this time is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module at this time.
Optionally, the channel information includes part or all of the following:
a number of valid MACs, a number of valid virtual identities IDs, and a valid wireless signal strength indication indicator.
Optionally, the channel determining module 700 is specifically configured to:
for any wireless channel, summing and normalizing the effective MAC number and the effective virtual Identity (ID) number of the wireless channel to obtain a first normalized value; summing and normalizing the effective wireless signal strength indicator of the wireless channel to obtain a second normalized value; multiplying the first normalization value by a preset first weight value to obtain a first product, and multiplying the second normalization value by a preset second weight value to obtain a second product; determining a priority value of the wireless channel according to the first product and the second product; and determining the channel priority of each wireless channel according to the priority value of each wireless channel.
Optionally, the duration determining module 702 is specifically configured to:
taking the minimum channel acquisition time as the acquisition time of the wireless channel with the lowest channel priority; and aiming at any wireless channel except the wireless channel with the lowest channel priority, taking the product of the ratio of the priority value of the wireless channel to the priority value of the wireless channel with the lowest priority and the minimum acquisition time length of the channel as the acquisition time length of the wireless channel at this time.
Optionally, the adjusting module 703 is specifically configured to:
adopting a depth-first search algorithm, and dividing the wireless channels into N groups according to the current acquisition time of each wireless channel and the number N of the wireless acquisition modules, wherein any two groups of wireless channels are different, and the difference value between the sum of the current acquisition time of the wireless channels included in each group and the average value of the current total acquisition time of the N groups of wireless channels is within an error range; and distributing the determined N groups to N wireless acquisition modules, wherein each wireless acquisition module is distributed to one group, the groups distributed by different wireless acquisition modules are different, and N is a positive integer.
Optionally, the adjusting module 703 is further configured to:
and if each wireless acquisition module meets the acquisition requirement, triggering each wireless acquisition module to acquire data according to acquisition time length, wherein the acquisition time length is the acquisition time length of the wireless channel corresponding to each wireless acquisition module.
Optionally, the adjusting module 703 is further configured to:
and triggering each wireless acquisition module to acquire data according to the adjusted acquisition duration of the corresponding wireless channel.
Embodiments of the present invention further provide a computer-readable non-volatile storage medium, which includes program code, when the program code runs on a computing device, the program code is configured to enable the computing device to perform the steps of the method for wireless data acquisition according to an embodiment of the present invention.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (16)

1. A method of wireless data acquisition, the method comprising:
determining channel information according to data transmitted by a corresponding wireless channel acquired last time by each wireless acquisition module;
determining the channel priority of each wireless channel according to the determined channel information;
determining the current acquisition time length of each wireless channel according to the minimum acquisition time length of the channel and the determined channel priority;
if at least one wireless acquisition module does not meet the acquisition requirement, adjusting a wireless channel corresponding to each wireless acquisition module so that each adjusted wireless acquisition module meets the acquisition requirement;
acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module;
the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total collection time of the wireless collection module is the sum of the collection time of each wireless channel corresponding to the wireless collection module.
2. The method of claim 1, wherein the channel information comprises some or all of:
the number of valid Media Access Control (MAC), the number of valid virtual identification numbers (ID), and a valid radio signal strength indicator.
3. The method of claim 2, wherein the channel information comprises a number of valid MACs, a number of valid virtual identities IDs, and a valid radio signal strength indication indicator;
the determining the channel priority of each wireless channel according to the determined channel information includes:
aiming at any wireless channel, summing and normalizing the effective MAC number and the effective virtual Identity (ID) number of the wireless channel to obtain a first normalized value;
summing and normalizing the effective wireless signal strength indicator of the wireless channel to obtain a second normalized value;
multiplying the first normalization value by a preset first weight value to obtain a first product, and multiplying the second normalization value by a preset second weight value to obtain a second product;
determining a priority value for the wireless channel according to the first product and the second product;
and determining the channel priority of each wireless channel according to the priority value of each wireless channel.
4. The method of claim 1, wherein said determining the current acquisition duration for each radio channel based on the channel minimum acquisition duration and the determined channel priority comprises:
taking the minimum channel acquisition time as the current acquisition time of the wireless channel with the lowest channel priority;
and aiming at any wireless channel except the wireless channel with the lowest channel priority, taking the product of the ratio of the priority value of the wireless channel to the priority value of the wireless channel with the lowest priority and the minimum channel acquisition time as the acquisition time of the wireless channel at this time.
5. The method of claim 1, wherein the adjusting the radio channel corresponding to each radio acquisition module comprises:
adopting a depth-first search algorithm, and dividing the wireless channels into N groups according to the current acquisition time of each wireless channel and the number N of the wireless acquisition modules, wherein any two groups of wireless channels are different, and the difference value between the sum of the current acquisition time of the wireless channels included in each group and the average value of the current total acquisition time of the N groups of wireless channels is within an error range;
and distributing the determined N groups to N wireless acquisition modules, wherein each wireless acquisition module is distributed with one group, the groups distributed by different wireless acquisition modules are different, and N is a positive integer.
6. The method of claim 1, further comprising:
and if each wireless acquisition module meets the acquisition requirement, triggering each wireless acquisition module to acquire data according to the acquisition time length, wherein the acquisition time length is the acquisition time length of the wireless channel corresponding to each wireless acquisition module.
7. The method of claim 1, wherein after adjusting the radio channel corresponding to each radio acquisition module, further comprising:
and triggering each wireless acquisition module to acquire data according to the adjusted acquisition duration of the corresponding wireless channel.
8. A wireless data acquisition device, characterized in that the device comprises: at least one processing unit and at least one memory unit, wherein the memory unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
determining channel information according to data transmitted by the corresponding wireless channel acquired last time by each wireless acquisition module; determining the channel priority of each wireless channel according to the determined channel information; determining the current acquisition time length of each wireless channel according to the minimum acquisition time length of the channel and the determined channel priority; if at least one wireless acquisition module does not meet the acquisition requirement, adjusting a wireless channel corresponding to each wireless acquisition module so that each adjusted wireless acquisition module meets the acquisition requirement; acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module; the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total collection time of the wireless collection module is the sum of the collection time of each wireless channel corresponding to the wireless collection module.
9. The apparatus of claim 8, wherein the channel information comprises some or all of:
the number of valid media access control, MAC, number of valid virtual identities, and a valid radio signal strength indicator.
10. The apparatus of claim 9, wherein:
the channel information comprises effective MAC number, effective virtual identity ID number and effective wireless signal strength indication index;
the determining, according to the determined channel information, a channel priority of each wireless channel, where the processing unit is specifically configured to:
for any wireless channel, summing and normalizing the effective MAC number and the effective virtual Identity (ID) number of the wireless channel to obtain a first normalized value; summing and normalizing the effective wireless signal strength indication indexes of the wireless channel to obtain a second normalized value; multiplying the first normalization value by a preset first weight value to obtain a first product, and multiplying the second normalization value by a preset second weight value to obtain a second product; determining a priority value of the wireless channel according to the first product and the second product; and determining the channel priority of each wireless channel according to the priority value of each wireless channel.
11. The device of claim 8, wherein the processing unit is specifically configured to:
taking the minimum channel acquisition time as the acquisition time of the wireless channel with the lowest channel priority; and aiming at any wireless channel except the wireless channel with the lowest channel priority, taking the product of the ratio of the priority value of the wireless channel to the priority value of the wireless channel with the lowest priority and the minimum channel acquisition time as the acquisition time of the wireless channel at this time.
12. The device of claim 8, wherein the processing unit is specifically configured to:
adopting a depth-first search algorithm, dividing the wireless channels into N groups according to the current acquisition time of each wireless channel and the number N of the wireless acquisition modules, wherein any two groups of wireless channels are different, and the difference value between the sum of the current acquisition time of the wireless channels included in each group and the average value of the current total acquisition time of the N groups of wireless channels is within an error range; and distributing the determined N groups to N wireless acquisition modules, wherein each wireless acquisition module is distributed to one group, the groups distributed by different wireless acquisition modules are different, and N is a positive integer.
13. The device of claim 8, wherein the processing unit is further to:
and if each wireless acquisition module meets the acquisition requirement, triggering each wireless acquisition module to acquire data according to acquisition time length, wherein the acquisition time length is the acquisition time length of the wireless channel corresponding to each wireless acquisition module.
14. The device of claim 8, wherein the processing unit is further to:
and triggering each wireless acquisition module to acquire data according to the adjusted acquisition duration of the corresponding wireless channel.
15. A wireless data acquisition device, the device comprising:
an information determination module: the wireless acquisition module is used for acquiring data transmitted by a corresponding wireless channel last time according to each wireless acquisition module and determining channel information;
a priority determination module: the channel priority of each wireless channel is determined according to the determined channel information;
a duration determination module: the wireless channel acquisition device is used for determining the acquisition time of each wireless channel at this time according to the minimum acquisition time of the channel and the determined channel priority;
an adjusting module: the wireless acquisition module is used for adjusting the wireless channel corresponding to each wireless acquisition module if each wireless acquisition module comprises the wireless acquisition module which does not meet the acquisition requirement, so that each adjusted wireless acquisition module meets the acquisition requirement;
the wireless data acquisition module: the wireless acquisition module is used for acquiring wireless data according to the adjusted acquisition duration of the wireless channel corresponding to each wireless acquisition module;
the acquisition requirement is that the difference value between the current total acquisition time length of the wireless acquisition module and the average value of the current total acquisition time lengths of all the wireless acquisition modules is within an error range; the total acquisition time of the wireless acquisition module at this time is the sum of the acquisition time of each wireless channel corresponding to the wireless acquisition module at this time.
16. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN201810603196.1A 2018-06-12 2018-06-12 Wireless data acquisition method and equipment Active CN108924933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810603196.1A CN108924933B (en) 2018-06-12 2018-06-12 Wireless data acquisition method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810603196.1A CN108924933B (en) 2018-06-12 2018-06-12 Wireless data acquisition method and equipment

Publications (2)

Publication Number Publication Date
CN108924933A CN108924933A (en) 2018-11-30
CN108924933B true CN108924933B (en) 2022-10-14

Family

ID=64409910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810603196.1A Active CN108924933B (en) 2018-06-12 2018-06-12 Wireless data acquisition method and equipment

Country Status (1)

Country Link
CN (1) CN108924933B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801835A (en) * 2005-01-04 2006-07-12 泛泰·科力特株式会社 Hybrid phone and method of acquiring channel in the hybrid phone
JP2010171893A (en) * 2009-01-26 2010-08-05 Canon Inc Method and apparatus for determining communication channel
CN102857306A (en) * 2011-06-29 2013-01-02 中兴通讯股份有限公司 Channel availability detection method and system, and spectrum management method
CN104902575A (en) * 2015-05-21 2015-09-09 重庆邮电大学 Real-time scheduling method for multimedia sensing network
CN105373118A (en) * 2015-12-07 2016-03-02 高新兴科技集团股份有限公司 Intelligent equipment data acquisition method
CN107182077A (en) * 2017-07-11 2017-09-19 王焱华 A kind of big data acquisition method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8565799B2 (en) * 2007-04-04 2013-10-22 Qualcomm Incorporated Methods and apparatus for flow data acquisition in a multi-frequency network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801835A (en) * 2005-01-04 2006-07-12 泛泰·科力特株式会社 Hybrid phone and method of acquiring channel in the hybrid phone
JP2010171893A (en) * 2009-01-26 2010-08-05 Canon Inc Method and apparatus for determining communication channel
CN102857306A (en) * 2011-06-29 2013-01-02 中兴通讯股份有限公司 Channel availability detection method and system, and spectrum management method
CN104902575A (en) * 2015-05-21 2015-09-09 重庆邮电大学 Real-time scheduling method for multimedia sensing network
CN105373118A (en) * 2015-12-07 2016-03-02 高新兴科技集团股份有限公司 Intelligent equipment data acquisition method
CN107182077A (en) * 2017-07-11 2017-09-19 王焱华 A kind of big data acquisition method

Also Published As

Publication number Publication date
CN108924933A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
EP3780702A1 (en) Method and device for monitoring network data
Yin et al. Mining spectrum usage data: A large-scale spectrum measurement study
US9924423B2 (en) Different frequency measurement and evaluation method and apparatus of cluster answering user
CN106658756B (en) Method and device for identifying connection between terminal equipment and hotspot
CN111163018B (en) Network equipment and method for reducing transmission delay thereof
CN112564954B (en) Network quality prediction method and device
CN109246685B (en) Passenger flow volume statistical method, device and storage medium based on MAC address
CN112351447A (en) Public place security big data collection method and system based on block chain system
CN106941682A (en) A kind of processing method and equipment of the terminal of resident high ferro private network
KR101858543B1 (en) Packet loss detection method, apparatus, and system
CN105812295B (en) Data transmission method and station
CN107734595B (en) Access control method, device and system
CN110072229A (en) A kind of base station 4G obtains the system and device of terminal recognition code
CN103385025A (en) Network access barring method, mobile device for said method, and processor used in mobile device
CN102256295A (en) Method and device for counting residence time length ratio of double-mode one-standby terminal user in double networks
CN1507761A (en) Channel assignments in a wireless communication system having spatial channels including grouping existing subscribers in anticipation of new subscribers
CN104735411A (en) Camera shooting, collecting and recognizing system and collecting and recognizing method thereof
CN108924933B (en) Wireless data acquisition method and equipment
CN108064053B (en) Network performance analysis method and device
RU2005141572A (en) SYSTEM AND METHOD OF GROUP LIMITED ACCESS FOR THE CONTROLLER OF SHARED ACCESS
CN115175174A (en) Method for realizing probe equipment management and control system based on Internet of things platform
CN109753599B (en) Method and device for recommending service
CN102905349A (en) Method for enhancing association decision of wireless access points
CN109673038B (en) Method for identifying brand and model of mobile terminal based on IFAT fingerprint
RU2746890C1 (en) Method, device and system of access rejection, data carrier and processor

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