CN106301452B - Method of locating terminal and positioning device - Google Patents

Method of locating terminal and positioning device Download PDF

Info

Publication number
CN106301452B
CN106301452B CN201610597072.8A CN201610597072A CN106301452B CN 106301452 B CN106301452 B CN 106301452B CN 201610597072 A CN201610597072 A CN 201610597072A CN 106301452 B CN106301452 B CN 106301452B
Authority
CN
China
Prior art keywords
antenna
active device
terminal
business
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610597072.8A
Other languages
Chinese (zh)
Other versions
CN106301452A (en
Inventor
熊晓峰
王霖川
薛宗林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610597072.8A priority Critical patent/CN106301452B/en
Publication of CN106301452A publication Critical patent/CN106301452A/en
Application granted granted Critical
Publication of CN106301452B publication Critical patent/CN106301452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/14Receivers specially adapted for specific applications
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/35Constructional details or hardware or software details of the signal processing chain
    • G01S19/36Constructional details or hardware or software details of the signal processing chain relating to the receiver frond end

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure discloses a kind of method of locating terminal and positioning device, belongs to digital communicating field.The described method includes: after receiving positioning open command, judge whether the first antenna of terminal currently executes preset to be switched business, when first antenna is currently not carried out to be switched business, lock the state of corresponding first active device of first antenna, first active device is used to carry out assistant adjustment to the antenna of terminal, during the locking of the first active device, according to positioning open command, terminal is positioned by first antenna.By the state for locking the first active device, guarantee terminal in position fixing process, frequency range where terminal will not be switched over, therefore the phase that not will cause positioning function changes, positioning function is solved the problems, such as because of the position inaccurate that phase changes and generates, under the premise of guaranteeing the quality of original voice service or mobile data services, the accuracy of positioning function is improved, the flexibility of positioning function is increased.

Description

Method of locating terminal and positioning device
Technical field
The present invention relates to digital communicating field, in particular to a kind of method of locating terminal and positioning device.
Background technique
It with scientific and technological level is constantly progressive, terminal has outside basic communication function, generally all also has GPS (Global Position System, global positioning system) positioning function.Correspondingly, terminal also has communication antenna and GPS Antenna.
In the related technology, since the working frequency range of GPS function and the working frequency range of communication function are close, in order to reduce design The difficulty of antenna, and the space of terminal inner is saved, GPS antenna is usually communicated into day with any one in two communication antennas Line is combined, so that combined antenna is on the basis of being able to carry out communication function, additionally it is possible to execute positioning function.Separately Outside, every communication antenna corresponds to an active device, and each active device is logical in execution for adjusting corresponding communication antenna Working frequency when telecommunication function.
For example, the first communication antenna of terminal is combined with GPS antenna, when terminal is when executing GPS positioning function, first is logical Letter antenna is also carrying out communication service, and executing communication service may need through the corresponding active device of first antenna (such as Tuner) impedance of internal circuit is switched over, adjust the working frequency range of communication function.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method of locating terminal and positioning device.It is described Technical solution is as follows:
According to the disclosure in a first aspect, providing a kind of method of locating terminal, which comprises
After receiving positioning open command, judge whether the first antenna of terminal currently executes preset to be switched industry Business, the to be switched business are as follows: voice service or mobile data services, the first antenna are integrated with positioning function to be preset The antenna of energy;
When the first antenna is currently not carried out the to be switched business, locking the first antenna corresponding first has The state of source device, first active device are used to carry out assistant adjustment to the antenna of terminal;
During first active device locking, according to the positioning open command, by the first antenna to institute Terminal is stated to be positioned.
Optionally, the terminal further include: the second antenna and corresponding second active device of second antenna, the side Method further include:
When the first antenna currently executes the to be switched business, judge first active device state whether It needs to switch;
When the state for determining first active device needs to switch, first active device is needed to be switched to Frequency range is switched on the second antenna by second active device.
Optionally, the method also includes:
When the state for determining first active device does not need switching, the state of first active device is locked;
During first active device locking, according to the positioning open command, by the first antenna to institute Terminal is stated to be positioned.
Optionally, the method also includes:
After receiving positioning END instruction, stopping positions the terminal;
If first active device is in the lock state, the locking to first active device is released.
Optionally, the method also includes:
After first active device locking, reception business is executed instruction, and the business executes instruction instruction described the One antenna performance objective business, the target service are as follows: voice service or mobile data services;
When judging that the first antenna executes the target service, whether the state of first active device needs to cut It changes;
When the state for determining first active device needs to switch, judge whether second antenna is able to carry out institute State target service;
When second antenna cannot execute the target service, the locking to first active device is released;
When second antenna is able to carry out the target service, first active device is needed to the frequency being switched to Section, is switched on the second antenna by second active device.
Optionally, first active device and second active device are antenna tuner.
According to the second aspect of the disclosure, a kind of positioning device is provided, described device includes:
First judgment module is configured as after receiving positioning open command, judges that the first antenna of terminal is currently It is no to execute preset to be switched business, the to be switched business are as follows: voice service or mobile data services, the first antenna For the preset antenna for being integrated with positioning function;
Locking module is configured as when the first antenna is currently not carried out the to be switched business, locks described the The state of corresponding first active device of one antenna, first active device are used to carry out assistant adjustment to the antenna of terminal;
Locating module is configured as, according to the positioning open command, passing through during first active device locks The first antenna positions the terminal.
Optionally, the terminal further include: the second antenna and corresponding second active device of second antenna;
Described device further include:
Second judgment module is configured as when the first antenna currently executes the to be switched business, described in judgement Whether the state of the first active device, which needs, switches;
Switching module is configured as having when the state for determining first active device needs to switch by described first Source device needs the frequency range being switched to, and is switched on the second antenna by second active device.
Optionally, the locking module is additionally configured to not need to switch when the state for determining first active device When, lock the state of first active device;
The locating module is additionally configured to during first active device locks, and is referred to according to positioning unlatching It enables, the terminal is positioned by the first antenna.
Optionally, described device further include:
Stopping modular is positioned, is configured as after receiving positioning END instruction, stopping positions the terminal;
Unlocked state is in the lock state if being configured as first active device, is released to the described first active device The locking of part.
Optionally, described device further include:
Receiving module is configured as after first active device locks, and reception business executes instruction, and the business is held Row instruction instruction passes through the first antenna performance objective business, the target service are as follows: voice service or mobile data industry Business;
It is described when second judgment module is additionally configured to judgement by the first antenna execution target service Whether the state of the first active device, which needs, switches;
Third judgment module is configured as when the state for determining first active device needs to switch, described in judgement Whether the second antenna is able to carry out the target service;
Unlocked state is configured as when second antenna cannot execute the target service, is released to described first The locking of active device;
The switching module is additionally configured to when second antenna is able to carry out the target service, by described first Active device needs the frequency range being switched to, and is switched on the second antenna by second active device.
Optionally, first active device and second active device are antenna tuner.
According to the third aspect of the disclosure, a kind of positioning device is provided, described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
After receiving positioning open command, judge whether the first antenna of terminal currently executes preset to be switched industry Business, the to be switched business are as follows: voice service or mobile data services, the first antenna are integrated with positioning function to be preset The antenna of energy;
When the first antenna is currently not carried out the to be switched business, locking the first antenna corresponding first has The state of source device, first active device are used to carry out assistant adjustment to the antenna of terminal;
During first active device locking, according to the positioning open command, by the first antenna to institute Terminal is stated to be positioned.
Technical solution provided in an embodiment of the present invention has the benefit that
The method of locating terminal and positioning device provided in the embodiment of the present disclosure, by receiving positioning open command Afterwards, judge whether the first antenna of terminal currently executes preset to be switched business, when the first antenna is currently not carried out institute When stating to be switched business, the state of corresponding first active device of the first antenna is locked, first active device is used for Assistant adjustment is carried out to the antenna of terminal, during first active device locking, according to the positioning open command, is passed through The first antenna positions the terminal.By locking the state of the first active device, guarantee terminal in position fixing process In, the frequency range where terminal will not be switched over, therefore the phase that not will cause positioning function changes, solve positioning The problem of function is because of the position inaccurate that phase changes and generates is guaranteeing original voice service or mobile data industry Under the premise of the quality of business, the accuracy of positioning function is improved, increases the flexibility of positioning function.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow chart of method of locating terminal shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of method of locating terminal shown according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of positioning device shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of positioning device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of positioning device shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of positioning device shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of positioning device shown according to an exemplary embodiment.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is a kind of flow chart of method of locating terminal shown according to an exemplary embodiment, as shown in Figure 1, this one Kind image processing method is applied in terminal, comprising the following steps:
In a step 101, after receiving positioning open command, it is default to judge whether the first antenna of terminal currently executes To be switched business.
Wherein, to be switched business are as follows: voice service or mobile data services, the first antenna are preset be integrated with The antenna of positioning function;
In a step 102, when first antenna is currently not carried out to be switched business, the first antenna corresponding first is locked The state of active device.
Wherein, which is used to carry out assistant adjustment to the antenna of terminal.
In step 103, during the locking of the first active device, according to positioning open command, by first antenna to end End is positioned.
In conclusion the method for locating terminal provided in the embodiment of the present disclosure, referred to by terminal receiving positioning and open After order, judge whether the first antenna of terminal currently executes preset to be switched business, when the first antenna is currently not carried out When the to be switched business, the state of corresponding first active device of the first antenna is locked, first active device is used Assistant adjustment is carried out in the antenna to terminal, during first active device locking, according to the positioning open command, is led to The first antenna is crossed to position the terminal.By locking the state of the first active device, guarantee that terminal was positioning Cheng Zhong will not switch over the frequency range where terminal, therefore the phase that not will cause positioning function changes, and it is fixed to solve The problem of bit function is because of the position inaccurate that phase changes and generates is guaranteeing original voice service or mobile data Under the premise of the quality of business, the accuracy of positioning function is improved, increases the flexibility of positioning function.
Fig. 2 is a kind of flow chart of method of locating terminal shown according to an exemplary embodiment, as shown in Fig. 2, the figure As processing method is applied in terminal, comprising the following steps:
In step 201, after receiving positioning open command, it is default to judge whether the first antenna of terminal currently executes To be switched business.
Wherein, which can be the instruction or user's triggering of the unlatching positioning function of user's triggering Open the instruction for needing the application program using positioning function.
In addition, the to be switched business can be voice service or mobile data services, voice service that is to say that voice is logical News business.Correspondingly, terminal, which executes the voice service, refers to that terminal is in voice call state, and terminal executes mobile number Refer to that terminal is carried out data transmission by mobile data network according to business, usually user uses mobile data by terminal Network online, such as carry out the upload or downloading of data.
After terminal detects that user opens positioning function, or detects that user opens and need using positioning function Application program after, i.e., it is believed that user needs using positioning function, and terminal then can determine have received user triggering determine Position open command, then terminal determines whether executing preset to be switched business.
When terminal determines that first antenna is currently executing to be switched business, 202 are thened follow the steps;When terminal determines When one antenna is currently not carried out to be switched business, step 204 is executed.
Wherein, whether terminal can judge currently to be carrying out by way of determining whether there is data interaction default To be switched business.If terminal is currently carrying out data interaction with base station, it is determined that terminal is carrying out preset to be cut Change business, if terminal currently with base station and be not present data interaction, it is determined that terminal is not carried out preset to be switched business.
In step 202, judge whether the state of the first active device needs to switch.
Wherein, which is used to carry out assistant adjustment to the antenna of terminal, which can be The devices such as antenna tuner, such as switch, tuner, the present embodiment do not limit this.
When terminal is currently executing to be switched business, then need whether the state for first judging the first active device needs Switch over, can the frequency range that is currently located of frequency range and terminal according to needed for the to be switched business judged, thus really Whether the state of fixed first active device needs to switch over.When the state for determining the first active device needs to switch, execute Step 203;When the state for determining the first active device does not need switching, step 204 is executed.
For example, then illustrating terminal when the frequency range needed for the to be switched business is consistent with the frequency range that terminal is currently located The to be switched business can be performed without switching frequency range i.e., the first active device is not necessarily to switching state;But when the to be switched business When the frequency range that required frequency range and terminal are currently located is inconsistent, then illustrate this just can be performed after terminal needs to switch frequency range to be cut Business is changed, the first active device needs switching state.
It should be noted that under normal conditions, the working frequency range of positioning function is 1575MHz (megahertz), and to be switched The working frequency range of business includes: low frequency band 800MHz-960MHz, medium-high frequency frequency range 1700MHz-2700MHz.
In step 203, the frequency range for the first active device being needed to be switched to, switches to second by the second active device On antenna.
It should be noted that terminal include first antenna, the second antenna, corresponding first active device of first antenna and Corresponding second active device of second antenna.The first antenna is the first communication antenna of the terminal, which is the end Second communication antenna at end.Moreover, first day is the preset antenna for being integrated with positioning function of line, it that is to say that first antenna combines First communication antenna and GPS antenna.First active device and the second active device are for carrying out auxiliary tune to the antenna of terminal Examination.
When the state for determining first active device needs to switch, which is needed to the frequency range being switched to It switches on the second antenna, that is to say the to be switched business for being carrying out the first antenna of terminal, switch to the second antenna, lead to The second active device is crossed, frequency range needed for the frequency range where the second antenna is adjusted to be switched business is executed by the second antenna The to be switched business avoids the to be switched business from interfering with each other with positioning function.
If the state of the first active device of terminal locking, the to be switched business being currently executing will receive influence, because This quality in order to guarantee the to be switched business being currently executing, can not lock the state of the first active device, need Frequency range needed for frequency range where second antenna is adjusted to be switched business.
In step 204, the state of the first active device is locked.
After determining that terminal is currently not carried out to be switched business, the shape of preset first active device of terminal, that is, lockable The state of first active device is locked as current state by state, to guarantee that terminal, will not be because of when executing positioning function The state of one active device changes, and leads to the position location inaccuracy of positioning function or asking for bit rates decline Topic.
It should be noted that the state of the first active device of locking that is to say when terminal currently executes positioning function, it will The frequency range that terminal is currently located is locked, and prevents terminal during executing positioning function, and the frequency range of terminal switches over, To be impacted to positioning function.
It, then, will not be to working as after the state of the first active device of terminal locking since the first active device does not need to switch Before the to be switched business that is carrying out impact, then the state of the first active device can be locked.Therefore, first During active device locks, terminal can be positioned terminal by first antenna according to positioning open command, fixed executing During bit function, terminal can be positioned the terminal by the first antenna of the terminal, so that it is determined that terminal is current The geographical location at place.
In step 205, detect whether that receiving business executes instruction.
After the locking of the first active device, during positioning, the business that may receive executes instruction terminal, the industry Business executes instruction instruction first antenna performance objective business.Wherein, which can be voice service or mobile data Business, it is similar with above-mentioned to be switched business.For example, user when using terminal positions, receives other users initiation Voice service.
Therefore, after the locking of the first active device, terminal needs detect whether that having received business executes instruction, if connect The business of having received executes instruction, and thens follow the steps 206;If the business of being not received by executes instruction, 208 are thened follow the steps.
In step 206, when judging first antenna performance objective business, whether the state of the first active device needs to cut It changes.
After terminal detects that the business of having received executes instruction, the process similar with above-mentioned steps 202 can be executed, really Determine whether terminal needs to execute the to be switched business by the second antenna.It that is to say, terminal may determine that be executed by first antenna When the target service, if need to adjust the state of first active device.
When the state for determining the first active device needs to switch, step 207 is executed;When the shape for determining the first active device When state does not need switching, step 208 is executed.
In step 207, judge whether the second antenna is able to carry out target service.
When determining first antenna performance objective business, the state of the first active device needs to switch, then continues judgement Whether two antennas can execute the target service, when second antenna cannot execute the target service, release first active to this First active device is needed the frequency range being switched to cut when second antenna is able to carry out the target service by the locking of device It shifts on the second antenna.
It that is to say, when the second antenna cannot execute the target service, execute step 209;When the second antenna can be held When row target service, 203 are thened follow the steps.
In a step 208, stop positioning terminal.
After terminal detects the positioning END instruction of user's triggering, terminal can stop executing positioning function.Wherein, should Positioning END instruction can be it is corresponding with the positioning open command in step 201, i.e., user triggering closing positioning function Instruction or the closing of user's triggering need the instruction of the program using positioning function.
When terminal detects that the closing of instruction or the user's triggering of the closing positioning function of user's triggering is needed using fixed When the program of bit function, i.e., it is believed that user no longer needs the positioning function of using terminal, terminal, which also can determine, receives user The positioning END instruction of triggering, to stop executing positioning function.
In step 209, the locking to the first active device is released.
After terminal receives positioning END instruction, if the first active device is in the lock state, it can release pair The locking of first active device.
It should be noted that if the first active device is in the lock state, terminal after receiving positioning END instruction, It can first stop executing positioning function, then release the locking to the first active device, terminal can also first release active to first The locking of device, then stop executing positioning function, it that is to say if the first active device is in the lock state, can first carry out Step 209, then step 208 is executed, the present embodiment does not limit this.
In conclusion the method for locating terminal provided in the embodiment of the present disclosure, referred to by terminal receiving positioning and open After order, judge whether the first antenna of terminal currently executes preset to be switched business, when the first antenna is currently not carried out When the to be switched business, the state of corresponding first active device of the first antenna is locked, first active device is used Assistant adjustment is carried out in the antenna to terminal, during first active device locking, according to the positioning open command, is led to The first antenna is crossed to position the terminal.By locking the state of the first active device, guarantee that terminal was positioning Cheng Zhong will not switch over the frequency range where terminal, therefore the phase that not will cause positioning function changes, and it is fixed to solve The problem of bit function is because of the position inaccurate that phase changes and generates is guaranteeing original voice service or mobile data Under the premise of the quality of business, the accuracy of positioning function is improved, increases the flexibility of positioning function.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 3 is a kind of block diagram of positioning device shown according to an exemplary embodiment, as shown in figure 3, the positioning device 300 are applied in terminal, which includes: first judgment module 301, locking module 302 and locating module 303.
The first judgment module 301 is configured as after receiving positioning open command, judges that the first antenna of terminal is worked as It is preceding whether to execute preset to be switched business, the to be switched business are as follows: voice service or mobile data services, the first antenna For the preset antenna for being integrated with positioning function;
The locking module 302 is configured as when the first antenna is currently not carried out the to be switched business, lock this first The state of corresponding first active device of antenna, first active device are used to carry out assistant adjustment to the antenna of terminal;
The locating module 303 is configured as during first active device locks, and according to the positioning open command, is led to The first antenna is crossed to position the terminal.
In conclusion the positioning device provided in the embodiment of the present disclosure, through terminal after receiving positioning open command, Judge whether the first antenna of terminal currently executes preset to be switched business, when the first antenna be currently not carried out it is described to When service switchover, the state of corresponding first active device of the first antenna is locked, first active device was used for end The antenna at end carries out assistant adjustment, during first active device locking, according to the positioning open command, by described First antenna positions the terminal.By locking the state of the first active device, guarantee terminal is in position fixing process, no Frequency range where terminal can be switched over, therefore the phase that not will cause positioning function changes, and solves positioning function The problem of because of the position inaccurate that phase changes and generates, is guaranteeing original voice service or mobile data services Under the premise of quality, the accuracy of positioning function is improved, increases the flexibility of positioning function.
Optionally, referring to fig. 4, terminal further include: the second antenna the second active device corresponding with second antenna;
The device further include: the second judgment module 304 and switching module 305.
Second judgment module 304 is configured as when the first antenna currently executes the to be switched business, judge this Whether the state of one active device, which needs, switches;
The switching module 305 is configured as when the state for determining first active device needs to switch, this first is had Source device needs the frequency range being switched to, and is switched on the second antenna by second active device.
Optionally, which is additionally configured to when the state for determining first active device does not need switching, Lock the state of first active device;
The locating module 303 is additionally configured to during first active device locks, and according to the positioning open command, is led to The first antenna is crossed to position the terminal.
Optionally, referring to Fig. 5, the device further include: positioning stopping modular 306 and unlocked state 307.
The positioning stopping modular 306 is configured as after receiving positioning END instruction, and the terminal is determined in stopping Position;
The unlocked state 307 is in the lock state if being configured as first active device, is released to the first active device The locking of part.
Optionally, referring to Fig. 6, the device further include: receiving module 308, third judgment module 309 and unlocked state 310.
The receiving module 308 is configured as after first active device locks, and reception business executes instruction, the business It executes instruction instruction and passes through the first antenna performance objective business, the target service are as follows: voice service or mobile data services;
When second judgment module 304 is additionally configured to judge to execute the target service by the first antenna, this first Whether the state of active device, which needs, switches;
The third judgment module 309 is configured as when the state for determining first active device needs to switch, and judgement should Whether the second antenna is able to carry out the target service;
The unlocked state 310 is configured as when second antenna cannot execute the target service, and releasing first has this The locking of source device;
The switching module 305 is additionally configured to when second antenna is able to carry out the target service, this is first active Device needs the frequency range being switched to, and is switched on the second antenna by second active device.
Optionally, first active device and second active device are antenna tuner.
An exemplary embodiment of the present disclosure provides a kind of positioning devices, can be realized the terminal positioning side of disclosure offer Method, the positioning device include: processor, for the memory of storage processor executable instruction;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
After receiving positioning open command, judge whether the first antenna of terminal currently executes preset to be switched industry Business, the to be switched business are as follows: voice service or mobile data services, the first antenna are integrated with positioning function to be preset The antenna of energy;
When the first antenna is currently not carried out the to be switched business, locking the first antenna corresponding first has The state of source device, first active device are used to carry out assistant adjustment to the antenna of terminal;
During first active device locking, according to the positioning open command, by the first antenna to institute Terminal is stated to be positioned.
Fig. 7 is a kind of block diagram of positioning device shown according to an exemplary embodiment.For example, device 700 can be shifting Mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building are set It is standby, personal digital assistant etc..
Referring to Fig. 7, device 700 may include following one or more components: processing component 702, memory 704, power supply Component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor module 714, Yi Jitong Believe component 716.
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 702 may include that one or more processors 718 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 may include power management system System, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between device 700 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 708 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 700 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set Part 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of device 700, the relative positioning of component, such as component For the display and keypad of device 700, sensor module 714 can be with the position of 700 1 components of detection device 700 or device Set change, the existence or non-existence that user contacts with device 700, the temperature in 700 orientation of device or acceleration/deceleration and device 700 Variation.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or their combination.In an exemplary reality It applies in example, communication component 716 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.In one exemplary embodiment, communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned method of locating terminal.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 718 of device 700 to complete above-mentioned terminal positioning side Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, Floppy disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.

Claims (11)

1. a kind of method of locating terminal, which is characterized in that the described method includes:
After receiving positioning open command, judge whether the first antenna of terminal currently executes preset to be switched business, institute State to be switched business are as follows: voice service or mobile data services, the first antenna are the preset positioning function that is integrated with Antenna;
When the first antenna is currently not carried out the to be switched business, the corresponding first active device of the first antenna is locked The state of part, first active device are used to carry out assistant adjustment to the antenna of terminal;
During first active device locking, according to the positioning open command, by the first antenna to the end End is positioned;
The terminal further include: the second antenna and corresponding second active device of second antenna, the method also includes:
When the first antenna currently executes the to be switched business, according to frequency range needed for the to be switched business, and The frequency range that terminal is currently located judges whether the state of first active device needs to switch;
When the frequency range that the frequency range needed for the to be switched business and terminal are currently located is inconsistent, the described first active device is determined When the state of part needs to switch, first active device is needed to the frequency range being switched to, is cut by second active device It shifts on the second antenna.
2. the method according to claim 1, wherein the method also includes:
When the state for determining first active device does not need switching, the state of first active device is locked;
During first active device locking, according to the positioning open command, by the first antenna to the end End is positioned.
3. according to claim 1 or 2 any methods, which is characterized in that the method also includes:
After receiving positioning END instruction, stopping positions the terminal;
If first active device is in the lock state, the locking to first active device is released.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
After first active device locking, reception business is executed instruction, and the business executes instruction described first day of instruction Line performance objective business, the target service are as follows: voice service or mobile data services;
When judging that the first antenna executes the target service, whether the state of first active device needs to switch;
When the state for determining first active device needs to switch, judge whether second antenna is able to carry out the mesh Mark business;
When second antenna cannot execute the target service, the locking to first active device is released;
When second antenna is able to carry out the target service, first active device is needed to the frequency range being switched to, It is switched on the second antenna by second active device.
5. the method according to claim 1, wherein first active device and second active device are equal For antenna tuner.
6. a kind of positioning device, which is characterized in that described device includes:
First judgment module is configured as after receiving positioning open command, judges whether the first antenna of terminal is currently held The preset to be switched business of row, the to be switched business are as follows: voice service or mobile data services, the first antenna are pre- If the antenna for being integrated with positioning function;
Locking module is configured as when the first antenna is currently not carried out the to be switched business, is locked described first day The state of corresponding first active device of line, first active device are used to carry out assistant adjustment to the antenna of terminal;
Locating module is configured as during first active device locks, according to the positioning open command, by described First antenna positions the terminal;
The terminal further include: the second antenna and corresponding second active device of second antenna;
Described device further include:
Second judgment module is configured as when the first antenna currently executes the to be switched business, according to described to be cut The frequency range that frequency range needed for changing business and terminal are currently located judges whether the state of first active device needs to cut It changes;
Switching module, is configured as the frequency range needed for the to be switched business and when frequency range that terminal is currently located is inconsistent, When determining that the state of first active device needs to switch, first active device is needed to the frequency range being switched to, is passed through Second active device switches on the second antenna.
7. device according to claim 6, which is characterized in that the locking module is additionally configured to when determining described first When the state of active device does not need switching, the state of first active device is locked;
The locating module is additionally configured to during first active device locks, and according to the positioning open command, is led to The first antenna is crossed to position the terminal.
8. any device of according to claim 6 or 7, which is characterized in that described device further include:
Stopping modular is positioned, is configured as after receiving positioning END instruction, stopping positions the terminal;
Unlocked state is in the lock state if being configured as first active device, is released to first active device Locking.
9. device according to claim 7, which is characterized in that described device further include:
Receiving module is configured as after first active device locks, and reception business executes instruction, and the business execution refers to Instruction is enabled to pass through the first antenna performance objective business, the target service are as follows: voice service or mobile data services;
When second judgment module is additionally configured to judgement by the first antenna execution target service, described first Whether the state of active device, which needs, switches;
Third judgment module is configured as judging described second when the state for determining first active device needs to switch Whether antenna is able to carry out the target service;
Unlocked state is configured as when second antenna cannot execute the target service, is released active to described first The locking of device;
The switching module is additionally configured to when second antenna is able to carry out the target service, active by described first Device needs the frequency range being switched to, and is switched on the second antenna by second active device.
10. device according to claim 6, which is characterized in that first active device and second active device It is antenna tuner.
11. a kind of positioning device, which is characterized in that described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
After receiving positioning open command, judge whether the first antenna of terminal currently executes preset to be switched business, institute State to be switched business are as follows: voice service or mobile data services, the first antenna are the preset positioning function that is integrated with Antenna;
When the first antenna is currently not carried out the to be switched business, the corresponding first active device of the first antenna is locked The state of part, first active device are used to carry out assistant adjustment to the antenna of terminal;
During first active device locking, according to the positioning open command, by the first antenna to the end End is positioned;
The terminal further include: the second antenna and corresponding second active device of second antenna, described device further include:
When the first antenna currently executes the to be switched business, according to frequency range needed for the to be switched business, and The frequency range that terminal is currently located judges whether the state of first active device needs to switch;
When the frequency range that the frequency range needed for the to be switched business and terminal are currently located is inconsistent, the described first active device is determined When the state of part needs to switch, first active device is needed to the frequency range being switched to, is cut by second active device It shifts on the second antenna.
CN201610597072.8A 2016-07-26 2016-07-26 Method of locating terminal and positioning device Active CN106301452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610597072.8A CN106301452B (en) 2016-07-26 2016-07-26 Method of locating terminal and positioning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610597072.8A CN106301452B (en) 2016-07-26 2016-07-26 Method of locating terminal and positioning device

Publications (2)

Publication Number Publication Date
CN106301452A CN106301452A (en) 2017-01-04
CN106301452B true CN106301452B (en) 2019-05-07

Family

ID=57652695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610597072.8A Active CN106301452B (en) 2016-07-26 2016-07-26 Method of locating terminal and positioning device

Country Status (1)

Country Link
CN (1) CN106301452B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107425859B (en) * 2017-04-24 2020-09-11 北京小米移动软件有限公司 Antenna selection method and device and mobile terminal
CN108508459B (en) * 2018-04-04 2022-05-10 千寻位置网络有限公司 Online positioning obstacle removing method and device and positioning system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545768A (en) * 2001-02-08 2004-11-10 �������ɭ Method and apparatus for use of GPS and cellular antenna combination
CN1672332A (en) * 2002-03-08 2005-09-21 基奥赛拉无线公司 System and method for a GPS enabled antenna

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102893452B (en) * 2010-06-18 2016-07-06 索尼爱立信移动通讯有限公司 There is the dual-port antenna of the separate antenna branch including respective wave filter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545768A (en) * 2001-02-08 2004-11-10 �������ɭ Method and apparatus for use of GPS and cellular antenna combination
CN1672332A (en) * 2002-03-08 2005-09-21 基奥赛拉无线公司 System and method for a GPS enabled antenna

Also Published As

Publication number Publication date
CN106301452A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
EP3016443B1 (en) Communication method and terminal
CN105704766B (en) The control method and device of double-card mobile terminal
EP2560352B1 (en) Mobile terminal and vibration method thereof
CN101635767A (en) Menu display method of mobile terminal
KR20090067887A (en) Mobile terminal and its phone call connection method
KR20090100320A (en) User interface for a hand-held device and controll method thereof
KR20110056164A (en) Dual sim mobile terminal and operating method thereof
CN106792937A (en) The processing method and processing device of call request
CN110268746A (en) Cell switching method and device, handover configurations method and device and user equipment
CN106301452B (en) Method of locating terminal and positioning device
CN104731499A (en) Method and device for starting background applications and mobile terminal
CN104298576B (en) terminal test method and device
US20230232296A1 (en) Information sending method, base station switching method, information reception method and apparatus
CN113873603B (en) Network control method, device and storage medium
CN107026671B (en) Isolation control circuit and method and mobile terminal
CN114339904B (en) Cell switching method, cell switching device and storage medium
CN109408025B (en) Audio playing method, device and storage medium
CN112787745A (en) Wireless communication method, wireless communication device, electronic device, and storage medium
CN106293399A (en) Control the method and device of mobile terminal
KR20090100319A (en) User interface for a hand-held device and controll method thereof
CN112187326A (en) Antenna control method, device, equipment and storage medium
CN217770332U (en) Loudspeaker and terminal equipment
CN107425859B (en) Antenna selection method and device and mobile terminal
CN108551531A (en) Send the method, apparatus and readable storage medium storing program for executing of prompt message
CN108718450A (en) Phone card control method, device, storage medium and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant