CN105486299A - Mobile terminal indoor positioning method based on electronic compass and mobile terminal indoor positioning system method based on electronic compass - Google Patents

Mobile terminal indoor positioning method based on electronic compass and mobile terminal indoor positioning system method based on electronic compass Download PDF

Info

Publication number
CN105486299A
CN105486299A CN201410471017.5A CN201410471017A CN105486299A CN 105486299 A CN105486299 A CN 105486299A CN 201410471017 A CN201410471017 A CN 201410471017A CN 105486299 A CN105486299 A CN 105486299A
Authority
CN
China
Prior art keywords
mobile terminal
angle
reference point
point
line
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.)
Pending
Application number
CN201410471017.5A
Other languages
Chinese (zh)
Inventor
钟文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201410471017.5A priority Critical patent/CN105486299A/en
Publication of CN105486299A publication Critical patent/CN105486299A/en
Pending legal-status Critical Current

Links

Landscapes

  • Navigation (AREA)

Abstract

The present invention provides a mobile terminal indoor positioning method based on an electronic compass and a mobile terminal indoor positioning system method based on an electronic compass. The mobile terminal indoor positioning method comprises that a mobile terminal receives the operation command of a user to display medial axis line and start an electronic compass; a connection line between a first reference point for marking a fixed point and the mobile terminal position point and a connection line between a second reference point for marking a fixed point and the mobile terminal position point are respectively set as a first reference line and a second reference line, the medial axis line respectively coincides with the first reference line and the second reference line, and the first included angle and the second included angle between the medial axis line and the due north direction line are obtained; and the mobile terminal determines the plane coordinate of the mobile terminal position point through a cosine theorem corresponding algorithm according to the first included angle, the second included angle, a preset first length value and a reference included angle. According to the present invention, the positioning of the mobile terminal position coordinate is achieved through the electronic compass and the medial axis line, such that the positioning result is precise, the error is low, the algorithm used by the positioning is simple, and the practicality is high.

Description

A kind of mobile terminal indoor orientation method based on electronic compass and system thereof
Technical field
The present invention relates to communication technical field, in particular a kind of mobile terminal indoor orientation method based on electronic compass and system thereof.
Background technology
Along with popularizing of information and communication technology (ICT), the demand of people to indoor positioning information grows with each passing day, some public places, as market, airport, exhibition room, office building, warehouse, underground parking etc. all need to use locating information accurately.Such as in the scenes such as mall shopping, public place missing, bulk storage plant management, all need to use positional information.Accurate indoor positioning information, can realize efficient management to free space and stock in storage; Can navigate police, fireman, soldier, health care worker completes specific indoor task; Intelligent space also all be unable to do without location-based service, and therefore indoor positioning has broad application prospects.
Current indoor positioning technologies is mainly through sound wave or ultrasound wave location, radio frequency signal (such as router signal) location etc., but all there is the defects such as poor anti jamming capability, positioning error be large in above-mentioned localization method, and method comparison is complicated, practicality is not high.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, a kind of mobile terminal indoor orientation method based on electronic compass and system thereof are provided, effectively raise the antijamming capability of system and reduce positioning error, and the location algorithm that system adopts is simple, practicality is high.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Based on a mobile terminal indoor orientation method for electronic compass, wherein, described method comprises:
A, mobile terminal receive the operational order display axis of user, and start electronic compass;
B, the line arranging the first reference point for marking point of fixity and mobile terminal present position point are the first reference line, described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line;
C, the line arranging the second reference point for marking point of fixity and mobile terminal present position point are the second reference line, described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line;
The first length value that D, mobile terminal pre-set according to described first angle, described second angle and one and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law.
The described mobile terminal indoor orientation method based on electronic compass, wherein, also comprises before described steps A:
S, Initialize installation are for marking the first reference point and second reference point of point of fixity, the distance arranged between described first reference point and described second reference point is the first length value, and the angle arranging line between described first reference point and described second reference point and direct north line is with reference to angle.
The described mobile terminal indoor orientation method based on electronic compass, wherein, also comprises after described step D:
Described planimetric coordinates is sent to other equipment by E, mobile terminal;
F, other equipment receive described planimetric coordinates, and according to described planimetric coordinates conditioning equipment current operating parameters.
The described mobile terminal indoor orientation method based on electronic compass, wherein, described axis is the straight line for subsidiary that mobile terminal display screen shows.
The described mobile terminal indoor orientation method based on electronic compass, wherein, described step D specifically comprises:
D1, with the second reference point for true origin, set up with the line of the first reference point and the second reference point for x-axis, with perpendicular to the line of the first reference point and the second reference point and the plane right-angle coordinate being y-axis through the straight line of described second reference point;
D2, according to formula x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * cos ( 0- 2) horizontal ordinate of mobile terminal present position point is obtained; Wherein, x 1for the horizontal ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
D3, according to formula y 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * sin ( 0- 2) ordinate of mobile terminal present position point is obtained; Wherein, y 1for the ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
D4, according to x 1and y 1determine the planimetric coordinates (x of mobile terminal present position point 1, y 1).
Based on a mobile terminal indoor locating system for electronic compass, wherein, comprising:
Display and startup module, receive the operational order display axis of user, and start electronic compass for mobile terminal;
First angle acquisition module, is the first reference line for arranging the line of the first reference point for marking point of fixity and mobile terminal present position point, described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line;
Second angle acquisition module, is the second reference line for arranging the line of the second reference point for marking point of fixity and mobile terminal present position point, described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line;
Locating module, the first length value pre-set according to described first angle, described second angle and for mobile terminal and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law.
The described mobile terminal indoor locating system based on electronic compass, wherein, also comprises:
Initial setup module, for Initialize installation for marking the first reference point and second reference point of point of fixity, the distance arranged between described first reference point and described second reference point is the first length value, and the angle arranging line between described first reference point and described second reference point and direct north line is with reference to angle.
The described mobile terminal indoor locating system based on electronic compass, wherein, also comprises:
Sending module, is sent to other equipment for mobile terminal by described planimetric coordinates;
Control module, receives described planimetric coordinates for other equipment, and according to described planimetric coordinates conditioning equipment current operating parameters.
The described mobile terminal indoor locating system based on electronic compass, wherein, described locating module specifically comprises:
Coordinate sets up unit, for with the second reference point for true origin, set up with the line of the first reference point and the second reference point for x-axis, with perpendicular to the line of the first reference point and the second reference point and the plane right-angle coordinate being y-axis through the straight line of described second reference point;
Horizontal ordinate acquiring unit, for according to formula x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * cos ( 0- 2) horizontal ordinate of mobile terminal present position point is obtained; Wherein, x 1for the horizontal ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
Ordinate acquiring unit, for according to formula y 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * sin ( 0- 2) ordinate of mobile terminal present position point is obtained; Wherein, y 1for the ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
Planimetric coordinates acquiring unit, for according to x 1and y 1determine the planimetric coordinates (x of mobile terminal present position point 1, y 1).
The described mobile terminal indoor locating system based on electronic compass, wherein, described axis is the straight line for subsidiary that mobile terminal display screen shows.
A kind of mobile terminal indoor orientation method based on electronic compass provided by the present invention and system thereof, described method comprises: mobile terminal receives the operational order display axis of user, and starts electronic compass; The line arranged for the first reference point and mobile terminal present position point that mark point of fixity is the first reference line, and described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line; The line arranged for the second reference point and mobile terminal present position point that mark point of fixity is the second reference line, and described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line; The first length value that mobile terminal pre-sets according to described first angle, described second angle and one and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law.Realized the location of the coordinate of mobile terminal present position in the present invention by electronic compass and axis, therefore positioning result is accurate, error is little, and location institute adopts algorithm simply, and practicality is high.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of mobile terminal indoor orientation method preferred embodiment based on electronic compass provided by the present invention.
Fig. 2 is the particular flow sheet of the planimetric coordinates of a kind of mobile terminal indoor orientation method determination mobile terminal present position based on electronic compass provided by the present invention.
Fig. 3 is the schematic diagram of indoor positioning.
Fig. 4 is the schematic diagram of the indoor positioning of band size marking.
Fig. 5 is the floor map of indoor intelligent audible control system.
Fig. 6 is the floor map of room conditioning local intelligence control system.
Fig. 7 is the floor map of indoor local lighting control system.
Fig. 8 is the structured flowchart of a kind of mobile terminal indoor locating system preferred embodiment based on electronic compass provided by the present invention.
Embodiment
For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously below with reference to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the process flow diagram of a kind of mobile terminal indoor orientation method preferred embodiment based on electronic compass provided by the present invention.As shown in Figure 1, the described method utilizing electronic compass to carry out indoor positioning, comprises the following steps:
Step S100, mobile terminal receive the operational order display axis of user, and start electronic compass;
When the operational order that mobile terminal receives user opens position-location application, mobile terminal display screen shows an axis, and open the electronic compass sensor in mobile terminal simultaneously.
Step S200, the line arranging the first reference point for marking point of fixity and mobile terminal present position point are the first reference line, described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line;
In preferred embodiment of the present invention, when mobile phone users enter in a certain room carry out indoor positioning time, at least need choose two indoor point of fixity as a reference point, as the corner of indoor, pillar or other fixed object.Two reference point are chosen in the present embodiment, after completing the choosing of two reference point, the first reference line (line namely between the point determined of the first reference point and mobile terminal present position) is determined according to one of them reference point (i.e. the first reference point) and mobile terminal present position point, now mobile phone users in original place terminal in rotary moving, in the process rotated, when detecting that the described axis on mobile terminal display screen overlaps with described first reference line, press the acknowledgement key in position-location application, the first angle of described axis and direct north is obtained by the electronic compass sensor in mobile terminal.
Step S300, the line arranging the second reference point for marking point of fixity and mobile terminal present position point are the second reference line, described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line;
Identical with step S200, be determine the second reference line (line namely between the point determined of the second reference point and mobile terminal present position) according to another reference point (i.e. the second reference point) in two reference point chosen and mobile terminal present position point in step S300.With step S200 identical be mobile phone users in original place terminal in rotary moving, in the process rotated, when detecting that the described axis on mobile terminal display screen overlaps with described second reference line, press the acknowledgement key in position-location application, obtained the second angle of described axis and direct north by the electronic compass sensor in mobile terminal.
The first length value that step S400, mobile terminal pre-set according to described first angle, described second angle and one and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law.
When after described first angle and described second angle of the position-location application acquisition in mobile terminal, in conjunction with the first length value preset and with reference to angle, and calculate the planimetric coordinates of mobile terminal present position according to an algorithm preset.
Preferably, also comprised before step S100 starts electronic compass:
Step S10, Initialize installation are for marking the first reference point and second reference point of point of fixity, the distance arranged between described first reference point and described second reference point is the first length value, and the angle arranging line between described first reference point and described second reference point and direct north line is with reference to angle.
In order to utilize the planimetric coordinates of electronic compass determination mobile terminal present position point, the first reference point and the second reference point need be preset, and determine one first length value according to the distance between the first reference point and the second reference point, and determine with reference to angle according to described first reference point and the line of described second reference point and the angle of direct north line.Choosing and the setting of initial value of above-mentioned reference point, makes the result of calculation in the present invention have uniqueness.
Concrete, as shown in Figure 2, step S400 determines that the idiographic flow of the planimetric coordinates of mobile terminal present position comprises:
Step S401, with the second reference point for true origin, set up with the line of the first reference point and the second reference point for x-axis, with perpendicular to the line of the first reference point and the second reference point and the plane right-angle coordinate being y-axis through the straight line of described second reference point;
Preferred embodiment of the present invention, the two dimensional surface coordinate setting based on electronic compass, have ignored the inclination effect (or unaffected in certain tilt angle ranges) of mobile terminal, therefore only need determine a plane right-angle coordinate according to described first reference point and described second reference point.Preferably, it is true origin O that the present invention chooses the second reference point, with the first reference point and the second reference point line for x-axis, to set up a plane right-angle coordinate perpendicular to the first reference point and the second reference point line and through the straight line of described second reference point for y-axis; Wherein the second reference point points to the direction of the first reference point is x-axis positive dirction, and the direction that the second reference point points to the side of mobile terminal present position is y-axis positive dirction.
The process of establishing of above-mentioned plane right-angle coordinate is now described with an instantiation.Suppose have a cross section to be rectangular room, choose four angles in room as reference point, as shown in Figure 3, first reference point is B, second reference point is A, and the 3rd reference point is D, and the 4th reference point is C, suppose that now mobile terminal present position is P point, then now select A as true origin, AB line is as x-axis, and AD line is as y-axis, A points to the direction x-axis positive dirction of B, and the direction that A points to D is y-axis positive dirction.
Step S402, according to formula x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * cos ( 0- 2) horizontal ordinate of mobile terminal present position point is obtained; Wherein, x 1for the horizontal ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
Complete after setting up plane right-angle coordinate in step S401, due to the angle (the reference angle arranged in step S10) of the length (the first length value arranged in step S10) and BA and direct north that pre-set AB, horizontal ordinate and the ordinate of P point can be calculated according to sine.As shown in Figure 3, bPA= 2- 1, pAB= 0- 1, aBP= - bPA- pAB= - 0+ 1; Wherein 1 is the angle of PB and direct north, 2 is the angle of PA and direct north, 0 is the angle of x-axis negative sense and direct north; There is the known AB/sin of sine aPB=AP/sin aBP, therefore AP=AB*sin aBP/ aPB, x 1=AP*cos pAB is also x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * cos ( 0- 2), above-mentioned computation process adopts algorithm simple, and the horizontal ordinate result of calculating is accurate.
Step S403, according to formula y 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * sin ( 0- 2) ordinate of mobile terminal present position point is obtained; Wherein, y 1for the ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
Identical with step S402, AP=AB*sin aBP/ aPB, x 1=AP*sin pAB is also x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * sin ( 0- 2), equally, above-mentioned computation process adopts algorithm simple, and the ordinate result of calculating is accurate.
Step S404, according to x 1and y 1determine the planimetric coordinates (x of mobile terminal present position point 1, y 1).
The horizontal ordinate x of mobile terminal present position point is obtained respectively in step S403 and step S404 1with ordinate y 1after, the planimetric coordinates (x of mobile terminal present position point can be obtained 1, y 1).
Planimetric coordinates (the x obtaining mobile terminal present position point is now described with an instantiation 1, y 1) computation process.As shown in Figure 4, suppose a=AB=3.6m, 1=16.2 °, 2=66.8 °, 0=128.7 °, will 0, 1 and 2 are all converted into radian substitutes into formula (1) and formula (2) again, formula (1) and formula (2) as follows:
x 1=(a*sin( - 0+ 1)/sin( 2- 1))*sin( 0- 2)(1)
y 1=(a*sin( - 0+ 1)/sin( 2- 1))*sin( 0- 2)(2)
X is calculated by formula (1) and formula (2) 1=2.027300226m, y 1=3.796814619m.If according to Fig. 4, and according to P point position in the drawings, draw some boost lines, and according to the ratio 1:60 of schematic diagram, the coordinate of P point can be obtained for (1.960932m, 3.822966m), this and through type (1) and formula (2) calculate to result compare, error is very little, and precision is very high in actual applications to adopt the algorithm of formula (1) and formula (2) as seen, higher than the positioning result obtained based on sound wave feedback or wireless signal strength fingerprint technique.
Embodiment further, described step S400 also comprises after obtaining the planimetric coordinates of mobile terminal present position:
Described planimetric coordinates is sent to other equipment by step S500, mobile terminal;
Step S600, other equipment receive described planimetric coordinates, and according to described planimetric coordinates conditioning equipment current operating parameters.
The planimetric coordinates of the mobile terminal present position obtained in present pre-ferred embodiments can be sent to other equipment, for the various Smart Home application relating to indoor positioning provides position data.Based on above-mentioned position data, indoor intelligent audible control system, indoor intelligent partial air conditioning, the control of indoor intelligent local lighting etc. can be realized.Further, this technology is not limited in indoor, if the mark buildings that fixing reference point selects certain large-scale, can also realize rough location, and do not need to use GPS and base station in city.Below by by concrete Application Example, the present invention will be further described.
As shown in Figure 5, be the floor map of indoor intelligent audible control system.After the position of indoor audio amplifier has been disposed, audible control system needs according to the position of audio amplifier to the Intelligent adjustment of each sound box parameter.Now user can adopt the method utilizing electronic compass to carry out indoor positioning of the present invention, stand in the position P1 ~ P6 of each audio amplifier, demarcate the indoor location of audio amplifier one by one, and coordinate is sent to the core of control system, then core can be carried out intelligent computing and regulate sound box parameter.
As shown in Figure 6, be the floor map of room conditioning local intelligence control system.Assuming that air-conditioning position completes indoor positioning by correlation technique, user adopts the method utilizing electronic compass to carry out indoor positioning of the present invention to obtain the coordinate of user in indoor present position, and pass through radio communication, be transferred to air-conditioning, air-conditioning can realize regulating according to position local relief and temperature.After P point position determined by air-conditioning, the axis angle that can suitably regulate air outlet to swing and the amplitude of swing, realize local fast cooling.
As shown in Figure 7, be the floor map of indoor local lighting control system.User adopts the method utilizing electronic compass to carry out indoor positioning of the present invention to obtain the coordinate of indoor present position, and by radio communication, be transferred to Lighting Control Assembly, Lighting Control Assembly can throw light on according to position local modulation, reaches the object of power saving; Wherein, P point is user present position, and L1 ~ L4 is the position of ceiling Down lamp, and L5 is the position of lamp affixed to the ceiling.Now, Lighting Control Assembly only needs control to light L1 and L4 just can reach better illuminating effect, and reaches the object of power saving.
Based on above-described embodiment, the present invention also provides a kind of mobile terminal indoor locating system based on electronic compass, and as shown in Figure 8, the described mobile terminal indoor locating system based on electronic compass comprises:
Display and startup module 100, receive the operational order display axis of user, and start electronic compass for mobile terminal; As detailed above.
First angle acquisition module 200, be the first reference line for arranging the line of the first reference point for marking point of fixity and mobile terminal present position point, described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line; As detailed above.
Second angle acquisition module 300, be the second reference line for arranging the line of the second reference point for marking point of fixity and mobile terminal present position point, described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line; As detailed above.
Locating module 400, the first length value pre-set according to described first angle, described second angle and for mobile terminal and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law; As detailed above.
Embodiment further, the described mobile terminal indoor locating system based on electronic compass also comprises:
Initial setup module, for Initialize installation for marking the first reference point and second reference point of point of fixity, the distance arranged between described first reference point and described second reference point is the first length value, and the angle arranging line between described first reference point and described second reference point and direct north line is with reference to angle; As detailed above.
Sending module, is sent to other equipment for mobile terminal by described planimetric coordinates; As detailed above.
Control module, receives described planimetric coordinates for other equipment, and according to described planimetric coordinates conditioning equipment current operating parameters; As detailed above.
Embodiment further, described locating module 400 specifically comprises:
Coordinate sets up unit 401, for with the second reference point for true origin, set up with the line of the first reference point and the second reference point for x-axis, with perpendicular to the line of the first reference point and the second reference point and the plane right-angle coordinate being y-axis through the straight line of described second reference point; As detailed above.
Horizontal ordinate acquiring unit 402, for according to formula x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * cos ( 0- 2) horizontal ordinate of mobile terminal present position point is obtained; Wherein, x 1for the horizontal ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle; As detailed above.
Ordinate acquiring unit 403, for according to formula y 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * sin ( 0- 2) ordinate of mobile terminal present position point is obtained; Wherein, y 1for the ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle; As detailed above.
Planimetric coordinates acquiring unit 404, for according to x 1and y 1determine the planimetric coordinates (x of mobile terminal present position point 1, y 1); As detailed above.
In sum, a kind of mobile terminal indoor orientation method based on electronic compass provided by the present invention and system thereof, described method comprises: mobile terminal receives the operational order display axis of user, and starts electronic compass; The line arranged for the first reference point and mobile terminal present position point that mark point of fixity is the first reference line, and described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line; The line arranged for the second reference point and mobile terminal present position point that mark point of fixity is the second reference line, and described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line; The first length value that mobile terminal pre-sets according to described first angle, described second angle and one and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law.Realized the location of the coordinate of mobile terminal present position in the present invention by electronic compass and axis, therefore positioning result is accurate, error is little, and location institute adopts algorithm simply, and practicality is high.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (10)

1. based on a mobile terminal indoor orientation method for electronic compass, it is characterized in that, described method comprises:
A, mobile terminal receive the operational order display axis of user, and start electronic compass;
B, the line arranging the first reference point for marking point of fixity and mobile terminal present position point are the first reference line, described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line;
C, the line arranging the second reference point for marking point of fixity and mobile terminal present position point are the second reference line, described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line;
The first length value that D, mobile terminal pre-set according to described first angle, described second angle and one and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law.
2., according to claim 1 based on the mobile terminal indoor orientation method of electronic compass, it is characterized in that, also comprise before described steps A:
S, Initialize installation are for marking the first reference point and second reference point of point of fixity, the distance arranged between described first reference point and described second reference point is the first length value, and the angle arranging line between described first reference point and described second reference point and direct north line is with reference to angle.
3., according to claim 1 based on the mobile terminal indoor orientation method of electronic compass, it is characterized in that, also comprise after described step D:
Described planimetric coordinates is sent to other equipment by E, mobile terminal;
F, other equipment receive described planimetric coordinates, and according to described planimetric coordinates conditioning equipment current operating parameters.
4. according to claim 1 based on the mobile terminal indoor orientation method of electronic compass, it is characterized in that, described axis is the straight line for subsidiary that mobile terminal display screen shows.
5., according to claim 1 based on the mobile terminal indoor orientation method of electronic compass, it is characterized in that, described step D specifically comprises:
D1, with the second reference point for true origin, set up with the line of the first reference point and the second reference point for x-axis, with perpendicular to the line of the first reference point and the second reference point and the plane right-angle coordinate being y-axis through the straight line of described second reference point;
D2, according to formula x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * cos ( 0- 2) horizontal ordinate of mobile terminal present position point is obtained; Wherein, x 1for the horizontal ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
D3, according to formula y 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * sin ( 0- 2) ordinate of mobile terminal present position point is obtained; Wherein, y 1for the ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
D4, according to x 1and y 1determine the planimetric coordinates (x of mobile terminal present position point 1, y 1).
6., based on a mobile terminal indoor locating system for electronic compass, it is characterized in that, comprising:
Display and startup module, receive the operational order display axis of user, and start electronic compass for mobile terminal;
First angle acquisition module, is the first reference line for arranging the line of the first reference point for marking point of fixity and mobile terminal present position point, described axis is overlapped with described first reference line, obtains the first angle of axis and direct north line;
Second angle acquisition module, is the second reference line for arranging the line of the second reference point for marking point of fixity and mobile terminal present position point, described axis is overlapped with described second reference line, obtains the second angle of axis and direct north line;
Locating module, the first length value pre-set according to described first angle, described second angle and for mobile terminal and with reference to angle, with the planimetric coordinates of algorithm determination mobile terminal present position point corresponding to the cosine law.
7., according to claim 6 based on the mobile terminal indoor locating system of electronic compass, it is characterized in that, also comprise:
Initial setup module, for Initialize installation for marking the first reference point and second reference point of point of fixity, the distance arranged between described first reference point and described second reference point is the first length value, and the angle arranging line between described first reference point and described second reference point and direct north line is with reference to angle.
8., according to claim 6 based on the mobile terminal indoor locating system of electronic compass, it is characterized in that, also comprise:
Sending module, is sent to other equipment for mobile terminal by described planimetric coordinates;
Control module, receives described planimetric coordinates for other equipment, and according to described planimetric coordinates conditioning equipment current operating parameters.
9., according to claim 6 based on the mobile terminal indoor locating system of electronic compass, it is characterized in that, described locating module specifically comprises:
Coordinate sets up unit, for with the second reference point for true origin, set up with the line of the first reference point and the second reference point for x-axis, with perpendicular to the line of the first reference point and the second reference point and the plane right-angle coordinate being y-axis through the straight line of described second reference point;
Horizontal ordinate acquiring unit, for according to formula x 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * cos ( 0- 2) horizontal ordinate of mobile terminal present position point is obtained; Wherein, x 1for the horizontal ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
Ordinate acquiring unit, for according to formula y 1=(a*sin ( - 0+ 1)/sin ( 2- 1)) * sin ( 0- 2) ordinate of mobile terminal present position point is obtained; Wherein, y 1for the ordinate of mobile terminal present position point, a is the distance between described first reference point and described second reference point, 0 is described with reference to angle, 1 is described first angle, 2 is described second angle;
Planimetric coordinates acquiring unit, for according to x 1and y 1determine the planimetric coordinates (x of mobile terminal present position point 1, y 1).
10. according to claim 6 based on the mobile terminal indoor locating system of electronic compass, it is characterized in that, described axis is the straight line for subsidiary that mobile terminal display screen shows.
CN201410471017.5A 2014-09-17 2014-09-17 Mobile terminal indoor positioning method based on electronic compass and mobile terminal indoor positioning system method based on electronic compass Pending CN105486299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410471017.5A CN105486299A (en) 2014-09-17 2014-09-17 Mobile terminal indoor positioning method based on electronic compass and mobile terminal indoor positioning system method based on electronic compass

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410471017.5A CN105486299A (en) 2014-09-17 2014-09-17 Mobile terminal indoor positioning method based on electronic compass and mobile terminal indoor positioning system method based on electronic compass

Publications (1)

Publication Number Publication Date
CN105486299A true CN105486299A (en) 2016-04-13

Family

ID=55673436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410471017.5A Pending CN105486299A (en) 2014-09-17 2014-09-17 Mobile terminal indoor positioning method based on electronic compass and mobile terminal indoor positioning system method based on electronic compass

Country Status (1)

Country Link
CN (1) CN105486299A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107314766A (en) * 2017-07-31 2017-11-03 成都楷模电子科技有限公司 Robot indoor positioning system and method based on ultrasound and magnetometer
CN108592166A (en) * 2018-03-20 2018-09-28 上海思愚智能科技有限公司 A kind of intelligent heating method and smart machine
CN110779516A (en) * 2019-11-05 2020-02-11 厦门精图信息技术有限公司 Mobile terminal map positioning method, terminal equipment and storage medium
CN111795673A (en) * 2020-07-09 2020-10-20 杭州海康微影传感科技有限公司 Azimuth angle display method and device
CN114708407A (en) * 2022-04-06 2022-07-05 如你所视(北京)科技有限公司 Virtual three-dimensional space information display method, device and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101109809A (en) * 2007-08-17 2008-01-23 张铁军 Positioning device, system and method based on direction control photosensitive array
JP2008227685A (en) * 2007-03-09 2008-09-25 Nec Corp Relative position specification system, terminal, method, and program of portable communication terminal, and portable communication terminal
CN102506837A (en) * 2011-10-10 2012-06-20 海能达通信股份有限公司 Terminal positioning method and terminal with electronic compass
CN102628688A (en) * 2012-03-28 2012-08-08 天津二十冶建设有限公司 Method for performing engineering measurement by method for solving triangle by sine rule
US20140073345A1 (en) * 2012-09-07 2014-03-13 Microsoft Corporation Locating a mobile computing device in an indoor environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227685A (en) * 2007-03-09 2008-09-25 Nec Corp Relative position specification system, terminal, method, and program of portable communication terminal, and portable communication terminal
CN101109809A (en) * 2007-08-17 2008-01-23 张铁军 Positioning device, system and method based on direction control photosensitive array
CN102506837A (en) * 2011-10-10 2012-06-20 海能达通信股份有限公司 Terminal positioning method and terminal with electronic compass
CN102628688A (en) * 2012-03-28 2012-08-08 天津二十冶建设有限公司 Method for performing engineering measurement by method for solving triangle by sine rule
US20140073345A1 (en) * 2012-09-07 2014-03-13 Microsoft Corporation Locating a mobile computing device in an indoor environment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107314766A (en) * 2017-07-31 2017-11-03 成都楷模电子科技有限公司 Robot indoor positioning system and method based on ultrasound and magnetometer
CN107314766B (en) * 2017-07-31 2023-11-28 成都楷模电子科技有限公司 Robot indoor positioning system and method based on ultrasound and magnetometer
CN108592166A (en) * 2018-03-20 2018-09-28 上海思愚智能科技有限公司 A kind of intelligent heating method and smart machine
CN108592166B (en) * 2018-03-20 2020-07-28 浙江万物工场智能科技有限公司 Intelligent heating method and intelligent equipment
CN110779516A (en) * 2019-11-05 2020-02-11 厦门精图信息技术有限公司 Mobile terminal map positioning method, terminal equipment and storage medium
CN111795673A (en) * 2020-07-09 2020-10-20 杭州海康微影传感科技有限公司 Azimuth angle display method and device
CN114708407A (en) * 2022-04-06 2022-07-05 如你所视(北京)科技有限公司 Virtual three-dimensional space information display method, device and program product

Similar Documents

Publication Publication Date Title
CN105486299A (en) Mobile terminal indoor positioning method based on electronic compass and mobile terminal indoor positioning system method based on electronic compass
US20160345129A1 (en) Positioning system for indoor and surrounding areas, positioning method and route-planning method thereof and mobile apparatus
US9906920B2 (en) Building design information based indoor positioning system
CN104330081B (en) A kind of generation method and device of descriptive position indicating information
CN102840859B (en) Charging guider, system and charging air navigation aid
CN103560813B (en) Mobile terminal positioning method and device based on Bluetooth technology
CN104020447A (en) Indoor combined positioning system and positioning method thereof
US9883351B2 (en) Indoor positioning device and indoor positioning method
CN107490802B (en) Space positioning method, device and system based on multiple magnetic beacons
CN104331423B (en) A kind of localization method and device based on electronic map
KR20120067013A (en) Apparatus and method for indoor localization based on camera
CN109982245B (en) Indoor real-time three-dimensional positioning method
CN108445520A (en) A kind of indoor and outdoor based on high in the clouds builds drawing method, device, electronic equipment and computer program product
EP3092506A1 (en) Positioning system for determining the location of a device
CN103886032A (en) Geographic information model and building information model integrated associated index component method
CN104075707A (en) Positioning and navigating method and system for indoor space
CN104729499A (en) Bluetooth technology-based method for positioning mobile terminal by indoor robot
CN104661300A (en) Positioning method, device, system and mobile terminal
CN111638537B (en) Indoor and outdoor multi-technology fusion positioning method
CN106028447A (en) Indoor floor location method based on air pressure fingerprint
CN113535865B (en) Map grid dividing method and electronic equipment
CN112484716A (en) Indoor positioning navigation system based on 5G indoor distribution system
CN104598640A (en) Method for positioning concrete positions of located road network based on longitude and latitude
CN110823210A (en) Navigation map presetting system for indoor parking lot and real-time updating method thereof
CN102759354A (en) Navigation method and device as well as indoor position transmitting method and positioning system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413