CN112444827A - Electronic device, positioning control method, and computer-readable storage medium - Google Patents

Electronic device, positioning control method, and computer-readable storage medium Download PDF

Info

Publication number
CN112444827A
CN112444827A CN201910837646.8A CN201910837646A CN112444827A CN 112444827 A CN112444827 A CN 112444827A CN 201910837646 A CN201910837646 A CN 201910837646A CN 112444827 A CN112444827 A CN 112444827A
Authority
CN
China
Prior art keywords
signal
gps
power
positioning information
electronic device
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
Application number
CN201910837646.8A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910837646.8A priority Critical patent/CN112444827A/en
Publication of CN112444827A publication Critical patent/CN112444827A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/21Interference related issues ; Issues related to cross-correlation, spoofing or other methods of denial of service
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The present application relates to an electronic device, a positioning control method, and a computer-readable storage medium. The electronic device includes: a Global Positioning System (GPS) antenna for receiving GPS signals; the coupler is connected with the GPS antenna and used for coupling the GPS signal to obtain a first signal; the GPS module is connected with the coupler; and the control module is respectively connected with the coupler and the GPS module and is used for controlling the GPS module to close the corresponding GPS function when the power of the first signal is greater than the preset power. The GPS function can be closed under the condition that the GPS signal is greatly interfered by the outside, the condition that the output positioning information has large offset due to interference is avoided, and the offset of the positioning information can be reduced.

Description

Electronic device, positioning control method, and computer-readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an electronic device, a positioning control method, and a computer-readable storage medium.
Background
With the development of computer technology, more and more electronic devices are equipped with a GPS (Global Positioning System) function. After the electronic device starts the positioning function, the electronic device may output current location information of the electronic device according to the received GPS signal. However, the GPS signal received by the electronic device is likely to interfere with an external device, and the output positioning information may be shifted.
Disclosure of Invention
Embodiments of the present application provide an electronic device, a positioning control method, and a computer-readable storage medium, which can reduce offset of positioning information.
An electronic device, comprising:
a Global Positioning System (GPS) antenna for receiving GPS signals;
the coupler is connected with the GPS antenna and used for coupling the GPS signal to obtain a first signal;
the GPS module is connected with the coupler;
and the control module is respectively connected with the coupler and the GPS module and is used for controlling the GPS module to close the corresponding GPS function when the power of the first signal is greater than the preset power.
In one embodiment, the control module comprises:
the detection unit is connected with the coupler and used for obtaining a time period when the power of the first signal is greater than the preset power;
and the control unit is used for determining the transmission time interval of the interference signal in the period according to the time interval when the interference signal is determined to be the periodic signal according to the time interval, and controlling the GPS module to close the corresponding GPS function in the transmission time interval of each period.
In one embodiment, the coupler is further configured to obtain a second signal when the GPS signal is coupled;
the GPS module is also used for outputting initial positioning information according to the second signal when the power of the first signal is less than or equal to the preset power.
In one embodiment, the control module is further configured to perform correction processing on the initial positioning information, and output target positioning information obtained after the correction processing.
In one embodiment, the control module is further configured to acquire positioning data sent by a terminal connected to the electronic device, and when it is determined that a distance between the electronic device and the terminal is smaller than a preset distance according to the positioning data and the initial positioning information, perform correction processing on the initial positioning information according to the positioning data.
In one embodiment, the GPS module is further configured to, when it is detected that the second signal includes a single-frequency-point interference signal, remove the single-frequency-point interference signal from the second signal, and output the initial positioning information according to the removed second signal.
In one embodiment, the control module is further configured to continuously detect whether the received first signal is greater than the preset power after controlling the GPS module to turn off the GPS function, and control the GPS module to turn on the GPS function when the first signal is less than or equal to the preset power.
A positioning control method, comprising:
receiving a GPS signal;
coupling the GPS signal through a coupler to obtain a first signal;
and when the power of the first signal is greater than the preset power, controlling the GPS module to close the corresponding GPS function.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a GPS signal;
coupling the GPS signal through a coupler to obtain a first signal;
and when the power of the first signal is greater than the preset power, controlling the GPS module to close the corresponding GPS function.
According to the electronic device, the positioning control method and the computer readable storage medium, the coupler is connected with the GPS antenna, the control module is respectively connected with the coupler and the GPS module, the GPS antenna can receive GPS signals, the coupler can carry out coupling processing on the GPS signals to obtain first signals, and the control module can control the GPS module to close corresponding GPS functions when the power of the first signals is determined to be larger than the preset power. The GPS function can be closed under the condition that the GPS signal is greatly interfered by the outside, the condition that the output positioning information has large offset due to interference is avoided, and the offset of the positioning information can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an electronic device in one embodiment;
FIG. 2 is a schematic structural diagram of an electronic device in another embodiment;
FIG. 3 is a flow chart of a positioning control method in one embodiment;
FIG. 4 is a flow chart of a positioning control method in one embodiment;
fig. 5 is a flowchart of a positioning control method in yet another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another, or to distinguish one element from another. For example, a first signal may be termed a second signal, and, similarly, a second signal may be termed a first signal, without departing from the scope of the present application. The first signal and the second signal are both signals, but they are not the same signal.
Fig. 1 is a schematic structural diagram of an electronic device in one embodiment. As shown in fig. 1, in one embodiment, an electronic device is provided comprising: a control module 110, a GPS module 120, a coupler 130, and a GPS antenna 140. Wherein, the GPS antenna 140 is connected with the coupler 130; the coupler 130 is connected to the GPS module 120 and the control module 110, respectively, and the control module 110 is connected to the GPS module 120.
And a GPS antenna 140 for receiving GPS signals. The GPS antenna is an antenna for positioning or navigation by receiving satellite signals. The GPS antenna 140 may be a vertically polarized antenna or a circularly polarized antenna, and different antennas may be selected according to the structural design and requirements of the electronic device. The GPS signal is a signal transmitted by a satellite.
The coupler 130 is configured to perform coupling processing on the GPS signal to obtain a first signal. Coupler 130 refers to a device that may be used to split a signal into several paths according to power. Coupler 130 includes at least an input port, an output port, and a coupled port. In the embodiment of the present application, the coupler 130 has an input port connected to the GPS antenna 140, an output port connected to the GPS module 120, and a coupling port connected to the control module 110.
The coupler 130 couples the GPS signal to obtain a first signal, and specifically, the coupler 130 couples the GPS signal according to a coupling coefficient and outputs the first signal through a coupling port. Wherein the coupling coefficient is a ratio of powers of a coupled port and an input port in the coupler. For example, when the power of the GPS signal is-130 dbm, the power of the first signal is-150 dbm if the coupling coefficient is 20db, the power of the first signal is-140 dbm if the coupling coefficient is 10db, and so on.
The control module 110 is configured to control the GPS module 120 to turn off the corresponding GPS function when the power of the first signal is greater than a preset power. The control module 110 may be an MCU (micro control Unit), a CPU (Central processing Unit), or the like. The GPS module is a chip or a chip set integrated with a GPS function, and may be an electronic circuit having a GPS function.
The preset power may be determined according to a coupling coefficient of the coupler and an allowable interference error, and is not limited herein. Typically, the power at which the GPS signal reaches the GPS antenna is-130 dbm, and the predetermined power can be set based on-130 dbm, in combination with the coupling coefficient and the allowable interference error. If the power of the first signal is greater than the preset power, the interference on the GPS signal is considered to be serious. For example, when the coupling coefficient is-20 db and the allowable interference error is 5db, the preset power is-145 dbm; when the coupling coefficient is-10 db and the allowable interference error is 8db, the preset power is-132 dbm and the like. Specifically, the control module 110 is connected to a coupling port of the coupler 130, and is capable of receiving a first signal output by the coupling port, detecting whether the power of the first signal is greater than a preset power, and when the power of the first signal is greater than the preset power, the control module 110 controls the GPS module 120 to turn off the corresponding GPS function.
The GPS module 120 turns off the GPS function, specifically, the GPS module 120 is connected to the control module 110, the control module 110 may generate and send a turn-off instruction to the GPS module 120 when it is determined that the power of the first signal is greater than the preset power, and the GPS module 120 turns off the corresponding GPS function according to the turn-off instruction. Alternatively, the control module 110 may stop supplying power to the GPS module 120, so that the GPS module 120 cannot perform the corresponding GPS function.
The electronic equipment provided by the embodiment of the application is connected with the coupler and the GPS antenna, the control module is respectively connected with the coupler and the GPS module, the GPS antenna can receive a GPS signal, the coupler can carry out coupling processing on the GPS signal to obtain a first signal, and the control module can control the GPS module to close a corresponding GPS function when the power of the first signal is determined to be greater than the preset power. The GPS function can be closed under the condition that the GPS signal is greatly interfered by the outside, the condition that the output positioning information has large offset due to interference is avoided, and the offset of the positioning information can be reduced.
In one embodiment, the control module 110 is further configured to continuously detect whether the received first signal is greater than a preset power after controlling the GPS module to turn off the GPS function, and control the GPS module to turn on the GPS function when the first signal is less than or equal to the preset power.
The coupler 130 couples and processes the GPS signal to obtain a first signal, and the control module 110 may determine whether to turn off the GPS function of the GPS module according to the power of the first signal, and after the GPS module turns off the GPS function, the coupler 130 may continuously receive the GPS signal and couple and process to obtain the first signal, so that the control module 110 may continuously detect whether the received first signal is greater than a preset power, and the detection of the signal power is not affected by the turning off of the GPS function.
Optionally, in some embodiments, the control module 110 may also detect whether the received first signal is greater than a preset power every preset time interval, and when it is determined that the power of the received first signal is less than or equal to the preset power, control the GPS module 120 to start the GPS function; when the power of the received first signal is determined to be still greater than the preset power, the GPS function is kept off.
Generally, when the GPS module is actually used, a mode of outputting positioning information at intervals is often adopted, and the GPS function can be turned off between two adjacent times of outputting positioning information to save power consumption. In the embodiment of the application, the GPS function may be turned off when the power of the first signal is detected to be greater than the preset power, and the GPS function may be turned on when the power of the first signal is detected to be less than or equal to the preset power, so that the output positioning information may be prevented from being shifted while the function of the electronic device is not affected.
In one embodiment, an electronic device is provided, wherein the coupler 130 is further configured to obtain a second signal when performing coupling processing on the GPS signal; the GPS module 120 is further configured to output initial positioning information according to the second signal when the power of the first signal is less than or equal to a preset power.
Specifically, an output port of the coupler 130 is connected to the GPS module 120, the coupler 130 couples the GPS signal to obtain a first signal and a second signal, the first signal is sent to the control module 110 through the coupled port, and the second signal is sent to the GPS module 120 through the output port.
In a case where the GPS function of the GPS module 120 is not turned off, the GPS module 120 may output initial positioning information according to the second signal. Specifically, the GPS module 120 may analyze a distance between the electronic device and a GPS satellite transmitting the GPS signal according to the second signal, and determine initial positioning information of the electronic device according to the distance. Alternatively, the initial positioning information may be represented by latitude and longitude information, or may be represented by specific position information. For example, the initial positioning information may be represented as north latitude 23.1066805, east longitude 113.3245904; it can also be expressed as north latitude 23.1066805, and the geographic location corresponding to east longitude 113.3245904, i.e. Guangzhou tower of Guangzhou city, Guangdong province, etc., which is not limited herein.
The electronic equipment can carry out coupling processing on the GPS signal through the coupler to obtain a first signal and a second signal, when the power of the first signal is greater than the preset power, the GPS module is controlled to close the corresponding GPS function, and when the power of the first signal is less than or equal to the preset power, the GPS module outputs initial positioning information according to the second signal, so that the accuracy of the positioning information can be improved.
In an embodiment, the GPS module 120 in the electronic device is further configured to, when it is detected that the second signal includes the single-frequency-point interference signal, remove the single-frequency-point interference signal from the second signal, and output initial positioning information according to the removed second signal.
The GPS signals are divided into L1, L2 and the like, the frequency of L1 is 1575.42MHz, and the frequency of L2 is 1228 MHz. When the GPS signal is subjected to external interference, the interference signal is superimposed on the GPS signal, and the second signal also includes the interference signal. The single-frequency interference signal refers to an interference signal with only one frequency, and in practical applications, the frequency of the single-frequency interference signal is generally a signal with a frequency within a small range, i.e., a narrow bandwidth. The GPS module 120 may obtain a frequency spectrum of the second signal, and analyze whether the second signal includes a single frequency point interference signal according to the frequency spectrum; when it is determined that the second signal includes the single frequency point interference signal, the GPS module 120 may remove the single frequency point interference signal from the second signal, and output initial positioning information according to the removed second signal. Specifically, the GPS module 120 needs to perform an integral operation on the second signal in the process of outputting the initial positioning information according to the second signal, and the GPS module 120 may remove a component corresponding to the frequency of the single-frequency interference signal when performing the integral operation on the second signal, and output the initial positioning information according to the removed integral operation result.
Optionally, in an embodiment, the control module 110 may control the GPS module 120 to turn off the corresponding GPS function when it is determined that the power of the first signal is greater than the preset power and the second signal does not include the single-bin interference signal.
Optionally, in an embodiment, before the control module 110 detects whether the power of the first signal is greater than the preset power, the GPS module 120 may analyze whether the second signal includes a single-frequency interference signal, and determine the power of the single-frequency interference signal, and the control module 110 may adjust the preset power according to the power of the single-frequency interference signal, and detect whether the power of the first signal is greater than the adjusted preset power. Specifically, the control module 110 may add the power of the single-frequency-point interference signal to the preset power to obtain the adjusted preset power.
Whether the second signal contains the single-frequency-point interference signal or not is detected through the GPS module, the single-frequency-point interference signal is removed from the second signal when the second signal is determined to contain the single-frequency-point interference signal, initial positioning information is output according to the removed second signal, and accuracy of the initial positioning information can be improved.
In one embodiment, the control module 110 in the electronic device is further configured to perform a correction process on the initial positioning information and output target positioning information obtained after the correction process.
The initial positioning information is the positioning information output by the GPS module 120, and the target positioning information is the positioning information obtained by the control module 1110 after performing correction processing on the initial positioning information. The target positioning information may be used to record a movement track of the electronic device, location sharing of the electronic device, navigation guidance, and the like. The control module 110 corrects the initial positioning information, and specifically, the control module 110 may correct the initial positioning information by combining the historical positioning information and the map data to obtain the target positioning information.
The historical positioning information refers to target positioning information determined by the control module before the initial positioning information is output by the GPS module, and the historical positioning information can form a moving path of the electronic equipment. The amplitude and speed of the position change of the electronic device generally tend to a relatively stable change state, the control module 110 may correct the initial positioning information according to the historical positioning information when the distance between the initial positioning information output by the GPS module 120 and the historical positioning information is greater than a preset distance, optionally, the control module 110 may also determine a predicted position range of the electronic device according to the historical positioning information, correct the initial positioning information according to the historical positioning information when the initial positioning information output by the GPS module is not within the predicted position range, and the like. The map data includes locations of buildings, roads, green areas, and the like, and the control module 110 may correct the initial positioning information by combining the historical positioning information and the map data, so as to prevent the initial positioning information from deviating to the electronic device to cause abnormal deviation.
In one embodiment, the control module 110 in the electronic device is further configured to obtain positioning data sent by a terminal connected to the electronic device, and when it is determined that a distance between the electronic device and the terminal is smaller than a preset distance according to the positioning data and the initial positioning information, perform a correction process on the initial positioning information according to the positioning data.
The electronic device and the terminal may be wirelessly connected through WIFI (Wireless Fidelity), bluetooth, NFC (Near Field Communication), or may be connected through USB (Universal Serial Bus), and the like, which is not limited herein. The terminal has a positioning function. For example, the terminal may be a mobile phone, a personal computer, or the like; the electronic device may be a watch, bracelet, or other portable device. The control module 110 of the electronic device may send an acquisition request of the positioning data to the connected terminal, and acquire the positioning data returned according to the acquisition request. The positioning data may comprise one or more of a movement path, a current position, a movement speed, etc. of the terminal. Optionally, in some embodiments, the positioning data may also include acceleration data, angular velocity data, or number of steps, etc. of the terminal. The preset distance may be set according to the actual application requirement, and is not limited herein. Generally, when the distance between the electronic device and the terminal is smaller than a preset distance, the electronic device and the terminal are considered to be in a synchronous moving state. For example, the preset distance may be 2 meters, 4 meters, 5 meters, etc.
The control module 110 may determine a distance between the electronic device and the terminal according to the positioning data, and determine whether the distance is smaller than a preset distance, and when it is determined that the distance is smaller than the preset distance, perform correction processing on the initial positioning information according to the positioning data sent by the terminal. Specifically, the control module 110 may analyze a deviation degree of the initial positioning information with respect to a moving path of the terminal, and correct the initial positioning information according to the deviation degree, so that the corrected target positioning information approaches the moving path. The moving path of the terminal may be a path included in the positioning data sent by the terminal, or may be a moving path of the terminal determined by the control module 110 according to the positioning data sent by the terminal.
By acquiring the positioning data sent by the terminal connected with the electronic equipment, when the distance between the electronic equipment and the terminal is smaller than the preset distance, the initial positioning information is corrected according to the positioning data, and the accuracy of the positioning information can be improved.
Fig. 2 is a schematic structural diagram of an electronic device in another embodiment. As shown in FIG. 2, in one embodiment, the control module 110 includes a control unit 112 and a detection unit 114 connected. The control unit 112 is connected to the coupler 130 and the GPS module 120, respectively, and the detection unit 114 is connected to the coupler 130. The detecting unit 114 is configured to detect whether the power of the first signal is greater than a preset power; the control unit 112 is configured to control the GPS module 120 to turn off the corresponding GPS function when the detection unit 114 determines that the power of the first signal is greater than the preset power.
In one embodiment, the detecting unit 114 may be further configured to obtain a period when the power of the first signal is greater than a preset power; the control unit 112 may be further configured to determine a transmission period of the interference signal in the cycle according to the period when the interference signal is determined to be the periodic signal according to the period, and control the GPS module 120 to turn off the corresponding GPS function in the transmission period of each cycle.
If the power of the first signal is greater than the preset power, it indicates that the first signal contains an interference signal. The detection unit 114 may acquire a period in which the power of the first signal is greater than a preset power, i.e., a period in which an interference signal occurs. The control unit 112 may determine whether the interference signal is a periodic signal according to the time interval, and determine the transmission time interval of the interference signal in the period according to the time interval, specifically, the periodic signal refers to a signal whose signal amplitude repeatedly changes with time, and the control unit 112 may analyze whether the interference signal repeatedly appears according to an interval time interval according to the time interval in which the power of the first signal is greater than the preset power, and the time intervals in which the interference signal appears each time are the same or close, if so, determine that the interference signal is the periodic signal. The period of the interference signal includes an interval duration and a duration of each occurrence of the interference signal, and the duration of the occurrence of the interference signal is a transmission time period of the interference signal in the period. The control unit 112 may control the GPS module 120 to turn off the corresponding GPS function for each transmission period of a cycle when it is determined that the interference signal is a periodic signal. For example, when the time period in which the power of the first signal is greater than the preset power is 2s-3s, 5s-6s, 8s-9s, and the like, according to the time period, it can be determined that the time intervals of two adjacent interference signals are all 2s, and the time length of the interference signal appearing each time is 1s, it can be determined that the interference signal is a periodic signal, the period is 3s, and the transmission time period of the interference signal in the period is 2s-3 s.
Optionally, the control unit 112 determines that the interference signal is a periodic signal, and controls the GPS module to turn off the GPS function in the transmission period of each period, and then controls the detection unit 114 to turn off the corresponding signal detection function, or controls the detection unit 114 to turn on the signal detection function every preset time interval, so as to reacquire a period in which the power of the first signal is greater than the preset power, update the transmission period of the interference signal in the period, or detect whether the power of the first signal is greater than the preset power in real time when the interference signal is not a periodic signal, and control the GPS module 120 to turn off the GPS function through the control unit 112 when it is determined that the power of the first signal is greater than the preset power.
The detection unit is used for acquiring a time period when the power of the first signal is greater than the preset power, the control unit is used for determining whether the interference signal is a periodic signal according to the time period, and when the interference signal is the periodic signal, the control unit is used for controlling the GPS module to close the corresponding GPS function in the transmission time period of each period, so that the situation that the output positioning information is deviated due to the existence of the interference signal can be avoided, and the positioning accuracy can be improved.
Optionally, in an embodiment, a filter and an operational amplifier are further included between the coupler 130 and the GPS module 120, an output port of the coupler 130 is connected to the filter, the filter is connected to the operational amplifier, and the operational amplifier is connected to the GPS module 120. The second signal output by the coupler through the output port may be filtered by a filter, amplified by an operational amplifier, and transmitted to the GPS module 120, and the GPS module 120 may output initial positioning information according to the received signal.
Fig. 3 is a flow chart of a positioning control method in one embodiment. The positioning control method may be applied to the electronic device, as shown in fig. 3, and in one embodiment, the positioning control method includes:
step 302, receiving a GPS signal.
The GPS signal is a signal transmitted by a satellite. The electronic device includes a GPS antenna through which GPS signals may be received.
Step 304, coupling the GPS signal through a coupler to obtain a first signal.
A coupler refers to a device that can be used to split a signal into several paths according to power. Specifically, the coupler may perform coupling processing on the GPS signal according to the coupling coefficient, and obtain the first signal through the coupling port. Wherein the coupling coefficient is a ratio of powers of a coupled port and an input port in the coupler. For example, when the power of the GPS signal is-130 dbm, the power of the first signal is-150 dbm if the coupling coefficient is 20db, the power of the first signal is-140 dbm if the coupling coefficient is 10db, and so on.
And step 306, controlling the GPS module to close the corresponding GPS function when the power of the first signal is greater than the preset power.
The preset power may be determined according to a coupling coefficient of the coupler and an allowable interference error, and is not limited herein. Typically, the power at which the GPS signal reaches the GPS antenna is-130 dbm, and the predetermined power can be set based on-130 dbm, in combination with the coupling coefficient and the allowable interference error. If the power of the first signal is greater than the preset power, the interference on the GPS signal is considered to be serious.
The electronic device may detect whether the power of the first signal is greater than a preset power, and control the GPS module to close the corresponding GPS function when the power of the first signal is greater than the preset power. Specifically, the electronic device may generate and send a turn-off instruction to the GPS module when it is determined that the power of the first signal is greater than the preset power, so that the GPS module turns off the corresponding GPS function according to the turn-off instruction. Optionally, the electronic device may also stop supplying power to the GPS module, so that the GPS module cannot execute the corresponding GPS function.
The GPS signal is coupled through the coupler to obtain a first signal, the electronic equipment can detect whether the power of the first signal is larger than the preset power, and when the power of the first signal is larger than the preset power, the GPS is controlled to close the GPS function, so that the GPS function can be closed under the condition of large external interference, the condition that the positioning information deviates due to interference is avoided, and the deviation of the positioning information can be reduced.
Fig. 4 is a flow chart of a positioning control method in one embodiment. As shown in fig. 4, in one embodiment, the provided positioning control method may further include:
step 402, receiving a GPS signal.
Step 404, coupling the GPS signal through a coupler to obtain a first signal.
In step 406, when the power of the first signal is greater than the preset power, a time period when the power of the first signal is greater than the preset power is obtained.
If the power of the first signal is greater than the preset power, it indicates that the first signal contains an interference signal. The electronic device may acquire a period in which the power of the first signal is greater than a preset power, that is, a period in which an interference signal occurs.
And step 408, when the interference signal is determined to be the periodic signal according to the time interval, determining the emission time interval of the interference signal in the period according to the time interval.
Specifically, the periodic signal is a signal whose signal amplitude repeatedly changes with time, the electronic device may analyze whether the interference signal repeatedly appears according to an interval duration according to a time period when the power of the first signal is greater than the preset power, and durations in which the interference signal appears each time are the same or close to each other, and if so, determine that the interference signal is the periodic signal. The period of the interference signal includes an interval duration and a duration of each occurrence of the interference signal, and the duration of the occurrence of the interference signal is a transmission time period of the interference signal in the period.
And step 410, turning off the corresponding GPS function in the transmission time interval of each period through the GPS module.
Optionally, after determining that the interfering signal is a periodic signal and controlling the GPS module to turn off the GPS function in the transmission period of each period, the electronic device may stop performing the operation of determining whether the power of the first signal is greater than the preset power, or may perform the operation of determining whether the power of the first signal is greater than the preset power every preset time interval, so as to reacquire a period in which the power of the first signal is greater than the preset power, update the transmission period of the interfering signal in the period, or detect whether the power of the first signal is greater than the preset power in real time when the interfering signal is not a periodic signal, and control the GPS module to turn off the GPS function when it is determined that the power of the first signal is greater than the preset power.
By acquiring the time period when the power of the first signal is greater than the preset power, determining whether the interference signal is a periodic signal according to the time period, and controlling the GPS module to close the corresponding GPS function in the transmission time period of each period when the interference signal is the periodic signal, the deviation of the output positioning information caused by the existence of the interference signal can be avoided, and the positioning accuracy can be improved.
Fig. 5 is a flowchart of a positioning control method in yet another embodiment. As shown in fig. 5, in one embodiment, a positioning control method is provided that includes:
step 502, receiving a GPS signal.
Step 504, coupling processing is performed on the GPS signal through a coupler to obtain a first signal and a second signal.
The coupler couples the GPS signal to obtain a first signal and a second signal.
Step 506, when the power of the first signal is less than or equal to the preset power, outputting the initial positioning information according to the second signal through the GPS module.
In a case where the GPS function of the GPS module is not turned off, the initial positioning information may be output by the GPS module according to the second signal. Specifically, the GPS module may analyze a distance between the electronic device and a GPS satellite transmitting the GPS signal according to the second signal, and determine initial positioning information of the electronic device according to the distance. Alternatively, the initial positioning information may be represented by latitude and longitude information, or may be represented by specific position information.
And step 508, controlling the GPS module to close the corresponding GPS function when the power of the first signal is greater than the preset power.
The GPS signals are coupled through the coupler to obtain a first signal and a second signal, when the power of the first signal is larger than the preset power, the GPS module is controlled to close the corresponding GPS function, when the power of the first signal is smaller than or equal to the preset power, the GPS module outputs initial positioning information according to the second signal, and the accuracy of the positioning information can be improved.
In one embodiment, there is provided a process of outputting initial positioning information according to a second signal by a GPS module in a positioning control method, including: detecting whether the second signal contains a single-frequency point interference signal or not through a GPS module; when the second signal contains the single-frequency-point interference signal, removing the single-frequency-point interference signal from the second signal; and outputting initial positioning information according to the second signal after being removed.
The single-frequency interference signal refers to an interference signal with only one frequency, and in practical applications, the frequency of the single-frequency interference signal is generally a signal with a frequency within a small range, i.e., a narrow bandwidth. The electronic equipment can acquire the frequency spectrum of the second signal through the GPS module and analyze whether the second signal contains a single-frequency point interference signal or not according to the frequency spectrum; when the second signal is determined to contain the single-frequency-point interference signal, the single-frequency-point interference signal can be removed from the second signal, and initial positioning information is output according to the removed second signal. Specifically, the GPS module needs to perform integral operation on the second signal in the process of outputting the initial positioning information according to the second signal, and the GPS module may remove a component corresponding to the frequency of the single-frequency point interference signal when performing integral operation on the second signal, and output the initial positioning information according to the removed integral operation result.
Optionally, in an embodiment, the electronic device may control the GPS module to turn off the corresponding GPS function when it is determined that the power of the first signal is greater than the preset power and the second signal does not include the single-frequency-point interference signal.
Optionally, in an embodiment, before the electronic device detects whether the power of the first signal is greater than the preset power, the electronic device may analyze whether the second signal includes a single frequency point interference signal through the GPS module, determine the power of the single frequency point interference signal, adjust the preset power according to the power of the single frequency point interference signal, and detect whether the power of the first signal is greater than the adjusted preset power. Specifically, the electronic device may add the power of the single-frequency-point interference signal to the preset power to obtain the adjusted preset power.
Whether the second signal contains the single-frequency-point interference signal or not is detected through the GPS module, the single-frequency-point interference signal is removed from the second signal when the second signal is determined to contain the single-frequency-point interference signal, initial positioning information is output according to the removed second signal, and accuracy of the initial positioning information can be improved.
In one embodiment, there is provided a positioning control method, after outputting initial positioning information according to a second signal by a GPS module, the method further including: acquiring positioning data sent by a terminal connected with electronic equipment; determining the distance between the electronic equipment and the terminal according to the positioning data and the initial positioning information; and when the distance is smaller than the preset distance, correcting the initial positioning information according to the positioning data, and outputting the target positioning information obtained after correction.
The positioning data may comprise one or more of a movement path, a current position, a movement speed, etc. of the terminal. Optionally, in some embodiments, the positioning data may also include acceleration data, angular velocity data, or number of steps, etc. of the terminal. The preset distance may be set according to the actual application requirement, and is not limited herein. Generally, when the distance between the electronic device and the terminal is smaller than a preset distance, the electronic device and the terminal are considered to be in a synchronous moving state. For example, the preset distance may be 2 meters, 4 meters, 5 meters, etc.
Specifically, the electronic device may analyze a degree of deviation of the initial positioning information with respect to a movement path of the terminal, and correct the initial positioning information according to the degree of deviation, so that the corrected target positioning information approaches the movement path. The moving path of the terminal may be a path included in the positioning data sent by the terminal, or a moving path of the terminal determined by the electronic device according to the positioning data sent by the terminal.
By acquiring the positioning data sent by the terminal connected with the electronic equipment, when the distance between the electronic equipment and the terminal is smaller than the preset distance, the initial positioning information is corrected according to the positioning data, and the accuracy of the positioning information can be improved.
It should be understood that although the various steps in the flow charts of fig. 3-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a positioning control method.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform a positioning control method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. An electronic device, comprising:
a Global Positioning System (GPS) antenna for receiving GPS signals;
the coupler is connected with the GPS antenna and used for coupling the GPS signal to obtain a first signal;
the GPS module is connected with the coupler;
and the control module is respectively connected with the coupler and the GPS module and is used for controlling the GPS module to close the corresponding GPS function when the power of the first signal is greater than the preset power.
2. The electronic device of claim 1, wherein the control module comprises:
the detection unit is connected with the coupler and used for obtaining a time period when the power of the first signal is greater than the preset power;
and the control unit is used for determining the transmission time interval of the interference signal in the period according to the time interval when the interference signal is determined to be the periodic signal according to the time interval, and controlling the GPS module to close the corresponding GPS function in the transmission time interval of each period.
3. The electronic device of claim 1, wherein the coupler is further configured to obtain a second signal when the GPS signal is coupled;
the GPS module is also used for outputting initial positioning information according to the second signal when the power of the first signal is less than or equal to the preset power.
4. The electronic device of claim 3, wherein the GPS module is further configured to, when it is detected that the second signal includes a single-frequency-point interference signal, remove the single-frequency-point interference signal from the second signal, and output the initial positioning information according to the removed second signal.
5. The electronic device of claim 3, wherein the control module is further configured to perform correction processing on the initial positioning information and output target positioning information obtained after the correction processing.
6. The electronic device according to claim 5, wherein the control module is further configured to obtain positioning data sent by a terminal connected to the electronic device, and correct the initial positioning information according to the positioning data when it is determined that a distance between the electronic device and the terminal is smaller than a preset distance according to the positioning data and the initial positioning information.
7. The electronic device of claim 1, wherein the control module is further configured to continuously detect whether the received first signal is greater than the preset power after controlling the GPS module to turn off the GPS function, and control the GPS module to turn on the GPS function when the first signal is less than or equal to the preset power.
8. A positioning control method, comprising:
receiving a GPS signal;
coupling the GPS signal through a coupler to obtain a first signal;
and when the power of the first signal is greater than the preset power, controlling the GPS module to close the corresponding GPS function.
9. The method of claim 8, further comprising:
acquiring a time period when the power of the first signal is greater than the preset power;
when the interference signal is determined to be a periodic signal according to the time interval, determining the emission time interval of the interference signal in a period according to the time interval;
turning off, by the GPS module, a corresponding GPS function during the transmission period of each cycle.
10. The method of claim 8, wherein coupling the GPS signal through a coupler to obtain a first signal comprises:
coupling the GPS signal through the coupler to obtain a first signal and a second signal; the method further comprises the following steps:
and when the power of the first signal is less than or equal to the preset power, outputting initial positioning information according to the second signal through the GPS module.
11. The method of claim 10, wherein outputting, by the GPS module, initial positioning information based on the second signal comprises:
detecting, by the GPS module, whether the second signal contains a single frequency point interference signal;
when the second signal contains a single-frequency-point interference signal, removing the single-frequency-point interference signal from the second signal;
and outputting the initial positioning information according to the second signal after being removed.
12. The method of claim 10, applied to an electronic device, further comprising, after outputting initial positioning information according to the second signal by the GPS module:
acquiring positioning data sent by a terminal connected with the electronic equipment;
determining the distance between the electronic equipment and the terminal according to the positioning data and the initial positioning information;
and when the distance is smaller than the preset distance, correcting the initial positioning information according to the positioning data, and outputting the target positioning information obtained after correction.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 8 to 12.
CN201910837646.8A 2019-09-05 2019-09-05 Electronic device, positioning control method, and computer-readable storage medium Pending CN112444827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910837646.8A CN112444827A (en) 2019-09-05 2019-09-05 Electronic device, positioning control method, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910837646.8A CN112444827A (en) 2019-09-05 2019-09-05 Electronic device, positioning control method, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN112444827A true CN112444827A (en) 2021-03-05

Family

ID=74733147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910837646.8A Pending CN112444827A (en) 2019-09-05 2019-09-05 Electronic device, positioning control method, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112444827A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033550A1 (en) * 2007-04-16 2009-02-05 Qualcomm Incorporated Positioning and transmitting system
CN103323862A (en) * 2013-06-28 2013-09-25 武汉大学 Anti-interference GNSS receiver device combining multiple modes and multiple frequencies with array processing
CN204215044U (en) * 2014-12-01 2015-03-18 长沙海格北斗信息技术有限公司 Portable mono frequency Beidou satellite navigation signal disturbing source
CN104483680A (en) * 2014-12-15 2015-04-01 南京林洋电力科技有限公司 Mobile positioning system and anti-interference method thereof
CN105093240A (en) * 2015-09-11 2015-11-25 北京航空航天大学 Satellite navigation terminal electromagnetic compatibility test device based on orthogonal signal input and test method
CN105491658A (en) * 2014-09-18 2016-04-13 杭州华为数字技术有限公司 Terminal device positioning method, device and system
CN106358290A (en) * 2016-10-31 2017-01-25 广东欧珀移动通信有限公司 Detecting method for GPS positioning interference of mobile terminal, device and mobile terminal
KR20170026000A (en) * 2015-08-31 2017-03-08 (주)아센코리아 Apparatus for avoiding gnss jamming and method thereof
CN108832942A (en) * 2018-03-30 2018-11-16 努比亚技术有限公司 A kind of terminal positioning interference filtering method, terminal and computer readable storage medium
CN109861702A (en) * 2017-11-30 2019-06-07 北京小米移动软件有限公司 Interfering signal removing method and device
CN109959948A (en) * 2017-12-22 2019-07-02 中兴通讯股份有限公司 Acquisition methods, terminal, storage medium, the electronic device of location information

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033550A1 (en) * 2007-04-16 2009-02-05 Qualcomm Incorporated Positioning and transmitting system
CN103323862A (en) * 2013-06-28 2013-09-25 武汉大学 Anti-interference GNSS receiver device combining multiple modes and multiple frequencies with array processing
CN105491658A (en) * 2014-09-18 2016-04-13 杭州华为数字技术有限公司 Terminal device positioning method, device and system
CN204215044U (en) * 2014-12-01 2015-03-18 长沙海格北斗信息技术有限公司 Portable mono frequency Beidou satellite navigation signal disturbing source
CN104483680A (en) * 2014-12-15 2015-04-01 南京林洋电力科技有限公司 Mobile positioning system and anti-interference method thereof
KR20170026000A (en) * 2015-08-31 2017-03-08 (주)아센코리아 Apparatus for avoiding gnss jamming and method thereof
CN105093240A (en) * 2015-09-11 2015-11-25 北京航空航天大学 Satellite navigation terminal electromagnetic compatibility test device based on orthogonal signal input and test method
CN106358290A (en) * 2016-10-31 2017-01-25 广东欧珀移动通信有限公司 Detecting method for GPS positioning interference of mobile terminal, device and mobile terminal
CN109861702A (en) * 2017-11-30 2019-06-07 北京小米移动软件有限公司 Interfering signal removing method and device
CN109959948A (en) * 2017-12-22 2019-07-02 中兴通讯股份有限公司 Acquisition methods, terminal, storage medium, the electronic device of location information
CN108832942A (en) * 2018-03-30 2018-11-16 努比亚技术有限公司 A kind of terminal positioning interference filtering method, terminal and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
薛峰;张军;: "GPS接收机自主干扰检测方法研究", 无线电工程, vol. 39, no. 07, 5 July 2009 (2009-07-05), pages 14 - 16 *
薛峰等: "GPS接收机自主干扰检测方法研究", 无线电工程, vol. 39, no. 07, pages 14 - 16 *

Similar Documents

Publication Publication Date Title
US9151823B2 (en) Wireless communication device capable of accurately performing position estimations
JP6072266B2 (en) Mobile terminal and mobile terminal location information acquisition method
CN102369455B (en) System and method for operating a GPS device in micro power mode
US20070019587A1 (en) Mobile radio station and communication parameter control method thereof
JP2014239483A (en) Method and apparatus to confirm mobile equipment has remained relatively stationary using one or more pilot signal
KR20120027824A (en) Location information decision method in integrated terminal
US8285301B2 (en) Communication terminal, method for allowing communication terminal to obtain position information, and program product for controlling communication terminal
US11032672B2 (en) Method for acquiring location information, terminal, storage medium, and electronic device
CN112415554B (en) Positioning method and device, electronic equipment and computer readable storage medium
US20090156205A1 (en) Method and Apparatus for Establishing a Wireless Network Signal Acquisition Rate
US8345658B2 (en) Mobile communication terminal with GPS function, positioning system, operation control method, and program
US10725181B2 (en) In-band pseudolite wireless positioning method, system and device
CN112204414A (en) Carrier phase positioning in cellular networks
CN112637756B (en) Position detection method, position detection device, electronic equipment and computer readable storage medium
US7864108B2 (en) Present position estimation method, positioning method, program, and mobile terminal
CN114080023B (en) Positioning method, positioning system, terminal and readable storage medium
CN112640333B (en) Clock calibration method and device
CN112444827A (en) Electronic device, positioning control method, and computer-readable storage medium
US20180115316A1 (en) Self-correction techniques for crystal oscillator
US9654927B2 (en) Motion detection method and portable device using the same
US10743139B2 (en) Wireless system device and wireless communication control method
CN111077547A (en) Positioning method and device
CN112637779B (en) Method and device for determining moving path, wearable device and storage medium
KR20240012827A (en) Method and Device for Estimating Position of Vehicle
US20210223350A1 (en) Gateway device for a location based sensor network, and arrangement and method 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