A kind of indoor orientation method based on WiFi and deviceTechnical field
The present invention relates to communication technical field, be specifically related to a kind of indoor orientation method based on WiFi and dressPut.
Background technology
It is known that global positioning system (Global Positioning System, referred to as GPS)Used by all trades and professions, but it also has an obvious defect, it is simply that indoor positioning is the best, it is impossible to be fullThe covering of foot indoor positioning and required precision (its precision is generally other at hundred meters or tens meter levels).
When indoor environment cannot use satellite fix, use auxiliary as satellite fix of indoor positioning technologiesHelp location, solve the problem more weak when satellite-signal arrives ground, building can not be penetrated, finally positionThe position that object is presently in.
Indoor positioning refers to realize location positioning in indoor environment, mainly uses wireless telecommunications, base station fixedThe multiple technologies such as position, inertial navigation location are integrated to form a set of indoor location locating system, thus realize personnel,The monitoring position in the interior space such as object.
In addition to the cellular localization technology of communication network, common indoor wireless location technology also has: WiFi, indigo plant(Radio Frequency Identification is called for short for tooth, infrared ray, ultra broadband, RF identificationFor RFID), ZigBee and ultrasound wave.
The WLAN that WiFi technology consists of WAP (including wireless router)(WLAN), it is possible to achieve location, monitoring and the tracking task in complex environment.It is (wireless with network nodeAccess point) positional information based on and premise, the test of employing experience and the side that combines of signal propagation modelFormula, carries out location positioning to the mobile device accessed, and pinpoint accuracy is about between 1 meter to 20 meter.If but location measuring and calculating is based only upon the WiFi access point of current connection rather than with reference to periphery WiFi'sSignal intensity composite diagram, then Wi-Fi location is just easy to there is error (such as: location floor mistake).
It addition, WiFi access point the most all can only the region of covering radius about 90 meters, and be easy toBeing disturbed by other signals, thus affect its precision, the energy consumption of localizer is the highest.
For in prior art, use current WAP to carry out indoor wireless location and cause positioning notAccurate problem, does not also propose effective solution.
Summary of the invention
Embodiments provide a kind of indoor orientation method based on WiFi and device, at least to solvePrior art uses current WAP carry out indoor wireless location to cause positioning coarse askingTopic.
An aspect according to embodiments of the present invention, it is provided that a kind of indoor orientation method based on WiFi,Including: set up wireless network based on 802.11AD wireless LAN communication standard agreement by WAPNetwork;Believed by the described wireless access spot scan WiFi when the prelocalization moment based on described wireless networkNumber;Obtain described WAP according to described WiFi signal to believe in the described position when the prelocalization momentBreath.
Alternatively, described WAP is obtained described when the prelocalization moment according to described WiFi signalPositional information includes: obtain WiFi fingerprint according to described WiFi signal;According to described WiFi fingerprint in advanceThe WiFi fingerprint database built, obtains the positional information of described WAP.
Alternatively, described WAP is obtained described when the prelocalization moment according to described WiFi signalPositional information includes: gather the acceleration information in current goal traveling time section and directional information, describedCurrent goal traveling time section was the described time period when the prelocalization moment and between the upper location moment;RootAccording to described acceleration information and described directional information, obtain the positional information of described WAP.
Alternatively, gather the acceleration information in current goal traveling time section and directional information includes: be logicalThe acceleration transducer crossing described WAP gathers described acceleration information;By described wireless accessThe aspect sensor of point gathers described directional information.
Alternatively, described WAP is obtained described when the prelocalization moment according to described WiFi signalInclude before positional information: obtained the Primary Location coordinate of described WAP by GPS.
Another aspect according to embodiments of the present invention, additionally provides a kind of indoor positioning based on WiFi dressPut, including: set up module, for being set up based on 802.11AD wireless local Netcom by WAPThe wireless network of letter standard agreement;Scan module, is used for by described wireless access spot scan based on describedWireless network when the WiFi signal in prelocalization moment;First acquisition module, for according to described WiFiWAP described in signal acquisition described when the positional information in prelocalization moment.
Alternatively, described first acquisition module includes: the first acquiring unit, for according to described WiFiSignal acquisition WiFi fingerprint;Second acquisition unit, for the WiFi built in advance according to described WiFi fingerprintFingerprint database, obtains the positional information of described WAP.
Alternatively, described first acquisition module includes: collecting unit, is used for gathering current goal when movingBetween acceleration information in section and directional information, described current goal traveling time section is described to work as prelocalizationTime period between moment and the upper location moment;3rd acquiring unit, for believing according to described accelerationBreath and described directional information, obtain the positional information of described WAP.
Alternatively, described collecting unit is additionally operable to the acceleration transducer collection by described WAPDescribed acceleration information;Described directional information is gathered by the aspect sensor of described WAP.
Alternatively, described device also includes: the second acquisition module, for obtaining according to described WiFi signalDescribed WAP before the positional information in prelocalization moment, obtains described nothing by GPS describedThe Primary Location coordinate of line access point.
By the embodiment of the present invention, use and set up based on 802.11AD WLAN by WAPThe wireless network of communication standard protocol;Based on above-mentioned wireless network current fixed by wireless access spot scanThe WiFi signal in position moment;WAP is obtained when the position in prelocalization moment according to WiFi signalInformation, solve prior art uses current WAP carry out indoor wireless location cause locationCoarse problem, overcomes the position error that signal intensity disturbance brings, improves positioning precision.
Accompanying drawing explanation
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, belowThe accompanying drawing used required in detailed description of the invention or description of the prior art will be briefly described, aobvious andEasily insight, the accompanying drawing in describing below is some embodiments of the present invention, for ordinary skillFrom the point of view of personnel, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawingsAccompanying drawing.
Fig. 1 is the flow chart of indoor orientation method based on WiFi according to embodiments of the present invention;
Fig. 2 is a structured flowchart of indoor positioning device based on WiFi according to embodiments of the present invention;
Fig. 3 is a structured flowchart of the first acquisition module according to embodiments of the present invention;
Fig. 4 is another structured flowchart of the first acquisition module according to embodiments of the present invention;
Fig. 5 is another structural frames of indoor positioning device based on WiFi according to embodiments of the present inventionFigure.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is clearly and completely described, it is clear that instituteThe embodiment described is a part of embodiment of the present invention rather than whole embodiments.Based in the present inventionEmbodiment, it is all that those of ordinary skill in the art are obtained under not making creative work premiseOther embodiments, broadly fall into the scope of protection of the invention.
In describing the invention, it should be noted that term " first ", " second ", " the 3rd " onlyFor descriptive purposes, and it is not intended that instruction or hint relative importance.
As long as additionally, technical characteristic involved in invention described below difference embodiment is each otherBetween do not constitute conflict just can be combined with each other.
Embodiment 1
Providing a kind of indoor orientation method based on WiFi in the present embodiment, Fig. 1 is according to the present inventionThe flow chart of the indoor orientation method based on WiFi of embodiment, as it is shown in figure 1, this flow process includes as followsStep:
Step S11, is set up based on 802.11AD wireless LAN communication standard agreement by WAPWireless network;
Step S12, based on above-mentioned wireless network when the prelocalization moment by wireless access spot scanWiFi signal;
Step S13, obtains WAP when the positional information in prelocalization moment according to WiFi signal.
For the ease of describing, some concepts and term to the present embodiments relate to illustrate below:
802.11AD:802.11AD is mainly used in realizing the biography of household internal WirelessHD audio-video signalDefeated, bring more complete HD video solution for family multi-media application.Gather around 802.11AD abandoned2.4GHz and the 5GHz frequency range squeezed, but use the 60GHz frequency spectrum of high frequency carrier.
In the case of two terminals all support 802.11AD, setting up two terminals by 802.11ADConnection after, utilize 802.11AD will be stored in first terminal specified file send to the second terminal,Compared in prior art, 802.11AD is utilized to realize the transmission of the file between mobile terminal, transmission speedFaster, the transmission time is shorter for rate.
By above-mentioned steps, indoor wireless router is installed 802.11AD, passes through WAPSet up wireless network based on 802.11AD wireless LAN communication standard agreement, obtain according to WiFi signalTake WAP when the positional information in prelocalization moment, with the position of network node (WAP)Based on information and premise, the mode that the test of employing experience and signal propagation model combine, to accessingMobile device carry out location positioning, pinpoint accuracy is about between 1 meter to 20 meter.Based on802.11AD is accurately positioned, it is possible to precisely arrive in certain room of certain floor.Complicated ring can be realizedBeing accurately positioned in border, monitor and tracking task.Solve and prior art uses current wireless accessPoint carries out indoor wireless location and causes positioning coarse problem, and overcome that signal intensity disturbance brings determinesPosition error, improves positioning precision.
WAP can be obtained when the position in prelocalization moment in several ways according to WiFi signalConfidence ceases, and is illustrated this below.In one alternate embodiment, obtain according to WiFi signalWiFi fingerprint, the WiFi fingerprint database built in advance according to WiFi fingerprint, obtain WAPPositional information.Specifically, can be able to be by the building process of WiFi fingerprint database: to Interior SpaceBetween carry out gridding process, obtain indoor grid collection.Wherein, the above-mentioned interior space may refer to indoorCertain level height on two dimensional surface, certainly, in order to improve the accuracy of data further, above-mentionedThe interior space may also mean that the three-dimensional space of indoor.Preferably, every pair of phase that indoor grid is concentratedSummit spacing between adjacent grid vertex is the most equal.What above-mentioned indoor grid was concentrated often organizes adjacent grid topForm polygonized structure between point, can be triangular structure, it is also possible to be tetragon, pentagon or sixLimit shape structure etc..Certainly, in actual application, in order to reduce amount of calculation, can be according to constituting four limitsGrid vertex is carried out arranged evenly by the mode of shape.Preferably, summit spacing is more than or equal to noise thresholdThe spacing of value spacing, noise threshold spacing is for when there is noise signal in indoor, it is possible to by differentiating WiFiThe signal intensity of signal distinguishes the minimum spacing of two collection points.Such as, summit spacing is set to 2m.In another alternative embodiment, gather the acceleration information in current goal traveling time section and direction letterBreath, this current goal traveling time section is to deserve the time period between prelocalization moment and the upper location moment,According to this acceleration information and direction information, obtain the positional information of WAP.
The mode gathering the acceleration information in current goal traveling time section and directional information can also includeA variety of, below this is illustrated.In one alternate embodiment, by WAPAcceleration transducer gathers this acceleration information, in another alternative embodiment, passes through WAPAspect sensor gather direction information, in another alternative embodiment, it is also possible to connect by wirelessThe magnetometer of access point gathers direction information.Acceleration letter in above-mentioned collection current goal traveling time sectionThe mode of breath and directional information is illustrative only, and does not constitute the restriction to alternative embodiment of the present invention.
In order to ensure the degree of accuracy of location, in one alternate embodiment, obtain wireless according to WiFi signalAccess point, before the positional information when the prelocalization moment, obtains the preliminary of this WAP by GPSThe elements of a fix.Judge that the WAP according to WiFi signal acquisition is when the positional information in prelocalization momentWhether belong to the Primary Location coordinate of the WAP obtained by GPS, if it is, this position letterBreath is accurately, if it is not, then this positional information may be inaccurate, needs again to obtain according to WiFi signalTake WAP when the positional information in prelocalization moment.
Embodiment 2
Additionally providing a kind of indoor positioning device based on WiFi in the present embodiment, this device is used for realizingAbove-described embodiment and preferred implementation, carried out repeating no more of explanation.As used below,Term " module " can realize the software of predetermined function and/or the combination of hardware.Although following example instituteThe device described preferably realizes with software, but hardware, or the realization of the combination of software and hardwareAlso may and be contemplated.
Fig. 2 is a structured flowchart of indoor positioning device based on WiFi according to embodiments of the present invention.
As in figure 2 it is shown, this device includes: set up module 21, for by WAP set up based on802.11AD the wireless network of wireless LAN communication standard agreement;Scan module 22, for by this nothingLine access point scanning is based on above-mentioned wireless network when the WiFi signal in prelocalization moment;First acquisition module23, position the positional information in moment in this prior for obtaining this WAP according to this WiFi signal.
By said apparatus, indoor wireless router is installed 802.11AD, passes through WAPSet up wireless network based on 802.11AD wireless LAN communication standard agreement, obtain according to WiFi signalTake WAP when the positional information in prelocalization moment, with the position of network node (WAP)Based on information and premise, the mode that the test of employing experience and signal propagation model combine, to accessingMobile device carry out location positioning, pinpoint accuracy is about between 1 meter to 20 meter.Based on802.11AD is accurately positioned, it is possible to precisely arrive in certain room of certain floor.Complicated ring can be realizedBeing accurately positioned in border, monitor and tracking task.Solve and prior art uses current wireless accessPoint carries out indoor wireless location and causes positioning coarse problem, and overcome that signal intensity disturbance brings determinesPosition error, improves positioning precision.
Fig. 3 is a structured flowchart of the first acquisition module according to embodiments of the present invention.
As it is shown on figure 3, the first acquisition module 23 includes: the first acquiring unit 231, for according to this WiFiSignal acquisition WiFi fingerprint;Second acquisition unit 232, for build in advance according to this WiFi fingerprintWiFi fingerprint database, obtains the positional information of this WAP.
Fig. 4 is another structured flowchart of the first acquisition module according to embodiments of the present invention.
As shown in Figure 4, the first acquisition module 23 also includes: collecting unit 233, is used for gathering current meshAcceleration information in mark traveling time section and directional information, this current goal traveling time section is that this is currentTime period between location moment and the upper location moment;3rd acquiring unit 234, for adding according to thisVelocity information and direction information, obtain the positional information of this WAP.
Alternatively, collecting unit 233 is additionally operable to be somebody's turn to do by the acceleration transducer collection of this WAPAcceleration information;Direction information is gathered by the aspect sensor of this WAP.
Fig. 5 is another structural frames of indoor positioning device based on WiFi according to embodiments of the present inventionFigure.
As it is shown in figure 5, this device also includes: the second acquisition module 51, for according to this WiFi signalBefore obtaining the positional information that this WAP positions the moment in this prior, obtain this by GPS wirelessThe Primary Location coordinate of access point.
The further function of above-mentioned modules describes identical, at this no longer with above-mentioned corresponding embodimentRepeat.
In sum, a kind of based on WiFi the indoor orientation method provided by the present invention and device,802.11AD is installed on indoor wireless router, by WAP set up based on 802.11AD withoutThe wireless network of line local area network communication standard agreement, obtains WAP current fixed according to WiFi signalThe positional information in position moment, based on the positional information of network node (WAP) and premise, adoptsThe mode combined with experience test and signal propagation model, carries out position fixed to the mobile device accessedPosition, pinpoint accuracy is about between 1 meter to 20 meter.Based on 802.11AD it is accurately positioned, it is possible toPrecisely arrive in certain room of certain floor.Being accurately positioned, monitor and chasing after in complex environment can be realizedTrack task.Solve prior art uses current WAP carry out indoor wireless location cause fixedThe coarse problem in position, overcomes the position error that signal intensity disturbance brings, improves positioning precision.
Those skilled in the art it should be appreciated that embodiments of the invention can be provided as method, system orComputer program.Therefore, the present invention can use complete hardware embodiment, complete software implementation,Or combine the form of embodiment in terms of software and hardware.And, the present invention can use one or moreThe computer-usable storage medium wherein including computer usable program code (includes but not limited to diskMemorizer, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present inventionThe flow chart of product and/or block diagram describe.It should be understood that can be by computer program instructions flowchartAnd/or the flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagramAnd/or the combination of square frame.Can provide these computer program instructions to general purpose computer, special-purpose computer,The processor of Embedded Processor or other programmable data processing device is to produce a machine so that logicalThe instruction of the processor execution crossing computer or other programmable data processing device produces for realizing at streamThe function specified in one flow process of journey figure or multiple flow process and/or one square frame of block diagram or multiple square frameDevice.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to setIn the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memoryIn instruction produce and include the manufacture of command device, this command device realize in one flow process of flow chart orThe function specified in multiple flow processs and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device,Make on computer or other programmable devices, perform sequence of operations step computer implemented to produceProcess, thus the instruction performed on computer or other programmable devices provides for realizing at flow chartThe step of the function specified in one flow process or multiple flow process and/or one square frame of block diagram or multiple square frameSuddenly.
Obviously, above-described embodiment is only for clearly demonstrating example, and not to embodimentRestriction.For those of ordinary skill in the field, can also do on the basis of the above descriptionGo out change or the variation of other multi-form.Here without also cannot all of embodiment be given exhaustive.And the obvious change thus extended out or variation still in the invention protection domain itIn.