CN110784820B - Wireless network equipment positioning method and device, storage medium and wireless network equipment - Google Patents
Wireless network equipment positioning method and device, storage medium and wireless network equipment Download PDFInfo
- Publication number
- CN110784820B CN110784820B CN201911020636.1A CN201911020636A CN110784820B CN 110784820 B CN110784820 B CN 110784820B CN 201911020636 A CN201911020636 A CN 201911020636A CN 110784820 B CN110784820 B CN 110784820B
- Authority
- CN
- China
- Prior art keywords
- wireless network
- network device
- network equipment
- wireless
- position information
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000005855 radiation Effects 0.000 claims abstract description 39
- 238000004590 computer program Methods 0.000 claims description 17
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005242 forging Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012067 mathematical method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000002269 spontaneous effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/003—Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/006—Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The invention discloses a wireless network equipment positioning method, a device, a storage medium and a wireless network equipment, comprising: the wireless network equipment receives a first wireless broadcast frame sent by first wireless network equipment; the first wireless broadcast frame comprises first position information, first positioning precision and first equivalent omnidirectional radiation power of the first wireless network equipment; the wireless network equipment analyzes the first wireless broadcast frame, obtains first position information, first positioning precision and first equivalent omnidirectional radiation power, and obtains the received broadcast signal strength and broadcast frequency; acquiring the distance between the wireless network equipment and the first wireless network equipment according to the first equivalent omnidirectional radiation power, the broadcast signal strength and the broadcast frequency; and acquiring the position information and the positioning precision of the wireless network equipment according to the distance, the first position information and the first positioning precision. The invention can improve the reliability, accuracy and precision of positioning without adding additional communication equipment.
Description
Technical Field
The present invention relates to the field of wireless communication and positioning technologies, and in particular, to a method and an apparatus for positioning a wireless network device, a computer-readable storage medium, and a wireless network device.
Background
At present, there are three methods for acquiring the location of a wireless router:
(1) after the position of the mobile phone is obtained through the APP or the web management page of the mobile phone, the position is automatically synchronized to a wireless router associated with the mobile phone, communication equipment needs to be additionally arranged, and the method can be realized only by installing a certain APP or having the web management page on the communication equipment;
(2) the position of the wireless router is obtained through the address input by the user, the method cannot ensure that the address input by the user is correct and cannot be verified, and the user may input a deceptive address based on some purposes, so that the reliability of the obtained position is poor;
(3) the method for acquiring the location of the wireless router through IP address resolution relies on a database of IP addresses and areas, a problem that the database is not updated or maintained timely may exist, and only a very rough geographic location can be acquired based on the IP address, for example, if the IP address is resolved after the operator NAT, the acquired location is the location of the operator exit gateway, and the location may differ greatly from the actual location of the router, resulting in lower accuracy and lower precision of the acquired location.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for positioning a wireless network device, a computer-readable storage medium, and a wireless network device, which can improve reliability, accuracy, and precision of positioning without adding additional communication devices.
In order to solve the above technical problem, an embodiment of the present invention provides a method for positioning a wireless network device, including:
receiving a first wireless broadcast frame sent by a first wireless network device; the first wireless broadcast frame comprises first position information, first positioning precision and first equivalent omnidirectional radiation power of the first wireless network equipment;
analyzing the first wireless broadcast frame to obtain the first position information, the first positioning precision and the first equivalent omnidirectional radiation power, and obtain the received broadcast signal strength and broadcast frequency;
acquiring the distance between the wireless network equipment and the first wireless network equipment according to the first equivalent omnidirectional radiation power, the broadcast signal strength and the broadcast frequency;
acquiring the position information and the positioning precision of the wireless network equipment according to the distance, the first position information and the first positioning precision;
the method further comprises the following steps:
when the wireless network equipment receives at least two wireless broadcast frames in a preset time period and correspondingly obtains at least two pieces of position information and at least two pieces of positioning accuracy, acquiring a position overlapping area according to the obtained at least two pieces of position information and the obtained at least two pieces of positioning accuracy;
and acquiring the position information and the positioning precision of the wireless network equipment according to the circumscribed circle of the position overlapping area.
Further, the obtaining the distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency specifically includes:
according to the formulaCalculating and obtaining the distance D between the wireless network equipment and the first wireless network equipment; wherein ERIP is the first equivalent isotropic radiated power, PTXIs the transmission power, G, of the first wireless network deviceTXThe first equivalent omnidirectional radiation power is the sum of the transmission power of the first wireless network device and the antenna gain of the first wireless network device, and the unit is dB and PRXThe broadcast signal strength received by the wireless network equipment, f is the broadcast frequency, GRXThe antenna gain of the wireless network device.
Further, the position information of the wireless network device is the same as the first position information, and the positioning accuracy of the wireless network device is the sum of the distance and the first positioning accuracy.
Further, the method further comprises:
and broadcasting the position information and the positioning precision of the wireless network equipment, so that the second wireless network equipment obtains corresponding second position information and second positioning precision according to the received wireless broadcast frame after receiving the wireless broadcast frame sent by the wireless network equipment.
Further, the method further comprises:
and when the positioning precision of the wireless network equipment is smaller than a preset precision threshold, stopping broadcasting the position information and the positioning precision of the wireless network equipment.
Further, the first wireless broadcast frame also includes a broadcast frequency N of the location information; wherein N > 0; the broadcasting frequency of the position information in the wireless broadcasting frame sent by the wireless network equipment is correspondingly N + 1; the method further comprises the following steps:
and when the broadcasting frequency N is greater than a preset frequency threshold value, stopping broadcasting the position information and the positioning precision of the wireless network equipment.
Further, the method further comprises:
and when the broadcast signal strength is smaller than a preset strength threshold value, discarding the acquired position information and positioning accuracy of the wireless network equipment.
In order to solve the above technical problem, an embodiment of the present invention further provides a wireless network device positioning apparatus, including:
a broadcast frame receiving module, configured to receive a first wireless broadcast frame sent by a first wireless network device; the first wireless broadcast frame comprises first position information, first positioning precision and first equivalent omnidirectional radiation power of the first wireless network equipment;
a broadcast frame analyzing module, configured to analyze the first wireless broadcast frame to obtain the first position information, the first positioning accuracy, and the first equivalent omnidirectional radiation power, and obtain a received broadcast signal strength and a broadcast frequency;
a distance calculation module, configured to obtain a distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency;
the positioning module is used for acquiring the position information and the positioning precision of the wireless network equipment according to the distance, the first position information and the first positioning precision;
the device further comprises:
the wireless network equipment comprises an overlapping area acquisition module, a position acquisition module and a position acquisition module, wherein the overlapping area acquisition module is used for acquiring a position overlapping area according to at least two pieces of acquired position information and at least two pieces of acquired positioning accuracy when the wireless network equipment receives at least two wireless broadcast frames in a preset time period and correspondingly acquires at least two pieces of position information and at least two pieces of positioning accuracy;
and the first positioning module is used for acquiring the position information and the positioning precision of the wireless network equipment according to the circumscribed circle of the position overlapping area.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program, when running, controls the device on which the computer-readable storage medium is located to perform any one of the above-mentioned wireless network device positioning methods.
An embodiment of the present invention further provides a wireless network device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor, when executing the computer program, implements the wireless network device positioning method described in any one of the above.
Compared with the prior art, embodiments of the present invention provide a wireless network device positioning method, an apparatus, a computer-readable storage medium, and a wireless network device, where the wireless network device obtains location information and positioning accuracy of a wireless network device according to a distance between the wireless network device and a first wireless network device by receiving a first wireless broadcast frame sent by the first wireless network device, where the first wireless broadcast frame includes first location information, first positioning accuracy, and first equivalent omnidirectional radiation power of the first wireless network device, and analyzing the first wireless broadcast frame to obtain the first location information, the first positioning accuracy, and the first equivalent omnidirectional radiation power, and obtain a received broadcast signal strength and a received broadcast frequency, and obtain a distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency, the technical scheme provided by the embodiment of the invention does not need to additionally increase communication equipment, and can improve the reliability, accuracy and precision of positioning.
Drawings
Fig. 1 is a flow chart of a preferred embodiment of a method for locating a wireless network device provided by the present invention;
fig. 2 is a schematic positioning diagram of a wireless network device positioning method according to the present invention;
fig. 3 is a block diagram of a preferred embodiment of a wireless network device locating apparatus provided in the present invention;
fig. 4 is a block diagram of a preferred embodiment of a wireless network device provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
An embodiment of the present invention provides a method for positioning a wireless network device, which is a flowchart of a preferred embodiment of the method for positioning a wireless network device provided by the present invention, and is shown in fig. 1, where the method includes steps S11 to S14:
step S11, receiving a first wireless broadcast frame sent by a first wireless network device; the first wireless broadcast frame comprises first position information, first positioning precision and first equivalent omnidirectional radiation power of the first wireless network equipment;
step S12, parsing the first wireless broadcast frame to obtain the first location information, the first positioning accuracy, and the first equivalent omnidirectional radiation power, and obtain a received broadcast signal strength and a broadcast frequency;
step S13, obtaining a distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency;
and step S14, obtaining the position information and the positioning precision of the wireless network equipment according to the distance, the first position information and the first positioning precision.
The embodiment of the present invention is applicable to any one of wireless network devices (e.g., a broadcasting device, a wireless router, etc.) within a wireless network coverage area, and specifically, after obtaining first location information and first location accuracy of the first wireless network device, the first wireless network device sends a first wireless broadcast frame according to a preset time period, where the first wireless broadcast frame carries the first location information, the first location accuracy, and the first equivalent omnidirectional radiation power of the first wireless network device, and within the wireless coverage area of the first wireless network device, the first wireless network device receives the first wireless broadcast frame sent by the first wireless network device and analyzes the first wireless broadcast frame, so as to correspondingly obtain the first location information, the first location accuracy, and the first equivalent omnidirectional radiation power of the first wireless network device, and at the same time, the wireless network device also obtains the broadcast signal strength and the broadcast frequency corresponding to the received first wireless broadcast frame, and based on the propagation principle of electromagnetic waves in a free space, the wireless network device calculates and obtains the distance between the wireless network device and the first wireless network device according to the analyzed first equivalent omnidirectional radiation power, the broadcast signal strength and the broadcast frequency (the distance is the maximum possible distance between the wireless network device and the first wireless network device because shielding or attenuation may occur in the propagation process of the wireless signals), so that the position information and the positioning accuracy of the wireless network device are correspondingly obtained according to the calculated distance, the first position information and the first positioning accuracy of the first wireless network device.
It should be noted that the first location information and the first positioning accuracy of the first wireless network device may be obtained according to the positioning method provided in the embodiment of the present invention, for example, after the first wireless network device receives a wireless broadcast frame (also carrying information such as location information and positioning accuracy) sent by another wireless network device, the first wireless network device correspondingly obtains the first location information and the first positioning accuracy of the first wireless network device by executing the steps S12 to S14; the first location information and the first location accuracy of the first wireless network device may also be obtained according to a location method provided in the prior art, for example, by GPS location, communication base station location, APP interactive location, and the like; the embodiment of the present invention is not particularly limited; it can be understood that, in all the wireless network devices, the first wireless network device that determines the location information and the location accuracy may acquire the location information and the location accuracy of itself by using the location method provided in the prior art, and then broadcast the location information and the location accuracy of itself through the wireless broadcast frame, and after any other wireless network device in the wireless coverage of the wireless network device monitors the corresponding wireless broadcast frame, the location method provided by the embodiment of the present invention may be used to perform location.
The wireless network device receives a first wireless broadcast frame sent by a first wireless network device, where the first wireless broadcast frame includes first location information, first location accuracy, and first equivalent omnidirectional radiation power of the first wireless network device, and analyzes the first wireless broadcast frame to obtain the first location information, the first location accuracy, and the first equivalent omnidirectional radiation power, and to obtain received broadcast signal strength and broadcast frequency, so as to obtain a distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency, and thus obtain location information and location accuracy of the wireless network device according to the distance, the first location information, and the first location accuracy, where the technical solution provided by the embodiment of the present invention does not need to add a communication device additionally, the reliability, accuracy and precision of positioning can be improved.
In another preferred embodiment, the obtaining the distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency specifically includes:
according to the formulaCalculating and obtaining the distance D between the wireless network equipment and the first wireless network equipment; wherein ERIP is the first equivalent omnidirectional radiationPower, PTXIs the transmission power, G, of the first wireless network deviceTXThe first equivalent omnidirectional radiation power is the sum of the transmission power of the first wireless network device and the antenna gain of the first wireless network device, and the unit is dB and PRXThe broadcast signal strength received by the wireless network equipment, f is the broadcast frequency, GRXThe antenna gain of the wireless network device.
Specifically, with reference to the foregoing embodiments, based on the propagation principle of electromagnetic waves in free space, in combination with the first equivalent omnidirectional radiation power, broadcast signal strength and broadcast frequency obtained through analysis, the wireless network device is configured according to the formulaCalculating to obtain a distance D between the wireless network device and the first wireless network device, where ERIP is a first equivalent omnidirectional radiation power of the first wireless network device, and the unit is dB; pTXIs the transmission power of the first wireless network device in dB; gTXAntenna gain of the first wireless network device is expressed in dBi; pRXThe unit of the broadcast signal strength corresponding to the first wireless broadcast frame received by the wireless network equipment is dB; f is the broadcast frequency corresponding to the first wireless broadcast frame received by the wireless network equipment, and the unit is MHz; gRXThe unit of the antenna gain of the wireless network equipment is dBi; the unit of the distance D between the wireless network equipment and the first wireless network equipment is Km.
In another preferred embodiment, the location information of the wireless network device is the same as the first location information, and the positioning accuracy of the wireless network device is the sum of the distance and the first positioning accuracy.
Specifically, with reference to the foregoing embodiment, after the distance D between the wireless network device and the first wireless network device is obtained through calculation, since the first wireless network device has the first positioning accuracy, correspondingly, the sum of the distance D and the first positioning accuracy may be used as the positioning accuracy of the wireless network device, and the location information of the wireless network device is the same as the first location information of the first wireless network device.
For example, assuming that the first location information of the first wireless network device is L, and the first positioning accuracy is r, that is, the specific location of the first wireless network device is in a circle with the center of the circle L and the radius of the circle r, and the distance between the wireless network device and the first wireless network device is calculated and obtained as D, the location information of the wireless network device is L, the positioning accuracy of the wireless network device is r + D, and the specific location of the wireless network device is in a circle with the center of the circle L and the radius of the circle r + D.
In yet another preferred embodiment, the method further comprises:
and broadcasting the position information and the positioning precision of the wireless network equipment, so that the second wireless network equipment obtains corresponding second position information and second positioning precision according to the received wireless broadcast frame after receiving the wireless broadcast frame sent by the wireless network equipment.
Specifically, with reference to the foregoing embodiment, after acquiring the location information and the location accuracy of the wireless network device, the wireless network device may broadcast the location information and the location accuracy of the wireless network device through a wireless broadcast frame, and after any second wireless network device in the wireless coverage area of the wireless network device senses the wireless broadcast frame sent by the wireless network device, according to the received wireless broadcast frame, the second location information and the second location accuracy of the second wireless network device may be obtained by executing the steps S12 to S14.
By means of broadcasting of each wireless network device after positioning, more and more wireless network devices can acquire position information and positioning accuracy of the wireless network devices, and when the wireless network devices are more densely deployed, the wireless network devices in the whole area can acquire the position information and the positioning accuracy of the wireless network devices.
As an improvement of the above, the method further comprises:
and when the positioning precision of the wireless network equipment is smaller than a preset precision threshold, stopping broadcasting the position information and the positioning precision of the wireless network equipment.
It can be understood that, in combination with the above embodiments, along with the continuous transmission of the wireless broadcast frame containing the position information and the positioning accuracy, the positioning accuracy of the wireless network device may gradually decrease, and in order to ensure the positioning accuracy, the positioning accuracy of the wireless network device may be compared with a preset accuracy threshold, and when the positioning accuracy of the wireless network device is smaller than the preset accuracy threshold, the wireless network device stops broadcasting, and no longer broadcasts the position information and the positioning accuracy of the wireless network device through the wireless broadcast frame.
As an improvement of the above scheme, the first wireless broadcast frame further includes a broadcast number N of position information; wherein N > 0; the broadcasting frequency of the position information in the wireless broadcasting frame sent by the wireless network equipment is correspondingly N + 1; the method further comprises the following steps:
and when the broadcasting frequency N is greater than a preset frequency threshold value, stopping broadcasting the position information and the positioning precision of the wireless network equipment.
It can be understood that, with reference to the foregoing embodiment, the positioning accuracy of the wireless network device may decrease with the increase of the number of times of broadcasting the location information in the wireless broadcast frame, in order to ensure the positioning accuracy, the number of times of broadcasting N of the location information in the first wireless broadcast frame received by the wireless network device may be obtained, and the obtained number of times of broadcasting N is compared with the preset number threshold, when the obtained number of times of broadcasting N is greater than the preset number threshold, the wireless network device stops broadcasting, and no longer broadcasts the location information and the positioning accuracy of the wireless network device through the wireless broadcast frame.
It should be noted that the wireless broadcast frame further includes a broadcast number field of the location information, which is used to record the broadcast number of the location information, if the wireless network device obtains the location information by analyzing the received wireless broadcast frame, the wireless network device will add 1 to the broadcast number field in the wireless broadcast frame when broadcasting the location information and the positioning accuracy of the wireless network device through the wireless broadcast frame, and when the value of the broadcast number field in the wireless broadcast frame sensed by other wireless network devices is greater than a preset number threshold, other wireless network devices stop broadcasting the wireless broadcast frame.
As an improvement of the above, the method further comprises:
when the wireless network equipment receives at least two wireless broadcast frames in a preset time period and correspondingly obtains at least two pieces of position information and at least two pieces of positioning accuracy, acquiring a position overlapping area according to the obtained at least two pieces of position information and the obtained at least two pieces of positioning accuracy;
and acquiring the position information and the positioning precision of the wireless network equipment according to the circumscribed circle of the position overlapping area.
It can be understood that, in combination with the above embodiments, since there may be more than one wireless network device that sends a wireless broadcast frame after positioning, and there may also be an overlapping area in the corresponding wireless coverage area, the wireless network device may simultaneously sense the wireless broadcast frames sent by multiple wireless network devices within a preset time period, when the wireless network device receives at least two wireless broadcast frames, the wireless network device may obtain at least two pieces of location information and at least two pieces of positioning accuracy according to the corresponding parsing of the at least two wireless broadcast frames, and may know that the wireless network device is in the overlapping area of the at least two pieces of positioning information, in order to obtain the optimal location information and positioning accuracy, the location overlapping area may be obtained according to the obtained at least two pieces of location information and at least two pieces of positioning accuracy, and a circumscribed circle of the location overlapping area may be obtained according to a mathematical method, the center of the circumscribed circle of the position overlapping area is used as the position of the wireless network equipment, and the radius of the circumscribed circle of the position overlapping area is used as the positioning precision of the wireless network equipment, so that the positioning precision of the wireless network equipment can be improved.
It should be noted that, in other embodiments, at least two obtained positioning accuracies may also be compared to determine the minimum positioning accuracy, and the position information and the positioning accuracy obtained according to the radio broadcast frame with the minimum positioning accuracy are used as the position information and the positioning accuracy of the wireless network device; if the minimum positioning accuracy is more than one, further, the broadcast times in the wireless broadcast frame corresponding to the minimum positioning accuracy are obtained, the minimum broadcast times are determined, and the position information and the positioning accuracy obtained according to the wireless broadcast frame with the minimum positioning accuracy and the minimum broadcast times are used as the position information and the positioning accuracy of the wireless network device.
In yet another preferred embodiment, the method further comprises:
and when the broadcast signal strength is smaller than a preset strength threshold value, discarding the acquired position information and positioning accuracy of the wireless network equipment.
It can be understood that, with reference to the foregoing embodiment, after obtaining the broadcast signal strength corresponding to the received first wireless broadcast frame, the wireless network device may compare the obtained broadcast signal strength with a preset strength threshold, and when the obtained broadcast signal strength is smaller than the preset strength threshold, it is determined that the calculation error is large, then the location information and the positioning accuracy of the wireless network device obtained according to the first wireless broadcast frame are discarded.
Referring to fig. 2, a schematic positioning diagram of a wireless network device positioning method provided by the present invention is shown, and the following specifically describes the working principle of the technical solution provided by the embodiment of the present invention with reference to fig. 2 and the above-mentioned embodiment:
as shown in fig. 2, assume that the location information of the wireless network device a is L and the positioning accuracy is rAThat is, the possible location area of the wireless network device a is centered at L and rAIs in a circle with a radius, the wireless network device A sets the position information of the wireless network device A as L and the positioning precision as rABroadcasting the wireless broadcast frame, in the wireless coverage range of the wireless network equipment A, receiving the wireless broadcast frame sent by the wireless network equipment A by the wireless network equipment B, correspondingly acquiring the position information of the wireless network equipment A as L and the positioning precision as rAAnd calculating to obtain the distance D between the wireless network equipment B and the wireless network equipment AABThen the possible location area of the wireless network device B is centered at L and rA+DABIn a circle with a radius, the wireless network device B uses the position information L and the positioning precision r of the wireless network device BA+DABBroadcasting the wireless broadcast frame, wherein the wireless network equipment C receives the wireless broadcast frame sent by the wireless network equipment B in the wireless coverage range of the wireless network equipment B, correspondingly obtains the position information of L and the positioning precision of rA+DABAnd calculating to obtain the distance D between the wireless network equipment C and the wireless network equipment BBCThen the possible location area of the wireless network device C is centered at L and rA+DAB+DBCThe positioning accuracy obtained by a certain wireless network device D is smaller than a preset accuracy threshold, or the value of the broadcast frequency field in the wireless broadcast frame sensed by the wireless network device D is larger than a preset frequency threshold, the wireless network device D stops broadcasting the wireless broadcast frame.
The embodiment of the present invention further provides a wireless network device positioning apparatus, which can implement all the processes of the wireless network device positioning method described in any of the above embodiments, and the functions and implemented technical effects of each module and unit in the apparatus are respectively the same as those of the wireless network device positioning method described in the above embodiment, and are not described herein again.
Referring to fig. 3, it is a block diagram of a preferred embodiment of a wireless network device positioning apparatus provided in the present invention, the apparatus includes:
a broadcast frame receiving module 11, configured to receive a first wireless broadcast frame sent by a first wireless network device; the first wireless broadcast frame comprises first position information, first positioning precision and first equivalent omnidirectional radiation power of the first wireless network equipment;
a broadcast frame analyzing module 12, configured to analyze the first wireless broadcast frame to obtain the first position information, the first positioning accuracy, and the first equivalent omnidirectional radiation power, and obtain a received broadcast signal strength and a broadcast frequency;
a distance calculating module 13, configured to obtain a distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency;
and the positioning module 14 is configured to obtain the position information and the positioning accuracy of the wireless network device according to the distance, the first position information, and the first positioning accuracy.
Preferably, the distance calculating module 13 specifically includes:
a distance calculation unit for calculating a distance according to a formulaCalculating and obtaining the distance D between the wireless network equipment and the first wireless network equipment; wherein ERIP is the first equivalent isotropic radiated power, PTXIs the transmission power, G, of the first wireless network deviceTXThe first equivalent omnidirectional radiation power is the sum of the transmission power of the first wireless network device and the antenna gain of the first wireless network device, and the unit is dB and PRXThe broadcast signal strength received by the wireless network equipment, f is the broadcast frequency, GRXThe antenna gain of the wireless network device.
Preferably, the location information of the wireless network device is the same as the first location information, and the positioning accuracy of the wireless network device is the sum of the distance and the first positioning accuracy.
Preferably, the apparatus further comprises:
and the broadcast frame sending module is used for broadcasting the position information and the positioning precision of the wireless network equipment, so that the second wireless network equipment obtains corresponding second position information and second positioning precision according to the received wireless broadcast frame after receiving the wireless broadcast frame sent by the wireless network equipment.
Preferably, the apparatus further comprises:
and the positioning precision judging module is used for stopping broadcasting the position information and the positioning precision of the wireless network equipment when the positioning precision of the wireless network equipment is smaller than a preset precision threshold.
Preferably, the first wireless broadcast frame further includes a broadcast number N of location information; wherein N > 0; the broadcasting frequency of the position information in the wireless broadcasting frame sent by the wireless network equipment is correspondingly N + 1; the device further comprises:
and the broadcast frequency judging module is used for stopping broadcasting the position information and the positioning precision of the wireless network equipment when the broadcast frequency N is greater than a preset frequency threshold value.
Preferably, the apparatus further comprises:
the wireless network equipment comprises an overlapping area acquisition module, a position acquisition module and a position acquisition module, wherein the overlapping area acquisition module is used for acquiring a position overlapping area according to at least two pieces of acquired position information and at least two pieces of acquired positioning accuracy when the wireless network equipment receives at least two wireless broadcast frames in a preset time period and correspondingly acquires at least two pieces of position information and at least two pieces of positioning accuracy;
and the first positioning module is used for acquiring the position information and the positioning precision of the wireless network equipment according to the circumscribed circle of the position overlapping area.
Preferably, the apparatus further comprises:
and the signal strength judging module is used for discarding the acquired position information and positioning accuracy of the wireless network equipment when the broadcast signal strength is smaller than a preset strength threshold value.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program, when running, controls the device on which the computer-readable storage medium is located to perform the wireless network device positioning method according to any of the above embodiments.
An embodiment of the present invention further provides a wireless network device, which is shown in fig. 4 and is a block diagram of a preferred embodiment of the wireless network device provided in the present invention, the wireless network device includes a processor 10, a memory 20, and a computer program stored in the memory 20 and configured to be executed by the processor 10, and the processor 10, when executing the computer program, implements the wireless network device positioning method according to any of the embodiments described above.
Preferably, the computer program can be divided into one or more modules/units (e.g. computer program 1, computer program 2,) which are stored in the memory 20 and executed by the processor 10 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the wireless network device.
The Processor 10 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc., the general purpose Processor may be a microprocessor, or the Processor 10 may be any conventional Processor, the Processor 10 is a control center of the wireless network device, and various interfaces and lines are used to connect various parts of the wireless network device.
The memory 20 mainly includes a program storage area that may store an operating system, an application program required for at least one function, and the like, and a data storage area that may store related data and the like. In addition, the memory 20 may be a high speed random access memory, may also be a non-volatile memory, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), and the like, or the memory 20 may also be other volatile solid state memory devices.
It should be noted that the above-mentioned wireless network device may include, but is not limited to, a processor and a memory, and those skilled in the art will understand that the block diagram of fig. 4 is only an example of the above-mentioned wireless network device, and does not constitute a limitation of the wireless network device, and may include more or less components than those shown, or combine some components, or different components.
To sum up, the wireless network device positioning method, apparatus, computer-readable storage medium and wireless network device provided by the embodiments of the present invention have the following beneficial effects:
(1) the embodiment of the invention utilizes the wireless transceiving capacity of the wireless network equipment to position the geographic position, does not need to additionally add communication equipment, and is very suitable for low-cost consumer-grade wireless products such as a wireless router and the like to obtain the geographic position of the wireless router;
(2) when wireless network equipment is widely and densely deployed, the embodiment of the invention can enable the position information to be transmitted in one area, and the position information is transmitted spontaneously without manual intervention;
(3) the embodiment of the invention can enable the wireless network equipment without the positioning function to obtain reliable position information and positioning precision, and has higher accuracy and precision;
(4) when any wireless network device in an area acquires the geographical position information of the wireless network device, a large number of wireless network devices in the area can acquire the geographical position information through wireless broadcast frames, and if the wireless network devices are deployed in linear or meshed areas which are mutually overlapped, the propagation range of the geographical position information is quite large;
(5) the wireless network equipment performs subsequent broadcasting only by using the position information with the minimum positioning precision or the minimum broadcasting times, and can simultaneously calculate a plurality of positioning signals to improve the positioning precision, and the positioning precision can be spontaneously and gradually improved to an optimal state under the environment that the coverage areas of a plurality of wireless network equipment are overlapped;
(6) the embodiment of the invention is applied to the wireless router, can realize spontaneous broadcasting and positioning among a plurality of routers only by modifying the driving layer of the wireless router, has lower realization cost, and can not be directly operated and intervened by a user because the driving layer is not open to the user, thereby having higher difficulty in forging self positioning and improving the safety and the reliability.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method for locating a wireless network device, comprising:
receiving a first wireless broadcast frame sent by a first wireless network device; the first wireless broadcast frame comprises first position information, first positioning precision and first equivalent omnidirectional radiation power of the first wireless network equipment;
analyzing the first wireless broadcast frame to obtain the first position information, the first positioning precision and the first equivalent omnidirectional radiation power, and obtain the received broadcast signal strength and broadcast frequency;
acquiring the distance between the wireless network equipment and the first wireless network equipment according to the first equivalent omnidirectional radiation power, the broadcast signal strength and the broadcast frequency;
acquiring the position information and the positioning precision of the wireless network equipment according to the distance, the first position information and the first positioning precision;
the method further comprises the following steps:
when the wireless network equipment receives at least two wireless broadcast frames in a preset time period and correspondingly obtains at least two pieces of position information and at least two pieces of positioning accuracy, acquiring a position overlapping area according to the obtained at least two pieces of position information and the obtained at least two pieces of positioning accuracy;
and acquiring the position information and the positioning precision of the wireless network equipment according to the circumscribed circle of the position overlapping area.
2. The method as claimed in claim 1, wherein the obtaining the distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength and the broadcast frequency specifically comprises:
according to the formulaCalculating and obtaining the distance D between the wireless network equipment and the first wireless network equipment; wherein ERIP is the first equivalent isotropic radiated power, PTXIs the transmission power, G, of the first wireless network deviceTXThe first equivalent omnidirectional radiation power is the sum of the transmission power of the first wireless network device and the antenna gain of the first wireless network device, and the unit is dB and PRXThe broadcast signal strength received by the wireless network equipment, f is the broadcast frequency, GRXThe antenna gain of the wireless network device.
3. The method as claimed in claim 1, wherein the location information of the wireless network device is the same as the first location information, and the location accuracy of the wireless network device is the sum of the distance and the first location accuracy.
4. The wireless network device location method of claim 1, wherein the method further comprises:
and broadcasting the position information and the positioning precision of the wireless network equipment, so that the second wireless network equipment obtains corresponding second position information and second positioning precision according to the received wireless broadcast frame after receiving the wireless broadcast frame sent by the wireless network equipment.
5. The wireless network device location method of claim 4, wherein the method further comprises:
and when the positioning precision of the wireless network equipment is smaller than a preset precision threshold, stopping broadcasting the position information and the positioning precision of the wireless network equipment.
6. The wireless network device positioning method of claim 4, wherein the first wireless broadcast frame further includes a number of broadcasts of location information N; wherein N > 0; the broadcasting frequency of the position information in the wireless broadcasting frame sent by the wireless network equipment is correspondingly N + 1; the method further comprises the following steps:
and when the broadcasting frequency N is greater than a preset frequency threshold value, stopping broadcasting the position information and the positioning precision of the wireless network equipment.
7. The wireless network device location method of claim 1, wherein the method further comprises:
and when the broadcast signal strength is smaller than a preset strength threshold value, discarding the acquired position information and positioning accuracy of the wireless network equipment.
8. An apparatus for locating a wireless network device, comprising:
a broadcast frame receiving module, configured to receive a first wireless broadcast frame sent by a first wireless network device; the first wireless broadcast frame comprises first position information, first positioning precision and first equivalent omnidirectional radiation power of the first wireless network equipment;
a broadcast frame analyzing module, configured to analyze the first wireless broadcast frame to obtain the first position information, the first positioning accuracy, and the first equivalent omnidirectional radiation power, and obtain a received broadcast signal strength and a broadcast frequency;
a distance calculation module, configured to obtain a distance between the wireless network device and the first wireless network device according to the first equivalent omnidirectional radiation power, the broadcast signal strength, and the broadcast frequency;
the positioning module is used for acquiring the position information and the positioning precision of the wireless network equipment according to the distance, the first position information and the first positioning precision;
the device further comprises:
the wireless network equipment comprises an overlapping area acquisition module, a position acquisition module and a position acquisition module, wherein the overlapping area acquisition module is used for acquiring a position overlapping area according to at least two pieces of acquired position information and at least two pieces of acquired positioning accuracy when the wireless network equipment receives at least two wireless broadcast frames in a preset time period and correspondingly acquires at least two pieces of position information and at least two pieces of positioning accuracy;
and the first positioning module is used for acquiring the position information and the positioning precision of the wireless network equipment according to the circumscribed circle of the position overlapping area.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program; wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the wireless network apparatus positioning method according to any one of claims 1 to 7.
10. A wireless network device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor when executing the computer program implementing the wireless network device location method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911020636.1A CN110784820B (en) | 2019-10-24 | 2019-10-24 | Wireless network equipment positioning method and device, storage medium and wireless network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911020636.1A CN110784820B (en) | 2019-10-24 | 2019-10-24 | Wireless network equipment positioning method and device, storage medium and wireless network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110784820A CN110784820A (en) | 2020-02-11 |
CN110784820B true CN110784820B (en) | 2021-08-06 |
Family
ID=69387757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911020636.1A Expired - Fee Related CN110784820B (en) | 2019-10-24 | 2019-10-24 | Wireless network equipment positioning method and device, storage medium and wireless network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110784820B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103118429A (en) * | 2013-03-12 | 2013-05-22 | 南京烽火星空通信发展有限公司 | WIFI (Wireless Fidelity) positioning method |
CN103974313A (en) * | 2013-01-29 | 2014-08-06 | 华为终端有限公司 | Positioning measurement method, device and station and AP devices |
CN105376716A (en) * | 2015-11-26 | 2016-03-02 | 小米科技有限责任公司 | Position acquisition method and device |
US9313669B2 (en) * | 2012-08-30 | 2016-04-12 | Lg Electronics Inc. | Apparatus and method for calculating location of mobile station in wireless network |
CN105979479A (en) * | 2015-03-13 | 2016-09-28 | 英特尔Ip公司 | Determination of device location in crowded indoor environments |
CN109168129A (en) * | 2018-08-08 | 2019-01-08 | 贵阳市城市轨道交通有限公司 | Positioning system and method based on WLAN WLAN |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9906920B2 (en) * | 2016-01-22 | 2018-02-27 | Academia Sinica | Building design information based indoor positioning system |
CN106170151B (en) * | 2016-07-05 | 2019-03-08 | 重庆邮电大学 | The unknown node localization method adaptively moved based on cooperation anchor node |
-
2019
- 2019-10-24 CN CN201911020636.1A patent/CN110784820B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9313669B2 (en) * | 2012-08-30 | 2016-04-12 | Lg Electronics Inc. | Apparatus and method for calculating location of mobile station in wireless network |
CN103974313A (en) * | 2013-01-29 | 2014-08-06 | 华为终端有限公司 | Positioning measurement method, device and station and AP devices |
CN103118429A (en) * | 2013-03-12 | 2013-05-22 | 南京烽火星空通信发展有限公司 | WIFI (Wireless Fidelity) positioning method |
CN105979479A (en) * | 2015-03-13 | 2016-09-28 | 英特尔Ip公司 | Determination of device location in crowded indoor environments |
CN105376716A (en) * | 2015-11-26 | 2016-03-02 | 小米科技有限责任公司 | Position acquisition method and device |
CN109168129A (en) * | 2018-08-08 | 2019-01-08 | 贵阳市城市轨道交通有限公司 | Positioning system and method based on WLAN WLAN |
Also Published As
Publication number | Publication date |
---|---|
CN110784820A (en) | 2020-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103945331B (en) | A kind of localization method for the angle estimation that using WIFI field strength leave away | |
US9762421B2 (en) | Method and device for determining available spectrums | |
EP3197199B1 (en) | Method and system for locating interference to base station | |
CN112449299B (en) | Method and equipment for broadcasting information | |
EP4005264A1 (en) | Communication apparatus and communication method for 6ghz band frequency coordination | |
CN108055063B (en) | Reconfigurable flexible node and node reconfiguration method | |
Bilgehan et al. | Multiplicative based path loss model | |
US10649062B2 (en) | Terminal positioning method and apparatus | |
US11698453B2 (en) | Environment scanning using a cellular network | |
CN110784820B (en) | Wireless network equipment positioning method and device, storage medium and wireless network equipment | |
CN101729163B (en) | Method and equipment for determining interference source of mobile communication | |
KR20170065612A (en) | Weighted aggregation-based method and device for transmitting control signals | |
WO2023109795A1 (en) | Beam scanning method and apparatus, and computer-readable storage medium | |
WO2023029860A1 (en) | Synchronization signal distribution method and apparatus, system and signal shielding device | |
CN108828573B (en) | Power line positioning method, device, system and computer storage medium | |
US10084673B1 (en) | Network test system, a shakedown server, and a method of performing site acceptance testing for a communications network site | |
WO2022068243A1 (en) | Terminal positioning method and system, and storage medium and electronic device | |
Diawuo et al. | Data fitting to propagation model using least square algorithm: a case study in Ghana | |
EP3066870B1 (en) | Coordination of channel scanning among multiple radios | |
CN109495963B (en) | Method and device for positioning wireless network interference source | |
US10845458B2 (en) | Wide area direction finding using a plurality of RF receivers | |
Lübke et al. | Antenna Setup for Future Joint Radar-Communications–Characteristics and Mounting Positions | |
US10085114B2 (en) | System and method for using multiple networks to estimate a location of a mobile communication terminal | |
EP4149010A1 (en) | Beam alignment method and related device | |
US9680548B1 (en) | Method for carrying out intelligent fast antenna steering technology (iFAST) |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210806 |