CN110972075B - Positioning control method, positioning control circuit, storage medium and terminal - Google Patents

Positioning control method, positioning control circuit, storage medium and terminal Download PDF

Info

Publication number
CN110972075B
CN110972075B CN201911193852.6A CN201911193852A CN110972075B CN 110972075 B CN110972075 B CN 110972075B CN 201911193852 A CN201911193852 A CN 201911193852A CN 110972075 B CN110972075 B CN 110972075B
Authority
CN
China
Prior art keywords
value
positioning
interface
temperature
voltage
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
CN201911193852.6A
Other languages
Chinese (zh)
Other versions
CN110972075A (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.)
Hefei Guiqian Information Technology Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201911193852.6A priority Critical patent/CN110972075B/en
Publication of CN110972075A publication Critical patent/CN110972075A/en
Application granted granted Critical
Publication of CN110972075B publication Critical patent/CN110972075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/029Location-based management or tracking services

Abstract

The embodiment of the application discloses a positioning control method, a positioning control circuit, a computer readable storage medium and a terminal, wherein the method comprises the following steps: when the positioning function is detected to be started, acquiring a first temperature value of the terminal; acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value; determining a temperature difference value based on the first temperature value and the second temperature value; and if the temperature difference is greater than a preset threshold value, closing the positioning function. The embodiment can improve the use efficiency of the terminal positioning function.

Description

Positioning control method, positioning control circuit, storage medium and terminal
Technical Field
The present application relates to the field of mobile terminal applications, and in particular, to a positioning control method, a computer-readable storage medium, and a terminal.
Background
Currently, mobile terminals increasingly use a Global Positioning System (GPS) for navigation and Positioning. The basic principle of the GPS navigation system is to measure the distance between a satellite with a known position and a user receiver, and then integrate data of multiple satellites to know the specific position of the receiver. Because the mobile terminal has a high position updating frequency and is likely to have a large position change in a short time, the local corresponding direction data needs to be obtained by combining a sensor of the mobile terminal with the data of the corresponding direction, the position and the like obtained from the satellite.
In the related art, the GPS function is turned on or off by user control, and the GPS needs to be in an operating state in order to acquire a real-time geographic location, but the GPS is usually turned on for a long period of time to cause the GPS to generate heat seriously, which increases the power consumption of the terminal.
Disclosure of Invention
The embodiment of the application provides a positioning control method, a positioning control circuit, a storage medium and a terminal, which can improve the use efficiency of a terminal positioning function.
The embodiment of the application provides a positioning control method, which comprises the following steps:
when the positioning function is detected to be started, acquiring a first temperature value of the terminal;
acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value;
determining a temperature difference value based on the first temperature value and the second temperature value;
and if the temperature difference is greater than a preset threshold value, closing the positioning function.
Correspondingly, the embodiment of the present application further provides a positioning control circuit, including:
the positioning antenna is electrically connected with the first resistor through the first interface and the second interface, the positioning antenna is electrically connected with the second resistor through the second interface and the fourth interface, the positioning antenna is electrically connected with the third resistor through the first interface and the third interface, the positioning antenna is electrically connected with the thermistor through the third interface and the fourth interface, and the positioning antenna is electrically connected with the voltage detector through the interface.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the positioning control method.
Correspondingly, the embodiment of the application also provides a terminal, which comprises the positioning control circuit.
According to the method and the device, when the positioning function is detected to be started, a first temperature value of the terminal is obtained; acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value; determining a temperature difference value based on the first temperature value and the second temperature value; and if the temperature difference is greater than a preset threshold value, closing the positioning function. The embodiment can improve the use efficiency of the terminal positioning function.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first positioning control method according to an embodiment of the present disclosure.
Fig. 2 is a schematic flowchart of a second positioning control method according to an embodiment of the present application.
Fig. 3 is a circuit connection diagram of a positioning control circuit according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Based on the foregoing problems, embodiments of the present application provide a first positioning control method, a computer-readable storage medium, and a terminal, which can improve efficiency of positioning control of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a positioning control method according to an embodiment of the present disclosure. The positioning control method may be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the positioning control method can be as follows:
101. when the positioning function is detected to be started, a first temperature value of the terminal is obtained.
In this embodiment, the detection of starting the positioning function may be triggered by detecting whether a positioning start instruction is received, and the positioning start instruction may be triggered in various ways, for example, the positioning start instruction may be triggered by a user executing a corresponding operation for the terminal, entering a terminal system setting interface, and turning on a GPS switch to trigger the positioning function. Further, after the terminal receives the positioning starting instruction, the positioning function is started and the positioning function is judged to be started.
Specifically, after the positioning function is detected to be started, a first temperature value can be obtained, and the first temperature value can be a temperature value of the terminal. The temperature value of the terminal may include various values, for example, the temperature of the terminal may be the temperature of the central processing unit, the temperature of the battery, the temperature of the body, or the like.
The first temperature value can be obtained according to a temperature sensor inside the terminal, for example, the first temperature can be the temperature of the central processing unit, and the first temperature value can be determined according to the temperature value detected by the temperature sensor included in the position of the central processing unit. For example, if the temperature value read by the temperature sensor may be 20 ℃ (celsius), the temperature value that can be obtained to the terminal is 20 ℃.
102. And acquiring a voltage value and a resistance value of the positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value.
Specifically, the second temperature value may be obtained by obtaining a voltage value and a resistance value of the positioning antenna, processing the voltage value and the resistance value according to a preset rule to obtain a processing result, and processing again based on the processing result to obtain the second temperature value. Wherein, the second temperature value can be the temperature of the GPS.
In some embodiments, the step of "obtaining a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value" may include the following steps:
acquiring a first voltage value of the second interface through a first voltage detector;
acquiring a second voltage value of the third interface through a second voltage detector;
acquiring a first resistance value of the first resistor, a second resistance value of the second resistor and a third resistance value of the third resistor;
obtaining a power supply voltage value based on the first resistance value, the second resistance value and the first voltage value;
obtaining a fourth resistance value according to the power supply voltage value, the second voltage value and the third resistance value, wherein the fourth resistance value is the resistance value of the thermistor;
and determining a second temperature value corresponding to the fourth resistor based on a relational correspondence library.
Specifically, the first voltage value of the second interface and the second voltage value of the third interface may be obtained through an ADC (Analog-to-digital converter).
Among them, an ADC is a class of devices for converting a continuous signal in analog form into a discrete signal in digital form. An analog to digital converter may provide the signal for measurement. The opposite device becomes a digital-to-analog converter.
For example, the second interface may be electrically connected to the ADC1, the third interface may be electrically connected to the ADC2, the first voltage value may be obtained through the ADC1, and the second voltage value may be obtained through the ADC 2.
Further, a first resistance value of the first resistor, a second resistance value of the second resistor, and a third resistance value of the third resistor are obtained. The first resistor, the second resistor and the third resistor may be resistors with fixed resistance values, and when the circuit is electrically connected, the first resistance value, the second resistance value and the third resistance value may be stored in the terminal circuit storage module, and the circuit storage module may include information of the terminal circuit component.
Specifically, after the first voltage value U1, the second voltage value U2, the first resistance value R1, the second resistance value R2, and the third resistance value R3 are acquired, the processing may be performed on U1, U2, R1, R2, and R3 based on a preset rule. The power supply voltage value Udd is obtained based on the first resistance value R1, the second resistance value R2 and the first voltage value U1, and the first preset calculation formula can be used for processing R1, R2 and U1.
The first preset calculation formula may be: u1 ═ R2 × Udd/(R1+ R2). For example, R1 may be 1 Ω (ohm), R2 may be 1 Ω (ohm), and U1 may be 5V (volt), based on the first preset calculation formula, it may be found that Udd is 2.5V, and then it may be determined that the power supply voltage is 2.5V.
Specifically, a fourth resistance value R4 is obtained according to the power voltage value Udd, the second voltage value U2 and the third resistance value R3, the fourth resistance value may be a resistance value of the thermistor, and the fourth resistance value may be variable. Wherein Udd, R2 and R3 can be processed by a second preset calculation formula. Wherein, the second preset calculation formula may be: u2 ═ R4 × Udd/(R3+ R4). For example, Udd may be 2.5V, R2 may be 1 Ω, R3 may be 1 Ω, U2 may be 5V according to the above step, and R4 may be 1 Ω.
Specifically, after the fourth resistance value is obtained, the second temperature value may be obtained according to a preset rule, where the relationship correspondence library may be a resistance value and temperature correspondence relation table, and may be obtained through an experimental test. For example, the resistance-temperature correspondence may be: 1 omega-10 ℃, 2 omega-20 ℃ and the like. According to the above steps, if R4 is 1 Ω, the GPS temperature can be determined to be 10 ℃.
103. A temperature difference value is determined based on the first temperature value and the second temperature value.
Specifically, the temperature difference is determined, and the first temperature value and the second temperature value may be subjected to operation processing to obtain the temperature difference. For example, the first temperature value may be subtracted from the second temperature value to obtain a temperature difference, and the first temperature value may be 20 ℃, the second temperature value may be 10 ℃, and then the temperature difference may be 10 ℃.
Specifically, the temperature difference value is compared with a preset threshold value, wherein the preset threshold value can be the maximum difference value between the terminal temperature and the GPS temperature, and can be obtained through actual experimental data, and when the temperature difference value is smaller than the preset threshold value, the heating of the GPS is normal, and the power consumption of the terminal cannot be increased.
For example, the temperature difference may be 5 ℃, 10 ℃, or 15 ℃ or the like, and the preset threshold may be 10 ℃ or the like. If the temperature difference is 5 ℃ and the temperature difference is smaller than the preset threshold, the terminal can start the positioning function, namely the GPS can continue to acquire the positioning information; if the temperature difference is 15 ℃ and is greater than the predetermined threshold, step 105 may be executed.
104. And if the temperature difference is greater than the preset threshold value, closing the positioning function.
Specifically, when the temperature difference is greater than the preset threshold, that is, it indicates that the GPS is abnormal in heating, power consumption of the terminal is increased, and the positioning function may be turned off.
In some embodiments, before the step of turning off the positioning function, the following steps are further included:
acquiring a currently opened application program;
judging whether the application program is a preset application program or not, wherein the preset application program preferentially uses the positioning function;
if not, executing the step of closing the positioning function.
Specifically, the currently started application program is acquired, and the currently running application program can be acquired through a background process. For example, the running applications acquired according to the background process may include application a, application B, application C, and the like.
After determining the currently running application, determining whether the application is a preset application, where the preset application may be an application that preferentially uses the positioning function. Specifically, the preset application program may acquire the positioning information in real time for the user to complete the corresponding positioning event.
For example, the preset application program may be navigation software 1, and when the user starts the navigation software, the user may determine a navigation route according to the positioning information acquired by the navigation software 1, and may reach a destination according to the navigation route. Therefore, the preset application program needs to start a positioning function, so as to acquire positioning information to help the user complete related positioning or navigation, and the like.
Specifically, the preset application may be set by the user, for example, the preset application may be navigation software 1, application software 2, application software 3, or the like.
For example, if the obtained currently running application program may be the application software 4, and the application software 4 does not belong to the preset application program, it may be determined that the currently running application program does not include the preset application program, and the positioning function may be turned off.
After the positioning function is turned off, the temperature of the GPS can be detected, whether the temperature of the GPS is reduced to a preset temperature or not is judged, and if yes, the GPS function can be continuously turned on for use. In some embodiments, turning off the positioning function in the step "may further include the steps of:
acquiring temperature values of the positioning antenna every other preset time period;
comparing the temperature value with a target temperature value to obtain a comparison result;
and if the temperature value is smaller than the target temperature value, triggering an opening instruction, and opening a positioning function according to the opening instruction.
After the positioning function is turned off, the temperature of the GPS may be acquired again after a preset time period. For example, the preset time period may be 1 minute, and the temperature of the GPS may be detected again after turning off the GPS function for one minute. And comparing the acquired temperature of the GPS with a target temperature value, and executing the starting or closing operation of the GPS function according to the comparison result. For example, the temperature of the acquired GPS may be 10 ℃, the target temperature value may be 15 ℃, it may be determined that the temperature of the GPS is less than the target temperature value, at this time, the temperature of the GPS has dropped to a normal temperature, and the terminal may start the GPS function again according to a user demand.
In some embodiments, before the step "trigger the open command", the following process may be further included:
detecting whether a user starts an application program, wherein the application program is associated with the positioning function;
if yes, executing the step of starting the opening instruction.
Specifically, whether the user starts the application program is detected, and the user can use the application program to acquire the positioning message. If the user is detected to start the application program, a start instruction can be triggered, and the positioning function is started according to the start instruction.
According to the scheme, when the positioning function is detected to be started, a first temperature value of the terminal is obtained; acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value; determining a temperature difference value based on the first temperature value and the second temperature value; and if the temperature difference is greater than a preset threshold value, closing the positioning function. According to the embodiment, when the terminal is detected to start the positioning function, the terminal temperature value and the GPS temperature value are obtained, the temperature difference value is determined, whether the temperature difference value exceeds the range or not is judged, the switch of the terminal GPS function is controlled according to the judgment result, the heating condition of the GPS is detected in real time, the power consumption of the terminal can be effectively reduced, and therefore the using efficiency of the energy of the mobile terminal is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a second positioning control method according to an embodiment of the present disclosure. In this embodiment, the specific application scenarios of the positioning control method may be as follows:
201. and the terminal detects a positioning instruction triggered by a user and starts a positioning function according to the positioning instruction.
Specifically, the terminal detects a positioning instruction triggered by a user, the user can open the terminal, enter a GPS setting interface, and trigger the positioning instruction by clicking a switch control button of the GPS interface, and when the terminal detects a click operation executed by the user on the current GPS interface, the positioning function can be started.
202. And the terminal acquires the voltage and the resistance value of the GPS interface.
Specifically, the GPS interface may include a plurality of pins, for example, the pins of the GPS interface may include a pin LDO (Low Dropout Regulator), a pin G-1, a pin G-2, a pin GND (Ground), and so on.
The LDO can be connected with VDD (power voltage), GND can be connected with D (ground), a resistor R1 can be connected between the LDO and G-1, a resistor R2 can be connected between G-1 and GND, a resistor R3 can be connected between the LDO and G-2, and a resistor RT can be connected between G-2 and GND; wherein R1, R2, R3 can be resistors with fixed resistance values, RT can be thermistors, and the resistance values of the thermistors change along with temperature.
In this embodiment, the terminal can obtain the voltage values of the pin G-1 and the pin G-2, for example, the voltage of the pin G-1 can be represented as U1, and the voltage of the pin G-2 can be represented as U2; further, resistance values of the resistor 1, the resistor 2 and the resistor 3 are obtained, for example, the resistance value of the resistor 1 may be represented as R1, the resistance value of the resistor 2 may be represented as R2, and the resistance value of the resistor 3 may be represented as R3.
203. And the terminal processes the voltage and the resistance value according to a preset rule to obtain a first temperature value, wherein the first temperature value is the GPS temperature.
Specifically, after the U1, U2, R1, R2 and R3 are acquired, the U1, U2, R1, R2 and R3 may be processed according to a preset rule. The preset rule may include a plurality of calculation formulas, for example, the preset rule may include formula 1: u1 — R2 × Vdd/(R1+ R2), formula 2: u2 RT × Vdd/(R3+ RT). The terminal can obtain the resistance RT of the thermistor according to the calculation formula 1 and the calculation formula 2. For a specific calculation manner, reference may be made to the above embodiments, which are not described herein in detail. For example, the terminal may obtain the resistance value R4 by processing U1, U2, R1, R2, and R3 according to a preset rule, and then obtain a first temperature value according to the resistance value R4, which may be 20 ℃.
204. And the terminal acquires a second temperature value, wherein the second temperature value is the terminal temperature.
Specifically, the second temperature value is obtained, and the second temperature value may be a temperature value of the terminal. The temperature value of the terminal may include various values, for example, the temperature of the terminal may be the temperature of the central processing unit, the temperature of the battery, the temperature of the body, or the like. For example, the terminal temperature may be a body temperature, and the terminal may detect that the current terminal body temperature is 25 ℃ according to the temperature sensor, and then the terminal temperature is 25 ℃.
205. And the terminal determines the temperature difference value between the first temperature value and the second temperature value, compares the temperature difference value with a preset difference value and judges whether the temperature difference value is smaller than the preset difference value.
After the terminal obtains the first temperature and the second temperature, a temperature difference may be obtained according to the first temperature and the second temperature, for example, the first temperature value may be 20 ℃, the second temperature value may be 25 ℃, the preset difference may be 4 ℃, 6 ℃ or the like, the temperature difference may be 5 ℃, and when the preset difference is 4 ℃, the temperature difference is greater than the preset difference, step 207 may be executed; when the preset difference is 6 ℃, the temperature difference is smaller than the preset difference, and step 206 may be performed.
206. The terminal continues to perform the positioning function.
Specifically, the temperature difference value is smaller than the preset difference value, which can indicate that the temperature value of the GPS is in the normal heating range at the time, and the positioning function of the GPS can be continuously used without affecting the use of the GPS by continuously using the positioning function of the GPS.
207. The terminal stops performing the positioning function.
Specifically, the temperature difference is greater than the preset difference, which may indicate that the temperature value of the GPS is in an abnormal heating range at this time, that is, the current temperature of the GPS affects the use of the GPS. The terminal can close the positioning function, but if the application program started by the current user continues to acquire the current position information through the GPS positioning function. Then, the terminal may detect whether the current user starts the related software, where the related software may be navigation software, and the like, and the user needs to obtain the positioning information in real time.
For example, when the terminal detects that the background application program does not have navigation software, the positioning function of the GPS can be turned off, so that the function consumption of the terminal is reduced.
According to the scheme, when the positioning function is detected to be started, a first temperature value of the terminal is obtained; acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value; determining a temperature difference value based on the first temperature value and the second temperature value; and if the temperature difference is greater than a preset threshold value, closing the positioning function. According to the embodiment, when the terminal is detected to start the positioning function, the terminal temperature value and the GPS temperature value are obtained, the temperature difference value is determined, whether the temperature difference value exceeds the range or not is judged, the switch of the terminal GPS function is controlled according to the judgment result, the heating condition of the GPS is detected in real time, the power consumption of the terminal can be effectively reduced, and therefore the using efficiency of the energy of the mobile terminal is improved.
In order to better implement the positioning control method provided by the embodiments of the present application, the embodiments of the present application further provide a circuit based on the positioning control method. Wherein the noun is the same as that in the above positioning control, and the details of the implementation can be referred to the description of the method embodiment.
Referring to fig. 3, fig. 3 is a circuit connection schematic diagram of a positioning control circuit according to an embodiment of the present disclosure.
Specifically, the positioning control circuit comprises a positioning antenna and a voltage detection module, wherein the positioning antenna is provided with a first interface, a second interface, a third interface and a fourth interface, the positioning antenna is electrically connected with one end of the first resistor through the first interface, the positioning antenna is electrically connected with the other end of the first resistor through the second interface, the positioning antenna is electrically connected with one end of the second resistor through the second interface, the positioning antenna is electrically connected with the other end of the second resistor through the fourth interface, the positioning antenna is electrically connected with one end of the third resistor through the first interface, the positioning antenna is electrically connected with the other end of the third resistor through the third interface, the positioning antenna is electrically connected with one end of the thermistor through the third interface, the positioning antenna is electrically connected with the other end of the thermistor through the fourth interface, and the positioning antenna is electrically connected with the voltage detection module through the first interface and/or the second interface.
The voltage detection module may include a first voltage detector and a second voltage detector, the positioning antenna may be electrically connected to the first voltage detector through a second interface, and the positioning antenna may be electrically connected to the second voltage detector through a third interface.
According to the scheme, when the positioning function is detected to be started, a first temperature value of the terminal is obtained; acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value; determining a temperature difference value based on the first temperature value and the second temperature value; and if the temperature difference is greater than a preset threshold value, closing the positioning function. . According to the embodiment, when the terminal is detected to start the positioning function, the terminal temperature value and the GPS temperature value are obtained, the temperature difference value is determined, whether the temperature difference value exceeds the range or not is judged, the switch of the terminal GPS function is controlled according to the judgment result, the heating condition of the GPS is detected in real time, the power consumption of the terminal can be effectively reduced, and therefore the using efficiency of the energy of the mobile terminal is improved.
The embodiment of the application also provides a terminal. As shown in fig. 4, the terminal may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer-readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, Wireless Fidelity (WiFi) module 607, processor 608 including one or more processing cores, and power supply 609. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 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 for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 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. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The positioning control circuit 610 is used for receiving and transmitting GPS signals during positioning or navigation, and the positioning control circuit 610 transmits the received GPS signals to the processor 608, and obtains positioning information after processing by the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when the positioning function is detected to be started, acquiring a first temperature value of the terminal;
acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value;
determining a temperature difference value based on the first temperature value and the second temperature value;
and if the temperature difference is greater than a preset threshold value, closing the positioning function.
According to the scheme, when the positioning function is detected to be started, a first temperature value of the terminal is obtained; acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value; determining a temperature difference value based on the first temperature value and the second temperature value; and if the temperature difference is greater than a preset threshold value, closing the positioning function. . According to the embodiment, when the terminal is detected to start the positioning function, the terminal temperature value and the GPS temperature value are obtained, the temperature difference value is determined, whether the temperature difference value exceeds the range or not is judged, the switch of the terminal GPS function is controlled according to the judgment result, the heating condition of the GPS is detected in real time, the power consumption of the terminal can be effectively reduced, and therefore the using efficiency of the energy of the mobile terminal is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the positioning control methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
when the positioning function is detected to be started, acquiring a first temperature value of the terminal; acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value; determining a temperature difference value based on the first temperature value and the second temperature value; and if the temperature difference is greater than a preset threshold value, closing the positioning function.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any positioning control method provided in the embodiments of the present application, beneficial effects that can be achieved by any positioning control method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The positioning control method, the positioning control circuit, the storage medium and the terminal provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A positioning control method is applied to a terminal, and the terminal comprises the following steps: location antenna, voltage detection module, first resistance, second resistance, third resistance and thermistor, wherein, the location antenna respectively with voltage detection module, first resistance, second resistance, third resistance and thermistor electric connection, its characterized in that includes:
when the positioning function is detected to be started, acquiring a first temperature value of the terminal;
acquiring a voltage value and a resistance value of a positioning antenna, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value;
determining a temperature difference value based on the first temperature value and the second temperature value;
and if the temperature difference is greater than a preset threshold value, closing the positioning function.
2. The method of claim 1, wherein the voltage detection module comprises a first voltage detector and a second voltage detector, the positioning antenna has a second interface and a third interface, the positioning antenna is electrically connected to the first voltage detector through the second interface and is electrically connected to the second voltage detector through the third interface, the obtaining the voltage value and the resistance value of the positioning antenna, and the determining the second temperature value of the positioning antenna according to the voltage value and the resistance value comprises:
acquiring a first voltage value of the second interface through a first voltage detector;
acquiring a second voltage value of the third interface through a second voltage detector;
acquiring a first resistance value of the first resistor, a second resistance value of the second resistor and a third resistance value of the third resistor;
obtaining a power supply voltage value based on the first resistance value, the second resistance value and the first voltage value;
obtaining a fourth resistance value according to the power supply voltage value, the second voltage value and the third resistance value, wherein the fourth resistance value is the resistance value of the thermistor;
and determining a second temperature value corresponding to the fourth resistor based on a relational correspondence library.
3. The method of claim 1, after said determining a temperature difference value based on the first temperature value and the second temperature value, further comprising:
and if the temperature difference is smaller than or equal to a preset threshold value, continuing to start the positioning function.
4. The method of claim 1, further comprising, after said deactivating a positioning function:
acquiring temperature values of the positioning antenna every other preset time period;
comparing the temperature value with a target temperature value to obtain a comparison result;
and if the temperature value is smaller than the target temperature value, triggering an opening instruction, and opening a positioning function according to the opening instruction.
5. The method of claim 4, further comprising, prior to said triggering an on command:
detecting whether a user starts an application program, wherein the application program is associated with the positioning function;
if yes, executing the step of starting the opening instruction.
6. The method of claim 1, further comprising, prior to said deactivating a positioning function:
acquiring a currently opened application program;
judging whether the application program is a preset application program or not, wherein the preset application program preferentially uses the positioning function;
if not, executing the step of closing the positioning function.
7. A positioning control circuit is characterized by comprising a positioning antenna and a voltage detection module, wherein the positioning antenna is provided with a first interface, a second interface, a third interface and a fourth interface, the positioning antenna is electrically connected with one end of a first resistor through the first interface, the positioning antenna is electrically connected with the other end of the first resistor through the second interface, the positioning antenna is electrically connected with one end of a second resistor through the second interface, the positioning antenna is electrically connected with the other end of the second resistor through the fourth interface, the positioning antenna is electrically connected with one end of a third resistor through the first interface, the positioning antenna is electrically connected with the other end of the third resistor through the third interface, the positioning antenna is electrically connected with one end of a thermistor through the third interface, and the positioning antenna is electrically connected with the other end of the thermistor through the fourth interface, the positioning antenna is electrically connected with the voltage detection module through the first interface and/or the second interface;
when the positioning function is detected to be started, acquiring a first temperature value of the terminal;
acquiring a voltage value and a resistance value of the positioning antenna through the voltage detection module, and determining a second temperature value of the positioning antenna according to the voltage value and the resistance value;
determining a temperature difference value based on the first temperature value and the second temperature value;
and if the temperature difference is greater than a preset threshold value, closing the positioning function.
8. The circuit of claim 7, wherein the voltage detection module comprises a first voltage detector and a second voltage detector;
the positioning antenna is electrically connected with the first voltage detector through the second interface, and the positioning antenna is electrically connected with the second voltage detector through the third interface.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the positioning control method according to any one of claims 1 to 6.
10. A terminal, characterized in that it comprises a positioning control circuit according to any of claims 7-8.
CN201911193852.6A 2019-11-28 2019-11-28 Positioning control method, positioning control circuit, storage medium and terminal Active CN110972075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911193852.6A CN110972075B (en) 2019-11-28 2019-11-28 Positioning control method, positioning control circuit, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911193852.6A CN110972075B (en) 2019-11-28 2019-11-28 Positioning control method, positioning control circuit, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110972075A CN110972075A (en) 2020-04-07
CN110972075B true CN110972075B (en) 2021-04-09

Family

ID=70032329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911193852.6A Active CN110972075B (en) 2019-11-28 2019-11-28 Positioning control method, positioning control circuit, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110972075B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101371515A (en) * 2006-01-19 2009-02-18 国际商业机器公司 On-device mapping of WIFI hotspots via direct connection of WIFI-enabled and GPS-enabled mobile devices
CN104093194A (en) * 2014-07-25 2014-10-08 Tcl通讯(宁波)有限公司 Method and system for intelligently opening and closing WLAN of mobile terminal
US9460616B1 (en) * 2015-12-16 2016-10-04 International Business Machines Corporation Management of mobile objects and service platform for mobile objects
CN106211078A (en) * 2016-09-19 2016-12-07 广州视源电子科技股份有限公司 Localization method, device, equipment and system
CN107528982A (en) * 2017-10-11 2017-12-29 成都远向电子有限公司 Internet of Things water dispenser based on NB IoT communications
CN207968468U (en) * 2015-01-09 2018-10-12 苹果公司 Electronic device
CN208172711U (en) * 2018-05-09 2018-11-30 刘菁菁 A kind of safety computer mainboard
CN209159573U (en) * 2018-09-11 2019-07-26 江西斯源科技有限公司 A kind of fixed device of the reducing dust lowering car locator based on LBS technology

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101371515A (en) * 2006-01-19 2009-02-18 国际商业机器公司 On-device mapping of WIFI hotspots via direct connection of WIFI-enabled and GPS-enabled mobile devices
CN104093194A (en) * 2014-07-25 2014-10-08 Tcl通讯(宁波)有限公司 Method and system for intelligently opening and closing WLAN of mobile terminal
CN207968468U (en) * 2015-01-09 2018-10-12 苹果公司 Electronic device
US9460616B1 (en) * 2015-12-16 2016-10-04 International Business Machines Corporation Management of mobile objects and service platform for mobile objects
CN106211078A (en) * 2016-09-19 2016-12-07 广州视源电子科技股份有限公司 Localization method, device, equipment and system
CN107528982A (en) * 2017-10-11 2017-12-29 成都远向电子有限公司 Internet of Things water dispenser based on NB IoT communications
CN208172711U (en) * 2018-05-09 2018-11-30 刘菁菁 A kind of safety computer mainboard
CN209159573U (en) * 2018-09-11 2019-07-26 江西斯源科技有限公司 A kind of fixed device of the reducing dust lowering car locator based on LBS technology

Also Published As

Publication number Publication date
CN110972075A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN106250223B (en) Background process management method and terminal equipment
CN106786962B (en) Charging control method and device and terminal
US20210255746A1 (en) Application control method and electronic device
CN107450029B (en) Battery state checking method and device, computer equipment and computer readable storage medium
EP3836284B1 (en) Method for low-temperature protection of electronic device and electronic device
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN106532876B (en) Power supply control method and device and computer equipment
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN112286286B (en) Standby control method, wearable device and computer readable storage medium
CN106454953B (en) Flow control method, device and terminal
CN106303616B (en) Play control method, device and terminal
CN110190641B (en) Charging control circuit, terminal equipment and data line
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN110768350B (en) Charging method, charging device, storage medium and electronic equipment
CN110972075B (en) Positioning control method, positioning control circuit, storage medium and terminal
CN107329547B (en) Temperature control method and device and mobile terminal
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
CN111596827B (en) Icon display control method and device, storage medium and mobile terminal
CN110896240B (en) Charging control method and device, computer readable storage medium and terminal
CN106155733B (en) Method and device for running application program
CN106294528B (en) Method and device for realizing information transmission

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230725

Address after: 230000 Room 403, building 2, Laojie library, Dianbu Town, Feidong County, Hefei City, Anhui Province

Patentee after: Hefei guiqian Information Technology Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.