CN109040360B - Geographic information acquisition method and mobile terminal - Google Patents

Geographic information acquisition method and mobile terminal Download PDF

Info

Publication number
CN109040360B
CN109040360B CN201810847494.5A CN201810847494A CN109040360B CN 109040360 B CN109040360 B CN 109040360B CN 201810847494 A CN201810847494 A CN 201810847494A CN 109040360 B CN109040360 B CN 109040360B
Authority
CN
China
Prior art keywords
information
mobile terminal
atmospheric pressure
player
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810847494.5A
Other languages
Chinese (zh)
Other versions
CN109040360A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810847494.5A priority Critical patent/CN109040360B/en
Publication of CN109040360A publication Critical patent/CN109040360A/en
Application granted granted Critical
Publication of CN109040360B publication Critical patent/CN109040360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a geographic information acquisition method and a mobile terminal, relates to the technical field of communication, and aims to solve the problem that the cost of the mobile terminal is high due to the arrangement of an air pressure sensor, a height sensor and the like. The method for acquiring the geographic information comprises the following steps: receiving an input for obtaining geographic information; in response to the input, controlling the player to play the test sound signal; acquiring playing information generated by the player in playing the test sound signal; and obtaining the geographic information of the current position of the mobile terminal according to the playing information. The method for acquiring the geographic information in the embodiment of the invention is applied to the mobile terminal.

Description

Geographic information acquisition method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a geographic information acquisition method and a mobile terminal.
Background
The mobile terminal can realize more common functions besides the basic communication function. For example, when the user is at leisure, the mobile terminal can provide services such as playing music, watching videos, experiencing games and the like for the user; when a user works, the mobile terminal can provide services such as text editing, data statistics and the like for the user; when a user goes out, the mobile terminal can provide services such as positioning, navigation and the like for the user.
An air pressure sensor, an altitude sensor and the like are also arranged in the existing mobile terminal to acquire information of relevant geographic environments. Such as atmospheric pressure, altitude, etc. of the current geographic environment. Therefore, the functions of the mobile terminal are enriched, more services are provided for the user, and the use experience of the user is improved.
However, the air pressure sensor, the height sensor and the like are expensive and occupy the space of the mobile terminal, so that the material cost is increased, the processing cost is also increased, and the cost of the mobile terminal is higher.
Disclosure of Invention
The embodiment of the invention provides a method for acquiring geographic information, which aims to solve the problem that the cost of a mobile terminal is higher due to the arrangement of an air pressure sensor, a height sensor and the like.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for acquiring geographic information, which is applied to a mobile terminal, where the mobile terminal includes a player, and the method includes: receiving an input for obtaining geographic information; in response to the input, controlling the player to play a test sound signal; acquiring playing information generated by the player in playing the test sound signal; and obtaining the geographic information of the current position of the mobile terminal according to the playing information.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a player, and includes: an input receiving module for receiving an input for obtaining geographic information; the input response module is used for responding to the input and controlling the player to play the test sound signal; the playing information acquisition module is used for acquiring playing information generated by the player in playing the test sound signal; and the geographic information acquisition module is used for acquiring the geographic information of the current position of the mobile terminal according to the playing information.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the method for acquiring geographic information.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the method for acquiring geographic information.
In the embodiment of the invention, the user can input the operation of acquiring the geographic information of the current position in the mobile terminal, so that the mobile terminal receives the input of acquiring the geographic information and controls the player to play a section of test sound signal in response to the input. In the process of playing the test sound signal by the player, a series of playing information is generated so as to obtain the playing information, and the geographical information of the current position of the mobile terminal is finally obtained after a series of deduction calculation according to the currently generated playing information based on the difference of the playing information generated by different geographical information. Therefore, in the embodiment, based on the player of the mobile terminal, the geographic information of the current position, such as the atmospheric pressure information, the altitude information and other geographic information of the current position, can be obtained by using the principle characteristics of the player, so that expensive devices such as an air pressure sensor and a height sensor are prevented from being arranged in the mobile terminal, and meanwhile, the newly added devices are prevented from occupying the space of the mobile terminal, so that the material cost is reduced, the processing cost is also reduced, and the cost of the mobile terminal is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is one of flowcharts of a method of acquiring geographical information according to an embodiment of the present invention;
fig. 2 is a second flowchart of a method for acquiring geographic information according to an embodiment of the present invention;
fig. 3 is a schematic view of a non-vibrating state of a moving coil speaker according to an embodiment of the present invention;
fig. 4 is a schematic view of a vibration state of a moving-coil speaker according to an embodiment of the present invention;
fig. 5 is a third flowchart of a method for acquiring geographic information according to an embodiment of the present invention;
fig. 6 is a fourth flowchart of a method for acquiring geographic information according to an embodiment of the present invention;
FIG. 7 is one of the block diagrams of a mobile terminal of an embodiment of the present invention;
fig. 8 is a second block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a third block diagram of the mobile terminal according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a method for acquiring geographic information according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the mobile terminal includes a player, and the method includes:
step S1: an input for obtaining geographic information is received.
If the user is in a certain environment and the user wants to view geographic information of the current environment, such as atmospheric pressure information, altitude information, and the like, input for acquiring the geographic information can be performed in the mobile terminal.
The method comprises the steps that the acquired geographic information exists in a terminal function mode, and a user inputs the acquired geographic information in the mobile terminal, namely the user starts the function; or, the acquired geographic information exists in a software form, and the user inputs the acquired geographic information in the mobile terminal, namely, the user clicks to enter a corresponding interface.
Step S2: in response to the input, the player is controlled to play the test sound signal.
In this step, in response to the input, the mobile terminal sends a test sound signal to the player and controls the player to play the test sound signal.
Preferably, the test sound signal is a digital test sound signal.
Further, before the player plays the test sound signal, the power amplifier may perform an amplification conversion process on the test sound signal, and then the test sound signal is played by the player to generate a sound loudness. In further embodiments, the player may include a power amplifier.
Step S3: and acquiring playing information generated by the player in playing the test sound signal.
When playing the test sound signal, the player will generate a series of information, and in this step, the playing information generated during playing is obtained.
The playing information comprises dynamic information generated in the playing process, such as voltage value information, current value information and the like; the playing information also includes fixed basic parameters, such as parameters related to the player itself.
Step S4: and obtaining the geographic information of the current position of the mobile terminal according to the playing information.
Because corresponding atmospheric pressure, air density and the like are different in different geographic environments, when the same sound signal is played by the player, the difficulty degree of pushing air is different, so that the vibrating diaphragm 3 in the player is pushed out by different amplitudes under the action of the same voltage, and playing information is different.
By using the characteristic of the player, the geographic information of the current position of the mobile terminal can be obtained according to the difference of the playing information of the player in different geographic environments.
In the embodiment of the invention, the user can input the operation of acquiring the geographic information of the current position in the mobile terminal, so that the mobile terminal receives the input of acquiring the geographic information and controls the player to play a section of test sound signal in response to the input. In the process of playing the test sound signal by the player, a series of playing information is generated so as to obtain the playing information, and the geographical information of the current position of the mobile terminal is finally obtained after a series of deduction calculation according to the currently generated playing information based on the difference of the playing information generated by different geographical information. Therefore, in the embodiment, based on the player of the mobile terminal, the geographic information of the current position, such as the atmospheric pressure information, the altitude information and other geographic information of the current position, can be obtained by using the principle characteristics of the player, so that expensive devices such as an air pressure sensor and a height sensor are prevented from being arranged in the mobile terminal, and meanwhile, the newly added devices are prevented from occupying the space of the mobile terminal, so that the material cost is reduced, the processing cost is also reduced, and the cost of the mobile terminal is reduced.
On the basis of the embodiment shown in fig. 1, fig. 2 shows a flowchart of a method for acquiring geographic information according to another embodiment of the present invention, in this embodiment, the player is a moving-coil speaker.
Generally, a mobile terminal includes a player for implementing basic communication functions, such as playing a voice in a call; and can also be used to implement entertainment functions such as playing music files, video files.
Referring to fig. 3 and 4, a conventional player includes a moving-coil speaker including a coil 1, a magnet 2, and a diaphragm 3, the coil 1 being wound around the magnet 2, and the diaphragm 3 being connected to the coil 1. Fig. 3 shows a non-vibrating state of the speaker, and fig. 4 shows a vibrating state of the speaker. The working principle is as follows: when an alternating audio current passes through the coil 1 of the loudspeaker, a corresponding magnetic field is generated in the coil 1, and the magnetic field generated by the magnet 2 of the loudspeaker generate an interaction force, the interaction force makes the coil 1 vibrate along with the audio current in the magnetic field generated by the magnet 2, and the coil 1 and the diaphragm 3 are connected together, so that the diaphragm 3 also vibrates (in a vibration state as shown in fig. 4), and the diaphragm 3 generates sound with the same waveform as the original audio signal.
On the basis of the above, as the environment changes, the atmospheric pressure in the corresponding environment may change. Under the same voltage, the corresponding atmospheric pressure changes, and the vibration amplitude of the diaphragm 3 also changes. In this embodiment, the vibration amplitude of the diaphragm 3 is normal based on the standard atmospheric pressure, that is, under the standard atmospheric pressure. When the atmospheric pressure is reduced, the density of the air is relatively small, the loudspeaker can push the air more easily, and the vibrating diaphragm 3 is pushed out to have larger amplitude under the same voltage; when the atmospheric pressure increases, the density of the air is relatively high, and the loudspeaker is difficult to push the air, and the diaphragm 3 is pushed out by a smaller amplitude under the same voltage.
In this embodiment, after the atmospheric pressure is changed, the amplitude of the diaphragm 3 is changed, so that the diaphragm 3 drives the coil 1 to generate a deformation characteristic different from the standard atmospheric pressure, and the current atmospheric pressure and altitude are obtained. Thus, the geographic information includes atmospheric pressure information and altitude information.
Preferably, step S4 includes:
step S41: and obtaining the abnormal deformation quantity of the coil generated in the playing test sound signal by the player according to the playing information.
In the step, when the test sound signal is played under the current atmospheric pressure, the abnormal deformation quantity of the coil is obtained.
The "coil abnormal deformation amount" herein refers to a deformation amount of the coil 1 which is different from the normal atmospheric pressure.
Step S42: and obtaining the atmospheric pressure information of the current position of the mobile terminal according to the coil abnormal deformation and the coil standard deformation.
The coil standard deformation is the coil deformation generated in the player playing the test sound signal under the standard atmospheric pressure.
If the standard deformation quantity of the coil generated in the test sound signal played by the player under the standard atmospheric pressure is zero, the variation quantity of the atmospheric pressure at the current position of the mobile terminal relative to the standard atmospheric pressure is obtained according to the abnormal deformation quantity of the coil.
Since the amplitude of the vibration of the diaphragm 3 is normal under the standard atmospheric pressure, the corresponding coil standard deformation amount is zero, and thus, in this step, the variation amount of the current atmospheric pressure with respect to the standard atmospheric pressure can be obtained based on the coil abnormal deformation amount obtained in step S42.
If the deformation of the coil 1 is increased compared with the normal deformation of the coil 1 due to the abnormal deformation of the coil 1, it indicates that the amplitude of the diaphragm 3 is increased, and the current atmospheric pressure is reduced compared with the standard atmospheric pressure, so that the atmospheric pressure at the current position of the mobile terminal can be obtained according to the reduced variation and the standard atmospheric pressure.
If the deformation of the coil 1 is reduced compared with the normal deformation of the coil 1 due to the abnormal deformation of the coil 1, it indicates that the amplitude of the diaphragm 3 is reduced, and the current atmospheric pressure is increased compared with the standard atmospheric pressure, so that the atmospheric pressure at the current position of the mobile terminal can be obtained according to the increased variation and the standard atmospheric pressure.
Step S43: and obtaining the altitude information of the current position of the mobile terminal according to the atmospheric pressure information.
According to the obtained atmospheric pressure information and the relationship between the atmospheric pressure information and the altitude information, the current altitude information can be obtained.
In this embodiment, the structural characteristics and the working principle of the moving-coil speaker are utilized to obtain the information and the generated signals of the speaker, so as to indirectly calculate the atmospheric pressure and the altitude, further replace an air pressure sensor and a height sensor applied in an intelligent mobile terminal, and save more cost and space of the mobile terminal. Therefore, on the premise of ensuring the cost, the embodiment of the invention reserves the novel function of acquiring the geographic information, conforms to the artificial intelligence concept, improves the value of the mobile terminal and enables the mobile terminal to be more intelligent.
In further embodiments, the player is not limited to moving coil speakers, but may be other types of speakers.
On the basis of the embodiment shown in fig. 2, fig. 5 is a flowchart illustrating a method for acquiring geographic information according to another embodiment of the present invention, where the playing information includes current value information and voltage value information, and step S41 includes:
step S411: and obtaining the corresponding instantaneous maximum impedance of the player in playing the test sound signal according to the current value information and the voltage value information.
After the atmospheric pressure changes, the amplitude changes, so that the diaphragm 3 drives the coil 1 to generate deformation different from the standard atmospheric pressure, and correspondingly, the impedance of the deformed coil 1 also changes. Therefore, in the present embodiment, the amount of coil abnormal deformation of the coil 1 is indirectly obtained by using the impedance of the coil 1.
In this step, current value information and voltage value information in the playback information are obtained, and according to a formula one: rmax is U/I, and instantaneous maximum impedance is obtained; wherein Rmax is the instantaneous maximum impedance, U is the voltage value information passing through the player, and I is the current value information passing through the player.
Step S412: and obtaining the impedance variation according to the corresponding standard maximum impedance and the instantaneous maximum impedance in the test sound signal played by the player under the standard atmospheric pressure.
In this step, according to formula two: obtaining an impedance change amount by taking the delta R as Rmax-Rnomal; where Δ R is the impedance variation and Rnormal is the standard maximum impedance.
The standard maximum impedance is the corresponding standard maximum impedance when the player plays the same test sound signal under the standard atmospheric pressure.
Step S413: and obtaining the abnormal deformation quantity of the coil generated in the playing test sound signal of the player according to the impedance variation quantity.
In this step, the following formula is given: r ═ p × L)/S, the formula four can be derived: obtaining the abnormal deformation quantity of the coil by L/S ═ DeltaR (S/p); wherein S is the cross-sectional area of the coil 1, p is the resistivity, L is the length of the coil 1, and L/S is taken as the abnormal deformation amount of the coil.
For a loudspeaker arranged on a mobile terminal, the cross section area of the coil 1 and the resistivity of the coil 1 are fixed parameters, so that the abnormal deformation quantity of the coil can be obtained according to the impedance change quantity calculated in the previous step.
On the basis of the embodiment shown in fig. 5, fig. 6 shows a flowchart of a method for acquiring geographic information according to another embodiment of the present invention, and after step S412, the method further includes:
step S414: and if the instantaneous maximum impedance is detected to be greater than the standard maximum impedance, determining that the atmospheric pressure at the current position of the mobile terminal is less than the standard atmospheric pressure.
Step S415: and if the instantaneous maximum impedance is detected to be smaller than the standard maximum impedance, determining that the atmospheric pressure of the current position of the mobile terminal is greater than the standard atmospheric pressure.
In this embodiment, the obtained instantaneous maximum impedance may be compared with the standard maximum impedance to determine whether the atmospheric pressure at the current location of the mobile terminal is increased or decreased relative to the standard atmospheric pressure, so that in the subsequent calculation: if the atmospheric pressure of the current position of the mobile terminal is reduced relative to the standard atmospheric pressure, the atmospheric pressure of the current position of the mobile terminal is obtained by subtracting the impedance variable quantity from the standard atmospheric pressure; and if the atmospheric pressure of the current position of the mobile terminal is increased relative to the standard atmospheric pressure, obtaining the atmospheric pressure of the current position of the mobile terminal by adding the impedance variable quantity to the standard atmospheric pressure.
The method is applied to the formula II: in the case that the delta R is greater than 0, the atmospheric pressure of the current position of the mobile terminal is reduced relative to the standard atmospheric pressure; if the delta R is less than 0, the atmospheric pressure of the current position of the mobile terminal is increased relative to the standard atmospheric pressure; and if the delta R is 0, the atmospheric pressure of the current position of the mobile terminal is the standard atmospheric pressure.
On the basis of the above embodiment, step S42 includes:
according to the formula five: obtaining the variation of the atmospheric pressure of the current position of the mobile terminal relative to the standard atmospheric pressure; where n is the variation and a is the fixed multiplier of coil 1.
In this step, according to experiments, when the coil abnormal deformation amount (L/S) is M meters, the corresponding atmospheric pressure variation amount is NKpa, so that a relationship between the coil abnormal deformation amount and the atmospheric pressure variation amount can be derived: L/S-n-a, where a is a fixed multiplier of coil 1, which value can be written into the mobile terminal.
Combining the second formula: Δ R ═ Rmax-Rnormal, formula five is variable as: when n is-L/(S × a), that is, Δ R >0, the atmospheric pressure decreases, and the corresponding variation n is a negative value.
Preferably, step S42 further includes:
according to the formula six: obtaining the atmospheric pressure when Pa is P + n; wherein Pa is atmospheric pressure, and P is standard atmospheric pressure.
Preferably, step S43 includes:
according to the formula seven:
Figure BDA0001746921560000081
obtaining the altitude; wherein Pa is atmospheric pressure, and H is altitude.
When the elevation increases, the atmospheric pressure can be reduced, the diaphragm 3 can generate deformation different from that under the standard atmospheric pressure, the loudspeaker coil 1 attached below the diaphragm 3 can also generate corresponding deformation, and the impedance of the loudspeaker coil 1 can also change at the moment. Therefore, the altitude in the same environment has a certain relationship with the atmospheric pressure.
In this step, after obtaining the local atmospheric pressure, the altitude can be indirectly calculated according to the relationship between the atmospheric pressure and the altitude (the empirical formula shown in formula seven), so as to achieve the effect of the atmospheric pressure and the altitude of the geographical location where the user needs to be located.
It should be noted that the atmospheric pressure appearing in the embodiment may be understood as the atmospheric pressure of the current location of the mobile terminal, in combination with the context.
Preferably, the player comprises a speaker or an earpiece.
The player can be a loudspeaker or a receiver arranged in the mobile terminal, and both can achieve the playing effect in all the embodiments of the invention.
With the popularization and common use of mobile terminals, it has become a habit for people to use mobile terminals. When users in various regions around the world use the mobile terminal, the use of a loudspeaker or a receiver cannot be avoided, and the use scenes of various regions exist. When a user is at a high altitude of ten thousand meters and at a deep sea of more than one thousand meters under water, anyone wants to take out the mobile phone to take a plurality of photos or share the mood with family and friends at the moment. Therefore, by combining the invention, the loudspeaker or the receiver can be used as basic equipment for acquiring the geographic information, thereby meeting more requirements of users.
Referring to fig. 7, a block diagram of a mobile terminal according to another embodiment of the present invention is shown, where the mobile terminal includes a player, and further includes:
an input receiving module 10 for receiving an input for acquiring geographic information;
an input response module 20, configured to control the player to play the test sound signal in response to the input;
a playing information obtaining module 30, configured to obtain playing information generated by the player in playing the test sound signal;
and the geographic information acquisition module 40 is configured to obtain geographic information of a current location of the mobile terminal according to the play information.
In the embodiment of the invention, the user can input the operation of acquiring the geographic information of the current position in the mobile terminal, so that the mobile terminal receives the input of acquiring the geographic information and controls the player to play a section of test sound signal in response to the input. In the process of playing the test sound signal by the player, a series of playing information is generated so as to obtain the playing information, and the geographical information of the current position of the mobile terminal is finally obtained after a series of deduction calculation according to the currently generated playing information based on the difference of the playing information generated by different geographical information. Therefore, in the embodiment, based on the player of the mobile terminal, the geographic information of the current position, such as the atmospheric pressure information, the altitude information and other geographic information of the current position, can be obtained by using the principle characteristics of the player, so that expensive devices such as an air pressure sensor and a height sensor are prevented from being arranged in the mobile terminal, and meanwhile, the newly added devices are prevented from occupying the space of the mobile terminal, so that the material cost is reduced, the processing cost is also reduced, and the cost of the mobile terminal is reduced.
On the basis of the embodiment shown in fig. 7, fig. 8 shows a block diagram of a mobile terminal according to another embodiment of the present invention, wherein the player is a moving-coil speaker; the geographic information comprises atmospheric pressure information and altitude information; wherein the content of the first and second substances,
the geographic information acquisition module 40 includes:
a coil abnormal deformation amount determining unit 41, configured to obtain, according to the playing information, a coil abnormal deformation amount generated by the player in playing the test sound signal;
the atmospheric pressure determining unit 42 is configured to obtain atmospheric pressure information of a current position of the mobile terminal according to the coil abnormal deformation amount and the coil standard deformation amount;
an altitude information determining unit 43, configured to obtain, according to the atmospheric pressure information, altitude information of a current position of the mobile terminal;
the coil standard deformation is the coil deformation generated in the player playing the test sound signal under the standard atmospheric pressure.
Further, the playing information includes current value information and voltage value information;
the coil abnormal deformation amount determination unit 41 includes:
the maximum impedance calculating subunit 411 is configured to obtain an instantaneous maximum impedance corresponding to the player in playing the test sound signal according to the current value information and the voltage value information;
the impedance change amount calculation subunit 412 is used for obtaining the impedance change amount according to the corresponding standard maximum impedance and the instantaneous maximum impedance in the test sound signal played by the player under the standard atmospheric pressure;
and an abnormal deformation amount calculation sub unit 413 for obtaining the coil abnormal deformation amount generated by the player in playing the test sound signal according to the impedance change amount.
Further, the coil abnormal deformation amount determination unit 41 further includes:
an atmospheric pressure decreasing subunit 414, configured to determine that the atmospheric pressure at the current location of the mobile terminal is lower than the standard atmospheric pressure if it is detected that the instantaneous maximum impedance is higher than the standard maximum impedance;
and an atmospheric pressure increasing subunit 415, configured to determine that the atmospheric pressure at the current location of the mobile terminal is greater than the standard atmospheric pressure if it is detected that the instantaneous maximum impedance is smaller than the standard maximum impedance.
Preferably, the player comprises a speaker or an earpiece.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 6, and is not described herein again to avoid repetition.
Fig. 9 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the user input unit 107 is used for receiving input for acquiring geographic information;
an audio output unit 103 for controlling the player to play a test sound signal in response to the input;
a processor 110, configured to obtain playing information generated by the player in playing the test sound signal; and obtaining the geographic information of the current position of the mobile terminal according to the playing information.
In the embodiment of the invention, the user can input the operation of acquiring the geographic information of the current position in the mobile terminal, so that the mobile terminal receives the input of acquiring the geographic information and controls the player to play a section of test sound signal in response to the input. In the process of playing the test sound signal by the player, a series of playing information is generated so as to obtain the playing information, and the geographical information of the current position of the mobile terminal is finally obtained after a series of deduction calculation according to the currently generated playing information based on the difference of the playing information generated by different geographical information. Therefore, in the embodiment, based on the player of the mobile terminal, the geographic information of the current position, such as the atmospheric pressure information, the altitude information and other geographic information of the current position, can be obtained by using the principle characteristics of the player, so that expensive devices such as an air pressure sensor and a height sensor are prevented from being arranged in the mobile terminal, and meanwhile, the newly added devices are prevented from occupying the space of the mobile terminal, so that the material cost is reduced, the processing cost is also reduced, and the cost of the mobile terminal is reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 is an interface through which an external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned method for acquiring geographic information, and can achieve the same technical effect, and in order to avoid repetition, the details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for acquiring geographic information, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A geographic information acquisition method is applied to a mobile terminal, wherein the mobile terminal comprises a player, and the method is characterized by comprising the following steps:
receiving an input for obtaining geographic information;
in response to the input, controlling the player to play a test sound signal;
acquiring playing information generated by the player in playing the test sound signal;
obtaining geographic information of the current position of the mobile terminal according to the playing information;
the geographic information comprises atmospheric pressure information and altitude information; wherein the content of the first and second substances,
the step of obtaining the geographic information of the current position of the mobile terminal according to the playing information comprises the following steps:
according to the playing information, obtaining the abnormal deformation quantity of the coil generated by the player in playing the test sound signal;
obtaining atmospheric pressure information of the current position of the mobile terminal according to the coil abnormal deformation and the coil standard deformation;
obtaining the altitude information of the current position of the mobile terminal according to the atmospheric pressure information;
the coil standard deformation quantity is generated in the test sound signal played by the player under the standard atmospheric pressure;
the playing information comprises current value information and voltage value information;
the step of obtaining the abnormal deformation amount of the coil generated by the player in playing the test sound signal according to the playing information comprises:
according to the current value information and the voltage value information, obtaining the corresponding instantaneous maximum impedance of the player in playing the test sound signal;
obtaining impedance variation according to the corresponding standard maximum impedance and the instantaneous maximum impedance in the test sound signal played by the player under the standard atmospheric pressure;
and obtaining the abnormal deformation quantity of the coil generated by the player in playing the test sound signal according to the impedance variation quantity.
2. The method of claim 1, wherein the player is a moving coil speaker.
3. The method of claim 1, wherein after the step of obtaining the impedance variation according to the corresponding standard maximum impedance of the test sound signal played by the player at the standard atmospheric pressure and the instantaneous maximum impedance, further comprises:
if the instantaneous maximum impedance is detected to be larger than the standard maximum impedance, determining that the atmospheric pressure of the current position of the mobile terminal is smaller than the standard atmospheric pressure;
and if the instantaneous maximum impedance is detected to be smaller than the standard maximum impedance, determining that the atmospheric pressure of the current position of the mobile terminal is greater than the standard atmospheric pressure.
4. The method of claim 1, wherein the player comprises a speaker or an earpiece.
5. A mobile terminal, the mobile terminal including a player, comprising:
an input receiving module for receiving an input for obtaining geographic information;
the input response module is used for responding to the input and controlling the player to play the test sound signal;
the playing information acquisition module is used for acquiring playing information generated by the player in playing the test sound signal;
the geographic information acquisition module is used for acquiring geographic information of the current position of the mobile terminal according to the playing information;
the geographic information comprises atmospheric pressure information and altitude information; wherein the content of the first and second substances,
the geographic information acquisition module comprises:
the coil abnormal deformation quantity determining unit is used for obtaining the coil abnormal deformation quantity generated by the player in playing the test sound signal according to the playing information;
the atmospheric pressure determining unit is used for obtaining atmospheric pressure information of the current position of the mobile terminal according to the coil abnormal deformation and the coil standard deformation;
the altitude information determining unit is used for obtaining the altitude information of the current position of the mobile terminal according to the atmospheric pressure information;
the coil standard deformation quantity is generated in the test sound signal played by the player under the standard atmospheric pressure;
the playing information comprises current value information and voltage value information;
the coil abnormal deformation amount determination unit includes:
the maximum impedance calculating subunit is used for obtaining the corresponding instantaneous maximum impedance of the player in playing the test sound signal according to the current value information and the voltage value information in the playing information;
the impedance change amount calculation subunit is used for obtaining an impedance change amount according to the corresponding standard maximum impedance in the test sound signal played by the player under the standard atmospheric pressure and the instantaneous maximum impedance;
and the abnormal deformation quantity calculating subunit is used for obtaining the coil abnormal deformation quantity generated by the player in playing the test sound signal according to the impedance deformation quantity.
6. The mobile terminal of claim 5, wherein the player is a moving coil speaker.
7. The mobile terminal according to claim 5, wherein the coil abnormal deformation amount determination unit further comprises:
the atmospheric pressure reducing subunit is configured to determine that the atmospheric pressure at the current location of the mobile terminal is lower than the standard atmospheric pressure if it is detected that the instantaneous maximum impedance is higher than the standard maximum impedance;
and the atmospheric pressure increasing subunit is used for determining that the atmospheric pressure at the current position of the mobile terminal is greater than the standard atmospheric pressure if the instantaneous maximum impedance is detected to be less than the standard maximum impedance.
8. The mobile terminal of claim 5, wherein the player comprises a speaker or an earpiece.
9. A mobile terminal, characterized in that it comprises a processor, a memory, a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the acquisition method of geographic information according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the method for obtaining geographical information according to any one of claims 1 to 4.
CN201810847494.5A 2018-07-27 2018-07-27 Geographic information acquisition method and mobile terminal Active CN109040360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810847494.5A CN109040360B (en) 2018-07-27 2018-07-27 Geographic information acquisition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810847494.5A CN109040360B (en) 2018-07-27 2018-07-27 Geographic information acquisition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109040360A CN109040360A (en) 2018-12-18
CN109040360B true CN109040360B (en) 2020-08-21

Family

ID=64647285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810847494.5A Active CN109040360B (en) 2018-07-27 2018-07-27 Geographic information acquisition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109040360B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235700B (en) * 2020-10-30 2022-05-17 Oppo广东移动通信有限公司 Amplitude adjustment method for electroacoustic device, terminal device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652634A (en) * 2004-02-06 2005-08-10 先锋株式会社 Loudspeaker
CN108040316A (en) * 2017-11-24 2018-05-15 维沃移动通信有限公司 A kind of amplitude detection method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652634A (en) * 2004-02-06 2005-08-10 先锋株式会社 Loudspeaker
CN108040316A (en) * 2017-11-24 2018-05-15 维沃移动通信有限公司 A kind of amplitude detection method and mobile terminal

Also Published As

Publication number Publication date
CN109040360A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US20210034223A1 (en) Method for display control and mobile terminal
KR102554191B1 (en) Information processing method and terminal
CN109918039B (en) Volume adjusting method and mobile terminal
CN109905812B (en) Input power control method and device and terminal equipment
WO2019201271A1 (en) Call processing method and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN111010608B (en) Video playing method and electronic equipment
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN107734172B (en) Information display method and mobile terminal
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108848267B (en) Audio playing method and mobile terminal
CN107749306B (en) Vibration optimization method and mobile terminal
CN111078186A (en) Playing method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110058837B (en) Audio output method and terminal
CN109949809B (en) Voice control method and terminal equipment
CN109451146B (en) Vibration processing method and terminal
CN108536513B (en) Picture display direction adjusting method and mobile terminal
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN110913070B (en) Call method and terminal equipment
CN109040360B (en) Geographic information acquisition method and mobile terminal
CN109819188B (en) Video processing method and terminal equipment
CN109451154B (en) Method for setting multimedia file and terminal equipment
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal

Legal Events

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