CN112511692A - Anti-interference method and device, storage medium and mobile terminal - Google Patents
Anti-interference method and device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN112511692A CN112511692A CN202011370432.3A CN202011370432A CN112511692A CN 112511692 A CN112511692 A CN 112511692A CN 202011370432 A CN202011370432 A CN 202011370432A CN 112511692 A CN112511692 A CN 112511692A
- Authority
- CN
- China
- Prior art keywords
- noise
- positioning system
- global positioning
- carrier
- interfered
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The application discloses an anti-interference method, an anti-interference device, a storage medium and a mobile terminal, wherein the anti-interference method is applied to the mobile terminal, whether the global positioning system is interfered by noise is judged according to a carrier-to-noise ratio and noise power in the continuous tracking and positioning process of the global positioning system, if the global positioning system is interfered by the noise, the first preset time duration of the global positioning system is closed, and when the closed state of the first preset time duration is finished, the global positioning system is restarted, so that the noise is prevented from generating sudden strong interference on the global positioning system, the abnormal positioning conditions of the global positioning system, such as incapability of positioning or positioning deviation, are avoided, meanwhile, the positioning continuity of the global positioning system is ensured, and the continuous tracking and positioning process is not influenced.
Description
Technical Field
The invention relates to the technical field of communication, in particular to an anti-interference method, an anti-interference device, a storage medium and a mobile terminal.
Background
In a GPS (Global Positioning System) communication process of a mobile terminal, the mobile terminal is easily affected by a burst interference pulse. For example, when other terminals are nearby in the session establishment stage, the other terminals have higher power and are easy to cause burst interference to the GPS function; for another example, when the mobile terminal uses the GPS function, the GPS is also subjected to external short strong interference through a strong interference position such as a high-voltage transformer; for another example, at the moment of starting other modules of the mobile terminal itself, such as a camera module, a wireless network module, and the like, the GPS is also subject to sudden strong interference. These interferences are likely to cause GPS positioning anomalies, affecting the user experience.
Disclosure of Invention
The invention provides an anti-interference method, an anti-interference device, a storage medium and a mobile terminal, and aims to solve the technical problem that the existing mobile terminal GPS is easily interfered to cause abnormal positioning.
The technical scheme provided by the application is as follows:
the application provides an anti-interference method, which is applied to a mobile terminal and comprises the following steps:
in the process of continuous tracking and positioning of the global positioning system, judging whether the global positioning system is interfered by noise or not according to a carrier-to-noise ratio and a noise power;
if the global positioning system is interfered by noise, closing a first preset time length of the global positioning system;
and when the closing state of the first preset time length is finished, restarting the global positioning system.
The application also provides an anti-interference device, which is applied to a mobile terminal and comprises:
the judging module is used for judging whether the global positioning system is interfered by noise or not according to the carrier-to-noise ratio and the noise power in the continuous tracking and positioning process of the global positioning system;
the closing module is used for closing a first preset time length of the global positioning system if the global positioning system is interfered by noise;
and the starting module is used for restarting the global positioning system when the closing state of the first preset duration is finished.
In the interference prevention apparatus provided in the present application, the determining module is specifically configured to:
judging whether the noise is higher than a noise threshold value according to the carrier-to-noise ratio and the noise power;
if the noise is higher than a noise threshold value, determining that the global positioning system is interfered by noise;
and if the noise is lower than a noise threshold value, determining that the global positioning system is not interfered by the noise.
In the interference prevention apparatus provided in the present application, the determining module is specifically configured to:
when the carrier-to-noise ratio is lower than a first threshold, judging whether the noise power exceeds a second threshold;
and if the noise power exceeds a second threshold, determining that the noise is higher than a noise threshold.
In the interference prevention apparatus provided by the present application, the interference prevention apparatus further includes a first determining module configured to:
detecting the minimum value of useful signal power required by the global positioning system to complete positioning;
determining a corresponding carrier-to-noise ratio according to the minimum value of the useful signal power;
and determining the carrier-to-noise ratio corresponding to the minimum value of the useful signal power as the first threshold value.
In the interference prevention apparatus provided by the present application, the interference prevention apparatus further includes a second determining module, configured to:
detecting the minimum value of useful signal power required by the global positioning system to complete positioning;
determining the minimum value of the useful signal power as the second threshold value.
In the interference prevention apparatus provided by the present application, the interference prevention apparatus further includes a return module configured to: and after the global positioning system is restarted for a second preset time, returning to execute the function of the judging module.
The present application further provides a computer readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform any of the tamper-proof methods described above.
The application also provides a terminal device, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing any step in the interference prevention method.
The beneficial effect of this application does: the application discloses an anti-interference method, an anti-interference device, a storage medium and a mobile terminal, wherein the anti-interference method is applied to the mobile terminal, and a global positioning system is closed for a short time by considering the conditions of carrier-to-noise ratio and noise level, so that the noise is prevented from generating sudden strong interference on the GPS system, the abnormal positioning conditions such as incapability of positioning or positioning deviation of the GPS system are avoided, the GPS system is restarted later, the positioning continuity of the GPS system is ensured, and the continuous tracking and positioning process is not influenced.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic flow chart of an interference prevention method according to an embodiment of the present disclosure.
Fig. 2 is another schematic flow chart of the interference preventing method according to the embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an interference preventing device according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. In the drawings, elements having similar structures are denoted by the same reference numerals. 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.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The embodiment of the application provides an anti-interference method, an anti-interference device, a storage medium and a mobile terminal.
Referring to fig. 1, fig. 1 is a schematic flowchart of an anti-interference method provided in an embodiment of the present application, where the anti-interference method is applied to a mobile terminal, and the mobile terminal is any intelligent electronic device with a mobile communication function, such as a smart phone, a tablet computer, and a smart watch. As shown in fig. 1, the interference preventing method provided in this embodiment mainly includes steps S101 to S103, which are described as follows:
step S101: in the process of continuous tracking and positioning of the global positioning system, whether the global positioning system is interfered by noise is judged according to the carrier-to-noise ratio and the noise power, if so, the step S102 is executed, and if not, the step S102 is repeatedly executed.
Currently, GPS has become a standard configuration function of a mobile terminal, such as a mobile phone and a tablet, to implement a positioning function of the mobile terminal. Generally, when the GPS function of the terminal is turned on, if the position of the terminal is far from the last positioning position when the GPS function is turned on, a large amount of ephemeris/almanac information needs to be downloaded again to complete the first positioning. In the process of GPS communication, the time for a user to actually use a GPS to perform positioning is short, most of the time is a continuous tracking and positioning process after positioning, and at the moment, the required downloaded satellite signals are also small. However, since the duration of the continuous tracking positioning process is long, it is easily interfered by various kinds of interference, such as interference from transmission signals of communication modules of other users, interference generated by sudden activation of other high-power modules of the terminal, and the like, generally, such interference is mostly burst signals, and has short duration and high peak value.
Specifically, after the terminal GPS function is started and the first positioning is completed, the GPS function remains on, which is a process for a Global Positioning System (GPS) to continuously track and position.
It should be understood that whether the GPS can perform positioning normally is mainly determined by Carrier to Noise Ratio (CNR), which is a main signal indicator of the GPS, i.e., a Ratio of useful (Carrier) signal to Noise. The higher the CNR value, the better the communication quality. The CNR value is low, which may be caused by low power of useful signal or high power of noise signal, so whether GPS positioning can be affected by noise power needs to be determined by integrating the carrier ratio and the noise frequency.
Further, step S101 may mainly include: judging whether the noise is higher than a noise threshold value according to the carrier-to-noise ratio and the noise power; if the noise is higher than the noise threshold, determining that the global positioning system is interfered by the noise; and if the noise is lower than the noise threshold, determining that the global positioning system is not interfered by the noise.
In particular, the noise power of the noise threshold is much smaller than the power of the useful signal, usually comparable to the minimum value of the useful signal power required for the positioning to be completed.
Further, the step of "determining whether the noise is higher than the noise threshold according to the carrier-to-noise ratio and the noise power" may mainly include: when the carrier-to-noise ratio is lower than a first threshold, judging whether the noise power exceeds a second threshold; if the noise power exceeds a second threshold, then the noise is determined to be above the noise threshold.
The first threshold is a carrier-to-noise ratio when the useful signal power required for completing the positioning is the minimum value under the noise threshold, and the first threshold can be set after measurement according to the design of the terminal and preset in the terminal in advance. The second threshold is the noise power equivalent to the minimum useful signal power required for completing the positioning, and the second threshold can be preset in the terminal in advance after being measured according to the design of the terminal.
It is easy to understand that the carrier-to-noise ratio reflects the quality of GPS communication, and in general, the higher the useful signal is, the lower the noise signal is, the higher the carrier-to-noise ratio is, therefore, when the carrier-to-noise ratio is smaller than the first threshold, that is, the noise is below the noise threshold, and the carrier-to-noise ratio when the useful signal power required for completing positioning is the minimum value, it is determined whether the noise power exceeds the second threshold, that is, the noise power equivalent to the useful signal power required for completing positioning is the minimum value, and if the noise power is smaller than the second threshold, it can be considered that the carrier-to-noise ratio is a decrease caused by the decrease in the useful signal power; if the noise power is not less than the second threshold, it is considered that the noise power is higher than the noise threshold, which may cause the GPS to fail to position or position a significant offset.
In some embodiments, the tamper-proof method may further comprise: detecting the minimum value of useful signal power required by the global positioning system to complete positioning; determining a corresponding carrier-to-noise ratio according to the minimum value of the useful signal power; and determining the carrier-to-noise ratio corresponding to the minimum value of the useful signal power as a first threshold value.
Specifically, the process of determining the first threshold may occur during the first use and power-on initialization of the mobile terminal, or may occur when the user uses the GPS positioning system for the first time and the determination is performed periodically during the subsequent use of the mobile terminal by the user.
It is easy to understand that the minimum value of the useful signal power required by the global positioning system to complete positioning is mainly related to the used GPS demodulation chip, the related radio frequency device and the GPS antenna, and does not exclude that the performance of the GPS demodulation chip, the related radio frequency device and the GPS antenna changes during use, so that the minimum value of the useful signal power required by the global positioning system to complete positioning can be periodically detected, and the first threshold value is updated according to the minimum value to ensure the timeliness and the accuracy of the judgment of the first threshold value.
In some embodiments, the tamper-proof method further comprises:
detecting the minimum value of useful signal power required by the global positioning system to complete positioning;
the minimum value of the useful signal power is determined as the second threshold value.
Specifically, the process of determining the second threshold may occur during the first use and power-on initialization of the mobile terminal, or may occur when the user uses the GPS positioning system for the first time and the determination is performed periodically during the subsequent use of the mobile terminal by the user.
It is easy to understand that the minimum value of the useful signal power required by the global positioning system to complete positioning is mainly related to the used GPS demodulation chip, the related radio frequency device and the GPS antenna, and it is not excluded that the performance of the GPS demodulation chip, the related radio frequency device and the GPS antenna changes during use, so that the minimum value of the useful signal power required by the global positioning system to complete positioning can be periodically detected, and the second threshold value is updated according to the minimum value, so as to ensure the timeliness and the accuracy of the judgment of the second threshold value.
Step S102: and closing the global positioning system for the first preset time.
Specifically, the first preset duration is preset in the terminal in advance, and the specific duration is not limited in the present application. It is easy to understand that the first preset time period is not too long so as not to affect the continuous tracking location of the user, for example, 0.5 seconds.
Step S103: and when the closing state of the first preset time length is finished, restarting the global positioning system.
Specifically, interference signals such as interference of transmission signals from communication modules of other users and interference generated by sudden start of other high-power modules of the terminal are mostly burst type and have short duration, so that when the off state of the first preset duration is finished, the global positioning system is restarted to perform continuous tracking and positioning.
In some embodiments, after the step of "restarting the global positioning system", the method may further include: and after the global positioning system is restarted for a second preset time, returning to execute the step of judging whether the global positioning system is interfered by the noise according to the carrier-to-noise ratio and the noise power.
Specifically, after the global positioning system is restarted, the global positioning system is kept in the on state for a period of time, so that the situation that the global positioning system is turned off again due to noise interference after the restart, and the continuous tracking and positioning process is influenced can be avoided. In general, in the course of continuous tracking positioning, the time from the acquisition of the satellite signal to the completion of positioning by the GPS is usually less than 1 second, and therefore, the second preset time period may be a time period greater than 1 second, for example, 3 seconds, because the system is not turned off after maintaining 3 seconds, which is enough for the GPS to complete one positioning.
It can be seen from the above description that, the interference prevention method provided in this embodiment is applied to a mobile terminal, and determines whether a global positioning system is interfered by noise according to a carrier-to-noise ratio and a noise power in a continuous tracking and positioning process of the global positioning system, if the global positioning system is interfered by the noise, the first preset time duration of the global positioning system is turned off, and when the turn-off state of the first preset time duration is finished, the global positioning system is restarted, so that a sudden strong interference of the noise to the GPS system is avoided, occurrence of positioning abnormalities such as incapability of positioning or positioning offset of the global positioning system is avoided, meanwhile, continuity of positioning of the global positioning system is ensured, and the continuous tracking and positioning process is not affected.
Referring to fig. 2, fig. 2 is another flow chart of the interference prevention method according to the embodiment of the present application, and the ephemeris information collecting method is applied to a mobile terminal, and mainly includes steps S201 to S204, which are described as follows:
step S201: in the process of continuous tracking and positioning by the global positioning system, it is determined whether the carrier-to-noise ratio is lower than a first threshold, if so, step S202 is executed, and if not, step S201 is repeatedly executed.
Specifically, the carrier-to-noise ratio is a main index reflecting the communication quality of the GPS, and the higher the carrier-to-noise ratio, the better the communication quality. Where carrier to noise ratio is the ratio between the useful signal and the noise signal, it is therefore easily understood that the higher the useful signal and the lower the noise signal, the higher the carrier to noise ratio.
In this embodiment, the first threshold is a carrier-to-noise ratio when the useful signal power required for completing the positioning is a minimum value under a noise threshold, and the first threshold may be preset in the terminal in advance, which is set after measurement according to the design of the terminal itself.
For example, assuming that the minimum value of the useful signal power required by the GPS to complete the positioning is-160 dBm and the corresponding carrier-to-noise ratio should be 15dB-hz, if the carrier-to-noise ratio is lower than 15dB-hz during the GPS continuous tracking positioning, step S202 is executed.
Step S202: and judging whether the noise power exceeds a second threshold value, if so, executing step S203, otherwise, returning to execute step S201.
In the case where the carrier-to-noise ratio is lower than the first threshold, there may be two cases, namely, the useful signal is lower than the minimum value of the useful signal power required for completing the positioning, and the noise power is higher.
In this embodiment, the second threshold is a noise power equivalent to the minimum useful signal power required for completing the positioning, and the second threshold may be preset in the terminal in advance after being measured according to the design of the terminal itself. If the noise power is not less than the second threshold, it is considered that the noise is higher than the noise threshold, which may cause the GPS to fail to perform positioning or cause a serious deviation of positioning, so step S203 is executed to turn off the GPS to avoid affecting the process of continuously tracking and positioning.
For example, assuming that the minimum useful signal power required by the GPS to perform a position fix is-160 dBm, the second threshold may be set at around-160 dBm. Alternatively, the second threshold may be set to a range, for example, if the noise power is from-155 dBm to-165 dBm
Step S203: and closing the global positioning system for the first preset time.
Specifically, the specific implementation of step S203 can refer to the embodiment of step S102, and is not described herein again.
Step S204: and when the closing state of the first preset time length is finished, restarting the global positioning system.
Specifically, the specific implementation of step S204 can refer to the embodiment of step S103, which is not described herein again.
In some embodiments, after step S204, the method may further include: and after the global positioning system is restarted for a second preset time, returning to execute the step of judging whether the global positioning system is interfered by the noise according to the carrier-to-noise ratio and the noise power.
Specifically, after the global positioning system is restarted, the global positioning system is kept in the on state for a period of time, so that the situation that the global positioning system is turned off again due to noise interference after the restart, and the continuous tracking and positioning process is influenced can be avoided. In general, in the course of continuous tracking positioning, the time from the acquisition of the satellite signal to the completion of positioning by the GPS is usually less than 1 second, and therefore, the second preset time period may be a time period greater than 1 second, for example, 3 seconds, because the system is not turned off after maintaining 3 seconds, which is enough for the GPS to complete one positioning.
It can be seen from the above description that, the interference prevention method provided in this embodiment is applied to a mobile terminal, and is implemented by determining whether a carrier-to-noise ratio is lower than a first threshold in a continuous tracking and positioning process of a global positioning system, determining whether a noise power exceeds a second threshold if the carrier-to-noise ratio is lower than the first threshold, closing a first preset duration of the global positioning system if the noise power exceeds the second threshold, and restarting the global positioning system when a closed state of the first preset duration is ended, thereby avoiding a sudden strong interference of the noise on the GPS system, avoiding a situation that the global positioning system cannot perform positioning or positioning offset or other positioning abnormalities occur, and restarting the global positioning system afterwards, ensuring continuity of positioning of the global positioning system, and enabling the continuous tracking and positioning process not to be affected.
According to the method described in the above embodiments, the present embodiment will be further described from the perspective of an interference prevention device, which may be specifically implemented as a separate entity or integrated in a mobile terminal.
Referring to fig. 3, fig. 3 specifically describes an anti-interference device provided in the embodiment of the present application, which is applied to a mobile terminal, and the anti-interference device mainly includes a determining module 10, a closing module 20, and a starting module 30, which are described as follows:
(1) judging module 10
The determining module 10 is configured to determine whether the gps is interfered by noise according to the carrier-to-noise ratio and the noise power during the continuous tracking and positioning process of the gps.
In some embodiments, the determining module 10 may be mainly configured to: judging whether the noise is higher than a noise threshold value according to the carrier-to-noise ratio and the noise power; if the noise is higher than the noise threshold, determining that the global positioning system is interfered by the noise; and if the noise is lower than the noise threshold, determining that the global positioning system is not interfered by the noise.
Further, the determining module 10 may be mainly configured to: when the carrier-to-noise ratio is lower than a first threshold, judging whether the noise power exceeds a second threshold; if the noise power exceeds a second threshold, then the noise is determined to be above the noise threshold.
In some embodiments, the tamper-proof device may further include a first determining module to: detecting the minimum value of useful signal power required by the global positioning system to complete positioning; determining a corresponding carrier-to-noise ratio according to the minimum value of the useful signal power; and determining the carrier-to-noise ratio corresponding to the minimum value of the useful signal power as a first threshold value.
In some embodiments, the tamper-proof apparatus may further include a second determining module to: detecting the minimum value of useful signal power required by the global positioning system to complete positioning; the minimum value of the useful signal power is determined as the second threshold value.
(2) Closing module 20
The shutdown module 20 is configured to shut down the gps for a first preset time period if the gps is interfered by noise.
(3) Start module 30
The starting module 30 is configured to restart the global positioning system when the off state of the first preset duration is ended.
In some embodiments, the tamper-proof device may further comprise a return module for: and after the global positioning system restarts the second preset time, returning to execute the function of the judging module.
It can be seen from the above description that, the interference preventing apparatus provided in this embodiment is applied to a mobile terminal, and determines whether a global positioning system is interfered by noise according to a carrier-to-noise ratio and a noise power in a continuous tracking and positioning process of the global positioning system by using the determining module 10, if the global positioning system is interfered by noise, the closing module 20 closes the global positioning system for a first preset time, and when a closed state of the first preset time is over, the starting module 30 restarts the global positioning system, so as to avoid a sudden strong interference of the noise on the GPS system, avoid occurrence of abnormal positioning conditions such as incapability of positioning or positioning offset of the global positioning system, and ensure continuity of positioning of the global positioning system, so that the continuous tracking and positioning process is not affected.
In addition, the embodiment of the application further provides a mobile terminal, and the mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 4, the mobile terminal 500 includes a processor 501, a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the mobile terminal 500, 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 running or loading an application stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 501 in the mobile terminal 500 loads instructions corresponding to processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, so as to implement various functions:
in the process of continuous tracking and positioning of the global positioning system, judging whether the global positioning system is interfered by noise or not according to the carrier-to-noise ratio and the noise power;
if the global positioning system is interfered by noise, closing the first preset time of the global positioning system;
and when the closing state of the first preset time length is finished, restarting the global positioning system.
Fig. 5 is a block diagram illustrating a specific structure of a mobile terminal provided in an embodiment of the present application, where the mobile terminal may be used to implement the interference prevention method provided in the above embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (IEEE for micro), and other instant messaging protocols for short message Communication (wimax), as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be used for storing software programs and modules, such as the interference prevention method and the corresponding program instructions/modules in the above embodiments, and the processor 380 executes various functional applications and data processing, i.e., realizes the communication data saving function, by operating the software programs and modules stored in the memory 320. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 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, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means 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 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 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 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 5, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 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 processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
in the process of continuous tracking and positioning of the global positioning system, judging whether the global positioning system is interfered by noise or not according to the carrier-to-noise ratio and the noise power;
if the global positioning system is interfered by noise, closing the first preset time of the global positioning system;
and when the closing state of the first preset time length is finished, restarting the global positioning system.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
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 including mobile terminal-executable instructions. The mobile terminal executable instructions, when executed by a mobile terminal processor, perform the steps of any of the tamper-proof methods provided by the embodiments of the present application.
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 of the interference prevention methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any of the interference prevention methods provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.
Claims (10)
1. An interference prevention method applied to a mobile terminal includes:
in the process of continuous tracking and positioning of the global positioning system, judging whether the global positioning system is interfered by noise or not according to a carrier-to-noise ratio and a noise power;
if the global positioning system is interfered by noise, closing a first preset time length of the global positioning system;
and when the closing state of the first preset time length is finished, restarting the global positioning system.
2. The interference prevention method according to claim 1, wherein the determining whether the gps is interfered by noise according to the carrier-to-noise ratio and the noise power includes:
judging whether the noise is higher than a noise threshold value according to the carrier-to-noise ratio and the noise power;
if the noise is higher than a noise threshold value, determining that the global positioning system is interfered by noise;
and if the noise is lower than a noise threshold value, determining that the global positioning system is not interfered by the noise.
3. The method according to claim 2, wherein the determining whether the noise is higher than the noise threshold according to the carrier-to-noise ratio and the noise power includes:
when the carrier-to-noise ratio is lower than a first threshold, judging whether the noise power exceeds a second threshold;
and if the noise power exceeds a second threshold, determining that the noise is higher than a noise threshold.
4. The tamper-proof method according to claim 3, further comprising:
detecting the minimum value of useful signal power required by the global positioning system to complete positioning;
determining a corresponding carrier-to-noise ratio according to the minimum value of the useful signal power;
and determining the carrier-to-noise ratio corresponding to the minimum value of the useful signal power as the first threshold value.
5. The tamper-proof method according to claim 3, further comprising:
detecting the minimum value of useful signal power required by the global positioning system to complete positioning;
determining the minimum value of the useful signal power as the second threshold value.
6. The tamper-proof method according to claim 1, further comprising, after the restarting the global positioning system:
and after the global positioning system is restarted for a second preset time, returning to execute the step of judging whether the global positioning system is interfered by noise according to the carrier-to-noise ratio and the noise power.
7. An interference preventing device applied to a mobile terminal, comprising:
the judging module is used for judging whether the global positioning system is interfered by noise or not according to the carrier-to-noise ratio and the noise power in the continuous tracking and positioning process of the global positioning system;
the closing module is used for closing a first preset time length of the global positioning system if the global positioning system is interfered by noise;
and the starting module is used for restarting the global positioning system when the closing state of the first preset duration is finished.
8. The tamper-proof device according to claim 7, wherein the determining module is specifically configured to:
judging whether the noise is higher than a noise threshold value according to the carrier-to-noise ratio and the noise power;
if the noise is higher than a noise threshold value, determining that the global positioning system is interfered by noise;
and if the noise is lower than a noise threshold value, determining that the global positioning system is not interfered by the noise.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the tamper-proof method of any of claims 1 to 6.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the tamper-proof method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011370432.3A CN112511692A (en) | 2020-11-30 | 2020-11-30 | Anti-interference method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011370432.3A CN112511692A (en) | 2020-11-30 | 2020-11-30 | Anti-interference method and device, storage medium and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112511692A true CN112511692A (en) | 2021-03-16 |
Family
ID=74967619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011370432.3A Pending CN112511692A (en) | 2020-11-30 | 2020-11-30 | Anti-interference method and device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112511692A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115015973A (en) * | 2022-08-09 | 2022-09-06 | 龙旗电子(惠州)有限公司 | GPS interference detection method, device, equipment and storage medium |
CN118102443A (en) * | 2024-04-18 | 2024-05-28 | 青岛日日盛智能科技有限公司 | High-precision indoor positioning method and system |
CN118450035A (en) * | 2023-09-12 | 2024-08-06 | 荣耀终端有限公司 | Control method for electronic device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6448925B1 (en) * | 1999-02-04 | 2002-09-10 | Conexant Systems, Inc. | Jamming detection and blanking for GPS receivers |
CN106488046A (en) * | 2015-08-25 | 2017-03-08 | 中兴通讯股份有限公司 | GPS function method for closing, device and terminal |
CN109788125A (en) * | 2018-12-24 | 2019-05-21 | 维沃移动通信有限公司 | Interfere processing method, device and mobile terminal |
CN109959948A (en) * | 2017-12-22 | 2019-07-02 | 中兴通讯股份有限公司 | Acquisition methods, terminal, storage medium, the electronic device of location information |
-
2020
- 2020-11-30 CN CN202011370432.3A patent/CN112511692A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6448925B1 (en) * | 1999-02-04 | 2002-09-10 | Conexant Systems, Inc. | Jamming detection and blanking for GPS receivers |
CN106488046A (en) * | 2015-08-25 | 2017-03-08 | 中兴通讯股份有限公司 | GPS function method for closing, device and terminal |
CN109959948A (en) * | 2017-12-22 | 2019-07-02 | 中兴通讯股份有限公司 | Acquisition methods, terminal, storage medium, the electronic device of location information |
CN109788125A (en) * | 2018-12-24 | 2019-05-21 | 维沃移动通信有限公司 | Interfere processing method, device and mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115015973A (en) * | 2022-08-09 | 2022-09-06 | 龙旗电子(惠州)有限公司 | GPS interference detection method, device, equipment and storage medium |
CN118450035A (en) * | 2023-09-12 | 2024-08-06 | 荣耀终端有限公司 | Control method for electronic device, and storage medium |
CN118102443A (en) * | 2024-04-18 | 2024-05-28 | 青岛日日盛智能科技有限公司 | High-precision indoor positioning method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112511692A (en) | Anti-interference method and device, storage medium and mobile terminal | |
CN112415367B (en) | Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium | |
CN111654902B (en) | Method and device for reducing GPS signal interference of mobile terminal and mobile terminal | |
CN111443803B (en) | Mode switching method and device, storage medium and mobile terminal | |
CN110691168B (en) | Screen control method and device of mobile terminal and storage medium | |
CN110851014B (en) | Touch recognition method and device, storage medium and terminal equipment | |
CN111064847B (en) | False touch prevention method and device, storage medium and electronic equipment | |
CN112312542B (en) | Ephemeris information collection method, device, storage medium and mobile terminal | |
CN112486350B (en) | Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal | |
CN105635379B (en) | Noise suppression method and device | |
CN112433694B (en) | Light intensity adjusting method and device, storage medium and mobile terminal | |
CN111651299A (en) | Wireless chip reset control method and device, storage medium and mobile terminal | |
CN113613310A (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN111273774A (en) | Terminal device display screen control method and system, storage medium and terminal device | |
CN111007916B (en) | Terminal device time setting method and system, storage medium and terminal device | |
CN109995441B (en) | Communication information processing method, device and storage medium | |
CN111048056A (en) | Terminal equipment brightness adjusting method and system, storage medium and terminal equipment | |
CN111258801B (en) | Display screen recovery method and system, storage medium and terminal equipment | |
CN110891304B (en) | gPS power consumption control method for mobile terminal | |
CN112558749B (en) | Power supply control method and device, storage medium and mobile terminal | |
CN110972221B (en) | Communication signal processing method and device and mobile terminal | |
CN113079249B (en) | Prompting method, prompting device, storage medium and mobile terminal | |
CN109660664B (en) | Event processing method, device and storage medium | |
CN112531835B (en) | Mobile terminal charging method and device, storage medium and mobile terminal | |
CN111443889B (en) | Volume adjusting method and system, storage medium and terminal equipment thereof |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210316 |
|
RJ01 | Rejection of invention patent application after publication |