CN103543434B - Indoor locating system, mobile phone and localization method - Google Patents
Indoor locating system, mobile phone and localization method Download PDFInfo
- Publication number
- CN103543434B CN103543434B CN201310493142.1A CN201310493142A CN103543434B CN 103543434 B CN103543434 B CN 103543434B CN 201310493142 A CN201310493142 A CN 201310493142A CN 103543434 B CN103543434 B CN 103543434B
- Authority
- CN
- China
- Prior art keywords
- light
- magnetic force
- receiving end
- data
- indoor positioning
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000004807 localization Effects 0.000 title 1
- 230000005291 magnetic effect Effects 0.000 claims abstract description 49
- 230000003287 optical effect Effects 0.000 claims abstract description 31
- 230000001133 acceleration Effects 0.000 claims abstract description 21
- 238000012937 correction Methods 0.000 claims abstract description 20
- 239000013598 vector Substances 0.000 claims abstract description 18
- 238000004364 calculation method Methods 0.000 claims description 9
- 230000005358 geomagnetic field Effects 0.000 claims description 4
- 238000011084 recovery Methods 0.000 claims description 3
- 238000005096 rolling process Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 230000036544 posture Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/02—Systems using the reflection of electromagnetic waves other than radio waves
- G01S17/06—Systems determining position data of a target
- G01S17/08—Systems determining position data of a target for measuring distance only
- G01S17/32—Systems determining position data of a target for measuring distance only using transmission of continuous waves, whether amplitude-, frequency-, or phase-modulated, or unmodulated
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/04—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by terrestrial means
- G01C21/08—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by terrestrial means involving use of the magnetic field of the earth
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/165—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
Landscapes
- Engineering & Computer Science (AREA)
- Remote Sensing (AREA)
- Radar, Positioning & Navigation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Electromagnetism (AREA)
- Life Sciences & Earth Sciences (AREA)
- Geology (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Optical Communication System (AREA)
Abstract
本发明提供一种室内定位系统,包括光发射端与光接收端。光发射端发送光信号;光接收端包括光传感器、电子罗盘、处理器。光接收端绕空间一点旋转至少三个姿态。光传感器接收光信号数据;电子罗盘采集磁力数据和加速度数据;处理器从光信号数据中计算得到至少三个光强值,从磁力数据和加速度数据中计算得到磁力校正参数以及至少三个航向角,并计算光传感器每个姿态时的单位法向量;处理器利用光强模型,根据所述至少三个光强值及对应的单位法向量建立方程组,求解所述光接收端的坐标值。本发明还提供了一种室内定位手机及其室内定位方法,通过集成光、磁、加速度传感器,满足室内定位的应用要求,定位精度高,稳定性好,成本较低。
The invention provides an indoor positioning system, which includes a light emitting end and a light receiving end. The optical transmitting end sends optical signals; the optical receiving end includes an optical sensor, an electronic compass, and a processor. The light receiving end rotates around a point in space for at least three gestures. The light sensor receives light signal data; the electronic compass collects magnetic force data and acceleration data; the processor calculates at least three light intensity values from the light signal data, and calculates magnetic force correction parameters and at least three heading angles from the magnetic force data and acceleration data , and calculate the unit normal vector of each attitude of the light sensor; the processor uses the light intensity model to establish a system of equations according to the at least three light intensity values and the corresponding unit normal vectors, and solve the coordinate values of the light receiving end. The invention also provides an indoor positioning mobile phone and an indoor positioning method thereof. By integrating optical, magnetic and acceleration sensors, the application requirements of indoor positioning are met, and the positioning accuracy is high, the stability is good, and the cost is low.
Description
技术领域technical field
本发明涉及定位,尤其涉及一种室内定位系统、手机及定位方法。The invention relates to positioning, in particular to an indoor positioning system, a mobile phone and a positioning method.
背景技术Background technique
随着信息和通信技术的普及,人们对室内定位信息的需求与日俱增,一些公共场所,如商场、机场、展厅、写字楼、仓库、地下停车场等都需要使用准确的定位信息。例如在商场导购、公共场所寻人、大型仓库管理等场景中,都需要用到位置信息。精确的室内定位信息,能够对可用空间和库存物资实现高效管理;能够导航警察、消防员、士兵、医务工作人员完成特定的室内任务;智能空间、普适计算等都离不开位置服务,因此室内定位具有广阔的应用前景。With the popularization of information and communication technology, people's demand for indoor positioning information is increasing day by day. Some public places, such as shopping malls, airports, exhibition halls, office buildings, warehouses, underground parking lots, etc., need to use accurate positioning information. For example, location information is needed in scenarios such as shopping guides in shopping malls, people tracing in public places, and large warehouse management. Accurate indoor positioning information can realize efficient management of available space and inventory materials; it can navigate police, firefighters, soldiers, and medical staff to complete specific indoor tasks; smart spaces and ubiquitous computing are inseparable from location services, so Indoor positioning has broad application prospects.
国内外关于室内定位技术的研究比较丰富,根据定位原理有邻近检测[1]、指纹匹配[2]和多边/角度方法[3]等。邻近检测方法将检测到的信号源位置作为定位位置,精度较低。指纹匹配方法利用室内环境中的信号特征匹配能够得到较好的定位精度,但定位结果易受室内多径效应和环境变化等影响,且建立指纹数据库工作繁琐。而多边/角度方法需要先通过TOA、TDOA、AOA等算法精确测量定位点到参考点的距离/角度等信息,再利用三边测量法等对目标进行定位。如果参考节点位置信息准确、测量距离准确,就可以精确地测得目标节点的位置,但这个结论是理论上的最好结果,在实际测量中会存在误差,以至结果不准确。Research on indoor positioning technology at home and abroad is relatively rich. According to positioning principles, there are proximity detection [1], fingerprint matching [2] and polygon/angle method [3], etc. The proximity detection method takes the detected position of the signal source as the positioning position, and the accuracy is low. The fingerprint matching method can obtain better positioning accuracy by using the signal feature matching in the indoor environment, but the positioning results are easily affected by indoor multipath effects and environmental changes, and the establishment of a fingerprint database is cumbersome. The multilateral/angle method needs to accurately measure the distance/angle and other information from the positioning point to the reference point through algorithms such as TOA, TDOA, and AOA, and then use trilateration to locate the target. If the position information of the reference node is accurate and the measurement distance is accurate, the position of the target node can be accurately measured, but this conclusion is the best result in theory, and there will be errors in actual measurement, so that the result is inaccurate.
[1]L.Ni,Y.Liu,C.Yiu,and A.Patil.LANDMARC:Indoor Location SensingUsing Active RFID.In WINET,2004.[1] L.Ni, Y.Liu, C.Yiu, and A.Patil. LANDMARC: Indoor Location Sensing Using Active RFID. In WINET, 2004.
[2]M.Youssef and A.Agrawala.The Horus WLAN Location DeterminationSystem.In MobiSys,2005.[2]M.Youssef and A.Agrawala.The Horus WLAN Location Determination System.In MobiSys,2005.
[3]N.B.Priyantha,A.Chakraborty,and H.Balakrishnan.The CricketLocation-Support System.In MobiCom,2000.[3] N.B.Priyantha, A.Chakraborty, and H.Balakrishnan. The CricketLocation-Support System. In MobiCom, 2000.
发明内容Contents of the invention
有鉴于此,我们提供一种室内定位系统、室内定位手机、以及室内定位方法,用以实现准确而简单的室内定位。In view of this, we provide an indoor positioning system, an indoor positioning mobile phone, and an indoor positioning method to achieve accurate and simple indoor positioning.
本发明中的室内定位系统,包括光发射端与光接收端。所述光发射端,用于发送光信号;所述光接收端,包括光传感器、电子罗盘与处理器,所述光接收端绕空间一点旋转至少三个姿态;其中所述光传感器,用于在采集所述至少三个姿态时的光信号数据;所述电子罗盘,用于在所述旋转过程中采集至少三组磁力数据和加速度数据;所述处理器,从光信号数据中计算得到至少三个光强值,从磁力数据和加速度数据中计算所述光传感器的至少三组单位法向量,利用光强模型,并根据所述至少三个光强值及对应的单位法向量建立方程组,求解所述光接收端的坐标值。The indoor positioning system in the present invention includes a light emitting end and a light receiving end. The light-emitting end is used to send light signals; the light-receiving end includes a light sensor, an electronic compass and a processor, and the light-receiving end rotates at least three attitudes around a point in space; wherein the light sensor is used to The optical signal data when collecting the at least three attitudes; the electronic compass is used to collect at least three sets of magnetic force data and acceleration data during the rotation; the processor calculates at least Three light intensity values, calculating at least three sets of unit normal vectors of the light sensor from the magnetic force data and acceleration data, using the light intensity model, and establishing a system of equations based on the at least three light intensity values and the corresponding unit normal vectors , to solve the coordinate value of the light receiving end.
优选地,所述光发射端连接于电源,包括光源、以及连接于光源与电源之间的频率控制器,所述频率控制器用于以预设频率控制电源开关,使光源发出频率稳定的光信号。Preferably, the light emitting end is connected to a power supply, including a light source, and a frequency controller connected between the light source and the power supply, the frequency controller is used to control the power switch at a preset frequency, so that the light source emits an optical signal with a stable frequency .
优选地,所述光强模型为
优选地,所述磁力校正参数的计算公式为:其中x,y,z为磁力数据,R为地磁场强度常量,x0,y0,z0,a,b,c为要得到的磁力校正参数。Preferably, the calculation formula of the magnetic force correction parameter is: Among them, x, y, z are the magnetic force data, R is the constant of the geomagnetic field strength, x0, y0, z0, a, b, c are the magnetic force correction parameters to be obtained.
优选地,所述航向角的计算过程包括:利用所述磁力校正参数进行数据恢复,可得在直角坐标系上三轴分量为Mx,My,Mz,归一化数据得Mx1,My1,Mz1。加速度传感器在载体直角坐标系的归一化数据为Ax1,Ay1,Az1;Preferably, the calculation process of the heading angle includes: using the magnetic force correction parameters for data recovery, the three-axis components in the Cartesian coordinate system can be obtained as M x , M y , M z , and the normalized data can be obtained as M x1 , M y1 ,M z1 . The normalized data of the acceleration sensor in the Cartesian coordinate system of the carrier is A x1 , A y1 , A z1 ;
计算得:Calculated:
俯仰角ρ=arc sin(-Ax1),Pitch angle ρ=arc sin(-A x1 ),
翻滚角γ=arc sin(-Ay1/cosρ),Rolling angle γ=arc sin(-A y1 /cosρ),
使用公式:Use the formula:
MX2=MX1cosρ+MZ1sinρ,M X2 =M X1 cosρ+M Z1 sinρ,
My2=MX1sinγsinρ+My1cosγ-Mz1sinγcosρ,M y2 =M X1 sinγsinρ+M y1 cosγ-M z1 sinγcosρ,
Mz2=-MX1cosγsinρ+My1sinγ+Mz1cosγcosρ,及M z2 =-M x1 cosγsinρ+M y1 sinγ+M z1 cosγcosρ, and
即得航向角heading。 That is, the heading angle is obtained.
优选地,所述至少三个姿态光传感器所在的平面线性独立。Preferably, the planes where the at least three attitude light sensors are located are linearly independent.
优选地,所述电子罗盘包括磁传感器与所述加速度传感器。Preferably, the electronic compass includes a magnetic sensor and the acceleration sensor.
本发明的室内定位手机,集成有上述的室内定位系统的光接收端。The indoor positioning mobile phone of the present invention is integrated with the light receiving end of the above-mentioned indoor positioning system.
本发明的室内定位方法,包括固定于室内的光发射端与可移动的光接收端,包括如下步骤:在所述光发射端处预设频率,输出预设频率的光信号;将所述光接收端绕空间一点旋转至少三个姿态,接收所述每个姿态时的光信号,处理器计算得到每个姿态时的光强值;采集至少三组磁力数据和加速度数据,处理器计算得到磁力校正参数,并计算得到每个姿态时光传感器所在平面的单位法向量;处理器利用光强模型、所述至少三个光强值及对应的单位法向量建立方程组,求解所述光接收端的坐标值。The indoor positioning method of the present invention includes a light emitting end fixed indoors and a movable light receiving end, including the following steps: preset a frequency at the light emitting end, and output an optical signal of a preset frequency; The receiving end rotates at least three attitudes around a point in space, receives the optical signal of each attitude, and the processor calculates the light intensity value of each attitude; collects at least three sets of magnetic force data and acceleration data, and the processor calculates the magnetic force Calibrate the parameters, and calculate the unit normal vector of the plane where the light sensor is located for each attitude; the processor uses the light intensity model, the at least three light intensity values and the corresponding unit normal vectors to establish a system of equations to solve the coordinates of the light receiving end value.
本发明根据光强模型,使用集成有光传感器的接收端装置,能够在复杂的室内环境中较为精确地测得该接收端的位置,能够满足很多室内定位的应用要求,定位精度高,稳定性好,成本较低。According to the light intensity model, the present invention uses the receiving end device integrated with the light sensor, can measure the position of the receiving end more accurately in complex indoor environments, can meet the application requirements of many indoor positioning, and has high positioning accuracy and good stability , the cost is lower.
附图说明Description of drawings
图1是本发明实施方式中光发射端的结构示例图。FIG. 1 is a schematic diagram of a structure of a light emitting end in an embodiment of the present invention.
图2是本发明实施方式中光接收端的结构示例图。Fig. 2 is a structural example diagram of an optical receiving end in an embodiment of the present invention.
图3a至图3c分别是本发明实施方式中三个平面间线性独立的演示图。Fig. 3a to Fig. 3c are respectively demonstration diagrams of linear independence among three planes in the embodiment of the present invention.
图4是本发明实施方式中光强模型分析图。Fig. 4 is an analysis diagram of a light intensity model in an embodiment of the present invention.
图5是本发明实施方式中定位方法的流程图。Fig. 5 is a flowchart of a positioning method in an embodiment of the present invention.
具体实施方式detailed description
一种室内定位系统,包括光发射端10与光接收端20。其中,光发射端10,用于发送光信号。光接收端20绕空间一点旋转至少三个姿态,接收每个姿态时的光信号数据、磁力数据以及加速度数据,利用光强模型计算并得到光接收端20的当前坐标值。An indoor positioning system includes a light emitting end 10 and a light receiving end 20 . Wherein, the optical transmitting end 10 is used for sending optical signals. The light receiving end 20 rotates at least three attitudes around a point in space, receives the optical signal data, magnetic force data and acceleration data of each attitude, and uses the light intensity model to calculate and obtain the current coordinate value of the light receiving end 20 .
实施例1光发射端Embodiment 1 Optical Transmitter
如图1所示,光发射端10包括电源(或连接于电源的电源接口)11、光源13以及频率控制器12。As shown in FIG. 1 , the light emitting end 10 includes a power supply (or a power interface connected to the power supply) 11 , a light source 13 and a frequency controller 12 .
本发明使用的光源13为LED灯,提供可见光或红外线。这些LED灯的发光芯片比较小,因此可当作点光源。使用频率控制器12连接在光源13与电源11之间,并以预设频率控制电源开关,使光源13发出频率稳定的光信号。The light source 13 used in the present invention is an LED lamp, which provides visible light or infrared rays. The light-emitting chips of these LED lights are relatively small, so they can be used as point light sources. The frequency controller 12 is used to connect between the light source 13 and the power source 11, and controls the power switch at a preset frequency so that the light source 13 emits an optical signal with a stable frequency.
实施例2光接收端Embodiment 2 Optical receiving end
如图2所示,光接收端20包括光传感器21、电子罗盘22、处理器23、存储芯片24、以及电源模块25等。其中,电子罗盘22包括磁传感器、加速度传感器。在本实施方式中,将光传感器21和电子罗盘22集成在一起制成一片单独的传感器子板,再将传感器子板子板连接到单片机底板上制成一个专用定位接收端或者将光传感器和电子罗盘集成于手机上作为光接收端20。As shown in FIG. 2 , the light receiving end 20 includes a light sensor 21 , an electronic compass 22 , a processor 23 , a memory chip 24 , and a power module 25 . Wherein, the electronic compass 22 includes a magnetic sensor and an acceleration sensor. In this embodiment, the light sensor 21 and the electronic compass 22 are integrated together to make a separate sensor sub-board, and then the sensor sub-board is connected to the single-chip microcomputer bottom board to make a dedicated positioning receiving end or the light sensor and electronic compass The compass is integrated on the mobile phone as the light receiving end 20 .
为获取光、磁、加速度数据,光接收端20绕空间一点旋转至少三个姿态。所述至少三个姿态时光传感器21所在的平面线性独立,如图3所示。In order to obtain optical, magnetic, and acceleration data, the light receiving end 20 rotates around a point in space for at least three attitudes. The planes where the light sensor 21 is located in the at least three attitudes are linearly independent, as shown in FIG. 3 .
光传感器21,用于接收所述至少三个姿态时的光信号数据,处理器23利用光强模型,计算得到每个姿态的光强值;The light sensor 21 is used to receive the light signal data of the at least three postures, and the processor 23 uses the light intensity model to calculate the light intensity value of each posture;
光强模型为
其中,设(x0,y0,z0)为光发射端10的坐标值,(x,y,z)为所述光接收端的坐标值,s为光强值、d为所述光发射端10到所述光接收端20之间的距离、μ为光线进入传感器的入射角和ω为光线在光发射端的出射角,d′为光发射端到光传感器21所在平面的距离,fd、fμ、fω分别为光强与d、μ、ω的关系函数。Wherein, let (x 0 , y 0 , z 0 ) be the coordinate value of the light emitting end 10, (x, y, z) be the coordinate value of the light receiving end, s is the light intensity value, and d is the light emitting The distance between the end 10 and the light receiving end 20, μ is the incident angle of the light entering the sensor and ω is the exit angle of the light at the light emitting end, d' is the distance from the light emitting end to the plane where the light sensor 21 is located, f d , f μ , fω are the relationship functions between light intensity and d, μ, ω respectively.
电子罗盘22中的磁传感器,用于在所述旋转中采集至少三组磁力数据,计算并输出磁力校正参数;所述磁力校正参数的计算公式为: 其中x,y,z为磁力数据,R为地磁场强度常量,x0,y0,z0,a,b,c为要得到的磁力校正参数。The magnetic sensor in the electronic compass 22 is used to collect at least three sets of magnetic force data in the rotation, calculate and output the magnetic force correction parameter; the calculation formula of the magnetic force correction parameter is: Among them, x, y, z are magnetic force data, R is a constant of the geomagnetic field strength, x 0 , y 0 , z 0 , a, b, c are the magnetic force correction parameters to be obtained.
电子罗盘22中的加速度传感器,通过所述磁力校正参数与采集到的加速度值,处理器计算并输出至少三组航向角,并计算得到光传感器21每个姿态平面的单位法向量。For the acceleration sensor in the electronic compass 22, the processor calculates and outputs at least three sets of heading angles through the magnetic correction parameters and the collected acceleration values, and calculates the unit normal vector of each attitude plane of the optical sensor 21.
所述航向角的计算过程包括:The calculation process of the heading angle includes:
利用所述磁力校正参数进行数据恢复,可得在直角坐标系上三轴分量为Mx,My,Mz,归一化数据得Mx1,My1,Mz1。加速度传感器在载体直角坐标系的归一化数据为Ax1,Ay1,Az1;计算得:Using the magnetic force correction parameters for data recovery, the three-axis components on the rectangular coordinate system can be M x , M y , M z , and the normalized data can be M x1 , M y1 , M z1 . The normalized data of the acceleration sensor in the Cartesian coordinate system of the carrier is A x1 , A y1 , A z1 ; the calculation is:
俯仰角ρ=arc sin(-Ax1),翻滚角γ=arc sin(-Ay1/cosρ),Pitch angle ρ=arc sin(-A x1 ), roll angle γ=arc sin(-A y1 /cosρ),
使用公式:Use the formula:
MX2=MX1cosρ+MZ1sinρ,M X2 =M X1 cosρ+M Z1 sinρ,
My2=MX1sinγsinρ+My1cosγ-Mz1sinγcosρ,M y2 =M X1 sinγsinρ+M y1 cosγ-M z1 sinγcosρ,
Mz2=-MX1cosγsinρ+My1sinγ+Mz1cosγcosρ,及M z2 =-M X1 cosγsinρ+My1sinγ+M z1 cosγcosρ, and
即得航向角heading。 That is, the heading angle is obtained.
处理器23,计算光强值和单位法向量等,并利用光强模型,根据所述至少三个光强值及对应的单位法向量建立方程组,求解光接收端20的坐标值。The processor 23 calculates the light intensity value and the unit normal vector, etc., and uses the light intensity model to establish a system of equations according to the at least three light intensity values and the corresponding unit normal vectors to solve the coordinate value of the light receiving end 20 .
所述坐标的计算过程包括:The calculation process of the coordinates includes:
利用光强模型
S1=(k/d2)*((A1(x1-x)+B1(y1-y)+C1(z1-z))/d)*((z1-z)/d) (1)S 1 =(k/d 2 )*((A 1 (x 1 -x)+B 1 (y 1 -y)+C 1 (z 1 -z))/d)*((z 1 -z) /d) (1)
S2=(k/d2)*((A2(x2-x)+B2(y2-y)+C2(z2-z))/d)*((z2-z)/d) (2)S 2 =(k/d 2 )*((A 2 (x 2 -x)+B 2 (y 2 -y)+C 2 (z 2 -z))/d)*((z 2 -z) /d) (2)
S3=(k/d2)*((A3(x3-x)+B3(y3-y)+C3(z3-z))/d)*((z3-z)/d) (3)S 3 =(k/d 2 )*((A 3 (x 3 -x)+B 3 (y 3 -y)+C 3 (z 3 -z))/d)*((z 3 -z) /d) (3)
……...
解方程组可得光接收端20的坐标值。The coordinate values of the light receiving end 20 can be obtained by solving the equations.
实施例3室内定位方法Embodiment 3 indoor positioning method
如图5所示,其中S511是固定于室内的光发射端的设置步骤,步骤S521-步骤S525是可移动的光接收端的接收光信号与计算坐标值的步骤。As shown in Fig. 5, S511 is the setting step of the light emitting end fixed in the room, and step S521-step S525 is the step of receiving the light signal and calculating the coordinate value of the movable light receiving end.
在步骤S511中,在光发射端中,在光源和电源之间连接频率控制器,并在频率控制器中预设一频率用以控制电源开关,使光源发出频率稳定的光信号。In step S511, a frequency controller is connected between the light source and the power supply at the light emitting end, and a frequency is preset in the frequency controller to control the power switch, so that the light source emits an optical signal with a stable frequency.
光信号的频率不能太低,应不影响室内环境中人们的正常工作、休息等,频率也不能太高,应使接收端装置能完整采集到光信号,其频率也要避开环境中已有的干扰频率,如日光灯的100hz频率等。经过试验测试,光信号频率应该至少大于30hz。The frequency of the optical signal should not be too low, it should not affect the normal work and rest of people in the indoor environment, and the frequency should not be too high, so that the receiving device can completely collect the optical signal, and its frequency should also avoid the existing interference frequency, such as the 100hz frequency of fluorescent lamps, etc. After testing, the optical signal frequency should be at least greater than 30hz.
在步骤S521中,将光接收端绕空间一点至少旋转三个姿态。所述至少三个姿态时,光传感器所在的平面线性独立,如图3所示。In step S521, the light receiving end is rotated around a point in space for at least three gestures. In the at least three attitudes, the planes where the light sensors are located are linearly independent, as shown in FIG. 3 .
在步骤S522中,建立光强模型,接收每个姿态的光信号,计算得到至少三个光强值。In step S522, a light intensity model is established, the light signal of each gesture is received, and at least three light intensity values are obtained by calculation.
根据实验结果可知,光传感器在当前位置接收到的光强值s与当前位置和光源之间的距离d,光线进入传感器的入射角μ(μ表示光线进入光传感器时与传感器平面的夹角)和光线在光源处出射角ω(ω表示进入光传感器的光线在光源处发出时与光源垂直射向地面的中心光线的夹角)有关。如图4所示,(x0,y0,z0)为点光源的坐标值,(x,y,z)为所述光传感器的位置坐标,传感器平面与水平面有一定夹角。分别使用函数fd(d)、fμ(μ)、fω(ω)来表示光强s与d、μ、ω的关系。众所周知,光强衰减与距离的平方成反比,用k表示光传感器垂直面对光源中心光(如图4中心线),在距离光源1米处测得的光强值,则fd(d)=k/d2,其中,
d′=|A(x0-x)+B(y0-y)+C(z0-z)|,表示光源到传感器平面的距离,(A,B,C)为所述光传感器传感平面的单位法向量。将光传感器放在中心光线上距离光源d米处,出射角ω=0°等角度间隔(如10°)偏转光源,中心光线的方向随着光源偏转,中心光线出射角ω从0°增大到90°,每次偏转后测试光强值,则光强s与ω的关系,根据实验结果及图4光强模型分析图,光强s=fd(d)*fμ(μ)*fω(ω),则d′=|A(x 0 -x)+B(y 0 -y)+C(z 0 -z)|, represents the distance from the light source to the sensor plane, (A, B, C) is the The unit normal vector of the sense plane. Place the light sensor on the central ray at a distance of d meters from the light source, and deflect the light source at equal angular intervals (such as 10°) at the exit angle ω=0°. The direction of the central ray deflects with the light source, and the central ray exit angle ω increases from 0° to 90°, test the light intensity value after each deflection, then the relationship between light intensity s and ω, According to the experimental results and the light intensity model analysis diagram in Figure 4, the light intensity s=f d (d)*f μ (μ)*f ω (ω), then
在步骤S523中,接收每个姿态的磁力数据,通过对磁力数据进行校正,得到校正参数。In step S523, the magnetic force data of each posture is received, and correction parameters are obtained by correcting the magnetic force data.
如果磁传感器没有受到任何干扰,则磁传感器绕着空间中某一点作全方向旋转。采集到的磁力数据分布在以(0,0,0)为球心的球面上,但实际上磁传感器会受到所在设备和所处环境的各种磁场干扰,在其旋转过程中采集到的数据会形成一个偏离球心的倾斜椭球,这就需要对其进行校正,得到校正参数,从而对磁力数据进行校正,使校正后的磁力数据恢复到以(0,0,0)为球心的球面上。传感器子板或者手机位于空间中某一位置点,使用手或者机械以一定速度围绕该点全方向旋转传感器子板或者手机,同时采集磁力数据和加速度数据。受到干扰的磁力数据校正后的表达式为:If the magnetic sensor is not disturbed by any disturbance, the magnetic sensor will rotate in all directions around a certain point in space. The collected magnetic force data is distributed on a spherical surface with (0, 0, 0) as the center of the sphere, but in fact the magnetic sensor will be disturbed by various magnetic fields of the equipment and environment, and the data collected during its rotation A tilted ellipsoid that deviates from the center of the sphere will be formed, which needs to be corrected to obtain correction parameters, so as to correct the magnetic data and restore the corrected magnetic data to the center of the sphere (0, 0, 0). on the sphere. The sensor sub-board or mobile phone is located at a certain point in space, and the sensor sub-board or mobile phone is rotated in all directions around this point at a certain speed by hand or machinery, and the magnetic force data and acceleration data are collected at the same time. The corrected expression of the disturbed magnetic data is:
其中x,y,z为磁力数据,R为地磁场强度常量,x0,y0,z0,a,b,c为要得到的校正参数。将上式改写成矩阵形式:x2=[x y z -y2-z2 1] Among them, x, y, z are the magnetic force data, R is the constant of the geomagnetic field strength, x0, y0, z0, a, b, c are the correction parameters to be obtained. Rewrite the above formula into matrix form: x 2 =[xyz -y 2 -z 2 1]
设Wnx1=x2,|H|nX6=[x y z -y2-z2 1],Let W nx1 =x 2 , |H| nX6 =[xyz -y 2 -z 2 1],
则Wnx1=[H]nx6*X6x1,根据最小二乘法得X=[HTH]-1HT*W,由此可得x0,y0,z0,a,b,c的值,即校正参数。Then W nx1 =[H] nx6 *X 6x1 , according to the least square method, X=[H T H] -1 H T *W, from which the values of x0, y0, z0, a, b, c can be obtained, namely Calibration parameters.
在步骤S524中,采集至少三组加速度数据,结合磁力校正参数,计算得到每个姿态时光传感器所在平面的单位法向量。In step S524, at least three sets of acceleration data are collected, combined with the magnetic force correction parameters, and the unit normal vector of the plane where the light sensor is located for each attitude is calculated.
使用上步骤中的校正参数对磁力数据进行校正,可将数据恢复到以(0,0,0)为球心的球面上,其在载体直角坐标系x,y,z三轴上的分量为Mx,My,Mz,归一化数据得Mx1,My1,Mz1。加速度传感器在载体直角坐标系x,y,z三轴上的数据为Ax,Ay,Az,归一化数据为Ax1,Ay1,Az1。Use the correction parameters in the previous step to correct the magnetic force data, and the data can be restored to the spherical surface with (0, 0, 0) as the center of the sphere, and its components on the x, y, and z axes of the carrier Cartesian coordinate system are M x , M y , M z , normalize the data to get M x1 , M y1 , M z1 . The data of the acceleration sensor on the three axes of the carrier Cartesian coordinate system x, y, and z are A x , A y , A z , and the normalized data are A x1 , A y1 , A z1 .
使用公式:ρ=arc sin(-Ax1),γ=arc sin(-Ay1/cosρ),计算可得俯仰角ρ和翻滚角γ。Use the formula: ρ=arc sin(-A x1 ), γ=arc sin(-A y1 /cosρ), and calculate the pitch angle ρ and roll angle γ.
使用公式:MX2=MX1cosρ+MZ1sinρ,Use the formula: M X2 =M X1 cosρ+M Z1 sinρ,
My2=MX1sinγsinρ+my1cosγ-Mz1sinγcosρ,M y2 =M X1 sinγsinρ+m y1 cosγ-M z1 sinγcosρ,
Mz2=-MX1cosγsinρ+My1sinγ+Mz1cosγcosρ,及M z2 =-M x1 cosγsinρ+M y1 sinγ+M z1 cosγcosρ, and
即得航向角heading,并通过航向角可计算出当前姿态时光传感器平面的单位法向量。 That is, the heading angle is obtained, and the unit normal vector of the light sensor plane of the current attitude can be calculated through the heading angle.
在步骤S525中,处理器利用光强模型、所述至少三个光强值及对应的单位法向量建立方程组,求解所述光接收端的坐标值。In step S525, the processor uses the light intensity model, the at least three light intensity values and the corresponding unit normal vectors to establish a system of equations to solve the coordinate values of the light receiving end.
对每种姿态,单片机或者手机收集到一定数目(如128个)的原始光强数据后,进行傅里叶变换,在频域上除去环境中其他干扰频率(如普通日光灯100Hz频率),取出信号频率对应的值,再经反傅里叶变换处理得到对应的光源的光强值。根据步骤6变换至少三个不同的姿态,且有至少三个姿态时对应的光传感器平面线性独立,可得至少三个光强值及其对应的航向角。结合光强值、航向角、点光源的坐标值和光强模型使用公式(1)建立至少三个方程的方程组,并求解所述方程组,获得所述光接收端的坐标。For each attitude, after the single-chip or mobile phone collects a certain number (such as 128) of the original light intensity data, it performs Fourier transform, removes other interference frequencies in the environment in the frequency domain (such as the 100Hz frequency of ordinary fluorescent lamps), and takes out the signal The value corresponding to the frequency is processed by inverse Fourier transform to obtain the light intensity value of the corresponding light source. Transform at least three different attitudes according to step 6, and when there are at least three attitudes, the corresponding light sensor planes are linearly independent, and at least three light intensity values and their corresponding heading angles can be obtained. Combining the light intensity value, the heading angle, the coordinate value of the point light source and the light intensity model, using formula (1) to establish an equation system of at least three equations, and solving the equation system to obtain the coordinates of the light receiving end.
本发明根据光强模型,使用集成有光传感器的接收端装置,能够在复杂的室内环境中较为精确地测得该接收端的位置,能够满足很多室内定位的应用要求,且除信号源和接收端以外,无需布置其他辅助设备,无需采集室内指纹,定位精度高,稳定性好,成本较低。According to the light intensity model, the present invention uses the receiving end device integrated with the light sensor, can measure the position of the receiving end more accurately in complex indoor environments, and can meet the application requirements of many indoor positioning, and except the signal source and the receiving end In addition, there is no need to arrange other auxiliary equipment, no need to collect indoor fingerprints, high positioning accuracy, good stability, and low cost.
本发明使用红外线或者可见光来进行定位,定位精度比邻近检测和指纹匹配等方法高,平均精度在0.4m左右,光信号不易受复杂多变的室内环境的影响,一般室内环境没有多径效应,定位结果稳定,不需采集室内指纹。The present invention uses infrared rays or visible light for positioning. The positioning accuracy is higher than that of proximity detection and fingerprint matching methods. The average accuracy is about 0.4m. The positioning result is stable, and there is no need to collect indoor fingerprints.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be considered Be the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310493142.1A CN103543434B (en) | 2013-10-18 | 2013-10-18 | Indoor locating system, mobile phone and localization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310493142.1A CN103543434B (en) | 2013-10-18 | 2013-10-18 | Indoor locating system, mobile phone and localization method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103543434A CN103543434A (en) | 2014-01-29 |
CN103543434B true CN103543434B (en) | 2016-09-07 |
Family
ID=49967057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310493142.1A Active CN103543434B (en) | 2013-10-18 | 2013-10-18 | Indoor locating system, mobile phone and localization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103543434B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104066177B (en) * | 2014-06-30 | 2017-09-01 | 百度在线网络技术(北京)有限公司 | The acquisition methods and device of finger print data in wireless location |
CN104295313B (en) * | 2014-09-29 | 2017-08-15 | 温玉桂 | Position mining device and mining system |
TWI548891B (en) * | 2015-01-12 | 2016-09-11 | 金寶電子工業股份有限公司 | Positioning system for sweeper and positioning method using for the positioning system |
CN104735780B (en) * | 2015-03-25 | 2018-03-30 | 中国科学院深圳先进技术研究院 | A kind of indoor positioning device and localization method |
CN106680771B (en) * | 2015-11-10 | 2022-04-26 | 复旦大学 | A reverse positioning system and method |
CN106443585B (en) * | 2016-09-09 | 2019-01-01 | 中国地质大学(武汉) | A kind of LED indoor 3D localization method of combination accelerometer |
CN107493531B (en) * | 2017-08-04 | 2019-11-08 | 歌尔科技有限公司 | A kind of head pose detection method, device and earphone |
CN107632966B (en) * | 2017-09-08 | 2021-10-19 | 歌尔科技有限公司 | Motion trajectory determination method and electronic equipment |
CN109561393B (en) * | 2018-12-24 | 2021-01-26 | 北京全电智领科技有限公司 | Low-speed carrier positioning method and device based on space optical communication technology |
CN110518951B (en) * | 2019-07-26 | 2021-06-15 | 联想(北京)有限公司 | Information processing method and device |
CN111751784B (en) * | 2020-06-23 | 2023-11-21 | 上海申核能源工程技术有限公司 | Three-dimensional light positioning system of nuclear power station |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102980574A (en) * | 2012-11-20 | 2013-03-20 | 清华大学 | LED-based indoor visible light accurate positioning reception model and positioning method therefor |
CN103251359A (en) * | 2012-02-16 | 2013-08-21 | 恩斯迈电子(深圳)有限公司 | Control method of sweeping robot |
-
2013
- 2013-10-18 CN CN201310493142.1A patent/CN103543434B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103251359A (en) * | 2012-02-16 | 2013-08-21 | 恩斯迈电子(深圳)有限公司 | Control method of sweeping robot |
CN102980574A (en) * | 2012-11-20 | 2013-03-20 | 清华大学 | LED-based indoor visible light accurate positioning reception model and positioning method therefor |
Also Published As
Publication number | Publication date |
---|---|
CN103543434A (en) | 2014-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103543434B (en) | Indoor locating system, mobile phone and localization method | |
CN103399298B (en) | A kind of multisensor indoor positioning apparatus and method based on light intensity | |
CN106556854B (en) | A kind of indoor and outdoor navigation system and method | |
Kang et al. | Improved heading estimation for smartphone-based indoor positioning systems | |
CN101846736B (en) | Indoor accurate positioning system and method thereof | |
US7953327B2 (en) | Commissioning tool, commissioning system and method of commissioning a number of wireless nodes | |
CN103389488A (en) | Multi-source indoor positioning device and method based on light intensity | |
KR20180063263A (en) | Three-dimensional space detection system, positioning method and system | |
CN104697517A (en) | Multi-target tracking and positioning system for indoor parking lot | |
CN103363988A (en) | Method for realizing geomagnetic indoor positioning and navigation by utilization of smartphone sensors | |
CN103809153A (en) | Method and system for accurate straight line distance estimation between two communication devices | |
CN1963561A (en) | Indoor precision orientation method of following multi-moving target | |
CN103813448A (en) | Indoor positioning method based on RSSI | |
CN104181500A (en) | Real-time locating method based on inertia information and chance wireless signal characteristics | |
CN106569173A (en) | PD array for detecting angle of arrival of visible light and indoor visible light positioning method | |
CN108709557A (en) | Indoor map generation method based on multi-user's track fitting | |
CN104965608A (en) | Space mouse system | |
CN107607109A (en) | A kind of space-location method, apparatus and system based on double magnetic beacons | |
Huang et al. | Smartphone-based indoor position and orientation tracking fusing inertial and magnetic sensing | |
TW201835600A (en) | Three-dimension positioning device and method | |
Rozum et al. | Bluetooth low power portable indoor positioning system using simo approach | |
CN109387808A (en) | A kind of method and device positioning tested point | |
Murakami et al. | Five degrees-of-freedom pose-estimation method for smartphones using a single acoustic anchor | |
TWI803043B (en) | Hybrid Indoor Positioning System | |
TWM530957U (en) | Apparatuses for indoor positioning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |