CN106093950A - Mobile terminal positioner and method - Google Patents

Mobile terminal positioner and method Download PDF

Info

Publication number
CN106093950A
CN106093950A CN201610388272.2A CN201610388272A CN106093950A CN 106093950 A CN106093950 A CN 106093950A CN 201610388272 A CN201610388272 A CN 201610388272A CN 106093950 A CN106093950 A CN 106093950A
Authority
CN
China
Prior art keywords
mobile terminal
speaker
acoustical signal
frequency
moving displacement
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.)
Granted
Application number
CN201610388272.2A
Other languages
Chinese (zh)
Other versions
CN106093950B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610388272.2A priority Critical patent/CN106093950B/en
Publication of CN106093950A publication Critical patent/CN106093950A/en
Application granted granted Critical
Publication of CN106093950B publication Critical patent/CN106093950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target

Landscapes

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

Abstract

The invention discloses a kind of mobile terminal positioner, described mobile terminal positioner includes receiver module, for receiving the acoustical signal that default speaker sends;Locating module, for positioning described mobile terminal according to the frequency of the described acoustical signal received;Or, according to the characteristic parameter of the described acoustical signal received, described mobile terminal is positioned.The invention also discloses a kind of mobile terminal locating method.In the present invention, by the frequency according to the acoustical signal received or characteristic parameter, mobile terminal is positioned, be effectively improved the positioning precision to mobile terminal.

Description

Mobile terminal positioner and method
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of mobile terminal positioner and method.
Background technology
At present, a lot of occasions need to position intelligent terminal.Such as, traditional remote controller is being utilized to control television set Time, the button input control instruction being generally basede on remote controller.Along with the function of television set is more and more comprehensive, television screen shows The picture shown is more and more abundanter, and traditional remote controller operation is inefficient, can not meet the demand of user.In order to improve The operating efficiency of remote controller, prior art often utilizes intelligent terminal to replace the function of mouse to control television set, and user controls intelligence Can terminal aloft move, by positioning intelligent terminal, the cursor controlled on television set moves, and then controls electricity Depending on machine.Or, when intelligent terminal is placed on a certain position of bedside by user, by intelligent terminal is positioned, thus automatically The silent mode controlling intelligent terminal is opened, it is ensured that user's sleep quality;When intelligent terminal is placed on a certain position, study by user Time, by positioning intelligent terminal, thus the music application controlling intelligent terminal starts automatically;When user is by intelligent terminal When being placed on a certain position, parlor, by intelligent terminal is positioned, thus control the alarm clock of intelligent terminal or memorandum is automatic Start, the food of call user's attention culinary cuisine.
In prior art, when intelligent terminal is positioned, typically by technology such as WIFI, FM, earth magnetism, but location Precision is poor;Or, intelligent terminal is typically built-in with acceleration transducer, by testing acceleration and then calculate intelligent terminal Moving displacement, and complete location, but positioning precision is the most poor.
Summary of the invention
Present invention is primarily targeted at a kind of mobile terminal positioner of offer and method, it is intended to solve mobile terminal The poor technical problem of positioning precision.
The mobile terminal positioner that the present invention provides includes:
Receiver module, for receiving the acoustical signal that default speaker sends;
Locating module, for positioning described mobile terminal according to the frequency of the described acoustical signal received;Or Person, for positioning described mobile terminal according to the characteristic parameter of the described acoustical signal received.
Optionally, described receiver module is additionally operable to receive the acoustical signal that at least one speaker of fixed terminal sends, When described speaker is at least two, the sound tranmitting frequency of each described speaker all differs;
Described locating module includes:
Determining unit, the sound corresponding with described speaker for the frequency according to the described acoustical signal received is launched Frequency determines the frequency offseting value of described acoustical signal;
First positioning unit, for calculating the space moving displacement of described mobile terminal according to described frequency offseting value, with Described mobile terminal is positioned.
Optionally, described first positioning unit includes:
Computation subunit, for calculating the shifting relative to described speaker of the described mobile terminal according to described frequency offseting value Dynamic speed;
Described computation subunit is described mobile whole in being additionally operable to calculate present sample time interval according to described translational speed Hold the moving displacement relative to described speaker;
Determine subelement, for determining the initial position that described mobile terminal present sample time interval is corresponding, and according to Described initial position and described moving displacement determine the final position of described mobile terminal present sample time interval, and according to Described initial position and final position determine the space moving displacement of described mobile terminal;
Wherein, described sampling time interval is the time interval gathering described acoustical signal.
Optionally, described speaker is at least two, described determines that subelement is additionally operable to according to described initial position and institute State moving displacement and determine the described mobile terminal actual range relative to described speaker;It is additionally operable to determine the position with speaker For the position of intersecting point between the centre of sphere and the sphere with described actual range corresponding to speaker as the radius of a ball;It is additionally operable to choose one Described position of intersecting point is as the final position of described mobile terminal.
Optionally, described default speaker is the speaker of described mobile terminal, and described locating module includes:
Extraction unit, for extracting the characteristic parameter of the described acoustical signal received;
Second positioning unit, for the corresponding relation according to default characteristic parameter with position, determines the feature ginseng extracted The position that number is corresponding, to position described mobile terminal.
Additionally, the mobile terminal locating method that the present invention further provides comprises the following steps:
Mobile terminal receives presets the acoustical signal that speaker sends;
Described mobile terminal is positioned by the frequency according to the described acoustical signal received;Or, according to receiving The characteristic parameter of described acoustical signal described mobile terminal is positioned.
Optionally, the step of the acoustical signal that the default speaker of described mobile terminal reception sends includes: mobile terminal connects Receive the acoustical signal that sends of at least one speaker of fixed terminal, when described speaker is at least two, raise described in each The sound tranmitting frequency of sound device all differs;
The step that described mobile terminal is positioned by the frequency of the described acoustical signal that described basis receives includes: root The sound tranmitting frequency corresponding with described speaker according to the frequency of the described acoustical signal received determines described acoustical signal Frequency offseting value;The space moving displacement of described mobile terminal is calculated, with to described mobile terminal according to described frequency offseting value Position.
Optionally, the step bag of the described space moving displacement calculating described mobile terminal according to described frequency offseting value Include:
The described mobile terminal translational speed relative to described speaker is calculated according to described frequency offseting value;
In calculating present sample time interval according to described translational speed, described mobile terminal is relative to described speaker Moving displacement;
Determine the initial position that described mobile terminal present sample time interval is corresponding;
The termination of described mobile terminal present sample time interval is determined according to described initial position and described moving displacement Position;
The space moving displacement of described mobile terminal is determined according to described initial position and final position;
Wherein, described sampling time interval is the time interval gathering described acoustical signal.
Optionally, described speaker is at least two, determines described shifting according to described initial position and described moving displacement The step of the final position of dynamic terminal includes:
The described mobile terminal reality relative to described speaker is determined according to described initial position and described moving displacement Distance;
Determine with the position of speaker as the centre of sphere and sphere with described actual range corresponding to speaker as the radius of a ball it Between position of intersecting point;
Choose the final position as described mobile terminal of the position of intersecting point described in.
Optionally, described default speaker is the speaker of described mobile terminal, the described sound that described basis receives The step that described mobile terminal is positioned by the characteristic parameter of signal includes: extract the feature of the described acoustical signal received Parameter, according to the corresponding relation of default characteristic parameter Yu position, determines the position that the characteristic parameter extracted is corresponding, with to described Mobile terminal positions.
The mobile terminal positioner of present invention offer and method, preset, by receiving, the acoustical signal that speaker sends, And described mobile terminal is positioned by the frequency or characteristic parameter according to the described acoustical signal received, it is effectively improved Positioning precision to mobile terminal.
Accompanying drawing explanation
Fig. 1 is the system architecture schematic diagram that each embodiment of the present invention relates to;
Fig. 2 is the hardware architecture diagram of the mobile terminal that each embodiment of the present invention relates to;
Fig. 3 is the module diagram of mobile terminal positioner first embodiment of the present invention;
Fig. 4 is the module diagram of locating module in mobile terminal positioner the second embodiment of the present invention;
Fig. 5 is the module diagram of the first positioning unit in mobile terminal positioner the 3rd embodiment of the present invention;
Fig. 6 is the scene schematic diagram that mobile terminal of the present invention is mutual with fixed terminal;
Fig. 7 is the module diagram of locating module in mobile terminal positioner the 4th embodiment of the present invention;
Fig. 8 is the schematic flow sheet of mobile terminal locating method first embodiment of the present invention;
Fig. 9 is the schematic flow sheet of mobile terminal locating method the second embodiment of the present invention;
Figure 10 is that the flow process calculating space moving displacement step in mobile terminal locating method the 3rd embodiment of the present invention is shown It is intended to;
Figure 11 is the schematic flow sheet of mobile terminal locating method the 4th embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use For representing the suffix explanation only for the beneficially present invention of such as " module ", " parts " or " unit " of element, itself Not specific meaning.Therefore, " module " can mixedly use with " parts ".
Specifically, as it is shown in figure 1, the system architecture that the present embodiment scheme relates to includes mobile terminal and fixed terminal. Mobile terminal can be implemented in a variety of manners.Such as, the mobile terminal described in the present invention can include such as remote controller, shifting Mobile phone, smart mobile phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc..Each embodiment is carried out as a example by mobile terminal is as smart mobile phone below Explanation.Fixed terminal can be television set, computer all-in-one machine, display etc..Each embodiment is with fixed terminal as TV below Illustrate as a example by machine.
As a kind of implementation, the hardware configuration of above-mentioned mobile terminal can be as shown in Figure 2.
With reference to Fig. 2, this mobile terminal can include audio frequency receive unit 110, user input unit 120, memorizer 130, Processor 140 and communication bus 150 etc..Fig. 2 shows the mobile terminal with various assembly, it should be understood that also The most not realistic execute all assemblies illustrated.Can alternatively implement more or less of assembly.Described in detail below mobile whole Each assembly of end.
It can be such as mike that audio frequency receives unit 110, is received the sound of other fixed terminals output by mike Signal.
User input unit 120 can receive the instruction of user's input, for example, it is possible to the unlatching receiving user's input is fixed Terminal control instructs, so that mobile terminal enters controls fixed terminal pattern.
Memorizer 130 can be high-speed RAM memorizer, it is also possible to be stable memorizer (non-volatile Memory), such as disk memory.Memorizer 130 optionally can also is that the storage device independent of aforementioned processor 140. As can be with memory mobile terminal finder in the memorizer 130 of a kind of computer-readable storage medium.
Processor 140 can call the mobile terminal finder of storage in memorizer 130, and performs following operation:
Receive and preset the acoustical signal that speaker sends;
Described mobile terminal is positioned by the frequency according to the described acoustical signal received;Or, according to receiving The characteristic parameter of described acoustical signal described mobile terminal is positioned.
Processor 140 may call upon the mobile terminal finder of storage in memorizer 130, and performs following operation:
Mobile terminal receives the acoustical signal that at least one speaker of fixed terminal sends, and is at least at described speaker When two, the sound tranmitting frequency of each described speaker all differs;
Frequency according to the described acoustical signal the received sound tranmitting frequency corresponding with described speaker determines described The frequency offseting value of acoustical signal;The space moving displacement of described mobile terminal is calculated, with to institute according to described frequency offseting value State mobile terminal to position.
Processor 140 may call upon the mobile terminal finder of storage in memorizer 130, and performs following operation:
The described mobile terminal translational speed relative to described speaker is calculated according to described frequency offseting value;
In calculating present sample time interval according to described translational speed, described mobile terminal is relative to described speaker Moving displacement;
Determine the initial position that described mobile terminal present sample time interval is corresponding;
The termination of described mobile terminal present sample time interval is determined according to described initial position and described moving displacement Position;
The space moving displacement of described mobile terminal is determined according to described initial position and final position;
Wherein, described sampling time interval is the time interval gathering described acoustical signal.
Processor 140 may call upon the mobile terminal finder of storage in memorizer 130, and performs following operation:
The described mobile terminal reality relative to described speaker is determined according to described initial position and described moving displacement Distance;
Determine with the position of speaker as the centre of sphere and sphere with described actual range corresponding to speaker as the radius of a ball it Between position of intersecting point;
Choose the final position as described mobile terminal of the position of intersecting point described in.
Processor 140 may call upon the mobile terminal finder of storage in memorizer 130, and performs following operation:
Extract the characteristic parameter of the described acoustical signal received, according to the corresponding relation of default characteristic parameter Yu position, Determine the position that the characteristic parameter extracted is corresponding, so that described mobile terminal to be positioned.
Each embodiment of mobile terminal positioner of the present invention is proposed based on said system framework and hardware structure.Should Mobile terminal positioner can realize based on above-mentioned mobile terminal.
With reference to the module diagram that Fig. 3, Fig. 3 are mobile terminal positioner first embodiment of the present invention.Require emphasis It is, it will be apparent to those skilled in the art that functional block diagram shown in Fig. 3 is only the exemplary plot of a preferred embodiment, ability The technical staff in territory, around the functional module of the mobile terminal positioner shown in Fig. 3, can carry out new functional module easily Supplement;The title of each functional module is self-defined title, is only used for assisting each program function block understanding this mobile terminal, no For limiting technical scheme, the core of technical solution of the present invention is, the functional module of each self-defined title to reach The function become.
The present embodiment proposes a kind of mobile terminal positioner, and described mobile terminal positioner includes:
Receiver module 210, for receiving the acoustical signal that default speaker sends;
Locating module 220, for positioning described mobile terminal according to the frequency of the described acoustical signal received; Or, according to the characteristic parameter of the described acoustical signal received, described mobile terminal is positioned.
In the present embodiment, default speaker can be the speaker on other fixed terminals outside mobile terminal, logical Crossing this speaker and launch the acoustical signal of predeterminated frequency, mobile terminal is when mobile, and according to the Doppler effect of sound, it receives To the frequency of acoustical signal will change, the sound that i.e. frequency of the acoustical signal that mobile terminal receives is launched with speaker There is between the frequency of tone signal certain skew, mobile terminal can be positioned according to frequency offseting value.
Or, default speaker can also be the speaker of mobile terminal self, after this speaker launches acoustical signal, and should Acoustical signal can reflex to mobile terminal by indoor wall, object etc., and mobile terminal receives the acoustical signal reflected After, acoustical signal can be carried out feature extraction, it is thus achieved that sound characteristic.Then corresponding with position according to the sound characteristic preset Relation, determines the position of mobile terminal.Additionally, mobile terminal needs the corresponding relation pre-saving sound characteristic with position.Can Mobile terminal to be respectively placed in multiple predeterminated position, and launch sound letter by its speaker respectively at each predeterminated position Number, and the acoustical signal reflected is received by mike, extract sound characteristic, and it is corresponding with position to set up sound characteristic Relation.
The mobile terminal positioner that the present invention provides, is received by mobile terminal and presets the sound letter that speaker sends Number, and described mobile terminal positions by the frequency or characteristic parameter according to the described acoustical signal received, thus effectively Improve the positioning precision to mobile terminal.
Further, in order to improve positioning precision further, reduce and control error and improve operation ease, based on this The first embodiment of invention mobile terminal positioner, the invention allows for the second embodiment of mobile terminal positioner, It is the module diagram of locating module in mobile terminal positioner the second embodiment of the present invention with reference to Fig. 4, Fig. 4, whole with mobile Unlike the first embodiment of end positioning device, described receiver module 210 be additionally operable to receive fixed terminal at least one raise The acoustical signal that sound device sends, when described speaker is at least two, the sound tranmitting frequency of each described speaker is the most not Identical;
In the present embodiment, the quantity of the speaker of fixed terminal can be configured according to actual needs.Optionally, Gu Determine terminal and could be arranged to two or three.When speaker is three, mobile terminal can carry out 3 D stereo location, user Mobile terminal, mobile terminal or fixed terminal can be moved the most in three dimensions and determine its moving rail according to its positioning result Mark, and then control fixed terminal according to motion track.
When speaker is two, mobile terminal can carry out two dimensional surface location, and user can move in two dimensional surface Dynamic mobile terminal, according to its two dimensional surface positioning result, mobile terminal or fixed terminal determine that mobile terminal is in two dimensional surface Motion track, and then control fixed terminal according to motion track.
The acoustical signal for location in order to prevent speaker from sending affects user, owing to the earshot of people is 2Hz to 20KHz, the sound tranmitting frequency of the acoustical signal that each speaker is sent out can be about 20Hz or be more than 20KHz. Mobile terminal is when receiving acoustical signal, so that the acoustical signal received is undistorted, according to Nyquist law, mobile The sample frequency when receiving acoustical signal of terminal should be more than 2 times of sound signal frequencies.And general mobile terminal Sampled voice frequency is 44KHz, and the acoustical signal people in the range of 17HHz to 20KHz are the most unheard, therefore, Sound tranmitting frequency can be set to 17KHz to 20KHz.The sound tranmitting frequency of each speaker all differs, such as, and this Embodiment arranges by fixed terminal and illustrates as a example by two speakers, and the sound tranmitting frequency of one of them speaker can set Being set to 19KHz, the sound tranmitting frequency of another speaker could be arranged to 20KHz.The sound tranmitting frequency of each speaker Between should have certain interval so that the acoustical signal that mobile terminal receives is independent of each other, can be directly according to sound The frequency of signal determines the source of this acoustical signal.
In the present embodiment, can arrange at mobile terminal and open control or the button that fixed terminal controls, touch user When sending out this control or button, i.e. can be considered and have received unlatching fixed terminal control instruction, so that mobile terminal enters control Fixed terminal pattern processed.After mobile terminal enters control fixed terminal pattern, user can move by controlling mobile terminal And then control fixed terminal.In like manner, mobile terminal can also be arranged and close control or the button that fixed terminal controls, user When triggering this control or button, i.e. can be considered and have received closedown fixed terminal control instruction, so that mobile terminal exits Control fixed terminal pattern.
Described locating module 220 includes:
Determine unit 221, for the sound that the frequency according to the described acoustical signal received is corresponding with described speaker Tranmitting frequency determines the frequency offseting value of described acoustical signal;
It is understood that when speaker is at least two, described determine that unit 221 is for according to described in receiving The frequency of the acoustical signal sound tranmitting frequency corresponding with speaker each described determines that the frequency of each described acoustical signal is inclined Shifting value.
In the present embodiment, according to the Doppler effect of acoustical signal, mobile terminal is controlled toward and away from sound user When source is moved, the frequency of the acoustical signal that mobile terminal receives can be made to change, the sound that i.e. mobile terminal receives The frequency of signal differs with the sound tranmitting frequency of sound source.The speaker of fixed terminal is static, controls mobile user Terminal towards speaker move time, then the frequency of the acoustical signal that mobile terminal receives can be made to increase;Control to move user Dynamic terminal deviates from speaker when moving, then the frequency of the acoustical signal that mobile terminal receives can be made to reduce.
Mobile terminal can first carry out Fourier in short-term to based on the 44KHz sample frequency acoustical signal obtained of sampling Conversion, then carries out windowing process, then the signal after windowing process is carried out Fourier transformation, obtain local spectrum signal Figure.For example, it is possible to set output a length of 44100 and use 1764 sampled points (number of sampled point in 40ms), spectrogram Crest frequency deduct the sound tranmitting frequency of speaker and be the frequency offseting value that this speaker is corresponding.Due to the hand-held shifting of user The speed of dynamic terminal is typically not over 1m/s, and maximum frequency shift (FS) is 50Hz, and the complexity of detection frequency peak depends on The spectrum width scanned, is set as 80Hz herein.
It is understood that when speaker is multiple, owing to the sound tranmitting frequency of different speakers is different, so The speaker sending this acoustical signal can be determined according to the acoustical signal received.After receiving acoustical signal, first dock The acoustical signal received is filtered processing, and respectively obtains the acoustical signal that each speaker is corresponding, the most respectively to each The acoustical signal that speaker is corresponding carries out processing and obtain the frequency offseting value that this speaker is corresponding.
First positioning unit 222, for calculating the space moving displacement of described mobile terminal according to described frequency offseting value, So that described mobile terminal is positioned.
In the present embodiment, after mobile terminal is positioned, control instruction can be generated according to positioning result, and control electricity Depending on other-ends such as machines.
It is understood that when speaker is at least two, control module 230 is for according to frequency shift (FS) each described Value generates control instruction and controls fixed terminal.
In the present embodiment, can determine and obtain according to the corresponding relation of default frequency offseting value Yu control instruction The control instruction that frequency offseting value is corresponding, and then control fixed terminal.Described corresponding relation can be frequency offseting value interval with The corresponding relation of control instruction.Such as, when speaker is one, a frequency offseting value can be obtained.Can first determine this The frequency offseting value that frequency offseting value is corresponding is interval, then determines, further according to corresponding relation, the control that this frequency offseting value interval is corresponding System instruction.When speaker is multiple, each speaker can be correspondingly arranged a corresponding relation, and each corresponding relation corresponding by Different control instructions, such that it is able to carry out various control.In order to improve operation ease, each corresponding relation can correspondence two Individual control instruction, when frequency offseting value is more than zero, a corresponding control instruction;When frequency offseting value is less than zero, corresponding another One control instruction.Thus when user operation, it is only necessary to towards loudspeaker movements or deviate from loudspeaker movements can be to solid Determine terminal two kinds of control instructions of input.When for multiple speaker, user first can specify current control right based on mobile terminal The speaker answered, and switch between the different loudspeakers, produce interference during to prevent from controlling based on different speakers.
Additionally, when the quantity at least two of speaker, it is also possible to according to each frequency offseting value, mobile terminal is entered Row location, thus obtain the motion track of mobile terminal, and then control fixed terminal according to motion track.
The mobile terminal positioner that the present embodiment provides, calculates mobile terminal by the Doppler effect according to sound and moves The frequency offseting value of the acoustical signal received time dynamic, and then according to frequency offseting value, mobile terminal is positioned, positioning accurate Spending higher, less to the control error of fixed terminal, precision is higher.Additionally, user can directly be existed by control mobile terminal Aerial mobile realizes the control to fixed terminal, controls position unrestricted, improves and controls to fix eventually by mobile terminal The convenience of end.
Further, in order to reduce control error further and improve operation ease, based on mobile terminal of the present invention Second embodiment of positioner, the invention allows for the 3rd embodiment of mobile terminal positioner, with reference to Fig. 5, Fig. 5 is The module diagram of the first positioning unit in mobile terminal positioner the 3rd embodiment of the present invention, real with the second of mobile terminal Executing unlike example, described first positioning unit 222 includes:
Computation subunit 2221, for calculating described mobile terminal relative to described speaker according to described frequency offseting value Translational speed;
It is understood that when speaker is at least two, computation subunit 2221 is for according to frequency each described Deviant calculates described mobile terminal relative to the translational speed of speaker each described;
Assume that F represents the sound tranmitting frequency of speaker, FαRepresenting frequency offseting value, v represents mobile terminal relative to raising The translational speed of sound device, c represents the spread speed of sound, then the translational speed of speaker is:
v = F α F c
Described computation subunit 2221 is additionally operable to according to described shifting in described translational speed calculating present sample time interval Dynamic terminal is relative to the moving displacement of described speaker;Wherein, described sampling time interval be gather described acoustical signal time Between be spaced;
It is understood that when speaker is at least two, described computation subunit 2221 is additionally operable to according to each institute In stating translational speed calculating present sample time interval, described mobile terminal is relative to the moving displacement of speaker each described;
In the present embodiment, above-mentioned sampling time interval can be mobile terminal sample when receiving acoustical signal described sound The time interval of tone signal.Can also be for time interval described in several continuous print.One is calculated every described sampling time interval The moving displacement of secondary mobile terminal.The present embodiment is as a example by sampling time interval is as 40ms, and every 40ms updates the shifting of a terminal Dynamic displacement.Assume that sampling time interval is with tsRepresenting, the moving displacement in sampling time interval is with dsRepresent, sampling time interval Interior frequency shift (FS) is with FsRepresent, then the moving displacement in sampling time interval is:
d s = ( F s F c ) t s
Determine subelement 2222, for described mobile terminal being positioned according to described moving displacement;
It is understood that when speaker is at least two, determine that subelement 2222 is for according to movement each described Described mobile terminal is positioned by displacement.
In the present embodiment, can determine, according to the corresponding relation of default moving displacement Yu control instruction, the shifting obtained The control instruction that dynamic displacement is corresponding, and then control fixed terminal.Described corresponding relation can be that moving displacement interval refers to control The corresponding relation of order.Such as, when speaker is one, a moving displacement can be obtained.Can first determine this moving displacement Corresponding moving displacement is interval, then determines, further according to corresponding relation, the control instruction that this moving displacement interval is corresponding.Raising one's voice When device is multiple, each speaker can be correspondingly arranged a corresponding relation, and each corresponding relation correspondence is referred to by different control Order, such that it is able to carry out various control.In order to improve operation ease, each corresponding relation can corresponding two control instructions, When moving displacement is more than zero, a corresponding control instruction;When moving displacement is less than zero, another control instruction corresponding.From And when user operation, it is only necessary to towards loudspeaker movements or deviate from loudspeaker movements can to fixed terminal input two kinds Control instruction.When for multiple speaker, user first can specify based on mobile terminal and currently control corresponding speaker, and Switch between different speakers, during to prevent from controlling based on different speakers, produce interference.
Additionally, when the quantity at least two of speaker, it is also possible to according to each moving displacement, mobile terminal is carried out Location, thus obtain the motion track of mobile terminal, and then control fixed terminal according to motion track.
In the present embodiment, by calculating the moving displacement of mobile terminal further, determine control instruction according to moving displacement, Thus easily facilitate the operation of user, it is effectively reduced control error and improves operation ease.
Optionally, described determine that subelement 2222 is additionally operable to determine that described mobile terminal present sample time interval is corresponding Initial position, and the end of described mobile terminal present sample time interval is determined according to described initial position and described moving displacement Stop bit is put, and determines the space moving displacement of described mobile terminal according to described initial position and final position.
In the present embodiment, when mobile terminal carries out sampling for the first time, corresponding initial of first sampling time interval Position can be the position that mobile terminal is obtained by WIFI location, or the position for user's input, or by other handss The position that section obtains.This position is the mobile terminal position relative to the speaker of fixed terminal.Currently carry out at mobile terminal Employing when not being to use for the first time, initial position corresponding to the most currently employed time interval is last sampling time interval Corresponding final position.
In the present embodiment, as a example by two speakers are set, a two dimension can be set up with horizontal plane for coordinate plane Coordinate system.Line between two speakers could be arranged to x-axis, as shown in Figure 6, it is assumed that the distance between two speakers is D, the coordinate of left speaker is (0,0), and the coordinate of right speaker is that (0, d), the initial position of mobile terminal is (x0,y0), The final position of mobile terminal is determined according to moving displacement and initial position.Final position can also the form coordinate of coordinate.Enter And, the space moving displacement of mobile terminal can be obtained according to initial position and final position.Space moving displacement includes mobile Direction and displacement, it is hereby achieved that the motion track of mobile terminal, generate control instruction according to motion track and control solid Determine terminal.Such as, when user moves up or down, the cursor that can control fixed terminal moves up or down, or The program controlling fixed terminal upwards redirects or redirects downwards, or the volume controlling fixed terminal is raised and lowered;User When moving to the left or to the right, the cursor that can control fixed terminal moves etc. to the left or to the right.
Optionally, described speaker is at least two, determines shifting according to described initial position and each described moving displacement The final position of dynamic terminal can be in the following ways: described determines that subelement 2222 is additionally operable to according to described initial position and each Individual described moving displacement determines that described mobile terminal is relative to the actual range of speaker each described;It is additionally operable to determine with each The position of speaker is the friendship between the centre of sphere and each sphere with described actual range corresponding to each speaker as the radius of a ball Point position;It is additionally operable to the final position choosing position of intersecting point described in as described mobile terminal.It is positioned at initially at mobile terminal During position, it is assumed that the distance between mobile terminal to two speaker is respectively d0,1、d0,2, then through a sampling time interval After, when mobile terminal is positioned at final position, it is assumed that it is respectively d to the distance between two speakers1,1、d1,2, then:
d 1 , 1 = d 0 , 1 + ( F 1 , 1 s F 1 c ) t s
d 1 , 2 = d 0 , 2 + ( F 1 , 2 s F 2 c ) t s
Wherein, FkRepresent sound signal frequencies,Represent mobile terminal Doppler's frequency at i & lt sampling time interval Rate deviant.
Respectively with (0,0) and (d, 0) for the center of circle, d1,1And d1,2Make for radius spherical, two spherical friendships can be calculated Point, such as following formula:
θ 1 = cos - 1 ( d 1 , 1 2 + d 2 - d 1 , 2 2 2 dd 1 , 1 )
(x, y)=(d1,1cos(θ1),d1,1sin(θ1))
(x*,y*)=(d1,1cos(-θ1),d1,1sin(-θ1))
Work as d1,1+d1,2> d time, have two intersection points.At this point it is possible to selected distance (x0,y0) nearer one of them intersection point makees For final position.
Optionally, described determine that subelement 2222 is additionally operable to the stop bit of described mobile terminal present sample time interval Install the initial position being set to next sampling time interval.Thus after each employing time interval, update a mobile terminal Position, till mobile terminal stops moving.
The present embodiment is determined by the space moving displacement of mobile terminal such that it is able to corresponding mobile terminal carries out more smart True location so that mobile terminal can control fixed terminal more flexibly, further increases the convenience of user operation.
Further, in order to improve positioning precision further, based on mobile terminal positioner of the present invention first implements Example, the invention allows for the 4th embodiment of mobile terminal positioner, is mobile terminal of the present invention location with reference to Fig. 7, Fig. 7 The module diagram of locating module in device the 4th embodiment, unlike the first embodiment of mobile terminal positioner, Described locating module 220 includes:
Extraction unit 223, for extracting the characteristic parameter of the described acoustical signal received;
Second positioning unit 224, for according to default characteristic parameter and the corresponding relation of position, determining the feature extracted The position that parameter is corresponding, to position described mobile terminal.
In the present embodiment, can send acoustical signal by the speaker of mobile terminal self, acoustical signal is through room After the reflection such as interior walls, object, received by the mike of mobile terminal.
It is understood that mobile terminal records can be controlled by user to preset the corresponding relation of characteristic parameter and position. Such as, user can arrange multiple predeterminated position in room.In the record stage, in each predetermined position, control respectively to move Dynamic terminal sends acoustical signal, and receives the acoustical signal of return, extracts the characteristic parameter of acoustical signal, preserve characteristic parameter with The corresponding relation of position.Optionally, in the stage recording described corresponding relation, for each predeterminated position, each sound is believed Number can repeat to send and time delay sends, the voice signal property received with enhancing, reduce ambient noise interference.
In the fixation and recognition stage, mobile terminal needs also exist for sending acoustical signal, and receives the acoustical signal of return.Optional , in order to reduce the power consumption of mobile terminal, the SSID of WIFI and/or the kinestate of mobile phone can be detected, SSID is with default When the kinestate of SSID coupling and/or mobile phone meets preset state, then control mobile terminal and receive acoustical signal, otherwise, then Not collected sound signal.
Optionally, Android platform is widely used the sample frequency of 44.1kHz, the high frequency that general mobile phone can detect Rate is 22kHz, and people can hear that the frequency of sound is 20Hz-20kHz, and in order to avoid the interference to people, sound frequency may be selected to be 20kHz-22kHz, but in high frequency interval, serious decay can occur, the noise of 11kHz is included below surrounding, because of This, optionally, the frequency range of acoustical signal could be arranged to 11kHz-22kHz.
The length of acoustical signal sent is the longest, and each frequency energy gathering signal is the strongest, but the continuing of detection Time is the longest.Maximum crest represents that sound directly arrives mike from speaker, and crest subsequently represents surrounding one The reflection of series.200 sampled values after maximum crest are as sound characteristic.In order to cover 11-22kHz scope, it is divided into 4 100 sampling fragments.
The reflection of sound can continue 4500 sampled points, therefore the sensitive time be 4* (200+4500)/44100~= 0.42s.Synchronizing signal can also be added before acoustical signal, synchronization, the most altogether with ensure between speaker with mike The 2-3 second around.
Volume is too small, and the signal that mike receives is the faintest, and volume is excessive, and user can be produced interference.The present embodiment In can select the volume of 5-10%.
The resolution of sensing model.Assuming that the distance between two predeterminated positions is d, the wavelength of acoustical signal is λ, ambient Body is θ with the angle of label, and the reflective distance difference of surrounding objects to two label is δ=2d*cos θ.Between label come and go away from Deviation δ >=λ/4, can be distinguished by sound characteristic, and based on this model, location can reach the resolution of Centimeter Level.
Optionally, classification based on support vector machine is used.Assume there be n predeterminated position, then n classification can be set Device, if the prediction probability that the output of kth grader is the highest, then this position is considered as predeterminated position k.Classifier training is at mesh Prediction possibility in cursor position, than being more than 0.5 on other positions, uses sound characteristic to distinguish region, location and is well suited for.
Optionally, after determining the position that the characteristic parameter extracted is corresponding, according to predeterminated position with preset application right Should be related to, control default application corresponding to defined location and open.Such as, when mobile phone is placed on a certain position of bedside by user, Wish that the silent mode of mobile phone can automatically open up, protect sleep quality;When mobile phone is placed on a certain position, study by user, it is desirable to Music application can start automatically, makes mood happier;When mobile phone is placed on a certain position, parlor by user, it is desirable to alarm clock or memorandum Record can start automatically, the food of call user's attention culinary cuisine.Therefore, when mobile phone is positioned at bedside, then mobile phone is by automatically Location, determines when its position is positioned at bedside, therefore can automatically control the default application corresponding with position bedside, i.e. silent mode is beaten Open.When mobile phone is positioned at study, then mobile phone is by being automatically positioned, and determines when it is positioned at study, therefore can automatically control and position The default application that study is corresponding, i.e. music application is opened.
The present embodiment is positioned by the coupling utilizing sound characteristic, it is possible to make positioning precision in Centimeter Level, effectively Improve the positioning precision to mobile terminal.
The present invention further provides a kind of mobile terminal locating method, the method can apply in above-mentioned mobile terminal, Can also apply simultaneously in mobile terminal and fixed terminal, be coordinated by mobile terminal and fixed terminal and realize interactive function. With reference to the schematic flow sheet that Fig. 8, Fig. 8 are mobile terminal locating method first embodiment of the present invention, described mobile terminal location side Method comprises the following steps:
Step S100, mobile terminal receives presets the acoustical signal that speaker sends;
Step S200, positions described mobile terminal according to the frequency of the described acoustical signal received;Or, root According to the characteristic parameter of the described acoustical signal received, described mobile terminal is positioned.
In the present embodiment, default speaker can be the speaker on other fixed terminals outside mobile terminal, logical Crossing this speaker and launch the acoustical signal of predeterminated frequency, mobile terminal is when mobile, and according to the Doppler effect of sound, it receives To the frequency of acoustical signal will change, the sound that i.e. frequency of the acoustical signal that mobile terminal receives is launched with speaker There is between the frequency of tone signal certain skew, mobile terminal can be positioned according to frequency offseting value.
Or, default speaker can also be the speaker of mobile terminal self, after this speaker launches acoustical signal, and should Acoustical signal can reflex to mobile terminal by indoor wall, object etc., and mobile terminal receives the acoustical signal reflected After, acoustical signal can be carried out feature extraction, it is thus achieved that sound characteristic.Then corresponding with position according to the sound characteristic preset Relation, determines the position of mobile terminal.Additionally, mobile terminal needs the corresponding relation pre-saving sound characteristic with position.Can Mobile terminal to be respectively placed in multiple predeterminated position, and launch sound letter by its speaker respectively at each predeterminated position Number, and the acoustical signal reflected is received by mike, extract sound characteristic, and it is corresponding with position to set up sound characteristic Relation.
The mobile terminal locating method that the present invention provides, is received by mobile terminal and presets the sound letter that speaker sends Number, and described mobile terminal positions by the frequency or characteristic parameter according to the described acoustical signal received, thus effectively Improve the positioning precision to mobile terminal.
Further, in order to improve positioning precision further, reduce and control error and improve operation ease, based on this The first embodiment of invention mobile terminal locating method, the invention allows for the second embodiment of mobile terminal locating method, With reference to the schematic flow sheet that Fig. 9, Fig. 9 are mobile terminal locating method the second embodiment of the present invention, with mobile terminal locating method First embodiment unlike,
Step S100 includes, step S110, and mobile terminal receives the sound that at least one speaker of fixed terminal sends Signal, when described speaker is at least two, the sound tranmitting frequency of each described speaker all differs;
In the present embodiment, the quantity of the speaker of fixed terminal can be configured according to actual needs.Optionally, Gu Determine terminal and could be arranged to two or three.When speaker is three, mobile terminal can carry out 3 D stereo location, user Mobile terminal, mobile terminal or fixed terminal can be moved the most in three dimensions and determine its moving rail according to its positioning result Mark, and then control fixed terminal according to motion track.
When speaker is two, mobile terminal can carry out two dimensional surface location, and user can move in two dimensional surface Dynamic mobile terminal, according to its two dimensional surface positioning result, mobile terminal or fixed terminal determine that mobile terminal is in two dimensional surface Motion track, and then control fixed terminal according to motion track.
The acoustical signal for location in order to prevent speaker from sending affects user, owing to the earshot of people is 2Hz to 20KHz, the sound tranmitting frequency of the acoustical signal that each speaker is sent out can be about 20Hz or be more than 20KHz. Mobile terminal is when receiving acoustical signal, so that the acoustical signal received is undistorted, according to Nyquist law, mobile The sample frequency when receiving acoustical signal of terminal should be more than 2 times of sound signal frequencies.And general mobile terminal Sampled voice frequency is 44KHz, and the acoustical signal people in the range of 17HHz to 20KHz are the most unheard, therefore, Sound tranmitting frequency can be set to 17KHz to 20KHz.The sound tranmitting frequency of each speaker all differs, such as, and this Embodiment arranges by fixed terminal and illustrates as a example by two speakers, and the sound tranmitting frequency of one of them speaker can set Being set to 19KHz, the sound tranmitting frequency of another speaker could be arranged to 20KHz.The sound tranmitting frequency of each speaker Between should have certain interval so that the acoustical signal that mobile terminal receives is independent of each other, can be directly according to sound The frequency of signal determines the source of this acoustical signal.
In the present embodiment, can arrange at mobile terminal and open control or the button that fixed terminal controls, touch user When sending out this control or button, i.e. can be considered and have received unlatching fixed terminal control instruction, so that mobile terminal enters control Fixed terminal pattern processed.After mobile terminal enters control fixed terminal pattern, user can move by controlling mobile terminal And then control fixed terminal.In like manner, mobile terminal can also be arranged and close control or the button that fixed terminal controls, user When triggering this control or button, i.e. can be considered and have received closedown fixed terminal control instruction, so that mobile terminal exits Control fixed terminal pattern.
The step that described mobile terminal is positioned by the frequency according to the described acoustical signal received includes, step S210, determines described sound according to the sound tranmitting frequency that the frequency of the described acoustical signal received is corresponding with described speaker The frequency offseting value of signal;
Step S220, calculates the space moving displacement of described mobile terminal, with to described shifting according to described frequency offseting value Dynamic terminal positions.
It is understood that when speaker is at least two, step S200 includes: according to the described sound letter received Number the frequency sound tranmitting frequency corresponding with speaker each described determine the frequency offseting value of each described acoustical signal;
In the present embodiment, according to the Doppler effect of acoustical signal, mobile terminal is controlled toward and away from sound user When source is moved, the frequency of the acoustical signal that mobile terminal receives can be made to change, the sound that i.e. mobile terminal receives The frequency of signal differs with the sound tranmitting frequency of sound source.The speaker of fixed terminal is static, controls mobile user Terminal towards speaker move time, then the frequency of the acoustical signal that mobile terminal receives can be made to increase;Control to move user Dynamic terminal deviates from speaker when moving, then the frequency of the acoustical signal that mobile terminal receives can be made to reduce.
Mobile terminal can first carry out Fourier in short-term to based on the 44KHz sample frequency acoustical signal obtained of sampling Conversion, then carries out windowing process, then the signal after windowing process is carried out Fourier transformation, obtain local spectrum signal Figure.For example, it is possible to set output a length of 44100 and use 1764 sampled points (number of sampled point in 40ms), spectrogram Crest frequency deduct the sound tranmitting frequency of speaker and be the frequency offseting value that this speaker is corresponding.Due to the hand-held shifting of user The speed of dynamic terminal is typically not over 1m/s, and maximum frequency shift (FS) is 50Hz, and the complexity of detection frequency peak depends on The spectrum width scanned, is set as 80Hz herein.
It is understood that when speaker is multiple, owing to the sound tranmitting frequency of different speakers is different, so The speaker sending this acoustical signal can be determined according to the acoustical signal received.After receiving acoustical signal, first dock The acoustical signal received is filtered processing, and respectively obtains the acoustical signal that each speaker is corresponding, the most respectively to each The acoustical signal that speaker is corresponding carries out processing and obtain the frequency offseting value that this speaker is corresponding.
In the present embodiment, after mobile terminal is positioned, control instruction can be generated according to positioning result, and control electricity Depending on other-ends such as machines.
In the present embodiment, can determine and obtain according to the corresponding relation of default frequency offseting value Yu control instruction The control instruction that frequency offseting value is corresponding, and then control fixed terminal.Described corresponding relation can be frequency offseting value interval with The corresponding relation of control instruction.Such as, when speaker is one, a frequency offseting value can be obtained.Can first determine this The frequency offseting value that frequency offseting value is corresponding is interval, then determines, further according to corresponding relation, the control that this frequency offseting value interval is corresponding System instruction.When speaker is multiple, each speaker can be correspondingly arranged a corresponding relation, and each corresponding relation corresponding by Different control instructions, such that it is able to carry out various control.In order to improve operation ease, each corresponding relation can correspondence two Individual control instruction, when frequency offseting value is more than zero, a corresponding control instruction;When frequency offseting value is less than zero, corresponding another One control instruction.Thus when user operation, it is only necessary to towards loudspeaker movements or deviate from loudspeaker movements can be to solid Determine terminal two kinds of control instructions of input.When for multiple speaker, user first can specify current control right based on mobile terminal The speaker answered, and switch between the different loudspeakers, produce interference during to prevent from controlling based on different speakers.
Additionally, when the quantity at least two of speaker, it is also possible to according to each frequency offseting value, mobile terminal is entered Row location, thus obtain the motion track of mobile terminal, and then control fixed terminal according to motion track.
The mobile terminal locating method that the present embodiment provides, calculates mobile terminal by the Doppler effect according to sound and moves The frequency offseting value of the acoustical signal received time dynamic, and then according to frequency offseting value, mobile terminal is positioned, positioning accurate Spending higher, less to the control error of fixed terminal, precision is higher.Additionally, user can directly be existed by control mobile terminal Aerial mobile realizes the control to fixed terminal, controls position unrestricted, improves and controls to fix eventually by mobile terminal The convenience of end.
Further, in order to reduce control error further and improve operation ease, based on mobile terminal of the present invention Second embodiment of localization method, the invention allows for the 3rd embodiment of mobile terminal locating method, with reference to Figure 10, Figure 10 For mobile terminal locating method the 3rd embodiment of the present invention calculates the schematic flow sheet of space moving displacement step, whole with mobile Unlike the first embodiment of end locating method, described step S220 includes:
Step S221, calculates the described mobile terminal mobile speed relative to described speaker according to described frequency offseting value Degree;
It is understood that when speaker is at least two, step S221 includes: according to frequency offseting value each described Calculate described mobile terminal relative to the translational speed of speaker each described;
Assume that F represents the sound tranmitting frequency of speaker, FαRepresenting frequency offseting value, v represents mobile terminal relative to raising The translational speed of sound device, c represents the spread speed of sound, then the translational speed of speaker is:
v = F α F c
Step S222, in calculating present sample time interval according to described translational speed, described mobile terminal is relative to described The moving displacement of speaker;Wherein, described sampling time interval is the time interval gathering described acoustical signal;
It is understood that when speaker is at least two, step S222 includes according to translational speed meter each described In calculating present sample time interval, described mobile terminal is relative to the moving displacement of speaker each described;
In the present embodiment, above-mentioned sampling time interval can be mobile terminal sample when receiving acoustical signal described sound The time interval of tone signal.Can also be for time interval described in several continuous print.One is calculated every described sampling time interval The moving displacement of secondary mobile terminal.The present embodiment is as a example by sampling time interval is as 40ms, and every 40ms updates the shifting of a terminal Dynamic displacement.Assume that sampling time interval is with tsRepresenting, the moving displacement in sampling time interval is with dsRepresent, sampling time interval Interior frequency shift (FS) is with FsRepresent, then the moving displacement in sampling time interval is:
d s = ( F s F c ) t s
After step S222, according to described moving displacement, described mobile terminal can be positioned;
It is understood that when speaker is at least two, can be according to moving displacement each described to described movement Terminal positions.
In the present embodiment, can determine, according to the corresponding relation of default moving displacement Yu control instruction, the shifting obtained The control instruction that dynamic displacement is corresponding, and then control fixed terminal.Described corresponding relation can be that moving displacement interval refers to control The corresponding relation of order.Such as, when speaker is one, a moving displacement can be obtained.Can first determine this moving displacement Corresponding moving displacement is interval, then determines, further according to corresponding relation, the control instruction that this moving displacement interval is corresponding.Raising one's voice When device is multiple, each speaker can be correspondingly arranged a corresponding relation, and each corresponding relation correspondence is referred to by different control Order, such that it is able to carry out various control.In order to improve operation ease, each corresponding relation can corresponding two control instructions, When moving displacement is more than zero, a corresponding control instruction;When moving displacement is less than zero, another control instruction corresponding.From And when user operation, it is only necessary to towards loudspeaker movements or deviate from loudspeaker movements can to fixed terminal input two kinds Control instruction.When for multiple speaker, user first can specify based on mobile terminal and currently control corresponding speaker, and Switch between different speakers, during to prevent from controlling based on different speakers, produce interference.
Additionally, when the quantity at least two of speaker, it is also possible to according to each moving displacement, mobile terminal is carried out Location, thus obtain the motion track of mobile terminal, and then control fixed terminal according to motion track.
In the present embodiment, by calculating the moving displacement of mobile terminal further, determine control instruction according to moving displacement, Thus easily facilitate the operation of user, it is effectively reduced control error and improves operation ease.
Optionally, the described step positioned described mobile terminal according to described moving displacement includes:
Step S223, determines the initial position that described mobile terminal present sample time interval is corresponding;
Step S224, determines between the described mobile terminal present sample time according to described initial position and described moving displacement Every final position;It is understood that when speaker is at least two, step S224 include according to described initial position and Each described moving displacement determines the final position of described mobile terminal present sample time interval;
Step S225, determines the space moving displacement of described mobile terminal according to described initial position and final position.
In the present embodiment, when mobile terminal carries out sampling for the first time, corresponding initial of first sampling time interval Position can be the position that mobile terminal is obtained by WIFI location, or the position for user's input, or by other handss The position that section obtains.This position is the mobile terminal position relative to the speaker of fixed terminal.Currently carry out at mobile terminal Employing when not being to use for the first time, initial position corresponding to the most currently employed time interval is last sampling time interval Corresponding final position.
In the present embodiment, as a example by two speakers are set, a two dimension can be set up with horizontal plane for coordinate plane Coordinate system.Line between two speakers could be arranged to x-axis, as shown in Figure 6, it is assumed that the distance between two speakers is D, the coordinate of left speaker is (0,0), and the coordinate of right speaker is that (0, d), the initial position of mobile terminal is (x0,y0), The final position of mobile terminal is determined according to moving displacement and initial position.Final position can also the form coordinate of coordinate.Enter And, the space moving displacement of mobile terminal can be obtained according to initial position and final position.Space moving displacement includes mobile Direction and displacement, it is hereby achieved that the motion track of mobile terminal, generate control instruction according to motion track and control solid Determine terminal.Such as, when user moves up or down, the cursor that can control fixed terminal moves up or down, or The program controlling fixed terminal upwards redirects or redirects downwards, or the volume controlling fixed terminal is raised and lowered;User When moving to the left or to the right, the cursor that can control fixed terminal moves etc. to the left or to the right.
Optionally, described speaker is at least two, determines shifting according to described initial position and each described moving displacement The final position of dynamic terminal can be in the following ways: determines described shifting according to described initial position and each described moving displacement The step of the final position of dynamic terminal includes: determine described mobile terminal according to described initial position and each described moving displacement Relative to the actual range of speaker each described;Determine with the position of each speaker as the centre of sphere and with each speaker pair The described actual range answered is the position of intersecting point between each sphere of the radius of a ball;Choose position of intersecting point described in as described shifting The final position of dynamic terminal.When mobile terminal is positioned at initial position, it is assumed that the distance between mobile terminal to two speaker It is respectively d0,1、d0,2, then after a sampling time interval, when mobile terminal is positioned at final position, it is assumed that it is raised to two Distance between sound device is respectively d1,1、d1,2, then:
d 1 , 1 = d 0 , 1 + ( F 1 , 1 s F 1 c ) t s
d 1 , 2 = d 0 , 2 + ( F 1 , 2 s F 2 c ) t s
Wherein, FkRepresent sound signal frequencies,Represent mobile terminal Doppler's frequency at i & lt sampling time interval Rate deviant.
Respectively with (0,0) and (d, 0) for the center of circle, d1,1And d1,2Make for radius spherical, two spherical friendships can be calculated Point, such as following formula:
θ 1 = cos - 1 ( d 1 , 1 2 + d 2 - d 1 , 2 2 2 dd 1 , 1 )
(x, y)=(d1,1cos(θ1),d1,1sin(θ1))
(x*,y*)=(d1,1cos(-θ1),d1,1sin(-θ1))
Work as d1,1+d1,2> d time, have two intersection points.At this point it is possible to selected distance (x0,y0) nearer one of them intersection point makees For final position.
Optionally, described described mobile terminal present sample is determined according to described initial position and each described moving displacement After the step of the final position of time interval, also include:
The final position of described mobile terminal present sample time interval is set to the initial of next sampling time interval Position.Thus after each employing time interval, update the position of a mobile terminal, until mobile terminal stop mobile till.
The present embodiment is determined by the space moving displacement of mobile terminal such that it is able to corresponding mobile terminal carries out more smart True location so that mobile terminal can control fixed terminal more flexibly, further increases the convenience of user operation.
Further, in order to improve positioning precision further, based on mobile terminal locating method of the present invention first implements Example, the invention allows for four embodiments of mobile terminal locating method, is mobile terminal of the present invention location with reference to Figure 11, Figure 11 The schematic flow sheet of method the 4th embodiment, unlike the first embodiment of mobile terminal locating method, described presetting is raised Sound device is the speaker of described mobile terminal,
The step bag that described mobile terminal is positioned by the characteristic parameter of the described acoustical signal that described basis receives Include:
Step S230, extracts the characteristic parameter of the described acoustical signal received, according to default characteristic parameter and position Corresponding relation, determines the position that the characteristic parameter extracted is corresponding, to position described mobile terminal.
In the present embodiment, can send acoustical signal by the speaker of mobile terminal self, acoustical signal is through room After the reflection such as interior walls, object, received by the mike of mobile terminal.
It is understood that mobile terminal records can be controlled by user to preset the corresponding relation of characteristic parameter and position. Such as, user can arrange multiple predeterminated position in room.In the record stage, in each predetermined position, control respectively to move Dynamic terminal sends acoustical signal, and receives the acoustical signal of return, extracts the characteristic parameter of acoustical signal, preserve characteristic parameter with The corresponding relation of position.Optionally, in the stage recording described corresponding relation, for each predeterminated position, each sound is believed Number can repeat to send and time delay sends, the voice signal property received with enhancing, reduce ambient noise interference.
In the fixation and recognition stage, mobile terminal needs also exist for sending acoustical signal, and receives the acoustical signal of return.Optional , in order to reduce the power consumption of mobile terminal, the SSID of WIFI and/or the kinestate of mobile phone can be detected, SSID is with default When the kinestate of SSID coupling and/or mobile phone meets preset state, then control mobile terminal and receive acoustical signal, otherwise, then Not collected sound signal.
Optionally, Android platform is widely used the sample frequency of 44.1kHz, the high frequency that general mobile phone can detect Rate is 22kHz, and people can hear that the frequency of sound is 20Hz-20kHz, and in order to avoid the interference to people, sound frequency may be selected to be 20kHz-22kHz, but in high frequency interval, serious decay can occur, the noise of 11kHz is included below surrounding, because of This, optionally, the frequency range of acoustical signal could be arranged to 11kHz-22kHz.
The length of acoustical signal sent is the longest, and each frequency energy gathering signal is the strongest, but the continuing of detection Time is the longest.Maximum crest represents that sound directly arrives mike from speaker, and crest subsequently represents surrounding one The reflection of series.200 sampled values after maximum crest are as sound characteristic.In order to cover 11-22kHz scope, it is divided into 4 100 sampling fragments.
The reflection of sound can continue 4500 sampled points, therefore the sensitive time be 4* (200+4500)/44100~= 0.42s.Synchronizing signal can also be added before acoustical signal, synchronization, the most altogether with ensure between speaker with mike The 2-3 second around.
Volume is too small, and the signal that mike receives is the faintest, and volume is excessive, and user can be produced interference.The present embodiment In can select the volume of 5-10%.
The resolution of sensing model.Assuming that the distance between two predeterminated positions is d, the wavelength of acoustical signal is λ, ambient Body is θ with the angle of label, and the reflective distance difference of surrounding objects to two label is δ=2d*cos θ.Between label come and go away from Deviation δ >=λ/4, can be distinguished by sound characteristic, and based on this model, location can reach the resolution of Centimeter Level.
Optionally, classification based on support vector machine is used.Assume there be n predeterminated position, then n classification can be set Device, if the prediction probability that the output of kth grader is the highest, then this position is considered as predeterminated position k.Classifier training is at mesh Prediction possibility in cursor position, than being more than 0.5 on other positions, uses sound characteristic to distinguish region, location and is well suited for.
Optionally, after determining the position that the characteristic parameter extracted is corresponding, according to predeterminated position with preset application right Should be related to, control default application corresponding to defined location and open.Such as, when mobile phone is placed on a certain position of bedside by user, Wish that the silent mode of mobile phone can automatically open up, protect sleep quality;When mobile phone is placed on a certain position, study by user, it is desirable to Music application can start automatically, makes mood happier;When mobile phone is placed on a certain position, parlor by user, it is desirable to alarm clock or memorandum Record can start automatically, the food of call user's attention culinary cuisine.Therefore, when mobile phone is positioned at bedside, then mobile phone is by automatically Location, determines when its position is positioned at bedside, therefore can automatically control the default application corresponding with position bedside, i.e. silent mode is beaten Open.When mobile phone is positioned at study, then mobile phone is by being automatically positioned, and determines when it is positioned at study, therefore can automatically control and position The default application that study is corresponding, i.e. music application is opened.
The present embodiment is positioned by the coupling utilizing sound characteristic, it is possible to make positioning precision in Centimeter Level, effectively Improve the positioning precision to mobile terminal.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this The process of key element, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills Art field, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. a mobile terminal positioner, it is characterised in that described mobile terminal positioner includes:
Receiver module, for receiving the acoustical signal that default speaker sends;
Locating module, for positioning described mobile terminal according to the frequency of the described acoustical signal received;Or, use According to the characteristic parameter of the described acoustical signal received, described mobile terminal being positioned.
2. mobile terminal positioner as claimed in claim 1, it is characterised in that described receiver module is additionally operable to receive and fixes The acoustical signal that at least one speaker of terminal sends, when described speaker is at least two, each described speaker Sound tranmitting frequency all differs;
Described locating module includes:
Determine unit, for the sound tranmitting frequency that the frequency according to the described acoustical signal received is corresponding with described speaker Determine the frequency offseting value of described acoustical signal;
First positioning unit, for calculating the space moving displacement of described mobile terminal, with to institute according to described frequency offseting value State mobile terminal to position.
3. mobile terminal positioner as claimed in claim 2, it is characterised in that described first positioning unit includes:
Computation subunit, for calculating the described mobile terminal mobile speed relative to described speaker according to described frequency offseting value Degree;
Described computation subunit is additionally operable to according to described mobile terminal phase in described translational speed calculating present sample time interval Moving displacement for described speaker;
Determine subelement, for determining the initial position that described mobile terminal present sample time interval is corresponding, and according to described Initial position and described moving displacement determine the final position of described mobile terminal present sample time interval, and according to described Initial position and final position determine the space moving displacement of described mobile terminal;
Wherein, described sampling time interval is the time interval gathering described acoustical signal.
4. mobile terminal positioner as claimed in claim 3, it is characterised in that described speaker is at least two, described Determine subelement to be additionally operable to according to described initial position and described moving displacement and determine that described mobile terminal is raised one's voice relative to described The actual range of device;It is additionally operable to determine with the position of speaker as the centre of sphere and with described actual range corresponding to speaker as ball Position of intersecting point between the sphere of radius;It is additionally operable to the final position choosing position of intersecting point described in as described mobile terminal.
5. mobile terminal positioner as claimed in claim 1, it is characterised in that described default speaker is described mobile whole The speaker of end, described locating module includes:
Extraction unit, for extracting the characteristic parameter of the described acoustical signal received;
Second positioning unit, for according to default characteristic parameter and the corresponding relation of position, determining the characteristic parameter pair extracted The position answered, to position described mobile terminal.
6. a mobile terminal locating method, it is characterised in that described mobile terminal locating method comprises the following steps:
Mobile terminal receives presets the acoustical signal that speaker sends;
Described mobile terminal is positioned by the frequency according to the described acoustical signal received;Or, according to the institute received Described mobile terminal is positioned by the characteristic parameter stating acoustical signal.
7. mobile terminal locating method as claimed in claim 6, it is characterised in that described mobile terminal receives presets speaker The step of the acoustical signal sent includes: mobile terminal receives the acoustical signal that at least one speaker of fixed terminal sends, When described speaker is at least two, the sound tranmitting frequency of each described speaker all differs;
The step that described mobile terminal is positioned by the frequency of the described acoustical signal that described basis receives includes: according to connecing The frequency of the described acoustical signal the received sound tranmitting frequency corresponding with described speaker determines the frequency of described acoustical signal Deviant;The space moving displacement of described mobile terminal is calculated, so that described mobile terminal to be carried out according to described frequency offseting value Location.
8. mobile terminal locating method as claimed in claim 7, it is characterised in that described calculate according to described frequency offseting value The step of the space moving displacement of described mobile terminal includes:
The described mobile terminal translational speed relative to described speaker is calculated according to described frequency offseting value;
According to described mobile terminal in described translational speed calculating present sample time interval relative to the movement of described speaker Displacement;
Determine the initial position that described mobile terminal present sample time interval is corresponding;
The final position of described mobile terminal present sample time interval is determined according to described initial position and described moving displacement;
The space moving displacement of described mobile terminal is determined according to described initial position and final position;
Wherein, described sampling time interval is the time interval gathering described acoustical signal.
9. mobile terminal locating method as claimed in claim 8, it is characterised in that described speaker is at least two, according to Described initial position and described moving displacement determine that the step of the final position of described mobile terminal includes:
The described mobile terminal actual range relative to described speaker is determined according to described initial position and described moving displacement;
Determine with the position of speaker as the centre of sphere and between sphere with described actual range corresponding to speaker as the radius of a ball Position of intersecting point;
Choose the final position as described mobile terminal of the position of intersecting point described in.
10. mobile terminal locating method as claimed in claim 6, it is characterised in that described default speaker is described movement The speaker of terminal, the step that described mobile terminal is positioned by the characteristic parameter of the described acoustical signal that described basis receives Suddenly include: extract the characteristic parameter of the described acoustical signal received, according to the corresponding relation of default characteristic parameter Yu position, really Surely the position that the characteristic parameter that extracts is corresponding, to position described mobile terminal.
CN201610388272.2A 2016-06-01 2016-06-01 Mobile terminal positioning device and method Active CN106093950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610388272.2A CN106093950B (en) 2016-06-01 2016-06-01 Mobile terminal positioning device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610388272.2A CN106093950B (en) 2016-06-01 2016-06-01 Mobile terminal positioning device and method

Publications (2)

Publication Number Publication Date
CN106093950A true CN106093950A (en) 2016-11-09
CN106093950B CN106093950B (en) 2020-03-27

Family

ID=57447464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610388272.2A Active CN106093950B (en) 2016-06-01 2016-06-01 Mobile terminal positioning device and method

Country Status (1)

Country Link
CN (1) CN106093950B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614760A (en) * 2018-05-10 2018-10-02 联想(北京)有限公司 A kind of information detecting method, electronic equipment and computer readable storage medium
CN109188413A (en) * 2018-10-18 2019-01-11 京东方科技集团股份有限公司 The localization method of virtual reality device, device and system
CN109725291A (en) * 2018-12-25 2019-05-07 秒针信息技术有限公司 Determination method, apparatus, storage medium and the electronic device of motion state
CN110320498A (en) * 2018-03-29 2019-10-11 Cae有限公司 For determining the method and system of the position of microphone
CN110711955A (en) * 2019-11-14 2020-01-21 安徽同兴科技发展有限责任公司 Partitioned dust removal device of large laser cutting machine and working method thereof
CN111770233A (en) * 2020-06-23 2020-10-13 Oppo(重庆)智能科技有限公司 Frequency compensation method and terminal equipment
CN112526453A (en) * 2019-09-17 2021-03-19 深圳Tcl数字技术有限公司 User positioning method and intelligent terminal
CN112614332A (en) * 2020-12-10 2021-04-06 维沃移动通信有限公司 Terminal control method and device and electronic equipment
CN112882036A (en) * 2021-01-19 2021-06-01 中国人民解放军军事科学院国防科技创新研究院 Sonar audio speed and distance measuring device and method
CN114666721A (en) * 2022-05-05 2022-06-24 深圳市丰禾原电子科技有限公司 Wifi sound box with terminal tracking mode and control method thereof
CN115240377A (en) * 2022-06-23 2022-10-25 广东一医数据科技有限公司 Medical care disinfection safety early warning method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257338A (en) * 2013-04-23 2013-08-21 中国科学技术大学 Indoor positioning method and system
CN103344959A (en) * 2013-07-22 2013-10-09 乾行讯科(北京)科技有限公司 Ultrasonic location system and electronic device with locating function
US20130294618A1 (en) * 2012-05-06 2013-11-07 Mikhail LYUBACHEV Sound reproducing intellectual system and method of control thereof
CN103592629A (en) * 2013-10-21 2014-02-19 国家电网公司 Transformer substation multi-target accurate positioning system
CN203502583U (en) * 2013-10-21 2014-03-26 国家电网公司 Transformer substation multi-target accurate positioning system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130294618A1 (en) * 2012-05-06 2013-11-07 Mikhail LYUBACHEV Sound reproducing intellectual system and method of control thereof
CN103257338A (en) * 2013-04-23 2013-08-21 中国科学技术大学 Indoor positioning method and system
CN103344959A (en) * 2013-07-22 2013-10-09 乾行讯科(北京)科技有限公司 Ultrasonic location system and electronic device with locating function
CN103592629A (en) * 2013-10-21 2014-02-19 国家电网公司 Transformer substation multi-target accurate positioning system
CN203502583U (en) * 2013-10-21 2014-03-26 国家电网公司 Transformer substation multi-target accurate positioning system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110320498A (en) * 2018-03-29 2019-10-11 Cae有限公司 For determining the method and system of the position of microphone
CN110320498B (en) * 2018-03-29 2023-12-19 Cae有限公司 Method and system for determining the position of a microphone
CN108614760B (en) * 2018-05-10 2021-06-15 联想(北京)有限公司 Information detection method, electronic equipment and computer readable storage medium
CN108614760A (en) * 2018-05-10 2018-10-02 联想(北京)有限公司 A kind of information detecting method, electronic equipment and computer readable storage medium
CN109188413A (en) * 2018-10-18 2019-01-11 京东方科技集团股份有限公司 The localization method of virtual reality device, device and system
CN109725291A (en) * 2018-12-25 2019-05-07 秒针信息技术有限公司 Determination method, apparatus, storage medium and the electronic device of motion state
CN112526453A (en) * 2019-09-17 2021-03-19 深圳Tcl数字技术有限公司 User positioning method and intelligent terminal
CN112526453B (en) * 2019-09-17 2024-04-30 深圳Tcl数字技术有限公司 User positioning method and intelligent terminal
CN110711955A (en) * 2019-11-14 2020-01-21 安徽同兴科技发展有限责任公司 Partitioned dust removal device of large laser cutting machine and working method thereof
CN111770233A (en) * 2020-06-23 2020-10-13 Oppo(重庆)智能科技有限公司 Frequency compensation method and terminal equipment
CN112614332A (en) * 2020-12-10 2021-04-06 维沃移动通信有限公司 Terminal control method and device and electronic equipment
CN112882036A (en) * 2021-01-19 2021-06-01 中国人民解放军军事科学院国防科技创新研究院 Sonar audio speed and distance measuring device and method
CN114666721A (en) * 2022-05-05 2022-06-24 深圳市丰禾原电子科技有限公司 Wifi sound box with terminal tracking mode and control method thereof
CN114666721B (en) * 2022-05-05 2024-02-06 深圳市丰禾原电子科技有限公司 Wifi sound box with terminal tracking mode and control method thereof
CN115240377A (en) * 2022-06-23 2022-10-25 广东一医数据科技有限公司 Medical care disinfection safety early warning method and device

Also Published As

Publication number Publication date
CN106093950B (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN106093950A (en) Mobile terminal positioner and method
CN104978022B (en) Non-contact gesture recognition methods based on ultrasound and its device
CN104049728B (en) Electronic device and control method thereof
CN106652996B (en) Prompt tone generation method and device and mobile terminal
CN105917248A (en) Driver side location detection
CN105308562B (en) Portable device and screen display method
CN102630385B (en) Method, device and system for audio zooming process within an audio scene
CN104714648B (en) A kind of switching method and apparatus of music scene
CN108877770A (en) For testing the methods, devices and systems of intelligent sound equipment
CN107666638B (en) A kind of method and terminal device for estimating tape-delayed
CN109670074A (en) A kind of rhythm point recognition methods, device, electronic equipment and storage medium
CN104798362B (en) User terminal, external device (ED), data receiving-transmitting system and data receiving-transmitting method
CN109032558A (en) Sounding control method, device, electronic device and computer-readable medium
CN108668077A (en) Camera control method, device, mobile terminal and computer-readable medium
CN105719659A (en) Recording file separation method and device based on voiceprint identification
CN103366756A (en) Sound signal reception method and device
CN106888419A (en) The method and apparatus for adjusting earpiece volume
CN107454248A (en) A kind of acoustic signal processing method, device and mobile terminal
CN107615206A (en) Using mobile device as based on mobile controller
CN105259459A (en) Automatic quality inspection method, apparatus and device for electronic equipment
CN106060268A (en) Voice output method for mobile terminal and mobile terminal
CN109599104A (en) Multi-beam choosing method and device
CN109040911A (en) The determination method of intelligent sound box and its target placement location
CN107170440A (en) Orient transaudient method, device, mobile terminal and computer-readable recording medium
CN108307308A (en) Localization method, device and the storage medium of WLAN devices

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